gdb/riscv: add ability to decode dwarf CSR numbers
[binutils-gdb.git] / gdb / ChangeLog
1 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
4 numbers.
5 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
6 enum values.
7
8 2020-11-10 Tom Tromey <tom@tromey.com>
9
10 * value.h (internalvar_name): Update.
11 * value.c (internalvar_name): Make return type const.
12
13 2020-11-10 Tom Tromey <tom@tromey.com>
14
15 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
16 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
17 const.
18
19 2020-11-10 Tom Tromey <tom@tromey.com>
20
21 * objc-lang.h (value_nsstring): Update.
22 * objc-lang.c (value_nsstring): Make "ptr" const.
23
24 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
25
26 * expprint.c (print_subexp_funcall): Increment expression position
27 after reading argument count.
28 * f-lang.c (print_subexp_f): Skip over opcode before calling
29 common function.
30 (dump_subexp_body_f): Likewise.
31
32 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
33
34 PR python/26832
35 * configure: Regenerate.
36 * configure.ac: Check for python modules ctypes instead of
37 itertools.
38
39 2020-11-06 Pedro Alves <pedro@palves.net>
40
41 * macroexp.c (struct macro_buffer): Split in two classes. Add
42 uses adjusted.
43 (struct shared_macro_buffer): New, factored out from struct
44 macro_buffer.
45 (struct growable_macro_buffer): New, factored out from struct
46 macro_buffer.
47 (set_token, get_comment, get_identifier, get_pp_number)
48 (get_character_constant, get_string_literal, get_punctuator)
49 (get_next_token_for_substitution): Constify parameters.
50 (substitute_args): Constify locals.
51
52 2020-11-05 Tom Tromey <tom@tromey.com>
53
54 * dwarf2/read.c (read_cutu_die_from_dwo)
55 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
56 (build_type_psymtabs_1): Update.
57 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
58 parameter.
59 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
60 Don't read section. Add assert.
61
62 2020-11-04 Tom Tromey <tromey@adacore.com>
63
64 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
65
66 2020-11-04 Tom Tromey <tromey@adacore.com>
67
68 * ada-typeprint.c (ada_print_type): Handle __T types.
69
70 2020-11-04 Tom Tromey <tromey@adacore.com>
71
72 * dwarf2/read.c (add_partial_symbol, process_die):
73 Handle DW_TAG_array_type.
74 (is_type_tag_for_partial): Add "lang" parameter.
75 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
76
77 2020-11-04 Tom Tromey <tromey@adacore.com>
78
79 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
80
81 2020-11-04 Tom Tromey <tromey@adacore.com>
82
83 * dwarf2/read.c (read_array_type): Only apply stride to innermost
84 array.
85
86 2020-11-04 Tom Tromey <tromey@adacore.com>
87
88 * gdbtypes.c (update_static_array_size): Handle bit stride.
89
90 2020-11-04 Tom Tromey <tromey@adacore.com>
91
92 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
93
94 2020-11-04 Tom Tromey <tromey@adacore.com>
95
96 * ada-lang.c (ada_is_any_packed_array_type): New function.
97 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
98
99 2020-11-04 Tom Tromey <tromey@adacore.com>
100
101 * dwarf2/read.c (recognize_bound_expression)
102 (quirk_ada_thick_pointer): New functions.
103 (read_array_type): Call quirk_ada_thick_pointer.
104 (set_die_type): Add "skip_data_location" parameter.
105 (quirk_ada_thick_pointer): New function.
106 (process_structure_scope): Call quirk_ada_thick_pointer.
107 * ada-lang.c (ada_is_unconstrained_packed_array_type)
108 (decode_packed_array_bitsize): Handle thick pointers without
109 parallel types.
110 (ada_is_gnat_encoded_packed_array_type): Rename from
111 ada_is_packed_array_type.
112 (ada_is_constrained_packed_array_type): Update.
113 * ada-valprint.c (ada_val_print_gnat_array): Remove.
114 (ada_value_print_1): Use ada_get_decoded_value.
115
116 2020-11-04 Tom Tromey <tromey@adacore.com>
117
118 * ada-lang.c (recursively_update_array_bitsize): New function.
119 (decode_constrained_packed_array_type): Call it.
120
121 2020-11-04 Tom Tromey <tromey@adacore.com>
122
123 * ada-lang.c (to_fixed_array_type): Error if
124 decode_constrained_packed_array_type returns NULL.
125
126 2020-11-04 Tom Tromey <tromey@adacore.com>
127
128 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
129
130 2020-11-02 Tom Tromey <tromey@adacore.com>
131
132 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
133 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
134 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
135 * amd64-ravenscar-thread.c: New file.
136 * amd64-ravenscar-thread.h: New file.
137 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
138 * configure.tgt (amd64_tobjs): Add ravenscar objects.
139
140 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * main.c (execute_cmdargs): New function.
143 (captured_main_1): Make use of execute_cmdargs.
144
145 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
146
147 * NEWS: Mention changes to config file search path.
148 * main.c
149
150 2020-11-02 Tom Tromey <tromey@adacore.com>
151
152 * python/python.c: Consolidate two HAVE_PYTHON blocks.
153 (python_GdbModuleDef): Move earlier. Now static.
154 (do_start_initialization): Consolidate some IS_PY3K blocks.
155
156 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
157
158 * aarch64-linux-tdep.c: Fix indentation.
159 * aarch64-ravenscar-thread.c: Fix indentation.
160 * aarch64-tdep.c: Fix indentation.
161 * aarch64-tdep.h: Fix indentation.
162 * ada-lang.c: Fix indentation.
163 * ada-lang.h: Fix indentation.
164 * ada-tasks.c: Fix indentation.
165 * ada-typeprint.c: Fix indentation.
166 * ada-valprint.c: Fix indentation.
167 * ada-varobj.c: Fix indentation.
168 * addrmap.c: Fix indentation.
169 * addrmap.h: Fix indentation.
170 * agent.c: Fix indentation.
171 * aix-thread.c: Fix indentation.
172 * alpha-bsd-nat.c: Fix indentation.
173 * alpha-linux-tdep.c: Fix indentation.
174 * alpha-mdebug-tdep.c: Fix indentation.
175 * alpha-nbsd-tdep.c: Fix indentation.
176 * alpha-obsd-tdep.c: Fix indentation.
177 * alpha-tdep.c: Fix indentation.
178 * amd64-bsd-nat.c: Fix indentation.
179 * amd64-darwin-tdep.c: Fix indentation.
180 * amd64-linux-nat.c: Fix indentation.
181 * amd64-linux-tdep.c: Fix indentation.
182 * amd64-nat.c: Fix indentation.
183 * amd64-obsd-tdep.c: Fix indentation.
184 * amd64-tdep.c: Fix indentation.
185 * amd64-windows-tdep.c: Fix indentation.
186 * annotate.c: Fix indentation.
187 * arc-tdep.c: Fix indentation.
188 * arch-utils.c: Fix indentation.
189 * arch/arm-get-next-pcs.c: Fix indentation.
190 * arch/arm.c: Fix indentation.
191 * arm-linux-nat.c: Fix indentation.
192 * arm-linux-tdep.c: Fix indentation.
193 * arm-nbsd-tdep.c: Fix indentation.
194 * arm-pikeos-tdep.c: Fix indentation.
195 * arm-tdep.c: Fix indentation.
196 * arm-tdep.h: Fix indentation.
197 * arm-wince-tdep.c: Fix indentation.
198 * auto-load.c: Fix indentation.
199 * auxv.c: Fix indentation.
200 * avr-tdep.c: Fix indentation.
201 * ax-gdb.c: Fix indentation.
202 * ax-general.c: Fix indentation.
203 * bfin-linux-tdep.c: Fix indentation.
204 * block.c: Fix indentation.
205 * block.h: Fix indentation.
206 * blockframe.c: Fix indentation.
207 * bpf-tdep.c: Fix indentation.
208 * break-catch-sig.c: Fix indentation.
209 * break-catch-syscall.c: Fix indentation.
210 * break-catch-throw.c: Fix indentation.
211 * breakpoint.c: Fix indentation.
212 * breakpoint.h: Fix indentation.
213 * bsd-uthread.c: Fix indentation.
214 * btrace.c: Fix indentation.
215 * build-id.c: Fix indentation.
216 * buildsym-legacy.h: Fix indentation.
217 * buildsym.c: Fix indentation.
218 * c-typeprint.c: Fix indentation.
219 * c-valprint.c: Fix indentation.
220 * c-varobj.c: Fix indentation.
221 * charset.c: Fix indentation.
222 * cli/cli-cmds.c: Fix indentation.
223 * cli/cli-decode.c: Fix indentation.
224 * cli/cli-decode.h: Fix indentation.
225 * cli/cli-script.c: Fix indentation.
226 * cli/cli-setshow.c: Fix indentation.
227 * coff-pe-read.c: Fix indentation.
228 * coffread.c: Fix indentation.
229 * compile/compile-cplus-types.c: Fix indentation.
230 * compile/compile-object-load.c: Fix indentation.
231 * compile/compile-object-run.c: Fix indentation.
232 * completer.c: Fix indentation.
233 * corefile.c: Fix indentation.
234 * corelow.c: Fix indentation.
235 * cp-abi.h: Fix indentation.
236 * cp-namespace.c: Fix indentation.
237 * cp-support.c: Fix indentation.
238 * cp-valprint.c: Fix indentation.
239 * cris-linux-tdep.c: Fix indentation.
240 * cris-tdep.c: Fix indentation.
241 * darwin-nat-info.c: Fix indentation.
242 * darwin-nat.c: Fix indentation.
243 * darwin-nat.h: Fix indentation.
244 * dbxread.c: Fix indentation.
245 * dcache.c: Fix indentation.
246 * disasm.c: Fix indentation.
247 * dtrace-probe.c: Fix indentation.
248 * dwarf2/abbrev.c: Fix indentation.
249 * dwarf2/attribute.c: Fix indentation.
250 * dwarf2/expr.c: Fix indentation.
251 * dwarf2/frame.c: Fix indentation.
252 * dwarf2/index-cache.c: Fix indentation.
253 * dwarf2/index-write.c: Fix indentation.
254 * dwarf2/line-header.c: Fix indentation.
255 * dwarf2/loc.c: Fix indentation.
256 * dwarf2/macro.c: Fix indentation.
257 * dwarf2/read.c: Fix indentation.
258 * dwarf2/read.h: Fix indentation.
259 * elfread.c: Fix indentation.
260 * eval.c: Fix indentation.
261 * event-top.c: Fix indentation.
262 * exec.c: Fix indentation.
263 * exec.h: Fix indentation.
264 * expprint.c: Fix indentation.
265 * f-lang.c: Fix indentation.
266 * f-typeprint.c: Fix indentation.
267 * f-valprint.c: Fix indentation.
268 * fbsd-nat.c: Fix indentation.
269 * fbsd-tdep.c: Fix indentation.
270 * findvar.c: Fix indentation.
271 * fork-child.c: Fix indentation.
272 * frame-unwind.c: Fix indentation.
273 * frame-unwind.h: Fix indentation.
274 * frame.c: Fix indentation.
275 * frv-linux-tdep.c: Fix indentation.
276 * frv-tdep.c: Fix indentation.
277 * frv-tdep.h: Fix indentation.
278 * ft32-tdep.c: Fix indentation.
279 * gcore.c: Fix indentation.
280 * gdb_bfd.c: Fix indentation.
281 * gdbarch.sh: Fix indentation.
282 * gdbarch.c: Re-generate
283 * gdbarch.h: Re-generate.
284 * gdbcore.h: Fix indentation.
285 * gdbthread.h: Fix indentation.
286 * gdbtypes.c: Fix indentation.
287 * gdbtypes.h: Fix indentation.
288 * glibc-tdep.c: Fix indentation.
289 * gnu-nat.c: Fix indentation.
290 * gnu-nat.h: Fix indentation.
291 * gnu-v2-abi.c: Fix indentation.
292 * gnu-v3-abi.c: Fix indentation.
293 * go32-nat.c: Fix indentation.
294 * guile/guile-internal.h: Fix indentation.
295 * guile/scm-cmd.c: Fix indentation.
296 * guile/scm-frame.c: Fix indentation.
297 * guile/scm-iterator.c: Fix indentation.
298 * guile/scm-math.c: Fix indentation.
299 * guile/scm-ports.c: Fix indentation.
300 * guile/scm-pretty-print.c: Fix indentation.
301 * guile/scm-value.c: Fix indentation.
302 * h8300-tdep.c: Fix indentation.
303 * hppa-linux-nat.c: Fix indentation.
304 * hppa-linux-tdep.c: Fix indentation.
305 * hppa-nbsd-nat.c: Fix indentation.
306 * hppa-nbsd-tdep.c: Fix indentation.
307 * hppa-obsd-nat.c: Fix indentation.
308 * hppa-tdep.c: Fix indentation.
309 * hppa-tdep.h: Fix indentation.
310 * i386-bsd-nat.c: Fix indentation.
311 * i386-darwin-nat.c: Fix indentation.
312 * i386-darwin-tdep.c: Fix indentation.
313 * i386-dicos-tdep.c: Fix indentation.
314 * i386-gnu-nat.c: Fix indentation.
315 * i386-linux-nat.c: Fix indentation.
316 * i386-linux-tdep.c: Fix indentation.
317 * i386-nto-tdep.c: Fix indentation.
318 * i386-obsd-tdep.c: Fix indentation.
319 * i386-sol2-nat.c: Fix indentation.
320 * i386-tdep.c: Fix indentation.
321 * i386-tdep.h: Fix indentation.
322 * i386-windows-tdep.c: Fix indentation.
323 * i387-tdep.c: Fix indentation.
324 * i387-tdep.h: Fix indentation.
325 * ia64-libunwind-tdep.c: Fix indentation.
326 * ia64-libunwind-tdep.h: Fix indentation.
327 * ia64-linux-nat.c: Fix indentation.
328 * ia64-linux-tdep.c: Fix indentation.
329 * ia64-tdep.c: Fix indentation.
330 * ia64-tdep.h: Fix indentation.
331 * ia64-vms-tdep.c: Fix indentation.
332 * infcall.c: Fix indentation.
333 * infcmd.c: Fix indentation.
334 * inferior.c: Fix indentation.
335 * infrun.c: Fix indentation.
336 * iq2000-tdep.c: Fix indentation.
337 * language.c: Fix indentation.
338 * linespec.c: Fix indentation.
339 * linux-fork.c: Fix indentation.
340 * linux-nat.c: Fix indentation.
341 * linux-tdep.c: Fix indentation.
342 * linux-thread-db.c: Fix indentation.
343 * lm32-tdep.c: Fix indentation.
344 * m2-lang.c: Fix indentation.
345 * m2-typeprint.c: Fix indentation.
346 * m2-valprint.c: Fix indentation.
347 * m32c-tdep.c: Fix indentation.
348 * m32r-linux-tdep.c: Fix indentation.
349 * m32r-tdep.c: Fix indentation.
350 * m68hc11-tdep.c: Fix indentation.
351 * m68k-bsd-nat.c: Fix indentation.
352 * m68k-linux-nat.c: Fix indentation.
353 * m68k-linux-tdep.c: Fix indentation.
354 * m68k-tdep.c: Fix indentation.
355 * machoread.c: Fix indentation.
356 * macrocmd.c: Fix indentation.
357 * macroexp.c: Fix indentation.
358 * macroscope.c: Fix indentation.
359 * macrotab.c: Fix indentation.
360 * macrotab.h: Fix indentation.
361 * main.c: Fix indentation.
362 * mdebugread.c: Fix indentation.
363 * mep-tdep.c: Fix indentation.
364 * mi/mi-cmd-catch.c: Fix indentation.
365 * mi/mi-cmd-disas.c: Fix indentation.
366 * mi/mi-cmd-env.c: Fix indentation.
367 * mi/mi-cmd-stack.c: Fix indentation.
368 * mi/mi-cmd-var.c: Fix indentation.
369 * mi/mi-cmds.c: Fix indentation.
370 * mi/mi-main.c: Fix indentation.
371 * mi/mi-parse.c: Fix indentation.
372 * microblaze-tdep.c: Fix indentation.
373 * minidebug.c: Fix indentation.
374 * minsyms.c: Fix indentation.
375 * mips-linux-nat.c: Fix indentation.
376 * mips-linux-tdep.c: Fix indentation.
377 * mips-nbsd-tdep.c: Fix indentation.
378 * mips-tdep.c: Fix indentation.
379 * mn10300-linux-tdep.c: Fix indentation.
380 * mn10300-tdep.c: Fix indentation.
381 * moxie-tdep.c: Fix indentation.
382 * msp430-tdep.c: Fix indentation.
383 * namespace.h: Fix indentation.
384 * nat/fork-inferior.c: Fix indentation.
385 * nat/gdb_ptrace.h: Fix indentation.
386 * nat/linux-namespaces.c: Fix indentation.
387 * nat/linux-osdata.c: Fix indentation.
388 * nat/netbsd-nat.c: Fix indentation.
389 * nat/x86-dregs.c: Fix indentation.
390 * nbsd-nat.c: Fix indentation.
391 * nbsd-tdep.c: Fix indentation.
392 * nios2-linux-tdep.c: Fix indentation.
393 * nios2-tdep.c: Fix indentation.
394 * nto-procfs.c: Fix indentation.
395 * nto-tdep.c: Fix indentation.
396 * objfiles.c: Fix indentation.
397 * objfiles.h: Fix indentation.
398 * opencl-lang.c: Fix indentation.
399 * or1k-tdep.c: Fix indentation.
400 * osabi.c: Fix indentation.
401 * osabi.h: Fix indentation.
402 * osdata.c: Fix indentation.
403 * p-lang.c: Fix indentation.
404 * p-typeprint.c: Fix indentation.
405 * p-valprint.c: Fix indentation.
406 * parse.c: Fix indentation.
407 * ppc-linux-nat.c: Fix indentation.
408 * ppc-linux-tdep.c: Fix indentation.
409 * ppc-nbsd-nat.c: Fix indentation.
410 * ppc-nbsd-tdep.c: Fix indentation.
411 * ppc-obsd-nat.c: Fix indentation.
412 * ppc-ravenscar-thread.c: Fix indentation.
413 * ppc-sysv-tdep.c: Fix indentation.
414 * ppc64-tdep.c: Fix indentation.
415 * printcmd.c: Fix indentation.
416 * proc-api.c: Fix indentation.
417 * producer.c: Fix indentation.
418 * producer.h: Fix indentation.
419 * prologue-value.c: Fix indentation.
420 * prologue-value.h: Fix indentation.
421 * psymtab.c: Fix indentation.
422 * python/py-arch.c: Fix indentation.
423 * python/py-bpevent.c: Fix indentation.
424 * python/py-event.c: Fix indentation.
425 * python/py-event.h: Fix indentation.
426 * python/py-finishbreakpoint.c: Fix indentation.
427 * python/py-frame.c: Fix indentation.
428 * python/py-framefilter.c: Fix indentation.
429 * python/py-inferior.c: Fix indentation.
430 * python/py-infthread.c: Fix indentation.
431 * python/py-objfile.c: Fix indentation.
432 * python/py-prettyprint.c: Fix indentation.
433 * python/py-registers.c: Fix indentation.
434 * python/py-signalevent.c: Fix indentation.
435 * python/py-stopevent.c: Fix indentation.
436 * python/py-stopevent.h: Fix indentation.
437 * python/py-threadevent.c: Fix indentation.
438 * python/py-tui.c: Fix indentation.
439 * python/py-unwind.c: Fix indentation.
440 * python/py-value.c: Fix indentation.
441 * python/py-xmethods.c: Fix indentation.
442 * python/python-internal.h: Fix indentation.
443 * python/python.c: Fix indentation.
444 * ravenscar-thread.c: Fix indentation.
445 * record-btrace.c: Fix indentation.
446 * record-full.c: Fix indentation.
447 * record.c: Fix indentation.
448 * reggroups.c: Fix indentation.
449 * regset.h: Fix indentation.
450 * remote-fileio.c: Fix indentation.
451 * remote.c: Fix indentation.
452 * reverse.c: Fix indentation.
453 * riscv-linux-tdep.c: Fix indentation.
454 * riscv-ravenscar-thread.c: Fix indentation.
455 * riscv-tdep.c: Fix indentation.
456 * rl78-tdep.c: Fix indentation.
457 * rs6000-aix-tdep.c: Fix indentation.
458 * rs6000-lynx178-tdep.c: Fix indentation.
459 * rs6000-nat.c: Fix indentation.
460 * rs6000-tdep.c: Fix indentation.
461 * rust-lang.c: Fix indentation.
462 * rx-tdep.c: Fix indentation.
463 * s12z-tdep.c: Fix indentation.
464 * s390-linux-tdep.c: Fix indentation.
465 * score-tdep.c: Fix indentation.
466 * ser-base.c: Fix indentation.
467 * ser-mingw.c: Fix indentation.
468 * ser-uds.c: Fix indentation.
469 * ser-unix.c: Fix indentation.
470 * serial.c: Fix indentation.
471 * sh-linux-tdep.c: Fix indentation.
472 * sh-nbsd-tdep.c: Fix indentation.
473 * sh-tdep.c: Fix indentation.
474 * skip.c: Fix indentation.
475 * sol-thread.c: Fix indentation.
476 * solib-aix.c: Fix indentation.
477 * solib-darwin.c: Fix indentation.
478 * solib-frv.c: Fix indentation.
479 * solib-svr4.c: Fix indentation.
480 * solib.c: Fix indentation.
481 * source.c: Fix indentation.
482 * sparc-linux-tdep.c: Fix indentation.
483 * sparc-nbsd-tdep.c: Fix indentation.
484 * sparc-obsd-tdep.c: Fix indentation.
485 * sparc-ravenscar-thread.c: Fix indentation.
486 * sparc-tdep.c: Fix indentation.
487 * sparc64-linux-tdep.c: Fix indentation.
488 * sparc64-nbsd-tdep.c: Fix indentation.
489 * sparc64-obsd-tdep.c: Fix indentation.
490 * sparc64-tdep.c: Fix indentation.
491 * stabsread.c: Fix indentation.
492 * stack.c: Fix indentation.
493 * stap-probe.c: Fix indentation.
494 * stubs/ia64vms-stub.c: Fix indentation.
495 * stubs/m32r-stub.c: Fix indentation.
496 * stubs/m68k-stub.c: Fix indentation.
497 * stubs/sh-stub.c: Fix indentation.
498 * stubs/sparc-stub.c: Fix indentation.
499 * symfile-mem.c: Fix indentation.
500 * symfile.c: Fix indentation.
501 * symfile.h: Fix indentation.
502 * symmisc.c: Fix indentation.
503 * symtab.c: Fix indentation.
504 * symtab.h: Fix indentation.
505 * target-float.c: Fix indentation.
506 * target.c: Fix indentation.
507 * target.h: Fix indentation.
508 * tic6x-tdep.c: Fix indentation.
509 * tilegx-linux-tdep.c: Fix indentation.
510 * tilegx-tdep.c: Fix indentation.
511 * top.c: Fix indentation.
512 * tracefile-tfile.c: Fix indentation.
513 * tracepoint.c: Fix indentation.
514 * tui/tui-disasm.c: Fix indentation.
515 * tui/tui-io.c: Fix indentation.
516 * tui/tui-regs.c: Fix indentation.
517 * tui/tui-stack.c: Fix indentation.
518 * tui/tui-win.c: Fix indentation.
519 * tui/tui-winsource.c: Fix indentation.
520 * tui/tui.c: Fix indentation.
521 * typeprint.c: Fix indentation.
522 * ui-out.h: Fix indentation.
523 * unittests/copy_bitwise-selftests.c: Fix indentation.
524 * unittests/memory-map-selftests.c: Fix indentation.
525 * utils.c: Fix indentation.
526 * v850-tdep.c: Fix indentation.
527 * valarith.c: Fix indentation.
528 * valops.c: Fix indentation.
529 * valprint.c: Fix indentation.
530 * valprint.h: Fix indentation.
531 * value.c: Fix indentation.
532 * value.h: Fix indentation.
533 * varobj.c: Fix indentation.
534 * vax-tdep.c: Fix indentation.
535 * windows-nat.c: Fix indentation.
536 * windows-tdep.c: Fix indentation.
537 * xcoffread.c: Fix indentation.
538 * xml-syscall.c: Fix indentation.
539 * xml-tdesc.c: Fix indentation.
540 * xstormy16-tdep.c: Fix indentation.
541 * xtensa-config.c: Fix indentation.
542 * xtensa-linux-nat.c: Fix indentation.
543 * xtensa-linux-tdep.c: Fix indentation.
544 * xtensa-tdep.c: Fix indentation.
545
546 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
547 Craig Blackmore <craig.blackmore@embecosm.com>
548
549 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
550 as an unsigned value.
551
552 2020-11-01 Tom Tromey <tom@tromey.com>
553
554 * dbxread.c (dbx_end_psymtab): Update.
555 * dwarf2/read.c (process_psymtab_comp_unit_reader)
556 (build_type_psymtabs_reader): Update.
557 * xcoffread.c (xcoff_end_psymtab): Update.
558 * ctfread.c (scan_partial_symbols): Update.
559 * psymtab.c (sort_pst_symbols): Remove.
560 (partial_symtab::end): Rename from end_psymtab_common. Inline
561 sort_pst_symbols.
562 * psympriv.h (struct partial_symtab) <end>: New method.
563 (end_psymtab_common): Don't declare.
564
565 2020-11-01 Tom Tromey <tom@tromey.com>
566
567 * symmisc.c (count_psyms): New function.
568 (print_objfile_statistics): Use it.
569 * psymtab.c (append_psymbol_to_list): Remove.
570 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
571 * objfiles.h (struct objstats) <n_psyms>: Remove.
572
573 2020-11-01 Tom Tromey <tom@tromey.com>
574
575 * dbxread.c (dbx_end_psymtab): Update.
576 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
577 (build_type_psymtabs_reader): Update.
578 * xcoffread.c (xcoff_end_psymtab): Update.
579 * ctfread.c (scan_partial_symbols): Update.
580 * psympriv.h (end_psymtab_common): Update.
581 * psymtab.c (end_psymtab_common): Remove objfile parameter.
582 (sort_pst_symbols): Likewise.
583
584 2020-11-01 Tom Tromey <tom@tromey.com>
585
586 * dbxread.c (dbx_symfile_read): Update.
587 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
588 * xcoffread.c (xcoff_initial_scan): Update.
589 * psympriv.h (init_psymbol_list): Don't declare.
590 * psymtab.c (init_psymbol_list): Remove.
591
592 2020-11-01 Joel Brobecker <brobecker@adacore.com>
593
594 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
595 gnat_encoded_fixed_type_info. Update all callers.
596
597 2020-11-01 Joel Brobecker <brobecker@adacore.com>
598
599 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
600 line too long.
601
602 2020-11-01 Joel Brobecker <brobecker@adacore.com>
603
604 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
605 cast_from_fixed. Update all callers.
606 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
607 Update all callers.
608 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
609 Update all callers.
610 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
611 ada_scaling_factor.
612 * ada-typeprint.c: Replace call to ada_scaling_factor by call
613 to print_gnat_encoded_fixed_point_type.
614 * ada-valprint.c: Likewise.
615
616 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
617
618 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
619 (debug_prefixed_printf): Add check of debug_displaced flag.
620 * linux-nat.c (linux_nat_debug_printf): Add check of
621 debug_linux_nat flag.
622
623 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
624
625 * infrun.c (infrun_debug_printf_1): Remove.
626 (displaced_debug_printf_1): Remove.
627 (stop_all_threads): Use debug_prefixed_printf.
628 * infrun.h (infrun_debug_printf_1): Remove.
629 (infrun_debug_printf): Use debug_prefixed_printf.
630 (displaced_debug_printf_1): Remove.
631 (displaced_debug_printf): Use debug_prefixed_printf.
632 * linux-nat.c (linux_nat_debug_printf_1): Remove.
633 (linux_nat_debug_printf): Use debug_prefixed_printf.
634
635 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
636
637 * configure: Re-generate.
638 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
639 AC_LANG_PROGRAM.
640
641 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
642
643 * configure: Re-generate.
644
645 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
646
647 * configure: Re-generate.
648
649 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
650
651 * configure: Re-generate.
652
653 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
654
655 * configure: Re-generate.
656
657 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
658
659 * acinclude.m4: Modernize.
660 * configure: Re-generate.
661
662 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
663
664 * configure.ac: Modernize.
665 * configure: Re-generate.
666
667 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
668
669 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
670 * configure: Re-generate.
671 * configure.ac: Remove AM_PROG_CC_STDC.
672
673 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
674
675 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
676 AC_CANONICAL_SYSTEM.
677 * configure: Re-generate.
678
679 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
680
681 * infrun.h (displaced_debug_printf): New macro. Replace
682 displaced debug prints throughout to use it.
683 (displaced_debug_printf_1): New declaration.
684 (displaced_step_dump_bytes): Return string, remove ui_file
685 parameter, update all callers.
686 * infrun.c (displaced_debug_printf_1): New function.
687 (displaced_step_dump_bytes): Return string, remove ui_file
688 parameter
689
690 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
691
692 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
693
694 2020-10-30 Tom Tromey <tromey@adacore.com>
695
696 * Makefile.in (stamp-init): Depend on config.status.
697
698 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
699
700 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
701
702 2020-10-30 Pedro Alves <pedro@palves.net>
703
704 * thread.c (lookup_selected_frame): Move ...
705 * frame.c (lookup_selected_frame): ... here.
706
707 2020-10-30 Pedro Alves <pedro@palves.net>
708
709 * blockframe.c (block_innermost_frame): Use get_selected_frame.
710 * frame.c
711 (scoped_restore_selected_frame::scoped_restore_selected_frame):
712 Use save_selected_frame. Save language as well.
713 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
714 Use restore_selected_frame, and restore language as well.
715 (selected_frame_id, selected_frame_level): New.
716 (selected_frame): Update comments.
717 (save_selected_frame, restore_selected_frame): New.
718 (get_selected_frame): Use lookup_selected_frame.
719 (get_selected_frame_if_set): Delete.
720 (select_frame): Record selected_frame_level and selected_frame_id.
721 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
722 fields.
723 (get_selected_frame): Make 'message' parameter optional.
724 (get_selected_frame_if_set): Delete declaration.
725 (select_frame): Update comments.
726 (save_selected_frame, restore_selected_frame)
727 (lookup_selected_frame): Declare.
728 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
729 * infrun.c (struct infcall_control_state) <selected_frame_level>:
730 New field.
731 (save_infcall_control_state): Use save_selected_frame.
732 (restore_selected_frame): Delete.
733 (restore_infcall_control_state): Use restore_selected_frame.
734 * stack.c (select_frame_command_core, frame_command_core): Use
735 get_selected_frame.
736 * thread.c (restore_selected_frame): Rename to ...
737 (lookup_selected_frame): ... this and make extern. Select the
738 current frame if the frame level is -1.
739 (scoped_restore_current_thread::restore): Also restore the
740 language.
741 (scoped_restore_current_thread::~scoped_restore_current_thread):
742 Don't try/catch.
743 (scoped_restore_current_thread::scoped_restore_current_thread):
744 Save the language as well. Use save_selected_frame.
745
746 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
747
748 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
749 documentation.
750 * gdbarch.h: Re-generate.
751
752 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
753
754 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
755 parameter.
756 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
757 Likewise.
758 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
759 Likewise.
760 * arch-utils.c (default_displaced_step_hw_singlestep):
761 Likewise.
762 * arch-utils.h (default_displaced_step_hw_singlestep):
763 Likewise.
764 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
765 Likewise.
766 * s390-tdep.c (s390_displaced_step_hw_singlestep):
767 Likewise.
768 * gdbarch.c: Re-generate.
769 * gdbarch.h: Re-generate.
770 * infrun.c (resume_1): Adjust.
771
772 2020-10-29 Tom Tromey <tom@tromey.com>
773
774 * progspace.c (program_space::~program_space): Don't call
775 exec_close.
776
777 2020-10-29 Tom Tromey <tom@tromey.com>
778
779 * exec.c (exec_target::close): Don't change current program
780 space.
781
782 2020-10-29 Tom Tromey <tom@tromey.com>
783
784 * symfile.c (add_symbol_file_command): Update.
785 * exec.c (program_space::add_target_sections): Rename.
786 * symfile-mem.c (symbol_file_add_from_memory): Update.
787 * progspace.h (struct program_space) <add_target_sections>:
788 Declare new overload.
789 * exec.h (add_target_sections_of_objfile): Don't declare.
790
791 2020-10-29 Tom Tromey <tom@tromey.com>
792
793 * solib.c (solib_map_sections): Update.
794 * exec.c (program_space::add_target_sections): Now a method.
795 (exec_file_attach): Update.
796 * exec.h (add_target_sections): Don't declare.
797 * progspace.h (struct program_space) <add_target_sections>:
798 Declare.
799
800 2020-10-29 Tom Tromey <tom@tromey.com>
801
802 * progspace.h (struct program_space) <remove_target_sections>:
803 Declare.
804 * exec.c (program_space::remove_target_sections): Now a method.
805 * exec.h (remove_target_sections): Don't declare.
806
807 2020-10-29 Tom Tromey <tom@tromey.com>
808
809 * inferior.c (delete_inferior): Update.
810 * progspace.c (program_space::empty): Rename from
811 program_space_empty_p. Return bool.
812 * progspace.h (struct program_space) <empty>: New method.
813 (program_space_empty_p): Don't declare.
814
815 2020-10-29 Tom Tromey <tom@tromey.com>
816
817 * progspace.c (program_space::~program_space): Don't call
818 clear_program_space_solib_cache.
819 (program_space::clear_solib_cache): Rename from
820 clear_solib_cache.
821 * solib.c (handle_solib_event): Update.
822 * progspace.h (struct program_space) <clear_solib_cache>: New
823 method.
824 (clear_program_space_solib_cache): Don't declare.
825
826 2020-10-29 Tom Tromey <tom@tromey.com>
827
828 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
829 * target.c (info_target_command): Update.
830 * symfile.c (syms_from_objfile_1, finish_new_objfile)
831 (symbol_file_clear, reread_symbols): Update.
832 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
833 * stabsread.c (scan_file_globals): Update.
834 * solib.c (update_solib_list): Update.
835 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
836 (svr4_fetch_objfile_link_map, enable_break)
837 (svr4_relocate_main_executable)
838 (svr4_iterate_over_objfiles_in_search_order): Update.
839 * solib-frv.c (lm_base, enable_break)
840 (frv_relocate_main_executable): Update.
841 (main_got, frv_fdpic_find_canonical_descriptor): Update.
842 (frv_fetch_objfile_link_map): Update.
843 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
844 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
845 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
846 * remote.c (remote_target::get_offsets): Update.
847 (remote_target::start_remote)
848 (extended_remote_target::post_attach): Update.
849 * objfiles.c (entry_point_address_query): Update.
850 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
851 * minsyms.c (get_symbol_leading_char): Update.
852 * frame.c (inside_main_func): Update.
853 * progspace.h (symfile_objfile): Remove macro.
854
855 2020-10-29 Tom Tromey <tom@tromey.com>
856
857 * exec.c (exec_file_attach): Update.
858 * progspace.c (program_space::exec_close): Update.
859 * progspace.h (struct program_space) <ebfd>: Now a
860 gdb_bfd_ref_ptr.
861 <set_exec_bfd>: Change argument type.
862 <exec_bfd>: Update.
863
864 2020-10-29 Tom Tromey <tom@tromey.com>
865
866 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
867 * symfile.c (reread_symbols): Update.
868 * symfile-mem.c (add_symbol_file_from_memory_command)
869 (add_vsyscall_page): Update.
870 * source-cache.c (source_cache::get_plain_source_lines): Update.
871 * solib-svr4.c (find_program_interpreter, elf_locate_base)
872 (svr4_current_sos_direct, svr4_exec_displacement)
873 (svr4_relocate_main_executable): Update.
874 (svr4_iterate_over_objfiles_in_search_order): Update.
875 * solib-frv.c (enable_break2, enable_break): Update.
876 * solib-dsbt.c (lm_base, enable_break): Update.
877 * solib-darwin.c (find_program_interpreter)
878 (darwin_solib_create_inferior_hook): Update.
879 * sol-thread.c (rw_common, ps_pdmodel): Update.
880 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
881 * remote.c (compare_sections_command)
882 (remote_target::trace_set_readonly_regions): Update.
883 * remote-sim.c (get_sim_inferior_data)
884 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
885 (gdbsim_target_open, gdbsim_target::files_info): Update.
886 * exec.h (exec_bfd): Remove macro.
887 * progspace.c (initialize_progspace): Update.
888 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
889 Update.
890 * nto-procfs.c (nto_procfs_target::post_attach)
891 (nto_procfs_target::create_inferior): Update.
892 * maint.c (maintenance_info_sections): Update.
893 * linux-thread-db.c (thread_db_target::get_thread_local_address):
894 Update.
895 * infcmd.c (post_create_inferior): Update.
896 * gcore.c (default_gcore_arch, default_gcore_target): Update.
897 (objfile_find_memory_regions): Update.
898 * exec.c (validate_exec_file, exec_file_attach)
899 (exec_read_partial_read_only, print_section_info): Update.
900 * corelow.c (core_target_open): Update.
901 * corefile.c (reopen_exec_file, validate_files): Update.
902 * arm-tdep.c (gdb_print_insn_arm): Update.
903 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
904 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
905 methods.
906
907 2020-10-29 Tom Tromey <tom@tromey.com>
908
909 * progspace.h (current_target_sections): Remove macro.
910 * solib-svr4.c (scan_dyntag): Update.
911 * solib-dsbt.c (scan_dyntag): Update.
912 * exec.c (exec_target::close): Update.
913 (add_target_sections, add_target_sections_of_objfile)
914 (remove_target_sections, exec_target::get_section_table)
915 (exec_target::files_info, set_section_command)
916 (exec_set_section_address, exec_target::has_memory)
917 (exec_target::has_memory): Update.
918
919 2020-10-29 Tom Tromey <tom@tromey.com>
920
921 * source-cache.c (source_cache::get_plain_source_lines): Use
922 current_program_space.
923 * corefile.c (reopen_exec_file): Use current_program_space.
924 * exec.c (exec_file_attach): Use current_program_space.
925 * exec.h (exec_bfd_mtime): Remove.
926
927 2020-10-29 Tom Tromey <tom@tromey.com>
928
929 * gcore.c (default_gcore_mach): Remove.
930 (create_gcore_bfd): Update.
931
932 2020-10-29 Tom Tromey <tom@tromey.com>
933
934 * progspace.c (program_space::exec_close): New method, from
935 exec_close in exec.c.
936 * exec.c (exec_close): Move to progspace.c.
937 (exec_target::close, exec_file_attach): Update.
938 * progspace.h (struct program_space) <exec_close>: Declare
939 method.
940
941 2020-10-29 Tom Tromey <tom@tromey.com>
942
943 * progspace.h (struct program_space) <exec_filename>: Rename from
944 pspace_exec_filename. Now a unique_xmalloc_ptr.
945 * inferior.c (print_selected_inferior): Update.
946 (print_inferior): Update.
947 * mi/mi-main.c (print_one_inferior): Update.
948 * exec.h (exec_filename): Remove macro.
949 * corefile.c (get_exec_file): Update.
950 * exec.c (exec_close): Update.
951 (exec_file_attach): Update.
952 * progspace.c (clone_program_space): Update.
953 (print_program_space): Update.
954
955 2020-10-29 Tom Tromey <tom@tromey.com>
956
957 * target-section.h (struct target_section): Add constructor.
958 * exec.c (build_section_table, add_target_sections_of_objfile):
959 Update.
960 * corelow.c (core_target::build_file_mappings): Update.
961
962 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
963
964 PR gdb/19318
965 * inferior.c (detach_inferior_command): Restore the current thread.
966 (kill_inferior_command): Ditto.
967
968 2020-10-28 Tom de Vries <tdevries@suse.de>
969
970 PR symtab/26772
971 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
972 map, check it in the "best match" loop.
973
974 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
975
976 * m32c-tdep.c: Remove unused includes.
977
978 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
979
980 * xtensa-tdep.c: Remove includes.
981
982 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
983
984 * breakpoint.c (struct condition_command_opts): New struct.
985 (condition_command_option_defs): New static global.
986 (make_condition_command_options_def_group): New function.
987 (condition_completer): Update to consider the '-force' flag.
988 (condition_command): Use gdb::option for the '-force' flag.
989
990 2020-10-27 Tom de Vries <tdevries@suse.de>
991
992 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
993 symbols in section check.
994
995 2020-10-27 Tom de Vries <tdevries@suse.de>
996
997 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
998
999 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1000
1001 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1002 * breakpoint.c: Update the help text of the 'condition' and 'break'
1003 commands.
1004 (set_breakpoint_condition): Take a new bool parameter
1005 to control whether condition definition should be forced even when
1006 the condition expression is invalid in all of the current locations.
1007 (condition_command): Update the call to 'set_breakpoint_condition'.
1008 (find_condition_and_thread): Take the "-force-condition" flag into
1009 account.
1010 * linespec.c (linespec_keywords): Add "-force-condition" as an
1011 element.
1012 (FORCE_KEYWORD_INDEX): New #define.
1013 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1014 as a keyword.
1015 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1016 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1017 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1018 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1019
1020 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1021
1022 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1023 * breakpoint.c (set_breakpoint_location_condition): New function.
1024 (set_breakpoint_condition): Disable a breakpoint location if parsing
1025 the condition string gives an error.
1026 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1027 (build_target_condition_list): Ditto.
1028 (build_target_command_list): Ditto.
1029 (build_bpstat_chain): Ditto.
1030 (print_one_breakpoint_location): Ditto.
1031 (print_one_breakpoint): Ditto.
1032 (breakpoint_1): Ditto.
1033 (bp_location::bp_location): Ditto.
1034 (locations_are_equal): Ditto.
1035 (update_breakpoint_locations): Ditto.
1036 (enable_disable_bp_num_loc): Ditto.
1037 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1038 (find_condition_and_thread_for_sals): New static function.
1039 (create_breakpoint): Call find_condition_and_thread_for_sals.
1040 (location_to_sals): Call find_condition_and_thread_for_sals instead
1041 of find_condition_and_thread.
1042
1043 2020-10-26 Tom de Vries <tdevries@suse.de>
1044
1045 * dwarf2/read.c (process_full_comp_unit): Call
1046 dwarf2_find_base_address.
1047
1048 2020-10-26 Tom Tromey <tromey@adacore.com>
1049
1050 * gdbtypes.c (create_range_type): Revert previous patch. Add
1051 comment.
1052
1053 2020-10-26 Pedro Alves <pedro@palves.net>
1054
1055 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1056 (my_waitpid): Use gdb::handle_eintr.
1057
1058 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1059
1060 * acinclude.m4: Update ptrace.m4 path.
1061 * ptrace.m4: Moved to gdbsupport.
1062
1063 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1064
1065 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1066 instead of target_gdbarch.
1067
1068 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1069
1070 * jit.c (jit_reader_load_command): Pass current inferior.
1071 (jit_inferior_init): Change parameter type to inferior, use it.
1072 (jit_inferior_created): Remove.
1073 (jit_inferior_created_hook): Pass inferior parameter down.
1074 (_initialize_jit): Use jit_inferior_created_hook instead of
1075 jit_inferior_created.
1076 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1077 * infrun.c (follow_exec): Pass inferior to
1078 jit_inferior_created_hook.
1079
1080 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1081
1082 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1083 parameter and use it.
1084 (thread_db_inferior_created): Pass inferior argument.
1085
1086 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1087
1088 * aix-thread.c (aix_thread_inferior_created): Add inferior
1089 parameter.
1090 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1091 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1092 * jit.c (jit_inferior_created): Likewise.
1093 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1094 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1095 * observable.h (inferior_created): Likewise.
1096 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1097 * symfile-mem.c (add_vsyscall_page): Likewise.
1098 * infcmd.c (post_create_inferior): Pass inferior argument.
1099
1100 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1101
1102 GDB 10.1 released.
1103
1104 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1105
1106 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1107 to ada_check_typedef.
1108
1109 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1110
1111 * f-exp.y (f_parse): Rename to...
1112 (f_language::parser): ...this.
1113 * f-lang.c (f_get_encoding): Rename to...
1114 (f_language::get_encoding): ...this.
1115 (f_op_print_tab): Rename to...
1116 (f_language::op_print_tab): ...this.
1117 (exp_descriptor_f): Rename to...
1118 (f_language::exp_descriptor_tab): ...this.
1119 (class f_language): Moved to f-lang.h.
1120 (f_language::language_arch_info): New function, moved out of class
1121 declaration.
1122 (f_language::search_name_hash): Likewise.
1123 (f_language::lookup_symbol_nonlocal): Likewise.
1124 (f_language::get_symbol_name_matcher_inner): Likewise.
1125 * f-lang.h: Add 'valprint.h' include.
1126 (class f_language): Moved here from f-lang.c.
1127 * f-typeprint.c (f_type_print_args): Delete commented out
1128 declaration.
1129 (f_print_typedef): Rename to...
1130 (f_language::print_typedef): ...this.
1131 (f_print_type): Rename to...
1132 (f_language::print_type): ...this.
1133 (f_type_print_varspec_prefix): Delete declaration and rename to...
1134 (f_language::f_type_print_varspec_prefix): ...this.
1135 (f_type_print_varspec_suffix): Delete declaration and rename to...
1136 (f_language::f_type_print_varspec_suffix): ...this.
1137 (f_type_print_base): Delete declaration and rename to...
1138 (f_language::f_type_print_base): ...this.
1139 * f-valprint.c (f_value_print_inner): Rename to...
1140 (f_language::value_print_inner): ...this.
1141 * parse.c: Delete 'f-lang.h' include.
1142
1143 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1144
1145 * language.h (language_defn::print_type): Add variable names in
1146 declaration, and update header comment.
1147
1148 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * ada-lang.c (ada_language::demangle): Rename to...
1151 (ada_language::demangle_symbol): ...this.
1152 * c-lang.c (cplus_language::demangle): Rename to...
1153 (cplus_language::demangle_symbol): ...this.
1154 * d-lang.c (d_language::demangle): Rename to...
1155 (d_language::demangle_symbol): ...this.
1156 * f-lang.c (f_language::demangle): Rename to...
1157 (f_language::demangle_symbol): ...this.
1158 * go-lang.c (go_language::demangle): Rename to...
1159 (go_language::demangle_symbol): ...this.
1160 * language.c (language_demangle): Update call to demangle_symbol.
1161 (auto_or_unknown_language::demangle): Rename to...
1162 (auto_or_unknown_language::demangle_symbol): ...this.
1163 * language.h (language_defn::demangle): Rename to...
1164 (language_defn::demangle_symbol): ...this.
1165 * objc-lang.c (objc_language::demangle): Rename to...
1166 (objc_language::demangle_symbol): ...this.
1167 * rust-lang.c (rust_language::demangle): Rename to...
1168 (rust_language::demangle_symbol): ...this.
1169
1170 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1173 (iterate_over_file_blocks): Replace use of macro with the macros
1174 definition.
1175
1176 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1179 * valprint.c (maybe_print_array_index): Replace use of macro with
1180 the macros definition.
1181
1182 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1183
1184 * ada-lang.c (ada_language::print_array_index): Call value_print
1185 directly.
1186 * language.c (language_defn::print_array_index): Likewise.
1187 * language.h (LA_VALUE_PRINT): Delete.
1188 * valprint.c (value_print): Call value_print on the
1189 current_language directly.
1190
1191 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1192
1193 * language.h (LA_PRINT_TYPEDEF): Delete.
1194 * typeprint.c (typedef_print): Call print_typedef directly on the
1195 current_language object.
1196
1197 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * m2-exp.y (m2_parse): Rename to...
1200 (m2_language::parser): ...this. Update function signature.
1201 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1202 (m2_op_print): Rename to...
1203 (m2_language::op_print_tab): ...this, and make const.
1204 (exp_descriptor_modula2): Rename to...
1205 (m2_language::exp_descriptor_modula2): ...this.
1206 (class m2_language): Move to m2-lang.h.
1207 (m2_language::language_arch_info): New function, moved out of
1208 class declaration.
1209 (m2_language::printchar): New function, body from m2_printchar.
1210 (m2_language::printstr): New function, moved out of class
1211 declaration.
1212 (m2_language::emitchar): Likewise.
1213 * m2-lang.h (m2_parse): Delete declaration.
1214 (m2_print_typedef): Delete declaration.
1215 (m2_value_print_inner): Delete declaration.
1216 (class m2_language): Class declaration moved from m2-lang.c,
1217 larger functions are left in m2-lang.c.
1218 * m2-typeprint.c (m2_print_typedef): Rename to...
1219 (m2_language::print_typedef): ...this, and update function
1220 signature.
1221 * m2-valprint.c (m2_value_print_inner): Rename to...
1222 (m2_language::value_print_inner): ...this, replace use of
1223 LA_PRINT_STRING with a direct call to printstr member function,
1224 and update recursive call.
1225
1226 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 * language.c (default_is_string_type_p): Delete, implementation
1229 moved into auto_or_unknown_language::is_string_type_p.
1230 (unk_op_print_tab): Moved into
1231 auto_or_unknown_language::opcode_print_table.
1232 (unknown_language_arch_info): Delete, implementation moved into
1233 auto_or_unknown_language::language_arch_info.
1234 (class auto_or_unknown_language): New class, member functions
1235 copied from unknown_language class, with some updates.
1236 (class unknown_language): Most member functions moved into
1237 auto_or_unknown_language class. Inherit from
1238 auto_or_unknown_language class.
1239 (class auto_language): Inherit from auto_or_unknown_language.
1240 Delete most member functions.
1241
1242 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1243
1244 * stabsread.c (read_member_functions): Remove gdb_assert.
1245
1246 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1247
1248 * gdbtypes.c (init_complex_type): Check target type name.
1249
1250 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1251
1252 * target-debug.h (target_debug_print_struct_target_ops_p):
1253 Remove.
1254 (target_debug_print_async_callback_ftype_p): Remove.
1255 (target_debug_print_struct_trace_state_variable_p): Remove.
1256 (target_debug_print_struct_traceframe_info_p): Remove.
1257 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1258 (target_debug_print_enum_btrace_format): Remove.
1259 (target_debug_print_enum_info_proc_what): Remove.
1260 (target_debug_print_thread_info_pp): Remove.
1261
1262 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1263
1264 * target.h (struct target_ops) <make_corefile_notes>:
1265 Change return type to unique pointer.
1266 * target.c (dummy_make_corefile_notes): Likewise.
1267 * exec.c (struct exec_target) <make_corefile_notes>:
1268 Likewise.
1269 (exec_target::make_corefile_notes): Likewise.
1270 * procfs.c (class procfs_target) <make_corefile_notes>:
1271 Likewise.
1272 (procfs_do_thread_registers): Adjust to unique pointer.
1273 (struct procfs_corefile_thread_data): Add constructor.
1274 <note_data>: Change type to unique pointer.
1275 (procfs_corefile_thread_callback): Adjust to unique pointer.
1276 (procfs_target::make_corefile_notes): Change return type to
1277 unique pointer.
1278 * target-delegates.c: Re-generate.
1279 * gcore.c (write_gcore_file_1): Adjust.
1280 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1281 New.
1282
1283 2020-10-22 Tom de Vries <tdevries@suse.de>
1284
1285 * block.c (find_block_in_blockvector): Make sure the returned block
1286 contains pc.
1287
1288 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1289
1290 PR gdb/26693
1291 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1292 parameter.
1293 (load_cu): Pass existing CU.
1294 (process_imported_unit_die): Likewise.
1295 (follow_die_offset): Likewise.
1296
1297 2020-10-22 Luis Machado <luis.machado@linaro.org>
1298
1299 * corelow.c (core_target::xfer_partial): Also check for an empty
1300 m_core_unavailable_mappings vector.
1301
1302 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1303
1304 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1305 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1306 * f-exp.y (arglist): Allow for a series of subranges.
1307 (subrange): Add cases for subranges with strides.
1308 * f-lang.c (value_f90_subarray): Catch use of array strides and
1309 throw an error.
1310 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1311
1312 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1313
1314 * expprint.c (print_subexp_standard): Change enum range_type to
1315 range_flag and rename variables to match.
1316 (dump_subexp_body_standard): Likewise.
1317 * expression.h (enum range_type): Rename to...
1318 (enum range_flag): ...this.
1319 (range_types): Rename to...
1320 (range_flags): ...this.
1321 * f-lang.c (value_f90_subarray): Change enum range_type to
1322 range_flag and rename variables to match.
1323 * parse.c (operator_length_standard): Likewise.
1324 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1325 range_type to range_flag.
1326 * rust-lang.c (rust_evaluate_funcall): Likewise.
1327 (rust_range): Likewise.
1328 (rust_compute_range): Likewise.
1329 (rust_subscript): Likewise.
1330
1331 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * expprint.c (print_subexp_standard): Update to reflect changes to
1334 enum range_type.
1335 (dump_subexp_body_standard): Likewise.
1336 * expression.h (enum range_type): Convert to a bit field enum, and
1337 make the enum unsigned.
1338 * f-exp.y (subrange): Update to reflect changes to enum
1339 range_type.
1340 * f-lang.c (value_f90_subarray): Likewise.
1341 * parse.c (operator_length_standard): Likewise.
1342 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1343 * rust-lang.c (rust_range): Likewise.
1344 (rust_compute_range): Likewise.
1345 (rust_subscript): Likewise.
1346
1347 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1348
1349 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1350 (displaced_step_in_progress): Fix comment.
1351
1352 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1353
1354 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1355 * gdbarch.c: Re-generate.
1356 * gdbarch.h: Re-generate.
1357 * gcore.c (write_gcore_file_1): Adjust.
1358 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1359 constructor.
1360 <note_data>: Change type to unique pointer.
1361 <abort_iteration>: Change type to bool.
1362 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1363 (fbsd_collect_thread_registers): Return void, adjust.
1364 (struct fbsd_corefile_thread_data): Add construtor.
1365 <note_data>: Change type to unique pointer.
1366 (fbsd_corefile_thread): Adjust.
1367 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1368 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1369 to unique pointer, adjust.
1370 (struct linux_collect_regset_section_cb_data): Add constructor.
1371 <note_data>: Change type to unique pointer.
1372 <abort_iteration>: Change type to bool.
1373 (linux_collect_thread_registers): Return void, adjust.
1374 (struct linux_corefile_thread_data): Add constructor.
1375 <note_data>: Change type to unique pointer.
1376 (linux_corefile_thread): Adjust.
1377 (linux_make_corefile_notes): Return unique pointer, adjust.
1378
1379 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1382 * gdbarch.c: Re-generate.
1383 * gdbarch.h: Re-generate.
1384 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1385 bool.
1386 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1387 Likewise.
1388 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1389 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1390 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1391 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1392
1393 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1394
1395 * gdbarch.sh: Make generated predicates return bool.
1396 * gdbarch.c: Re-generate.
1397 * gdbarch.h: Re-generate.
1398
1399 2020-10-20 Tom Tromey <tom@tromey.com>
1400
1401 * varobj-iter.h (struct varobj_item): Remove typedef.
1402
1403 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1404
1405 * infrun.c (currently_stepping): Change int to bool
1406 (maybe_software_singlestep): Likewise.
1407 (show_stop_on_solib_events): Likewise.
1408 (stepping_past_nonsteppable_watchpoint): Likewise.
1409 (displaced_step_in_progress_any_inferior): Likewise.
1410 (displaced_step_in_progress_thread): Likewise.
1411 (keep_going_stepped_thread): Likewise.
1412 (thread_still_needs_step_over): Likewise.
1413 (start_step_over): Likewise.
1414 (do_target_resume): Likewise.
1415 (resume_1): Likewise.
1416 (clear_proceed_status): Likewise.
1417 (thread_still_needs_step_over_bp): Likewise.
1418 (proceed): Likewise.
1419 (switch_back_to_stepped_thread): Likewise.
1420 (adjust_pc_after_break): Likewise.
1421 (stepped_in_from): Likewise.
1422 (handle_stop_requested): Likewise.
1423 (handle_syscall_event): Likewise.
1424 (handle_no_resumed): Likewise.
1425 (handle_inferior_event): Likewise.
1426 (finish_step_over): Likewise.
1427 (handle_signal_stop): Likewise.
1428 (process_event_stop_test): Likewise.
1429
1430 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1431
1432 * infrun.c (get_displaced_stepping_state): Fix comment.
1433
1434 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1435
1436 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1437
1438 2020-10-19 Tom Tromey <tromey@adacore.com>
1439
1440 PR tui/26719
1441 * tui/tui-winsource.h (struct tui_source_window_base)
1442 <refresh_window>: Rename from refresh_pad.
1443 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1444 Rename from refresh_pad.
1445 (tui_source_window_base::show_source_content)
1446 (tui_source_window_base::do_scroll_horizontal): Update.
1447
1448 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1449
1450 * thread.c (_initialize_thread): Fine-tune the help text of
1451 'info threads'.
1452
1453 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1454
1455 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1456
1457 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1458
1459 * breakpoint.c (handle_jit_event): Add an argument, change how
1460 `jit_event_handler` is called.
1461
1462 2020-10-17 Tom Tromey <tom@tromey.com>
1463
1464 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1465 (scan_xcoff_symtab): Update.
1466 * psymtab.h (class psymtab_storage) <global_psymbols,
1467 static_psymbols, current_global_psymbols,
1468 current_static_psymbols>: Remove.
1469 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1470 (match_partial_symbol, lookup_partial_symbol): Update.
1471 (print_partial_symbols): Change parameters.
1472 (dump_psymtab, recursively_search_psymtabs)
1473 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1474 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1475 (concat): Remove.
1476 (end_psymtab_common): Simplify.
1477 (append_psymbol_to_list): Change parameters.
1478 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1479 (init_psymbol_list): Simplify.
1480 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1481 * psympriv.h (struct partial_symtab) <empty>: New method.
1482 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1483 Remove.
1484 <global_psymbols, static_psymbols>: New members.
1485 <add_psymbol>: New methods.
1486 (add_psymbol_to_list): Don't declare.
1487 (psymbol_placement): Move earlier.
1488 * mdebugread.c (parse_partial_symbols): Update.
1489 (handle_psymbol_enumerators): Change parameters.
1490 (mdebug_expand_psymtab): Update.
1491 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1492 (add_partial_symbol): Update.
1493 * dwarf2/index-write.c (write_psymbols): Change parameters.
1494 (write_one_signatured_type): Update.
1495 (recursively_count_psymbols): Update.
1496 (recursively_write_psymbols): Update.
1497 (class debug_names) <recursively_write_psymbols>: Update.
1498 <write_psymbols>: Change parameters.
1499 <write_one_signatured_type>: Update.
1500 * dbxread.c (read_dbx_symtab): Update.
1501 (dbx_end_psymtab): Use partial_symtab::empty.
1502 * ctfread.c (struct ctf_context) <pst>: New member.
1503 (create_partial_symtab): Set it.
1504 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1505 (scan_partial_symbols): Use the psymtab's context. Update.
1506
1507 2020-10-17 Tom Tromey <tom@tromey.com>
1508
1509 * valprint.c (generic_value_print): Remove comment.
1510 * m2-valprint.c (m2_value_print_inner): Remove comment.
1511 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1512 type.
1513
1514 2020-10-17 Tom de Vries <tdevries@suse.de>
1515
1516 PR symtab/26317
1517 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1518 symbol main.
1519
1520 2020-10-14 Tom de Vries <tdevries@suse.de>
1521
1522 PR gdb/26733
1523 * solib.c (solib_contains_address_p): Handle
1524 'solib->sections == nullptr'.
1525
1526 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 PR gdb/26642
1529 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1530 target can't do async.
1531 * target.c (target_wait): Assert that we don't pass
1532 TARGET_WNOHANG to a target that can't async.
1533
1534 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1535
1536 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1537 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1538 * alpha-bsd-nat.c: Adjust include.
1539 * alpha-bsd-tdep.h: Adjust comment.
1540 * alpha-nbsd-tdep.c: Rename to ...
1541 * alpha-netbsd-tdep.c: ... this, adjust include.
1542 * amd64-nbsd-nat.c: Rename to ...
1543 * amd64-netbsd-nat.c: ... this, adjust include.
1544 * amd64-nbsd-tdep.c: Rename to ...
1545 * amd64-netbsd-tdep.c: ... this, adjust include.
1546 * amd64-tdep.h: Adjust include.
1547 * arm-nbsd-nat.c: Rename to ...
1548 * arm-netbsd-nat.c: ... this, adjust include.
1549 * arm-nbsd-tdep.c: Rename to ...
1550 * arm-netbsd-tdep.c: ... this, adjust include.
1551 * arm-nbsd-tdep.h: Rename to ...
1552 * arm-netbsd-tdep.h: ... this, adjust include.
1553 * configure.nat: Adjust file lists.
1554 * configure.tgt: Likewise.
1555 * hppa-nbsd-nat.c: Rename to ...
1556 * hppa-netbsd-nat.c: ... this, adjust include.
1557 * hppa-nbsd-tdep.c: Rename to ...
1558 * hppa-netbsd-tdep.c: ... this, adjust include.
1559 * i386-nbsd-nat.c: Rename to ...
1560 * i386-netbsd-nat.c: ... this, adjust include.
1561 * i386-nbsd-tdep.c: Rename to ...
1562 * i386-netbsd-tdep.c: ... this, adjust include.
1563 * m68k-bsd-nat.c: Adjust include.
1564 * mips-nbsd-nat.c: Rename to ...
1565 * mips-netbsd-nat.c: ... this, adjust include.
1566 * mips-nbsd-tdep.c: Rename to ...
1567 * mips-netbsd-tdep.c: ... this, adjust include.
1568 * mips-nbsd-tdep.h: Rename to ...
1569 * mips-netbsd-tdep.h: ... this.
1570 * nbsd-nat.c: Rename to ...
1571 * netbsd-nat.c: ... this, adjust include.
1572 * nbsd-nat.h: Rename to ...
1573 * netbsd-nat.h: ... this, adjust include.
1574 * nbsd-tdep.c: Rename to ...
1575 * netbsd-tdep.c: ... this, adjust include.
1576 * nbsd-tdep.h: Rename to ...
1577 * netbsd-tdep.h: ... this.
1578 * ppc-nbsd-nat.c: Rename to ...
1579 * ppc-netbsd-nat.c: ... this, adjust include.
1580 * ppc-nbsd-tdep.c: Rename to ...
1581 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1582 * ppc-nbsd-tdep.h: Rename to ...
1583 * ppc-netbsd-tdep.h: ... this.
1584 * sh-nbsd-nat.c: Rename to ...
1585 * sh-netbsd-nat.c: ... this, adjust include.
1586 * sh-nbsd-tdep.c: Rename to ...
1587 * sh-netbsd-tdep.c: ... this, adjust include.
1588 * sparc-nbsd-nat.c: Rename to ...
1589 * sparc-netbsd-nat.c: ... this.
1590 * sparc-nbsd-tdep.c: Rename to ...
1591 * sparc-netbsd-tdep.c: ... this, adjust include.
1592 * sparc64-nbsd-nat.c: Rename to ...
1593 * sparc64-netbsd-nat.c: ... this.
1594 * sparc64-nbsd-tdep.c: Rename to ...
1595 * sparc64-netbsd-tdep.c: ... this, adjust include.
1596 * sparc64-tdep.h: Adjust comment.
1597 * vax-bsd-nat.c: Adjust include.
1598 * vax-nbsd-tdep.c: Rename to ...
1599 * vax-netbsd-tdep.c: ... this, adjust include.
1600
1601 2020-10-12 Tom Tromey <tom@tromey.com>
1602
1603 * target.h (struct target_ops) <get_section_table>: Update.
1604 (target_get_section_table): Update.
1605 * target.c (target_get_section_table, target_section_by_addr)
1606 (memory_xfer_partial_1): Update.
1607 * target-section.h (target_section_table): Now an alias.
1608 * target-delegates.c: Rebuild.
1609 * target-debug.h (target_debug_print_target_section_table_p):
1610 Rename from target_debug_print_struct_target_section_table_p.
1611 * symfile.c (build_section_addr_info_from_section_table): Update.
1612 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1613 * solib-svr4.c (scan_dyntag): Update.
1614 * solib-dsbt.c (scan_dyntag): Update.
1615 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1616 Update.
1617 * record-full.c (record_full_core_target::xfer_partial): Update.
1618 * progspace.h (struct program_space) <target_sections>: Update.
1619 * exec.h (print_section_info): Update.
1620 * exec.c (exec_target::close, build_section_table)
1621 (add_target_sections, add_target_sections_of_objfile)
1622 (remove_target_sections, exec_on_vfork)
1623 (section_table_available_memory)
1624 (section_table_xfer_memory_partial)
1625 (exec_target::get_section_table, exec_target::xfer_partial)
1626 (print_section_info, set_section_command)
1627 (exec_set_section_address, exec_target::has_memory): Update.
1628 * corelow.c (core_target::build_file_mappings)
1629 (core_target::xfer_partial, core_target::info_proc_mappings)
1630 (core_target::info_proc_mappings): Update.
1631 * bfd-target.c (class target_bfd): Update
1632
1633 2020-10-12 Tom Tromey <tom@tromey.com>
1634
1635 * progspace.c (program_space::~program_space): Don't call
1636 clear_section_table.
1637 * exec.h (clear_section_table): Don't declare.
1638 * exec.c (exec_target::close): Update.
1639 (clear_section_table): Remove.
1640
1641 2020-10-12 Tom Tromey <tom@tromey.com>
1642
1643 * exec.c (add_target_sections_of_objfile): Simplify.
1644
1645 2020-10-12 Tom Tromey <tom@tromey.com>
1646
1647 * solib.c (solib_map_sections): Update.
1648 * record-full.c (record_full_core_open_1): Update.
1649 * exec.h (build_section_table): Return a target_section_table.
1650 * exec.c (exec_file_attach): Update.
1651 (build_section_table): Return a target_section_table.
1652 * corelow.c (core_target::core_target): Update.
1653 * bfd-target.c (target_bfd::target_bfd): Update.
1654
1655 2020-10-12 Tom Tromey <tom@tromey.com>
1656
1657 * target.c (target_section_by_addr, memory_xfer_partial_1):
1658 Update.
1659 * target-section.h (struct target_section_table): Use
1660 std::vector.
1661 * symfile.h (build_section_addr_info_from_section_table): Take a
1662 target_section_table.
1663 * symfile.c (build_section_addr_info_from_section_table): Take a
1664 target_section_table.
1665 * solist.h (struct so_list) <sections>: Change type.
1666 <sections_end>: Remove.
1667 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1668 (solib_contains_address_p): Update.
1669 * solib-svr4.c (scan_dyntag): Update.
1670 * solib-dsbt.c (scan_dyntag): Update.
1671 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1672 Update.
1673 * record-full.c (record_full_core_start, record_full_core_end):
1674 Remove.
1675 (record_full_core_sections): New global.
1676 (record_full_core_open_1, record_full_core_target::xfer_partial):
1677 Update.
1678 * exec.h (build_section_table, section_table_xfer_memory_partial)
1679 (add_target_sections): Take a target_section_table.
1680 * exec.c (exec_file_attach, clear_section_table): Update.
1681 (resize_section_table): Remove.
1682 (build_section_table, add_target_sections): Take a
1683 target_section_table.
1684 (add_target_sections_of_objfile, remove_target_sections)
1685 (exec_on_vfork): Update.
1686 (section_table_available_memory): Take a target_section_table.
1687 (section_table_read_available_memory): Update.
1688 (section_table_xfer_memory_partial): Take a target_section_table.
1689 (print_section_info, set_section_command)
1690 (exec_set_section_address, exec_target::has_memory): Update.
1691 * corelow.c (class core_target) <m_core_section_table,
1692 m_core_file_mappings>: Remove braces.
1693 <~core_target>: Remove.
1694 (core_target::core_target): Update.
1695 (core_target::~core_target): Remove.
1696 (core_target::build_file_mappings)
1697 (core_target::xfer_memory_via_mappings)
1698 (core_target::xfer_partial, core_target::info_proc_mappings):
1699 Update.
1700 * bfd-target.c (target_bfd::xfer_partial): Update.
1701 (target_bfd::target_bfd): Update.
1702 (target_bfd::~target_bfd): Remove.
1703
1704 2020-10-12 Tom Tromey <tom@tromey.com>
1705
1706 * target.h (struct target_section, struct target_section_table):
1707 Move to target-section.h.
1708 * target-section.h: New file.
1709
1710 2020-10-12 Pedro Alves <pedro@palves.net>
1711
1712 PR exp/26602
1713 * valops.c (struct struct_field_searcher): New.
1714 (update_search_result): Rename to ...
1715 (struct_field_searcher::update_result): ... this. Simplify
1716 prototype. Record all found fields.
1717 (do_search_struct_field): Rename to ...
1718 (struct_field_searcher::search): ... this. Simplify prototype.
1719 Maintain stack of visited baseclass path. Call update_result for
1720 fields too. Keep searching fields in baseclasses instead of
1721 stopping at the first found field.
1722 (search_struct_field): Use struct_field_searcher. When looking
1723 for fields, report ambiguous access attempts.
1724
1725 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * frame.c (inside_main_func): Check full symbols as well as
1728 minimal symbols.
1729
1730 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1731
1732 * ada-lang.c (advance_wild_match): Rewrite the function's
1733 description. Change the type of target0, t0 and t1 to char.
1734
1735 2020-10-09 Tom Tromey <tromey@adacore.com>
1736
1737 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1738
1739 2020-10-09 Tom Tromey <tromey@adacore.com>
1740
1741 * ada-lang.h (ada_encode): Return std::string.
1742 * ada-lang.c (ada_encode_1): Return std::string.
1743 (ada_encode): Likewise.
1744 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1745 Update.
1746 * ada-exp.y (block_lookup, write_var_or_type): Update.
1747
1748 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1749
1750 PR exp/26714
1751 * printcmd.c (print_formatted): Handle void results as
1752 unformatted prints.
1753
1754 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1755
1756 * arch/aarch32.c (aarch32_create_target_description): Release the
1757 target_desc_up as late as possible.
1758 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1759 * arch/amd64.c (amd64_create_target_description): Likewise.
1760 * arch/arc.c (arc_create_target_description): Return a
1761 target_desc_up, don't release it.
1762 * arch/arc.h (arc_create_target_description): Update declaration.
1763 (arc_lookup_target_description): Move target_desc_up into the
1764 cache, and return a borrowed pointer.
1765 * arch/arm.c (arm_create_target_description): Release the
1766 target_desc_up as late as possible.
1767 * arch/i386.c (i386_create_target_description): Likewise.
1768 * arch/riscv.h (riscv_create_target_description): Update
1769 declaration to match definition.
1770 * arch/tic6x.c (tic6x_create_target_description): Release the
1771 target_desc_up as late as possible.
1772
1773 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1776 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1777
1778 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1779
1780 * source.c (directory_command): Notify observers that "directories"
1781 parameter has changed.
1782
1783 2020-10-08 Tom Tromey <tom@tromey.com>
1784
1785 * cli/cli-cmds.c (print_disassembly): Style function name and
1786 addresses. Add _() wrappers.
1787
1788 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1789
1790 * NEWS: Mention ARC support in GDBserver.
1791
1792 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * arch/aarch32.c (aarch32_create_target_description): Release
1795 unique_ptr returned from allocate_target_description.
1796 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1797 * arch/amd64.c (amd64_create_target_description): Likewise.
1798 * arch/arc.c (arc_create_target_description): Likewise.
1799 * arch/arm.c (arm_create_target_description): Likewise.
1800 * arch/i386.c (i386_create_target_description): Likewise.
1801 * arch/riscv.c (riscv_create_target_description): Update return
1802 type. Handle allocate_target_description returning a unique_ptr.
1803 (riscv_lookup_target_description): Update to handle unique_ptr.
1804 * arch/tic6x.c (tic6x_create_target_description): Release
1805 unique_ptr returned from allocate_target_description.
1806 * features/microblaze-with-stack-protect.c: Regenerate.
1807 * features/microblaze.c: Regenerate.
1808 * features/mips-dsp-linux.c: Regenerate.
1809 * features/mips-linux.c: Regenerate.
1810 * features/mips64-dsp-linux.c: Regenerate.
1811 * features/mips64-linux.c: Regenerate.
1812 * features/nds32.c: Regenerate.
1813 * features/nios2.c: Regenerate.
1814 * features/or1k.c: Regenerate.
1815 * features/rs6000/powerpc-32.c: Regenerate.
1816 * features/rs6000/powerpc-32l.c: Regenerate.
1817 * features/rs6000/powerpc-403.c: Regenerate.
1818 * features/rs6000/powerpc-403gc.c: Regenerate.
1819 * features/rs6000/powerpc-405.c: Regenerate.
1820 * features/rs6000/powerpc-505.c: Regenerate.
1821 * features/rs6000/powerpc-601.c: Regenerate.
1822 * features/rs6000/powerpc-602.c: Regenerate.
1823 * features/rs6000/powerpc-603.c: Regenerate.
1824 * features/rs6000/powerpc-604.c: Regenerate.
1825 * features/rs6000/powerpc-64.c: Regenerate.
1826 * features/rs6000/powerpc-64l.c: Regenerate.
1827 * features/rs6000/powerpc-7400.c: Regenerate.
1828 * features/rs6000/powerpc-750.c: Regenerate.
1829 * features/rs6000/powerpc-860.c: Regenerate.
1830 * features/rs6000/powerpc-altivec32.c: Regenerate.
1831 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1832 * features/rs6000/powerpc-altivec64.c: Regenerate.
1833 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1834 * features/rs6000/powerpc-e500.c: Regenerate.
1835 * features/rs6000/powerpc-e500l.c: Regenerate.
1836 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1837 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1838 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1839 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1840 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1841 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1842 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1843 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1844 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1845 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1846 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1847 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1848 * features/rs6000/powerpc-vsx32.c: Regenerate.
1849 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1850 * features/rs6000/powerpc-vsx64.c: Regenerate.
1851 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1852 * features/rs6000/rs6000.c: Regenerate.
1853 * features/rx.c: Regenerate.
1854 * features/s390-gs-linux64.c: Regenerate.
1855 * features/s390-linux32.c: Regenerate.
1856 * features/s390-linux32v1.c: Regenerate.
1857 * features/s390-linux32v2.c: Regenerate.
1858 * features/s390-linux64.c: Regenerate.
1859 * features/s390-linux64v1.c: Regenerate.
1860 * features/s390-linux64v2.c: Regenerate.
1861 * features/s390-te-linux64.c: Regenerate.
1862 * features/s390-tevx-linux64.c: Regenerate.
1863 * features/s390-vx-linux64.c: Regenerate.
1864 * features/s390x-gs-linux64.c: Regenerate.
1865 * features/s390x-linux64.c: Regenerate.
1866 * features/s390x-linux64v1.c: Regenerate.
1867 * features/s390x-linux64v2.c: Regenerate.
1868 * features/s390x-te-linux64.c: Regenerate.
1869 * features/s390x-tevx-linux64.c: Regenerate.
1870 * features/s390x-vx-linux64.c: Regenerate.
1871 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1872 from allocate_target_description.
1873 * target-descriptions.c (allocate_target_description): Update
1874 return type.
1875 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1876 allocate_target_description.
1877
1878 2020-10-07 Tom Tromey <tromey@adacore.com>
1879
1880 * unittests/search-memory-selftests.c: New file.
1881 * Makefile.in (SELFTESTS_SRCS): Add
1882 unittests/search-memory-selftests.c.
1883
1884 2020-10-07 Tom Tromey <tromey@adacore.com>
1885
1886 PR gdb/16930:
1887 * findcmd.c (_initialize_mem_search): Mention that the range is
1888 inclusive.
1889
1890 2020-10-07 Tom Tromey <tromey@adacore.com>
1891
1892 * target.h (simple_search_memory): Don't declare.
1893 * target.c (simple_search_memory): Move to gdbsupport.
1894 (default_search_memory): Update.
1895 * remote.c (remote_target::search_memory): Update.
1896
1897 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1898
1899 * Makefile.in (COMPILE): Add CXXFLAGS.
1900 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1901 (check-headers): Add CXXFLAGS.
1902
1903 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1904
1905 * arc-linux-tdep.h: New file.
1906 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1907 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1908 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1909 arc_linux_gregset, arc_linux_v2_regset,
1910 arc_linux_iterate_over_regset_sections,
1911 arc_linux_core_read_description): Implement.
1912 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1913 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1914 (arc_gdbarch_features_create): Add.
1915 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1916
1917 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1918
1919 * arch/arc.h: Rename "arc_gdbarch_features" to
1920 "arc_arch_features".
1921 * arc-tdep.h: Likewise.
1922 * arc-tdep.c: Likewise.
1923
1924 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1925
1926 * infcmd.c (attach_command): Remove the redundant call to
1927 `clear_proceed_status`.
1928
1929 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1930
1931 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1932
1933 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1934
1935 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1936 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1937 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1938
1939 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1940
1941 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1942 (_initialize_break_catch_sig): Don't allocate array.
1943
1944 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1945
1946 * symtab.c (find_pc_line): Return unmapped addresses when the
1947 requested address is also unmapped.
1948
1949 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1950
1951 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1952 tui/tui-out.h.
1953
1954 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1955
1956 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1957 type::is_vector instead of TYPE_VECTOR.
1958
1959 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1960
1961 * auto-load.c (auto_load_objfile_script_1): Don't use
1962 debugfile_holder as temporary variable when stripping drive
1963 letter.
1964
1965 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1966
1967 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1968 Add TYPE_CODE_COMPLEX.
1969 (amd64_windows_return_value): Fix types returned via XMM0.
1970
1971 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1972
1973 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1974 AArch64/ARM maintainers.
1975
1976 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1977
1978 * NEWS: Mention set/show debug event-loop.
1979
1980 2020-10-02 Tom Tromey <tromey@adacore.com>
1981
1982 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1983 REG_EXTENDED.
1984
1985 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1986
1987 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1988 * procfs.c (procfs_inferior_created): Remove.
1989 (_initialize_procfs): Don't register procfs_inferior_created.
1990
1991 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1992
1993 * async-event.c (invoke_async_signal_handlers): Add debug
1994 print.
1995 (check_async_event_handlers): Likewise.
1996 * event-top.c (show_debug_event_loop): New function.
1997 (_initialize_event_top): Register "set debug event-loop"
1998 setting.
1999
2000 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2001
2002 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2003 * debug.h: Remove.
2004 * infrun.c: Include gdbsupport/common-debug.h.
2005 * linux-nat.c: Likewise.
2006
2007 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2008
2009 * async-event.h (create_async_signal_handler): Add name
2010 parameter.
2011 (create_async_event_handler): Likewise.
2012 * async-event.c (struct async_signal_handler) <name>: New field.
2013 (struct async_event_handler) <name>: New field.
2014 (create_async_signal_handler): Assign name.
2015 (create_async_event_handler): Assign name.
2016 * event-top.c (async_init_signals): Pass name when creating
2017 handler.
2018 * infrun.c (_initialize_infrun): Likewise.
2019 * record-btrace.c (record_btrace_push_target): Likewise.
2020 * record-full.c (record_full_open): Likewise.
2021 * remote-notif.c (remote_notif_state_allocate): Likewise.
2022 * remote.c (remote_target::open_1): Likewise.
2023 * tui/tui-win.c (tui_initialize_win): Likewise.
2024
2025 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * async-event.c (initialize_async_signal_handlers): Pass name to
2028 add_file_handler
2029 * event-top.c (ui_register_input_event_handler): Likewise.
2030 * linux-nat.c (linux_nat_target::async): Likewise.
2031 * run-on-main-thread.c (_initialize_run_on_main_thread):
2032 Likewise
2033 * ser-base.c (reschedule): Likewise.
2034 (ser_base_async): Likewise.
2035 * tui/tui-io.c: Likewise.
2036 * top.h (struct ui) <num>: New field.
2037 * top.c (highest_ui_num): New variable.
2038 (ui::ui): Initialize num.
2039
2040 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 * observable.h <inferior_created>: Remove parameters. Update all
2043 listeners.
2044 * inferior.h (post_create_inferior): Remove target parameter.
2045 Update all callers.
2046
2047 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2048
2049 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2050 and DW_MACRO_undef_strx.
2051 (dwarf_decode_macros): Likewise
2052 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2053 which is the value of DW_AT_str_offsets_base.
2054 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2055 str_offsets_base.
2056
2057 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2058
2059 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2060
2061 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2062
2063 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2064 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2065
2066 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2067
2068 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2069
2070 2020-09-30 Tom de Vries <tdevries@suse.de>
2071
2072 PR symtab/26683
2073 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2074
2075 2020-09-30 Tom Tromey <tromey@adacore.com>
2076
2077 * dwarf2/read.c (handle_variant): Use constant_value.
2078
2079 2020-09-29 Tom Tromey <tom@tromey.com>
2080
2081 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2082 (read_file_scope, dwarf2_get_pc_bounds)
2083 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2084 (read_structure_type, handle_struct_member_die)
2085 (read_enumeration_type, read_array_type, read_set_type)
2086 (read_tag_pointer_type, read_tag_reference_type)
2087 (read_subroutine_type, read_base_type, read_subrange_type)
2088 (read_full_die_1, partial_die_info::read)
2089 (partial_die_info::read, by, new_symbol)
2090 (dwarf2_const_value_data, dwarf2_const_value_attr)
2091 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2092 (prepare_one_comp_unit): Update.
2093 * dwarf2/attribute.h (DW_UNSND): Remove.
2094
2095 2020-09-29 Tom Tromey <tom@tromey.com>
2096
2097 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2098 (read_subroutine_type, partial_die_info::read)
2099 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2100 (dwarf2_add_member_fn): Update.
2101 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2102 * dwarf2/attribute.c (attribute::as_boolean): New method.
2103
2104 2020-09-29 Tom Tromey <tom@tromey.com>
2105
2106 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2107 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2108 method.
2109 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2110
2111 2020-09-29 Tom Tromey <tom@tromey.com>
2112
2113 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2114 the attribute's form.
2115
2116 2020-09-29 Tom Tromey <tom@tromey.com>
2117
2118 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2119 (dwarf2_add_member_fn): Update.
2120 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2121 * dwarf2/attribute.c (attribute::defaulted): New method, from
2122 is_valid_DW_AT_defaulted.
2123
2124 2020-09-29 Tom Tromey <tom@tromey.com>
2125
2126 * dwarf2/read.c (dw2_get_file_names_reader)
2127 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2128 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2129 (dwarf2_symbol_mark_computed): Use as_unsigned.
2130 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2131 method.
2132 <form_is_section_offset>: Update comment.
2133
2134 2020-09-29 Tom Tromey <tom@tromey.com>
2135
2136 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2137 dwarf2_default_access_attribute. Look up attribute.
2138 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2139 Update.
2140
2141 2020-09-29 Tom Tromey <tom@tromey.com>
2142
2143 * dwarf2/read.c (skip_one_die): Update.
2144 (read_full_die_1): Change how reprocessing is done.
2145 (partial_die_info::read): Update.
2146 (read_attribute_value): Remove need_reprocess parameter.
2147 (read_attribute): Likewise.
2148 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2149 New method.
2150
2151 2020-09-29 Tom Tromey <tom@tromey.com>
2152
2153 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2154 (dwarf2_const_value_attr, dump_die_shallow)
2155 (dwarf2_fetch_constant_bytes): Update.
2156 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2157 comment.
2158 <set_address>: New method.
2159 (DW_ADDR): Remove.
2160 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2161 (attribute::as_string, attribute::as_address): Add assert.
2162
2163 2020-09-29 Tom Tromey <tom@tromey.com>
2164
2165 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2166 (read_attribute_reprocess, read_attribute_value): Update.
2167 (read_attribute): Clear requires_reprocessing.
2168 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2169 form_requires_reprocessing>: New methods.
2170 <string_init>: Clear requires_reprocessing.
2171 <set_unsigned_reprocess>: New method.
2172 <name>: Shrink by one bit.
2173 <requires_reprocessing>: New member.
2174 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2175 method.
2176
2177 2020-09-29 Tom Tromey <tom@tromey.com>
2178
2179 * dwarf2/read.c (read_attribute_value): Update.
2180 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2181 set_unsigned>: New methods.
2182 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2183
2184 2020-09-29 Tom Tromey <tom@tromey.com>
2185
2186 * dwarf2/read.c (get_alignment, read_array_order)
2187 (read_attribute_value, dwarf2_const_value_attr)
2188 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2189 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2190 New methods.
2191 (DW_SND): Remove.
2192
2193 2020-09-29 Tom Tromey <tom@tromey.com>
2194
2195 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2196 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2197 Update.
2198 * dwarf2/attribute.h (struct attribute) <as_signature,
2199 set_signature>: New methods.
2200 (DW_SIGNATURE): Remove.
2201
2202 2020-09-29 Tom Tromey <tom@tromey.com>
2203
2204 * dwarf2/read.c (read_call_site_scope)
2205 (handle_data_member_location, dwarf2_add_member_fn)
2206 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2207 (partial_die_info::read, read_attribute_value)
2208 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2209 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2210 (dwarf2_symbol_mark_computed): Update.
2211 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2212 methods.
2213 (DW_BLOCK): Remove.
2214 * dwarf2/attribute.c (attribute::form_is_block): Add
2215 DW_FORM_data16.
2216
2217 2020-09-29 Tom Tromey <tom@tromey.com>
2218
2219 * dwarf2/read.c (read_cutu_die_from_dwo)
2220 (read_attribute_reprocess, read_attribute_value, read_attribute)
2221 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2222 (dwarf2_fetch_constant_bytes): Update.
2223 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2224 <set_string_noncanonical, set_string_canonical>: New methods.
2225 <string_is_canonical>: Update comment.
2226 <canonical_string_p>: Add assert.
2227 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2228 * dwarf2/attribute.c (attribute::form_is_string): New method.
2229 (attribute::string): Use it.
2230
2231 2020-09-29 Tom Tromey <tom@tromey.com>
2232
2233 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2234 (dump_die_shallow): Use canonical_string_p.
2235 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2236 method.
2237
2238 2020-09-29 Tom Tromey <tom@tromey.com>
2239
2240 * dwarf2/read.c (partial_die_info::read)
2241 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2242 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2243 attribute::as_string.
2244
2245 2020-09-29 Tom Tromey <tom@tromey.com>
2246
2247 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2248 DW_ADDR.
2249 (attribute::string): Don't use DW_STRING.
2250 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2251 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2252
2253 2020-09-29 Tom Tromey <tom@tromey.com>
2254
2255 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2256 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2257 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2258 * dwarf2/attribute.h (struct attribute): Rename methods.
2259 * dwarf2/attribute.c (attribute::as_address): Rename from
2260 value_as_address.
2261 (attribute::as_string): Rename from value_as_string.
2262
2263 2020-09-29 Tom Tromey <tom@tromey.com>
2264
2265 * dwarf2/read.c (partial_die_info::read) <case
2266 DW_AT_linkage_name>: Use value_as_string.
2267 (dwarf2_string_attr): Use value_as_string.
2268 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2269 method.
2270 * dwarf2/attribute.c (attribute::value_as_string): New method.
2271
2272 2020-09-29 Pedro Alves <pedro@palves.net>
2273
2274 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2275 defined before using '#pragma GCC diagnostic' instead of checking
2276 __clang__.
2277
2278 2020-09-28 Tom Tromey <tom@tromey.com>
2279
2280 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2281 (handle_signal_stop): Update.
2282 * procfs.c (procfs_target::insert_watchpoint): Update.
2283 * target.h (target_have_steppable_watchpoint): Now a function.
2284
2285 2020-09-28 Tom Tromey <tom@tromey.com>
2286
2287 * infrun.c (set_schedlock_func): Update.
2288 * target.h (target_can_lock_scheduler): Now a function.
2289
2290 2020-09-28 Tom Tromey <tom@tromey.com>
2291
2292 * inferior.h (class inferior) <has_execution>: Update.
2293 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2294 * valops.c (find_function_in_inferior)
2295 (value_allocate_space_in_inferior): Update.
2296 * top.c (kill_or_detach): Update.
2297 * target.c (target_preopen, set_target_permissions): Update.
2298 (target_has_execution_current): Remove.
2299 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2300 Update.
2301 * solib.c (update_solib_list, reload_shared_libraries): Update.
2302 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2303 * solib-dsbt.c (enable_break): Update.
2304 * score-tdep.c (score7_fetch_inst): Update.
2305 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2306 Update.
2307 * remote.c (remote_target::start_remote)
2308 (remote_target::remote_check_symbols, remote_target::open_1)
2309 (remote_target::remote_detach_1, remote_target::verify_memory)
2310 (remote_target::xfer_partial, remote_target::read_description)
2311 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2312 * record-full.c (record_full_open_1): Update.
2313 * record-btrace.c (record_btrace_target_open): Update.
2314 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2315 (value_nsstring): Update.
2316 * linux-thread-db.c (add_thread_db_info)
2317 (thread_db_find_new_threads_silently, check_thread_db_callback)
2318 (try_thread_db_load_1, record_thread): Update.
2319 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2320 Update.
2321 * linux-fork.c (checkpoint_command): Update.
2322 * infrun.c (set_non_stop, set_observer_mode)
2323 (check_multi_target_resumption, for_each_just_stopped_thread)
2324 (maybe_remove_breakpoints, normal_stop)
2325 (class infcall_suspend_state): Update.
2326 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2327 (info_program_command, attach_command): Update.
2328 * infcall.c (call_function_by_hand_dummy): Update.
2329 * inf-loop.c (inferior_event_handler): Update.
2330 * gcore.c (gcore_command, derive_heap_segment): Update.
2331 * exec.c (exec_file_command): Update.
2332 * eval.c (evaluate_subexp): Update.
2333 * compile/compile.c (compile_to_object): Update.
2334 * cli/cli-dump.c (restore_command): Update.
2335 * breakpoint.c (update_watchpoint)
2336 (update_inserted_breakpoint_locations)
2337 (insert_breakpoint_locations, get_bpstat_thread): Update.
2338 * target.h (target_has_execution): Remove macro.
2339 (target_has_execution_current): Don't declare.
2340 (target_has_execution): Rename from target_has_execution_1. Add
2341 argument default.
2342
2343 2020-09-28 Tom Tromey <tom@tromey.com>
2344
2345 * mi/mi-main.c (exec_reverse_continue)
2346 (mi_cmd_list_target_features): Update.
2347 * infrun.c (set_exec_direction_func): Update.
2348 * target.c (default_execution_direction): Update.
2349 * reverse.c (exec_reverse_once): Update.
2350 * target.h (target_can_execute_reverse): Now a function.
2351
2352 2020-09-28 Tom Tromey <tom@tromey.com>
2353
2354 * tui/tui-regs.c (tui_get_register)
2355 (tui_data_window::show_registers): Update.
2356 * thread.c (scoped_restore_current_thread::restore)
2357 (scoped_restore_current_thread::scoped_restore_current_thread):
2358 Update.
2359 * regcache-dump.c (regcache_print): Update.
2360 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2361 Update.
2362 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2363 * mep-tdep.c (current_me_module, current_options): Update.
2364 * linux-thread-db.c (thread_db_load): Update.
2365 * infcmd.c (registers_info, info_vector_command)
2366 (info_float_command): Update.
2367 * ia64-tdep.c (ia64_frame_prev_register)
2368 (ia64_sigtramp_frame_prev_register): Update.
2369 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2370 * gcore.c (derive_stack_segment): Update.
2371 * frame.c (get_current_frame, has_stack_frames): Update.
2372 * findvar.c (language_defn::read_var_value): Update.
2373 * arm-tdep.c (arm_pc_is_thumb): Update.
2374 * target.c (target_has_registers): Rename from
2375 target_has_registers_1.
2376 * target.h (target_has_registers): Remove macro.
2377 (target_has_registers): Rename from target_has_registers_1.
2378
2379 2020-09-28 Tom Tromey <tom@tromey.com>
2380
2381 * windows-tdep.c (tlb_make_value): Update.
2382 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2383 * thread.c (scoped_restore_current_thread::restore)
2384 (scoped_restore_current_thread::scoped_restore_current_thread)
2385 (thread_command): Update.
2386 * stack.c (backtrace_command_1, frame_apply_level_command)
2387 (frame_apply_all_command, frame_apply_command): Update.
2388 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2389 Update.
2390 * gcore.c (derive_stack_segment): Update.
2391 * frame.c (get_current_frame, has_stack_frames): Update.
2392 * auxv.c (info_auxv_command): Update.
2393 * ada-tasks.c (ada_build_task_list): Update.
2394 * target.c (target_has_stack): Rename from target_has_stack_1.
2395 * target.h (target_has_stack): Remove macro.
2396 (target_has_stack): Rename from target_has_stack_1.
2397
2398 2020-09-28 Tom Tromey <tom@tromey.com>
2399
2400 * target.c (target_has_memory): Rename from target_has_memory_1.
2401 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2402 * thread.c (scoped_restore_current_thread::restore)
2403 (scoped_restore_current_thread::scoped_restore_current_thread):
2404 Update.
2405 * frame.c (get_current_frame, has_stack_frames): Update.
2406 * target.h (target_has_memory): Remove macro.
2407 (target_has_memory): Rename from target_has_memory_1.
2408
2409 2020-09-28 Tom Tromey <tom@tromey.com>
2410
2411 * target.c (target_has_all_memory_1): Remove.
2412 * target.h (target_has_all_memory): Remove define.
2413 (target_has_all_memory_1): Don't declare.
2414
2415 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 * ser-base.c: Adjust comments formatting.
2418
2419 2020-09-27 Tom Tromey <tom@tromey.com>
2420
2421 PR tui/25342:
2422 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2423
2424 2020-09-27 Tom Tromey <tom@tromey.com>
2425
2426 PR tui/25342:
2427 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2428
2429 2020-09-27 Tom Tromey <tom@tromey.com>
2430
2431 * unittests/tui-selftests.c: Update.
2432 * tui/tui-winsource.h (struct tui_source_window_base)
2433 <extra_margin, show_line_number, refresh_pad>: New methods.
2434 <m_max_length, m_pad>: New members.
2435 (tui_copy_source_line): Update.
2436 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2437 first_col, line_width, ndigits parameters. Add length.
2438 (tui_source_window_base::show_source_line): Write to pad. Line
2439 number now 0-based.
2440 (tui_source_window_base::refresh_pad): New method.
2441 (tui_source_window_base::show_source_content): Write to pad. Call
2442 refresh_pad.
2443 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2444 not refill.
2445 (tui_source_window_base::update_exec_info): Call
2446 show_line_number.
2447 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2448 method.
2449 <m_digits>: New member.
2450 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2451 and m_max_length.
2452 (tui_source_window::show_line_number): New method.
2453 * tui/tui-io.h (tui_puts): Fix comment.
2454 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2455 m_max_length.
2456
2457 2020-09-27 Tom Tromey <tom@tromey.com>
2458
2459 * tui/tui-winsource.c
2460 (tui_source_window_base::set_is_exec_point_at): Don't call
2461 show_source_line.
2462
2463 2020-09-27 Tom Tromey <tom@tromey.com>
2464
2465 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2466 method.
2467 <erase>: Update.
2468 <cursor_x, cursor_y>: Remove.
2469 <m_inner_window>: New member.
2470 (tui_py_window::rerender): Create inner window.
2471 (tui_py_window::output): Write to inner window.
2472
2473 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2474
2475 PR python/26586
2476 * cli/cli-script.c (execute_control_commands): don't set
2477 instream to nullptr here as this breaks the from_tty argument
2478 to gdb.execute in Python.
2479 (execute_user_command): set instream to nullptr here instead.
2480
2481 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2482
2483 * infrun.h (infrun_debug_printf): Fix formatting.
2484 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2485
2486 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2487
2488 * compile/compile-object-load.h (struct munmap_list): Add
2489 explicitly-defined move constructor.
2490
2491 2020-09-24 Tom Tromey <tromey@adacore.com>
2492
2493 PR tui/26638:
2494 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2495 method.
2496 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2497 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2498 (tui_prev_win): Rewrite.
2499
2500 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2501
2502 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2503 in WOW64 processes as SIGINT.
2504 * nat/windows-nat.h: Make wow64_process a shared variable.
2505 * windows-nat.c: Remove static wow64_process variable.
2506
2507 2020-09-23 Tom Tromey <tom@tromey.com>
2508
2509 PR symtab/25470:
2510 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2511 offset and bit size.
2512 * printcmd.c (print_scalar_formatted): Handle zero-length
2513 integer.
2514 (print_scalar_formatted): Use bit_size_differs_p.
2515 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2516 constant.
2517 (union type_specific): <int_stuff>: New member.
2518 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2519 methods.
2520 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2521 TYPE_SPECIFIC_FIELD.
2522 (recursive_dump_type, copy_type_recursive): Update.
2523 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2524 DW_AT_data_bit_offset.
2525
2526 2020-09-23 Tom Tromey <tom@tromey.com>
2527
2528 * utils.h (class gdb_argv): Add move operators.
2529 <append>: New methods.
2530 * compile/compile.c (build_argc_argv): Remove.
2531 (compile_args_argc): Remove.
2532 (compile_args_argv): Change type.
2533 (set_compile_args): Simplify.
2534 (append_args): Remove.
2535 (filter_args): Remove argcp parameter.
2536 (get_args): Return gdb_argv. Simplify.
2537 (compile_to_object): Update.
2538
2539 2020-09-23 Tom Tromey <tom@tromey.com>
2540
2541 * compile/compile-object-run.c (do_module_cleanup)
2542 <~do_module_cleanup> :Remove.
2543 (do_module_cleanup): Update.
2544 * compile/compile-object-load.h (struct munmap_list): Add move
2545 assignment operator.
2546 <source_file>: Now a std::string.
2547 <munmap_list>: Rename. No longer a pointer.
2548 * compile/compile-object-load.c (struct setup_sections_data): Add
2549 constructor.
2550 <setup_one_section>: Declare.
2551 <munmap_list>: Move earlier.
2552 <m_bfd>: New member.
2553 <m_last_size, m_last_section_first, m_last_prot,
2554 m_last_max_alignment>: Rename, add initializers where needed.
2555 (setup_sections_data::setup_one_section): Rename from
2556 setup_sections. Update.
2557 (compile_object_load): Update. Don't use bfd_map_over_sections.
2558
2559 2020-09-23 Tom Tromey <tom@tromey.com>
2560
2561 * compile/compile-object-run.c (struct do_module_cleanup): Add
2562 parameters to constructor. Update destructor.
2563 <source_file, scope, scope_data, out_value_type, out_value_addr,
2564 munmap_list_head, objfile_name_string>: Remove.
2565 <module>: New member.
2566 (do_module_cleanup): Update.
2567 (compile_object_run): Update.
2568
2569 2020-09-23 Tom Tromey <tom@tromey.com>
2570
2571 * compile/compile.c (eval_compile_command): Update.
2572 * compile/compile-object-run.h (compile_object_run): Take a
2573 compile_module_up.
2574 * compile/compile-object-run.c (compile_object_run): Take a
2575 compile_module_up.
2576 * compile/compile-object-load.h (struct compile_module): Add
2577 constructor, destructor.
2578 (compile_module_up): New typedef.
2579 (compile_object_load): Return compile_object_up.
2580 * compile/compile-object-load.c (compile_object_load): Return
2581 compile_module_up.
2582
2583 2020-09-23 Tom Tromey <tom@tromey.com>
2584
2585 * compile/compile-object-run.c (struct do_module_cleanup): Add
2586 constructor, destructor.
2587 <objfile_name_string>: Don't use struct hack.
2588 (do_module_cleanup): Use delete.
2589 (compile_object_run): Use new.
2590
2591 2020-09-23 Tom Tromey <tom@tromey.com>
2592
2593 * compile/compile-cplus-types.c
2594 (compile_cplus_convert_struct_or_union): Use std::vector.
2595 (compile_cplus_convert_func): Likewise.
2596 * compile/compile-c-types.c (convert_func): Use std::vector.
2597
2598 2020-09-21 Tom Tromey <tromey@adacore.com>
2599
2600 * sparc-tdep.c (sparc32_skip_prologue): Use
2601 skip_prologue_using_sal.
2602
2603 2020-09-19 Tom Tromey <tom@tromey.com>
2604
2605 * symfile.c (add_section_size_callback): Remove.
2606 (load_one_section): Rename from load_section_callback. Change
2607 parameters.
2608 (generic_load): Use foreach.
2609
2610 2020-09-19 Tom Tromey <tom@tromey.com>
2611
2612 * exec.c (add_to_section_table): Remove.
2613 (build_section_table): Use foreach.
2614
2615 2020-09-19 Tom Tromey <tom@tromey.com>
2616
2617 * elfread.c (elf_locate_sections): Change parameters.
2618 (elf_symfile_read): Use foreach.
2619
2620 2020-09-19 Tom Tromey <tom@tromey.com>
2621
2622 * cli/cli-dump.c (struct callback_data): Remove.
2623 (restore_one_section): Rename from restore_section_callback.
2624 Change parameters.
2625 (restore_binary_file): Change parameters.
2626 (restore_command): Use foreach.
2627
2628 2020-09-19 Tom Tromey <tom@tromey.com>
2629
2630 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2631 (gcore_copy_callback): Likewise.
2632 (gcore_memory_sections): Use foreach.
2633
2634 2020-09-19 Tom Tromey <tom@tromey.com>
2635
2636 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2637 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2638 parameters.
2639 (generic_elf_osabi_sniffer): Use foreach.
2640 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2641 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2642
2643 2020-09-19 Tom Tromey <tom@tromey.com>
2644
2645 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2646 (dwarf2_get_dwz_file): Use foreach.
2647 (dwarf2_locate_dwo_sections): Change parameters.
2648 (open_and_init_dwo_file): Use foreach.
2649 (dwarf2_locate_common_dwp_sections): Change parameters.
2650 (open_and_init_dwp_file): Use foreach.
2651
2652 2020-09-19 Tom Tromey <tom@tromey.com>
2653
2654 * symfile.h: (find_lowest_section): Don't declare.
2655 * symfile.c (find_lowest_section): Now static. Change
2656 parameters.
2657 (struct place_section_arg): Remove.
2658 (place_section): Change parameters.
2659 (addr_info_make_relative): Use foreach.
2660 (symfile_dummy_outputs): Remove.
2661 (default_symfile_relocate): Use foreach.
2662
2663 2020-09-19 Tom Tromey <tom@tromey.com>
2664
2665 * objfiles.c (add_to_objfile_sections): Rename from
2666 add_to_objfile_sections_full.
2667 (add_to_objfile_sections): Remove.
2668 (build_objfile_section_table): Use foreach.
2669
2670 2020-09-19 Tom Tromey <tom@tromey.com>
2671
2672 * stap-probe.c (get_stap_base_address_1): Remove.
2673 (get_stap_base_address): Use foreach.
2674
2675 2020-09-19 Tom Tromey <tom@tromey.com>
2676
2677 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2678 parameters.
2679 (gdb_bfd_close_or_warn): Use foreach.
2680
2681 2020-09-19 Tom Tromey <tom@tromey.com>
2682
2683 * corelow.c (add_to_thread_list): Change parameters.
2684 (core_target_open): Use foreach.
2685
2686 2020-09-19 Tom Tromey <tom@tromey.com>
2687
2688 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2689 existing function.
2690
2691 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2692
2693 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2694 for arrays.
2695
2696 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * eval.c: Remove 'f-lang.h' include.
2699 (value_f90_subarray): Moved to f-lang.c.
2700 (eval_call): Renamed to...
2701 (evaluate_subexp_do_call): ...this, is no longer static, header
2702 comment moved into header file.
2703 (evaluate_funcall): Update call to eval_call.
2704 (skip_undetermined_arglist): Moved to f-lang.c.
2705 (fortran_value_subarray): Likewise.
2706 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2707 moved to evaluate_subexp_f.
2708 (calc_f77_array_dims): Moved to f-lang.c
2709 * expprint.c (print_subexp_funcall): New function.
2710 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2711 moved to print_subexp_f, OP_FUNCALL uses new function.
2712 (dump_subexp_body_funcall): New function.
2713 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2714 moved to dump_subexp_f, OP_FUNCALL uses new function.
2715 * expression.h (evaluate_subexp_do_call): Declare.
2716 * f-lang.c (value_f90_subarray): Moved from eval.c.
2717 (skip_undetermined_arglist): Likewise.
2718 (calc_f77_array_dims): Likewise.
2719 (fortran_value_subarray): Likewise.
2720 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2721 (operator_length_f): Likewise.
2722 (print_subexp_f): Likewise.
2723 (dump_subexp_body_f): Likewise.
2724 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2725 declaration of this operation to here.
2726 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2727 support moved to operator_length_f.
2728 * parser-defs.h (dump_subexp_body_funcall): Declare.
2729 (print_subexp_funcall): Declare.
2730 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2731 fortran-operator.def.
2732
2733 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2734
2735 * eval.c (fortran_value_subarray): New function, content is taken
2736 from...
2737 (evaluate_subexp_standard): ...here, in two places. Now arrays
2738 and strings both call the new function.
2739 (calc_f77_array_dims): Add header comment, handle strings.
2740
2741 2020-09-18 Victor Collod <vcollod@nvidia.com>
2742
2743 PR gdb/26635
2744 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2745 (i386_analyze_prologue): Call i386_skip_endbr.
2746
2747 2020-09-18 Tom Tromey <tromey@adacore.com>
2748
2749 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2750 (windows_nat_target::wait): Update.
2751 * target/wait.h (enum target_wait_flag): New. Use
2752 DEF_ENUM_FLAGS_TYPE.
2753 * target/target.h (target_wait): Change type of options.
2754 * target.h (target_options_to_string, default_target_wait):
2755 Update.
2756 (struct target_ops) <wait>: Change type of options.
2757 * target.c (target_wait, default_target_wait, do_option): Change
2758 type of "options".
2759 (target_options_to_string): Likewise.
2760 * target-delegates.c: Rebuild.
2761 * target-debug.h (target_debug_print_target_wait_flags): Rename
2762 from target_debug_print_options.
2763 * sol-thread.c (class sol_thread_target) <wait>: Update.
2764 (sol_thread_target::wait): Update.
2765 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2766 (rs6000_nat_target::wait): Update.
2767 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2768 Update.
2769 (remote_target::wait_ns, remote_target::wait_as): Change type of
2770 "options".
2771 (remote_target::wait): Update.
2772 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2773 (gdbsim_target::wait): Update.
2774 * record-full.c (class record_full_base_target) <wait>: Update.
2775 (record_full_wait_1): Change type of "options".
2776 (record_full_base_target::wait): Update.
2777 * record-btrace.c (class record_btrace_target) <wait>: Update.
2778 (record_btrace_target::wait): Update.
2779 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2780 Update.
2781 (ravenscar_thread_target::wait): Update.
2782 * procfs.c (class procfs_target) <wait>: Update.
2783 (procfs_target::wait): Update.
2784 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2785 * obsd-nat.c (obsd_nat_target::wait): Update.
2786 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2787 (nto_procfs_target::wait): Update.
2788 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2789 * nbsd-nat.c (nbsd_wait): Change type of "options".
2790 (nbsd_nat_target::wait): Update.
2791 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2792 (thread_db_target::wait): Update.
2793 * linux-nat.h (class linux_nat_target) <wait>: Update.
2794 * linux-nat.c (linux_nat_target::wait): Update.
2795 (linux_nat_wait_1): Update.
2796 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2797 "options".
2798 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2799 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2800 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2801 (go32_nat_target::wait): Update.
2802 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2803 * gnu-nat.c (gnu_nat_target::wait): Update.
2804 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2805 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2806 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2807 * darwin-nat.c (darwin_nat_target::wait): Update.
2808 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2809 (bsd_uthread_target::wait): Update.
2810 * aix-thread.c (class aix_thread_target) <wait>: Update.
2811 (aix_thread_target::wait): Update.
2812
2813 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2814
2815 * compile/compile-object-run.c (create_copied_type_recursive): New
2816 function.
2817 (compile_object_run): Use new function.
2818
2819 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2820
2821 * NEWS: Mention x86_64 Cygwin core file support.
2822
2823 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2824
2825 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2826 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2827
2828 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2829
2830 * windows-tdep.h: Add prototypes.
2831 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2832 (i386_windows_core_pid_to_str): Move and rename ...
2833 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2834 (windows_core_pid_to_str): ... and here.
2835 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2836
2837 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2838 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2839 (amd64_windows_init_abi_common): ... and register.
2840
2841 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2842
2843 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2844 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2845
2846 2020-09-18 Pedro Alves <pedro@palves.net>
2847
2848 PR gdb/26631
2849 * thread.c (thread_find_command): Switch inferior before calling
2850 target methods.
2851
2852 2020-09-17 Tom Tromey <tromey@adacore.com>
2853
2854 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2855 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2856 (tdesc_arch_data_up): New typedef.
2857 (tdesc_use_registers, tdesc_data_alloc): Update.
2858 (tdesc_data_cleanup): Don't declare.
2859 * target-descriptions.c (tdesc_data_alloc): Return a
2860 tdesc_arch_data_up.
2861 (tdesc_arch_data_deleter::operator()): Rename from
2862 tdesc_data_cleanup. Change argument type.
2863 (tdesc_use_registers): Change early_data to an rvalue reference.
2864 (tdesc_use_registers): Don't use delete.
2865 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2866 * s390-tdep.c (s390_gdbarch_init): Update.
2867 * rx-tdep.c (rx_gdbarch_init): Update.
2868 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2869 * riscv-tdep.c (riscv_gdbarch_init): Update.
2870 * or1k-tdep.c (or1k_gdbarch_init): Update.
2871 * nios2-tdep.c (nios2_gdbarch_init): Update.
2872 * nds32-tdep.c (nds32_gdbarch_init): Update.
2873 * mips-tdep.c (mips_gdbarch_init): Update.
2874 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2875 * m68k-tdep.c (m68k_gdbarch_init): Update.
2876 * i386-tdep.c (i386_gdbarch_init): Update.
2877 * arm-tdep.c (arm_gdbarch_init): Update.
2878 * arc-tdep.c (arc_tdesc_init): Update.
2879 (arc_gdbarch_init): Update.
2880 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2881
2882 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2883
2884 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2885 for WOW64 processes.
2886
2887 2020-09-17 Tom Tromey <tom@tromey.com>
2888
2889 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2890
2891 2020-09-17 Tom Tromey <tom@tromey.com>
2892
2893 * value.c (preserve_values): Update.
2894 * python/py-type.c (save_objfile_types): Update.
2895 * guile/scm-type.c (save_objfile_types): Update.
2896 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2897 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2898 * compile/compile-object-run.c (compile_object_run): Update.
2899
2900 2020-09-17 Tom Tromey <tom@tromey.com>
2901
2902 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2903 Remove.
2904 <m_table>: Now htab_up.
2905 * typeprint.c (typedef_hash_table::recursively_update)
2906 (typedef_hash_table::add_template_parameters)
2907 (typedef_hash_table::typedef_hash_table): Update.
2908 (typedef_hash_table::~typedef_hash_table): Remove.
2909 (typedef_hash_table::typedef_hash_table)
2910 (typedef_hash_table::find_global_typedef)
2911 (typedef_hash_table::find_typedef): Update.
2912
2913 2020-09-17 Tom Tromey <tom@tromey.com>
2914
2915 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2916
2917 2020-09-17 Tom Tromey <tom@tromey.com>
2918
2919 * linespec.c (class decode_compound_collector)
2920 <~decode_compound_collector>: Remove.
2921 <m_unique_syms>: Now htab_up.
2922 (decode_compound_collector::operator ()): Update.
2923 (class symtab_collector) <~symtab_collector>: Remove.
2924 <m_symtab_table>: Now htab_up.
2925 (symtab_collector::operator ()): Update.
2926
2927 2020-09-17 Tom Tromey <tom@tromey.com>
2928
2929 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2930 (filename_seen_cache::clear): Update.
2931 (~filename_seen_cache): Remove.
2932 (filename_seen_cache::seen): Update.
2933 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2934 htab_up.
2935 <~filename_seen_cache>: Remove.
2936 <traverse>: Update.
2937
2938 2020-09-17 Tom Tromey <tom@tromey.com>
2939
2940 * completer.c (completion_tracker::discard_completions)
2941 (completion_tracker::~completion_tracker)
2942 (completion_tracker::maybe_add_completion)
2943 (completion_tracker::remove_completion)
2944 (completion_tracker::recompute_lowest_common_denominator)
2945 (completion_tracker::build_completion_result): Update.
2946 * completer.h (class completion_tracker) <have_completions>:
2947 Update.
2948 <m_entries_hash>: Now htab_up.
2949
2950 2020-09-17 Tom Tromey <tom@tromey.com>
2951
2952 * breakpoint.c (ambiguous_names_p): Use htab_up.
2953
2954 2020-09-17 Tom Tromey <tom@tromey.com>
2955
2956 * auto-load.c (struct auto_load_pspace_info)
2957 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2958 <loaded_script_files, loaded_script_texts>: Change type to
2959 htab_up.
2960 (~auto_load_pspace_info) Remove.
2961 (init_loaded_scripts_info, maybe_add_script_file)
2962 (maybe_add_script_text, auto_load_info_scripts): Update.
2963
2964 2020-09-17 Tom Tromey <tromey@adacore.com>
2965
2966 * c-exp.y (name_obstack): Now static.
2967
2968 2020-09-17 Chungyi Chi <demonic@csie.io>
2969
2970 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2971
2972 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2973
2974 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2975 (add_solib_catchpoint): Likewise.
2976 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2977 to bool.
2978 (add_solib_catchpoint): Change int parameter/variable to bool.
2979 (catch_load_or_unload): Likewise.
2980 (init_catchpoint): Likewise.
2981 (create_fork_vfork_event_catchpoint): Likewise.
2982 (catch_fork_command_1): Likewise.
2983 (catch_exec_command_1): Likewise.
2984
2985 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2988 Change instance_flags to m_instance_flags.
2989
2990 2020-09-16 Tom Tromey <tromey@adacore.com>
2991
2992 PR gdb/26598:
2993 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2994
2995 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2996
2997 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2998 PL_FLAG_EXEC.
2999 (fbsd_nat_target::insert_exec_catchpoint)
3000 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3001 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3002 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3003
3004 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3005
3006 * configure.ac: Remove check for kinfo_getvmmap().
3007 * configure, config.in: Regenerate.
3008 * fbsd-nat.c (fbsd_read_mapping): Remove
3009 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3010 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3011 kinfo_get_vmmap() are always present.
3012
3013 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3014
3015 * fbsd-nat.c: Always include support for
3016 TARGET_OBJECT_SIGNAL_INFO.
3017
3018 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3019
3020 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3021 sysctl and remove procfs fallback.
3022
3023 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3024
3025 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3026 * fbsd-nat.h: Likewise.
3027
3028 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3029
3030 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3031 argument.
3032
3033 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3034
3035 * ada-lang.c (ada_language_data): Delete.
3036 (ada_language): Remove references to ada_language_data.
3037 * c-lang.c (c_language_data): Delete.
3038 (c_language): Remove references to c_language_data.
3039 (cplus_language_data): Delete.
3040 (cplus_language): Remove references to cplus_language_data.
3041 (asm_language_data): Delete.
3042 (asm_language): Remove references to asm_language_data.
3043 (minimal_language_data): Delete.
3044 (minimal_language): Remove references to minimal_language_data.
3045 * d-lang.c (d_language_data): Delete.
3046 (d_language): Remove references to d_language_data.
3047 * f-lang.c (f_language_data): Delete.
3048 (f_language): Remove references to f_language_data.
3049 * go-lang.c (go_language_data): Delete.
3050 (go_language): Remove references to go_language_data.
3051 * language.c (unknown_language_data): Delete.
3052 (unknown_language): Remove references to unknown_language_data.
3053 (auto_language_data): Delete.
3054 (auto_language): Remove references to auto_language_data.
3055 * language.h (language_data): Delete struct.
3056 (language_defn): No longer inherit from language_data.
3057 * m2-lang.c (m2_language_data): Delete.
3058 (m2_language): Remove references to m2_language_data.
3059 * objc-lang.c (objc_language_data): Delete.
3060 (objc_language): Remove references to objc_language_data.
3061 * opencl-lang.c (opencl_language_data): Delete.
3062 (opencl_language): Remove references to opencl_language_data.
3063 * p-lang.c (pascal_language_data): Delete.
3064 (pascal_language): Remove references to pascal_language_data.
3065 * rust-lang.c (rust_language_data): Delete.
3066 (rust_language): Remove references to rust_language_data.
3067
3068 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3071 initializer.
3072 (ada_language::opcode_print_table): New member function.
3073 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3074 (c_language::opcode_print_table): New member function.
3075 (cplus_language_data): Remove la_op_print_tab initializer.
3076 (cplus_language::opcode_print_table): New member function.
3077 (asm_language_data): Remove la_op_print_tab initializer.
3078 (asm_language::opcode_print_table): New member function.
3079 (minimal_language_data): Remove la_op_print_tab initializer.
3080 (minimal_language::opcode_print_table): New member function.
3081 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3082 (d_language::opcode_print_table): New member function.
3083 * expprint.c (print_subexp_standard): Update call to
3084 opcode_print_table.
3085 (op_string): Likewise.
3086 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3087 (f_language::opcode_print_table): New member function.
3088 * go-lang.c (go_language_data): Remove la_op_print_tab
3089 initializer.
3090 (go_language::opcode_print_table): New member function.
3091 * language.c (unknown_language_data): Remove la_op_print_tab
3092 initializer.
3093 (unknown_language::opcode_print_table): New member function.
3094 (auto_language_data): Remove la_op_print_tab initializer.
3095 (auto_language::opcode_print_table): New member function.
3096 * language.h (language_data): Remove la_op_print_tab field.
3097 (language_defn::opcode_print_table): Declare new member function.
3098 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3099 initializer.
3100 (m2_language::opcode_print_table): New member function.
3101 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3102 initializer.
3103 (objc_language::opcode_print_table): New member function.
3104 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3105 initializer.
3106 (opencl_language::opcode_print_table): New member function.
3107 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3108 initializer.
3109 (pascal_language::opcode_print_table): New member function.
3110 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3111 initializer.
3112 (rust_language::opcode_print_table): New member function.
3113
3114 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3115
3116 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3117 (ada_language::expression_ops): New member function.
3118 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3119 (c_language::expression_ops): New member function.
3120 (cplus_language_data): Remove la_exp_desc initializer.
3121 (cplus_language::expression_ops): New member function.
3122 (asm_language_data): Remove la_exp_desc initializer.
3123 (asm_language::expression_ops): New member function.
3124 (minimal_language_data): Remove la_exp_desc initializer.
3125 (minimal_language::expression_ops): New member function.
3126 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3127 (d_language::expression_ops): New member function.
3128 * eval.c (evaluate_subexp): Update call to expression_ops.
3129 * expprint.c (print_subexp): Likewise.
3130 (op_name): Likewise.
3131 (dump_subexp_body): Likewise.
3132 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3133 (f_language::expression_ops): New member function.
3134 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3135 (go_language::expression_ops): New member function.
3136 * language.c (language_defn::expression_ops): New function.
3137 (unknown_language_data): Remove la_exp_desc initializer.
3138 (auto_language_data): Likewise.
3139 * language.h (language_data): Remove la_exp_desc field.
3140 (language_defn::expression_ops): Declare new member function.
3141 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3142 (m2_language::expression_ops): New member function.
3143 * objc-lang.c (objc_language_data): Remove la_exp_desc
3144 initializer.
3145 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3146 initializer.
3147 (opencl_language::expression_ops): New member function.
3148 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3149 * parse.c (operator_length): Update call to expression_ops.
3150 (exp_iterate): Likewise.
3151 * rust-lang.c (rust_language_data): Remove la_exp_desc
3152 initializer.
3153 (ruse_language::expression_ops): New member function.
3154
3155 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3156
3157 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3158 initializer.
3159 (ada_language::varobj_ops): New member function.
3160 * c-lang.c (c_language_data): Remove la_varobj_ops
3161 initializer.
3162 (cplus_language_data): Likewise.
3163 (cplus_language::varobj_ops): New member function.
3164 (asm_language_data): Remove la_varobj_ops initializer.
3165 (minimal_language_data): Likewise.
3166 * d-lang.c (d_language_data): Likewise.
3167 * f-lang.c (f_language_data): Likewise.
3168 * go-lang.c (go_language_data): Likewise.
3169 * language.c (language_defn::varobj_ops): New function.
3170 (unknown_language_data): Remove la_varobj_ops
3171 initializer.
3172 (auto_language_data): Likewise.
3173 * language.h (language_data): Remove la_varobj_ops field.
3174 (language_defn::varobj_ops): Declare new member function.
3175 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3176 * objc-lang.c (objc_language_data): Likewise.
3177 * opencl-lang.c (opencl_language_data): Likewise.
3178 * p-lang.c (pascal_language_data): Likewise.
3179 * rust-lang.c (rust_language_data): Likewise.
3180 * varobj.c (varobj_create): Update call to varobj_ops.
3181 * varobj.h (default_varobj_ops): Delete define.
3182
3183 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3184
3185 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3186 initializer.
3187 * c-lang.c (c_language_data): Likewise.
3188 (c_language::macro_expansion): New member function.
3189 (cplus_language_data): Likewise.
3190 (cplus_language::macro_expansion): New member function.
3191 (asm_language_data): Likewise.
3192 (asm_language::macro_expansion): New member function.
3193 (minimal_language_data): Likewise.
3194 (minimal_language::macro_expansion): New member function.
3195 * d-lang.c (d_language_data): Remove la_macro_expansion
3196 initializer.
3197 * f-lang.c (f_language_data): Likewise.
3198 * go-lang.c (go_language_data): Likewise.
3199 * language.c (unknown_language_data): Likewise.
3200 (auto_language_data): Likewise.
3201 * language.h (language_data): Remove la_macro_expansion field.
3202 (language_defn::macro_expansion): New member function.
3203 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3204 initializer.
3205 * objc-lang.c (objc_language_data): Likewise.
3206 (objc_language::macro_expansion): New member function.
3207 * opencl-lang.c (opencl_language_data): Likewise.
3208 (opencl_language::macro_expansion): New member function.
3209 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3210 initializer.
3211 * rust-lang.c (rust_language_data): Likewise.
3212 * symtab.c (default_collect_symbol_completion_matches_break_on):
3213 Update call to macro_expansion.
3214
3215 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3216
3217 * ada-lang.c (ada_language_data): Remove la_array_ordering
3218 initializer.
3219 * c-lang.c (c_language_data): Likewise.
3220 (cplus_language_data): Likewise.
3221 (asm_language_data): Likewise.
3222 (minimal_language_data): Likewise.
3223 * d-lang.c (d_language_data): Likewise.
3224 * dwarf2/read.c (read_array_order): Update for call to
3225 array_ordering.
3226 * f-lang.c (f_language_data): Remove la_array_ordering
3227 initializer.
3228 (f_language::array_ordering): New member function.
3229 * go-lang.c (go_language_data): Remove la_array_ordering
3230 initializer.
3231 * language.c (unknown_language_data): Likewise.
3232 (auto_language_data): Likewise.
3233 * language.h (language_data): Delete la_array_ordering field.
3234 (language_defn::array_ordering): New member function.
3235 * m2-lang.c (m2_language_data): Remove la_array_ordering
3236 initializer.
3237 * objc-lang.c (objc_language_data): Likewise.
3238 * opencl-lang.c (opencl_language_data): Likewise.
3239 * p-lang.c (pascal_language_data): Likewise.
3240 * rust-lang.c (rust_language_data): Likewise.
3241
3242 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3243
3244 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3245 initializer.
3246 * c-lang.c (c_language_data): Likewise.
3247 (cplus_language_data): Likewise.
3248 (asm_language_data): Likewise.
3249 (minimal_language_data): Likewise.
3250 * d-lang.c (d_language_data): Likewise.
3251 * f-lang.c (f_language_data): Likewise.
3252 (f_language::case_sensitivity): New member function.
3253 * go-lang.c (go_language_data): Remove la_case_sensitivity
3254 initializer.
3255 * language.c (enum case_mode): Moved here from language.h.
3256 (case_mode): Make static.
3257 (show_case_command): Update for case_sensitivity being a method.
3258 (set_case_command): Likewise.
3259 (set_range_case): Likewise.
3260 (unknown_language_data): Remove la_case_sensitivity initializer.
3261 (auto_language_data): Likewise.
3262 * language.h (case_mode): Delete, move enum declaration to
3263 language.c.
3264 (language_data): Delete la_case_sensitivity field.
3265 (language_defn::case_sensitivity): New member function.
3266 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3267 initializer.
3268 * objc-lang.c (objc_language_data): Likewise.
3269 * opencl-lang.c (opencl_language_data): Likewise.
3270 * p-lang.c (pascal_language_data): Likewise.
3271 * rust-lang.c (rust_language_data): Likewise.
3272
3273 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3274
3275 * ada-lang.c (ada_language_data): Remove la_range_check
3276 initializer.
3277 * c-lang.c (c_language_data): Likewise.
3278 (cplus_language_data): Likewise.
3279 (asm_language_data): Likewise.
3280 (minimal_language_data): Likewise.
3281 * d-lang.c (d_language_data): Likewise.
3282 * f-lang.c (f_language_data): Likewise.
3283 (f_language::range_checking_on_by_default): New member function.
3284 * go-lang.c (go_language_data): Remove la_range_check initializer.
3285 * language.c (enum range_mode): Moved here from language.h.
3286 (range_mode): Made static.
3287 (show_range_command): Update to use
3288 range_checking_on_by_default.
3289 (set_range_command): Likewise.
3290 (set_range_case): Likewise.
3291 (unknown_language_data): Remove la_range_check initializer.
3292 (auto_language_data): Likewise.
3293 * language.h (range_mode): Delete. Enum definition moved to
3294 language.c.
3295 (language_data): Remove la_range_check field.
3296 (language_defn::range_checking_on_by_default): New member
3297 function.
3298 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3299 (m2_language::range_checking_on_by_default): New member function.
3300 * objc-lang.c (objc_language_data): Remove la_range_check
3301 initializer.
3302 * opencl-lang.c (opencl_language_data): Likewise.
3303 * p-lang.c (pascal_language_data): Likewise.
3304 (pascal_language::range_checking_on_by_default): New member
3305 function.
3306 * rust-lang.c (rust_language_data): Remove la_range_check
3307 initializer.
3308 (rust_language::range_checking_on_by_default): New member
3309 function.
3310
3311 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3312
3313 * dwarf2/read.c (dwarf2_physname): Remove special case for
3314 language_go.
3315 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3316 member function.
3317
3318 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * ada-lang.c (ada_language_data): Remove
3321 la_store_sym_names_in_linkage_form_p initializer.
3322 (ada_language::store_sym_names_in_linkage_form_p): New member
3323 function.
3324 * c-lang.c (c_language_data): Remove
3325 la_store_sym_names_in_linkage_form_p initializer.
3326 (c_language::store_sym_names_in_linkage_form_p): New member
3327 function.
3328 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3329 initializer.
3330 (asm_language_data): Likewise.
3331 (asm_language::store_sym_names_in_linkage_form_p): New member
3332 function.
3333 (minimal_language_data): Remove
3334 la_store_sym_names_in_linkage_form_p initializer.
3335 (minimal_language::store_sym_names_in_linkage_form_p): New member
3336 function.
3337 * d-lang.c (d_language_data): Remove
3338 la_store_sym_names_in_linkage_form_p initializer.
3339 * dwarf2/read.c (dwarf2_physname): Update call to
3340 store_sym_names_in_linkage_form_p.
3341 * f-lang.c (f_language_data): Remove
3342 la_store_sym_names_in_linkage_form_p initializer.
3343 * go-lang.c (go_language_data): Remove
3344 la_store_sym_names_in_linkage_form_p initializer.
3345 * language.c (unknown_language_data): Remove
3346 la_store_sym_names_in_linkage_form_p initializer.
3347 (unknown_language::store_sym_names_in_linkage_form_p): New member
3348 function.
3349 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3350 initializer.
3351 (auto_language::store_sym_names_in_linkage_form_p): New member
3352 function.
3353 * language.h (language_data): Remove
3354 la_store_sym_names_in_linkage_form_p member variable.
3355 (language_defn::store_sym_names_in_linkage_form_p): New member
3356 function.
3357 * m2-lang.c (m2_language_data): Remove
3358 la_store_sym_names_in_linkage_form_p initializer.
3359 * objc-lang.c (objc_language_data): Likewise.
3360 * opencl-lang.c (opencl_language_data): Likewise.
3361 * p-lang.c (pascal_language_data): Likewise.
3362 * rust-lang.c (rust_language_data): Likewise.
3363
3364 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3365
3366 * ada-lang.c (ada_language_data): Remove string_lower_bound
3367 initializer.
3368 * c-lang.c (c_language_data): Likewise.
3369 (cplus_language_data): Likewise.
3370 (asm_language_data): Likewise.
3371 (minimal_language_data): Likewise.
3372 * d-lang.c (d_language_data): Likewise.
3373 * f-lang.c (f_language_data): Likewise.
3374 * go-lang.c (go_language_data): Likewise.
3375 * language.c (unknown_language_data): Likewise.
3376 (auto_language_data): Likewise.
3377 * language.h (language_data): Remove string_lower_bound field.
3378 (language_defn::string_lower_bound): New member function.
3379 * m2-lang.c (m2_language_data): Remove string_lower_bound
3380 initializer.
3381 (m2_language::string_lower_bound): New member function.
3382 * objc-lang.c (objc_language_data): Remove string_lower_bound
3383 initializer.
3384 * opencl-lang.c (opencl_language_data): Likewise.
3385 * p-lang.c (pascal_language_data): Likewise.
3386 * rust-lang.c (rust_language_data): Likewise.
3387 * valops.c (value_cstring): Update call to string_lower_bound.
3388 (value_string): Likewise.
3389 * value.c (allocate_repeated_value): Likewise.
3390
3391 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3392
3393 * valops.c (value_repeat): Fix incorrect argument name in comment.
3394
3395 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * ada-lang.c (ada_language_data): Remove c_style_arrays
3398 initializer.
3399 (ada_language::c_style_arrays_p): New member fuction.
3400 * c-lang.c (c_language_data): Remove c_style_arrays
3401 initializer.
3402 (cplus_language_data): Likewise.
3403 (asm_language_data): Likewise.
3404 (minimal_language_data): Likewise.
3405 * d-lang.c (d_language_data): Likewise.
3406 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3407 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3408 (f_language::c_style_arrays_p): New member function.
3409 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3410 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3411 * language.c (unknown_language_data): Remove c_style_arrays
3412 initializer.
3413 (auto_language_data): Likewise.
3414 * language.h (language_data): Remove c_style_arrays field.
3415 (language_defn::c_style_arrays_p): New member function.
3416 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3417 (m2_language::c_style_arrays_p): New member function.
3418 * objc-lang.c (objc_language_data): Remove c_style_arrays
3419 initializer.
3420 * opencl-lang.c (opencl_language_data): Likewise.
3421 * p-lang.c (pascal_language_data): Likewise.
3422 * rust-lang.c (rust_language_data): Likewise.
3423 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3424 and update local variable to a bool.
3425 * valops.c (value_cast): Update call to c_style_arrays_p.
3426 (value_array): Likewise.
3427 * value.c (coerce_array): Likewise.
3428
3429 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * ada-lang.c (ada_language_data): Remove la_language initializer.
3432 * c-lang.c (c_language_data): Likewise.
3433 (cplus_language_data): Likewise.
3434 (asm_language_data): Likewise.
3435 (minimal_language_data): Likewise.
3436 * d-lang.c (d_language_data): Likewise.
3437 * f-lang.c (f_language_data): Likewise.
3438 * go-lang.c (go_language_data): Likewise.
3439 * language.c (unknown_language_data): Likewise.
3440 (auto_language_data): Likewise.
3441 * language.h (language_data): Remove la_language field.
3442 (language_defn::language_defn): Initialise la_language field.
3443 (language_defn::la_language): New member variable.
3444 * m2-lang.c (m2_language_data): Remove la_language field.
3445 * objc-lang.c (objc_language_data): Likewise.
3446 * opencl-lang.c (opencl_language_data): Likewise.
3447 * p-lang.c (pascal_language_data): Likewise.
3448 * rust-lang.c (rust_language_data): Likewise.
3449
3450 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3451
3452 * ada-lang.c (ada_extensions): Delete, moved into
3453 ada_language::filename_extensions.
3454 (ada_language_data): Remove la_filename_extensions initializer.
3455 (ada_language::filename_extensions): New member function.
3456 * c-lang.c (c_extensions): Delete, moved into
3457 c_language::filename_extensions.
3458 (c_language_data): Remove la_filename_extensions initializer.
3459 (c_language::filename_extensions): New member function.
3460 (cplus_extensions): Delete, moved into
3461 cplus_language::filename_extensions.
3462 (cplus_language_data): Remove la_filename_extensions initializer.
3463 (cplus_language::filename_extensions): New member function.
3464 (asm_extensions): Delete, moved into
3465 asm_language::filename_extensions.
3466 (asm_language_data): Remove la_filename_extensions initializer.
3467 (asm_language::filename_extensions): New member function.
3468 (minimal_language_data): Remove la_filename_extensions
3469 initializer.
3470 * d-lang.c (d_extensions): Delete, moved into
3471 d_language::filename_extensions.
3472 (d_language_data): Remove la_filename_extensions initializer.
3473 (d_language::filename_extensions): New member function.
3474 * f-lang.c (f_extensions): Delete, moved into
3475 f_language::filename_extensions.
3476 (f_language_data): Remove la_filename_extensions initializer.
3477 (f_language::filename_extensions): New member function.
3478 * go-lang.c (go_language_data): Remove la_filename_extensions
3479 initializer.
3480 * language.c (add_set_language_command): Update now that
3481 filename_extensions returns a vector.
3482 (unknown_language_data): Remove la_filename_extensions
3483 initializer.
3484 (auto_language_data): Likewise.
3485 * language.h (language_data): Remove la_filename_extensions field.
3486 (language_defn::filename_extensions): New member function.
3487 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3488 initializer.
3489 * objc-lang.c (objc_extensions): Delete, moved into
3490 objc_language::filename_extensions.
3491 (objc_language_data): Remove la_filename_extensions initializer.
3492 (objc_language::filename_extensions): New member function.
3493 * opencl-lang.c (opencl_language_data): Remove
3494 la_filename_extensions initializer.
3495 * p-lang.c (pascal_extensions): Delete, moved into
3496 pascal_language::filename_extensions.
3497 (pascal_language_data): Remove la_filename_extensions initializer.
3498 (pascal_language::filename_extensions): New member function.
3499 * rust-lang.c (rust_extensions): Delete, moved into
3500 rust_language::filename_extensions.
3501 (rust_language_data): Remove la_filename_extensions initializer.
3502 (rust_language::filename_extensions): New member function.
3503 * symfile.c (add_filename_language): Add new assert.
3504
3505 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3506
3507 * ada-lang.c (ada_language_data): Remove la_name and
3508 la_natural_name initializers.
3509 (ada_language::name): New member function.
3510 (ada_language::natural_name): New member function.
3511 * c-lang.c (c_language_data): Remove la_name and
3512 la_natural_name initializers.
3513 (c_language::name): New member function.
3514 (c_language::natural_name): New member function.
3515 (cplus_language_data): Remove la_name and
3516 la_natural_name initializers.
3517 (cplus_language::name): New member function.
3518 (cplus_language::natural_name): New member function.
3519 (asm_language_data): Remove la_name and
3520 la_natural_name initializers.
3521 (asm_language::name): New member function.
3522 (asm_language::natural_name): New member function.
3523 (minimal_language_data): Remove la_name and
3524 la_natural_name initializers.
3525 (minimal_language::name): New member function.
3526 (minimal_language::natural_name): New member function.
3527 * compile/compile.c (compile_to_object): Update call to
3528 lanugage_defn::name.
3529 * d-lang.c (d_language_data): Remove la_name and
3530 la_natural_name initializers.
3531 (d_language::name): New member function.
3532 (d_language::natural_name): New member function.
3533 * expprint.c (print_subexp_standard): Update call to
3534 language_defn::name.
3535 (dump_raw_expression): Likewise
3536 (dump_prefix_expression): Likewise.
3537 * f-lang.c (f_language_data): Remove la_name and
3538 la_natural_name initializers.
3539 (f_language::name): New member function.
3540 (f_language::natural_name): New member function.
3541 * go-lang.c (go_language_data): Remove la_name and
3542 la_natural_name initializers.
3543 (go_language::name): New member function.
3544 (go_language::natural_name): New member function.
3545 * language.c (show_language_command): Update call to
3546 language_defn::name.
3547 (set_language_command): Likewise.
3548 (language_enum): Likewise.
3549 (language_str): Likewise.
3550 (add_set_language_command): Likewise, use
3551 language_defn::natural_name in the doc string.
3552 (unknown_language_data): Remove la_name and
3553 la_natural_name initializers.
3554 (unknown_language::name): New member function.
3555 (unknown_language::natural_name): New member function.
3556 (auto_language_data): Remove la_name and
3557 la_natural_name initializers.
3558 (auto_language::name): New member function.
3559 (auto_language::natural_name): New member function.
3560 (language_lookup_primitive_type_as_symbol): Update call to
3561 language_defn::name.
3562 * language.h (language_data): Remove la_name and la_natural_name
3563 member variables.
3564 (language_defn::name): New member function.
3565 (language_defn::natural_name): New member function.
3566 * m2-lang.c (m2_language_data): Remove la_name and
3567 la_natural_name initializers.
3568 (m2_language::name): New member function.
3569 (m2_language::natural_name): New member function.
3570 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3571 language_defn::natural_name.
3572 * objc-lang.c (objc_language_data): Remove la_name and
3573 la_natural_name initializers.
3574 (objc_language::name): New member function.
3575 (objc_language::natural_name): New member function.
3576 * opencl-lang.c (opencl_language_data): Remove la_name and
3577 la_natural_name initializers.
3578 (opencl_language::name): New member function.
3579 (opencl_language::natural_name): New member function.
3580 * p-lang.c (pascal_language_data): Remove la_name and
3581 la_natural_name initializers.
3582 (pascal_language::name): New member function.
3583 (pascal_language::natural_name): New member function.
3584 * rust-lang.c (rust_language_data): Remove la_name and
3585 la_natural_name initializers.
3586 (rust_language::name): New member function.
3587 (rust_language::natural_name): New member function.
3588 * symtab.c (lookup_language_this): Update call to
3589 language_defn::name.
3590
3591 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3592
3593 * ada-lang.c (ada_language_data): Remove la_name_of_this
3594 initializer.
3595 * ax-gdb.c (gen_expr): Update call to name_of_this.
3596 * c-exp.y (classify_name): Likewise.
3597 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3598 (cplus_language_data): Likewise.
3599 (cplus_language::name_of_this): New member function.
3600 (asm_language_data): Remove la_name_of_this initializer.
3601 (minimal_language_data): Likewise.
3602 * d-lang.c (d_language_data): Likewise.
3603 (d_language::name_of_this): New member function.
3604 * expprint.c (print_subexp_standard): Update call to name_of_this.
3605 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3606 * go-lang.c (go_language_data): Likewise.
3607 * language.c (unknown_language_data): Likewise.
3608 (unknown_language::name_of_this): New member function.
3609 (auto_language_data): Remove la_name_of_this initializer.
3610 (auto_language::name_of_this): New member function.
3611 * language.h (language_data): Delete la_name_of_this member
3612 variable.
3613 (language_defn::name_of_this): New member function.
3614 * m2-lang.c (m2_language_data): Remove la_name_of_this
3615 initializer.
3616 * objc-lang.c (objc_language_data): Likewise.
3617 (objc_language::name_of_this): New member function.
3618 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3619 initializer.
3620 * p-lang.c (pascal_language_data): Likewise.
3621 (pascal_language::name_of_this): New member function.
3622 * rust-lang.c (rust_language_data): Remove la_name_of_this
3623 initializer.
3624 * symtab.c (lookup_language_this): Update call to name_of_this.
3625 (lookup_symbol_aux): Likewise.
3626 * valops.c (value_of_this): Likewise.
3627
3628 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * ada-lang.c (ada_language_data): Remove
3631 la_struct_too_deep_ellipsis initializer.
3632 (ada_language::struct_too_deep_ellipsis): New member function.
3633 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3634 initializer.
3635 (cplus_language_data): Likewise.
3636 (asm_language_data): Likewise.
3637 (minimal_language_data): Likewise.
3638 * cp-valprint.c (cp_print_value): Update call to
3639 struct_too_deep_ellipsis.
3640 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3641 initializer.
3642 * f-lang.c (f_language_data): Likewise.
3643 (f_language::struct_too_deep_ellipsis): New member function.
3644 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3645 initializer.
3646 * language.c (unknown_language_data): Likewise.
3647 (auto_language_data): Likewise.
3648 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3649 member variable.
3650 (language_defn::struct_too_deep_ellipsis): New member function.
3651 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3652 initializer.Q
3653 * objc-lang.c (objc_language_data): Likewise.
3654 * opencl-lang.c (opencl_language_data): Likewise.
3655 * p-lang.c (pascal_language_data): Likewise.
3656 * rust-lang.c (rust_language_data): Likewise.
3657 * valprint.c (val_print_check_max_depth): Update call to
3658 struct_too_deep_ellipsis.
3659
3660 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3661
3662 * MAINTAINERS (Write After Approval): Add myself.
3663
3664 2020-09-15 Tom Tromey <tom@tromey.com>
3665
3666 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3667 Remove.
3668
3669 2020-09-15 Tom Tromey <tom@tromey.com>
3670
3671 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3672 and TYPE_CODE_METHODPTR cases.
3673 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3674 (c_value_print_inner): Update.
3675 * valprint.c (generic_value_print_memberptr): New function, from
3676 c_value_print_memberptr.
3677 (generic_value_print): Use it. Call cplus_print_method_ptr.
3678
3679 2020-09-15 Tom Tromey <tromey@adacore.com>
3680
3681 * python/python-internal.h (PyInt_FromLong): Remove define.
3682 * python/py-value.c (convert_value_from_python): Use
3683 gdb_py_object_from_longest.
3684 * python/py-type.c (typy_get_code): Use
3685 gdb_py_object_from_longest.
3686 * python/py-symtab.c (salpy_get_line): Use
3687 gdb_py_object_from_longest.
3688 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3689 gdb_py_object_from_longest.
3690 * python/py-record.c (recpy_gap_reason_code): Use
3691 gdb_py_object_from_longest.
3692 * python/py-record-btrace.c (recpy_bt_insn_size)
3693 (recpy_bt_func_level, btpy_list_count): Use
3694 gdb_py_object_from_longest.
3695 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3696 gdb_py_object_from_longest. Fix error handling.
3697 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3698 gdb_py_object_from_longest.
3699 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3700 gdb_py_object_from_longest.
3701 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3702 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3703 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3704
3705 2020-09-15 Tom Tromey <tromey@adacore.com>
3706
3707 * python/python.c (gdbpy_parameter_value): Use
3708 gdb_py_object_from_ulongest.
3709
3710 2020-09-15 Tom Tromey <tromey@adacore.com>
3711
3712 * python/py-infevents.c (create_register_changed_event_object):
3713 Use gdb_py_object_from_longest.
3714 * python/py-exitedevent.c (create_exited_event_object): Use
3715 gdb_py_object_from_longest.
3716
3717 2020-09-15 Tom Tromey <tromey@adacore.com>
3718
3719 * python/python.c (gdbpy_parameter_value): Use
3720 gdb_py_object_from_longest.
3721 * python/py-type.c (convert_field, typy_range): Use
3722 gdb_py_object_from_longest.
3723 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3724 gdb_py_object_from_longest.
3725 * python/py-lazy-string.c (stpy_get_length): Use
3726 gdb_py_object_from_longest.
3727 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3728 gdb_py_object_from_longest.
3729 * python/py-infevents.c (create_memory_changed_event_object): Use
3730 gdb_py_object_from_longest.
3731 * python/py-inferior.c (infpy_get_num): Use
3732 gdb_py_object_from_longest.
3733 (infpy_get_pid): Likewise.
3734
3735 2020-09-15 Tom Tromey <tromey@adacore.com>
3736
3737 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3738 defines.
3739 * python/py-value.c (valpy_long): Use
3740 gdb_py_object_from_ulongest.
3741 * python/py-symtab.c (salpy_get_pc): Use
3742 gdb_py_object_from_ulongest.
3743 (salpy_get_last): Likewise.
3744 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3745 gdb_py_object_from_ulongest.
3746 * python/py-lazy-string.c (stpy_get_address): Use
3747 gdb_py_object_from_ulongest.
3748 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3749 * python/py-arch.c (archpy_disassemble): Use
3750 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3751 error handling.
3752
3753 2020-09-15 Tom Tromey <tromey@adacore.com>
3754
3755 * python/python-internal.h (gdb_py_long_from_longest): Remove
3756 defines.
3757 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3758 * python/py-type.c (convert_field, typy_get_sizeof): Use
3759 gdb_py_object_from_longest.
3760 * python/py-record-btrace.c (btpy_list_index): Use
3761 gdb_py_object_from_longest.
3762
3763 2020-09-15 Tom Tromey <tromey@adacore.com>
3764
3765 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3766 * python/py-record.c (recpy_element_number): Use
3767 gdb_py_object_from_longest.
3768 (recpy_gap_number): Likewise.
3769
3770 2020-09-15 Tom Tromey <tromey@adacore.com>
3771
3772 * top.c (ui::ui): Update.
3773 (highest_ui_num): Remove.
3774 * top.h (struct ui) <num>: Remove.
3775
3776 2020-09-15 Tom Tromey <tromey@adacore.com>
3777
3778 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3779 * ui-style.c (ansi_regex_text): Now array.
3780 * rust-exp.y (number_regex_text): Now array.
3781 * linespec.c (linespec_quote_characters): Now array.
3782 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3783 Now arrays.
3784
3785 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3786
3787 * debuginfod-support.c (debuginfod_client_deleter): New.
3788 (debuginfod_client_up): New.
3789 (debuginfod_init): Return debuginfod_client_up.
3790 (debuginfod_source_query): Adjust.
3791 (debuginfod_debuginfo_query): Adjust.
3792
3793 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3794
3795 * debuginfod-support.c (debuginfod_source_query): Use
3796 make_unique_xstrdup.
3797
3798 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3799
3800 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3801 with `type::instance_flags`.
3802
3803 2020-09-14 Michael Mullin <masmullin@gmail.com>
3804
3805 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3806 Remove baton parameter.
3807
3808 2020-09-14 Pedro Alves <pedro@palves.net>
3809
3810 * Makefile.in (SELFTESTS_SRCS): Add
3811 unittests/enum-flags-selftests.c.
3812 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3813 btrace_function_flags instead of enum btrace_function_flag.
3814 * compile/compile-c-types.c (convert_qualified): Use
3815 enum_flags::raw.
3816 * compile/compile-cplus-symbols.c (convert_one_symbol)
3817 (convert_symbol_bmsym):
3818 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3819 (compile_cplus_convert_struct_or_union_methods)
3820 (compile_cplus_instance::convert_qualified_base):
3821 * go-exp.y (parse_string_or_char): Add cast to int.
3822 * unittests/enum-flags-selftests.c: New file.
3823 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3824 type to btrace_thread_flags from btrace_thread_flag.
3825 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3826 local's type to btrace_thread_flags from btrace_thread_flag. Add
3827 cast in DEBUG call.
3828
3829 2020-09-14 Pedro Alves <pedro@palves.net>
3830
3831 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3832 * gdbtypes.c (address_space_name_to_int): Rename to ...
3833 (address_space_name_to_type_instance_flags): ... this.
3834 (address_space_int_to_name): Rename to ...
3835 (address_space_type_instance_flags_to_name): ... this.
3836 * gdbtypes.h (address_space_name_to_int): Rename to ...
3837 (address_space_name_to_type_instance_flags): ... this.
3838 (address_space_int_to_name): Rename to ...
3839 (address_space_type_instance_flags_to_name): ... this.
3840 * type-stack.c (type_stack::insert): Adjust to rename.
3841 * type-stack.h (type_stack::insert): Likewise.
3842
3843 2020-09-14 Pedro Alves <pedro@palves.net>
3844 Andrew Burgess <andrew.burgess@embecosm.com>
3845
3846 * avr-tdep.c (avr_address_class_type_flags): Return
3847 type_instance_flags.
3848 (avr_address_class_type_flags_to_name): Take a
3849 type_instance_flags.
3850 (avr_address_class_name_to_type_flags): Return bool and take a
3851 type_instance_flags.
3852 * d-lang.c (build_d_types): Use type::set_instance_flags.
3853 * ft32-tdep.c (ft32_address_class_type_flags): Return
3854 type_instance_flags.
3855 (ft32_address_class_type_flags_to_name): Take a
3856 type_instance_flags.
3857 (ft32_address_class_name_to_type_flags): Return bool and take a
3858 type_instance_flags.
3859 (ft32_gdbarch_init): Use type::set_instance_flags.
3860 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3861 * gdbarch.h, gdbarch.c: Regenerate.
3862 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3863 (address_class_name_to_type_flags): Use type_instance_flags and
3864 bool.
3865 * gdbtypes.c (address_space_name_to_int)
3866 (address_space_int_to_name, make_qualified_type): Use
3867 type_instance_flags.
3868 (make_qualified_type): Use type_instance_flags and
3869 type::set_instance_flags.
3870 (make_type_with_address_space, make_cv_type, make_vector_type)
3871 (check_typedef): Use type_instance_flags.
3872 (recursive_dump_type): Cast type_instance_flags to unsigned for
3873 printing.
3874 (copy_type_recursive): Use type::set_instance_flags.
3875 (gdbtypes_post_init): Use type::set_instance_flags.
3876 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3877 <m_instance_flags>: ... this.
3878 <instance_flags, set_instance_flags>: New methods.
3879 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3880 (SET_TYPE_INSTANCE_FLAGS): New.
3881 (address_space_name_to_int, address_space_int_to_name)
3882 (make_type_with_address_space): Pass flags using
3883 type_instance_flags instead of int.
3884 * stabsread.c (cleanup_undefined_types_noname): Use
3885 type::set_instance_flags.
3886 * s390-tdep.c (s390_address_class_type_flags): Return
3887 type_instance_flags.
3888 (s390_address_class_type_flags_to_name): Take a
3889 type_instance_flags.
3890 (s390_address_class_name_to_type_flags): Return bool and take a
3891 type_instance_flags.
3892 * type-stack.c (type_stack::follow_types): Use
3893 type_instance_flags.
3894 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3895
3896 2020-09-14 Tom Tromey <tromey@adacore.com>
3897
3898 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3899 * x86-tdep.c (x86_is_thunk_register_name)
3900 (x86_in_indirect_branch_thunk): Update.
3901 * sparc64-tdep.c (sparc64_fpu_register_names)
3902 (sparc64_cp0_register_names, sparc64_register_names)
3903 (sparc64_pseudo_register_names): Now const.
3904 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3905 cp0_registers_num>: Now const.
3906 * sparc-tdep.c (sparc_core_register_names)
3907 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3908 (sparc32_pseudo_register_names): Now const.
3909 (validate_tdesc_registers): Update.
3910 * rust-lang.c (rust_extensions): Now const.
3911 * p-lang.c (p_extensions): Now const.
3912 * objc-lang.c (objc_extensions): Now const.
3913 * nto-tdep.c (nto_thread_state_str): Now const.
3914 * moxie-tdep.c (moxie_register_names): Now const.
3915 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3916 Now const.
3917 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3918 (mips_linux_reg_names): Now const.
3919 (mips_gdbarch_init): Update.
3920 * microblaze-tdep.c (microblaze_register_names): Now const.
3921 * m68k-tdep.c (m68k_register_names): Now const.
3922 * m32r-tdep.c (m32r_register_names): Now const.
3923 * ia64-tdep.c (ia64_register_names): Now const.
3924 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3925 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3926 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3927 ymm_avx512_register_names, pkeys_register_names>: Now const.
3928 * i386-tdep.c (i386_register_names, i386_zmm_names)
3929 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3930 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3931 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3932 * f-lang.c (f_extensions): Now const.
3933 * d-lang.c (d_extensions): Now const.
3934 * csky-tdep.c (csky_register_names): Now const.
3935 * charset.c (default_charset_names, charset_enum): Now const.
3936 (_initialize_charset): Update.
3937 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3938 const.
3939 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3940 (bsd_uthread_solib_loaded): Update.
3941 (bsd_uthread_state): Now const.
3942 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3943 (amd64_ymm_avx512_names, amd64_ymmh_names)
3944 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3945 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3946 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3947 (amd64_dword_names): Now const.
3948 * agent.c (can_use_agent_enum): Now const.
3949 * ada-tasks.c (task_states, long_task_states): Now const.
3950 * ada-lang.c (known_runtime_file_name_patterns)
3951 (known_auxiliary_function_name_patterns, attribute_names)
3952 (standard_exc, ada_extensions): Now const.
3953
3954 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3955
3956 * bcache.h (struct bcache) <bcache>: Remove constructor.
3957 <m_hash_function, m_compare_function>: Remove.
3958 <~bcache>: Make virtual.
3959 <compare>: Remove static method, introduce virtual method.
3960 <default_hash>: Remove.
3961 <hash>: New virtual method.
3962 * bcache.c (bcache::expand_hash_table): Update.
3963 (bcache::insert): Update.
3964 (bcache::hash): New.
3965 (bcache::compare): Update comment and parameter names.
3966 * gdbtypes.c (types_deeply_equal): Update.
3967 * psymtab.h (struct psymbol_bcache): New struct.
3968 (class psymtab_storage) <psymtab_storage>: Make default.
3969 <psymbol_cache>: Change type to psymbol_bcache.
3970 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3971 (psymbol_hash): Change to...
3972 (psymbol_bcache::hash): ... this.
3973 (psymbol_compare): Change to...
3974 (psymbol_bcache::compare): ... this.
3975
3976 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3977
3978 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3979 checking for initial lwp.
3980
3981 2020-09-14 Tom Tromey <tromey@adacore.com>
3982
3983 * m68k-tdep.c (m68k_extract_return_value): Use
3984 pointer_result_regnum.
3985 (m68k_store_return_value): Likewise.
3986 (m68k_reg_struct_return_p): Handle vectors and arrays.
3987 (m68k_return_value): Handle arrays.
3988 (m68k_svr4_return_value): Fix single-element aggregate handling.
3989 Handle long double. Adjust for embedded ABI.
3990 (m68k_svr4_init_abi): Set pointer_result_regnum.
3991 (m68k_embedded_init_abi): New function.
3992 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3993 (m68k_osabi_sniffer): New function.
3994 (_initialize_m68k_tdep): Register osabi sniffer.
3995 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3996 member.
3997
3998 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3999
4000 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4001 with gdb::unique_xmalloc_ptr<char>.
4002
4003 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4004
4005 * xml-support.h (xml_fetch_another): Change type to be a
4006 function_view.
4007 (xml_process_xincludes): Remove baton parameter.
4008 (xml_fetch_content_from_file): Change baton parameter to
4009 dirname.
4010 * xml-support.c (struct xinclude_parsing_data)
4011 <xinclude_parsing_data>: Remove baton parameter.
4012 <fetcher_baton>: Remove.
4013 (xinclude_start_include): Adjust.
4014 (xml_process_xincludes): Adjust.
4015 (xml_fetch_content_from_file): Replace baton parameter with
4016 dirname.
4017 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4018 (xml_init_syscalls_info): Use a lambda.
4019 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4020 (file_read_description_xml): Use a lambda.
4021 (fetch_available_features_from_target): Change baton parameter
4022 to target_ops.
4023 (target_read_description_xml): Use a lambda.
4024 (target_fetch_description_xml): Use a lambda.
4025 (string_read_description_xml): Update.
4026
4027 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4028
4029 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4030 uses with type::endianity_is_not_default.
4031
4032 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * gdbtypes.h (struct type) <endianity_is_not_default,
4035 set_endianity_is_not_default>: New methods.
4036 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4037 type::endianity_is_not_default, change all write call sites to
4038 use type::set_endianity_is_not_default.
4039
4040 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4041
4042 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4043 uses with type::is_fixed_instance.
4044
4045 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * gdbtypes.h (struct type) <is_fixed_instance,
4048 set_is_fixed_instance>: New methods.
4049 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4050 write call sites to use type::set_is_fixed_instance.
4051
4052 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4053
4054 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4055 uses with type::is_gnu_ifunc.
4056
4057 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4060 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4061 use type::set_is_gnu_ifunc.
4062
4063 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4066 uses with type::stub_is_supported.
4067
4068 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4069
4070 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4071 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4072 use type::set_stub_is_supported.
4073
4074 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4075
4076 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4077 uses with type::is_vector.
4078
4079 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4080
4081 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4082 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4083 use type::set_is_vector.
4084
4085 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4088 uses with type::has_varargs.
4089
4090 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4091
4092 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4093 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4094 use type::set_has_varargs.
4095
4096 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4099 uses with type::is_prototyped.
4100
4101 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4102
4103 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4104 New methods.
4105 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4106 call sites to use type::set_is_prototyped.
4107
4108 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4111 uses with type::target_is_stub.
4112
4113 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4116 New methods.
4117 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4118 sites to use type::set_target_is_stub.
4119
4120 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * gdbtypes.h (TYPE_STUB): Remove, replace all
4123 uses with type::is_stub.
4124
4125 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4126
4127 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4128 (TYPE_STUB): Use type::is_stub, change all write call sites to
4129 use type::set_is_stub.
4130
4131 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4132
4133 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4134 type::has_no_signedness.
4135
4136 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * gdbtypes.h (struct type) <has_no_signedness,
4139 set_has_no_signedness>: New methods.
4140 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4141 call sites to use type::set_has_no_signedness.
4142
4143 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4144
4145 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4146 type::is_unsigned.
4147
4148 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4149
4150 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4151 methods.
4152 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4153 sites to use type::set_is_unsigned.
4154
4155 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4156 Adam Renquinha <arenquinha@cimeq.qc.ca>
4157
4158 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4159 pointer and stack frame offset when unwinding.
4160
4161 2020-09-13 Pedro Alves <pedro@palves.net>
4162
4163 * NEWS: Document "-break-insert --qualified".
4164 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4165
4166 2020-09-13 Pedro Alves <pedro@palves.net>
4167
4168 * linespec.c (classify_mtype, compare_msyms): Delete.
4169 (search_minsyms_for_name): Remove classification logic. Instead
4170 filter out trampoline symbols if we also found an external
4171 function of the same name.
4172
4173 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4174
4175 * NEWS: Create a new section for the next release branch.
4176 Rename the section of the current branch, now that it has
4177 been cut.
4178
4179 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4180
4181 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4182 * version.in: Bump version to 11.0.50.DATE-git.
4183
4184 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4185
4186 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4187
4188 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4189 Felix Willgerodt <Felix.Willgerodt@intel.com>
4190
4191 * gdbarch.sh: Added bfloat16 type.
4192 * gdbarch.c: Regenerated.
4193 * gdbarch.h: Regenerated.
4194 * gdbtypes.c (floatformats_bfloat16): New struct.
4195 (gdbtypes_post_init): Add builtin_bfloat16.
4196 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4197 (floatformats_bfloat16): New struct.
4198 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4199 (i386_ymm_type): Add field "v16_bfloat16"
4200 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4201 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4202 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4203 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4204 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4205 * features/i386/64bit-avx512.c: Regenerated.
4206 * features/i386/64bit-sse.xml: Add bfloat16 type.
4207 * features/i386/64bit-sse.c: Regenerated.
4208
4209 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4210
4211 * i386-tdep.c (i386_zmm_type): Fix field names.
4212 (i386_ymm_type): Fix field names.
4213
4214 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4215
4216 * breakpoint.c: Fix typo in the help message of the
4217 "set breakpoint condition-evaluation" command.
4218
4219 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4220
4221 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4222 * (nbsd_nat_target::pid_to_exec_file)
4223 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4224 (nbsd_nat_target::post_startup_inferior)
4225 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4226 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4227 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4228 * (nbsd_thread_lister): Remove.
4229
4230 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4231
4232 * fork-inferior.c (startup_inferior): Avoid double free.
4233
4234 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4235
4236 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4237 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4238
4239 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4240
4241 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4242 * netbsd-nat.c: Include <sys/ptrace.h>.
4243 * (netbsd_nat::enable_proc_events): Add.
4244
4245 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4246
4247 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4248 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4249 (netbsd_nat::for_each_thread): Add.
4250 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4251 "gdbsupport/common-debug.h".
4252 * (netbsd_nat::netbsd_thread_lister)
4253 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4254 (netbsd_nat::for_each_thread): Add.
4255
4256 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4257
4258 * netbsd-nat.h: Include <unistd.h>.
4259 * (netbsd_nat::pid_to_exec_file): Add.
4260 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4261 * (netbsd_nat::pid_to_exec_file) Add.
4262
4263 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4264
4265 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4266
4267 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4268
4269 * netbsd-nat.h: New file.
4270 * netbsd-nat.c: Likewise.
4271
4272 2020-09-09 Tom Tromey <tromey@adacore.com>
4273
4274 * ada-lang.c (remove_extra_symbols): Do not increment when
4275 removing an element
4276
4277 2020-09-08 Tom Tromey <tromey@adacore.com>
4278
4279 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4280
4281 2020-09-08 Tom Tromey <tromey@adacore.com>
4282
4283 PR win32/25302:
4284 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4285 (gdb_bfd_init_data): New function.
4286 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4287
4288 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4289
4290 * infrun.c (fetch_inferior_event): Use
4291 `switch_to_target_no_thread` to switch the target.
4292
4293 2020-09-06 Tom Tromey <tom@tromey.com>
4294
4295 * symfile.h (dwarf2_free_objfile): Don't declare.
4296
4297 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4298
4299 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4300 to match 16 byte real/complex type generated by Flang compiler.
4301
4302 2020-09-03 Tom de Vries <tdevries@suse.de>
4303
4304 PR breakpoint/26546
4305 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4306 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4307
4308 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4309
4310 * maint.c (index_digits): New function.
4311 (struct maint_print_section_data): Remove.
4312 (print_bfd_section_info): Remove print_data parameter, add arg
4313 and index_digits.
4314 (print_objfile_section_info): Likewise.
4315 (print_bfd_section_info_maybe_relocated): Likewise (plus
4316 objfile).
4317 (maintenance_info_sections): Adjust calls.
4318
4319 2020-09-02 Tom Tromey <tromey@adacore.com>
4320
4321 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4322 for null pointers.
4323 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4324
4325 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4326
4327 * bcache.h (struct bcache) <insert>: Change type of `added` to
4328 pointer to bool.
4329 * bcache.c (bcache::insert): Likewise.
4330 * gdbtypes.c (check_types_worklist): Adjust.
4331 * psymtab.c (add_psymbol_to_bcache): Adjust.
4332
4333 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4334
4335 * corelow.c (unordered_set): Include.
4336 (class core_target): Add field 'm_core_unavailable_mappings'.
4337 (core_target::build_file_mappings): Print only one warning
4338 per inaccessible file. Add unavailable/broken mappings
4339 to m_core_unavailable_mappings.
4340 (core_target::xfer_partial): Call...
4341 (core_target::xfer_memory_via_mappings): New method.
4342
4343 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4344
4345 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4346 type to bool.
4347
4348 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4349
4350 * dwarf2/read.c (struct field_info): Fix indentation.
4351
4352 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4355 ordering in comment.
4356 * frame.c (frame_id_eq): Fix indentation.
4357
4358 2020-08-31 Scott Linder <scott@scottlinder.com>
4359 Simon Marchi <simon.marchi@efficios.com>
4360
4361 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4362 inline frame ids in outer frame.
4363
4364 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4365
4366 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4367 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4368 (outer_frame_id): Use FID_STACK_OUTER instead of
4369 FID_STACK_INVALID.
4370 (frame_id_p): Don't check for outer_frame_id.
4371
4372 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4375 regnum/frame in value. Call allocate_value_lazy.
4376 * frame.c (frame_unwind_register_value): Use
4377 val_print_not_saved.
4378
4379 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4380
4381 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4382
4383 2020-08-29 Pedro Alves <pedro@palves.net>
4384
4385 * progspace.c (print_program_space): Use all_inferiors. Switch to
4386 the inferior before calling target_pid_to_str.
4387
4388 2020-08-28 Tom Tromey <tom@tromey.com>
4389
4390 * xcoffread.c (xcoff_end_psymtab): Update comment.
4391 * dbxread.c (dbx_end_psymtab): Update comment.
4392
4393 2020-08-28 Tom de Vries <tdevries@suse.de>
4394
4395 PR breakpoint/26544
4396 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4397 event_location.
4398 (create_breakpoint): Same.
4399 (base_breakpoint_decode_location): Same.
4400 (bkpt_create_sals_from_location): Same.
4401 (bkpt_decode_location): Same.
4402 (bkpt_probe_create_sals_from_location): Same.
4403 (bkpt_probe_decode_location): Same.
4404 (tracepoint_create_sals_from_location): Same.
4405 (tracepoint_decode_location): Same.
4406 (tracepoint_probe_decode_location): Same.
4407 (strace_marker_create_sals_from_location): Same.
4408 (strace_marker_decode_location): Same.
4409 (create_sals_from_location_default): Same.
4410 (decode_location_default): Same.
4411 * breakpoint.h (struct breakpoint_ops): Same.
4412 (create_breakpoint): Same.
4413 * linespec.h (decode_line_full): Same.
4414 * linespec.c (decode_line_full): Same. Throw error if
4415 result.size () == 0.
4416
4417 2020-08-27 Pedro Alves <pedro@palves.net>
4418
4419 PR gdb/26524
4420 * breakpoint.c (until_break_fsm) <location_breakpoint,
4421 caller_breakpoint>: Delete fields.
4422 <breakpoints>: New field.
4423 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4424 two individual breakpoints.
4425 (until_break_fsm::should_stop): Loop over breakpoints in the
4426 breakpoint vector.
4427 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4428 vector.
4429 (until_break_command): Handle location expanding into multiple
4430 sals.
4431
4432 2020-08-27 Pedro Alves <pedro@palves.net>
4433
4434 PR gdb/26523
4435 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4436 bp_until breakpoints user-specified locations. Update intro
4437 comment.
4438
4439 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4440
4441 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4442 gdb_bfd_sections): New.
4443 * maint.c (print_bfd_section_info): Change param type to
4444 maint_print_section_data.
4445 (print_objfile_section_info): Likewise.
4446 (print_bfd_section_info_maybe_relocated): Likewise.
4447 (maintenance_info_sections): Use gdb_bfd_sections.
4448
4449 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4450
4451 * MAINTAINERS: Add ARC target and maintainer.
4452
4453 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4454
4455 * configure.tgt: ARC support for GNU/Linux.
4456 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4457 * arc-linux-tdep.c: New file.
4458 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4459 * arc-tdep.c (arc_write_pc): Use it.
4460
4461 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4462
4463 * arc-tdep.c (arc_check_for_hardware_loop): New.
4464 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4465
4466 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4467
4468 * arc-tdep.h: Include "gdbarch.h".
4469
4470 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4471
4472 * arch/arc.h
4473 (arc_gdbarch_features): New class to stir the selection of target XML.
4474 (arc_create_target_description): Use FEATURES to choose XML target.
4475 (arc_lookup_target_description): Use arc_create_target_description
4476 to create _new_ target descriptions or return the already created
4477 ones if the FEATURES is the same.
4478 * arch/arc.c: Implementation of prototypes described above.
4479 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4480 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4481 * arc-tdep.c (*_feature_name): Make feature names consistent.
4482 (arc_register_feature): A new struct to hold information about
4483 registers of a particular target/feature.
4484 (arc_check_tdesc_feature): Check if XML provides registers in
4485 compliance with ARC_REGISTER_FEATURE structs.
4486 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4487 (determine_*_reg_feature_set): Which feature name to look for.
4488 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4489 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4490 to expected ISA enums to be used in arc_gdbarch_features structs.
4491 * features/Makefile (FEATURE_XMLFILES): Add new files.
4492 * gdb/features/arc/v1-aux.c: New file.
4493 * gdb/features/arc/v1-aux.xml: Likewise.
4494 * gdb/features/arc/v1-core.c: Likewise.
4495 * gdb/features/arc/v1-core.xml: Likewise.
4496 * gdb/features/arc/v2-aux.c: Likewise.
4497 * gdb/features/arc/v2-aux.xml: Likewise.
4498 * gdb/features/arc/v2-core.c: Likewise.
4499 * gdb/features/arc/v2-core.xml: Likewise.
4500 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4501
4502 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4503 Andrew Burgess <andrew.burgess@embecosm.com>
4504
4505 PR m2/26372
4506 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4507 an assert. Remove single element array indexing pattern as the
4508 MULTI_SUBSCRIPT support will handle this case too.
4509
4510 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4511
4512 * value.h (valprint_check_validity): Move declaration from
4513 here...
4514 * valprint.h (valprint_check_validity): ... to here.
4515
4516 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * debug.h: New file.
4519 * debug.c (debug_prefixed_vprintf): New function.
4520 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4521 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4522
4523 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4524
4525 * infrun.h (infrun_debug_printf_1): New function declaration.
4526 (infrun_debug_printf): New macro.
4527 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4528 throughout.
4529 (infrun_debug_printf): New function.
4530 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4531 (handle_jit_event): Likewise.
4532
4533 2020-08-21 Mark Wielaard <mark@klomp.org>
4534
4535 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4536
4537 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4538
4539 * frame.c (enum class frame_id_status): New.
4540 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4541 (fprintf_frame): Update.
4542 (compute_frame_id): Set frame id status to "computing" on entry.
4543 Set it back to "not_computed" on failure and to "computed" on
4544 success.
4545 (get_frame_id): Assert the frame id is not being computed.
4546 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4547 (create_new_frame): Likewise.
4548 (frame_cleanup_after_sniffer): Update assert.
4549
4550 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4551
4552 * regcache.c (pid_ptid_regcache_map): New type.
4553 (target_ptid_regcache_map): Remove.
4554 (target_pid_ptid_regcache_map): New type.
4555 (regcaches): Change type to target_pid_ptid_regcache_map.
4556 (get_thread_arch_aspace_regcache): Update.
4557 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4558 case.
4559 (regcaches_size): Update.
4560 (regcache_count): Update.
4561 (registers_changed_ptid_target_pid_test): New.
4562 (_initialize_regcache): Register new test.
4563
4564 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4565
4566 * regcache.c (regcache_count): New.
4567 (struct regcache_test_data): New.
4568 (regcache_test_data_up): New.
4569 (populate_regcaches_for_test): New.
4570 (regcaches_test): Remove.
4571 (get_thread_arch_aspace_regcache_test): New.
4572 (registers_changed_ptid_all_test): New.
4573 (registers_changed_ptid_target_test): New.
4574 (registers_changed_ptid_target_ptid_test): New.
4575 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4576 (_initialize_regcache): Register new tests.
4577
4578 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4579
4580 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4581 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4582 gdbarch and aspace parameter. Use current inferior's aspace.
4583 Validate regcache's arch value.
4584 (regcaches_test): Update.
4585
4586 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4587
4588 * regcache.c (regcaches_test): Call registers_changed.
4589
4590 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4591
4592 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4593
4594 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4595
4596 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4597 to find the end of prologue for flang compiled binaries.
4598 * arm-tdep.c (arm_skip_prologue): Likewise.
4599 * i386-tdep.c (i386_skip_prologue): Likewise.
4600 * producer.c (producer_is_llvm): New function.
4601 (producer_parsing_tests): Added new tests for clang/flang.
4602 * producer.h (producer_is_llvm): New declaration.
4603
4604 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4605
4606 * linux-nat.c (linux_nat_debug_printf): New function.
4607 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4608
4609 2020-08-18 Aaron Merey <amerey@redhat.com>
4610
4611 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4612 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4613 (CLIBS): Add DEBUGINFOD_LIBS.
4614
4615 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4616
4617 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4618 'gdbarch_num_regs'.
4619
4620 2020-08-17 Tom Tromey <tromey@adacore.com>
4621
4622 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4623 ada_get_decoded_value returns NULL.
4624
4625 2020-08-17 Tom Tromey <tromey@adacore.com>
4626
4627 * python/py-inferior.c (infpy_search_memory): Use
4628 gdb_py_object_from_ulongest.
4629 * python/py-infevents.c (create_inferior_call_event_object)
4630 (create_memory_changed_event_object): Use
4631 gdb_py_object_from_ulongest.
4632 * python/py-linetable.c (ltpy_entry_get_pc): Use
4633 gdb_py_object_from_ulongest.
4634
4635 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4636
4637 * loc.c (class symbol_needs_eval_context): Fix indentation.
4638
4639 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4640
4641 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4642 bool.
4643
4644 2020-08-17 Tom de Vries <tdevries@suse.de>
4645
4646 PR gdb/26393
4647 * gdbtypes.c (dump_dynamic_prop): New function.
4648 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4649
4650 2020-08-15 Tom de Vries <tdevries@suse.de>
4651
4652 PR backtrace/26390
4653 * stack.c (print_frame_args): Temporarily set the selected
4654 frame to FRAME while printing the frame's arguments.
4655
4656 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4657
4658 PR breakpoints/26385
4659 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4660 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4661
4662 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4663
4664 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4665 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4666 and >= to check return value instead of == -1 and != -1.
4667
4668 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4669
4670 * utils.h (class gdb_argv) <as_array_view>: New method.
4671 * utils.c (gdb_argv_as_array_view_test): New.
4672 (_initialize_utils): Register selftest.
4673 * maint.c (maintenance_selftest): Use the new method.
4674
4675 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4676
4677 * target.h (supports_dumpcore, dumpcore): New
4678 function declarations.
4679 * target.c (supports_dumpcore, dumpcore): New
4680 functions.
4681 * target-delegates.c: Rebuild.
4682 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4683 and target_dumpcore ().
4684
4685 2020-08-13 Aaron Merey <amerey@redhat.com>
4686
4687 * debuginfod-support.c: Replace global variables with user_data.
4688
4689 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4690
4691 * maint.c (maintenance_selftest): Split args and pass array_view
4692 to run_tests.
4693
4694 2020-08-12 Luis Machado <luis.machado@linaro.org>
4695
4696 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4697 type's length.
4698 Use %s and pulongest to print the length.
4699
4700 2020-08-12 Pedro Alves <palves@redhat.com>
4701
4702 * NEWS: Move "Multi-target debugging support" item to the
4703 "Changes since GDB 9" section.
4704
4705 2020-08-12 Pedro Alves <palves@redhat.com>
4706
4707 PR gdb/26336
4708 * progspace.c (program_space::remove_objfile): Invalidate the
4709 frame cache.
4710
4711 2020-08-11 Tom de Vries <tdevries@suse.de>
4712
4713 * MAINTAINERS: Mark ms1 as deleted.
4714
4715 2020-08-10 Luis Machado <luis.machado@linaro.org>
4716
4717 PR gdb/26310
4718
4719 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4720 act accordingly.
4721 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4722 movz/str/stur/stp skipping behavior.
4723
4724 2020-08-10 Luis Machado <luis.machado@linaro.org>
4725
4726 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4727 struct user_sve_header instead of struct sve_context.
4728
4729 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4730
4731 * read.h (dwarf2_fetch_die_loc_sect_off,
4732 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4733 `void *` parameter with function_view.
4734 * read.c (dwarf2_fetch_die_loc_sect_off,
4735 dwarf2_fetch_die_loc_cu_off): Likewise.
4736 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4737 (per_cu_dwarf_call): Adjust.
4738 (get_frame_address_in_block_wrapper): Remove.
4739 (indirect_synthetic_pointer): Adjust.
4740 (get_ax_pc): Remove.
4741 (dwarf2_compile_expr_to_ax): Adjust.
4742
4743 2020-08-08 Tom de Vries <tdevries@suse.de>
4744
4745 PR build/26344
4746 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4747 constructor.
4748 * regcache.c (get_thread_arch_aspace_regcache): Same.
4749
4750 2020-08-07 Tom Tromey <tromey@adacore.com>
4751
4752 * ravenscar-thread.c
4753 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4754 New method.
4755 (ravenscar_thread_target::wait): Check
4756 runtime_initialized.
4757 (ravenscar_thread_target::prepare_to_store)
4758 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4759 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4760 (ravenscar_thread_target::stopped_by_watchpoint)
4761 (ravenscar_thread_target::stopped_data_address)
4762 (ravenscar_thread_target::core_of_thread): Use
4763 scoped_restore_current_thread and
4764 set_base_thread_from_ravenscar_task.
4765
4766 2020-08-07 Tom Tromey <tromey@adacore.com>
4767
4768 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4769
4770 2020-08-07 Tom Tromey <tromey@adacore.com>
4771
4772 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4773 update_inferior_ptid before update_thread_list.
4774 (temporarily_change_regcache_ptid): New class.
4775 (ravenscar_thread_target::fetch_registers)
4776 (ravenscar_thread_target::store_registers)
4777 (ravenscar_thread_target::prepare_to_store): Use base thread when
4778 forwarding operation.
4779
4780 2020-08-07 Tom Tromey <tromey@adacore.com>
4781
4782 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4783 "is_pid" case.
4784
4785 2020-08-07 Tom Tromey <tromey@adacore.com>
4786
4787 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4788 New methods.
4789 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4790 first.
4791 (ravenscar_thread_target::add_thread): Rename from
4792 ravenscar_add_thread.
4793 (ravenscar_thread_target::update_thread_list): Use a lambda.
4794 (ravenscar_thread_target::xfer_partial): New method.
4795
4796 2020-08-07 Tom Tromey <tromey@adacore.com>
4797
4798 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4799 gdb::function_view.
4800 (iterate_over_live_ada_tasks): Change type of argument.
4801 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4802 of argument.
4803
4804 2020-08-07 Tom Tromey <tromey@adacore.com>
4805
4806 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4807 Remove.
4808 (ravenscar_thread_target::extra_thread_info): Remove.
4809 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4810 defer to target beneath for non-Ravenscar threads.
4811
4812 2020-08-07 Tom Tromey <tromey@adacore.com>
4813
4814 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4815 get_base_thread_from_ravenscar_task>: Now methods.
4816 <m_cpu_map>: New member.
4817 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4818 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4819 (ravenscar_thread_target::task_is_currently_active): Update.
4820 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4821 Now a method.
4822 (ravenscar_thread_target::add_active_thread): Put initial thread
4823 into the m_cpu_map.
4824
4825 2020-08-07 Tom Tromey <tromey@adacore.com>
4826
4827 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4828 event_ptid.
4829
4830 2020-08-07 Tom Tromey <tromey@adacore.com>
4831
4832 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4833 runtime_initialized.
4834
4835 2020-08-07 Tom Tromey <tromey@adacore.com>
4836
4837 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4838 add_active_thread.
4839 (ravenscar_thread_target::add_active_thread): Now public.
4840 (ravenscar_inferior_created): Call add_active_thread after pushing
4841 the target.
4842
4843 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4844
4845 * regcache.c (ptid_regcache_map): New type.
4846 (target_ptid_regcache_map): New type.
4847 (regcaches): Change type to target_ptid_regcache_map.
4848 (get_thread_arch_aspace_regcache): Update to regcaches' new
4849 type.
4850 (regcache_thread_ptid_changed): Likewise.
4851 (registers_changed_ptid): Likewise.
4852 (regcaches_size): Likewise.
4853 (regcaches_test): Update.
4854 (regcache_thread_ptid_changed): Update.
4855 * regcache.h (regcache_up): New type.
4856 * gdbsupport/ptid.h (hash_ptid): New struct.
4857
4858 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4859
4860 * observable.h (thread_ptid_changed): Add parameter
4861 `process_stratum_target *`.
4862 * infrun.c (infrun_thread_ptid_changed): Add parameter
4863 `process_stratum_target *` and use it.
4864 (selftests): New namespace.
4865 (infrun_thread_ptid_changed): New function.
4866 (_initialize_infrun): Register selftest.
4867 * regcache.c (regcache_thread_ptid_changed): Add parameter
4868 `process_stratum_target *` and use it.
4869 (regcache_thread_ptid_changed): New function.
4870 (_initialize_regcache): Register selftest.
4871 * thread.c (thread_change_ptid): Pass target to
4872 thread_ptid_changed observable.
4873
4874 2020-08-06 Caroline Tice <cmtice@google.com>
4875
4876 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4877 (struct dwp_sections): Update field comments. Add loclists and
4878 rnglists fields.
4879 (struct virtual_v2_dwo_sections): Rename struct to
4880 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4881 size & offset fields for loclists and rnglists.
4882 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4883 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4884 skipping dummy type units.
4885 (create_dwp_hash_table): Update the large comment above the function to
4886 discuss Version 5 DWP files as well, with references. Update all the
4887 version checks in the function to check for version 5 as well. Add new
4888 section at the end to create dwp hash table for version 5.
4889 (create_dwp_v2_section): Rename function to
4890 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4891 Add V5 to error message text.
4892 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4893 into calls to create_dwp_v2_or_v5_section.
4894 (create_dwo_unit_in_dwp_v5): New function.
4895 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4896 check for version2; add else clause to handle version 5.
4897 (open_and_init_dwo_file): Add code to check dwarf version & only call
4898 create_debug_types_hash_table (with sections.types) if version is not 5;
4899 else call create_debug_type_hash_table, with sections.info.
4900 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4901 version 5.
4902 (dwarf2_locate_v5_dwp_sections): New function.
4903 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4904 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4905
4906 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * regcache.h (class regcache): Remove friend
4909 registers_changed_ptid.
4910 <regcache_thread_ptid_changed>: Remove.
4911 <regcaches>: Remove.
4912 * regcache.c (regcache::regcaches): Rename to...
4913 (regcaches): ... this. Make static.
4914 (get_thread_arch_aspace_regcache): Update.
4915 (regcache::regcache_thread_ptid_changed): Rename to...
4916 (regcache_thread_ptid_changed): ... this. Update.
4917 (class regcache_access): Remove.
4918 (regcaches_test): Update.
4919 (_initialize_regcache): Update.
4920 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4921 <forward_list>.
4922
4923 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * regcache.h (class regcache) <current_regcache>: Rename to...
4926 <regcaches>: ... this. Move doc here.
4927 * regcache.c (regcache::current_regcache) Rename to...
4928 (regcache::regcaches): ... this. Move doc to header.
4929 (get_thread_arch_aspace_regcache): Update.
4930 (regcache::regcache_thread_ptid_changed): Update.
4931 (registers_changed_ptid): Update.
4932 (class regcache_access) <current_regcache_size>: Rename to...
4933 <regcaches_size>: ... this.
4934 (current_regcache_test): Rename to...
4935 (regcaches_test): ... this.
4936 (_initialize_regcache): Update.
4937
4938 2020-08-06 Victor Collod <vcollod@nvidia.com>
4939
4940 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4941
4942 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4943
4944 * corelow.c (core_target::build_file_mappings): Don't output
4945 null pathname in warning.
4946
4947 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4948
4949 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4950 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4951 gdb.dwarf2/dw2-single-line-discriminators.exp,
4952 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4953
4954 2020-08-05 Tom Tromey <tromey@adacore.com>
4955
4956 PR rust/26197:
4957 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4958 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4959 Fix off-by-one and type size errors in ordinary case.
4960
4961 2020-08-05 Tom de Vries <tdevries@suse.de>
4962
4963 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4964 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4965
4966 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4967
4968 * frame.h (frame_id_p): Return bool.
4969 (frame_id_artificial_p): Return bool.
4970 (frame_id_eq): Return bool.
4971 (has_stack_frames): Return bool.
4972 (get_selected_frame): Fix typo in comment.
4973 (get_frame_pc_if_available): Return bool.
4974 (get_frame_address_in_block_if_available): Return bool.
4975 (get_frame_func_if_available): Return bool.
4976 (read_frame_register_unsigned): Return bool.
4977 (get_frame_register_bytes): Return bool.
4978 (safe_frame_unwind_memory): Return bool.
4979 (deprecated_frame_register_read): Return bool.
4980 (frame_unwinder_is): Return bool.
4981 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4982 bool.
4983 <this_id::p>: Likewise.
4984 <prev_p>: Likewise.
4985 (frame_stash_add): Return bool.
4986 (get_frame_id): Use bool.
4987 (frame_id_build_special) Use bool.
4988 (frame_id_build_unavailable_stack): Use bool.
4989 (frame_id_build): Use bool.
4990 (frame_id_p): Return bool, use true/false instead of 1/0.
4991 (frame_id_artificial_p): Likewise.
4992 (frame_id_eq): Likewise.
4993 (frame_id_inner): Likewise.
4994 (get_frame_func_if_available): Likewise.
4995 (read_frame_register_unsigned): Likewise.
4996 (deprecated_frame_register_read): Likewise.
4997 (get_frame_register_bytes): Likewise.
4998 (has_stack_frames): Likewise.
4999 (inside_main_func): Likewise.
5000 (inside_entry_func): Likewise.
5001 (get_frame_pc_if_available): Likewise.
5002 (get_frame_address_in_block_if_available): Likewise.
5003 (frame_unwinder_is): Likewise.
5004 (safe_frame_unwind_memory): Likewise.
5005 (frame_unwind_arch): Likewise.
5006
5007 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5008
5009 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5010 type to cached_copy_status.
5011 (fprintf_frame): Adjust.
5012 (get_frame_func_if_available): Adjust.
5013 (frame_cleanup_after_sniffer): Adjust.
5014
5015 2020-08-04 Mark Wielaard <mark@klomp.org>
5016
5017 * MAINTAINERS (Write After Approval): Update email address.
5018
5019 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5020
5021 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5022 dynamic_prop::const_val.
5023
5024 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5025
5026 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5027 dynamic_prop::kind.
5028
5029 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5030
5031 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5032
5033 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5034
5035 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5036
5037 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5038 Jose E. Marchesi <jose.marchesi@oracle.com>
5039
5040 * configure.tgt: Add entry for bpf-*-*.
5041 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5042 (ALLDEPFILES): Add bpf-tdep.c.
5043 * bpf-tdep.c: New file.
5044 * MAINTAINERS: Add bpf target and maintainer.
5045 * NEWS: Mention the support for the new target.
5046
5047 2020-08-04 Tom de Vries <tdevries@suse.de>
5048
5049 PR symtab/23270
5050 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5051 Error.
5052
5053 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5054
5055 * syscalls/freebsd.xml: Regenerate.
5056
5057 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5058
5059 * syscalls/update-freebsd.sh: Fix usage and year range.
5060
5061 2020-08-03 Tom de Vries <tdevries@suse.de>
5062
5063 PR symtab/26333
5064 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5065 DW_LNE_lo_user/DW_LNE_hi_user range.
5066
5067 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5068
5069 PR ada/26318
5070 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5071 kind.
5072
5073 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5074
5075 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5076
5077 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5078
5079 * breakpoint.c (set_breakpoint_condition): Update the condition
5080 expressions after checking that the input condition string parses
5081 successfully and does not contain junk at the end.
5082
5083 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5084
5085 * breakpoint.c (set_breakpoint_condition): Update the
5086 condition string after parsing the new condition successfully.
5087
5088 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5089
5090 * proc-api.c (_STRUCTURED_PROC): Don't define.
5091 * proc-events.c: Likewise.
5092 * proc-flags.c: Likewise.
5093 * proc-why.c: Likewise.
5094 * procfs.c: Likewise.
5095
5096 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5097 * configure, config.in: Regenerate.
5098
5099 2020-07-30 Tom de Vries <tdevries@suse.de>
5100
5101 PR build/26320
5102 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5103 m_red/m_green/m_blue in a union.
5104
5105 2020-07-29 Tom de Vries <tdevries@suse.de>
5106
5107 PR tdep/26280
5108 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5109
5110 2020-07-28 Tom Tromey <tromey@adacore.com>
5111
5112 PR symtab/26270:
5113 * symtab.h (find_pc_partial_function_sym): Declare.
5114 * cli/cli-cmds.c (disassemble_command): Use
5115 find_pc_partial_function_sym. Check asm_demangle.
5116 * blockframe.c (cache_pc_function_sym): New global.
5117 (cache_pc_function_name): Remove.
5118 (clear_pc_function_cache): Update.
5119 (find_pc_partial_function_sym): New function, from
5120 find_pc_partial_function.
5121 (find_pc_partial_function): Rewrite using
5122 find_pc_partial_function_sym.
5123
5124 2020-07-28 Tom Tromey <tromey@adacore.com>
5125
5126 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5127 help. Add usage.
5128
5129 2020-07-28 Tom Tromey <tromey@adacore.com>
5130
5131 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5132 <DW_OP_GNU_variable_value>: Cast to address type.
5133
5134 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5135
5136 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5137 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5138 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5139 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5140 (nbsd_get_siginfo_type): New.
5141 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5142 (_initialize_nbsd_tdep): New.
5143
5144 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5145
5146 PR binutils/26301
5147 * configure: Regenerated.
5148
5149 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5150
5151 PR binutils/26301
5152 * configure: Regenerated.
5153
5154 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5155
5156 * python/py-frame.c: Remove 'user-regs.h' include.
5157 (frapy_read_register): Rewrite to make use of
5158 gdbpy_parse_register_id.
5159 * python/py-registers.c (gdbpy_parse_register_id): New function,
5160 moved here from python/py-unwind.c. Updated the return type, and
5161 also accepts register descriptor objects.
5162 * python/py-unwind.c: Remove 'user-regs.h' include.
5163 (pyuw_parse_register_id): Moved to python/py-registers.c.
5164 (unwind_infopy_add_saved_register): Update to use
5165 gdbpy_parse_register_id.
5166 (pending_framepy_read_register): Likewise.
5167 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5168
5169 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5170
5171 * python/py-registers.c: Add 'user-regs.h' include.
5172 (register_descriptor_iter_find): New function.
5173 (register_descriptor_iterator_object_methods): New static global
5174 methods array.
5175 (register_descriptor_iterator_object_type): Add pointer to methods
5176 array.
5177
5178 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5179
5180 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5181 for all architectures on FreeBSD 11.3 and later.
5182
5183 2020-07-27 Tom Tromey <tromey@adacore.com>
5184
5185 * gcore.h (load_corefile): Don't declare.
5186
5187 2020-07-27 Tom de Vries <tdevries@suse.de>
5188
5189 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5190 * config.in: Regenerate.
5191 * configure: Regenerate.
5192
5193 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5194
5195 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5196 ws2tcpip.h. When checking whether socklen_t type is defined, use
5197 ws2tcpip.h if it is available and sys/socket.h isn't.
5198 * configure: Regenerate.
5199 * config.in: Regenerate.
5200
5201 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5202
5203 PR fortran/23051
5204 PR fortran/26139
5205 * valops.c (value_ind): Pass address to
5206 readjust_indirect_value_type.
5207 * value.c (readjust_indirect_value_type): Make parameter
5208 non-const, and add extra address parameter. Resolve original type
5209 before using it.
5210 * value.h (readjust_indirect_value_type): Update function
5211 signature and comment.
5212
5213 2020-07-25 Tom de Vries <tdevries@suse.de>
5214
5215 PR symtab/26243
5216 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5217 entries.
5218
5219 2020-07-24 Aaron Merey <amerey@redhat.com>
5220
5221 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5222 * configure: Rebuild.
5223
5224 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5225
5226 PR corefiles/26294
5227 * corelow.c (_initialize_corelow): Add period to help text
5228 for "maintenance print core-file-backed-mappings".
5229
5230 2020-07-23 Pedro Alves <pedro@palves.net>
5231
5232 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5233 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5234 meanwhile.
5235 * frame.c (frame_cache_generation, get_frame_cache_generation):
5236 New.
5237 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5238 (get_prev_frame_if_no_cycle): On exception, don't touch
5239 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5240 * frame.h (get_frame_cache_generation): Declare.
5241
5242 2020-07-23 Tom de Vries <tdevries@suse.de>
5243
5244 PR tui/26282
5245 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5246 New default constructor.
5247
5248 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5249
5250 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5251 exclude non-statement entries.
5252
5253 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5254
5255 * NEWS (New commands): Mention new command
5256 "maintenance print core-file-backed-mappings".
5257
5258 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5259
5260 * corelow.c (gdbcmd.h): Include.
5261 (core_target::info_proc_mappings): New method.
5262 (get_current_core_target): New function.
5263 (maintenance_print_core_file_backed_mappings): New function.
5264 (_initialize_corelow): Add core-file-backed-mappings to
5265 "maint print" commands.
5266
5267 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5268
5269 * linux-tdep.c (dump_note_entry_p): New function.
5270 (linux_dump_mapping_p_ftype): New typedef.
5271 (linux_find_memory_regions_full): Add new parameter,
5272 should_dump_mapping_p.
5273 (linux_find_memory_regions): Adjust call to
5274 linux_find_memory_regions_full.
5275 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5276 call to linux_find_memory_regions_full.
5277
5278 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5279
5280 * corelow.c (solist.h, unordered_map): Include.
5281 (class core_target): Add field m_core_file_mappings and
5282 method build_file_mappings.
5283 (core_target::core_target): Call build_file_mappings.
5284 (core_target::~core_target): Free memory associated with
5285 m_core_file_mappings.
5286 (core_target::build_file_mappings): New method.
5287 (core_target::xfer_partial): Use m_core_file_mappings
5288 for memory transfers.
5289 * linux-tdep.c (linux_read_core_file_mappings): New
5290 function.
5291 (linux_core_info_proc_mappings): Rewrite to use
5292 linux_read_core_file_mappings.
5293 (linux_init_abi): Register linux_read_core_file_mappings.
5294
5295 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5296
5297 * arch-utils.c (default_read_core_file_mappings): New function.
5298 * arch-utils.c (default_read_core_file_mappings): Declare.
5299 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5300 * gdbarch.h, gdbarch.c: Regenerate.
5301
5302 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5303
5304 PR corefiles/25631
5305 * corelow.c (core_target:xfer_partial): Revise
5306 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5307 case after first checking the stratum beneath the core
5308 target.
5309 (has_all_memory): Return true.
5310 * target.c (raw_memory_xfer_partial): Revise comment
5311 regarding use of has_all_memory.
5312
5313 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5314
5315 * exec.h (section_table_xfer_memory): Revise declaration,
5316 replacing section name parameter with an optional callback
5317 predicate.
5318 * exec.c (section_table_xfer_memory): Likewise.
5319 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5320 of section_table_xfer_memory.
5321
5322 2020-07-22 Tom Tromey <tromey@adacore.com>
5323
5324 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5325 lookup_symbol_search_name.
5326
5327 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5328
5329 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5330 redundant local variable.
5331 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5332 reference, not pointer, update code accordingly.
5333
5334 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5335 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5336
5337 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5338 * jit.c (jit_breakpoint_re_set_internal): Use the
5339 `skip_jit_symbol_lookup` field.
5340
5341 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5342 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5343
5344 * jit.c (jit_read_descriptor): Define the descriptor address once,
5345 use twice.
5346 (jit_breakpoint_deleted): Move the declaration of the loop variable
5347 `iter` into the loop header.
5348 (jit_breakpoint_re_set_internal): Move the declaration of the local
5349 variable `objf_data` to the first point of definition.
5350 (jit_event_handler): Move the declaration of local variables
5351 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5352 Rename `objf` to `jited`.
5353
5354 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5355
5356 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5357 Remove.
5358 * jit.c (get_jiter_objfile_data): Update.
5359
5360 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5361 Simon Marchi <simon.marchi@polymtl.ca>
5362
5363 * jit.c (struct jit_program_space_data): Remove.
5364 (jit_program_space_key): Remove.
5365 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5366 stuff.
5367 (get_jit_program_space_data): Remove.
5368 (jit_breakpoint_deleted): Iterate on all of the program space's
5369 objfiles.
5370 (jit_inferior_init): Likewise.
5371 (jit_breakpoint_re_set_internal): Likewise. Also change return
5372 type to void.
5373 (jit_breakpoint_re_set): Pass current_program_space to
5374 jit_breakpoint_re_set_internal.
5375
5376 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5377
5378 * jit.h (struct jiter_objfile_data) <cached_code_address,
5379 jit_breakpoint>: Move to here from ...
5380 * jit.c (jit_program_space_data): ... here.
5381 (jiter_objfile_data::~jiter_objfile_data): Update.
5382 (jit_breakpoint_deleted): Update.
5383 (jit_breakpoint_re_set_internal): Update.
5384
5385 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5386
5387 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5388 checks.
5389 (jit_read_descriptor): Remove NULL check.
5390 (jit_event_handler): Add an assertion.
5391
5392 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5393
5394 * jit.h (struct jit_objfile_data): Split into...
5395 (struct jiter_objfile_data): ... this ...
5396 (struct jited_objfile_data): ... and this.
5397 * objfiles.h (struct objfile) <jit_data>: Remove.
5398 <jiter_data, jited_data>: New fields.
5399 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5400 (jiter_objfile_data::~jiter_objfile_data): ... this.
5401 (get_jit_objfile_data): Rename to ...
5402 (get_jiter_objfile_data): ... this.
5403 (add_objfile_entry): Update.
5404 (jit_read_descriptor): Use get_jiter_objfile_data.
5405 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5406 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5407 (jit_inferior_exit_hook): Use objfile's jited_data field.
5408
5409 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5410
5411 * jit.h: Forward-declare `struct minimal_symbol`.
5412 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5413 constructor, destructor, and an objfile* field.
5414 * jit.c (jit_objfile_data): Remove.
5415 (struct jit_objfile_data): Migrate from here to jit.h.
5416 (jit_objfile_data::~jit_objfile_data): New destructor
5417 implementation with code moved from free_objfile_data.
5418 (free_objfile_data): Delete.
5419 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5420 (jit_find_objf_with_entry_addr): Ditto.
5421 (jit_inferior_exit_hook): Ditto.
5422 (_initialize_jit): Remove the call to
5423 register_objfile_data_with_cleanup.
5424 * objfiles.h (struct objfile) <jit_data>: New field.
5425
5426 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5427
5428 * jit.h: Forward-declare `struct objfile`.
5429 (jit_event_handler): Add a second parameter, the JITer objfile.
5430 * jit.c (jit_read_descriptor): Change the signature to take the
5431 JITer objfile as an argument instead of the jit_program_space_data.
5432 (jit_inferior_init): Update the call to jit_read_descriptor.
5433 (jit_event_handler): Use the new JITer objfile argument when calling
5434 jit_read_descriptor.
5435 * breakpoint.c (handle_jit_event): Update the call to
5436 jit_event_handler to pass the JITer objfile.
5437
5438 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5439
5440 * gdbarch.c: Regenerate.
5441 * gdbarch.h: Regenerate.
5442 * gdbarch.sh (handle_segmentation_fault): Remove method.
5443 * infrun.c (handle_segmentation_fault): Remove.
5444 (print_signal_received_reason): Remove call to
5445 handle_segmentation_fault.
5446
5447 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5448
5449 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5450 Rename to sparc64_linux_report_signal_info and add siggnal
5451 argument.
5452 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5453 instead of sparc64_linux_handle_segmentation_fault.
5454
5455 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5456
5457 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5458 i386_linux_report_signal_info instead of
5459 i386_linux_handle_segmentation_fault.
5460 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5461 to i386_linux_report_signal_info and add siggnal argument.
5462 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5463 of i386_linux_handle_segmentation_fault.
5464 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5465 to i386_linux_report_signal_info and add siggnal argument.
5466
5467 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5468
5469 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5470 hook if present.
5471
5472 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5473
5474 * gdbarch.c: Regenerate.
5475 * gdbarch.h: Regenerate.
5476 * gdbarch.sh (report_signal_info): New method.
5477 * infrun.c (print_signal_received_reason): Invoke gdbarch
5478 report_signal_info hook if present.
5479
5480 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5481
5482 * python/py-registers.c : Add 'unordered_map' include.
5483 (gdbpy_new_reggroup): Renamed to...
5484 (gdbpy_get_reggroup): ...this. Update to only create register
5485 group descriptors when needed.
5486 (gdbpy_reggroup_iter_next): Update.
5487
5488 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5489
5490 * python/py-registers.c (gdbpy_register_object_data): New static
5491 global.
5492 (gdbpy_register_object_data_init): New function.
5493 (gdbpy_new_register_descriptor): Renamed to...
5494 (gdbpy_get_register_descriptor): ...this, and update to reuse
5495 existing register descriptors where possible.
5496 (gdbpy_register_descriptor_iter_next): Update.
5497 (gdbpy_initialize_registers): Register new gdbarch data.
5498
5499 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5500
5501 * linux-nat.c (stopped_pids): Make static.
5502
5503 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5504
5505 PR ada/26235
5506 * gdbtypes.c (ada_discrete_type_low_bound,
5507 ada_discrete_type_high_bound): Handle undefined bounds.
5508
5509 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5510
5511 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5512 declaration.
5513 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5514 function.
5515
5516 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5517
5518 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5519 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5520 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5521 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5522 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5523 method.
5524
5525 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5526
5527 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5528 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5529 which are deprecated in Guile 3.0.
5530 * configure.ac (try_guile_versions): Add "guile-3.0".
5531 * configure (try_guile_versions): Regenerate.
5532 * NEWS: Update entry.
5533
5534 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5535 Doug Evans <dje@google.com>
5536
5537 PR gdb/21104
5538 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5539 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5540 USING_GUILE_BEFORE_2_2.
5541 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5542 Change type to 'scm_t_port_type *'.
5543 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5544 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5545 parameter and honor it. Update callers.
5546 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5547 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5548 functions.
5549 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5550 USING_GUILE_BEFORE_2_2.
5551 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5552 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5553 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5554 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5555 and 'SCM_PORT_TYPE'.
5556 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5557 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5558 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5559 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5560 [!USING_GUILE_BEFORE_2_2]: New functions.
5561 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5562 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5563 'gdbscm_memory_port_read'.
5564 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5565 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5566 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5567 function.
5568 (ioscm_init_memory_port): Remove.
5569 (ioscm_init_memory_port_stream): New function
5570 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5571 function.
5572 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5573 Return scm_from_uint (0).
5574 (gdbscm_set_memory_port_read_buffer_size_x)
5575 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5576 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5577 Return scm_from_uint (0).
5578 (gdbscm_set_memory_port_write_buffer_size_x)
5579 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5580 * configure.ac (try_guile_versions): Add "guile-2.2".
5581 * configure: Regenerate.
5582 * NEWS: Add entry.
5583
5584 2020-07-18 Tom Tromey <tom@tromey.com>
5585
5586 * linux-nat.c (linux_multi_process): Remove.
5587 (linux_nat_target::supports_multi_process): Return true.
5588
5589 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5590
5591 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5592 (riscv_lookup_target_description): Return pointer out of
5593 unique_ptr.
5594 * target-descriptions.c (allocate_target_description): Add
5595 comment.
5596 (target_desc_deleter::operator()): Likewise.
5597 * target-descriptions.h (struct target_desc_deleter): Moved to
5598 gdbsupport/tdesc.h.
5599 (target_desc_up): Likewise.
5600
5601 2020-07-17 Tom Tromey <tromey@adacore.com>
5602
5603 * linux-nat.c (linux_nat_target::supports_non_stop)
5604 (linux_nat_target::always_non_stop_p): Use "true".
5605 (linux_nat_target::supports_disable_randomization): Use "true" and
5606 "false".
5607
5608 2020-07-16 Caroline Tice <cmtice@google.com>
5609
5610 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5611 (RNGLIST_HEADER_SIZE64): New constant definition.
5612 (struct dwop_section_names): Add rnglists_dwo.
5613 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5614 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5615 (struct dwo_sections): Add rnglists field.
5616 (read_attribut_reprocess): Add tag parameter.
5617 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5618 (cu_debug_rnglists_section): New function (decl & definition).
5619 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5620 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5621 die whose range is being checked; get rnglist section from
5622 cu_debug_rnglists_section, to get from either objfile or dwo file as
5623 appropriate. Add cases for DW_RLE_base_addressx,
5624 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5625 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5626 test inside if-condition and updating complaint message.
5627 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5628 dwarf2_rnglists_process.
5629 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5630 dwarf2_ranges_process.
5631 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5632 need_ranges_base and update comment appropriately. Also pass die tag
5633 to dwarf2_ranges_read.
5634 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5635 need_ranges_base and update comment appropriately. Also pass die tag
5636 to dwarf2_ranges_process.
5637 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5638 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5639 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5640 need_ranges_base and update comment appropriately. Also pass die tag
5641 to read_attribute_reprocess and dwarf2_ranges_read.
5642 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5643 and update function comment appropriately.
5644 (read_loclist_index): Call read_loclists_rnglists_header instead of
5645 read_loclist_header.
5646 (read_rnglist_index): New function.
5647 (read_attribute_reprocess): Add tag parameter. Add code for
5648 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5649 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5650
5651 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5652
5653 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5654 being resolved.
5655
5656 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5657
5658 * arch-utils.c (show_architecture): Update formatting of messages.
5659
5660 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5661
5662 * gdbtypes.h (struct type) <bounds>: Handle array and string
5663 types.
5664 * ada-lang.c (assign_aggregate): Use type::bounds on
5665 array/string type.
5666 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5667 * c-varobj.c (c_number_of_children): Likewise.
5668 (c_describe_child): Likewise.
5669 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5670 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5671 (f_type_print_base): Likewise.
5672 * f-valprint.c (f77_array_offset_tbl): Likewise.
5673 (f77_get_upperbound): Likewise.
5674 (f77_print_array_1): Likewise.
5675 * guile/scm-type.c (gdbscm_type_range): Likewise.
5676 * m2-typeprint.c (m2_array): Likewise.
5677 (m2_is_long_set_of_type): Likewise.
5678 * m2-valprint.c (get_long_set_bounds): Likewise.
5679 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5680 * python/py-type.c (typy_range): Likewise.
5681 * rust-lang.c (rust_internal_print_type): Likewise.
5682 * type-stack.c (type_stack::follow_types): Likewise.
5683 * valarith.c (value_subscripted_rvalue): Likewise.
5684 * valops.c (value_cast): Likewise.
5685
5686 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5689 callers to use the equivalent accessor methods.
5690
5691 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5694 (struct type) <bit_stride>: New method.
5695 (TYPE_BIT_STRIDE): Remove.
5696 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5697
5698 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5699
5700 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5701 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5702 callers to use the equivalent accessor methods instead.
5703
5704 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5705
5706 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5707 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5708 callers to use the equivalent accessor methods instead.
5709
5710 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5711
5712 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5713 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5714 to use dynamic_prop::kind.
5715
5716 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5717
5718 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5719 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5720 to get the bound property's kind and check against
5721 PROP_UNDEFINED.
5722
5723 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5726 all callers to use type::range_bounds followed by
5727 dynamic_prop::{low,high}.
5728
5729 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5732 const_val, set_const_val, baton, set_locexpr, set_loclist,
5733 set_addr_offset, variant_parts, set_variant_parts,
5734 original_type, set_original_type>: New methods.
5735 <kind>: Rename to...
5736 <m_kind>: ... this. Update all users to use the new methods
5737 instead.
5738 <data>: Rename to...
5739 <m_data>: ... this. Update all users to use the new methods
5740 instead.
5741
5742 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5743
5744 * gdbtypes.c (get_discrete_bounds): Return failure if
5745 the range type's bounds are not both defined and constant
5746 values.
5747 (get_array_bounds): Update comment. Remove undefined bound check.
5748
5749 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5750
5751 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5752 the type::bounds method directly.
5753
5754 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5755
5756 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5757 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5758 are used to set the range type's bounds to use set_bounds.
5759
5760 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5761
5762 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5763
5764 2020-07-10 Pedro Alves <pedro@palves.net>
5765
5766 * gdbthread.h (inferior_ref): Define.
5767 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5768 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5769 * thread.c
5770 (scoped_restore_current_thread::restore):
5771 Adjust to gdb::ref_ptr.
5772 (scoped_restore_current_thread::~scoped_restore_current_thread):
5773 Remove manual decref handling.
5774 (scoped_restore_current_thread::scoped_restore_current_thread):
5775 Adjust to use
5776 inferior_ref::new_reference/thread_info_ref::new_reference.
5777 Incref the thread before calling get_frame_id instead of after.
5778 Let TARGET_CLOSE_ERROR propagate.
5779
5780 2020-07-10 Pedro Alves <pedro@palves.net>
5781
5782 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5783 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5784 NOT_AVAILABLE_ERROR.
5785 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5786 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5787
5788 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5789 Pedro Alves <pedro@palves.net>
5790
5791 PR gdb/26199
5792 * infrun.c (threads_are_resumed_pending_p): Delete.
5793 (do_target_wait): Remove threads_are_executing and
5794 threads_are_resumed_pending_p checks from the inferior_matches
5795 lambda. Update comments.
5796
5797 2020-07-10 Pedro Alves <pedro@palves.net>
5798
5799 PR gdb/26199
5800 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5801 executing threads.
5802
5803 2020-07-10 Pedro Alves <pedro@palves.net>
5804
5805 PR gdb/26199
5806 * infrun.c (handle_no_resumed): Handle multiple targets.
5807
5808 2020-07-10 Pedro Alves <pedro@palves.net>
5809
5810 PR gdb/26199
5811 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5812 target_is_async_p.
5813
5814 2020-07-10 Pedro Alves <pedro@palves.net>
5815
5816 PR gdb/26199
5817 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5818 threads, not all threads.
5819
5820 2020-07-10 Pedro Alves <pedro@palves.net>
5821
5822 PR gdb/26199
5823 * remote.c (remote_target::open_1): Pass remote target pointer as
5824 data to create_async_event_handler.
5825 (remote_async_inferior_event_handler): Mark async event handler
5826 before returning if the remote target still has either pending
5827 events or unacknowledged notifications.
5828
5829 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5830
5831 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5832 declaration.
5833 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5834 function.
5835
5836 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5837
5838 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5839 inferior_ptid.
5840
5841 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5842
5843 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5844 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5845 AT_FREEBSD_PS_STRINGS.
5846
5847 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5848
5849 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5850 of debugfile path on Windows.
5851
5852 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5853
5854 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5855 argument to 'data'.
5856
5857 2020-07-08 Tom Tromey <tromey@adacore.com>
5858
5859 * ada-lang.c (ada_exception_message_1): Use read_memory.
5860
5861 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5862
5863 PR python/22748
5864 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5865 special handling for inline frames.
5866 * findvar.c (value_of_register_lazy): Skip inline frames when
5867 creating lazy register values.
5868 * frame.c (frame_id_computed_p): Delete definition.
5869 * frame.h (frame_id_computed_p): Delete declaration.
5870
5871 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5872
5873 * NEWS: Mention additions to Python API.
5874 * python/py-arch.c (archpy_register_groups): New function.
5875 (arch_object_methods): Add 'register_groups' method.
5876 * python/py-registers.c (reggroup_iterator_object): New struct.
5877 (reggroup_object): New struct.
5878 (gdbpy_new_reggroup): New function.
5879 (gdbpy_reggroup_to_string): New function.
5880 (gdbpy_reggroup_name): New function.
5881 (gdbpy_reggroup_iter): New function.
5882 (gdbpy_reggroup_iter_next): New function.
5883 (gdbpy_new_reggroup_iterator): New function
5884 (gdbpy_initialize_registers): Register new types.
5885 (reggroup_iterator_object_type): Define new Python type.
5886 (gdbpy_reggroup_getset): New static global.
5887 (reggroup_object_type): Define new Python type.
5888 * python/python-internal.h
5889
5890 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5891
5892 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5893 * python/py-arch.c (archpy_registers): New function.
5894 (arch_object_methods): Add 'registers' method.
5895 * python/py-registers.c: New file.
5896 * python/python-internal.h
5897 (gdbpy_new_register_descriptor_iterator): Declare.
5898 (gdbpy_initialize_registers): Declare.
5899 * python/python.c (do_start_initialization): Call
5900 gdbpy_initialize_registers.
5901 * NEWS: Mention additions to the Python API.
5902
5903 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5904
5905 * NEWS: Mention new Python API method.
5906 * python/py-unwind.c (pending_framepy_architecture): New function.
5907 (pending_frame_object_methods): Add architecture method.
5908
5909 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * gdbarch.c: Regenerate.
5912 * gdbarch.h: Regenerate.
5913 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5914 (gdbarch_data): Use internal_error for the case where
5915 deprecated_set_gdbarch_data was originally needed.
5916 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5917 and use passed in obstack.
5918 (libunwind_frame_set_descr): Should no longer get back NULL from
5919 gdbarch_data.
5920 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5921 type.
5922 * user-regs.c (user_regs_init): Update parameters, and use passed
5923 in obstack.
5924 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5925 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5926
5927 2020-07-06 Tom de Vries <tdevries@suse.de>
5928
5929 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5930 End-Of-Sequence in lte_is_less_than.
5931 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5932 "gdb: Don't reorder line table entries too much when sorting".
5933
5934 2020-07-06 Tom de Vries <tdevries@suse.de>
5935
5936 PR tui/26205
5937 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5938
5939 2020-07-05 Tom de Vries <tdevries@suse.de>
5940
5941 PR build/26187
5942 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5943 std::uncaught_exceptions instead of deprecated
5944 std::uncaught_exception.
5945
5946 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * macroexp.h (macro_stringify): Return
5949 gdb::unique_xmalloc_ptr<char>.
5950 * macroexp.c (macro_stringify): Likewise.
5951 * macrotab.c (fixup_definition): Update.
5952
5953 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5954
5955 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5956 (lex_one_token): Update.
5957 * macroexp.c (struct macro_buffer) <release>: Return
5958 gdb::unique_xmalloc_ptr<char>.
5959 (macro_stringify): Update.
5960 (macro_expand): Update.
5961 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5962 * macroexp.h (macro_expand_next): Likewise.
5963
5964 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5965
5966 * macroexp.h (macro_lookup_ftype): Remove.
5967 (macro_expand, macro_expand_once, macro_expand_next): Remove
5968 lookup function parameters, add scope parameter.
5969 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5970 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5971 * macroscope.h (standard_macro_lookup): Change parameter type
5972 to macro_scope.
5973 * macroscope.c (standard_macro_lookup): Likewise.
5974 * c-exp.y (lex_one_token): Update.
5975 * macrocmd.c (macro_expand_command): Likewise.
5976 (macro_expand_once_command): Likewise.
5977
5978 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * inf-loop.c (inferior_event_handler): Remove client_data param.
5981 * inf-loop.h (inferior_event_handler): Likewise.
5982 * infcmd.c (step_1): Adjust.
5983 * infrun.c (proceed): Adjust.
5984 (fetch_inferior_event): Remove client_data param.
5985 (infrun_async_inferior_event_handler): Adjust.
5986 * infrun.h (fetch_inferior_event): Remove `void *` param.
5987 * linux-nat.c (handle_target_event): Adjust.
5988 * record-btrace.c (record_btrace_handle_async_inferior_event):
5989 Adjust.
5990 * record-full.c (record_full_async_inferior_event_handler):
5991 Adjust.
5992 * remote.c (remote_async_inferior_event_handler): Adjust.
5993
5994 2020-07-01 Tom Tromey <tom@tromey.com>
5995
5996 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5997 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5998
5999 2020-07-01 Tom Tromey <tom@tromey.com>
6000
6001 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6002 tui_gen_win_info.
6003 (tui_win_info::make_window): Merge with
6004 tui_gen_win_info::make_window.
6005 (tui_win_info::make_visible): Move from tui_gen_win_info.
6006 * tui/tui-win.c (tui_win_info::max_width): Move from
6007 tui_gen_win_info.
6008 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6009 type.
6010 <window_factory>: Likewise.
6011 * tui/tui-layout.c (tui_win_info::resize): Move from
6012 tui_gen_win_info.
6013 (make_standard_window): Change return type.
6014 (get_locator_window, tui_get_window_by_name): Likewise.
6015 (tui_layout_window::apply): Remove a cast.
6016 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6017 (struct tui_win_info): Merge with tui_gen_win_info.
6018 (struct tui_gen_win_info): Remove.
6019
6020 2020-07-01 Tom Tromey <tom@tromey.com>
6021
6022 * tui/tui-stack.h (struct tui_locator_window): Derive from
6023 tui_win_info.
6024 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6025 <can_box>: New method.
6026
6027 2020-07-01 Tom Tromey <tom@tromey.com>
6028
6029 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6030
6031 2020-07-01 Tom Tromey <tom@tromey.com>
6032
6033 * tui/tui-regs.c (tui_data_window::display_registers_from)
6034 (tui_data_window::display_registers_from)
6035 (tui_data_window::first_data_item_displayed)
6036 (tui_data_window::delete_data_content_windows): Update.
6037 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6038 Remove.
6039 (tui_data_window::check_register_values): Update.
6040 (tui_data_item_window::rerender): Add parameters. Update.
6041 (tui_data_item_window::refresh_window): Remove.
6042 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6043 virtual.
6044 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6045 tui_gen_win_info.
6046 <refresh_window, max_height, min_height>: Remove.
6047 <rerender>: Add parameters.
6048 <x, y, visible>: New members.
6049 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6050 <m_item_width>: New member.
6051
6052 2020-07-01 Tom Tromey <tom@tromey.com>
6053
6054 * tui/tui-regs.c (tui_data_window::show_register_group)
6055 (tui_data_window::check_register_values): Update.
6056 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6057 from item_no.
6058
6059 2020-07-01 Tom Tromey <tom@tromey.com>
6060
6061 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6062 useless "if".
6063
6064 2020-07-01 Tom Tromey <tom@tromey.com>
6065
6066 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6067 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6068
6069 2020-07-01 Tom Tromey <tom@tromey.com>
6070
6071 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6072 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6073 (struct tui_line_or_address): Move from tui-data.h.
6074 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6075 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6076 (tui_cmd_window, tui_source_window_base, tui_source_window)
6077 (tui_disasm_window): Don't declare.
6078 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6079 to tui-winsource.h.
6080 (SINGLE_KEY): Move to tui-stack.c.
6081
6082 2020-07-01 Tom Tromey <tom@tromey.com>
6083
6084 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6085 std::string.
6086 * tui/tui-regs.c (class tab_expansion_file): New.
6087 (tab_expansion_file::write): New method.
6088 (tui_register_format): Change return type. Use
6089 tab_expansion_file.
6090 (tui_get_register, tui_data_window::display_registers_from)
6091 (tui_data_item_window::rerender): Update.
6092 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6093 * tui/tui-io.c (tui_expand_tabs): Remove.
6094
6095 2020-07-01 Tom Tromey <tom@tromey.com>
6096
6097 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6098
6099 2020-07-01 Fangrui Song <maskray@google.com>
6100
6101 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6102
6103 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6104
6105 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6106 forms for DW_AT_associated and DW_AT_allocated attributes,
6107 which is already checked in function attr_to_dynamic_prop.
6108
6109 2020-06-30 Tom Tromey <tromey@adacore.com>
6110
6111 * dwarf2/read.c (quirk_rust_enum): Correctly call
6112 alloc_rust_variant for default-less enum.
6113
6114 2020-06-30 Tom Tromey <tromey@adacore.com>
6115
6116 PR build/26183:
6117 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6118 gdb::to_string.
6119
6120 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6121
6122 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6123 * gdbarch.h: Re-generate.
6124
6125 2020-06-28 Tom Tromey <tom@tromey.com>
6126
6127 * command.h (cmd_types): Remove.
6128 (cmd_type): Don't declare.
6129 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6130 typedef.
6131 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6132 * cli/cli-decode.c (cmd_type): Remove.
6133
6134 2020-06-27 Pedro Alves <palves@redhat.com>
6135
6136 * fork-child.c (prefork_hook): Adjust.
6137 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6138 Delete.
6139 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6140 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6141 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6142 Remove declarations.
6143 (struct inferior) <set_tty, tty>: New methods.
6144 (struct inferior) <terminal>: Rename to ...
6145 (struct inferior) <m_terminal>: ... this and make private.
6146 * main.c (captured_main_1): Adjust.
6147 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6148 (mi_cmd_inferior_tty_show): Adjust.
6149 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6150 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6151
6152 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6153
6154 * configure.ac: Add --enable-libctf: handle --disable-static
6155 properly.
6156 * acinclude.m4: sinclude ../config/enable.m4.
6157 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6158 (LIBCTF): Substitute in.
6159 (CTF_DEPS): New, likewise.
6160 (CLIBS): libctf needs symbols from libbfd: move earlier.
6161 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6162 flags.
6163 * ctfread.c: Surround in ENABLE_LIBCTF.
6164 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6165 * configure: Regenerate.
6166 * config.in: Likewise.
6167
6168 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6169
6170 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6171
6172 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6173
6174 * inferior.h (struct inferior) <terminal>: Change type to
6175 gdb::unique_xmalloc_ptr<char>.
6176 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6177 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6178 field, adjust to unique pointer.
6179 (get_inferior_io_terminal): Adjust to unique pointer.
6180
6181 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6182
6183 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6184 registers, not just the known core set of registers.
6185
6186 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6187
6188 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6189 fflags, frm, and fcsr registers.
6190 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6191 restore groups.
6192 (riscv_tdesc_unknown_reg): New function.
6193 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6194 tdesc_use_registers.
6195 * riscv-tdep.h (struct gdbarch_tdep): Add
6196 unknown_csrs_first_regnum, unknown_csrs_count,
6197 duplicate_fflags_regnum, duplicate_frm_regnum, and
6198 duplicate_fcsr_regnum fields.
6199
6200 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6201
6202 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6203 callback, use the callback (when not null) to help number unknown
6204 registers.
6205 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6206 (tdesc_use_registers): Add extra parameter to declaration.
6207
6208 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6209
6210 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6211 in the file.
6212 (class riscv_pending_register_alias): Likewise.
6213 (riscv_register_feature::register_info): Change 'required_p' field
6214 to 'required', and change its type. Add 'check' member function.
6215 (riscv_register_feature::register_info::check): Define new member
6216 function.
6217 (riscv_xreg_feature): Change initialisation of 'required' field.
6218 (riscv_freg_feature): Likewise.
6219 (riscv_virtual_feature): Likewise.
6220 (riscv_csr_feature): Likewise.
6221 (riscv_check_tdesc_feature): Take extra parameter, the csr
6222 tdesc_feature, rewrite the function to use the new
6223 riscv_register_feature::register_info::check function.
6224 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6225
6226 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6227
6228 * features/Makefile: Remove all references to the deleted files
6229 below.
6230 * features/riscv/32bit-csr.c: Deleted.
6231 * features/riscv/32bit-csr.xml: Deleted.
6232 * features/riscv/64bit-csr.c: Deleted.
6233 * features/riscv/64bit-csr.xml: Deleted.
6234 * features/riscv/rebuild-csr-xml.sh: Deleted.
6235
6236 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6237
6238 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6239 whitespace error for declaration of names member variable.
6240 (struct riscv_register_feature): Add new prefer_first_name member
6241 variable, and fix whitespace error in declaration of registers.
6242 (riscv_xreg_feature): Initialize prefer_first_name field.
6243 (riscv_freg_feature): Likewise.
6244 (riscv_virtual_feature): Likewise.
6245 (riscv_csr_feature): Likewise.
6246 (riscv_register_name): Expand on comments. Remove register name
6247 modifications for CSR and virtual registers.
6248
6249 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6250
6251 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6252 errors.
6253
6254 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6255
6256 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6257 riscv-opc.h.
6258 (class riscv_pending_register_alias): New class.
6259 (riscv_check_tdesc_feature): Take vector of pending aliases and
6260 populate it as appropriate.
6261 (riscv_setup_register_aliases): Delete.
6262 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6263 to riscv_check_tdesc_feature in all cases. Use the vector to
6264 create the register aliases.
6265
6266 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6267
6268 * sol2-tdep.c (sol2_static_transform_name): Remove.
6269 (sol2_init_abi): Don't register it.
6270 * gdbarch.sh (static_transform_name): Remove.
6271 * gdbarch.c, gdbarch.h: Regenerate.
6272
6273 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6274 gdbarch_static_transform_name.
6275 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6276 * stabsread.c (define_symbol) <'X'>: Remove.
6277 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6278 handling.
6279 <'V'>: Likewise.
6280 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6281 <'S'>: Remove call to gdbarch_static_transform_name.
6282
6283 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6284
6285 * procfs.c (procfs_pre_trace): New function.
6286 (procfs_target::create_inferior): Pass it to fork_inferior.
6287
6288 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6289
6290 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6291 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6292 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6293 sol2-tdep.o, sparc-sol2-tdep.o.
6294 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6295 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6296 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6297 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6298
6299 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6300
6301 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6302 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6303 Call sol2_init_abi.
6304 Remove calls to set_gdbarch_skip_solib_resolver,
6305 set_gdbarch_core_pid_to_str.
6306 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6307 (i386_sol2_static_transform_name): Remove.
6308 (i386_sol2_init_abi): Call sol2_init_abi.
6309 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6310 set_gdbarch_static_transform_name,
6311 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6312 Use sol2_sigtramp_p.
6313 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6314 (sol2_sigtramp_p): New function.
6315 (sol2_static_transform_name): New function.
6316 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6317 (sol2_init_abi): New function.
6318 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6319 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6320 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6321 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6322 (sparc_sol2_static_transform_name): Remove.
6323 (sparc32_sol2_init_abi): Call sol2_init_abi.
6324 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6325 set_gdbarch_static_transform_name,
6326 set_gdbarch_skip_solib_resolver,
6327 set_gdbarch_core_pid_to_str.
6328 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6329 (sparc_sol2_static_transform_name): Remove
6330 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6331 call sol2_sigtramp_p.
6332 (sparc64_sol2_init_abi): Call sol2_init_abi.
6333 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6334 set_gdbarch_static_transform_name,
6335 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6336
6337 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6338
6339 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6340 * exec.c (validate_exec_file): If from_tty, set both
6341 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6342 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6343 and from_tty, unconditionally ask a confirmation.
6344
6345 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6346
6347 * target-descriptions.c (tdesc_architecture_name): Protect against
6348 NULL pointer dereference.
6349 (maint_print_xml_tdesc_cmd): New function.
6350 (_initialize_target_descriptions): Register new 'maint print
6351 xml-tdesc' command and give it the filename completer.
6352 * NEWS: Mention new 'maint print xml-tdesc' command.
6353
6354 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6355
6356 * target-descriptions.c (class tdesc_compatible_info): New class.
6357 (struct target_desc): Change type of compatible vector.
6358 (tdesc_compatible_p): Update for change in type of
6359 target_desc::compatible.
6360 (tdesc_compatible_info_list): New function.
6361 (tdesc_compatible_info_arch_name): New function.
6362 (tdesc_add_compatible): Update for change in type of
6363 target_desc::compatible.
6364 (print_c_tdesc::visit_pre): Likewise.
6365
6366 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6367
6368 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6369 whitespace to underscore.
6370 (maint_print_c_tdesc_cmd): Use fake filename for target
6371 descriptions that came from the target.
6372 (_initialize_target_descriptions): Add filename command completion
6373 for 'maint print c-tdesc'.
6374
6375 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6376
6377 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6378 lines.
6379
6380 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6381
6382 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6383 lines.
6384 (dwarf2_find_location_expression): Likewise.
6385 (call_site_parameter_matches): Likewise.
6386 (dwarf2_compile_expr_to_ax): Likewise.
6387 (disassemble_dwarf_expression): Likewise.
6388 (loclist_describe_location): Likewise.
6389
6390 2020-06-23 Pedro Alves <palves@redhat.com>
6391
6392 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6393 progspace-and-thread.h. Include scoped-mock-context.h instead.
6394 (register_to_value_test): Use scoped_mock_context.
6395 * regcache.c: Include "scoped-mock-context.h".
6396 (cooked_read_test): Don't error out if a target is already pushed.
6397 Use scoped_mock_context. Adjust.
6398 * scoped-mock-context.h: New file.
6399
6400 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6401
6402 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6403 initializer.
6404 (ada_language::is_string_type_p): New member function.
6405 * c-lang.c (c_language_data): Delete la_is_string_type_p
6406 initializer.
6407 (cplus_language_data): Likewise.
6408 (asm_language_data): Likewise.
6409 (minimal_language_data): Likewise.
6410 * d-lang.c (d_language_data): Likewise.
6411 * f-lang.c (f_is_string_type_p): Delete function, implementation
6412 moved to f_language::is_string_type_p.
6413 (f_language_data): Delete la_is_string_type_p initializer.
6414 (f_language::is_string_type_p): New member function,
6415 implementation from f_is_string_type_p.
6416 * go-lang.c (go_is_string_type_p): Delete function, implementation
6417 moved to go_language::is_string_type_p.
6418 (go_language_data): Delete la_is_string_type_p initializer.
6419 (go_language::is_string_type_p): New member function,
6420 implementation from go_is_string_type_p.
6421 * language.c (language_defn::is_string_type_p): Define new member
6422 function.
6423 (default_is_string_type_p): Make static, add comment copied from
6424 header file.
6425 (unknown_language_data): Delete la_is_string_type_p initializer.
6426 (unknown_language::is_string_type_p): New member function.
6427 (auto_language_data): Delete la_is_string_type_p initializer.
6428 (auto_language::is_string_type_p): New member function.
6429 * language.h (language_data): Delete la_is_string_type_p field.
6430 (language_defn::is_string_type_p): Declare new function.
6431 (default_is_string_type_p): Delete desclaration, move comment to
6432 definition.
6433 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6434 moved to m2_language::is_string_type_p.
6435 (m2_language_data): Delete la_is_string_type_p initializer.
6436 (m2_language::is_string_type_p): New member function,
6437 implementation from m2_is_string_type_p.
6438 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6439 initializer.
6440 * opencl-lang.c (opencl_language_data): Likewise.
6441 * p-lang.c (pascal_is_string_type_p): Delete function,
6442 implementation moved to pascal_language::is_string_type_p.
6443 (pascal_language_data): Delete la_is_string_type_p initializer.
6444 (pascal_language::is_string_type_p): New member function,
6445 implementation from pascal_is_string_type_p.
6446 * rust-lang.c (rust_is_string_type_p): Delete function,
6447 implementation moved to rust_language::is_string_type_p.
6448 (rust_language_data): Delete la_is_string_type_p initializer.
6449 (rust_language::is_string_type_p): New member function,
6450 implementation from rust_is_string_type_p.
6451 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6452 is_string_type_p.
6453
6454 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6455
6456 * ada-lang.c (ada_language_data): Delete la_print_typedef
6457 initializer.
6458 (ada_language::print_typedef): New member function.
6459 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6460 (cplus_language_data): Likewise.
6461 (asm_language_data): Likewise.
6462 (minimal_language_data): Likewise.
6463 * d-lang.c (d_language_data): Likewise.
6464 * f-lang.c (f_language_data): Likewise.
6465 (f_language::print_typedef): New member function.
6466 * go-lang.c (go_language_data): Delete la_print_typedef
6467 initializer.
6468 * language.c (language_defn::print_typedef): Define member
6469 function.
6470 (unknown_language_data): Delete la_print_typedef initializer.
6471 (unknown_language::print_typedef): New member function.
6472 (auto_language_data): Delete la_print_typedef initializer.
6473 (auto_language::print_typedef): New member function.
6474 * language.h (language_data): Delete la_print_typedef field.
6475 (language_defn::print_typedef): Declare new member function.
6476 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6477 (default_print_typedef): Delete declaration.
6478 * m2-lang.c (m2_language_data): Delete la_print_typedef
6479 initializer.
6480 (m2_language::print_typedef): New member function.
6481 * objc-lang.c (objc_language_data): Delete la_print_typedef
6482 initializer.
6483 * opencl-lang.c (opencl_language_data): Likewise.
6484 * p-lang.c (pascal_language_data): Likewise.
6485 (pascal_language::print_typedef): New member function.
6486 * rust-lang.c (rust_print_typedef): Delete function,
6487 implementation moved to rust_language::print_typedef.
6488 (rust_language): Delete la_print_typedef initializer.
6489 (rust_language::print_typedef): New member function,
6490 implementation from rust_print_typedef.
6491 * typeprint.c (default_print_typedef): Delete.
6492
6493 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6494
6495 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6496 (ada_language::printstr): New member function.
6497 * c-lang.c (c_language_data): Delete la_printstr initializer.
6498 (cplus_language_data): Likewise.
6499 (asm_language_data): Likewise.
6500 (minimal_language_data): Likewise.
6501 * d-lang.c (d_language_data): Likewise.
6502 * f-lang.c (f_printstr): Rename to f_language::printstr.
6503 (f_language_data): Delete la_printstr initializer.
6504 (f_language::printstr): New member function, implementation from
6505 f_printstr.
6506 * go-lang.c (go_language_data): Delete la_printstr initializer.
6507 * language.c (language_defn::printstr): Define new member
6508 function.
6509 (unk_lang_printstr): Delete.
6510 (unknown_language_data): Delete la_printstr initializer.
6511 (unknown_language::printstr): New member function.
6512 (auto_language_data): Delete la_printstr initializer.
6513 (auto_language::printstr): New member function.
6514 * language.h (language_data): Delete la_printstr field.
6515 (language_defn::printstr): Declare new member function.
6516 (LA_PRINT_STRING): Update call to printstr.
6517 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6518 (m2_language_data): Delete la_printstr initializer.
6519 (m2_language::printstr): New member function, implementation from
6520 m2_printstr.
6521 * objc-lang.c (objc_language_data): Delete la_printstr
6522 initializer.
6523 * opencl-lang.c (opencl_language_data): Likewise.
6524 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6525 (pascal_language_data): Delete la_printstr initializer.
6526 (pascal_language::printstr): New member function, implementation
6527 from pascal_printstr.
6528 * p-lang.h (pascal_printstr): Delete declaration.
6529 * rust-lang.c (rust_printstr): Update header comment.
6530 (rust_language_data): Delete la_printstr initializer.
6531 (rust_language::printstr): New member function.
6532
6533 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6534
6535 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6536 (ada_language::printchar): New member function.
6537 * c-lang.c (c_language_data): Delete la_printchar initializer.
6538 (cplus_language_data): Likewise.
6539 (asm_language_data): Likewise.
6540 (minimal_language_data): Likewise.
6541 * d-lang.c (d_language_data): Likewise.
6542 * f-lang.c (f_printchar): Rename to f_language::printchar.
6543 (f_language_data): Delete la_printchar initializer.
6544 (f_language::printchar): New member function, implementation from
6545 f_printchar.
6546 * go-lang.c (go_language_data): Delete la_printchar initializer.
6547 * language.c (unk_lang_printchar): Delete.
6548 (language_defn::printchar): Define new member function.
6549 (unknown_language_data): Delete la_printchar initializer.
6550 (unknown_language::printchar): New member function.
6551 (auto_language_data): Delete la_printchar initializer.
6552 (auto_language::printchar): New member function.
6553 * language.h (language_data): Delete la_printchar field.
6554 (language_defn::printchar): Declare new member function.
6555 (LA_PRINT_CHAR): Update call to printchar.
6556 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6557 (m2_language::printchar): New member function.
6558 * objc-lang.c (objc_language_data): Delete la_printchar
6559 initializer.
6560 * opencl-lang.c (opencl_language_data): Likewise.
6561 * p-lang.c (pascal_language_data): Delete la_printchar
6562 initializer.
6563 (pascal_language::printchar): New member function.
6564 * rust-lang.c (rust_printchar): Rename to
6565 rust_language::printchar.
6566 (rust_language_data): Delete la_printchar initializer.
6567 (rust_language::printchar): New member function, implementation
6568 from rust_printchar.
6569
6570 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6571
6572 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6573 (ada_language_data): Delete la_emitchar initializer.
6574 (ada_language::emitchar): New member function, implementation from
6575 emit_char.
6576 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6577 (cplus_language_data): Likewise.
6578 (asm_language_data): Likewise.
6579 (minimal_language_data): Likewise.
6580 * d-lang.c (d_language_data): Likewise.
6581 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6582 (f_language_data): Delete la_emitchar initializer.
6583 (f_language::emitchar): New member function, implementation from
6584 f_emit_char.
6585 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6586 * language.c (unk_lang_emit_char): Delete.
6587 (language_defn::emitchar): New member function definition.
6588 (unknown_language_data): Delete la_emitchar initializer.
6589 (unknown_language::emitchar): New member function.
6590 (auto_language_data): Delete la_emitchar initializer.
6591 (auto_language::emitchar): New member function.
6592 * language.h (language_data): Delete la_emitchar field.
6593 (language_defn::emitchar): New member field declaration.
6594 (LA_EMIT_CHAR): Update call to emitchar.
6595 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6596 (m2_language_data): Delete la_emitchar initializer.
6597 (m2_language::emitchar): New member function, implementation from
6598 m2_emit_char.
6599 * objc-lang.c (objc_language_data): Delete la_emitchar
6600 initializer.
6601 * opencl-lang.c (opencl_language_data): Likewise.
6602 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6603 (pascal_language_data): Delete la_emitchar initializer.
6604 (pascal_language::emitchar): New member function, implementation
6605 from pascal_emit_char.
6606 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6607 (rust_language_data): Delete la_emitchar initializer.
6608 (rust_language::emitchar): New member function, implementation
6609 from rust_emitchar.
6610
6611 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6612
6613 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6614 (ada_language_data): Delete la_post_parser initializer.
6615 (ada_language::post_parser): New member function.
6616 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6617 (cplus_language_data): Likewise.
6618 (asm_language_data): Likewise.
6619 (minimal_language_data): Likewise.
6620 * d-lang.c (d_language_data): Likewise.
6621 * f-lang.c (f_language_data): Likewise.
6622 * go-lang.c (go_language_data): Likewise.
6623 * language.c (unknown_language_data): Likewise.
6624 (auto_language_data): Likewise.
6625 * language.h (language_data): Delete la_post_parser field.
6626 (language_defn::post_parser): New member function.
6627 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6628 * objc-lang.c (objc_language_data): Likewise.
6629 * opencl-lang.c (opencl_language_data): Likewise.
6630 * p-lang.c (pascal_language_data): Likewise.
6631 * parse.c (parse_exp_in_context): Update call to post_parser.
6632 (null_post_parser): Delete definition.
6633 * parser-defs.h (null_post_parser): Delete declaration.
6634 * rust-lang.c (rust_language_data): Delete la_post_parser
6635 initializer.
6636
6637 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6638
6639 * ada-lang.c (parse): Rename to ada_language::parser.
6640 (ada_language_data): Delete la_parser initializer.
6641 (ada_language::parser): New member function, implementation from
6642 parse.
6643 * c-lang.c (c_language_data): Delete la_parser initializer.
6644 (cplus_language_data): Likewise.
6645 (asm_language_data): Likewise.
6646 (minimal_language_data): Likewise.
6647 * d-lang.c (d_language_data): Likewise.
6648 (d_language::parser): New member function.
6649 * f-lang.c (f_language_data): Delete la_parser initializer.
6650 (f_language::parser): New member function.
6651 * go-lang.c (go_language_data): Delete la_parser initializer.
6652 (go_language::parser): New member function.
6653 * language.c (unk_lang_parser): Delete.
6654 (language_defn::parser): Define new member function.
6655 (unknown_language_data): Delete la_parser initializer.
6656 (unknown_language::parser): New member function.
6657 (auto_language_data): Delete la_parser initializer.
6658 (auto_language::parser): New member function.
6659 * language.h (language_data): Delete la_parser field.
6660 (language_defn::parser): Declare new member function.
6661 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6662 (m2_language::parser): New member function.
6663 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6664 * opencl-lang.c (opencl_language_data): Likewise.
6665 * p-lang.c (pascal_language_data): Likewise.
6666 (pascal_language::parser): New member function.
6667 * parse.c (parse_exp_in_context): Update call to parser.
6668 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6669 (rust_language::parser): New member function.
6670
6671 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 * top.c (print_gdb_configuration): Print --with-python-libdir
6674 configuration value.
6675
6676 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6677
6678 * NEWS: Mention change to the alias command.
6679
6680 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6681
6682 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6683 (alias_command_completer)
6684 (make_alias_options_def_group): New functions.
6685 (alias_opts, alias_option_defs): New struct and array.
6686 (alias_usage_error): Update usage.
6687 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6688 Use option framework.
6689 (_initialize_cli_cmds): Update alias command help.
6690 Update aliases command help.
6691 (show_user):
6692 Add NULL for new default_args lookup_cmd argument.
6693 (valid_command_p): Rename to validate_aliased_command.
6694 Add NULL for new default_args lookup_cmd argument. Verify that the
6695 aliased_command has no default args.
6696 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6697 (lookup_cmd_1, lookup_cmd): New argument default_args.
6698 (add_alias_cmd):
6699 Add NULL for new default_args lookup_cmd argument.
6700 (print_help_for_command): Show default args under the layout
6701 alias some_alias = some_aliased_cmd some_alias_default_arg.
6702 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6703 xfree default_args in destructor.
6704 * cli/cli-script.c (process_next_line, do_define_command):
6705 Add NULL for new default_args lookup_cmd argument.
6706 * command.h: Declare new default_args argument in lookup_cmd
6707 and lookup_cmd_1.
6708 * completer.c (complete_line_internal_1):
6709 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6710 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6711 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6712 Likewise.
6713 * infcmd.c (_initialize_infcmd): Likewise.
6714 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6715 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6716 * python/py-param.c (add_setshow_generic): Likewise.
6717 * remote.c (_initialize_remote): Likewise.
6718 * top.c (execute_command): Prepend default_args if command has some.
6719 (set_verbose):
6720 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6721 * tracepoint.c (validate_actionline, encode_actions_1):
6722 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6723
6724 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6725
6726 * jit.c (jit_read_descriptor): Use bool as the return type.
6727 (jit_breakpoint_re_set_internal): Use bool as the return type.
6728 Invert the return value logic; return true if the jit breakpoint
6729 has been successfully initialized.
6730 (jit_inferior_init): Update the call to
6731 jit_breakpoint_re_set_internal.
6732
6733 2020-06-22 Pedro Alves <palves@redhat.com>
6734
6735 PR gdb/25939
6736 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6737 Use the current inferior instead. Don't return
6738 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6739 wait again.
6740 * sol-thread.c (sol_thread_target::wait): Don't reference
6741 inferior_ptid.
6742 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6743 (sol_update_thread_list_callback): Use the current inferior's pid
6744 instead of inferior_ptid.
6745
6746 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6747
6748 * procfs.c: Cleanup many comments.
6749
6750 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6751 (AFTER_WATCHFLAG): Replace by value.
6752
6753 (MAIN_PROC_NAME_FORMAT): Inline ...
6754 (create_procinfo): ... here.
6755
6756 (procfs_debug_inferior): Remove SYS_exec handling.
6757 (syscall_is_exec): Likewise.
6758 (procfs_set_exec_trap): Likewise.
6759
6760 (syscall_is_lwp_exit): Inline in callers.
6761 (syscall_is_exit): Likewise.
6762 (syscall_is_exec): Likewise.
6763 (syscall_is_lwp_create): Likewise.
6764
6765 (invalidate_cache): Remove #if 0 code.
6766
6767 (make_signal_thread_runnable): Remove.
6768 (procfs_target::resume): Remove #if 0 code.
6769
6770 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6771
6772 PR gdb/25939
6773 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6774 call ...
6775 (procfs_target::create_inferior): ... here.
6776
6777 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6778
6779 * exec.c (validate_exec_file): Ensure the build-id is up to
6780 date by calling reopen_exec_file (that checks file timestamp
6781 to decide to re-read the file).
6782
6783 2020-06-18 Pedro Alves <palves@redhat.com>
6784
6785 PR gdb/25412
6786 * gdbthread.h (delete_thread, delete_thread_silent)
6787 (find_thread_ptid): Update comments.
6788 * thread.c (current_thread_): New global.
6789 (is_current_thread): Move higher, and reimplement.
6790 (inferior_thread): Reimplement.
6791 (set_thread_exited): Use bool. Add assertions.
6792 (add_thread_silent): Simplify thread-reuse handling by always
6793 calling delete_thread.
6794 (delete_thread): Remove intro comment.
6795 (find_thread_ptid): Skip exited threads.
6796 (switch_to_thread_no_regs): Write to current_thread_.
6797 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6798 INFERIOR_PTID. Clear current_thread_.
6799
6800 2020-06-18 Pedro Alves <palves@redhat.com>
6801
6802 * aix-thread.c (pd_update): Use switch_to_thread.
6803
6804 2020-06-18 Pedro Alves <palves@redhat.com>
6805
6806 * ravenscar-thread.c (ravenscar_thread_target): Update.
6807 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6808 (ravenscar_thread_target::add_active_thread): ... this. Don't
6809 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6810 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6811
6812 2020-06-18 Pedro Alves <palves@redhat.com>
6813
6814 * nat/windows-nat.c (current_windows_thread): Remove.
6815 * nat/windows-nat.h (current_windows_thread): Remove.
6816 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6817 Adjust.
6818 (display_selectors): Adjust to fetch the current
6819 windows_thread_info based on inferior_ptid.
6820 (fake_create_process): No longer write to current_windows_thread.
6821 (windows_nat_target::get_windows_debug_event):
6822 Don't set inferior_ptid or current_windows_thread.
6823 (windows_nat_target::wait): Adjust to not rely on
6824 current_windows_thread.
6825 (do_initial_windows_stuff): Now a method of windows_nat_target.
6826 Switch to the last_ptid thread.
6827 (windows_nat_target::attach): Adjust.
6828 (windows_nat_target::detach): Use switch_to_no_thread instead of
6829 writing to inferior_ptid directly.
6830 (windows_nat_target::create_inferior): Adjust.
6831
6832 2020-06-18 Pedro Alves <palves@redhat.com>
6833
6834 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6835
6836 2020-06-18 Pedro Alves <palves@redhat.com>
6837
6838 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6839 after creating it, instead of writing to inferior_ptid. Don't
6840 write to inferior_ptid.
6841
6842 2020-06-18 Pedro Alves <palves@redhat.com>
6843
6844 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6845
6846 2020-06-18 Pedro Alves <palves@redhat.com>
6847
6848 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6849 it, instead of writing to inferior_ptid.
6850
6851 2020-06-18 Pedro Alves <palves@redhat.com>
6852
6853 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6854 to inferior_ptid.
6855
6856 2020-06-18 Pedro Alves <palves@redhat.com>
6857
6858 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6859 instead of writing to inferior_ptid directly.
6860
6861 2020-06-18 Pedro Alves <palves@redhat.com>
6862
6863 * corelow.c (core_target::close): Use switch_to_no_thread instead
6864 of writing to inferior_ptid directly.
6865 (add_to_thread_list, core_target_open): Use switch_to_thread
6866 instead of writing to inferior_ptid directly.
6867
6868 2020-06-18 Pedro Alves <palves@redhat.com>
6869
6870 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6871 inferior_ptid.
6872 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6873 inferior_ptid.
6874 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6875 inferior_ptid directly.
6876 (darwin_nat_target::init_thread_list): Switch to thread, instead
6877 of writing to inferior_ptid.
6878 (darwin_nat_target::attach): Don't write to inferior_ptid.
6879 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6880
6881 2020-06-18 Pedro Alves <palves@redhat.com>
6882
6883 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6884 thread.
6885 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6886 Instead use switch_to_thread.
6887 (gnu_nat_target::detach): Use switch_to_no_thread
6888 instead of writing to inferior_ptid directly. Used passed-in
6889 inferior instead of looking up the inferior by pid.
6890
6891 2020-06-18 Pedro Alves <palves@redhat.com>
6892
6893 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6894 inferior_ptid.
6895
6896 2020-06-18 Pedro Alves <palves@redhat.com>
6897
6898 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6899 inferior_ptid.
6900 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6901 thread.
6902 (nto_procfs_target::detach): Avoid referencing
6903 inferior_ptid. Use switch_to_no_thread instead of writing to
6904 inferior_ptid directly.
6905 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6906 instead of writing to inferior_ptid directly.
6907 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6908 to thread.
6909
6910 2020-06-18 Pedro Alves <palves@redhat.com>
6911
6912 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6913 after creating it, instead of writing to inferior_ptid.
6914 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6915 to inferior_ptid directly.
6916 (gdbsim_target::wait): Don't write to inferior_ptid.
6917
6918 2020-06-18 Pedro Alves <palves@redhat.com>
6919
6920 * remote.c (remote_target::remote_notice_new_inferior): Use
6921 switch_to_thread instead of writing to inferior_ptid directly.
6922 (remote_target::add_current_inferior_and_thread): Use
6923 switch_to_no_thread instead of writing to inferior_ptid directly.
6924 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6925 and switch_to_thread instead of using set_current_inferior or
6926 writing to inferior_ptid directly.
6927
6928 2020-06-18 Pedro Alves <palves@redhat.com>
6929
6930 * tracectf.c (ctf_target_open): Switch to added thread instead of
6931 writing to inferior_ptid directly.
6932 (ctf_target::close): Use switch_to_no_thread instead of writing to
6933 inferior_ptid directly.
6934
6935 2020-06-18 Pedro Alves <palves@redhat.com>
6936
6937 * tracefile-tfile.c (tfile_target_open): Don't write to
6938 inferior_ptid directly, instead switch to added thread.
6939 (tfile_target::close): Use switch_to_no_thread instead of writing
6940 to inferior_ptid directly.
6941
6942 2020-06-18 Pedro Alves <palves@redhat.com>
6943
6944 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6945 (procfs_target::detach): Use switch_to_no_thread
6946 instead of writing to inferior_ptid directly.
6947 (do_attach): Change return type to void. Switch to the added
6948 thread.
6949 (procfs_target::create_inferior): Switch to the added thread.
6950 (procfs_do_thread_registers): Don't write to inferior_ptid.
6951
6952 2020-06-18 Pedro Alves <palves@redhat.com>
6953
6954 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6955 of writing to inferior_ptid.
6956 (scoped_restore_exited_inferior): Delete.
6957 (handle_vfork_child_exec_or_exit): Simplify using
6958 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6959 instead of writing to inferior_ptid.
6960 (THREAD_STOPPED_BY): Delete.
6961 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6962 (thread_stopped_by_hw_breakpoint): Delete.
6963 (save_waitstatus): Use
6964 scoped_restore_current_thread+switch_to_thread, and call
6965 target_stopped_by_watchpoint instead of
6966 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6967 instead of thread_stopped_by_sw_breakpoint, and
6968 target_stopped_by_hw_breakpoint instead of
6969 thread_stopped_by_hw_breakpoint.
6970 (handle_inferior_event)
6971 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6972 inferior_ptid directly, nor
6973 set_current_inferior/set_current_program_space. Use
6974 switch_to_thread / switch_to_inferior_no_thread instead.
6975
6976 2020-06-18 Pedro Alves <palves@redhat.com>
6977
6978 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6979 instead of writing to inferior_ptid.
6980
6981 2020-06-18 Pedro Alves <palves@redhat.com>
6982
6983 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6984 added thread.
6985 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6986 to the added thread.
6987 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6988 instead of writing to inferior_ptid.
6989
6990 2020-06-18 Pedro Alves <palves@redhat.com>
6991
6992 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6993 (register_to_value_test): Mock a program_space too. Heap-allocate
6994 the address space. Don't write to inferior_ptid. Use
6995 switch_to_thread instead.
6996
6997 2020-06-18 Pedro Alves <palves@redhat.com>
6998
6999 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7000 Delete.
7001 (find_signalled_thread()): New, factored out from
7002 linux_make_corefile_notes and adjusted to handle exited threads.
7003 (linux_make_corefile_notes): Adjust to use the new
7004 find_signalled_thread.
7005
7006 2020-06-18 Pedro Alves <palves@redhat.com>
7007
7008 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7009 of saving/restoring inferior_ptid.
7010
7011 2020-06-17 Tom Tromey <tom@tromey.com>
7012
7013 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7014 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7015 declare.
7016 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7017
7018 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7019
7020 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7021 of partial symtabs.
7022
7023 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7024
7025 * regformats/reg-arm.dat: Remove.
7026 * regformats/reg-bfin.dat: Remove.
7027 * regformats/reg-cris.dat: Remove.
7028 * regformats/reg-crisv32.dat: Remove.
7029 * regformats/reg-m32r.dat: Remove.
7030 * regformats/reg-tilegx.dat: Remove.
7031 * regformats/reg-tilegx32.dat: Remove.
7032
7033 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7034
7035 * features/Makefile (WHICH): Remove arm files.
7036 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7037 * regformats/arm/arm-with-neon.dat: Remove.
7038 * regformats/arm/arm-with-vfpv2.dat: Remove.
7039 * regformats/arm/arm-with-vfpv3.dat: Remove.
7040
7041 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7042
7043 * features/Makefile (XMLTOC): Remove rx.xml.
7044
7045 2020-06-17 Pedro Alves <palves@redhat.com>
7046
7047 * gdbthread.h (thread_control_state) <trap_expected> Update
7048 comments.
7049
7050 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7051
7052 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7053 ada_language::lookup_symbol_nonlocal.
7054 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7055 (ada_language::lookup_symbol_nonlocal): New member function,
7056 implementation from ada_lookup_symbol_nonlocal.
7057 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7058 initializer.
7059 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7060 initializer.
7061 (cplus_language::lookup_symbol_nonlocal): New member function.
7062 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7063 (minimal_language_data) Likewise.
7064 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7065 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7066 initializer.
7067 (d_language::lookup_symbol_nonlocal): New member function.
7068 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7069 initializer.
7070 (f_language::lookup_symbol_nonlocal): New member function.
7071 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7072 initializer.
7073 * language.c (unknown_language_data): Likewise.
7074 (auto_language_data): Likewise.
7075 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7076 field.
7077 (language_defn::lookup_symbol_nonlocal): New member function.
7078 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7079 initializer.
7080 * objc-lang.c (objc_language_data): Likewise.
7081 * opencl-lang.c (opencl_language_data): Likewise.
7082 * p-lang.c (pascal_language_data): Likewise.
7083 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7084 rust_language::lookup_symbol_nonlocal.
7085 (rust_language_data): Delete la_lookup_symbol_nonlocal
7086 initializer.
7087 (rust_language::lookup_symbol_nonlocal): New member function,
7088 implementation from rust_lookup_symbol_nonlocal.
7089 * symtab.c (lookup_symbol_aux): Update call to
7090 lookup_symbol_nonlocal.
7091 (basic_lookup_symbol_nonlocal): Rename to...
7092 (language_defn::lookup_symbol_nonlocal): ...this, and update
7093 header comment. Remove language_defn parameter, and replace with
7094 uses of `this'.
7095 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7096
7097 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7098
7099 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7100 initializer.
7101 (ada_language::value_print_inner): New member function.
7102 * c-lang.c (c_language_data): Delete la_value_print_inner
7103 initializer.
7104 (cplus_language_data): Likewise.
7105 (asm_language_data): Likewise.
7106 (minimal_language_data): Likewise.
7107 * d-lang.c (d_language_data): Likewise.
7108 (d_language::value_print_inner): New member function.
7109 * f-lang.c (f_language_data): Delete la_value_print_inner
7110 initializer.
7111 (f_language::value_print_inner): New member function.
7112 * f-lang.h (f_value_print_innner): Rename to...
7113 (f_value_print_inner): ...this (note spelling of 'inner').
7114 * f-valprint.c (f_value_print_innner): Rename to...
7115 (f_value_print_inner): ...this (note spelling of 'inner').
7116 * go-lang.c (go_language_data): Delete la_value_print_inner
7117 initializer.
7118 (go_language::value_print_inner): New member function.
7119 * language.c (language_defn::value_print_inner): Define new member
7120 function.
7121 (unk_lang_value_print_inner): Delete.
7122 (unknown_language_data): Delete la_value_print_inner initializer.
7123 (unknown_language::value_print_inner): New member function.
7124 (auto_language_data): Delete la_value_print_inner initializer.
7125 (auto_language::value_print_inner): New member function.
7126 * language.h (language_data): Delete la_value_print_inner field.
7127 (language_defn::value_print_inner): Delcare new member function.
7128 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7129 initializer.
7130 (m2_language::value_print_inner): New member function.
7131 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7132 initializer.
7133 * opencl-lang.c (opencl_language_data): Likewise.
7134 * p-lang.c (pascal_language_data): Likewise.
7135 (pascal_language::value_print_inner): New member function.
7136 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7137 initializer.
7138 (rust_language::value_print_inner): New member function.
7139 * valprint.c (do_val_print): Update call to value_print_inner.
7140
7141 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7142
7143 * ada-lang.c (ada_language_data): Delete la_value_print
7144 initializer.
7145 (ada_language::value_print): New member function.
7146 * c-lang.c (c_language_data): Delete la_value_print initializer.
7147 (cplus_language_data): Likewise.
7148 (asm_language_data): Likewise.
7149 (minimal_language_data): Likewise.
7150 * d-lang.c (d_language_data): Likewise.
7151 * f-lang.c (f_language_data): Likewise.
7152 * go-lang.c (go_language_data): Likewise.
7153 * language.c (unk_lang_value_print): Delete.
7154 (language_defn::value_print): Define new member function.
7155 (unknown_language_data): Delete la_value_print initializer.
7156 (unknown_language::value_print): New member function.
7157 (auto_language_data): Delete la_value_print initializer.
7158 (auto_language::value_print): New member function.
7159 * language.h (language_data): Delete la_value_print field.
7160 (language_defn::value_print): Declare new member function.
7161 (LA_VALUE_PRINT): Update call to value_print.
7162 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7163 * objc-lang.c (objc_language_data): Likewise.
7164 * opencl-lang.c (opencl_language_data): Likewise.
7165 * p-lang.c (pascal_language_data): Likewise.
7166 (pascal_language::value_print): New member function.
7167 * rust-lang.c (rust_language_data): Delete la_value_print
7168 initializer.
7169
7170 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7171
7172 * ada-lang.c (ada_watch_location_expression): Rename to
7173 ada_language::watch_location_expression.
7174 (ada_language_data): Delete la_watch_location_expression
7175 initializer.
7176 (ada_language::watch_location_expression): New member function,
7177 implementation from ada_watch_location_expression.
7178 * breakpoint.c (watch_command_1): Update call to
7179 watch_location_expression.
7180 * c-lang.c (c_watch_location_expression): Rename to
7181 language_defn::watch_location_expression.
7182 (c_language_data): Delete la_watch_location_expression
7183 initializer.
7184 (cplus_language_data): Likewise.
7185 (asm_language_data): Likewise.
7186 (minimal_language_data): Likewise.
7187 * c-lang.h (c_watch_location_expression): Delete declaration.
7188 * d-lang.c (d_language_data): Delete la_watch_location_expression
7189 initializer.
7190 * f-lang.c (f_language_data): Likewise.
7191 * go-lang.c (go_language_data): Likewise.
7192 * language.c (language_defn::watch_location_expression): Member
7193 function implementation from c_watch_location_expression.
7194 (unknown_language_data): Delete la_watch_location_expression
7195 initializer.
7196 (auto_language_data): Likewise.
7197 * language.h (language_data): Delete la_watch_location_expression
7198 field.
7199 (language_defn::watch_location_expression): Declare new member
7200 function.
7201 * m2-lang.c (m2_language_data): Delete
7202 la_watch_location_expression initializer.
7203 * objc-lang.c (objc_language_data): Likewise.
7204 * opencl-lang.c (opencl_language_data): Likewise.
7205 * p-lang.c (pascal_language_data): Likewise.
7206 * rust-lang.c (rust_watch_location_expression): Rename to
7207 rust_language::watch_location_expression.
7208 (rust_language_data): Delete la_watch_location_expression
7209 initializer.
7210 (rust_language::watch_location_expression): New member function,
7211 implementation from rust_watch_location_expression.
7212
7213 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7214
7215 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7216 ada_language::collect_symbol_completion_matches.
7217 (ada_language_data): Delete la_collect_symbol_completion_matches
7218 initializer.
7219 (ada_language::collect_symbol_completion_matches): New member
7220 function, implementation from
7221 ada_collect_symbol_completion_matches.
7222 * c-lang.c (c_language_data): Delete
7223 la_collect_symbol_completion_matches initializer.
7224 (cplus_language_data): Likewise.
7225 (asm_language_data): Likewise.
7226 (minimal_language_data): Likewise.
7227 * d-lang.c (d_language_data): Likewise.
7228 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7229 f_language::collect_symbol_completion_matches.
7230 (f_language_data): Delete la_collect_symbol_completion_matches
7231 initializer.
7232 (f_language::collect_symbol_completion_matches) New member
7233 function, implementation from f_collect_symbol_completion_matches.
7234 * go-lang.c (go_language_data): Delete
7235 la_collect_symbol_completion_matches initializer.
7236 * language.c (unknown_language_data): Likewise.
7237 (auto_language_data): Likewise.
7238 * language.h (language_data): Delete
7239 la_collect_symbol_completion_matches field.
7240 (language_defn::collect_symbol_completion_matches): New member
7241 function.
7242 * m2-lang.c (m2_language_data): Delete
7243 la_collect_symbol_completion_matches initializer.
7244 * objc-lang.c (objc_language_data): Likewise.
7245 * opencl-lang.c (opencl_language_data): Likewise.
7246 * p-lang.c (pascal_language_data): Likewise.
7247 * rust-lang.c (rust_language_data): Likewise.
7248 * symtab.c (default_collect_symbol_completion_matches): Delete.
7249 (collect_symbol_completion_matches): Update call to
7250 collect_symbol_completion_matches.
7251 (collect_symbol_completion_matches_type): Likewise.
7252 * symtab.h (default_collect_symbol_completion_matches): Delete
7253 declaration.
7254
7255 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7256
7257 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7258 (ada_language_data): Delete la_word_break_characters initializer.
7259 (ada_language::word_break_characters): New member function.
7260 * c-lang.c (c_language_data): Delete la_word_break_characters
7261 initializer.
7262 (cplus_language_data): Likewise.
7263 (asm_language_data): Likewise.
7264 (minimal_language_data): Likewise.
7265 * completer.c: Update global comment.
7266 (advance_to_expression_complete_word_point): Update call to
7267 word_break_characters.
7268 (complete_files_symbols): Likewise.
7269 (complete_line_internal_1): Likewise.
7270 (default_completer_handle_brkchars): Likewise.
7271 (skip_quoted_chars): Likewise.
7272 * d-lang.c (d_language_data): Delete la_word_break_characters
7273 initializer.
7274 * f-lang.c (f_word_break_characters): Delete.
7275 (f_language_data): Delete la_word_break_characters initializer.
7276 (f_language::word_break_characters): New member function.
7277 * go-lang.c (go_language_data): Delete la_word_break_characters
7278 initializer.
7279 * language.c (unknown_language_data): Likewise.
7280 (auto_language_data): Likewise.
7281 * language.h (default_word_break_characters): Move declaration to
7282 earlier in the file.
7283 (language_data): Delete la_word_break_characters field.
7284 (language_defn::word_break_characters): New member function.
7285 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7286 initializer.
7287 * objc-lang.c (objc_language_data): Likewise.
7288 * opencl-lang.c (opencl_language_data): Likewise.
7289 * p-lang.c (pascal_language_data): Likewise.
7290 * rust-lang.c (rust_language_data): Likewise.
7291
7292 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7293
7294 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7295 (ada_language_data): Delete la_get_symbol_name_matcher
7296 initializer.
7297 (language_defn::get_symbol_name_matcher_inner): New member
7298 function.
7299 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7300 initializer.
7301 (cplus_language_data): Likewise.
7302 (cplus_language::get_symbol_name_matcher_inner): New member
7303 function.
7304 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7305 (minimal_language_data): Likewise.
7306 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7307 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7308 initializer.
7309 * dictionary.c (iter_match_first_hashed): Update call to
7310 get_symbol_name_matcher.
7311 (iter_match_next_hashed): Likewise.
7312 (iter_match_next_linear): Likewise.
7313 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7314 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7315 initializer.
7316 (f_language::get_symbol_name_matcher_inner): New member function.
7317 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7318 initializer.
7319 * language.c (default_symbol_name_matcher): Update header comment,
7320 make static.
7321 (language_defn::get_symbol_name_matcher): New definition.
7322 (language_defn::get_symbol_name_matcher_inner): Likewise.
7323 (get_symbol_name_matcher): Delete.
7324 (unknown_language_data): Delete la_get_symbol_name_matcher
7325 initializer.
7326 (auto_language_data): Likewise.
7327 * language.h (language_data): Delete la_get_symbol_name_matcher
7328 field.
7329 (language_defn::get_symbol_name_matcher): New member function.
7330 (language_defn::get_symbol_name_matcher_inner): Likewise.
7331 (default_symbol_name_matcher): Delete declaration.
7332 * linespec.c (find_methods): Update call to
7333 get_symbol_name_matcher.
7334 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7335 initializer.
7336 * minsyms.c (lookup_minimal_symbol): Update call to
7337 get_symbol_name_matcher.
7338 (iterate_over_minimal_symbols): Likewise.
7339 * objc-lang.c (objc_language_data): Delete
7340 la_get_symbol_name_matcher initializer.
7341 * opencl-lang.c (opencl_language_data): Likewise.
7342 * p-lang.c (pascal_language_data): Likewise.
7343 * psymtab.c (psymbol_name_matches): Update call to
7344 get_symbol_name_matcher.
7345 * rust-lang.c (rust_language_data): Delete
7346 la_get_symbol_name_matcher initializer.
7347 * symtab.c (symbol_matches_search_name): Update call to
7348 get_symbol_name_matcher.
7349 (compare_symbol_name): Likewise.
7350
7351 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7352
7353 * ada-lang.c (ada_language_data): Delete la_compute_program
7354 initializer.
7355 * c-lang.c (c_language_data): Likewise.
7356 (c_language::compute_program): New member function.
7357 (cplus_language_data): Delete la_compute_program initializer.
7358 (cplus_language::compute_program): New member function.
7359 (asm_language_data): Delete la_compute_program initializer.
7360 (minimal_language_data): Likewise.
7361 * c-lang.h (c_compute_program): Update comment.
7362 (cplus_compute_program): Likewise.
7363 * compile/compile-c-support.c (c_compute_program): Likewise.
7364 (cplus_compute_program): Likewise.
7365 * compile/compile.c (compile_to_object): Update call to
7366 la_compute_program.
7367 * d-lang.c (d_language_data): Delete la_compute_program
7368 initializer.
7369 * f-lang.c (f_language_data): Likewise.
7370 * go-lang.c (go_language_data): Likewise.
7371 * language.c (unknown_language_data): Likewise.
7372 (auto_language_data): Likewise.
7373 * language.h (language_data): Delete la_compute_program field.
7374 (language_defn::compute_program): New member function.
7375 * m2-lang.c (m2_language_data): Delete la_compute_program
7376 initializer.
7377 * objc-lang.c (objc_language_data): Likewise.
7378 * opencl-lang.c (opencl_language_data): Likewise.
7379 * p-lang.c (pascal_language_data): Likewise.
7380 * rust-lang.c (rust_language_data): Likewise.
7381
7382 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7383
7384 * ada-lang.c (ada_language_data) Delete
7385 la_class_name_from_physname initializer.
7386 * c-lang.c (c_language_data): Likewise.
7387 (cplus_language_data): Likewise.
7388 (cplus_language::class_name_from_physname): New member function.
7389 (asm_language_data): Delete la_class_name_from_physname
7390 initializer.
7391 (minimal_language_data): Likewise.
7392 * d-lang.c (d_language_data): Likewise.
7393 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7394 method on language_defn class.
7395 (guess_full_die_structure_name): Likewise.
7396 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7397 initializer.
7398 * go-lang.c (go_language_data): Likewise.
7399 * language.c (language_class_name_from_physname): Delete.
7400 (unk_lang_class_name): Delete.
7401 (unknown_language_data): Delete la_class_name_from_physname
7402 initializer.
7403 (auto_language_data): Likewise.
7404 * language.h (language_data): Delete la_class_name_from_physname
7405 field.
7406 (language_defn::class_name_from_physname): New function.
7407 (language_class_name_from_physname): Delete declaration.
7408 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7409 initializer.
7410 * objc-lang.c (objc_language_data): Likewise.
7411 * opencl-lang.c (opencl_language_data): Likewise.
7412 * p-lang.c (pascal_language_data): Likewise.
7413 * rust-lang.c (rust_language_data): Likewise.
7414
7415 2020-06-16 Tom Tromey <tom@tromey.com>
7416
7417 * tui/tui-data.h (STATUS_NAME): New macro.
7418 * tui/tui-layout.c (tui_remove_some_windows)
7419 (initialize_known_windows, tui_register_window)
7420 (tui_layout_split::remove_windows, initialize_layouts)
7421 (tui_new_layout_command): Don't use hard-coded window names.
7422
7423 2020-06-16 Tom Tromey <tom@tromey.com>
7424
7425 PR tui/25348:
7426 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7427 tui_initialize_readline. Only run once. Call rl_initialize.
7428 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7429 tui_initialize_readline.
7430 * tui/tui-io.c (tui_setup_io): Call
7431 tui_ensure_readline_initialized.
7432 * tui/tui-interp.c (tui_interp::init): Update.
7433
7434 2020-06-16 Tom Tromey <tom@tromey.com>
7435
7436 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7437 Also preserve the status window.
7438
7439 2020-06-16 Tom Tromey <tom@tromey.com>
7440
7441 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7442 where m_window==nullptr.
7443
7444 2020-06-15 Tom Tromey <tromey@adacore.com>
7445
7446 * windows-nat.c (windows_nat::handle_output_debug_string):
7447 Update.
7448 (windows_nat::handle_ms_vc_exception): Update.
7449 * target.h (target_read_string): Change API.
7450 * target.c (target_read_string): Change API.
7451 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7452 Update.
7453 * solib-frv.c (frv_current_sos): Update.
7454 * solib-dsbt.c (dsbt_current_sos): Update.
7455 * solib-darwin.c (darwin_current_sos): Update.
7456 * linux-thread-db.c (inferior_has_bug): Update.
7457 * expprint.c (print_subexp_standard): Update.
7458 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7459 (ada_exception_message_1): Update.
7460
7461 2020-06-15 Tom Tromey <tromey@adacore.com>
7462
7463 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7464
7465 2020-06-15 Tom Tromey <tromey@adacore.com>
7466
7467 * valprint.c (read_string): Update comment.
7468 * target.c (MIN): Remove.
7469 (target_read_string): Rewrite.
7470
7471 2020-06-15 Tom Tromey <tromey@adacore.com>
7472
7473 * corefile.c (read_memory_string): Remove.
7474 * ada-valprint.c (ada_value_print_ptr): Update.
7475 * ada-lang.h (ada_tag_name): Change return type.
7476 * ada-lang.c (type_from_tag): Update.
7477 (ada_tag_name_from_tsd): Change return type. Use
7478 target_read_string.
7479 (ada_tag_name): Likewise.
7480 * gdbcore.h (read_memory_string): Don't declare.
7481
7482 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7483
7484 * symtab.c (rbreak_command): Ignore Windows drive colon.
7485
7486 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * NEWS: Mention removed GDBserver host support.
7489
7490 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7491
7492 * features/riscv/rebuild-csr-xml.sh: Updated.
7493
7494 2020-06-11 Tom Tromey <tom@tromey.com>
7495
7496 PR gdb/18318:
7497 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7498
7499 2020-06-09 Jonny Grant <jg@jguk.org>
7500 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7501
7502 * main.c (captured_main_1): Don't print new line after help.
7503 (print_gdb_help): add mailing list and IRC channel information
7504 to --help. Add new lines between items in the footer. Remove
7505 quotes around bug url.
7506
7507 2020-06-11 Keith Seitz <keiths@redhat.com>
7508
7509 PR gdb/21356
7510 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7511 Resolve typedefs for type length calculations.
7512
7513 2020-06-10 Tom de Vries <tdevries@suse.de>
7514
7515 PR ada/24713
7516 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7517 (write_psymbols): Enable .gdb_index for ada.
7518 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7519 ada.
7520
7521 2020-06-10 Tom de Vries <tdevries@suse.de>
7522
7523 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7524 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7525 namei" instead of "const char *name" argument.
7526 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7527 dw2_symtab_iter_init.
7528
7529 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7530
7531 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7532 to use type::field and field::type instead.
7533
7534 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7535
7536 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7537 to use field::type instead.
7538
7539 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7540
7541 * gdbtypes.h (struct field) <type, set_type>: New methods.
7542 Rename `type` field to...
7543 <m_type>: ... this. Change references throughout to use type or
7544 set_type methods.
7545 (FIELD_TYPE): Use field::type. Change call sites that modify
7546 the field's type to use field::set_type instead.
7547
7548 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7549
7550 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7551 to use type::index_type instead.
7552
7553 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7556 methods.
7557 (TYPE_INDEX_TYPE): Use type::index_type.
7558 * gdbtypes.c (create_array_type_with_stride): Likewise.
7559
7560 2020-06-07 Tom Tromey <tom@tromey.com>
7561
7562 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7563 parameter.
7564 (generic_value_print): Update.
7565
7566 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7567
7568 Revert commit 982a38f60b0.
7569 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7570
7571 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7572
7573 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7574 avoid use after free.
7575
7576 2020-06-05 Tom de Vries <tdevries@suse.de>
7577
7578 * NEWS: Fix typos.
7579
7580 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7581
7582 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7583 the per_bfd object.
7584 (dwarf2_read_debug_names): Likewise.
7585 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7586 object when re-using a per_bfd object with an index.
7587
7588 2020-06-03 Tom de Vries <tdevries@suse.de>
7589
7590 PR symtab/26046
7591 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7592 children for C++.
7593 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7594 DW_TAG_subprogram.
7595
7596 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7597
7598 * ada-lang.c (ada_language_data): Delete skip_trampoline
7599 initializer.
7600 * c-lang.c (c_language_data): Likewise.
7601 (cplus_language_data): Likewise.
7602 (cplus_language::skip_trampoline): New member function.
7603 (asm_language_data): Delete skip_trampoline initializer.
7604 (minimal_language_data): Likewise.
7605 * d-lang.c (d_language_data): Likewise.
7606 * f-lang.c (f_language_data): Likewise.
7607 * go-lang.c (go_language_data): Likewise.
7608 * language.c (unk_lang_trampoline): Delete function.
7609 (skip_language_trampoline): Update.
7610 (unknown_language_data): Delete skip_trampoline initializer.
7611 (auto_language_data): Likewise.
7612 * language.h (language_data): Delete skip_trampoline field.
7613 (language_defn::skip_trampoline): New function.
7614 * m2-lang.c (m2_language_data): Delete skip_trampoline
7615 initializer.
7616 * objc-lang.c (objc_skip_trampoline): Delete function, move
7617 implementation to objc_language::skip_trampoline.
7618 (objc_language_data): Delete skip_trampoline initializer.
7619 (objc_language::skip_trampoline): New member function with
7620 implementation from objc_skip_trampoline.
7621 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7622 initializer.
7623 * p-lang.c (pascal_language_data): Likewise.
7624 * rust-lang.c (rust_language_data): Likewise.
7625
7626 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7627
7628 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7629 (ada_language::demangle): New member function.
7630 * c-lang.c (c_language_data): Delete la_demangle initializer.
7631 (cplus_language_data): Delete la_demangle initializer.
7632 (cplus_language::demangle): New member function.
7633 (asm_language_data): Delete la_demangle initializer.
7634 (minimal_language_data): Delete la_demangle initializer.
7635 * d-lang.c (d_language_data): Delete la_demangle initializer.
7636 (d_language::demangle): New member function.
7637 * f-lang.c (f_language_data): Delete la_demangle initializer.
7638 (f_language::demangle): New member function.
7639 * go-lang.c (go_language_data): Delete la_demangle initializer.
7640 (go_language::demangle): New member function.
7641 * language.c (language_demangle): Update.
7642 (unk_lang_demangle): Delete.
7643 (unknown_language_data): Delete la_demangle initializer.
7644 (unknown_language::demangle): New member function.
7645 (auto_language_data): Delete la_demangle initializer.
7646 (auto_language::demangle): New member function.
7647 * language.h (language_data): Delete la_demangle field.
7648 (language_defn::demangle): New function.
7649 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7650 * objc-lang.c (objc_language_data): Delete la_demangle
7651 initializer.
7652 (objc_language::demangle): New member function.
7653 * opencl-lang.c (opencl_language_data): Delete la_demangle
7654 initializer.
7655 * p-lang.c (pascal_language_data): Likewise.
7656 * rust-lang.c (rust_language_data): Likewise.
7657 (rust_language::demangle): New member function.
7658
7659 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7660
7661 * ada-lang.c (ada_language_data): Delete la_print_type
7662 initializer.
7663 (ada_language::print_type): New member function.
7664 * c-lang.c (c_language_data): Delete la_print_type initializer.
7665 (c_language::print_type): New member function.
7666 (cplus_language_data): Delete la_print_type initializer.
7667 (cplus_language::print_type): New member function.
7668 (asm_language_data): Delete la_print_type initializer.
7669 (asm_language::print_type): New member function.
7670 (minimal_language_data): Delete la_print_type initializer.
7671 (minimal_language::print_type): New member function.
7672 * d-lang.c (d_language_data): Delete la_print_type initializer.
7673 (d_language::print_type): New member function.
7674 * f-lang.c (f_language_data): Delete la_print_type initializer.
7675 (f_language::print_type): New member function.
7676 * go-lang.c (go_language_data): Delete la_print_type initializer.
7677 (go_language::print_type): New member function.
7678 * language.c (unk_lang_print_type): Delete.
7679 (unknown_language_data): Delete la_print_type initializer.
7680 (unknown_language::print_type): New member function.
7681 (auto_language_data): Delete la_print_type initializer.
7682 (auto_language::print_type): New member function.
7683 * language.h (language_data): Delete la_print_type field.
7684 (language_defn::print_type): New function.
7685 (LA_PRINT_TYPE): Update.
7686 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7687 (m2_language::print_type): New member function.
7688 * objc-lang.c (objc_language_data): Delete la_print_type
7689 initializer.
7690 (objc_language::print_type): New member function.
7691 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7692 to opencl_language::print_type.
7693 (opencl_language_data): Delete la_print_type initializer.
7694 (opencl_language::print_type): New member function, implementation
7695 from opencl_print_type.
7696 * p-lang.c (pascal_language_data): Delete la_print_type
7697 initializer.
7698 (pascal_language::print_type): New member function.
7699 * rust-lang.c (rust_print_type): Delete, implementation moved to
7700 rust_language::print_type.
7701 (rust_language_data): Delete la_print_type initializer.
7702 (rust_language::print_type): New member function, implementation
7703 from rust_print_type.
7704
7705 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7706
7707 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7708 implementation moves to...
7709 (ada_language::sniff_from_mangled_name): ...here. Update return
7710 type.
7711 (ada_language_data): Delete la_sniff_from_mangled_name
7712 initializer.
7713 * c-lang.c (c_language_data): Likewise.
7714 (cplus_language_data): Likewise.
7715 (cplus_language::sniff_from_mangled_name): New member function,
7716 implementation taken from gdb_sniff_from_mangled_name.
7717 (asm_language_data): Delete la_sniff_from_mangled_name
7718 initializer.
7719 (minimal_language_data): Likewise.
7720 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7721 implementation moves to cplus_language::sniff_from_mangled_name.
7722 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7723 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7724 moves to...
7725 (d_language::sniff_from_mangled_name): ...here.
7726 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7727 * f-lang.c (f_language_data): Likewise.
7728 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7729 moves to...
7730 (go_language::sniff_from_mangled_name): ...here.
7731 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7732 * language.c (language_sniff_from_mangled_name): Delete.
7733 (unknown_language_data): Delete la_sniff_from_mangled_name
7734 initializer.
7735 (auto_language_data): Likewise.
7736 * language.h (language_data): Delete la_sniff_from_mangled_name
7737 field.
7738 (language_defn::sniff_from_mangled_name): New function.
7739 (language_sniff_from_mangled_name): Delete declaration.
7740 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7741 field.
7742 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7743 implementation moves to...
7744 (objc_language::sniff_from_mangled_name): ...here.
7745 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7746 * opencl-lang.c (opencl_language_data): Likewise.
7747 * p-lang.c (pascal_language_data): Likewise.
7748 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7749 implementation moves to...
7750 (rust_language::sniff_from_mangled_name): ...here.
7751 (rust_language_data): Delete la_sniff_from_mangled_name
7752 initializer.
7753 * symtab.c (symbol_find_demangled_name): Call
7754 sniff_from_mangled_name member function.
7755
7756 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7757
7758 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7759 initializer.
7760 * c-lang.c (c_language_data): Likewise.
7761 (cplus_language_data): Likewise.
7762 (cplus_language::search_name_hash): New member function.
7763 (asm_language_data): Delete la_search_name_hash initializer.
7764 (minimal_language_data): Likewise.
7765 * d-lang.c (d_language_data): Likewise.
7766 * dictionary.c (default_search_name_hash): Rename to...
7767 (language_defn::search_name_hash): ...this.
7768 * f-lang.c (f_language_data): Likewise.
7769 (f_language::search_name_hash): New member function.
7770 * go-lang.c (go_language_data): Delete la_search_name_hash
7771 initializer.
7772 * language.c (unknown_language_data): Likewise.
7773 (auto_language_data): Likewise.
7774 * language.h (struct language_data): Delete la_search_name_hash
7775 field.
7776 (language_defn::search_name_hash): Declare new member function.
7777 (default_search_name_hash): Delete declaration.
7778 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7779 initializer.
7780 * objc-lang.c (objc_language_data): Likewise.
7781 * opencl-lang.c (opencl_language_data): Likewise.
7782 * p-lang.c (pascal_language_data): Likewise.
7783 * rust-lang.c (rust_language_data): Likewise.
7784 * symtab.c (search_name_hash): Update call.
7785
7786 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7787
7788 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7789 initializer.
7790 * c-lang.c (class compile_instance): Declare.
7791 (c_language_data): Delete la_get_compile_instance initializer.
7792 (c_language::get_compile_instance): New member function.
7793 (cplus_language_data): Delete la_get_compile_instance initializer.
7794 (cplus_language::get_compile_instance): New member function.
7795 (asm_language_data): Delete la_get_compile_instance initializer.
7796 (minimal_language_data): Likewise.
7797 * c-lang.h (c_get_compile_context): Update comment.
7798 (cplus_get_compile_context): Update comment.
7799 * compile/compile.c (compile_to_object): Update calls, don't rely
7800 on function pointer being NULL.
7801 * d-lang.c (d_language_data): Delete la_get_compile_instance
7802 initializer.
7803 * f-lang.c (f_language_data): Likewise.
7804 * go-lang.c (go_language_data): Likewise.
7805 * language.c (unknown_language_data): Likewise.
7806 (auto_language_data): Likewise.
7807 * language.h (language_data): Delete la_get_compile_instance field.
7808 (language_defn::get_compile_instance): New member function.
7809 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7810 initializer.
7811 * objc-lang.c (objc_language_data): Likewise.
7812 * opencl-lang.c (opencl_language_data): Likewise.
7813 * p-lang.c (pascal_language_data): Likewise.
7814 * rust-lang.c (rust_language_data): Likewise.
7815
7816 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7817
7818 * ada-lang.c (ada_add_all_symbols): Update comment.
7819 (ada_iterate_over_symbols): Delete, move implementation to...
7820 (ada_language::iterate_over_symbols): ...here, a new member
7821 function, rewrite to use range based for loop.
7822 (ada_language_data): Delete la_iterate_over_symbols initializer.
7823 * c-lang.c (c_language_data): Likewise.
7824 (cplus_language_data): Likewise.
7825 (asm_language_data): Likewise.
7826 (minimal_language_data): Likewise.
7827 * d-lang.c (d_language_data): Likewise.
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_iterate_over_symbols field.
7833 (language_defn::iterate_over_symbols): New member function.
7834 (LA_ITERATE_OVER_SYMBOLS): Update.
7835 * linespec.c (iterate_over_all_matching_symtabs): Update.
7836 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7837 initializer.
7838 * objc-lang.c (objc_language_data): Likewise.
7839 * opencl-lang.c (opencl_language_data): Likewise.
7840 * p-lang.c (pascal_language_data): Likewise.
7841 * rust-lang.c (rust_language_data): Likewise.
7842
7843 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7844
7845 * ada-lang.c (ada_language_data): Delete
7846 la_lookup_transparent_type initializer.
7847 * c-lang.c (c_language_data): Likewise.
7848 (cplus_language_data): Likewise.
7849 (cplus_language::lookup_transparent_type): New member function.
7850 (asm_language_data): Delete la_lookup_transparent_type
7851 initializer.
7852 (minimal_language_data): Likewise.
7853 * d-lang.c (d_language_data): Likewise.
7854 * f-lang.c (f_language_data): Likewise.
7855 * go-lang.c (go_language_data): Likewise.
7856 * language.c (unknown_language_data): Likewise.
7857 (auto_language_data): Likewise.
7858 * language.h (struct language_data): Delete
7859 la_lookup_transparent_type field.
7860 (language_defn::lookup_transparent_type): New member function.
7861 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
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 * symtab.c (symbol_matches_domain): Update call.
7868
7869 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7870
7871 * ada-lang.c (ada_language_arch_info): Delete function, move
7872 implementation to...
7873 (ada_language::language_arch_info): ...here, a new member
7874 function.
7875 (ada_language_data): Delete la_language_arch_info.
7876 * c-lang.c (c_language_data): Likewise.
7877 (c_language::language_arch_info): New member function.
7878 (cplus_language_arch_info): Delete function, move
7879 implementation to...
7880 (cplus_language::language_arch_info): ...here, a new member
7881 function.
7882 (cplus_language_data): Delete la_language_arch_info.
7883 (asm_language_data): Likewise.
7884 (asm_language::language_arch_info): New member function.
7885 (minimal_language_data): Delete la_language_arch_info.
7886 (minimal_language::language_arch_info): New member function.
7887 * d-lang.c (d_language_arch_info): Delete function, move
7888 implementation to...
7889 (d_language::language_arch_info): ...here, a new member
7890 function.
7891 (d_language_data): Delete la_language_arch_info.
7892 * f-lang.c (f_language_arch_info): Delete function, move
7893 implementation to...
7894 (f_language::language_arch_info): ...here, a new member
7895 function.
7896 (f_language_data): Delete la_language_arch_info.
7897 * go-lang.c (go_language_arch_info): Delete function, move
7898 implementation to...
7899 (go_language::language_arch_info): ...here, a new member
7900 function.
7901 (go_language_data): Delete la_language_arch_info.
7902 * language.c (unknown_language_data): Likewise.
7903 (unknown_language::language_arch_info): New member function.
7904 (auto_language_data): Delete la_language_arch_info.
7905 (auto_language::language_arch_info): New member function.
7906 (language_gdbarch_post_init): Update call to
7907 la_language_arch_info.
7908 * language.h (language_data): Delete la_language_arch_info
7909 function pointer.
7910 (language_defn::language_arch_info): New function.
7911 * m2-lang.c (m2_language_arch_info): Delete function, move
7912 implementation to...
7913 (m2_language::language_arch_info): ...here, a new member
7914 function.
7915 (m2_language_data): Delete la_language_arch_info.
7916 * objc-lang.c (objc_language_arch_info): Delete function, move
7917 implementation to...
7918 (objc_language::language_arch_info): ...here, a new member
7919 function.
7920 (objc_language_data): Delete la_language_arch_info.
7921 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7922 implementation to...
7923 (opencl_language::language_arch_info): ...here, a new member
7924 function.
7925 (opencl_language_data): Delete la_language_arch_info.
7926 * p-lang.c (pascal_language_arch_info): Delete function, move
7927 implementation to...
7928 (pascal_language::language_arch_info): ...here, a new member
7929 function.
7930 (pascal_language_data): Delete la_language_arch_info.
7931 * rust-lang.c (rust_language_arch_info): Delete function, move
7932 implementation to...
7933 (rust_language::language_arch_info): ...here, a new member
7934 function.
7935 (rust_language_data): Delete la_language_arch_info.
7936
7937 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7938
7939 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7940 initializer.
7941 * c-lang.c (c_language_data): Likewise.
7942 (cplus_language_data): Likewise.
7943 (cplus_language::pass_by_reference_info): New method.
7944 (asm_language_data): Delete la_pass_by_reference initializer.
7945 (minimal_language_data): Likewise.
7946 * cp-abi.c (cp_pass_by_reference): Remove use of
7947 default_pass_by_reference.
7948 * d-lang.c (d_language_data): Likewise.
7949 * f-lang.c (f_language_data): Likewise.
7950 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7951 default_pass_by_reference.
7952 * go-lang.c (go_language_data): Likewise.
7953 * language.c (language_pass_by_reference): Update.
7954 (default_pass_by_reference): Delete.
7955 (unknown_language_data): Delete la_pass_by_reference
7956 initializer.
7957 (auto_language_data): Likewise.
7958 * language.h (struct language_data): Delete la_pass_by_reference
7959 field.
7960 (language_defn::pass_by_reference_info): New member function.
7961 (default_pass_by_reference): Delete declaration.
7962 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7963 initializer.
7964 * objc-lang.c (objc_language_data): Likewise.
7965 * opencl-lang.c (opencl_language_data): Likewise.
7966 * p-lang.c (pascal_language_data): Likewise.
7967 * rust-lang.c (rust_language_data): Likewise.
7968
7969 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7970
7971 * ada-lang.c (ada_read_var_value): Delete function, move
7972 implementation to...
7973 (ada_language::read_var_value): ...here.
7974 (ada_language_data): Delete la_read_var_value initializer.
7975 * c-lang.c (c_language_data): Likewise.
7976 (cplus_language_data): Likewise.
7977 (minimal_language_data): Likewise.
7978 * d-lang.c (d_language_data): Likewise.
7979 * f-lang.c (f_language_data): Likewise.
7980 * findvar.c (default_read_var_value): Rename to...
7981 (language_defn::read_var_value): ...this.
7982 * findvar.c (read_var_value): Update header comment, and change to
7983 call member function instead of function pointer.
7984 * go-lang.c (go_language_data): Likewise.
7985 * language.c (unknown_language_data): Delete la_read_var_value
7986 initializer.
7987 (auto_language_data): Likewise.
7988 * language.h (struct language_data): Delete la_read_var_value
7989 field.
7990 (language_defn::read_var_value): New member function.
7991 (default_read_var_value): Delete declaration.
7992 * m2-lang.c (m2_language_data): Delete la_read_var_value
7993 initializer.
7994 * objc-lang.c (objc_language_data): Likewise.
7995 * opencl-lang.c (opencl_language_data): Likewise.
7996 * p-lang.c (pascal_language_data): Likewise.
7997 * rust-lang.c (rust_language_data): Likewise.
7998 * value.h (default_read_var_value): Delete declaration.
7999
8000 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8001
8002 * ada-lang.c (ada_print_array_index): Delete function, move
8003 implementation to...
8004 (ada_language::print_array_index): ...here.
8005 (ada_language_data): Delete la_print_array_index initializer.
8006 * c-lang.c (c_language_data): Likewise.
8007 (cplus_language_data): Likewise.
8008 (minimal_language_data): Likewise.
8009 * d-lang.c (d_language_data): Likewise.
8010 * f-lang.c (f_language_data): Likewise.
8011 * go-lang.c (go_language_data): Likewise.
8012 * language.c (default_print_array_index): Delete function, move
8013 implementation to...
8014 (language_defn::print_array_index): ...here.
8015 (unknown_language_data): Delete la_print_array_index initializer.
8016 (auto_language_data): Likewise.
8017 * language.h (struct language_data): Delete la_print_array_index
8018 field.
8019 (language_defn::print_array_index): New member function.
8020 (LA_PRINT_ARRAY_INDEX): Update.
8021 (default_print_array_index): Delete declaration.
8022 * m2-lang.c (m2_language_data): Delete la_print_array_index
8023 initializer.
8024 * objc-lang.c (objc_language_data): Likewise.
8025 * opencl-lang.c (opencl_language_data): Likewise.
8026 * p-lang.c (pascal_language_data): Likewise.
8027 * rust-lang.c (rust_language_data): Likewise.
8028
8029 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8030
8031 * gdb/ada-lang.c (ada_language_defn): Convert to...
8032 (ada_language_data): ...this.
8033 (class ada_language): New class.
8034 (ada_language_defn): New static global.
8035 * gdb/c-lang.c (c_language_defn): Convert to...
8036 (c_language_data): ...this.
8037 (class c_language): New class.
8038 (c_language_defn): New static global.
8039 (cplus_language_defn): Convert to...
8040 (cplus_language_data): ...this.
8041 (class cplus_language): New class.
8042 (cplus_language_defn): New static global.
8043 (asm_language_defn): Convert to...
8044 (asm_language_data): ...this.
8045 (class asm_language): New class.
8046 (asm_language_defn): New static global.
8047 (minimal_language_defn): Convert to...
8048 (minimal_language_data): ...this.
8049 (class minimal_language): New class.
8050 (minimal_language_defn): New static global.
8051 * gdb/d-lang.c (d_language_defn): Convert to...
8052 (d_language_data): ...this.
8053 (class d_language): New class.
8054 (d_language_defn): New static global.
8055 * gdb/f-lang.c (f_language_defn): Convert to...
8056 (f_language_data): ...this.
8057 (class f_language): New class.
8058 (f_language_defn): New static global.
8059 * gdb/go-lang.c (go_language_defn): Convert to...
8060 (go_language_data): ...this.
8061 (class go_language): New class.
8062 (go_language_defn): New static global.
8063 * gdb/language.c (unknown_language_defn): Remove declaration.
8064 (current_language): Initialize to nullptr, real initialization is
8065 moved to _initialize_language.
8066 (languages): Delete global.
8067 (language_defn::languages): Define.
8068 (set_language_command): Use language_defn::languages.
8069 (set_language): Likewise.
8070 (range_error): Likewise.
8071 (language_enum): Likewise.
8072 (language_def): Likewise.
8073 (add_set_language_command): Use language_def::languages for the
8074 language list, and language_def to lookup language pointers.
8075 (skip_language_trampoline): Use language_defn::languages.
8076 (unknown_language_defn): Convert to...
8077 (unknown_language_data): ...this.
8078 (class unknown_language): New class.
8079 (unknown_language_defn): New static global.
8080 (auto_language_defn): Convert to...
8081 (auto_language_data): ...this.
8082 (class auto_language): New class.
8083 (auto_language_defn): New static global.
8084 (language_gdbarch_post_init): Use language_defn::languages.
8085 (_initialize_language): Initialize current_language.
8086 * gdb/language.h (struct language_defn): Rename to...
8087 (struct language_data): ...this.
8088 (struct language_defn): New.
8089 (auto_language_defn): Delete.
8090 (unknown_language_defn): Delete.
8091 (minimal_language_defn): Delete.
8092 (ada_language_defn): Delete.
8093 (asm_language_defn): Delete.
8094 (c_language_defn): Delete.
8095 (cplus_language_defn): Delete.
8096 (d_language_defn): Delete.
8097 (f_language_defn): Delete.
8098 (go_language_defn): Delete.
8099 (m2_language_defn): Delete.
8100 (objc_language_defn): Delete.
8101 (opencl_language_defn): Delete.
8102 (pascal_language_defn): Delete.
8103 (rust_language_defn): Delete.
8104 * gdb/m2-lang.c (m2_language_defn): Convert to...
8105 (m2_language_data): ...this.
8106 (class m2_language): New class.
8107 (m2_language_defn): New static global.
8108 * gdb/objc-lang.c (objc_language_defn): Convert to...
8109 (objc_language_data): ...this.
8110 (class objc_language): New class.
8111 (objc_language_defn): New static global.
8112 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8113 (opencl_language_data): ...this.
8114 (class opencl_language): New class.
8115 (opencl_language_defn): New static global.
8116 * gdb/p-lang.c (pascal_language_defn): Convert to...
8117 (pascal_language_data): ...this.
8118 (class pascal_language): New class.
8119 (pascal_language_defn): New static global.
8120 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8121 language pointer, update comment format.
8122 * gdb/rust-lang.c (rust_language_defn): Convert to...
8123 (rust_language_data): ...this.
8124 (class rust_language): New class.
8125 (rust_language_defn): New static global.
8126
8127 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8128
8129 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8130 member variable.
8131 <m_stmt_at_address>: New member variable.
8132 (lnp_state_machine::record_line): Don't record some lines, update
8133 tracking of is_stmt at the same address.
8134 (lnp_state_machine::lnp_state_machine): Initialise new member
8135 variables.
8136
8137 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8138
8139 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8140 "-include gnu-nat-mig.h".
8141 * gnu-nat-mig.h: New file.
8142 * gnu-nat.c: Include "gnu-nat-mig.h".
8143 (exc_server, msg_reply_server, notify_server,
8144 process_reply_server): Remove declarations.
8145
8146 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8147
8148 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8149 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8150 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8151 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8152 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8153 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8154 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8155 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8156 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8157 to gnu_nat_target class.
8158 * gnu-nat.c: Likewise.
8159 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8160 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8161 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8162 object.
8163 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8164 instead of `gnu_target'.
8165
8166 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8167
8168 * i386-gnu-tdep.c: Include "gdbcore.h"
8169 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8170 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8171 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8172 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8173 i386_gnu_sigcontext_addr): New functions
8174 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8175 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8176 tdep.
8177
8178 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8179
8180 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8181 before fork_inferior call. Avoid calling it if target_is_pushed returns
8182 true.
8183
8184 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8185
8186 * gnu-nat.h (gnu_target): New variable declaration.
8187 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8188 gnu_target.
8189 * gnu-nat.c (gnu_target): New variable.
8190 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8191 add_thread_silent, and add_thread calls.
8192 (gnu_nat_target::create_inferior): Pass gnu_target to
8193 add_thread_silent, thread_change_ptid call.
8194 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8195 call.
8196
8197 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8198
8199 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8200 (gnu_nat_target::find_memory_regions): Remove unused
8201 `old_address' variable.
8202
8203 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8204
8205 * gnu-nat.c: Include "gdbarch.h".
8206
8207 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8208
8209 * reply_mig_hack.awk (Error return): Cast function through
8210 void *, to bypass compiler function call check.
8211
8212 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8213
8214 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8215 $(srcdir)/reply_mig_hack.awk.
8216
8217 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8218
8219 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8220
8221 2020-05-30 Jonny Grant <jg@jguk.org>
8222
8223 * configure.ac (ACX_BUGURL): change bug URL to https.
8224
8225 2020-05-30 Pedro Alves <palves@redhat.com>
8226
8227 * cp-support.c (replace_typedefs_template): New.
8228 (replace_typedefs_qualified_name): Handle
8229 DEMANGLE_COMPONENT_TEMPLATE.
8230
8231 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8232
8233 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8234 dwarf2/index-cache.h, dwarf2/index-write.c,
8235 dwarf2/index-write.h, dwarf2/line-header.c,
8236 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8237 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8238 variables and fields from `dwarf2_per_objfile` to just
8239 `per_objfile` throughout.
8240
8241 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8242
8243 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8244 <push_dwarf_reg_entry_value>: Add comment.
8245
8246 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8247 Keith Seitz <keiths@redhat.com>
8248
8249 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8250 instead of PyEval_ReleaseLock.
8251 (class gdbpy_gil): Move to earlier in file.
8252 (finalize_python): Set gdb_python_initialized.
8253 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8254 when not initialized.
8255
8256 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8257
8258 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8259 <push_dwarf_reg_entry_value>: Remove assert. Override
8260 per_objfile with caller_per_objfile.
8261
8262 2020-05-28 Tom de Vries <tdevries@suse.de>
8263
8264 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8265 PR gold/15646 workaround to symbol kind "type".
8266
8267 2020-05-27 Tom Tromey <tromey@adacore.com>
8268
8269 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8270
8271 2020-05-27 Tom Tromey <tromey@adacore.com>
8272
8273 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8274 Use htab_find_with_hash.
8275 <add_abbrev>: Remove "abbrev_number" parameter.
8276 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8277 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8278 (hash_abbrev): Add comment.
8279 (abbrev_table::lookup_abbrev): Move to header file.
8280 (abbrev_table::read): Update.
8281
8282 2020-05-27 Tom Tromey <tromey@adacore.com>
8283
8284 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8285 method.
8286 <canonical_name>: New member.
8287 <raw_name>: Rename from "name".
8288 (partial_die_info): Initialize canonical_name.
8289 (scan_partial_symbols): Check raw_name.
8290 (partial_die_parent_scope, partial_die_full_name)
8291 (add_partial_symbol, add_partial_subprogram)
8292 (add_partial_enumeration, load_partial_dies): Use "name" method.
8293 (partial_die_info::name): New method.
8294 (partial_die_info::read, guess_partial_die_structure_name)
8295 (partial_die_info::fixup): Update.
8296
8297 2020-05-27 Tom Tromey <tromey@adacore.com>
8298
8299 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8300 <get_ref_die_offset>: Inline.
8301 <get_ref_die_offset_complaint>: New method.
8302 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8303 (attribute::get_ref_die_offset_complaint): Rename from
8304 get_ref_die_offset. Just issue complaint.
8305
8306 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8307
8308 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8309
8310 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8311
8312 * exec.c (exec_file_attach): Use errno value of first openp failure.
8313
8314 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8315
8316 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8317 Don't close thread handle.
8318
8319 2020-05-27 Tom Tromey <tom@tromey.com>
8320 Simon Marchi <simon.marchi@efficios.com>
8321
8322 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8323 shared_ptr.
8324 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8325 member.
8326 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8327 dwarf2_per_bfd_objfile_data_key>: New globals.
8328 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8329 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8330 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8331 shared.
8332 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8333 short-circuit when sharing.
8334 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8335 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8336
8337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8338
8339 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8340 to...
8341 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8342 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8343
8344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8345
8346 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8347 build_name_components, find_name_components_bounds>:
8348 Add per_objfile parameter.
8349 (struct mapped_index) <symbol_name_at>: Likewise.
8350 (struct mapped_debug_names): Remove constructor.
8351 <dwarf2_per_objfile>: Remove field.
8352 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8353 (mapped_index_base::find_name_components_bounds,
8354 mapped_index_base::build_name_components,
8355 dw2_expand_symtabs_matching_symbol): Likewise.
8356 (class mock_mapped_index) <symbol_name_at>: Likewise.
8357 (check_match): Likewise.
8358 (check_find_bounds_finds): Likewise.
8359 (test_mapped_index_find_name_component_bounds): Update.
8360 (CHECK_MATCH): Update.
8361 (dw2_expand_symtabs_matching): Update.
8362 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8363 per_objfile parameter.
8364 <find_vec_in_debug_names>: Likewise.
8365 <m_per_objfile>: New field.
8366 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8367 parameter.
8368 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8369 (dw2_debug_names_iterator::next): Update.
8370 (dw2_debug_names_lookup_symbol): Update.
8371 (dw2_debug_names_expand_symtabs_for_function): Update.
8372 (dw2_debug_names_map_matching_symbols): Update.
8373 (dw2_debug_names_expand_symtabs_matching): Update.
8374 (dwarf2_read_debug_names): Update.
8375
8376 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8377
8378 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8379 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8380 move to dwarf2_per_objfile.
8381 <read_in_chain>: Remove.
8382 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8383 remove_all_cus, age_comp_units>: New methods.
8384 <m_dwarf2_cus>: New member.
8385 (struct dwarf2_per_cu_data) <cu>: Remove.
8386 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8387 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8388 moved to methods of dwarf2_per_objfile.
8389 (dwarf2_clear_marks): Remove.
8390 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8391 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8392 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8393 (dwarf2_per_objfile::remove_all_cus): New.
8394 (class free_cached_comp_units) <~free_cached_comp_units>:
8395 Update.
8396 (load_cu): Update.
8397 (dw2_do_instantiate_symtab): Adjust.
8398 (fill_in_sig_entry_from_dwo_entry): Adjust.
8399 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8400 (cutu_reader::cutu_reader): Likewise.
8401 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8402 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8403 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8404 and dwarf2_per_objfile::age_comp_units.
8405 (load_partial_comp_unit): Update.
8406 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8407 (process_queue): Likewise.
8408 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8409 backlink.
8410 (dwarf2_read_addr_index): Likewise.
8411 (follow_die_offset): Likewise.
8412 (dwarf2_fetch_die_loc_sect_off): Likewise.
8413 (dwarf2_fetch_constant_bytes): Likewise.
8414 (dwarf2_fetch_die_type_sect_off): Likewise.
8415 (follow_die_sig_1): Likewise.
8416 (load_full_type_unit): Likewise.
8417 (read_signatured_type): Likewise.
8418 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8419 (dwarf2_cu::~dwarf2_cu): Remove.
8420 (dwarf2_per_objfile::get_cu): New.
8421 (dwarf2_per_objfile::set_cu): New.
8422 (age_cached_comp_units): Rename to...
8423 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8424 to std::unordered_map.
8425 (free_one_cached_comp_unit): Rename to...
8426 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8427 to std::unordered_map.
8428 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8429 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8430 a dwarf2_per_objfile in data.
8431 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8432 (dwarf2_clear_marks): Remove.
8433
8434 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8435
8436 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8437 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8438 (init_tu_and_read_dwo_dies): Likewise.
8439 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8440 (cutu_reader::cutu_reader): Likewise.
8441 (load_partial_comp_unit): Likewise.
8442 (process_psymtab_comp_unit): Update.
8443 (build_type_psymtabs_1): Update.
8444 (process_skeletonless_type_unit): Update.
8445 (load_full_comp_unit): Update.
8446 (find_partial_die): Update.
8447 (dwarf2_read_addr_index): Update.
8448 (read_signatured_type): Update.
8449
8450 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8451
8452 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8453 m_header_read_in>: New fields.
8454 <get_header>: New method.
8455 * dwarf2/read.c (per_cu_header_read_in): Remove.
8456 (dwarf2_per_cu_data::get_header): New.
8457 (dwarf2_per_cu_data::addr_size): Update.
8458 (dwarf2_per_cu_data::offset_size): Update.
8459 (dwarf2_per_cu_data::ref_addr_size): Update.
8460
8461 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8462
8463 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8464 (dw2_do_instantiate_symtab): Update.
8465 (queue_and_load_all_dwo_tus): Change parameter from
8466 dwarf2_per_cu_data to dwarf2_cu.
8467 (dwarf2_fetch_die_loc_sect_off): Update.
8468 (dwarf2_fetch_constant_bytes): Update.
8469 (dwarf2_fetch_die_type_sect_off): Update.
8470
8471 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8472
8473 * dwarf2/read.c (process_full_comp_unit,
8474 process_full_type_unit): Remove per_cu, per_objfile paramters.
8475 Add dwarf2_cu parameter.
8476 (process_queue): Update.
8477
8478 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8479
8480 * dwarf2/read.c (create_cu_from_index_list): Replace
8481 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8482 (create_cus_from_index_list): Likewise.
8483 (create_cus_from_index): Likewise.
8484 (create_signatured_type_table_from_index): Likewise.
8485 (create_cus_from_debug_names_list): Likewise.
8486 (create_cus_from_debug_names): Likewise.
8487 (dwarf2_read_gdb_index): Update.
8488 (dwarf2_read_debug_names): Update.
8489
8490 2020-05-27 Tom Tromey <tom@tromey.com>
8491 Simon Marchi <simon.marchi@efficios.com>
8492
8493 * dwarf2/read.h (struct dwarf2_per_objfile)
8494 <get_type_for_signatured_type, set_type_for_signatured_type>:
8495 New methods.
8496 <m_type_map>: New member.
8497 (struct signatured_type) <type>: Remove.
8498 * dwarf2/read.c
8499 (dwarf2_per_objfile::get_type_for_signatured_type,
8500 dwarf2_per_objfile::set_type_for_signatured_type): New.
8501 (get_signatured_type): Use new methods.
8502
8503 2020-05-27 Tom Tromey <tom@tromey.com>
8504 Simon Marchi <simon.marchi@efficios.com>
8505
8506 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8507 (struct dwarf2_per_objfile) <type_units>: New member.
8508 <get_type_unit_group_unshareable>: New method.
8509 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8510 num_symtabs, symtabs>: Remove; move to
8511 type_unit_group_unshareable.
8512 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8513 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8514 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8515
8516 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8517
8518 * dwarf2/read.h (struct dwarf2_per_cu_data):
8519 <dwarf2_per_objfile>: Remove.
8520 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8521 dwarf2_per_objfile.
8522 (create_signatured_type_table_from_index): Likewise.
8523 (create_signatured_type_table_from_debug_names): Likewise.
8524 (create_debug_type_hash_table): Likewise.
8525 (fill_in_sig_entry_from_dwo_entry): Likewise.
8526 (create_type_unit_group): Likewise.
8527 (read_comp_units_from_section): Likewise.
8528 (create_cus_hash_table): Likewise.
8529
8530 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8531
8532 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8533 dwarf2_per_cu_data::dwarf2_per_objfile.
8534 (compute_compunit_symtab_includes): Likewise.
8535 (dwarf2_cu::start_symtab): Likewise.
8536
8537 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8538
8539 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8540 parameter.
8541 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8542 (read_namespace_alias): Update.
8543 (lookup_die_type): Update.
8544 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8545 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8546 Update.
8547 (disassemble_dwarf_expression): Update.
8548
8549 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8550
8551 * dwarf2/read.h (struct dwarf2_queue_item): Add
8552 dwarf2_per_objfile parameter, assign new parameter.
8553 <per_objfile>: New field.
8554 * dwarf2/read.c (free_one_cached_comp_unit): Add
8555 dwarf2_per_objfile parameter.
8556 (queue_comp_unit): Likewise.
8557 (dw2_do_instantiate_symtab): Update.
8558 (process_psymtab_comp_unit): Update.
8559 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8560 (process_imported_unit_die): Update.
8561 (queue_and_load_dwo_tu): Update.
8562 (follow_die_offset): Update.
8563 (follow_die_sig_1): Update.
8564
8565 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8566
8567 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8568 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8569 (read_call_site_scope): Assign per_objfile.
8570 (dwarf2_per_cu_data::objfile): Remove.
8571 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8572 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8573 dwarf2_per_objfile parameter.
8574 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8575 dwarf2_per_objfile parameter.
8576 (dwarf_expr_reg_to_entry_parameter): Add output
8577 dwarf2_per_objfile parameter.
8578 (locexpr_get_frame_base): Update.
8579 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8580 <push_dwarf_reg_entry_value>: Update.
8581 <call_site_to_target_addr>: Update.
8582 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8583 parameter.
8584 (value_of_dwarf_reg_entry): Update.
8585 (rw_pieced_value): Update.
8586 (indirect_synthetic_pointer): Update.
8587 (dwarf2_evaluate_property): Update.
8588 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8589 parameter.
8590 (locexpr_read_variable): Update.
8591 (locexpr_get_symbol_read_needs): Update.
8592 (loclist_read_variable): Update.
8593
8594 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8595
8596 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8597 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8598 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8599 parameter.
8600 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8601 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8602 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8603 parameter.
8604 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8605 sect_variable_value): Add dwarf2_per_objfile parameter.
8606 (class dwarf_evaluate_loc_desc) <dwarf_call,
8607 dwarf_variable_value>: Update.
8608 (fetch_const_value_from_synthetic_pointer): Add
8609 dwarf2_per_objfile parameter.
8610 (fetch_const_value_from_synthetic_pointer): Update.
8611 (coerced_pieced_ref): Update.
8612 (class symbol_needs_eval_context) <dwarf_call,
8613 dwarf_variable_value>: Update.
8614 (dwarf2_compile_expr_to_ax): Update.
8615
8616 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8617
8618 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8619 parameter.
8620 (dwarf2_evaluate_loc_desc_full): Update.
8621
8622 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8623
8624 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8625 parameter.
8626 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8627 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8628 dwarf2_per_objfile parameter.
8629 (decode_debug_loc_dwo_addresses): Likewise.
8630 (dwarf2_find_location_expression): Update.
8631 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8632 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8633 parameter.
8634 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8635 parameter.
8636 (locexpr_describe_location_1): Likewise.
8637 (locexpr_describe_location): Update.
8638
8639 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8640
8641 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8642 Remove.
8643 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8644 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8645 (dwarf2_compile_property_to_c): Update.
8646 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8647 use text offset from objfile.
8648 (locexpr_tracepoint_var_ref): Update.
8649 (locexpr_generate_c_location): Update.
8650 (loclist_describe_location): Update.
8651 (loclist_tracepoint_var_ref): Update.
8652 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8653 dwarf2_per_objfile parameter.
8654 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8655 use text offset from objfile.
8656 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8657
8658 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8659
8660 * dwarf2/expr.h (struct dwarf_expr_context)
8661 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8662 <offset>: Remove.
8663 <per_objfile>: New member.
8664 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8665 dwarf2_per_objfile parameter. Don't set offset, set
8666 per_objfile.
8667 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8668 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8669 a dwarf2_per_objfile object instead of an offset.
8670 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8671 constructor.
8672 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8673 to dwarf2_expr_executor constructor. Don't set offset.
8674 (dwarf2_fetch_cfa_info): Update.
8675 (struct dwarf2_frame_cache) <text_offset>: Remove.
8676 <per_objfile>: New field.
8677 (dwarf2_frame_cache): Update.
8678 (dwarf2_frame_prev_register): Update.
8679 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8680 <dwarf_evaluate_loc_desc>: Add constructor.
8681 (dwarf2_evaluate_loc_desc_full): Update.
8682 (dwarf2_locexpr_baton_eval): Update.
8683 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8684 Add constructor.
8685 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8686
8687 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8688
8689 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8690 addr_sized_int_type>: Move to dwarf2_cu.
8691 <int_type>: Move to dwarf2_per_objfile.
8692 (struct dwarf2_per_objfile) <int_type>: Move here.
8693 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8694 addr_sized_int_type>: Move here.
8695 (read_func_scope): Update.
8696 (read_array_type): Update.
8697 (read_tag_string_type): Update.
8698 (attr_to_dynamic_prop): Update.
8699 (dwarf2_per_cu_data::int_type): Rename to...
8700 (dwarf2_per_objfile::int_type): ... this.
8701 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8702 (dwarf2_cu::addr_sized_int_type): ... this.
8703 (read_subrange_type): Update.
8704 (dwarf2_per_cu_data::addr_type): Rename to...
8705 (dwarf2_cu::addr_type): ... this.
8706 (set_die_type): Update.
8707
8708 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8709
8710 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8711 data through per_cu->cu.
8712
8713 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8714
8715 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8716 dwarf2_per_cu_data parameter fo dwarf2_cu.
8717 (lookup_dwo_type_unit): Likewise.
8718 (read_cutu_die_from_dwo): Likewise.
8719 (lookup_dwo_unit): Likewise.
8720 (open_and_init_dwo_file): Likewise.
8721 (lookup_dwo_cutu): Likewise.
8722 (lookup_dwo_comp_unit): Likewise.
8723 (lookup_dwo_type_unit): Likewise.
8724 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8725 (cutu_reader::cutu_reader): Update.
8726
8727 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8730 parameter.
8731 (process_full_type_unit): Likewise.
8732 (process_queue): Update.
8733
8734 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8735
8736 * dwarf2/read.c (recursively_compute_inclusions): Add
8737 dwarf2_per_objfile parameter.
8738 (compute_compunit_symtab_includes): Likewise.
8739 (process_cu_includes): Update.
8740
8741 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8742
8743 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8744 parameter.
8745 (create_type_unit_group): Update.
8746 (process_psymtab_comp_unit_reader): Update.
8747 (build_type_psymtabs_reader): Update.
8748
8749 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8750
8751 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8752 object through m_this_cu->cu.
8753
8754 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8755
8756 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8757 the info parameter.
8758 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8759
8760 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8761
8762 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8763 per_objfile parameter.
8764 (load_full_type_unit): Add per_objfile parameter.
8765 (read_signatured_type): Likewise.
8766 (load_full_comp_unit): Likewise.
8767 (load_cu): Likewise.
8768 (dw2_do_instantiate_symtab): Likewise.
8769 (dw2_get_file_names): Likewise.
8770 (dw2_map_symtabs_matching_filename): Update.
8771 (dw_expand_symtabs_matching_file_matcher): Update.
8772 (dw2_map_symbol_filenames): Update.
8773 (process_psymtab_comp_unit): Add per_objfile parameter.
8774 (build_type_psymtabs_1): Update.
8775 (process_skeletonless_type_unit): Update.
8776 (dwarf2_build_psymtabs_hard): Update.
8777 (load_partial_comp_unit): Add per_objfile parameter.
8778 (scan_partial_symbols): Update.
8779 (load_full_comp_unit): Add per_objfile parameter.
8780 (process_imported_unit_die): Update.
8781 (create_cus_hash_table): Update.
8782 (find_partial_die): Update.
8783 (dwarf2_read_addr_index): Update.
8784 (follow_die_offset): Update.
8785 (dwarf2_fetch_die_loc_sect_off): Update.
8786 (dwarf2_fetch_constant_bytes): Update.
8787 (dwarf2_fetch_die_type_sect_off): Update.
8788 (follow_die_sig_1): Update.
8789 (load_full_type_unit): Add per_objfile parameter.
8790 (read_signatured_type): Likewise.
8791
8792 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8793
8794 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8795 of objfile_name.
8796
8797 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8798
8799 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8800 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8801 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8802 field.
8803 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8804 (create_cus_from_index): Update.
8805 (dwarf2_read_gdb_index): Update.
8806 (create_cus_from_debug_names): Update.
8807 (dwarf2_read_debug_names): Update.
8808 (get_abbrev_section_for_cu): Update.
8809 (create_all_comp_units): Update.
8810 (read_attribute_value): Update.
8811 (get_debug_line_section): Update.
8812 * dwarf2/index-cache.c (index_cache::store): Update.
8813 * dwarf2/index-write.c (save_gdb_index_command): Update.
8814 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8815
8816 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8817
8818 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8819 member.
8820 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8821 dwarf2_per_cu_data::per_bfd.
8822 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8823 (create_type_unit_group): Likewise.
8824 (queue_comp_unit): Remove reference to
8825 per_cu->dwarf2_per_objfile.
8826 (maybe_queue_comp_unit): Likewise.
8827 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8828 (create_cus_hash_table): Assign new field.
8829
8830 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8831
8832 * dwarf2/read.c: Replace
8833 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8834 dwarf2_cu->per_objfile throughout.
8835
8836 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8837
8838 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8839 parameter, don't use per_cu->dwarf2_per_objfile.
8840 (dw2_instantiate_symtab): Likewise.
8841 (dw2_find_last_source_symtab): Update.
8842 (dw2_map_expand_apply): Update.
8843 (dw2_lookup_symbol): Update.
8844 (dw2_expand_symtabs_for_function): Update.
8845 (dw2_expand_all_symtabs): Update.
8846 (dw2_expand_symtabs_with_fullname): Update.
8847 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8848 don't use per_cu->dwarf2_per_objfile.
8849 (dw2_expand_marked_cus): Update.
8850 (dw2_find_pc_sect_compunit_symtab): Update.
8851 (dw2_debug_names_lookup_symbol): Update.
8852 (dw2_debug_names_expand_symtabs_for_function): Update.
8853 (dw2_debug_names_map_matching_symbols): Update.
8854 (dwarf2_psymtab::expand_psymtab): Update.
8855
8856 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8857
8858 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8859 <per_objfile>: New member.
8860 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8861 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8862 call to dwarf2_cu.
8863 (cutu_reader::cutu_reader): Update.
8864 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8865
8866 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8867
8868 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8869 struct dwarf2_per_objfile.
8870 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8871 dwarf2_per_bfd.
8872 * dwarf2/read.c (set_die_type): Update.
8873 (get_die_type_at_offset): Update.
8874
8875 2020-05-27 Tom Tromey <tom@tromey.com>
8876 Simon Marchi <simon.marchi@efficios.com>
8877
8878 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8879 method.
8880 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8881 get_symtab, set_symtab>: New methods.
8882 <m_symtabs>: New field.
8883 (struct dwarf2_psymtab): Derive from partial_symtab.
8884 <readin_p, get_compunit_symtab>: Declare methods.
8885 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8886 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8887 New methods.
8888 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8889 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8890 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8891 (dw2_symtab_iter_next, dw2_print_stats)
8892 (dw2_expand_symtabs_with_fullname)
8893 (dw2_expand_symtabs_matching_one)
8894 (dw_expand_symtabs_matching_file_matcher)
8895 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8896 (dw2_debug_names_iterator::next)
8897 (dw2_debug_names_map_matching_symbols)
8898 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8899 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8900 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8901 New methods.
8902 (get_compunit_symtab, process_full_comp_unit)
8903 (process_full_type_unit): Update.
8904 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8905
8906 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8907
8908 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8909 then introduce a new dwarf2_per_objfile type.
8910 <read_line_string>: Move to the new dwarf2_per_objfile type.
8911 <objfile>: Likewise.
8912 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8913 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8914 dwarf2_per_objfile->per_bfd.
8915 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8916 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8917 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8918 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8919 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8920 (dwarf2_per_objfile::locate_sections): Rename to...
8921 (dwarf2_per_bfd::locate_sections): ... this.
8922 (dwarf2_per_objfile::get_cutu): Rename to...
8923 (dwarf2_per_bfd::get_cutu): ... this.
8924 (dwarf2_per_objfile::get_cu): Rename to...
8925 (dwarf2_per_bfd::get_cu): ... this.
8926 (dwarf2_per_objfile::get_tu): Rename to...
8927 (dwarf2_per_bfd::get_tu): ... this.
8928 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8929 (dwarf2_per_bfd::allocate_per_cu): ... this.
8930 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8931 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8932 (get_gdb_index_contents_ftype): Change parameter from
8933 dwarf2_per_objfile to dwarf2_per_bfd.
8934 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8935 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8936
8937 2020-05-27 Tom Tromey <tom@tromey.com>
8938 Simon Marchi <simon.marchi@efficios.com>
8939
8940 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8941 (allocate_piece_closure): Set "per_objfile" member.
8942 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8943 (locexpr_describe_location, loclist_describe_location): Use new
8944 member.
8945 * dwarf2/read.c (read_call_site_scope)
8946 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8947 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8948 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8949 handle_data_member_location): Set per_objfile member.
8950 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8951 member.
8952 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8953
8954 2020-05-27 Tom Tromey <tom@tromey.com>
8955
8956 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8957 allocate_signatured_type>: Declare new methods.
8958 <m_num_psymtabs>: New member.
8959 (struct dwarf2_per_cu_data) <index>: New member.
8960 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8961 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8962 (create_cu_from_index_list): Use allocate_per_cu.
8963 (create_signatured_type_table_from_index)
8964 (create_signatured_type_table_from_debug_names)
8965 (create_debug_type_hash_table, add_type_unit)
8966 (read_comp_units_from_section): Use allocate_signatured_type.
8967
8968 2020-05-27 Tom Tromey <tom@tromey.com>
8969
8970 * psymtab.c (partial_map_expand_apply)
8971 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8972 (psym_lookup_global_symbol_language)
8973 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8974 (psym_print_stats, psym_expand_symtabs_for_function)
8975 (psym_map_symbol_filenames, psym_map_matching_symbols)
8976 (psym_expand_symtabs_matching)
8977 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8978 (maintenance_check_psymtabs): Update.
8979 * psympriv.h (struct partial_symtab) <readin_p,
8980 get_compunit_symtab>: Add objfile parameter.
8981 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8982 Likewise.
8983 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8984 get_compunit_symtab>: Likewise.
8985 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8986
8987 2020-05-27 Tom Tromey <tom@tromey.com>
8988
8989 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8990 member.
8991 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8992 (create_cu_from_index_list)
8993 (create_signatured_type_table_from_index)
8994 (create_signatured_type_table_from_debug_names)
8995 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8996 (dwarf2_create_include_psymtab)
8997 (create_debug_type_hash_table, add_type_unit)
8998 (create_type_unit_group, read_comp_units_from_section)
8999 (dwarf2_compute_name, create_cus_hash_table)
9000 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9001 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9002 obstack.
9003 (dw2_get_real_path): Likewise. Change argument to
9004 dwarf2_per_objfile.
9005
9006 2020-05-27 Luis Machado <luis.machado@linaro.org>
9007
9008 PR tdep/26000
9009 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9010 for ldrd (immediate).
9011
9012 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9013
9014 * command.h: Add comment giving the name of class_tui.
9015 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9016 create the fake command for the help for class_tui.
9017
9018 2020-05-26 Tom Tromey <tromey@adacore.com>
9019
9020 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9021 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9022 (val_atr): New function.
9023 (value_val_atr): Use it.
9024 * ada-valprint.c (print_optional_low_bound): Change low bound
9025 handling for enums.
9026 (val_print_packed_array_elements): Don't call discrete_position.
9027 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9028 discrete_position for enum types.
9029 * language.c (default_print_array_index): Change type.
9030 * language.h (struct language_defn) <la_print_array_index>: Add
9031 index_type parameter, change type of index_value.
9032 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9033 (default_print_array_index): Update.
9034 * valprint.c (maybe_print_array_index): Don't call
9035 value_from_longest. Update.
9036 (value_print_array_elements): Don't call discrete_position.
9037
9038 2020-05-26 Tom Tromey <tromey@adacore.com>
9039
9040 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9041 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9042
9043 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9044
9045 PR gdb/13519
9046 * avr-tdep.c (avr_integer_to_address): Return data or code
9047 address accordingly to the second 'type' argument of the
9048 function.
9049
9050 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9051
9052 * infcmd.c, inferior.h: (construct_inferior_arguments):
9053 Moved function from here to gdbsupport/common-inferior.{h,cc}
9054
9055 2020-05-23 Tom Tromey <tom@tromey.com>
9056
9057 Revert commit eca1f90c:
9058 * NEWS: Remove entry for completion styling.
9059 * completer.c (_rl_completion_prefix_display_length): Move
9060 declaration later.
9061 (gdb_fnprint): Revert.
9062 (gdb_display_match_list_1): Likewise.
9063 * cli/cli-style.c (completion_prefix_style)
9064 (completion_difference_style, completion_suffix_style): Remove.
9065 (_initialize_cli_style): Revert.
9066 * cli/cli-style.h (completion_prefix_style)
9067 (completion_difference_style, completion_suffix_style): Don't
9068 declare.
9069
9070 2020-05-24 Pedro Alves <palves@redhat.com>
9071
9072 * symtab.c (completion_list_add_name): Return boolean indication
9073 of whether the symbol matched.
9074 (completion_list_add_symbol): Don't try to remove C++ aliases if
9075 the symbol didn't match in the first place.
9076 * symtab.h (completion_list_add_name): Return bool.
9077
9078 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9079
9080 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9081 type::field.
9082
9083 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9084
9085 GDB 9.2 released.
9086
9087 2020-05-23 Tom Tromey <tom@tromey.com>
9088
9089 * NEWS: Add entry for completion styling.
9090 * completer.c (_rl_completion_prefix_display_length): Move
9091 declaration earlier.
9092 (gdb_fnprint): Use completion_style.
9093 (gdb_display_match_list_1): Likewise.
9094 * cli/cli-style.c (completion_prefix_style)
9095 (completion_difference_style, completion_suffix_style): New
9096 globals.
9097 (_initialize_cli_style): Register new globals.
9098 * cli/cli-style.h (completion_prefix_style)
9099 (completion_difference_style, completion_suffix_style): Declare.
9100
9101 2020-05-23 Pedro Alves <palves@redhat.com>
9102
9103 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9104 (parse_escape): Use ISDIGIT instead of isdigit.
9105 (puts_debug): Use gdb_isprint instead of isprint.
9106 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9107 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9108 ISSPACE instead of isspace.
9109 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9110 instead of isspace.
9111 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9112 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9113 instead of isxdigit and ISDIGIT instead of isdigit.
9114
9115 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * gdbtypes.h (struct type) <field>: New method.
9118 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9119 or type::field.
9120
9121 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9122
9123 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9124 (TYPE_FIELDS): Use type::fields. Change all call sites that
9125 modify the propery to use type::set_fields instead.
9126
9127 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9128
9129 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9130 type::num_fields instead.
9131
9132 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9135 methods.
9136 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9137 that modify the number of fields to use type::set_num_fields
9138 instead.
9139
9140 2020-05-22 Tom Tromey <tromey@adacore.com>
9141
9142 * compile/compile-object-load.h (munmap_list_free): Don't
9143 declare.
9144
9145 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9146
9147 * annotate.c (annotate_source_line): Update return type, add call
9148 to update current symtab and line.
9149 * annotate.h (annotate_source_line): Update return type, and
9150 extend header comment.
9151 * source.c (info_line_command): Check annotation_level before
9152 calling annotate_source_line.
9153 * stack.c (print_frame_info): If calling annotate_source_line
9154 returns true, then don't print any other source line information.
9155
9156 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9157
9158 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9159
9160 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * coffread.c (patch_type): Remove NULL check before xfree.
9163 * corefile.c (set_gnutarget): Likewise.
9164 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9165 * exec.c (build_section_table): Likewise.
9166 * remote.c (remote_target::pass_signals): Likewise.
9167 * utils.c (n_spaces): Likewise.
9168 * cli/cli-script.c (document_command): Likewise.
9169 * i386-windows-tdep.c (core_process_module_section): Likewise.
9170 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9171
9172 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9173
9174 * symfile.c (reread_symbols): Clear objfile's section_offsets
9175 vector and section indices, re-compute them by calling
9176 sym_offsets.
9177
9178 2020-05-20 Tom Tromey <tromey@adacore.com>
9179
9180 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9181 (desc_one_bound, desc_index_type): Compute field name.
9182
9183 2020-05-20 Tom de Vries <tdevries@suse.de>
9184
9185 PR symtab/25833
9186 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9187
9188 2020-05-20 Alan Modra <amodra@gmail.com>
9189
9190 PR 25993
9191 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9192 bfd_set_filename.
9193 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9194 passed to bfd_set_filename.
9195 * symfile-mem.c (add_vsyscall_page): Likewise for string
9196 passed to symbol_file_add_from_memory.
9197 (symbol_file_add_from_memory): Make name param a const char* and
9198 don't strdup.
9199
9200 2020-05-20 Alan Modra <amodra@gmail.com>
9201
9202 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9203 rather than accessing bfd->filename directly.
9204 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9205 and use bfd_section_name.
9206 * dwarf2/frame.c (decode_frame_entry): Likewise.
9207 * exec.c (exec_set_section_address): Likewise.
9208 * solib-aix.c (solib_aix_bfd_open): Likewise.
9209 * stap-probe.c (get_stap_base_address): Likewise.
9210 * symfile.c (reread_symbols): Likewise.
9211
9212 2020-05-19 Tom Tromey <tromey@adacore.com>
9213
9214 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9215
9216 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9217
9218 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9219
9220 2020-05-19 Pedro Alves <palves@redhat.com>
9221
9222 * NEWS (set exec-file-mismatch): Adjust entry.
9223 * exec.c: Include "build-id.h".
9224 (validate_exec_file): Try to match build IDs instead of filenames.
9225 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9226 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9227 and pass down 'warn_if_slow'.
9228 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9229 gdb_bfd_open_closure to pass it down.
9230 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9231
9232 2020-05-19 Pedro Alves <palves@redhat.com>
9233
9234 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9235 * target.c (target_fileio_open_1): Rename to target_fileio_open
9236 and make extern. Use bool.
9237 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9238 (target_fileio_read_alloc_1): Adjust.
9239 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9240 (target_fileio_open_warn_if_slow): Delete declaration.
9241
9242 2020-05-19 Pedro Alves <palves@redhat.com>
9243
9244 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9245 Adjust all callers.
9246
9247 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9248
9249 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9250 whether disp is negative.
9251
9252 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9253
9254 * symfile.h (struct symfile_segment_data)
9255 <~symfile_segment_data>: Remove.
9256 <segment_info>: Change to std::vector.
9257 * symfile.c (default_symfile_segments): Update.
9258 * elfread.c (elf_symfile_segments): Update.
9259
9260 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9261
9262 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9263 <segments>: New.
9264 <segment_bases, segment_sizes>: Remove.
9265 * symfile.c (default_symfile_segments): Update.
9266 * elfread.c (elf_symfile_segments): Update.
9267 * remote.c (remote_target::get_offsets): Update.
9268 * solib-target.c (solib_target_relocate_section_addresses):
9269 Update.
9270
9271 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9272
9273 * symfile.h (struct symfile_segment_data): Initialize fields.
9274 <~symfile_segment_data>: Add.
9275 (symfile_segment_data_up): New.
9276 (struct sym_fns) <sym_segments>: Return a
9277 symfile_segment_data_up.
9278 (default_symfile_segments): Return a symfile_segment_data_up.
9279 (free_symfile_segment_data): Remove.
9280 (get_symfile_segment_data): Return a symfile_segment_data_up.
9281 * symfile.c (default_symfile_segments): Likewise.
9282 (get_symfile_segment_data): Likewise.
9283 (free_symfile_segment_data): Remove.
9284 (symfile_find_segment_sections): Update.
9285 * elfread.c (elf_symfile_segments): Return a
9286 symfile_segment_data_up.
9287 * remote.c (remote_target::get_offsets): Update.
9288 * solib-target.c (solib_target_relocate_section_addresses):
9289 Update.
9290 * symfile-debug.c (debug_sym_segments): Return a
9291 symfile_segment_data_up.
9292
9293 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9294
9295 PR build/25981
9296 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9297 Hardcode register numbers.
9298
9299 PR build/25981
9300 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9301 procfs_find_LDT_entry): Remove.
9302 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9303 procfs_find_LDT_entry): Remove.
9304 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9305 Remove.
9306
9307 2020-05-17 Pedro Alves <palves@redhat.com>
9308 Andrew Burgess <andrew.burgess@embecosm.com>
9309 Keno Fischer <keno@juliacomputing.com>
9310
9311 PR gdb/25741
9312 * breakpoint.c (build_target_condition_list): Update comments.
9313 (build_target_command_list): Update comments and skip matching
9314 locations.
9315 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9316 a separate function. Simplify "set breakpoint auto-hw off"
9317 handling.
9318 (insert_breakpoints): Update comment.
9319 (tracepoint_locations_match): New parameter. For breakpoints,
9320 compare location types too, if the caller wants to.
9321 (handle_automatic_hardware_breakpoints): New functions.
9322 (bp_location_is_less_than): Also sort by location type and
9323 hardware breakpoint length.
9324 (update_global_location_list): Handle "set breakpoint auto-hw on"
9325 here.
9326 (update_breakpoint_locations): Ask breakpoint_locations_match to
9327 ignore location types.
9328
9329 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9330
9331 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9332 type::name instead.
9333
9334 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9335
9336 * gdbtypes.h (struct type) <name, set_name>: New methods.
9337 (TYPE_CODE): Use type::name. Change all call sites used to set
9338 the name to use type::set_name instead.
9339
9340 2020-05-16 Tom Tromey <tom@tromey.com>
9341
9342 * top.c (quit_force): Update.
9343 * infrun.c (handle_no_resumed): Update.
9344 * top.h (all_uis): New function.
9345 (ALL_UIS): Remove.
9346
9347 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9348
9349 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9350
9351 2020-05-16 Pedro Alves <palves@redhat.com>
9352
9353 * ia64-linux-nat.c
9354 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9355 Declare method.
9356 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9357
9358 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9359
9360 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9361 (sparc64_adi_info): Likewise.
9362
9363 2020-05-15 Tom Tromey <tom@tromey.com>
9364
9365 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9366 block_objfile.
9367 (lookup_objfile_from_block): Remove.
9368 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9369 (lookup_global_symbol): Use block_objfile.
9370 * symtab.h (lookup_objfile_from_block): Don't declare.
9371 * printcmd.c (clear_dangling_display_expressions): Use
9372 block_objfile.
9373 * parse.c (operator_check_standard): Use block_objfile.
9374
9375 2020-05-15 Tom Tromey <tom@tromey.com>
9376
9377 * language.c (language_alloc_type_symbol): Set
9378 SYMBOL_SECTION.
9379 * symtab.c (initialize_objfile_symbol): Remove.
9380 (allocate_symbol): Remove.
9381 (allocate_template_symbol): Remove.
9382 * dwarf2/read.c (fixup_go_packaging): Use "new".
9383 (new_symbol): Use "new".
9384 (read_variable): Don't call initialize_objfile_symbol. Use
9385 "new".
9386 (read_func_scope): Use "new".
9387 * xcoffread.c (process_xcoff_symbol): Don't call
9388 initialize_objfile_symbol.
9389 (SYMBOL_DUP): Remove.
9390 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9391 "new".
9392 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9393 (allocate_template_symbol): Don't declare.
9394 (struct symbol): Add copy constructor. Change defaults.
9395 * jit.c (finalize_symtab): Use "new".
9396 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9397 Use "new".
9398 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9399 (common_block_end): Use "new".
9400 * mdebugread.c (parse_symbol): Use "new".
9401 (new_symbol): Likewise.
9402
9403 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9404
9405 * NEWS: Mention changes to help and apropos.
9406
9407 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9408
9409 * command.h (enum command_class): Improve comments, document
9410 that class_alias is for user-defined aliases, give the class
9411 name for each class, remove unused class_xdb.
9412 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9413 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9414 by a precise class.
9415 * infcmd.c (_initialize_infcmd): Likewise.
9416 * reverse.c (_initialize_reverse): Likewise.
9417 * stack.c (_initialize_stack): Likewise.
9418 * symfile.c (_initialize_symfile): Likewise.
9419 * tracepoint.c (_initialize_tracepoint): Likewise.
9420
9421 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9422
9423 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9424 when their aliased command is traversed.
9425 (help_cmd): Add fput_command_names_styled call to
9426 output command name and aliases when command has an alias.
9427
9428 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9429
9430 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9431 * cli/cli-decode.c (help_cmd_list): Declare as static,
9432 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9433 a command together with the command.
9434 (fput_command_name_styled, fput_command_names_styled): New functions.
9435 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9436 fput_command_name_styled.
9437 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9438 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9439
9440 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9441
9442 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9443 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9444 * command.h (cmd_show_list): Likewise.
9445 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9446 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9447
9448 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9449
9450 * unittests/command-def-selftests.c (traverse_command_structure):
9451 Verify all commands of a list have the same prefix command and
9452 that only the top cmdlist commands have a null prefix.
9453
9454 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9455
9456 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9457 as prefix, not one of its aliases.
9458 (set_cmd_prefix): Remove.
9459 (do_add_cmd): Centralize the setting of the prefix of a command, when
9460 command is defined after its full chain of prefix commands.
9461 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9462 (add_setshow_cmd_full): Likewise.
9463 (update_prefix_field_of_prefixed_commands): New function.
9464 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9465 update_prefix_field_of_prefixed_commands.
9466 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9467 addresses of remote_set_cmdlist and remote_show_cmdlist given
9468 as argument, not the address of an argument.
9469 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9470 * gdb/remote.c (_initialize_remote): Likewise.
9471
9472 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9473
9474 * cli/cli-cmds.c (alias_command): Check for an existing alias
9475 using lookup_cmd_composition, as valid_command_p is too strict
9476 and forbids aliases that are the prefix of an existing alias
9477 or command.
9478 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9479 command is properly recognised as a valid command.
9480
9481 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9482
9483 * unittests/help-doc-selftests.c: Rename to
9484 unittests/command-def-selftests.c
9485 * unittests/command-def-selftests.c (help_doc_tests): Update some
9486 comments.
9487 (command_structure_tests, traverse_command_structure): New namespace
9488 and function.
9489 (command_structure_invariants_tests): New function.
9490 (_initialize_command_def_selftests) Renamed from
9491 _initialize_help_doc_selftests, register command_structure_invariants
9492 selftest.
9493
9494 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9495
9496 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9497 an alias of 'show'.
9498
9499 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9500
9501 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9502 ada_is_fixed_point_type. Update all callers.
9503 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9504 all callers.
9505 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9506 Update all callers.
9507 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9508 print_fixed_point_type. Update all callers.
9509 * ada-valprint.c (ada_value_print_num): Replace call to
9510 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9511
9512 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9513
9514 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9515 processors.
9516 (cpu_supports_bts): Add CV_AMD case.
9517
9518 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9519 Simon Marchi <simon.marchi@efficios.com>
9520
9521 * infrun.c (stop_all_threads): Collect multiple wait events at
9522 each pass.
9523
9524 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9525
9526 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9527 type::code instead.
9528
9529 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9530
9531 * gdbtypes.h (struct type) <code, set_code>: New methods.
9532 (TYPE_CODE): Use type::code. Change all call sites used to set
9533 the code to use type::set_code instead.
9534
9535 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9536 Tom de Vries <tdevries@suse.de>
9537 Pedro Alves <palves@redhat.com>
9538
9539 PR threads/25478
9540 * infrun.c (stop_all_threads): Do NOT ignore
9541 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9542 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9543 received.
9544 (handle_no_resumed): Remove code handling a live inferior with no
9545 threads.
9546 * remote.c (has_single_non_exited_thread): New.
9547 (remote_target::update_thread_list): Do not delete a thread if is
9548 the last thread of the process.
9549 * thread.c (thread_select): Call delete_exited_threads instead of
9550 prune_threads.
9551
9552 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9553
9554 * infrun.c (stop_all_threads): Enable/disable thread events of all
9555 targets. Move a debug message denoting the end of the function
9556 into the SCOPED_EXIT block.
9557
9558 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9559
9560 * process-stratum-target.h: Include <set>.
9561 (all_non_exited_process_targets, switch_to_target_no_thread): New
9562 function declarations.
9563 * process-stratum-target.c (all_non_exited_process_targets)
9564 (switch_to_target_no_thread): New function implementations.
9565
9566 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9567
9568 * infrun.c (handle_inferior_event): Extract out a piece of code
9569 into...
9570 (mark_non_executing_threads): ...this new function.
9571
9572 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9573
9574 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9575 use.
9576
9577 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9578
9579 * regcache.c (regcache_read_pc_protected): New function
9580 implementation that returns 0 if the PC cannot read via
9581 'regcache_read_pc'.
9582 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9583 instead of 'regcache_read_pc'.
9584 (keep_going_pass_signal): Ditto.
9585
9586 2020-05-13 Tom Tromey <tromey@adacore.com>
9587
9588 * ada-lang.c (align_value): Remove.
9589 (ada_template_to_fixed_record_type_1): Use align_up.
9590
9591 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9592
9593 * async-event.c: Update the copyright year.
9594 * async-event.h: Update the copyright year.
9595
9596 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9597
9598 * objfiles.h (is_addr_in_objfile,
9599 shared_objfile_contains_address_p): Return bool.
9600 * objfile.c (is_addr_in_objfile,
9601 shared_objfile_contains_address_p): Return bool.
9602
9603 2020-05-11 Tom Tromey <tromey@adacore.com>
9604
9605 * cli/cli-cmds.c (info_command): Restore.
9606 (_initialize_cli_cmds): Use add_prefix_command for "info".
9607 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9608
9609 2020-05-11 Tom Tromey <tromey@adacore.com>
9610
9611 * ada-lang.c (ada_value_primitive_field): Now public.
9612 * ada-lang.h (ada_value_primitive_field): Declare.
9613 * ada-valprint.c (print_field_values): Use
9614 ada_value_primitive_field for wrapper fields.
9615
9616 2020-05-11 Tom de Vries <tdevries@suse.de>
9617
9618 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9619 MODULE_DOMAIN.
9620
9621 2020-05-11 Tom de Vries <tdevries@suse.de>
9622
9623 PR symtab/25941
9624 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9625 with length 0, if not gdb-produced.
9626 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9627
9628 2020-05-09 Tom de Vries <tdevries@suse.de>
9629
9630 PR gdb/25955
9631 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9632 calculation.
9633
9634 2020-05-09 Tom Tromey <tom@tromey.com>
9635
9636 * top.c (server_command): Now bool.
9637 * top.h (server_command): Now bool.
9638
9639 2020-05-08 Tom Tromey <tromey@adacore.com>
9640
9641 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9642 already being processed.
9643
9644 2020-05-08 Tom Tromey <tom@tromey.com>
9645
9646 * printcmd.c (struct display) <next>: Remove.
9647 <display>: New constructor.
9648 <exp_string>: Now a std::string.
9649 <enabled_p>: Now a bool.
9650 (display_number): Move definition earlier.
9651 (displays): Rename from display_chain. Now a std::vector.
9652 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9653 (display_command): Update.
9654 (do_one_display, disable_display)
9655 (enable_disable_display_command, do_enable_disable_display):
9656 Update.
9657 (free_display): Remove.
9658 (clear_displays): Rewrite.
9659 (delete_display): Update.
9660 (map_display_numbers): Use function_view. Remove "data"
9661 parameter. Update.
9662 (do_delete_display): Remove.
9663 (undisplay_command): Update.
9664 (do_one_display, do_displays, disable_display)
9665 (info_display_command): Update.
9666 (do_enable_disable_display): Remove.
9667 (enable_disable_display_command)
9668 (clear_dangling_display_expressions): Update.
9669
9670 2020-05-08 Tom Tromey <tom@tromey.com>
9671
9672 * symtab.c (set_symbol_cache_size)
9673 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9674 (maintenance_print_symbol_cache_statistics): Update.
9675 * symmisc.c (print_symbol_bcache_statistics)
9676 (print_objfile_statistics, maintenance_print_objfiles)
9677 (maintenance_info_symtabs, maintenance_check_symtabs)
9678 (maintenance_expand_symtabs, maintenance_info_line_tables):
9679 Update.
9680 * symfile-debug.c (set_debug_symfile): Update.
9681 * source.c (forget_cached_source_info): Update.
9682 * python/python.c (gdbpy_progspaces): Update.
9683 * psymtab.c (maintenance_info_psymtabs): Update.
9684 * probe.c (parse_probes): Update.
9685 * linespec.c (iterate_over_all_matching_symtabs)
9686 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9687 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9688 * exec.c (exec_target::close): Update.
9689 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9690 * breakpoint.c (print_one_breakpoint_location)
9691 (create_longjmp_master_breakpoint)
9692 (create_std_terminate_master_breakpoint): Update.
9693 * progspace.c (program_spaces): Now a std::vector.
9694 (maybe_new_address_space): Update.
9695 (add_program_space): Remove.
9696 (program_space::program_space): Update.
9697 (remove_program_space): Update.
9698 (number_of_program_spaces): Remove.
9699 (print_program_space, update_address_spaces): Update.
9700 * progspace.h (program_spaces): Change type.
9701 (ALL_PSPACES): Remove.
9702 (number_of_program_spaces): Don't declare.
9703 (struct program_space) <next>: Remove.
9704
9705 2020-05-08 Tom Tromey <tom@tromey.com>
9706
9707 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9708 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9709 (enable_break): Update.
9710 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9711 (frv_fdpic_find_canonical_descriptor): Update.
9712 (frv_fetch_objfile_link_map): Update.
9713 * progspace.c (program_space::free_all_objfiles): Update.
9714 (program_space::solibs): New method.
9715 * progspace.h (struct program_space) <solibs>: New method.
9716 * solist.h (master_so_list): Don't declare.
9717 (ALL_SO_LIBS): Remove.
9718 * solib.h (so_list_head): Remove.
9719 (update_solib_list): Update comment.
9720 * solib.c (master_so_list): Remove.
9721 (solib_used, update_solib_list, solib_add)
9722 (info_sharedlibrary_command, clear_solib)
9723 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9724
9725 2020-05-08 Tom Tromey <tom@tromey.com>
9726
9727 * extension.c (extension_languages): Now a std::array.
9728 (ALL_EXTENSION_LANGUAGES): Remove.
9729 (get_ext_lang_defn, get_ext_lang_of_file)
9730 (eval_ext_lang_from_control_command): Update.
9731 (finish_ext_lang_initialization)
9732 (auto_load_ext_lang_scripts_for_objfile)
9733 (ext_lang_type_printers::ext_lang_type_printers)
9734 (apply_ext_lang_type_printers)
9735 (ext_lang_type_printers::~ext_lang_type_printers)
9736 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9737 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9738 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9739 (get_matching_xmethod_workers, ext_lang_colorize)
9740 (ext_lang_before_prompt): Update.
9741 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9742
9743 2020-05-08 Tom Tromey <tom@tromey.com>
9744
9745 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9746 overload.
9747 <swap_string, m_string>: Remove.
9748 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9749 Update.
9750 * stabsread.c (define_symbol, read_type): Update.
9751 * linespec.c (find_linespec_symbols): Update.
9752 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9753 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9754 * dbxread.c (read_dbx_symtab): Update.
9755 * cp-support.h (cp_canonicalize_string_full)
9756 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9757 Return unique_xmalloc_ptr.
9758 * cp-support.c (inspect_type): Update.
9759 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9760 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9761 Likewise.
9762 * c-typeprint.c (print_name_maybe_canonical): Update.
9763 * break-catch-throw.c (check_status_exception_catchpoint):
9764 Update.
9765
9766 2020-05-08 Tom de Vries <tdevries@suse.de>
9767
9768 * infrun.c (follow_fork): Copy current_line and current_symtab to
9769 child thread.
9770
9771 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9772
9773 * async-event.c (struct async_signal_handler, struct
9774 async_event_handler): Reformat, remove typedef.
9775
9776 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9777
9778 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9779 access thistype->main_type->dyn_prop_list directly.
9780
9781 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9782
9783 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9784 (remove_dyn_prop): Remove. Update all users to use
9785 type::remove_dyn_prop.
9786 * gdbtypes.c (remove_dyn_prop): Rename to...
9787 (type::remove_dyn_prop): ... this.
9788
9789 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9790
9791 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9792 (add_dyn_prop): Remove. Update all users to use
9793 type::add_dyn_prop.
9794 * gdbtypes.c (add_dyn_prop): Rename to...
9795 (type::add_dyn_prop): ... this.
9796
9797 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9798
9799 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9800 (get_dyn_prop): Remove. Update all users to use
9801 type::dyn_prop.
9802 * gdbtypes.c (get_dyn_prop): Rename to...
9803 (type::dyn_prop): ... this.
9804
9805 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9806
9807 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9808
9809 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9810
9811 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9812 instruction, skip it if it's there.
9813
9814 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9817
9818 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9819
9820 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9821 * gdbtypes.c (recursive_dump_type): Remove use of
9822 TYPE_INCOMPLETE.
9823
9824 2020-05-03 Tom Tromey <tom@tromey.com>
9825
9826 * breakpoint.c (catch_command, tcatch_command): Remove.
9827 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9828 add_show_prefix_cmd.
9829 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9830 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9831 Remove.
9832 (add_internal_problem_command): Use add_basic_prefix_cmd,
9833 add_show_prefix_cmd.
9834 * mips-tdep.c (set_mipsfpu_command): Remove.
9835 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9836 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9837 (_initialize_index_cache): Use add_basic_prefix_cmd.
9838 * memattr.c (dummy_cmd): Remove.
9839 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9840 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9841 (_initialize_tui_win): Use add_basic_prefix_cmd,
9842 add_show_prefix_cmd.
9843 * cli/cli-logging.c (set_logging_command): Remove.
9844 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9845 add_show_prefix_cmd.
9846 (show_logging_command): Remove.
9847 * target.c (target_command): Remove.
9848 (add_target): Use add_basic_prefix_cmd.
9849
9850 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9851
9852 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9853
9854 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9855
9856 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9857 info_command.
9858
9859 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9860
9861 * nbsd-nat.c (nbsd_enable_proc_events)
9862 (nbsd_nat_target::post_startup_inferior): Add.
9863 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9864 (nbsd_nat_target::update_thread_list): Rewrite.
9865 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9866 "PTRACE_LWP_CREATE".
9867 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9868
9869 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9870
9871 * stack.c (_initialize_stack): Remove duplicated creation
9872 of "frame" command and "f" alias.
9873
9874 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9875
9876 PR gdb/18706
9877 * gdbtypes.c (check_typedef): Calculate size of array of
9878 stubbed type.
9879
9880 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9881
9882 PR gdb/15559
9883 * i386-tdep.c (i386_push_dummy_call): Call
9884 i386_thiscall_push_dummy_call.
9885 (i386_thiscall_push_dummy_call): New function.
9886 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9887 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9888 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9889
9890 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9891
9892 * gdbarch.sh (do_read): Add shellcheck disable directive for
9893 warning SC2162.
9894
9895 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9896
9897 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9898 "referenced but not assigned" warning.
9899
9900 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9901
9902 * gdbarch.sh: Remove code that sets fallbackdefault.
9903
9904 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9905
9906 * gdbarch.sh: Use shell operators && and || instead of
9907 -a and -o.
9908
9909 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9910
9911 * gdbarch.sh: Use $(...) instead of `...`.
9912
9913 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * gdbarch.sh: Use double quotes around variables.
9916
9917 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9918
9919 * gdbarch.sh: Use %s with printf, instead of variables in the
9920 format string.
9921
9922 2020-04-29 Tom Tromey <tromey@adacore.com>
9923
9924 PR ada/25875:
9925 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9926 type fields here.
9927 (read_enumeration_type): Call
9928 update_enumeration_type_from_children later. Update comments.
9929 (process_enumeration_scope): Don't create type fields.
9930
9931 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9932
9933 * nbsd-tdep.c: Include "xml-syscall.h".
9934 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9935
9936 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9937
9938 * nbsd-nat.c: Include "sys/wait.h".
9939 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9940 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9941 (nbsd_nat_target::remove_exec_catchpoint)
9942 (nbsd_nat_target::set_syscall_catchpoint): Add.
9943 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9944 (nbsd_nat_target::insert_exec_catchpoint)
9945 (nbsd_nat_target::remove_exec_catchpoint)
9946 (nbsd_nat_target::set_syscall_catchpoint): Add.
9947 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9948 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9949 `nbsd_get_syscall_number'.
9950
9951 2020-04-29 Tom Tromey <tom@tromey.com>
9952
9953 * stack.c (print_block_frame_labels): Remove.
9954
9955 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9956
9957 PR gdb/17320
9958 * ada-valprint.c (val_print_packed_array_elements): Move array
9959 end bracket to new line.
9960 (ada_val_print_string): Remove extra spaces before first array
9961 element.
9962 * c-valprint.c (c_value_print_array): Likewise.
9963 * m2-valprint.c (m2_print_array_contents): Likewise.
9964 (m2_value_print_inner): Likewise.
9965 * p-valprint.c (pascal_value_print_inner): Likewise.
9966 * valprint.c (generic_val_print_array): Likewise.
9967 (value_print_array_elements): Move first array element and array
9968 end bracket to new line.
9969
9970 2020-04-29 Tom de Vries <tdevries@suse.de>
9971
9972 PR symtab/25889
9973 * linespec.c (find_method): Fix ix calculation.
9974
9975 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9976
9977 * syscalls/update-netbsd.sh: New file.
9978 * syscalls/netbsd.xml: Regenerate.
9979 * data-directory/Makefile.in: Register `netbsd.xml' in
9980 `SYSCALLS_FILES'.
9981
9982 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9983
9984 * syscalls/update-freebsd.sh: Add double quotes.
9985
9986 2020-04-28 Tom Tromey <tom@tromey.com>
9987
9988 * NEWS: Update.
9989 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9990 (cmdpy_init): Allow class_tui.
9991
9992 2020-04-28 Mark Williams <mark@myosotissp.com>
9993
9994 PR gdb/24480
9995 * dwarf2read.c: Add missing assingments to list_in_scope when
9996 start_symtab was already called.
9997
9998 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9999
10000 PR gdb/25881
10001 * dwarf2/read.c (offset_map_type): Use
10002 gdb:hash_enum<sect_offset> as hash function.
10003
10004 2020-04-28 Tom de Vries <tdevries@suse.de>
10005
10006 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10007 with DW_AT_signature.
10008
10009 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10010
10011 * configure.ac: Remove check for fs_base/gs_base in
10012 user_regs_struct.
10013 * configure: Re-generate.
10014 * config.in: Re-generate.
10015 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10016 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10017 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10018
10019 2020-04-27 Luis Machado <luis.machado@linaro.org>
10020
10021 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10022 problematic inline frame unwinding situation.
10023 * frame.c (frame_id_computed_p): New function.
10024 * frame.h (frame_id_computed_p): New prototype.
10025
10026 2020-04-26 Tom Tromey <tom@tromey.com>
10027
10028 * command.h (enum command_class) <class_pseudo>: Remove.
10029
10030 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10031
10032 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10033 and whitespace.
10034
10035 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10036
10037 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10038 `PT_GET_PROCESS_STATE' block.
10039
10040 2020-04-24 Tom Tromey <tom@tromey.com>
10041
10042 * symtab.h (symbol_get_demangled_name): Don't declare.
10043 * symtab.c (symbol_get_demangled_name): Remove.
10044 (general_symbol_info::natural_name)
10045 (general_symbol_info::demangled_name): Update.
10046
10047 2020-04-24 Tom Tromey <tom@tromey.com>
10048
10049 PR rust/25025:
10050 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10051
10052 2020-04-24 Tom Tromey <tom@tromey.com>
10053
10054 PR symtab/12707:
10055 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10056 exists.
10057 (new_symbol): Likewise.
10058 * compile/compile-object-load.c (get_out_value_type): Use
10059 symbol_matches_search_name.
10060
10061 2020-04-24 Tom Tromey <tom@tromey.com>
10062
10063 * dwarf2/read.c (add_partial_symbol): Do not call
10064 compute_and_set_names.
10065
10066 2020-04-24 Tom Tromey <tom@tromey.com>
10067
10068 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10069 overload.
10070
10071 2020-04-24 Tom Tromey <tom@tromey.com>
10072
10073 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10074 (add_psymbol_to_list): New overload. Make old overload call new
10075 one.
10076 * psympriv.h (add_psymbol_to_list): New overload.
10077
10078 2020-04-24 Tom Tromey <tom@tromey.com>
10079
10080 * dwarf2/read.c (partial_die_info::read) <case
10081 DW_AT_linkage_name>: Use value_as_string.
10082 (dwarf2_string_attr): Use value_as_string.
10083 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10084 method.
10085 * dwarf2/attribute.c (attribute::value_as_string): New method.
10086
10087 2020-04-24 Tom Tromey <tom@tromey.com>
10088
10089 * symtab.c (general_symbol_info::natural_name)
10090 (general_symbol_info::demangled_name): Check for language_rust.
10091
10092 2020-04-24 Tom Tromey <tom@tromey.com>
10093
10094 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10095 (dwarf2_physname): ... from here.
10096 (partial_die_info::read): Add Rust "{" hack.
10097
10098 2020-04-24 Tom Tromey <tom@tromey.com>
10099
10100 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10101 method.
10102 (symbol_set_demangled_name): Don't declare.
10103 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10104 symbol_set_demangled_name.
10105 (general_symbol_info::set_language)
10106 (general_symbol_info::compute_and_set_names): Update.
10107 * minsyms.c (minimal_symbol_reader::install): Update.
10108 * dwarf2/read.c (new_symbol): Update.
10109
10110 2020-04-24 Tom Tromey <tromey@adacore.com>
10111
10112 PR python/23662:
10113 * python/py-type.c (convert_field): Handle
10114 FIELD_LOC_KIND_DWARF_BLOCK.
10115 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10116 (typy_get_dynamic): Nw function.
10117 (type_object_getset): Add "dynamic".
10118 * NEWS: Add entry.
10119
10120 2020-04-24 Tom Tromey <tromey@adacore.com>
10121
10122 * ada-typeprint.c (print_choices, print_variant_part)
10123 (print_record_field_types_dynamic): New functions.
10124 (print_record_field_types): Use print_record_field_types_dynamic.
10125
10126 2020-04-24 Tom Tromey <tromey@adacore.com>
10127
10128 * dwarf2/read.c (handle_data_member_location): New overload.
10129 (dwarf2_add_field): Use it.
10130 (decode_locdesc): Add "computed" parameter. Update comment.
10131 * gdbtypes.c (is_dynamic_type_internal): Also look for
10132 FIELD_LOC_KIND_DWARF_BLOCK.
10133 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10134 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10135 virtual base classes.
10136 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10137 FIELD_LOC_KIND_DWARF_BLOCK.
10138
10139 2020-04-24 Tom Tromey <tromey@adacore.com>
10140
10141 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10142 * gdbtypes.c (is_dynamic_type_internal): Check
10143 TYPE_HAS_DYNAMIC_LENGTH.
10144 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10145 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10146 New macros.
10147 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10148 constant.
10149
10150 2020-04-24 Tom Tromey <tromey@adacore.com>
10151
10152 * dwarf2/read.c (struct variant_field): Rewrite.
10153 (struct variant_part_builder): New.
10154 (struct nextfield): Remove "variant" field. Add "offset".
10155 (struct field_info): Add "current_variant_part" and
10156 "variant_parts".
10157 (alloc_discriminant_info): Remove.
10158 (alloc_rust_variant): New function.
10159 (quirk_rust_enum): Update.
10160 (dwarf2_add_field): Set "offset" member. Don't handle
10161 DW_TAG_variant_part.
10162 (offset_map_type): New typedef.
10163 (convert_variant_range, create_one_variant)
10164 (create_one_variant_part, create_variant_parts)
10165 (add_variant_property): New functions.
10166 (dwarf2_attach_fields_to_type): Call add_variant_property.
10167 (read_structure_type): Don't handle DW_TAG_variant_part.
10168 (handle_variant_part, handle_variant): New functions.
10169 (handle_struct_member_die): Use them.
10170 (process_structure_scope): Don't handle variant parts.
10171 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10172 (struct discriminant_info): Remove.
10173 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10174 (struct main_type) <flag_discriminated_union>: Remove.
10175 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10176 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10177 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10178 Update.
10179 * valops.c (value_union_variant): Remove.
10180 * value.h (value_union_variant): Don't declare.
10181
10182 2020-04-24 Tom Tromey <tromey@adacore.com>
10183
10184 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10185 (ada_value_primitive_packed_val): Update.
10186 * ada-valprint.c (ada_value_print_1): Update.
10187 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10188 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10189 just an address. Use evaluate_for_locexpr_baton.
10190 (dwarf2_evaluate_property): Update.
10191 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10192 array_view.
10193 * findvar.c (default_read_var_value): Update.
10194 * gdbtypes.c (compute_variant_fields_inner)
10195 (resolve_dynamic_type_internal): Update.
10196 (resolve_dynamic_type): Change type of valaddr parameter.
10197 * gdbtypes.h (resolve_dynamic_type): Update.
10198 * valarith.c (value_subscripted_rvalue): Update.
10199 * value.c (value_from_contents_and_address): Update.
10200
10201 2020-04-24 Tom Tromey <tromey@adacore.com>
10202
10203 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10204 "push_initial_value" parameter.
10205 (dwarf2_evaluate_property): Likewise.
10206 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10207
10208 2020-04-24 Tom Tromey <tromey@adacore.com>
10209
10210 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10211 (variant::matches, compute_variant_fields_recurse)
10212 (compute_variant_fields_inner, compute_variant_fields): New
10213 functions.
10214 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10215 Use resolved_type after type is made.
10216 (operator==): Add new cases.
10217 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10218 (struct discriminant_range, struct variant, struct variant_part):
10219 New.
10220 (union dynamic_prop_data) <variant_parts, original_type>: New
10221 members.
10222 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10223 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10224 constants.
10225 * value.c (unpack_bits_as_long): Now public.
10226 * value.h (unpack_bits_as_long): Declare.
10227
10228 2020-04-24 Tom Tromey <tromey@adacore.com>
10229
10230 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10231 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10232
10233 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10234
10235 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10236
10237 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10238
10239 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10240 (remove_fork_catchpoint, post_startup_inferior)
10241 (post_attach): Move...
10242 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10243 (remove_fork_catchpoint, post_startup_inferior)
10244 (post_attach): ...here.
10245 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10246 (remove_fork_catchpoint, post_startup_inferior)
10247 (post_attach): Move...
10248 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10249 (remove_fork_catchpoint, post_startup_inferior)
10250 (post_attach): ...here.
10251
10252 2020-04-24 Tom Tromey <tromey@adacore.com>
10253
10254 * nat/windows-nat.h (struct windows_thread_info)
10255 <pc_adjusted>: New member.
10256 * windows-nat.c (windows_fetch_one_register): Check
10257 pc_adjusted.
10258 (windows_nat_target::get_windows_debug_event)
10259 (windows_nat_target::wait): Set pc_adjusted.
10260
10261 2020-04-24 Tom de Vries <tdevries@suse.de>
10262
10263 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10264 Run gdb-add-index inside temp dir.
10265
10266 2020-04-23 Tom Tromey <tromey@adacore.com>
10267
10268 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10269 in loop.
10270
10271 2020-04-23 Luis Machado <luis.machado@linaro.org>
10272
10273 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10274 get_frame_register instead of gdbarch_unwind_pc.
10275
10276 2020-04-23 Tom de Vries <tdevries@suse.de>
10277
10278 * symtab.c (lookup_global_symbol): Prefer def over decl.
10279
10280 2020-04-23 Tom de Vries <tdevries@suse.de>
10281
10282 PR symtab/25807
10283 * block.c (best_symbol, better_symbol): Promote to external.
10284 * block.h (best_symbol, better_symbol): Declare.
10285 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10286 decl.
10287
10288 2020-04-23 Tom Tromey <tromey@adacore.com>
10289
10290 PR ada/25837:
10291 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10292 "const char *", not a "const std::string &".
10293 <name_and_matcher::operator==>: Update.
10294 * unittests/lookup_name_info-selftests.c: Change type of
10295 "result".
10296
10297 2020-04-23 Tom Tromey <tom@tromey.com>
10298
10299 * inferior.h (iterate_over_inferiors): Don't declare.
10300 * inferior.c (iterate_over_inferiors): Remove.
10301 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10302 Remove.
10303 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10304 use iterate_over_inferiors.
10305 (darwin_resume_inferior_it)
10306 (struct resume_inferior_threads_param)
10307 (darwin_resume_inferior_threads_it): Remove.
10308 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10309
10310 2020-04-23 Tom de Vries <tdevries@suse.de>
10311
10312 * blockframe.c (find_pc_partial_function): Use
10313 find_pc_sect_compunit_symtab rather than
10314 objfile->sf->qf->find_pc_sect_compunit_symtab.
10315
10316 2020-04-22 Tom de Vries <tdevries@suse.de>
10317
10318 PR symtab/25764
10319 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10320 in psymtabs.
10321
10322 2020-04-22 Tom de Vries <tdevries@suse.de>
10323
10324 PR symtab/25801
10325 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10326 symtabs.
10327
10328 2020-04-22 Tom de Vries <tdevries@suse.de>
10329
10330 PR symtab/25700
10331 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10332 CU if already created.
10333
10334 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10335
10336 * infrun.c (displaced_step_fixup): Switch to the event_thread
10337 before calling displaced_step_restore, not after.
10338
10339 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10340
10341 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10342 its inferior is not recorded by us.
10343 (record_btrace_target_open): Replace call to
10344 all_non_exited_threads () with call to current_inferior
10345 ()->non_exited_threads ().
10346 (record_btrace_target::stop_recording): Likewise.
10347 (record_btrace_target::close): Likewise.
10348 (record_btrace_target::wait): Likewise.
10349 (record_btrace_target::record_stop_replaying): Likewise.
10350
10351 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10352
10353 * btrace.c (btrace_enable): Throw an error on double enables and
10354 when enabling recording fails.
10355 (btrace_disable): Throw an error if the thread is not recorded.
10356
10357 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10358
10359 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10360 request if we do not have a thread_info.
10361
10362 2020-04-21 Tom de Vries <tdevries@suse.de>
10363
10364 PR gdb/25471
10365 * thread.c
10366 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10367 exception in get_frame_id.
10368
10369 2020-04-20 Tom Tromey <tromey@adacore.com>
10370
10371 * python/python.c (struct gdbpy_event): Mark move constructor as
10372 noexcept.
10373 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10374 constructor as noexcept.
10375 * completer.h (struct completion_result): Mark move constructor as
10376 noexcept.
10377 * completer.c (completion_result::completion_result): Use
10378 initialization style. Don't call reset_match_list.
10379
10380 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10381
10382 * MAINTAINERS (Write After Approval): Add myself.
10383
10384 2020-04-18 Tom Tromey <tom@tromey.com>
10385
10386 * windows-tdep.c (init_w32_command_list)
10387 (w32_prefix_command_valid): Restore.
10388 (_initialize_windows_tdep): Call init_w32_command_list.
10389
10390 2020-04-18 Tom Tromey <tom@tromey.com>
10391
10392 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10393 * value.c (value_fn_field): Update.
10394 * valops.c (find_function_in_inferior)
10395 (value_allocate_space_in_inferior): Update.
10396 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10397 Update.
10398 * tui/tui-source.c (tui_source_window::set_contents): Update.
10399 * symtab.c (lookup_global_or_static_symbol)
10400 (find_function_start_sal_1, skip_prologue_sal)
10401 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10402 * symmisc.c (dump_msymbols, dump_symtab_1)
10403 (maintenance_print_one_line_table): Update.
10404 * symfile.c (init_entry_point_info, section_is_mapped)
10405 (list_overlays_command, simple_read_overlay_table)
10406 (simple_overlay_update_1): Update.
10407 * stap-probe.c (handle_stap_probe): Update.
10408 * stabsread.c (dbx_init_float_type, define_symbol)
10409 (read_one_struct_field, read_enum_type, read_range_type): Update.
10410 * source.c (info_line_command): Update.
10411 * python/python.c (gdbpy_source_objfile_script)
10412 (gdbpy_execute_objfile_script): Update.
10413 * python/py-type.c (save_objfile_types): Update.
10414 * python/py-objfile.c (py_free_objfile): Update.
10415 * python/py-inferior.c (python_new_objfile): Update.
10416 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10417 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10418 (maintenance_check_psymtabs): Update.
10419 * printcmd.c (info_address_command): Update.
10420 * objfiles.h (struct objfile) <arch>: New method, from
10421 get_objfile_arch.
10422 (get_objfile_arch): Don't declare.
10423 * objfiles.c (get_objfile_arch): Remove.
10424 (filter_overlapping_sections): Update.
10425 * minsyms.c (msymbol_is_function): Update.
10426 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10427 (output_nondebug_symbol): Update.
10428 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10429 (mdebug_expand_psymtab): Update.
10430 * machoread.c (macho_add_oso_symfile): Update.
10431 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10432 Update.
10433 * linux-fork.c (checkpoint_command): Update.
10434 * linespec.c (convert_linespec_to_sals): Update.
10435 * jit.c (finalize_symtab): Update.
10436 * infrun.c (insert_exception_resume_from_probe): Update.
10437 * ia64-tdep.c (ia64_find_unwind_table): Update.
10438 * hppa-tdep.c (internalize_unwinds): Update.
10439 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10440 Update.
10441 * gcore.c (call_target_sbrk): Update.
10442 * elfread.c (record_minimal_symbol, elf_symtab_read)
10443 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10444 (elf_gnu_ifunc_resolve_by_got): Update.
10445 * dwarf2/read.c (create_addrmap_from_index)
10446 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10447 (read_debug_names_from_section)
10448 (process_psymtab_comp_unit_reader, add_partial_symbol)
10449 (add_partial_subprogram, process_full_comp_unit)
10450 (read_file_scope, read_func_scope, read_lexical_block_scope)
10451 (read_call_site_scope, dwarf2_ranges_read)
10452 (dwarf2_record_block_ranges, dwarf2_add_field)
10453 (mark_common_block_symbol_computed, read_tag_pointer_type)
10454 (read_tag_string_type, dwarf2_init_float_type)
10455 (dwarf2_init_complex_target_type, read_base_type)
10456 (partial_die_info::read, partial_die_info::read)
10457 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10458 (dwarf2_fetch_die_loc_sect_off): Update.
10459 * dwarf2/loc.c (dwarf2_find_location_expression)
10460 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10461 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10462 (dwarf2_loc_desc_get_symbol_read_needs)
10463 (locexpr_describe_location_piece, locexpr_describe_location_1)
10464 (loclist_describe_location): Update.
10465 * dwarf2/index-write.c (write_debug_names): Update.
10466 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10467 * dtrace-probe.c (dtrace_process_dof): Update.
10468 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10469 (process_one_symbol): Update.
10470 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10471 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10472 (coff_read_enum_type): Update.
10473 * cli/cli-cmds.c (edit_command, list_command): Update.
10474 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10475 * breakpoint.c (create_overlay_event_breakpoint)
10476 (create_longjmp_master_breakpoint)
10477 (create_std_terminate_master_breakpoint)
10478 (create_exception_master_breakpoint, get_sal_arch): Update.
10479 * block.c (block_gdbarch): Update.
10480 * annotate.c (annotate_source_line): Update.
10481
10482 2020-04-17 Tom Tromey <tromey@adacore.com>
10483
10484 * auto-load.c (show_auto_load_cmd): Remove.
10485 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10486 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10487 (maintenance_print_arc_command): Remove.
10488 * tui/tui-win.c (tui_command): Remove.
10489 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10490 * tui/tui-layout.c (tui_layout_command): Remove.
10491 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10492 * python/python.c (user_set_python, user_show_python): Remove.
10493 (_initialize_python): Use add_basic_prefix_cmd,
10494 add_show_prefix_cmd.
10495 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10496 (install_gdb_commands): Use add_basic_prefix_cmd,
10497 add_show_prefix_cmd.
10498 (info_guile_command): Remove.
10499 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10500 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10501 add_show_prefix_cmd.
10502 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10503 Remove do_set and do_show parameters.
10504 * cli/cli-style.c (set_style, show_style): Remove.
10505 (_initialize_cli_style): Use add_basic_prefix_cmd,
10506 add_show_prefix_cmd.
10507 (cli_style_option::add_setshow_commands): Remove do_set and
10508 do_show parameters.
10509 (cli_style_option::add_setshow_commands): Use
10510 add_basic_prefix_cmd, add_show_prefix_cmd.
10511 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10512 (set_style_name): Remove.
10513 * cli/cli-dump.c (dump_command, append_command): Remove.
10514 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10515 (tekhex_dump_command, binary_dump_command)
10516 (binary_append_command): Remove.
10517 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10518 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10519 (init_w32_command_list): Remove; move into ...
10520 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10521 * valprint.c (set_print, show_print, set_print_raw)
10522 (show_print_raw): Remove.
10523 (_initialize_valprint): Use add_basic_prefix_cmd,
10524 add_show_prefix_cmd.
10525 * typeprint.c (set_print_type, show_print_type): Remove.
10526 (_initialize_typeprint): Use add_basic_prefix_cmd,
10527 add_show_prefix_cmd.
10528 * record.c (set_record_command, show_record_command): Remove.
10529 (_initialize_record): Use add_basic_prefix_cmd,
10530 add_show_prefix_cmd.
10531 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10532 add_show_prefix_cmd.
10533 (info_command, show_command, set_debug, show_debug): Remove.
10534 * top.h (set_history, show_history): Don't declare.
10535 * top.c (set_history, show_history): Remove.
10536 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10537 (unset_tdesc_cmd): Remove.
10538 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10539 add_show_prefix_cmd.
10540 * symtab.c (info_module_command): Remove.
10541 (_initialize_symtab): Use add_basic_prefix_cmd.
10542 * symfile.c (overlay_command): Remove.
10543 (_initialize_symfile): Use add_basic_prefix_cmd.
10544 * sparc64-tdep.c (info_adi_command): Remove.
10545 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10546 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10547 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10548 add_show_prefix_cmd.
10549 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10550 (_initialize_serial): Use add_basic_prefix_cmd,
10551 add_show_prefix_cmd.
10552 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10553 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10554 add_show_prefix_cmd.
10555 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10556 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10557 add_show_prefix_cmd.
10558 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10559 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10560 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10561 add_show_prefix_cmd.
10562 * remote.c (remote_command, set_remote_cmd): Remove.
10563 (_initialize_remote): Use add_basic_prefix_cmd.
10564 * record-full.c (set_record_full_command)
10565 (show_record_full_command): Remove.
10566 (_initialize_record_full): Use add_basic_prefix_cmd,
10567 add_show_prefix_cmd.
10568 * record-btrace.c (cmd_set_record_btrace)
10569 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10570 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10571 (cmd_show_record_btrace_pt): Remove.
10572 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10573 add_show_prefix_cmd.
10574 * ravenscar-thread.c (set_ravenscar_command)
10575 (show_ravenscar_command): Remove.
10576 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10577 add_show_prefix_cmd.
10578 * mips-tdep.c (show_mips_command, set_mips_command)
10579 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10580 add_show_prefix_cmd.
10581 * maint.c (maintenance_command, maintenance_info_command)
10582 (maintenance_check_command, maintenance_print_command)
10583 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10584 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10585 add_show_prefix_cmd.
10586 (show_per_command_cmd): Remove.
10587 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10588 Remove.
10589 (maintenance_show_test_settings_cmd): Remove.
10590 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10591 add_show_prefix_cmd.
10592 * maint-test-options.c (maintenance_test_options_command):
10593 Remove.
10594 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10595 * macrocmd.c (macro_command): Remove
10596 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10597 * language.c (set_check, show_check): Remove.
10598 (_initialize_language): Use add_basic_prefix_cmd,
10599 add_show_prefix_cmd.
10600 * infcmd.c (unset_command): Remove.
10601 (_initialize_infcmd): Use add_basic_prefix_cmd.
10602 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10603 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10604 add_show_prefix_cmd.
10605 * go32-nat.c (go32_info_dos_command): Remove.
10606 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10607 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10608 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10609 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10610 (_initialize_frame): Use add_basic_prefix_cmd,
10611 add_show_prefix_cmd.
10612 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10613 (_initialize_dcache): Use add_basic_prefix_cmd,
10614 add_show_prefix_cmd.
10615 * cp-support.c (maint_cplus_command): Remove.
10616 (_initialize_cp_support): Use add_basic_prefix_cmd.
10617 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10618 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10619 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10620 add_basic_prefix_cmd, add_show_prefix_cmd.
10621 * breakpoint.c (save_command): Remove.
10622 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10623 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10624 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10625 add_show_prefix_cmd.
10626 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10627 (set_ada_command, show_ada_command): Remove.
10628 (_initialize_ada_language): Use add_basic_prefix_cmd,
10629 add_show_prefix_cmd.
10630 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10631
10632 2020-04-16 Kamil Rytarowski <n54@gmx.com>
10633
10634 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10635 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10636
10637 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10638
10639 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10640 warning messages.
10641
10642 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10643
10644 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10645 import table is not at beginning of .idata section.
10646
10647 2020-04-16 Pedro Alves <palves@redhat.com>
10648
10649 * inferior.c (delete_inferior): Use delete operator directly
10650 instead of delete_program_space.
10651 * progspace.c (add_program_space): New, factored out from
10652 program_space::program_space.
10653 (remove_program_space): New, factored out from
10654 delete_program_space.
10655 (program_space::program_space): Remove intro comment. Rewrite.
10656 (program_space::~program_space): Remove intro comment. Call
10657 remove_program_space.
10658 (delete_program_space): Delete.
10659 * progspace.h (program_space::program_space): Make explicit. Move
10660 intro comment here, adjusted.
10661 (program_space::~program_space): Move intro comment here,
10662 adjusted.
10663 (delete_program_space): Remove.
10664
10665 2020-04-16 Tom Tromey <tromey@adacore.com>
10666
10667 * windows-nat.c (windows_nat::handle_access_violation): New
10668 function.
10669 * nat/windows-nat.h (handle_access_violation): Declare.
10670 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10671 windows-nat.c. Call handle_access_violation.
10672
10673 2020-04-16 Tom de Vries <tdevries@suse.de>
10674
10675 PR symtab/25791
10676 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10677 CUs without psymtab.
10678
10679 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10680
10681 * python/python.c (do_start_initialization): Don't call
10682 PyEval_InitThreads for Python 3.9 and beyond.
10683
10684 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10685
10686 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10687 thread functions.
10688 (obsd_nat_target::wait): Likewise.
10689
10690 2020-04-15 Tom Tromey <tromey@adacore.com>
10691
10692 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10693 (DEBUG_EXCEPT): Use debug_printf.
10694
10695 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10696
10697 * completer.c (class completion_tracker::completion_hash_entry)
10698 <hash_name>: New member function.
10699 (completion_tracker::discard_completions): New callback to hash a
10700 completion_hash_entry, pass this to htab_create_alloc.
10701
10702 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10703
10704 * windows-nat.c (windows_make_so): Warn rather than stopping with
10705 an error if realpath() fails.
10706
10707 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10708
10709 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10710 (nbsd_nat_target::info_proc): Add do_status.
10711
10712 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10713 Tom de Vries <tdevries@suse.de>
10714
10715 PR symtab/25718
10716 * psympriv.h (struct partial_symtab::read_symtab)
10717 (struct partial_symtab::expand_psymtab)
10718 (struct partial_symtab::read_dependencies): Update comments.
10719 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10720 read_symtab for includer.
10721 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10722 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10723 (struct dwarf2_include_psymtab::m_readin): Remove.
10724 (struct dwarf2_include_psymtab::includer): New member function.
10725 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10726
10727 2020-04-14 Tom de Vries <tdevries@suse.de>
10728
10729 PR symtab/25720
10730 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10731 with NULL symbol_matcher and lookup_name.
10732 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10733 and lookup_name.
10734 * dwarf2/read.c (dw2_expand_symtabs_matching)
10735 (dw2_debug_names_expand_symtabs_matching): Same.
10736 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10737 Make lookup_name a pointer. Update comment.
10738 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10739 lookup_name being a pointer.
10740 * symfile.c (expand_symtabs_matching): Same.
10741 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10742 * linespec.c (iterate_over_all_matching_symtabs): Same.
10743
10744 2020-04-13 Tom Tromey <tom@tromey.com>
10745
10746 * run-on-main-thread.c: Update include.
10747 * unittests/main-thread-selftests.c: Update include.
10748 * tui/tui-win.c: Update include.
10749 * tui/tui-io.c: Update include.
10750 * tui/tui-interp.c: Update include.
10751 * tui/tui-hooks.c: Update include.
10752 * top.h: Update include.
10753 * top.c: Update include.
10754 * ser-base.c: Update include.
10755 * remote.c: Update include.
10756 * remote-notif.c: Update include.
10757 * remote-fileio.c: Update include.
10758 * record-full.c: Update include.
10759 * record-btrace.c: Update include.
10760 * python/python.c: Update include.
10761 * posix-hdep.c: Update include.
10762 * mingw-hdep.c: Update include.
10763 * mi/mi-main.c: Update include.
10764 * mi/mi-interp.c: Update include.
10765 * main.c: Update include.
10766 * linux-nat.c: Update include.
10767 * interps.c: Update include.
10768 * infrun.c: Update include.
10769 * inf-loop.c: Update include.
10770 * event-top.c: Update include.
10771 * event-loop.c: Move to ../gdbsupport/.
10772 * event-loop.h: Move to ../gdbsupport/.
10773 * async-event.h: Update include.
10774 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10775
10776 2020-04-13 Tom Tromey <tom@tromey.com>
10777
10778 * tui/tui-win.c: Include async-event.h.
10779 * remote.c: Include async-event.h.
10780 * remote-notif.c: Include async-event.h.
10781 * record-full.c: Include async-event.h.
10782 * record-btrace.c: Include async-event.h.
10783 * infrun.c: Include async-event.h.
10784 * event-top.c: Include async-event.h.
10785 * event-loop.h: Move some declarations to async-event.h.
10786 * event-loop.c: Don't include ser-event.h or top.h. Move some
10787 code to async-event.c.
10788 * async-event.h: New file.
10789 * async-event.c: New file.
10790 * Makefile.in (COMMON_SFILES): Add async-event.c.
10791 (HFILES_NO_SRCDIR): Add async-event.h.
10792
10793 2020-04-13 Tom Tromey <tom@tromey.com>
10794
10795 * utils.c (flush_streams): New function.
10796 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10797
10798 2020-04-13 Tom Tromey <tom@tromey.com>
10799
10800 * event-loop.c (handle_file_event): Use warning, not
10801 printf_unfiltered.
10802
10803 2020-04-13 Tom Tromey <tom@tromey.com>
10804
10805 * event-loop.c: Include <chrono>.
10806
10807 2020-04-13 Tom Tromey <tom@tromey.com>
10808
10809 * gdb_select.h: Move to ../gdbsupport/.
10810 * event-loop.c: Update include path.
10811 * top.c: Update include path.
10812 * ser-base.c: Update include path.
10813 * ui-file.c: Update include path.
10814 * ser-tcp.c: Update include path.
10815 * guile/scm-ports.c: Update include path.
10816 * posix-hdep.c: Update include path.
10817 * ser-unix.c: Update include path.
10818 * gdb_usleep.c: Update include path.
10819 * mingw-hdep.c: Update include path.
10820 * inflow.c: Update include path.
10821 * infrun.c: Update include path.
10822 * event-top.c: Update include path.
10823
10824 2020-04-13 Tom Tromey <tom@tromey.com>
10825
10826 * configure: Rebuild.
10827 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10828
10829 2020-04-13 Tom Tromey <tom@tromey.com>
10830
10831 * event-loop.h (start_event_loop): Don't declare.
10832 * event-loop.c (start_event_loop): Move...
10833 * main.c (start_event_loop): ...here. Now static.
10834
10835 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10836
10837 * MAINTAINERS: Update my email address.
10838
10839 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10840
10841 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10842 IP_ALL.
10843
10844 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10845
10846 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10847 (nbsd_nat_target::info_proc): Add do_cmdline.
10848
10849 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10850
10851 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10852 (nbsd_nat_target::info_proc): Add do_cwd.
10853
10854 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10855
10856 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10857
10858 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10859
10860 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10861 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10862 (nbsd_nat_target::info_proc): New functions.
10863 * nbsd-nat.c (kinfo_get_vmmap): New function.
10864 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10865 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10866 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10867 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10868 functions.
10869 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10870 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10871 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10872 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10873 (KINFO_VME_FLAG_GROWS_DOWN): New.
10874
10875 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10876
10877 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10878 bit shift.
10879
10880 2020-04-10 Tom Tromey <tromey@adacore.com>
10881
10882 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10883
10884 2020-04-10 Tom Tromey <tromey@adacore.com>
10885
10886 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10887 separate debug files.
10888
10889 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10890
10891 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10892 Move to...
10893 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10894 ... here.
10895 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10896 Check for STATUS_WX86_BREAKPOINT.
10897 (windows_nat_target::wait): Same.
10898
10899 2020-04-10 Tom de Vries <tdevries@suse.de>
10900
10901 PR cli/25808
10902 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10903
10904 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10905
10906 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10907 (Write After Approval): Remove Tom de Vries.
10908
10909 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10910
10911 revert partially:
10912 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10913
10914 * buildsym.c (record_line): Fix undefined behavior and preserve
10915 lines at eof.
10916
10917 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10918
10919 * auxv.h (svr4_auxv_parse): New.
10920 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10921 and generic_auxv_parse.
10922 (svr4_auxv_parse): Add.
10923 * obsd-tdep.c: Include "auxv.h".
10924 (obsd_auxv_parse): Remove.
10925 (obsd_init_abi): Remove comment.
10926 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10927 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10928 * nbsd-tdep.c: Include "auxv.h".
10929 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10930
10931 2020-04-08 Tom Tromey <tromey@adacore.com>
10932
10933 * nat/windows-nat.h (last_wait_event): Don't declare.
10934 (wait_for_debug_event): Update comment.
10935 * nat/windows-nat.c (last_wait_event): Now static.
10936
10937 2020-04-08 Tom Tromey <tromey@adacore.com>
10938
10939 * windows-nat.c (wait_for_debug_event): Move to
10940 nat/windows-nat.c.
10941 * nat/windows-nat.h (wait_for_debug_event): Declare.
10942 * nat/windows-nat.c (wait_for_debug_event): Move from
10943 windows-nat.c. No longer static.
10944
10945 2020-04-08 Tom Tromey <tromey@adacore.com>
10946
10947 * windows-nat.c (get_windows_debug_event): Use
10948 fetch_pending_stop.
10949 * nat/windows-nat.h (fetch_pending_stop): Declare.
10950 * nat/windows-nat.c (fetch_pending_stop): New function.
10951
10952 2020-04-08 Tom Tromey <tromey@adacore.com>
10953
10954 * windows-nat.c (windows_continue): Use matching_pending_stop and
10955 continue_last_debug_event.
10956 * nat/windows-nat.h (matching_pending_stop)
10957 (continue_last_debug_event): Declare.
10958 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10959 (matching_pending_stop, continue_last_debug_event): New
10960 functions.
10961
10962 2020-04-08 Tom Tromey <tromey@adacore.com>
10963
10964 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10965 (handle_exception_result): Move to nat/windows-nat.h.
10966 (DEBUG_EXCEPTION_SIMPLE): Remove.
10967 (windows_nat::handle_ms_vc_exception): New function.
10968 (handle_exception): Move to nat/windows-nat.c.
10969 (get_windows_debug_event): Update.
10970 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10971 nat/windows-nat.c.
10972 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10973 (handle_exception_result): Move from windows-nat.c.
10974 (handle_exception): Declare.
10975 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10976 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10977 windows-nat.c.
10978
10979 2020-04-08 Tom Tromey <tromey@adacore.com>
10980
10981 * windows-nat.c (exception_count, event_count): Remove.
10982 (handle_exception, get_windows_debug_event)
10983 (do_initial_windows_stuff): Update.
10984
10985 2020-04-08 Tom Tromey <tromey@adacore.com>
10986
10987 * windows-nat.c (windows_nat::handle_load_dll)
10988 (windows_nat::handle_unload_dll): Rename. No longer static.
10989 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10990 Declare.
10991
10992 2020-04-08 Tom Tromey <tromey@adacore.com>
10993
10994 * complaints.h (stop_whining): Declare at top-level.
10995 (complaint): Don't declare stop_whining.
10996
10997 2020-04-08 Tom Tromey <tromey@adacore.com>
10998
10999 * windows-nat.c (windows_nat::handle_output_debug_string):
11000 Rename. No longer static.
11001 * nat/windows-nat.h (handle_output_debug_string): Declare.
11002
11003 2020-04-08 Tom Tromey <tromey@adacore.com>
11004
11005 * windows-nat.c (current_process_handle, current_process_id)
11006 (main_thread_id, last_sig, current_event, last_wait_event)
11007 (current_windows_thread, desired_stop_thread_id, pending_stops)
11008 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11009 (display_selectors, fake_create_process)
11010 (get_windows_debug_event): Update.
11011 * nat/windows-nat.h (current_process_handle, current_process_id)
11012 (main_thread_id, last_sig, current_event, last_wait_event)
11013 (current_windows_thread, desired_stop_thread_id, pending_stops)
11014 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11015 * nat/windows-nat.c (current_process_handle, current_process_id)
11016 (main_thread_id, last_sig, current_event, last_wait_event)
11017 (current_windows_thread, desired_stop_thread_id, pending_stops)
11018 (siginfo_er): New globals. Move from windows-nat.c.
11019
11020 2020-04-08 Tom Tromey <tromey@adacore.com>
11021
11022 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11023 (handle_load_dll): Update.
11024 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11025
11026 2020-04-08 Tom Tromey <tromey@adacore.com>
11027
11028 * windows-nat.c (enum thread_disposition_type): Move to
11029 nat/windows-nat.h.
11030 (windows_nat::thread_rec): Rename from thread_rec. No longer
11031 static.
11032 (windows_add_thread, windows_nat_target::fetch_registers)
11033 (windows_nat_target::store_registers, handle_exception)
11034 (windows_nat_target::resume, get_windows_debug_event)
11035 (windows_nat_target::get_tib_address)
11036 (windows_nat_target::thread_name)
11037 (windows_nat_target::thread_alive): Update.
11038 * nat/windows-nat.h (enum thread_disposition_type): Move from
11039 windows-nat.c.
11040 (thread_rec): Declare.
11041
11042 2020-04-08 Tom Tromey <tromey@adacore.com>
11043
11044 * windows-nat.c: Add "using namespace".
11045 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11046 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11047
11048 2020-04-08 Tom Tromey <tromey@adacore.com>
11049
11050 * nat/windows-nat.h (struct windows_thread_info): Declare
11051 destructor.
11052 * nat/windows-nat.c (~windows_thread_info): New.
11053
11054 2020-04-08 Tom Tromey <tromey@adacore.com>
11055
11056 PR gdb/22992
11057 * windows-nat.c (current_event): Update comment.
11058 (last_wait_event, desired_stop_thread_id): New globals.
11059 (struct pending_stop): New.
11060 (pending_stops): New global.
11061 (windows_nat_target) <stopped_by_sw_breakpoint>
11062 <supports_stopped_by_sw_breakpoint>: New methods.
11063 (windows_fetch_one_register): Add assertions. Adjust PC.
11064 (windows_continue): Handle pending stops. Suspend other threads
11065 when stepping. Use last_wait_event
11066 (wait_for_debug_event): New function.
11067 (get_windows_debug_event): Use wait_for_debug_event. Handle
11068 pending stops. Queue spurious stops.
11069 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11070 (windows_nat_target::kill): Use wait_for_debug_event.
11071 * nat/windows-nat.h (struct windows_thread_info)
11072 <stopped_at_software_breakpoint>: New field.
11073 * nat/windows-nat.c (windows_thread_info::resume): Clear
11074 stopped_at_software_breakpoint.
11075
11076 2020-04-08 Tom Tromey <tromey@adacore.com>
11077
11078 * windows-nat.c (enum thread_disposition_type): New.
11079 (thread_rec): Replace "get_context" parameter with "disposition";
11080 change type.
11081 (windows_add_thread, windows_nat_target::fetch_registers)
11082 (windows_nat_target::store_registers, handle_exception)
11083 (windows_nat_target::resume, get_windows_debug_event)
11084 (windows_nat_target::get_tib_address)
11085 (windows_nat_target::thread_name)
11086 (windows_nat_target::thread_alive): Update.
11087
11088 2020-04-08 Tom Tromey <tromey@adacore.com>
11089
11090 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11091 (windows_continue): Use windows_continue::resume.
11092 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11093 resume>: Declare new methods.
11094 * nat/windows-nat.c: New file.
11095 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11096
11097 2020-04-08 Tom Tromey <tromey@adacore.com>
11098
11099 * windows-nat.c (windows_add_thread, windows_delete_thread)
11100 (windows_nat_target::fetch_registers)
11101 (windows_nat_target::store_registers, fake_create_process)
11102 (windows_nat_target::resume, windows_nat_target::resume)
11103 (get_windows_debug_event, windows_nat_target::wait)
11104 (windows_nat_target::pid_to_str)
11105 (windows_nat_target::get_tib_address)
11106 (windows_nat_target::get_ada_task_ptid)
11107 (windows_nat_target::thread_name)
11108 (windows_nat_target::thread_alive): Use lwp, not tid.
11109
11110 2020-04-08 Tom Tromey <tromey@adacore.com>
11111
11112 * windows-nat.c (handle_exception)
11113 (windows_nat_target::thread_name): Update.
11114 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11115 <name>: Now unique_xmalloc_ptr.
11116
11117 2020-04-08 Tom Tromey <tromey@adacore.com>
11118
11119 * windows-nat.c (thread_rec)
11120 (windows_nat_target::fetch_registers): Update.
11121 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11122 Update comment.
11123 <debug_registers_changed, reload_context>: Now bool.
11124
11125 2020-04-08 Tom Tromey <tromey@adacore.com>
11126
11127 * windows-nat.c (windows_add_thread): Use new.
11128 (windows_init_thread_list, windows_delete_thread): Use delete.
11129 (get_windows_debug_event): Update.
11130 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11131 destructor, and initializers.
11132
11133 2020-04-08 Tom Tromey <tromey@adacore.com>
11134
11135 * windows-nat.c (struct windows_thread_info): Remove.
11136 * nat/windows-nat.h: New file.
11137
11138 2020-04-08 Tom Tromey <tromey@adacore.com>
11139
11140 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11141 (thread_rec, windows_add_thread, windows_delete_thread)
11142 (windows_continue): Update.
11143
11144 2020-04-08 Tom Tromey <tromey@adacore.com>
11145
11146 * windows-nat.c (struct windows_thread_info): Remove typedef.
11147 (thread_head): Remove.
11148 (thread_list): New global.
11149 (thread_rec, windows_add_thread, windows_init_thread_list)
11150 (windows_delete_thread, windows_continue): Update.
11151
11152 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11153
11154 * windows-tdep.h (windows_init_abi): Add comment.
11155 (cygwin_init_abi): New declaration.
11156 * windows-tdep.c: Split signal enumeration in two, one for
11157 Windows and one for Cygwin.
11158 (windows_gdb_signal_to_target): Only deal with signal of the
11159 Windows OS ABI.
11160 (cygwin_gdb_signal_to_target): New function.
11161 (windows_init_abi): Rename to windows_init_abi_common, don't set
11162 gdb_signal_to_target gdbarch method. Add new new function with
11163 this name.
11164 (cygwin_init_abi): New function.
11165 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11166 comment. Don't call windows_init_abi.
11167 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11168 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11169 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11170 i386_windows_init_abi_common, don't call windows_init_abi. Add
11171 a new function of this name.
11172 (i386_cygwin_init_abi): New function.
11173 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11174 OS ABI Cygwin.
11175
11176 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11177
11178 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11179 parameter.c.
11180 (dwarf2_read_gdb_index): Update.
11181
11182 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11183
11184 * nbsd-tdep.c: Include "objfiles.h".
11185 (nbsd_skip_solib_resolver): New.
11186 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11187
11188 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11189
11190 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11191 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11192 with DW_LLE_base_addressx are being emitted in DWARFv5.
11193 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11194 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11195 unsigned integer.
11196
11197 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11198
11199 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11200 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11201 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11202 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11203 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11204 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11205 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11206
11207
11208 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11209
11210 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11211 (read_loclist_index): New function definition.
11212 (lookup_loclist_base): New function definition.
11213 (read_loclist_header): New function definition.
11214 (dwarf2_cu): Add loclist_base and loclist_header field.
11215 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11216 (read_full_die_1): Read the value of DW_AT_loclists_base.
11217 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11218 (read_attribute_value): Handle DW_FORM_loclistx.
11219 (skip_one_die): Handle DW_FORM_loclistx.
11220 (loclist_header): New structure declaration.
11221 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11222
11223 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11224
11225 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11226 constructor. Remove `addr` parameter from other constructor and
11227 add `per_cu` parameter.
11228 * dwarf2/read.c (create_partial_symtab): Update.
11229
11230 2020-04-07 Tom de Vries <tdevries@suse.de>
11231
11232 PR symtab/25796
11233 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11234 (partial_die_info::fixup): Inherit has_const_value.
11235
11236 2020-04-07 Tom de Vries <tdevries@suse.de>
11237
11238 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11239 symbols without address.
11240
11241 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11242
11243 * nbsd-nat.h (struct thread_info): Add forward declaration.
11244 (nbsd_nat_target::thread_alive): Add.
11245 (nbsd_nat_target::thread_name): Likewise.
11246 (nbsd_nat_target::update_thread_list): Likewise.
11247 (update_thread_list::post_attach): Likewise.
11248 (post_attach::pid_to_str): Likewise.
11249 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11250 (nbsd_thread_lister): Add.
11251 (nbsd_nat_target::thread_alive): Likewise.
11252 (nbsd_nat_target::thread_name): Likewise.
11253 (nbsd_add_threads): Likewise.
11254 (update_thread_list::post_attach): Likewise.
11255 (nbsd_nat_target::update_thread_list): Likewise.
11256 (post_attach::pid_to_str): Likewise.
11257
11258 2020-04-06 Tom Tromey <tromey@adacore.com>
11259
11260 * ada-valprint.c (print_variant_part): Extract the variant field.
11261 (print_field_values): Use the field as the outer value when
11262 recursing.
11263
11264 2020-04-06 Tom Tromey <tromey@adacore.com>
11265
11266 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11267 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11268 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11269 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11270 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11271
11272 2020-04-06 Tom Tromey <tromey@adacore.com>
11273
11274 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11275 TYPE_CODE_ERROR.
11276
11277 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11278
11279 * nbsd-tdep.c: Include "gdbarch.h".
11280 Define enum with NetBSD signal numbers.
11281 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11282 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11283 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11284 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11285 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11286 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11287 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11288 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11289 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11290 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11291 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11292 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11293
11294 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11295
11296 PR gdb/25325
11297 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11298
11299 2020-04-03 Tom Tromey <tromey@adacore.com>
11300
11301 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11302 Read constant block.
11303
11304 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11305
11306 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11307 (gdb_bfd_get_full_section_contents): New declaration.
11308 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11309 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11310 gdb_bfd_get_full_section_contents.
11311
11312 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11313
11314 * exec.c (build_section_table): Replace internal_error with
11315 gdb_assert.
11316 (section_table_xfer_memory_partial): Likewise.
11317 * mdebugread.c (parse_partial_symbols): Likewise.
11318 * psymtab.c (lookup_partial_symbol): Likewise.
11319 * utils.c (wrap_here): Likewise.
11320
11321 2020-04-02 Tom Tromey <tromey@adacore.com>
11322
11323 * f-lang.c (build_fortran_types): Use arch_type to initialize
11324 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11325
11326 2020-04-02 Tom Tromey <tromey@adacore.com>
11327
11328 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11329 of attributes.
11330
11331 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11332 Bernd Edlinger <bernd.edlinger@hotmail.de>
11333 Tom Tromey <tromey@adacore.com>
11334
11335 * buildsym.c (buildsym_compunit::record_line): Remove
11336 deduplication code.
11337
11338 2020-04-02 Tom de Vries <tdevries@suse.de>
11339
11340 PR ada/24671
11341 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11342
11343 2020-04-02 Tom de Vries <tdevries@suse.de>
11344
11345 * dwarf2/read.c (dwarf2_gdb_index_functions,
11346 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11347 NULL.
11348 * psymtab.c (psym_lookup_global_symbol_language): New function.
11349 (psym_functions): Init psym_lookup_global_symbol_language with
11350 psym_lookup_global_symbol_language.
11351 * symfile-debug.c (debug_sym_quick_functions): Init
11352 lookup_global_symbol_language with NULL.
11353 * symfile.c (set_initial_language): Remove fixme comment.
11354 * symfile.h (struct quick_symbol_functions): Add
11355 lookup_global_symbol_language.
11356 * symtab.c (find_quick_global_symbol_language): New function.
11357 (find_main_name): Use find_quick_global_symbol_language.
11358
11359 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11360
11361 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11362
11363 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11364
11365 * buildsym.c (record_line): Fix undefined behavior and preserve
11366 lines at eof.
11367
11368 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11369
11370 * buildsym.c (record_line): Fix the resizing condition.
11371
11372 2020-04-01 Tom Tromey <tom@tromey.com>
11373
11374 * value.h (value_literal_complex): Add comment.
11375 * valops.c (value_literal_complex): Refer to value.h.
11376
11377 2020-04-01 Tom Tromey <tom@tromey.com>
11378
11379 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11380 (scalar_type): New rule, from typebase.
11381 (typebase): Use scalar_type. Recognize complex types.
11382 (field_name): Handle FLOAT_KEYWORD.
11383 (ident_tokens): Add _Complex and __complex__.
11384
11385 2020-04-01 Tom Tromey <tom@tromey.com>
11386
11387 PR exp/25299:
11388 * valarith.c (promotion_type, complex_binop): New functions.
11389 (scalar_binop): Handle complex numbers. Use promotion_type.
11390 (value_pos, value_neg, value_complement): Handle complex numbers.
11391
11392 2020-04-01 Tom Tromey <tom@tromey.com>
11393
11394 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11395 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11396 (parse_number): Handle complex numbers.
11397
11398 2020-04-01 Tom Tromey <tom@tromey.com>
11399
11400 * c-valprint.c (c_decorations): Change complex suffix to "i".
11401
11402 2020-04-01 Tom Tromey <tom@tromey.com>
11403
11404 * valprint.c (generic_value_print_complex): Use accessors.
11405 * value.h (value_real_part, value_imaginary_part): Declare.
11406 * valops.c (value_real_part, value_imaginary_part): New
11407 functions.
11408 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11409
11410 2020-04-01 Tom Tromey <tom@tromey.com>
11411
11412 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11413 (read_range_type): Update.
11414 * mdebugread.c (basic_type): Update.
11415 * go-lang.c (build_go_types): Use init_complex_type.
11416 * gdbtypes.h (struct main_type) <complex_type>: New member.
11417 (init_complex_type): Update.
11418 (arch_complex_type): Don't declare.
11419 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11420 Make name if none given. Use alloc_type_copy. Look for cached
11421 complex type.
11422 (arch_complex_type): Remove.
11423 (gdbtypes_post_init): Use init_complex_type.
11424 * f-lang.c (build_fortran_types): Use init_complex_type.
11425 * dwarf2/read.c (read_base_type): Update.
11426 * d-lang.c (build_d_types): Use init_complex_type.
11427 * ctfread.c (read_base_type): Update.
11428
11429 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11430
11431 * infrun.c (stop_all_threads): Update assertion, plus when
11432 stopping threads, take into account that we might be trying
11433 to stop an all-stop target.
11434 (stop_waiting): Call 'stop_all_threads' if there exists a
11435 non-stop target.
11436
11437 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11438
11439 * target.h (exists_non_stop_target): New function declaration.
11440 * target.c (exists_non_stop_target): New function.
11441
11442 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11443
11444 PR gdb/24789
11445 * eval.c (is_integral_or_integral_reference): New function.
11446 (evaluate_subexp_standard): Allow integer references in
11447 pointer arithmetic.
11448
11449 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11450
11451 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11452 check for no ptid in the stop reply when the target is non-stop.
11453
11454 2020-04-01 Tom Tromey <tromey@adacore.com>
11455
11456 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11457 "name" parameter to rvalue reference. Initialize m_name_holder.
11458 <lookup_name_info>: New overloads.
11459 <name>: Return gdb::string_view.
11460 <c_str>: New method.
11461 <make_ignore_params>: Update.
11462 <search_name_hash>: Update.
11463 <language_lookup_name>: Return const char *.
11464 <m_name>: Change type.
11465 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11466 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11467 (lookup_name_info::match_any): Update.
11468 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11469 Update.
11470 * minsyms.c (linkage_name_str): Update.
11471 * language.c (default_symbol_name_matcher): Update.
11472 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11473 Update.
11474 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11475 (ada_lookup_name_info::ada_lookup_name_info): Update.
11476 (literal_symbol_name_matcher): Update.
11477
11478 2020-04-01 Tom Tromey <tromey@adacore.com>
11479
11480 * psymtab.c (psymtab_search_name): Remove function.
11481 (psym_lookup_symbol): Create search name and lookup name here.
11482 (lookup_partial_symbol): Remove "name" parameter; add
11483 lookup_name.
11484 (psym_expand_symtabs_for_function): Update.
11485
11486 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11487
11488 PR tui/25597:
11489 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11490
11491 2020-03-31 Tom Tromey <tromey@adacore.com>
11492
11493 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11494 memcpy.
11495
11496 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11497
11498 * features/riscv/32bit-csr.xml: Regenerated.
11499 * features/riscv/64bit-csr.xml: Regenerated.
11500
11501 2020-03-30 Tom Tromey <tromey@adacore.com>
11502
11503 * ada-valprint.c (print_variant_part): Update.
11504 * ada-lang.h (ada_which_variant_applies): Update.
11505 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11506 outer_valaddr parameters; replace with "outer" value parameter.
11507 (to_fixed_variant_branch_type): Update.
11508
11509 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11510
11511 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11512 <list>. Remove inclusion of observable.h.
11513 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11514 (struct arch_lwp_info): New struct.
11515 (class ppc_linux_dreg_interface): New class.
11516 (struct ppc_linux_process_info): New struct.
11517 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11518 <low_new_clone, low_forget_process, low_prepare_to_resume>
11519 <copy_thread_dreg_state, mark_thread_stale>
11520 <mark_debug_registers_changed, register_hw_breakpoint>
11521 <clear_hw_breakpoint, register_wp, clear_wp>
11522 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11523 <num_memory_accesses, get_trigger_type>
11524 <create_watchpoint_request, hwdebug_point_cmp>
11525 <init_arch_lwp_info, get_arch_lwp_info>
11526 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11527 methods.
11528 <struct ptid_hash>: New inner struct.
11529 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11530 members.
11531 (saved_dabr_value, hwdebug_info, max_slots_number)
11532 (struct hw_break_tuple, struct thread_points, ppc_threads)
11533 (have_ptrace_hwdebug_interface)
11534 (hwdebug_find_thread_points_by_tid)
11535 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11536 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11537 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11538 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11539 use m_dreg_interface.
11540 (hwdebug_point_cmp): Change to...
11541 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11542 reference arguments instead of pointers.
11543 (ppc_linux_nat_target::ranged_break_num_registers): Use
11544 m_dreg_interface.
11545 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11546 m_dreg_interface. Call register_hw_breakpoint.
11547 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11548 m_dreg_interface. Call clear_hw_breakpoint.
11549 (get_trigger_type): Change to...
11550 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11551 comment.
11552 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11553 use m_dreg_interface. Call register_hw_breakpoint.
11554 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11555 use m_dreg_interface. Call clear_hw_breakpoint.
11556 (can_use_watchpoint_cond_accel): Change to...
11557 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11558 method. Update comment, use m_dreg_interface and
11559 m_process_info.
11560 (calculate_dvc): Change to...
11561 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11562 m_dreg_interface.
11563 (num_memory_accesses): Change to...
11564 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11565 (check_condition): Change to...
11566 (ppc_linux_nat_target::check_condition): ...this method.
11567 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11568 comment, use m_dreg_interface.
11569 (create_watchpoint_request): Change to...
11570 (ppc_linux_nat_target::create_watchpoint_request): ...this
11571 method. Use m_dreg_interface.
11572 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11573 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11574 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11575 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11576 (ppc_linux_nat_target::low_forget_process)
11577 (ppc_linux_nat_target::low_new_fork)
11578 (ppc_linux_nat_target::low_new_clone)
11579 (ppc_linux_nat_target::low_delete_thread)
11580 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11581 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11582 only call mark_thread_stale.
11583 (ppc_linux_thread_exit): Remove.
11584 (ppc_linux_nat_target::stopped_data_address): Change to...
11585 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11586 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11587 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11588 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11589 comment. Call low_stopped_data_address.
11590 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11591 m_dreg_interface.
11592 (ppc_linux_nat_target::masked_watch_num_registers): Use
11593 m_dreg_interface.
11594 (ppc_linux_nat_target::copy_thread_dreg_state)
11595 (ppc_linux_nat_target::mark_thread_stale)
11596 (ppc_linux_nat_target::mark_debug_registers_changed)
11597 (ppc_linux_nat_target::register_hw_breakpoint)
11598 (ppc_linux_nat_target::clear_hw_breakpoint)
11599 (ppc_linux_nat_target::register_wp)
11600 (ppc_linux_nat_target::clear_wp)
11601 (ppc_linux_nat_target::init_arch_lwp_info)
11602 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11603 (_initialize_ppc_linux_nat): Remove observer callback.
11604
11605 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11606
11607 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11608 (ppc_linux_nat_target::auxv_parse)
11609 (ppc_linux_nat_target::read_description)
11610 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11611 Move up.
11612
11613 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11614
11615 * linux-nat.h (low_new_clone): New method.
11616 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11617
11618 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11619
11620 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11621 (dbx_expand_psymtab): ... this.
11622 (start_psymtab): Update.
11623 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11624 (mdebug_expand_psymtab): ... this.
11625 (parse_partial_symbols): Update.
11626 (new_psymtab): Update.
11627 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11628 (xcoff_expand_psymtab): ... this.
11629 (xcoff_start_psymtab): Update.
11630
11631 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11632
11633 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11634 <expand_dependencies>: ... this.
11635 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11636 (partial_symtab::expand_dependencies): ... this.
11637 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11638 Update.
11639 (dwarf2_psymtab::expand_psymtab): Update.
11640 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11641 * mdebugread.c (psymtab_to_symtab_1): Update.
11642 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11643
11644 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11645
11646 * psympriv.h (discard_psymtab): Remove.
11647 * dbxread.c (dbx_end_psymtab): Update.
11648 * xcoffread.c (xcoff_end_psymtab): Update.
11649
11650 2020-03-28 Tom Tromey <tom@tromey.com>
11651
11652 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11653 comment.
11654
11655 2020-03-28 Tom Tromey <tom@tromey.com>
11656
11657 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11658
11659 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11660
11661 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11662
11663 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11664
11665 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11666
11667 2020-03-26 Tom Tromey <tom@tromey.com>
11668
11669 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11670 (mark_common_block_symbol_computed, read_tag_string_type)
11671 (attr_to_dynamic_prop, read_subrange_type): Update.
11672 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11673 to be methods on struct attribute.
11674 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11675 (read_call_site_scope, partial_die_info::read)
11676 (partial_die_info::read, lookup_die_type, follow_die_ref):
11677 Update.
11678 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11679 from dwarf2_get_ref_die_offset.
11680 (attribute::constant_value): New method, from
11681 dwarf2_get_attr_constant_value.
11682 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11683 Declare method.
11684 <constant_value>: New method.
11685
11686 2020-03-26 Tom Tromey <tom@tromey.com>
11687
11688 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11689 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11690 (dwarf_type_encoding_name): Move to stringify.c.
11691 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11692 * dwarf2/stringify.c: New file.
11693 * dwarf2/stringify.h: New file.
11694
11695 2020-03-26 Tom Tromey <tom@tromey.com>
11696
11697 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11698 Rewrite.
11699
11700 2020-03-26 Tom Tromey <tom@tromey.com>
11701
11702 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11703 methods.
11704 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11705 (lookup_ranges_base): Likewise.
11706 (read_cutu_die_from_dwo, read_full_die_1): Update.
11707
11708 2020-03-26 Tom Tromey <tom@tromey.com>
11709
11710 * dwarf2/read.c (read_import_statement, read_file_scope)
11711 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11712 (read_lexical_block_scope, read_call_site_scope)
11713 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11714 (handle_struct_member_die, process_structure_scope)
11715 (update_enumeration_type_from_children)
11716 (process_enumeration_scope, read_array_type, read_common_block)
11717 (read_namespace, read_module, read_subroutine_type): Update.
11718 (sibling_die): Remove.
11719
11720 2020-03-26 Tom Tromey <tom@tromey.com>
11721
11722 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11723 (build_type_psymtabs_reader, read_structure_type)
11724 (read_enumeration_type, read_full_die_1): Update.
11725 (dwarf2_attr_no_follow): Move to die.h.
11726 * dwarf2/die.h (struct die_info) <attr>: New method.
11727
11728 2020-03-26 Tom Tromey <tom@tromey.com>
11729
11730 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11731 <base_address>: Now an optional.
11732 (dwarf2_find_base_address, dwarf2_rnglists_process)
11733 (dwarf2_ranges_process, fill_in_loclist_baton)
11734 (dwarf2_symbol_mark_computed): Update.
11735
11736 2020-03-26 Tom Tromey <tom@tromey.com>
11737
11738 * dwarf2/read.c (struct die_info): Move to die.h.
11739 * dwarf2/die.h: New file.
11740
11741 2020-03-26 Tom Tromey <tom@tromey.com>
11742
11743 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11744 * dwarf2/read.c
11745 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11746 Move to line-header.c.
11747 (read_checked_initial_length_and_offset, read_formatted_entries):
11748 Likewise.
11749 (dwarf_decode_line_header): Split into two.
11750 * dwarf2/line-header.c
11751 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11752 Move from read.c.
11753 (read_checked_initial_length_and_offset, read_formatted_entries):
11754 Likewise.
11755 (dwarf_decode_line_header): New function, split from read.c.
11756
11757 2020-03-26 Tom Tromey <tom@tromey.com>
11758
11759 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11760 Declare method.
11761 * dwarf2/read.c (read_attribute_value): Update.
11762 (dwarf2_per_objfile::read_line_string): Rename from
11763 read_indirect_line_string.
11764 (read_formatted_entries): Update.
11765
11766 2020-03-26 Tom Tromey <tom@tromey.com>
11767
11768 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11769 variable.
11770
11771 2020-03-26 Tom Tromey <tom@tromey.com>
11772
11773 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11774 const.
11775 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11776 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11777 parameter const.
11778
11779 2020-03-26 Tom Tromey <tom@tromey.com>
11780
11781 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11782 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11783 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11784 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11785
11786 2020-03-26 Tom Tromey <tom@tromey.com>
11787
11788 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11789 file_names_size, file_full_name, file_file_name>: Use const.
11790 <file_name_at, file_names>: Add const overload.
11791 * dwarf2/line-header.c (line_header::file_file_name)
11792 (line_header::file_full_name): Update.
11793
11794 2020-03-26 Tom Tromey <tom@tromey.com>
11795
11796 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11797 (macro_start_file, consume_improper_spaces)
11798 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11799 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11800 (dwarf_decode_macros): Move to macro.c.
11801 * dwarf2/macro.c: New file.
11802 * dwarf2/macro.h: New file.
11803 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11804
11805 2020-03-26 Tom Tromey <tom@tromey.com>
11806
11807 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11808 method.
11809 * dwarf2/section.c: New method. From
11810 read_indirect_string_at_offset_from.
11811 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11812 (read_indirect_string_at_offset_from): Move to section.c.
11813 (read_indirect_string_at_offset): Rewrite.
11814 (read_indirect_line_string_at_offset): Remove.
11815 (read_indirect_string, read_indirect_line_string)
11816 (dwarf_decode_macro_bytes): Update.
11817
11818 2020-03-26 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2/section.h (struct dwarf2_section_info)
11821 <overload_complaint>: Declare.
11822 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11823 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11824 Rename from dwarf2_section_buffer_overflow_complaint.
11825 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11826 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11827
11828 2020-03-26 Tom Tromey <tom@tromey.com>
11829
11830 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11831 Declare.
11832 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11833 Move from read.c.
11834 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11835 to section.c.
11836
11837 2020-03-26 Tom Tromey <tom@tromey.com>
11838
11839 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11840
11841 2020-03-26 Tom Tromey <tom@tromey.com>
11842
11843 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11844 "builder".
11845 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11846 parameter.
11847 (dwarf_decode_macros): Update.
11848
11849 2020-03-26 Tom Tromey <tom@tromey.com>
11850
11851 * dwarf2/read.c (read_attribute_value): Update.
11852 (read_indirect_string_from_dwz): Move to dwz.c; change into
11853 method.
11854 (dwarf_decode_macro_bytes): Update.
11855 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11856 * dwarf2/dwz.c: New file.
11857 * Makefile.in (COMMON_SFILES): Add dwz.c.
11858
11859 2020-03-26 Tom Tromey <tom@tromey.com>
11860
11861 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11862 * dwarf2/read.c: Add include.
11863 * dwarf2/index-write.c: Add include.
11864 * dwarf2/index-cache.c: Add include.
11865 * dwarf2/dwz.h: New file.
11866
11867 2020-03-25 Tom Tromey <tom@tromey.com>
11868
11869 * compile/compile-object-load.c (get_out_value_type): Mention
11870 correct symbol name in error message.
11871
11872 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11873
11874 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11875
11876 2020-03-25 Tom de Vries <tdevries@suse.de>
11877
11878 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11879 * symmisc.c (dump_symtab_1): Print user and includes fields.
11880 (maintenance_info_symtabs): Same.
11881
11882 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11883
11884 PR gdb/25534
11885 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11886 (riscv_regcache_cooked_write): New function.
11887 (riscv_push_dummy_call): Use new function.
11888 (riscv_return_value): Likewise.
11889
11890 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11891
11892 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11893 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11894 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11895 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11896 * infrun.c (follow_fork): Likewise.
11897 (follow_fork_inferior): Likewise.
11898 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11899 * linux-nat.h (class linux_nat_target): Likewise.
11900 * remote.c (class remote_target) <follow_fork>: Likewise.
11901 (remote_target::follow_fork): Likewise.
11902 * target-delegates.c: Re-generate.
11903 * target.c (default_follow_fork): Likewise.
11904 (target_follow_fork): Likewise.
11905 * target.h (struct target_ops) <follow_fork>: Likewise.
11906 (target_follow_fork): Likewise.
11907
11908 2020-03-24 Tom de Vries <tdevries@suse.de>
11909
11910 * psymtab.c (maintenance_info_psymtabs): Print user field.
11911
11912 2020-03-20 Tom Tromey <tromey@adacore.com>
11913
11914 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11915 const.
11916 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11917 const.
11918
11919 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11920
11921 * ptrace.m4: Don't check for ptrace declaration.
11922 * config.in: Re-generate.
11923 * configure: Re-generate.
11924 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11925 not defined.
11926
11927 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11928
11929 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11930 `PTRACE_TYPE_RET'.
11931 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11932 * sparc-nat.c (gdb_ptrace): Likewise.
11933 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11934
11935 2020-03-20 Tom Tromey <tromey@adacore.com>
11936
11937 * c-exp.y (lex_one_token): Fix assert.
11938
11939 2020-03-20 Tom Tromey <tromey@adacore.com>
11940
11941 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11942 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11943 strncpy call.
11944
11945 2020-03-20 Tom Tromey <tromey@adacore.com>
11946
11947 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11948
11949 2020-03-20 Tom Tromey <tromey@adacore.com>
11950
11951 * ada-valprint.c (print_variant_part): Remove parameters; switch
11952 to value-based API.
11953 (print_field_values): Likewise.
11954 (ada_val_print_struct_union): Likewise.
11955 (ada_value_print_1): Update.
11956
11957 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11958
11959 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11960 nbsd_nat_target instead of inf_ptrace_target.
11961 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11962 nbsd_nat_target.
11963
11964 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11965
11966 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11967 it to the ptrace call.
11968 * (store_registers): Likewise.
11969
11970 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11971
11972 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11973 it to the ptrace call.
11974 * (store_registers): Likewise.
11975
11976 2020-03-19 Luis Machado <luis.machado@linaro.org>
11977
11978 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11979 valid, fetch vg value from ptrace.
11980
11981 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11982 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11983 * inf-ptrace.c: Likewise.
11984 * (gdb_ptrace): Add.
11985 * (inf_ptrace_target::resume): Update.
11986 * (inf_ptrace_target::xfer_partial): Likewise.
11987 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11988 * (inf_ptrace_peek_poke): Update.
11989
11990 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11991
11992 * x86-bsd-nat.c (gdb_ptrace): New.
11993 * (x86bsd_dr_set): Add new argument `ptid'.
11994 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11995 x86bsd_dr_set_addr): Update.
11996
11997 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11998
11999 * remote.c (remote_target::process_stop_reply): Handle events for
12000 all threads differently.
12001
12002 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12003
12004 * completer.c (completion_tracker::remove_completion): Define new
12005 function.
12006 * completer.h (completion_tracker::remove_completion): Declare new
12007 function.
12008 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12009 when adding a C++ function symbol.
12010
12011 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12012
12013 * completer.c (completion_tracker::completion_hash_entry): Define
12014 new class.
12015 (advance_to_filename_complete_word_point): Call
12016 recompute_lowest_common_denominator.
12017 (completion_tracker::completion_tracker): Call discard_completions
12018 to setup the hash table.
12019 (completion_tracker::discard_completions): Allow for being called
12020 from the constructor, pass new equal function, and element deleter
12021 when constructing the hash table. Initialise new class member
12022 variables.
12023 (completion_tracker::maybe_add_completion): Remove use of
12024 m_entries_vec, and store more information into m_entries_hash.
12025 (completion_tracker::recompute_lcd_visitor): New function, most
12026 content taken from...
12027 (completion_tracker::recompute_lowest_common_denominator):
12028 ...here, this now just visits each item in the hash calling the
12029 above visitor.
12030 (completion_tracker::build_completion_result): Remove use of
12031 m_entries_vec, call recompute_lowest_common_denominator.
12032 * completer.h (completion_tracker::have_completions): Remove use
12033 of m_entries_vec.
12034 (completion_tracker::completion_hash_entry): Declare new class.
12035 (completion_tracker::recompute_lowest_common_denominator): Change
12036 function signature.
12037 (completion_tracker::recompute_lcd_visitor): Declare new function.
12038 (completion_tracker::m_entries_vec): Delete.
12039 (completion_tracker::m_entries_hash): Initialize to NULL.
12040 (completion_tracker::m_lowest_common_denominator_valid): New
12041 member variable.
12042 (completion_tracker::m_lowest_common_denominator_max_length): New
12043 member variable.
12044
12045 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12046
12047 * regformats/regdef.h: Put reg in gdb namespace.
12048
12049 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12050
12051 * i386-bsd-nat.c (gdb_ptrace): New.
12052 * (i386bsd_fetch_inferior_registers,
12053 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12054 * (i386bsd_fetch_inferior_registers,
12055 i386bsd_store_inferior_registers) Use gdb_ptrace.
12056
12057 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12058
12059 * amd64-bsd-nat.c (gdb_ptrace): New.
12060 * (amd64bsd_fetch_inferior_registers,
12061 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12062 * (amd64bsd_fetch_inferior_registers,
12063 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12064
12065 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12066
12067 * user-regs.c (user_reg::read): Rename to...
12068 (user_reg::xread): ...this.
12069 * (append_user_reg): Rename argument `read' to `xread'.
12070 * (user_reg_add_builtin): Likewise.
12071 * (user_reg_add): Likewise.
12072 * (value_of_user_reg): Likewise.
12073
12074 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12075
12076 * sparc-nat.c (gdb_ptrace): New.
12077 * sparc-nat.c (sparc_fetch_inferior_registers)
12078 (sparc_store_inferior_registers) Remove obsolete comment.
12079 * sparc-nat.c (sparc_fetch_inferior_registers)
12080 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12081 * sparc-nat.c (sparc_fetch_inferior_registers)
12082 (sparc_store_inferior_registers) Use gdb_ptrace.
12083
12084 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12085
12086 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12087 it to the ptrace call.
12088 * sh-nbsd-nat.c (store_registers): Likewise.
12089
12090 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12091
12092 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12093 nbsd_nat_target instead of inf_ptrace_target.
12094 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12095 nbsd_nat_target.
12096
12097 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12098
12099 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12100
12101 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12102
12103 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12104 <sys/sysctl.h>.
12105 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12106
12107 2020-03-17 Tom de Vries <tdevries@suse.de>
12108
12109 PR gdb/23710
12110 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12111 fields.
12112 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12113 fields.
12114 (process_imported_unit_die): Skip import of c++ CUs.
12115
12116 2020-03-16 Tom Tromey <tom@tromey.com>
12117
12118 * p-valprint.c (pascal_object_print_value): Initialize
12119 base_value.
12120
12121 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12122 Shahab Vahedi <shahab@synopsys.com>
12123
12124 * Makefile.in: Add arch/arc.o
12125 * configure.tgt: Likewise.
12126 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12127 (_initialize_arc_tdep): Don't initialize old target descriptions.
12128 (arc_read_description): New function to cache target descriptions.
12129 * arc-tdep.h (arc_read_description): Add proto type.
12130 * arch/arc.c: New file.
12131 * arch/arc.h: Likewise.
12132 * features/Makefile: Replace old target descriptions with new.
12133 * features/arc-arcompact.c: Remove.
12134 * features/arc-arcompact.xml: Likewise.
12135 * features/arc-v2.c: Likewise
12136 * features/arc-v2.xml: Likewise
12137 * features/arc/aux-arcompact.xml: New file.
12138 * features/arc/aux-v2.xml: Likewise.
12139 * features/arc/core-arcompact.xml: Likewise.
12140 * features/arc/core-v2.xml: Likewise.
12141 * features/arc/aux-arcompact.c: Generate.
12142 * features/arc/aux-v2.c: Likewise.
12143 * features/arc/core-arcompact.c: Likewise.
12144 * features/arc/core-v2.c: Likewise.
12145 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12146
12147 2020-03-16 Tom Tromey <tromey@adacore.com>
12148
12149 PR gdb/25663:
12150 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12151 putting value into bcache.
12152
12153 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12154
12155 PR gdb/21500
12156 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12157 to...
12158 (amd64_windows_init_abi_common): ... this. Don't set size of
12159 long type.
12160 (amd64_windows_init_abi): New function.
12161 (amd64_cygwin_init_abi): New function.
12162 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12163 the Cygwin OS ABI.
12164 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12165 comment.
12166
12167 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12168
12169 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12170 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12171 (pe_import_directory_entry): New struct type.
12172 (is_linked_with_cygwin_dll): New function.
12173 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12174 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12175 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12176
12177 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12178
12179 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12180 i386_cygwin_core_osabi_sniffer.
12181
12182 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12183
12184 * i386-cygwin-tdep.c: Rename to...
12185 * i386-windows-tdep.c: ... this.
12186 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12187 i386-windows-tdep.c.
12188 * configure.tgt: Likewise.
12189
12190 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12191
12192 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12193 * osabi.c (gdb_osabi_names): Add "Windows".
12194 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12195 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12196 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12197 i386_cygwin_osabi_sniffer.
12198 (_initialize_i386_cygwin_tdep): Register OS ABI
12199 GDB_OSABI_WINDOWS for i386.
12200 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12201 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12202 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12203 for x86-64.
12204 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12205 when the target matches '*-*-mingw*'.
12206
12207 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12208
12209 * defs.h (enum gdb_osabi): Move to...
12210 * osabi.h (enum gdb_osabi): ... here.
12211 * gdbarch.sh: Include osabi.h in gdbarch.h.
12212 * gdbarch.h: Re-generate.
12213
12214 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12215
12216 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12217 function.
12218 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12219
12220 2020-03-14 Tom Tromey <tom@tromey.com>
12221
12222 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12223 for C++.
12224 (c_type_print_modifier): Likewise. Add "language" parameter.
12225 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12226 (c_type_print_base_1): Update.
12227 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12228 constants.
12229 * type-stack.c (type_stack::insert): Handle tp_atomic and
12230 tp_restrict.
12231 (type_stack::follow_type_instance_flags): Likewise.
12232 (type_stack::follow_types): Likewise. Merge type-following code.
12233 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12234 (space_identifier, cv_with_space_id)
12235 (const_or_volatile_or_space_identifier_noopt)
12236 (const_or_volatile_or_space_identifier): Remove.
12237 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12238 rules.
12239 (ptr_operator, typebase): Update.
12240 (enum token_flag) <FLAG_C>: New constant.
12241 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12242 "_Atomic".
12243 (lex_one_token): Handle FLAG_C.
12244
12245 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12246
12247 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12248 it to the ptrace call.
12249 * m68k-bsd-nat.c (store_registers): Likewise.
12250
12251 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12252
12253 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12254 gdb_byte *.
12255 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12256 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12257 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12258
12259 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12260
12261 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12262 nbsd_nat_target instead of inf_ptrace_target.
12263 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12264 nbsd_nat_target.
12265
12266 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12267
12268 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12269 register_t.
12270
12271 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12272
12273 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12274 it to the ptrace call.
12275 * alpha-bsd-nat.c (store_registers): Likewise.
12276
12277 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12278
12279 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12280 includes.
12281 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12282 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12283 fill_fpregset): Likewise.
12284
12285 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12286
12287 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12288 nbsd_nat_target instead of inf_ptrace_target.
12289 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12290 nbsd_nat_target.
12291
12292 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12293
12294 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12295 register_t.
12296
12297 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12298
12299 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12300 it to the ptrace call.
12301 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12302 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12303 * arm-nbsd-nat.c (store_register): Likewise.
12304 * arm-nbsd-nat.c (store_regs): Likewise.
12305 * arm-nbsd-nat.c (store_fp_register): Likewise.
12306 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12307
12308 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12309
12310 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12311 nbsd_nat_target instead of inf_ptrace_target.
12312 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12313 nbsd_nat_target.
12314
12315 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12316
12317 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12318 it to the ptrace call.
12319 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12320
12321 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12322
12323 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12324 it to the ptrace call.
12325 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12326
12327 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12328
12329 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12330 gdb_byte *.
12331 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12332
12333 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12334
12335 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12336 instead of inf_ptrace_target.
12337 * vax-bsd-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 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12343 register_t.
12344
12345 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12346
12347 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12348 register_t.
12349
12350 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12351
12352 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12353 register_t.
12354
12355 2020-03-13 Tom Tromey <tom@tromey.com>
12356
12357 * value.h (val_print): Don't declare.
12358 * valprint.h (val_print_array_elements)
12359 (val_print_scalar_formatted, generic_val_print): Don't declare.
12360 * valprint.c (generic_val_print_array): Take a struct value.
12361 (generic_val_print_ptr, generic_val_print_memberptr)
12362 (generic_val_print_bool, generic_val_print_int)
12363 (generic_val_print_char, generic_val_print_complex)
12364 (generic_val_print): Remove.
12365 (generic_value_print): Update.
12366 (do_val_print): Remove unused parameters. Don't call
12367 la_val_print.
12368 (val_print): Remove.
12369 (common_val_print): Update. Don't call value_check_printable.
12370 (val_print_scalar_formatted, val_print_array_elements): Remove.
12371 * rust-lang.c (rust_val_print): Remove.
12372 (rust_language_defn): Update.
12373 * p-valprint.c (pascal_val_print): Remove.
12374 (pascal_value_print_inner): Update.
12375 (pascal_object_print_val_fields, pascal_object_print_val):
12376 Remove.
12377 (pascal_object_print_static_field): Update.
12378 * p-lang.h (pascal_val_print): Don't declare.
12379 * p-lang.c (pascal_language_defn): Update.
12380 * opencl-lang.c (opencl_language_defn): Update.
12381 * objc-lang.c (objc_language_defn): Update.
12382 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12383 * m2-lang.h (m2_val_print): Don't declare.
12384 * m2-lang.c (m2_language_defn): Update.
12385 * language.h (struct language_defn) <la_val_print>: Remove.
12386 * language.c (unk_lang_value_print_inner): Rename. Change
12387 argument types.
12388 (unknown_language_defn, auto_language_defn): Update.
12389 * go-valprint.c (go_val_print): Remove.
12390 * go-lang.h (go_val_print): Don't declare.
12391 * go-lang.c (go_language_defn): Update.
12392 * f-valprint.c (f_val_print): Remove.
12393 * f-lang.h (f_value_print): Don't declare.
12394 * f-lang.c (f_language_defn): Update.
12395 * d-valprint.c (d_val_print): Remove.
12396 * d-lang.h (d_value_print): Don't declare.
12397 * d-lang.c (d_language_defn): Update.
12398 * cp-valprint.c (cp_print_value_fields)
12399 (cp_print_value_fields_rtti, cp_print_value): Remove.
12400 (cp_print_static_field): Update.
12401 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12402 (c_val_print_struct, c_val_print_union, c_val_print_int)
12403 (c_val_print_memberptr, c_val_print): Remove.
12404 * c-lang.h (c_val_print_array, cp_print_value_fields)
12405 (cp_print_value_fields_rtti): Don't declare.
12406 * c-lang.c (c_language_defn, cplus_language_defn)
12407 (asm_language_defn, minimal_language_defn): Update.
12408 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12409 (ada_val_print_enum): Take a struct value.
12410 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12411 (ada_val_print): Remove.
12412 (ada_value_print_1): Update.
12413 (printable_val_type): Remove.
12414 * ada-lang.h (ada_val_print): Don't declare.
12415 * ada-lang.c (ada_language_defn): Update.
12416
12417 2020-03-13 Tom Tromey <tom@tromey.com>
12418
12419 * valprint.c (do_val_print): Update.
12420 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12421 a struct value.
12422 (value_to_value_object_no_release): Declare.
12423 * python/py-value.c (value_to_value_object_no_release): New
12424 function.
12425 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12426 struct value.
12427 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12428 function.
12429 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12430 a struct value.
12431 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12432 Declare.
12433 (gdbscm_apply_val_pretty_printer): Take a struct value.
12434 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12435 value.
12436 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12437 value.
12438 * extension-priv.h (struct extension_language_ops)
12439 <apply_val_pretty_printer>: Take a struct value.
12440 * cp-valprint.c (cp_print_value): Create a struct value.
12441 (cp_print_value): Update.
12442
12443 2020-03-13 Tom Tromey <tom@tromey.com>
12444
12445 * ada-valprint.c (print_field_values): Call common_val_print.
12446
12447 2020-03-13 Tom Tromey <tom@tromey.com>
12448
12449 * ada-valprint.c (val_print_packed_array_elements): Remove
12450 bitoffset and val parameters. Call common_val_print.
12451 (ada_val_print_string): Remove offset, address, and original_value
12452 parameters.
12453 (ada_val_print_array): Update.
12454 (ada_value_print_array): New function.
12455 (ada_value_print_1): Call it.
12456
12457 2020-03-13 Tom Tromey <tom@tromey.com>
12458
12459 * ada-valprint.c (ada_value_print): Use common_val_print.
12460
12461 2020-03-13 Tom Tromey <tom@tromey.com>
12462
12463 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12464
12465 2020-03-13 Tom Tromey <tom@tromey.com>
12466
12467 * ada-valprint.c (ada_value_print_num): New function.
12468 (ada_value_print_1): Use it.
12469
12470 2020-03-13 Tom Tromey <tom@tromey.com>
12471
12472 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12473
12474 2020-03-13 Tom Tromey <tom@tromey.com>
12475
12476 * ada-valprint.c (ada_value_print_ptr): New function.
12477 (ada_value_print_1): Use it.
12478
12479 2020-03-13 Tom Tromey <tom@tromey.com>
12480
12481 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12482 call common_val_print.
12483 (ada_val_print_1): Update.
12484 (ada_value_print_1): New function.
12485 (ada_value_print_inner): Rewrite.
12486
12487 2020-03-13 Tom Tromey <tom@tromey.com>
12488
12489 * cp-valprint.c (cp_print_value_fields): Update.
12490 (cp_print_value): New function.
12491
12492 2020-03-13 Tom Tromey <tom@tromey.com>
12493
12494 * m2-valprint.c (m2_value_print_inner): Use
12495 cp_print_value_fields.
12496 * cp-valprint.c (cp_print_value_fields): New function.
12497 * c-valprint.c (c_value_print_struct): New function.
12498 (c_value_print_inner): Use c_value_print_struct.
12499 * c-lang.h (cp_print_value_fields): Declare.
12500
12501 2020-03-13 Tom Tromey <tom@tromey.com>
12502
12503 * c-valprint.c (c_value_print_array): New function.
12504 (c_value_print_inner): Use it.
12505
12506 2020-03-13 Tom Tromey <tom@tromey.com>
12507
12508 * c-valprint.c (c_value_print_memberptr): New function.
12509 (c_value_print_inner): Use it.
12510
12511 2020-03-13 Tom Tromey <tom@tromey.com>
12512
12513 * c-valprint.c (c_value_print_int): New function.
12514 (c_value_print_inner): Use it.
12515
12516 2020-03-13 Tom Tromey <tom@tromey.com>
12517
12518 * c-valprint.c (c_value_print_ptr): New function.
12519 (c_value_print_inner): Use it.
12520
12521 2020-03-13 Tom Tromey <tom@tromey.com>
12522
12523 * c-valprint.c (c_value_print_inner): Rewrite.
12524
12525 2020-03-13 Tom Tromey <tom@tromey.com>
12526
12527 * valprint.c (generic_value_print_complex): New function.
12528 (generic_value_print): Use it.
12529
12530 2020-03-13 Tom Tromey <tom@tromey.com>
12531
12532 * valprint.c (generic_val_print_float): Don't call
12533 val_print_scalar_formatted.
12534 (generic_val_print, generic_value_print): Update.
12535
12536 2020-03-13 Tom Tromey <tom@tromey.com>
12537
12538 * valprint.c (generic_value_print_char): New function
12539 (generic_value_print): Use it.
12540
12541 2020-03-13 Tom Tromey <tom@tromey.com>
12542
12543 * valprint.c (generic_value_print_int): New function.
12544 (generic_value_print): Use it.
12545
12546 2020-03-13 Tom Tromey <tom@tromey.com>
12547
12548 * valprint.c (generic_value_print_bool): New function.
12549 (generic_value_print): Use it.
12550
12551 2020-03-13 Tom Tromey <tom@tromey.com>
12552
12553 * valprint.c (generic_val_print_func): Simplify.
12554 (generic_val_print, generic_value_print): Update.
12555
12556 2020-03-13 Tom Tromey <tom@tromey.com>
12557
12558 * valprint.c (generic_val_print_flags): Remove.
12559 (generic_val_print, generic_value_print): Update.
12560 (val_print_type_code_flags): Add original_value parameter.
12561
12562 2020-03-13 Tom Tromey <tom@tromey.com>
12563
12564 * valprint.c (generic_val_print): Update.
12565 (generic_value_print): Update.
12566 * valprint.c (generic_val_print_enum): Don't call
12567 val_print_scalar_formatted.
12568
12569 2020-03-13 Tom Tromey <tom@tromey.com>
12570
12571 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12572 * valprint.c (generic_value_print_ptr): New function.
12573
12574 2020-03-13 Tom Tromey <tom@tromey.com>
12575
12576 * valprint.c (generic_value_print): Rewrite.
12577
12578 2020-03-13 Tom Tromey <tom@tromey.com>
12579
12580 * p-valprint.c (pascal_object_print_value_fields)
12581 (pascal_object_print_value): New functions.
12582
12583 2020-03-13 Tom Tromey <tom@tromey.com>
12584
12585 * p-valprint.c (pascal_value_print_inner): Rewrite.
12586
12587 2020-03-13 Tom Tromey <tom@tromey.com>
12588
12589 * f-valprint.c (f_value_print_innner): Rewrite.
12590
12591 2020-03-13 Tom Tromey <tom@tromey.com>
12592
12593 * m2-valprint.c (m2_print_unbounded_array): New overload.
12594 (m2_print_unbounded_array): Update.
12595 (m2_print_array_contents): Take a struct value.
12596 (m2_value_print_inner): Rewrite.
12597
12598 2020-03-13 Tom Tromey <tom@tromey.com>
12599
12600 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12601 (d_value_print_inner): New function.
12602 * d-lang.h (d_value_print_inner): Declare.
12603 * d-lang.c (d_language_defn): Use d_value_print_inner.
12604
12605 2020-03-13 Tom Tromey <tom@tromey.com>
12606
12607 * go-valprint.c (go_value_print_inner): New function.
12608 * go-lang.h (go_value_print_inner): Declare.
12609 * go-lang.c (go_language_defn): Use go_value_print_inner.
12610
12611 2020-03-13 Tom Tromey <tom@tromey.com>
12612
12613 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12614 API.
12615 (rust_val_print): Rewrite.
12616 (rust_value_print_inner): New function, from rust_val_print.
12617 (rust_language_defn): Use rust_value_print_inner.
12618
12619 2020-03-13 Tom Tromey <tom@tromey.com>
12620
12621 * ada-valprint.c (ada_value_print_inner): New function.
12622 * ada-lang.h (ada_value_print_inner): Declare.
12623 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12624
12625 2020-03-13 Tom Tromey <tom@tromey.com>
12626
12627 * f-valprint.c (f_value_print_innner): New function.
12628 * f-lang.h (f_value_print_innner): Declare.
12629 * f-lang.c (f_language_defn): Use f_value_print_innner.
12630
12631 2020-03-13 Tom Tromey <tom@tromey.com>
12632
12633 * p-valprint.c (pascal_value_print_inner): New function.
12634 * p-lang.h (pascal_value_print_inner): Declare.
12635 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12636
12637 2020-03-13 Tom Tromey <tom@tromey.com>
12638
12639 * m2-valprint.c (m2_value_print_inner): New function.
12640 * m2-lang.h (m2_value_print_inner): Declare.
12641 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12642
12643 2020-03-13 Tom Tromey <tom@tromey.com>
12644
12645 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12646 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12647 * c-valprint.c (c_value_print_inner): New function.
12648 * c-lang.h (c_value_print_inner): Declare.
12649 * c-lang.c (c_language_defn, cplus_language_defn)
12650 (asm_language_defn, minimal_language_defn): Use
12651 c_value_print_inner.
12652
12653 2020-03-13 Tom Tromey <tom@tromey.com>
12654
12655 * p-valprint.c (pascal_object_print_value_fields): Now static.
12656 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12657
12658 2020-03-13 Tom Tromey <tom@tromey.com>
12659
12660 * c-valprint.c (c_val_print_array): Simplify.
12661
12662 2020-03-13 Tom Tromey <tom@tromey.com>
12663
12664 * valprint.c (value_print_array_elements): New function.
12665 * valprint.h (value_print_array_elements): Declare.
12666
12667 2020-03-13 Tom Tromey <tom@tromey.com>
12668
12669 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12670 * mips-tdep.c (mips_print_register): Use
12671 value_print_scalar_formatted.
12672
12673 2020-03-13 Tom Tromey <tom@tromey.com>
12674
12675 * valprint.h (value_print_scalar_formatted): Declare.
12676 * valprint.c (value_print_scalar_formatted): New function.
12677
12678 2020-03-13 Tom Tromey <tom@tromey.com>
12679
12680 * valprint.h (generic_value_print): Declare.
12681 * valprint.c (generic_value_print): New function.
12682
12683 2020-03-13 Tom Tromey <tom@tromey.com>
12684
12685 * valprint.c (do_val_print): Call la_value_print_inner, if
12686 available.
12687 * rust-lang.c (rust_language_defn): Update.
12688 * p-lang.c (pascal_language_defn): Update.
12689 * opencl-lang.c (opencl_language_defn): Update.
12690 * objc-lang.c (objc_language_defn): Update.
12691 * m2-lang.c (m2_language_defn): Update.
12692 * language.h (struct language_defn) <la_value_print_inner>: New
12693 member.
12694 * language.c (unknown_language_defn, auto_language_defn): Update.
12695 * go-lang.c (go_language_defn): Update.
12696 * f-lang.c (f_language_defn): Update.
12697 * d-lang.c (d_language_defn): Update.
12698 * c-lang.c (c_language_defn, cplus_language_defn)
12699 (asm_language_defn, minimal_language_defn): Update.
12700 * ada-lang.c (ada_language_defn): Update.
12701
12702 2020-03-13 Tom Tromey <tom@tromey.com>
12703
12704 * c-valprint.c (c_value_print): Use common_val_print.
12705
12706 2020-03-13 Tom Tromey <tom@tromey.com>
12707
12708 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12709
12710 2020-03-13 Tom Tromey <tom@tromey.com>
12711
12712 * f-valprint.c (f77_print_array_1, f_val_print): Use
12713 common_val_print.
12714
12715 2020-03-13 Tom Tromey <tom@tromey.com>
12716
12717 * riscv-tdep.c (riscv_print_one_register_info): Use
12718 common_val_print.
12719
12720 2020-03-13 Tom Tromey <tom@tromey.com>
12721
12722 * mi/mi-main.c (output_register): Use common_val_print.
12723
12724 2020-03-13 Tom Tromey <tom@tromey.com>
12725
12726 * infcmd.c (default_print_one_register_info): Use
12727 common_val_print.
12728
12729 2020-03-13 Tom Tromey <tom@tromey.com>
12730
12731 * valprint.h (common_val_print_checked): Declare.
12732 * valprint.c (common_val_print_checked): New function.
12733 * stack.c (print_frame_arg): Use common_val_print_checked.
12734
12735 2020-03-13 Tom Tromey <tom@tromey.com>
12736
12737 * valprint.c (do_val_print): New function, from val_print.
12738 (val_print): Use do_val_print.
12739 (common_val_print): Use do_val_print.
12740
12741 2020-03-13 Tom Tromey <tom@tromey.com>
12742
12743 * valprint.c (value_print): Use scoped_value_mark.
12744
12745 2020-03-13 Tom de Vries <tdevries@suse.de>
12746
12747 PR symtab/25646
12748 * psymtab.c (partial_symtab::partial_symtab): Don't set
12749 globals_offset and statics_offset. Push element onto
12750 current_global_psymbols and current_static_psymbols stacks.
12751 (concat): New function.
12752 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12753 element from current_global_psymbols and current_static_psymbols
12754 stacks. Concat popped elements to global_psymbols and
12755 static_symbols.
12756 (add_psymbol_to_list): Use current_global_psymbols and
12757 current_static_psymbols stacks.
12758 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12759 current_static_psymbols fields.
12760
12761 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12762
12763 * corelow.c (sniff_core_bfd): Remove.
12764 (class core_target) <m_core_vec>: Remove.
12765 (core_target::core_target): Update.
12766 (core_file_fns): Remove.
12767 (deprecated_add_core_fns): Remove.
12768 (default_core_sniffer): Remove.
12769 (sniff_core_bfd): Remove.
12770 (default_check_format): Remove.
12771 (gdb_check_format): Remove.
12772 (core_target_open): Update.
12773 (core_target::get_core_register_section): Update.
12774 (get_core_registers_cb): Update.
12775 (core_target::fetch_registers): Update.
12776 * gdbcore.h (struct core_fns): Remove.
12777 (deprecated_add_core_fns): Remove.
12778 (default_core_sniffer): Remove.
12779 (default_check_format): Remove.
12780
12781 2020-03-12 Tom Tromey <tom@tromey.com>
12782
12783 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12784 CORE_ADDR.
12785 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12786
12787 2020-03-12 Tom Tromey <tom@tromey.com>
12788
12789 * remote.c (remote_target::download_tracepoint)
12790 (remote_target::enable_tracepoint)
12791 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12792 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12793 sprintf_vma.
12794
12795 2020-03-12 Tom Tromey <tom@tromey.com>
12796
12797 * symfile-mem.c: Update CORE_ADDR size assert.
12798
12799 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12800
12801 * selftest.m4: Move to gdbsupport/.
12802 * acinclude.m4: Update path to selftest.m4.
12803
12804 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12805
12806 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12807 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12808 gdbarch-selfselftests.c and selftest-arch.c.
12809 (SUBDIR_UNITTESTS_OBS): Rename to...
12810 (SELFTESTS_OBS): ... this.
12811 (COMMON_SFILES): Remove disasm-selftests.c and
12812 gdbarch-selftests.c.
12813 * configure.ac: Don't add selftest-arch.{c,o} to
12814 CONFIG_{SRCS,OBS}.
12815 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12816 preprocessor conditions.
12817
12818 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12819
12820 * configure.ac: Don't source bfd/development.sh.
12821 * selftest.m4: Modify comment.
12822 * configure: Re-generate.
12823
12824 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12825
12826 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12827 not "true" or "false".
12828 * configure: Re-generate.
12829
12830 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12831
12832 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12833 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12834 renamed to arm_nbsd_supply_gregset.
12835 (fetch_register): Update to call arm_nbsd_supply_gregset.
12836 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12837 (arm_netbsd_nat_target::fetch_registers): Update.
12838 (fetch_elfcore_registers): Removed.
12839 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12840 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12841 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12842 not require NetBSD system headers.
12843 (arm_nbsd_regset): New struct.
12844 (arm_nbsd_iterate_over_regset_sections): New function.
12845 (arm_netbsd_init_abi_common): Updated to call
12846 set_gdbarch_iterate_over_regset_sections.
12847 * arm-nbsd-tdep.h: New file.
12848
12849 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12850
12851 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12852 recursion.
12853
12854 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12855
12856 * configure: Re-generate.
12857
12858 2020-03-11 Tom Tromey <tromey@adacore.com>
12859
12860 * ada-typeprint.c (print_choices): Fix comment.
12861
12862 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12863
12864 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12865 previous item in the list, when the list has no items.
12866
12867 2020-03-11 Tom de Vries <tdevries@suse.de>
12868
12869 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12870 PROP_LOCLIST handling code.
12871
12872 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12873
12874 * buildsym-legacy.c (record_line): Pass extra parameter to
12875 record_line.
12876 * buildsym.c (buildsym_compunit::record_line): Take an extra
12877 parameter, reduce duplication in the line table, and record the
12878 is_stmt flag in the line table.
12879 * buildsym.h (buildsym_compunit::record_line): Add extra
12880 parameter.
12881 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12882 non-statement lines.
12883 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12884 this to the symtab builder.
12885 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12886 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12887 through to dwarf_record_line_1.
12888 * infrun.c (process_event_stop_test): When stepping, don't stop at
12889 a non-statement instruction, and only refresh the step info when
12890 we land in the middle of a line's range. Also add an extra
12891 comment.
12892 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12893 field.
12894 * record-btrace.c (btrace_find_line_range): Only record lines
12895 marked as is-statement.
12896 * stack.c (frame_show_address): Show the frame address if we are
12897 in a non-statement sal.
12898 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12899 (maintenance_print_one_line_table): Print a header for the is_stmt
12900 column, and include is_stmt information in the output.
12901 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12902 preference to non-statements.
12903 (find_pcs_for_symtab_line): Prefer is-statement entries.
12904 (find_line_common): Likewise.
12905 * symtab.h (struct linetable_entry): Add is_stmt field.
12906 (struct symtab_and_line): Likewise.
12907 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12908 arranging the line table.
12909
12910 2020-03-07 Tom de Vries <tdevries@suse.de>
12911
12912 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12913 DIE.
12914
12915 2020-03-07 Tom Tromey <tom@tromey.com>
12916
12917 * valops.c (value_literal_complex): Remove obsolete comment.
12918 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12919 comment.
12920
12921 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12922
12923 * infrun.h: Forward-declare thread_info.
12924 (set_step_info): Add thread_info parameter, add doc.
12925 * infrun.c (set_step_info): Add thread_info parameter, move doc
12926 to header.
12927 * infrun.c (process_event_stop_test): Pass thread to
12928 set_step_info call.
12929 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12930 set_step_info.
12931 (prepare_one_step): Add thread_info parameter, pass it to
12932 set_step_frame and prepare_one_step (recursive) call.
12933 (step_1): Pass thread to prepare_one_step call.
12934 (step_command_fsm::should_stop): Pass thread to
12935 prepare_one_step.
12936 (until_next_fsm): Pass thread to set_step_frame call.
12937 (finish_command): Pass thread to set_step_info call.
12938
12939 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12940
12941 * windows-tdep.c (windows_solib_create_inferior_hook):
12942 Check if inferior is running.
12943
12944 2020-03-06 Tom de Vries <tdevries@suse.de>
12945
12946 * NEWS: Fix "the the".
12947 * ctfread.c: Same.
12948
12949 2020-03-06 Tom de Vries <tdevries@suse.de>
12950
12951 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12952
12953 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12954
12955 * .dir-locals.el: Add a comment referencing the other copies of
12956 this file.
12957
12958 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12959
12960 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12961 psargs.
12962
12963 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12964
12965 * .gitattributes: New file.
12966
12967 2020-03-04 Tom Tromey <tom@tromey.com>
12968
12969 * symmisc.c (print_symbol_bcache_statistics)
12970 (print_objfile_statistics): Update.
12971 * symfile.c (allocate_symtab): Use intern.
12972 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12973 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12974 macro_cache>: Remove.
12975 <string_cache>: New member.
12976 (struct objfile) <intern>: New methods.
12977 * elfread.c (elf_symtab_read): Use intern.
12978 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12979 (dwarf2_compute_name, dwarf2_physname)
12980 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12981 names.
12982 (guess_partial_die_structure_name): Update.
12983 (partial_die_info::fixup): Intern name.
12984 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12985 name.
12986 (dwarf2_name): Intern name. Update.
12987 * buildsym.c (buildsym_compunit::get_macro_table): Use
12988 string_cache.
12989
12990 2020-03-04 Tom Tromey <tom@tromey.com>
12991
12992 * jit.c (bfd_open_from_target_memory): Make "target" const.
12993 * corefile.c (gnutarget): Now const.
12994 * gdbcore.h (gnutarget): Now const.
12995
12996 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12997
12998 * NEWS: Mention support for WOW64 processes.
12999 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13000 (amd64_windows_segment_register_p): Remove static.
13001 (_initialize_amd64_windows_nat): Update.
13002 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13003 * i386-windows-nat.c (context_offset): Update.
13004 (i386_mappings): Rename and remove static.
13005 (i386_windows_segment_register_p): Remove static.
13006 (_initialize_i386_windows_nat): Update.
13007 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13008 (STATUS_WX86_SINGLE_STEP): New macro.
13009 (EnumProcessModulesEx): New macro.
13010 (Wow64SuspendThread): New macro.
13011 (Wow64GetThreadContext): New macro.
13012 (Wow64SetThreadContext): New macro.
13013 (Wow64GetThreadSelectorEntry): New macro.
13014 (windows_set_context_register_offsets): Add static.
13015 (windows_set_segment_register_p): Likewise.
13016 (windows_add_thread): Adapt for WOW64 processes.
13017 (windows_fetch_one_register): Likewise.
13018 (windows_nat_target::fetch_registers): Likewise.
13019 (windows_store_one_register): Likewise.
13020 (display_selector): Likewise.
13021 (display_selectors): Likewise.
13022 (handle_exception): Likewise.
13023 (windows_continue): Likewise.
13024 (windows_nat_target::resume): Likewise.
13025 (windows_add_all_dlls): Likewise.
13026 (do_initial_windows_stuff): Likewise.
13027 (windows_nat_target::attach): Likewise.
13028 (windows_get_exec_module_filename): Likewise.
13029 (windows_nat_target::create_inferior): Likewise.
13030 (windows_xfer_siginfo): Likewise.
13031 (_initialize_loadable): Initialize Wow64SuspendThread,
13032 Wow64GetThreadContext, Wow64SetThreadContext,
13033 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13034 * windows-nat.h (windows_set_context_register_offsets):
13035 Remove declaration.
13036 (windows_set_segment_register_p): Likewise.
13037 (i386_windows_segment_register_p): Add declaration.
13038 (amd64_windows_segment_register_p): Likewise.
13039
13040 2020-03-04 Luis Machado <luis.machado@linaro.org>
13041
13042 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13043 in "info registers" for AArch64/ARM.
13044
13045 The change caused "info registers" to not print GPR's.
13046
13047 gdb/ChangeLog:
13048
13049 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13050
13051 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13052 when reg->group is empty and reggroup is not.
13053
13054 2020-03-03 Tom Tromey <tromey@adacore.com>
13055
13056 * dwarf2/frame.c (struct dwarf2_frame_cache)
13057 <checked_tailcall_bottom, entry_cfa_sp_offset,
13058 entry_cfa_sp_offset_p>: Remove members.
13059 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13060 (dwarf2_frame_prev_register): Don't call
13061 dwarf2_tailcall_sniffer_first.
13062 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13063 * frame-unwind.c (add_unwinder): New fuction.
13064 (frame_unwind_init): Use it. Add tailcall unwinder.
13065
13066 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13067 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13068
13069 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13070 value should be printed as true.
13071
13072 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13073
13074 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13075 (windows_init_abi): Set and use windows_so_ops.
13076
13077 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13078
13079 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13080 when verifying if dealing with a convenience variable.
13081
13082 2020-03-03 Luis Machado <luis.machado@linaro.org>
13083
13084 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13085
13086 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13087
13088 * infrun.c (gdbarch_supports_displaced_stepping): New.
13089 (use_displaced_stepping): Break up conditions in smaller pieces.
13090 Use gdbarch_supports_displaced_stepping.
13091 (displaced_step_prepare_throw): Use
13092 gdbarch_supports_displaced_stepping.
13093
13094 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13095
13096 * NEWS: Mention new behaviour of the history filename.
13097 * top.c (write_history_p): Add comment.
13098 (show_write_history_p): Add header comment, give a different
13099 message when history writing is on, but the history filename is
13100 empty.
13101 (history_filename): Add comment.
13102 (history_filename_empty): New function.
13103 (show_history_filename): Add header comment, give a different
13104 message when the filename is empty.
13105 (init_history): Compare history_filename against nullptr, and only
13106 read history if the filename is not empty.
13107 (set_history_filename): Add header comment, and only make
13108 non-empty filenames absolute.
13109 (init_main): Make the filename argument to 'set history filename'
13110 optional.
13111
13112 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13113
13114 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13115 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13116 (fetch_fp_register): Update.
13117 (fetch_fp_regs): Update.
13118 (store_fp_register): Update.
13119 (store_fp_regs): Update.
13120 (arm_netbsd_nat_target::read_description): New function.
13121 (fetch_elfcore_registers): Update.
13122
13123 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13124
13125 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13126 general_thread if the stop reply is missing a thread-id.
13127 (remote_target::process_stop_reply): Use the first non-exited
13128 thread if the target didn't pass a thread-id.
13129 * infrun.c (do_target_wait): Move call to
13130 switch_to_inferior_no_thread to ....
13131 (do_target_wait_1): ... here.
13132
13133 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13134
13135 * debuginfod-support.c: Include defs.h first.
13136
13137 2020-02-28 Tom de Vries <tdevries@suse.de>
13138
13139 * symfile.c (set_initial_language): Use default language for lookup.
13140
13141 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13142
13143 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13144 reader variable, pass `this` to read_cutu_die_from_dwo.
13145
13146 2020-02-27 Aaron Merey <amerey@redhat.com>
13147
13148 * source.c (open_source_file): Check for nullptr when computing
13149 srcpath.
13150
13151 2020-02-27 Tom Tromey <tromey@adacore.com>
13152
13153 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13154 member.
13155 (dwarf2_add_field): Don't update nfields.
13156 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13157
13158 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13159
13160 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13161 abs.
13162
13163 2020-02-26 Tom Tromey <tom@tromey.com>
13164
13165 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13166 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13167 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13168 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13169 per_cu_data.
13170
13171 2020-02-26 Tom Tromey <tom@tromey.com>
13172
13173 * dwarf2/index-write.c (psym_index_map): Change type.
13174 (add_address_entry_worker, write_one_signatured_type)
13175 (recursively_count_psymbols, recursively_write_psymbols)
13176 (class debug_names, psyms_seen_size, write_gdbindex)
13177 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13178
13179 2020-02-26 Aaron Merey <amerey@redhat.com>
13180
13181 * Makefile.in: Handle optional debuginfod support.
13182 * NEWS: Update.
13183 * README: Add --with-debuginfod summary.
13184 * config.in: Regenerate.
13185 * configure: Regenerate.
13186 * configure.ac: Handle optional debuginfod support.
13187 * debuginfod-support.c: debuginfod helper functions.
13188 * debuginfod-support.h: Ditto.
13189 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13190 summary.
13191 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13192 when a dwz file cannot be found.
13193 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13194 debuginfo file cannot be found.
13195 * source.c (open_source_file): Query debuginfod servers when a
13196 source file cannot be found.
13197 * top.c (print_gdb_configuration): Include
13198 --{with,without}-debuginfod in the output.
13199
13200 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13201
13202 * thread.c (thr_try_catch_cmd): Print thread name.
13203
13204 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13205
13206 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13207 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13208 dwarf2_fetch_die_type_sect_off): Move to...
13209 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13210 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13211 dwarf2_fetch_die_type_sect_off): ... here.
13212 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13213 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13214 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13215
13216 2020-02-26 Tom de Vries <tdevries@suse.de>
13217
13218 PR gdb/25603
13219 * symfile.c (set_initial_language): Exit-early if
13220 language_mode == language_mode_manual.
13221
13222 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13223
13224 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13225 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13226 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13227
13228 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13229
13230 * gdbtypes.c (create_array_type_with_stride): Handle negative
13231 array strides.
13232 * valarith.c (value_subscripted_rvalue): Likewise.
13233
13234 2020-02-25 Luis Machado <luis.machado@linaro.org>
13235
13236 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13237
13238 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13239
13240 * loc.h (dwarf2_get_die_type): Move to...
13241 * read.h (dwarf2_get_die_type): ... here.
13242 * read.c (dwarf2_get_die_type): Move doc to header.
13243
13244 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13245
13246 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13247 'gnulib/Makefile.in' to the list.
13248
13249 2020-02-24 Tom Tromey <tom@tromey.com>
13250
13251 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13252 Remove.
13253 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13254 XOBNEWVEC.
13255
13256 2020-02-24 Tom Tromey <tom@tromey.com>
13257
13258 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13259 New method.
13260 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13261 (dw2_do_instantiate_symtab, dw2_get_file_names)
13262 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13263
13264 2020-02-24 Tom Tromey <tom@tromey.com>
13265
13266 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13267 make_scoped_restore.
13268 (dwarf2_psymtab::read_symtab): Don't clear
13269 reading_partial_symbols.
13270
13271 2020-02-24 Tom de Vries <tdevries@suse.de>
13272
13273 PR gdb/25592
13274 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13275
13276 2020-02-24 Tom de Vries <tdevries@suse.de>
13277
13278 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13279 commands layout next/prev/regs.
13280
13281 2020-02-22 Tom Tromey <tom@tromey.com>
13282
13283 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13284 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13285
13286 2020-02-22 Tom Tromey <tom@tromey.com>
13287
13288 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13289
13290 2020-02-22 Tom Tromey <tom@tromey.com>
13291
13292 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13293 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13294 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13295 * tui/tui.c (_initialize_tui): Add usage text.
13296
13297 2020-02-22 Tom Tromey <tom@tromey.com>
13298
13299 * tui/tui-win.c (tui_set_focus_command)
13300 (tui_set_win_height_command): Use error_no_arg.
13301 (_initialize_tui_win): Update help text.
13302 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13303
13304 2020-02-22 Tom Tromey <tom@tromey.com>
13305
13306 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13307 * tui/tui-disasm.h (struct tui_disasm_window)
13308 <display_start_addr>: Declare.
13309 * tui/tui-source.h (struct tui_source_window)
13310 <display_start_addr>: Declare.
13311 * tui/tui-winsource.h (struct tui_source_window_base)
13312 <show_source_line, display_start_addr>: New methods.
13313 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13314 Rename and move to protected section.
13315 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13316 (tui_source_window_base::do_erase_source_content): Update.
13317 (tui_source_window_base::show_source_line): Now a method.
13318 (tui_source_window_base::show_source_content)
13319 (tui_source_window_base::tui_source_window_base)
13320 (tui_source_window_base::rerender)
13321 (tui_source_window_base::refill)
13322 (tui_source_window_base::do_scroll_horizontal)
13323 (tui_source_window_base::set_is_exec_point_at)
13324 (tui_source_window_base::update_breakpoint_info)
13325 (tui_source_window_base::update_exec_info): Update.
13326 * tui/tui-source.c (tui_source_window::set_contents)
13327 (tui_source_window::showing_source_p)
13328 (tui_source_window::do_scroll_vertical)
13329 (tui_source_window::location_matches_p)
13330 (tui_source_window::line_is_displayed): Update.
13331 (tui_source_window::display_start_addr): New method.
13332 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13333 (tui_disasm_window::do_scroll_vertical)
13334 (tui_disasm_window::location_matches_p): Update.
13335 (tui_disasm_window::display_start_addr): New method.
13336
13337 2020-02-22 Tom Tromey <tom@tromey.com>
13338
13339 * NEWS: Add entry for gdb.register_window_type.
13340 * tui/tui-layout.h (window_factory): New typedef.
13341 (tui_register_window): Declare.
13342 * tui/tui-layout.c (saved_tui_windows): New global.
13343 (tui_apply_current_layout): Use it.
13344 (tui_register_window): New function.
13345 * python/python.c (do_start_initialization): Call
13346 gdbpy_initialize_tui.
13347 (python_GdbMethods): Add "register_window_type" function.
13348 * python/python-internal.h (gdbpy_register_tui_window)
13349 (gdbpy_initialize_tui): Declare.
13350 * python/py-tui.c: New file.
13351 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13352
13353 2020-02-22 Tom Tromey <tom@tromey.com>
13354
13355 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13356
13357 2020-02-22 Tom Tromey <tom@tromey.com>
13358
13359 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13360 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13361 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13362 (tui_set_win_focus_to): Move from tui-win.c.
13363
13364 2020-02-22 Tom Tromey <tom@tromey.com>
13365
13366 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13367 functions.
13368 (known_window_types): New global.
13369 (tui_get_window_by_name): Reimplement.
13370 (initialize_known_windows): New function.
13371 (validate_window_name): Rewrite.
13372 (_initialize_tui_layout): Call initialize_known_windows.
13373
13374 2020-02-22 Tom Tromey <tom@tromey.com>
13375
13376 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13377 Remove constants.
13378 * tui/tui-winsource.h (struct tui_source_window_base)
13379 <tui_source_window_base>: Remove parameter.
13380 * tui/tui-winsource.c
13381 (tui_source_window_base::tui_source_window_base): Remove
13382 parameter.
13383 (tui_source_window_base::refill): Update.
13384 * tui/tui-stack.h (struct tui_locator_window)
13385 <tui_locator_window>: Update.
13386 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13387 Default the constructor.
13388 * tui/tui-regs.h (struct tui_data_item_window)
13389 <tui_data_item_window>: Default the constructor.
13390 (struct tui_data_window) <tui_data_window>: Likewise.
13391 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13392 Default the constructor.
13393 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13394 Default the constructor.
13395 <type>: Remove.
13396 (struct tui_win_info) <tui_win_info>: Default the constructor.
13397 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13398 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13399 Default the constructor.
13400
13401 2020-02-22 Tom Tromey <tom@tromey.com>
13402
13403 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13404 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13405 * tui/tui-win.c (tui_resize_all): Don't call
13406 tui_delete_invisible_windows.
13407 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13408 done.
13409 (tui_set_layout): Update.
13410 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13411 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13412 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13413
13414 2020-02-22 Tom Tromey <tom@tromey.com>
13415
13416 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13417 correctly.
13418
13419 2020-02-22 Tom Tromey <tom@tromey.com>
13420
13421 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13422
13423 2020-02-22 Tom Tromey <tom@tromey.com>
13424
13425 * tui/tui-winsource.h (struct tui_source_window_iterator)
13426 <inner_iterator>: New etytypedef.
13427 <tui_source_window_iterator>: Take "end" parameter.
13428 <tui_source_window_iterator>: Take iterator.
13429 <operator*, advance>: Update.
13430 <m_iter>: Change type.
13431 <m_end>: New field.
13432 (struct tui_source_windows) <begin, end>: Update.
13433 * tui/tui-layout.c (tui_windows): New global.
13434 (tui_apply_current_layout): Clear tui_windows.
13435 (tui_layout_window::apply): Update tui_windows.
13436 * tui/tui-data.h (tui_windows): Declare.
13437 (all_tui_windows): Now inline function.
13438 (class tui_window_iterator, struct all_tui_windows): Remove.
13439
13440 2020-02-22 Tom Tromey <tom@tromey.com>
13441
13442 PR tui/17850:
13443 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13444 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13445 "height" argument.
13446 (class tui_layout_window) <get_sizes>: Likewise.
13447 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13448 argument.
13449 <get_sizes>: Add "height" argument.
13450 <m_vertical>: New field.
13451 * tui/tui-layout.c (tui_layout_split::clone): Update.
13452 (tui_layout_split::get_sizes): Add "height" argument.
13453 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13454 (tui_new_layout_command): Parse "-horizontal".
13455 (_initialize_tui_layout): Update help string.
13456 (tui_layout_split::specification): Add "-horizontal" when needed.
13457 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13458 argument.
13459 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13460 New methods.
13461
13462 2020-02-22 Tom Tromey <tom@tromey.com>
13463
13464 * tui/tui-layout.h (enum tui_adjust_result): New.
13465 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13466 (class tui_layout_window) <adjust_size>: Return
13467 tui_adjust_result. Rewrite.
13468 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13469 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13470
13471 2020-02-22 Tom Tromey <tom@tromey.com>
13472
13473 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13474 parameter and return types.
13475 (class tui_layout_base) <specification>: Add "depth".
13476 (class tui_layout_window) <specification>: Add "depth".
13477 (class tui_layout_split) <specification>: Add "depth".
13478 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13479 and return types.
13480 (tui_new_layout_command): Parse sub-layouts.
13481 (_initialize_tui_layout): Update help string.
13482 (tui_layout_window::specification): Add "depth".
13483 (add_layout_command): Update.
13484
13485 2020-02-22 Tom Tromey <tom@tromey.com>
13486
13487 * NEWS: Add "tui new-layout" item.
13488 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13489 Add new-layout command to help text.
13490 (validate_window_name): New function.
13491 (tui_new_layout_command): New function.
13492 (_initialize_tui_layout): Register "new-layout".
13493 (tui_layout_window::specification): New method.
13494 (tui_layout_window::specification): New method.
13495 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13496 method.
13497 (class tui_layout_window) <specification>: New method.
13498 (class tui_layout_split) <specification>: New method.
13499
13500 2020-02-22 Tom Tromey <tom@tromey.com>
13501
13502 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13503 * tui/tui-win.c (window_name_completer): Update comment.
13504 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13505 Declare method.
13506 (class tui_layout_window) <replace_window>: Likewise.
13507 (class tui_layout_split) <replace_window>: Likewise.
13508 (tui_set_layout): Don't declare.
13509 (tui_set_initial_layout): Declare function.
13510 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13511 (asm_regs_layout): New globals.
13512 (tui_current_layout, show_layout): Remove.
13513 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13514 (find_layout, tui_apply_layout): New function.
13515 (layout_completer): Remove.
13516 (tui_next_layout): Reimplement.
13517 (tui_next_layout_command): New function.
13518 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13519 (tui_regs_layout): Reimplement.
13520 (tui_regs_layout_command): New function.
13521 (extract_display_start_addr): Rewrite.
13522 (next_layout, prev_layout): Remove.
13523 (tui_layout_window::replace_window): New method.
13524 (tui_layout_split::replace_window): New method.
13525 (destroy_layout): New function.
13526 (layout_list): New global.
13527 (add_layout_command): New function.
13528 (initialize_layouts): Update.
13529 (tui_layout_command): New function.
13530 (_initialize_tui_layout): Install "layout" commands.
13531 * tui/tui-data.h (enum tui_layout_type): Remove.
13532 (tui_current_layout): Don't declare.
13533
13534 2020-02-22 Tom Tromey <tom@tromey.com>
13535
13536 * tui/tui-regs.c (tui_reg_layout): Remove.
13537 (tui_reg_command): Use tui_regs_layout.
13538 * tui/tui-layout.h (tui_reg_command): Declare.
13539 * tui/tui-layout.c (tui_reg_command): New function.
13540
13541 2020-02-22 Tom Tromey <tom@tromey.com>
13542
13543 * tui/tui.c (tui_rl_delete_other_windows): Call
13544 tui_remove_some_windows.
13545 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13546 Declare method.
13547 (class tui_layout_window) <remove_windows>: New method.
13548 (class tui_layout_split) <remove_windows>: Declare.
13549 (tui_remove_some_windows): Declare.
13550 * tui/tui-layout.c (tui_remove_some_windows): New function.
13551 (tui_layout_split::remove_windows): New method.
13552
13553 2020-02-22 Tom Tromey <tom@tromey.com>
13554
13555 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13556 * tui/tui-layout.h (tui_next_layout): Declare.
13557 * tui/tui-layout.c (tui_next_layout): New function.
13558
13559 2020-02-22 Tom Tromey <tom@tromey.com>
13560
13561 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13562 correct coordinates.
13563
13564 2020-02-22 Tom Tromey <tom@tromey.com>
13565
13566 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13567 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13568 DATA_WIN case.
13569
13570 2020-02-22 Tom Tromey <tom@tromey.com>
13571
13572 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13573 TUI_DISASM_WIN, not tui_win_list.
13574
13575 2020-02-22 Tom Tromey <tom@tromey.com>
13576
13577 * valprint.c (generic_val_print_enum_1)
13578 (val_print_type_code_flags): Style member names.
13579 * rust-lang.c (val_print_struct, rust_print_enum)
13580 (rust_print_struct_def, rust_internal_print_type): Style member
13581 names.
13582 * p-valprint.c (pascal_object_print_value_fields): Style member
13583 names. Only call fprintf_symbol_filtered for static members.
13584 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13585 * f-valprint.c (f_val_print): Style member names.
13586 * f-typeprint.c (f_type_print_base): Style member names.
13587 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13588 call fprintf_symbol_filtered for static members.
13589 (cp_print_class_member): Style member names.
13590 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13591 member names.
13592 * ada-valprint.c (ada_print_scalar): Style enum names.
13593 (ada_val_print_enum): Likewise.
13594 * ada-typeprint.c (print_enum_type): Style enum names.
13595
13596 2020-02-21 Tom Tromey <tom@tromey.com>
13597
13598 * psympriv.h (struct partial_symtab): Update comment.
13599
13600 2020-02-21 Tom Tromey <tromey@adacore.com>
13601
13602 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13603 type is CORE_ADDR.
13604
13605 2020-02-21 Tom de Vries <tdevries@suse.de>
13606
13607 PR gdb/25534
13608 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13609 if dependencies[i]->user != NULL.
13610
13611 2020-02-21 Ali Tamur <tamur@google.com>
13612
13613 * dwarf2/read.c (dwarf2_name): Add null check.
13614
13615 2020-02-20 Tom Tromey <tom@tromey.com>
13616
13617 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13618 ">=", in binary search.
13619 (dwarf2_find_containing_comp_unit): New overload.
13620 (run_test): New self-test.
13621 (_initialize_dwarf2_read): Register new test.
13622
13623 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13624
13625 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13626 * riscv-tdep.h: Likewise.
13627 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13628 rv32-only CSR.
13629 * features/riscv/64bit-csr.xml: Regenerated.
13630
13631 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13632 Tom Tromey <tom@tromey.com>
13633
13634 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13635 of 'fputc_unfiltered'.
13636 (putchar_unfiltered): Call 'fputc_unfiltered'.
13637 (fputc_unfiltered): Call 'fputs_unfiltered'.
13638
13639 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13640
13641 * config.in: Regenerate.
13642 * configure: Regenerate.
13643 * configure.ac: Add --with-python-libdir option.
13644 * main.c: Use WITH_PYTHON_LIBDIR.
13645
13646 2020-02-19 Tom Tromey <tom@tromey.com>
13647
13648 * symtab.c (general_symbol_info::compute_and_set_names): Use
13649 obstack_strndup. Simplify call to symbol_set_demangled_name.
13650
13651 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13652
13653 * dwarf2/read.c (allocate_signatured_type_table,
13654 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13655 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13656 Remove objfile parameter, update all callers.
13657
13658 2020-02-19 Doug Evans <dje@google.com>
13659
13660 PR rust/25535
13661 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13662 rust_enum_variant calculation.
13663
13664 2020-02-19 Tom Tromey <tromey@adacore.com>
13665
13666 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13667
13668 2020-02-19 Tom Tromey <tromey@adacore.com>
13669
13670 * ada-lang.c (cache_symbol): Use obstack_strdup.
13671
13672 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13673
13674 * configure: Regenerate.
13675
13676 2020-02-19 Tom Tromey <tromey@adacore.com>
13677
13678 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13679 NULL check.
13680
13681 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13682
13683 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13684
13685 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13686
13687 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13688 if GDBSERVER is not defined.
13689 (riscv_tdesc_cache): Likewise, also store const target_desc.
13690 (STATIC_IN_GDB): Define.
13691 (riscv_create_target_description): Update declaration with
13692 STATIC_IN_GDB.
13693 (riscv_lookup_target_description): New function, only define if
13694 GDBSERVER is not defined.
13695 * arch/riscv.h (riscv_create_target_description): Declare only
13696 when GDBSERVER is defined.
13697 (riscv_lookup_target_description): New declaration when GDBSERVER
13698 is not defined.
13699 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13700 (riscv_linux_read_features): ...this, and return
13701 riscv_gdbarch_features instead of target_desc.
13702 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13703 (riscv_linux_read_description): Rename to...
13704 (riscv_linux_read_features): ...this.
13705 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13706 Update to use riscv_gdbarch_features and
13707 riscv_lookup_target_description.
13708 * riscv-tdep.c (riscv_find_default_target_description): Use
13709 riscv_lookup_target_description instead of
13710 riscv_create_target_description.
13711
13712 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13713
13714 * valprint.c (generic_val_print_enum_1): When printing a flag
13715 enum with value 0 and there is no enumerator with value 0, print
13716 just "0" instead of "(unknown: 0x0)".
13717
13718 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13719
13720 * valprint.c (generic_val_print_enum_1): Print unknown part of
13721 flag enum in hex.
13722
13723 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13724
13725 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13726 flag enums to contain duplicate enumerators.
13727 * valprint.c (generic_val_print_enum_1): Update comment.
13728
13729 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13730
13731 * dwarf2/read.c: Include "count-one-bits.h".
13732 (update_enumeration_type_from_children): If an enumerator has
13733 multiple bits set, don't treat the enumeration as a "flag enum".
13734 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13735 of flag enums have 0 or 1 bit set.
13736
13737 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13738
13739 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13740 conversion.
13741 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13742 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13743 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13744 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13745 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13746
13747 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13748
13749 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13750
13751 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13752
13753 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13754 displaced_step_closure_up.
13755 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13756 (struct displaced_step_closure_up):
13757 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13758 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13759 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13760 Likewise.
13761 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13762 * gdbarch.c, gdbarch.h: Re-generate.
13763 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13764 displaced_step_closure_up.
13765 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13766 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13767 * infrun.h (displaced_step_closure_up): New type alias.
13768 (struct displaced_step_inferior_state) <step_closure>: Change
13769 type to displaced_step_closure_up.
13770 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13771 displaced_step_closure_up.
13772 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13773
13774 2020-02-14 Tom Tromey <tom@tromey.com>
13775
13776 * minidebug.c (gnu_debug_key): New global.
13777 (find_separate_debug_file_in_section): Use it.
13778
13779 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13780
13781 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13782 std::unique_ptr.
13783 * gdbarch.c: Re-generate.
13784 * gdbarch.h: Re-generate.
13785 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13786 change.
13787 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13788 type to std::unique_ptr.
13789 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13790 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13791 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13792 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13793 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13794 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13795 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13796 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13797 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13798
13799 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13800
13801 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13802 std::unique_ptr.
13803 (displaced_step_clear): Rename to...
13804 (displaced_step_reset): ... this. Just call displaced->reset ().
13805 (displaced_step_clear_cleanup): Rename to...
13806 (displaced_step_reset_cleanup): ... this.
13807 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13808 (displaced_step_fixup): Likewise.
13809 (resume_1): Likewise.
13810 (handle_inferior_event): Restore child's memory before calling
13811 displaced_step_fixup on the parent.
13812 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13813 to std::unique_ptr.
13814 <step_closure>: Change type to std::unique_ptr.
13815
13816 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13817
13818 * arm-tdep.c: Include count-one-bits.h.
13819 (cleanup_block_store_pc): Use count_one_bits.
13820 (cleanup_block_load_pc): Use count_one_bits.
13821 (arm_copy_block_xfer): Use count_one_bits.
13822 (thumb2_copy_block_xfer): Use count_one_bits.
13823 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13824 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13825 (thumb_get_next_pcs_raw): Use count_one_bits.
13826 (arm_get_next_pcs_raw): Use count_one_bits_l.
13827 * arch/arm.c (bitcount): Remove.
13828 * arch/arm.h (bitcount): Remove.
13829
13830 2020-02-14 Tom Tromey <tromey@adacore.com>
13831
13832 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13833 Update.
13834 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13835 * dwarf2/loc.c (call_site_find_chain_1): Return
13836 unique_xmalloc_ptr.
13837 (call_site_find_chain): Likewise.
13838
13839 2020-02-14 Richard Biener <rguenther@suse.de>
13840
13841 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13842 on expression with division operators.
13843
13844 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13845
13846 * MAINTAINERS (Write After Approval): Adding myself.
13847
13848 2020-02-12 Tom Tromey <tom@tromey.com>
13849
13850 * event-loop.c (event_data, gdb_event, event_handler_func):
13851 Remove.
13852
13853 2020-02-12 Tom Tromey <tom@tromey.com>
13854
13855 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13856 (dwarf2_frame_objfile_data): Add comment.
13857 (find_comp_unit, set_comp_unit): New functions.
13858 (dwarf2_frame_find_fde): Use find_comp_unit.
13859 (dwarf2_build_frame_info): Use set_comp_unit.
13860
13861 2020-02-12 Tom Tromey <tom@tromey.com>
13862
13863 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13864 (comp_unit): Don't initialize objfile.
13865 (execute_cfa_program): Add text_offset parameter.
13866 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13867 (dwarf2_frame_cache): Update.
13868 (dwarf2_build_frame_info): Don't set "objfile" member.
13869
13870 2020-02-12 Tom Tromey <tom@tromey.com>
13871
13872 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13873 (decode_frame_entry): Likewise.
13874 (dwarf2_build_frame_info): Update.
13875
13876 2020-02-12 Tom Tromey <tom@tromey.com>
13877
13878 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13879 (decode_frame_entry_1): Use the comp_unit obstack.
13880
13881 2020-02-12 Tom Tromey <tom@tromey.com>
13882
13883 * dwarf2/frame.c (struct comp_unit): Add initializers and
13884 constructor.
13885 (dwarf2_frame_objfile_data): Store a comp_unit.
13886 (dwarf2_frame_find_fde): Update.
13887 (dwarf2_build_frame_info): Use "new".
13888
13889 2020-02-12 Tom Tromey <tom@tromey.com>
13890
13891 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13892 (dwarf2_fde_table): Typedef for std::vector.
13893 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13894 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13895 (decode_frame_entry): Update.
13896 (dwarf2_build_frame_info): Use "new".
13897
13898 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13899
13900 * arm-tdep.c (arm_gdbarch_init): Update.
13901 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13902 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13903 have_neon, is_m>: Change to bool.
13904
13905 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13906
13907 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13908
13909 2020-02-12 Tom Tromey <tom@tromey.com>
13910
13911 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13912
13913 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13914
13915 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13916 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13917
13918 2020-02-11 Tom Tromey <tom@tromey.com>
13919
13920 * psymtab.h: Update comment.
13921
13922 2020-02-11 Tom Tromey <tom@tromey.com>
13923
13924 * gdb_obstack.h (struct auto_obstack): Use
13925 DISABLE_COPY_AND_ASSIGN.
13926
13927 2020-02-11 Tom Tromey <tom@tromey.com>
13928
13929 * dwarf2/frame.h (struct objfile): Don't forward declare.
13930
13931 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13932
13933 * cris-tdep.c (cris_supply_gregset): Change signature to match
13934 what struct regset expects.
13935 (cris_regset): New struct.
13936 (fetch_core_registers): Remove.
13937 (cris_iterate_over_regset_sections): New function.
13938 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13939 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13940
13941 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13942
13943 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13944 registers.
13945
13946 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13947
13948 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13949
13950 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13951
13952 * configure: Re-generate.
13953
13954 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13955
13956 * configure: Re-generate.
13957
13958 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13959
13960 * acinclude: Update warning.m4 path.
13961 * warning.m4: Move to gdbsupport.
13962
13963 2020-02-11 Tom Tromey <tromey@adacore.com>
13964
13965 * remote.c (remote_console_output): Update.
13966 * printcmd.c (printf_command): Update.
13967 * event-loop.c (gdb_wait_for_event): Update.
13968 * linux-nat.c (sigchld_handler): Update.
13969 * remote-sim.c (gdb_os_write_stdout): Update.
13970 (gdb_os_flush_stdout): Update.
13971 (gdb_os_flush_stderr): Update.
13972 (gdb_os_write_stderr): Update.
13973 * exceptions.c (print_exception): Update.
13974 * remote-fileio.c (remote_fileio_func_read): Update.
13975 (remote_fileio_func_write): Update.
13976 * tui/tui.c (tui_enable): Update.
13977 * tui/tui-interp.c (tui_interp::init): Update.
13978 * utils.c (init_page_info): Update.
13979 (putchar_unfiltered, fputc_unfiltered): Update.
13980 (gdb_flush): Update.
13981 (emit_style_escape): Update.
13982 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13983 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13984 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13985 (stderr_file::write): Update.
13986 (stderr_file::puts): Update.
13987 * ui-file.h (ui_file_isatty, ui_file_write)
13988 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13989 (ui_file_puts): Don't declare.
13990
13991 2020-02-10 Tom de Vries <tdevries@suse.de>
13992
13993 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13994 sentinel to char *.
13995
13996 2020-02-09 Tom de Vries <tdevries@suse.de>
13997
13998 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13999 filename if it matches "<artificial>".
14000
14001 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14002
14003 * windows-tdep.c (struct enum_value_name): New struct.
14004 (create_enum): New function.
14005 (windows_get_siginfo_type): Create and use enum types.
14006
14007 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14008
14009 * NEWS: Mention $_siginfo support for Windows.
14010 * windows-nat.c (handle_exception): Set siginfo_er.
14011 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14012 (windows_xfer_siginfo): New function.
14013 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14014 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14015 (init_windows_gdbarch_data): New function.
14016 (get_windows_gdbarch_data): New function.
14017 (windows_get_siginfo_type): New function.
14018 (windows_init_abi): Register windows_get_siginfo_type.
14019 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14020
14021 2020-02-08 Tom Tromey <tom@tromey.com>
14022
14023 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14024 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14025 <keep>: Declare method.
14026 <m_keep>: Remove member.
14027 <~cutu_reader>: Remove.
14028 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14029 (cutu_reader::cutu_reader): Update.
14030 (cutu_reader::keep): Rename from ~cutu_reader.
14031 (process_psymtab_comp_unit, build_type_psymtabs_1)
14032 (process_skeletonless_type_unit, load_partial_comp_unit)
14033 (load_full_comp_unit, dwarf2_read_addr_index)
14034 (read_signatured_type): Update.
14035
14036 2020-02-08 Tom Tromey <tom@tromey.com>
14037
14038 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14039 "want_partial_unit" parameter.
14040 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14041 Inline check for DW_TAG_partial_unit.
14042 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14043
14044 2020-02-08 Tom Tromey <tom@tromey.com>
14045
14046 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14047 read.c.
14048 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14049 read.c.
14050
14051 2020-02-08 Tom Tromey <tom@tromey.com>
14052
14053 * dwarf2/read.c (read_address): Move to comp-unit.c.
14054 (dwarf2_rnglists_process, dwarf2_ranges_process)
14055 (read_attribute_value, dwarf_decode_lines_1)
14056 (var_decode_location, decode_locdesc): Update.
14057 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14058 read.c. Remove "cu" parameter.
14059 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14060 method.
14061
14062 2020-02-08 Tom Tromey <tom@tromey.com>
14063
14064 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14065 (read_indirect_line_string): Update.
14066 * dwarf2/comp-unit.c (read_offset): Remove.
14067 (read_comp_unit_head): Update.
14068 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14069 method.
14070 (read_offset): Don't declare.
14071
14072 2020-02-08 Tom Tromey <tom@tromey.com>
14073
14074 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14075 * dwarf2/read.c (struct comp_unit_head): Move to
14076 dwarf2/comp-unit.h.
14077 (enum class rcuh_kind): Move to comp-unit.h.
14078 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14079 (read_comp_unit_head, error_check_comp_unit_head)
14080 (read_and_check_comp_unit_head): Move to comp-unit.c.
14081 (read_offset, dwarf_unit_type_name): Likewise.
14082 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14083 (cutu_reader::cutu_reader, read_call_site_scope)
14084 (find_partial_die, follow_die_offset): Update.
14085 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14086
14087 2020-02-08 Tom Tromey <tom@tromey.com>
14088
14089 * dwarf2/read.c (read_offset_1): Move to leb.c.
14090 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14091 (dwarf_decode_macro_bytes): Update.
14092 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14093 * dwarf2/leb.h (read_offset): Declare.
14094
14095 2020-02-08 Tom Tromey <tom@tromey.com>
14096
14097 * dwarf2/read.c (dwarf2_section_size): Remove.
14098 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14099 Update.
14100 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14101
14102 2020-02-08 Tom Tromey <tom@tromey.com>
14103
14104 * dwarf2/read.c (read_initial_length): Move to leb.c.
14105 * dwarf2/leb.h (read_initial_length): Declare.
14106 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14107 handle_nonstd parameter.
14108 * dwarf2/frame.c (read_initial_length): Remove.
14109 (decode_frame_entry_1): Update.
14110
14111 2020-02-08 Tom Tromey <tom@tromey.com>
14112
14113 * dwarf2/loc.c (dwarf2_find_location_expression)
14114 (dwarf_evaluate_loc_desc::get_tls_address)
14115 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14116 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14117 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14118 (dwarf2_compile_property_to_c)
14119 (dwarf2_loc_desc_get_symbol_read_needs)
14120 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14121 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14122 (loclist_describe_location, loclist_tracepoint_var_ref)
14123 (loclist_generate_c_location): Update.
14124 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14125 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14126 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14127 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14128 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14129 (dwarf2_per_cu_data::addr_size)
14130 (dwarf2_per_cu_data::ref_addr_size)
14131 (dwarf2_per_cu_data::text_offset)
14132 (dwarf2_per_cu_data::addr_type): Now methods.
14133 (per_cu_header_read_in): Make per_cu "const".
14134 (dwarf2_version): Remove.
14135 (dwarf2_per_cu_data::int_type): Now a method.
14136 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14137 (set_die_type, read_array_type, read_subrange_index_type)
14138 (read_tag_string_type, read_subrange_type): Update.
14139 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14140 offset_size, ref_addr_size, text_offset, addr_type, version,
14141 objfile, int_type, addr_sized_int_type>: Declare methods.
14142
14143 2020-02-08 Tom Tromey <tom@tromey.com>
14144
14145 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14146 Move earlier.
14147
14148 2020-02-08 Tom Tromey <tom@tromey.com>
14149
14150 * dwarf2/read.h (dwarf_line_debug): Declare.
14151 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14152 * dwarf2/read.c: Move line_header code to new files.
14153 (dwarf_line_debug): No longer static.
14154 * dwarf2/line-header.c: New file.
14155 * dwarf2/line-header.h: New file.
14156
14157 2020-02-08 Tom Tromey <tom@tromey.com>
14158
14159 * dwarf2/read.c (struct line_header) <file_full_name,
14160 file_file_name>: Return unique_xmalloc_ptr.
14161 (line_header::file_file_name): Update.
14162 (line_header::file_full_name): Update.
14163 (dw2_get_file_names_reader): Update.
14164 (macro_start_file): Update.
14165
14166 2020-02-08 Tom Tromey <tom@tromey.com>
14167
14168 * dwarf2/read.c (struct line_header) <file_full_name,
14169 file_file_name>: Declare methods.
14170 (dw2_get_file_names_reader): Update.
14171 (file_file_name): Now a method.
14172 (file_full_name): Likewise.
14173 (macro_start_file): Update.
14174
14175 2020-02-08 Tom Tromey <tom@tromey.com>
14176
14177 * dwarf2/read.c (dwarf_always_disassemble)
14178 (show_dwarf_always_disassemble): Move to loc.c.
14179 (_initialize_dwarf2_read): Move "always-disassemble" registration
14180 to loc.c.
14181 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14182 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14183 static.
14184 (show_dwarf_always_disassemble): Move from read.c.
14185 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14186
14187 2020-02-08 Tom Tromey <tom@tromey.com>
14188
14189 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14190 (create_quick_file_names_table): Return htab_up.
14191 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14192 Update.
14193 * dwarf2/read.h (struct dwarf2_per_objfile)
14194 <quick_file_names_table>: Now htab_up.
14195
14196 2020-02-08 Tom Tromey <tom@tromey.com>
14197
14198 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14199
14200 2020-02-08 Tom Tromey <tom@tromey.com>
14201
14202 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14203 Rewrite.
14204 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14205 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14206 (abbrev_table::abbrev_table): No longer inline.
14207 (ABBREV_HASH_SIZE): Remove.
14208 (abbrev_table::m_abbrevs): Now an htab_up.
14209
14210 2020-02-08 Tom Tromey <tom@tromey.com>
14211
14212 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14213 (cutu_reader): Update.
14214 (build_type_psymtabs_1): Update.
14215 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14216 (abbrev_table::alloc_abbrev): Update.
14217 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14218 (abbrev_table::read): New static method, renamed from
14219 abbrev_table_read_table.
14220 (abbrev_table::alloc_abbrev)
14221 (abbrev_table::add_abbrev): Now private.
14222 (abbrev_table::abbrev_table): Now private.
14223 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14224
14225 2020-02-08 Tom Tromey <tom@tromey.com>
14226
14227 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14228 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14229 htab_up.
14230
14231 2020-02-08 Tom Tromey <tom@tromey.com>
14232
14233 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14234 htab_up.
14235 (lookup_dwo_unit_in_dwp): Update.
14236 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14237 on obstack.
14238
14239 2020-02-08 Tom Tromey <tom@tromey.com>
14240
14241 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14242 obstack.
14243
14244 2020-02-08 Tom Tromey <tom@tromey.com>
14245
14246 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14247 line_header_hash.
14248 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14249 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14250 Change type to htab_up.
14251
14252 2020-02-08 Tom Tromey <tom@tromey.com>
14253
14254 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14255 htab_up. Don't allocate on obstack.
14256 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14257 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14258 Change type to htab_up.
14259
14260 2020-02-08 Tom Tromey <tom@tromey.com>
14261
14262 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14263 Change type to htab_up.
14264 * dwarf2/read.c (create_signatured_type_table_from_index)
14265 (create_signatured_type_table_from_debug_names)
14266 (create_all_type_units, add_type_unit)
14267 (lookup_dwo_signatured_type, lookup_signatured_type)
14268 (process_skeletonless_type_unit): Update.
14269 (create_debug_type_hash_table, create_debug_types_hash_table):
14270 Change type of types_htab.
14271 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14272 htab_up. Don't allocate on obstack.
14273 (create_cus_hash_table): Change type of cus_htab parameter.
14274 (struct dwo_file) <cus, tus>: Now htab_up.
14275 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14276 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14277 (queue_and_load_all_dwo_tus): Update.
14278 * dwarf2/index-write.c (write_gdbindex): Update.
14279 (write_debug_names): Update.
14280
14281 2020-02-08 Tom Tromey <tom@tromey.com>
14282
14283 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14284 dwarf2/read.c. Remove "next" member. Add constructor ntad
14285 destructor.
14286 (struct dwarf2_per_objfile) <queue>: New member.
14287 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14288 dwarf2/read.h.
14289 (dwarf2_queue, dwarf2_queue_tail): Remove.
14290 (class dwarf2_queue_guard): Add parameter to constructor. Use
14291 DISABLE_COPY_AND_ASSIGN.
14292 <m_per_objfile>: New member.
14293 <~dwarf2_queue_guard>: Rewrite.
14294 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14295 Update.
14296 (~dwarf2_queue_item): New.
14297
14298 2020-02-08 Tom Tromey <tom@tromey.com>
14299
14300 * dwarf2/read.c (struct die_info) <has_children>: New member.
14301 (dw2_get_file_names_reader): Remove has_children.
14302 (dw2_get_file_names): Update.
14303 (read_cutu_die_from_dwo): Remove has_children.
14304 (cutu_reader::init_tu_and_read_dwo_dies)
14305 (cutu_reader::cutu_reader): Update.
14306 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14307 Remove has_children.
14308 (build_type_psymtabs_1, process_skeletonless_type_unit)
14309 (load_partial_comp_unit, load_full_comp_unit): Update.
14310 (create_dwo_cu_reader): Remove has_children.
14311 (create_cus_hash_table, read_die_and_children): Update.
14312 (read_full_die_1,read_full_die): Remove has_children.
14313 (read_signatured_type): Update.
14314 (class cutu_reader) <has_children>: Remove.
14315
14316 2020-02-08 Tom Tromey <tom@tromey.com>
14317
14318 * dwarf2/expr.c: Rename from dwarf2expr.c.
14319 * dwarf2/expr.h: Rename from dwarf2expr.h.
14320 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14321 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14322 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14323 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14324 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14325 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14326 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14327 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14328 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14329 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14330 * dwarf2/loc.c: Rename from dwarf2loc.c.
14331 * dwarf2/loc.h: Rename from dwarf2loc.h.
14332 * dwarf2/read.c: Rename from dwarf2read.c.
14333 * dwarf2/read.h: Rename from dwarf2read.h.
14334 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14335 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14336 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14337 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14338 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14339 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14340 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14341 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14342 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14343 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14344 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14345 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14346 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14347 Update.
14348 * Makefile.in (COMMON_SFILES): Update.
14349 (HFILES_NO_SRCDIR): Update.
14350
14351 2020-02-08 Tom Tromey <tom@tromey.com>
14352
14353 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14354 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14355
14356 2020-02-08 Tom Tromey <tom@tromey.com>
14357
14358 * dwarf2read.h (struct die_info): Don't declare.
14359
14360 2020-02-08 Tom Tromey <tom@tromey.com>
14361
14362 * dwarf2read.h (die_info_ptr): Remove typedef.
14363
14364 2020-02-08 Tom Tromey <tom@tromey.com>
14365
14366 * dwarf2read.c (read_call_site_scope)
14367 (handle_data_member_location, dwarf2_add_member_fn)
14368 (mark_common_block_symbol_computed, read_common_block)
14369 (attr_to_dynamic_prop, partial_die_info::read)
14370 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14371 (dwarf2_symbol_mark_computed, set_die_type): Update.
14372 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14373 method.
14374 (attr_form_is_block): Don't declare.
14375 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14376
14377 2020-02-08 Tom Tromey <tom@tromey.com>
14378
14379 * dwarf2read.c (dwarf2_find_base_address, )
14380 (read_call_site_scope, rust_containing_type)
14381 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14382 (handle_data_member_location, dwarf2_add_member_fn)
14383 (get_alignment, read_structure_type, process_structure_scope)
14384 (mark_common_block_symbol_computed, read_common_block)
14385 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14386 (partial_die_info::read, read_attribute_value, new_symbol)
14387 (lookup_die_type, dwarf2_get_ref_die_offset)
14388 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14389 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14390 (dwarf2_symbol_mark_computed): Update.
14391 * dwarf2/attribute.h (struct attribute) <value_as_address,
14392 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14393 methods.
14394 (value_as_address, attr_form_is_section_offset)
14395 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14396 * dwarf2/attribute.c (attribute::value_as_address)
14397 (attribute::form_is_section_offset, attribute::form_is_constant)
14398 (attribute::form_is_ref): Now methods.
14399
14400 2020-02-08 Tom Tromey <tom@tromey.com>
14401
14402 * dwarf2read.c (struct attribute, DW_STRING)
14403 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14404 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14405 (attr_form_is_block, attr_form_is_section_offset)
14406 (attr_form_is_constant, attr_form_is_ref): Move.
14407 * dwarf2/attribute.h: New file.
14408 * dwarf2/attribute.c: New file, from dwarf2read.c.
14409 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14410
14411 2020-02-08 Tom Tromey <tom@tromey.com>
14412
14413 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14414 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14415 Move.
14416 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14417 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14418 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14419 abbrev.c.
14420 * dwarf2/abbrev.h: New file.
14421 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14422 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14423
14424 2020-02-08 Tom Tromey <tom@tromey.com>
14425
14426 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14427 (dwarf2_section_size, dwarf2_get_section_info)
14428 (create_signatured_type_table_from_debug_names)
14429 (create_addrmap_from_aranges, read_debug_names_from_section)
14430 (get_gdb_index_contents_from_section, read_comp_unit_head)
14431 (error_check_comp_unit_head, read_abbrev_offset)
14432 (create_debug_type_hash_table, init_cu_die_reader)
14433 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14434 (read_comp_units_from_section, create_cus_hash_table)
14435 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14436 (create_dwp_v2_section, dwarf2_rnglists_process)
14437 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14438 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14439 (read_indirect_string_from_dwz, read_addr_index_1)
14440 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14441 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14442 (fill_in_loclist_baton): Update.
14443 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14444 get_containing_section, get_bfd_owner, get_bfd_section,
14445 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14446 (dwarf2_read_section, get_section_name, get_section_file_name)
14447 (get_containing_section, get_section_bfd_owner)
14448 (get_section_bfd_section, get_section_name, get_section_file_name)
14449 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14450 declare.
14451 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14452 (dwarf2_section_info::get_bfd_owner)
14453 (dwarf2_section_info::get_bfd_section)
14454 (dwarf2_section_info::get_name)
14455 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14456 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14457 (dwarf2_section_info::read): Now methods.
14458 * dwarf-index-write.c (class debug_names): Update.
14459
14460 2020-02-08 Tom Tromey <tom@tromey.com>
14461
14462 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14463 Move to dwarf2/section.h.
14464 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14465 (get_section_bfd_section, get_section_name)
14466 (get_section_file_name, get_section_id, get_section_flags)
14467 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14468 dwarf2/section.c.
14469 * dwarf2/section.h: New file.
14470 * dwarf2/section.c: New file, from dwarf2read.c.
14471 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14472
14473 2020-02-08 Tom Tromey <tom@tromey.com>
14474
14475 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14476 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14477 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14478 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14479 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14480 * dwarf2/leb.h: New file, from dwarf2read.c.
14481 * dwarf2/leb.c: New file, from dwarf2read.c.
14482 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14483 Remove.
14484 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14485 (COMMON_SFILES): Add dwarf2/leb.c.
14486
14487 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14488
14489 GDB 9.1 released.
14490
14491 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14492
14493 PR gdb/25190:
14494 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14495 * gdb/remote.c (remote_console_output): Update.
14496 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14497 (ui_file_puts): ...this.
14498 * gdb/ui-file.h (ui_file_puts): Add declaration.
14499 * gdb/utils.c (emit_style_escape): Update.
14500 (flush_wrap_buffer): Update.
14501 (fputs_maybe_filtered): Update.
14502 (fputs_unfiltered): Add function.
14503
14504 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14505
14506 * gdb/event-loop.c (gdb_wait_for_event): Update.
14507 * gdb/printcmd.c (printf_command): Update.
14508 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14509 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14510 (gdb_os_flush_stderr): Update.
14511 * gdb/remote.c (remote_console_output): Update.
14512 * gdb/ui-file.c (gdb_flush): Rename to...
14513 (ui_file_flush): ...this.
14514 (stderr_file::write): Update.
14515 (stderr_file::puts): Update.
14516 * gdb/ui-file.h (gdb_flush): Rename to...
14517 (ui_file_flush): ...this.
14518 * gdb/utils.c (gdb_flush): Add function.
14519 * gdb/utils.h (gdb_flush): Add declaration.
14520
14521 2020-02-07 Tom Tromey <tromey@adacore.com>
14522
14523 PR breakpoints/24915:
14524 * source.c (find_and_open_source): Do not check basenames_may_differ.
14525
14526 2020-02-07 Tom Tromey <tom@tromey.com>
14527
14528 * README: Update gdbserver documentation.
14529 * gdbserver: Move to top level.
14530 * configure.tgt (build_gdbserver): Remove.
14531 * configure.ac: Remove --enable-gdbserver.
14532 * configure: Rebuild.
14533 * Makefile.in (distclean): Don't mention gdbserver.
14534
14535 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14536
14537 * source-cache.c (source_cache::ensure): Surround
14538 get_plain_source_lines with a try/catch.
14539 (source_cache::get_line_charpos): Get rid of try/catch
14540 and only check for the return value of "ensure".
14541 * tui/tui-source.c (tui_source_window::set_contents):
14542 Simplify "nlines" calculation.
14543
14544 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14545
14546 * MAINTAINERS (Write After Approval): Add myself.
14547
14548 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14549
14550 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14551 function call.
14552
14553 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14554
14555 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14556
14557 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14558
14559 * nat/riscv-linux-tdesc.h: New file.
14560 * nat/riscv-linux-tdesc.c: New file, taking code from...
14561 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14562 ... here.
14563 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14564 NATDEPFILES.
14565
14566 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14567
14568 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14569 we don't set the fake simulator ptid to the null_ptid.
14570
14571 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14572
14573 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14574 * gdbthread.h (class thread_info) <resumed>: Likewise.
14575 * infrun.c (resume_1): Likewise.
14576 (proceed): Likewise.
14577 (infrun_thread_stop_requested): Likewise.
14578 (stop_all_threads): Likewise.
14579 (handle_inferior_event): Likewise.
14580 (restart_threads): Likewise.
14581 (finish_step_over): Likewise.
14582 (keep_going_stepped_thread): Likewise.
14583 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14584 (linux_handle_extended_wait): Likewise.
14585 * record-btrace.c (get_thread_current_frame_id): Likewise.
14586 * record-full.c (record_full_wait_1): Likewise.
14587 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14588 * target.c (target_resume): Likewise.
14589 * thread.c (set_running_thread): Likewise.
14590
14591 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14592
14593 * f-valprint.c (f77_print_array_1): Changed datatype of index
14594 variable to LONGEST from int to enable it to contain bound
14595 values correctly.
14596
14597 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14598
14599 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14600 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14601 offsets according to FLEN determined.
14602 (riscv_linux_nat_target::read_description): Determine FLEN
14603 dynamically.
14604 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14605 according to FLEN determined.
14606 (riscv_linux_nat_target::store_registers): Likewise.
14607
14608 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14609
14610 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14611 when reg->group is empty and reggroup is not.
14612
14613 2020-01-31 Tom Tromey <tromey@adacore.com>
14614
14615 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14616 Call beneath target's mourn_inferior after unpushing.
14617
14618 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14619
14620 PR tui/9765
14621 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14622 have enough lines to fill the screen, still return the lowest
14623 address we found.
14624
14625 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14626
14627 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14628 '-', '<', and '>' commands.
14629
14630 2020-01-29 Pedro Alves <palves@redhat.com>
14631 Sergio Durigan Junior <sergiodj@redhat.com>
14632
14633 * infcmd.c (construct_inferior_arguments): Assert that
14634 'argc' is greater than 0.
14635
14636 2020-01-29 Luis Machado <luis.machado@linaro.org>
14637
14638 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14639 (BRK_INSN_MASK): Define to 0xd4200000.
14640 (aarch64_program_breakpoint_here_p): New function.
14641 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14642 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14643 breakpoint.c.
14644 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14645 breakpoint.h
14646 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14647 call gdbarch_program_breakpoint_here_p.
14648 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14649 default_program_breakpoint_here_p, changed return type to bool and
14650 simplified.
14651 * breakpoint.h (program_breakpoint_here): Moved prototype to
14652 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14653 return type to bool.
14654 * gdbarch.c: Regenerate.
14655 * gdbarch.h: Regenerate.
14656 * gdbarch.sh (program_breakpoint_here_p): New method.
14657 * infrun.c (handle_signal_stop): Call
14658 gdbarch_program_breakpoint_here_p.
14659
14660 2020-01-26 Tom Tromey <tom@tromey.com>
14661
14662 * ctfread.c (struct ctf_fp_info): Reindent.
14663 (_initialize_ctfread): Remove.
14664
14665 2020-01-26 Tom Tromey <tom@tromey.com>
14666
14667 * psymtab.c (partial_map_expand_apply)
14668 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14669 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14670 (psym_print_stats, psym_expand_symtabs_for_function)
14671 (psym_map_symbol_filenames, psym_map_matching_symbols)
14672 (psym_expand_symtabs_matching)
14673 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14674 (maintenance_check_psymtabs): Use new methods.
14675 * psympriv.h (struct partial_symtab) <readin_p,
14676 get_compunit_symtab>: New methods.
14677 <readin, compunit_symtab>: Remove members.
14678 (struct standard_psymtab): New.
14679 (struct legacy_psymtab): Derive from standard_psymtab.
14680 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14681 standard_psymtab.
14682 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14683
14684 2020-01-26 Tom Tromey <tom@tromey.com>
14685
14686 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14687 read_dependencies. Add assert.
14688 * psymtab.c (partial_symtab::read_dependencies): New method.
14689 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14690 method.
14691 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14692 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14693 read_dependencies.
14694 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14695 Add assert.
14696
14697 2020-01-26 Tom Tromey <tom@tromey.com>
14698
14699 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14700 Call expand_psymtab.
14701 (xcoff_read_symtab): Call expand_psymtab.
14702 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14703 legacy_expand_psymtab.
14704 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14705 method.
14706 (struct legacy_psymtab) <expand_psymtab>: Implement.
14707 <legacy_expand_psymtab>: New member.
14708 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14709 (parse_partial_symbols): Set legacy_expand_psymtab.
14710 (psymtab_to_symtab_1): Change argument order. Call
14711 expand_psymtab.
14712 (new_psymtab): Set legacy_expand_psymtab.
14713 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14714 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14715 expand_psymtab.
14716 (dwarf2_psymtab::expand_psymtab): Rename from
14717 psymtab_to_symtab_1. Call expand_psymtab.
14718 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14719 (dbx_end_psymtab): Likewise.
14720 (dbx_psymtab_to_symtab_1): Change argument order. Call
14721 expand_psymtab.
14722 (dbx_read_symtab): Call expand_psymtab.
14723 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14724 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14725 (ctf_psymtab::read_symtab): Call expand_psymtab.
14726
14727 2020-01-26 Tom Tromey <tom@tromey.com>
14728
14729 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14730 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14731 messages.
14732 * mdebugread.c (mdebug_read_symtab): Remove prints.
14733 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14734 assert.
14735 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14736
14737 2020-01-26 Tom Tromey <tom@tromey.com>
14738
14739 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14740 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14741 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14742 legacy_symtab.
14743 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14744 * psymtab.c (psymtab_to_symtab): Call method.
14745 (dump_psymtab): Update.
14746 * psympriv.h (struct partial_symtab): Add virtual destructor.
14747 <read_symtab>: New method.
14748 (struct legacy_symtab): New.
14749 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14750 (struct pst_map) <pst>: Now a legacy_psymtab.
14751 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14752 (new_psymtab): Use legacy_psymtab.
14753 * dwarf2read.h (struct dwarf2_psymtab): New.
14754 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14755 * dwarf2read.c (dwarf2_create_include_psymtab)
14756 (dwarf2_build_include_psymtabs, create_type_unit_group)
14757 (create_partial_symtab, process_psymtab_comp_unit_reader)
14758 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14759 (set_partial_user): Use dwarf2_psymtab.
14760 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14761 (psymtab_to_symtab_1, process_full_comp_unit)
14762 (process_full_type_unit, dwarf2_ranges_read)
14763 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14764 (dwarf_decode_lines): Use dwarf2_psymtab.
14765 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14766 (add_address_entry_worker, write_one_signatured_type)
14767 (recursively_count_psymbols, recursively_write_psymbols)
14768 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14769 (write_debug_names): Likewise.
14770 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14771 <pst>: Now a legacy_psymtab.
14772 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14773 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14774 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14775 * ctfread.c (struct ctf_psymtab): New.
14776 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14777 ctf_psymtab.
14778 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14779 (create_partial_symtab): Return a ctf_psymtab.
14780 (scan_partial_symbols): Update.
14781
14782 2020-01-26 Tom Tromey <tom@tromey.com>
14783
14784 * xcoffread.c (xcoff_start_psymtab): Use new.
14785 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14786 renamed from start_psymtab_common.
14787 * psympriv.h (struct partial_symtab): Add new constructor.
14788 (start_psymtab_common): Don't declare.
14789 * mdebugread.c (parse_partial_symbols): Use new.
14790 * dwarf2read.c (create_partial_symtab): Use new.
14791 * dbxread.c (start_psymtab): Use new.
14792 * ctfread.c (create_partial_symtab): Use new.
14793
14794 2020-01-26 Tom Tromey <tom@tromey.com>
14795
14796 * xcoffread.c (xcoff_end_psymtab): Use new.
14797 * psymtab.c (start_psymtab_common): Use new.
14798 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14799 Update.
14800 * psympriv.h (struct partial_symtab): Add parameters to
14801 constructor. Don't inline.
14802 (allocate_psymtab): Don't declare.
14803 * mdebugread.c (new_psymtab): Use new.
14804 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14805 * dbxread.c (dbx_end_psymtab): Use new.
14806
14807 2020-01-26 Tom Tromey <tom@tromey.com>
14808
14809 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14810 allocate_psymtab. Update documentation.
14811 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14812 allocate_psymtab. Do not use new.
14813 (allocate_psymtab): Use new. Update.
14814
14815 2020-01-26 Tom Tromey <tom@tromey.com>
14816
14817 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14818 * psymtab.c (psym_print_stats): Update.
14819 * psympriv.h (struct partial_symtab) <readin,
14820 psymtabs_addrmap_supported, anonymous>: Now bool.
14821 * mdebugread.c (psymtab_to_symtab_1): Update.
14822 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14823 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14824 (process_full_comp_unit, process_full_type_unit): Update.
14825 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14826 * ctfread.c (psymtab_to_symtab): Update.
14827
14828 2020-01-26 Tom Tromey <tom@tromey.com>
14829
14830 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14831 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14832 * psymtab.c (psymtab_storage): Delete psymtabs.
14833 (psymtab_storage::allocate_psymtab): Use new.
14834 (psymtab_storage::discard_psymtab): Use delete.
14835 * psympriv.h (struct partial_symtab): Add constructor and
14836 initializers.
14837
14838 2020-01-26 Tom Tromey <tom@tromey.com>
14839
14840 * machoread.c: Do not include psympriv.h.
14841
14842 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14843
14844 * NEWS: Mention the new option and the set/show commands.
14845
14846 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14847
14848 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14849 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14850 (validate_exec_file): New variables, enums, functions.
14851 (exec_file_locate_attach, print_section_info): Style the filenames.
14852 (_initialize_exec): Install show_exec_file_mismatch_command and
14853 set_exec_file_mismatch_command.
14854 * gdbcore.h (validate_exec_file): Declare.
14855 * infcmd.c (attach_command): Call validate_exec_file.
14856 * remote.c ( remote_target::remote_add_inferior): Likewise.
14857
14858 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14859
14860 * frame.c (find_frame_sal): Move call to get_next_frame into more
14861 inner scope.
14862 * inline-frame.c (inilne_state) <inline_state>: Update argument
14863 types.
14864 (inilne_state) <skipped_symbol>: Rename to...
14865 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14866 (skip_inline_frames): Build vector of skipped symbols and use this
14867 to reate the inline_state.
14868 (inline_skipped_symbol): Add a comment and some assertions, fetch
14869 skipped symbol from the list.
14870
14871 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14872
14873 * buildsym.c (lte_is_less_than): Delete.
14874 (buildsym_compunit::end_symtab_with_blockvector): Create local
14875 lambda function to sort line table entries, and use
14876 std::stable_sort instead of std::sort.
14877 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14878 markers when looking for a previous line.
14879
14880 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14881
14882 * dwarf2read.c (lnp_state_machine::record_line): Include
14883 end_sequence parameter in debug print out. Record the line if we
14884 are at an end_sequence marker even if it's not the start of a
14885 statement.
14886 * symmisc.c (maintenance_print_one_line_table): Print end of
14887 sequence markers with 'END' not '0'.
14888
14889 2020-01-24 Pedro Alves <palves@redhat.com>
14890
14891 PR gdb/25410
14892 * thread.c (scoped_restore_current_thread::restore): Use
14893 switch_to_inferior_no_thread.
14894 * exec.c: Include "progspace-and-thread.h".
14895 (add_target_sections, remove_target_sections):
14896 scoped_restore_current_pspace_and_thread instead of
14897 scoped_restore_current_thread.
14898 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14899 and aspace to the inferior before calling clone_program_space.
14900 Remove stale comment.
14901
14902 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14903
14904 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14905 (arm_netbsd_nat_target::fetch_registers): ...this.
14906 (arm_nbsd_nat_target::store_registers): Rename to...
14907 (arm_netbsd_nat_target::store_registers): ...this.
14908
14909 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14910
14911 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14912 register_t.
14913
14914 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14915
14916 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14917 Update comment.
14918 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14919 Likewise.
14920 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14921 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14922 the correct replacement (iterate_over_regset_sections).
14923 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14924 Update comment.
14925
14926 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14927
14928 PR gdb/23718
14929 * gdb/python/python.c (execute_gdb_command): Call
14930 async_enable_stdin in catch block.
14931
14932 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14933
14934 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14935 SWITCH_THRU_ALL_UIS.
14936
14937 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14938
14939 PR tui/9765
14940 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14941 comment, add extra parameter, and update to store previous symbol
14942 when appropriate.
14943 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14944 add extra parameter.
14945 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14946 remove unneeded parameter, add try/catch around gdb_print_insn,
14947 rewrite to add items to asm_lines vector.
14948 (tui_find_backward_disassembly_start_address): New function.
14949 (tui_find_disassembly_address): Updated throughout.
14950 (tui_disasm_window::set_contents): Update for changes to
14951 tui_disassemble.
14952 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14953 number of lines to scroll.
14954
14955 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14956
14957 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14958 (SECT_OFF_DATA): Likewise.
14959 (SECT_OFF_RODATA): Likewise.
14960 (SECT_OFF_TEXT): Likewise.
14961 (SECT_OFF_BSS): Likewise.
14962 (struct objfile) <text_section_offset, data_section_offset>: New
14963 methods.
14964 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14965 objfile::text_section_offset.
14966 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14967 * coffread.c (coff_symtab_read): Likewise.
14968 (enter_linenos): Likewise.
14969 (process_coff_symbol): Likewise.
14970 * ctfread.c (get_objfile_text_range): Likewise.
14971 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14972 Use objfile::data_section_offset.
14973 * dwarf2-frame.c (execute_cfa_program): Use
14974 objfile::text_section_offset.
14975 (dwarf2_frame_find_fde): Likewise.
14976 * dwarf2read.c (create_addrmap_from_index): Likewise.
14977 (create_addrmap_from_aranges): Likewise.
14978 (dw2_find_pc_sect_compunit_symtab): Likewise.
14979 (process_psymtab_comp_unit_reader): Likewise.
14980 (add_partial_symbol): Likewise.
14981 (add_partial_subprogram): Likewise.
14982 (process_full_comp_unit): Likewise.
14983 (read_file_scope): Likewise.
14984 (read_func_scope): Likewise.
14985 (read_lexical_block_scope): Likewise.
14986 (read_call_site_scope): Likewise.
14987 (dwarf2_rnglists_process): Likewise.
14988 (dwarf2_ranges_process): Likewise.
14989 (dwarf2_ranges_read): Likewise.
14990 (dwarf_decode_lines_1): Likewise.
14991 (new_symbol): Likewise.
14992 (dwarf2_fetch_die_loc_sect_off): Likewise.
14993 (dwarf2_per_cu_text_offset): Likewise.
14994 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14995 * hppa-tdep.c (read_unwind_info): Likewise.
14996 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14997 * psympriv.h (struct partial_symtab): Likewise.
14998 * psymtab.c (find_pc_sect_psymtab): Likewise.
14999 * solib-svr4.c (enable_break): Likewise.
15000 * stap-probe.c (relocate_address): Use
15001 objfile::data_section_offset.
15002 * xcoffread.c (enter_line_range): Use
15003 objfile::text_section_offset.
15004 (read_xcoff_symtab): Likewise.
15005
15006 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15007
15008 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15009 declaration to narrower scopes.
15010
15011 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15012
15013 * darwin-nat.h (struct darwin_exception_msg, enum
15014 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15015 Move up.
15016 (class darwin_nat_target) <wait_1, check_new_threads,
15017 decode_exception_message, decode_message, stop_inferior,
15018 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15019 * darwin-nat.c (darwin_check_new_threads): Rename to...
15020 (darwin_nat_target::check_new_threads): ... this.
15021 (darwin_suspend_inferior_it): Remove.
15022 (darwin_decode_exception_message): Rename to...
15023 (darwin_nat_target::decode_exception_message): ... this.
15024 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15025 (darwin_decode_message): Rename to...
15026 (darwin_nat_target::decode_message): ... this.
15027 (cancel_breakpoint): Rename to...
15028 (darwin_nat_target::cancel_breakpoint): ... this.
15029 (darwin_wait): Rename to...
15030 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15031 instead of iterate_over_inferiors.
15032 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15033 (darwin_stop_inferior): Rename to...
15034 (darwin_nat_target::stop_inferior): ... this.
15035 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15036 (darwin_init_thread_list): Rename to...
15037 (darwin_nat_target::init_thread_list): ... this.
15038 (darwin_ptrace_him): Rename to...
15039 (darwin_nat_target::ptrace_him): ... this.
15040 (darwin_nat_target::create_inferior): Pass lambda function to
15041 fork_inferior.
15042 (darwin_nat_target::detach): Call stop_inferior instead of
15043 darwin_stop_inferior.
15044 * fork-inferior.h (fork_inferior): Change init_trace_fun
15045 parameter to gdb::function_view.
15046 * fork-inferior.c (fork_inferior): Likewise.
15047
15048 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15049
15050 * i386-cygwin-tdep.c (core_process_module_section): Update.
15051 * windows-nat.c (struct lm_info_windows): Add text_offset.
15052 (windows_xfer_shared_libraries): Update.
15053 * windows-tdep.c (windows_xfer_shared_library):
15054 Add text_offset_cached argument.
15055 * windows-tdep.h (windows_xfer_shared_library): Update.
15056
15057 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15058
15059 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15060
15061 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15062
15063 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15064 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15065 replace with range-based for.
15066 (gdbsim_interrupt_inferior): Remove.
15067 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15068 with a range-based for. Inline code from
15069 gdbsim_interrupt_inferior.
15070
15071 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15072
15073 * infrun.c (proceed): Fix indentation.
15074
15075 2020-01-21 Tom Tromey <tromey@adacore.com>
15076
15077 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15078 * python/python.c (python_extension_ops): Update.
15079 (gdbpy_colorize): New function.
15080 * python/lib/gdb/__init__.py (colorize): New function.
15081 * extension.h (ext_lang_colorize): Declare.
15082 * extension.c (ext_lang_colorize): New function.
15083 * extension-priv.h (struct extension_language_ops) <colorize>: New
15084 member.
15085 * cli/cli-style.c (_initialize_cli_style): Update help text.
15086
15087 2020-01-21 Luis Machado <luis.machado@linaro.org>
15088
15089 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15090 <cond>: Change type to bool.
15091 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15092 (aarch64_displaced_step_cb): Likewise.
15093 (aarch64_displaced_step_tb): Likewise.
15094
15095 2020-01-21 Luis Machado <luis.machado@linaro.org>
15096
15097 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15098 output.
15099
15100 2020-01-21 Luis Machado <luis.machado@linaro.org>
15101
15102 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15103 <pc_adjust>: Adjust the documentation.
15104 (aarch64_displaced_step_fixup): Check if PC really moved before
15105 adjusting it.
15106
15107 2020-01-19 Tom Tromey <tom@tromey.com>
15108
15109 * disasm.c (~gdb_disassembler): New destructor.
15110 (gdb_buffered_insn_length): Call disassemble_free_target.
15111 * disasm.h (class gdb_disassembler): Declare destructor. Use
15112 DISABLE_COPY_AND_ASSIGN.
15113
15114 2020-01-19 Tom Tromey <tom@tromey.com>
15115
15116 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15117 (die_reader_func_ftype): Remove.
15118 (cutu_reader): New class.
15119 (dw2_get_file_names_reader): Remove "data" parameter.
15120 (dw2_get_file_names): Use cutu_reader.
15121 (create_debug_type_hash_table): Update.
15122 (read_cutu_die_from_dwo): Update comment.
15123 (lookup_dwo_unit): Add dwo_name parameter.
15124 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15125 die_reader_func_ftype and data parameters.
15126 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15127 Remove die_reader_func_ftype and data parameters.
15128 (~cutu_reader): New; from init_cutu_and_read_dies.
15129 (cutu_reader::cutu_reader): Rename from
15130 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15131 and data parameters.
15132 (init_cutu_and_read_dies_simple): Remove.
15133 (struct process_psymtab_comp_unit_data): Remove.
15134 (process_psymtab_comp_unit_reader): Remove data parameter; add
15135 want_partial_unit and pretend_language parameters.
15136 (process_psymtab_comp_unit): Use cutu_reader.
15137 (build_type_psymtabs_reader): Remove data parameter.
15138 (build_type_psymtabs_1): Use cutu_reader.
15139 (process_skeletonless_type_unit): Likewise.
15140 (load_partial_comp_unit_reader): Remove.
15141 (load_partial_comp_unit): Use cutu_reader.
15142 (load_full_comp_unit_reader): Remove.
15143 (load_full_comp_unit): Use cutu_reader.
15144 (struct create_dwo_cu_data): Remove.
15145 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15146 dwo_unit parameters.
15147 (create_cus_hash_table): Use cutu_reader.
15148 (struct dwarf2_read_addr_index_data): Remove.
15149 (dwarf2_read_addr_index_reader): Remove.
15150 (dwarf2_read_addr_index): Use cutu_reader.
15151 (read_signatured_type_reader): Remove.
15152 (read_signatured_type): Use cutu_reader.
15153
15154 2020-01-19 Tom Tromey <tom@tromey.com>
15155
15156 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15157 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15158 (tui_wrefresh): Declare.
15159 * tui/tui-wingeneral.c (suppress_output): New global.
15160 (tui_suppress_output, ~tui_suppress_output): New constructor and
15161 destructor.
15162 (tui_wrefresh): New function.
15163 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15164 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15165 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15166 method.
15167 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15168 tui_wrefresh.
15169 (tui_data_window::no_refresh): New method.
15170 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15171 (tui_reg_command): Use tui_suppress_output
15172 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15173 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15174 method.
15175 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15176
15177 2020-01-19 Tom Tromey <tom@tromey.com>
15178
15179 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15180 Handle case where symtab is null.
15181
15182 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15183
15184 * linux-fork.c (one_fork_p): Simplify.
15185
15186 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15187
15188 * top.c (struct qt_args): Remove.
15189 (kill_or_detach): Change return type to void, replace `void *`
15190 parameter with a proper one.
15191 (print_inferior_quit_action): Likewise.
15192 (quit_confirm): Use range-based for loop to iterate over inferiors.
15193 (quit_force): Likewise.
15194
15195 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15196
15197 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15198 `void *` parameter with proper parameters.
15199 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15200 (print_one_inferior): Change return type to void, replace `void *`
15201 parameter with proper parameters.
15202 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15203 inferiors.
15204 (get_other_inferior): Remove.
15205 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15206 inferiors.
15207
15208 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15209
15210 * mi/mi-interp.c (report_initial_inferior): Remove.
15211 (mi_interp::init): Use range-based for to iterate over inferiors.
15212
15213 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15214
15215 * python/py-inferior.c (build_inferior_list): Remove.
15216 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15217
15218 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15219
15220 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15221 (btrace_stitch_trace): Likewise.
15222 * charset.c (intermediate_encoding): Likewise (vaild).
15223 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15224 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15225 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15226
15227 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15228
15229 * windows-tdep.c (windows_get_tlb_type):
15230 Add rtl_user_process_parameters type.
15231
15232 2020-01-16 Pedro Alves <palves@redhat.com>
15233 Norbert Lange <nolange79@gmail.com>
15234
15235 PR build/24805
15236 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15237 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15238 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15239 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15240 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15241 (ps_plog): Redeclare exported functions with default visibility.
15242
15243 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15244
15245 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15246 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15247
15248 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15249
15250 * infcmd.c (post_create_inferior): Use get_thread_regcache
15251 instead of get_current_regcache.
15252
15253 2020-01-14 Tom Tromey <tom@tromey.com>
15254
15255 PR symtab/12535:
15256 * python/python.c (gdbpy_decode_line): Treat empty string the same
15257 as no argument.
15258
15259 2020-01-14 Tom Tromey <tom@tromey.com>
15260
15261 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15262
15263 2020-01-14 Tom Tromey <tom@tromey.com>
15264
15265 * nat/linux-btrace.c: Don't include <config.h>.
15266 * nat/linux-ptrace.c: Don't include <config.h>.
15267 * nat/x86-linux-dregs.c: Don't include <config.h>.
15268
15269 2020-01-14 Tom Tromey <tom@tromey.com>
15270
15271 * configure: Rebuild.
15272 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15273
15274 2020-01-14 Tom Tromey <tom@tromey.com>
15275
15276 * nat/x86-linux-dregs.c: Include configh.h.
15277 * nat/linux-ptrace.c: Include configh.h.
15278 * nat/linux-btrace.c: Include configh.h.
15279 * defs.h: Include config.h, bfd.h.
15280 * configure.ac: Don't source common.host.
15281 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15282 * configure: Rebuild.
15283 * acinclude.m4: Update path.
15284 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15285 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15286 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15287 (CLIBS): Add LIBSUPPORT.
15288 (CDEPS): Likewise.
15289 (COMMON_SFILES): Remove gdbsupport files.
15290 (HFILES_NO_SRCDIR): Likewise.
15291 (stamp-version): Update path to create-version.sh.
15292 (ALLDEPFILES): Remove gdbsupport files.
15293
15294 2020-01-14 Tom Tromey <tom@tromey.com>
15295
15296 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15297 USE_WIN32API when needed.
15298 * configure.ac (USE_WIN32API): Don't define.
15299 (WIN32LIBS): Use WIN32APILIBS.
15300 * configure: Rebuild.
15301
15302 2020-01-14 Tom Tromey <tom@tromey.com>
15303
15304 * configure: Rebuild.
15305 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15306
15307 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15308
15309 * skip.c (skip_function_command): Make skip w/o arguments use the
15310 name of the inlined function if pc is inside any inlined function.
15311
15312 2020-01-14 Luis Machado <luis.machado@linaro.org>
15313
15314 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15315 * infrun.c (resume_1): Likewise.
15316 (handle_inferior_event): Remove stale comment.
15317 * linux-nat.c (linux_nat_target::resume): Update comments.
15318 (save_stop_reason): Likewise.
15319 (linux_nat_filter_event): Likewise.
15320 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15321
15322 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15323
15324 * elfread.c (record_minimal_symbol): Set section index to 0 for
15325 non-allocatable sections.
15326
15327
15328 2020-01-13 Ali Tamur <tamur@google.com>
15329
15330 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15331 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15332 to gdb::optional. Update comments.
15333 (dwo_file): Update comments.
15334 (read_attribute): Update API to take an additional out parameter,
15335 need_reprocess. This is used to mark attributes that need other
15336 attributes (e.g. str_offsets_base) for correct computation which may not
15337 have been read yet.
15338 (read_attribute_reprocess): New function declaration.
15339 (read_addr_index): Likewise.
15340 (read_dwo_str_index): Likewise.
15341 (read_stub_str_index): Likewise.
15342 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15343 (lookup_addr_base): New function definition.
15344 (lookup_ranges_base): Likewise.
15345 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15346 lookup_ranges_base.
15347 (init_cutu_and_read_dies): Update comments.
15348 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15349 unit. This is used to inherit parent's str_offsets_base and addr_base.
15350 Update comments.
15351 (init_cutu_and_read_dies_simple): Reflect API changes.
15352 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15353 (create_cus_hash_table): Change API to take parent compile unit.
15354 Reflect API changes.
15355 (open_and_init_dwo_file): Reflect API changes.
15356 (dwarf2_get_pc_bounds): Update comments.
15357 (dwarf2_record_block_ranges): Likewise.
15358 (read_full_die_1): Change implementation to reprocess attributes that
15359 need str_offsets_base and addr_base.
15360 (partial_die_info::read): Likewise.
15361 (read_attribute_reprocess): New function definition.
15362 (read_attribute_value): Change API to take an additional out parameter,
15363 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15364 when a non-dwo compile unit has index based attributes.
15365 (read_attribute): Reflect API changes.
15366 (read_addr_index_1): Reflect API changes. Update comments.
15367 (dwarf2_read_addr_index_data): Reflect API changes.
15368 (dwarf2_read_addr_index): Likewise.
15369 (read_str_index): Change API and implementation. This becomes a helper
15370 to be used by the new string index related methods. Update error
15371 message and comments.
15372 (read_dwo_str_index): New function definition.
15373 (read_stub_str_index): Likewise.
15374 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15375 * symfile.h (dwarf2_debug_sections): Likewise.
15376 * xcoffread.c (dwarf2_debug_sections): Likewise.
15377
15378 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15379
15380 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15381 core_reg_sect type to gdb_byte *.
15382 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15383 * cris-tdep.c (fetch_core_registers): Likewise.
15384 * corelow.c (core_target::get_core_register_section): Change
15385 type of `contents` to gdb::byte_vector.
15386
15387 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15388
15389 * tui/tui-wingeneral.c (box_win): Position the title in the center
15390 of the border.
15391
15392 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15393
15394 * corelow.c (core_target::get_core_register_section): Use
15395 std::vector instead of alloca.
15396
15397 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15398
15399 * warning.m4: Add -Wmissing-declarations to build_warnings.
15400 * configure: Re-generate.
15401
15402 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15403
15404 * python/python.c (init__gdb_module): Add declaration.
15405
15406 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15407
15408 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15409 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15410 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15411 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15412 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15413 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15414 * ada-exp.y (_initialize_ada_exp): Add declaration.
15415 * ada-lang.c (_initialize_ada_language): Add declaration.
15416 * ada-tasks.c (_initialize_tasks): Add declaration.
15417 * agent.c (_initialize_agent): Add declaration.
15418 * aix-thread.c (_initialize_aix_thread): Add declaration.
15419 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15420 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15421 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15422 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15423 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15424 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15425 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15426 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15427 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15428 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15429 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15430 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15431 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15432 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15433 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15434 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15435 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15436 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15437 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15438 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15439 * annotate.c (_initialize_annotate): Add declaration.
15440 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15441 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15442 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15443 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15444 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15445 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15446 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15447 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15448 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15449 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15450 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15451 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15452 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15453 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15454 * auto-load.c (_initialize_auto_load): Add declaration.
15455 * auxv.c (_initialize_auxv): Add declaration.
15456 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15457 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15458 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15459 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15460 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15461 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15462 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15463 * breakpoint.c (_initialize_breakpoint): Add declaration.
15464 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15465 * btrace.c (_initialize_btrace): Add declaration.
15466 * charset.c (_initialize_charset): Add declaration.
15467 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15468 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15469 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15470 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15471 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15472 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15473 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15474 * coffread.c (_initialize_coffread): Add declaration.
15475 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15476 * compile/compile.c (_initialize_compile): Add declaration.
15477 * complaints.c (_initialize_complaints): Add declaration.
15478 * completer.c (_initialize_completer): Add declaration.
15479 * copying.c (_initialize_copying): Add declaration.
15480 * corefile.c (_initialize_core): Add declaration.
15481 * corelow.c (_initialize_corelow): Add declaration.
15482 * cp-abi.c (_initialize_cp_abi): Add declaration.
15483 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15484 * cp-support.c (_initialize_cp_support): Add declaration.
15485 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15486 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15487 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15488 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15489 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15490 * ctfread.c (_initialize_ctfread): Add declaration.
15491 * d-lang.c (_initialize_d_language): Add declaration.
15492 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15493 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15494 * dbxread.c (_initialize_dbxread): Add declaration.
15495 * dcache.c (_initialize_dcache): Add declaration.
15496 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15497 * disasm.c (_initialize_disasm): Add declaration.
15498 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15499 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15500 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15501 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15502 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15503 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15504 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15505 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15506 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15507 * elfread.c (_initialize_elfread): Add declaration.
15508 * exec.c (_initialize_exec): Add declaration.
15509 * extension.c (_initialize_extension): Add declaration.
15510 * f-lang.c (_initialize_f_language): Add declaration.
15511 * f-valprint.c (_initialize_f_valprint): Add declaration.
15512 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15513 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15514 * filesystem.c (_initialize_filesystem): Add declaration.
15515 * findcmd.c (_initialize_mem_search): Add declaration.
15516 * findvar.c (_initialize_findvar): Add declaration.
15517 * fork-child.c (_initialize_fork_child): Add declaration.
15518 * frame-base.c (_initialize_frame_base): Add declaration.
15519 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15520 * frame.c (_initialize_frame): Add declaration.
15521 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15522 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15523 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15524 * gcore.c (_initialize_gcore): Add declaration.
15525 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15526 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15527 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15528 * gdbarch.c (_initialize_gdbarch): Add declaration.
15529 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15530 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15531 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15532 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15533 * go-lang.c (_initialize_go_language): Add declaration.
15534 * go32-nat.c (_initialize_go32_nat): Add declaration.
15535 * guile/guile.c (_initialize_guile): Add declaration.
15536 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15537 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15538 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15539 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15540 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15541 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15542 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15543 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15544 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15545 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15546 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15547 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15548 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15549 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15550 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15551 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15552 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15553 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15554 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15555 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15556 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15557 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15558 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15559 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15560 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15561 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15562 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15563 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15564 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15565 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15566 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15567 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15568 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15569 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15570 * infcall.c (_initialize_infcall): Add declaration.
15571 * infcmd.c (_initialize_infcmd): Add declaration.
15572 * inflow.c (_initialize_inflow): Add declaration.
15573 * infrun.c (_initialize_infrun): Add declaration.
15574 * interps.c (_initialize_interpreter): Add declaration.
15575 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15576 * jit.c (_initialize_jit): Add declaration.
15577 * language.c (_initialize_language): Add declaration.
15578 * linux-fork.c (_initialize_linux_fork): Add declaration.
15579 * linux-nat.c (_initialize_linux_nat): Add declaration.
15580 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15581 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15582 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15583 * m2-lang.c (_initialize_m2_language): Add declaration.
15584 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15585 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15586 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15587 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15588 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15589 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15590 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15591 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15592 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15593 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15594 * machoread.c (_initialize_machoread): Add declaration.
15595 * macrocmd.c (_initialize_macrocmd): Add declaration.
15596 * macroscope.c (_initialize_macroscope): Add declaration.
15597 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15598 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15599 * maint.c (_initialize_maint_cmds): Add declaration.
15600 * mdebugread.c (_initialize_mdebugread): Add declaration.
15601 * memattr.c (_initialize_mem): Add declaration.
15602 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15603 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15604 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15605 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15606 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15607 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15608 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15609 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15610 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15611 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15612 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15613 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15614 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15615 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15616 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15617 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15618 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15619 * mipsread.c (_initialize_mipsread): Add declaration.
15620 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15621 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15622 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15623 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15624 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15625 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15626 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15627 * nto-procfs.c (_initialize_procfs): Add declaration.
15628 * objc-lang.c (_initialize_objc_language): Add declaration.
15629 * observable.c (_initialize_observer): Add declaration.
15630 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15631 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15632 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15633 * osabi.c (_initialize_gdb_osabi): Add declaration.
15634 * osdata.c (_initialize_osdata): Add declaration.
15635 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15636 * parse.c (_initialize_parse): Add declaration.
15637 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15638 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15639 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15640 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15641 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15642 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15643 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15644 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15645 * printcmd.c (_initialize_printcmd): Add declaration.
15646 * probe.c (_initialize_probe): Add declaration.
15647 * proc-api.c (_initialize_proc_api): Add declaration.
15648 * proc-events.c (_initialize_proc_events): Add declaration.
15649 * proc-service.c (_initialize_proc_service): Add declaration.
15650 * procfs.c (_initialize_procfs): Add declaration.
15651 * producer.c (_initialize_producer): Add declaration.
15652 * psymtab.c (_initialize_psymtab): Add declaration.
15653 * python/python.c (_initialize_python): Add declaration.
15654 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15655 * record-btrace.c (_initialize_record_btrace): Add declaration.
15656 * record-full.c (_initialize_record_full): Add declaration.
15657 * record.c (_initialize_record): Add declaration.
15658 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15659 * regcache.c (_initialize_regcache): Add declaration.
15660 * reggroups.c (_initialize_reggroup): Add declaration.
15661 * remote-notif.c (_initialize_notif): Add declaration.
15662 * remote-sim.c (_initialize_remote_sim): Add declaration.
15663 * remote.c (_initialize_remote): Add declaration.
15664 * reverse.c (_initialize_reverse): Add declaration.
15665 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15666 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15667 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15668 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15669 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15670 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15671 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15672 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15673 Add declaration.
15674 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15675 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15676 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15677 * rust-exp.y (_initialize_rust_exp): Add declaration.
15678 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15679 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15680 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15681 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15682 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15683 * score-tdep.c (_initialize_score_tdep): Add declaration.
15684 * ser-go32.c (_initialize_ser_dos): Add declaration.
15685 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15686 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15687 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15688 * ser-uds.c (_initialize_ser_socket): Add declaration.
15689 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15690 * serial.c (_initialize_serial): Add declaration.
15691 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15692 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15693 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15694 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15695 * skip.c (_initialize_step_skip): Add declaration.
15696 * sol-thread.c (_initialize_sol_thread): Add declaration.
15697 * solib-aix.c (_initialize_solib_aix): Add declaration.
15698 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15699 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15700 * solib-frv.c (_initialize_frv_solib): Add declaration.
15701 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15702 * solib-target.c (_initialize_solib_target): Add declaration.
15703 * solib.c (_initialize_solib): Add declaration.
15704 * source-cache.c (_initialize_source_cache): Add declaration.
15705 * source.c (_initialize_source): Add declaration.
15706 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15707 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15708 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15709 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15710 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15711 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15712 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15713 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15714 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15715 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15716 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15717 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15718 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15719 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15720 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15721 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15722 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15723 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15724 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15725 * stabsread.c (_initialize_stabsread): Add declaration.
15726 * stack.c (_initialize_stack): Add declaration.
15727 * stap-probe.c (_initialize_stap_probe): Add declaration.
15728 * std-regs.c (_initialize_frame_reg): Add declaration.
15729 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15730 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15731 * symfile.c (_initialize_symfile): Add declaration.
15732 * symmisc.c (_initialize_symmisc): Add declaration.
15733 * symtab.c (_initialize_symtab): Add declaration.
15734 * target.c (_initialize_target): Add declaration.
15735 * target-connection.c (_initialize_target_connection): Add
15736 declaration.
15737 * target-dcache.c (_initialize_target_dcache): Add declaration.
15738 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15739 * thread.c (_initialize_thread): Add declaration.
15740 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15741 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15742 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15743 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15744 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15745 * tracectf.c (_initialize_ctf): Add declaration.
15746 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15747 * tracefile.c (_initialize_tracefile): Add declaration.
15748 * tracepoint.c (_initialize_tracepoint): Add declaration.
15749 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15750 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15751 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15752 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15753 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15754 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15755 * tui/tui.c (_initialize_tui): Add declaration.
15756 * typeprint.c (_initialize_typeprint): Add declaration.
15757 * ui-style.c (_initialize_ui_style): Add declaration.
15758 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15759 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15760 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15761 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15762 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15763 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15764 * unittests/filtered_iterator-selftests.c
15765 (_initialize_filtered_iterator_selftests): Add declaration.
15766 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15767 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15768 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15769 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15770 * unittests/main-thread-selftests.c
15771 (_initialize_main_thread_selftests): Add declaration.
15772 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15773 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15774 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15775 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15776 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15777 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15778 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15779 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15780 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15781 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15782 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15783 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15784 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15785 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15786 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15787 declaration.
15788 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15789 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15790 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15791 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15792 * user-regs.c (_initialize_user_regs): Add declaration.
15793 * utils.c (_initialize_utils): Add declaration.
15794 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15795 * valops.c (_initialize_valops): Add declaration.
15796 * valprint.c (_initialize_valprint): Add declaration.
15797 * value.c (_initialize_values): Add declaration.
15798 * varobj.c (_initialize_varobj): Add declaration.
15799 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15800 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15801 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15802 * windows-nat.c (_initialize_windows_nat): Add declaration.
15803 (_initialize_check_for_gdb_ini): Add declaration.
15804 (_initialize_loadable): Add declaration.
15805 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15806 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15807 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15808 * xcoffread.c (_initialize_xcoffread): Add declaration.
15809 * xml-support.c (_initialize_xml_support): Add declaration.
15810 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15811 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15812 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15813 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15814
15815 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15816
15817 * regformats/regdat.sh: Generate declaration for init function.
15818
15819 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15820
15821 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15822 up.
15823 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15824 close_one_inferior>: New methods.
15825 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15826 pass down target to find_inferior_pid.
15827 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15828 Pass down target to find_inferior_ptid.
15829 (gdbsim_target::create_inferior): Pass down target to
15830 add_thread_silent.
15831 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15832 target down to find_inferior_ptid and switch_to_thread.
15833 (gdbsim_target::close): Update to call close_one_inferior.
15834 (struct resume_data): Remove.
15835 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15836 directly, rather than through a void pointer.
15837 (gdbsim_target::resume): Update to call resume_one_inferior.
15838
15839 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15840
15841 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15842
15843 2020-01-12 Pedro Alves <palves@redhat.com>
15844
15845 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15846 directly for the current inferior instead of
15847 discard_all_inferiors.
15848 (discard_all_inferiors): Delete.
15849
15850 2020-01-11 Tom Tromey <tom@tromey.com>
15851
15852 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15853 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15854 deprecated_safe_get_selected_frame.
15855
15856 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15857
15858 * inferior.c (print_inferior): Switch inferior before printing it.
15859
15860 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15861 Pedro Alves <palves@redhat.com>
15862
15863 * progspace-and-thread.c (switch_to_program_space_and_thread):
15864 Assert there's an inferior for PSPACE. Use
15865 switch_to_inferior_no_thread to switch the inferior too.
15866 * progspace.c (program_space::~program_space): Call
15867 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15868 (program_space::free_all_objfiles): Don't call clear_symtab_users
15869 here.
15870 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15871
15872 2020-01-10 Pedro Alves <palves@redhat.com>
15873
15874 * NEWS: Mention multi-target debugging, "info connections", and
15875 "add-inferior -no-connection".
15876
15877 2020-01-10 Pedro Alves <palves@redhat.com>
15878
15879 * infrun.c: Include "target-connection.h".
15880 (check_multi_target_resumption): New.
15881 (proceed): Call it.
15882 * target-connection.c (make_target_connection_string): Make
15883 extern.
15884 * target-connection.h (make_target_connection_string): Declare.
15885
15886 2020-01-10 Pedro Alves <palves@redhat.com>
15887
15888 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15889 * inferior.c (uiout_field_connection): New function.
15890 (print_inferior): Add new "connection-id" column.
15891 (add_inferior_command): Show connection number/string of added
15892 inferior.
15893 * process-stratum-target.h
15894 (process_stratum_target::connection_string): New virtual method.
15895 (process_stratum_target::connection_number): New field.
15896 * remote.c (remote_target::connection_string): New override.
15897 * target-connection.c: New file.
15898 * target-connection.h: New file.
15899 * target.c (decref_target): Remove process_stratum targets from
15900 the connection list.
15901 (target_stack::push): Add process_stratum targets to the
15902 connection list.
15903
15904 2020-01-10 Pedro Alves <palves@redhat.com>
15905
15906 Revert:
15907 2016-04-12 Pedro Alves <palves@redhat.com>
15908 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15909 Remove references to name.
15910 * serial.h (struct serial) <name>: Delete.
15911
15912 2020-01-10 Pedro Alves <palves@redhat.com>
15913
15914 * gdbarch-selftests.c (register_to_value_test): Remove "target
15915 already pushed" check.
15916
15917 2020-01-10 Pedro Alves <palves@redhat.com>
15918 John Baldwin <jhb@FreeBSD.org>
15919
15920 * aarch64-linux-nat.c
15921 (aarch64_linux_nat_target::thread_architecture): Adjust.
15922 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15923 (task_command_1): Likewise.
15924 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15925 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15926 (aix_thread_target::store_registers)
15927 (aix_thread_target::thread_alive): Adjust.
15928 * amd64-fbsd-tdep.c: Include "inferior.h".
15929 (amd64fbsd_get_thread_local_address): Pass down target.
15930 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15931 thread's gdbarch instead of target_gdbarch.
15932 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15933 get_last_target_status.
15934 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15935 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15936 inferiors.
15937 (update_inserted_breakpoint_locations): Skip if inferiors with no
15938 execution.
15939 (update_global_location_list): When handling moribund locations,
15940 find representative inferior for location's pspace, and use thread
15941 count of its process_stratum target.
15942 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15943 * bsd-uthread.c (bsd_uthread_target::wait): Use
15944 as_process_stratum_target and adjust thread_change_ptid and
15945 add_thread calls.
15946 (bsd_uthread_target::update_thread_list): Use
15947 as_process_stratum_target and adjust find_thread_ptid,
15948 thread_change_ptid and add_thread calls.
15949 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15950 find_thread_ptid call.
15951 * corelow.c (add_to_thread_list): Adjust add_thread call.
15952 (core_target_open): Adjust add_thread_silent and thread_count
15953 calls.
15954 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15955 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15956 * event-top.c (async_disconnect): Pop targets from all inferiors.
15957 * exec.c (add_target_sections): Push exec target on all inferiors
15958 sharing the program space.
15959 (remove_target_sections): Remove the exec target from all
15960 inferiors sharing the program space.
15961 (exec_on_vfork): New.
15962 * exec.h (exec_on_vfork): Declare.
15963 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15964 Pass it down.
15965 (fbsd_nat_target::update_thread_list): Adjust.
15966 (fbsd_nat_target::resume): Adjust.
15967 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15968 down.
15969 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15970 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15971 get_thread_arch_regcache call.
15972 * fork-child.c (gdb_startup_inferior): Pass target down to
15973 startup_inferior and set_executing.
15974 * gdbthread.h (struct process_stratum_target): Forward declare.
15975 (add_thread, add_thread_silent, add_thread_with_info)
15976 (in_thread_list): Add process_stratum_target parameter.
15977 (find_thread_ptid(inferior*, ptid_t)): New overload.
15978 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15979 parameter.
15980 (all_threads()): Delete overload.
15981 (all_threads, all_non_exited_threads): Add process_stratum_target
15982 parameter.
15983 (all_threads_safe): Use brace initialization.
15984 (thread_count): Add process_stratum_target parameter.
15985 (set_resumed, set_running, set_stop_requested, set_executing)
15986 (threads_are_executing, finish_thread_state): Add
15987 process_stratum_target parameter.
15988 (switch_to_thread): Use is_current_thread.
15989 * i386-fbsd-tdep.c: Include "inferior.h".
15990 (i386fbsd_get_thread_local_address): Pass down target.
15991 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15992 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15993 have_inferiors check.
15994 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15995 (inf_ptrace_target::attach): Adjust.
15996 * infcall.c (run_inferior_call): Adjust.
15997 * infcmd.c (run_command_1): Pass target to
15998 scoped_finish_thread_state.
15999 (proceed_thread_callback): Skip inferiors with no execution.
16000 (continue_command): Rename 'all_threads' local to avoid hiding
16001 'all_threads' function. Adjust get_last_target_status call.
16002 (prepare_one_step): Adjust set_running call.
16003 (signal_command): Use user_visible_resume_target. Compare thread
16004 pointers instead of inferior_ptid.
16005 (info_program_command): Adjust to pass down target.
16006 (attach_command): Mark target's 'thread_executing' flag.
16007 (stop_current_target_threads_ns): New, factored out from ...
16008 (interrupt_target_1): ... this. Switch inferior before making
16009 target calls.
16010 * inferior-iter.h
16011 (struct all_inferiors_iterator, struct all_inferiors_range)
16012 (struct all_inferiors_safe_range)
16013 (struct all_non_exited_inferiors_range): Filter on
16014 process_stratum_target too. Remove explicit.
16015 * inferior.c (inferior::inferior): Push dummy target on target
16016 stack.
16017 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16018 Add process_stratum_target parameter, and pass it down.
16019 (have_live_inferiors): Adjust.
16020 (switch_to_inferior_and_push_target): New.
16021 (add_inferior_command, clone_inferior_command): Handle
16022 "-no-connection" parameter. Use
16023 switch_to_inferior_and_push_target.
16024 (_initialize_inferior): Mention "-no-connection" option in
16025 the help of "add-inferior" and "clone-inferior" commands.
16026 * inferior.h: Include "process-stratum-target.h".
16027 (interrupt_target_1): Use bool.
16028 (struct inferior) <push_target, unpush_target, target_is_pushed,
16029 find_target_beneath, top_target, process_target, target_at,
16030 m_stack>: New.
16031 (discard_all_inferiors): Delete.
16032 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16033 (all_inferiors, all_non_exited_inferiors): Add
16034 process_stratum_target parameter.
16035 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16036 (target_last_proc_target): New global.
16037 (follow_fork_inferior): Push target on new inferior. Pass target
16038 to add_thread_silent. Call exec_on_vfork. Handle target's
16039 reference count.
16040 (follow_fork): Adjust get_last_target_status call. Also consider
16041 target.
16042 (follow_exec): Push target on new inferior.
16043 (struct execution_control_state) <target>: New field.
16044 (user_visible_resume_target): New.
16045 (do_target_resume): Call target_async.
16046 (resume_1): Set target's threads_executing flag. Consider resume
16047 target.
16048 (commit_resume_all_targets): New.
16049 (proceed): Also consider resume target. Skip threads of inferiors
16050 with no execution. Commit resumtion in all targets.
16051 (start_remote): Pass current inferior to wait_for_inferior.
16052 (infrun_thread_stop_requested): Consider target as well. Pass
16053 thread_info pointer to clear_inline_frame_state instead of ptid.
16054 (infrun_thread_thread_exit): Consider target as well.
16055 (random_pending_event_thread): New inferior parameter. Use it.
16056 (do_target_wait): Rename to ...
16057 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16058 down.
16059 (threads_are_resumed_pending_p, do_target_wait): New.
16060 (prepare_for_detach): Adjust calls.
16061 (wait_for_inferior): New inferior parameter. Handle it. Use
16062 do_target_wait_1 instead of do_target_wait.
16063 (fetch_inferior_event): Adjust. Switch to representative
16064 inferior. Pass target down.
16065 (set_last_target_status): Add process_stratum_target parameter.
16066 Save target in global.
16067 (get_last_target_status): Add process_stratum_target parameter and
16068 handle it.
16069 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16070 (context_switch): Check inferior_ptid == null_ptid before calling
16071 inferior_thread().
16072 (get_inferior_stop_soon): Pass down target.
16073 (wait_one): Rename to ...
16074 (poll_one_curr_target): ... this.
16075 (struct wait_one_event): New.
16076 (wait_one): New.
16077 (stop_all_threads): Adjust.
16078 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16079 event's target.
16080 (switch_back_to_stepped_thread): Also consider target.
16081 (print_stop_event): Update.
16082 (normal_stop): Update. Also consider the resume target.
16083 * infrun.h (wait_for_inferior): Remove declaration.
16084 (user_visible_resume_target): New declaration.
16085 (get_last_target_status, set_last_target_status): New
16086 process_stratum_target parameter.
16087 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16088 process_stratum_target parameter, and use it.
16089 (clear_inline_frame_state (thread_info*)): New.
16090 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16091 process_stratum_target parameter.
16092 (clear_inline_frame_state (thread_info*)): Declare.
16093 * linux-fork.c (delete_checkpoint_command): Pass target down to
16094 find_thread_ptid.
16095 (checkpoint_command): Adjust.
16096 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16097 instead of just tweaking inferior_ptid.
16098 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16099 (exit_lwp): Pass target down to find_thread_ptid.
16100 (attach_proc_task_lwp_callback): Pass target down to
16101 add_thread/set_running/set_executing.
16102 (linux_nat_target::attach): Pass target down to
16103 thread_change_ptid.
16104 (get_detach_signal): Pass target down to find_thread_ptid.
16105 Consider last target status's target.
16106 (linux_resume_one_lwp_throw, resume_lwp)
16107 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16108 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16109 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16110 (linux_nat_target::async_wait_fd): New.
16111 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16112 target down.
16113 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16114 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16115 * linux-thread-db.c (struct thread_db_info::process_target): New
16116 field.
16117 (add_thread_db_info): Save target.
16118 (get_thread_db_info): New process_stratum_target parameter. Also
16119 match target.
16120 (delete_thread_db_info): New process_stratum_target parameter.
16121 Also match target.
16122 (thread_from_lwp): Adjust to pass down target.
16123 (thread_db_notice_clone): Pass down target.
16124 (check_thread_db_callback): Pass down target.
16125 (try_thread_db_load_1): Always push the thread_db target.
16126 (try_thread_db_load, record_thread): Pass target down.
16127 (thread_db_target::detach): Pass target down. Always unpush the
16128 thread_db target.
16129 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16130 target down. Always unpush the thread_db target.
16131 (find_new_threads_callback, thread_db_find_new_threads_2)
16132 (thread_db_target::update_thread_list): Pass target down.
16133 (thread_db_target::pid_to_str): Pass current inferior down.
16134 (thread_db_target::get_thread_local_address): Pass target down.
16135 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16136 target down.
16137 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16138 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16139 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16140 (procfs_init_inferior): Rename to ...
16141 (procfs_target::procfs_init_inferior): ... this and adjust.
16142 (procfs_target::create_inferior, procfs_notice_thread)
16143 (procfs_do_thread_registers): Adjust.
16144 * ppc-fbsd-tdep.c: Include "inferior.h".
16145 (ppcfbsd_get_thread_local_address): Pass down target.
16146 * proc-service.c (ps_xfer_memory): Switch current inferior and
16147 program space as well.
16148 (get_ps_regcache): Pass target down.
16149 * process-stratum-target.c
16150 (process_stratum_target::thread_address_space)
16151 (process_stratum_target::thread_architecture): Pass target down.
16152 * process-stratum-target.h
16153 (process_stratum_target::threads_executing): New field.
16154 (as_process_stratum_target): New.
16155 * ravenscar-thread.c
16156 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16157 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16158 down.
16159 * record-btrace.c (record_btrace_target::info_record): Adjust.
16160 (record_btrace_target::record_method)
16161 (record_btrace_target::record_is_replaying)
16162 (record_btrace_target::fetch_registers)
16163 (get_thread_current_frame_id, record_btrace_target::resume)
16164 (record_btrace_target::wait, record_btrace_target::stop): Pass
16165 target down.
16166 * record-full.c (record_full_wait_1): Switch to event thread.
16167 Pass target down.
16168 * regcache.c (regcache::regcache)
16169 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16170 process_stratum_target parameter and handle it.
16171 (current_thread_target): New global.
16172 (get_thread_regcache): Add process_stratum_target parameter and
16173 handle it. Switch inferior before calling target method.
16174 (get_thread_regcache): Pass target down.
16175 (get_thread_regcache_for_ptid): Pass target down.
16176 (registers_changed_ptid): Add process_stratum_target parameter and
16177 handle it.
16178 (registers_changed_thread, registers_changed): Pass target down.
16179 (test_get_thread_arch_aspace_regcache): New.
16180 (current_regcache_test): Define a couple local test_target_ops
16181 instances and use them for testing.
16182 (readwrite_regcache): Pass process_stratum_target parameter.
16183 (cooked_read_test, cooked_write_test): Pass mock_target down.
16184 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16185 (get_thread_arch_aspace_regcache): Add process_stratum_target
16186 parameter.
16187 (regcache::target): New method.
16188 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16189 (regcache::registers_changed_ptid): Add process_stratum_target
16190 parameter.
16191 (regcache::m_target): New field.
16192 (registers_changed_ptid): Add process_stratum_target parameter.
16193 * remote.c (remote_state::supports_vCont_probed): New field.
16194 (remote_target::async_wait_fd): New method.
16195 (remote_unpush_and_throw): Add remote_target parameter.
16196 (get_current_remote_target): Adjust.
16197 (remote_target::remote_add_inferior): Push target.
16198 (remote_target::remote_add_thread)
16199 (remote_target::remote_notice_new_inferior)
16200 (get_remote_thread_info): Pass target down.
16201 (remote_target::update_thread_list): Skip threads of inferiors
16202 bound to other targets. (remote_target::close): Don't discard
16203 inferiors. (remote_target::add_current_inferior_and_thread)
16204 (remote_target::process_initial_stop_replies)
16205 (remote_target::start_remote)
16206 (remote_target::remote_serial_quit_handler): Pass down target.
16207 (remote_target::remote_unpush_target): New remote_target
16208 parameter. Unpush the target from all inferiors.
16209 (remote_target::remote_unpush_and_throw): New remote_target
16210 parameter. Pass it down.
16211 (remote_target::open_1): Check whether the current inferior has
16212 execution instead of checking whether any inferior is live. Pass
16213 target down.
16214 (remote_target::remote_detach_1): Pass down target. Use
16215 remote_unpush_target.
16216 (extended_remote_target::attach): Pass down target.
16217 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16218 (remote_target::append_resumption): Pass down target.
16219 (remote_target::append_pending_thread_resumptions)
16220 (remote_target::remote_resume_with_hc, remote_target::resume)
16221 (remote_target::commit_resume): Pass down target.
16222 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16223 (remote_target::interrupt_query)
16224 (remote_target::remove_new_fork_children)
16225 (remote_target::check_pending_events_prevent_wildcard_vcont)
16226 (remote_target::remote_parse_stop_reply)
16227 (remote_target::process_stop_reply): Pass down target.
16228 (first_remote_resumed_thread): New remote_target parameter. Pass
16229 it down.
16230 (remote_target::wait_as): Pass down target.
16231 (unpush_and_perror): New remote_target parameter. Pass it down.
16232 (remote_target::readchar, remote_target::remote_serial_write)
16233 (remote_target::getpkt_or_notif_sane_1)
16234 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16235 down target.
16236 (remote_target::mourn_inferior): Pass down target. Use
16237 remote_unpush_target.
16238 (remote_target::core_of_thread)
16239 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16240 (remote_target::pid_to_exec_file)
16241 (remote_target::thread_handle_to_thread_info): Pass down target.
16242 (remote_target::async_wait_fd): New.
16243 * riscv-fbsd-tdep.c: Include "inferior.h".
16244 (riscv_fbsd_get_thread_local_address): Pass down target.
16245 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16246 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16247 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16248 Adjust.
16249 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16250 * solib-svr4.c (enable_break): Pass down target.
16251 * spu-multiarch.c (parse_spufs_run): Pass down target.
16252 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16253 * target-delegates.c: Regenerate.
16254 * target.c (g_target_stack): Delete.
16255 (current_top_target): Return the current inferior's top target.
16256 (target_has_execution_1): Refer to the passed-in inferior's top
16257 target.
16258 (target_supports_terminal_ours): Check whether the initial
16259 inferior was already created.
16260 (decref_target): New.
16261 (target_stack::push): Incref/decref the target.
16262 (push_target, push_target, unpush_target): Adjust.
16263 (target_stack::unpush): Defref target.
16264 (target_is_pushed): Return bool. Adjust to refer to the current
16265 inferior's target stack.
16266 (dispose_inferior): Delete, and inline parts ...
16267 (target_preopen): ... here. Only dispose of the current inferior.
16268 (target_detach): Hold strong target reference while detaching.
16269 Pass target down.
16270 (target_thread_name): Add assertion.
16271 (target_resume): Pass down target.
16272 (target_ops::beneath, find_target_at): Adjust to refer to the
16273 current inferior's target stack.
16274 (get_dummy_target): New.
16275 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16276 has a thread running.
16277 (initialize_targets): Rename to ...
16278 (_initialize_target): ... this.
16279 * target.h: Include "gdbsupport/refcounted-object.h".
16280 (struct target_ops): Inherit refcounted_object.
16281 (target_ops::shortname, target_ops::longname): Make const.
16282 (target_ops::async_wait_fd): New method.
16283 (decref_target): Declare.
16284 (struct target_ops_ref_policy): New.
16285 (target_ops_ref): New typedef.
16286 (get_dummy_target): Declare function.
16287 (target_is_pushed): Return bool.
16288 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16289 (all_matching_threads_iterator::all_matching_threads_iterator):
16290 Handle filter target.
16291 * thread-iter.h (struct all_matching_threads_iterator, struct
16292 all_matching_threads_range, class all_non_exited_threads_range):
16293 Filter by target too. Remove explicit.
16294 * thread.c (threads_executing): Delete.
16295 (inferior_thread): Pass down current inferior.
16296 (clear_thread_inferior_resources): Pass down thread pointer
16297 instead of ptid_t.
16298 (add_thread_silent, add_thread_with_info, add_thread): Add
16299 process_stratum_target parameter. Use it for thread and inferior
16300 searches.
16301 (is_current_thread): New.
16302 (thread_info::deletable): Use it.
16303 (find_thread_ptid, thread_count, in_thread_list)
16304 (thread_change_ptid, set_resumed, set_running): New
16305 process_stratum_target parameter. Pass it down.
16306 (set_executing): New process_stratum_target parameter. Pass it
16307 down. Adjust reference to 'threads_executing'.
16308 (threads_are_executing): New process_stratum_target parameter.
16309 Adjust reference to 'threads_executing'.
16310 (set_stop_requested, finish_thread_state): New
16311 process_stratum_target parameter. Pass it down.
16312 (switch_to_thread): Also match inferior.
16313 (switch_to_thread): New process_stratum_target parameter. Pass it
16314 down.
16315 (update_threads_executing): Reimplement.
16316 * top.c (quit_force): Pop targets from all inferior.
16317 (gdb_init): Don't call initialize_targets.
16318 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16319 Declare.
16320 (windows_add_thread, windows_delete_thread): Adjust.
16321 (get_windows_debug_event): Rename to ...
16322 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16323 * tracefile-tfile.c (tfile_target_open): Pass down target.
16324 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16325 Forward declare.
16326 (switch_to_thread): Add process_stratum_target parameter.
16327 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16328 parameter. Use it.
16329 (mi_on_resume): Pass target down.
16330 * nat/fork-inferior.c (startup_inferior): Add
16331 process_stratum_target parameter. Pass it down.
16332 * nat/fork-inferior.h (startup_inferior): Add
16333 process_stratum_target parameter.
16334 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16335
16336 2020-01-10 Pedro Alves <palves@redhat.com>
16337
16338 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16339 directly. Instead find the first thread in the thread list and
16340 use switch_to_thread.
16341
16342 2020-01-10 Pedro Alves <palves@redhat.com>
16343
16344 * remote.c (remote_target::remote_add_inferior): Don't bind a
16345 process to the current inferior if the current inferior is already
16346 bound to a process.
16347
16348 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16349 Pedro Alves <palves@redhat.com>
16350
16351 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16352 If no process is specified, return null_ptid instead of
16353 inferior_ptid.
16354 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16355 TARGET_WAITKIND_SIGNALLED with no pid.
16356
16357 2020-01-10 Pedro Alves <palves@redhat.com>
16358
16359 * remote.c (first_remote_resumed_thread): New.
16360 (remote_target::wait_as): Use it as default event_ptid instead of
16361 inferior_ptid.
16362
16363 2020-01-10 Pedro Alves <palves@redhat.com>
16364
16365 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16366
16367 2020-01-10 Pedro Alves <palves@redhat.com>
16368
16369 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16370 not -1.
16371
16372 2020-01-10 Pedro Alves <palves@redhat.com>
16373
16374 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16375 ptid to get_last_target_status.
16376 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16377 ptid to get_last_target_status.
16378 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16379 get_last_target_status.
16380 (info_program_command): Don't pass a target_waitstatus to
16381 get_last_target_status.
16382 * infrun.c (init_wait_for_inferior): Use
16383 nullify_last_target_wait_ptid.
16384 (get_last_target_status): Handle nullptr arguments.
16385 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16386 (print_stop_event): Don't pass a ptid to get_last_target_status.
16387 (normal_stop): Don't pass a ptid to get_last_target_status.
16388 * infrun.h (get_last_target_status, set_last_target_status): Move
16389 comments here and update.
16390 (nullify_last_target_wait_ptid): Declare.
16391 * linux-fork.c (fork_load_infrun_state): Remove local extern
16392 declaration of nullify_last_target_wait_ptid.
16393 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16394 to get_last_target_status.
16395
16396 2020-01-10 Pedro Alves <palves@redhat.com>
16397
16398 * gdbthread.h (scoped_restore_current_thread)
16399 <dont_restore, restore, m_dont_restore>: Declare.
16400 * thread.c (thread_alive): Add assertion. Return bool.
16401 (switch_to_thread_if_alive): New.
16402 (prune_threads): Switch inferior/thread.
16403 (print_thread_info_1): Switch thread before calling target methods.
16404 (scoped_restore_current_thread::restore): New, factored out from
16405 ...
16406 (scoped_restore_current_thread::~scoped_restore_current_thread):
16407 ... this.
16408 (scoped_restore_current_thread::scoped_restore_current_thread):
16409 Add assertion.
16410 (thread_apply_all_command, thread_select): Use
16411 switch_to_thread_if_alive.
16412 * infrun.c (proceed, restart_threads, handle_signal_stop)
16413 (switch_back_to_stepped_thread): Switch current thread before
16414 calling target methods.
16415
16416 2020-01-10 Pedro Alves <palves@redhat.com>
16417
16418 * inferior.c (switch_to_inferior_no_thread): New function,
16419 factored out from ...
16420 (inferior_command): ... here.
16421 * inferior.h (switch_to_inferior_no_thread): Declare.
16422 * mi/mi-main.c (run_one_inferior): Use
16423 switch_to_inferior_no_thread.
16424
16425 2020-01-10 Pedro Alves <palves@redhat.com>
16426
16427 * infcmd.c (kill_command): Remove dead code.
16428
16429 2020-01-10 Pedro Alves <palves@redhat.com>
16430
16431 * remote.c (remote_target::mourn_inferior): No longer check
16432 whether the target is running.
16433
16434 2020-01-10 Pedro Alves <palves@redhat.com>
16435
16436 * corelow.c (core_target::has_execution): Change parameter type to
16437 inferior pointer.
16438 * inferior.c (number_of_live_inferiors): Use
16439 inferior::has_execution instead of target_has_execution_1.
16440 * inferior.h (inferior::has_execution): New.
16441 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16442 inferior::has_execution instead of target_has_execution_1.
16443 * process-stratum-target.c
16444 (process_stratum_target::has_execution): Change parameter type to
16445 inferior pointer. Check the inferior's PID instead of
16446 inferior_ptid.
16447 * process-stratum-target.h
16448 (process_stratum_target::has_execution): Change parameter type to
16449 inferior pointer.
16450 * record-full.c (record_full_core_target::has_execution): Change
16451 parameter type to inferior pointer.
16452 * target.c (target_has_execution_1): Change parameter type to
16453 inferior pointer.
16454 (target_has_execution_current): Adjust.
16455 * target.h (target_ops::has_execution): Change parameter type to
16456 inferior pointer.
16457 (target_has_execution_1): Change parameter type to inferior
16458 pointer. Change return type to bool.
16459 * tracefile.h (tracefile_target::has_execution): Change parameter
16460 type to inferior pointer.
16461
16462 2020-01-10 Pedro Alves <palves@redhat.com>
16463
16464 * exceptions.c (print_flush): Remove current_top_target() check.
16465
16466 2020-01-10 Pedro Alves <palves@redhat.com>
16467
16468 * remote.c (show_remote_exec_file): Show the current inferior's
16469 exec-file instead of the command variable's value.
16470
16471 2020-01-10 Pedro Alves <palves@redhat.com>
16472
16473 * record-full.c (record_full_resume_ptid): New global.
16474 (record_full_target::resume): Set it.
16475 (record_full_wait_1): Use record_full_resume_ptid instead of
16476 inferior_ptid.
16477
16478 2020-01-10 Pedro Alves <palves@redhat.com>
16479
16480 * gdbthread.h (scoped_restore_current_thread)
16481 <dont_restore, restore, m_dont_restore>: Declare.
16482 * thread.c (thread_alive): Add assertion. Return bool.
16483 (switch_to_thread_if_alive): New.
16484 (prune_threads): Switch inferior/thread.
16485 (print_thread_info_1): Switch thread before calling target methods.
16486 (scoped_restore_current_thread::restore): New, factored out from
16487 ...
16488 (scoped_restore_current_thread::~scoped_restore_current_thread):
16489 ... this.
16490 (scoped_restore_current_thread::scoped_restore_current_thread):
16491 Add assertion.
16492 (thread_apply_all_command, thread_select): Use
16493 switch_to_thread_if_alive.
16494
16495 2020-01-10 George Barrett <bob@bob131.so>
16496
16497 * stap-probe.c (stap_modify_semaphore): Don't check for null
16498 semaphores.
16499 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16500 for null semaphores.
16501
16502 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16503
16504 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16505 all source windows, and maintain horizontal scroll status while
16506 doing so.
16507
16508 2020-01-09 Tom Tromey <tom@tromey.com>
16509
16510 PR tui/18932:
16511 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16512 update_source_window, not print_source_lines.
16513
16514 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16515
16516 * tui/tui.c (tui_enable): Register tui hooks after calling
16517 tui_display_main.
16518
16519 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16520
16521 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16522
16523 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16524
16525 * thread.c (print_thread_info_1): Fix indentation.
16526
16527 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16528
16529 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16530 unique_xmalloc_ptr outside the if to always free the demangled name.
16531
16532 2020-01-08 Tom Tromey <tromey@adacore.com>
16533
16534 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16535 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16536 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16537 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16538 Remove.
16539 (section_offsets): New typedef.
16540 * symtab.c (fixup_section, get_msymbol_address): Update.
16541 * symmisc.c (dump_msymbols): Update.
16542 * symfile.h (relative_addr_info_to_section_offsets)
16543 (symfile_map_offsets_to_segments): Update.
16544 * symfile.c (build_section_addr_info_from_objfile)
16545 (init_objfile_sect_indices): Update.
16546 (struct place_section_arg): Change type of "offsets".
16547 (place_section): Update.
16548 (relative_addr_info_to_section_offsets): Change type of
16549 "section_offsets". Remove "num_sections" parameter.
16550 (default_symfile_offsets, syms_from_objfile_1)
16551 (set_objfile_default_section_offset): Update.
16552 (reread_symbols): No need to preserve section offsets by hand.
16553 (symfile_map_offsets_to_segments): Change type of "offsets".
16554 * stap-probe.c (relocate_address): Update.
16555 * stabsread.h (process_one_symbol): Update.
16556 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16557 (solib_target_relocate_section_addresses): Update.
16558 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16559 Update.
16560 * solib-frv.c (frv_relocate_main_executable): Update.
16561 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16562 * solib-aix.c (solib_aix_get_section_offsets): Change return
16563 type.
16564 (solib_aix_solib_create_inferior_hook): Update.
16565 * remote.c (remote_target::get_offsets): Update.
16566 * psymtab.c (find_pc_sect_psymtab): Update.
16567 * psympriv.h (struct partial_symbol) <address, text_low,
16568 text_high>: Update.
16569 * objfiles.h (obj_section_offset): Update.
16570 (struct objfile) <section_offsets>: Change type.
16571 <num_sections>: Remove.
16572 (objfile_relocate): Update.
16573 * objfiles.c (entry_point_address_query): Update
16574 (relocate_one_symbol): Change type of "section_offsets".
16575 (objfile_relocate1, objfile_relocate1): Change type of
16576 "new_offsets".
16577 (objfile_rebase1): Update.
16578 * mipsread.c (mipscoff_symfile_read): Update.
16579 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16580 parameter.
16581 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16582 (parse_external, psymtab_to_symtab_1): Update.
16583 * machoread.c (macho_symfile_offsets): Update.
16584 * ia64-tdep.c (ia64_find_unwind_table): Update.
16585 * hppa-tdep.c (read_unwind_info): Update.
16586 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16587 * dwarf2read.c (create_addrmap_from_index)
16588 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16589 (process_psymtab_comp_unit_reader, add_partial_symbol)
16590 (add_partial_subprogram, process_full_comp_unit)
16591 (read_file_scope, read_func_scope, read_lexical_block_scope)
16592 (read_call_site_scope, dwarf2_rnglists_process)
16593 (dwarf2_ranges_process, dwarf2_ranges_read)
16594 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16595 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16596 Update.
16597 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16598 Update.
16599 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16600 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16601 (process_one_symbol): Change type of "section_offsets".
16602 * ctfread.c (get_objfile_text_range): Update.
16603 * coffread.c (coff_symtab_read, enter_linenos)
16604 (process_coff_symbol): Update.
16605 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16606 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16607
16608 2020-01-08 Tom Tromey <tromey@adacore.com>
16609
16610 * dwarf2read.c (parse_macro_definition): Use std::string.
16611 (parse_macro_definition): Likewise.
16612
16613 2020-01-08 Tom Tromey <tromey@adacore.com>
16614
16615 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16616 (ATTR_ALLOC_CHUNK): Remove.
16617
16618 2020-01-08 Tom Tromey <tromey@adacore.com>
16619
16620 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16621
16622 2020-01-08 Tom Tromey <tromey@adacore.com>
16623
16624 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16625 (dwarf2_compute_name, open_dwo_file): Likewise.
16626 (process_enumeration_scope): Use std::vector.
16627 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16628 (partial_die_info::fixup, dwarf2_start_subfile)
16629 (guess_full_die_structure_name, dwarf2_name): Likewise.
16630 (determine_prefix): Update.
16631 (guess_full_die_structure_name): Make return type const.
16632 (partial_die_full_name): Return unique_xmalloc_ptr.
16633 (DW_FIELD_ALLOC_CHUNK): Remove.
16634
16635 2020-01-07 Tom Tromey <tromey@adacore.com>
16636
16637 PR build/24937:
16638 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16639
16640 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16641
16642 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16643
16644 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16645
16646 * stack.c (print_frame_info): Move disassemble_next_line code
16647 inside source_print block.
16648
16649 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16650
16651 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16652 gdb/signals.h, as we are now using native signal symbols.
16653
16654 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16655
16656 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16657 overflow by an early check of content vs threshold.
16658 * tui/tui-source.c (tui_source_window::line_is_displayed):
16659 Likewise.
16660
16661 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16662
16663 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16664
16665 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16666
16667 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16668 export table if no section contains it's RVA.
16669
16670 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16671
16672 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16673
16674 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16675
16676 * source.c (print_source_lines_base): Set last_line_listed.
16677
16678 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16679
16680 * tui/tui-disasm.c: Remove trailing spaces.
16681
16682 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16683 Pedro Alves <palves@redhat.com>
16684
16685 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16686 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16687 (windows_gdb_signal_to_target): New function, uses the above
16688 enumeration to convert GDB internal signal codes to equivalent
16689 Windows codes.
16690 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16691 * windows-nat.c: Include "gdb_wait.h".
16692 (get_windows_debug_event): Extract the fatal exception from the
16693 exit status and convert to the equivalent Posix signal number.
16694 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16695 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16696 * gdbsupport/gdb_wait.c: New file, implements
16697 windows_status_to_termsig.
16698 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16699 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16700
16701 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16702
16703 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16704 show_layout.
16705
16706 2020-01-05 Luis Machado <luis.machado@linaro.org>
16707
16708 * aarch64-linux-nat.c
16709 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16710 and bfd_mach_aarch64.
16711
16712 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16713
16714 * ui-file.c (stdio_file::can_emit_style_escape)
16715 (tee_file::can_emit_style_escape): Ensure style is used also on
16716 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16717 to gdb_stdout.
16718 * main.c (set_gdb_data_directory): Use file style to output the
16719 warning that the given pathname is not a directory.
16720 * top.c (show_history_filename, gdb_safe_append_history)
16721 (show_gdb_datadir): Use file style.
16722
16723 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16724
16725 * solib-target.c (struct lm_info_target):
16726 Change offsets to be a unique_xmalloc_ptr.
16727 (solib_target_relocate_section_addresses): Update.
16728
16729 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16730
16731 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16732
16733 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16734
16735 * MAINTAINERS (Write After Approval): Add myself.
16736
16737 2020-01-02 Luis Machado <luis.machado@linaro.org>
16738
16739 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16740 Cell BE architecture.
16741 * target.h (struct target_ops) <thread_architecture>: Likewise.
16742
16743 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16744
16745 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16746
16747 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16748
16749 * MAINTAINERS (Write After Approval): Add myself.
16750
16751 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16752
16753 * gdbarch.sh: Update copyright year range of generated files.
16754
16755 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16756
16757 Update copyright year range in all GDB files.
16758
16759 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16760
16761 * copyright.py: Convert to Python 3.
16762
16763 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16764
16765 * copyright.py: Adapt after move of gnulib directory from gdb
16766 directory to toplevel directory.
16767
16768 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16769
16770 * copyright.py (main): Exit if run from the wrong directory.
16771
16772 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16773
16774 * top.c (print_gdb_version): Change copyright year to 2020.
16775
16776 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16777
16778 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16779
16780 For older changes see ChangeLog-2019.
16781 \f
16782 Local Variables:
16783 mode: change-log
16784 left-margin: 8
16785 fill-column: 74
16786 version-control: never
16787 coding: utf-8
16788 End: