gdb: better static python detection in configure machinery
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
2
3 PR python/26832
4 * configure: Regenerate.
5 * configure.ac: Check for python modules ctypes instead of
6 itertools.
7
8 2020-11-06 Pedro Alves <pedro@palves.net>
9
10 * macroexp.c (struct macro_buffer): Split in two classes. Add
11 uses adjusted.
12 (struct shared_macro_buffer): New, factored out from struct
13 macro_buffer.
14 (struct growable_macro_buffer): New, factored out from struct
15 macro_buffer.
16 (set_token, get_comment, get_identifier, get_pp_number)
17 (get_character_constant, get_string_literal, get_punctuator)
18 (get_next_token_for_substitution): Constify parameters.
19 (substitute_args): Constify locals.
20
21 2020-11-05 Tom Tromey <tom@tromey.com>
22
23 * dwarf2/read.c (read_cutu_die_from_dwo)
24 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
25 (build_type_psymtabs_1): Update.
26 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
27 parameter.
28 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
29 Don't read section. Add assert.
30
31 2020-11-04 Tom Tromey <tromey@adacore.com>
32
33 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
34
35 2020-11-04 Tom Tromey <tromey@adacore.com>
36
37 * ada-typeprint.c (ada_print_type): Handle __T types.
38
39 2020-11-04 Tom Tromey <tromey@adacore.com>
40
41 * dwarf2/read.c (add_partial_symbol, process_die):
42 Handle DW_TAG_array_type.
43 (is_type_tag_for_partial): Add "lang" parameter.
44 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
45
46 2020-11-04 Tom Tromey <tromey@adacore.com>
47
48 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
49
50 2020-11-04 Tom Tromey <tromey@adacore.com>
51
52 * dwarf2/read.c (read_array_type): Only apply stride to innermost
53 array.
54
55 2020-11-04 Tom Tromey <tromey@adacore.com>
56
57 * gdbtypes.c (update_static_array_size): Handle bit stride.
58
59 2020-11-04 Tom Tromey <tromey@adacore.com>
60
61 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
62
63 2020-11-04 Tom Tromey <tromey@adacore.com>
64
65 * ada-lang.c (ada_is_any_packed_array_type): New function.
66 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
67
68 2020-11-04 Tom Tromey <tromey@adacore.com>
69
70 * dwarf2/read.c (recognize_bound_expression)
71 (quirk_ada_thick_pointer): New functions.
72 (read_array_type): Call quirk_ada_thick_pointer.
73 (set_die_type): Add "skip_data_location" parameter.
74 (quirk_ada_thick_pointer): New function.
75 (process_structure_scope): Call quirk_ada_thick_pointer.
76 * ada-lang.c (ada_is_unconstrained_packed_array_type)
77 (decode_packed_array_bitsize): Handle thick pointers without
78 parallel types.
79 (ada_is_gnat_encoded_packed_array_type): Rename from
80 ada_is_packed_array_type.
81 (ada_is_constrained_packed_array_type): Update.
82 * ada-valprint.c (ada_val_print_gnat_array): Remove.
83 (ada_value_print_1): Use ada_get_decoded_value.
84
85 2020-11-04 Tom Tromey <tromey@adacore.com>
86
87 * ada-lang.c (recursively_update_array_bitsize): New function.
88 (decode_constrained_packed_array_type): Call it.
89
90 2020-11-04 Tom Tromey <tromey@adacore.com>
91
92 * ada-lang.c (to_fixed_array_type): Error if
93 decode_constrained_packed_array_type returns NULL.
94
95 2020-11-04 Tom Tromey <tromey@adacore.com>
96
97 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
98
99 2020-11-02 Tom Tromey <tromey@adacore.com>
100
101 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
102 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
103 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
104 * amd64-ravenscar-thread.c: New file.
105 * amd64-ravenscar-thread.h: New file.
106 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
107 * configure.tgt (amd64_tobjs): Add ravenscar objects.
108
109 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
110
111 * main.c (execute_cmdargs): New function.
112 (captured_main_1): Make use of execute_cmdargs.
113
114 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * NEWS: Mention changes to config file search path.
117 * main.c
118
119 2020-11-02 Tom Tromey <tromey@adacore.com>
120
121 * python/python.c: Consolidate two HAVE_PYTHON blocks.
122 (python_GdbModuleDef): Move earlier. Now static.
123 (do_start_initialization): Consolidate some IS_PY3K blocks.
124
125 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
126
127 * aarch64-linux-tdep.c: Fix indentation.
128 * aarch64-ravenscar-thread.c: Fix indentation.
129 * aarch64-tdep.c: Fix indentation.
130 * aarch64-tdep.h: Fix indentation.
131 * ada-lang.c: Fix indentation.
132 * ada-lang.h: Fix indentation.
133 * ada-tasks.c: Fix indentation.
134 * ada-typeprint.c: Fix indentation.
135 * ada-valprint.c: Fix indentation.
136 * ada-varobj.c: Fix indentation.
137 * addrmap.c: Fix indentation.
138 * addrmap.h: Fix indentation.
139 * agent.c: Fix indentation.
140 * aix-thread.c: Fix indentation.
141 * alpha-bsd-nat.c: Fix indentation.
142 * alpha-linux-tdep.c: Fix indentation.
143 * alpha-mdebug-tdep.c: Fix indentation.
144 * alpha-nbsd-tdep.c: Fix indentation.
145 * alpha-obsd-tdep.c: Fix indentation.
146 * alpha-tdep.c: Fix indentation.
147 * amd64-bsd-nat.c: Fix indentation.
148 * amd64-darwin-tdep.c: Fix indentation.
149 * amd64-linux-nat.c: Fix indentation.
150 * amd64-linux-tdep.c: Fix indentation.
151 * amd64-nat.c: Fix indentation.
152 * amd64-obsd-tdep.c: Fix indentation.
153 * amd64-tdep.c: Fix indentation.
154 * amd64-windows-tdep.c: Fix indentation.
155 * annotate.c: Fix indentation.
156 * arc-tdep.c: Fix indentation.
157 * arch-utils.c: Fix indentation.
158 * arch/arm-get-next-pcs.c: Fix indentation.
159 * arch/arm.c: Fix indentation.
160 * arm-linux-nat.c: Fix indentation.
161 * arm-linux-tdep.c: Fix indentation.
162 * arm-nbsd-tdep.c: Fix indentation.
163 * arm-pikeos-tdep.c: Fix indentation.
164 * arm-tdep.c: Fix indentation.
165 * arm-tdep.h: Fix indentation.
166 * arm-wince-tdep.c: Fix indentation.
167 * auto-load.c: Fix indentation.
168 * auxv.c: Fix indentation.
169 * avr-tdep.c: Fix indentation.
170 * ax-gdb.c: Fix indentation.
171 * ax-general.c: Fix indentation.
172 * bfin-linux-tdep.c: Fix indentation.
173 * block.c: Fix indentation.
174 * block.h: Fix indentation.
175 * blockframe.c: Fix indentation.
176 * bpf-tdep.c: Fix indentation.
177 * break-catch-sig.c: Fix indentation.
178 * break-catch-syscall.c: Fix indentation.
179 * break-catch-throw.c: Fix indentation.
180 * breakpoint.c: Fix indentation.
181 * breakpoint.h: Fix indentation.
182 * bsd-uthread.c: Fix indentation.
183 * btrace.c: Fix indentation.
184 * build-id.c: Fix indentation.
185 * buildsym-legacy.h: Fix indentation.
186 * buildsym.c: Fix indentation.
187 * c-typeprint.c: Fix indentation.
188 * c-valprint.c: Fix indentation.
189 * c-varobj.c: Fix indentation.
190 * charset.c: Fix indentation.
191 * cli/cli-cmds.c: Fix indentation.
192 * cli/cli-decode.c: Fix indentation.
193 * cli/cli-decode.h: Fix indentation.
194 * cli/cli-script.c: Fix indentation.
195 * cli/cli-setshow.c: Fix indentation.
196 * coff-pe-read.c: Fix indentation.
197 * coffread.c: Fix indentation.
198 * compile/compile-cplus-types.c: Fix indentation.
199 * compile/compile-object-load.c: Fix indentation.
200 * compile/compile-object-run.c: Fix indentation.
201 * completer.c: Fix indentation.
202 * corefile.c: Fix indentation.
203 * corelow.c: Fix indentation.
204 * cp-abi.h: Fix indentation.
205 * cp-namespace.c: Fix indentation.
206 * cp-support.c: Fix indentation.
207 * cp-valprint.c: Fix indentation.
208 * cris-linux-tdep.c: Fix indentation.
209 * cris-tdep.c: Fix indentation.
210 * darwin-nat-info.c: Fix indentation.
211 * darwin-nat.c: Fix indentation.
212 * darwin-nat.h: Fix indentation.
213 * dbxread.c: Fix indentation.
214 * dcache.c: Fix indentation.
215 * disasm.c: Fix indentation.
216 * dtrace-probe.c: Fix indentation.
217 * dwarf2/abbrev.c: Fix indentation.
218 * dwarf2/attribute.c: Fix indentation.
219 * dwarf2/expr.c: Fix indentation.
220 * dwarf2/frame.c: Fix indentation.
221 * dwarf2/index-cache.c: Fix indentation.
222 * dwarf2/index-write.c: Fix indentation.
223 * dwarf2/line-header.c: Fix indentation.
224 * dwarf2/loc.c: Fix indentation.
225 * dwarf2/macro.c: Fix indentation.
226 * dwarf2/read.c: Fix indentation.
227 * dwarf2/read.h: Fix indentation.
228 * elfread.c: Fix indentation.
229 * eval.c: Fix indentation.
230 * event-top.c: Fix indentation.
231 * exec.c: Fix indentation.
232 * exec.h: Fix indentation.
233 * expprint.c: Fix indentation.
234 * f-lang.c: Fix indentation.
235 * f-typeprint.c: Fix indentation.
236 * f-valprint.c: Fix indentation.
237 * fbsd-nat.c: Fix indentation.
238 * fbsd-tdep.c: Fix indentation.
239 * findvar.c: Fix indentation.
240 * fork-child.c: Fix indentation.
241 * frame-unwind.c: Fix indentation.
242 * frame-unwind.h: Fix indentation.
243 * frame.c: Fix indentation.
244 * frv-linux-tdep.c: Fix indentation.
245 * frv-tdep.c: Fix indentation.
246 * frv-tdep.h: Fix indentation.
247 * ft32-tdep.c: Fix indentation.
248 * gcore.c: Fix indentation.
249 * gdb_bfd.c: Fix indentation.
250 * gdbarch.sh: Fix indentation.
251 * gdbarch.c: Re-generate
252 * gdbarch.h: Re-generate.
253 * gdbcore.h: Fix indentation.
254 * gdbthread.h: Fix indentation.
255 * gdbtypes.c: Fix indentation.
256 * gdbtypes.h: Fix indentation.
257 * glibc-tdep.c: Fix indentation.
258 * gnu-nat.c: Fix indentation.
259 * gnu-nat.h: Fix indentation.
260 * gnu-v2-abi.c: Fix indentation.
261 * gnu-v3-abi.c: Fix indentation.
262 * go32-nat.c: Fix indentation.
263 * guile/guile-internal.h: Fix indentation.
264 * guile/scm-cmd.c: Fix indentation.
265 * guile/scm-frame.c: Fix indentation.
266 * guile/scm-iterator.c: Fix indentation.
267 * guile/scm-math.c: Fix indentation.
268 * guile/scm-ports.c: Fix indentation.
269 * guile/scm-pretty-print.c: Fix indentation.
270 * guile/scm-value.c: Fix indentation.
271 * h8300-tdep.c: Fix indentation.
272 * hppa-linux-nat.c: Fix indentation.
273 * hppa-linux-tdep.c: Fix indentation.
274 * hppa-nbsd-nat.c: Fix indentation.
275 * hppa-nbsd-tdep.c: Fix indentation.
276 * hppa-obsd-nat.c: Fix indentation.
277 * hppa-tdep.c: Fix indentation.
278 * hppa-tdep.h: Fix indentation.
279 * i386-bsd-nat.c: Fix indentation.
280 * i386-darwin-nat.c: Fix indentation.
281 * i386-darwin-tdep.c: Fix indentation.
282 * i386-dicos-tdep.c: Fix indentation.
283 * i386-gnu-nat.c: Fix indentation.
284 * i386-linux-nat.c: Fix indentation.
285 * i386-linux-tdep.c: Fix indentation.
286 * i386-nto-tdep.c: Fix indentation.
287 * i386-obsd-tdep.c: Fix indentation.
288 * i386-sol2-nat.c: Fix indentation.
289 * i386-tdep.c: Fix indentation.
290 * i386-tdep.h: Fix indentation.
291 * i386-windows-tdep.c: Fix indentation.
292 * i387-tdep.c: Fix indentation.
293 * i387-tdep.h: Fix indentation.
294 * ia64-libunwind-tdep.c: Fix indentation.
295 * ia64-libunwind-tdep.h: Fix indentation.
296 * ia64-linux-nat.c: Fix indentation.
297 * ia64-linux-tdep.c: Fix indentation.
298 * ia64-tdep.c: Fix indentation.
299 * ia64-tdep.h: Fix indentation.
300 * ia64-vms-tdep.c: Fix indentation.
301 * infcall.c: Fix indentation.
302 * infcmd.c: Fix indentation.
303 * inferior.c: Fix indentation.
304 * infrun.c: Fix indentation.
305 * iq2000-tdep.c: Fix indentation.
306 * language.c: Fix indentation.
307 * linespec.c: Fix indentation.
308 * linux-fork.c: Fix indentation.
309 * linux-nat.c: Fix indentation.
310 * linux-tdep.c: Fix indentation.
311 * linux-thread-db.c: Fix indentation.
312 * lm32-tdep.c: Fix indentation.
313 * m2-lang.c: Fix indentation.
314 * m2-typeprint.c: Fix indentation.
315 * m2-valprint.c: Fix indentation.
316 * m32c-tdep.c: Fix indentation.
317 * m32r-linux-tdep.c: Fix indentation.
318 * m32r-tdep.c: Fix indentation.
319 * m68hc11-tdep.c: Fix indentation.
320 * m68k-bsd-nat.c: Fix indentation.
321 * m68k-linux-nat.c: Fix indentation.
322 * m68k-linux-tdep.c: Fix indentation.
323 * m68k-tdep.c: Fix indentation.
324 * machoread.c: Fix indentation.
325 * macrocmd.c: Fix indentation.
326 * macroexp.c: Fix indentation.
327 * macroscope.c: Fix indentation.
328 * macrotab.c: Fix indentation.
329 * macrotab.h: Fix indentation.
330 * main.c: Fix indentation.
331 * mdebugread.c: Fix indentation.
332 * mep-tdep.c: Fix indentation.
333 * mi/mi-cmd-catch.c: Fix indentation.
334 * mi/mi-cmd-disas.c: Fix indentation.
335 * mi/mi-cmd-env.c: Fix indentation.
336 * mi/mi-cmd-stack.c: Fix indentation.
337 * mi/mi-cmd-var.c: Fix indentation.
338 * mi/mi-cmds.c: Fix indentation.
339 * mi/mi-main.c: Fix indentation.
340 * mi/mi-parse.c: Fix indentation.
341 * microblaze-tdep.c: Fix indentation.
342 * minidebug.c: Fix indentation.
343 * minsyms.c: Fix indentation.
344 * mips-linux-nat.c: Fix indentation.
345 * mips-linux-tdep.c: Fix indentation.
346 * mips-nbsd-tdep.c: Fix indentation.
347 * mips-tdep.c: Fix indentation.
348 * mn10300-linux-tdep.c: Fix indentation.
349 * mn10300-tdep.c: Fix indentation.
350 * moxie-tdep.c: Fix indentation.
351 * msp430-tdep.c: Fix indentation.
352 * namespace.h: Fix indentation.
353 * nat/fork-inferior.c: Fix indentation.
354 * nat/gdb_ptrace.h: Fix indentation.
355 * nat/linux-namespaces.c: Fix indentation.
356 * nat/linux-osdata.c: Fix indentation.
357 * nat/netbsd-nat.c: Fix indentation.
358 * nat/x86-dregs.c: Fix indentation.
359 * nbsd-nat.c: Fix indentation.
360 * nbsd-tdep.c: Fix indentation.
361 * nios2-linux-tdep.c: Fix indentation.
362 * nios2-tdep.c: Fix indentation.
363 * nto-procfs.c: Fix indentation.
364 * nto-tdep.c: Fix indentation.
365 * objfiles.c: Fix indentation.
366 * objfiles.h: Fix indentation.
367 * opencl-lang.c: Fix indentation.
368 * or1k-tdep.c: Fix indentation.
369 * osabi.c: Fix indentation.
370 * osabi.h: Fix indentation.
371 * osdata.c: Fix indentation.
372 * p-lang.c: Fix indentation.
373 * p-typeprint.c: Fix indentation.
374 * p-valprint.c: Fix indentation.
375 * parse.c: Fix indentation.
376 * ppc-linux-nat.c: Fix indentation.
377 * ppc-linux-tdep.c: Fix indentation.
378 * ppc-nbsd-nat.c: Fix indentation.
379 * ppc-nbsd-tdep.c: Fix indentation.
380 * ppc-obsd-nat.c: Fix indentation.
381 * ppc-ravenscar-thread.c: Fix indentation.
382 * ppc-sysv-tdep.c: Fix indentation.
383 * ppc64-tdep.c: Fix indentation.
384 * printcmd.c: Fix indentation.
385 * proc-api.c: Fix indentation.
386 * producer.c: Fix indentation.
387 * producer.h: Fix indentation.
388 * prologue-value.c: Fix indentation.
389 * prologue-value.h: Fix indentation.
390 * psymtab.c: Fix indentation.
391 * python/py-arch.c: Fix indentation.
392 * python/py-bpevent.c: Fix indentation.
393 * python/py-event.c: Fix indentation.
394 * python/py-event.h: Fix indentation.
395 * python/py-finishbreakpoint.c: Fix indentation.
396 * python/py-frame.c: Fix indentation.
397 * python/py-framefilter.c: Fix indentation.
398 * python/py-inferior.c: Fix indentation.
399 * python/py-infthread.c: Fix indentation.
400 * python/py-objfile.c: Fix indentation.
401 * python/py-prettyprint.c: Fix indentation.
402 * python/py-registers.c: Fix indentation.
403 * python/py-signalevent.c: Fix indentation.
404 * python/py-stopevent.c: Fix indentation.
405 * python/py-stopevent.h: Fix indentation.
406 * python/py-threadevent.c: Fix indentation.
407 * python/py-tui.c: Fix indentation.
408 * python/py-unwind.c: Fix indentation.
409 * python/py-value.c: Fix indentation.
410 * python/py-xmethods.c: Fix indentation.
411 * python/python-internal.h: Fix indentation.
412 * python/python.c: Fix indentation.
413 * ravenscar-thread.c: Fix indentation.
414 * record-btrace.c: Fix indentation.
415 * record-full.c: Fix indentation.
416 * record.c: Fix indentation.
417 * reggroups.c: Fix indentation.
418 * regset.h: Fix indentation.
419 * remote-fileio.c: Fix indentation.
420 * remote.c: Fix indentation.
421 * reverse.c: Fix indentation.
422 * riscv-linux-tdep.c: Fix indentation.
423 * riscv-ravenscar-thread.c: Fix indentation.
424 * riscv-tdep.c: Fix indentation.
425 * rl78-tdep.c: Fix indentation.
426 * rs6000-aix-tdep.c: Fix indentation.
427 * rs6000-lynx178-tdep.c: Fix indentation.
428 * rs6000-nat.c: Fix indentation.
429 * rs6000-tdep.c: Fix indentation.
430 * rust-lang.c: Fix indentation.
431 * rx-tdep.c: Fix indentation.
432 * s12z-tdep.c: Fix indentation.
433 * s390-linux-tdep.c: Fix indentation.
434 * score-tdep.c: Fix indentation.
435 * ser-base.c: Fix indentation.
436 * ser-mingw.c: Fix indentation.
437 * ser-uds.c: Fix indentation.
438 * ser-unix.c: Fix indentation.
439 * serial.c: Fix indentation.
440 * sh-linux-tdep.c: Fix indentation.
441 * sh-nbsd-tdep.c: Fix indentation.
442 * sh-tdep.c: Fix indentation.
443 * skip.c: Fix indentation.
444 * sol-thread.c: Fix indentation.
445 * solib-aix.c: Fix indentation.
446 * solib-darwin.c: Fix indentation.
447 * solib-frv.c: Fix indentation.
448 * solib-svr4.c: Fix indentation.
449 * solib.c: Fix indentation.
450 * source.c: Fix indentation.
451 * sparc-linux-tdep.c: Fix indentation.
452 * sparc-nbsd-tdep.c: Fix indentation.
453 * sparc-obsd-tdep.c: Fix indentation.
454 * sparc-ravenscar-thread.c: Fix indentation.
455 * sparc-tdep.c: Fix indentation.
456 * sparc64-linux-tdep.c: Fix indentation.
457 * sparc64-nbsd-tdep.c: Fix indentation.
458 * sparc64-obsd-tdep.c: Fix indentation.
459 * sparc64-tdep.c: Fix indentation.
460 * stabsread.c: Fix indentation.
461 * stack.c: Fix indentation.
462 * stap-probe.c: Fix indentation.
463 * stubs/ia64vms-stub.c: Fix indentation.
464 * stubs/m32r-stub.c: Fix indentation.
465 * stubs/m68k-stub.c: Fix indentation.
466 * stubs/sh-stub.c: Fix indentation.
467 * stubs/sparc-stub.c: Fix indentation.
468 * symfile-mem.c: Fix indentation.
469 * symfile.c: Fix indentation.
470 * symfile.h: Fix indentation.
471 * symmisc.c: Fix indentation.
472 * symtab.c: Fix indentation.
473 * symtab.h: Fix indentation.
474 * target-float.c: Fix indentation.
475 * target.c: Fix indentation.
476 * target.h: Fix indentation.
477 * tic6x-tdep.c: Fix indentation.
478 * tilegx-linux-tdep.c: Fix indentation.
479 * tilegx-tdep.c: Fix indentation.
480 * top.c: Fix indentation.
481 * tracefile-tfile.c: Fix indentation.
482 * tracepoint.c: Fix indentation.
483 * tui/tui-disasm.c: Fix indentation.
484 * tui/tui-io.c: Fix indentation.
485 * tui/tui-regs.c: Fix indentation.
486 * tui/tui-stack.c: Fix indentation.
487 * tui/tui-win.c: Fix indentation.
488 * tui/tui-winsource.c: Fix indentation.
489 * tui/tui.c: Fix indentation.
490 * typeprint.c: Fix indentation.
491 * ui-out.h: Fix indentation.
492 * unittests/copy_bitwise-selftests.c: Fix indentation.
493 * unittests/memory-map-selftests.c: Fix indentation.
494 * utils.c: Fix indentation.
495 * v850-tdep.c: Fix indentation.
496 * valarith.c: Fix indentation.
497 * valops.c: Fix indentation.
498 * valprint.c: Fix indentation.
499 * valprint.h: Fix indentation.
500 * value.c: Fix indentation.
501 * value.h: Fix indentation.
502 * varobj.c: Fix indentation.
503 * vax-tdep.c: Fix indentation.
504 * windows-nat.c: Fix indentation.
505 * windows-tdep.c: Fix indentation.
506 * xcoffread.c: Fix indentation.
507 * xml-syscall.c: Fix indentation.
508 * xml-tdesc.c: Fix indentation.
509 * xstormy16-tdep.c: Fix indentation.
510 * xtensa-config.c: Fix indentation.
511 * xtensa-linux-nat.c: Fix indentation.
512 * xtensa-linux-tdep.c: Fix indentation.
513 * xtensa-tdep.c: Fix indentation.
514
515 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
516 Craig Blackmore <craig.blackmore@embecosm.com>
517
518 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
519 as an unsigned value.
520
521 2020-11-01 Tom Tromey <tom@tromey.com>
522
523 * dbxread.c (dbx_end_psymtab): Update.
524 * dwarf2/read.c (process_psymtab_comp_unit_reader)
525 (build_type_psymtabs_reader): Update.
526 * xcoffread.c (xcoff_end_psymtab): Update.
527 * ctfread.c (scan_partial_symbols): Update.
528 * psymtab.c (sort_pst_symbols): Remove.
529 (partial_symtab::end): Rename from end_psymtab_common. Inline
530 sort_pst_symbols.
531 * psympriv.h (struct partial_symtab) <end>: New method.
532 (end_psymtab_common): Don't declare.
533
534 2020-11-01 Tom Tromey <tom@tromey.com>
535
536 * symmisc.c (count_psyms): New function.
537 (print_objfile_statistics): Use it.
538 * psymtab.c (append_psymbol_to_list): Remove.
539 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
540 * objfiles.h (struct objstats) <n_psyms>: Remove.
541
542 2020-11-01 Tom Tromey <tom@tromey.com>
543
544 * dbxread.c (dbx_end_psymtab): Update.
545 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
546 (build_type_psymtabs_reader): Update.
547 * xcoffread.c (xcoff_end_psymtab): Update.
548 * ctfread.c (scan_partial_symbols): Update.
549 * psympriv.h (end_psymtab_common): Update.
550 * psymtab.c (end_psymtab_common): Remove objfile parameter.
551 (sort_pst_symbols): Likewise.
552
553 2020-11-01 Tom Tromey <tom@tromey.com>
554
555 * dbxread.c (dbx_symfile_read): Update.
556 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
557 * xcoffread.c (xcoff_initial_scan): Update.
558 * psympriv.h (init_psymbol_list): Don't declare.
559 * psymtab.c (init_psymbol_list): Remove.
560
561 2020-11-01 Joel Brobecker <brobecker@adacore.com>
562
563 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
564 gnat_encoded_fixed_type_info. Update all callers.
565
566 2020-11-01 Joel Brobecker <brobecker@adacore.com>
567
568 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
569 line too long.
570
571 2020-11-01 Joel Brobecker <brobecker@adacore.com>
572
573 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
574 cast_from_fixed. Update all callers.
575 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
576 Update all callers.
577 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
578 Update all callers.
579 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
580 ada_scaling_factor.
581 * ada-typeprint.c: Replace call to ada_scaling_factor by call
582 to print_gnat_encoded_fixed_point_type.
583 * ada-valprint.c: Likewise.
584
585 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
586
587 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
588 (debug_prefixed_printf): Add check of debug_displaced flag.
589 * linux-nat.c (linux_nat_debug_printf): Add check of
590 debug_linux_nat flag.
591
592 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
593
594 * infrun.c (infrun_debug_printf_1): Remove.
595 (displaced_debug_printf_1): Remove.
596 (stop_all_threads): Use debug_prefixed_printf.
597 * infrun.h (infrun_debug_printf_1): Remove.
598 (infrun_debug_printf): Use debug_prefixed_printf.
599 (displaced_debug_printf_1): Remove.
600 (displaced_debug_printf): Use debug_prefixed_printf.
601 * linux-nat.c (linux_nat_debug_printf_1): Remove.
602 (linux_nat_debug_printf): Use debug_prefixed_printf.
603
604 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
605
606 * configure: Re-generate.
607 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
608 AC_LANG_PROGRAM.
609
610 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
611
612 * configure: Re-generate.
613
614 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
615
616 * configure: Re-generate.
617
618 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
619
620 * configure: Re-generate.
621
622 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
623
624 * configure: Re-generate.
625
626 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
627
628 * acinclude.m4: Modernize.
629 * configure: Re-generate.
630
631 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
632
633 * configure.ac: Modernize.
634 * configure: Re-generate.
635
636 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
637
638 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
639 * configure: Re-generate.
640 * configure.ac: Remove AM_PROG_CC_STDC.
641
642 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
645 AC_CANONICAL_SYSTEM.
646 * configure: Re-generate.
647
648 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
649
650 * infrun.h (displaced_debug_printf): New macro. Replace
651 displaced debug prints throughout to use it.
652 (displaced_debug_printf_1): New declaration.
653 (displaced_step_dump_bytes): Return string, remove ui_file
654 parameter, update all callers.
655 * infrun.c (displaced_debug_printf_1): New function.
656 (displaced_step_dump_bytes): Return string, remove ui_file
657 parameter
658
659 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
660
661 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
662
663 2020-10-30 Tom Tromey <tromey@adacore.com>
664
665 * Makefile.in (stamp-init): Depend on config.status.
666
667 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
668
669 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
670
671 2020-10-30 Pedro Alves <pedro@palves.net>
672
673 * thread.c (lookup_selected_frame): Move ...
674 * frame.c (lookup_selected_frame): ... here.
675
676 2020-10-30 Pedro Alves <pedro@palves.net>
677
678 * blockframe.c (block_innermost_frame): Use get_selected_frame.
679 * frame.c
680 (scoped_restore_selected_frame::scoped_restore_selected_frame):
681 Use save_selected_frame. Save language as well.
682 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
683 Use restore_selected_frame, and restore language as well.
684 (selected_frame_id, selected_frame_level): New.
685 (selected_frame): Update comments.
686 (save_selected_frame, restore_selected_frame): New.
687 (get_selected_frame): Use lookup_selected_frame.
688 (get_selected_frame_if_set): Delete.
689 (select_frame): Record selected_frame_level and selected_frame_id.
690 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
691 fields.
692 (get_selected_frame): Make 'message' parameter optional.
693 (get_selected_frame_if_set): Delete declaration.
694 (select_frame): Update comments.
695 (save_selected_frame, restore_selected_frame)
696 (lookup_selected_frame): Declare.
697 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
698 * infrun.c (struct infcall_control_state) <selected_frame_level>:
699 New field.
700 (save_infcall_control_state): Use save_selected_frame.
701 (restore_selected_frame): Delete.
702 (restore_infcall_control_state): Use restore_selected_frame.
703 * stack.c (select_frame_command_core, frame_command_core): Use
704 get_selected_frame.
705 * thread.c (restore_selected_frame): Rename to ...
706 (lookup_selected_frame): ... this and make extern. Select the
707 current frame if the frame level is -1.
708 (scoped_restore_current_thread::restore): Also restore the
709 language.
710 (scoped_restore_current_thread::~scoped_restore_current_thread):
711 Don't try/catch.
712 (scoped_restore_current_thread::scoped_restore_current_thread):
713 Save the language as well. Use save_selected_frame.
714
715 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
716
717 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
718 documentation.
719 * gdbarch.h: Re-generate.
720
721 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
722
723 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
724 parameter.
725 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
726 Likewise.
727 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
728 Likewise.
729 * arch-utils.c (default_displaced_step_hw_singlestep):
730 Likewise.
731 * arch-utils.h (default_displaced_step_hw_singlestep):
732 Likewise.
733 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
734 Likewise.
735 * s390-tdep.c (s390_displaced_step_hw_singlestep):
736 Likewise.
737 * gdbarch.c: Re-generate.
738 * gdbarch.h: Re-generate.
739 * infrun.c (resume_1): Adjust.
740
741 2020-10-29 Tom Tromey <tom@tromey.com>
742
743 * progspace.c (program_space::~program_space): Don't call
744 exec_close.
745
746 2020-10-29 Tom Tromey <tom@tromey.com>
747
748 * exec.c (exec_target::close): Don't change current program
749 space.
750
751 2020-10-29 Tom Tromey <tom@tromey.com>
752
753 * symfile.c (add_symbol_file_command): Update.
754 * exec.c (program_space::add_target_sections): Rename.
755 * symfile-mem.c (symbol_file_add_from_memory): Update.
756 * progspace.h (struct program_space) <add_target_sections>:
757 Declare new overload.
758 * exec.h (add_target_sections_of_objfile): Don't declare.
759
760 2020-10-29 Tom Tromey <tom@tromey.com>
761
762 * solib.c (solib_map_sections): Update.
763 * exec.c (program_space::add_target_sections): Now a method.
764 (exec_file_attach): Update.
765 * exec.h (add_target_sections): Don't declare.
766 * progspace.h (struct program_space) <add_target_sections>:
767 Declare.
768
769 2020-10-29 Tom Tromey <tom@tromey.com>
770
771 * progspace.h (struct program_space) <remove_target_sections>:
772 Declare.
773 * exec.c (program_space::remove_target_sections): Now a method.
774 * exec.h (remove_target_sections): Don't declare.
775
776 2020-10-29 Tom Tromey <tom@tromey.com>
777
778 * inferior.c (delete_inferior): Update.
779 * progspace.c (program_space::empty): Rename from
780 program_space_empty_p. Return bool.
781 * progspace.h (struct program_space) <empty>: New method.
782 (program_space_empty_p): Don't declare.
783
784 2020-10-29 Tom Tromey <tom@tromey.com>
785
786 * progspace.c (program_space::~program_space): Don't call
787 clear_program_space_solib_cache.
788 (program_space::clear_solib_cache): Rename from
789 clear_solib_cache.
790 * solib.c (handle_solib_event): Update.
791 * progspace.h (struct program_space) <clear_solib_cache>: New
792 method.
793 (clear_program_space_solib_cache): Don't declare.
794
795 2020-10-29 Tom Tromey <tom@tromey.com>
796
797 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
798 * target.c (info_target_command): Update.
799 * symfile.c (syms_from_objfile_1, finish_new_objfile)
800 (symbol_file_clear, reread_symbols): Update.
801 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
802 * stabsread.c (scan_file_globals): Update.
803 * solib.c (update_solib_list): Update.
804 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
805 (svr4_fetch_objfile_link_map, enable_break)
806 (svr4_relocate_main_executable)
807 (svr4_iterate_over_objfiles_in_search_order): Update.
808 * solib-frv.c (lm_base, enable_break)
809 (frv_relocate_main_executable): Update.
810 (main_got, frv_fdpic_find_canonical_descriptor): Update.
811 (frv_fetch_objfile_link_map): Update.
812 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
813 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
814 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
815 * remote.c (remote_target::get_offsets): Update.
816 (remote_target::start_remote)
817 (extended_remote_target::post_attach): Update.
818 * objfiles.c (entry_point_address_query): Update.
819 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
820 * minsyms.c (get_symbol_leading_char): Update.
821 * frame.c (inside_main_func): Update.
822 * progspace.h (symfile_objfile): Remove macro.
823
824 2020-10-29 Tom Tromey <tom@tromey.com>
825
826 * exec.c (exec_file_attach): Update.
827 * progspace.c (program_space::exec_close): Update.
828 * progspace.h (struct program_space) <ebfd>: Now a
829 gdb_bfd_ref_ptr.
830 <set_exec_bfd>: Change argument type.
831 <exec_bfd>: Update.
832
833 2020-10-29 Tom Tromey <tom@tromey.com>
834
835 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
836 * symfile.c (reread_symbols): Update.
837 * symfile-mem.c (add_symbol_file_from_memory_command)
838 (add_vsyscall_page): Update.
839 * source-cache.c (source_cache::get_plain_source_lines): Update.
840 * solib-svr4.c (find_program_interpreter, elf_locate_base)
841 (svr4_current_sos_direct, svr4_exec_displacement)
842 (svr4_relocate_main_executable): Update.
843 (svr4_iterate_over_objfiles_in_search_order): Update.
844 * solib-frv.c (enable_break2, enable_break): Update.
845 * solib-dsbt.c (lm_base, enable_break): Update.
846 * solib-darwin.c (find_program_interpreter)
847 (darwin_solib_create_inferior_hook): Update.
848 * sol-thread.c (rw_common, ps_pdmodel): Update.
849 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
850 * remote.c (compare_sections_command)
851 (remote_target::trace_set_readonly_regions): Update.
852 * remote-sim.c (get_sim_inferior_data)
853 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
854 (gdbsim_target_open, gdbsim_target::files_info): Update.
855 * exec.h (exec_bfd): Remove macro.
856 * progspace.c (initialize_progspace): Update.
857 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
858 Update.
859 * nto-procfs.c (nto_procfs_target::post_attach)
860 (nto_procfs_target::create_inferior): Update.
861 * maint.c (maintenance_info_sections): Update.
862 * linux-thread-db.c (thread_db_target::get_thread_local_address):
863 Update.
864 * infcmd.c (post_create_inferior): Update.
865 * gcore.c (default_gcore_arch, default_gcore_target): Update.
866 (objfile_find_memory_regions): Update.
867 * exec.c (validate_exec_file, exec_file_attach)
868 (exec_read_partial_read_only, print_section_info): Update.
869 * corelow.c (core_target_open): Update.
870 * corefile.c (reopen_exec_file, validate_files): Update.
871 * arm-tdep.c (gdb_print_insn_arm): Update.
872 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
873 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
874 methods.
875
876 2020-10-29 Tom Tromey <tom@tromey.com>
877
878 * progspace.h (current_target_sections): Remove macro.
879 * solib-svr4.c (scan_dyntag): Update.
880 * solib-dsbt.c (scan_dyntag): Update.
881 * exec.c (exec_target::close): Update.
882 (add_target_sections, add_target_sections_of_objfile)
883 (remove_target_sections, exec_target::get_section_table)
884 (exec_target::files_info, set_section_command)
885 (exec_set_section_address, exec_target::has_memory)
886 (exec_target::has_memory): Update.
887
888 2020-10-29 Tom Tromey <tom@tromey.com>
889
890 * source-cache.c (source_cache::get_plain_source_lines): Use
891 current_program_space.
892 * corefile.c (reopen_exec_file): Use current_program_space.
893 * exec.c (exec_file_attach): Use current_program_space.
894 * exec.h (exec_bfd_mtime): Remove.
895
896 2020-10-29 Tom Tromey <tom@tromey.com>
897
898 * gcore.c (default_gcore_mach): Remove.
899 (create_gcore_bfd): Update.
900
901 2020-10-29 Tom Tromey <tom@tromey.com>
902
903 * progspace.c (program_space::exec_close): New method, from
904 exec_close in exec.c.
905 * exec.c (exec_close): Move to progspace.c.
906 (exec_target::close, exec_file_attach): Update.
907 * progspace.h (struct program_space) <exec_close>: Declare
908 method.
909
910 2020-10-29 Tom Tromey <tom@tromey.com>
911
912 * progspace.h (struct program_space) <exec_filename>: Rename from
913 pspace_exec_filename. Now a unique_xmalloc_ptr.
914 * inferior.c (print_selected_inferior): Update.
915 (print_inferior): Update.
916 * mi/mi-main.c (print_one_inferior): Update.
917 * exec.h (exec_filename): Remove macro.
918 * corefile.c (get_exec_file): Update.
919 * exec.c (exec_close): Update.
920 (exec_file_attach): Update.
921 * progspace.c (clone_program_space): Update.
922 (print_program_space): Update.
923
924 2020-10-29 Tom Tromey <tom@tromey.com>
925
926 * target-section.h (struct target_section): Add constructor.
927 * exec.c (build_section_table, add_target_sections_of_objfile):
928 Update.
929 * corelow.c (core_target::build_file_mappings): Update.
930
931 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
932
933 PR gdb/19318
934 * inferior.c (detach_inferior_command): Restore the current thread.
935 (kill_inferior_command): Ditto.
936
937 2020-10-28 Tom de Vries <tdevries@suse.de>
938
939 PR symtab/26772
940 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
941 map, check it in the "best match" loop.
942
943 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
944
945 * m32c-tdep.c: Remove unused includes.
946
947 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
948
949 * xtensa-tdep.c: Remove includes.
950
951 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
952
953 * breakpoint.c (struct condition_command_opts): New struct.
954 (condition_command_option_defs): New static global.
955 (make_condition_command_options_def_group): New function.
956 (condition_completer): Update to consider the '-force' flag.
957 (condition_command): Use gdb::option for the '-force' flag.
958
959 2020-10-27 Tom de Vries <tdevries@suse.de>
960
961 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
962 symbols in section check.
963
964 2020-10-27 Tom de Vries <tdevries@suse.de>
965
966 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
967
968 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
969
970 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
971 * breakpoint.c: Update the help text of the 'condition' and 'break'
972 commands.
973 (set_breakpoint_condition): Take a new bool parameter
974 to control whether condition definition should be forced even when
975 the condition expression is invalid in all of the current locations.
976 (condition_command): Update the call to 'set_breakpoint_condition'.
977 (find_condition_and_thread): Take the "-force-condition" flag into
978 account.
979 * linespec.c (linespec_keywords): Add "-force-condition" as an
980 element.
981 (FORCE_KEYWORD_INDEX): New #define.
982 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
983 as a keyword.
984 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
985 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
986 * python/py-breakpoint.c (bppy_set_condition): Ditto.
987 * NEWS: Mention the changes to the 'break' and 'condition' commands.
988
989 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
990
991 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
992 * breakpoint.c (set_breakpoint_location_condition): New function.
993 (set_breakpoint_condition): Disable a breakpoint location if parsing
994 the condition string gives an error.
995 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
996 (build_target_condition_list): Ditto.
997 (build_target_command_list): Ditto.
998 (build_bpstat_chain): Ditto.
999 (print_one_breakpoint_location): Ditto.
1000 (print_one_breakpoint): Ditto.
1001 (breakpoint_1): Ditto.
1002 (bp_location::bp_location): Ditto.
1003 (locations_are_equal): Ditto.
1004 (update_breakpoint_locations): Ditto.
1005 (enable_disable_bp_num_loc): Ditto.
1006 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1007 (find_condition_and_thread_for_sals): New static function.
1008 (create_breakpoint): Call find_condition_and_thread_for_sals.
1009 (location_to_sals): Call find_condition_and_thread_for_sals instead
1010 of find_condition_and_thread.
1011
1012 2020-10-26 Tom de Vries <tdevries@suse.de>
1013
1014 * dwarf2/read.c (process_full_comp_unit): Call
1015 dwarf2_find_base_address.
1016
1017 2020-10-26 Tom Tromey <tromey@adacore.com>
1018
1019 * gdbtypes.c (create_range_type): Revert previous patch. Add
1020 comment.
1021
1022 2020-10-26 Pedro Alves <pedro@palves.net>
1023
1024 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1025 (my_waitpid): Use gdb::handle_eintr.
1026
1027 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1028
1029 * acinclude.m4: Update ptrace.m4 path.
1030 * ptrace.m4: Moved to gdbsupport.
1031
1032 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1033
1034 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1035 instead of target_gdbarch.
1036
1037 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1038
1039 * jit.c (jit_reader_load_command): Pass current inferior.
1040 (jit_inferior_init): Change parameter type to inferior, use it.
1041 (jit_inferior_created): Remove.
1042 (jit_inferior_created_hook): Pass inferior parameter down.
1043 (_initialize_jit): Use jit_inferior_created_hook instead of
1044 jit_inferior_created.
1045 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1046 * infrun.c (follow_exec): Pass inferior to
1047 jit_inferior_created_hook.
1048
1049 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1050
1051 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1052 parameter and use it.
1053 (thread_db_inferior_created): Pass inferior argument.
1054
1055 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1056
1057 * aix-thread.c (aix_thread_inferior_created): Add inferior
1058 parameter.
1059 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1060 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1061 * jit.c (jit_inferior_created): Likewise.
1062 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1063 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1064 * observable.h (inferior_created): Likewise.
1065 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1066 * symfile-mem.c (add_vsyscall_page): Likewise.
1067 * infcmd.c (post_create_inferior): Pass inferior argument.
1068
1069 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1070
1071 GDB 10.1 released.
1072
1073 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1074
1075 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1076 to ada_check_typedef.
1077
1078 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1079
1080 * f-exp.y (f_parse): Rename to...
1081 (f_language::parser): ...this.
1082 * f-lang.c (f_get_encoding): Rename to...
1083 (f_language::get_encoding): ...this.
1084 (f_op_print_tab): Rename to...
1085 (f_language::op_print_tab): ...this.
1086 (exp_descriptor_f): Rename to...
1087 (f_language::exp_descriptor_tab): ...this.
1088 (class f_language): Moved to f-lang.h.
1089 (f_language::language_arch_info): New function, moved out of class
1090 declaration.
1091 (f_language::search_name_hash): Likewise.
1092 (f_language::lookup_symbol_nonlocal): Likewise.
1093 (f_language::get_symbol_name_matcher_inner): Likewise.
1094 * f-lang.h: Add 'valprint.h' include.
1095 (class f_language): Moved here from f-lang.c.
1096 * f-typeprint.c (f_type_print_args): Delete commented out
1097 declaration.
1098 (f_print_typedef): Rename to...
1099 (f_language::print_typedef): ...this.
1100 (f_print_type): Rename to...
1101 (f_language::print_type): ...this.
1102 (f_type_print_varspec_prefix): Delete declaration and rename to...
1103 (f_language::f_type_print_varspec_prefix): ...this.
1104 (f_type_print_varspec_suffix): Delete declaration and rename to...
1105 (f_language::f_type_print_varspec_suffix): ...this.
1106 (f_type_print_base): Delete declaration and rename to...
1107 (f_language::f_type_print_base): ...this.
1108 * f-valprint.c (f_value_print_inner): Rename to...
1109 (f_language::value_print_inner): ...this.
1110 * parse.c: Delete 'f-lang.h' include.
1111
1112 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1113
1114 * language.h (language_defn::print_type): Add variable names in
1115 declaration, and update header comment.
1116
1117 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1118
1119 * ada-lang.c (ada_language::demangle): Rename to...
1120 (ada_language::demangle_symbol): ...this.
1121 * c-lang.c (cplus_language::demangle): Rename to...
1122 (cplus_language::demangle_symbol): ...this.
1123 * d-lang.c (d_language::demangle): Rename to...
1124 (d_language::demangle_symbol): ...this.
1125 * f-lang.c (f_language::demangle): Rename to...
1126 (f_language::demangle_symbol): ...this.
1127 * go-lang.c (go_language::demangle): Rename to...
1128 (go_language::demangle_symbol): ...this.
1129 * language.c (language_demangle): Update call to demangle_symbol.
1130 (auto_or_unknown_language::demangle): Rename to...
1131 (auto_or_unknown_language::demangle_symbol): ...this.
1132 * language.h (language_defn::demangle): Rename to...
1133 (language_defn::demangle_symbol): ...this.
1134 * objc-lang.c (objc_language::demangle): Rename to...
1135 (objc_language::demangle_symbol): ...this.
1136 * rust-lang.c (rust_language::demangle): Rename to...
1137 (rust_language::demangle_symbol): ...this.
1138
1139 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1140
1141 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1142 (iterate_over_file_blocks): Replace use of macro with the macros
1143 definition.
1144
1145 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1148 * valprint.c (maybe_print_array_index): Replace use of macro with
1149 the macros definition.
1150
1151 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1152
1153 * ada-lang.c (ada_language::print_array_index): Call value_print
1154 directly.
1155 * language.c (language_defn::print_array_index): Likewise.
1156 * language.h (LA_VALUE_PRINT): Delete.
1157 * valprint.c (value_print): Call value_print on the
1158 current_language directly.
1159
1160 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1161
1162 * language.h (LA_PRINT_TYPEDEF): Delete.
1163 * typeprint.c (typedef_print): Call print_typedef directly on the
1164 current_language object.
1165
1166 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1167
1168 * m2-exp.y (m2_parse): Rename to...
1169 (m2_language::parser): ...this. Update function signature.
1170 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1171 (m2_op_print): Rename to...
1172 (m2_language::op_print_tab): ...this, and make const.
1173 (exp_descriptor_modula2): Rename to...
1174 (m2_language::exp_descriptor_modula2): ...this.
1175 (class m2_language): Move to m2-lang.h.
1176 (m2_language::language_arch_info): New function, moved out of
1177 class declaration.
1178 (m2_language::printchar): New function, body from m2_printchar.
1179 (m2_language::printstr): New function, moved out of class
1180 declaration.
1181 (m2_language::emitchar): Likewise.
1182 * m2-lang.h (m2_parse): Delete declaration.
1183 (m2_print_typedef): Delete declaration.
1184 (m2_value_print_inner): Delete declaration.
1185 (class m2_language): Class declaration moved from m2-lang.c,
1186 larger functions are left in m2-lang.c.
1187 * m2-typeprint.c (m2_print_typedef): Rename to...
1188 (m2_language::print_typedef): ...this, and update function
1189 signature.
1190 * m2-valprint.c (m2_value_print_inner): Rename to...
1191 (m2_language::value_print_inner): ...this, replace use of
1192 LA_PRINT_STRING with a direct call to printstr member function,
1193 and update recursive call.
1194
1195 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1196
1197 * language.c (default_is_string_type_p): Delete, implementation
1198 moved into auto_or_unknown_language::is_string_type_p.
1199 (unk_op_print_tab): Moved into
1200 auto_or_unknown_language::opcode_print_table.
1201 (unknown_language_arch_info): Delete, implementation moved into
1202 auto_or_unknown_language::language_arch_info.
1203 (class auto_or_unknown_language): New class, member functions
1204 copied from unknown_language class, with some updates.
1205 (class unknown_language): Most member functions moved into
1206 auto_or_unknown_language class. Inherit from
1207 auto_or_unknown_language class.
1208 (class auto_language): Inherit from auto_or_unknown_language.
1209 Delete most member functions.
1210
1211 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1212
1213 * stabsread.c (read_member_functions): Remove gdb_assert.
1214
1215 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1216
1217 * gdbtypes.c (init_complex_type): Check target type name.
1218
1219 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1220
1221 * target-debug.h (target_debug_print_struct_target_ops_p):
1222 Remove.
1223 (target_debug_print_async_callback_ftype_p): Remove.
1224 (target_debug_print_struct_trace_state_variable_p): Remove.
1225 (target_debug_print_struct_traceframe_info_p): Remove.
1226 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1227 (target_debug_print_enum_btrace_format): Remove.
1228 (target_debug_print_enum_info_proc_what): Remove.
1229 (target_debug_print_thread_info_pp): Remove.
1230
1231 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1232
1233 * target.h (struct target_ops) <make_corefile_notes>:
1234 Change return type to unique pointer.
1235 * target.c (dummy_make_corefile_notes): Likewise.
1236 * exec.c (struct exec_target) <make_corefile_notes>:
1237 Likewise.
1238 (exec_target::make_corefile_notes): Likewise.
1239 * procfs.c (class procfs_target) <make_corefile_notes>:
1240 Likewise.
1241 (procfs_do_thread_registers): Adjust to unique pointer.
1242 (struct procfs_corefile_thread_data): Add constructor.
1243 <note_data>: Change type to unique pointer.
1244 (procfs_corefile_thread_callback): Adjust to unique pointer.
1245 (procfs_target::make_corefile_notes): Change return type to
1246 unique pointer.
1247 * target-delegates.c: Re-generate.
1248 * gcore.c (write_gcore_file_1): Adjust.
1249 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1250 New.
1251
1252 2020-10-22 Tom de Vries <tdevries@suse.de>
1253
1254 * block.c (find_block_in_blockvector): Make sure the returned block
1255 contains pc.
1256
1257 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1258
1259 PR gdb/26693
1260 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1261 parameter.
1262 (load_cu): Pass existing CU.
1263 (process_imported_unit_die): Likewise.
1264 (follow_die_offset): Likewise.
1265
1266 2020-10-22 Luis Machado <luis.machado@linaro.org>
1267
1268 * corelow.c (core_target::xfer_partial): Also check for an empty
1269 m_core_unavailable_mappings vector.
1270
1271 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1274 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1275 * f-exp.y (arglist): Allow for a series of subranges.
1276 (subrange): Add cases for subranges with strides.
1277 * f-lang.c (value_f90_subarray): Catch use of array strides and
1278 throw an error.
1279 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1280
1281 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * expprint.c (print_subexp_standard): Change enum range_type to
1284 range_flag and rename variables to match.
1285 (dump_subexp_body_standard): Likewise.
1286 * expression.h (enum range_type): Rename to...
1287 (enum range_flag): ...this.
1288 (range_types): Rename to...
1289 (range_flags): ...this.
1290 * f-lang.c (value_f90_subarray): Change enum range_type to
1291 range_flag and rename variables to match.
1292 * parse.c (operator_length_standard): Likewise.
1293 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1294 range_type to range_flag.
1295 * rust-lang.c (rust_evaluate_funcall): Likewise.
1296 (rust_range): Likewise.
1297 (rust_compute_range): Likewise.
1298 (rust_subscript): Likewise.
1299
1300 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1301
1302 * expprint.c (print_subexp_standard): Update to reflect changes to
1303 enum range_type.
1304 (dump_subexp_body_standard): Likewise.
1305 * expression.h (enum range_type): Convert to a bit field enum, and
1306 make the enum unsigned.
1307 * f-exp.y (subrange): Update to reflect changes to enum
1308 range_type.
1309 * f-lang.c (value_f90_subarray): Likewise.
1310 * parse.c (operator_length_standard): Likewise.
1311 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1312 * rust-lang.c (rust_range): Likewise.
1313 (rust_compute_range): Likewise.
1314 (rust_subscript): Likewise.
1315
1316 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1317
1318 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1319 (displaced_step_in_progress): Fix comment.
1320
1321 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1322
1323 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1324 * gdbarch.c: Re-generate.
1325 * gdbarch.h: Re-generate.
1326 * gcore.c (write_gcore_file_1): Adjust.
1327 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1328 constructor.
1329 <note_data>: Change type to unique pointer.
1330 <abort_iteration>: Change type to bool.
1331 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1332 (fbsd_collect_thread_registers): Return void, adjust.
1333 (struct fbsd_corefile_thread_data): Add construtor.
1334 <note_data>: Change type to unique pointer.
1335 (fbsd_corefile_thread): Adjust.
1336 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1337 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1338 to unique pointer, adjust.
1339 (struct linux_collect_regset_section_cb_data): Add constructor.
1340 <note_data>: Change type to unique pointer.
1341 <abort_iteration>: Change type to bool.
1342 (linux_collect_thread_registers): Return void, adjust.
1343 (struct linux_corefile_thread_data): Add constructor.
1344 <note_data>: Change type to unique pointer.
1345 (linux_corefile_thread): Adjust.
1346 (linux_make_corefile_notes): Return unique pointer, adjust.
1347
1348 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1349
1350 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1351 * gdbarch.c: Re-generate.
1352 * gdbarch.h: Re-generate.
1353 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1354 bool.
1355 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1356 Likewise.
1357 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1358 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1359 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1360 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1361
1362 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1363
1364 * gdbarch.sh: Make generated predicates return bool.
1365 * gdbarch.c: Re-generate.
1366 * gdbarch.h: Re-generate.
1367
1368 2020-10-20 Tom Tromey <tom@tromey.com>
1369
1370 * varobj-iter.h (struct varobj_item): Remove typedef.
1371
1372 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1373
1374 * infrun.c (currently_stepping): Change int to bool
1375 (maybe_software_singlestep): Likewise.
1376 (show_stop_on_solib_events): Likewise.
1377 (stepping_past_nonsteppable_watchpoint): Likewise.
1378 (displaced_step_in_progress_any_inferior): Likewise.
1379 (displaced_step_in_progress_thread): Likewise.
1380 (keep_going_stepped_thread): Likewise.
1381 (thread_still_needs_step_over): Likewise.
1382 (start_step_over): Likewise.
1383 (do_target_resume): Likewise.
1384 (resume_1): Likewise.
1385 (clear_proceed_status): Likewise.
1386 (thread_still_needs_step_over_bp): Likewise.
1387 (proceed): Likewise.
1388 (switch_back_to_stepped_thread): Likewise.
1389 (adjust_pc_after_break): Likewise.
1390 (stepped_in_from): Likewise.
1391 (handle_stop_requested): Likewise.
1392 (handle_syscall_event): Likewise.
1393 (handle_no_resumed): Likewise.
1394 (handle_inferior_event): Likewise.
1395 (finish_step_over): Likewise.
1396 (handle_signal_stop): Likewise.
1397 (process_event_stop_test): Likewise.
1398
1399 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1400
1401 * infrun.c (get_displaced_stepping_state): Fix comment.
1402
1403 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1404
1405 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1406
1407 2020-10-19 Tom Tromey <tromey@adacore.com>
1408
1409 PR tui/26719
1410 * tui/tui-winsource.h (struct tui_source_window_base)
1411 <refresh_window>: Rename from refresh_pad.
1412 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1413 Rename from refresh_pad.
1414 (tui_source_window_base::show_source_content)
1415 (tui_source_window_base::do_scroll_horizontal): Update.
1416
1417 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1418
1419 * thread.c (_initialize_thread): Fine-tune the help text of
1420 'info threads'.
1421
1422 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1423
1424 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1425
1426 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1427
1428 * breakpoint.c (handle_jit_event): Add an argument, change how
1429 `jit_event_handler` is called.
1430
1431 2020-10-17 Tom Tromey <tom@tromey.com>
1432
1433 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1434 (scan_xcoff_symtab): Update.
1435 * psymtab.h (class psymtab_storage) <global_psymbols,
1436 static_psymbols, current_global_psymbols,
1437 current_static_psymbols>: Remove.
1438 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1439 (match_partial_symbol, lookup_partial_symbol): Update.
1440 (print_partial_symbols): Change parameters.
1441 (dump_psymtab, recursively_search_psymtabs)
1442 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1443 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1444 (concat): Remove.
1445 (end_psymtab_common): Simplify.
1446 (append_psymbol_to_list): Change parameters.
1447 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1448 (init_psymbol_list): Simplify.
1449 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1450 * psympriv.h (struct partial_symtab) <empty>: New method.
1451 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1452 Remove.
1453 <global_psymbols, static_psymbols>: New members.
1454 <add_psymbol>: New methods.
1455 (add_psymbol_to_list): Don't declare.
1456 (psymbol_placement): Move earlier.
1457 * mdebugread.c (parse_partial_symbols): Update.
1458 (handle_psymbol_enumerators): Change parameters.
1459 (mdebug_expand_psymtab): Update.
1460 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1461 (add_partial_symbol): Update.
1462 * dwarf2/index-write.c (write_psymbols): Change parameters.
1463 (write_one_signatured_type): Update.
1464 (recursively_count_psymbols): Update.
1465 (recursively_write_psymbols): Update.
1466 (class debug_names) <recursively_write_psymbols>: Update.
1467 <write_psymbols>: Change parameters.
1468 <write_one_signatured_type>: Update.
1469 * dbxread.c (read_dbx_symtab): Update.
1470 (dbx_end_psymtab): Use partial_symtab::empty.
1471 * ctfread.c (struct ctf_context) <pst>: New member.
1472 (create_partial_symtab): Set it.
1473 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1474 (scan_partial_symbols): Use the psymtab's context. Update.
1475
1476 2020-10-17 Tom Tromey <tom@tromey.com>
1477
1478 * valprint.c (generic_value_print): Remove comment.
1479 * m2-valprint.c (m2_value_print_inner): Remove comment.
1480 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1481 type.
1482
1483 2020-10-17 Tom de Vries <tdevries@suse.de>
1484
1485 PR symtab/26317
1486 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1487 symbol main.
1488
1489 2020-10-14 Tom de Vries <tdevries@suse.de>
1490
1491 PR gdb/26733
1492 * solib.c (solib_contains_address_p): Handle
1493 'solib->sections == nullptr'.
1494
1495 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1496
1497 PR gdb/26642
1498 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1499 target can't do async.
1500 * target.c (target_wait): Assert that we don't pass
1501 TARGET_WNOHANG to a target that can't async.
1502
1503 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1504
1505 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1506 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1507 * alpha-bsd-nat.c: Adjust include.
1508 * alpha-bsd-tdep.h: Adjust comment.
1509 * alpha-nbsd-tdep.c: Rename to ...
1510 * alpha-netbsd-tdep.c: ... this, adjust include.
1511 * amd64-nbsd-nat.c: Rename to ...
1512 * amd64-netbsd-nat.c: ... this, adjust include.
1513 * amd64-nbsd-tdep.c: Rename to ...
1514 * amd64-netbsd-tdep.c: ... this, adjust include.
1515 * amd64-tdep.h: Adjust include.
1516 * arm-nbsd-nat.c: Rename to ...
1517 * arm-netbsd-nat.c: ... this, adjust include.
1518 * arm-nbsd-tdep.c: Rename to ...
1519 * arm-netbsd-tdep.c: ... this, adjust include.
1520 * arm-nbsd-tdep.h: Rename to ...
1521 * arm-netbsd-tdep.h: ... this, adjust include.
1522 * configure.nat: Adjust file lists.
1523 * configure.tgt: Likewise.
1524 * hppa-nbsd-nat.c: Rename to ...
1525 * hppa-netbsd-nat.c: ... this, adjust include.
1526 * hppa-nbsd-tdep.c: Rename to ...
1527 * hppa-netbsd-tdep.c: ... this, adjust include.
1528 * i386-nbsd-nat.c: Rename to ...
1529 * i386-netbsd-nat.c: ... this, adjust include.
1530 * i386-nbsd-tdep.c: Rename to ...
1531 * i386-netbsd-tdep.c: ... this, adjust include.
1532 * m68k-bsd-nat.c: Adjust include.
1533 * mips-nbsd-nat.c: Rename to ...
1534 * mips-netbsd-nat.c: ... this, adjust include.
1535 * mips-nbsd-tdep.c: Rename to ...
1536 * mips-netbsd-tdep.c: ... this, adjust include.
1537 * mips-nbsd-tdep.h: Rename to ...
1538 * mips-netbsd-tdep.h: ... this.
1539 * nbsd-nat.c: Rename to ...
1540 * netbsd-nat.c: ... this, adjust include.
1541 * nbsd-nat.h: Rename to ...
1542 * netbsd-nat.h: ... this, adjust include.
1543 * nbsd-tdep.c: Rename to ...
1544 * netbsd-tdep.c: ... this, adjust include.
1545 * nbsd-tdep.h: Rename to ...
1546 * netbsd-tdep.h: ... this.
1547 * ppc-nbsd-nat.c: Rename to ...
1548 * ppc-netbsd-nat.c: ... this, adjust include.
1549 * ppc-nbsd-tdep.c: Rename to ...
1550 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1551 * ppc-nbsd-tdep.h: Rename to ...
1552 * ppc-netbsd-tdep.h: ... this.
1553 * sh-nbsd-nat.c: Rename to ...
1554 * sh-netbsd-nat.c: ... this, adjust include.
1555 * sh-nbsd-tdep.c: Rename to ...
1556 * sh-netbsd-tdep.c: ... this, adjust include.
1557 * sparc-nbsd-nat.c: Rename to ...
1558 * sparc-netbsd-nat.c: ... this.
1559 * sparc-nbsd-tdep.c: Rename to ...
1560 * sparc-netbsd-tdep.c: ... this, adjust include.
1561 * sparc64-nbsd-nat.c: Rename to ...
1562 * sparc64-netbsd-nat.c: ... this.
1563 * sparc64-nbsd-tdep.c: Rename to ...
1564 * sparc64-netbsd-tdep.c: ... this, adjust include.
1565 * sparc64-tdep.h: Adjust comment.
1566 * vax-bsd-nat.c: Adjust include.
1567 * vax-nbsd-tdep.c: Rename to ...
1568 * vax-netbsd-tdep.c: ... this, adjust include.
1569
1570 2020-10-12 Tom Tromey <tom@tromey.com>
1571
1572 * target.h (struct target_ops) <get_section_table>: Update.
1573 (target_get_section_table): Update.
1574 * target.c (target_get_section_table, target_section_by_addr)
1575 (memory_xfer_partial_1): Update.
1576 * target-section.h (target_section_table): Now an alias.
1577 * target-delegates.c: Rebuild.
1578 * target-debug.h (target_debug_print_target_section_table_p):
1579 Rename from target_debug_print_struct_target_section_table_p.
1580 * symfile.c (build_section_addr_info_from_section_table): Update.
1581 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1582 * solib-svr4.c (scan_dyntag): Update.
1583 * solib-dsbt.c (scan_dyntag): Update.
1584 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1585 Update.
1586 * record-full.c (record_full_core_target::xfer_partial): Update.
1587 * progspace.h (struct program_space) <target_sections>: Update.
1588 * exec.h (print_section_info): Update.
1589 * exec.c (exec_target::close, build_section_table)
1590 (add_target_sections, add_target_sections_of_objfile)
1591 (remove_target_sections, exec_on_vfork)
1592 (section_table_available_memory)
1593 (section_table_xfer_memory_partial)
1594 (exec_target::get_section_table, exec_target::xfer_partial)
1595 (print_section_info, set_section_command)
1596 (exec_set_section_address, exec_target::has_memory): Update.
1597 * corelow.c (core_target::build_file_mappings)
1598 (core_target::xfer_partial, core_target::info_proc_mappings)
1599 (core_target::info_proc_mappings): Update.
1600 * bfd-target.c (class target_bfd): Update
1601
1602 2020-10-12 Tom Tromey <tom@tromey.com>
1603
1604 * progspace.c (program_space::~program_space): Don't call
1605 clear_section_table.
1606 * exec.h (clear_section_table): Don't declare.
1607 * exec.c (exec_target::close): Update.
1608 (clear_section_table): Remove.
1609
1610 2020-10-12 Tom Tromey <tom@tromey.com>
1611
1612 * exec.c (add_target_sections_of_objfile): Simplify.
1613
1614 2020-10-12 Tom Tromey <tom@tromey.com>
1615
1616 * solib.c (solib_map_sections): Update.
1617 * record-full.c (record_full_core_open_1): Update.
1618 * exec.h (build_section_table): Return a target_section_table.
1619 * exec.c (exec_file_attach): Update.
1620 (build_section_table): Return a target_section_table.
1621 * corelow.c (core_target::core_target): Update.
1622 * bfd-target.c (target_bfd::target_bfd): Update.
1623
1624 2020-10-12 Tom Tromey <tom@tromey.com>
1625
1626 * target.c (target_section_by_addr, memory_xfer_partial_1):
1627 Update.
1628 * target-section.h (struct target_section_table): Use
1629 std::vector.
1630 * symfile.h (build_section_addr_info_from_section_table): Take a
1631 target_section_table.
1632 * symfile.c (build_section_addr_info_from_section_table): Take a
1633 target_section_table.
1634 * solist.h (struct so_list) <sections>: Change type.
1635 <sections_end>: Remove.
1636 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1637 (solib_contains_address_p): Update.
1638 * solib-svr4.c (scan_dyntag): Update.
1639 * solib-dsbt.c (scan_dyntag): Update.
1640 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1641 Update.
1642 * record-full.c (record_full_core_start, record_full_core_end):
1643 Remove.
1644 (record_full_core_sections): New global.
1645 (record_full_core_open_1, record_full_core_target::xfer_partial):
1646 Update.
1647 * exec.h (build_section_table, section_table_xfer_memory_partial)
1648 (add_target_sections): Take a target_section_table.
1649 * exec.c (exec_file_attach, clear_section_table): Update.
1650 (resize_section_table): Remove.
1651 (build_section_table, add_target_sections): Take a
1652 target_section_table.
1653 (add_target_sections_of_objfile, remove_target_sections)
1654 (exec_on_vfork): Update.
1655 (section_table_available_memory): Take a target_section_table.
1656 (section_table_read_available_memory): Update.
1657 (section_table_xfer_memory_partial): Take a target_section_table.
1658 (print_section_info, set_section_command)
1659 (exec_set_section_address, exec_target::has_memory): Update.
1660 * corelow.c (class core_target) <m_core_section_table,
1661 m_core_file_mappings>: Remove braces.
1662 <~core_target>: Remove.
1663 (core_target::core_target): Update.
1664 (core_target::~core_target): Remove.
1665 (core_target::build_file_mappings)
1666 (core_target::xfer_memory_via_mappings)
1667 (core_target::xfer_partial, core_target::info_proc_mappings):
1668 Update.
1669 * bfd-target.c (target_bfd::xfer_partial): Update.
1670 (target_bfd::target_bfd): Update.
1671 (target_bfd::~target_bfd): Remove.
1672
1673 2020-10-12 Tom Tromey <tom@tromey.com>
1674
1675 * target.h (struct target_section, struct target_section_table):
1676 Move to target-section.h.
1677 * target-section.h: New file.
1678
1679 2020-10-12 Pedro Alves <pedro@palves.net>
1680
1681 PR exp/26602
1682 * valops.c (struct struct_field_searcher): New.
1683 (update_search_result): Rename to ...
1684 (struct_field_searcher::update_result): ... this. Simplify
1685 prototype. Record all found fields.
1686 (do_search_struct_field): Rename to ...
1687 (struct_field_searcher::search): ... this. Simplify prototype.
1688 Maintain stack of visited baseclass path. Call update_result for
1689 fields too. Keep searching fields in baseclasses instead of
1690 stopping at the first found field.
1691 (search_struct_field): Use struct_field_searcher. When looking
1692 for fields, report ambiguous access attempts.
1693
1694 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1695
1696 * frame.c (inside_main_func): Check full symbols as well as
1697 minimal symbols.
1698
1699 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1700
1701 * ada-lang.c (advance_wild_match): Rewrite the function's
1702 description. Change the type of target0, t0 and t1 to char.
1703
1704 2020-10-09 Tom Tromey <tromey@adacore.com>
1705
1706 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1707
1708 2020-10-09 Tom Tromey <tromey@adacore.com>
1709
1710 * ada-lang.h (ada_encode): Return std::string.
1711 * ada-lang.c (ada_encode_1): Return std::string.
1712 (ada_encode): Likewise.
1713 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1714 Update.
1715 * ada-exp.y (block_lookup, write_var_or_type): Update.
1716
1717 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1718
1719 PR exp/26714
1720 * printcmd.c (print_formatted): Handle void results as
1721 unformatted prints.
1722
1723 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * arch/aarch32.c (aarch32_create_target_description): Release the
1726 target_desc_up as late as possible.
1727 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1728 * arch/amd64.c (amd64_create_target_description): Likewise.
1729 * arch/arc.c (arc_create_target_description): Return a
1730 target_desc_up, don't release it.
1731 * arch/arc.h (arc_create_target_description): Update declaration.
1732 (arc_lookup_target_description): Move target_desc_up into the
1733 cache, and return a borrowed pointer.
1734 * arch/arm.c (arm_create_target_description): Release the
1735 target_desc_up as late as possible.
1736 * arch/i386.c (i386_create_target_description): Likewise.
1737 * arch/riscv.h (riscv_create_target_description): Update
1738 declaration to match definition.
1739 * arch/tic6x.c (tic6x_create_target_description): Release the
1740 target_desc_up as late as possible.
1741
1742 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1743
1744 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1745 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1746
1747 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1748
1749 * source.c (directory_command): Notify observers that "directories"
1750 parameter has changed.
1751
1752 2020-10-08 Tom Tromey <tom@tromey.com>
1753
1754 * cli/cli-cmds.c (print_disassembly): Style function name and
1755 addresses. Add _() wrappers.
1756
1757 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1758
1759 * NEWS: Mention ARC support in GDBserver.
1760
1761 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1762
1763 * arch/aarch32.c (aarch32_create_target_description): Release
1764 unique_ptr returned from allocate_target_description.
1765 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1766 * arch/amd64.c (amd64_create_target_description): Likewise.
1767 * arch/arc.c (arc_create_target_description): Likewise.
1768 * arch/arm.c (arm_create_target_description): Likewise.
1769 * arch/i386.c (i386_create_target_description): Likewise.
1770 * arch/riscv.c (riscv_create_target_description): Update return
1771 type. Handle allocate_target_description returning a unique_ptr.
1772 (riscv_lookup_target_description): Update to handle unique_ptr.
1773 * arch/tic6x.c (tic6x_create_target_description): Release
1774 unique_ptr returned from allocate_target_description.
1775 * features/microblaze-with-stack-protect.c: Regenerate.
1776 * features/microblaze.c: Regenerate.
1777 * features/mips-dsp-linux.c: Regenerate.
1778 * features/mips-linux.c: Regenerate.
1779 * features/mips64-dsp-linux.c: Regenerate.
1780 * features/mips64-linux.c: Regenerate.
1781 * features/nds32.c: Regenerate.
1782 * features/nios2.c: Regenerate.
1783 * features/or1k.c: Regenerate.
1784 * features/rs6000/powerpc-32.c: Regenerate.
1785 * features/rs6000/powerpc-32l.c: Regenerate.
1786 * features/rs6000/powerpc-403.c: Regenerate.
1787 * features/rs6000/powerpc-403gc.c: Regenerate.
1788 * features/rs6000/powerpc-405.c: Regenerate.
1789 * features/rs6000/powerpc-505.c: Regenerate.
1790 * features/rs6000/powerpc-601.c: Regenerate.
1791 * features/rs6000/powerpc-602.c: Regenerate.
1792 * features/rs6000/powerpc-603.c: Regenerate.
1793 * features/rs6000/powerpc-604.c: Regenerate.
1794 * features/rs6000/powerpc-64.c: Regenerate.
1795 * features/rs6000/powerpc-64l.c: Regenerate.
1796 * features/rs6000/powerpc-7400.c: Regenerate.
1797 * features/rs6000/powerpc-750.c: Regenerate.
1798 * features/rs6000/powerpc-860.c: Regenerate.
1799 * features/rs6000/powerpc-altivec32.c: Regenerate.
1800 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1801 * features/rs6000/powerpc-altivec64.c: Regenerate.
1802 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1803 * features/rs6000/powerpc-e500.c: Regenerate.
1804 * features/rs6000/powerpc-e500l.c: Regenerate.
1805 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1806 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1807 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1808 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1809 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1810 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1811 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1812 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1813 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1814 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1815 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1816 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1817 * features/rs6000/powerpc-vsx32.c: Regenerate.
1818 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1819 * features/rs6000/powerpc-vsx64.c: Regenerate.
1820 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1821 * features/rs6000/rs6000.c: Regenerate.
1822 * features/rx.c: Regenerate.
1823 * features/s390-gs-linux64.c: Regenerate.
1824 * features/s390-linux32.c: Regenerate.
1825 * features/s390-linux32v1.c: Regenerate.
1826 * features/s390-linux32v2.c: Regenerate.
1827 * features/s390-linux64.c: Regenerate.
1828 * features/s390-linux64v1.c: Regenerate.
1829 * features/s390-linux64v2.c: Regenerate.
1830 * features/s390-te-linux64.c: Regenerate.
1831 * features/s390-tevx-linux64.c: Regenerate.
1832 * features/s390-vx-linux64.c: Regenerate.
1833 * features/s390x-gs-linux64.c: Regenerate.
1834 * features/s390x-linux64.c: Regenerate.
1835 * features/s390x-linux64v1.c: Regenerate.
1836 * features/s390x-linux64v2.c: Regenerate.
1837 * features/s390x-te-linux64.c: Regenerate.
1838 * features/s390x-tevx-linux64.c: Regenerate.
1839 * features/s390x-vx-linux64.c: Regenerate.
1840 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1841 from allocate_target_description.
1842 * target-descriptions.c (allocate_target_description): Update
1843 return type.
1844 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1845 allocate_target_description.
1846
1847 2020-10-07 Tom Tromey <tromey@adacore.com>
1848
1849 * unittests/search-memory-selftests.c: New file.
1850 * Makefile.in (SELFTESTS_SRCS): Add
1851 unittests/search-memory-selftests.c.
1852
1853 2020-10-07 Tom Tromey <tromey@adacore.com>
1854
1855 PR gdb/16930:
1856 * findcmd.c (_initialize_mem_search): Mention that the range is
1857 inclusive.
1858
1859 2020-10-07 Tom Tromey <tromey@adacore.com>
1860
1861 * target.h (simple_search_memory): Don't declare.
1862 * target.c (simple_search_memory): Move to gdbsupport.
1863 (default_search_memory): Update.
1864 * remote.c (remote_target::search_memory): Update.
1865
1866 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1867
1868 * Makefile.in (COMPILE): Add CXXFLAGS.
1869 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1870 (check-headers): Add CXXFLAGS.
1871
1872 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1873
1874 * arc-linux-tdep.h: New file.
1875 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1876 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1877 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1878 arc_linux_gregset, arc_linux_v2_regset,
1879 arc_linux_iterate_over_regset_sections,
1880 arc_linux_core_read_description): Implement.
1881 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1882 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1883 (arc_gdbarch_features_create): Add.
1884 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1885
1886 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1887
1888 * arch/arc.h: Rename "arc_gdbarch_features" to
1889 "arc_arch_features".
1890 * arc-tdep.h: Likewise.
1891 * arc-tdep.c: Likewise.
1892
1893 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1894
1895 * infcmd.c (attach_command): Remove the redundant call to
1896 `clear_proceed_status`.
1897
1898 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1899
1900 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1901
1902 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1903
1904 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1905 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1906 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1907
1908 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1909
1910 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1911 (_initialize_break_catch_sig): Don't allocate array.
1912
1913 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1914
1915 * symtab.c (find_pc_line): Return unmapped addresses when the
1916 requested address is also unmapped.
1917
1918 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1919
1920 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1921 tui/tui-out.h.
1922
1923 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1924
1925 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1926 type::is_vector instead of TYPE_VECTOR.
1927
1928 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1929
1930 * auto-load.c (auto_load_objfile_script_1): Don't use
1931 debugfile_holder as temporary variable when stripping drive
1932 letter.
1933
1934 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1935
1936 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1937 Add TYPE_CODE_COMPLEX.
1938 (amd64_windows_return_value): Fix types returned via XMM0.
1939
1940 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1941
1942 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1943 AArch64/ARM maintainers.
1944
1945 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1946
1947 * NEWS: Mention set/show debug event-loop.
1948
1949 2020-10-02 Tom Tromey <tromey@adacore.com>
1950
1951 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1952 REG_EXTENDED.
1953
1954 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1955
1956 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1957 * procfs.c (procfs_inferior_created): Remove.
1958 (_initialize_procfs): Don't register procfs_inferior_created.
1959
1960 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1961
1962 * async-event.c (invoke_async_signal_handlers): Add debug
1963 print.
1964 (check_async_event_handlers): Likewise.
1965 * event-top.c (show_debug_event_loop): New function.
1966 (_initialize_event_top): Register "set debug event-loop"
1967 setting.
1968
1969 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1970
1971 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1972 * debug.h: Remove.
1973 * infrun.c: Include gdbsupport/common-debug.h.
1974 * linux-nat.c: Likewise.
1975
1976 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1977
1978 * async-event.h (create_async_signal_handler): Add name
1979 parameter.
1980 (create_async_event_handler): Likewise.
1981 * async-event.c (struct async_signal_handler) <name>: New field.
1982 (struct async_event_handler) <name>: New field.
1983 (create_async_signal_handler): Assign name.
1984 (create_async_event_handler): Assign name.
1985 * event-top.c (async_init_signals): Pass name when creating
1986 handler.
1987 * infrun.c (_initialize_infrun): Likewise.
1988 * record-btrace.c (record_btrace_push_target): Likewise.
1989 * record-full.c (record_full_open): Likewise.
1990 * remote-notif.c (remote_notif_state_allocate): Likewise.
1991 * remote.c (remote_target::open_1): Likewise.
1992 * tui/tui-win.c (tui_initialize_win): Likewise.
1993
1994 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1995
1996 * async-event.c (initialize_async_signal_handlers): Pass name to
1997 add_file_handler
1998 * event-top.c (ui_register_input_event_handler): Likewise.
1999 * linux-nat.c (linux_nat_target::async): Likewise.
2000 * run-on-main-thread.c (_initialize_run_on_main_thread):
2001 Likewise
2002 * ser-base.c (reschedule): Likewise.
2003 (ser_base_async): Likewise.
2004 * tui/tui-io.c: Likewise.
2005 * top.h (struct ui) <num>: New field.
2006 * top.c (highest_ui_num): New variable.
2007 (ui::ui): Initialize num.
2008
2009 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2010
2011 * observable.h <inferior_created>: Remove parameters. Update all
2012 listeners.
2013 * inferior.h (post_create_inferior): Remove target parameter.
2014 Update all callers.
2015
2016 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2017
2018 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2019 and DW_MACRO_undef_strx.
2020 (dwarf_decode_macros): Likewise
2021 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2022 which is the value of DW_AT_str_offsets_base.
2023 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2024 str_offsets_base.
2025
2026 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2027
2028 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2029
2030 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2031
2032 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2033 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2034
2035 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2036
2037 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2038
2039 2020-09-30 Tom de Vries <tdevries@suse.de>
2040
2041 PR symtab/26683
2042 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2043
2044 2020-09-30 Tom Tromey <tromey@adacore.com>
2045
2046 * dwarf2/read.c (handle_variant): Use constant_value.
2047
2048 2020-09-29 Tom Tromey <tom@tromey.com>
2049
2050 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2051 (read_file_scope, dwarf2_get_pc_bounds)
2052 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2053 (read_structure_type, handle_struct_member_die)
2054 (read_enumeration_type, read_array_type, read_set_type)
2055 (read_tag_pointer_type, read_tag_reference_type)
2056 (read_subroutine_type, read_base_type, read_subrange_type)
2057 (read_full_die_1, partial_die_info::read)
2058 (partial_die_info::read, by, new_symbol)
2059 (dwarf2_const_value_data, dwarf2_const_value_attr)
2060 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2061 (prepare_one_comp_unit): Update.
2062 * dwarf2/attribute.h (DW_UNSND): Remove.
2063
2064 2020-09-29 Tom Tromey <tom@tromey.com>
2065
2066 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2067 (read_subroutine_type, partial_die_info::read)
2068 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2069 (dwarf2_add_member_fn): Update.
2070 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2071 * dwarf2/attribute.c (attribute::as_boolean): New method.
2072
2073 2020-09-29 Tom Tromey <tom@tromey.com>
2074
2075 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2076 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2077 method.
2078 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2079
2080 2020-09-29 Tom Tromey <tom@tromey.com>
2081
2082 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2083 the attribute's form.
2084
2085 2020-09-29 Tom Tromey <tom@tromey.com>
2086
2087 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2088 (dwarf2_add_member_fn): Update.
2089 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2090 * dwarf2/attribute.c (attribute::defaulted): New method, from
2091 is_valid_DW_AT_defaulted.
2092
2093 2020-09-29 Tom Tromey <tom@tromey.com>
2094
2095 * dwarf2/read.c (dw2_get_file_names_reader)
2096 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2097 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2098 (dwarf2_symbol_mark_computed): Use as_unsigned.
2099 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2100 method.
2101 <form_is_section_offset>: Update comment.
2102
2103 2020-09-29 Tom Tromey <tom@tromey.com>
2104
2105 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2106 dwarf2_default_access_attribute. Look up attribute.
2107 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2108 Update.
2109
2110 2020-09-29 Tom Tromey <tom@tromey.com>
2111
2112 * dwarf2/read.c (skip_one_die): Update.
2113 (read_full_die_1): Change how reprocessing is done.
2114 (partial_die_info::read): Update.
2115 (read_attribute_value): Remove need_reprocess parameter.
2116 (read_attribute): Likewise.
2117 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2118 New method.
2119
2120 2020-09-29 Tom Tromey <tom@tromey.com>
2121
2122 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2123 (dwarf2_const_value_attr, dump_die_shallow)
2124 (dwarf2_fetch_constant_bytes): Update.
2125 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2126 comment.
2127 <set_address>: New method.
2128 (DW_ADDR): Remove.
2129 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2130 (attribute::as_string, attribute::as_address): Add assert.
2131
2132 2020-09-29 Tom Tromey <tom@tromey.com>
2133
2134 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2135 (read_attribute_reprocess, read_attribute_value): Update.
2136 (read_attribute): Clear requires_reprocessing.
2137 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2138 form_requires_reprocessing>: New methods.
2139 <string_init>: Clear requires_reprocessing.
2140 <set_unsigned_reprocess>: New method.
2141 <name>: Shrink by one bit.
2142 <requires_reprocessing>: New member.
2143 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2144 method.
2145
2146 2020-09-29 Tom Tromey <tom@tromey.com>
2147
2148 * dwarf2/read.c (read_attribute_value): Update.
2149 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2150 set_unsigned>: New methods.
2151 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2152
2153 2020-09-29 Tom Tromey <tom@tromey.com>
2154
2155 * dwarf2/read.c (get_alignment, read_array_order)
2156 (read_attribute_value, dwarf2_const_value_attr)
2157 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2158 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2159 New methods.
2160 (DW_SND): Remove.
2161
2162 2020-09-29 Tom Tromey <tom@tromey.com>
2163
2164 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2165 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2166 Update.
2167 * dwarf2/attribute.h (struct attribute) <as_signature,
2168 set_signature>: New methods.
2169 (DW_SIGNATURE): Remove.
2170
2171 2020-09-29 Tom Tromey <tom@tromey.com>
2172
2173 * dwarf2/read.c (read_call_site_scope)
2174 (handle_data_member_location, dwarf2_add_member_fn)
2175 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2176 (partial_die_info::read, read_attribute_value)
2177 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2178 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2179 (dwarf2_symbol_mark_computed): Update.
2180 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2181 methods.
2182 (DW_BLOCK): Remove.
2183 * dwarf2/attribute.c (attribute::form_is_block): Add
2184 DW_FORM_data16.
2185
2186 2020-09-29 Tom Tromey <tom@tromey.com>
2187
2188 * dwarf2/read.c (read_cutu_die_from_dwo)
2189 (read_attribute_reprocess, read_attribute_value, read_attribute)
2190 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2191 (dwarf2_fetch_constant_bytes): Update.
2192 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2193 <set_string_noncanonical, set_string_canonical>: New methods.
2194 <string_is_canonical>: Update comment.
2195 <canonical_string_p>: Add assert.
2196 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2197 * dwarf2/attribute.c (attribute::form_is_string): New method.
2198 (attribute::string): Use it.
2199
2200 2020-09-29 Tom Tromey <tom@tromey.com>
2201
2202 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2203 (dump_die_shallow): Use canonical_string_p.
2204 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2205 method.
2206
2207 2020-09-29 Tom Tromey <tom@tromey.com>
2208
2209 * dwarf2/read.c (partial_die_info::read)
2210 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2211 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2212 attribute::as_string.
2213
2214 2020-09-29 Tom Tromey <tom@tromey.com>
2215
2216 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2217 DW_ADDR.
2218 (attribute::string): Don't use DW_STRING.
2219 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2220 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2221
2222 2020-09-29 Tom Tromey <tom@tromey.com>
2223
2224 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2225 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2226 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2227 * dwarf2/attribute.h (struct attribute): Rename methods.
2228 * dwarf2/attribute.c (attribute::as_address): Rename from
2229 value_as_address.
2230 (attribute::as_string): Rename from value_as_string.
2231
2232 2020-09-29 Tom Tromey <tom@tromey.com>
2233
2234 * dwarf2/read.c (partial_die_info::read) <case
2235 DW_AT_linkage_name>: Use value_as_string.
2236 (dwarf2_string_attr): Use value_as_string.
2237 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2238 method.
2239 * dwarf2/attribute.c (attribute::value_as_string): New method.
2240
2241 2020-09-29 Pedro Alves <pedro@palves.net>
2242
2243 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2244 defined before using '#pragma GCC diagnostic' instead of checking
2245 __clang__.
2246
2247 2020-09-28 Tom Tromey <tom@tromey.com>
2248
2249 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2250 (handle_signal_stop): Update.
2251 * procfs.c (procfs_target::insert_watchpoint): Update.
2252 * target.h (target_have_steppable_watchpoint): Now a function.
2253
2254 2020-09-28 Tom Tromey <tom@tromey.com>
2255
2256 * infrun.c (set_schedlock_func): Update.
2257 * target.h (target_can_lock_scheduler): Now a function.
2258
2259 2020-09-28 Tom Tromey <tom@tromey.com>
2260
2261 * inferior.h (class inferior) <has_execution>: Update.
2262 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2263 * valops.c (find_function_in_inferior)
2264 (value_allocate_space_in_inferior): Update.
2265 * top.c (kill_or_detach): Update.
2266 * target.c (target_preopen, set_target_permissions): Update.
2267 (target_has_execution_current): Remove.
2268 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2269 Update.
2270 * solib.c (update_solib_list, reload_shared_libraries): Update.
2271 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2272 * solib-dsbt.c (enable_break): Update.
2273 * score-tdep.c (score7_fetch_inst): Update.
2274 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2275 Update.
2276 * remote.c (remote_target::start_remote)
2277 (remote_target::remote_check_symbols, remote_target::open_1)
2278 (remote_target::remote_detach_1, remote_target::verify_memory)
2279 (remote_target::xfer_partial, remote_target::read_description)
2280 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2281 * record-full.c (record_full_open_1): Update.
2282 * record-btrace.c (record_btrace_target_open): Update.
2283 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2284 (value_nsstring): Update.
2285 * linux-thread-db.c (add_thread_db_info)
2286 (thread_db_find_new_threads_silently, check_thread_db_callback)
2287 (try_thread_db_load_1, record_thread): Update.
2288 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2289 Update.
2290 * linux-fork.c (checkpoint_command): Update.
2291 * infrun.c (set_non_stop, set_observer_mode)
2292 (check_multi_target_resumption, for_each_just_stopped_thread)
2293 (maybe_remove_breakpoints, normal_stop)
2294 (class infcall_suspend_state): Update.
2295 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2296 (info_program_command, attach_command): Update.
2297 * infcall.c (call_function_by_hand_dummy): Update.
2298 * inf-loop.c (inferior_event_handler): Update.
2299 * gcore.c (gcore_command, derive_heap_segment): Update.
2300 * exec.c (exec_file_command): Update.
2301 * eval.c (evaluate_subexp): Update.
2302 * compile/compile.c (compile_to_object): Update.
2303 * cli/cli-dump.c (restore_command): Update.
2304 * breakpoint.c (update_watchpoint)
2305 (update_inserted_breakpoint_locations)
2306 (insert_breakpoint_locations, get_bpstat_thread): Update.
2307 * target.h (target_has_execution): Remove macro.
2308 (target_has_execution_current): Don't declare.
2309 (target_has_execution): Rename from target_has_execution_1. Add
2310 argument default.
2311
2312 2020-09-28 Tom Tromey <tom@tromey.com>
2313
2314 * mi/mi-main.c (exec_reverse_continue)
2315 (mi_cmd_list_target_features): Update.
2316 * infrun.c (set_exec_direction_func): Update.
2317 * target.c (default_execution_direction): Update.
2318 * reverse.c (exec_reverse_once): Update.
2319 * target.h (target_can_execute_reverse): Now a function.
2320
2321 2020-09-28 Tom Tromey <tom@tromey.com>
2322
2323 * tui/tui-regs.c (tui_get_register)
2324 (tui_data_window::show_registers): Update.
2325 * thread.c (scoped_restore_current_thread::restore)
2326 (scoped_restore_current_thread::scoped_restore_current_thread):
2327 Update.
2328 * regcache-dump.c (regcache_print): Update.
2329 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2330 Update.
2331 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2332 * mep-tdep.c (current_me_module, current_options): Update.
2333 * linux-thread-db.c (thread_db_load): Update.
2334 * infcmd.c (registers_info, info_vector_command)
2335 (info_float_command): Update.
2336 * ia64-tdep.c (ia64_frame_prev_register)
2337 (ia64_sigtramp_frame_prev_register): Update.
2338 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2339 * gcore.c (derive_stack_segment): Update.
2340 * frame.c (get_current_frame, has_stack_frames): Update.
2341 * findvar.c (language_defn::read_var_value): Update.
2342 * arm-tdep.c (arm_pc_is_thumb): Update.
2343 * target.c (target_has_registers): Rename from
2344 target_has_registers_1.
2345 * target.h (target_has_registers): Remove macro.
2346 (target_has_registers): Rename from target_has_registers_1.
2347
2348 2020-09-28 Tom Tromey <tom@tromey.com>
2349
2350 * windows-tdep.c (tlb_make_value): Update.
2351 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2352 * thread.c (scoped_restore_current_thread::restore)
2353 (scoped_restore_current_thread::scoped_restore_current_thread)
2354 (thread_command): Update.
2355 * stack.c (backtrace_command_1, frame_apply_level_command)
2356 (frame_apply_all_command, frame_apply_command): Update.
2357 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2358 Update.
2359 * gcore.c (derive_stack_segment): Update.
2360 * frame.c (get_current_frame, has_stack_frames): Update.
2361 * auxv.c (info_auxv_command): Update.
2362 * ada-tasks.c (ada_build_task_list): Update.
2363 * target.c (target_has_stack): Rename from target_has_stack_1.
2364 * target.h (target_has_stack): Remove macro.
2365 (target_has_stack): Rename from target_has_stack_1.
2366
2367 2020-09-28 Tom Tromey <tom@tromey.com>
2368
2369 * target.c (target_has_memory): Rename from target_has_memory_1.
2370 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2371 * thread.c (scoped_restore_current_thread::restore)
2372 (scoped_restore_current_thread::scoped_restore_current_thread):
2373 Update.
2374 * frame.c (get_current_frame, has_stack_frames): Update.
2375 * target.h (target_has_memory): Remove macro.
2376 (target_has_memory): Rename from target_has_memory_1.
2377
2378 2020-09-28 Tom Tromey <tom@tromey.com>
2379
2380 * target.c (target_has_all_memory_1): Remove.
2381 * target.h (target_has_all_memory): Remove define.
2382 (target_has_all_memory_1): Don't declare.
2383
2384 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2385
2386 * ser-base.c: Adjust comments formatting.
2387
2388 2020-09-27 Tom Tromey <tom@tromey.com>
2389
2390 PR tui/25342:
2391 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2392
2393 2020-09-27 Tom Tromey <tom@tromey.com>
2394
2395 PR tui/25342:
2396 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2397
2398 2020-09-27 Tom Tromey <tom@tromey.com>
2399
2400 * unittests/tui-selftests.c: Update.
2401 * tui/tui-winsource.h (struct tui_source_window_base)
2402 <extra_margin, show_line_number, refresh_pad>: New methods.
2403 <m_max_length, m_pad>: New members.
2404 (tui_copy_source_line): Update.
2405 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2406 first_col, line_width, ndigits parameters. Add length.
2407 (tui_source_window_base::show_source_line): Write to pad. Line
2408 number now 0-based.
2409 (tui_source_window_base::refresh_pad): New method.
2410 (tui_source_window_base::show_source_content): Write to pad. Call
2411 refresh_pad.
2412 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2413 not refill.
2414 (tui_source_window_base::update_exec_info): Call
2415 show_line_number.
2416 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2417 method.
2418 <m_digits>: New member.
2419 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2420 and m_max_length.
2421 (tui_source_window::show_line_number): New method.
2422 * tui/tui-io.h (tui_puts): Fix comment.
2423 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2424 m_max_length.
2425
2426 2020-09-27 Tom Tromey <tom@tromey.com>
2427
2428 * tui/tui-winsource.c
2429 (tui_source_window_base::set_is_exec_point_at): Don't call
2430 show_source_line.
2431
2432 2020-09-27 Tom Tromey <tom@tromey.com>
2433
2434 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2435 method.
2436 <erase>: Update.
2437 <cursor_x, cursor_y>: Remove.
2438 <m_inner_window>: New member.
2439 (tui_py_window::rerender): Create inner window.
2440 (tui_py_window::output): Write to inner window.
2441
2442 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2443
2444 PR python/26586
2445 * cli/cli-script.c (execute_control_commands): don't set
2446 instream to nullptr here as this breaks the from_tty argument
2447 to gdb.execute in Python.
2448 (execute_user_command): set instream to nullptr here instead.
2449
2450 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2451
2452 * infrun.h (infrun_debug_printf): Fix formatting.
2453 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2454
2455 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2456
2457 * compile/compile-object-load.h (struct munmap_list): Add
2458 explicitly-defined move constructor.
2459
2460 2020-09-24 Tom Tromey <tromey@adacore.com>
2461
2462 PR tui/26638:
2463 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2464 method.
2465 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2466 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2467 (tui_prev_win): Rewrite.
2468
2469 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2470
2471 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2472 in WOW64 processes as SIGINT.
2473 * nat/windows-nat.h: Make wow64_process a shared variable.
2474 * windows-nat.c: Remove static wow64_process variable.
2475
2476 2020-09-23 Tom Tromey <tom@tromey.com>
2477
2478 PR symtab/25470:
2479 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2480 offset and bit size.
2481 * printcmd.c (print_scalar_formatted): Handle zero-length
2482 integer.
2483 (print_scalar_formatted): Use bit_size_differs_p.
2484 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2485 constant.
2486 (union type_specific): <int_stuff>: New member.
2487 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2488 methods.
2489 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2490 TYPE_SPECIFIC_FIELD.
2491 (recursive_dump_type, copy_type_recursive): Update.
2492 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2493 DW_AT_data_bit_offset.
2494
2495 2020-09-23 Tom Tromey <tom@tromey.com>
2496
2497 * utils.h (class gdb_argv): Add move operators.
2498 <append>: New methods.
2499 * compile/compile.c (build_argc_argv): Remove.
2500 (compile_args_argc): Remove.
2501 (compile_args_argv): Change type.
2502 (set_compile_args): Simplify.
2503 (append_args): Remove.
2504 (filter_args): Remove argcp parameter.
2505 (get_args): Return gdb_argv. Simplify.
2506 (compile_to_object): Update.
2507
2508 2020-09-23 Tom Tromey <tom@tromey.com>
2509
2510 * compile/compile-object-run.c (do_module_cleanup)
2511 <~do_module_cleanup> :Remove.
2512 (do_module_cleanup): Update.
2513 * compile/compile-object-load.h (struct munmap_list): Add move
2514 assignment operator.
2515 <source_file>: Now a std::string.
2516 <munmap_list>: Rename. No longer a pointer.
2517 * compile/compile-object-load.c (struct setup_sections_data): Add
2518 constructor.
2519 <setup_one_section>: Declare.
2520 <munmap_list>: Move earlier.
2521 <m_bfd>: New member.
2522 <m_last_size, m_last_section_first, m_last_prot,
2523 m_last_max_alignment>: Rename, add initializers where needed.
2524 (setup_sections_data::setup_one_section): Rename from
2525 setup_sections. Update.
2526 (compile_object_load): Update. Don't use bfd_map_over_sections.
2527
2528 2020-09-23 Tom Tromey <tom@tromey.com>
2529
2530 * compile/compile-object-run.c (struct do_module_cleanup): Add
2531 parameters to constructor. Update destructor.
2532 <source_file, scope, scope_data, out_value_type, out_value_addr,
2533 munmap_list_head, objfile_name_string>: Remove.
2534 <module>: New member.
2535 (do_module_cleanup): Update.
2536 (compile_object_run): Update.
2537
2538 2020-09-23 Tom Tromey <tom@tromey.com>
2539
2540 * compile/compile.c (eval_compile_command): Update.
2541 * compile/compile-object-run.h (compile_object_run): Take a
2542 compile_module_up.
2543 * compile/compile-object-run.c (compile_object_run): Take a
2544 compile_module_up.
2545 * compile/compile-object-load.h (struct compile_module): Add
2546 constructor, destructor.
2547 (compile_module_up): New typedef.
2548 (compile_object_load): Return compile_object_up.
2549 * compile/compile-object-load.c (compile_object_load): Return
2550 compile_module_up.
2551
2552 2020-09-23 Tom Tromey <tom@tromey.com>
2553
2554 * compile/compile-object-run.c (struct do_module_cleanup): Add
2555 constructor, destructor.
2556 <objfile_name_string>: Don't use struct hack.
2557 (do_module_cleanup): Use delete.
2558 (compile_object_run): Use new.
2559
2560 2020-09-23 Tom Tromey <tom@tromey.com>
2561
2562 * compile/compile-cplus-types.c
2563 (compile_cplus_convert_struct_or_union): Use std::vector.
2564 (compile_cplus_convert_func): Likewise.
2565 * compile/compile-c-types.c (convert_func): Use std::vector.
2566
2567 2020-09-21 Tom Tromey <tromey@adacore.com>
2568
2569 * sparc-tdep.c (sparc32_skip_prologue): Use
2570 skip_prologue_using_sal.
2571
2572 2020-09-19 Tom Tromey <tom@tromey.com>
2573
2574 * symfile.c (add_section_size_callback): Remove.
2575 (load_one_section): Rename from load_section_callback. Change
2576 parameters.
2577 (generic_load): Use foreach.
2578
2579 2020-09-19 Tom Tromey <tom@tromey.com>
2580
2581 * exec.c (add_to_section_table): Remove.
2582 (build_section_table): Use foreach.
2583
2584 2020-09-19 Tom Tromey <tom@tromey.com>
2585
2586 * elfread.c (elf_locate_sections): Change parameters.
2587 (elf_symfile_read): Use foreach.
2588
2589 2020-09-19 Tom Tromey <tom@tromey.com>
2590
2591 * cli/cli-dump.c (struct callback_data): Remove.
2592 (restore_one_section): Rename from restore_section_callback.
2593 Change parameters.
2594 (restore_binary_file): Change parameters.
2595 (restore_command): Use foreach.
2596
2597 2020-09-19 Tom Tromey <tom@tromey.com>
2598
2599 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2600 (gcore_copy_callback): Likewise.
2601 (gcore_memory_sections): Use foreach.
2602
2603 2020-09-19 Tom Tromey <tom@tromey.com>
2604
2605 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2606 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2607 parameters.
2608 (generic_elf_osabi_sniffer): Use foreach.
2609 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2610 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2611
2612 2020-09-19 Tom Tromey <tom@tromey.com>
2613
2614 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2615 (dwarf2_get_dwz_file): Use foreach.
2616 (dwarf2_locate_dwo_sections): Change parameters.
2617 (open_and_init_dwo_file): Use foreach.
2618 (dwarf2_locate_common_dwp_sections): Change parameters.
2619 (open_and_init_dwp_file): Use foreach.
2620
2621 2020-09-19 Tom Tromey <tom@tromey.com>
2622
2623 * symfile.h: (find_lowest_section): Don't declare.
2624 * symfile.c (find_lowest_section): Now static. Change
2625 parameters.
2626 (struct place_section_arg): Remove.
2627 (place_section): Change parameters.
2628 (addr_info_make_relative): Use foreach.
2629 (symfile_dummy_outputs): Remove.
2630 (default_symfile_relocate): Use foreach.
2631
2632 2020-09-19 Tom Tromey <tom@tromey.com>
2633
2634 * objfiles.c (add_to_objfile_sections): Rename from
2635 add_to_objfile_sections_full.
2636 (add_to_objfile_sections): Remove.
2637 (build_objfile_section_table): Use foreach.
2638
2639 2020-09-19 Tom Tromey <tom@tromey.com>
2640
2641 * stap-probe.c (get_stap_base_address_1): Remove.
2642 (get_stap_base_address): Use foreach.
2643
2644 2020-09-19 Tom Tromey <tom@tromey.com>
2645
2646 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2647 parameters.
2648 (gdb_bfd_close_or_warn): Use foreach.
2649
2650 2020-09-19 Tom Tromey <tom@tromey.com>
2651
2652 * corelow.c (add_to_thread_list): Change parameters.
2653 (core_target_open): Use foreach.
2654
2655 2020-09-19 Tom Tromey <tom@tromey.com>
2656
2657 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2658 existing function.
2659
2660 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2661
2662 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2663 for arrays.
2664
2665 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2666
2667 * eval.c: Remove 'f-lang.h' include.
2668 (value_f90_subarray): Moved to f-lang.c.
2669 (eval_call): Renamed to...
2670 (evaluate_subexp_do_call): ...this, is no longer static, header
2671 comment moved into header file.
2672 (evaluate_funcall): Update call to eval_call.
2673 (skip_undetermined_arglist): Moved to f-lang.c.
2674 (fortran_value_subarray): Likewise.
2675 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2676 moved to evaluate_subexp_f.
2677 (calc_f77_array_dims): Moved to f-lang.c
2678 * expprint.c (print_subexp_funcall): New function.
2679 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2680 moved to print_subexp_f, OP_FUNCALL uses new function.
2681 (dump_subexp_body_funcall): New function.
2682 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2683 moved to dump_subexp_f, OP_FUNCALL uses new function.
2684 * expression.h (evaluate_subexp_do_call): Declare.
2685 * f-lang.c (value_f90_subarray): Moved from eval.c.
2686 (skip_undetermined_arglist): Likewise.
2687 (calc_f77_array_dims): Likewise.
2688 (fortran_value_subarray): Likewise.
2689 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2690 (operator_length_f): Likewise.
2691 (print_subexp_f): Likewise.
2692 (dump_subexp_body_f): Likewise.
2693 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2694 declaration of this operation to here.
2695 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2696 support moved to operator_length_f.
2697 * parser-defs.h (dump_subexp_body_funcall): Declare.
2698 (print_subexp_funcall): Declare.
2699 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2700 fortran-operator.def.
2701
2702 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2703
2704 * eval.c (fortran_value_subarray): New function, content is taken
2705 from...
2706 (evaluate_subexp_standard): ...here, in two places. Now arrays
2707 and strings both call the new function.
2708 (calc_f77_array_dims): Add header comment, handle strings.
2709
2710 2020-09-18 Victor Collod <vcollod@nvidia.com>
2711
2712 PR gdb/26635
2713 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2714 (i386_analyze_prologue): Call i386_skip_endbr.
2715
2716 2020-09-18 Tom Tromey <tromey@adacore.com>
2717
2718 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2719 (windows_nat_target::wait): Update.
2720 * target/wait.h (enum target_wait_flag): New. Use
2721 DEF_ENUM_FLAGS_TYPE.
2722 * target/target.h (target_wait): Change type of options.
2723 * target.h (target_options_to_string, default_target_wait):
2724 Update.
2725 (struct target_ops) <wait>: Change type of options.
2726 * target.c (target_wait, default_target_wait, do_option): Change
2727 type of "options".
2728 (target_options_to_string): Likewise.
2729 * target-delegates.c: Rebuild.
2730 * target-debug.h (target_debug_print_target_wait_flags): Rename
2731 from target_debug_print_options.
2732 * sol-thread.c (class sol_thread_target) <wait>: Update.
2733 (sol_thread_target::wait): Update.
2734 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2735 (rs6000_nat_target::wait): Update.
2736 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2737 Update.
2738 (remote_target::wait_ns, remote_target::wait_as): Change type of
2739 "options".
2740 (remote_target::wait): Update.
2741 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2742 (gdbsim_target::wait): Update.
2743 * record-full.c (class record_full_base_target) <wait>: Update.
2744 (record_full_wait_1): Change type of "options".
2745 (record_full_base_target::wait): Update.
2746 * record-btrace.c (class record_btrace_target) <wait>: Update.
2747 (record_btrace_target::wait): Update.
2748 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2749 Update.
2750 (ravenscar_thread_target::wait): Update.
2751 * procfs.c (class procfs_target) <wait>: Update.
2752 (procfs_target::wait): Update.
2753 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2754 * obsd-nat.c (obsd_nat_target::wait): Update.
2755 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2756 (nto_procfs_target::wait): Update.
2757 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2758 * nbsd-nat.c (nbsd_wait): Change type of "options".
2759 (nbsd_nat_target::wait): Update.
2760 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2761 (thread_db_target::wait): Update.
2762 * linux-nat.h (class linux_nat_target) <wait>: Update.
2763 * linux-nat.c (linux_nat_target::wait): Update.
2764 (linux_nat_wait_1): Update.
2765 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2766 "options".
2767 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2768 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2769 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2770 (go32_nat_target::wait): Update.
2771 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2772 * gnu-nat.c (gnu_nat_target::wait): Update.
2773 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2774 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2775 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2776 * darwin-nat.c (darwin_nat_target::wait): Update.
2777 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2778 (bsd_uthread_target::wait): Update.
2779 * aix-thread.c (class aix_thread_target) <wait>: Update.
2780 (aix_thread_target::wait): Update.
2781
2782 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2783
2784 * compile/compile-object-run.c (create_copied_type_recursive): New
2785 function.
2786 (compile_object_run): Use new function.
2787
2788 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2789
2790 * NEWS: Mention x86_64 Cygwin core file support.
2791
2792 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2793
2794 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2795 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2796
2797 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2798
2799 * windows-tdep.h: Add prototypes.
2800 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2801 (i386_windows_core_pid_to_str): Move and rename ...
2802 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2803 (windows_core_pid_to_str): ... and here.
2804 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2805
2806 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2807 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2808 (amd64_windows_init_abi_common): ... and register.
2809
2810 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2811
2812 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2813 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2814
2815 2020-09-18 Pedro Alves <pedro@palves.net>
2816
2817 PR gdb/26631
2818 * thread.c (thread_find_command): Switch inferior before calling
2819 target methods.
2820
2821 2020-09-17 Tom Tromey <tromey@adacore.com>
2822
2823 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2824 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2825 (tdesc_arch_data_up): New typedef.
2826 (tdesc_use_registers, tdesc_data_alloc): Update.
2827 (tdesc_data_cleanup): Don't declare.
2828 * target-descriptions.c (tdesc_data_alloc): Return a
2829 tdesc_arch_data_up.
2830 (tdesc_arch_data_deleter::operator()): Rename from
2831 tdesc_data_cleanup. Change argument type.
2832 (tdesc_use_registers): Change early_data to an rvalue reference.
2833 (tdesc_use_registers): Don't use delete.
2834 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2835 * s390-tdep.c (s390_gdbarch_init): Update.
2836 * rx-tdep.c (rx_gdbarch_init): Update.
2837 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2838 * riscv-tdep.c (riscv_gdbarch_init): Update.
2839 * or1k-tdep.c (or1k_gdbarch_init): Update.
2840 * nios2-tdep.c (nios2_gdbarch_init): Update.
2841 * nds32-tdep.c (nds32_gdbarch_init): Update.
2842 * mips-tdep.c (mips_gdbarch_init): Update.
2843 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2844 * m68k-tdep.c (m68k_gdbarch_init): Update.
2845 * i386-tdep.c (i386_gdbarch_init): Update.
2846 * arm-tdep.c (arm_gdbarch_init): Update.
2847 * arc-tdep.c (arc_tdesc_init): Update.
2848 (arc_gdbarch_init): Update.
2849 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2850
2851 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2852
2853 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2854 for WOW64 processes.
2855
2856 2020-09-17 Tom Tromey <tom@tromey.com>
2857
2858 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2859
2860 2020-09-17 Tom Tromey <tom@tromey.com>
2861
2862 * value.c (preserve_values): Update.
2863 * python/py-type.c (save_objfile_types): Update.
2864 * guile/scm-type.c (save_objfile_types): Update.
2865 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2866 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2867 * compile/compile-object-run.c (compile_object_run): Update.
2868
2869 2020-09-17 Tom Tromey <tom@tromey.com>
2870
2871 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2872 Remove.
2873 <m_table>: Now htab_up.
2874 * typeprint.c (typedef_hash_table::recursively_update)
2875 (typedef_hash_table::add_template_parameters)
2876 (typedef_hash_table::typedef_hash_table): Update.
2877 (typedef_hash_table::~typedef_hash_table): Remove.
2878 (typedef_hash_table::typedef_hash_table)
2879 (typedef_hash_table::find_global_typedef)
2880 (typedef_hash_table::find_typedef): Update.
2881
2882 2020-09-17 Tom Tromey <tom@tromey.com>
2883
2884 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2885
2886 2020-09-17 Tom Tromey <tom@tromey.com>
2887
2888 * linespec.c (class decode_compound_collector)
2889 <~decode_compound_collector>: Remove.
2890 <m_unique_syms>: Now htab_up.
2891 (decode_compound_collector::operator ()): Update.
2892 (class symtab_collector) <~symtab_collector>: Remove.
2893 <m_symtab_table>: Now htab_up.
2894 (symtab_collector::operator ()): Update.
2895
2896 2020-09-17 Tom Tromey <tom@tromey.com>
2897
2898 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2899 (filename_seen_cache::clear): Update.
2900 (~filename_seen_cache): Remove.
2901 (filename_seen_cache::seen): Update.
2902 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2903 htab_up.
2904 <~filename_seen_cache>: Remove.
2905 <traverse>: Update.
2906
2907 2020-09-17 Tom Tromey <tom@tromey.com>
2908
2909 * completer.c (completion_tracker::discard_completions)
2910 (completion_tracker::~completion_tracker)
2911 (completion_tracker::maybe_add_completion)
2912 (completion_tracker::remove_completion)
2913 (completion_tracker::recompute_lowest_common_denominator)
2914 (completion_tracker::build_completion_result): Update.
2915 * completer.h (class completion_tracker) <have_completions>:
2916 Update.
2917 <m_entries_hash>: Now htab_up.
2918
2919 2020-09-17 Tom Tromey <tom@tromey.com>
2920
2921 * breakpoint.c (ambiguous_names_p): Use htab_up.
2922
2923 2020-09-17 Tom Tromey <tom@tromey.com>
2924
2925 * auto-load.c (struct auto_load_pspace_info)
2926 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2927 <loaded_script_files, loaded_script_texts>: Change type to
2928 htab_up.
2929 (~auto_load_pspace_info) Remove.
2930 (init_loaded_scripts_info, maybe_add_script_file)
2931 (maybe_add_script_text, auto_load_info_scripts): Update.
2932
2933 2020-09-17 Tom Tromey <tromey@adacore.com>
2934
2935 * c-exp.y (name_obstack): Now static.
2936
2937 2020-09-17 Chungyi Chi <demonic@csie.io>
2938
2939 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2940
2941 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2942
2943 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2944 (add_solib_catchpoint): Likewise.
2945 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2946 to bool.
2947 (add_solib_catchpoint): Change int parameter/variable to bool.
2948 (catch_load_or_unload): Likewise.
2949 (init_catchpoint): Likewise.
2950 (create_fork_vfork_event_catchpoint): Likewise.
2951 (catch_fork_command_1): Likewise.
2952 (catch_exec_command_1): Likewise.
2953
2954 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2957 Change instance_flags to m_instance_flags.
2958
2959 2020-09-16 Tom Tromey <tromey@adacore.com>
2960
2961 PR gdb/26598:
2962 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2963
2964 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2965
2966 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2967 PL_FLAG_EXEC.
2968 (fbsd_nat_target::insert_exec_catchpoint)
2969 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2970 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2971 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2972
2973 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2974
2975 * configure.ac: Remove check for kinfo_getvmmap().
2976 * configure, config.in: Regenerate.
2977 * fbsd-nat.c (fbsd_read_mapping): Remove
2978 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2979 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2980 kinfo_get_vmmap() are always present.
2981
2982 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2983
2984 * fbsd-nat.c: Always include support for
2985 TARGET_OBJECT_SIGNAL_INFO.
2986
2987 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2988
2989 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2990 sysctl and remove procfs fallback.
2991
2992 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2993
2994 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2995 * fbsd-nat.h: Likewise.
2996
2997 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2998
2999 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3000 argument.
3001
3002 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3003
3004 * ada-lang.c (ada_language_data): Delete.
3005 (ada_language): Remove references to ada_language_data.
3006 * c-lang.c (c_language_data): Delete.
3007 (c_language): Remove references to c_language_data.
3008 (cplus_language_data): Delete.
3009 (cplus_language): Remove references to cplus_language_data.
3010 (asm_language_data): Delete.
3011 (asm_language): Remove references to asm_language_data.
3012 (minimal_language_data): Delete.
3013 (minimal_language): Remove references to minimal_language_data.
3014 * d-lang.c (d_language_data): Delete.
3015 (d_language): Remove references to d_language_data.
3016 * f-lang.c (f_language_data): Delete.
3017 (f_language): Remove references to f_language_data.
3018 * go-lang.c (go_language_data): Delete.
3019 (go_language): Remove references to go_language_data.
3020 * language.c (unknown_language_data): Delete.
3021 (unknown_language): Remove references to unknown_language_data.
3022 (auto_language_data): Delete.
3023 (auto_language): Remove references to auto_language_data.
3024 * language.h (language_data): Delete struct.
3025 (language_defn): No longer inherit from language_data.
3026 * m2-lang.c (m2_language_data): Delete.
3027 (m2_language): Remove references to m2_language_data.
3028 * objc-lang.c (objc_language_data): Delete.
3029 (objc_language): Remove references to objc_language_data.
3030 * opencl-lang.c (opencl_language_data): Delete.
3031 (opencl_language): Remove references to opencl_language_data.
3032 * p-lang.c (pascal_language_data): Delete.
3033 (pascal_language): Remove references to pascal_language_data.
3034 * rust-lang.c (rust_language_data): Delete.
3035 (rust_language): Remove references to rust_language_data.
3036
3037 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3038
3039 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3040 initializer.
3041 (ada_language::opcode_print_table): New member function.
3042 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3043 (c_language::opcode_print_table): New member function.
3044 (cplus_language_data): Remove la_op_print_tab initializer.
3045 (cplus_language::opcode_print_table): New member function.
3046 (asm_language_data): Remove la_op_print_tab initializer.
3047 (asm_language::opcode_print_table): New member function.
3048 (minimal_language_data): Remove la_op_print_tab initializer.
3049 (minimal_language::opcode_print_table): New member function.
3050 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3051 (d_language::opcode_print_table): New member function.
3052 * expprint.c (print_subexp_standard): Update call to
3053 opcode_print_table.
3054 (op_string): Likewise.
3055 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3056 (f_language::opcode_print_table): New member function.
3057 * go-lang.c (go_language_data): Remove la_op_print_tab
3058 initializer.
3059 (go_language::opcode_print_table): New member function.
3060 * language.c (unknown_language_data): Remove la_op_print_tab
3061 initializer.
3062 (unknown_language::opcode_print_table): New member function.
3063 (auto_language_data): Remove la_op_print_tab initializer.
3064 (auto_language::opcode_print_table): New member function.
3065 * language.h (language_data): Remove la_op_print_tab field.
3066 (language_defn::opcode_print_table): Declare new member function.
3067 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3068 initializer.
3069 (m2_language::opcode_print_table): New member function.
3070 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3071 initializer.
3072 (objc_language::opcode_print_table): New member function.
3073 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3074 initializer.
3075 (opencl_language::opcode_print_table): New member function.
3076 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3077 initializer.
3078 (pascal_language::opcode_print_table): New member function.
3079 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3080 initializer.
3081 (rust_language::opcode_print_table): New member function.
3082
3083 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3084
3085 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3086 (ada_language::expression_ops): New member function.
3087 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3088 (c_language::expression_ops): New member function.
3089 (cplus_language_data): Remove la_exp_desc initializer.
3090 (cplus_language::expression_ops): New member function.
3091 (asm_language_data): Remove la_exp_desc initializer.
3092 (asm_language::expression_ops): New member function.
3093 (minimal_language_data): Remove la_exp_desc initializer.
3094 (minimal_language::expression_ops): New member function.
3095 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3096 (d_language::expression_ops): New member function.
3097 * eval.c (evaluate_subexp): Update call to expression_ops.
3098 * expprint.c (print_subexp): Likewise.
3099 (op_name): Likewise.
3100 (dump_subexp_body): Likewise.
3101 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3102 (f_language::expression_ops): New member function.
3103 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3104 (go_language::expression_ops): New member function.
3105 * language.c (language_defn::expression_ops): New function.
3106 (unknown_language_data): Remove la_exp_desc initializer.
3107 (auto_language_data): Likewise.
3108 * language.h (language_data): Remove la_exp_desc field.
3109 (language_defn::expression_ops): Declare new member function.
3110 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3111 (m2_language::expression_ops): New member function.
3112 * objc-lang.c (objc_language_data): Remove la_exp_desc
3113 initializer.
3114 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3115 initializer.
3116 (opencl_language::expression_ops): New member function.
3117 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3118 * parse.c (operator_length): Update call to expression_ops.
3119 (exp_iterate): Likewise.
3120 * rust-lang.c (rust_language_data): Remove la_exp_desc
3121 initializer.
3122 (ruse_language::expression_ops): New member function.
3123
3124 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3125
3126 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3127 initializer.
3128 (ada_language::varobj_ops): New member function.
3129 * c-lang.c (c_language_data): Remove la_varobj_ops
3130 initializer.
3131 (cplus_language_data): Likewise.
3132 (cplus_language::varobj_ops): New member function.
3133 (asm_language_data): Remove la_varobj_ops initializer.
3134 (minimal_language_data): Likewise.
3135 * d-lang.c (d_language_data): Likewise.
3136 * f-lang.c (f_language_data): Likewise.
3137 * go-lang.c (go_language_data): Likewise.
3138 * language.c (language_defn::varobj_ops): New function.
3139 (unknown_language_data): Remove la_varobj_ops
3140 initializer.
3141 (auto_language_data): Likewise.
3142 * language.h (language_data): Remove la_varobj_ops field.
3143 (language_defn::varobj_ops): Declare new member function.
3144 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3145 * objc-lang.c (objc_language_data): Likewise.
3146 * opencl-lang.c (opencl_language_data): Likewise.
3147 * p-lang.c (pascal_language_data): Likewise.
3148 * rust-lang.c (rust_language_data): Likewise.
3149 * varobj.c (varobj_create): Update call to varobj_ops.
3150 * varobj.h (default_varobj_ops): Delete define.
3151
3152 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3153
3154 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3155 initializer.
3156 * c-lang.c (c_language_data): Likewise.
3157 (c_language::macro_expansion): New member function.
3158 (cplus_language_data): Likewise.
3159 (cplus_language::macro_expansion): New member function.
3160 (asm_language_data): Likewise.
3161 (asm_language::macro_expansion): New member function.
3162 (minimal_language_data): Likewise.
3163 (minimal_language::macro_expansion): New member function.
3164 * d-lang.c (d_language_data): Remove la_macro_expansion
3165 initializer.
3166 * f-lang.c (f_language_data): Likewise.
3167 * go-lang.c (go_language_data): Likewise.
3168 * language.c (unknown_language_data): Likewise.
3169 (auto_language_data): Likewise.
3170 * language.h (language_data): Remove la_macro_expansion field.
3171 (language_defn::macro_expansion): New member function.
3172 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3173 initializer.
3174 * objc-lang.c (objc_language_data): Likewise.
3175 (objc_language::macro_expansion): New member function.
3176 * opencl-lang.c (opencl_language_data): Likewise.
3177 (opencl_language::macro_expansion): New member function.
3178 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3179 initializer.
3180 * rust-lang.c (rust_language_data): Likewise.
3181 * symtab.c (default_collect_symbol_completion_matches_break_on):
3182 Update call to macro_expansion.
3183
3184 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 * ada-lang.c (ada_language_data): Remove la_array_ordering
3187 initializer.
3188 * c-lang.c (c_language_data): Likewise.
3189 (cplus_language_data): Likewise.
3190 (asm_language_data): Likewise.
3191 (minimal_language_data): Likewise.
3192 * d-lang.c (d_language_data): Likewise.
3193 * dwarf2/read.c (read_array_order): Update for call to
3194 array_ordering.
3195 * f-lang.c (f_language_data): Remove la_array_ordering
3196 initializer.
3197 (f_language::array_ordering): New member function.
3198 * go-lang.c (go_language_data): Remove la_array_ordering
3199 initializer.
3200 * language.c (unknown_language_data): Likewise.
3201 (auto_language_data): Likewise.
3202 * language.h (language_data): Delete la_array_ordering field.
3203 (language_defn::array_ordering): New member function.
3204 * m2-lang.c (m2_language_data): Remove la_array_ordering
3205 initializer.
3206 * objc-lang.c (objc_language_data): Likewise.
3207 * opencl-lang.c (opencl_language_data): Likewise.
3208 * p-lang.c (pascal_language_data): Likewise.
3209 * rust-lang.c (rust_language_data): Likewise.
3210
3211 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3212
3213 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3214 initializer.
3215 * c-lang.c (c_language_data): Likewise.
3216 (cplus_language_data): Likewise.
3217 (asm_language_data): Likewise.
3218 (minimal_language_data): Likewise.
3219 * d-lang.c (d_language_data): Likewise.
3220 * f-lang.c (f_language_data): Likewise.
3221 (f_language::case_sensitivity): New member function.
3222 * go-lang.c (go_language_data): Remove la_case_sensitivity
3223 initializer.
3224 * language.c (enum case_mode): Moved here from language.h.
3225 (case_mode): Make static.
3226 (show_case_command): Update for case_sensitivity being a method.
3227 (set_case_command): Likewise.
3228 (set_range_case): Likewise.
3229 (unknown_language_data): Remove la_case_sensitivity initializer.
3230 (auto_language_data): Likewise.
3231 * language.h (case_mode): Delete, move enum declaration to
3232 language.c.
3233 (language_data): Delete la_case_sensitivity field.
3234 (language_defn::case_sensitivity): New member function.
3235 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
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_range_check
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::range_checking_on_by_default): New member function.
3253 * go-lang.c (go_language_data): Remove la_range_check initializer.
3254 * language.c (enum range_mode): Moved here from language.h.
3255 (range_mode): Made static.
3256 (show_range_command): Update to use
3257 range_checking_on_by_default.
3258 (set_range_command): Likewise.
3259 (set_range_case): Likewise.
3260 (unknown_language_data): Remove la_range_check initializer.
3261 (auto_language_data): Likewise.
3262 * language.h (range_mode): Delete. Enum definition moved to
3263 language.c.
3264 (language_data): Remove la_range_check field.
3265 (language_defn::range_checking_on_by_default): New member
3266 function.
3267 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3268 (m2_language::range_checking_on_by_default): New member function.
3269 * objc-lang.c (objc_language_data): Remove la_range_check
3270 initializer.
3271 * opencl-lang.c (opencl_language_data): Likewise.
3272 * p-lang.c (pascal_language_data): Likewise.
3273 (pascal_language::range_checking_on_by_default): New member
3274 function.
3275 * rust-lang.c (rust_language_data): Remove la_range_check
3276 initializer.
3277 (rust_language::range_checking_on_by_default): New member
3278 function.
3279
3280 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * dwarf2/read.c (dwarf2_physname): Remove special case for
3283 language_go.
3284 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3285 member function.
3286
3287 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3288
3289 * ada-lang.c (ada_language_data): Remove
3290 la_store_sym_names_in_linkage_form_p initializer.
3291 (ada_language::store_sym_names_in_linkage_form_p): New member
3292 function.
3293 * c-lang.c (c_language_data): Remove
3294 la_store_sym_names_in_linkage_form_p initializer.
3295 (c_language::store_sym_names_in_linkage_form_p): New member
3296 function.
3297 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3298 initializer.
3299 (asm_language_data): Likewise.
3300 (asm_language::store_sym_names_in_linkage_form_p): New member
3301 function.
3302 (minimal_language_data): Remove
3303 la_store_sym_names_in_linkage_form_p initializer.
3304 (minimal_language::store_sym_names_in_linkage_form_p): New member
3305 function.
3306 * d-lang.c (d_language_data): Remove
3307 la_store_sym_names_in_linkage_form_p initializer.
3308 * dwarf2/read.c (dwarf2_physname): Update call to
3309 store_sym_names_in_linkage_form_p.
3310 * f-lang.c (f_language_data): Remove
3311 la_store_sym_names_in_linkage_form_p initializer.
3312 * go-lang.c (go_language_data): Remove
3313 la_store_sym_names_in_linkage_form_p initializer.
3314 * language.c (unknown_language_data): Remove
3315 la_store_sym_names_in_linkage_form_p initializer.
3316 (unknown_language::store_sym_names_in_linkage_form_p): New member
3317 function.
3318 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3319 initializer.
3320 (auto_language::store_sym_names_in_linkage_form_p): New member
3321 function.
3322 * language.h (language_data): Remove
3323 la_store_sym_names_in_linkage_form_p member variable.
3324 (language_defn::store_sym_names_in_linkage_form_p): New member
3325 function.
3326 * m2-lang.c (m2_language_data): Remove
3327 la_store_sym_names_in_linkage_form_p initializer.
3328 * objc-lang.c (objc_language_data): Likewise.
3329 * opencl-lang.c (opencl_language_data): Likewise.
3330 * p-lang.c (pascal_language_data): Likewise.
3331 * rust-lang.c (rust_language_data): Likewise.
3332
3333 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3334
3335 * ada-lang.c (ada_language_data): Remove string_lower_bound
3336 initializer.
3337 * c-lang.c (c_language_data): Likewise.
3338 (cplus_language_data): Likewise.
3339 (asm_language_data): Likewise.
3340 (minimal_language_data): Likewise.
3341 * d-lang.c (d_language_data): Likewise.
3342 * f-lang.c (f_language_data): Likewise.
3343 * go-lang.c (go_language_data): Likewise.
3344 * language.c (unknown_language_data): Likewise.
3345 (auto_language_data): Likewise.
3346 * language.h (language_data): Remove string_lower_bound field.
3347 (language_defn::string_lower_bound): New member function.
3348 * m2-lang.c (m2_language_data): Remove string_lower_bound
3349 initializer.
3350 (m2_language::string_lower_bound): New member function.
3351 * objc-lang.c (objc_language_data): Remove string_lower_bound
3352 initializer.
3353 * opencl-lang.c (opencl_language_data): Likewise.
3354 * p-lang.c (pascal_language_data): Likewise.
3355 * rust-lang.c (rust_language_data): Likewise.
3356 * valops.c (value_cstring): Update call to string_lower_bound.
3357 (value_string): Likewise.
3358 * value.c (allocate_repeated_value): Likewise.
3359
3360 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3361
3362 * valops.c (value_repeat): Fix incorrect argument name in comment.
3363
3364 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3365
3366 * ada-lang.c (ada_language_data): Remove c_style_arrays
3367 initializer.
3368 (ada_language::c_style_arrays_p): New member fuction.
3369 * c-lang.c (c_language_data): Remove c_style_arrays
3370 initializer.
3371 (cplus_language_data): Likewise.
3372 (asm_language_data): Likewise.
3373 (minimal_language_data): Likewise.
3374 * d-lang.c (d_language_data): Likewise.
3375 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3376 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3377 (f_language::c_style_arrays_p): New member function.
3378 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3379 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3380 * language.c (unknown_language_data): Remove c_style_arrays
3381 initializer.
3382 (auto_language_data): Likewise.
3383 * language.h (language_data): Remove c_style_arrays field.
3384 (language_defn::c_style_arrays_p): New member function.
3385 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3386 (m2_language::c_style_arrays_p): New member function.
3387 * objc-lang.c (objc_language_data): Remove c_style_arrays
3388 initializer.
3389 * opencl-lang.c (opencl_language_data): Likewise.
3390 * p-lang.c (pascal_language_data): Likewise.
3391 * rust-lang.c (rust_language_data): Likewise.
3392 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3393 and update local variable to a bool.
3394 * valops.c (value_cast): Update call to c_style_arrays_p.
3395 (value_array): Likewise.
3396 * value.c (coerce_array): Likewise.
3397
3398 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3399
3400 * ada-lang.c (ada_language_data): Remove la_language initializer.
3401 * c-lang.c (c_language_data): Likewise.
3402 (cplus_language_data): Likewise.
3403 (asm_language_data): Likewise.
3404 (minimal_language_data): Likewise.
3405 * d-lang.c (d_language_data): Likewise.
3406 * f-lang.c (f_language_data): Likewise.
3407 * go-lang.c (go_language_data): Likewise.
3408 * language.c (unknown_language_data): Likewise.
3409 (auto_language_data): Likewise.
3410 * language.h (language_data): Remove la_language field.
3411 (language_defn::language_defn): Initialise la_language field.
3412 (language_defn::la_language): New member variable.
3413 * m2-lang.c (m2_language_data): Remove la_language field.
3414 * objc-lang.c (objc_language_data): Likewise.
3415 * opencl-lang.c (opencl_language_data): Likewise.
3416 * p-lang.c (pascal_language_data): Likewise.
3417 * rust-lang.c (rust_language_data): Likewise.
3418
3419 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3420
3421 * ada-lang.c (ada_extensions): Delete, moved into
3422 ada_language::filename_extensions.
3423 (ada_language_data): Remove la_filename_extensions initializer.
3424 (ada_language::filename_extensions): New member function.
3425 * c-lang.c (c_extensions): Delete, moved into
3426 c_language::filename_extensions.
3427 (c_language_data): Remove la_filename_extensions initializer.
3428 (c_language::filename_extensions): New member function.
3429 (cplus_extensions): Delete, moved into
3430 cplus_language::filename_extensions.
3431 (cplus_language_data): Remove la_filename_extensions initializer.
3432 (cplus_language::filename_extensions): New member function.
3433 (asm_extensions): Delete, moved into
3434 asm_language::filename_extensions.
3435 (asm_language_data): Remove la_filename_extensions initializer.
3436 (asm_language::filename_extensions): New member function.
3437 (minimal_language_data): Remove la_filename_extensions
3438 initializer.
3439 * d-lang.c (d_extensions): Delete, moved into
3440 d_language::filename_extensions.
3441 (d_language_data): Remove la_filename_extensions initializer.
3442 (d_language::filename_extensions): New member function.
3443 * f-lang.c (f_extensions): Delete, moved into
3444 f_language::filename_extensions.
3445 (f_language_data): Remove la_filename_extensions initializer.
3446 (f_language::filename_extensions): New member function.
3447 * go-lang.c (go_language_data): Remove la_filename_extensions
3448 initializer.
3449 * language.c (add_set_language_command): Update now that
3450 filename_extensions returns a vector.
3451 (unknown_language_data): Remove la_filename_extensions
3452 initializer.
3453 (auto_language_data): Likewise.
3454 * language.h (language_data): Remove la_filename_extensions field.
3455 (language_defn::filename_extensions): New member function.
3456 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3457 initializer.
3458 * objc-lang.c (objc_extensions): Delete, moved into
3459 objc_language::filename_extensions.
3460 (objc_language_data): Remove la_filename_extensions initializer.
3461 (objc_language::filename_extensions): New member function.
3462 * opencl-lang.c (opencl_language_data): Remove
3463 la_filename_extensions initializer.
3464 * p-lang.c (pascal_extensions): Delete, moved into
3465 pascal_language::filename_extensions.
3466 (pascal_language_data): Remove la_filename_extensions initializer.
3467 (pascal_language::filename_extensions): New member function.
3468 * rust-lang.c (rust_extensions): Delete, moved into
3469 rust_language::filename_extensions.
3470 (rust_language_data): Remove la_filename_extensions initializer.
3471 (rust_language::filename_extensions): New member function.
3472 * symfile.c (add_filename_language): Add new assert.
3473
3474 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3475
3476 * ada-lang.c (ada_language_data): Remove la_name and
3477 la_natural_name initializers.
3478 (ada_language::name): New member function.
3479 (ada_language::natural_name): New member function.
3480 * c-lang.c (c_language_data): Remove la_name and
3481 la_natural_name initializers.
3482 (c_language::name): New member function.
3483 (c_language::natural_name): New member function.
3484 (cplus_language_data): Remove la_name and
3485 la_natural_name initializers.
3486 (cplus_language::name): New member function.
3487 (cplus_language::natural_name): New member function.
3488 (asm_language_data): Remove la_name and
3489 la_natural_name initializers.
3490 (asm_language::name): New member function.
3491 (asm_language::natural_name): New member function.
3492 (minimal_language_data): Remove la_name and
3493 la_natural_name initializers.
3494 (minimal_language::name): New member function.
3495 (minimal_language::natural_name): New member function.
3496 * compile/compile.c (compile_to_object): Update call to
3497 lanugage_defn::name.
3498 * d-lang.c (d_language_data): Remove la_name and
3499 la_natural_name initializers.
3500 (d_language::name): New member function.
3501 (d_language::natural_name): New member function.
3502 * expprint.c (print_subexp_standard): Update call to
3503 language_defn::name.
3504 (dump_raw_expression): Likewise
3505 (dump_prefix_expression): Likewise.
3506 * f-lang.c (f_language_data): Remove la_name and
3507 la_natural_name initializers.
3508 (f_language::name): New member function.
3509 (f_language::natural_name): New member function.
3510 * go-lang.c (go_language_data): Remove la_name and
3511 la_natural_name initializers.
3512 (go_language::name): New member function.
3513 (go_language::natural_name): New member function.
3514 * language.c (show_language_command): Update call to
3515 language_defn::name.
3516 (set_language_command): Likewise.
3517 (language_enum): Likewise.
3518 (language_str): Likewise.
3519 (add_set_language_command): Likewise, use
3520 language_defn::natural_name in the doc string.
3521 (unknown_language_data): Remove la_name and
3522 la_natural_name initializers.
3523 (unknown_language::name): New member function.
3524 (unknown_language::natural_name): New member function.
3525 (auto_language_data): Remove la_name and
3526 la_natural_name initializers.
3527 (auto_language::name): New member function.
3528 (auto_language::natural_name): New member function.
3529 (language_lookup_primitive_type_as_symbol): Update call to
3530 language_defn::name.
3531 * language.h (language_data): Remove la_name and la_natural_name
3532 member variables.
3533 (language_defn::name): New member function.
3534 (language_defn::natural_name): New member function.
3535 * m2-lang.c (m2_language_data): Remove la_name and
3536 la_natural_name initializers.
3537 (m2_language::name): New member function.
3538 (m2_language::natural_name): New member function.
3539 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3540 language_defn::natural_name.
3541 * objc-lang.c (objc_language_data): Remove la_name and
3542 la_natural_name initializers.
3543 (objc_language::name): New member function.
3544 (objc_language::natural_name): New member function.
3545 * opencl-lang.c (opencl_language_data): Remove la_name and
3546 la_natural_name initializers.
3547 (opencl_language::name): New member function.
3548 (opencl_language::natural_name): New member function.
3549 * p-lang.c (pascal_language_data): Remove la_name and
3550 la_natural_name initializers.
3551 (pascal_language::name): New member function.
3552 (pascal_language::natural_name): New member function.
3553 * rust-lang.c (rust_language_data): Remove la_name and
3554 la_natural_name initializers.
3555 (rust_language::name): New member function.
3556 (rust_language::natural_name): New member function.
3557 * symtab.c (lookup_language_this): Update call to
3558 language_defn::name.
3559
3560 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3561
3562 * ada-lang.c (ada_language_data): Remove la_name_of_this
3563 initializer.
3564 * ax-gdb.c (gen_expr): Update call to name_of_this.
3565 * c-exp.y (classify_name): Likewise.
3566 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3567 (cplus_language_data): Likewise.
3568 (cplus_language::name_of_this): New member function.
3569 (asm_language_data): Remove la_name_of_this initializer.
3570 (minimal_language_data): Likewise.
3571 * d-lang.c (d_language_data): Likewise.
3572 (d_language::name_of_this): New member function.
3573 * expprint.c (print_subexp_standard): Update call to name_of_this.
3574 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3575 * go-lang.c (go_language_data): Likewise.
3576 * language.c (unknown_language_data): Likewise.
3577 (unknown_language::name_of_this): New member function.
3578 (auto_language_data): Remove la_name_of_this initializer.
3579 (auto_language::name_of_this): New member function.
3580 * language.h (language_data): Delete la_name_of_this member
3581 variable.
3582 (language_defn::name_of_this): New member function.
3583 * m2-lang.c (m2_language_data): Remove la_name_of_this
3584 initializer.
3585 * objc-lang.c (objc_language_data): Likewise.
3586 (objc_language::name_of_this): New member function.
3587 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3588 initializer.
3589 * p-lang.c (pascal_language_data): Likewise.
3590 (pascal_language::name_of_this): New member function.
3591 * rust-lang.c (rust_language_data): Remove la_name_of_this
3592 initializer.
3593 * symtab.c (lookup_language_this): Update call to name_of_this.
3594 (lookup_symbol_aux): Likewise.
3595 * valops.c (value_of_this): Likewise.
3596
3597 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3598
3599 * ada-lang.c (ada_language_data): Remove
3600 la_struct_too_deep_ellipsis initializer.
3601 (ada_language::struct_too_deep_ellipsis): New member function.
3602 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3603 initializer.
3604 (cplus_language_data): Likewise.
3605 (asm_language_data): Likewise.
3606 (minimal_language_data): Likewise.
3607 * cp-valprint.c (cp_print_value): Update call to
3608 struct_too_deep_ellipsis.
3609 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3610 initializer.
3611 * f-lang.c (f_language_data): Likewise.
3612 (f_language::struct_too_deep_ellipsis): New member function.
3613 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3614 initializer.
3615 * language.c (unknown_language_data): Likewise.
3616 (auto_language_data): Likewise.
3617 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3618 member variable.
3619 (language_defn::struct_too_deep_ellipsis): New member function.
3620 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3621 initializer.Q
3622 * objc-lang.c (objc_language_data): Likewise.
3623 * opencl-lang.c (opencl_language_data): Likewise.
3624 * p-lang.c (pascal_language_data): Likewise.
3625 * rust-lang.c (rust_language_data): Likewise.
3626 * valprint.c (val_print_check_max_depth): Update call to
3627 struct_too_deep_ellipsis.
3628
3629 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3630
3631 * MAINTAINERS (Write After Approval): Add myself.
3632
3633 2020-09-15 Tom Tromey <tom@tromey.com>
3634
3635 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3636 Remove.
3637
3638 2020-09-15 Tom Tromey <tom@tromey.com>
3639
3640 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3641 and TYPE_CODE_METHODPTR cases.
3642 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3643 (c_value_print_inner): Update.
3644 * valprint.c (generic_value_print_memberptr): New function, from
3645 c_value_print_memberptr.
3646 (generic_value_print): Use it. Call cplus_print_method_ptr.
3647
3648 2020-09-15 Tom Tromey <tromey@adacore.com>
3649
3650 * python/python-internal.h (PyInt_FromLong): Remove define.
3651 * python/py-value.c (convert_value_from_python): Use
3652 gdb_py_object_from_longest.
3653 * python/py-type.c (typy_get_code): Use
3654 gdb_py_object_from_longest.
3655 * python/py-symtab.c (salpy_get_line): Use
3656 gdb_py_object_from_longest.
3657 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3658 gdb_py_object_from_longest.
3659 * python/py-record.c (recpy_gap_reason_code): Use
3660 gdb_py_object_from_longest.
3661 * python/py-record-btrace.c (recpy_bt_insn_size)
3662 (recpy_bt_func_level, btpy_list_count): Use
3663 gdb_py_object_from_longest.
3664 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3665 gdb_py_object_from_longest. Fix error handling.
3666 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3667 gdb_py_object_from_longest.
3668 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3669 gdb_py_object_from_longest.
3670 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3671 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3672 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3673
3674 2020-09-15 Tom Tromey <tromey@adacore.com>
3675
3676 * python/python.c (gdbpy_parameter_value): Use
3677 gdb_py_object_from_ulongest.
3678
3679 2020-09-15 Tom Tromey <tromey@adacore.com>
3680
3681 * python/py-infevents.c (create_register_changed_event_object):
3682 Use gdb_py_object_from_longest.
3683 * python/py-exitedevent.c (create_exited_event_object): Use
3684 gdb_py_object_from_longest.
3685
3686 2020-09-15 Tom Tromey <tromey@adacore.com>
3687
3688 * python/python.c (gdbpy_parameter_value): Use
3689 gdb_py_object_from_longest.
3690 * python/py-type.c (convert_field, typy_range): Use
3691 gdb_py_object_from_longest.
3692 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3693 gdb_py_object_from_longest.
3694 * python/py-lazy-string.c (stpy_get_length): Use
3695 gdb_py_object_from_longest.
3696 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3697 gdb_py_object_from_longest.
3698 * python/py-infevents.c (create_memory_changed_event_object): Use
3699 gdb_py_object_from_longest.
3700 * python/py-inferior.c (infpy_get_num): Use
3701 gdb_py_object_from_longest.
3702 (infpy_get_pid): Likewise.
3703
3704 2020-09-15 Tom Tromey <tromey@adacore.com>
3705
3706 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3707 defines.
3708 * python/py-value.c (valpy_long): Use
3709 gdb_py_object_from_ulongest.
3710 * python/py-symtab.c (salpy_get_pc): Use
3711 gdb_py_object_from_ulongest.
3712 (salpy_get_last): Likewise.
3713 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3714 gdb_py_object_from_ulongest.
3715 * python/py-lazy-string.c (stpy_get_address): Use
3716 gdb_py_object_from_ulongest.
3717 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3718 * python/py-arch.c (archpy_disassemble): Use
3719 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3720 error handling.
3721
3722 2020-09-15 Tom Tromey <tromey@adacore.com>
3723
3724 * python/python-internal.h (gdb_py_long_from_longest): Remove
3725 defines.
3726 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3727 * python/py-type.c (convert_field, typy_get_sizeof): Use
3728 gdb_py_object_from_longest.
3729 * python/py-record-btrace.c (btpy_list_index): Use
3730 gdb_py_object_from_longest.
3731
3732 2020-09-15 Tom Tromey <tromey@adacore.com>
3733
3734 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3735 * python/py-record.c (recpy_element_number): Use
3736 gdb_py_object_from_longest.
3737 (recpy_gap_number): Likewise.
3738
3739 2020-09-15 Tom Tromey <tromey@adacore.com>
3740
3741 * top.c (ui::ui): Update.
3742 (highest_ui_num): Remove.
3743 * top.h (struct ui) <num>: Remove.
3744
3745 2020-09-15 Tom Tromey <tromey@adacore.com>
3746
3747 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3748 * ui-style.c (ansi_regex_text): Now array.
3749 * rust-exp.y (number_regex_text): Now array.
3750 * linespec.c (linespec_quote_characters): Now array.
3751 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3752 Now arrays.
3753
3754 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3755
3756 * debuginfod-support.c (debuginfod_client_deleter): New.
3757 (debuginfod_client_up): New.
3758 (debuginfod_init): Return debuginfod_client_up.
3759 (debuginfod_source_query): Adjust.
3760 (debuginfod_debuginfo_query): Adjust.
3761
3762 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3763
3764 * debuginfod-support.c (debuginfod_source_query): Use
3765 make_unique_xstrdup.
3766
3767 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3770 with `type::instance_flags`.
3771
3772 2020-09-14 Michael Mullin <masmullin@gmail.com>
3773
3774 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3775 Remove baton parameter.
3776
3777 2020-09-14 Pedro Alves <pedro@palves.net>
3778
3779 * Makefile.in (SELFTESTS_SRCS): Add
3780 unittests/enum-flags-selftests.c.
3781 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3782 btrace_function_flags instead of enum btrace_function_flag.
3783 * compile/compile-c-types.c (convert_qualified): Use
3784 enum_flags::raw.
3785 * compile/compile-cplus-symbols.c (convert_one_symbol)
3786 (convert_symbol_bmsym):
3787 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3788 (compile_cplus_convert_struct_or_union_methods)
3789 (compile_cplus_instance::convert_qualified_base):
3790 * go-exp.y (parse_string_or_char): Add cast to int.
3791 * unittests/enum-flags-selftests.c: New file.
3792 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3793 type to btrace_thread_flags from btrace_thread_flag.
3794 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3795 local's type to btrace_thread_flags from btrace_thread_flag. Add
3796 cast in DEBUG call.
3797
3798 2020-09-14 Pedro Alves <pedro@palves.net>
3799
3800 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3801 * gdbtypes.c (address_space_name_to_int): Rename to ...
3802 (address_space_name_to_type_instance_flags): ... this.
3803 (address_space_int_to_name): Rename to ...
3804 (address_space_type_instance_flags_to_name): ... this.
3805 * gdbtypes.h (address_space_name_to_int): Rename to ...
3806 (address_space_name_to_type_instance_flags): ... this.
3807 (address_space_int_to_name): Rename to ...
3808 (address_space_type_instance_flags_to_name): ... this.
3809 * type-stack.c (type_stack::insert): Adjust to rename.
3810 * type-stack.h (type_stack::insert): Likewise.
3811
3812 2020-09-14 Pedro Alves <pedro@palves.net>
3813 Andrew Burgess <andrew.burgess@embecosm.com>
3814
3815 * avr-tdep.c (avr_address_class_type_flags): Return
3816 type_instance_flags.
3817 (avr_address_class_type_flags_to_name): Take a
3818 type_instance_flags.
3819 (avr_address_class_name_to_type_flags): Return bool and take a
3820 type_instance_flags.
3821 * d-lang.c (build_d_types): Use type::set_instance_flags.
3822 * ft32-tdep.c (ft32_address_class_type_flags): Return
3823 type_instance_flags.
3824 (ft32_address_class_type_flags_to_name): Take a
3825 type_instance_flags.
3826 (ft32_address_class_name_to_type_flags): Return bool and take a
3827 type_instance_flags.
3828 (ft32_gdbarch_init): Use type::set_instance_flags.
3829 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3830 * gdbarch.h, gdbarch.c: Regenerate.
3831 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3832 (address_class_name_to_type_flags): Use type_instance_flags and
3833 bool.
3834 * gdbtypes.c (address_space_name_to_int)
3835 (address_space_int_to_name, make_qualified_type): Use
3836 type_instance_flags.
3837 (make_qualified_type): Use type_instance_flags and
3838 type::set_instance_flags.
3839 (make_type_with_address_space, make_cv_type, make_vector_type)
3840 (check_typedef): Use type_instance_flags.
3841 (recursive_dump_type): Cast type_instance_flags to unsigned for
3842 printing.
3843 (copy_type_recursive): Use type::set_instance_flags.
3844 (gdbtypes_post_init): Use type::set_instance_flags.
3845 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3846 <m_instance_flags>: ... this.
3847 <instance_flags, set_instance_flags>: New methods.
3848 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3849 (SET_TYPE_INSTANCE_FLAGS): New.
3850 (address_space_name_to_int, address_space_int_to_name)
3851 (make_type_with_address_space): Pass flags using
3852 type_instance_flags instead of int.
3853 * stabsread.c (cleanup_undefined_types_noname): Use
3854 type::set_instance_flags.
3855 * s390-tdep.c (s390_address_class_type_flags): Return
3856 type_instance_flags.
3857 (s390_address_class_type_flags_to_name): Take a
3858 type_instance_flags.
3859 (s390_address_class_name_to_type_flags): Return bool and take a
3860 type_instance_flags.
3861 * type-stack.c (type_stack::follow_types): Use
3862 type_instance_flags.
3863 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3864
3865 2020-09-14 Tom Tromey <tromey@adacore.com>
3866
3867 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3868 * x86-tdep.c (x86_is_thunk_register_name)
3869 (x86_in_indirect_branch_thunk): Update.
3870 * sparc64-tdep.c (sparc64_fpu_register_names)
3871 (sparc64_cp0_register_names, sparc64_register_names)
3872 (sparc64_pseudo_register_names): Now const.
3873 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3874 cp0_registers_num>: Now const.
3875 * sparc-tdep.c (sparc_core_register_names)
3876 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3877 (sparc32_pseudo_register_names): Now const.
3878 (validate_tdesc_registers): Update.
3879 * rust-lang.c (rust_extensions): Now const.
3880 * p-lang.c (p_extensions): Now const.
3881 * objc-lang.c (objc_extensions): Now const.
3882 * nto-tdep.c (nto_thread_state_str): Now const.
3883 * moxie-tdep.c (moxie_register_names): Now const.
3884 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3885 Now const.
3886 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3887 (mips_linux_reg_names): Now const.
3888 (mips_gdbarch_init): Update.
3889 * microblaze-tdep.c (microblaze_register_names): Now const.
3890 * m68k-tdep.c (m68k_register_names): Now const.
3891 * m32r-tdep.c (m32r_register_names): Now const.
3892 * ia64-tdep.c (ia64_register_names): Now const.
3893 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3894 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3895 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3896 ymm_avx512_register_names, pkeys_register_names>: Now const.
3897 * i386-tdep.c (i386_register_names, i386_zmm_names)
3898 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3899 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3900 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3901 * f-lang.c (f_extensions): Now const.
3902 * d-lang.c (d_extensions): Now const.
3903 * csky-tdep.c (csky_register_names): Now const.
3904 * charset.c (default_charset_names, charset_enum): Now const.
3905 (_initialize_charset): Update.
3906 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3907 const.
3908 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3909 (bsd_uthread_solib_loaded): Update.
3910 (bsd_uthread_state): Now const.
3911 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3912 (amd64_ymm_avx512_names, amd64_ymmh_names)
3913 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3914 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3915 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3916 (amd64_dword_names): Now const.
3917 * agent.c (can_use_agent_enum): Now const.
3918 * ada-tasks.c (task_states, long_task_states): Now const.
3919 * ada-lang.c (known_runtime_file_name_patterns)
3920 (known_auxiliary_function_name_patterns, attribute_names)
3921 (standard_exc, ada_extensions): Now const.
3922
3923 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3924
3925 * bcache.h (struct bcache) <bcache>: Remove constructor.
3926 <m_hash_function, m_compare_function>: Remove.
3927 <~bcache>: Make virtual.
3928 <compare>: Remove static method, introduce virtual method.
3929 <default_hash>: Remove.
3930 <hash>: New virtual method.
3931 * bcache.c (bcache::expand_hash_table): Update.
3932 (bcache::insert): Update.
3933 (bcache::hash): New.
3934 (bcache::compare): Update comment and parameter names.
3935 * gdbtypes.c (types_deeply_equal): Update.
3936 * psymtab.h (struct psymbol_bcache): New struct.
3937 (class psymtab_storage) <psymtab_storage>: Make default.
3938 <psymbol_cache>: Change type to psymbol_bcache.
3939 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3940 (psymbol_hash): Change to...
3941 (psymbol_bcache::hash): ... this.
3942 (psymbol_compare): Change to...
3943 (psymbol_bcache::compare): ... this.
3944
3945 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3946
3947 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3948 checking for initial lwp.
3949
3950 2020-09-14 Tom Tromey <tromey@adacore.com>
3951
3952 * m68k-tdep.c (m68k_extract_return_value): Use
3953 pointer_result_regnum.
3954 (m68k_store_return_value): Likewise.
3955 (m68k_reg_struct_return_p): Handle vectors and arrays.
3956 (m68k_return_value): Handle arrays.
3957 (m68k_svr4_return_value): Fix single-element aggregate handling.
3958 Handle long double. Adjust for embedded ABI.
3959 (m68k_svr4_init_abi): Set pointer_result_regnum.
3960 (m68k_embedded_init_abi): New function.
3961 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3962 (m68k_osabi_sniffer): New function.
3963 (_initialize_m68k_tdep): Register osabi sniffer.
3964 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3965 member.
3966
3967 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3968
3969 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3970 with gdb::unique_xmalloc_ptr<char>.
3971
3972 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3973
3974 * xml-support.h (xml_fetch_another): Change type to be a
3975 function_view.
3976 (xml_process_xincludes): Remove baton parameter.
3977 (xml_fetch_content_from_file): Change baton parameter to
3978 dirname.
3979 * xml-support.c (struct xinclude_parsing_data)
3980 <xinclude_parsing_data>: Remove baton parameter.
3981 <fetcher_baton>: Remove.
3982 (xinclude_start_include): Adjust.
3983 (xml_process_xincludes): Adjust.
3984 (xml_fetch_content_from_file): Replace baton parameter with
3985 dirname.
3986 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3987 (xml_init_syscalls_info): Use a lambda.
3988 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3989 (file_read_description_xml): Use a lambda.
3990 (fetch_available_features_from_target): Change baton parameter
3991 to target_ops.
3992 (target_read_description_xml): Use a lambda.
3993 (target_fetch_description_xml): Use a lambda.
3994 (string_read_description_xml): Update.
3995
3996 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3997
3998 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3999 uses with type::endianity_is_not_default.
4000
4001 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * gdbtypes.h (struct type) <endianity_is_not_default,
4004 set_endianity_is_not_default>: New methods.
4005 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4006 type::endianity_is_not_default, change all write call sites to
4007 use type::set_endianity_is_not_default.
4008
4009 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4012 uses with type::is_fixed_instance.
4013
4014 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * gdbtypes.h (struct type) <is_fixed_instance,
4017 set_is_fixed_instance>: New methods.
4018 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4019 write call sites to use type::set_is_fixed_instance.
4020
4021 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4022
4023 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4024 uses with type::is_gnu_ifunc.
4025
4026 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4027
4028 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4029 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4030 use type::set_is_gnu_ifunc.
4031
4032 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4035 uses with type::stub_is_supported.
4036
4037 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4038
4039 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4040 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4041 use type::set_stub_is_supported.
4042
4043 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4044
4045 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4046 uses with type::is_vector.
4047
4048 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4049
4050 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4051 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4052 use type::set_is_vector.
4053
4054 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4055
4056 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4057 uses with type::has_varargs.
4058
4059 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4060
4061 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4062 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4063 use type::set_has_varargs.
4064
4065 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4068 uses with type::is_prototyped.
4069
4070 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4073 New methods.
4074 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4075 call sites to use type::set_is_prototyped.
4076
4077 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4078
4079 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4080 uses with type::target_is_stub.
4081
4082 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4085 New methods.
4086 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4087 sites to use type::set_target_is_stub.
4088
4089 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4090
4091 * gdbtypes.h (TYPE_STUB): Remove, replace all
4092 uses with type::is_stub.
4093
4094 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4097 (TYPE_STUB): Use type::is_stub, change all write call sites to
4098 use type::set_is_stub.
4099
4100 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4103 type::has_no_signedness.
4104
4105 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4106
4107 * gdbtypes.h (struct type) <has_no_signedness,
4108 set_has_no_signedness>: New methods.
4109 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4110 call sites to use type::set_has_no_signedness.
4111
4112 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4113
4114 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4115 type::is_unsigned.
4116
4117 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4120 methods.
4121 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4122 sites to use type::set_is_unsigned.
4123
4124 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4125 Adam Renquinha <arenquinha@cimeq.qc.ca>
4126
4127 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4128 pointer and stack frame offset when unwinding.
4129
4130 2020-09-13 Pedro Alves <pedro@palves.net>
4131
4132 * NEWS: Document "-break-insert --qualified".
4133 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4134
4135 2020-09-13 Pedro Alves <pedro@palves.net>
4136
4137 * linespec.c (classify_mtype, compare_msyms): Delete.
4138 (search_minsyms_for_name): Remove classification logic. Instead
4139 filter out trampoline symbols if we also found an external
4140 function of the same name.
4141
4142 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4143
4144 * NEWS: Create a new section for the next release branch.
4145 Rename the section of the current branch, now that it has
4146 been cut.
4147
4148 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4149
4150 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4151 * version.in: Bump version to 11.0.50.DATE-git.
4152
4153 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4154
4155 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4156
4157 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4158 Felix Willgerodt <Felix.Willgerodt@intel.com>
4159
4160 * gdbarch.sh: Added bfloat16 type.
4161 * gdbarch.c: Regenerated.
4162 * gdbarch.h: Regenerated.
4163 * gdbtypes.c (floatformats_bfloat16): New struct.
4164 (gdbtypes_post_init): Add builtin_bfloat16.
4165 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4166 (floatformats_bfloat16): New struct.
4167 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4168 (i386_ymm_type): Add field "v16_bfloat16"
4169 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4170 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4171 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4172 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4173 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4174 * features/i386/64bit-avx512.c: Regenerated.
4175 * features/i386/64bit-sse.xml: Add bfloat16 type.
4176 * features/i386/64bit-sse.c: Regenerated.
4177
4178 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4179
4180 * i386-tdep.c (i386_zmm_type): Fix field names.
4181 (i386_ymm_type): Fix field names.
4182
4183 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4184
4185 * breakpoint.c: Fix typo in the help message of the
4186 "set breakpoint condition-evaluation" command.
4187
4188 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4189
4190 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4191 * (nbsd_nat_target::pid_to_exec_file)
4192 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4193 (nbsd_nat_target::post_startup_inferior)
4194 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4195 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4196 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4197 * (nbsd_thread_lister): Remove.
4198
4199 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4200
4201 * fork-inferior.c (startup_inferior): Avoid double free.
4202
4203 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4204
4205 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4206 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4207
4208 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4209
4210 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4211 * netbsd-nat.c: Include <sys/ptrace.h>.
4212 * (netbsd_nat::enable_proc_events): Add.
4213
4214 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4215
4216 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4217 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4218 (netbsd_nat::for_each_thread): Add.
4219 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4220 "gdbsupport/common-debug.h".
4221 * (netbsd_nat::netbsd_thread_lister)
4222 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4223 (netbsd_nat::for_each_thread): Add.
4224
4225 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4226
4227 * netbsd-nat.h: Include <unistd.h>.
4228 * (netbsd_nat::pid_to_exec_file): Add.
4229 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4230 * (netbsd_nat::pid_to_exec_file) Add.
4231
4232 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4233
4234 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4235
4236 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4237
4238 * netbsd-nat.h: New file.
4239 * netbsd-nat.c: Likewise.
4240
4241 2020-09-09 Tom Tromey <tromey@adacore.com>
4242
4243 * ada-lang.c (remove_extra_symbols): Do not increment when
4244 removing an element
4245
4246 2020-09-08 Tom Tromey <tromey@adacore.com>
4247
4248 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4249
4250 2020-09-08 Tom Tromey <tromey@adacore.com>
4251
4252 PR win32/25302:
4253 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4254 (gdb_bfd_init_data): New function.
4255 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4256
4257 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4258
4259 * infrun.c (fetch_inferior_event): Use
4260 `switch_to_target_no_thread` to switch the target.
4261
4262 2020-09-06 Tom Tromey <tom@tromey.com>
4263
4264 * symfile.h (dwarf2_free_objfile): Don't declare.
4265
4266 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4267
4268 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4269 to match 16 byte real/complex type generated by Flang compiler.
4270
4271 2020-09-03 Tom de Vries <tdevries@suse.de>
4272
4273 PR breakpoint/26546
4274 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4275 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4276
4277 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4278
4279 * maint.c (index_digits): New function.
4280 (struct maint_print_section_data): Remove.
4281 (print_bfd_section_info): Remove print_data parameter, add arg
4282 and index_digits.
4283 (print_objfile_section_info): Likewise.
4284 (print_bfd_section_info_maybe_relocated): Likewise (plus
4285 objfile).
4286 (maintenance_info_sections): Adjust calls.
4287
4288 2020-09-02 Tom Tromey <tromey@adacore.com>
4289
4290 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4291 for null pointers.
4292 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4293
4294 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4295
4296 * bcache.h (struct bcache) <insert>: Change type of `added` to
4297 pointer to bool.
4298 * bcache.c (bcache::insert): Likewise.
4299 * gdbtypes.c (check_types_worklist): Adjust.
4300 * psymtab.c (add_psymbol_to_bcache): Adjust.
4301
4302 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4303
4304 * corelow.c (unordered_set): Include.
4305 (class core_target): Add field 'm_core_unavailable_mappings'.
4306 (core_target::build_file_mappings): Print only one warning
4307 per inaccessible file. Add unavailable/broken mappings
4308 to m_core_unavailable_mappings.
4309 (core_target::xfer_partial): Call...
4310 (core_target::xfer_memory_via_mappings): New method.
4311
4312 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4313
4314 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4315 type to bool.
4316
4317 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4318
4319 * dwarf2/read.c (struct field_info): Fix indentation.
4320
4321 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4324 ordering in comment.
4325 * frame.c (frame_id_eq): Fix indentation.
4326
4327 2020-08-31 Scott Linder <scott@scottlinder.com>
4328 Simon Marchi <simon.marchi@efficios.com>
4329
4330 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4331 inline frame ids in outer frame.
4332
4333 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4334
4335 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4336 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4337 (outer_frame_id): Use FID_STACK_OUTER instead of
4338 FID_STACK_INVALID.
4339 (frame_id_p): Don't check for outer_frame_id.
4340
4341 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4342
4343 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4344 regnum/frame in value. Call allocate_value_lazy.
4345 * frame.c (frame_unwind_register_value): Use
4346 val_print_not_saved.
4347
4348 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4349
4350 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4351
4352 2020-08-29 Pedro Alves <pedro@palves.net>
4353
4354 * progspace.c (print_program_space): Use all_inferiors. Switch to
4355 the inferior before calling target_pid_to_str.
4356
4357 2020-08-28 Tom Tromey <tom@tromey.com>
4358
4359 * xcoffread.c (xcoff_end_psymtab): Update comment.
4360 * dbxread.c (dbx_end_psymtab): Update comment.
4361
4362 2020-08-28 Tom de Vries <tdevries@suse.de>
4363
4364 PR breakpoint/26544
4365 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4366 event_location.
4367 (create_breakpoint): Same.
4368 (base_breakpoint_decode_location): Same.
4369 (bkpt_create_sals_from_location): Same.
4370 (bkpt_decode_location): Same.
4371 (bkpt_probe_create_sals_from_location): Same.
4372 (bkpt_probe_decode_location): Same.
4373 (tracepoint_create_sals_from_location): Same.
4374 (tracepoint_decode_location): Same.
4375 (tracepoint_probe_decode_location): Same.
4376 (strace_marker_create_sals_from_location): Same.
4377 (strace_marker_decode_location): Same.
4378 (create_sals_from_location_default): Same.
4379 (decode_location_default): Same.
4380 * breakpoint.h (struct breakpoint_ops): Same.
4381 (create_breakpoint): Same.
4382 * linespec.h (decode_line_full): Same.
4383 * linespec.c (decode_line_full): Same. Throw error if
4384 result.size () == 0.
4385
4386 2020-08-27 Pedro Alves <pedro@palves.net>
4387
4388 PR gdb/26524
4389 * breakpoint.c (until_break_fsm) <location_breakpoint,
4390 caller_breakpoint>: Delete fields.
4391 <breakpoints>: New field.
4392 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4393 two individual breakpoints.
4394 (until_break_fsm::should_stop): Loop over breakpoints in the
4395 breakpoint vector.
4396 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4397 vector.
4398 (until_break_command): Handle location expanding into multiple
4399 sals.
4400
4401 2020-08-27 Pedro Alves <pedro@palves.net>
4402
4403 PR gdb/26523
4404 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4405 bp_until breakpoints user-specified locations. Update intro
4406 comment.
4407
4408 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4409
4410 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4411 gdb_bfd_sections): New.
4412 * maint.c (print_bfd_section_info): Change param type to
4413 maint_print_section_data.
4414 (print_objfile_section_info): Likewise.
4415 (print_bfd_section_info_maybe_relocated): Likewise.
4416 (maintenance_info_sections): Use gdb_bfd_sections.
4417
4418 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4419
4420 * MAINTAINERS: Add ARC target and maintainer.
4421
4422 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4423
4424 * configure.tgt: ARC support for GNU/Linux.
4425 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4426 * arc-linux-tdep.c: New file.
4427 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4428 * arc-tdep.c (arc_write_pc): Use it.
4429
4430 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4431
4432 * arc-tdep.c (arc_check_for_hardware_loop): New.
4433 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4434
4435 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4436
4437 * arc-tdep.h: Include "gdbarch.h".
4438
4439 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4440
4441 * arch/arc.h
4442 (arc_gdbarch_features): New class to stir the selection of target XML.
4443 (arc_create_target_description): Use FEATURES to choose XML target.
4444 (arc_lookup_target_description): Use arc_create_target_description
4445 to create _new_ target descriptions or return the already created
4446 ones if the FEATURES is the same.
4447 * arch/arc.c: Implementation of prototypes described above.
4448 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4449 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4450 * arc-tdep.c (*_feature_name): Make feature names consistent.
4451 (arc_register_feature): A new struct to hold information about
4452 registers of a particular target/feature.
4453 (arc_check_tdesc_feature): Check if XML provides registers in
4454 compliance with ARC_REGISTER_FEATURE structs.
4455 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4456 (determine_*_reg_feature_set): Which feature name to look for.
4457 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4458 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4459 to expected ISA enums to be used in arc_gdbarch_features structs.
4460 * features/Makefile (FEATURE_XMLFILES): Add new files.
4461 * gdb/features/arc/v1-aux.c: New file.
4462 * gdb/features/arc/v1-aux.xml: Likewise.
4463 * gdb/features/arc/v1-core.c: Likewise.
4464 * gdb/features/arc/v1-core.xml: Likewise.
4465 * gdb/features/arc/v2-aux.c: Likewise.
4466 * gdb/features/arc/v2-aux.xml: Likewise.
4467 * gdb/features/arc/v2-core.c: Likewise.
4468 * gdb/features/arc/v2-core.xml: Likewise.
4469 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4470
4471 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4472 Andrew Burgess <andrew.burgess@embecosm.com>
4473
4474 PR m2/26372
4475 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4476 an assert. Remove single element array indexing pattern as the
4477 MULTI_SUBSCRIPT support will handle this case too.
4478
4479 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4480
4481 * value.h (valprint_check_validity): Move declaration from
4482 here...
4483 * valprint.h (valprint_check_validity): ... to here.
4484
4485 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4486
4487 * debug.h: New file.
4488 * debug.c (debug_prefixed_vprintf): New function.
4489 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4490 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4491
4492 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4493
4494 * infrun.h (infrun_debug_printf_1): New function declaration.
4495 (infrun_debug_printf): New macro.
4496 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4497 throughout.
4498 (infrun_debug_printf): New function.
4499 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4500 (handle_jit_event): Likewise.
4501
4502 2020-08-21 Mark Wielaard <mark@klomp.org>
4503
4504 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4505
4506 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4507
4508 * frame.c (enum class frame_id_status): New.
4509 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4510 (fprintf_frame): Update.
4511 (compute_frame_id): Set frame id status to "computing" on entry.
4512 Set it back to "not_computed" on failure and to "computed" on
4513 success.
4514 (get_frame_id): Assert the frame id is not being computed.
4515 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4516 (create_new_frame): Likewise.
4517 (frame_cleanup_after_sniffer): Update assert.
4518
4519 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4520
4521 * regcache.c (pid_ptid_regcache_map): New type.
4522 (target_ptid_regcache_map): Remove.
4523 (target_pid_ptid_regcache_map): New type.
4524 (regcaches): Change type to target_pid_ptid_regcache_map.
4525 (get_thread_arch_aspace_regcache): Update.
4526 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4527 case.
4528 (regcaches_size): Update.
4529 (regcache_count): Update.
4530 (registers_changed_ptid_target_pid_test): New.
4531 (_initialize_regcache): Register new test.
4532
4533 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4534
4535 * regcache.c (regcache_count): New.
4536 (struct regcache_test_data): New.
4537 (regcache_test_data_up): New.
4538 (populate_regcaches_for_test): New.
4539 (regcaches_test): Remove.
4540 (get_thread_arch_aspace_regcache_test): New.
4541 (registers_changed_ptid_all_test): New.
4542 (registers_changed_ptid_target_test): New.
4543 (registers_changed_ptid_target_ptid_test): New.
4544 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4545 (_initialize_regcache): Register new tests.
4546
4547 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4548
4549 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4550 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4551 gdbarch and aspace parameter. Use current inferior's aspace.
4552 Validate regcache's arch value.
4553 (regcaches_test): Update.
4554
4555 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4556
4557 * regcache.c (regcaches_test): Call registers_changed.
4558
4559 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4560
4561 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4562
4563 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4564
4565 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4566 to find the end of prologue for flang compiled binaries.
4567 * arm-tdep.c (arm_skip_prologue): Likewise.
4568 * i386-tdep.c (i386_skip_prologue): Likewise.
4569 * producer.c (producer_is_llvm): New function.
4570 (producer_parsing_tests): Added new tests for clang/flang.
4571 * producer.h (producer_is_llvm): New declaration.
4572
4573 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * linux-nat.c (linux_nat_debug_printf): New function.
4576 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4577
4578 2020-08-18 Aaron Merey <amerey@redhat.com>
4579
4580 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4581 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4582 (CLIBS): Add DEBUGINFOD_LIBS.
4583
4584 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4585
4586 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4587 'gdbarch_num_regs'.
4588
4589 2020-08-17 Tom Tromey <tromey@adacore.com>
4590
4591 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4592 ada_get_decoded_value returns NULL.
4593
4594 2020-08-17 Tom Tromey <tromey@adacore.com>
4595
4596 * python/py-inferior.c (infpy_search_memory): Use
4597 gdb_py_object_from_ulongest.
4598 * python/py-infevents.c (create_inferior_call_event_object)
4599 (create_memory_changed_event_object): Use
4600 gdb_py_object_from_ulongest.
4601 * python/py-linetable.c (ltpy_entry_get_pc): Use
4602 gdb_py_object_from_ulongest.
4603
4604 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4605
4606 * loc.c (class symbol_needs_eval_context): Fix indentation.
4607
4608 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4609
4610 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4611 bool.
4612
4613 2020-08-17 Tom de Vries <tdevries@suse.de>
4614
4615 PR gdb/26393
4616 * gdbtypes.c (dump_dynamic_prop): New function.
4617 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4618
4619 2020-08-15 Tom de Vries <tdevries@suse.de>
4620
4621 PR backtrace/26390
4622 * stack.c (print_frame_args): Temporarily set the selected
4623 frame to FRAME while printing the frame's arguments.
4624
4625 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4626
4627 PR breakpoints/26385
4628 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4629 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4630
4631 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4632
4633 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4634 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4635 and >= to check return value instead of == -1 and != -1.
4636
4637 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4638
4639 * utils.h (class gdb_argv) <as_array_view>: New method.
4640 * utils.c (gdb_argv_as_array_view_test): New.
4641 (_initialize_utils): Register selftest.
4642 * maint.c (maintenance_selftest): Use the new method.
4643
4644 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4645
4646 * target.h (supports_dumpcore, dumpcore): New
4647 function declarations.
4648 * target.c (supports_dumpcore, dumpcore): New
4649 functions.
4650 * target-delegates.c: Rebuild.
4651 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4652 and target_dumpcore ().
4653
4654 2020-08-13 Aaron Merey <amerey@redhat.com>
4655
4656 * debuginfod-support.c: Replace global variables with user_data.
4657
4658 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4659
4660 * maint.c (maintenance_selftest): Split args and pass array_view
4661 to run_tests.
4662
4663 2020-08-12 Luis Machado <luis.machado@linaro.org>
4664
4665 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4666 type's length.
4667 Use %s and pulongest to print the length.
4668
4669 2020-08-12 Pedro Alves <palves@redhat.com>
4670
4671 * NEWS: Move "Multi-target debugging support" item to the
4672 "Changes since GDB 9" section.
4673
4674 2020-08-12 Pedro Alves <palves@redhat.com>
4675
4676 PR gdb/26336
4677 * progspace.c (program_space::remove_objfile): Invalidate the
4678 frame cache.
4679
4680 2020-08-11 Tom de Vries <tdevries@suse.de>
4681
4682 * MAINTAINERS: Mark ms1 as deleted.
4683
4684 2020-08-10 Luis Machado <luis.machado@linaro.org>
4685
4686 PR gdb/26310
4687
4688 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4689 act accordingly.
4690 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4691 movz/str/stur/stp skipping behavior.
4692
4693 2020-08-10 Luis Machado <luis.machado@linaro.org>
4694
4695 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4696 struct user_sve_header instead of struct sve_context.
4697
4698 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4699
4700 * read.h (dwarf2_fetch_die_loc_sect_off,
4701 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4702 `void *` parameter with function_view.
4703 * read.c (dwarf2_fetch_die_loc_sect_off,
4704 dwarf2_fetch_die_loc_cu_off): Likewise.
4705 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4706 (per_cu_dwarf_call): Adjust.
4707 (get_frame_address_in_block_wrapper): Remove.
4708 (indirect_synthetic_pointer): Adjust.
4709 (get_ax_pc): Remove.
4710 (dwarf2_compile_expr_to_ax): Adjust.
4711
4712 2020-08-08 Tom de Vries <tdevries@suse.de>
4713
4714 PR build/26344
4715 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4716 constructor.
4717 * regcache.c (get_thread_arch_aspace_regcache): Same.
4718
4719 2020-08-07 Tom Tromey <tromey@adacore.com>
4720
4721 * ravenscar-thread.c
4722 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4723 New method.
4724 (ravenscar_thread_target::wait): Check
4725 runtime_initialized.
4726 (ravenscar_thread_target::prepare_to_store)
4727 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4728 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4729 (ravenscar_thread_target::stopped_by_watchpoint)
4730 (ravenscar_thread_target::stopped_data_address)
4731 (ravenscar_thread_target::core_of_thread): Use
4732 scoped_restore_current_thread and
4733 set_base_thread_from_ravenscar_task.
4734
4735 2020-08-07 Tom Tromey <tromey@adacore.com>
4736
4737 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4738
4739 2020-08-07 Tom Tromey <tromey@adacore.com>
4740
4741 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4742 update_inferior_ptid before update_thread_list.
4743 (temporarily_change_regcache_ptid): New class.
4744 (ravenscar_thread_target::fetch_registers)
4745 (ravenscar_thread_target::store_registers)
4746 (ravenscar_thread_target::prepare_to_store): Use base thread when
4747 forwarding operation.
4748
4749 2020-08-07 Tom Tromey <tromey@adacore.com>
4750
4751 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4752 "is_pid" case.
4753
4754 2020-08-07 Tom Tromey <tromey@adacore.com>
4755
4756 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4757 New methods.
4758 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4759 first.
4760 (ravenscar_thread_target::add_thread): Rename from
4761 ravenscar_add_thread.
4762 (ravenscar_thread_target::update_thread_list): Use a lambda.
4763 (ravenscar_thread_target::xfer_partial): New method.
4764
4765 2020-08-07 Tom Tromey <tromey@adacore.com>
4766
4767 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4768 gdb::function_view.
4769 (iterate_over_live_ada_tasks): Change type of argument.
4770 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4771 of argument.
4772
4773 2020-08-07 Tom Tromey <tromey@adacore.com>
4774
4775 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4776 Remove.
4777 (ravenscar_thread_target::extra_thread_info): Remove.
4778 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4779 defer to target beneath for non-Ravenscar threads.
4780
4781 2020-08-07 Tom Tromey <tromey@adacore.com>
4782
4783 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4784 get_base_thread_from_ravenscar_task>: Now methods.
4785 <m_cpu_map>: New member.
4786 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4787 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4788 (ravenscar_thread_target::task_is_currently_active): Update.
4789 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4790 Now a method.
4791 (ravenscar_thread_target::add_active_thread): Put initial thread
4792 into the m_cpu_map.
4793
4794 2020-08-07 Tom Tromey <tromey@adacore.com>
4795
4796 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4797 event_ptid.
4798
4799 2020-08-07 Tom Tromey <tromey@adacore.com>
4800
4801 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4802 runtime_initialized.
4803
4804 2020-08-07 Tom Tromey <tromey@adacore.com>
4805
4806 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4807 add_active_thread.
4808 (ravenscar_thread_target::add_active_thread): Now public.
4809 (ravenscar_inferior_created): Call add_active_thread after pushing
4810 the target.
4811
4812 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4813
4814 * regcache.c (ptid_regcache_map): New type.
4815 (target_ptid_regcache_map): New type.
4816 (regcaches): Change type to target_ptid_regcache_map.
4817 (get_thread_arch_aspace_regcache): Update to regcaches' new
4818 type.
4819 (regcache_thread_ptid_changed): Likewise.
4820 (registers_changed_ptid): Likewise.
4821 (regcaches_size): Likewise.
4822 (regcaches_test): Update.
4823 (regcache_thread_ptid_changed): Update.
4824 * regcache.h (regcache_up): New type.
4825 * gdbsupport/ptid.h (hash_ptid): New struct.
4826
4827 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4828
4829 * observable.h (thread_ptid_changed): Add parameter
4830 `process_stratum_target *`.
4831 * infrun.c (infrun_thread_ptid_changed): Add parameter
4832 `process_stratum_target *` and use it.
4833 (selftests): New namespace.
4834 (infrun_thread_ptid_changed): New function.
4835 (_initialize_infrun): Register selftest.
4836 * regcache.c (regcache_thread_ptid_changed): Add parameter
4837 `process_stratum_target *` and use it.
4838 (regcache_thread_ptid_changed): New function.
4839 (_initialize_regcache): Register selftest.
4840 * thread.c (thread_change_ptid): Pass target to
4841 thread_ptid_changed observable.
4842
4843 2020-08-06 Caroline Tice <cmtice@google.com>
4844
4845 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4846 (struct dwp_sections): Update field comments. Add loclists and
4847 rnglists fields.
4848 (struct virtual_v2_dwo_sections): Rename struct to
4849 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4850 size & offset fields for loclists and rnglists.
4851 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4852 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4853 skipping dummy type units.
4854 (create_dwp_hash_table): Update the large comment above the function to
4855 discuss Version 5 DWP files as well, with references. Update all the
4856 version checks in the function to check for version 5 as well. Add new
4857 section at the end to create dwp hash table for version 5.
4858 (create_dwp_v2_section): Rename function to
4859 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4860 Add V5 to error message text.
4861 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4862 into calls to create_dwp_v2_or_v5_section.
4863 (create_dwo_unit_in_dwp_v5): New function.
4864 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4865 check for version2; add else clause to handle version 5.
4866 (open_and_init_dwo_file): Add code to check dwarf version & only call
4867 create_debug_types_hash_table (with sections.types) if version is not 5;
4868 else call create_debug_type_hash_table, with sections.info.
4869 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4870 version 5.
4871 (dwarf2_locate_v5_dwp_sections): New function.
4872 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4873 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4874
4875 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4876
4877 * regcache.h (class regcache): Remove friend
4878 registers_changed_ptid.
4879 <regcache_thread_ptid_changed>: Remove.
4880 <regcaches>: Remove.
4881 * regcache.c (regcache::regcaches): Rename to...
4882 (regcaches): ... this. Make static.
4883 (get_thread_arch_aspace_regcache): Update.
4884 (regcache::regcache_thread_ptid_changed): Rename to...
4885 (regcache_thread_ptid_changed): ... this. Update.
4886 (class regcache_access): Remove.
4887 (regcaches_test): Update.
4888 (_initialize_regcache): Update.
4889 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4890 <forward_list>.
4891
4892 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4893
4894 * regcache.h (class regcache) <current_regcache>: Rename to...
4895 <regcaches>: ... this. Move doc here.
4896 * regcache.c (regcache::current_regcache) Rename to...
4897 (regcache::regcaches): ... this. Move doc to header.
4898 (get_thread_arch_aspace_regcache): Update.
4899 (regcache::regcache_thread_ptid_changed): Update.
4900 (registers_changed_ptid): Update.
4901 (class regcache_access) <current_regcache_size>: Rename to...
4902 <regcaches_size>: ... this.
4903 (current_regcache_test): Rename to...
4904 (regcaches_test): ... this.
4905 (_initialize_regcache): Update.
4906
4907 2020-08-06 Victor Collod <vcollod@nvidia.com>
4908
4909 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4910
4911 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4912
4913 * corelow.c (core_target::build_file_mappings): Don't output
4914 null pathname in warning.
4915
4916 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4917
4918 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4919 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4920 gdb.dwarf2/dw2-single-line-discriminators.exp,
4921 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4922
4923 2020-08-05 Tom Tromey <tromey@adacore.com>
4924
4925 PR rust/26197:
4926 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4927 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4928 Fix off-by-one and type size errors in ordinary case.
4929
4930 2020-08-05 Tom de Vries <tdevries@suse.de>
4931
4932 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4933 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4934
4935 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * frame.h (frame_id_p): Return bool.
4938 (frame_id_artificial_p): Return bool.
4939 (frame_id_eq): Return bool.
4940 (has_stack_frames): Return bool.
4941 (get_selected_frame): Fix typo in comment.
4942 (get_frame_pc_if_available): Return bool.
4943 (get_frame_address_in_block_if_available): Return bool.
4944 (get_frame_func_if_available): Return bool.
4945 (read_frame_register_unsigned): Return bool.
4946 (get_frame_register_bytes): Return bool.
4947 (safe_frame_unwind_memory): Return bool.
4948 (deprecated_frame_register_read): Return bool.
4949 (frame_unwinder_is): Return bool.
4950 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4951 bool.
4952 <this_id::p>: Likewise.
4953 <prev_p>: Likewise.
4954 (frame_stash_add): Return bool.
4955 (get_frame_id): Use bool.
4956 (frame_id_build_special) Use bool.
4957 (frame_id_build_unavailable_stack): Use bool.
4958 (frame_id_build): Use bool.
4959 (frame_id_p): Return bool, use true/false instead of 1/0.
4960 (frame_id_artificial_p): Likewise.
4961 (frame_id_eq): Likewise.
4962 (frame_id_inner): Likewise.
4963 (get_frame_func_if_available): Likewise.
4964 (read_frame_register_unsigned): Likewise.
4965 (deprecated_frame_register_read): Likewise.
4966 (get_frame_register_bytes): Likewise.
4967 (has_stack_frames): Likewise.
4968 (inside_main_func): Likewise.
4969 (inside_entry_func): Likewise.
4970 (get_frame_pc_if_available): Likewise.
4971 (get_frame_address_in_block_if_available): Likewise.
4972 (frame_unwinder_is): Likewise.
4973 (safe_frame_unwind_memory): Likewise.
4974 (frame_unwind_arch): Likewise.
4975
4976 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4979 type to cached_copy_status.
4980 (fprintf_frame): Adjust.
4981 (get_frame_func_if_available): Adjust.
4982 (frame_cleanup_after_sniffer): Adjust.
4983
4984 2020-08-04 Mark Wielaard <mark@klomp.org>
4985
4986 * MAINTAINERS (Write After Approval): Update email address.
4987
4988 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4989
4990 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4991 dynamic_prop::const_val.
4992
4993 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4994
4995 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4996 dynamic_prop::kind.
4997
4998 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4999
5000 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5001
5002 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5003
5004 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5005
5006 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5007 Jose E. Marchesi <jose.marchesi@oracle.com>
5008
5009 * configure.tgt: Add entry for bpf-*-*.
5010 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5011 (ALLDEPFILES): Add bpf-tdep.c.
5012 * bpf-tdep.c: New file.
5013 * MAINTAINERS: Add bpf target and maintainer.
5014 * NEWS: Mention the support for the new target.
5015
5016 2020-08-04 Tom de Vries <tdevries@suse.de>
5017
5018 PR symtab/23270
5019 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5020 Error.
5021
5022 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5023
5024 * syscalls/freebsd.xml: Regenerate.
5025
5026 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5027
5028 * syscalls/update-freebsd.sh: Fix usage and year range.
5029
5030 2020-08-03 Tom de Vries <tdevries@suse.de>
5031
5032 PR symtab/26333
5033 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5034 DW_LNE_lo_user/DW_LNE_hi_user range.
5035
5036 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5037
5038 PR ada/26318
5039 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5040 kind.
5041
5042 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5043
5044 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5045
5046 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5047
5048 * breakpoint.c (set_breakpoint_condition): Update the condition
5049 expressions after checking that the input condition string parses
5050 successfully and does not contain junk at the end.
5051
5052 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5053
5054 * breakpoint.c (set_breakpoint_condition): Update the
5055 condition string after parsing the new condition successfully.
5056
5057 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5058
5059 * proc-api.c (_STRUCTURED_PROC): Don't define.
5060 * proc-events.c: Likewise.
5061 * proc-flags.c: Likewise.
5062 * proc-why.c: Likewise.
5063 * procfs.c: Likewise.
5064
5065 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5066 * configure, config.in: Regenerate.
5067
5068 2020-07-30 Tom de Vries <tdevries@suse.de>
5069
5070 PR build/26320
5071 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5072 m_red/m_green/m_blue in a union.
5073
5074 2020-07-29 Tom de Vries <tdevries@suse.de>
5075
5076 PR tdep/26280
5077 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5078
5079 2020-07-28 Tom Tromey <tromey@adacore.com>
5080
5081 PR symtab/26270:
5082 * symtab.h (find_pc_partial_function_sym): Declare.
5083 * cli/cli-cmds.c (disassemble_command): Use
5084 find_pc_partial_function_sym. Check asm_demangle.
5085 * blockframe.c (cache_pc_function_sym): New global.
5086 (cache_pc_function_name): Remove.
5087 (clear_pc_function_cache): Update.
5088 (find_pc_partial_function_sym): New function, from
5089 find_pc_partial_function.
5090 (find_pc_partial_function): Rewrite using
5091 find_pc_partial_function_sym.
5092
5093 2020-07-28 Tom Tromey <tromey@adacore.com>
5094
5095 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5096 help. Add usage.
5097
5098 2020-07-28 Tom Tromey <tromey@adacore.com>
5099
5100 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5101 <DW_OP_GNU_variable_value>: Cast to address type.
5102
5103 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5104
5105 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5106 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5107 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5108 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5109 (nbsd_get_siginfo_type): New.
5110 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5111 (_initialize_nbsd_tdep): New.
5112
5113 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5114
5115 PR binutils/26301
5116 * configure: Regenerated.
5117
5118 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5119
5120 PR binutils/26301
5121 * configure: Regenerated.
5122
5123 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5124
5125 * python/py-frame.c: Remove 'user-regs.h' include.
5126 (frapy_read_register): Rewrite to make use of
5127 gdbpy_parse_register_id.
5128 * python/py-registers.c (gdbpy_parse_register_id): New function,
5129 moved here from python/py-unwind.c. Updated the return type, and
5130 also accepts register descriptor objects.
5131 * python/py-unwind.c: Remove 'user-regs.h' include.
5132 (pyuw_parse_register_id): Moved to python/py-registers.c.
5133 (unwind_infopy_add_saved_register): Update to use
5134 gdbpy_parse_register_id.
5135 (pending_framepy_read_register): Likewise.
5136 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5137
5138 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5139
5140 * python/py-registers.c: Add 'user-regs.h' include.
5141 (register_descriptor_iter_find): New function.
5142 (register_descriptor_iterator_object_methods): New static global
5143 methods array.
5144 (register_descriptor_iterator_object_type): Add pointer to methods
5145 array.
5146
5147 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5148
5149 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5150 for all architectures on FreeBSD 11.3 and later.
5151
5152 2020-07-27 Tom Tromey <tromey@adacore.com>
5153
5154 * gcore.h (load_corefile): Don't declare.
5155
5156 2020-07-27 Tom de Vries <tdevries@suse.de>
5157
5158 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5159 * config.in: Regenerate.
5160 * configure: Regenerate.
5161
5162 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5163
5164 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5165 ws2tcpip.h. When checking whether socklen_t type is defined, use
5166 ws2tcpip.h if it is available and sys/socket.h isn't.
5167 * configure: Regenerate.
5168 * config.in: Regenerate.
5169
5170 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5171
5172 PR fortran/23051
5173 PR fortran/26139
5174 * valops.c (value_ind): Pass address to
5175 readjust_indirect_value_type.
5176 * value.c (readjust_indirect_value_type): Make parameter
5177 non-const, and add extra address parameter. Resolve original type
5178 before using it.
5179 * value.h (readjust_indirect_value_type): Update function
5180 signature and comment.
5181
5182 2020-07-25 Tom de Vries <tdevries@suse.de>
5183
5184 PR symtab/26243
5185 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5186 entries.
5187
5188 2020-07-24 Aaron Merey <amerey@redhat.com>
5189
5190 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5191 * configure: Rebuild.
5192
5193 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5194
5195 PR corefiles/26294
5196 * corelow.c (_initialize_corelow): Add period to help text
5197 for "maintenance print core-file-backed-mappings".
5198
5199 2020-07-23 Pedro Alves <pedro@palves.net>
5200
5201 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5202 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5203 meanwhile.
5204 * frame.c (frame_cache_generation, get_frame_cache_generation):
5205 New.
5206 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5207 (get_prev_frame_if_no_cycle): On exception, don't touch
5208 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5209 * frame.h (get_frame_cache_generation): Declare.
5210
5211 2020-07-23 Tom de Vries <tdevries@suse.de>
5212
5213 PR tui/26282
5214 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5215 New default constructor.
5216
5217 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5218
5219 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5220 exclude non-statement entries.
5221
5222 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5223
5224 * NEWS (New commands): Mention new command
5225 "maintenance print core-file-backed-mappings".
5226
5227 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5228
5229 * corelow.c (gdbcmd.h): Include.
5230 (core_target::info_proc_mappings): New method.
5231 (get_current_core_target): New function.
5232 (maintenance_print_core_file_backed_mappings): New function.
5233 (_initialize_corelow): Add core-file-backed-mappings to
5234 "maint print" commands.
5235
5236 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5237
5238 * linux-tdep.c (dump_note_entry_p): New function.
5239 (linux_dump_mapping_p_ftype): New typedef.
5240 (linux_find_memory_regions_full): Add new parameter,
5241 should_dump_mapping_p.
5242 (linux_find_memory_regions): Adjust call to
5243 linux_find_memory_regions_full.
5244 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5245 call to linux_find_memory_regions_full.
5246
5247 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5248
5249 * corelow.c (solist.h, unordered_map): Include.
5250 (class core_target): Add field m_core_file_mappings and
5251 method build_file_mappings.
5252 (core_target::core_target): Call build_file_mappings.
5253 (core_target::~core_target): Free memory associated with
5254 m_core_file_mappings.
5255 (core_target::build_file_mappings): New method.
5256 (core_target::xfer_partial): Use m_core_file_mappings
5257 for memory transfers.
5258 * linux-tdep.c (linux_read_core_file_mappings): New
5259 function.
5260 (linux_core_info_proc_mappings): Rewrite to use
5261 linux_read_core_file_mappings.
5262 (linux_init_abi): Register linux_read_core_file_mappings.
5263
5264 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5265
5266 * arch-utils.c (default_read_core_file_mappings): New function.
5267 * arch-utils.c (default_read_core_file_mappings): Declare.
5268 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5269 * gdbarch.h, gdbarch.c: Regenerate.
5270
5271 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5272
5273 PR corefiles/25631
5274 * corelow.c (core_target:xfer_partial): Revise
5275 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5276 case after first checking the stratum beneath the core
5277 target.
5278 (has_all_memory): Return true.
5279 * target.c (raw_memory_xfer_partial): Revise comment
5280 regarding use of has_all_memory.
5281
5282 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5283
5284 * exec.h (section_table_xfer_memory): Revise declaration,
5285 replacing section name parameter with an optional callback
5286 predicate.
5287 * exec.c (section_table_xfer_memory): Likewise.
5288 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5289 of section_table_xfer_memory.
5290
5291 2020-07-22 Tom Tromey <tromey@adacore.com>
5292
5293 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5294 lookup_symbol_search_name.
5295
5296 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5297
5298 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5299 redundant local variable.
5300 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5301 reference, not pointer, update code accordingly.
5302
5303 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5304 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5305
5306 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5307 * jit.c (jit_breakpoint_re_set_internal): Use the
5308 `skip_jit_symbol_lookup` field.
5309
5310 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5311 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5312
5313 * jit.c (jit_read_descriptor): Define the descriptor address once,
5314 use twice.
5315 (jit_breakpoint_deleted): Move the declaration of the loop variable
5316 `iter` into the loop header.
5317 (jit_breakpoint_re_set_internal): Move the declaration of the local
5318 variable `objf_data` to the first point of definition.
5319 (jit_event_handler): Move the declaration of local variables
5320 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5321 Rename `objf` to `jited`.
5322
5323 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5324
5325 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5326 Remove.
5327 * jit.c (get_jiter_objfile_data): Update.
5328
5329 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5330 Simon Marchi <simon.marchi@polymtl.ca>
5331
5332 * jit.c (struct jit_program_space_data): Remove.
5333 (jit_program_space_key): Remove.
5334 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5335 stuff.
5336 (get_jit_program_space_data): Remove.
5337 (jit_breakpoint_deleted): Iterate on all of the program space's
5338 objfiles.
5339 (jit_inferior_init): Likewise.
5340 (jit_breakpoint_re_set_internal): Likewise. Also change return
5341 type to void.
5342 (jit_breakpoint_re_set): Pass current_program_space to
5343 jit_breakpoint_re_set_internal.
5344
5345 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5346
5347 * jit.h (struct jiter_objfile_data) <cached_code_address,
5348 jit_breakpoint>: Move to here from ...
5349 * jit.c (jit_program_space_data): ... here.
5350 (jiter_objfile_data::~jiter_objfile_data): Update.
5351 (jit_breakpoint_deleted): Update.
5352 (jit_breakpoint_re_set_internal): Update.
5353
5354 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5355
5356 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5357 checks.
5358 (jit_read_descriptor): Remove NULL check.
5359 (jit_event_handler): Add an assertion.
5360
5361 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5362
5363 * jit.h (struct jit_objfile_data): Split into...
5364 (struct jiter_objfile_data): ... this ...
5365 (struct jited_objfile_data): ... and this.
5366 * objfiles.h (struct objfile) <jit_data>: Remove.
5367 <jiter_data, jited_data>: New fields.
5368 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5369 (jiter_objfile_data::~jiter_objfile_data): ... this.
5370 (get_jit_objfile_data): Rename to ...
5371 (get_jiter_objfile_data): ... this.
5372 (add_objfile_entry): Update.
5373 (jit_read_descriptor): Use get_jiter_objfile_data.
5374 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5375 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5376 (jit_inferior_exit_hook): Use objfile's jited_data field.
5377
5378 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5379
5380 * jit.h: Forward-declare `struct minimal_symbol`.
5381 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5382 constructor, destructor, and an objfile* field.
5383 * jit.c (jit_objfile_data): Remove.
5384 (struct jit_objfile_data): Migrate from here to jit.h.
5385 (jit_objfile_data::~jit_objfile_data): New destructor
5386 implementation with code moved from free_objfile_data.
5387 (free_objfile_data): Delete.
5388 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5389 (jit_find_objf_with_entry_addr): Ditto.
5390 (jit_inferior_exit_hook): Ditto.
5391 (_initialize_jit): Remove the call to
5392 register_objfile_data_with_cleanup.
5393 * objfiles.h (struct objfile) <jit_data>: New field.
5394
5395 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5396
5397 * jit.h: Forward-declare `struct objfile`.
5398 (jit_event_handler): Add a second parameter, the JITer objfile.
5399 * jit.c (jit_read_descriptor): Change the signature to take the
5400 JITer objfile as an argument instead of the jit_program_space_data.
5401 (jit_inferior_init): Update the call to jit_read_descriptor.
5402 (jit_event_handler): Use the new JITer objfile argument when calling
5403 jit_read_descriptor.
5404 * breakpoint.c (handle_jit_event): Update the call to
5405 jit_event_handler to pass the JITer objfile.
5406
5407 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5408
5409 * gdbarch.c: Regenerate.
5410 * gdbarch.h: Regenerate.
5411 * gdbarch.sh (handle_segmentation_fault): Remove method.
5412 * infrun.c (handle_segmentation_fault): Remove.
5413 (print_signal_received_reason): Remove call to
5414 handle_segmentation_fault.
5415
5416 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5417
5418 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5419 Rename to sparc64_linux_report_signal_info and add siggnal
5420 argument.
5421 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5422 instead of sparc64_linux_handle_segmentation_fault.
5423
5424 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5425
5426 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5427 i386_linux_report_signal_info instead of
5428 i386_linux_handle_segmentation_fault.
5429 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5430 to i386_linux_report_signal_info and add siggnal argument.
5431 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5432 of i386_linux_handle_segmentation_fault.
5433 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5434 to i386_linux_report_signal_info and add siggnal argument.
5435
5436 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5437
5438 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5439 hook if present.
5440
5441 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5442
5443 * gdbarch.c: Regenerate.
5444 * gdbarch.h: Regenerate.
5445 * gdbarch.sh (report_signal_info): New method.
5446 * infrun.c (print_signal_received_reason): Invoke gdbarch
5447 report_signal_info hook if present.
5448
5449 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5450
5451 * python/py-registers.c : Add 'unordered_map' include.
5452 (gdbpy_new_reggroup): Renamed to...
5453 (gdbpy_get_reggroup): ...this. Update to only create register
5454 group descriptors when needed.
5455 (gdbpy_reggroup_iter_next): Update.
5456
5457 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5458
5459 * python/py-registers.c (gdbpy_register_object_data): New static
5460 global.
5461 (gdbpy_register_object_data_init): New function.
5462 (gdbpy_new_register_descriptor): Renamed to...
5463 (gdbpy_get_register_descriptor): ...this, and update to reuse
5464 existing register descriptors where possible.
5465 (gdbpy_register_descriptor_iter_next): Update.
5466 (gdbpy_initialize_registers): Register new gdbarch data.
5467
5468 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5469
5470 * linux-nat.c (stopped_pids): Make static.
5471
5472 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5473
5474 PR ada/26235
5475 * gdbtypes.c (ada_discrete_type_low_bound,
5476 ada_discrete_type_high_bound): Handle undefined bounds.
5477
5478 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5479
5480 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5481 declaration.
5482 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5483 function.
5484
5485 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5486
5487 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5488 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5489 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5490 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5491 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5492 method.
5493
5494 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5495
5496 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5497 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5498 which are deprecated in Guile 3.0.
5499 * configure.ac (try_guile_versions): Add "guile-3.0".
5500 * configure (try_guile_versions): Regenerate.
5501 * NEWS: Update entry.
5502
5503 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5504 Doug Evans <dje@google.com>
5505
5506 PR gdb/21104
5507 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5508 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5509 USING_GUILE_BEFORE_2_2.
5510 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5511 Change type to 'scm_t_port_type *'.
5512 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5513 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5514 parameter and honor it. Update callers.
5515 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5516 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5517 functions.
5518 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5519 USING_GUILE_BEFORE_2_2.
5520 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5521 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5522 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5523 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5524 and 'SCM_PORT_TYPE'.
5525 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5526 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5527 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5528 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5529 [!USING_GUILE_BEFORE_2_2]: New functions.
5530 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5531 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5532 'gdbscm_memory_port_read'.
5533 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5534 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5535 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5536 function.
5537 (ioscm_init_memory_port): Remove.
5538 (ioscm_init_memory_port_stream): New function
5539 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5540 function.
5541 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5542 Return scm_from_uint (0).
5543 (gdbscm_set_memory_port_read_buffer_size_x)
5544 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5545 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5546 Return scm_from_uint (0).
5547 (gdbscm_set_memory_port_write_buffer_size_x)
5548 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5549 * configure.ac (try_guile_versions): Add "guile-2.2".
5550 * configure: Regenerate.
5551 * NEWS: Add entry.
5552
5553 2020-07-18 Tom Tromey <tom@tromey.com>
5554
5555 * linux-nat.c (linux_multi_process): Remove.
5556 (linux_nat_target::supports_multi_process): Return true.
5557
5558 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5559
5560 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5561 (riscv_lookup_target_description): Return pointer out of
5562 unique_ptr.
5563 * target-descriptions.c (allocate_target_description): Add
5564 comment.
5565 (target_desc_deleter::operator()): Likewise.
5566 * target-descriptions.h (struct target_desc_deleter): Moved to
5567 gdbsupport/tdesc.h.
5568 (target_desc_up): Likewise.
5569
5570 2020-07-17 Tom Tromey <tromey@adacore.com>
5571
5572 * linux-nat.c (linux_nat_target::supports_non_stop)
5573 (linux_nat_target::always_non_stop_p): Use "true".
5574 (linux_nat_target::supports_disable_randomization): Use "true" and
5575 "false".
5576
5577 2020-07-16 Caroline Tice <cmtice@google.com>
5578
5579 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5580 (RNGLIST_HEADER_SIZE64): New constant definition.
5581 (struct dwop_section_names): Add rnglists_dwo.
5582 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5583 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5584 (struct dwo_sections): Add rnglists field.
5585 (read_attribut_reprocess): Add tag parameter.
5586 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5587 (cu_debug_rnglists_section): New function (decl & definition).
5588 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5589 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5590 die whose range is being checked; get rnglist section from
5591 cu_debug_rnglists_section, to get from either objfile or dwo file as
5592 appropriate. Add cases for DW_RLE_base_addressx,
5593 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5594 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5595 test inside if-condition and updating complaint message.
5596 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5597 dwarf2_rnglists_process.
5598 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5599 dwarf2_ranges_process.
5600 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5601 need_ranges_base and update comment appropriately. Also pass die tag
5602 to dwarf2_ranges_read.
5603 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5604 need_ranges_base and update comment appropriately. Also pass die tag
5605 to dwarf2_ranges_process.
5606 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5607 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5608 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5609 need_ranges_base and update comment appropriately. Also pass die tag
5610 to read_attribute_reprocess and dwarf2_ranges_read.
5611 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5612 and update function comment appropriately.
5613 (read_loclist_index): Call read_loclists_rnglists_header instead of
5614 read_loclist_header.
5615 (read_rnglist_index): New function.
5616 (read_attribute_reprocess): Add tag parameter. Add code for
5617 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5618 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5619
5620 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5621
5622 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5623 being resolved.
5624
5625 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5626
5627 * arch-utils.c (show_architecture): Update formatting of messages.
5628
5629 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5630
5631 * gdbtypes.h (struct type) <bounds>: Handle array and string
5632 types.
5633 * ada-lang.c (assign_aggregate): Use type::bounds on
5634 array/string type.
5635 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5636 * c-varobj.c (c_number_of_children): Likewise.
5637 (c_describe_child): Likewise.
5638 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5639 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5640 (f_type_print_base): Likewise.
5641 * f-valprint.c (f77_array_offset_tbl): Likewise.
5642 (f77_get_upperbound): Likewise.
5643 (f77_print_array_1): Likewise.
5644 * guile/scm-type.c (gdbscm_type_range): Likewise.
5645 * m2-typeprint.c (m2_array): Likewise.
5646 (m2_is_long_set_of_type): Likewise.
5647 * m2-valprint.c (get_long_set_bounds): Likewise.
5648 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5649 * python/py-type.c (typy_range): Likewise.
5650 * rust-lang.c (rust_internal_print_type): Likewise.
5651 * type-stack.c (type_stack::follow_types): Likewise.
5652 * valarith.c (value_subscripted_rvalue): Likewise.
5653 * valops.c (value_cast): Likewise.
5654
5655 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5656
5657 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5658 callers to use the equivalent accessor methods.
5659
5660 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5661
5662 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5663 (struct type) <bit_stride>: New method.
5664 (TYPE_BIT_STRIDE): Remove.
5665 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5666
5667 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5668
5669 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5670 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5671 callers to use the equivalent accessor methods instead.
5672
5673 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5674
5675 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5676 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5677 callers to use the equivalent accessor methods instead.
5678
5679 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5682 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5683 to use dynamic_prop::kind.
5684
5685 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5686
5687 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5688 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5689 to get the bound property's kind and check against
5690 PROP_UNDEFINED.
5691
5692 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5693
5694 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5695 all callers to use type::range_bounds followed by
5696 dynamic_prop::{low,high}.
5697
5698 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5699
5700 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5701 const_val, set_const_val, baton, set_locexpr, set_loclist,
5702 set_addr_offset, variant_parts, set_variant_parts,
5703 original_type, set_original_type>: New methods.
5704 <kind>: Rename to...
5705 <m_kind>: ... this. Update all users to use the new methods
5706 instead.
5707 <data>: Rename to...
5708 <m_data>: ... this. Update all users to use the new methods
5709 instead.
5710
5711 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5712
5713 * gdbtypes.c (get_discrete_bounds): Return failure if
5714 the range type's bounds are not both defined and constant
5715 values.
5716 (get_array_bounds): Update comment. Remove undefined bound check.
5717
5718 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5719
5720 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5721 the type::bounds method directly.
5722
5723 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5726 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5727 are used to set the range type's bounds to use set_bounds.
5728
5729 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5730
5731 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5732
5733 2020-07-10 Pedro Alves <pedro@palves.net>
5734
5735 * gdbthread.h (inferior_ref): Define.
5736 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5737 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5738 * thread.c
5739 (scoped_restore_current_thread::restore):
5740 Adjust to gdb::ref_ptr.
5741 (scoped_restore_current_thread::~scoped_restore_current_thread):
5742 Remove manual decref handling.
5743 (scoped_restore_current_thread::scoped_restore_current_thread):
5744 Adjust to use
5745 inferior_ref::new_reference/thread_info_ref::new_reference.
5746 Incref the thread before calling get_frame_id instead of after.
5747 Let TARGET_CLOSE_ERROR propagate.
5748
5749 2020-07-10 Pedro Alves <pedro@palves.net>
5750
5751 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5752 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5753 NOT_AVAILABLE_ERROR.
5754 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5755 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5756
5757 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5758 Pedro Alves <pedro@palves.net>
5759
5760 PR gdb/26199
5761 * infrun.c (threads_are_resumed_pending_p): Delete.
5762 (do_target_wait): Remove threads_are_executing and
5763 threads_are_resumed_pending_p checks from the inferior_matches
5764 lambda. Update comments.
5765
5766 2020-07-10 Pedro Alves <pedro@palves.net>
5767
5768 PR gdb/26199
5769 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5770 executing threads.
5771
5772 2020-07-10 Pedro Alves <pedro@palves.net>
5773
5774 PR gdb/26199
5775 * infrun.c (handle_no_resumed): Handle multiple targets.
5776
5777 2020-07-10 Pedro Alves <pedro@palves.net>
5778
5779 PR gdb/26199
5780 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5781 target_is_async_p.
5782
5783 2020-07-10 Pedro Alves <pedro@palves.net>
5784
5785 PR gdb/26199
5786 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5787 threads, not all threads.
5788
5789 2020-07-10 Pedro Alves <pedro@palves.net>
5790
5791 PR gdb/26199
5792 * remote.c (remote_target::open_1): Pass remote target pointer as
5793 data to create_async_event_handler.
5794 (remote_async_inferior_event_handler): Mark async event handler
5795 before returning if the remote target still has either pending
5796 events or unacknowledged notifications.
5797
5798 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5799
5800 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5801 declaration.
5802 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5803 function.
5804
5805 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5806
5807 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5808 inferior_ptid.
5809
5810 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5811
5812 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5813 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5814 AT_FREEBSD_PS_STRINGS.
5815
5816 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5817
5818 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5819 of debugfile path on Windows.
5820
5821 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5822
5823 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5824 argument to 'data'.
5825
5826 2020-07-08 Tom Tromey <tromey@adacore.com>
5827
5828 * ada-lang.c (ada_exception_message_1): Use read_memory.
5829
5830 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5831
5832 PR python/22748
5833 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5834 special handling for inline frames.
5835 * findvar.c (value_of_register_lazy): Skip inline frames when
5836 creating lazy register values.
5837 * frame.c (frame_id_computed_p): Delete definition.
5838 * frame.h (frame_id_computed_p): Delete declaration.
5839
5840 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5841
5842 * NEWS: Mention additions to Python API.
5843 * python/py-arch.c (archpy_register_groups): New function.
5844 (arch_object_methods): Add 'register_groups' method.
5845 * python/py-registers.c (reggroup_iterator_object): New struct.
5846 (reggroup_object): New struct.
5847 (gdbpy_new_reggroup): New function.
5848 (gdbpy_reggroup_to_string): New function.
5849 (gdbpy_reggroup_name): New function.
5850 (gdbpy_reggroup_iter): New function.
5851 (gdbpy_reggroup_iter_next): New function.
5852 (gdbpy_new_reggroup_iterator): New function
5853 (gdbpy_initialize_registers): Register new types.
5854 (reggroup_iterator_object_type): Define new Python type.
5855 (gdbpy_reggroup_getset): New static global.
5856 (reggroup_object_type): Define new Python type.
5857 * python/python-internal.h
5858
5859 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5860
5861 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5862 * python/py-arch.c (archpy_registers): New function.
5863 (arch_object_methods): Add 'registers' method.
5864 * python/py-registers.c: New file.
5865 * python/python-internal.h
5866 (gdbpy_new_register_descriptor_iterator): Declare.
5867 (gdbpy_initialize_registers): Declare.
5868 * python/python.c (do_start_initialization): Call
5869 gdbpy_initialize_registers.
5870 * NEWS: Mention additions to the Python API.
5871
5872 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5873
5874 * NEWS: Mention new Python API method.
5875 * python/py-unwind.c (pending_framepy_architecture): New function.
5876 (pending_frame_object_methods): Add architecture method.
5877
5878 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5879
5880 * gdbarch.c: Regenerate.
5881 * gdbarch.h: Regenerate.
5882 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5883 (gdbarch_data): Use internal_error for the case where
5884 deprecated_set_gdbarch_data was originally needed.
5885 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5886 and use passed in obstack.
5887 (libunwind_frame_set_descr): Should no longer get back NULL from
5888 gdbarch_data.
5889 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5890 type.
5891 * user-regs.c (user_regs_init): Update parameters, and use passed
5892 in obstack.
5893 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5894 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5895
5896 2020-07-06 Tom de Vries <tdevries@suse.de>
5897
5898 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5899 End-Of-Sequence in lte_is_less_than.
5900 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5901 "gdb: Don't reorder line table entries too much when sorting".
5902
5903 2020-07-06 Tom de Vries <tdevries@suse.de>
5904
5905 PR tui/26205
5906 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5907
5908 2020-07-05 Tom de Vries <tdevries@suse.de>
5909
5910 PR build/26187
5911 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5912 std::uncaught_exceptions instead of deprecated
5913 std::uncaught_exception.
5914
5915 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5916
5917 * macroexp.h (macro_stringify): Return
5918 gdb::unique_xmalloc_ptr<char>.
5919 * macroexp.c (macro_stringify): Likewise.
5920 * macrotab.c (fixup_definition): Update.
5921
5922 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5923
5924 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5925 (lex_one_token): Update.
5926 * macroexp.c (struct macro_buffer) <release>: Return
5927 gdb::unique_xmalloc_ptr<char>.
5928 (macro_stringify): Update.
5929 (macro_expand): Update.
5930 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5931 * macroexp.h (macro_expand_next): Likewise.
5932
5933 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5934
5935 * macroexp.h (macro_lookup_ftype): Remove.
5936 (macro_expand, macro_expand_once, macro_expand_next): Remove
5937 lookup function parameters, add scope parameter.
5938 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5939 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5940 * macroscope.h (standard_macro_lookup): Change parameter type
5941 to macro_scope.
5942 * macroscope.c (standard_macro_lookup): Likewise.
5943 * c-exp.y (lex_one_token): Update.
5944 * macrocmd.c (macro_expand_command): Likewise.
5945 (macro_expand_once_command): Likewise.
5946
5947 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5948
5949 * inf-loop.c (inferior_event_handler): Remove client_data param.
5950 * inf-loop.h (inferior_event_handler): Likewise.
5951 * infcmd.c (step_1): Adjust.
5952 * infrun.c (proceed): Adjust.
5953 (fetch_inferior_event): Remove client_data param.
5954 (infrun_async_inferior_event_handler): Adjust.
5955 * infrun.h (fetch_inferior_event): Remove `void *` param.
5956 * linux-nat.c (handle_target_event): Adjust.
5957 * record-btrace.c (record_btrace_handle_async_inferior_event):
5958 Adjust.
5959 * record-full.c (record_full_async_inferior_event_handler):
5960 Adjust.
5961 * remote.c (remote_async_inferior_event_handler): Adjust.
5962
5963 2020-07-01 Tom Tromey <tom@tromey.com>
5964
5965 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5966 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5967
5968 2020-07-01 Tom Tromey <tom@tromey.com>
5969
5970 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5971 tui_gen_win_info.
5972 (tui_win_info::make_window): Merge with
5973 tui_gen_win_info::make_window.
5974 (tui_win_info::make_visible): Move from tui_gen_win_info.
5975 * tui/tui-win.c (tui_win_info::max_width): Move from
5976 tui_gen_win_info.
5977 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5978 type.
5979 <window_factory>: Likewise.
5980 * tui/tui-layout.c (tui_win_info::resize): Move from
5981 tui_gen_win_info.
5982 (make_standard_window): Change return type.
5983 (get_locator_window, tui_get_window_by_name): Likewise.
5984 (tui_layout_window::apply): Remove a cast.
5985 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5986 (struct tui_win_info): Merge with tui_gen_win_info.
5987 (struct tui_gen_win_info): Remove.
5988
5989 2020-07-01 Tom Tromey <tom@tromey.com>
5990
5991 * tui/tui-stack.h (struct tui_locator_window): Derive from
5992 tui_win_info.
5993 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5994 <can_box>: New method.
5995
5996 2020-07-01 Tom Tromey <tom@tromey.com>
5997
5998 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5999
6000 2020-07-01 Tom Tromey <tom@tromey.com>
6001
6002 * tui/tui-regs.c (tui_data_window::display_registers_from)
6003 (tui_data_window::display_registers_from)
6004 (tui_data_window::first_data_item_displayed)
6005 (tui_data_window::delete_data_content_windows): Update.
6006 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6007 Remove.
6008 (tui_data_window::check_register_values): Update.
6009 (tui_data_item_window::rerender): Add parameters. Update.
6010 (tui_data_item_window::refresh_window): Remove.
6011 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6012 virtual.
6013 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6014 tui_gen_win_info.
6015 <refresh_window, max_height, min_height>: Remove.
6016 <rerender>: Add parameters.
6017 <x, y, visible>: New members.
6018 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6019 <m_item_width>: New member.
6020
6021 2020-07-01 Tom Tromey <tom@tromey.com>
6022
6023 * tui/tui-regs.c (tui_data_window::show_register_group)
6024 (tui_data_window::check_register_values): Update.
6025 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6026 from item_no.
6027
6028 2020-07-01 Tom Tromey <tom@tromey.com>
6029
6030 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6031 useless "if".
6032
6033 2020-07-01 Tom Tromey <tom@tromey.com>
6034
6035 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6036 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6037
6038 2020-07-01 Tom Tromey <tom@tromey.com>
6039
6040 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6041 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6042 (struct tui_line_or_address): Move from tui-data.h.
6043 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6044 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6045 (tui_cmd_window, tui_source_window_base, tui_source_window)
6046 (tui_disasm_window): Don't declare.
6047 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6048 to tui-winsource.h.
6049 (SINGLE_KEY): Move to tui-stack.c.
6050
6051 2020-07-01 Tom Tromey <tom@tromey.com>
6052
6053 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6054 std::string.
6055 * tui/tui-regs.c (class tab_expansion_file): New.
6056 (tab_expansion_file::write): New method.
6057 (tui_register_format): Change return type. Use
6058 tab_expansion_file.
6059 (tui_get_register, tui_data_window::display_registers_from)
6060 (tui_data_item_window::rerender): Update.
6061 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6062 * tui/tui-io.c (tui_expand_tabs): Remove.
6063
6064 2020-07-01 Tom Tromey <tom@tromey.com>
6065
6066 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6067
6068 2020-07-01 Fangrui Song <maskray@google.com>
6069
6070 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6071
6072 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6073
6074 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6075 forms for DW_AT_associated and DW_AT_allocated attributes,
6076 which is already checked in function attr_to_dynamic_prop.
6077
6078 2020-06-30 Tom Tromey <tromey@adacore.com>
6079
6080 * dwarf2/read.c (quirk_rust_enum): Correctly call
6081 alloc_rust_variant for default-less enum.
6082
6083 2020-06-30 Tom Tromey <tromey@adacore.com>
6084
6085 PR build/26183:
6086 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6087 gdb::to_string.
6088
6089 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6090
6091 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6092 * gdbarch.h: Re-generate.
6093
6094 2020-06-28 Tom Tromey <tom@tromey.com>
6095
6096 * command.h (cmd_types): Remove.
6097 (cmd_type): Don't declare.
6098 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6099 typedef.
6100 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6101 * cli/cli-decode.c (cmd_type): Remove.
6102
6103 2020-06-27 Pedro Alves <palves@redhat.com>
6104
6105 * fork-child.c (prefork_hook): Adjust.
6106 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6107 Delete.
6108 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6109 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6110 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6111 Remove declarations.
6112 (struct inferior) <set_tty, tty>: New methods.
6113 (struct inferior) <terminal>: Rename to ...
6114 (struct inferior) <m_terminal>: ... this and make private.
6115 * main.c (captured_main_1): Adjust.
6116 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6117 (mi_cmd_inferior_tty_show): Adjust.
6118 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6119 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6120
6121 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6122
6123 * configure.ac: Add --enable-libctf: handle --disable-static
6124 properly.
6125 * acinclude.m4: sinclude ../config/enable.m4.
6126 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6127 (LIBCTF): Substitute in.
6128 (CTF_DEPS): New, likewise.
6129 (CLIBS): libctf needs symbols from libbfd: move earlier.
6130 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6131 flags.
6132 * ctfread.c: Surround in ENABLE_LIBCTF.
6133 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6134 * configure: Regenerate.
6135 * config.in: Likewise.
6136
6137 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6138
6139 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6140
6141 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6142
6143 * inferior.h (struct inferior) <terminal>: Change type to
6144 gdb::unique_xmalloc_ptr<char>.
6145 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6146 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6147 field, adjust to unique pointer.
6148 (get_inferior_io_terminal): Adjust to unique pointer.
6149
6150 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6151
6152 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6153 registers, not just the known core set of registers.
6154
6155 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6156
6157 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6158 fflags, frm, and fcsr registers.
6159 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6160 restore groups.
6161 (riscv_tdesc_unknown_reg): New function.
6162 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6163 tdesc_use_registers.
6164 * riscv-tdep.h (struct gdbarch_tdep): Add
6165 unknown_csrs_first_regnum, unknown_csrs_count,
6166 duplicate_fflags_regnum, duplicate_frm_regnum, and
6167 duplicate_fcsr_regnum fields.
6168
6169 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6170
6171 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6172 callback, use the callback (when not null) to help number unknown
6173 registers.
6174 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6175 (tdesc_use_registers): Add extra parameter to declaration.
6176
6177 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6178
6179 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6180 in the file.
6181 (class riscv_pending_register_alias): Likewise.
6182 (riscv_register_feature::register_info): Change 'required_p' field
6183 to 'required', and change its type. Add 'check' member function.
6184 (riscv_register_feature::register_info::check): Define new member
6185 function.
6186 (riscv_xreg_feature): Change initialisation of 'required' field.
6187 (riscv_freg_feature): Likewise.
6188 (riscv_virtual_feature): Likewise.
6189 (riscv_csr_feature): Likewise.
6190 (riscv_check_tdesc_feature): Take extra parameter, the csr
6191 tdesc_feature, rewrite the function to use the new
6192 riscv_register_feature::register_info::check function.
6193 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6194
6195 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6196
6197 * features/Makefile: Remove all references to the deleted files
6198 below.
6199 * features/riscv/32bit-csr.c: Deleted.
6200 * features/riscv/32bit-csr.xml: Deleted.
6201 * features/riscv/64bit-csr.c: Deleted.
6202 * features/riscv/64bit-csr.xml: Deleted.
6203 * features/riscv/rebuild-csr-xml.sh: Deleted.
6204
6205 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6206
6207 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6208 whitespace error for declaration of names member variable.
6209 (struct riscv_register_feature): Add new prefer_first_name member
6210 variable, and fix whitespace error in declaration of registers.
6211 (riscv_xreg_feature): Initialize prefer_first_name field.
6212 (riscv_freg_feature): Likewise.
6213 (riscv_virtual_feature): Likewise.
6214 (riscv_csr_feature): Likewise.
6215 (riscv_register_name): Expand on comments. Remove register name
6216 modifications for CSR and virtual registers.
6217
6218 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6219
6220 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6221 errors.
6222
6223 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6224
6225 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6226 riscv-opc.h.
6227 (class riscv_pending_register_alias): New class.
6228 (riscv_check_tdesc_feature): Take vector of pending aliases and
6229 populate it as appropriate.
6230 (riscv_setup_register_aliases): Delete.
6231 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6232 to riscv_check_tdesc_feature in all cases. Use the vector to
6233 create the register aliases.
6234
6235 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6236
6237 * sol2-tdep.c (sol2_static_transform_name): Remove.
6238 (sol2_init_abi): Don't register it.
6239 * gdbarch.sh (static_transform_name): Remove.
6240 * gdbarch.c, gdbarch.h: Regenerate.
6241
6242 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6243 gdbarch_static_transform_name.
6244 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6245 * stabsread.c (define_symbol) <'X'>: Remove.
6246 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6247 handling.
6248 <'V'>: Likewise.
6249 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6250 <'S'>: Remove call to gdbarch_static_transform_name.
6251
6252 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6253
6254 * procfs.c (procfs_pre_trace): New function.
6255 (procfs_target::create_inferior): Pass it to fork_inferior.
6256
6257 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6258
6259 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6260 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6261 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6262 sol2-tdep.o, sparc-sol2-tdep.o.
6263 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6264 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6265 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6266 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6267
6268 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6269
6270 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6271 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6272 Call sol2_init_abi.
6273 Remove calls to set_gdbarch_skip_solib_resolver,
6274 set_gdbarch_core_pid_to_str.
6275 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6276 (i386_sol2_static_transform_name): Remove.
6277 (i386_sol2_init_abi): Call sol2_init_abi.
6278 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6279 set_gdbarch_static_transform_name,
6280 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6281 Use sol2_sigtramp_p.
6282 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6283 (sol2_sigtramp_p): New function.
6284 (sol2_static_transform_name): New function.
6285 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6286 (sol2_init_abi): New function.
6287 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6288 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6289 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6290 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6291 (sparc_sol2_static_transform_name): Remove.
6292 (sparc32_sol2_init_abi): Call sol2_init_abi.
6293 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6294 set_gdbarch_static_transform_name,
6295 set_gdbarch_skip_solib_resolver,
6296 set_gdbarch_core_pid_to_str.
6297 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6298 (sparc_sol2_static_transform_name): Remove
6299 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6300 call sol2_sigtramp_p.
6301 (sparc64_sol2_init_abi): Call sol2_init_abi.
6302 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6303 set_gdbarch_static_transform_name,
6304 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6305
6306 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6307
6308 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6309 * exec.c (validate_exec_file): If from_tty, set both
6310 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6311 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6312 and from_tty, unconditionally ask a confirmation.
6313
6314 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6315
6316 * target-descriptions.c (tdesc_architecture_name): Protect against
6317 NULL pointer dereference.
6318 (maint_print_xml_tdesc_cmd): New function.
6319 (_initialize_target_descriptions): Register new 'maint print
6320 xml-tdesc' command and give it the filename completer.
6321 * NEWS: Mention new 'maint print xml-tdesc' command.
6322
6323 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6324
6325 * target-descriptions.c (class tdesc_compatible_info): New class.
6326 (struct target_desc): Change type of compatible vector.
6327 (tdesc_compatible_p): Update for change in type of
6328 target_desc::compatible.
6329 (tdesc_compatible_info_list): New function.
6330 (tdesc_compatible_info_arch_name): New function.
6331 (tdesc_add_compatible): Update for change in type of
6332 target_desc::compatible.
6333 (print_c_tdesc::visit_pre): Likewise.
6334
6335 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6336
6337 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6338 whitespace to underscore.
6339 (maint_print_c_tdesc_cmd): Use fake filename for target
6340 descriptions that came from the target.
6341 (_initialize_target_descriptions): Add filename command completion
6342 for 'maint print c-tdesc'.
6343
6344 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6345
6346 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6347 lines.
6348
6349 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6350
6351 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6352 lines.
6353 (dwarf2_find_location_expression): Likewise.
6354 (call_site_parameter_matches): Likewise.
6355 (dwarf2_compile_expr_to_ax): Likewise.
6356 (disassemble_dwarf_expression): Likewise.
6357 (loclist_describe_location): Likewise.
6358
6359 2020-06-23 Pedro Alves <palves@redhat.com>
6360
6361 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6362 progspace-and-thread.h. Include scoped-mock-context.h instead.
6363 (register_to_value_test): Use scoped_mock_context.
6364 * regcache.c: Include "scoped-mock-context.h".
6365 (cooked_read_test): Don't error out if a target is already pushed.
6366 Use scoped_mock_context. Adjust.
6367 * scoped-mock-context.h: New file.
6368
6369 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6370
6371 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6372 initializer.
6373 (ada_language::is_string_type_p): New member function.
6374 * c-lang.c (c_language_data): Delete la_is_string_type_p
6375 initializer.
6376 (cplus_language_data): Likewise.
6377 (asm_language_data): Likewise.
6378 (minimal_language_data): Likewise.
6379 * d-lang.c (d_language_data): Likewise.
6380 * f-lang.c (f_is_string_type_p): Delete function, implementation
6381 moved to f_language::is_string_type_p.
6382 (f_language_data): Delete la_is_string_type_p initializer.
6383 (f_language::is_string_type_p): New member function,
6384 implementation from f_is_string_type_p.
6385 * go-lang.c (go_is_string_type_p): Delete function, implementation
6386 moved to go_language::is_string_type_p.
6387 (go_language_data): Delete la_is_string_type_p initializer.
6388 (go_language::is_string_type_p): New member function,
6389 implementation from go_is_string_type_p.
6390 * language.c (language_defn::is_string_type_p): Define new member
6391 function.
6392 (default_is_string_type_p): Make static, add comment copied from
6393 header file.
6394 (unknown_language_data): Delete la_is_string_type_p initializer.
6395 (unknown_language::is_string_type_p): New member function.
6396 (auto_language_data): Delete la_is_string_type_p initializer.
6397 (auto_language::is_string_type_p): New member function.
6398 * language.h (language_data): Delete la_is_string_type_p field.
6399 (language_defn::is_string_type_p): Declare new function.
6400 (default_is_string_type_p): Delete desclaration, move comment to
6401 definition.
6402 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6403 moved to m2_language::is_string_type_p.
6404 (m2_language_data): Delete la_is_string_type_p initializer.
6405 (m2_language::is_string_type_p): New member function,
6406 implementation from m2_is_string_type_p.
6407 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6408 initializer.
6409 * opencl-lang.c (opencl_language_data): Likewise.
6410 * p-lang.c (pascal_is_string_type_p): Delete function,
6411 implementation moved to pascal_language::is_string_type_p.
6412 (pascal_language_data): Delete la_is_string_type_p initializer.
6413 (pascal_language::is_string_type_p): New member function,
6414 implementation from pascal_is_string_type_p.
6415 * rust-lang.c (rust_is_string_type_p): Delete function,
6416 implementation moved to rust_language::is_string_type_p.
6417 (rust_language_data): Delete la_is_string_type_p initializer.
6418 (rust_language::is_string_type_p): New member function,
6419 implementation from rust_is_string_type_p.
6420 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6421 is_string_type_p.
6422
6423 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6424
6425 * ada-lang.c (ada_language_data): Delete la_print_typedef
6426 initializer.
6427 (ada_language::print_typedef): New member function.
6428 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6429 (cplus_language_data): Likewise.
6430 (asm_language_data): Likewise.
6431 (minimal_language_data): Likewise.
6432 * d-lang.c (d_language_data): Likewise.
6433 * f-lang.c (f_language_data): Likewise.
6434 (f_language::print_typedef): New member function.
6435 * go-lang.c (go_language_data): Delete la_print_typedef
6436 initializer.
6437 * language.c (language_defn::print_typedef): Define member
6438 function.
6439 (unknown_language_data): Delete la_print_typedef initializer.
6440 (unknown_language::print_typedef): New member function.
6441 (auto_language_data): Delete la_print_typedef initializer.
6442 (auto_language::print_typedef): New member function.
6443 * language.h (language_data): Delete la_print_typedef field.
6444 (language_defn::print_typedef): Declare new member function.
6445 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6446 (default_print_typedef): Delete declaration.
6447 * m2-lang.c (m2_language_data): Delete la_print_typedef
6448 initializer.
6449 (m2_language::print_typedef): New member function.
6450 * objc-lang.c (objc_language_data): Delete la_print_typedef
6451 initializer.
6452 * opencl-lang.c (opencl_language_data): Likewise.
6453 * p-lang.c (pascal_language_data): Likewise.
6454 (pascal_language::print_typedef): New member function.
6455 * rust-lang.c (rust_print_typedef): Delete function,
6456 implementation moved to rust_language::print_typedef.
6457 (rust_language): Delete la_print_typedef initializer.
6458 (rust_language::print_typedef): New member function,
6459 implementation from rust_print_typedef.
6460 * typeprint.c (default_print_typedef): Delete.
6461
6462 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6463
6464 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6465 (ada_language::printstr): New member function.
6466 * c-lang.c (c_language_data): Delete la_printstr initializer.
6467 (cplus_language_data): Likewise.
6468 (asm_language_data): Likewise.
6469 (minimal_language_data): Likewise.
6470 * d-lang.c (d_language_data): Likewise.
6471 * f-lang.c (f_printstr): Rename to f_language::printstr.
6472 (f_language_data): Delete la_printstr initializer.
6473 (f_language::printstr): New member function, implementation from
6474 f_printstr.
6475 * go-lang.c (go_language_data): Delete la_printstr initializer.
6476 * language.c (language_defn::printstr): Define new member
6477 function.
6478 (unk_lang_printstr): Delete.
6479 (unknown_language_data): Delete la_printstr initializer.
6480 (unknown_language::printstr): New member function.
6481 (auto_language_data): Delete la_printstr initializer.
6482 (auto_language::printstr): New member function.
6483 * language.h (language_data): Delete la_printstr field.
6484 (language_defn::printstr): Declare new member function.
6485 (LA_PRINT_STRING): Update call to printstr.
6486 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6487 (m2_language_data): Delete la_printstr initializer.
6488 (m2_language::printstr): New member function, implementation from
6489 m2_printstr.
6490 * objc-lang.c (objc_language_data): Delete la_printstr
6491 initializer.
6492 * opencl-lang.c (opencl_language_data): Likewise.
6493 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6494 (pascal_language_data): Delete la_printstr initializer.
6495 (pascal_language::printstr): New member function, implementation
6496 from pascal_printstr.
6497 * p-lang.h (pascal_printstr): Delete declaration.
6498 * rust-lang.c (rust_printstr): Update header comment.
6499 (rust_language_data): Delete la_printstr initializer.
6500 (rust_language::printstr): New member function.
6501
6502 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6503
6504 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6505 (ada_language::printchar): New member function.
6506 * c-lang.c (c_language_data): Delete la_printchar initializer.
6507 (cplus_language_data): Likewise.
6508 (asm_language_data): Likewise.
6509 (minimal_language_data): Likewise.
6510 * d-lang.c (d_language_data): Likewise.
6511 * f-lang.c (f_printchar): Rename to f_language::printchar.
6512 (f_language_data): Delete la_printchar initializer.
6513 (f_language::printchar): New member function, implementation from
6514 f_printchar.
6515 * go-lang.c (go_language_data): Delete la_printchar initializer.
6516 * language.c (unk_lang_printchar): Delete.
6517 (language_defn::printchar): Define new member function.
6518 (unknown_language_data): Delete la_printchar initializer.
6519 (unknown_language::printchar): New member function.
6520 (auto_language_data): Delete la_printchar initializer.
6521 (auto_language::printchar): New member function.
6522 * language.h (language_data): Delete la_printchar field.
6523 (language_defn::printchar): Declare new member function.
6524 (LA_PRINT_CHAR): Update call to printchar.
6525 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6526 (m2_language::printchar): New member function.
6527 * objc-lang.c (objc_language_data): Delete la_printchar
6528 initializer.
6529 * opencl-lang.c (opencl_language_data): Likewise.
6530 * p-lang.c (pascal_language_data): Delete la_printchar
6531 initializer.
6532 (pascal_language::printchar): New member function.
6533 * rust-lang.c (rust_printchar): Rename to
6534 rust_language::printchar.
6535 (rust_language_data): Delete la_printchar initializer.
6536 (rust_language::printchar): New member function, implementation
6537 from rust_printchar.
6538
6539 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6540
6541 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6542 (ada_language_data): Delete la_emitchar initializer.
6543 (ada_language::emitchar): New member function, implementation from
6544 emit_char.
6545 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6546 (cplus_language_data): Likewise.
6547 (asm_language_data): Likewise.
6548 (minimal_language_data): Likewise.
6549 * d-lang.c (d_language_data): Likewise.
6550 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6551 (f_language_data): Delete la_emitchar initializer.
6552 (f_language::emitchar): New member function, implementation from
6553 f_emit_char.
6554 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6555 * language.c (unk_lang_emit_char): Delete.
6556 (language_defn::emitchar): New member function definition.
6557 (unknown_language_data): Delete la_emitchar initializer.
6558 (unknown_language::emitchar): New member function.
6559 (auto_language_data): Delete la_emitchar initializer.
6560 (auto_language::emitchar): New member function.
6561 * language.h (language_data): Delete la_emitchar field.
6562 (language_defn::emitchar): New member field declaration.
6563 (LA_EMIT_CHAR): Update call to emitchar.
6564 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6565 (m2_language_data): Delete la_emitchar initializer.
6566 (m2_language::emitchar): New member function, implementation from
6567 m2_emit_char.
6568 * objc-lang.c (objc_language_data): Delete la_emitchar
6569 initializer.
6570 * opencl-lang.c (opencl_language_data): Likewise.
6571 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6572 (pascal_language_data): Delete la_emitchar initializer.
6573 (pascal_language::emitchar): New member function, implementation
6574 from pascal_emit_char.
6575 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6576 (rust_language_data): Delete la_emitchar initializer.
6577 (rust_language::emitchar): New member function, implementation
6578 from rust_emitchar.
6579
6580 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6581
6582 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6583 (ada_language_data): Delete la_post_parser initializer.
6584 (ada_language::post_parser): New member function.
6585 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6586 (cplus_language_data): Likewise.
6587 (asm_language_data): Likewise.
6588 (minimal_language_data): Likewise.
6589 * d-lang.c (d_language_data): Likewise.
6590 * f-lang.c (f_language_data): Likewise.
6591 * go-lang.c (go_language_data): Likewise.
6592 * language.c (unknown_language_data): Likewise.
6593 (auto_language_data): Likewise.
6594 * language.h (language_data): Delete la_post_parser field.
6595 (language_defn::post_parser): New member function.
6596 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6597 * objc-lang.c (objc_language_data): Likewise.
6598 * opencl-lang.c (opencl_language_data): Likewise.
6599 * p-lang.c (pascal_language_data): Likewise.
6600 * parse.c (parse_exp_in_context): Update call to post_parser.
6601 (null_post_parser): Delete definition.
6602 * parser-defs.h (null_post_parser): Delete declaration.
6603 * rust-lang.c (rust_language_data): Delete la_post_parser
6604 initializer.
6605
6606 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6607
6608 * ada-lang.c (parse): Rename to ada_language::parser.
6609 (ada_language_data): Delete la_parser initializer.
6610 (ada_language::parser): New member function, implementation from
6611 parse.
6612 * c-lang.c (c_language_data): Delete la_parser initializer.
6613 (cplus_language_data): Likewise.
6614 (asm_language_data): Likewise.
6615 (minimal_language_data): Likewise.
6616 * d-lang.c (d_language_data): Likewise.
6617 (d_language::parser): New member function.
6618 * f-lang.c (f_language_data): Delete la_parser initializer.
6619 (f_language::parser): New member function.
6620 * go-lang.c (go_language_data): Delete la_parser initializer.
6621 (go_language::parser): New member function.
6622 * language.c (unk_lang_parser): Delete.
6623 (language_defn::parser): Define new member function.
6624 (unknown_language_data): Delete la_parser initializer.
6625 (unknown_language::parser): New member function.
6626 (auto_language_data): Delete la_parser initializer.
6627 (auto_language::parser): New member function.
6628 * language.h (language_data): Delete la_parser field.
6629 (language_defn::parser): Declare new member function.
6630 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6631 (m2_language::parser): New member function.
6632 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6633 * opencl-lang.c (opencl_language_data): Likewise.
6634 * p-lang.c (pascal_language_data): Likewise.
6635 (pascal_language::parser): New member function.
6636 * parse.c (parse_exp_in_context): Update call to parser.
6637 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6638 (rust_language::parser): New member function.
6639
6640 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 * top.c (print_gdb_configuration): Print --with-python-libdir
6643 configuration value.
6644
6645 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6646
6647 * NEWS: Mention change to the alias command.
6648
6649 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6650
6651 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6652 (alias_command_completer)
6653 (make_alias_options_def_group): New functions.
6654 (alias_opts, alias_option_defs): New struct and array.
6655 (alias_usage_error): Update usage.
6656 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6657 Use option framework.
6658 (_initialize_cli_cmds): Update alias command help.
6659 Update aliases command help.
6660 (show_user):
6661 Add NULL for new default_args lookup_cmd argument.
6662 (valid_command_p): Rename to validate_aliased_command.
6663 Add NULL for new default_args lookup_cmd argument. Verify that the
6664 aliased_command has no default args.
6665 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6666 (lookup_cmd_1, lookup_cmd): New argument default_args.
6667 (add_alias_cmd):
6668 Add NULL for new default_args lookup_cmd argument.
6669 (print_help_for_command): Show default args under the layout
6670 alias some_alias = some_aliased_cmd some_alias_default_arg.
6671 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6672 xfree default_args in destructor.
6673 * cli/cli-script.c (process_next_line, do_define_command):
6674 Add NULL for new default_args lookup_cmd argument.
6675 * command.h: Declare new default_args argument in lookup_cmd
6676 and lookup_cmd_1.
6677 * completer.c (complete_line_internal_1):
6678 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6679 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6680 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6681 Likewise.
6682 * infcmd.c (_initialize_infcmd): Likewise.
6683 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6684 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6685 * python/py-param.c (add_setshow_generic): Likewise.
6686 * remote.c (_initialize_remote): Likewise.
6687 * top.c (execute_command): Prepend default_args if command has some.
6688 (set_verbose):
6689 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6690 * tracepoint.c (validate_actionline, encode_actions_1):
6691 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6692
6693 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6694
6695 * jit.c (jit_read_descriptor): Use bool as the return type.
6696 (jit_breakpoint_re_set_internal): Use bool as the return type.
6697 Invert the return value logic; return true if the jit breakpoint
6698 has been successfully initialized.
6699 (jit_inferior_init): Update the call to
6700 jit_breakpoint_re_set_internal.
6701
6702 2020-06-22 Pedro Alves <palves@redhat.com>
6703
6704 PR gdb/25939
6705 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6706 Use the current inferior instead. Don't return
6707 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6708 wait again.
6709 * sol-thread.c (sol_thread_target::wait): Don't reference
6710 inferior_ptid.
6711 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6712 (sol_update_thread_list_callback): Use the current inferior's pid
6713 instead of inferior_ptid.
6714
6715 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6716
6717 * procfs.c: Cleanup many comments.
6718
6719 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6720 (AFTER_WATCHFLAG): Replace by value.
6721
6722 (MAIN_PROC_NAME_FORMAT): Inline ...
6723 (create_procinfo): ... here.
6724
6725 (procfs_debug_inferior): Remove SYS_exec handling.
6726 (syscall_is_exec): Likewise.
6727 (procfs_set_exec_trap): Likewise.
6728
6729 (syscall_is_lwp_exit): Inline in callers.
6730 (syscall_is_exit): Likewise.
6731 (syscall_is_exec): Likewise.
6732 (syscall_is_lwp_create): Likewise.
6733
6734 (invalidate_cache): Remove #if 0 code.
6735
6736 (make_signal_thread_runnable): Remove.
6737 (procfs_target::resume): Remove #if 0 code.
6738
6739 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6740
6741 PR gdb/25939
6742 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6743 call ...
6744 (procfs_target::create_inferior): ... here.
6745
6746 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6747
6748 * exec.c (validate_exec_file): Ensure the build-id is up to
6749 date by calling reopen_exec_file (that checks file timestamp
6750 to decide to re-read the file).
6751
6752 2020-06-18 Pedro Alves <palves@redhat.com>
6753
6754 PR gdb/25412
6755 * gdbthread.h (delete_thread, delete_thread_silent)
6756 (find_thread_ptid): Update comments.
6757 * thread.c (current_thread_): New global.
6758 (is_current_thread): Move higher, and reimplement.
6759 (inferior_thread): Reimplement.
6760 (set_thread_exited): Use bool. Add assertions.
6761 (add_thread_silent): Simplify thread-reuse handling by always
6762 calling delete_thread.
6763 (delete_thread): Remove intro comment.
6764 (find_thread_ptid): Skip exited threads.
6765 (switch_to_thread_no_regs): Write to current_thread_.
6766 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6767 INFERIOR_PTID. Clear current_thread_.
6768
6769 2020-06-18 Pedro Alves <palves@redhat.com>
6770
6771 * aix-thread.c (pd_update): Use switch_to_thread.
6772
6773 2020-06-18 Pedro Alves <palves@redhat.com>
6774
6775 * ravenscar-thread.c (ravenscar_thread_target): Update.
6776 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6777 (ravenscar_thread_target::add_active_thread): ... this. Don't
6778 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6779 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6780
6781 2020-06-18 Pedro Alves <palves@redhat.com>
6782
6783 * nat/windows-nat.c (current_windows_thread): Remove.
6784 * nat/windows-nat.h (current_windows_thread): Remove.
6785 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6786 Adjust.
6787 (display_selectors): Adjust to fetch the current
6788 windows_thread_info based on inferior_ptid.
6789 (fake_create_process): No longer write to current_windows_thread.
6790 (windows_nat_target::get_windows_debug_event):
6791 Don't set inferior_ptid or current_windows_thread.
6792 (windows_nat_target::wait): Adjust to not rely on
6793 current_windows_thread.
6794 (do_initial_windows_stuff): Now a method of windows_nat_target.
6795 Switch to the last_ptid thread.
6796 (windows_nat_target::attach): Adjust.
6797 (windows_nat_target::detach): Use switch_to_no_thread instead of
6798 writing to inferior_ptid directly.
6799 (windows_nat_target::create_inferior): Adjust.
6800
6801 2020-06-18 Pedro Alves <palves@redhat.com>
6802
6803 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6804
6805 2020-06-18 Pedro Alves <palves@redhat.com>
6806
6807 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6808 after creating it, instead of writing to inferior_ptid. Don't
6809 write to inferior_ptid.
6810
6811 2020-06-18 Pedro Alves <palves@redhat.com>
6812
6813 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6814
6815 2020-06-18 Pedro Alves <palves@redhat.com>
6816
6817 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6818 it, instead of writing to inferior_ptid.
6819
6820 2020-06-18 Pedro Alves <palves@redhat.com>
6821
6822 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6823 to inferior_ptid.
6824
6825 2020-06-18 Pedro Alves <palves@redhat.com>
6826
6827 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6828 instead of writing to inferior_ptid directly.
6829
6830 2020-06-18 Pedro Alves <palves@redhat.com>
6831
6832 * corelow.c (core_target::close): Use switch_to_no_thread instead
6833 of writing to inferior_ptid directly.
6834 (add_to_thread_list, core_target_open): Use switch_to_thread
6835 instead of writing to inferior_ptid directly.
6836
6837 2020-06-18 Pedro Alves <palves@redhat.com>
6838
6839 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6840 inferior_ptid.
6841 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6842 inferior_ptid.
6843 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6844 inferior_ptid directly.
6845 (darwin_nat_target::init_thread_list): Switch to thread, instead
6846 of writing to inferior_ptid.
6847 (darwin_nat_target::attach): Don't write to inferior_ptid.
6848 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6849
6850 2020-06-18 Pedro Alves <palves@redhat.com>
6851
6852 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6853 thread.
6854 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6855 Instead use switch_to_thread.
6856 (gnu_nat_target::detach): Use switch_to_no_thread
6857 instead of writing to inferior_ptid directly. Used passed-in
6858 inferior instead of looking up the inferior by pid.
6859
6860 2020-06-18 Pedro Alves <palves@redhat.com>
6861
6862 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6863 inferior_ptid.
6864
6865 2020-06-18 Pedro Alves <palves@redhat.com>
6866
6867 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6868 inferior_ptid.
6869 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6870 thread.
6871 (nto_procfs_target::detach): Avoid referencing
6872 inferior_ptid. Use switch_to_no_thread instead of writing to
6873 inferior_ptid directly.
6874 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6875 instead of writing to inferior_ptid directly.
6876 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6877 to thread.
6878
6879 2020-06-18 Pedro Alves <palves@redhat.com>
6880
6881 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6882 after creating it, instead of writing to inferior_ptid.
6883 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6884 to inferior_ptid directly.
6885 (gdbsim_target::wait): Don't write to inferior_ptid.
6886
6887 2020-06-18 Pedro Alves <palves@redhat.com>
6888
6889 * remote.c (remote_target::remote_notice_new_inferior): Use
6890 switch_to_thread instead of writing to inferior_ptid directly.
6891 (remote_target::add_current_inferior_and_thread): Use
6892 switch_to_no_thread instead of writing to inferior_ptid directly.
6893 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6894 and switch_to_thread instead of using set_current_inferior or
6895 writing to inferior_ptid directly.
6896
6897 2020-06-18 Pedro Alves <palves@redhat.com>
6898
6899 * tracectf.c (ctf_target_open): Switch to added thread instead of
6900 writing to inferior_ptid directly.
6901 (ctf_target::close): Use switch_to_no_thread instead of writing to
6902 inferior_ptid directly.
6903
6904 2020-06-18 Pedro Alves <palves@redhat.com>
6905
6906 * tracefile-tfile.c (tfile_target_open): Don't write to
6907 inferior_ptid directly, instead switch to added thread.
6908 (tfile_target::close): Use switch_to_no_thread instead of writing
6909 to inferior_ptid directly.
6910
6911 2020-06-18 Pedro Alves <palves@redhat.com>
6912
6913 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6914 (procfs_target::detach): Use switch_to_no_thread
6915 instead of writing to inferior_ptid directly.
6916 (do_attach): Change return type to void. Switch to the added
6917 thread.
6918 (procfs_target::create_inferior): Switch to the added thread.
6919 (procfs_do_thread_registers): Don't write to inferior_ptid.
6920
6921 2020-06-18 Pedro Alves <palves@redhat.com>
6922
6923 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6924 of writing to inferior_ptid.
6925 (scoped_restore_exited_inferior): Delete.
6926 (handle_vfork_child_exec_or_exit): Simplify using
6927 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6928 instead of writing to inferior_ptid.
6929 (THREAD_STOPPED_BY): Delete.
6930 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6931 (thread_stopped_by_hw_breakpoint): Delete.
6932 (save_waitstatus): Use
6933 scoped_restore_current_thread+switch_to_thread, and call
6934 target_stopped_by_watchpoint instead of
6935 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6936 instead of thread_stopped_by_sw_breakpoint, and
6937 target_stopped_by_hw_breakpoint instead of
6938 thread_stopped_by_hw_breakpoint.
6939 (handle_inferior_event)
6940 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6941 inferior_ptid directly, nor
6942 set_current_inferior/set_current_program_space. Use
6943 switch_to_thread / switch_to_inferior_no_thread instead.
6944
6945 2020-06-18 Pedro Alves <palves@redhat.com>
6946
6947 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6948 instead of writing to inferior_ptid.
6949
6950 2020-06-18 Pedro Alves <palves@redhat.com>
6951
6952 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6953 added thread.
6954 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6955 to the added thread.
6956 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6957 instead of writing to inferior_ptid.
6958
6959 2020-06-18 Pedro Alves <palves@redhat.com>
6960
6961 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6962 (register_to_value_test): Mock a program_space too. Heap-allocate
6963 the address space. Don't write to inferior_ptid. Use
6964 switch_to_thread instead.
6965
6966 2020-06-18 Pedro Alves <palves@redhat.com>
6967
6968 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6969 Delete.
6970 (find_signalled_thread()): New, factored out from
6971 linux_make_corefile_notes and adjusted to handle exited threads.
6972 (linux_make_corefile_notes): Adjust to use the new
6973 find_signalled_thread.
6974
6975 2020-06-18 Pedro Alves <palves@redhat.com>
6976
6977 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6978 of saving/restoring inferior_ptid.
6979
6980 2020-06-17 Tom Tromey <tom@tromey.com>
6981
6982 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6983 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6984 declare.
6985 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6986
6987 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6988
6989 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6990 of partial symtabs.
6991
6992 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6993
6994 * regformats/reg-arm.dat: Remove.
6995 * regformats/reg-bfin.dat: Remove.
6996 * regformats/reg-cris.dat: Remove.
6997 * regformats/reg-crisv32.dat: Remove.
6998 * regformats/reg-m32r.dat: Remove.
6999 * regformats/reg-tilegx.dat: Remove.
7000 * regformats/reg-tilegx32.dat: Remove.
7001
7002 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7003
7004 * features/Makefile (WHICH): Remove arm files.
7005 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7006 * regformats/arm/arm-with-neon.dat: Remove.
7007 * regformats/arm/arm-with-vfpv2.dat: Remove.
7008 * regformats/arm/arm-with-vfpv3.dat: Remove.
7009
7010 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7011
7012 * features/Makefile (XMLTOC): Remove rx.xml.
7013
7014 2020-06-17 Pedro Alves <palves@redhat.com>
7015
7016 * gdbthread.h (thread_control_state) <trap_expected> Update
7017 comments.
7018
7019 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7020
7021 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7022 ada_language::lookup_symbol_nonlocal.
7023 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7024 (ada_language::lookup_symbol_nonlocal): New member function,
7025 implementation from ada_lookup_symbol_nonlocal.
7026 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7027 initializer.
7028 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7029 initializer.
7030 (cplus_language::lookup_symbol_nonlocal): New member function.
7031 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7032 (minimal_language_data) Likewise.
7033 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7034 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7035 initializer.
7036 (d_language::lookup_symbol_nonlocal): New member function.
7037 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7038 initializer.
7039 (f_language::lookup_symbol_nonlocal): New member function.
7040 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7041 initializer.
7042 * language.c (unknown_language_data): Likewise.
7043 (auto_language_data): Likewise.
7044 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7045 field.
7046 (language_defn::lookup_symbol_nonlocal): New member function.
7047 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7048 initializer.
7049 * objc-lang.c (objc_language_data): Likewise.
7050 * opencl-lang.c (opencl_language_data): Likewise.
7051 * p-lang.c (pascal_language_data): Likewise.
7052 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7053 rust_language::lookup_symbol_nonlocal.
7054 (rust_language_data): Delete la_lookup_symbol_nonlocal
7055 initializer.
7056 (rust_language::lookup_symbol_nonlocal): New member function,
7057 implementation from rust_lookup_symbol_nonlocal.
7058 * symtab.c (lookup_symbol_aux): Update call to
7059 lookup_symbol_nonlocal.
7060 (basic_lookup_symbol_nonlocal): Rename to...
7061 (language_defn::lookup_symbol_nonlocal): ...this, and update
7062 header comment. Remove language_defn parameter, and replace with
7063 uses of `this'.
7064 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7065
7066 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7067
7068 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7069 initializer.
7070 (ada_language::value_print_inner): New member function.
7071 * c-lang.c (c_language_data): Delete la_value_print_inner
7072 initializer.
7073 (cplus_language_data): Likewise.
7074 (asm_language_data): Likewise.
7075 (minimal_language_data): Likewise.
7076 * d-lang.c (d_language_data): Likewise.
7077 (d_language::value_print_inner): New member function.
7078 * f-lang.c (f_language_data): Delete la_value_print_inner
7079 initializer.
7080 (f_language::value_print_inner): New member function.
7081 * f-lang.h (f_value_print_innner): Rename to...
7082 (f_value_print_inner): ...this (note spelling of 'inner').
7083 * f-valprint.c (f_value_print_innner): Rename to...
7084 (f_value_print_inner): ...this (note spelling of 'inner').
7085 * go-lang.c (go_language_data): Delete la_value_print_inner
7086 initializer.
7087 (go_language::value_print_inner): New member function.
7088 * language.c (language_defn::value_print_inner): Define new member
7089 function.
7090 (unk_lang_value_print_inner): Delete.
7091 (unknown_language_data): Delete la_value_print_inner initializer.
7092 (unknown_language::value_print_inner): New member function.
7093 (auto_language_data): Delete la_value_print_inner initializer.
7094 (auto_language::value_print_inner): New member function.
7095 * language.h (language_data): Delete la_value_print_inner field.
7096 (language_defn::value_print_inner): Delcare new member function.
7097 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7098 initializer.
7099 (m2_language::value_print_inner): New member function.
7100 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7101 initializer.
7102 * opencl-lang.c (opencl_language_data): Likewise.
7103 * p-lang.c (pascal_language_data): Likewise.
7104 (pascal_language::value_print_inner): New member function.
7105 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7106 initializer.
7107 (rust_language::value_print_inner): New member function.
7108 * valprint.c (do_val_print): Update call to value_print_inner.
7109
7110 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7111
7112 * ada-lang.c (ada_language_data): Delete la_value_print
7113 initializer.
7114 (ada_language::value_print): New member function.
7115 * c-lang.c (c_language_data): Delete la_value_print initializer.
7116 (cplus_language_data): Likewise.
7117 (asm_language_data): Likewise.
7118 (minimal_language_data): Likewise.
7119 * d-lang.c (d_language_data): Likewise.
7120 * f-lang.c (f_language_data): Likewise.
7121 * go-lang.c (go_language_data): Likewise.
7122 * language.c (unk_lang_value_print): Delete.
7123 (language_defn::value_print): Define new member function.
7124 (unknown_language_data): Delete la_value_print initializer.
7125 (unknown_language::value_print): New member function.
7126 (auto_language_data): Delete la_value_print initializer.
7127 (auto_language::value_print): New member function.
7128 * language.h (language_data): Delete la_value_print field.
7129 (language_defn::value_print): Declare new member function.
7130 (LA_VALUE_PRINT): Update call to value_print.
7131 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7132 * objc-lang.c (objc_language_data): Likewise.
7133 * opencl-lang.c (opencl_language_data): Likewise.
7134 * p-lang.c (pascal_language_data): Likewise.
7135 (pascal_language::value_print): New member function.
7136 * rust-lang.c (rust_language_data): Delete la_value_print
7137 initializer.
7138
7139 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7140
7141 * ada-lang.c (ada_watch_location_expression): Rename to
7142 ada_language::watch_location_expression.
7143 (ada_language_data): Delete la_watch_location_expression
7144 initializer.
7145 (ada_language::watch_location_expression): New member function,
7146 implementation from ada_watch_location_expression.
7147 * breakpoint.c (watch_command_1): Update call to
7148 watch_location_expression.
7149 * c-lang.c (c_watch_location_expression): Rename to
7150 language_defn::watch_location_expression.
7151 (c_language_data): Delete la_watch_location_expression
7152 initializer.
7153 (cplus_language_data): Likewise.
7154 (asm_language_data): Likewise.
7155 (minimal_language_data): Likewise.
7156 * c-lang.h (c_watch_location_expression): Delete declaration.
7157 * d-lang.c (d_language_data): Delete la_watch_location_expression
7158 initializer.
7159 * f-lang.c (f_language_data): Likewise.
7160 * go-lang.c (go_language_data): Likewise.
7161 * language.c (language_defn::watch_location_expression): Member
7162 function implementation from c_watch_location_expression.
7163 (unknown_language_data): Delete la_watch_location_expression
7164 initializer.
7165 (auto_language_data): Likewise.
7166 * language.h (language_data): Delete la_watch_location_expression
7167 field.
7168 (language_defn::watch_location_expression): Declare new member
7169 function.
7170 * m2-lang.c (m2_language_data): Delete
7171 la_watch_location_expression initializer.
7172 * objc-lang.c (objc_language_data): Likewise.
7173 * opencl-lang.c (opencl_language_data): Likewise.
7174 * p-lang.c (pascal_language_data): Likewise.
7175 * rust-lang.c (rust_watch_location_expression): Rename to
7176 rust_language::watch_location_expression.
7177 (rust_language_data): Delete la_watch_location_expression
7178 initializer.
7179 (rust_language::watch_location_expression): New member function,
7180 implementation from rust_watch_location_expression.
7181
7182 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7183
7184 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7185 ada_language::collect_symbol_completion_matches.
7186 (ada_language_data): Delete la_collect_symbol_completion_matches
7187 initializer.
7188 (ada_language::collect_symbol_completion_matches): New member
7189 function, implementation from
7190 ada_collect_symbol_completion_matches.
7191 * c-lang.c (c_language_data): Delete
7192 la_collect_symbol_completion_matches initializer.
7193 (cplus_language_data): Likewise.
7194 (asm_language_data): Likewise.
7195 (minimal_language_data): Likewise.
7196 * d-lang.c (d_language_data): Likewise.
7197 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7198 f_language::collect_symbol_completion_matches.
7199 (f_language_data): Delete la_collect_symbol_completion_matches
7200 initializer.
7201 (f_language::collect_symbol_completion_matches) New member
7202 function, implementation from f_collect_symbol_completion_matches.
7203 * go-lang.c (go_language_data): Delete
7204 la_collect_symbol_completion_matches initializer.
7205 * language.c (unknown_language_data): Likewise.
7206 (auto_language_data): Likewise.
7207 * language.h (language_data): Delete
7208 la_collect_symbol_completion_matches field.
7209 (language_defn::collect_symbol_completion_matches): New member
7210 function.
7211 * m2-lang.c (m2_language_data): Delete
7212 la_collect_symbol_completion_matches initializer.
7213 * objc-lang.c (objc_language_data): Likewise.
7214 * opencl-lang.c (opencl_language_data): Likewise.
7215 * p-lang.c (pascal_language_data): Likewise.
7216 * rust-lang.c (rust_language_data): Likewise.
7217 * symtab.c (default_collect_symbol_completion_matches): Delete.
7218 (collect_symbol_completion_matches): Update call to
7219 collect_symbol_completion_matches.
7220 (collect_symbol_completion_matches_type): Likewise.
7221 * symtab.h (default_collect_symbol_completion_matches): Delete
7222 declaration.
7223
7224 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7225
7226 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7227 (ada_language_data): Delete la_word_break_characters initializer.
7228 (ada_language::word_break_characters): New member function.
7229 * c-lang.c (c_language_data): Delete la_word_break_characters
7230 initializer.
7231 (cplus_language_data): Likewise.
7232 (asm_language_data): Likewise.
7233 (minimal_language_data): Likewise.
7234 * completer.c: Update global comment.
7235 (advance_to_expression_complete_word_point): Update call to
7236 word_break_characters.
7237 (complete_files_symbols): Likewise.
7238 (complete_line_internal_1): Likewise.
7239 (default_completer_handle_brkchars): Likewise.
7240 (skip_quoted_chars): Likewise.
7241 * d-lang.c (d_language_data): Delete la_word_break_characters
7242 initializer.
7243 * f-lang.c (f_word_break_characters): Delete.
7244 (f_language_data): Delete la_word_break_characters initializer.
7245 (f_language::word_break_characters): New member function.
7246 * go-lang.c (go_language_data): Delete la_word_break_characters
7247 initializer.
7248 * language.c (unknown_language_data): Likewise.
7249 (auto_language_data): Likewise.
7250 * language.h (default_word_break_characters): Move declaration to
7251 earlier in the file.
7252 (language_data): Delete la_word_break_characters field.
7253 (language_defn::word_break_characters): New member function.
7254 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7255 initializer.
7256 * objc-lang.c (objc_language_data): Likewise.
7257 * opencl-lang.c (opencl_language_data): Likewise.
7258 * p-lang.c (pascal_language_data): Likewise.
7259 * rust-lang.c (rust_language_data): Likewise.
7260
7261 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7262
7263 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7264 (ada_language_data): Delete la_get_symbol_name_matcher
7265 initializer.
7266 (language_defn::get_symbol_name_matcher_inner): New member
7267 function.
7268 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7269 initializer.
7270 (cplus_language_data): Likewise.
7271 (cplus_language::get_symbol_name_matcher_inner): New member
7272 function.
7273 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7274 (minimal_language_data): Likewise.
7275 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7276 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7277 initializer.
7278 * dictionary.c (iter_match_first_hashed): Update call to
7279 get_symbol_name_matcher.
7280 (iter_match_next_hashed): Likewise.
7281 (iter_match_next_linear): Likewise.
7282 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7283 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7284 initializer.
7285 (f_language::get_symbol_name_matcher_inner): New member function.
7286 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7287 initializer.
7288 * language.c (default_symbol_name_matcher): Update header comment,
7289 make static.
7290 (language_defn::get_symbol_name_matcher): New definition.
7291 (language_defn::get_symbol_name_matcher_inner): Likewise.
7292 (get_symbol_name_matcher): Delete.
7293 (unknown_language_data): Delete la_get_symbol_name_matcher
7294 initializer.
7295 (auto_language_data): Likewise.
7296 * language.h (language_data): Delete la_get_symbol_name_matcher
7297 field.
7298 (language_defn::get_symbol_name_matcher): New member function.
7299 (language_defn::get_symbol_name_matcher_inner): Likewise.
7300 (default_symbol_name_matcher): Delete declaration.
7301 * linespec.c (find_methods): Update call to
7302 get_symbol_name_matcher.
7303 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7304 initializer.
7305 * minsyms.c (lookup_minimal_symbol): Update call to
7306 get_symbol_name_matcher.
7307 (iterate_over_minimal_symbols): Likewise.
7308 * objc-lang.c (objc_language_data): Delete
7309 la_get_symbol_name_matcher initializer.
7310 * opencl-lang.c (opencl_language_data): Likewise.
7311 * p-lang.c (pascal_language_data): Likewise.
7312 * psymtab.c (psymbol_name_matches): Update call to
7313 get_symbol_name_matcher.
7314 * rust-lang.c (rust_language_data): Delete
7315 la_get_symbol_name_matcher initializer.
7316 * symtab.c (symbol_matches_search_name): Update call to
7317 get_symbol_name_matcher.
7318 (compare_symbol_name): Likewise.
7319
7320 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7321
7322 * ada-lang.c (ada_language_data): Delete la_compute_program
7323 initializer.
7324 * c-lang.c (c_language_data): Likewise.
7325 (c_language::compute_program): New member function.
7326 (cplus_language_data): Delete la_compute_program initializer.
7327 (cplus_language::compute_program): New member function.
7328 (asm_language_data): Delete la_compute_program initializer.
7329 (minimal_language_data): Likewise.
7330 * c-lang.h (c_compute_program): Update comment.
7331 (cplus_compute_program): Likewise.
7332 * compile/compile-c-support.c (c_compute_program): Likewise.
7333 (cplus_compute_program): Likewise.
7334 * compile/compile.c (compile_to_object): Update call to
7335 la_compute_program.
7336 * d-lang.c (d_language_data): Delete la_compute_program
7337 initializer.
7338 * f-lang.c (f_language_data): Likewise.
7339 * go-lang.c (go_language_data): Likewise.
7340 * language.c (unknown_language_data): Likewise.
7341 (auto_language_data): Likewise.
7342 * language.h (language_data): Delete la_compute_program field.
7343 (language_defn::compute_program): New member function.
7344 * m2-lang.c (m2_language_data): Delete la_compute_program
7345 initializer.
7346 * objc-lang.c (objc_language_data): Likewise.
7347 * opencl-lang.c (opencl_language_data): Likewise.
7348 * p-lang.c (pascal_language_data): Likewise.
7349 * rust-lang.c (rust_language_data): Likewise.
7350
7351 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7352
7353 * ada-lang.c (ada_language_data) Delete
7354 la_class_name_from_physname initializer.
7355 * c-lang.c (c_language_data): Likewise.
7356 (cplus_language_data): Likewise.
7357 (cplus_language::class_name_from_physname): New member function.
7358 (asm_language_data): Delete la_class_name_from_physname
7359 initializer.
7360 (minimal_language_data): Likewise.
7361 * d-lang.c (d_language_data): Likewise.
7362 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7363 method on language_defn class.
7364 (guess_full_die_structure_name): Likewise.
7365 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7366 initializer.
7367 * go-lang.c (go_language_data): Likewise.
7368 * language.c (language_class_name_from_physname): Delete.
7369 (unk_lang_class_name): Delete.
7370 (unknown_language_data): Delete la_class_name_from_physname
7371 initializer.
7372 (auto_language_data): Likewise.
7373 * language.h (language_data): Delete la_class_name_from_physname
7374 field.
7375 (language_defn::class_name_from_physname): New function.
7376 (language_class_name_from_physname): Delete declaration.
7377 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7378 initializer.
7379 * objc-lang.c (objc_language_data): Likewise.
7380 * opencl-lang.c (opencl_language_data): Likewise.
7381 * p-lang.c (pascal_language_data): Likewise.
7382 * rust-lang.c (rust_language_data): Likewise.
7383
7384 2020-06-16 Tom Tromey <tom@tromey.com>
7385
7386 * tui/tui-data.h (STATUS_NAME): New macro.
7387 * tui/tui-layout.c (tui_remove_some_windows)
7388 (initialize_known_windows, tui_register_window)
7389 (tui_layout_split::remove_windows, initialize_layouts)
7390 (tui_new_layout_command): Don't use hard-coded window names.
7391
7392 2020-06-16 Tom Tromey <tom@tromey.com>
7393
7394 PR tui/25348:
7395 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7396 tui_initialize_readline. Only run once. Call rl_initialize.
7397 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7398 tui_initialize_readline.
7399 * tui/tui-io.c (tui_setup_io): Call
7400 tui_ensure_readline_initialized.
7401 * tui/tui-interp.c (tui_interp::init): Update.
7402
7403 2020-06-16 Tom Tromey <tom@tromey.com>
7404
7405 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7406 Also preserve the status window.
7407
7408 2020-06-16 Tom Tromey <tom@tromey.com>
7409
7410 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7411 where m_window==nullptr.
7412
7413 2020-06-15 Tom Tromey <tromey@adacore.com>
7414
7415 * windows-nat.c (windows_nat::handle_output_debug_string):
7416 Update.
7417 (windows_nat::handle_ms_vc_exception): Update.
7418 * target.h (target_read_string): Change API.
7419 * target.c (target_read_string): Change API.
7420 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7421 Update.
7422 * solib-frv.c (frv_current_sos): Update.
7423 * solib-dsbt.c (dsbt_current_sos): Update.
7424 * solib-darwin.c (darwin_current_sos): Update.
7425 * linux-thread-db.c (inferior_has_bug): Update.
7426 * expprint.c (print_subexp_standard): Update.
7427 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7428 (ada_exception_message_1): Update.
7429
7430 2020-06-15 Tom Tromey <tromey@adacore.com>
7431
7432 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7433
7434 2020-06-15 Tom Tromey <tromey@adacore.com>
7435
7436 * valprint.c (read_string): Update comment.
7437 * target.c (MIN): Remove.
7438 (target_read_string): Rewrite.
7439
7440 2020-06-15 Tom Tromey <tromey@adacore.com>
7441
7442 * corefile.c (read_memory_string): Remove.
7443 * ada-valprint.c (ada_value_print_ptr): Update.
7444 * ada-lang.h (ada_tag_name): Change return type.
7445 * ada-lang.c (type_from_tag): Update.
7446 (ada_tag_name_from_tsd): Change return type. Use
7447 target_read_string.
7448 (ada_tag_name): Likewise.
7449 * gdbcore.h (read_memory_string): Don't declare.
7450
7451 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7452
7453 * symtab.c (rbreak_command): Ignore Windows drive colon.
7454
7455 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7456
7457 * NEWS: Mention removed GDBserver host support.
7458
7459 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7460
7461 * features/riscv/rebuild-csr-xml.sh: Updated.
7462
7463 2020-06-11 Tom Tromey <tom@tromey.com>
7464
7465 PR gdb/18318:
7466 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7467
7468 2020-06-09 Jonny Grant <jg@jguk.org>
7469 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7470
7471 * main.c (captured_main_1): Don't print new line after help.
7472 (print_gdb_help): add mailing list and IRC channel information
7473 to --help. Add new lines between items in the footer. Remove
7474 quotes around bug url.
7475
7476 2020-06-11 Keith Seitz <keiths@redhat.com>
7477
7478 PR gdb/21356
7479 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7480 Resolve typedefs for type length calculations.
7481
7482 2020-06-10 Tom de Vries <tdevries@suse.de>
7483
7484 PR ada/24713
7485 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7486 (write_psymbols): Enable .gdb_index for ada.
7487 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7488 ada.
7489
7490 2020-06-10 Tom de Vries <tdevries@suse.de>
7491
7492 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7493 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7494 namei" instead of "const char *name" argument.
7495 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7496 dw2_symtab_iter_init.
7497
7498 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7499
7500 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7501 to use type::field and field::type instead.
7502
7503 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7504
7505 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7506 to use field::type instead.
7507
7508 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7509
7510 * gdbtypes.h (struct field) <type, set_type>: New methods.
7511 Rename `type` field to...
7512 <m_type>: ... this. Change references throughout to use type or
7513 set_type methods.
7514 (FIELD_TYPE): Use field::type. Change call sites that modify
7515 the field's type to use field::set_type instead.
7516
7517 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7518
7519 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7520 to use type::index_type instead.
7521
7522 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7523
7524 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7525 methods.
7526 (TYPE_INDEX_TYPE): Use type::index_type.
7527 * gdbtypes.c (create_array_type_with_stride): Likewise.
7528
7529 2020-06-07 Tom Tromey <tom@tromey.com>
7530
7531 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7532 parameter.
7533 (generic_value_print): Update.
7534
7535 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7536
7537 Revert commit 982a38f60b0.
7538 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7539
7540 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7541
7542 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7543 avoid use after free.
7544
7545 2020-06-05 Tom de Vries <tdevries@suse.de>
7546
7547 * NEWS: Fix typos.
7548
7549 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7550
7551 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7552 the per_bfd object.
7553 (dwarf2_read_debug_names): Likewise.
7554 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7555 object when re-using a per_bfd object with an index.
7556
7557 2020-06-03 Tom de Vries <tdevries@suse.de>
7558
7559 PR symtab/26046
7560 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7561 children for C++.
7562 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7563 DW_TAG_subprogram.
7564
7565 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7566
7567 * ada-lang.c (ada_language_data): Delete skip_trampoline
7568 initializer.
7569 * c-lang.c (c_language_data): Likewise.
7570 (cplus_language_data): Likewise.
7571 (cplus_language::skip_trampoline): New member function.
7572 (asm_language_data): Delete skip_trampoline initializer.
7573 (minimal_language_data): Likewise.
7574 * d-lang.c (d_language_data): Likewise.
7575 * f-lang.c (f_language_data): Likewise.
7576 * go-lang.c (go_language_data): Likewise.
7577 * language.c (unk_lang_trampoline): Delete function.
7578 (skip_language_trampoline): Update.
7579 (unknown_language_data): Delete skip_trampoline initializer.
7580 (auto_language_data): Likewise.
7581 * language.h (language_data): Delete skip_trampoline field.
7582 (language_defn::skip_trampoline): New function.
7583 * m2-lang.c (m2_language_data): Delete skip_trampoline
7584 initializer.
7585 * objc-lang.c (objc_skip_trampoline): Delete function, move
7586 implementation to objc_language::skip_trampoline.
7587 (objc_language_data): Delete skip_trampoline initializer.
7588 (objc_language::skip_trampoline): New member function with
7589 implementation from objc_skip_trampoline.
7590 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7591 initializer.
7592 * p-lang.c (pascal_language_data): Likewise.
7593 * rust-lang.c (rust_language_data): Likewise.
7594
7595 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7596
7597 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7598 (ada_language::demangle): New member function.
7599 * c-lang.c (c_language_data): Delete la_demangle initializer.
7600 (cplus_language_data): Delete la_demangle initializer.
7601 (cplus_language::demangle): New member function.
7602 (asm_language_data): Delete la_demangle initializer.
7603 (minimal_language_data): Delete la_demangle initializer.
7604 * d-lang.c (d_language_data): Delete la_demangle initializer.
7605 (d_language::demangle): New member function.
7606 * f-lang.c (f_language_data): Delete la_demangle initializer.
7607 (f_language::demangle): New member function.
7608 * go-lang.c (go_language_data): Delete la_demangle initializer.
7609 (go_language::demangle): New member function.
7610 * language.c (language_demangle): Update.
7611 (unk_lang_demangle): Delete.
7612 (unknown_language_data): Delete la_demangle initializer.
7613 (unknown_language::demangle): New member function.
7614 (auto_language_data): Delete la_demangle initializer.
7615 (auto_language::demangle): New member function.
7616 * language.h (language_data): Delete la_demangle field.
7617 (language_defn::demangle): New function.
7618 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7619 * objc-lang.c (objc_language_data): Delete la_demangle
7620 initializer.
7621 (objc_language::demangle): New member function.
7622 * opencl-lang.c (opencl_language_data): Delete la_demangle
7623 initializer.
7624 * p-lang.c (pascal_language_data): Likewise.
7625 * rust-lang.c (rust_language_data): Likewise.
7626 (rust_language::demangle): New member function.
7627
7628 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7629
7630 * ada-lang.c (ada_language_data): Delete la_print_type
7631 initializer.
7632 (ada_language::print_type): New member function.
7633 * c-lang.c (c_language_data): Delete la_print_type initializer.
7634 (c_language::print_type): New member function.
7635 (cplus_language_data): Delete la_print_type initializer.
7636 (cplus_language::print_type): New member function.
7637 (asm_language_data): Delete la_print_type initializer.
7638 (asm_language::print_type): New member function.
7639 (minimal_language_data): Delete la_print_type initializer.
7640 (minimal_language::print_type): New member function.
7641 * d-lang.c (d_language_data): Delete la_print_type initializer.
7642 (d_language::print_type): New member function.
7643 * f-lang.c (f_language_data): Delete la_print_type initializer.
7644 (f_language::print_type): New member function.
7645 * go-lang.c (go_language_data): Delete la_print_type initializer.
7646 (go_language::print_type): New member function.
7647 * language.c (unk_lang_print_type): Delete.
7648 (unknown_language_data): Delete la_print_type initializer.
7649 (unknown_language::print_type): New member function.
7650 (auto_language_data): Delete la_print_type initializer.
7651 (auto_language::print_type): New member function.
7652 * language.h (language_data): Delete la_print_type field.
7653 (language_defn::print_type): New function.
7654 (LA_PRINT_TYPE): Update.
7655 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7656 (m2_language::print_type): New member function.
7657 * objc-lang.c (objc_language_data): Delete la_print_type
7658 initializer.
7659 (objc_language::print_type): New member function.
7660 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7661 to opencl_language::print_type.
7662 (opencl_language_data): Delete la_print_type initializer.
7663 (opencl_language::print_type): New member function, implementation
7664 from opencl_print_type.
7665 * p-lang.c (pascal_language_data): Delete la_print_type
7666 initializer.
7667 (pascal_language::print_type): New member function.
7668 * rust-lang.c (rust_print_type): Delete, implementation moved to
7669 rust_language::print_type.
7670 (rust_language_data): Delete la_print_type initializer.
7671 (rust_language::print_type): New member function, implementation
7672 from rust_print_type.
7673
7674 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7675
7676 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7677 implementation moves to...
7678 (ada_language::sniff_from_mangled_name): ...here. Update return
7679 type.
7680 (ada_language_data): Delete la_sniff_from_mangled_name
7681 initializer.
7682 * c-lang.c (c_language_data): Likewise.
7683 (cplus_language_data): Likewise.
7684 (cplus_language::sniff_from_mangled_name): New member function,
7685 implementation taken from gdb_sniff_from_mangled_name.
7686 (asm_language_data): Delete la_sniff_from_mangled_name
7687 initializer.
7688 (minimal_language_data): Likewise.
7689 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7690 implementation moves to cplus_language::sniff_from_mangled_name.
7691 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7692 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7693 moves to...
7694 (d_language::sniff_from_mangled_name): ...here.
7695 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7696 * f-lang.c (f_language_data): Likewise.
7697 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7698 moves to...
7699 (go_language::sniff_from_mangled_name): ...here.
7700 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7701 * language.c (language_sniff_from_mangled_name): Delete.
7702 (unknown_language_data): Delete la_sniff_from_mangled_name
7703 initializer.
7704 (auto_language_data): Likewise.
7705 * language.h (language_data): Delete la_sniff_from_mangled_name
7706 field.
7707 (language_defn::sniff_from_mangled_name): New function.
7708 (language_sniff_from_mangled_name): Delete declaration.
7709 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7710 field.
7711 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7712 implementation moves to...
7713 (objc_language::sniff_from_mangled_name): ...here.
7714 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7715 * opencl-lang.c (opencl_language_data): Likewise.
7716 * p-lang.c (pascal_language_data): Likewise.
7717 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7718 implementation moves to...
7719 (rust_language::sniff_from_mangled_name): ...here.
7720 (rust_language_data): Delete la_sniff_from_mangled_name
7721 initializer.
7722 * symtab.c (symbol_find_demangled_name): Call
7723 sniff_from_mangled_name member function.
7724
7725 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7726
7727 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7728 initializer.
7729 * c-lang.c (c_language_data): Likewise.
7730 (cplus_language_data): Likewise.
7731 (cplus_language::search_name_hash): New member function.
7732 (asm_language_data): Delete la_search_name_hash initializer.
7733 (minimal_language_data): Likewise.
7734 * d-lang.c (d_language_data): Likewise.
7735 * dictionary.c (default_search_name_hash): Rename to...
7736 (language_defn::search_name_hash): ...this.
7737 * f-lang.c (f_language_data): Likewise.
7738 (f_language::search_name_hash): New member function.
7739 * go-lang.c (go_language_data): Delete la_search_name_hash
7740 initializer.
7741 * language.c (unknown_language_data): Likewise.
7742 (auto_language_data): Likewise.
7743 * language.h (struct language_data): Delete la_search_name_hash
7744 field.
7745 (language_defn::search_name_hash): Declare new member function.
7746 (default_search_name_hash): Delete declaration.
7747 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7748 initializer.
7749 * objc-lang.c (objc_language_data): Likewise.
7750 * opencl-lang.c (opencl_language_data): Likewise.
7751 * p-lang.c (pascal_language_data): Likewise.
7752 * rust-lang.c (rust_language_data): Likewise.
7753 * symtab.c (search_name_hash): Update call.
7754
7755 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7756
7757 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7758 initializer.
7759 * c-lang.c (class compile_instance): Declare.
7760 (c_language_data): Delete la_get_compile_instance initializer.
7761 (c_language::get_compile_instance): New member function.
7762 (cplus_language_data): Delete la_get_compile_instance initializer.
7763 (cplus_language::get_compile_instance): New member function.
7764 (asm_language_data): Delete la_get_compile_instance initializer.
7765 (minimal_language_data): Likewise.
7766 * c-lang.h (c_get_compile_context): Update comment.
7767 (cplus_get_compile_context): Update comment.
7768 * compile/compile.c (compile_to_object): Update calls, don't rely
7769 on function pointer being NULL.
7770 * d-lang.c (d_language_data): Delete la_get_compile_instance
7771 initializer.
7772 * f-lang.c (f_language_data): Likewise.
7773 * go-lang.c (go_language_data): Likewise.
7774 * language.c (unknown_language_data): Likewise.
7775 (auto_language_data): Likewise.
7776 * language.h (language_data): Delete la_get_compile_instance field.
7777 (language_defn::get_compile_instance): New member function.
7778 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
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
7785 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7786
7787 * ada-lang.c (ada_add_all_symbols): Update comment.
7788 (ada_iterate_over_symbols): Delete, move implementation to...
7789 (ada_language::iterate_over_symbols): ...here, a new member
7790 function, rewrite to use range based for loop.
7791 (ada_language_data): Delete la_iterate_over_symbols initializer.
7792 * c-lang.c (c_language_data): Likewise.
7793 (cplus_language_data): Likewise.
7794 (asm_language_data): Likewise.
7795 (minimal_language_data): Likewise.
7796 * d-lang.c (d_language_data): Likewise.
7797 * f-lang.c (f_language_data): Likewise.
7798 * go-lang.c (go_language_data): Likewise.
7799 * language.c (unknown_language_data): Likewise.
7800 (auto_language_data): Likewise.
7801 * language.h (language_data): Delete la_iterate_over_symbols field.
7802 (language_defn::iterate_over_symbols): New member function.
7803 (LA_ITERATE_OVER_SYMBOLS): Update.
7804 * linespec.c (iterate_over_all_matching_symtabs): Update.
7805 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7806 initializer.
7807 * objc-lang.c (objc_language_data): Likewise.
7808 * opencl-lang.c (opencl_language_data): Likewise.
7809 * p-lang.c (pascal_language_data): Likewise.
7810 * rust-lang.c (rust_language_data): Likewise.
7811
7812 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7813
7814 * ada-lang.c (ada_language_data): Delete
7815 la_lookup_transparent_type initializer.
7816 * c-lang.c (c_language_data): Likewise.
7817 (cplus_language_data): Likewise.
7818 (cplus_language::lookup_transparent_type): New member function.
7819 (asm_language_data): Delete la_lookup_transparent_type
7820 initializer.
7821 (minimal_language_data): Likewise.
7822 * d-lang.c (d_language_data): Likewise.
7823 * f-lang.c (f_language_data): Likewise.
7824 * go-lang.c (go_language_data): Likewise.
7825 * language.c (unknown_language_data): Likewise.
7826 (auto_language_data): Likewise.
7827 * language.h (struct language_data): Delete
7828 la_lookup_transparent_type field.
7829 (language_defn::lookup_transparent_type): New member function.
7830 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7831 initializer.
7832 * objc-lang.c (objc_language_data): Likewise.
7833 * opencl-lang.c (opencl_language_data): Likewise.
7834 * p-lang.c (pascal_language_data): Likewise.
7835 * rust-lang.c (rust_language_data): Likewise.
7836 * symtab.c (symbol_matches_domain): Update call.
7837
7838 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7839
7840 * ada-lang.c (ada_language_arch_info): Delete function, move
7841 implementation to...
7842 (ada_language::language_arch_info): ...here, a new member
7843 function.
7844 (ada_language_data): Delete la_language_arch_info.
7845 * c-lang.c (c_language_data): Likewise.
7846 (c_language::language_arch_info): New member function.
7847 (cplus_language_arch_info): Delete function, move
7848 implementation to...
7849 (cplus_language::language_arch_info): ...here, a new member
7850 function.
7851 (cplus_language_data): Delete la_language_arch_info.
7852 (asm_language_data): Likewise.
7853 (asm_language::language_arch_info): New member function.
7854 (minimal_language_data): Delete la_language_arch_info.
7855 (minimal_language::language_arch_info): New member function.
7856 * d-lang.c (d_language_arch_info): Delete function, move
7857 implementation to...
7858 (d_language::language_arch_info): ...here, a new member
7859 function.
7860 (d_language_data): Delete la_language_arch_info.
7861 * f-lang.c (f_language_arch_info): Delete function, move
7862 implementation to...
7863 (f_language::language_arch_info): ...here, a new member
7864 function.
7865 (f_language_data): Delete la_language_arch_info.
7866 * go-lang.c (go_language_arch_info): Delete function, move
7867 implementation to...
7868 (go_language::language_arch_info): ...here, a new member
7869 function.
7870 (go_language_data): Delete la_language_arch_info.
7871 * language.c (unknown_language_data): Likewise.
7872 (unknown_language::language_arch_info): New member function.
7873 (auto_language_data): Delete la_language_arch_info.
7874 (auto_language::language_arch_info): New member function.
7875 (language_gdbarch_post_init): Update call to
7876 la_language_arch_info.
7877 * language.h (language_data): Delete la_language_arch_info
7878 function pointer.
7879 (language_defn::language_arch_info): New function.
7880 * m2-lang.c (m2_language_arch_info): Delete function, move
7881 implementation to...
7882 (m2_language::language_arch_info): ...here, a new member
7883 function.
7884 (m2_language_data): Delete la_language_arch_info.
7885 * objc-lang.c (objc_language_arch_info): Delete function, move
7886 implementation to...
7887 (objc_language::language_arch_info): ...here, a new member
7888 function.
7889 (objc_language_data): Delete la_language_arch_info.
7890 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7891 implementation to...
7892 (opencl_language::language_arch_info): ...here, a new member
7893 function.
7894 (opencl_language_data): Delete la_language_arch_info.
7895 * p-lang.c (pascal_language_arch_info): Delete function, move
7896 implementation to...
7897 (pascal_language::language_arch_info): ...here, a new member
7898 function.
7899 (pascal_language_data): Delete la_language_arch_info.
7900 * rust-lang.c (rust_language_arch_info): Delete function, move
7901 implementation to...
7902 (rust_language::language_arch_info): ...here, a new member
7903 function.
7904 (rust_language_data): Delete la_language_arch_info.
7905
7906 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7907
7908 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7909 initializer.
7910 * c-lang.c (c_language_data): Likewise.
7911 (cplus_language_data): Likewise.
7912 (cplus_language::pass_by_reference_info): New method.
7913 (asm_language_data): Delete la_pass_by_reference initializer.
7914 (minimal_language_data): Likewise.
7915 * cp-abi.c (cp_pass_by_reference): Remove use of
7916 default_pass_by_reference.
7917 * d-lang.c (d_language_data): Likewise.
7918 * f-lang.c (f_language_data): Likewise.
7919 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7920 default_pass_by_reference.
7921 * go-lang.c (go_language_data): Likewise.
7922 * language.c (language_pass_by_reference): Update.
7923 (default_pass_by_reference): Delete.
7924 (unknown_language_data): Delete la_pass_by_reference
7925 initializer.
7926 (auto_language_data): Likewise.
7927 * language.h (struct language_data): Delete la_pass_by_reference
7928 field.
7929 (language_defn::pass_by_reference_info): New member function.
7930 (default_pass_by_reference): Delete declaration.
7931 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7932 initializer.
7933 * objc-lang.c (objc_language_data): Likewise.
7934 * opencl-lang.c (opencl_language_data): Likewise.
7935 * p-lang.c (pascal_language_data): Likewise.
7936 * rust-lang.c (rust_language_data): Likewise.
7937
7938 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7939
7940 * ada-lang.c (ada_read_var_value): Delete function, move
7941 implementation to...
7942 (ada_language::read_var_value): ...here.
7943 (ada_language_data): Delete la_read_var_value initializer.
7944 * c-lang.c (c_language_data): Likewise.
7945 (cplus_language_data): Likewise.
7946 (minimal_language_data): Likewise.
7947 * d-lang.c (d_language_data): Likewise.
7948 * f-lang.c (f_language_data): Likewise.
7949 * findvar.c (default_read_var_value): Rename to...
7950 (language_defn::read_var_value): ...this.
7951 * findvar.c (read_var_value): Update header comment, and change to
7952 call member function instead of function pointer.
7953 * go-lang.c (go_language_data): Likewise.
7954 * language.c (unknown_language_data): Delete la_read_var_value
7955 initializer.
7956 (auto_language_data): Likewise.
7957 * language.h (struct language_data): Delete la_read_var_value
7958 field.
7959 (language_defn::read_var_value): New member function.
7960 (default_read_var_value): Delete declaration.
7961 * m2-lang.c (m2_language_data): Delete la_read_var_value
7962 initializer.
7963 * objc-lang.c (objc_language_data): Likewise.
7964 * opencl-lang.c (opencl_language_data): Likewise.
7965 * p-lang.c (pascal_language_data): Likewise.
7966 * rust-lang.c (rust_language_data): Likewise.
7967 * value.h (default_read_var_value): Delete declaration.
7968
7969 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7970
7971 * ada-lang.c (ada_print_array_index): Delete function, move
7972 implementation to...
7973 (ada_language::print_array_index): ...here.
7974 (ada_language_data): Delete la_print_array_index 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 * go-lang.c (go_language_data): Likewise.
7981 * language.c (default_print_array_index): Delete function, move
7982 implementation to...
7983 (language_defn::print_array_index): ...here.
7984 (unknown_language_data): Delete la_print_array_index initializer.
7985 (auto_language_data): Likewise.
7986 * language.h (struct language_data): Delete la_print_array_index
7987 field.
7988 (language_defn::print_array_index): New member function.
7989 (LA_PRINT_ARRAY_INDEX): Update.
7990 (default_print_array_index): Delete declaration.
7991 * m2-lang.c (m2_language_data): Delete la_print_array_index
7992 initializer.
7993 * objc-lang.c (objc_language_data): Likewise.
7994 * opencl-lang.c (opencl_language_data): Likewise.
7995 * p-lang.c (pascal_language_data): Likewise.
7996 * rust-lang.c (rust_language_data): Likewise.
7997
7998 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7999
8000 * gdb/ada-lang.c (ada_language_defn): Convert to...
8001 (ada_language_data): ...this.
8002 (class ada_language): New class.
8003 (ada_language_defn): New static global.
8004 * gdb/c-lang.c (c_language_defn): Convert to...
8005 (c_language_data): ...this.
8006 (class c_language): New class.
8007 (c_language_defn): New static global.
8008 (cplus_language_defn): Convert to...
8009 (cplus_language_data): ...this.
8010 (class cplus_language): New class.
8011 (cplus_language_defn): New static global.
8012 (asm_language_defn): Convert to...
8013 (asm_language_data): ...this.
8014 (class asm_language): New class.
8015 (asm_language_defn): New static global.
8016 (minimal_language_defn): Convert to...
8017 (minimal_language_data): ...this.
8018 (class minimal_language): New class.
8019 (minimal_language_defn): New static global.
8020 * gdb/d-lang.c (d_language_defn): Convert to...
8021 (d_language_data): ...this.
8022 (class d_language): New class.
8023 (d_language_defn): New static global.
8024 * gdb/f-lang.c (f_language_defn): Convert to...
8025 (f_language_data): ...this.
8026 (class f_language): New class.
8027 (f_language_defn): New static global.
8028 * gdb/go-lang.c (go_language_defn): Convert to...
8029 (go_language_data): ...this.
8030 (class go_language): New class.
8031 (go_language_defn): New static global.
8032 * gdb/language.c (unknown_language_defn): Remove declaration.
8033 (current_language): Initialize to nullptr, real initialization is
8034 moved to _initialize_language.
8035 (languages): Delete global.
8036 (language_defn::languages): Define.
8037 (set_language_command): Use language_defn::languages.
8038 (set_language): Likewise.
8039 (range_error): Likewise.
8040 (language_enum): Likewise.
8041 (language_def): Likewise.
8042 (add_set_language_command): Use language_def::languages for the
8043 language list, and language_def to lookup language pointers.
8044 (skip_language_trampoline): Use language_defn::languages.
8045 (unknown_language_defn): Convert to...
8046 (unknown_language_data): ...this.
8047 (class unknown_language): New class.
8048 (unknown_language_defn): New static global.
8049 (auto_language_defn): Convert to...
8050 (auto_language_data): ...this.
8051 (class auto_language): New class.
8052 (auto_language_defn): New static global.
8053 (language_gdbarch_post_init): Use language_defn::languages.
8054 (_initialize_language): Initialize current_language.
8055 * gdb/language.h (struct language_defn): Rename to...
8056 (struct language_data): ...this.
8057 (struct language_defn): New.
8058 (auto_language_defn): Delete.
8059 (unknown_language_defn): Delete.
8060 (minimal_language_defn): Delete.
8061 (ada_language_defn): Delete.
8062 (asm_language_defn): Delete.
8063 (c_language_defn): Delete.
8064 (cplus_language_defn): Delete.
8065 (d_language_defn): Delete.
8066 (f_language_defn): Delete.
8067 (go_language_defn): Delete.
8068 (m2_language_defn): Delete.
8069 (objc_language_defn): Delete.
8070 (opencl_language_defn): Delete.
8071 (pascal_language_defn): Delete.
8072 (rust_language_defn): Delete.
8073 * gdb/m2-lang.c (m2_language_defn): Convert to...
8074 (m2_language_data): ...this.
8075 (class m2_language): New class.
8076 (m2_language_defn): New static global.
8077 * gdb/objc-lang.c (objc_language_defn): Convert to...
8078 (objc_language_data): ...this.
8079 (class objc_language): New class.
8080 (objc_language_defn): New static global.
8081 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8082 (opencl_language_data): ...this.
8083 (class opencl_language): New class.
8084 (opencl_language_defn): New static global.
8085 * gdb/p-lang.c (pascal_language_defn): Convert to...
8086 (pascal_language_data): ...this.
8087 (class pascal_language): New class.
8088 (pascal_language_defn): New static global.
8089 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8090 language pointer, update comment format.
8091 * gdb/rust-lang.c (rust_language_defn): Convert to...
8092 (rust_language_data): ...this.
8093 (class rust_language): New class.
8094 (rust_language_defn): New static global.
8095
8096 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8097
8098 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8099 member variable.
8100 <m_stmt_at_address>: New member variable.
8101 (lnp_state_machine::record_line): Don't record some lines, update
8102 tracking of is_stmt at the same address.
8103 (lnp_state_machine::lnp_state_machine): Initialise new member
8104 variables.
8105
8106 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8107
8108 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8109 "-include gnu-nat-mig.h".
8110 * gnu-nat-mig.h: New file.
8111 * gnu-nat.c: Include "gnu-nat-mig.h".
8112 (exc_server, msg_reply_server, notify_server,
8113 process_reply_server): Remove declarations.
8114
8115 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8116
8117 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8118 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8119 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8120 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8121 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8122 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8123 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8124 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8125 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8126 to gnu_nat_target class.
8127 * gnu-nat.c: Likewise.
8128 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8129 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8130 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8131 object.
8132 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8133 instead of `gnu_target'.
8134
8135 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8136
8137 * i386-gnu-tdep.c: Include "gdbcore.h"
8138 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8139 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8140 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8141 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8142 i386_gnu_sigcontext_addr): New functions
8143 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8144 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8145 tdep.
8146
8147 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8148
8149 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8150 before fork_inferior call. Avoid calling it if target_is_pushed returns
8151 true.
8152
8153 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8154
8155 * gnu-nat.h (gnu_target): New variable declaration.
8156 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8157 gnu_target.
8158 * gnu-nat.c (gnu_target): New variable.
8159 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8160 add_thread_silent, and add_thread calls.
8161 (gnu_nat_target::create_inferior): Pass gnu_target to
8162 add_thread_silent, thread_change_ptid call.
8163 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8164 call.
8165
8166 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8167
8168 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8169 (gnu_nat_target::find_memory_regions): Remove unused
8170 `old_address' variable.
8171
8172 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8173
8174 * gnu-nat.c: Include "gdbarch.h".
8175
8176 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8177
8178 * reply_mig_hack.awk (Error return): Cast function through
8179 void *, to bypass compiler function call check.
8180
8181 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8182
8183 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8184 $(srcdir)/reply_mig_hack.awk.
8185
8186 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8187
8188 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8189
8190 2020-05-30 Jonny Grant <jg@jguk.org>
8191
8192 * configure.ac (ACX_BUGURL): change bug URL to https.
8193
8194 2020-05-30 Pedro Alves <palves@redhat.com>
8195
8196 * cp-support.c (replace_typedefs_template): New.
8197 (replace_typedefs_qualified_name): Handle
8198 DEMANGLE_COMPONENT_TEMPLATE.
8199
8200 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8201
8202 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8203 dwarf2/index-cache.h, dwarf2/index-write.c,
8204 dwarf2/index-write.h, dwarf2/line-header.c,
8205 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8206 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8207 variables and fields from `dwarf2_per_objfile` to just
8208 `per_objfile` throughout.
8209
8210 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8211
8212 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8213 <push_dwarf_reg_entry_value>: Add comment.
8214
8215 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8216 Keith Seitz <keiths@redhat.com>
8217
8218 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8219 instead of PyEval_ReleaseLock.
8220 (class gdbpy_gil): Move to earlier in file.
8221 (finalize_python): Set gdb_python_initialized.
8222 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8223 when not initialized.
8224
8225 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8226
8227 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8228 <push_dwarf_reg_entry_value>: Remove assert. Override
8229 per_objfile with caller_per_objfile.
8230
8231 2020-05-28 Tom de Vries <tdevries@suse.de>
8232
8233 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8234 PR gold/15646 workaround to symbol kind "type".
8235
8236 2020-05-27 Tom Tromey <tromey@adacore.com>
8237
8238 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8239
8240 2020-05-27 Tom Tromey <tromey@adacore.com>
8241
8242 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8243 Use htab_find_with_hash.
8244 <add_abbrev>: Remove "abbrev_number" parameter.
8245 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8246 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8247 (hash_abbrev): Add comment.
8248 (abbrev_table::lookup_abbrev): Move to header file.
8249 (abbrev_table::read): Update.
8250
8251 2020-05-27 Tom Tromey <tromey@adacore.com>
8252
8253 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8254 method.
8255 <canonical_name>: New member.
8256 <raw_name>: Rename from "name".
8257 (partial_die_info): Initialize canonical_name.
8258 (scan_partial_symbols): Check raw_name.
8259 (partial_die_parent_scope, partial_die_full_name)
8260 (add_partial_symbol, add_partial_subprogram)
8261 (add_partial_enumeration, load_partial_dies): Use "name" method.
8262 (partial_die_info::name): New method.
8263 (partial_die_info::read, guess_partial_die_structure_name)
8264 (partial_die_info::fixup): Update.
8265
8266 2020-05-27 Tom Tromey <tromey@adacore.com>
8267
8268 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8269 <get_ref_die_offset>: Inline.
8270 <get_ref_die_offset_complaint>: New method.
8271 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8272 (attribute::get_ref_die_offset_complaint): Rename from
8273 get_ref_die_offset. Just issue complaint.
8274
8275 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8276
8277 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8278
8279 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8280
8281 * exec.c (exec_file_attach): Use errno value of first openp failure.
8282
8283 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8284
8285 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8286 Don't close thread handle.
8287
8288 2020-05-27 Tom Tromey <tom@tromey.com>
8289 Simon Marchi <simon.marchi@efficios.com>
8290
8291 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8292 shared_ptr.
8293 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8294 member.
8295 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8296 dwarf2_per_bfd_objfile_data_key>: New globals.
8297 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8298 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8299 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8300 shared.
8301 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8302 short-circuit when sharing.
8303 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8304 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8305
8306 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8307
8308 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8309 to...
8310 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8311 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8312
8313 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8314
8315 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8316 build_name_components, find_name_components_bounds>:
8317 Add per_objfile parameter.
8318 (struct mapped_index) <symbol_name_at>: Likewise.
8319 (struct mapped_debug_names): Remove constructor.
8320 <dwarf2_per_objfile>: Remove field.
8321 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8322 (mapped_index_base::find_name_components_bounds,
8323 mapped_index_base::build_name_components,
8324 dw2_expand_symtabs_matching_symbol): Likewise.
8325 (class mock_mapped_index) <symbol_name_at>: Likewise.
8326 (check_match): Likewise.
8327 (check_find_bounds_finds): Likewise.
8328 (test_mapped_index_find_name_component_bounds): Update.
8329 (CHECK_MATCH): Update.
8330 (dw2_expand_symtabs_matching): Update.
8331 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8332 per_objfile parameter.
8333 <find_vec_in_debug_names>: Likewise.
8334 <m_per_objfile>: New field.
8335 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8336 parameter.
8337 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8338 (dw2_debug_names_iterator::next): Update.
8339 (dw2_debug_names_lookup_symbol): Update.
8340 (dw2_debug_names_expand_symtabs_for_function): Update.
8341 (dw2_debug_names_map_matching_symbols): Update.
8342 (dw2_debug_names_expand_symtabs_matching): Update.
8343 (dwarf2_read_debug_names): Update.
8344
8345 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8346
8347 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8348 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8349 move to dwarf2_per_objfile.
8350 <read_in_chain>: Remove.
8351 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8352 remove_all_cus, age_comp_units>: New methods.
8353 <m_dwarf2_cus>: New member.
8354 (struct dwarf2_per_cu_data) <cu>: Remove.
8355 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8356 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8357 moved to methods of dwarf2_per_objfile.
8358 (dwarf2_clear_marks): Remove.
8359 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8360 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8361 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8362 (dwarf2_per_objfile::remove_all_cus): New.
8363 (class free_cached_comp_units) <~free_cached_comp_units>:
8364 Update.
8365 (load_cu): Update.
8366 (dw2_do_instantiate_symtab): Adjust.
8367 (fill_in_sig_entry_from_dwo_entry): Adjust.
8368 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8369 (cutu_reader::cutu_reader): Likewise.
8370 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8371 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8372 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8373 and dwarf2_per_objfile::age_comp_units.
8374 (load_partial_comp_unit): Update.
8375 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8376 (process_queue): Likewise.
8377 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8378 backlink.
8379 (dwarf2_read_addr_index): Likewise.
8380 (follow_die_offset): Likewise.
8381 (dwarf2_fetch_die_loc_sect_off): Likewise.
8382 (dwarf2_fetch_constant_bytes): Likewise.
8383 (dwarf2_fetch_die_type_sect_off): Likewise.
8384 (follow_die_sig_1): Likewise.
8385 (load_full_type_unit): Likewise.
8386 (read_signatured_type): Likewise.
8387 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8388 (dwarf2_cu::~dwarf2_cu): Remove.
8389 (dwarf2_per_objfile::get_cu): New.
8390 (dwarf2_per_objfile::set_cu): New.
8391 (age_cached_comp_units): Rename to...
8392 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8393 to std::unordered_map.
8394 (free_one_cached_comp_unit): Rename to...
8395 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8396 to std::unordered_map.
8397 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8398 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8399 a dwarf2_per_objfile in data.
8400 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8401 (dwarf2_clear_marks): Remove.
8402
8403 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8404
8405 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8406 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8407 (init_tu_and_read_dwo_dies): Likewise.
8408 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8409 (cutu_reader::cutu_reader): Likewise.
8410 (load_partial_comp_unit): Likewise.
8411 (process_psymtab_comp_unit): Update.
8412 (build_type_psymtabs_1): Update.
8413 (process_skeletonless_type_unit): Update.
8414 (load_full_comp_unit): Update.
8415 (find_partial_die): Update.
8416 (dwarf2_read_addr_index): Update.
8417 (read_signatured_type): Update.
8418
8419 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8420
8421 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8422 m_header_read_in>: New fields.
8423 <get_header>: New method.
8424 * dwarf2/read.c (per_cu_header_read_in): Remove.
8425 (dwarf2_per_cu_data::get_header): New.
8426 (dwarf2_per_cu_data::addr_size): Update.
8427 (dwarf2_per_cu_data::offset_size): Update.
8428 (dwarf2_per_cu_data::ref_addr_size): Update.
8429
8430 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8431
8432 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8433 (dw2_do_instantiate_symtab): Update.
8434 (queue_and_load_all_dwo_tus): Change parameter from
8435 dwarf2_per_cu_data to dwarf2_cu.
8436 (dwarf2_fetch_die_loc_sect_off): Update.
8437 (dwarf2_fetch_constant_bytes): Update.
8438 (dwarf2_fetch_die_type_sect_off): Update.
8439
8440 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8441
8442 * dwarf2/read.c (process_full_comp_unit,
8443 process_full_type_unit): Remove per_cu, per_objfile paramters.
8444 Add dwarf2_cu parameter.
8445 (process_queue): Update.
8446
8447 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8448
8449 * dwarf2/read.c (create_cu_from_index_list): Replace
8450 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8451 (create_cus_from_index_list): Likewise.
8452 (create_cus_from_index): Likewise.
8453 (create_signatured_type_table_from_index): Likewise.
8454 (create_cus_from_debug_names_list): Likewise.
8455 (create_cus_from_debug_names): Likewise.
8456 (dwarf2_read_gdb_index): Update.
8457 (dwarf2_read_debug_names): Update.
8458
8459 2020-05-27 Tom Tromey <tom@tromey.com>
8460 Simon Marchi <simon.marchi@efficios.com>
8461
8462 * dwarf2/read.h (struct dwarf2_per_objfile)
8463 <get_type_for_signatured_type, set_type_for_signatured_type>:
8464 New methods.
8465 <m_type_map>: New member.
8466 (struct signatured_type) <type>: Remove.
8467 * dwarf2/read.c
8468 (dwarf2_per_objfile::get_type_for_signatured_type,
8469 dwarf2_per_objfile::set_type_for_signatured_type): New.
8470 (get_signatured_type): Use new methods.
8471
8472 2020-05-27 Tom Tromey <tom@tromey.com>
8473 Simon Marchi <simon.marchi@efficios.com>
8474
8475 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8476 (struct dwarf2_per_objfile) <type_units>: New member.
8477 <get_type_unit_group_unshareable>: New method.
8478 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8479 num_symtabs, symtabs>: Remove; move to
8480 type_unit_group_unshareable.
8481 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8482 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8483 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8484
8485 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8486
8487 * dwarf2/read.h (struct dwarf2_per_cu_data):
8488 <dwarf2_per_objfile>: Remove.
8489 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8490 dwarf2_per_objfile.
8491 (create_signatured_type_table_from_index): Likewise.
8492 (create_signatured_type_table_from_debug_names): Likewise.
8493 (create_debug_type_hash_table): Likewise.
8494 (fill_in_sig_entry_from_dwo_entry): Likewise.
8495 (create_type_unit_group): Likewise.
8496 (read_comp_units_from_section): Likewise.
8497 (create_cus_hash_table): Likewise.
8498
8499 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8500
8501 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8502 dwarf2_per_cu_data::dwarf2_per_objfile.
8503 (compute_compunit_symtab_includes): Likewise.
8504 (dwarf2_cu::start_symtab): Likewise.
8505
8506 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8507
8508 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8509 parameter.
8510 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8511 (read_namespace_alias): Update.
8512 (lookup_die_type): Update.
8513 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8514 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8515 Update.
8516 (disassemble_dwarf_expression): Update.
8517
8518 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8519
8520 * dwarf2/read.h (struct dwarf2_queue_item): Add
8521 dwarf2_per_objfile parameter, assign new parameter.
8522 <per_objfile>: New field.
8523 * dwarf2/read.c (free_one_cached_comp_unit): Add
8524 dwarf2_per_objfile parameter.
8525 (queue_comp_unit): Likewise.
8526 (dw2_do_instantiate_symtab): Update.
8527 (process_psymtab_comp_unit): Update.
8528 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8529 (process_imported_unit_die): Update.
8530 (queue_and_load_dwo_tu): Update.
8531 (follow_die_offset): Update.
8532 (follow_die_sig_1): Update.
8533
8534 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8535
8536 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8537 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8538 (read_call_site_scope): Assign per_objfile.
8539 (dwarf2_per_cu_data::objfile): Remove.
8540 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8541 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8542 dwarf2_per_objfile parameter.
8543 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8544 dwarf2_per_objfile parameter.
8545 (dwarf_expr_reg_to_entry_parameter): Add output
8546 dwarf2_per_objfile parameter.
8547 (locexpr_get_frame_base): Update.
8548 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8549 <push_dwarf_reg_entry_value>: Update.
8550 <call_site_to_target_addr>: Update.
8551 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8552 parameter.
8553 (value_of_dwarf_reg_entry): Update.
8554 (rw_pieced_value): Update.
8555 (indirect_synthetic_pointer): Update.
8556 (dwarf2_evaluate_property): Update.
8557 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8558 parameter.
8559 (locexpr_read_variable): Update.
8560 (locexpr_get_symbol_read_needs): Update.
8561 (loclist_read_variable): Update.
8562
8563 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8564
8565 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8566 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8567 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8568 parameter.
8569 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8570 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8571 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8572 parameter.
8573 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8574 sect_variable_value): Add dwarf2_per_objfile parameter.
8575 (class dwarf_evaluate_loc_desc) <dwarf_call,
8576 dwarf_variable_value>: Update.
8577 (fetch_const_value_from_synthetic_pointer): Add
8578 dwarf2_per_objfile parameter.
8579 (fetch_const_value_from_synthetic_pointer): Update.
8580 (coerced_pieced_ref): Update.
8581 (class symbol_needs_eval_context) <dwarf_call,
8582 dwarf_variable_value>: Update.
8583 (dwarf2_compile_expr_to_ax): Update.
8584
8585 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8586
8587 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8588 parameter.
8589 (dwarf2_evaluate_loc_desc_full): Update.
8590
8591 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8592
8593 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8594 parameter.
8595 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8596 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8597 dwarf2_per_objfile parameter.
8598 (decode_debug_loc_dwo_addresses): Likewise.
8599 (dwarf2_find_location_expression): Update.
8600 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8601 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8602 parameter.
8603 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8604 parameter.
8605 (locexpr_describe_location_1): Likewise.
8606 (locexpr_describe_location): Update.
8607
8608 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8609
8610 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8611 Remove.
8612 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8613 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8614 (dwarf2_compile_property_to_c): Update.
8615 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8616 use text offset from objfile.
8617 (locexpr_tracepoint_var_ref): Update.
8618 (locexpr_generate_c_location): Update.
8619 (loclist_describe_location): Update.
8620 (loclist_tracepoint_var_ref): Update.
8621 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8622 dwarf2_per_objfile parameter.
8623 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8624 use text offset from objfile.
8625 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8626
8627 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8628
8629 * dwarf2/expr.h (struct dwarf_expr_context)
8630 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8631 <offset>: Remove.
8632 <per_objfile>: New member.
8633 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8634 dwarf2_per_objfile parameter. Don't set offset, set
8635 per_objfile.
8636 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8637 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8638 a dwarf2_per_objfile object instead of an offset.
8639 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8640 constructor.
8641 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8642 to dwarf2_expr_executor constructor. Don't set offset.
8643 (dwarf2_fetch_cfa_info): Update.
8644 (struct dwarf2_frame_cache) <text_offset>: Remove.
8645 <per_objfile>: New field.
8646 (dwarf2_frame_cache): Update.
8647 (dwarf2_frame_prev_register): Update.
8648 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8649 <dwarf_evaluate_loc_desc>: Add constructor.
8650 (dwarf2_evaluate_loc_desc_full): Update.
8651 (dwarf2_locexpr_baton_eval): Update.
8652 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8653 Add constructor.
8654 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8655
8656 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8657
8658 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8659 addr_sized_int_type>: Move to dwarf2_cu.
8660 <int_type>: Move to dwarf2_per_objfile.
8661 (struct dwarf2_per_objfile) <int_type>: Move here.
8662 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8663 addr_sized_int_type>: Move here.
8664 (read_func_scope): Update.
8665 (read_array_type): Update.
8666 (read_tag_string_type): Update.
8667 (attr_to_dynamic_prop): Update.
8668 (dwarf2_per_cu_data::int_type): Rename to...
8669 (dwarf2_per_objfile::int_type): ... this.
8670 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8671 (dwarf2_cu::addr_sized_int_type): ... this.
8672 (read_subrange_type): Update.
8673 (dwarf2_per_cu_data::addr_type): Rename to...
8674 (dwarf2_cu::addr_type): ... this.
8675 (set_die_type): Update.
8676
8677 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8678
8679 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8680 data through per_cu->cu.
8681
8682 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8683
8684 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8685 dwarf2_per_cu_data parameter fo dwarf2_cu.
8686 (lookup_dwo_type_unit): Likewise.
8687 (read_cutu_die_from_dwo): Likewise.
8688 (lookup_dwo_unit): Likewise.
8689 (open_and_init_dwo_file): Likewise.
8690 (lookup_dwo_cutu): Likewise.
8691 (lookup_dwo_comp_unit): Likewise.
8692 (lookup_dwo_type_unit): Likewise.
8693 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8694 (cutu_reader::cutu_reader): Update.
8695
8696 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8697
8698 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8699 parameter.
8700 (process_full_type_unit): Likewise.
8701 (process_queue): Update.
8702
8703 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8704
8705 * dwarf2/read.c (recursively_compute_inclusions): Add
8706 dwarf2_per_objfile parameter.
8707 (compute_compunit_symtab_includes): Likewise.
8708 (process_cu_includes): Update.
8709
8710 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8711
8712 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8713 parameter.
8714 (create_type_unit_group): Update.
8715 (process_psymtab_comp_unit_reader): Update.
8716 (build_type_psymtabs_reader): Update.
8717
8718 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8719
8720 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8721 object through m_this_cu->cu.
8722
8723 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8724
8725 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8726 the info parameter.
8727 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8728
8729 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8730
8731 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8732 per_objfile parameter.
8733 (load_full_type_unit): Add per_objfile parameter.
8734 (read_signatured_type): Likewise.
8735 (load_full_comp_unit): Likewise.
8736 (load_cu): Likewise.
8737 (dw2_do_instantiate_symtab): Likewise.
8738 (dw2_get_file_names): Likewise.
8739 (dw2_map_symtabs_matching_filename): Update.
8740 (dw_expand_symtabs_matching_file_matcher): Update.
8741 (dw2_map_symbol_filenames): Update.
8742 (process_psymtab_comp_unit): Add per_objfile parameter.
8743 (build_type_psymtabs_1): Update.
8744 (process_skeletonless_type_unit): Update.
8745 (dwarf2_build_psymtabs_hard): Update.
8746 (load_partial_comp_unit): Add per_objfile parameter.
8747 (scan_partial_symbols): Update.
8748 (load_full_comp_unit): Add per_objfile parameter.
8749 (process_imported_unit_die): Update.
8750 (create_cus_hash_table): Update.
8751 (find_partial_die): Update.
8752 (dwarf2_read_addr_index): Update.
8753 (follow_die_offset): Update.
8754 (dwarf2_fetch_die_loc_sect_off): Update.
8755 (dwarf2_fetch_constant_bytes): Update.
8756 (dwarf2_fetch_die_type_sect_off): Update.
8757 (follow_die_sig_1): Update.
8758 (load_full_type_unit): Add per_objfile parameter.
8759 (read_signatured_type): Likewise.
8760
8761 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8762
8763 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8764 of objfile_name.
8765
8766 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8767
8768 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8769 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8770 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8771 field.
8772 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8773 (create_cus_from_index): Update.
8774 (dwarf2_read_gdb_index): Update.
8775 (create_cus_from_debug_names): Update.
8776 (dwarf2_read_debug_names): Update.
8777 (get_abbrev_section_for_cu): Update.
8778 (create_all_comp_units): Update.
8779 (read_attribute_value): Update.
8780 (get_debug_line_section): Update.
8781 * dwarf2/index-cache.c (index_cache::store): Update.
8782 * dwarf2/index-write.c (save_gdb_index_command): Update.
8783 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8784
8785 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8786
8787 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8788 member.
8789 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8790 dwarf2_per_cu_data::per_bfd.
8791 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8792 (create_type_unit_group): Likewise.
8793 (queue_comp_unit): Remove reference to
8794 per_cu->dwarf2_per_objfile.
8795 (maybe_queue_comp_unit): Likewise.
8796 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8797 (create_cus_hash_table): Assign new field.
8798
8799 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8800
8801 * dwarf2/read.c: Replace
8802 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8803 dwarf2_cu->per_objfile throughout.
8804
8805 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8808 parameter, don't use per_cu->dwarf2_per_objfile.
8809 (dw2_instantiate_symtab): Likewise.
8810 (dw2_find_last_source_symtab): Update.
8811 (dw2_map_expand_apply): Update.
8812 (dw2_lookup_symbol): Update.
8813 (dw2_expand_symtabs_for_function): Update.
8814 (dw2_expand_all_symtabs): Update.
8815 (dw2_expand_symtabs_with_fullname): Update.
8816 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8817 don't use per_cu->dwarf2_per_objfile.
8818 (dw2_expand_marked_cus): Update.
8819 (dw2_find_pc_sect_compunit_symtab): Update.
8820 (dw2_debug_names_lookup_symbol): Update.
8821 (dw2_debug_names_expand_symtabs_for_function): Update.
8822 (dw2_debug_names_map_matching_symbols): Update.
8823 (dwarf2_psymtab::expand_psymtab): Update.
8824
8825 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8826
8827 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8828 <per_objfile>: New member.
8829 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8830 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8831 call to dwarf2_cu.
8832 (cutu_reader::cutu_reader): Update.
8833 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8834
8835 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8836
8837 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8838 struct dwarf2_per_objfile.
8839 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8840 dwarf2_per_bfd.
8841 * dwarf2/read.c (set_die_type): Update.
8842 (get_die_type_at_offset): Update.
8843
8844 2020-05-27 Tom Tromey <tom@tromey.com>
8845 Simon Marchi <simon.marchi@efficios.com>
8846
8847 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8848 method.
8849 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8850 get_symtab, set_symtab>: New methods.
8851 <m_symtabs>: New field.
8852 (struct dwarf2_psymtab): Derive from partial_symtab.
8853 <readin_p, get_compunit_symtab>: Declare methods.
8854 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8855 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8856 New methods.
8857 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8858 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8859 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8860 (dw2_symtab_iter_next, dw2_print_stats)
8861 (dw2_expand_symtabs_with_fullname)
8862 (dw2_expand_symtabs_matching_one)
8863 (dw_expand_symtabs_matching_file_matcher)
8864 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8865 (dw2_debug_names_iterator::next)
8866 (dw2_debug_names_map_matching_symbols)
8867 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8868 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8869 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8870 New methods.
8871 (get_compunit_symtab, process_full_comp_unit)
8872 (process_full_type_unit): Update.
8873 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8874
8875 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8876
8877 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8878 then introduce a new dwarf2_per_objfile type.
8879 <read_line_string>: Move to the new dwarf2_per_objfile type.
8880 <objfile>: Likewise.
8881 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8882 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8883 dwarf2_per_objfile->per_bfd.
8884 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8885 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8886 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8887 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8888 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8889 (dwarf2_per_objfile::locate_sections): Rename to...
8890 (dwarf2_per_bfd::locate_sections): ... this.
8891 (dwarf2_per_objfile::get_cutu): Rename to...
8892 (dwarf2_per_bfd::get_cutu): ... this.
8893 (dwarf2_per_objfile::get_cu): Rename to...
8894 (dwarf2_per_bfd::get_cu): ... this.
8895 (dwarf2_per_objfile::get_tu): Rename to...
8896 (dwarf2_per_bfd::get_tu): ... this.
8897 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8898 (dwarf2_per_bfd::allocate_per_cu): ... this.
8899 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8900 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8901 (get_gdb_index_contents_ftype): Change parameter from
8902 dwarf2_per_objfile to dwarf2_per_bfd.
8903 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8904 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8905
8906 2020-05-27 Tom Tromey <tom@tromey.com>
8907 Simon Marchi <simon.marchi@efficios.com>
8908
8909 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8910 (allocate_piece_closure): Set "per_objfile" member.
8911 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8912 (locexpr_describe_location, loclist_describe_location): Use new
8913 member.
8914 * dwarf2/read.c (read_call_site_scope)
8915 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8916 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8917 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8918 handle_data_member_location): Set per_objfile member.
8919 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8920 member.
8921 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8922
8923 2020-05-27 Tom Tromey <tom@tromey.com>
8924
8925 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8926 allocate_signatured_type>: Declare new methods.
8927 <m_num_psymtabs>: New member.
8928 (struct dwarf2_per_cu_data) <index>: New member.
8929 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8930 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8931 (create_cu_from_index_list): Use allocate_per_cu.
8932 (create_signatured_type_table_from_index)
8933 (create_signatured_type_table_from_debug_names)
8934 (create_debug_type_hash_table, add_type_unit)
8935 (read_comp_units_from_section): Use allocate_signatured_type.
8936
8937 2020-05-27 Tom Tromey <tom@tromey.com>
8938
8939 * psymtab.c (partial_map_expand_apply)
8940 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8941 (psym_lookup_global_symbol_language)
8942 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8943 (psym_print_stats, psym_expand_symtabs_for_function)
8944 (psym_map_symbol_filenames, psym_map_matching_symbols)
8945 (psym_expand_symtabs_matching)
8946 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8947 (maintenance_check_psymtabs): Update.
8948 * psympriv.h (struct partial_symtab) <readin_p,
8949 get_compunit_symtab>: Add objfile parameter.
8950 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8951 Likewise.
8952 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8953 get_compunit_symtab>: Likewise.
8954 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8955
8956 2020-05-27 Tom Tromey <tom@tromey.com>
8957
8958 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8959 member.
8960 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8961 (create_cu_from_index_list)
8962 (create_signatured_type_table_from_index)
8963 (create_signatured_type_table_from_debug_names)
8964 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8965 (dwarf2_create_include_psymtab)
8966 (create_debug_type_hash_table, add_type_unit)
8967 (create_type_unit_group, read_comp_units_from_section)
8968 (dwarf2_compute_name, create_cus_hash_table)
8969 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8970 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8971 obstack.
8972 (dw2_get_real_path): Likewise. Change argument to
8973 dwarf2_per_objfile.
8974
8975 2020-05-27 Luis Machado <luis.machado@linaro.org>
8976
8977 PR tdep/26000
8978 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8979 for ldrd (immediate).
8980
8981 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8982
8983 * command.h: Add comment giving the name of class_tui.
8984 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8985 create the fake command for the help for class_tui.
8986
8987 2020-05-26 Tom Tromey <tromey@adacore.com>
8988
8989 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8990 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8991 (val_atr): New function.
8992 (value_val_atr): Use it.
8993 * ada-valprint.c (print_optional_low_bound): Change low bound
8994 handling for enums.
8995 (val_print_packed_array_elements): Don't call discrete_position.
8996 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8997 discrete_position for enum types.
8998 * language.c (default_print_array_index): Change type.
8999 * language.h (struct language_defn) <la_print_array_index>: Add
9000 index_type parameter, change type of index_value.
9001 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9002 (default_print_array_index): Update.
9003 * valprint.c (maybe_print_array_index): Don't call
9004 value_from_longest. Update.
9005 (value_print_array_elements): Don't call discrete_position.
9006
9007 2020-05-26 Tom Tromey <tromey@adacore.com>
9008
9009 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9010 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9011
9012 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9013
9014 PR gdb/13519
9015 * avr-tdep.c (avr_integer_to_address): Return data or code
9016 address accordingly to the second 'type' argument of the
9017 function.
9018
9019 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9020
9021 * infcmd.c, inferior.h: (construct_inferior_arguments):
9022 Moved function from here to gdbsupport/common-inferior.{h,cc}
9023
9024 2020-05-23 Tom Tromey <tom@tromey.com>
9025
9026 Revert commit eca1f90c:
9027 * NEWS: Remove entry for completion styling.
9028 * completer.c (_rl_completion_prefix_display_length): Move
9029 declaration later.
9030 (gdb_fnprint): Revert.
9031 (gdb_display_match_list_1): Likewise.
9032 * cli/cli-style.c (completion_prefix_style)
9033 (completion_difference_style, completion_suffix_style): Remove.
9034 (_initialize_cli_style): Revert.
9035 * cli/cli-style.h (completion_prefix_style)
9036 (completion_difference_style, completion_suffix_style): Don't
9037 declare.
9038
9039 2020-05-24 Pedro Alves <palves@redhat.com>
9040
9041 * symtab.c (completion_list_add_name): Return boolean indication
9042 of whether the symbol matched.
9043 (completion_list_add_symbol): Don't try to remove C++ aliases if
9044 the symbol didn't match in the first place.
9045 * symtab.h (completion_list_add_name): Return bool.
9046
9047 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9048
9049 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9050 type::field.
9051
9052 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9053
9054 GDB 9.2 released.
9055
9056 2020-05-23 Tom Tromey <tom@tromey.com>
9057
9058 * NEWS: Add entry for completion styling.
9059 * completer.c (_rl_completion_prefix_display_length): Move
9060 declaration earlier.
9061 (gdb_fnprint): Use completion_style.
9062 (gdb_display_match_list_1): Likewise.
9063 * cli/cli-style.c (completion_prefix_style)
9064 (completion_difference_style, completion_suffix_style): New
9065 globals.
9066 (_initialize_cli_style): Register new globals.
9067 * cli/cli-style.h (completion_prefix_style)
9068 (completion_difference_style, completion_suffix_style): Declare.
9069
9070 2020-05-23 Pedro Alves <palves@redhat.com>
9071
9072 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9073 (parse_escape): Use ISDIGIT instead of isdigit.
9074 (puts_debug): Use gdb_isprint instead of isprint.
9075 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9076 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9077 ISSPACE instead of isspace.
9078 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9079 instead of isspace.
9080 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9081 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9082 instead of isxdigit and ISDIGIT instead of isdigit.
9083
9084 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * gdbtypes.h (struct type) <field>: New method.
9087 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9088 or type::field.
9089
9090 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9091
9092 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9093 (TYPE_FIELDS): Use type::fields. Change all call sites that
9094 modify the propery to use type::set_fields instead.
9095
9096 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9097
9098 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9099 type::num_fields instead.
9100
9101 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9102
9103 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9104 methods.
9105 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9106 that modify the number of fields to use type::set_num_fields
9107 instead.
9108
9109 2020-05-22 Tom Tromey <tromey@adacore.com>
9110
9111 * compile/compile-object-load.h (munmap_list_free): Don't
9112 declare.
9113
9114 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9115
9116 * annotate.c (annotate_source_line): Update return type, add call
9117 to update current symtab and line.
9118 * annotate.h (annotate_source_line): Update return type, and
9119 extend header comment.
9120 * source.c (info_line_command): Check annotation_level before
9121 calling annotate_source_line.
9122 * stack.c (print_frame_info): If calling annotate_source_line
9123 returns true, then don't print any other source line information.
9124
9125 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9126
9127 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9128
9129 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9130
9131 * coffread.c (patch_type): Remove NULL check before xfree.
9132 * corefile.c (set_gnutarget): Likewise.
9133 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9134 * exec.c (build_section_table): Likewise.
9135 * remote.c (remote_target::pass_signals): Likewise.
9136 * utils.c (n_spaces): Likewise.
9137 * cli/cli-script.c (document_command): Likewise.
9138 * i386-windows-tdep.c (core_process_module_section): Likewise.
9139 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9140
9141 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9142
9143 * symfile.c (reread_symbols): Clear objfile's section_offsets
9144 vector and section indices, re-compute them by calling
9145 sym_offsets.
9146
9147 2020-05-20 Tom Tromey <tromey@adacore.com>
9148
9149 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9150 (desc_one_bound, desc_index_type): Compute field name.
9151
9152 2020-05-20 Tom de Vries <tdevries@suse.de>
9153
9154 PR symtab/25833
9155 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9156
9157 2020-05-20 Alan Modra <amodra@gmail.com>
9158
9159 PR 25993
9160 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9161 bfd_set_filename.
9162 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9163 passed to bfd_set_filename.
9164 * symfile-mem.c (add_vsyscall_page): Likewise for string
9165 passed to symbol_file_add_from_memory.
9166 (symbol_file_add_from_memory): Make name param a const char* and
9167 don't strdup.
9168
9169 2020-05-20 Alan Modra <amodra@gmail.com>
9170
9171 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9172 rather than accessing bfd->filename directly.
9173 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9174 and use bfd_section_name.
9175 * dwarf2/frame.c (decode_frame_entry): Likewise.
9176 * exec.c (exec_set_section_address): Likewise.
9177 * solib-aix.c (solib_aix_bfd_open): Likewise.
9178 * stap-probe.c (get_stap_base_address): Likewise.
9179 * symfile.c (reread_symbols): Likewise.
9180
9181 2020-05-19 Tom Tromey <tromey@adacore.com>
9182
9183 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9184
9185 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9186
9187 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9188
9189 2020-05-19 Pedro Alves <palves@redhat.com>
9190
9191 * NEWS (set exec-file-mismatch): Adjust entry.
9192 * exec.c: Include "build-id.h".
9193 (validate_exec_file): Try to match build IDs instead of filenames.
9194 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9195 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9196 and pass down 'warn_if_slow'.
9197 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9198 gdb_bfd_open_closure to pass it down.
9199 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9200
9201 2020-05-19 Pedro Alves <palves@redhat.com>
9202
9203 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9204 * target.c (target_fileio_open_1): Rename to target_fileio_open
9205 and make extern. Use bool.
9206 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9207 (target_fileio_read_alloc_1): Adjust.
9208 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9209 (target_fileio_open_warn_if_slow): Delete declaration.
9210
9211 2020-05-19 Pedro Alves <palves@redhat.com>
9212
9213 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9214 Adjust all callers.
9215
9216 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9217
9218 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9219 whether disp is negative.
9220
9221 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9222
9223 * symfile.h (struct symfile_segment_data)
9224 <~symfile_segment_data>: Remove.
9225 <segment_info>: Change to std::vector.
9226 * symfile.c (default_symfile_segments): Update.
9227 * elfread.c (elf_symfile_segments): Update.
9228
9229 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9230
9231 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9232 <segments>: New.
9233 <segment_bases, segment_sizes>: Remove.
9234 * symfile.c (default_symfile_segments): Update.
9235 * elfread.c (elf_symfile_segments): Update.
9236 * remote.c (remote_target::get_offsets): Update.
9237 * solib-target.c (solib_target_relocate_section_addresses):
9238 Update.
9239
9240 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9241
9242 * symfile.h (struct symfile_segment_data): Initialize fields.
9243 <~symfile_segment_data>: Add.
9244 (symfile_segment_data_up): New.
9245 (struct sym_fns) <sym_segments>: Return a
9246 symfile_segment_data_up.
9247 (default_symfile_segments): Return a symfile_segment_data_up.
9248 (free_symfile_segment_data): Remove.
9249 (get_symfile_segment_data): Return a symfile_segment_data_up.
9250 * symfile.c (default_symfile_segments): Likewise.
9251 (get_symfile_segment_data): Likewise.
9252 (free_symfile_segment_data): Remove.
9253 (symfile_find_segment_sections): Update.
9254 * elfread.c (elf_symfile_segments): Return a
9255 symfile_segment_data_up.
9256 * remote.c (remote_target::get_offsets): Update.
9257 * solib-target.c (solib_target_relocate_section_addresses):
9258 Update.
9259 * symfile-debug.c (debug_sym_segments): Return a
9260 symfile_segment_data_up.
9261
9262 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9263
9264 PR build/25981
9265 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9266 Hardcode register numbers.
9267
9268 PR build/25981
9269 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9270 procfs_find_LDT_entry): Remove.
9271 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9272 procfs_find_LDT_entry): Remove.
9273 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9274 Remove.
9275
9276 2020-05-17 Pedro Alves <palves@redhat.com>
9277 Andrew Burgess <andrew.burgess@embecosm.com>
9278 Keno Fischer <keno@juliacomputing.com>
9279
9280 PR gdb/25741
9281 * breakpoint.c (build_target_condition_list): Update comments.
9282 (build_target_command_list): Update comments and skip matching
9283 locations.
9284 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9285 a separate function. Simplify "set breakpoint auto-hw off"
9286 handling.
9287 (insert_breakpoints): Update comment.
9288 (tracepoint_locations_match): New parameter. For breakpoints,
9289 compare location types too, if the caller wants to.
9290 (handle_automatic_hardware_breakpoints): New functions.
9291 (bp_location_is_less_than): Also sort by location type and
9292 hardware breakpoint length.
9293 (update_global_location_list): Handle "set breakpoint auto-hw on"
9294 here.
9295 (update_breakpoint_locations): Ask breakpoint_locations_match to
9296 ignore location types.
9297
9298 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9301 type::name instead.
9302
9303 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9304
9305 * gdbtypes.h (struct type) <name, set_name>: New methods.
9306 (TYPE_CODE): Use type::name. Change all call sites used to set
9307 the name to use type::set_name instead.
9308
9309 2020-05-16 Tom Tromey <tom@tromey.com>
9310
9311 * top.c (quit_force): Update.
9312 * infrun.c (handle_no_resumed): Update.
9313 * top.h (all_uis): New function.
9314 (ALL_UIS): Remove.
9315
9316 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9319
9320 2020-05-16 Pedro Alves <palves@redhat.com>
9321
9322 * ia64-linux-nat.c
9323 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9324 Declare method.
9325 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9326
9327 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9328
9329 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9330 (sparc64_adi_info): Likewise.
9331
9332 2020-05-15 Tom Tromey <tom@tromey.com>
9333
9334 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9335 block_objfile.
9336 (lookup_objfile_from_block): Remove.
9337 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9338 (lookup_global_symbol): Use block_objfile.
9339 * symtab.h (lookup_objfile_from_block): Don't declare.
9340 * printcmd.c (clear_dangling_display_expressions): Use
9341 block_objfile.
9342 * parse.c (operator_check_standard): Use block_objfile.
9343
9344 2020-05-15 Tom Tromey <tom@tromey.com>
9345
9346 * language.c (language_alloc_type_symbol): Set
9347 SYMBOL_SECTION.
9348 * symtab.c (initialize_objfile_symbol): Remove.
9349 (allocate_symbol): Remove.
9350 (allocate_template_symbol): Remove.
9351 * dwarf2/read.c (fixup_go_packaging): Use "new".
9352 (new_symbol): Use "new".
9353 (read_variable): Don't call initialize_objfile_symbol. Use
9354 "new".
9355 (read_func_scope): Use "new".
9356 * xcoffread.c (process_xcoff_symbol): Don't call
9357 initialize_objfile_symbol.
9358 (SYMBOL_DUP): Remove.
9359 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9360 "new".
9361 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9362 (allocate_template_symbol): Don't declare.
9363 (struct symbol): Add copy constructor. Change defaults.
9364 * jit.c (finalize_symtab): Use "new".
9365 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9366 Use "new".
9367 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9368 (common_block_end): Use "new".
9369 * mdebugread.c (parse_symbol): Use "new".
9370 (new_symbol): Likewise.
9371
9372 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9373
9374 * NEWS: Mention changes to help and apropos.
9375
9376 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9377
9378 * command.h (enum command_class): Improve comments, document
9379 that class_alias is for user-defined aliases, give the class
9380 name for each class, remove unused class_xdb.
9381 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9382 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9383 by a precise class.
9384 * infcmd.c (_initialize_infcmd): Likewise.
9385 * reverse.c (_initialize_reverse): Likewise.
9386 * stack.c (_initialize_stack): Likewise.
9387 * symfile.c (_initialize_symfile): Likewise.
9388 * tracepoint.c (_initialize_tracepoint): Likewise.
9389
9390 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9391
9392 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9393 when their aliased command is traversed.
9394 (help_cmd): Add fput_command_names_styled call to
9395 output command name and aliases when command has an alias.
9396
9397 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9398
9399 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9400 * cli/cli-decode.c (help_cmd_list): Declare as static,
9401 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9402 a command together with the command.
9403 (fput_command_name_styled, fput_command_names_styled): New functions.
9404 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9405 fput_command_name_styled.
9406 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9407 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9408
9409 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9410
9411 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9412 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9413 * command.h (cmd_show_list): Likewise.
9414 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9415 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9416
9417 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9418
9419 * unittests/command-def-selftests.c (traverse_command_structure):
9420 Verify all commands of a list have the same prefix command and
9421 that only the top cmdlist commands have a null prefix.
9422
9423 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9424
9425 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9426 as prefix, not one of its aliases.
9427 (set_cmd_prefix): Remove.
9428 (do_add_cmd): Centralize the setting of the prefix of a command, when
9429 command is defined after its full chain of prefix commands.
9430 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9431 (add_setshow_cmd_full): Likewise.
9432 (update_prefix_field_of_prefixed_commands): New function.
9433 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9434 update_prefix_field_of_prefixed_commands.
9435 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9436 addresses of remote_set_cmdlist and remote_show_cmdlist given
9437 as argument, not the address of an argument.
9438 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9439 * gdb/remote.c (_initialize_remote): Likewise.
9440
9441 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9442
9443 * cli/cli-cmds.c (alias_command): Check for an existing alias
9444 using lookup_cmd_composition, as valid_command_p is too strict
9445 and forbids aliases that are the prefix of an existing alias
9446 or command.
9447 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9448 command is properly recognised as a valid command.
9449
9450 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9451
9452 * unittests/help-doc-selftests.c: Rename to
9453 unittests/command-def-selftests.c
9454 * unittests/command-def-selftests.c (help_doc_tests): Update some
9455 comments.
9456 (command_structure_tests, traverse_command_structure): New namespace
9457 and function.
9458 (command_structure_invariants_tests): New function.
9459 (_initialize_command_def_selftests) Renamed from
9460 _initialize_help_doc_selftests, register command_structure_invariants
9461 selftest.
9462
9463 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9464
9465 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9466 an alias of 'show'.
9467
9468 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9469
9470 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9471 ada_is_fixed_point_type. Update all callers.
9472 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9473 all callers.
9474 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9475 Update all callers.
9476 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9477 print_fixed_point_type. Update all callers.
9478 * ada-valprint.c (ada_value_print_num): Replace call to
9479 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9480
9481 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9482
9483 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9484 processors.
9485 (cpu_supports_bts): Add CV_AMD case.
9486
9487 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9488 Simon Marchi <simon.marchi@efficios.com>
9489
9490 * infrun.c (stop_all_threads): Collect multiple wait events at
9491 each pass.
9492
9493 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9494
9495 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9496 type::code instead.
9497
9498 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * gdbtypes.h (struct type) <code, set_code>: New methods.
9501 (TYPE_CODE): Use type::code. Change all call sites used to set
9502 the code to use type::set_code instead.
9503
9504 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9505 Tom de Vries <tdevries@suse.de>
9506 Pedro Alves <palves@redhat.com>
9507
9508 PR threads/25478
9509 * infrun.c (stop_all_threads): Do NOT ignore
9510 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9511 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9512 received.
9513 (handle_no_resumed): Remove code handling a live inferior with no
9514 threads.
9515 * remote.c (has_single_non_exited_thread): New.
9516 (remote_target::update_thread_list): Do not delete a thread if is
9517 the last thread of the process.
9518 * thread.c (thread_select): Call delete_exited_threads instead of
9519 prune_threads.
9520
9521 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9522
9523 * infrun.c (stop_all_threads): Enable/disable thread events of all
9524 targets. Move a debug message denoting the end of the function
9525 into the SCOPED_EXIT block.
9526
9527 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9528
9529 * process-stratum-target.h: Include <set>.
9530 (all_non_exited_process_targets, switch_to_target_no_thread): New
9531 function declarations.
9532 * process-stratum-target.c (all_non_exited_process_targets)
9533 (switch_to_target_no_thread): New function implementations.
9534
9535 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9536
9537 * infrun.c (handle_inferior_event): Extract out a piece of code
9538 into...
9539 (mark_non_executing_threads): ...this new function.
9540
9541 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9542
9543 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9544 use.
9545
9546 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9547
9548 * regcache.c (regcache_read_pc_protected): New function
9549 implementation that returns 0 if the PC cannot read via
9550 'regcache_read_pc'.
9551 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9552 instead of 'regcache_read_pc'.
9553 (keep_going_pass_signal): Ditto.
9554
9555 2020-05-13 Tom Tromey <tromey@adacore.com>
9556
9557 * ada-lang.c (align_value): Remove.
9558 (ada_template_to_fixed_record_type_1): Use align_up.
9559
9560 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9561
9562 * async-event.c: Update the copyright year.
9563 * async-event.h: Update the copyright year.
9564
9565 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9566
9567 * objfiles.h (is_addr_in_objfile,
9568 shared_objfile_contains_address_p): Return bool.
9569 * objfile.c (is_addr_in_objfile,
9570 shared_objfile_contains_address_p): Return bool.
9571
9572 2020-05-11 Tom Tromey <tromey@adacore.com>
9573
9574 * cli/cli-cmds.c (info_command): Restore.
9575 (_initialize_cli_cmds): Use add_prefix_command for "info".
9576 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9577
9578 2020-05-11 Tom Tromey <tromey@adacore.com>
9579
9580 * ada-lang.c (ada_value_primitive_field): Now public.
9581 * ada-lang.h (ada_value_primitive_field): Declare.
9582 * ada-valprint.c (print_field_values): Use
9583 ada_value_primitive_field for wrapper fields.
9584
9585 2020-05-11 Tom de Vries <tdevries@suse.de>
9586
9587 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9588 MODULE_DOMAIN.
9589
9590 2020-05-11 Tom de Vries <tdevries@suse.de>
9591
9592 PR symtab/25941
9593 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9594 with length 0, if not gdb-produced.
9595 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9596
9597 2020-05-09 Tom de Vries <tdevries@suse.de>
9598
9599 PR gdb/25955
9600 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9601 calculation.
9602
9603 2020-05-09 Tom Tromey <tom@tromey.com>
9604
9605 * top.c (server_command): Now bool.
9606 * top.h (server_command): Now bool.
9607
9608 2020-05-08 Tom Tromey <tromey@adacore.com>
9609
9610 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9611 already being processed.
9612
9613 2020-05-08 Tom Tromey <tom@tromey.com>
9614
9615 * printcmd.c (struct display) <next>: Remove.
9616 <display>: New constructor.
9617 <exp_string>: Now a std::string.
9618 <enabled_p>: Now a bool.
9619 (display_number): Move definition earlier.
9620 (displays): Rename from display_chain. Now a std::vector.
9621 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9622 (display_command): Update.
9623 (do_one_display, disable_display)
9624 (enable_disable_display_command, do_enable_disable_display):
9625 Update.
9626 (free_display): Remove.
9627 (clear_displays): Rewrite.
9628 (delete_display): Update.
9629 (map_display_numbers): Use function_view. Remove "data"
9630 parameter. Update.
9631 (do_delete_display): Remove.
9632 (undisplay_command): Update.
9633 (do_one_display, do_displays, disable_display)
9634 (info_display_command): Update.
9635 (do_enable_disable_display): Remove.
9636 (enable_disable_display_command)
9637 (clear_dangling_display_expressions): Update.
9638
9639 2020-05-08 Tom Tromey <tom@tromey.com>
9640
9641 * symtab.c (set_symbol_cache_size)
9642 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9643 (maintenance_print_symbol_cache_statistics): Update.
9644 * symmisc.c (print_symbol_bcache_statistics)
9645 (print_objfile_statistics, maintenance_print_objfiles)
9646 (maintenance_info_symtabs, maintenance_check_symtabs)
9647 (maintenance_expand_symtabs, maintenance_info_line_tables):
9648 Update.
9649 * symfile-debug.c (set_debug_symfile): Update.
9650 * source.c (forget_cached_source_info): Update.
9651 * python/python.c (gdbpy_progspaces): Update.
9652 * psymtab.c (maintenance_info_psymtabs): Update.
9653 * probe.c (parse_probes): Update.
9654 * linespec.c (iterate_over_all_matching_symtabs)
9655 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9656 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9657 * exec.c (exec_target::close): Update.
9658 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9659 * breakpoint.c (print_one_breakpoint_location)
9660 (create_longjmp_master_breakpoint)
9661 (create_std_terminate_master_breakpoint): Update.
9662 * progspace.c (program_spaces): Now a std::vector.
9663 (maybe_new_address_space): Update.
9664 (add_program_space): Remove.
9665 (program_space::program_space): Update.
9666 (remove_program_space): Update.
9667 (number_of_program_spaces): Remove.
9668 (print_program_space, update_address_spaces): Update.
9669 * progspace.h (program_spaces): Change type.
9670 (ALL_PSPACES): Remove.
9671 (number_of_program_spaces): Don't declare.
9672 (struct program_space) <next>: Remove.
9673
9674 2020-05-08 Tom Tromey <tom@tromey.com>
9675
9676 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9677 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9678 (enable_break): Update.
9679 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9680 (frv_fdpic_find_canonical_descriptor): Update.
9681 (frv_fetch_objfile_link_map): Update.
9682 * progspace.c (program_space::free_all_objfiles): Update.
9683 (program_space::solibs): New method.
9684 * progspace.h (struct program_space) <solibs>: New method.
9685 * solist.h (master_so_list): Don't declare.
9686 (ALL_SO_LIBS): Remove.
9687 * solib.h (so_list_head): Remove.
9688 (update_solib_list): Update comment.
9689 * solib.c (master_so_list): Remove.
9690 (solib_used, update_solib_list, solib_add)
9691 (info_sharedlibrary_command, clear_solib)
9692 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9693
9694 2020-05-08 Tom Tromey <tom@tromey.com>
9695
9696 * extension.c (extension_languages): Now a std::array.
9697 (ALL_EXTENSION_LANGUAGES): Remove.
9698 (get_ext_lang_defn, get_ext_lang_of_file)
9699 (eval_ext_lang_from_control_command): Update.
9700 (finish_ext_lang_initialization)
9701 (auto_load_ext_lang_scripts_for_objfile)
9702 (ext_lang_type_printers::ext_lang_type_printers)
9703 (apply_ext_lang_type_printers)
9704 (ext_lang_type_printers::~ext_lang_type_printers)
9705 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9706 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9707 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9708 (get_matching_xmethod_workers, ext_lang_colorize)
9709 (ext_lang_before_prompt): Update.
9710 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9711
9712 2020-05-08 Tom Tromey <tom@tromey.com>
9713
9714 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9715 overload.
9716 <swap_string, m_string>: Remove.
9717 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9718 Update.
9719 * stabsread.c (define_symbol, read_type): Update.
9720 * linespec.c (find_linespec_symbols): Update.
9721 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9722 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9723 * dbxread.c (read_dbx_symtab): Update.
9724 * cp-support.h (cp_canonicalize_string_full)
9725 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9726 Return unique_xmalloc_ptr.
9727 * cp-support.c (inspect_type): Update.
9728 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9729 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9730 Likewise.
9731 * c-typeprint.c (print_name_maybe_canonical): Update.
9732 * break-catch-throw.c (check_status_exception_catchpoint):
9733 Update.
9734
9735 2020-05-08 Tom de Vries <tdevries@suse.de>
9736
9737 * infrun.c (follow_fork): Copy current_line and current_symtab to
9738 child thread.
9739
9740 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9741
9742 * async-event.c (struct async_signal_handler, struct
9743 async_event_handler): Reformat, remove typedef.
9744
9745 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9748 access thistype->main_type->dyn_prop_list directly.
9749
9750 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9751
9752 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9753 (remove_dyn_prop): Remove. Update all users to use
9754 type::remove_dyn_prop.
9755 * gdbtypes.c (remove_dyn_prop): Rename to...
9756 (type::remove_dyn_prop): ... this.
9757
9758 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9759
9760 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9761 (add_dyn_prop): Remove. Update all users to use
9762 type::add_dyn_prop.
9763 * gdbtypes.c (add_dyn_prop): Rename to...
9764 (type::add_dyn_prop): ... this.
9765
9766 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9767
9768 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9769 (get_dyn_prop): Remove. Update all users to use
9770 type::dyn_prop.
9771 * gdbtypes.c (get_dyn_prop): Rename to...
9772 (type::dyn_prop): ... this.
9773
9774 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9775
9776 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9777
9778 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9779
9780 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9781 instruction, skip it if it's there.
9782
9783 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9784
9785 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9786
9787 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9788
9789 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9790 * gdbtypes.c (recursive_dump_type): Remove use of
9791 TYPE_INCOMPLETE.
9792
9793 2020-05-03 Tom Tromey <tom@tromey.com>
9794
9795 * breakpoint.c (catch_command, tcatch_command): Remove.
9796 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9797 add_show_prefix_cmd.
9798 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9799 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9800 Remove.
9801 (add_internal_problem_command): Use add_basic_prefix_cmd,
9802 add_show_prefix_cmd.
9803 * mips-tdep.c (set_mipsfpu_command): Remove.
9804 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9805 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9806 (_initialize_index_cache): Use add_basic_prefix_cmd.
9807 * memattr.c (dummy_cmd): Remove.
9808 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9809 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9810 (_initialize_tui_win): Use add_basic_prefix_cmd,
9811 add_show_prefix_cmd.
9812 * cli/cli-logging.c (set_logging_command): Remove.
9813 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9814 add_show_prefix_cmd.
9815 (show_logging_command): Remove.
9816 * target.c (target_command): Remove.
9817 (add_target): Use add_basic_prefix_cmd.
9818
9819 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9820
9821 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9822
9823 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9824
9825 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9826 info_command.
9827
9828 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9829
9830 * nbsd-nat.c (nbsd_enable_proc_events)
9831 (nbsd_nat_target::post_startup_inferior): Add.
9832 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9833 (nbsd_nat_target::update_thread_list): Rewrite.
9834 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9835 "PTRACE_LWP_CREATE".
9836 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9837
9838 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9839
9840 * stack.c (_initialize_stack): Remove duplicated creation
9841 of "frame" command and "f" alias.
9842
9843 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9844
9845 PR gdb/18706
9846 * gdbtypes.c (check_typedef): Calculate size of array of
9847 stubbed type.
9848
9849 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9850
9851 PR gdb/15559
9852 * i386-tdep.c (i386_push_dummy_call): Call
9853 i386_thiscall_push_dummy_call.
9854 (i386_thiscall_push_dummy_call): New function.
9855 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9856 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9857 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9858
9859 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9860
9861 * gdbarch.sh (do_read): Add shellcheck disable directive for
9862 warning SC2162.
9863
9864 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9865
9866 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9867 "referenced but not assigned" warning.
9868
9869 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9870
9871 * gdbarch.sh: Remove code that sets fallbackdefault.
9872
9873 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9874
9875 * gdbarch.sh: Use shell operators && and || instead of
9876 -a and -o.
9877
9878 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9879
9880 * gdbarch.sh: Use $(...) instead of `...`.
9881
9882 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9883
9884 * gdbarch.sh: Use double quotes around variables.
9885
9886 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9887
9888 * gdbarch.sh: Use %s with printf, instead of variables in the
9889 format string.
9890
9891 2020-04-29 Tom Tromey <tromey@adacore.com>
9892
9893 PR ada/25875:
9894 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9895 type fields here.
9896 (read_enumeration_type): Call
9897 update_enumeration_type_from_children later. Update comments.
9898 (process_enumeration_scope): Don't create type fields.
9899
9900 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9901
9902 * nbsd-tdep.c: Include "xml-syscall.h".
9903 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9904
9905 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9906
9907 * nbsd-nat.c: Include "sys/wait.h".
9908 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9909 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9910 (nbsd_nat_target::remove_exec_catchpoint)
9911 (nbsd_nat_target::set_syscall_catchpoint): Add.
9912 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9913 (nbsd_nat_target::insert_exec_catchpoint)
9914 (nbsd_nat_target::remove_exec_catchpoint)
9915 (nbsd_nat_target::set_syscall_catchpoint): Add.
9916 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9917 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9918 `nbsd_get_syscall_number'.
9919
9920 2020-04-29 Tom Tromey <tom@tromey.com>
9921
9922 * stack.c (print_block_frame_labels): Remove.
9923
9924 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9925
9926 PR gdb/17320
9927 * ada-valprint.c (val_print_packed_array_elements): Move array
9928 end bracket to new line.
9929 (ada_val_print_string): Remove extra spaces before first array
9930 element.
9931 * c-valprint.c (c_value_print_array): Likewise.
9932 * m2-valprint.c (m2_print_array_contents): Likewise.
9933 (m2_value_print_inner): Likewise.
9934 * p-valprint.c (pascal_value_print_inner): Likewise.
9935 * valprint.c (generic_val_print_array): Likewise.
9936 (value_print_array_elements): Move first array element and array
9937 end bracket to new line.
9938
9939 2020-04-29 Tom de Vries <tdevries@suse.de>
9940
9941 PR symtab/25889
9942 * linespec.c (find_method): Fix ix calculation.
9943
9944 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9945
9946 * syscalls/update-netbsd.sh: New file.
9947 * syscalls/netbsd.xml: Regenerate.
9948 * data-directory/Makefile.in: Register `netbsd.xml' in
9949 `SYSCALLS_FILES'.
9950
9951 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9952
9953 * syscalls/update-freebsd.sh: Add double quotes.
9954
9955 2020-04-28 Tom Tromey <tom@tromey.com>
9956
9957 * NEWS: Update.
9958 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9959 (cmdpy_init): Allow class_tui.
9960
9961 2020-04-28 Mark Williams <mark@myosotissp.com>
9962
9963 PR gdb/24480
9964 * dwarf2read.c: Add missing assingments to list_in_scope when
9965 start_symtab was already called.
9966
9967 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9968
9969 PR gdb/25881
9970 * dwarf2/read.c (offset_map_type): Use
9971 gdb:hash_enum<sect_offset> as hash function.
9972
9973 2020-04-28 Tom de Vries <tdevries@suse.de>
9974
9975 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9976 with DW_AT_signature.
9977
9978 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9979
9980 * configure.ac: Remove check for fs_base/gs_base in
9981 user_regs_struct.
9982 * configure: Re-generate.
9983 * config.in: Re-generate.
9984 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9985 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9986 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9987
9988 2020-04-27 Luis Machado <luis.machado@linaro.org>
9989
9990 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9991 problematic inline frame unwinding situation.
9992 * frame.c (frame_id_computed_p): New function.
9993 * frame.h (frame_id_computed_p): New prototype.
9994
9995 2020-04-26 Tom Tromey <tom@tromey.com>
9996
9997 * command.h (enum command_class) <class_pseudo>: Remove.
9998
9999 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10000
10001 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10002 and whitespace.
10003
10004 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10005
10006 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10007 `PT_GET_PROCESS_STATE' block.
10008
10009 2020-04-24 Tom Tromey <tom@tromey.com>
10010
10011 * symtab.h (symbol_get_demangled_name): Don't declare.
10012 * symtab.c (symbol_get_demangled_name): Remove.
10013 (general_symbol_info::natural_name)
10014 (general_symbol_info::demangled_name): Update.
10015
10016 2020-04-24 Tom Tromey <tom@tromey.com>
10017
10018 PR rust/25025:
10019 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10020
10021 2020-04-24 Tom Tromey <tom@tromey.com>
10022
10023 PR symtab/12707:
10024 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10025 exists.
10026 (new_symbol): Likewise.
10027 * compile/compile-object-load.c (get_out_value_type): Use
10028 symbol_matches_search_name.
10029
10030 2020-04-24 Tom Tromey <tom@tromey.com>
10031
10032 * dwarf2/read.c (add_partial_symbol): Do not call
10033 compute_and_set_names.
10034
10035 2020-04-24 Tom Tromey <tom@tromey.com>
10036
10037 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10038 overload.
10039
10040 2020-04-24 Tom Tromey <tom@tromey.com>
10041
10042 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10043 (add_psymbol_to_list): New overload. Make old overload call new
10044 one.
10045 * psympriv.h (add_psymbol_to_list): New overload.
10046
10047 2020-04-24 Tom Tromey <tom@tromey.com>
10048
10049 * dwarf2/read.c (partial_die_info::read) <case
10050 DW_AT_linkage_name>: Use value_as_string.
10051 (dwarf2_string_attr): Use value_as_string.
10052 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10053 method.
10054 * dwarf2/attribute.c (attribute::value_as_string): New method.
10055
10056 2020-04-24 Tom Tromey <tom@tromey.com>
10057
10058 * symtab.c (general_symbol_info::natural_name)
10059 (general_symbol_info::demangled_name): Check for language_rust.
10060
10061 2020-04-24 Tom Tromey <tom@tromey.com>
10062
10063 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10064 (dwarf2_physname): ... from here.
10065 (partial_die_info::read): Add Rust "{" hack.
10066
10067 2020-04-24 Tom Tromey <tom@tromey.com>
10068
10069 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10070 method.
10071 (symbol_set_demangled_name): Don't declare.
10072 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10073 symbol_set_demangled_name.
10074 (general_symbol_info::set_language)
10075 (general_symbol_info::compute_and_set_names): Update.
10076 * minsyms.c (minimal_symbol_reader::install): Update.
10077 * dwarf2/read.c (new_symbol): Update.
10078
10079 2020-04-24 Tom Tromey <tromey@adacore.com>
10080
10081 PR python/23662:
10082 * python/py-type.c (convert_field): Handle
10083 FIELD_LOC_KIND_DWARF_BLOCK.
10084 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10085 (typy_get_dynamic): Nw function.
10086 (type_object_getset): Add "dynamic".
10087 * NEWS: Add entry.
10088
10089 2020-04-24 Tom Tromey <tromey@adacore.com>
10090
10091 * ada-typeprint.c (print_choices, print_variant_part)
10092 (print_record_field_types_dynamic): New functions.
10093 (print_record_field_types): Use print_record_field_types_dynamic.
10094
10095 2020-04-24 Tom Tromey <tromey@adacore.com>
10096
10097 * dwarf2/read.c (handle_data_member_location): New overload.
10098 (dwarf2_add_field): Use it.
10099 (decode_locdesc): Add "computed" parameter. Update comment.
10100 * gdbtypes.c (is_dynamic_type_internal): Also look for
10101 FIELD_LOC_KIND_DWARF_BLOCK.
10102 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10103 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10104 virtual base classes.
10105 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10106 FIELD_LOC_KIND_DWARF_BLOCK.
10107
10108 2020-04-24 Tom Tromey <tromey@adacore.com>
10109
10110 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10111 * gdbtypes.c (is_dynamic_type_internal): Check
10112 TYPE_HAS_DYNAMIC_LENGTH.
10113 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10114 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10115 New macros.
10116 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10117 constant.
10118
10119 2020-04-24 Tom Tromey <tromey@adacore.com>
10120
10121 * dwarf2/read.c (struct variant_field): Rewrite.
10122 (struct variant_part_builder): New.
10123 (struct nextfield): Remove "variant" field. Add "offset".
10124 (struct field_info): Add "current_variant_part" and
10125 "variant_parts".
10126 (alloc_discriminant_info): Remove.
10127 (alloc_rust_variant): New function.
10128 (quirk_rust_enum): Update.
10129 (dwarf2_add_field): Set "offset" member. Don't handle
10130 DW_TAG_variant_part.
10131 (offset_map_type): New typedef.
10132 (convert_variant_range, create_one_variant)
10133 (create_one_variant_part, create_variant_parts)
10134 (add_variant_property): New functions.
10135 (dwarf2_attach_fields_to_type): Call add_variant_property.
10136 (read_structure_type): Don't handle DW_TAG_variant_part.
10137 (handle_variant_part, handle_variant): New functions.
10138 (handle_struct_member_die): Use them.
10139 (process_structure_scope): Don't handle variant parts.
10140 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10141 (struct discriminant_info): Remove.
10142 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10143 (struct main_type) <flag_discriminated_union>: Remove.
10144 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10145 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10146 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10147 Update.
10148 * valops.c (value_union_variant): Remove.
10149 * value.h (value_union_variant): Don't declare.
10150
10151 2020-04-24 Tom Tromey <tromey@adacore.com>
10152
10153 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10154 (ada_value_primitive_packed_val): Update.
10155 * ada-valprint.c (ada_value_print_1): Update.
10156 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10157 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10158 just an address. Use evaluate_for_locexpr_baton.
10159 (dwarf2_evaluate_property): Update.
10160 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10161 array_view.
10162 * findvar.c (default_read_var_value): Update.
10163 * gdbtypes.c (compute_variant_fields_inner)
10164 (resolve_dynamic_type_internal): Update.
10165 (resolve_dynamic_type): Change type of valaddr parameter.
10166 * gdbtypes.h (resolve_dynamic_type): Update.
10167 * valarith.c (value_subscripted_rvalue): Update.
10168 * value.c (value_from_contents_and_address): Update.
10169
10170 2020-04-24 Tom Tromey <tromey@adacore.com>
10171
10172 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10173 "push_initial_value" parameter.
10174 (dwarf2_evaluate_property): Likewise.
10175 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10176
10177 2020-04-24 Tom Tromey <tromey@adacore.com>
10178
10179 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10180 (variant::matches, compute_variant_fields_recurse)
10181 (compute_variant_fields_inner, compute_variant_fields): New
10182 functions.
10183 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10184 Use resolved_type after type is made.
10185 (operator==): Add new cases.
10186 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10187 (struct discriminant_range, struct variant, struct variant_part):
10188 New.
10189 (union dynamic_prop_data) <variant_parts, original_type>: New
10190 members.
10191 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10192 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10193 constants.
10194 * value.c (unpack_bits_as_long): Now public.
10195 * value.h (unpack_bits_as_long): Declare.
10196
10197 2020-04-24 Tom Tromey <tromey@adacore.com>
10198
10199 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10200 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10201
10202 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10203
10204 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10205
10206 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10207
10208 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10209 (remove_fork_catchpoint, post_startup_inferior)
10210 (post_attach): Move...
10211 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10212 (remove_fork_catchpoint, post_startup_inferior)
10213 (post_attach): ...here.
10214 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10215 (remove_fork_catchpoint, post_startup_inferior)
10216 (post_attach): Move...
10217 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10218 (remove_fork_catchpoint, post_startup_inferior)
10219 (post_attach): ...here.
10220
10221 2020-04-24 Tom Tromey <tromey@adacore.com>
10222
10223 * nat/windows-nat.h (struct windows_thread_info)
10224 <pc_adjusted>: New member.
10225 * windows-nat.c (windows_fetch_one_register): Check
10226 pc_adjusted.
10227 (windows_nat_target::get_windows_debug_event)
10228 (windows_nat_target::wait): Set pc_adjusted.
10229
10230 2020-04-24 Tom de Vries <tdevries@suse.de>
10231
10232 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10233 Run gdb-add-index inside temp dir.
10234
10235 2020-04-23 Tom Tromey <tromey@adacore.com>
10236
10237 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10238 in loop.
10239
10240 2020-04-23 Luis Machado <luis.machado@linaro.org>
10241
10242 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10243 get_frame_register instead of gdbarch_unwind_pc.
10244
10245 2020-04-23 Tom de Vries <tdevries@suse.de>
10246
10247 * symtab.c (lookup_global_symbol): Prefer def over decl.
10248
10249 2020-04-23 Tom de Vries <tdevries@suse.de>
10250
10251 PR symtab/25807
10252 * block.c (best_symbol, better_symbol): Promote to external.
10253 * block.h (best_symbol, better_symbol): Declare.
10254 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10255 decl.
10256
10257 2020-04-23 Tom Tromey <tromey@adacore.com>
10258
10259 PR ada/25837:
10260 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10261 "const char *", not a "const std::string &".
10262 <name_and_matcher::operator==>: Update.
10263 * unittests/lookup_name_info-selftests.c: Change type of
10264 "result".
10265
10266 2020-04-23 Tom Tromey <tom@tromey.com>
10267
10268 * inferior.h (iterate_over_inferiors): Don't declare.
10269 * inferior.c (iterate_over_inferiors): Remove.
10270 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10271 Remove.
10272 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10273 use iterate_over_inferiors.
10274 (darwin_resume_inferior_it)
10275 (struct resume_inferior_threads_param)
10276 (darwin_resume_inferior_threads_it): Remove.
10277 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10278
10279 2020-04-23 Tom de Vries <tdevries@suse.de>
10280
10281 * blockframe.c (find_pc_partial_function): Use
10282 find_pc_sect_compunit_symtab rather than
10283 objfile->sf->qf->find_pc_sect_compunit_symtab.
10284
10285 2020-04-22 Tom de Vries <tdevries@suse.de>
10286
10287 PR symtab/25764
10288 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10289 in psymtabs.
10290
10291 2020-04-22 Tom de Vries <tdevries@suse.de>
10292
10293 PR symtab/25801
10294 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10295 symtabs.
10296
10297 2020-04-22 Tom de Vries <tdevries@suse.de>
10298
10299 PR symtab/25700
10300 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10301 CU if already created.
10302
10303 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10304
10305 * infrun.c (displaced_step_fixup): Switch to the event_thread
10306 before calling displaced_step_restore, not after.
10307
10308 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10309
10310 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10311 its inferior is not recorded by us.
10312 (record_btrace_target_open): Replace call to
10313 all_non_exited_threads () with call to current_inferior
10314 ()->non_exited_threads ().
10315 (record_btrace_target::stop_recording): Likewise.
10316 (record_btrace_target::close): Likewise.
10317 (record_btrace_target::wait): Likewise.
10318 (record_btrace_target::record_stop_replaying): Likewise.
10319
10320 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10321
10322 * btrace.c (btrace_enable): Throw an error on double enables and
10323 when enabling recording fails.
10324 (btrace_disable): Throw an error if the thread is not recorded.
10325
10326 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10327
10328 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10329 request if we do not have a thread_info.
10330
10331 2020-04-21 Tom de Vries <tdevries@suse.de>
10332
10333 PR gdb/25471
10334 * thread.c
10335 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10336 exception in get_frame_id.
10337
10338 2020-04-20 Tom Tromey <tromey@adacore.com>
10339
10340 * python/python.c (struct gdbpy_event): Mark move constructor as
10341 noexcept.
10342 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10343 constructor as noexcept.
10344 * completer.h (struct completion_result): Mark move constructor as
10345 noexcept.
10346 * completer.c (completion_result::completion_result): Use
10347 initialization style. Don't call reset_match_list.
10348
10349 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10350
10351 * MAINTAINERS (Write After Approval): Add myself.
10352
10353 2020-04-18 Tom Tromey <tom@tromey.com>
10354
10355 * windows-tdep.c (init_w32_command_list)
10356 (w32_prefix_command_valid): Restore.
10357 (_initialize_windows_tdep): Call init_w32_command_list.
10358
10359 2020-04-18 Tom Tromey <tom@tromey.com>
10360
10361 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10362 * value.c (value_fn_field): Update.
10363 * valops.c (find_function_in_inferior)
10364 (value_allocate_space_in_inferior): Update.
10365 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10366 Update.
10367 * tui/tui-source.c (tui_source_window::set_contents): Update.
10368 * symtab.c (lookup_global_or_static_symbol)
10369 (find_function_start_sal_1, skip_prologue_sal)
10370 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10371 * symmisc.c (dump_msymbols, dump_symtab_1)
10372 (maintenance_print_one_line_table): Update.
10373 * symfile.c (init_entry_point_info, section_is_mapped)
10374 (list_overlays_command, simple_read_overlay_table)
10375 (simple_overlay_update_1): Update.
10376 * stap-probe.c (handle_stap_probe): Update.
10377 * stabsread.c (dbx_init_float_type, define_symbol)
10378 (read_one_struct_field, read_enum_type, read_range_type): Update.
10379 * source.c (info_line_command): Update.
10380 * python/python.c (gdbpy_source_objfile_script)
10381 (gdbpy_execute_objfile_script): Update.
10382 * python/py-type.c (save_objfile_types): Update.
10383 * python/py-objfile.c (py_free_objfile): Update.
10384 * python/py-inferior.c (python_new_objfile): Update.
10385 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10386 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10387 (maintenance_check_psymtabs): Update.
10388 * printcmd.c (info_address_command): Update.
10389 * objfiles.h (struct objfile) <arch>: New method, from
10390 get_objfile_arch.
10391 (get_objfile_arch): Don't declare.
10392 * objfiles.c (get_objfile_arch): Remove.
10393 (filter_overlapping_sections): Update.
10394 * minsyms.c (msymbol_is_function): Update.
10395 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10396 (output_nondebug_symbol): Update.
10397 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10398 (mdebug_expand_psymtab): Update.
10399 * machoread.c (macho_add_oso_symfile): Update.
10400 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10401 Update.
10402 * linux-fork.c (checkpoint_command): Update.
10403 * linespec.c (convert_linespec_to_sals): Update.
10404 * jit.c (finalize_symtab): Update.
10405 * infrun.c (insert_exception_resume_from_probe): Update.
10406 * ia64-tdep.c (ia64_find_unwind_table): Update.
10407 * hppa-tdep.c (internalize_unwinds): Update.
10408 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10409 Update.
10410 * gcore.c (call_target_sbrk): Update.
10411 * elfread.c (record_minimal_symbol, elf_symtab_read)
10412 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10413 (elf_gnu_ifunc_resolve_by_got): Update.
10414 * dwarf2/read.c (create_addrmap_from_index)
10415 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10416 (read_debug_names_from_section)
10417 (process_psymtab_comp_unit_reader, add_partial_symbol)
10418 (add_partial_subprogram, process_full_comp_unit)
10419 (read_file_scope, read_func_scope, read_lexical_block_scope)
10420 (read_call_site_scope, dwarf2_ranges_read)
10421 (dwarf2_record_block_ranges, dwarf2_add_field)
10422 (mark_common_block_symbol_computed, read_tag_pointer_type)
10423 (read_tag_string_type, dwarf2_init_float_type)
10424 (dwarf2_init_complex_target_type, read_base_type)
10425 (partial_die_info::read, partial_die_info::read)
10426 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10427 (dwarf2_fetch_die_loc_sect_off): Update.
10428 * dwarf2/loc.c (dwarf2_find_location_expression)
10429 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10430 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10431 (dwarf2_loc_desc_get_symbol_read_needs)
10432 (locexpr_describe_location_piece, locexpr_describe_location_1)
10433 (loclist_describe_location): Update.
10434 * dwarf2/index-write.c (write_debug_names): Update.
10435 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10436 * dtrace-probe.c (dtrace_process_dof): Update.
10437 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10438 (process_one_symbol): Update.
10439 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10440 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10441 (coff_read_enum_type): Update.
10442 * cli/cli-cmds.c (edit_command, list_command): Update.
10443 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10444 * breakpoint.c (create_overlay_event_breakpoint)
10445 (create_longjmp_master_breakpoint)
10446 (create_std_terminate_master_breakpoint)
10447 (create_exception_master_breakpoint, get_sal_arch): Update.
10448 * block.c (block_gdbarch): Update.
10449 * annotate.c (annotate_source_line): Update.
10450
10451 2020-04-17 Tom Tromey <tromey@adacore.com>
10452
10453 * auto-load.c (show_auto_load_cmd): Remove.
10454 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10455 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10456 (maintenance_print_arc_command): Remove.
10457 * tui/tui-win.c (tui_command): Remove.
10458 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10459 * tui/tui-layout.c (tui_layout_command): Remove.
10460 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10461 * python/python.c (user_set_python, user_show_python): Remove.
10462 (_initialize_python): Use add_basic_prefix_cmd,
10463 add_show_prefix_cmd.
10464 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10465 (install_gdb_commands): Use add_basic_prefix_cmd,
10466 add_show_prefix_cmd.
10467 (info_guile_command): Remove.
10468 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10469 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10470 add_show_prefix_cmd.
10471 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10472 Remove do_set and do_show parameters.
10473 * cli/cli-style.c (set_style, show_style): Remove.
10474 (_initialize_cli_style): Use add_basic_prefix_cmd,
10475 add_show_prefix_cmd.
10476 (cli_style_option::add_setshow_commands): Remove do_set and
10477 do_show parameters.
10478 (cli_style_option::add_setshow_commands): Use
10479 add_basic_prefix_cmd, add_show_prefix_cmd.
10480 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10481 (set_style_name): Remove.
10482 * cli/cli-dump.c (dump_command, append_command): Remove.
10483 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10484 (tekhex_dump_command, binary_dump_command)
10485 (binary_append_command): Remove.
10486 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10487 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10488 (init_w32_command_list): Remove; move into ...
10489 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10490 * valprint.c (set_print, show_print, set_print_raw)
10491 (show_print_raw): Remove.
10492 (_initialize_valprint): Use add_basic_prefix_cmd,
10493 add_show_prefix_cmd.
10494 * typeprint.c (set_print_type, show_print_type): Remove.
10495 (_initialize_typeprint): Use add_basic_prefix_cmd,
10496 add_show_prefix_cmd.
10497 * record.c (set_record_command, show_record_command): Remove.
10498 (_initialize_record): Use add_basic_prefix_cmd,
10499 add_show_prefix_cmd.
10500 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10501 add_show_prefix_cmd.
10502 (info_command, show_command, set_debug, show_debug): Remove.
10503 * top.h (set_history, show_history): Don't declare.
10504 * top.c (set_history, show_history): Remove.
10505 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10506 (unset_tdesc_cmd): Remove.
10507 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10508 add_show_prefix_cmd.
10509 * symtab.c (info_module_command): Remove.
10510 (_initialize_symtab): Use add_basic_prefix_cmd.
10511 * symfile.c (overlay_command): Remove.
10512 (_initialize_symfile): Use add_basic_prefix_cmd.
10513 * sparc64-tdep.c (info_adi_command): Remove.
10514 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10515 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10516 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10517 add_show_prefix_cmd.
10518 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10519 (_initialize_serial): Use add_basic_prefix_cmd,
10520 add_show_prefix_cmd.
10521 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10522 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10523 add_show_prefix_cmd.
10524 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10525 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10526 add_show_prefix_cmd.
10527 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10528 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10529 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10530 add_show_prefix_cmd.
10531 * remote.c (remote_command, set_remote_cmd): Remove.
10532 (_initialize_remote): Use add_basic_prefix_cmd.
10533 * record-full.c (set_record_full_command)
10534 (show_record_full_command): Remove.
10535 (_initialize_record_full): Use add_basic_prefix_cmd,
10536 add_show_prefix_cmd.
10537 * record-btrace.c (cmd_set_record_btrace)
10538 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10539 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10540 (cmd_show_record_btrace_pt): Remove.
10541 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10542 add_show_prefix_cmd.
10543 * ravenscar-thread.c (set_ravenscar_command)
10544 (show_ravenscar_command): Remove.
10545 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10546 add_show_prefix_cmd.
10547 * mips-tdep.c (show_mips_command, set_mips_command)
10548 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10549 add_show_prefix_cmd.
10550 * maint.c (maintenance_command, maintenance_info_command)
10551 (maintenance_check_command, maintenance_print_command)
10552 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10553 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10554 add_show_prefix_cmd.
10555 (show_per_command_cmd): Remove.
10556 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10557 Remove.
10558 (maintenance_show_test_settings_cmd): Remove.
10559 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10560 add_show_prefix_cmd.
10561 * maint-test-options.c (maintenance_test_options_command):
10562 Remove.
10563 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10564 * macrocmd.c (macro_command): Remove
10565 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10566 * language.c (set_check, show_check): Remove.
10567 (_initialize_language): Use add_basic_prefix_cmd,
10568 add_show_prefix_cmd.
10569 * infcmd.c (unset_command): Remove.
10570 (_initialize_infcmd): Use add_basic_prefix_cmd.
10571 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10572 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10573 add_show_prefix_cmd.
10574 * go32-nat.c (go32_info_dos_command): Remove.
10575 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10576 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10577 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10578 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10579 (_initialize_frame): Use add_basic_prefix_cmd,
10580 add_show_prefix_cmd.
10581 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10582 (_initialize_dcache): Use add_basic_prefix_cmd,
10583 add_show_prefix_cmd.
10584 * cp-support.c (maint_cplus_command): Remove.
10585 (_initialize_cp_support): Use add_basic_prefix_cmd.
10586 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10587 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10588 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10589 add_basic_prefix_cmd, add_show_prefix_cmd.
10590 * breakpoint.c (save_command): Remove.
10591 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10592 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10593 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10594 add_show_prefix_cmd.
10595 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10596 (set_ada_command, show_ada_command): Remove.
10597 (_initialize_ada_language): Use add_basic_prefix_cmd,
10598 add_show_prefix_cmd.
10599 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10600
10601 2020-04-16 Kamil Rytarowski <n54@gmx.com>
10602
10603 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10604 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10605
10606 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10607
10608 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10609 warning messages.
10610
10611 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10612
10613 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10614 import table is not at beginning of .idata section.
10615
10616 2020-04-16 Pedro Alves <palves@redhat.com>
10617
10618 * inferior.c (delete_inferior): Use delete operator directly
10619 instead of delete_program_space.
10620 * progspace.c (add_program_space): New, factored out from
10621 program_space::program_space.
10622 (remove_program_space): New, factored out from
10623 delete_program_space.
10624 (program_space::program_space): Remove intro comment. Rewrite.
10625 (program_space::~program_space): Remove intro comment. Call
10626 remove_program_space.
10627 (delete_program_space): Delete.
10628 * progspace.h (program_space::program_space): Make explicit. Move
10629 intro comment here, adjusted.
10630 (program_space::~program_space): Move intro comment here,
10631 adjusted.
10632 (delete_program_space): Remove.
10633
10634 2020-04-16 Tom Tromey <tromey@adacore.com>
10635
10636 * windows-nat.c (windows_nat::handle_access_violation): New
10637 function.
10638 * nat/windows-nat.h (handle_access_violation): Declare.
10639 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10640 windows-nat.c. Call handle_access_violation.
10641
10642 2020-04-16 Tom de Vries <tdevries@suse.de>
10643
10644 PR symtab/25791
10645 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10646 CUs without psymtab.
10647
10648 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10649
10650 * python/python.c (do_start_initialization): Don't call
10651 PyEval_InitThreads for Python 3.9 and beyond.
10652
10653 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10654
10655 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10656 thread functions.
10657 (obsd_nat_target::wait): Likewise.
10658
10659 2020-04-15 Tom Tromey <tromey@adacore.com>
10660
10661 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10662 (DEBUG_EXCEPT): Use debug_printf.
10663
10664 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10665
10666 * completer.c (class completion_tracker::completion_hash_entry)
10667 <hash_name>: New member function.
10668 (completion_tracker::discard_completions): New callback to hash a
10669 completion_hash_entry, pass this to htab_create_alloc.
10670
10671 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10672
10673 * windows-nat.c (windows_make_so): Warn rather than stopping with
10674 an error if realpath() fails.
10675
10676 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10677
10678 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10679 (nbsd_nat_target::info_proc): Add do_status.
10680
10681 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10682 Tom de Vries <tdevries@suse.de>
10683
10684 PR symtab/25718
10685 * psympriv.h (struct partial_symtab::read_symtab)
10686 (struct partial_symtab::expand_psymtab)
10687 (struct partial_symtab::read_dependencies): Update comments.
10688 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10689 read_symtab for includer.
10690 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10691 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10692 (struct dwarf2_include_psymtab::m_readin): Remove.
10693 (struct dwarf2_include_psymtab::includer): New member function.
10694 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10695
10696 2020-04-14 Tom de Vries <tdevries@suse.de>
10697
10698 PR symtab/25720
10699 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10700 with NULL symbol_matcher and lookup_name.
10701 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10702 and lookup_name.
10703 * dwarf2/read.c (dw2_expand_symtabs_matching)
10704 (dw2_debug_names_expand_symtabs_matching): Same.
10705 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10706 Make lookup_name a pointer. Update comment.
10707 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10708 lookup_name being a pointer.
10709 * symfile.c (expand_symtabs_matching): Same.
10710 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10711 * linespec.c (iterate_over_all_matching_symtabs): Same.
10712
10713 2020-04-13 Tom Tromey <tom@tromey.com>
10714
10715 * run-on-main-thread.c: Update include.
10716 * unittests/main-thread-selftests.c: Update include.
10717 * tui/tui-win.c: Update include.
10718 * tui/tui-io.c: Update include.
10719 * tui/tui-interp.c: Update include.
10720 * tui/tui-hooks.c: Update include.
10721 * top.h: Update include.
10722 * top.c: Update include.
10723 * ser-base.c: Update include.
10724 * remote.c: Update include.
10725 * remote-notif.c: Update include.
10726 * remote-fileio.c: Update include.
10727 * record-full.c: Update include.
10728 * record-btrace.c: Update include.
10729 * python/python.c: Update include.
10730 * posix-hdep.c: Update include.
10731 * mingw-hdep.c: Update include.
10732 * mi/mi-main.c: Update include.
10733 * mi/mi-interp.c: Update include.
10734 * main.c: Update include.
10735 * linux-nat.c: Update include.
10736 * interps.c: Update include.
10737 * infrun.c: Update include.
10738 * inf-loop.c: Update include.
10739 * event-top.c: Update include.
10740 * event-loop.c: Move to ../gdbsupport/.
10741 * event-loop.h: Move to ../gdbsupport/.
10742 * async-event.h: Update include.
10743 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10744
10745 2020-04-13 Tom Tromey <tom@tromey.com>
10746
10747 * tui/tui-win.c: Include async-event.h.
10748 * remote.c: Include async-event.h.
10749 * remote-notif.c: Include async-event.h.
10750 * record-full.c: Include async-event.h.
10751 * record-btrace.c: Include async-event.h.
10752 * infrun.c: Include async-event.h.
10753 * event-top.c: Include async-event.h.
10754 * event-loop.h: Move some declarations to async-event.h.
10755 * event-loop.c: Don't include ser-event.h or top.h. Move some
10756 code to async-event.c.
10757 * async-event.h: New file.
10758 * async-event.c: New file.
10759 * Makefile.in (COMMON_SFILES): Add async-event.c.
10760 (HFILES_NO_SRCDIR): Add async-event.h.
10761
10762 2020-04-13 Tom Tromey <tom@tromey.com>
10763
10764 * utils.c (flush_streams): New function.
10765 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10766
10767 2020-04-13 Tom Tromey <tom@tromey.com>
10768
10769 * event-loop.c (handle_file_event): Use warning, not
10770 printf_unfiltered.
10771
10772 2020-04-13 Tom Tromey <tom@tromey.com>
10773
10774 * event-loop.c: Include <chrono>.
10775
10776 2020-04-13 Tom Tromey <tom@tromey.com>
10777
10778 * gdb_select.h: Move to ../gdbsupport/.
10779 * event-loop.c: Update include path.
10780 * top.c: Update include path.
10781 * ser-base.c: Update include path.
10782 * ui-file.c: Update include path.
10783 * ser-tcp.c: Update include path.
10784 * guile/scm-ports.c: Update include path.
10785 * posix-hdep.c: Update include path.
10786 * ser-unix.c: Update include path.
10787 * gdb_usleep.c: Update include path.
10788 * mingw-hdep.c: Update include path.
10789 * inflow.c: Update include path.
10790 * infrun.c: Update include path.
10791 * event-top.c: Update include path.
10792
10793 2020-04-13 Tom Tromey <tom@tromey.com>
10794
10795 * configure: Rebuild.
10796 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10797
10798 2020-04-13 Tom Tromey <tom@tromey.com>
10799
10800 * event-loop.h (start_event_loop): Don't declare.
10801 * event-loop.c (start_event_loop): Move...
10802 * main.c (start_event_loop): ...here. Now static.
10803
10804 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10805
10806 * MAINTAINERS: Update my email address.
10807
10808 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10809
10810 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10811 IP_ALL.
10812
10813 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10814
10815 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10816 (nbsd_nat_target::info_proc): Add do_cmdline.
10817
10818 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10819
10820 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10821 (nbsd_nat_target::info_proc): Add do_cwd.
10822
10823 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10824
10825 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10826
10827 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10828
10829 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10830 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10831 (nbsd_nat_target::info_proc): New functions.
10832 * nbsd-nat.c (kinfo_get_vmmap): New function.
10833 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10834 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10835 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10836 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10837 functions.
10838 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10839 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10840 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10841 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10842 (KINFO_VME_FLAG_GROWS_DOWN): New.
10843
10844 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10845
10846 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10847 bit shift.
10848
10849 2020-04-10 Tom Tromey <tromey@adacore.com>
10850
10851 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10852
10853 2020-04-10 Tom Tromey <tromey@adacore.com>
10854
10855 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10856 separate debug files.
10857
10858 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10859
10860 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10861 Move to...
10862 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10863 ... here.
10864 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10865 Check for STATUS_WX86_BREAKPOINT.
10866 (windows_nat_target::wait): Same.
10867
10868 2020-04-10 Tom de Vries <tdevries@suse.de>
10869
10870 PR cli/25808
10871 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10872
10873 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10874
10875 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10876 (Write After Approval): Remove Tom de Vries.
10877
10878 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10879
10880 revert partially:
10881 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10882
10883 * buildsym.c (record_line): Fix undefined behavior and preserve
10884 lines at eof.
10885
10886 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10887
10888 * auxv.h (svr4_auxv_parse): New.
10889 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10890 and generic_auxv_parse.
10891 (svr4_auxv_parse): Add.
10892 * obsd-tdep.c: Include "auxv.h".
10893 (obsd_auxv_parse): Remove.
10894 (obsd_init_abi): Remove comment.
10895 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10896 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10897 * nbsd-tdep.c: Include "auxv.h".
10898 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10899
10900 2020-04-08 Tom Tromey <tromey@adacore.com>
10901
10902 * nat/windows-nat.h (last_wait_event): Don't declare.
10903 (wait_for_debug_event): Update comment.
10904 * nat/windows-nat.c (last_wait_event): Now static.
10905
10906 2020-04-08 Tom Tromey <tromey@adacore.com>
10907
10908 * windows-nat.c (wait_for_debug_event): Move to
10909 nat/windows-nat.c.
10910 * nat/windows-nat.h (wait_for_debug_event): Declare.
10911 * nat/windows-nat.c (wait_for_debug_event): Move from
10912 windows-nat.c. No longer static.
10913
10914 2020-04-08 Tom Tromey <tromey@adacore.com>
10915
10916 * windows-nat.c (get_windows_debug_event): Use
10917 fetch_pending_stop.
10918 * nat/windows-nat.h (fetch_pending_stop): Declare.
10919 * nat/windows-nat.c (fetch_pending_stop): New function.
10920
10921 2020-04-08 Tom Tromey <tromey@adacore.com>
10922
10923 * windows-nat.c (windows_continue): Use matching_pending_stop and
10924 continue_last_debug_event.
10925 * nat/windows-nat.h (matching_pending_stop)
10926 (continue_last_debug_event): Declare.
10927 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10928 (matching_pending_stop, continue_last_debug_event): New
10929 functions.
10930
10931 2020-04-08 Tom Tromey <tromey@adacore.com>
10932
10933 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10934 (handle_exception_result): Move to nat/windows-nat.h.
10935 (DEBUG_EXCEPTION_SIMPLE): Remove.
10936 (windows_nat::handle_ms_vc_exception): New function.
10937 (handle_exception): Move to nat/windows-nat.c.
10938 (get_windows_debug_event): Update.
10939 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10940 nat/windows-nat.c.
10941 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10942 (handle_exception_result): Move from windows-nat.c.
10943 (handle_exception): Declare.
10944 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10945 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10946 windows-nat.c.
10947
10948 2020-04-08 Tom Tromey <tromey@adacore.com>
10949
10950 * windows-nat.c (exception_count, event_count): Remove.
10951 (handle_exception, get_windows_debug_event)
10952 (do_initial_windows_stuff): Update.
10953
10954 2020-04-08 Tom Tromey <tromey@adacore.com>
10955
10956 * windows-nat.c (windows_nat::handle_load_dll)
10957 (windows_nat::handle_unload_dll): Rename. No longer static.
10958 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10959 Declare.
10960
10961 2020-04-08 Tom Tromey <tromey@adacore.com>
10962
10963 * complaints.h (stop_whining): Declare at top-level.
10964 (complaint): Don't declare stop_whining.
10965
10966 2020-04-08 Tom Tromey <tromey@adacore.com>
10967
10968 * windows-nat.c (windows_nat::handle_output_debug_string):
10969 Rename. No longer static.
10970 * nat/windows-nat.h (handle_output_debug_string): Declare.
10971
10972 2020-04-08 Tom Tromey <tromey@adacore.com>
10973
10974 * windows-nat.c (current_process_handle, current_process_id)
10975 (main_thread_id, last_sig, current_event, last_wait_event)
10976 (current_windows_thread, desired_stop_thread_id, pending_stops)
10977 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10978 (display_selectors, fake_create_process)
10979 (get_windows_debug_event): Update.
10980 * nat/windows-nat.h (current_process_handle, current_process_id)
10981 (main_thread_id, last_sig, current_event, last_wait_event)
10982 (current_windows_thread, desired_stop_thread_id, pending_stops)
10983 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10984 * nat/windows-nat.c (current_process_handle, current_process_id)
10985 (main_thread_id, last_sig, current_event, last_wait_event)
10986 (current_windows_thread, desired_stop_thread_id, pending_stops)
10987 (siginfo_er): New globals. Move from windows-nat.c.
10988
10989 2020-04-08 Tom Tromey <tromey@adacore.com>
10990
10991 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10992 (handle_load_dll): Update.
10993 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10994
10995 2020-04-08 Tom Tromey <tromey@adacore.com>
10996
10997 * windows-nat.c (enum thread_disposition_type): Move to
10998 nat/windows-nat.h.
10999 (windows_nat::thread_rec): Rename from thread_rec. No longer
11000 static.
11001 (windows_add_thread, windows_nat_target::fetch_registers)
11002 (windows_nat_target::store_registers, handle_exception)
11003 (windows_nat_target::resume, get_windows_debug_event)
11004 (windows_nat_target::get_tib_address)
11005 (windows_nat_target::thread_name)
11006 (windows_nat_target::thread_alive): Update.
11007 * nat/windows-nat.h (enum thread_disposition_type): Move from
11008 windows-nat.c.
11009 (thread_rec): Declare.
11010
11011 2020-04-08 Tom Tromey <tromey@adacore.com>
11012
11013 * windows-nat.c: Add "using namespace".
11014 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11015 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11016
11017 2020-04-08 Tom Tromey <tromey@adacore.com>
11018
11019 * nat/windows-nat.h (struct windows_thread_info): Declare
11020 destructor.
11021 * nat/windows-nat.c (~windows_thread_info): New.
11022
11023 2020-04-08 Tom Tromey <tromey@adacore.com>
11024
11025 PR gdb/22992
11026 * windows-nat.c (current_event): Update comment.
11027 (last_wait_event, desired_stop_thread_id): New globals.
11028 (struct pending_stop): New.
11029 (pending_stops): New global.
11030 (windows_nat_target) <stopped_by_sw_breakpoint>
11031 <supports_stopped_by_sw_breakpoint>: New methods.
11032 (windows_fetch_one_register): Add assertions. Adjust PC.
11033 (windows_continue): Handle pending stops. Suspend other threads
11034 when stepping. Use last_wait_event
11035 (wait_for_debug_event): New function.
11036 (get_windows_debug_event): Use wait_for_debug_event. Handle
11037 pending stops. Queue spurious stops.
11038 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11039 (windows_nat_target::kill): Use wait_for_debug_event.
11040 * nat/windows-nat.h (struct windows_thread_info)
11041 <stopped_at_software_breakpoint>: New field.
11042 * nat/windows-nat.c (windows_thread_info::resume): Clear
11043 stopped_at_software_breakpoint.
11044
11045 2020-04-08 Tom Tromey <tromey@adacore.com>
11046
11047 * windows-nat.c (enum thread_disposition_type): New.
11048 (thread_rec): Replace "get_context" parameter with "disposition";
11049 change type.
11050 (windows_add_thread, windows_nat_target::fetch_registers)
11051 (windows_nat_target::store_registers, handle_exception)
11052 (windows_nat_target::resume, get_windows_debug_event)
11053 (windows_nat_target::get_tib_address)
11054 (windows_nat_target::thread_name)
11055 (windows_nat_target::thread_alive): Update.
11056
11057 2020-04-08 Tom Tromey <tromey@adacore.com>
11058
11059 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11060 (windows_continue): Use windows_continue::resume.
11061 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11062 resume>: Declare new methods.
11063 * nat/windows-nat.c: New file.
11064 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11065
11066 2020-04-08 Tom Tromey <tromey@adacore.com>
11067
11068 * windows-nat.c (windows_add_thread, windows_delete_thread)
11069 (windows_nat_target::fetch_registers)
11070 (windows_nat_target::store_registers, fake_create_process)
11071 (windows_nat_target::resume, windows_nat_target::resume)
11072 (get_windows_debug_event, windows_nat_target::wait)
11073 (windows_nat_target::pid_to_str)
11074 (windows_nat_target::get_tib_address)
11075 (windows_nat_target::get_ada_task_ptid)
11076 (windows_nat_target::thread_name)
11077 (windows_nat_target::thread_alive): Use lwp, not tid.
11078
11079 2020-04-08 Tom Tromey <tromey@adacore.com>
11080
11081 * windows-nat.c (handle_exception)
11082 (windows_nat_target::thread_name): Update.
11083 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11084 <name>: Now unique_xmalloc_ptr.
11085
11086 2020-04-08 Tom Tromey <tromey@adacore.com>
11087
11088 * windows-nat.c (thread_rec)
11089 (windows_nat_target::fetch_registers): Update.
11090 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11091 Update comment.
11092 <debug_registers_changed, reload_context>: Now bool.
11093
11094 2020-04-08 Tom Tromey <tromey@adacore.com>
11095
11096 * windows-nat.c (windows_add_thread): Use new.
11097 (windows_init_thread_list, windows_delete_thread): Use delete.
11098 (get_windows_debug_event): Update.
11099 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11100 destructor, and initializers.
11101
11102 2020-04-08 Tom Tromey <tromey@adacore.com>
11103
11104 * windows-nat.c (struct windows_thread_info): Remove.
11105 * nat/windows-nat.h: New file.
11106
11107 2020-04-08 Tom Tromey <tromey@adacore.com>
11108
11109 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11110 (thread_rec, windows_add_thread, windows_delete_thread)
11111 (windows_continue): Update.
11112
11113 2020-04-08 Tom Tromey <tromey@adacore.com>
11114
11115 * windows-nat.c (struct windows_thread_info): Remove typedef.
11116 (thread_head): Remove.
11117 (thread_list): New global.
11118 (thread_rec, windows_add_thread, windows_init_thread_list)
11119 (windows_delete_thread, windows_continue): Update.
11120
11121 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11122
11123 * windows-tdep.h (windows_init_abi): Add comment.
11124 (cygwin_init_abi): New declaration.
11125 * windows-tdep.c: Split signal enumeration in two, one for
11126 Windows and one for Cygwin.
11127 (windows_gdb_signal_to_target): Only deal with signal of the
11128 Windows OS ABI.
11129 (cygwin_gdb_signal_to_target): New function.
11130 (windows_init_abi): Rename to windows_init_abi_common, don't set
11131 gdb_signal_to_target gdbarch method. Add new new function with
11132 this name.
11133 (cygwin_init_abi): New function.
11134 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11135 comment. Don't call windows_init_abi.
11136 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11137 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11138 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11139 i386_windows_init_abi_common, don't call windows_init_abi. Add
11140 a new function of this name.
11141 (i386_cygwin_init_abi): New function.
11142 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11143 OS ABI Cygwin.
11144
11145 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11146
11147 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11148 parameter.c.
11149 (dwarf2_read_gdb_index): Update.
11150
11151 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11152
11153 * nbsd-tdep.c: Include "objfiles.h".
11154 (nbsd_skip_solib_resolver): New.
11155 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11156
11157 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11158
11159 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11160 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11161 with DW_LLE_base_addressx are being emitted in DWARFv5.
11162 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11163 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11164 unsigned integer.
11165
11166 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11167
11168 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11169 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11170 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11171 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11172 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11173 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11174 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11175
11176
11177 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11178
11179 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11180 (read_loclist_index): New function definition.
11181 (lookup_loclist_base): New function definition.
11182 (read_loclist_header): New function definition.
11183 (dwarf2_cu): Add loclist_base and loclist_header field.
11184 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11185 (read_full_die_1): Read the value of DW_AT_loclists_base.
11186 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11187 (read_attribute_value): Handle DW_FORM_loclistx.
11188 (skip_one_die): Handle DW_FORM_loclistx.
11189 (loclist_header): New structure declaration.
11190 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11191
11192 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11193
11194 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11195 constructor. Remove `addr` parameter from other constructor and
11196 add `per_cu` parameter.
11197 * dwarf2/read.c (create_partial_symtab): Update.
11198
11199 2020-04-07 Tom de Vries <tdevries@suse.de>
11200
11201 PR symtab/25796
11202 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11203 (partial_die_info::fixup): Inherit has_const_value.
11204
11205 2020-04-07 Tom de Vries <tdevries@suse.de>
11206
11207 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11208 symbols without address.
11209
11210 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11211
11212 * nbsd-nat.h (struct thread_info): Add forward declaration.
11213 (nbsd_nat_target::thread_alive): Add.
11214 (nbsd_nat_target::thread_name): Likewise.
11215 (nbsd_nat_target::update_thread_list): Likewise.
11216 (update_thread_list::post_attach): Likewise.
11217 (post_attach::pid_to_str): Likewise.
11218 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11219 (nbsd_thread_lister): Add.
11220 (nbsd_nat_target::thread_alive): Likewise.
11221 (nbsd_nat_target::thread_name): Likewise.
11222 (nbsd_add_threads): Likewise.
11223 (update_thread_list::post_attach): Likewise.
11224 (nbsd_nat_target::update_thread_list): Likewise.
11225 (post_attach::pid_to_str): Likewise.
11226
11227 2020-04-06 Tom Tromey <tromey@adacore.com>
11228
11229 * ada-valprint.c (print_variant_part): Extract the variant field.
11230 (print_field_values): Use the field as the outer value when
11231 recursing.
11232
11233 2020-04-06 Tom Tromey <tromey@adacore.com>
11234
11235 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11236 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11237 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11238 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11239 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11240
11241 2020-04-06 Tom Tromey <tromey@adacore.com>
11242
11243 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11244 TYPE_CODE_ERROR.
11245
11246 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11247
11248 * nbsd-tdep.c: Include "gdbarch.h".
11249 Define enum with NetBSD signal numbers.
11250 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11251 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11252 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11253 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11254 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11255 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11256 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11257 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11258 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11259 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11260 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11261 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11262
11263 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11264
11265 PR gdb/25325
11266 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11267
11268 2020-04-03 Tom Tromey <tromey@adacore.com>
11269
11270 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11271 Read constant block.
11272
11273 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11274
11275 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11276 (gdb_bfd_get_full_section_contents): New declaration.
11277 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11278 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11279 gdb_bfd_get_full_section_contents.
11280
11281 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11282
11283 * exec.c (build_section_table): Replace internal_error with
11284 gdb_assert.
11285 (section_table_xfer_memory_partial): Likewise.
11286 * mdebugread.c (parse_partial_symbols): Likewise.
11287 * psymtab.c (lookup_partial_symbol): Likewise.
11288 * utils.c (wrap_here): Likewise.
11289
11290 2020-04-02 Tom Tromey <tromey@adacore.com>
11291
11292 * f-lang.c (build_fortran_types): Use arch_type to initialize
11293 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11294
11295 2020-04-02 Tom Tromey <tromey@adacore.com>
11296
11297 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11298 of attributes.
11299
11300 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11301 Bernd Edlinger <bernd.edlinger@hotmail.de>
11302 Tom Tromey <tromey@adacore.com>
11303
11304 * buildsym.c (buildsym_compunit::record_line): Remove
11305 deduplication code.
11306
11307 2020-04-02 Tom de Vries <tdevries@suse.de>
11308
11309 PR ada/24671
11310 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11311
11312 2020-04-02 Tom de Vries <tdevries@suse.de>
11313
11314 * dwarf2/read.c (dwarf2_gdb_index_functions,
11315 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11316 NULL.
11317 * psymtab.c (psym_lookup_global_symbol_language): New function.
11318 (psym_functions): Init psym_lookup_global_symbol_language with
11319 psym_lookup_global_symbol_language.
11320 * symfile-debug.c (debug_sym_quick_functions): Init
11321 lookup_global_symbol_language with NULL.
11322 * symfile.c (set_initial_language): Remove fixme comment.
11323 * symfile.h (struct quick_symbol_functions): Add
11324 lookup_global_symbol_language.
11325 * symtab.c (find_quick_global_symbol_language): New function.
11326 (find_main_name): Use find_quick_global_symbol_language.
11327
11328 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11329
11330 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11331
11332 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11333
11334 * buildsym.c (record_line): Fix undefined behavior and preserve
11335 lines at eof.
11336
11337 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11338
11339 * buildsym.c (record_line): Fix the resizing condition.
11340
11341 2020-04-01 Tom Tromey <tom@tromey.com>
11342
11343 * value.h (value_literal_complex): Add comment.
11344 * valops.c (value_literal_complex): Refer to value.h.
11345
11346 2020-04-01 Tom Tromey <tom@tromey.com>
11347
11348 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11349 (scalar_type): New rule, from typebase.
11350 (typebase): Use scalar_type. Recognize complex types.
11351 (field_name): Handle FLOAT_KEYWORD.
11352 (ident_tokens): Add _Complex and __complex__.
11353
11354 2020-04-01 Tom Tromey <tom@tromey.com>
11355
11356 PR exp/25299:
11357 * valarith.c (promotion_type, complex_binop): New functions.
11358 (scalar_binop): Handle complex numbers. Use promotion_type.
11359 (value_pos, value_neg, value_complement): Handle complex numbers.
11360
11361 2020-04-01 Tom Tromey <tom@tromey.com>
11362
11363 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11364 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11365 (parse_number): Handle complex numbers.
11366
11367 2020-04-01 Tom Tromey <tom@tromey.com>
11368
11369 * c-valprint.c (c_decorations): Change complex suffix to "i".
11370
11371 2020-04-01 Tom Tromey <tom@tromey.com>
11372
11373 * valprint.c (generic_value_print_complex): Use accessors.
11374 * value.h (value_real_part, value_imaginary_part): Declare.
11375 * valops.c (value_real_part, value_imaginary_part): New
11376 functions.
11377 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11378
11379 2020-04-01 Tom Tromey <tom@tromey.com>
11380
11381 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11382 (read_range_type): Update.
11383 * mdebugread.c (basic_type): Update.
11384 * go-lang.c (build_go_types): Use init_complex_type.
11385 * gdbtypes.h (struct main_type) <complex_type>: New member.
11386 (init_complex_type): Update.
11387 (arch_complex_type): Don't declare.
11388 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11389 Make name if none given. Use alloc_type_copy. Look for cached
11390 complex type.
11391 (arch_complex_type): Remove.
11392 (gdbtypes_post_init): Use init_complex_type.
11393 * f-lang.c (build_fortran_types): Use init_complex_type.
11394 * dwarf2/read.c (read_base_type): Update.
11395 * d-lang.c (build_d_types): Use init_complex_type.
11396 * ctfread.c (read_base_type): Update.
11397
11398 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11399
11400 * infrun.c (stop_all_threads): Update assertion, plus when
11401 stopping threads, take into account that we might be trying
11402 to stop an all-stop target.
11403 (stop_waiting): Call 'stop_all_threads' if there exists a
11404 non-stop target.
11405
11406 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11407
11408 * target.h (exists_non_stop_target): New function declaration.
11409 * target.c (exists_non_stop_target): New function.
11410
11411 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11412
11413 PR gdb/24789
11414 * eval.c (is_integral_or_integral_reference): New function.
11415 (evaluate_subexp_standard): Allow integer references in
11416 pointer arithmetic.
11417
11418 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11419
11420 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11421 check for no ptid in the stop reply when the target is non-stop.
11422
11423 2020-04-01 Tom Tromey <tromey@adacore.com>
11424
11425 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11426 "name" parameter to rvalue reference. Initialize m_name_holder.
11427 <lookup_name_info>: New overloads.
11428 <name>: Return gdb::string_view.
11429 <c_str>: New method.
11430 <make_ignore_params>: Update.
11431 <search_name_hash>: Update.
11432 <language_lookup_name>: Return const char *.
11433 <m_name>: Change type.
11434 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11435 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11436 (lookup_name_info::match_any): Update.
11437 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11438 Update.
11439 * minsyms.c (linkage_name_str): Update.
11440 * language.c (default_symbol_name_matcher): Update.
11441 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11442 Update.
11443 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11444 (ada_lookup_name_info::ada_lookup_name_info): Update.
11445 (literal_symbol_name_matcher): Update.
11446
11447 2020-04-01 Tom Tromey <tromey@adacore.com>
11448
11449 * psymtab.c (psymtab_search_name): Remove function.
11450 (psym_lookup_symbol): Create search name and lookup name here.
11451 (lookup_partial_symbol): Remove "name" parameter; add
11452 lookup_name.
11453 (psym_expand_symtabs_for_function): Update.
11454
11455 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11456
11457 PR tui/25597:
11458 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11459
11460 2020-03-31 Tom Tromey <tromey@adacore.com>
11461
11462 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11463 memcpy.
11464
11465 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11466
11467 * features/riscv/32bit-csr.xml: Regenerated.
11468 * features/riscv/64bit-csr.xml: Regenerated.
11469
11470 2020-03-30 Tom Tromey <tromey@adacore.com>
11471
11472 * ada-valprint.c (print_variant_part): Update.
11473 * ada-lang.h (ada_which_variant_applies): Update.
11474 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11475 outer_valaddr parameters; replace with "outer" value parameter.
11476 (to_fixed_variant_branch_type): Update.
11477
11478 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11479
11480 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11481 <list>. Remove inclusion of observable.h.
11482 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11483 (struct arch_lwp_info): New struct.
11484 (class ppc_linux_dreg_interface): New class.
11485 (struct ppc_linux_process_info): New struct.
11486 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11487 <low_new_clone, low_forget_process, low_prepare_to_resume>
11488 <copy_thread_dreg_state, mark_thread_stale>
11489 <mark_debug_registers_changed, register_hw_breakpoint>
11490 <clear_hw_breakpoint, register_wp, clear_wp>
11491 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11492 <num_memory_accesses, get_trigger_type>
11493 <create_watchpoint_request, hwdebug_point_cmp>
11494 <init_arch_lwp_info, get_arch_lwp_info>
11495 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11496 methods.
11497 <struct ptid_hash>: New inner struct.
11498 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11499 members.
11500 (saved_dabr_value, hwdebug_info, max_slots_number)
11501 (struct hw_break_tuple, struct thread_points, ppc_threads)
11502 (have_ptrace_hwdebug_interface)
11503 (hwdebug_find_thread_points_by_tid)
11504 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11505 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11506 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11507 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11508 use m_dreg_interface.
11509 (hwdebug_point_cmp): Change to...
11510 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11511 reference arguments instead of pointers.
11512 (ppc_linux_nat_target::ranged_break_num_registers): Use
11513 m_dreg_interface.
11514 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11515 m_dreg_interface. Call register_hw_breakpoint.
11516 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11517 m_dreg_interface. Call clear_hw_breakpoint.
11518 (get_trigger_type): Change to...
11519 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11520 comment.
11521 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11522 use m_dreg_interface. Call register_hw_breakpoint.
11523 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11524 use m_dreg_interface. Call clear_hw_breakpoint.
11525 (can_use_watchpoint_cond_accel): Change to...
11526 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11527 method. Update comment, use m_dreg_interface and
11528 m_process_info.
11529 (calculate_dvc): Change to...
11530 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11531 m_dreg_interface.
11532 (num_memory_accesses): Change to...
11533 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11534 (check_condition): Change to...
11535 (ppc_linux_nat_target::check_condition): ...this method.
11536 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11537 comment, use m_dreg_interface.
11538 (create_watchpoint_request): Change to...
11539 (ppc_linux_nat_target::create_watchpoint_request): ...this
11540 method. Use m_dreg_interface.
11541 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11542 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11543 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11544 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11545 (ppc_linux_nat_target::low_forget_process)
11546 (ppc_linux_nat_target::low_new_fork)
11547 (ppc_linux_nat_target::low_new_clone)
11548 (ppc_linux_nat_target::low_delete_thread)
11549 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11550 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11551 only call mark_thread_stale.
11552 (ppc_linux_thread_exit): Remove.
11553 (ppc_linux_nat_target::stopped_data_address): Change to...
11554 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11555 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11556 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11557 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11558 comment. Call low_stopped_data_address.
11559 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11560 m_dreg_interface.
11561 (ppc_linux_nat_target::masked_watch_num_registers): Use
11562 m_dreg_interface.
11563 (ppc_linux_nat_target::copy_thread_dreg_state)
11564 (ppc_linux_nat_target::mark_thread_stale)
11565 (ppc_linux_nat_target::mark_debug_registers_changed)
11566 (ppc_linux_nat_target::register_hw_breakpoint)
11567 (ppc_linux_nat_target::clear_hw_breakpoint)
11568 (ppc_linux_nat_target::register_wp)
11569 (ppc_linux_nat_target::clear_wp)
11570 (ppc_linux_nat_target::init_arch_lwp_info)
11571 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11572 (_initialize_ppc_linux_nat): Remove observer callback.
11573
11574 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11575
11576 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11577 (ppc_linux_nat_target::auxv_parse)
11578 (ppc_linux_nat_target::read_description)
11579 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11580 Move up.
11581
11582 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11583
11584 * linux-nat.h (low_new_clone): New method.
11585 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11586
11587 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11588
11589 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11590 (dbx_expand_psymtab): ... this.
11591 (start_psymtab): Update.
11592 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11593 (mdebug_expand_psymtab): ... this.
11594 (parse_partial_symbols): Update.
11595 (new_psymtab): Update.
11596 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11597 (xcoff_expand_psymtab): ... this.
11598 (xcoff_start_psymtab): Update.
11599
11600 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11601
11602 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11603 <expand_dependencies>: ... this.
11604 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11605 (partial_symtab::expand_dependencies): ... this.
11606 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11607 Update.
11608 (dwarf2_psymtab::expand_psymtab): Update.
11609 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11610 * mdebugread.c (psymtab_to_symtab_1): Update.
11611 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11612
11613 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11614
11615 * psympriv.h (discard_psymtab): Remove.
11616 * dbxread.c (dbx_end_psymtab): Update.
11617 * xcoffread.c (xcoff_end_psymtab): Update.
11618
11619 2020-03-28 Tom Tromey <tom@tromey.com>
11620
11621 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11622 comment.
11623
11624 2020-03-28 Tom Tromey <tom@tromey.com>
11625
11626 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11627
11628 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11629
11630 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11631
11632 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11633
11634 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11635
11636 2020-03-26 Tom Tromey <tom@tromey.com>
11637
11638 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11639 (mark_common_block_symbol_computed, read_tag_string_type)
11640 (attr_to_dynamic_prop, read_subrange_type): Update.
11641 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11642 to be methods on struct attribute.
11643 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11644 (read_call_site_scope, partial_die_info::read)
11645 (partial_die_info::read, lookup_die_type, follow_die_ref):
11646 Update.
11647 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11648 from dwarf2_get_ref_die_offset.
11649 (attribute::constant_value): New method, from
11650 dwarf2_get_attr_constant_value.
11651 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11652 Declare method.
11653 <constant_value>: New method.
11654
11655 2020-03-26 Tom Tromey <tom@tromey.com>
11656
11657 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11658 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11659 (dwarf_type_encoding_name): Move to stringify.c.
11660 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11661 * dwarf2/stringify.c: New file.
11662 * dwarf2/stringify.h: New file.
11663
11664 2020-03-26 Tom Tromey <tom@tromey.com>
11665
11666 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11667 Rewrite.
11668
11669 2020-03-26 Tom Tromey <tom@tromey.com>
11670
11671 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11672 methods.
11673 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11674 (lookup_ranges_base): Likewise.
11675 (read_cutu_die_from_dwo, read_full_die_1): Update.
11676
11677 2020-03-26 Tom Tromey <tom@tromey.com>
11678
11679 * dwarf2/read.c (read_import_statement, read_file_scope)
11680 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11681 (read_lexical_block_scope, read_call_site_scope)
11682 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11683 (handle_struct_member_die, process_structure_scope)
11684 (update_enumeration_type_from_children)
11685 (process_enumeration_scope, read_array_type, read_common_block)
11686 (read_namespace, read_module, read_subroutine_type): Update.
11687 (sibling_die): Remove.
11688
11689 2020-03-26 Tom Tromey <tom@tromey.com>
11690
11691 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11692 (build_type_psymtabs_reader, read_structure_type)
11693 (read_enumeration_type, read_full_die_1): Update.
11694 (dwarf2_attr_no_follow): Move to die.h.
11695 * dwarf2/die.h (struct die_info) <attr>: New method.
11696
11697 2020-03-26 Tom Tromey <tom@tromey.com>
11698
11699 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11700 <base_address>: Now an optional.
11701 (dwarf2_find_base_address, dwarf2_rnglists_process)
11702 (dwarf2_ranges_process, fill_in_loclist_baton)
11703 (dwarf2_symbol_mark_computed): Update.
11704
11705 2020-03-26 Tom Tromey <tom@tromey.com>
11706
11707 * dwarf2/read.c (struct die_info): Move to die.h.
11708 * dwarf2/die.h: New file.
11709
11710 2020-03-26 Tom Tromey <tom@tromey.com>
11711
11712 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11713 * dwarf2/read.c
11714 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11715 Move to line-header.c.
11716 (read_checked_initial_length_and_offset, read_formatted_entries):
11717 Likewise.
11718 (dwarf_decode_line_header): Split into two.
11719 * dwarf2/line-header.c
11720 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11721 Move from read.c.
11722 (read_checked_initial_length_and_offset, read_formatted_entries):
11723 Likewise.
11724 (dwarf_decode_line_header): New function, split from read.c.
11725
11726 2020-03-26 Tom Tromey <tom@tromey.com>
11727
11728 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11729 Declare method.
11730 * dwarf2/read.c (read_attribute_value): Update.
11731 (dwarf2_per_objfile::read_line_string): Rename from
11732 read_indirect_line_string.
11733 (read_formatted_entries): Update.
11734
11735 2020-03-26 Tom Tromey <tom@tromey.com>
11736
11737 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11738 variable.
11739
11740 2020-03-26 Tom Tromey <tom@tromey.com>
11741
11742 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11743 const.
11744 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11745 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11746 parameter const.
11747
11748 2020-03-26 Tom Tromey <tom@tromey.com>
11749
11750 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11751 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11752 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11753 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11754
11755 2020-03-26 Tom Tromey <tom@tromey.com>
11756
11757 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11758 file_names_size, file_full_name, file_file_name>: Use const.
11759 <file_name_at, file_names>: Add const overload.
11760 * dwarf2/line-header.c (line_header::file_file_name)
11761 (line_header::file_full_name): Update.
11762
11763 2020-03-26 Tom Tromey <tom@tromey.com>
11764
11765 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11766 (macro_start_file, consume_improper_spaces)
11767 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11768 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11769 (dwarf_decode_macros): Move to macro.c.
11770 * dwarf2/macro.c: New file.
11771 * dwarf2/macro.h: New file.
11772 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11773
11774 2020-03-26 Tom Tromey <tom@tromey.com>
11775
11776 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11777 method.
11778 * dwarf2/section.c: New method. From
11779 read_indirect_string_at_offset_from.
11780 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11781 (read_indirect_string_at_offset_from): Move to section.c.
11782 (read_indirect_string_at_offset): Rewrite.
11783 (read_indirect_line_string_at_offset): Remove.
11784 (read_indirect_string, read_indirect_line_string)
11785 (dwarf_decode_macro_bytes): Update.
11786
11787 2020-03-26 Tom Tromey <tom@tromey.com>
11788
11789 * dwarf2/section.h (struct dwarf2_section_info)
11790 <overload_complaint>: Declare.
11791 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11792 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11793 Rename from dwarf2_section_buffer_overflow_complaint.
11794 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11795 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11796
11797 2020-03-26 Tom Tromey <tom@tromey.com>
11798
11799 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11800 Declare.
11801 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11802 Move from read.c.
11803 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11804 to section.c.
11805
11806 2020-03-26 Tom Tromey <tom@tromey.com>
11807
11808 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11809
11810 2020-03-26 Tom Tromey <tom@tromey.com>
11811
11812 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11813 "builder".
11814 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11815 parameter.
11816 (dwarf_decode_macros): Update.
11817
11818 2020-03-26 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2/read.c (read_attribute_value): Update.
11821 (read_indirect_string_from_dwz): Move to dwz.c; change into
11822 method.
11823 (dwarf_decode_macro_bytes): Update.
11824 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11825 * dwarf2/dwz.c: New file.
11826 * Makefile.in (COMMON_SFILES): Add dwz.c.
11827
11828 2020-03-26 Tom Tromey <tom@tromey.com>
11829
11830 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11831 * dwarf2/read.c: Add include.
11832 * dwarf2/index-write.c: Add include.
11833 * dwarf2/index-cache.c: Add include.
11834 * dwarf2/dwz.h: New file.
11835
11836 2020-03-25 Tom Tromey <tom@tromey.com>
11837
11838 * compile/compile-object-load.c (get_out_value_type): Mention
11839 correct symbol name in error message.
11840
11841 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11842
11843 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11844
11845 2020-03-25 Tom de Vries <tdevries@suse.de>
11846
11847 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11848 * symmisc.c (dump_symtab_1): Print user and includes fields.
11849 (maintenance_info_symtabs): Same.
11850
11851 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11852
11853 PR gdb/25534
11854 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11855 (riscv_regcache_cooked_write): New function.
11856 (riscv_push_dummy_call): Use new function.
11857 (riscv_return_value): Likewise.
11858
11859 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11860
11861 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11862 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11863 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11864 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11865 * infrun.c (follow_fork): Likewise.
11866 (follow_fork_inferior): Likewise.
11867 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11868 * linux-nat.h (class linux_nat_target): Likewise.
11869 * remote.c (class remote_target) <follow_fork>: Likewise.
11870 (remote_target::follow_fork): Likewise.
11871 * target-delegates.c: Re-generate.
11872 * target.c (default_follow_fork): Likewise.
11873 (target_follow_fork): Likewise.
11874 * target.h (struct target_ops) <follow_fork>: Likewise.
11875 (target_follow_fork): Likewise.
11876
11877 2020-03-24 Tom de Vries <tdevries@suse.de>
11878
11879 * psymtab.c (maintenance_info_psymtabs): Print user field.
11880
11881 2020-03-20 Tom Tromey <tromey@adacore.com>
11882
11883 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11884 const.
11885 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11886 const.
11887
11888 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11889
11890 * ptrace.m4: Don't check for ptrace declaration.
11891 * config.in: Re-generate.
11892 * configure: Re-generate.
11893 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11894 not defined.
11895
11896 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11897
11898 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11899 `PTRACE_TYPE_RET'.
11900 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11901 * sparc-nat.c (gdb_ptrace): Likewise.
11902 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11903
11904 2020-03-20 Tom Tromey <tromey@adacore.com>
11905
11906 * c-exp.y (lex_one_token): Fix assert.
11907
11908 2020-03-20 Tom Tromey <tromey@adacore.com>
11909
11910 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11911 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11912 strncpy call.
11913
11914 2020-03-20 Tom Tromey <tromey@adacore.com>
11915
11916 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11917
11918 2020-03-20 Tom Tromey <tromey@adacore.com>
11919
11920 * ada-valprint.c (print_variant_part): Remove parameters; switch
11921 to value-based API.
11922 (print_field_values): Likewise.
11923 (ada_val_print_struct_union): Likewise.
11924 (ada_value_print_1): Update.
11925
11926 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11927
11928 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11929 nbsd_nat_target instead of inf_ptrace_target.
11930 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11931 nbsd_nat_target.
11932
11933 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11934
11935 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11936 it to the ptrace call.
11937 * (store_registers): Likewise.
11938
11939 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11940
11941 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11942 it to the ptrace call.
11943 * (store_registers): Likewise.
11944
11945 2020-03-19 Luis Machado <luis.machado@linaro.org>
11946
11947 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11948 valid, fetch vg value from ptrace.
11949
11950 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11951 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11952 * inf-ptrace.c: Likewise.
11953 * (gdb_ptrace): Add.
11954 * (inf_ptrace_target::resume): Update.
11955 * (inf_ptrace_target::xfer_partial): Likewise.
11956 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11957 * (inf_ptrace_peek_poke): Update.
11958
11959 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11960
11961 * x86-bsd-nat.c (gdb_ptrace): New.
11962 * (x86bsd_dr_set): Add new argument `ptid'.
11963 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11964 x86bsd_dr_set_addr): Update.
11965
11966 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11967
11968 * remote.c (remote_target::process_stop_reply): Handle events for
11969 all threads differently.
11970
11971 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11972
11973 * completer.c (completion_tracker::remove_completion): Define new
11974 function.
11975 * completer.h (completion_tracker::remove_completion): Declare new
11976 function.
11977 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11978 when adding a C++ function symbol.
11979
11980 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11981
11982 * completer.c (completion_tracker::completion_hash_entry): Define
11983 new class.
11984 (advance_to_filename_complete_word_point): Call
11985 recompute_lowest_common_denominator.
11986 (completion_tracker::completion_tracker): Call discard_completions
11987 to setup the hash table.
11988 (completion_tracker::discard_completions): Allow for being called
11989 from the constructor, pass new equal function, and element deleter
11990 when constructing the hash table. Initialise new class member
11991 variables.
11992 (completion_tracker::maybe_add_completion): Remove use of
11993 m_entries_vec, and store more information into m_entries_hash.
11994 (completion_tracker::recompute_lcd_visitor): New function, most
11995 content taken from...
11996 (completion_tracker::recompute_lowest_common_denominator):
11997 ...here, this now just visits each item in the hash calling the
11998 above visitor.
11999 (completion_tracker::build_completion_result): Remove use of
12000 m_entries_vec, call recompute_lowest_common_denominator.
12001 * completer.h (completion_tracker::have_completions): Remove use
12002 of m_entries_vec.
12003 (completion_tracker::completion_hash_entry): Declare new class.
12004 (completion_tracker::recompute_lowest_common_denominator): Change
12005 function signature.
12006 (completion_tracker::recompute_lcd_visitor): Declare new function.
12007 (completion_tracker::m_entries_vec): Delete.
12008 (completion_tracker::m_entries_hash): Initialize to NULL.
12009 (completion_tracker::m_lowest_common_denominator_valid): New
12010 member variable.
12011 (completion_tracker::m_lowest_common_denominator_max_length): New
12012 member variable.
12013
12014 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12015
12016 * regformats/regdef.h: Put reg in gdb namespace.
12017
12018 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12019
12020 * i386-bsd-nat.c (gdb_ptrace): New.
12021 * (i386bsd_fetch_inferior_registers,
12022 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12023 * (i386bsd_fetch_inferior_registers,
12024 i386bsd_store_inferior_registers) Use gdb_ptrace.
12025
12026 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12027
12028 * amd64-bsd-nat.c (gdb_ptrace): New.
12029 * (amd64bsd_fetch_inferior_registers,
12030 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12031 * (amd64bsd_fetch_inferior_registers,
12032 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12033
12034 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12035
12036 * user-regs.c (user_reg::read): Rename to...
12037 (user_reg::xread): ...this.
12038 * (append_user_reg): Rename argument `read' to `xread'.
12039 * (user_reg_add_builtin): Likewise.
12040 * (user_reg_add): Likewise.
12041 * (value_of_user_reg): Likewise.
12042
12043 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12044
12045 * sparc-nat.c (gdb_ptrace): New.
12046 * sparc-nat.c (sparc_fetch_inferior_registers)
12047 (sparc_store_inferior_registers) Remove obsolete comment.
12048 * sparc-nat.c (sparc_fetch_inferior_registers)
12049 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12050 * sparc-nat.c (sparc_fetch_inferior_registers)
12051 (sparc_store_inferior_registers) Use gdb_ptrace.
12052
12053 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12054
12055 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12056 it to the ptrace call.
12057 * sh-nbsd-nat.c (store_registers): Likewise.
12058
12059 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12060
12061 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12062 nbsd_nat_target instead of inf_ptrace_target.
12063 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12064 nbsd_nat_target.
12065
12066 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12067
12068 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12069
12070 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12071
12072 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12073 <sys/sysctl.h>.
12074 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12075
12076 2020-03-17 Tom de Vries <tdevries@suse.de>
12077
12078 PR gdb/23710
12079 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12080 fields.
12081 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12082 fields.
12083 (process_imported_unit_die): Skip import of c++ CUs.
12084
12085 2020-03-16 Tom Tromey <tom@tromey.com>
12086
12087 * p-valprint.c (pascal_object_print_value): Initialize
12088 base_value.
12089
12090 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12091 Shahab Vahedi <shahab@synopsys.com>
12092
12093 * Makefile.in: Add arch/arc.o
12094 * configure.tgt: Likewise.
12095 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12096 (_initialize_arc_tdep): Don't initialize old target descriptions.
12097 (arc_read_description): New function to cache target descriptions.
12098 * arc-tdep.h (arc_read_description): Add proto type.
12099 * arch/arc.c: New file.
12100 * arch/arc.h: Likewise.
12101 * features/Makefile: Replace old target descriptions with new.
12102 * features/arc-arcompact.c: Remove.
12103 * features/arc-arcompact.xml: Likewise.
12104 * features/arc-v2.c: Likewise
12105 * features/arc-v2.xml: Likewise
12106 * features/arc/aux-arcompact.xml: New file.
12107 * features/arc/aux-v2.xml: Likewise.
12108 * features/arc/core-arcompact.xml: Likewise.
12109 * features/arc/core-v2.xml: Likewise.
12110 * features/arc/aux-arcompact.c: Generate.
12111 * features/arc/aux-v2.c: Likewise.
12112 * features/arc/core-arcompact.c: Likewise.
12113 * features/arc/core-v2.c: Likewise.
12114 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12115
12116 2020-03-16 Tom Tromey <tromey@adacore.com>
12117
12118 PR gdb/25663:
12119 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12120 putting value into bcache.
12121
12122 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12123
12124 PR gdb/21500
12125 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12126 to...
12127 (amd64_windows_init_abi_common): ... this. Don't set size of
12128 long type.
12129 (amd64_windows_init_abi): New function.
12130 (amd64_cygwin_init_abi): New function.
12131 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12132 the Cygwin OS ABI.
12133 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12134 comment.
12135
12136 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12137
12138 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12139 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12140 (pe_import_directory_entry): New struct type.
12141 (is_linked_with_cygwin_dll): New function.
12142 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12143 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12144 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12145
12146 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12147
12148 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12149 i386_cygwin_core_osabi_sniffer.
12150
12151 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12152
12153 * i386-cygwin-tdep.c: Rename to...
12154 * i386-windows-tdep.c: ... this.
12155 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12156 i386-windows-tdep.c.
12157 * configure.tgt: Likewise.
12158
12159 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12160
12161 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12162 * osabi.c (gdb_osabi_names): Add "Windows".
12163 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12164 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12165 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12166 i386_cygwin_osabi_sniffer.
12167 (_initialize_i386_cygwin_tdep): Register OS ABI
12168 GDB_OSABI_WINDOWS for i386.
12169 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12170 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12171 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12172 for x86-64.
12173 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12174 when the target matches '*-*-mingw*'.
12175
12176 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12177
12178 * defs.h (enum gdb_osabi): Move to...
12179 * osabi.h (enum gdb_osabi): ... here.
12180 * gdbarch.sh: Include osabi.h in gdbarch.h.
12181 * gdbarch.h: Re-generate.
12182
12183 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12184
12185 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12186 function.
12187 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12188
12189 2020-03-14 Tom Tromey <tom@tromey.com>
12190
12191 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12192 for C++.
12193 (c_type_print_modifier): Likewise. Add "language" parameter.
12194 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12195 (c_type_print_base_1): Update.
12196 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12197 constants.
12198 * type-stack.c (type_stack::insert): Handle tp_atomic and
12199 tp_restrict.
12200 (type_stack::follow_type_instance_flags): Likewise.
12201 (type_stack::follow_types): Likewise. Merge type-following code.
12202 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12203 (space_identifier, cv_with_space_id)
12204 (const_or_volatile_or_space_identifier_noopt)
12205 (const_or_volatile_or_space_identifier): Remove.
12206 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12207 rules.
12208 (ptr_operator, typebase): Update.
12209 (enum token_flag) <FLAG_C>: New constant.
12210 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12211 "_Atomic".
12212 (lex_one_token): Handle FLAG_C.
12213
12214 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12215
12216 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12217 it to the ptrace call.
12218 * m68k-bsd-nat.c (store_registers): Likewise.
12219
12220 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12221
12222 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12223 gdb_byte *.
12224 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12225 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12226 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12227
12228 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12229
12230 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12231 nbsd_nat_target instead of inf_ptrace_target.
12232 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12233 nbsd_nat_target.
12234
12235 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12236
12237 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12238 register_t.
12239
12240 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12241
12242 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12243 it to the ptrace call.
12244 * alpha-bsd-nat.c (store_registers): Likewise.
12245
12246 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12247
12248 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12249 includes.
12250 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12251 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12252 fill_fpregset): Likewise.
12253
12254 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12255
12256 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12257 nbsd_nat_target instead of inf_ptrace_target.
12258 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12259 nbsd_nat_target.
12260
12261 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12262
12263 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12264 register_t.
12265
12266 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12267
12268 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12269 it to the ptrace call.
12270 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12271 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12272 * arm-nbsd-nat.c (store_register): Likewise.
12273 * arm-nbsd-nat.c (store_regs): Likewise.
12274 * arm-nbsd-nat.c (store_fp_register): Likewise.
12275 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12276
12277 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12278
12279 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12280 nbsd_nat_target instead of inf_ptrace_target.
12281 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12282 nbsd_nat_target.
12283
12284 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12285
12286 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12287 it to the ptrace call.
12288 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12289
12290 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12291
12292 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12293 it to the ptrace call.
12294 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12295
12296 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12297
12298 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12299 gdb_byte *.
12300 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12301
12302 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12303
12304 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12305 instead of inf_ptrace_target.
12306 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12307 nbsd_nat_target.
12308
12309 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12310
12311 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12312 register_t.
12313
12314 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12315
12316 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12317 register_t.
12318
12319 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12320
12321 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12322 register_t.
12323
12324 2020-03-13 Tom Tromey <tom@tromey.com>
12325
12326 * value.h (val_print): Don't declare.
12327 * valprint.h (val_print_array_elements)
12328 (val_print_scalar_formatted, generic_val_print): Don't declare.
12329 * valprint.c (generic_val_print_array): Take a struct value.
12330 (generic_val_print_ptr, generic_val_print_memberptr)
12331 (generic_val_print_bool, generic_val_print_int)
12332 (generic_val_print_char, generic_val_print_complex)
12333 (generic_val_print): Remove.
12334 (generic_value_print): Update.
12335 (do_val_print): Remove unused parameters. Don't call
12336 la_val_print.
12337 (val_print): Remove.
12338 (common_val_print): Update. Don't call value_check_printable.
12339 (val_print_scalar_formatted, val_print_array_elements): Remove.
12340 * rust-lang.c (rust_val_print): Remove.
12341 (rust_language_defn): Update.
12342 * p-valprint.c (pascal_val_print): Remove.
12343 (pascal_value_print_inner): Update.
12344 (pascal_object_print_val_fields, pascal_object_print_val):
12345 Remove.
12346 (pascal_object_print_static_field): Update.
12347 * p-lang.h (pascal_val_print): Don't declare.
12348 * p-lang.c (pascal_language_defn): Update.
12349 * opencl-lang.c (opencl_language_defn): Update.
12350 * objc-lang.c (objc_language_defn): Update.
12351 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12352 * m2-lang.h (m2_val_print): Don't declare.
12353 * m2-lang.c (m2_language_defn): Update.
12354 * language.h (struct language_defn) <la_val_print>: Remove.
12355 * language.c (unk_lang_value_print_inner): Rename. Change
12356 argument types.
12357 (unknown_language_defn, auto_language_defn): Update.
12358 * go-valprint.c (go_val_print): Remove.
12359 * go-lang.h (go_val_print): Don't declare.
12360 * go-lang.c (go_language_defn): Update.
12361 * f-valprint.c (f_val_print): Remove.
12362 * f-lang.h (f_value_print): Don't declare.
12363 * f-lang.c (f_language_defn): Update.
12364 * d-valprint.c (d_val_print): Remove.
12365 * d-lang.h (d_value_print): Don't declare.
12366 * d-lang.c (d_language_defn): Update.
12367 * cp-valprint.c (cp_print_value_fields)
12368 (cp_print_value_fields_rtti, cp_print_value): Remove.
12369 (cp_print_static_field): Update.
12370 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12371 (c_val_print_struct, c_val_print_union, c_val_print_int)
12372 (c_val_print_memberptr, c_val_print): Remove.
12373 * c-lang.h (c_val_print_array, cp_print_value_fields)
12374 (cp_print_value_fields_rtti): Don't declare.
12375 * c-lang.c (c_language_defn, cplus_language_defn)
12376 (asm_language_defn, minimal_language_defn): Update.
12377 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12378 (ada_val_print_enum): Take a struct value.
12379 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12380 (ada_val_print): Remove.
12381 (ada_value_print_1): Update.
12382 (printable_val_type): Remove.
12383 * ada-lang.h (ada_val_print): Don't declare.
12384 * ada-lang.c (ada_language_defn): Update.
12385
12386 2020-03-13 Tom Tromey <tom@tromey.com>
12387
12388 * valprint.c (do_val_print): Update.
12389 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12390 a struct value.
12391 (value_to_value_object_no_release): Declare.
12392 * python/py-value.c (value_to_value_object_no_release): New
12393 function.
12394 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12395 struct value.
12396 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12397 function.
12398 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12399 a struct value.
12400 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12401 Declare.
12402 (gdbscm_apply_val_pretty_printer): Take a struct value.
12403 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12404 value.
12405 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12406 value.
12407 * extension-priv.h (struct extension_language_ops)
12408 <apply_val_pretty_printer>: Take a struct value.
12409 * cp-valprint.c (cp_print_value): Create a struct value.
12410 (cp_print_value): Update.
12411
12412 2020-03-13 Tom Tromey <tom@tromey.com>
12413
12414 * ada-valprint.c (print_field_values): Call common_val_print.
12415
12416 2020-03-13 Tom Tromey <tom@tromey.com>
12417
12418 * ada-valprint.c (val_print_packed_array_elements): Remove
12419 bitoffset and val parameters. Call common_val_print.
12420 (ada_val_print_string): Remove offset, address, and original_value
12421 parameters.
12422 (ada_val_print_array): Update.
12423 (ada_value_print_array): New function.
12424 (ada_value_print_1): Call it.
12425
12426 2020-03-13 Tom Tromey <tom@tromey.com>
12427
12428 * ada-valprint.c (ada_value_print): Use common_val_print.
12429
12430 2020-03-13 Tom Tromey <tom@tromey.com>
12431
12432 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12433
12434 2020-03-13 Tom Tromey <tom@tromey.com>
12435
12436 * ada-valprint.c (ada_value_print_num): New function.
12437 (ada_value_print_1): Use it.
12438
12439 2020-03-13 Tom Tromey <tom@tromey.com>
12440
12441 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12442
12443 2020-03-13 Tom Tromey <tom@tromey.com>
12444
12445 * ada-valprint.c (ada_value_print_ptr): New function.
12446 (ada_value_print_1): Use it.
12447
12448 2020-03-13 Tom Tromey <tom@tromey.com>
12449
12450 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12451 call common_val_print.
12452 (ada_val_print_1): Update.
12453 (ada_value_print_1): New function.
12454 (ada_value_print_inner): Rewrite.
12455
12456 2020-03-13 Tom Tromey <tom@tromey.com>
12457
12458 * cp-valprint.c (cp_print_value_fields): Update.
12459 (cp_print_value): New function.
12460
12461 2020-03-13 Tom Tromey <tom@tromey.com>
12462
12463 * m2-valprint.c (m2_value_print_inner): Use
12464 cp_print_value_fields.
12465 * cp-valprint.c (cp_print_value_fields): New function.
12466 * c-valprint.c (c_value_print_struct): New function.
12467 (c_value_print_inner): Use c_value_print_struct.
12468 * c-lang.h (cp_print_value_fields): Declare.
12469
12470 2020-03-13 Tom Tromey <tom@tromey.com>
12471
12472 * c-valprint.c (c_value_print_array): New function.
12473 (c_value_print_inner): Use it.
12474
12475 2020-03-13 Tom Tromey <tom@tromey.com>
12476
12477 * c-valprint.c (c_value_print_memberptr): New function.
12478 (c_value_print_inner): Use it.
12479
12480 2020-03-13 Tom Tromey <tom@tromey.com>
12481
12482 * c-valprint.c (c_value_print_int): New function.
12483 (c_value_print_inner): Use it.
12484
12485 2020-03-13 Tom Tromey <tom@tromey.com>
12486
12487 * c-valprint.c (c_value_print_ptr): New function.
12488 (c_value_print_inner): Use it.
12489
12490 2020-03-13 Tom Tromey <tom@tromey.com>
12491
12492 * c-valprint.c (c_value_print_inner): Rewrite.
12493
12494 2020-03-13 Tom Tromey <tom@tromey.com>
12495
12496 * valprint.c (generic_value_print_complex): New function.
12497 (generic_value_print): Use it.
12498
12499 2020-03-13 Tom Tromey <tom@tromey.com>
12500
12501 * valprint.c (generic_val_print_float): Don't call
12502 val_print_scalar_formatted.
12503 (generic_val_print, generic_value_print): Update.
12504
12505 2020-03-13 Tom Tromey <tom@tromey.com>
12506
12507 * valprint.c (generic_value_print_char): New function
12508 (generic_value_print): Use it.
12509
12510 2020-03-13 Tom Tromey <tom@tromey.com>
12511
12512 * valprint.c (generic_value_print_int): New function.
12513 (generic_value_print): Use it.
12514
12515 2020-03-13 Tom Tromey <tom@tromey.com>
12516
12517 * valprint.c (generic_value_print_bool): New function.
12518 (generic_value_print): Use it.
12519
12520 2020-03-13 Tom Tromey <tom@tromey.com>
12521
12522 * valprint.c (generic_val_print_func): Simplify.
12523 (generic_val_print, generic_value_print): Update.
12524
12525 2020-03-13 Tom Tromey <tom@tromey.com>
12526
12527 * valprint.c (generic_val_print_flags): Remove.
12528 (generic_val_print, generic_value_print): Update.
12529 (val_print_type_code_flags): Add original_value parameter.
12530
12531 2020-03-13 Tom Tromey <tom@tromey.com>
12532
12533 * valprint.c (generic_val_print): Update.
12534 (generic_value_print): Update.
12535 * valprint.c (generic_val_print_enum): Don't call
12536 val_print_scalar_formatted.
12537
12538 2020-03-13 Tom Tromey <tom@tromey.com>
12539
12540 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12541 * valprint.c (generic_value_print_ptr): New function.
12542
12543 2020-03-13 Tom Tromey <tom@tromey.com>
12544
12545 * valprint.c (generic_value_print): Rewrite.
12546
12547 2020-03-13 Tom Tromey <tom@tromey.com>
12548
12549 * p-valprint.c (pascal_object_print_value_fields)
12550 (pascal_object_print_value): New functions.
12551
12552 2020-03-13 Tom Tromey <tom@tromey.com>
12553
12554 * p-valprint.c (pascal_value_print_inner): Rewrite.
12555
12556 2020-03-13 Tom Tromey <tom@tromey.com>
12557
12558 * f-valprint.c (f_value_print_innner): Rewrite.
12559
12560 2020-03-13 Tom Tromey <tom@tromey.com>
12561
12562 * m2-valprint.c (m2_print_unbounded_array): New overload.
12563 (m2_print_unbounded_array): Update.
12564 (m2_print_array_contents): Take a struct value.
12565 (m2_value_print_inner): Rewrite.
12566
12567 2020-03-13 Tom Tromey <tom@tromey.com>
12568
12569 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12570 (d_value_print_inner): New function.
12571 * d-lang.h (d_value_print_inner): Declare.
12572 * d-lang.c (d_language_defn): Use d_value_print_inner.
12573
12574 2020-03-13 Tom Tromey <tom@tromey.com>
12575
12576 * go-valprint.c (go_value_print_inner): New function.
12577 * go-lang.h (go_value_print_inner): Declare.
12578 * go-lang.c (go_language_defn): Use go_value_print_inner.
12579
12580 2020-03-13 Tom Tromey <tom@tromey.com>
12581
12582 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12583 API.
12584 (rust_val_print): Rewrite.
12585 (rust_value_print_inner): New function, from rust_val_print.
12586 (rust_language_defn): Use rust_value_print_inner.
12587
12588 2020-03-13 Tom Tromey <tom@tromey.com>
12589
12590 * ada-valprint.c (ada_value_print_inner): New function.
12591 * ada-lang.h (ada_value_print_inner): Declare.
12592 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12593
12594 2020-03-13 Tom Tromey <tom@tromey.com>
12595
12596 * f-valprint.c (f_value_print_innner): New function.
12597 * f-lang.h (f_value_print_innner): Declare.
12598 * f-lang.c (f_language_defn): Use f_value_print_innner.
12599
12600 2020-03-13 Tom Tromey <tom@tromey.com>
12601
12602 * p-valprint.c (pascal_value_print_inner): New function.
12603 * p-lang.h (pascal_value_print_inner): Declare.
12604 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12605
12606 2020-03-13 Tom Tromey <tom@tromey.com>
12607
12608 * m2-valprint.c (m2_value_print_inner): New function.
12609 * m2-lang.h (m2_value_print_inner): Declare.
12610 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12611
12612 2020-03-13 Tom Tromey <tom@tromey.com>
12613
12614 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12615 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12616 * c-valprint.c (c_value_print_inner): New function.
12617 * c-lang.h (c_value_print_inner): Declare.
12618 * c-lang.c (c_language_defn, cplus_language_defn)
12619 (asm_language_defn, minimal_language_defn): Use
12620 c_value_print_inner.
12621
12622 2020-03-13 Tom Tromey <tom@tromey.com>
12623
12624 * p-valprint.c (pascal_object_print_value_fields): Now static.
12625 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12626
12627 2020-03-13 Tom Tromey <tom@tromey.com>
12628
12629 * c-valprint.c (c_val_print_array): Simplify.
12630
12631 2020-03-13 Tom Tromey <tom@tromey.com>
12632
12633 * valprint.c (value_print_array_elements): New function.
12634 * valprint.h (value_print_array_elements): Declare.
12635
12636 2020-03-13 Tom Tromey <tom@tromey.com>
12637
12638 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12639 * mips-tdep.c (mips_print_register): Use
12640 value_print_scalar_formatted.
12641
12642 2020-03-13 Tom Tromey <tom@tromey.com>
12643
12644 * valprint.h (value_print_scalar_formatted): Declare.
12645 * valprint.c (value_print_scalar_formatted): New function.
12646
12647 2020-03-13 Tom Tromey <tom@tromey.com>
12648
12649 * valprint.h (generic_value_print): Declare.
12650 * valprint.c (generic_value_print): New function.
12651
12652 2020-03-13 Tom Tromey <tom@tromey.com>
12653
12654 * valprint.c (do_val_print): Call la_value_print_inner, if
12655 available.
12656 * rust-lang.c (rust_language_defn): Update.
12657 * p-lang.c (pascal_language_defn): Update.
12658 * opencl-lang.c (opencl_language_defn): Update.
12659 * objc-lang.c (objc_language_defn): Update.
12660 * m2-lang.c (m2_language_defn): Update.
12661 * language.h (struct language_defn) <la_value_print_inner>: New
12662 member.
12663 * language.c (unknown_language_defn, auto_language_defn): Update.
12664 * go-lang.c (go_language_defn): Update.
12665 * f-lang.c (f_language_defn): Update.
12666 * d-lang.c (d_language_defn): Update.
12667 * c-lang.c (c_language_defn, cplus_language_defn)
12668 (asm_language_defn, minimal_language_defn): Update.
12669 * ada-lang.c (ada_language_defn): Update.
12670
12671 2020-03-13 Tom Tromey <tom@tromey.com>
12672
12673 * c-valprint.c (c_value_print): Use common_val_print.
12674
12675 2020-03-13 Tom Tromey <tom@tromey.com>
12676
12677 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12678
12679 2020-03-13 Tom Tromey <tom@tromey.com>
12680
12681 * f-valprint.c (f77_print_array_1, f_val_print): Use
12682 common_val_print.
12683
12684 2020-03-13 Tom Tromey <tom@tromey.com>
12685
12686 * riscv-tdep.c (riscv_print_one_register_info): Use
12687 common_val_print.
12688
12689 2020-03-13 Tom Tromey <tom@tromey.com>
12690
12691 * mi/mi-main.c (output_register): Use common_val_print.
12692
12693 2020-03-13 Tom Tromey <tom@tromey.com>
12694
12695 * infcmd.c (default_print_one_register_info): Use
12696 common_val_print.
12697
12698 2020-03-13 Tom Tromey <tom@tromey.com>
12699
12700 * valprint.h (common_val_print_checked): Declare.
12701 * valprint.c (common_val_print_checked): New function.
12702 * stack.c (print_frame_arg): Use common_val_print_checked.
12703
12704 2020-03-13 Tom Tromey <tom@tromey.com>
12705
12706 * valprint.c (do_val_print): New function, from val_print.
12707 (val_print): Use do_val_print.
12708 (common_val_print): Use do_val_print.
12709
12710 2020-03-13 Tom Tromey <tom@tromey.com>
12711
12712 * valprint.c (value_print): Use scoped_value_mark.
12713
12714 2020-03-13 Tom de Vries <tdevries@suse.de>
12715
12716 PR symtab/25646
12717 * psymtab.c (partial_symtab::partial_symtab): Don't set
12718 globals_offset and statics_offset. Push element onto
12719 current_global_psymbols and current_static_psymbols stacks.
12720 (concat): New function.
12721 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12722 element from current_global_psymbols and current_static_psymbols
12723 stacks. Concat popped elements to global_psymbols and
12724 static_symbols.
12725 (add_psymbol_to_list): Use current_global_psymbols and
12726 current_static_psymbols stacks.
12727 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12728 current_static_psymbols fields.
12729
12730 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12731
12732 * corelow.c (sniff_core_bfd): Remove.
12733 (class core_target) <m_core_vec>: Remove.
12734 (core_target::core_target): Update.
12735 (core_file_fns): Remove.
12736 (deprecated_add_core_fns): Remove.
12737 (default_core_sniffer): Remove.
12738 (sniff_core_bfd): Remove.
12739 (default_check_format): Remove.
12740 (gdb_check_format): Remove.
12741 (core_target_open): Update.
12742 (core_target::get_core_register_section): Update.
12743 (get_core_registers_cb): Update.
12744 (core_target::fetch_registers): Update.
12745 * gdbcore.h (struct core_fns): Remove.
12746 (deprecated_add_core_fns): Remove.
12747 (default_core_sniffer): Remove.
12748 (default_check_format): Remove.
12749
12750 2020-03-12 Tom Tromey <tom@tromey.com>
12751
12752 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12753 CORE_ADDR.
12754 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12755
12756 2020-03-12 Tom Tromey <tom@tromey.com>
12757
12758 * remote.c (remote_target::download_tracepoint)
12759 (remote_target::enable_tracepoint)
12760 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12761 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12762 sprintf_vma.
12763
12764 2020-03-12 Tom Tromey <tom@tromey.com>
12765
12766 * symfile-mem.c: Update CORE_ADDR size assert.
12767
12768 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12769
12770 * selftest.m4: Move to gdbsupport/.
12771 * acinclude.m4: Update path to selftest.m4.
12772
12773 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12774
12775 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12776 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12777 gdbarch-selfselftests.c and selftest-arch.c.
12778 (SUBDIR_UNITTESTS_OBS): Rename to...
12779 (SELFTESTS_OBS): ... this.
12780 (COMMON_SFILES): Remove disasm-selftests.c and
12781 gdbarch-selftests.c.
12782 * configure.ac: Don't add selftest-arch.{c,o} to
12783 CONFIG_{SRCS,OBS}.
12784 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12785 preprocessor conditions.
12786
12787 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12788
12789 * configure.ac: Don't source bfd/development.sh.
12790 * selftest.m4: Modify comment.
12791 * configure: Re-generate.
12792
12793 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12794
12795 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12796 not "true" or "false".
12797 * configure: Re-generate.
12798
12799 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12800
12801 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12802 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12803 renamed to arm_nbsd_supply_gregset.
12804 (fetch_register): Update to call arm_nbsd_supply_gregset.
12805 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12806 (arm_netbsd_nat_target::fetch_registers): Update.
12807 (fetch_elfcore_registers): Removed.
12808 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12809 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12810 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12811 not require NetBSD system headers.
12812 (arm_nbsd_regset): New struct.
12813 (arm_nbsd_iterate_over_regset_sections): New function.
12814 (arm_netbsd_init_abi_common): Updated to call
12815 set_gdbarch_iterate_over_regset_sections.
12816 * arm-nbsd-tdep.h: New file.
12817
12818 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12819
12820 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12821 recursion.
12822
12823 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12824
12825 * configure: Re-generate.
12826
12827 2020-03-11 Tom Tromey <tromey@adacore.com>
12828
12829 * ada-typeprint.c (print_choices): Fix comment.
12830
12831 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12832
12833 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12834 previous item in the list, when the list has no items.
12835
12836 2020-03-11 Tom de Vries <tdevries@suse.de>
12837
12838 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12839 PROP_LOCLIST handling code.
12840
12841 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12842
12843 * buildsym-legacy.c (record_line): Pass extra parameter to
12844 record_line.
12845 * buildsym.c (buildsym_compunit::record_line): Take an extra
12846 parameter, reduce duplication in the line table, and record the
12847 is_stmt flag in the line table.
12848 * buildsym.h (buildsym_compunit::record_line): Add extra
12849 parameter.
12850 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12851 non-statement lines.
12852 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12853 this to the symtab builder.
12854 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12855 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12856 through to dwarf_record_line_1.
12857 * infrun.c (process_event_stop_test): When stepping, don't stop at
12858 a non-statement instruction, and only refresh the step info when
12859 we land in the middle of a line's range. Also add an extra
12860 comment.
12861 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12862 field.
12863 * record-btrace.c (btrace_find_line_range): Only record lines
12864 marked as is-statement.
12865 * stack.c (frame_show_address): Show the frame address if we are
12866 in a non-statement sal.
12867 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12868 (maintenance_print_one_line_table): Print a header for the is_stmt
12869 column, and include is_stmt information in the output.
12870 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12871 preference to non-statements.
12872 (find_pcs_for_symtab_line): Prefer is-statement entries.
12873 (find_line_common): Likewise.
12874 * symtab.h (struct linetable_entry): Add is_stmt field.
12875 (struct symtab_and_line): Likewise.
12876 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12877 arranging the line table.
12878
12879 2020-03-07 Tom de Vries <tdevries@suse.de>
12880
12881 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12882 DIE.
12883
12884 2020-03-07 Tom Tromey <tom@tromey.com>
12885
12886 * valops.c (value_literal_complex): Remove obsolete comment.
12887 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12888 comment.
12889
12890 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12891
12892 * infrun.h: Forward-declare thread_info.
12893 (set_step_info): Add thread_info parameter, add doc.
12894 * infrun.c (set_step_info): Add thread_info parameter, move doc
12895 to header.
12896 * infrun.c (process_event_stop_test): Pass thread to
12897 set_step_info call.
12898 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12899 set_step_info.
12900 (prepare_one_step): Add thread_info parameter, pass it to
12901 set_step_frame and prepare_one_step (recursive) call.
12902 (step_1): Pass thread to prepare_one_step call.
12903 (step_command_fsm::should_stop): Pass thread to
12904 prepare_one_step.
12905 (until_next_fsm): Pass thread to set_step_frame call.
12906 (finish_command): Pass thread to set_step_info call.
12907
12908 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12909
12910 * windows-tdep.c (windows_solib_create_inferior_hook):
12911 Check if inferior is running.
12912
12913 2020-03-06 Tom de Vries <tdevries@suse.de>
12914
12915 * NEWS: Fix "the the".
12916 * ctfread.c: Same.
12917
12918 2020-03-06 Tom de Vries <tdevries@suse.de>
12919
12920 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12921
12922 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12923
12924 * .dir-locals.el: Add a comment referencing the other copies of
12925 this file.
12926
12927 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12928
12929 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12930 psargs.
12931
12932 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12933
12934 * .gitattributes: New file.
12935
12936 2020-03-04 Tom Tromey <tom@tromey.com>
12937
12938 * symmisc.c (print_symbol_bcache_statistics)
12939 (print_objfile_statistics): Update.
12940 * symfile.c (allocate_symtab): Use intern.
12941 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12942 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12943 macro_cache>: Remove.
12944 <string_cache>: New member.
12945 (struct objfile) <intern>: New methods.
12946 * elfread.c (elf_symtab_read): Use intern.
12947 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12948 (dwarf2_compute_name, dwarf2_physname)
12949 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12950 names.
12951 (guess_partial_die_structure_name): Update.
12952 (partial_die_info::fixup): Intern name.
12953 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12954 name.
12955 (dwarf2_name): Intern name. Update.
12956 * buildsym.c (buildsym_compunit::get_macro_table): Use
12957 string_cache.
12958
12959 2020-03-04 Tom Tromey <tom@tromey.com>
12960
12961 * jit.c (bfd_open_from_target_memory): Make "target" const.
12962 * corefile.c (gnutarget): Now const.
12963 * gdbcore.h (gnutarget): Now const.
12964
12965 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12966
12967 * NEWS: Mention support for WOW64 processes.
12968 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12969 (amd64_windows_segment_register_p): Remove static.
12970 (_initialize_amd64_windows_nat): Update.
12971 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12972 * i386-windows-nat.c (context_offset): Update.
12973 (i386_mappings): Rename and remove static.
12974 (i386_windows_segment_register_p): Remove static.
12975 (_initialize_i386_windows_nat): Update.
12976 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12977 (STATUS_WX86_SINGLE_STEP): New macro.
12978 (EnumProcessModulesEx): New macro.
12979 (Wow64SuspendThread): New macro.
12980 (Wow64GetThreadContext): New macro.
12981 (Wow64SetThreadContext): New macro.
12982 (Wow64GetThreadSelectorEntry): New macro.
12983 (windows_set_context_register_offsets): Add static.
12984 (windows_set_segment_register_p): Likewise.
12985 (windows_add_thread): Adapt for WOW64 processes.
12986 (windows_fetch_one_register): Likewise.
12987 (windows_nat_target::fetch_registers): Likewise.
12988 (windows_store_one_register): Likewise.
12989 (display_selector): Likewise.
12990 (display_selectors): Likewise.
12991 (handle_exception): Likewise.
12992 (windows_continue): Likewise.
12993 (windows_nat_target::resume): Likewise.
12994 (windows_add_all_dlls): Likewise.
12995 (do_initial_windows_stuff): Likewise.
12996 (windows_nat_target::attach): Likewise.
12997 (windows_get_exec_module_filename): Likewise.
12998 (windows_nat_target::create_inferior): Likewise.
12999 (windows_xfer_siginfo): Likewise.
13000 (_initialize_loadable): Initialize Wow64SuspendThread,
13001 Wow64GetThreadContext, Wow64SetThreadContext,
13002 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13003 * windows-nat.h (windows_set_context_register_offsets):
13004 Remove declaration.
13005 (windows_set_segment_register_p): Likewise.
13006 (i386_windows_segment_register_p): Add declaration.
13007 (amd64_windows_segment_register_p): Likewise.
13008
13009 2020-03-04 Luis Machado <luis.machado@linaro.org>
13010
13011 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13012 in "info registers" for AArch64/ARM.
13013
13014 The change caused "info registers" to not print GPR's.
13015
13016 gdb/ChangeLog:
13017
13018 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13019
13020 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13021 when reg->group is empty and reggroup is not.
13022
13023 2020-03-03 Tom Tromey <tromey@adacore.com>
13024
13025 * dwarf2/frame.c (struct dwarf2_frame_cache)
13026 <checked_tailcall_bottom, entry_cfa_sp_offset,
13027 entry_cfa_sp_offset_p>: Remove members.
13028 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13029 (dwarf2_frame_prev_register): Don't call
13030 dwarf2_tailcall_sniffer_first.
13031 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13032 * frame-unwind.c (add_unwinder): New fuction.
13033 (frame_unwind_init): Use it. Add tailcall unwinder.
13034
13035 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13036 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13037
13038 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13039 value should be printed as true.
13040
13041 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13042
13043 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13044 (windows_init_abi): Set and use windows_so_ops.
13045
13046 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13047
13048 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13049 when verifying if dealing with a convenience variable.
13050
13051 2020-03-03 Luis Machado <luis.machado@linaro.org>
13052
13053 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13054
13055 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13056
13057 * infrun.c (gdbarch_supports_displaced_stepping): New.
13058 (use_displaced_stepping): Break up conditions in smaller pieces.
13059 Use gdbarch_supports_displaced_stepping.
13060 (displaced_step_prepare_throw): Use
13061 gdbarch_supports_displaced_stepping.
13062
13063 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13064
13065 * NEWS: Mention new behaviour of the history filename.
13066 * top.c (write_history_p): Add comment.
13067 (show_write_history_p): Add header comment, give a different
13068 message when history writing is on, but the history filename is
13069 empty.
13070 (history_filename): Add comment.
13071 (history_filename_empty): New function.
13072 (show_history_filename): Add header comment, give a different
13073 message when the filename is empty.
13074 (init_history): Compare history_filename against nullptr, and only
13075 read history if the filename is not empty.
13076 (set_history_filename): Add header comment, and only make
13077 non-empty filenames absolute.
13078 (init_main): Make the filename argument to 'set history filename'
13079 optional.
13080
13081 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13082
13083 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13084 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13085 (fetch_fp_register): Update.
13086 (fetch_fp_regs): Update.
13087 (store_fp_register): Update.
13088 (store_fp_regs): Update.
13089 (arm_netbsd_nat_target::read_description): New function.
13090 (fetch_elfcore_registers): Update.
13091
13092 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13093
13094 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13095 general_thread if the stop reply is missing a thread-id.
13096 (remote_target::process_stop_reply): Use the first non-exited
13097 thread if the target didn't pass a thread-id.
13098 * infrun.c (do_target_wait): Move call to
13099 switch_to_inferior_no_thread to ....
13100 (do_target_wait_1): ... here.
13101
13102 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13103
13104 * debuginfod-support.c: Include defs.h first.
13105
13106 2020-02-28 Tom de Vries <tdevries@suse.de>
13107
13108 * symfile.c (set_initial_language): Use default language for lookup.
13109
13110 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13111
13112 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13113 reader variable, pass `this` to read_cutu_die_from_dwo.
13114
13115 2020-02-27 Aaron Merey <amerey@redhat.com>
13116
13117 * source.c (open_source_file): Check for nullptr when computing
13118 srcpath.
13119
13120 2020-02-27 Tom Tromey <tromey@adacore.com>
13121
13122 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13123 member.
13124 (dwarf2_add_field): Don't update nfields.
13125 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13126
13127 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13128
13129 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13130 abs.
13131
13132 2020-02-26 Tom Tromey <tom@tromey.com>
13133
13134 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13135 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13136 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13137 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13138 per_cu_data.
13139
13140 2020-02-26 Tom Tromey <tom@tromey.com>
13141
13142 * dwarf2/index-write.c (psym_index_map): Change type.
13143 (add_address_entry_worker, write_one_signatured_type)
13144 (recursively_count_psymbols, recursively_write_psymbols)
13145 (class debug_names, psyms_seen_size, write_gdbindex)
13146 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13147
13148 2020-02-26 Aaron Merey <amerey@redhat.com>
13149
13150 * Makefile.in: Handle optional debuginfod support.
13151 * NEWS: Update.
13152 * README: Add --with-debuginfod summary.
13153 * config.in: Regenerate.
13154 * configure: Regenerate.
13155 * configure.ac: Handle optional debuginfod support.
13156 * debuginfod-support.c: debuginfod helper functions.
13157 * debuginfod-support.h: Ditto.
13158 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13159 summary.
13160 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13161 when a dwz file cannot be found.
13162 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13163 debuginfo file cannot be found.
13164 * source.c (open_source_file): Query debuginfod servers when a
13165 source file cannot be found.
13166 * top.c (print_gdb_configuration): Include
13167 --{with,without}-debuginfod in the output.
13168
13169 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13170
13171 * thread.c (thr_try_catch_cmd): Print thread name.
13172
13173 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13174
13175 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13176 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13177 dwarf2_fetch_die_type_sect_off): Move to...
13178 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13179 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13180 dwarf2_fetch_die_type_sect_off): ... here.
13181 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13182 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13183 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13184
13185 2020-02-26 Tom de Vries <tdevries@suse.de>
13186
13187 PR gdb/25603
13188 * symfile.c (set_initial_language): Exit-early if
13189 language_mode == language_mode_manual.
13190
13191 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13192
13193 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13194 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13195 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13196
13197 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13198
13199 * gdbtypes.c (create_array_type_with_stride): Handle negative
13200 array strides.
13201 * valarith.c (value_subscripted_rvalue): Likewise.
13202
13203 2020-02-25 Luis Machado <luis.machado@linaro.org>
13204
13205 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13206
13207 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13208
13209 * loc.h (dwarf2_get_die_type): Move to...
13210 * read.h (dwarf2_get_die_type): ... here.
13211 * read.c (dwarf2_get_die_type): Move doc to header.
13212
13213 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13214
13215 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13216 'gnulib/Makefile.in' to the list.
13217
13218 2020-02-24 Tom Tromey <tom@tromey.com>
13219
13220 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13221 Remove.
13222 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13223 XOBNEWVEC.
13224
13225 2020-02-24 Tom Tromey <tom@tromey.com>
13226
13227 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13228 New method.
13229 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13230 (dw2_do_instantiate_symtab, dw2_get_file_names)
13231 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13232
13233 2020-02-24 Tom Tromey <tom@tromey.com>
13234
13235 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13236 make_scoped_restore.
13237 (dwarf2_psymtab::read_symtab): Don't clear
13238 reading_partial_symbols.
13239
13240 2020-02-24 Tom de Vries <tdevries@suse.de>
13241
13242 PR gdb/25592
13243 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13244
13245 2020-02-24 Tom de Vries <tdevries@suse.de>
13246
13247 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13248 commands layout next/prev/regs.
13249
13250 2020-02-22 Tom Tromey <tom@tromey.com>
13251
13252 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13253 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13254
13255 2020-02-22 Tom Tromey <tom@tromey.com>
13256
13257 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13258
13259 2020-02-22 Tom Tromey <tom@tromey.com>
13260
13261 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13262 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13263 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13264 * tui/tui.c (_initialize_tui): Add usage text.
13265
13266 2020-02-22 Tom Tromey <tom@tromey.com>
13267
13268 * tui/tui-win.c (tui_set_focus_command)
13269 (tui_set_win_height_command): Use error_no_arg.
13270 (_initialize_tui_win): Update help text.
13271 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13272
13273 2020-02-22 Tom Tromey <tom@tromey.com>
13274
13275 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13276 * tui/tui-disasm.h (struct tui_disasm_window)
13277 <display_start_addr>: Declare.
13278 * tui/tui-source.h (struct tui_source_window)
13279 <display_start_addr>: Declare.
13280 * tui/tui-winsource.h (struct tui_source_window_base)
13281 <show_source_line, display_start_addr>: New methods.
13282 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13283 Rename and move to protected section.
13284 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13285 (tui_source_window_base::do_erase_source_content): Update.
13286 (tui_source_window_base::show_source_line): Now a method.
13287 (tui_source_window_base::show_source_content)
13288 (tui_source_window_base::tui_source_window_base)
13289 (tui_source_window_base::rerender)
13290 (tui_source_window_base::refill)
13291 (tui_source_window_base::do_scroll_horizontal)
13292 (tui_source_window_base::set_is_exec_point_at)
13293 (tui_source_window_base::update_breakpoint_info)
13294 (tui_source_window_base::update_exec_info): Update.
13295 * tui/tui-source.c (tui_source_window::set_contents)
13296 (tui_source_window::showing_source_p)
13297 (tui_source_window::do_scroll_vertical)
13298 (tui_source_window::location_matches_p)
13299 (tui_source_window::line_is_displayed): Update.
13300 (tui_source_window::display_start_addr): New method.
13301 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13302 (tui_disasm_window::do_scroll_vertical)
13303 (tui_disasm_window::location_matches_p): Update.
13304 (tui_disasm_window::display_start_addr): New method.
13305
13306 2020-02-22 Tom Tromey <tom@tromey.com>
13307
13308 * NEWS: Add entry for gdb.register_window_type.
13309 * tui/tui-layout.h (window_factory): New typedef.
13310 (tui_register_window): Declare.
13311 * tui/tui-layout.c (saved_tui_windows): New global.
13312 (tui_apply_current_layout): Use it.
13313 (tui_register_window): New function.
13314 * python/python.c (do_start_initialization): Call
13315 gdbpy_initialize_tui.
13316 (python_GdbMethods): Add "register_window_type" function.
13317 * python/python-internal.h (gdbpy_register_tui_window)
13318 (gdbpy_initialize_tui): Declare.
13319 * python/py-tui.c: New file.
13320 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13321
13322 2020-02-22 Tom Tromey <tom@tromey.com>
13323
13324 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13325
13326 2020-02-22 Tom Tromey <tom@tromey.com>
13327
13328 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13329 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13330 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13331 (tui_set_win_focus_to): Move from tui-win.c.
13332
13333 2020-02-22 Tom Tromey <tom@tromey.com>
13334
13335 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13336 functions.
13337 (known_window_types): New global.
13338 (tui_get_window_by_name): Reimplement.
13339 (initialize_known_windows): New function.
13340 (validate_window_name): Rewrite.
13341 (_initialize_tui_layout): Call initialize_known_windows.
13342
13343 2020-02-22 Tom Tromey <tom@tromey.com>
13344
13345 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13346 Remove constants.
13347 * tui/tui-winsource.h (struct tui_source_window_base)
13348 <tui_source_window_base>: Remove parameter.
13349 * tui/tui-winsource.c
13350 (tui_source_window_base::tui_source_window_base): Remove
13351 parameter.
13352 (tui_source_window_base::refill): Update.
13353 * tui/tui-stack.h (struct tui_locator_window)
13354 <tui_locator_window>: Update.
13355 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13356 Default the constructor.
13357 * tui/tui-regs.h (struct tui_data_item_window)
13358 <tui_data_item_window>: Default the constructor.
13359 (struct tui_data_window) <tui_data_window>: Likewise.
13360 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13361 Default the constructor.
13362 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13363 Default the constructor.
13364 <type>: Remove.
13365 (struct tui_win_info) <tui_win_info>: Default the constructor.
13366 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13367 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13368 Default the constructor.
13369
13370 2020-02-22 Tom Tromey <tom@tromey.com>
13371
13372 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13373 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13374 * tui/tui-win.c (tui_resize_all): Don't call
13375 tui_delete_invisible_windows.
13376 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13377 done.
13378 (tui_set_layout): Update.
13379 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13380 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13381 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13382
13383 2020-02-22 Tom Tromey <tom@tromey.com>
13384
13385 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13386 correctly.
13387
13388 2020-02-22 Tom Tromey <tom@tromey.com>
13389
13390 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13391
13392 2020-02-22 Tom Tromey <tom@tromey.com>
13393
13394 * tui/tui-winsource.h (struct tui_source_window_iterator)
13395 <inner_iterator>: New etytypedef.
13396 <tui_source_window_iterator>: Take "end" parameter.
13397 <tui_source_window_iterator>: Take iterator.
13398 <operator*, advance>: Update.
13399 <m_iter>: Change type.
13400 <m_end>: New field.
13401 (struct tui_source_windows) <begin, end>: Update.
13402 * tui/tui-layout.c (tui_windows): New global.
13403 (tui_apply_current_layout): Clear tui_windows.
13404 (tui_layout_window::apply): Update tui_windows.
13405 * tui/tui-data.h (tui_windows): Declare.
13406 (all_tui_windows): Now inline function.
13407 (class tui_window_iterator, struct all_tui_windows): Remove.
13408
13409 2020-02-22 Tom Tromey <tom@tromey.com>
13410
13411 PR tui/17850:
13412 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13413 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13414 "height" argument.
13415 (class tui_layout_window) <get_sizes>: Likewise.
13416 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13417 argument.
13418 <get_sizes>: Add "height" argument.
13419 <m_vertical>: New field.
13420 * tui/tui-layout.c (tui_layout_split::clone): Update.
13421 (tui_layout_split::get_sizes): Add "height" argument.
13422 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13423 (tui_new_layout_command): Parse "-horizontal".
13424 (_initialize_tui_layout): Update help string.
13425 (tui_layout_split::specification): Add "-horizontal" when needed.
13426 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13427 argument.
13428 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13429 New methods.
13430
13431 2020-02-22 Tom Tromey <tom@tromey.com>
13432
13433 * tui/tui-layout.h (enum tui_adjust_result): New.
13434 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13435 (class tui_layout_window) <adjust_size>: Return
13436 tui_adjust_result. Rewrite.
13437 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13438 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13439
13440 2020-02-22 Tom Tromey <tom@tromey.com>
13441
13442 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13443 parameter and return types.
13444 (class tui_layout_base) <specification>: Add "depth".
13445 (class tui_layout_window) <specification>: Add "depth".
13446 (class tui_layout_split) <specification>: Add "depth".
13447 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13448 and return types.
13449 (tui_new_layout_command): Parse sub-layouts.
13450 (_initialize_tui_layout): Update help string.
13451 (tui_layout_window::specification): Add "depth".
13452 (add_layout_command): Update.
13453
13454 2020-02-22 Tom Tromey <tom@tromey.com>
13455
13456 * NEWS: Add "tui new-layout" item.
13457 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13458 Add new-layout command to help text.
13459 (validate_window_name): New function.
13460 (tui_new_layout_command): New function.
13461 (_initialize_tui_layout): Register "new-layout".
13462 (tui_layout_window::specification): New method.
13463 (tui_layout_window::specification): New method.
13464 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13465 method.
13466 (class tui_layout_window) <specification>: New method.
13467 (class tui_layout_split) <specification>: New method.
13468
13469 2020-02-22 Tom Tromey <tom@tromey.com>
13470
13471 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13472 * tui/tui-win.c (window_name_completer): Update comment.
13473 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13474 Declare method.
13475 (class tui_layout_window) <replace_window>: Likewise.
13476 (class tui_layout_split) <replace_window>: Likewise.
13477 (tui_set_layout): Don't declare.
13478 (tui_set_initial_layout): Declare function.
13479 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13480 (asm_regs_layout): New globals.
13481 (tui_current_layout, show_layout): Remove.
13482 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13483 (find_layout, tui_apply_layout): New function.
13484 (layout_completer): Remove.
13485 (tui_next_layout): Reimplement.
13486 (tui_next_layout_command): New function.
13487 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13488 (tui_regs_layout): Reimplement.
13489 (tui_regs_layout_command): New function.
13490 (extract_display_start_addr): Rewrite.
13491 (next_layout, prev_layout): Remove.
13492 (tui_layout_window::replace_window): New method.
13493 (tui_layout_split::replace_window): New method.
13494 (destroy_layout): New function.
13495 (layout_list): New global.
13496 (add_layout_command): New function.
13497 (initialize_layouts): Update.
13498 (tui_layout_command): New function.
13499 (_initialize_tui_layout): Install "layout" commands.
13500 * tui/tui-data.h (enum tui_layout_type): Remove.
13501 (tui_current_layout): Don't declare.
13502
13503 2020-02-22 Tom Tromey <tom@tromey.com>
13504
13505 * tui/tui-regs.c (tui_reg_layout): Remove.
13506 (tui_reg_command): Use tui_regs_layout.
13507 * tui/tui-layout.h (tui_reg_command): Declare.
13508 * tui/tui-layout.c (tui_reg_command): New function.
13509
13510 2020-02-22 Tom Tromey <tom@tromey.com>
13511
13512 * tui/tui.c (tui_rl_delete_other_windows): Call
13513 tui_remove_some_windows.
13514 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13515 Declare method.
13516 (class tui_layout_window) <remove_windows>: New method.
13517 (class tui_layout_split) <remove_windows>: Declare.
13518 (tui_remove_some_windows): Declare.
13519 * tui/tui-layout.c (tui_remove_some_windows): New function.
13520 (tui_layout_split::remove_windows): New method.
13521
13522 2020-02-22 Tom Tromey <tom@tromey.com>
13523
13524 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13525 * tui/tui-layout.h (tui_next_layout): Declare.
13526 * tui/tui-layout.c (tui_next_layout): New function.
13527
13528 2020-02-22 Tom Tromey <tom@tromey.com>
13529
13530 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13531 correct coordinates.
13532
13533 2020-02-22 Tom Tromey <tom@tromey.com>
13534
13535 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13536 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13537 DATA_WIN case.
13538
13539 2020-02-22 Tom Tromey <tom@tromey.com>
13540
13541 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13542 TUI_DISASM_WIN, not tui_win_list.
13543
13544 2020-02-22 Tom Tromey <tom@tromey.com>
13545
13546 * valprint.c (generic_val_print_enum_1)
13547 (val_print_type_code_flags): Style member names.
13548 * rust-lang.c (val_print_struct, rust_print_enum)
13549 (rust_print_struct_def, rust_internal_print_type): Style member
13550 names.
13551 * p-valprint.c (pascal_object_print_value_fields): Style member
13552 names. Only call fprintf_symbol_filtered for static members.
13553 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13554 * f-valprint.c (f_val_print): Style member names.
13555 * f-typeprint.c (f_type_print_base): Style member names.
13556 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13557 call fprintf_symbol_filtered for static members.
13558 (cp_print_class_member): Style member names.
13559 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13560 member names.
13561 * ada-valprint.c (ada_print_scalar): Style enum names.
13562 (ada_val_print_enum): Likewise.
13563 * ada-typeprint.c (print_enum_type): Style enum names.
13564
13565 2020-02-21 Tom Tromey <tom@tromey.com>
13566
13567 * psympriv.h (struct partial_symtab): Update comment.
13568
13569 2020-02-21 Tom Tromey <tromey@adacore.com>
13570
13571 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13572 type is CORE_ADDR.
13573
13574 2020-02-21 Tom de Vries <tdevries@suse.de>
13575
13576 PR gdb/25534
13577 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13578 if dependencies[i]->user != NULL.
13579
13580 2020-02-21 Ali Tamur <tamur@google.com>
13581
13582 * dwarf2/read.c (dwarf2_name): Add null check.
13583
13584 2020-02-20 Tom Tromey <tom@tromey.com>
13585
13586 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13587 ">=", in binary search.
13588 (dwarf2_find_containing_comp_unit): New overload.
13589 (run_test): New self-test.
13590 (_initialize_dwarf2_read): Register new test.
13591
13592 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13593
13594 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13595 * riscv-tdep.h: Likewise.
13596 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13597 rv32-only CSR.
13598 * features/riscv/64bit-csr.xml: Regenerated.
13599
13600 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13601 Tom Tromey <tom@tromey.com>
13602
13603 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13604 of 'fputc_unfiltered'.
13605 (putchar_unfiltered): Call 'fputc_unfiltered'.
13606 (fputc_unfiltered): Call 'fputs_unfiltered'.
13607
13608 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13609
13610 * config.in: Regenerate.
13611 * configure: Regenerate.
13612 * configure.ac: Add --with-python-libdir option.
13613 * main.c: Use WITH_PYTHON_LIBDIR.
13614
13615 2020-02-19 Tom Tromey <tom@tromey.com>
13616
13617 * symtab.c (general_symbol_info::compute_and_set_names): Use
13618 obstack_strndup. Simplify call to symbol_set_demangled_name.
13619
13620 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13621
13622 * dwarf2/read.c (allocate_signatured_type_table,
13623 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13624 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13625 Remove objfile parameter, update all callers.
13626
13627 2020-02-19 Doug Evans <dje@google.com>
13628
13629 PR rust/25535
13630 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13631 rust_enum_variant calculation.
13632
13633 2020-02-19 Tom Tromey <tromey@adacore.com>
13634
13635 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13636
13637 2020-02-19 Tom Tromey <tromey@adacore.com>
13638
13639 * ada-lang.c (cache_symbol): Use obstack_strdup.
13640
13641 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13642
13643 * configure: Regenerate.
13644
13645 2020-02-19 Tom Tromey <tromey@adacore.com>
13646
13647 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13648 NULL check.
13649
13650 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13651
13652 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13653
13654 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13655
13656 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13657 if GDBSERVER is not defined.
13658 (riscv_tdesc_cache): Likewise, also store const target_desc.
13659 (STATIC_IN_GDB): Define.
13660 (riscv_create_target_description): Update declaration with
13661 STATIC_IN_GDB.
13662 (riscv_lookup_target_description): New function, only define if
13663 GDBSERVER is not defined.
13664 * arch/riscv.h (riscv_create_target_description): Declare only
13665 when GDBSERVER is defined.
13666 (riscv_lookup_target_description): New declaration when GDBSERVER
13667 is not defined.
13668 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13669 (riscv_linux_read_features): ...this, and return
13670 riscv_gdbarch_features instead of target_desc.
13671 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13672 (riscv_linux_read_description): Rename to...
13673 (riscv_linux_read_features): ...this.
13674 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13675 Update to use riscv_gdbarch_features and
13676 riscv_lookup_target_description.
13677 * riscv-tdep.c (riscv_find_default_target_description): Use
13678 riscv_lookup_target_description instead of
13679 riscv_create_target_description.
13680
13681 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13682
13683 * valprint.c (generic_val_print_enum_1): When printing a flag
13684 enum with value 0 and there is no enumerator with value 0, print
13685 just "0" instead of "(unknown: 0x0)".
13686
13687 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13688
13689 * valprint.c (generic_val_print_enum_1): Print unknown part of
13690 flag enum in hex.
13691
13692 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13693
13694 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13695 flag enums to contain duplicate enumerators.
13696 * valprint.c (generic_val_print_enum_1): Update comment.
13697
13698 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13699
13700 * dwarf2/read.c: Include "count-one-bits.h".
13701 (update_enumeration_type_from_children): If an enumerator has
13702 multiple bits set, don't treat the enumeration as a "flag enum".
13703 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13704 of flag enums have 0 or 1 bit set.
13705
13706 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13707
13708 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13709 conversion.
13710 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13711 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13712 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13713 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13714 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13715
13716 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13717
13718 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13719
13720 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13721
13722 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13723 displaced_step_closure_up.
13724 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13725 (struct displaced_step_closure_up):
13726 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13727 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13728 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13729 Likewise.
13730 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13731 * gdbarch.c, gdbarch.h: Re-generate.
13732 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13733 displaced_step_closure_up.
13734 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13735 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13736 * infrun.h (displaced_step_closure_up): New type alias.
13737 (struct displaced_step_inferior_state) <step_closure>: Change
13738 type to displaced_step_closure_up.
13739 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13740 displaced_step_closure_up.
13741 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13742
13743 2020-02-14 Tom Tromey <tom@tromey.com>
13744
13745 * minidebug.c (gnu_debug_key): New global.
13746 (find_separate_debug_file_in_section): Use it.
13747
13748 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13749
13750 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13751 std::unique_ptr.
13752 * gdbarch.c: Re-generate.
13753 * gdbarch.h: Re-generate.
13754 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13755 change.
13756 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13757 type to std::unique_ptr.
13758 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13759 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13760 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13761 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13762 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13763 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13764 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13765 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13766 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13767
13768 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13769
13770 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13771 std::unique_ptr.
13772 (displaced_step_clear): Rename to...
13773 (displaced_step_reset): ... this. Just call displaced->reset ().
13774 (displaced_step_clear_cleanup): Rename to...
13775 (displaced_step_reset_cleanup): ... this.
13776 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13777 (displaced_step_fixup): Likewise.
13778 (resume_1): Likewise.
13779 (handle_inferior_event): Restore child's memory before calling
13780 displaced_step_fixup on the parent.
13781 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13782 to std::unique_ptr.
13783 <step_closure>: Change type to std::unique_ptr.
13784
13785 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13786
13787 * arm-tdep.c: Include count-one-bits.h.
13788 (cleanup_block_store_pc): Use count_one_bits.
13789 (cleanup_block_load_pc): Use count_one_bits.
13790 (arm_copy_block_xfer): Use count_one_bits.
13791 (thumb2_copy_block_xfer): Use count_one_bits.
13792 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13793 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13794 (thumb_get_next_pcs_raw): Use count_one_bits.
13795 (arm_get_next_pcs_raw): Use count_one_bits_l.
13796 * arch/arm.c (bitcount): Remove.
13797 * arch/arm.h (bitcount): Remove.
13798
13799 2020-02-14 Tom Tromey <tromey@adacore.com>
13800
13801 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13802 Update.
13803 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13804 * dwarf2/loc.c (call_site_find_chain_1): Return
13805 unique_xmalloc_ptr.
13806 (call_site_find_chain): Likewise.
13807
13808 2020-02-14 Richard Biener <rguenther@suse.de>
13809
13810 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13811 on expression with division operators.
13812
13813 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13814
13815 * MAINTAINERS (Write After Approval): Adding myself.
13816
13817 2020-02-12 Tom Tromey <tom@tromey.com>
13818
13819 * event-loop.c (event_data, gdb_event, event_handler_func):
13820 Remove.
13821
13822 2020-02-12 Tom Tromey <tom@tromey.com>
13823
13824 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13825 (dwarf2_frame_objfile_data): Add comment.
13826 (find_comp_unit, set_comp_unit): New functions.
13827 (dwarf2_frame_find_fde): Use find_comp_unit.
13828 (dwarf2_build_frame_info): Use set_comp_unit.
13829
13830 2020-02-12 Tom Tromey <tom@tromey.com>
13831
13832 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13833 (comp_unit): Don't initialize objfile.
13834 (execute_cfa_program): Add text_offset parameter.
13835 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13836 (dwarf2_frame_cache): Update.
13837 (dwarf2_build_frame_info): Don't set "objfile" member.
13838
13839 2020-02-12 Tom Tromey <tom@tromey.com>
13840
13841 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13842 (decode_frame_entry): Likewise.
13843 (dwarf2_build_frame_info): Update.
13844
13845 2020-02-12 Tom Tromey <tom@tromey.com>
13846
13847 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13848 (decode_frame_entry_1): Use the comp_unit obstack.
13849
13850 2020-02-12 Tom Tromey <tom@tromey.com>
13851
13852 * dwarf2/frame.c (struct comp_unit): Add initializers and
13853 constructor.
13854 (dwarf2_frame_objfile_data): Store a comp_unit.
13855 (dwarf2_frame_find_fde): Update.
13856 (dwarf2_build_frame_info): Use "new".
13857
13858 2020-02-12 Tom Tromey <tom@tromey.com>
13859
13860 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13861 (dwarf2_fde_table): Typedef for std::vector.
13862 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13863 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13864 (decode_frame_entry): Update.
13865 (dwarf2_build_frame_info): Use "new".
13866
13867 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13868
13869 * arm-tdep.c (arm_gdbarch_init): Update.
13870 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13871 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13872 have_neon, is_m>: Change to bool.
13873
13874 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13875
13876 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13877
13878 2020-02-12 Tom Tromey <tom@tromey.com>
13879
13880 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13881
13882 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13883
13884 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13885 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13886
13887 2020-02-11 Tom Tromey <tom@tromey.com>
13888
13889 * psymtab.h: Update comment.
13890
13891 2020-02-11 Tom Tromey <tom@tromey.com>
13892
13893 * gdb_obstack.h (struct auto_obstack): Use
13894 DISABLE_COPY_AND_ASSIGN.
13895
13896 2020-02-11 Tom Tromey <tom@tromey.com>
13897
13898 * dwarf2/frame.h (struct objfile): Don't forward declare.
13899
13900 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13901
13902 * cris-tdep.c (cris_supply_gregset): Change signature to match
13903 what struct regset expects.
13904 (cris_regset): New struct.
13905 (fetch_core_registers): Remove.
13906 (cris_iterate_over_regset_sections): New function.
13907 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13908 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13909
13910 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13911
13912 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13913 registers.
13914
13915 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13916
13917 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13918
13919 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13920
13921 * configure: Re-generate.
13922
13923 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13924
13925 * configure: Re-generate.
13926
13927 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13928
13929 * acinclude: Update warning.m4 path.
13930 * warning.m4: Move to gdbsupport.
13931
13932 2020-02-11 Tom Tromey <tromey@adacore.com>
13933
13934 * remote.c (remote_console_output): Update.
13935 * printcmd.c (printf_command): Update.
13936 * event-loop.c (gdb_wait_for_event): Update.
13937 * linux-nat.c (sigchld_handler): Update.
13938 * remote-sim.c (gdb_os_write_stdout): Update.
13939 (gdb_os_flush_stdout): Update.
13940 (gdb_os_flush_stderr): Update.
13941 (gdb_os_write_stderr): Update.
13942 * exceptions.c (print_exception): Update.
13943 * remote-fileio.c (remote_fileio_func_read): Update.
13944 (remote_fileio_func_write): Update.
13945 * tui/tui.c (tui_enable): Update.
13946 * tui/tui-interp.c (tui_interp::init): Update.
13947 * utils.c (init_page_info): Update.
13948 (putchar_unfiltered, fputc_unfiltered): Update.
13949 (gdb_flush): Update.
13950 (emit_style_escape): Update.
13951 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13952 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13953 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13954 (stderr_file::write): Update.
13955 (stderr_file::puts): Update.
13956 * ui-file.h (ui_file_isatty, ui_file_write)
13957 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13958 (ui_file_puts): Don't declare.
13959
13960 2020-02-10 Tom de Vries <tdevries@suse.de>
13961
13962 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13963 sentinel to char *.
13964
13965 2020-02-09 Tom de Vries <tdevries@suse.de>
13966
13967 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13968 filename if it matches "<artificial>".
13969
13970 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13971
13972 * windows-tdep.c (struct enum_value_name): New struct.
13973 (create_enum): New function.
13974 (windows_get_siginfo_type): Create and use enum types.
13975
13976 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13977
13978 * NEWS: Mention $_siginfo support for Windows.
13979 * windows-nat.c (handle_exception): Set siginfo_er.
13980 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13981 (windows_xfer_siginfo): New function.
13982 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13983 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13984 (init_windows_gdbarch_data): New function.
13985 (get_windows_gdbarch_data): New function.
13986 (windows_get_siginfo_type): New function.
13987 (windows_init_abi): Register windows_get_siginfo_type.
13988 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13989
13990 2020-02-08 Tom Tromey <tom@tromey.com>
13991
13992 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13993 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13994 <keep>: Declare method.
13995 <m_keep>: Remove member.
13996 <~cutu_reader>: Remove.
13997 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13998 (cutu_reader::cutu_reader): Update.
13999 (cutu_reader::keep): Rename from ~cutu_reader.
14000 (process_psymtab_comp_unit, build_type_psymtabs_1)
14001 (process_skeletonless_type_unit, load_partial_comp_unit)
14002 (load_full_comp_unit, dwarf2_read_addr_index)
14003 (read_signatured_type): Update.
14004
14005 2020-02-08 Tom Tromey <tom@tromey.com>
14006
14007 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14008 "want_partial_unit" parameter.
14009 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14010 Inline check for DW_TAG_partial_unit.
14011 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14012
14013 2020-02-08 Tom Tromey <tom@tromey.com>
14014
14015 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14016 read.c.
14017 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14018 read.c.
14019
14020 2020-02-08 Tom Tromey <tom@tromey.com>
14021
14022 * dwarf2/read.c (read_address): Move to comp-unit.c.
14023 (dwarf2_rnglists_process, dwarf2_ranges_process)
14024 (read_attribute_value, dwarf_decode_lines_1)
14025 (var_decode_location, decode_locdesc): Update.
14026 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14027 read.c. Remove "cu" parameter.
14028 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14029 method.
14030
14031 2020-02-08 Tom Tromey <tom@tromey.com>
14032
14033 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14034 (read_indirect_line_string): Update.
14035 * dwarf2/comp-unit.c (read_offset): Remove.
14036 (read_comp_unit_head): Update.
14037 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14038 method.
14039 (read_offset): Don't declare.
14040
14041 2020-02-08 Tom Tromey <tom@tromey.com>
14042
14043 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14044 * dwarf2/read.c (struct comp_unit_head): Move to
14045 dwarf2/comp-unit.h.
14046 (enum class rcuh_kind): Move to comp-unit.h.
14047 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14048 (read_comp_unit_head, error_check_comp_unit_head)
14049 (read_and_check_comp_unit_head): Move to comp-unit.c.
14050 (read_offset, dwarf_unit_type_name): Likewise.
14051 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14052 (cutu_reader::cutu_reader, read_call_site_scope)
14053 (find_partial_die, follow_die_offset): Update.
14054 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14055
14056 2020-02-08 Tom Tromey <tom@tromey.com>
14057
14058 * dwarf2/read.c (read_offset_1): Move to leb.c.
14059 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14060 (dwarf_decode_macro_bytes): Update.
14061 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14062 * dwarf2/leb.h (read_offset): Declare.
14063
14064 2020-02-08 Tom Tromey <tom@tromey.com>
14065
14066 * dwarf2/read.c (dwarf2_section_size): Remove.
14067 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14068 Update.
14069 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14070
14071 2020-02-08 Tom Tromey <tom@tromey.com>
14072
14073 * dwarf2/read.c (read_initial_length): Move to leb.c.
14074 * dwarf2/leb.h (read_initial_length): Declare.
14075 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14076 handle_nonstd parameter.
14077 * dwarf2/frame.c (read_initial_length): Remove.
14078 (decode_frame_entry_1): Update.
14079
14080 2020-02-08 Tom Tromey <tom@tromey.com>
14081
14082 * dwarf2/loc.c (dwarf2_find_location_expression)
14083 (dwarf_evaluate_loc_desc::get_tls_address)
14084 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14085 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14086 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14087 (dwarf2_compile_property_to_c)
14088 (dwarf2_loc_desc_get_symbol_read_needs)
14089 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14090 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14091 (loclist_describe_location, loclist_tracepoint_var_ref)
14092 (loclist_generate_c_location): Update.
14093 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14094 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14095 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14096 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14097 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14098 (dwarf2_per_cu_data::addr_size)
14099 (dwarf2_per_cu_data::ref_addr_size)
14100 (dwarf2_per_cu_data::text_offset)
14101 (dwarf2_per_cu_data::addr_type): Now methods.
14102 (per_cu_header_read_in): Make per_cu "const".
14103 (dwarf2_version): Remove.
14104 (dwarf2_per_cu_data::int_type): Now a method.
14105 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14106 (set_die_type, read_array_type, read_subrange_index_type)
14107 (read_tag_string_type, read_subrange_type): Update.
14108 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14109 offset_size, ref_addr_size, text_offset, addr_type, version,
14110 objfile, int_type, addr_sized_int_type>: Declare methods.
14111
14112 2020-02-08 Tom Tromey <tom@tromey.com>
14113
14114 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14115 Move earlier.
14116
14117 2020-02-08 Tom Tromey <tom@tromey.com>
14118
14119 * dwarf2/read.h (dwarf_line_debug): Declare.
14120 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14121 * dwarf2/read.c: Move line_header code to new files.
14122 (dwarf_line_debug): No longer static.
14123 * dwarf2/line-header.c: New file.
14124 * dwarf2/line-header.h: New file.
14125
14126 2020-02-08 Tom Tromey <tom@tromey.com>
14127
14128 * dwarf2/read.c (struct line_header) <file_full_name,
14129 file_file_name>: Return unique_xmalloc_ptr.
14130 (line_header::file_file_name): Update.
14131 (line_header::file_full_name): Update.
14132 (dw2_get_file_names_reader): Update.
14133 (macro_start_file): Update.
14134
14135 2020-02-08 Tom Tromey <tom@tromey.com>
14136
14137 * dwarf2/read.c (struct line_header) <file_full_name,
14138 file_file_name>: Declare methods.
14139 (dw2_get_file_names_reader): Update.
14140 (file_file_name): Now a method.
14141 (file_full_name): Likewise.
14142 (macro_start_file): Update.
14143
14144 2020-02-08 Tom Tromey <tom@tromey.com>
14145
14146 * dwarf2/read.c (dwarf_always_disassemble)
14147 (show_dwarf_always_disassemble): Move to loc.c.
14148 (_initialize_dwarf2_read): Move "always-disassemble" registration
14149 to loc.c.
14150 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14151 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14152 static.
14153 (show_dwarf_always_disassemble): Move from read.c.
14154 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14155
14156 2020-02-08 Tom Tromey <tom@tromey.com>
14157
14158 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14159 (create_quick_file_names_table): Return htab_up.
14160 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14161 Update.
14162 * dwarf2/read.h (struct dwarf2_per_objfile)
14163 <quick_file_names_table>: Now htab_up.
14164
14165 2020-02-08 Tom Tromey <tom@tromey.com>
14166
14167 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14168
14169 2020-02-08 Tom Tromey <tom@tromey.com>
14170
14171 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14172 Rewrite.
14173 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14174 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14175 (abbrev_table::abbrev_table): No longer inline.
14176 (ABBREV_HASH_SIZE): Remove.
14177 (abbrev_table::m_abbrevs): Now an htab_up.
14178
14179 2020-02-08 Tom Tromey <tom@tromey.com>
14180
14181 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14182 (cutu_reader): Update.
14183 (build_type_psymtabs_1): Update.
14184 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14185 (abbrev_table::alloc_abbrev): Update.
14186 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14187 (abbrev_table::read): New static method, renamed from
14188 abbrev_table_read_table.
14189 (abbrev_table::alloc_abbrev)
14190 (abbrev_table::add_abbrev): Now private.
14191 (abbrev_table::abbrev_table): Now private.
14192 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14193
14194 2020-02-08 Tom Tromey <tom@tromey.com>
14195
14196 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14197 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14198 htab_up.
14199
14200 2020-02-08 Tom Tromey <tom@tromey.com>
14201
14202 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14203 htab_up.
14204 (lookup_dwo_unit_in_dwp): Update.
14205 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14206 on obstack.
14207
14208 2020-02-08 Tom Tromey <tom@tromey.com>
14209
14210 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14211 obstack.
14212
14213 2020-02-08 Tom Tromey <tom@tromey.com>
14214
14215 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14216 line_header_hash.
14217 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14218 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14219 Change type to htab_up.
14220
14221 2020-02-08 Tom Tromey <tom@tromey.com>
14222
14223 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14224 htab_up. Don't allocate on obstack.
14225 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14226 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14227 Change type to htab_up.
14228
14229 2020-02-08 Tom Tromey <tom@tromey.com>
14230
14231 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14232 Change type to htab_up.
14233 * dwarf2/read.c (create_signatured_type_table_from_index)
14234 (create_signatured_type_table_from_debug_names)
14235 (create_all_type_units, add_type_unit)
14236 (lookup_dwo_signatured_type, lookup_signatured_type)
14237 (process_skeletonless_type_unit): Update.
14238 (create_debug_type_hash_table, create_debug_types_hash_table):
14239 Change type of types_htab.
14240 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14241 htab_up. Don't allocate on obstack.
14242 (create_cus_hash_table): Change type of cus_htab parameter.
14243 (struct dwo_file) <cus, tus>: Now htab_up.
14244 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14245 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14246 (queue_and_load_all_dwo_tus): Update.
14247 * dwarf2/index-write.c (write_gdbindex): Update.
14248 (write_debug_names): Update.
14249
14250 2020-02-08 Tom Tromey <tom@tromey.com>
14251
14252 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14253 dwarf2/read.c. Remove "next" member. Add constructor ntad
14254 destructor.
14255 (struct dwarf2_per_objfile) <queue>: New member.
14256 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14257 dwarf2/read.h.
14258 (dwarf2_queue, dwarf2_queue_tail): Remove.
14259 (class dwarf2_queue_guard): Add parameter to constructor. Use
14260 DISABLE_COPY_AND_ASSIGN.
14261 <m_per_objfile>: New member.
14262 <~dwarf2_queue_guard>: Rewrite.
14263 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14264 Update.
14265 (~dwarf2_queue_item): New.
14266
14267 2020-02-08 Tom Tromey <tom@tromey.com>
14268
14269 * dwarf2/read.c (struct die_info) <has_children>: New member.
14270 (dw2_get_file_names_reader): Remove has_children.
14271 (dw2_get_file_names): Update.
14272 (read_cutu_die_from_dwo): Remove has_children.
14273 (cutu_reader::init_tu_and_read_dwo_dies)
14274 (cutu_reader::cutu_reader): Update.
14275 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14276 Remove has_children.
14277 (build_type_psymtabs_1, process_skeletonless_type_unit)
14278 (load_partial_comp_unit, load_full_comp_unit): Update.
14279 (create_dwo_cu_reader): Remove has_children.
14280 (create_cus_hash_table, read_die_and_children): Update.
14281 (read_full_die_1,read_full_die): Remove has_children.
14282 (read_signatured_type): Update.
14283 (class cutu_reader) <has_children>: Remove.
14284
14285 2020-02-08 Tom Tromey <tom@tromey.com>
14286
14287 * dwarf2/expr.c: Rename from dwarf2expr.c.
14288 * dwarf2/expr.h: Rename from dwarf2expr.h.
14289 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14290 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14291 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14292 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14293 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14294 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14295 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14296 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14297 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14298 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14299 * dwarf2/loc.c: Rename from dwarf2loc.c.
14300 * dwarf2/loc.h: Rename from dwarf2loc.h.
14301 * dwarf2/read.c: Rename from dwarf2read.c.
14302 * dwarf2/read.h: Rename from dwarf2read.h.
14303 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14304 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14305 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14306 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14307 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14308 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14309 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14310 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14311 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14312 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14313 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14314 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14315 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14316 Update.
14317 * Makefile.in (COMMON_SFILES): Update.
14318 (HFILES_NO_SRCDIR): Update.
14319
14320 2020-02-08 Tom Tromey <tom@tromey.com>
14321
14322 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14323 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14324
14325 2020-02-08 Tom Tromey <tom@tromey.com>
14326
14327 * dwarf2read.h (struct die_info): Don't declare.
14328
14329 2020-02-08 Tom Tromey <tom@tromey.com>
14330
14331 * dwarf2read.h (die_info_ptr): Remove typedef.
14332
14333 2020-02-08 Tom Tromey <tom@tromey.com>
14334
14335 * dwarf2read.c (read_call_site_scope)
14336 (handle_data_member_location, dwarf2_add_member_fn)
14337 (mark_common_block_symbol_computed, read_common_block)
14338 (attr_to_dynamic_prop, partial_die_info::read)
14339 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14340 (dwarf2_symbol_mark_computed, set_die_type): Update.
14341 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14342 method.
14343 (attr_form_is_block): Don't declare.
14344 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14345
14346 2020-02-08 Tom Tromey <tom@tromey.com>
14347
14348 * dwarf2read.c (dwarf2_find_base_address, )
14349 (read_call_site_scope, rust_containing_type)
14350 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14351 (handle_data_member_location, dwarf2_add_member_fn)
14352 (get_alignment, read_structure_type, process_structure_scope)
14353 (mark_common_block_symbol_computed, read_common_block)
14354 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14355 (partial_die_info::read, read_attribute_value, new_symbol)
14356 (lookup_die_type, dwarf2_get_ref_die_offset)
14357 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14358 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14359 (dwarf2_symbol_mark_computed): Update.
14360 * dwarf2/attribute.h (struct attribute) <value_as_address,
14361 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14362 methods.
14363 (value_as_address, attr_form_is_section_offset)
14364 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14365 * dwarf2/attribute.c (attribute::value_as_address)
14366 (attribute::form_is_section_offset, attribute::form_is_constant)
14367 (attribute::form_is_ref): Now methods.
14368
14369 2020-02-08 Tom Tromey <tom@tromey.com>
14370
14371 * dwarf2read.c (struct attribute, DW_STRING)
14372 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14373 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14374 (attr_form_is_block, attr_form_is_section_offset)
14375 (attr_form_is_constant, attr_form_is_ref): Move.
14376 * dwarf2/attribute.h: New file.
14377 * dwarf2/attribute.c: New file, from dwarf2read.c.
14378 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14379
14380 2020-02-08 Tom Tromey <tom@tromey.com>
14381
14382 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14383 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14384 Move.
14385 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14386 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14387 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14388 abbrev.c.
14389 * dwarf2/abbrev.h: New file.
14390 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14391 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14392
14393 2020-02-08 Tom Tromey <tom@tromey.com>
14394
14395 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14396 (dwarf2_section_size, dwarf2_get_section_info)
14397 (create_signatured_type_table_from_debug_names)
14398 (create_addrmap_from_aranges, read_debug_names_from_section)
14399 (get_gdb_index_contents_from_section, read_comp_unit_head)
14400 (error_check_comp_unit_head, read_abbrev_offset)
14401 (create_debug_type_hash_table, init_cu_die_reader)
14402 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14403 (read_comp_units_from_section, create_cus_hash_table)
14404 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14405 (create_dwp_v2_section, dwarf2_rnglists_process)
14406 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14407 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14408 (read_indirect_string_from_dwz, read_addr_index_1)
14409 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14410 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14411 (fill_in_loclist_baton): Update.
14412 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14413 get_containing_section, get_bfd_owner, get_bfd_section,
14414 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14415 (dwarf2_read_section, get_section_name, get_section_file_name)
14416 (get_containing_section, get_section_bfd_owner)
14417 (get_section_bfd_section, get_section_name, get_section_file_name)
14418 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14419 declare.
14420 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14421 (dwarf2_section_info::get_bfd_owner)
14422 (dwarf2_section_info::get_bfd_section)
14423 (dwarf2_section_info::get_name)
14424 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14425 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14426 (dwarf2_section_info::read): Now methods.
14427 * dwarf-index-write.c (class debug_names): Update.
14428
14429 2020-02-08 Tom Tromey <tom@tromey.com>
14430
14431 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14432 Move to dwarf2/section.h.
14433 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14434 (get_section_bfd_section, get_section_name)
14435 (get_section_file_name, get_section_id, get_section_flags)
14436 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14437 dwarf2/section.c.
14438 * dwarf2/section.h: New file.
14439 * dwarf2/section.c: New file, from dwarf2read.c.
14440 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14441
14442 2020-02-08 Tom Tromey <tom@tromey.com>
14443
14444 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14445 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14446 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14447 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14448 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14449 * dwarf2/leb.h: New file, from dwarf2read.c.
14450 * dwarf2/leb.c: New file, from dwarf2read.c.
14451 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14452 Remove.
14453 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14454 (COMMON_SFILES): Add dwarf2/leb.c.
14455
14456 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14457
14458 GDB 9.1 released.
14459
14460 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14461
14462 PR gdb/25190:
14463 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14464 * gdb/remote.c (remote_console_output): Update.
14465 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14466 (ui_file_puts): ...this.
14467 * gdb/ui-file.h (ui_file_puts): Add declaration.
14468 * gdb/utils.c (emit_style_escape): Update.
14469 (flush_wrap_buffer): Update.
14470 (fputs_maybe_filtered): Update.
14471 (fputs_unfiltered): Add function.
14472
14473 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14474
14475 * gdb/event-loop.c (gdb_wait_for_event): Update.
14476 * gdb/printcmd.c (printf_command): Update.
14477 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14478 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14479 (gdb_os_flush_stderr): Update.
14480 * gdb/remote.c (remote_console_output): Update.
14481 * gdb/ui-file.c (gdb_flush): Rename to...
14482 (ui_file_flush): ...this.
14483 (stderr_file::write): Update.
14484 (stderr_file::puts): Update.
14485 * gdb/ui-file.h (gdb_flush): Rename to...
14486 (ui_file_flush): ...this.
14487 * gdb/utils.c (gdb_flush): Add function.
14488 * gdb/utils.h (gdb_flush): Add declaration.
14489
14490 2020-02-07 Tom Tromey <tromey@adacore.com>
14491
14492 PR breakpoints/24915:
14493 * source.c (find_and_open_source): Do not check basenames_may_differ.
14494
14495 2020-02-07 Tom Tromey <tom@tromey.com>
14496
14497 * README: Update gdbserver documentation.
14498 * gdbserver: Move to top level.
14499 * configure.tgt (build_gdbserver): Remove.
14500 * configure.ac: Remove --enable-gdbserver.
14501 * configure: Rebuild.
14502 * Makefile.in (distclean): Don't mention gdbserver.
14503
14504 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14505
14506 * source-cache.c (source_cache::ensure): Surround
14507 get_plain_source_lines with a try/catch.
14508 (source_cache::get_line_charpos): Get rid of try/catch
14509 and only check for the return value of "ensure".
14510 * tui/tui-source.c (tui_source_window::set_contents):
14511 Simplify "nlines" calculation.
14512
14513 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14514
14515 * MAINTAINERS (Write After Approval): Add myself.
14516
14517 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14518
14519 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14520 function call.
14521
14522 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14523
14524 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14525
14526 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14527
14528 * nat/riscv-linux-tdesc.h: New file.
14529 * nat/riscv-linux-tdesc.c: New file, taking code from...
14530 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14531 ... here.
14532 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14533 NATDEPFILES.
14534
14535 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14536
14537 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14538 we don't set the fake simulator ptid to the null_ptid.
14539
14540 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14541
14542 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14543 * gdbthread.h (class thread_info) <resumed>: Likewise.
14544 * infrun.c (resume_1): Likewise.
14545 (proceed): Likewise.
14546 (infrun_thread_stop_requested): Likewise.
14547 (stop_all_threads): Likewise.
14548 (handle_inferior_event): Likewise.
14549 (restart_threads): Likewise.
14550 (finish_step_over): Likewise.
14551 (keep_going_stepped_thread): Likewise.
14552 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14553 (linux_handle_extended_wait): Likewise.
14554 * record-btrace.c (get_thread_current_frame_id): Likewise.
14555 * record-full.c (record_full_wait_1): Likewise.
14556 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14557 * target.c (target_resume): Likewise.
14558 * thread.c (set_running_thread): Likewise.
14559
14560 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14561
14562 * f-valprint.c (f77_print_array_1): Changed datatype of index
14563 variable to LONGEST from int to enable it to contain bound
14564 values correctly.
14565
14566 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14567
14568 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14569 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14570 offsets according to FLEN determined.
14571 (riscv_linux_nat_target::read_description): Determine FLEN
14572 dynamically.
14573 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14574 according to FLEN determined.
14575 (riscv_linux_nat_target::store_registers): Likewise.
14576
14577 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14578
14579 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14580 when reg->group is empty and reggroup is not.
14581
14582 2020-01-31 Tom Tromey <tromey@adacore.com>
14583
14584 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14585 Call beneath target's mourn_inferior after unpushing.
14586
14587 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14588
14589 PR tui/9765
14590 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14591 have enough lines to fill the screen, still return the lowest
14592 address we found.
14593
14594 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14595
14596 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14597 '-', '<', and '>' commands.
14598
14599 2020-01-29 Pedro Alves <palves@redhat.com>
14600 Sergio Durigan Junior <sergiodj@redhat.com>
14601
14602 * infcmd.c (construct_inferior_arguments): Assert that
14603 'argc' is greater than 0.
14604
14605 2020-01-29 Luis Machado <luis.machado@linaro.org>
14606
14607 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14608 (BRK_INSN_MASK): Define to 0xd4200000.
14609 (aarch64_program_breakpoint_here_p): New function.
14610 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14611 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14612 breakpoint.c.
14613 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14614 breakpoint.h
14615 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14616 call gdbarch_program_breakpoint_here_p.
14617 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14618 default_program_breakpoint_here_p, changed return type to bool and
14619 simplified.
14620 * breakpoint.h (program_breakpoint_here): Moved prototype to
14621 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14622 return type to bool.
14623 * gdbarch.c: Regenerate.
14624 * gdbarch.h: Regenerate.
14625 * gdbarch.sh (program_breakpoint_here_p): New method.
14626 * infrun.c (handle_signal_stop): Call
14627 gdbarch_program_breakpoint_here_p.
14628
14629 2020-01-26 Tom Tromey <tom@tromey.com>
14630
14631 * ctfread.c (struct ctf_fp_info): Reindent.
14632 (_initialize_ctfread): Remove.
14633
14634 2020-01-26 Tom Tromey <tom@tromey.com>
14635
14636 * psymtab.c (partial_map_expand_apply)
14637 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14638 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14639 (psym_print_stats, psym_expand_symtabs_for_function)
14640 (psym_map_symbol_filenames, psym_map_matching_symbols)
14641 (psym_expand_symtabs_matching)
14642 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14643 (maintenance_check_psymtabs): Use new methods.
14644 * psympriv.h (struct partial_symtab) <readin_p,
14645 get_compunit_symtab>: New methods.
14646 <readin, compunit_symtab>: Remove members.
14647 (struct standard_psymtab): New.
14648 (struct legacy_psymtab): Derive from standard_psymtab.
14649 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14650 standard_psymtab.
14651 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14652
14653 2020-01-26 Tom Tromey <tom@tromey.com>
14654
14655 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14656 read_dependencies. Add assert.
14657 * psymtab.c (partial_symtab::read_dependencies): New method.
14658 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14659 method.
14660 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14661 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14662 read_dependencies.
14663 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14664 Add assert.
14665
14666 2020-01-26 Tom Tromey <tom@tromey.com>
14667
14668 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14669 Call expand_psymtab.
14670 (xcoff_read_symtab): Call expand_psymtab.
14671 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14672 legacy_expand_psymtab.
14673 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14674 method.
14675 (struct legacy_psymtab) <expand_psymtab>: Implement.
14676 <legacy_expand_psymtab>: New member.
14677 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14678 (parse_partial_symbols): Set legacy_expand_psymtab.
14679 (psymtab_to_symtab_1): Change argument order. Call
14680 expand_psymtab.
14681 (new_psymtab): Set legacy_expand_psymtab.
14682 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14683 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14684 expand_psymtab.
14685 (dwarf2_psymtab::expand_psymtab): Rename from
14686 psymtab_to_symtab_1. Call expand_psymtab.
14687 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14688 (dbx_end_psymtab): Likewise.
14689 (dbx_psymtab_to_symtab_1): Change argument order. Call
14690 expand_psymtab.
14691 (dbx_read_symtab): Call expand_psymtab.
14692 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14693 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14694 (ctf_psymtab::read_symtab): Call expand_psymtab.
14695
14696 2020-01-26 Tom Tromey <tom@tromey.com>
14697
14698 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14699 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14700 messages.
14701 * mdebugread.c (mdebug_read_symtab): Remove prints.
14702 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14703 assert.
14704 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14705
14706 2020-01-26 Tom Tromey <tom@tromey.com>
14707
14708 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14709 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14710 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14711 legacy_symtab.
14712 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14713 * psymtab.c (psymtab_to_symtab): Call method.
14714 (dump_psymtab): Update.
14715 * psympriv.h (struct partial_symtab): Add virtual destructor.
14716 <read_symtab>: New method.
14717 (struct legacy_symtab): New.
14718 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14719 (struct pst_map) <pst>: Now a legacy_psymtab.
14720 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14721 (new_psymtab): Use legacy_psymtab.
14722 * dwarf2read.h (struct dwarf2_psymtab): New.
14723 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14724 * dwarf2read.c (dwarf2_create_include_psymtab)
14725 (dwarf2_build_include_psymtabs, create_type_unit_group)
14726 (create_partial_symtab, process_psymtab_comp_unit_reader)
14727 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14728 (set_partial_user): Use dwarf2_psymtab.
14729 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14730 (psymtab_to_symtab_1, process_full_comp_unit)
14731 (process_full_type_unit, dwarf2_ranges_read)
14732 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14733 (dwarf_decode_lines): Use dwarf2_psymtab.
14734 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14735 (add_address_entry_worker, write_one_signatured_type)
14736 (recursively_count_psymbols, recursively_write_psymbols)
14737 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14738 (write_debug_names): Likewise.
14739 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14740 <pst>: Now a legacy_psymtab.
14741 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14742 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14743 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14744 * ctfread.c (struct ctf_psymtab): New.
14745 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14746 ctf_psymtab.
14747 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14748 (create_partial_symtab): Return a ctf_psymtab.
14749 (scan_partial_symbols): Update.
14750
14751 2020-01-26 Tom Tromey <tom@tromey.com>
14752
14753 * xcoffread.c (xcoff_start_psymtab): Use new.
14754 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14755 renamed from start_psymtab_common.
14756 * psympriv.h (struct partial_symtab): Add new constructor.
14757 (start_psymtab_common): Don't declare.
14758 * mdebugread.c (parse_partial_symbols): Use new.
14759 * dwarf2read.c (create_partial_symtab): Use new.
14760 * dbxread.c (start_psymtab): Use new.
14761 * ctfread.c (create_partial_symtab): Use new.
14762
14763 2020-01-26 Tom Tromey <tom@tromey.com>
14764
14765 * xcoffread.c (xcoff_end_psymtab): Use new.
14766 * psymtab.c (start_psymtab_common): Use new.
14767 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14768 Update.
14769 * psympriv.h (struct partial_symtab): Add parameters to
14770 constructor. Don't inline.
14771 (allocate_psymtab): Don't declare.
14772 * mdebugread.c (new_psymtab): Use new.
14773 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14774 * dbxread.c (dbx_end_psymtab): Use new.
14775
14776 2020-01-26 Tom Tromey <tom@tromey.com>
14777
14778 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14779 allocate_psymtab. Update documentation.
14780 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14781 allocate_psymtab. Do not use new.
14782 (allocate_psymtab): Use new. Update.
14783
14784 2020-01-26 Tom Tromey <tom@tromey.com>
14785
14786 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14787 * psymtab.c (psym_print_stats): Update.
14788 * psympriv.h (struct partial_symtab) <readin,
14789 psymtabs_addrmap_supported, anonymous>: Now bool.
14790 * mdebugread.c (psymtab_to_symtab_1): Update.
14791 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14792 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14793 (process_full_comp_unit, process_full_type_unit): Update.
14794 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14795 * ctfread.c (psymtab_to_symtab): Update.
14796
14797 2020-01-26 Tom Tromey <tom@tromey.com>
14798
14799 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14800 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14801 * psymtab.c (psymtab_storage): Delete psymtabs.
14802 (psymtab_storage::allocate_psymtab): Use new.
14803 (psymtab_storage::discard_psymtab): Use delete.
14804 * psympriv.h (struct partial_symtab): Add constructor and
14805 initializers.
14806
14807 2020-01-26 Tom Tromey <tom@tromey.com>
14808
14809 * machoread.c: Do not include psympriv.h.
14810
14811 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14812
14813 * NEWS: Mention the new option and the set/show commands.
14814
14815 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14816
14817 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14818 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14819 (validate_exec_file): New variables, enums, functions.
14820 (exec_file_locate_attach, print_section_info): Style the filenames.
14821 (_initialize_exec): Install show_exec_file_mismatch_command and
14822 set_exec_file_mismatch_command.
14823 * gdbcore.h (validate_exec_file): Declare.
14824 * infcmd.c (attach_command): Call validate_exec_file.
14825 * remote.c ( remote_target::remote_add_inferior): Likewise.
14826
14827 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14828
14829 * frame.c (find_frame_sal): Move call to get_next_frame into more
14830 inner scope.
14831 * inline-frame.c (inilne_state) <inline_state>: Update argument
14832 types.
14833 (inilne_state) <skipped_symbol>: Rename to...
14834 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14835 (skip_inline_frames): Build vector of skipped symbols and use this
14836 to reate the inline_state.
14837 (inline_skipped_symbol): Add a comment and some assertions, fetch
14838 skipped symbol from the list.
14839
14840 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14841
14842 * buildsym.c (lte_is_less_than): Delete.
14843 (buildsym_compunit::end_symtab_with_blockvector): Create local
14844 lambda function to sort line table entries, and use
14845 std::stable_sort instead of std::sort.
14846 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14847 markers when looking for a previous line.
14848
14849 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14850
14851 * dwarf2read.c (lnp_state_machine::record_line): Include
14852 end_sequence parameter in debug print out. Record the line if we
14853 are at an end_sequence marker even if it's not the start of a
14854 statement.
14855 * symmisc.c (maintenance_print_one_line_table): Print end of
14856 sequence markers with 'END' not '0'.
14857
14858 2020-01-24 Pedro Alves <palves@redhat.com>
14859
14860 PR gdb/25410
14861 * thread.c (scoped_restore_current_thread::restore): Use
14862 switch_to_inferior_no_thread.
14863 * exec.c: Include "progspace-and-thread.h".
14864 (add_target_sections, remove_target_sections):
14865 scoped_restore_current_pspace_and_thread instead of
14866 scoped_restore_current_thread.
14867 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14868 and aspace to the inferior before calling clone_program_space.
14869 Remove stale comment.
14870
14871 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14872
14873 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14874 (arm_netbsd_nat_target::fetch_registers): ...this.
14875 (arm_nbsd_nat_target::store_registers): Rename to...
14876 (arm_netbsd_nat_target::store_registers): ...this.
14877
14878 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14879
14880 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14881 register_t.
14882
14883 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14884
14885 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14886 Update comment.
14887 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14888 Likewise.
14889 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14890 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14891 the correct replacement (iterate_over_regset_sections).
14892 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14893 Update comment.
14894
14895 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14896
14897 PR gdb/23718
14898 * gdb/python/python.c (execute_gdb_command): Call
14899 async_enable_stdin in catch block.
14900
14901 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14902
14903 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14904 SWITCH_THRU_ALL_UIS.
14905
14906 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14907
14908 PR tui/9765
14909 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14910 comment, add extra parameter, and update to store previous symbol
14911 when appropriate.
14912 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14913 add extra parameter.
14914 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14915 remove unneeded parameter, add try/catch around gdb_print_insn,
14916 rewrite to add items to asm_lines vector.
14917 (tui_find_backward_disassembly_start_address): New function.
14918 (tui_find_disassembly_address): Updated throughout.
14919 (tui_disasm_window::set_contents): Update for changes to
14920 tui_disassemble.
14921 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14922 number of lines to scroll.
14923
14924 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14925
14926 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14927 (SECT_OFF_DATA): Likewise.
14928 (SECT_OFF_RODATA): Likewise.
14929 (SECT_OFF_TEXT): Likewise.
14930 (SECT_OFF_BSS): Likewise.
14931 (struct objfile) <text_section_offset, data_section_offset>: New
14932 methods.
14933 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14934 objfile::text_section_offset.
14935 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14936 * coffread.c (coff_symtab_read): Likewise.
14937 (enter_linenos): Likewise.
14938 (process_coff_symbol): Likewise.
14939 * ctfread.c (get_objfile_text_range): Likewise.
14940 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14941 Use objfile::data_section_offset.
14942 * dwarf2-frame.c (execute_cfa_program): Use
14943 objfile::text_section_offset.
14944 (dwarf2_frame_find_fde): Likewise.
14945 * dwarf2read.c (create_addrmap_from_index): Likewise.
14946 (create_addrmap_from_aranges): Likewise.
14947 (dw2_find_pc_sect_compunit_symtab): Likewise.
14948 (process_psymtab_comp_unit_reader): Likewise.
14949 (add_partial_symbol): Likewise.
14950 (add_partial_subprogram): Likewise.
14951 (process_full_comp_unit): Likewise.
14952 (read_file_scope): Likewise.
14953 (read_func_scope): Likewise.
14954 (read_lexical_block_scope): Likewise.
14955 (read_call_site_scope): Likewise.
14956 (dwarf2_rnglists_process): Likewise.
14957 (dwarf2_ranges_process): Likewise.
14958 (dwarf2_ranges_read): Likewise.
14959 (dwarf_decode_lines_1): Likewise.
14960 (new_symbol): Likewise.
14961 (dwarf2_fetch_die_loc_sect_off): Likewise.
14962 (dwarf2_per_cu_text_offset): Likewise.
14963 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14964 * hppa-tdep.c (read_unwind_info): Likewise.
14965 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14966 * psympriv.h (struct partial_symtab): Likewise.
14967 * psymtab.c (find_pc_sect_psymtab): Likewise.
14968 * solib-svr4.c (enable_break): Likewise.
14969 * stap-probe.c (relocate_address): Use
14970 objfile::data_section_offset.
14971 * xcoffread.c (enter_line_range): Use
14972 objfile::text_section_offset.
14973 (read_xcoff_symtab): Likewise.
14974
14975 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14976
14977 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14978 declaration to narrower scopes.
14979
14980 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14981
14982 * darwin-nat.h (struct darwin_exception_msg, enum
14983 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14984 Move up.
14985 (class darwin_nat_target) <wait_1, check_new_threads,
14986 decode_exception_message, decode_message, stop_inferior,
14987 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14988 * darwin-nat.c (darwin_check_new_threads): Rename to...
14989 (darwin_nat_target::check_new_threads): ... this.
14990 (darwin_suspend_inferior_it): Remove.
14991 (darwin_decode_exception_message): Rename to...
14992 (darwin_nat_target::decode_exception_message): ... this.
14993 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14994 (darwin_decode_message): Rename to...
14995 (darwin_nat_target::decode_message): ... this.
14996 (cancel_breakpoint): Rename to...
14997 (darwin_nat_target::cancel_breakpoint): ... this.
14998 (darwin_wait): Rename to...
14999 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15000 instead of iterate_over_inferiors.
15001 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15002 (darwin_stop_inferior): Rename to...
15003 (darwin_nat_target::stop_inferior): ... this.
15004 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15005 (darwin_init_thread_list): Rename to...
15006 (darwin_nat_target::init_thread_list): ... this.
15007 (darwin_ptrace_him): Rename to...
15008 (darwin_nat_target::ptrace_him): ... this.
15009 (darwin_nat_target::create_inferior): Pass lambda function to
15010 fork_inferior.
15011 (darwin_nat_target::detach): Call stop_inferior instead of
15012 darwin_stop_inferior.
15013 * fork-inferior.h (fork_inferior): Change init_trace_fun
15014 parameter to gdb::function_view.
15015 * fork-inferior.c (fork_inferior): Likewise.
15016
15017 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15018
15019 * i386-cygwin-tdep.c (core_process_module_section): Update.
15020 * windows-nat.c (struct lm_info_windows): Add text_offset.
15021 (windows_xfer_shared_libraries): Update.
15022 * windows-tdep.c (windows_xfer_shared_library):
15023 Add text_offset_cached argument.
15024 * windows-tdep.h (windows_xfer_shared_library): Update.
15025
15026 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15027
15028 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15029
15030 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15031
15032 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15033 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15034 replace with range-based for.
15035 (gdbsim_interrupt_inferior): Remove.
15036 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15037 with a range-based for. Inline code from
15038 gdbsim_interrupt_inferior.
15039
15040 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15041
15042 * infrun.c (proceed): Fix indentation.
15043
15044 2020-01-21 Tom Tromey <tromey@adacore.com>
15045
15046 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15047 * python/python.c (python_extension_ops): Update.
15048 (gdbpy_colorize): New function.
15049 * python/lib/gdb/__init__.py (colorize): New function.
15050 * extension.h (ext_lang_colorize): Declare.
15051 * extension.c (ext_lang_colorize): New function.
15052 * extension-priv.h (struct extension_language_ops) <colorize>: New
15053 member.
15054 * cli/cli-style.c (_initialize_cli_style): Update help text.
15055
15056 2020-01-21 Luis Machado <luis.machado@linaro.org>
15057
15058 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15059 <cond>: Change type to bool.
15060 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15061 (aarch64_displaced_step_cb): Likewise.
15062 (aarch64_displaced_step_tb): Likewise.
15063
15064 2020-01-21 Luis Machado <luis.machado@linaro.org>
15065
15066 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15067 output.
15068
15069 2020-01-21 Luis Machado <luis.machado@linaro.org>
15070
15071 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15072 <pc_adjust>: Adjust the documentation.
15073 (aarch64_displaced_step_fixup): Check if PC really moved before
15074 adjusting it.
15075
15076 2020-01-19 Tom Tromey <tom@tromey.com>
15077
15078 * disasm.c (~gdb_disassembler): New destructor.
15079 (gdb_buffered_insn_length): Call disassemble_free_target.
15080 * disasm.h (class gdb_disassembler): Declare destructor. Use
15081 DISABLE_COPY_AND_ASSIGN.
15082
15083 2020-01-19 Tom Tromey <tom@tromey.com>
15084
15085 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15086 (die_reader_func_ftype): Remove.
15087 (cutu_reader): New class.
15088 (dw2_get_file_names_reader): Remove "data" parameter.
15089 (dw2_get_file_names): Use cutu_reader.
15090 (create_debug_type_hash_table): Update.
15091 (read_cutu_die_from_dwo): Update comment.
15092 (lookup_dwo_unit): Add dwo_name parameter.
15093 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15094 die_reader_func_ftype and data parameters.
15095 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15096 Remove die_reader_func_ftype and data parameters.
15097 (~cutu_reader): New; from init_cutu_and_read_dies.
15098 (cutu_reader::cutu_reader): Rename from
15099 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15100 and data parameters.
15101 (init_cutu_and_read_dies_simple): Remove.
15102 (struct process_psymtab_comp_unit_data): Remove.
15103 (process_psymtab_comp_unit_reader): Remove data parameter; add
15104 want_partial_unit and pretend_language parameters.
15105 (process_psymtab_comp_unit): Use cutu_reader.
15106 (build_type_psymtabs_reader): Remove data parameter.
15107 (build_type_psymtabs_1): Use cutu_reader.
15108 (process_skeletonless_type_unit): Likewise.
15109 (load_partial_comp_unit_reader): Remove.
15110 (load_partial_comp_unit): Use cutu_reader.
15111 (load_full_comp_unit_reader): Remove.
15112 (load_full_comp_unit): Use cutu_reader.
15113 (struct create_dwo_cu_data): Remove.
15114 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15115 dwo_unit parameters.
15116 (create_cus_hash_table): Use cutu_reader.
15117 (struct dwarf2_read_addr_index_data): Remove.
15118 (dwarf2_read_addr_index_reader): Remove.
15119 (dwarf2_read_addr_index): Use cutu_reader.
15120 (read_signatured_type_reader): Remove.
15121 (read_signatured_type): Use cutu_reader.
15122
15123 2020-01-19 Tom Tromey <tom@tromey.com>
15124
15125 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15126 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15127 (tui_wrefresh): Declare.
15128 * tui/tui-wingeneral.c (suppress_output): New global.
15129 (tui_suppress_output, ~tui_suppress_output): New constructor and
15130 destructor.
15131 (tui_wrefresh): New function.
15132 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15133 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15134 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15135 method.
15136 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15137 tui_wrefresh.
15138 (tui_data_window::no_refresh): New method.
15139 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15140 (tui_reg_command): Use tui_suppress_output
15141 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15142 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15143 method.
15144 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15145
15146 2020-01-19 Tom Tromey <tom@tromey.com>
15147
15148 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15149 Handle case where symtab is null.
15150
15151 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15152
15153 * linux-fork.c (one_fork_p): Simplify.
15154
15155 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15156
15157 * top.c (struct qt_args): Remove.
15158 (kill_or_detach): Change return type to void, replace `void *`
15159 parameter with a proper one.
15160 (print_inferior_quit_action): Likewise.
15161 (quit_confirm): Use range-based for loop to iterate over inferiors.
15162 (quit_force): Likewise.
15163
15164 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15165
15166 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15167 `void *` parameter with proper parameters.
15168 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15169 (print_one_inferior): Change return type to void, replace `void *`
15170 parameter with proper parameters.
15171 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15172 inferiors.
15173 (get_other_inferior): Remove.
15174 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15175 inferiors.
15176
15177 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15178
15179 * mi/mi-interp.c (report_initial_inferior): Remove.
15180 (mi_interp::init): Use range-based for to iterate over inferiors.
15181
15182 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15183
15184 * python/py-inferior.c (build_inferior_list): Remove.
15185 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15186
15187 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15188
15189 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15190 (btrace_stitch_trace): Likewise.
15191 * charset.c (intermediate_encoding): Likewise (vaild).
15192 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15193 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15194 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15195
15196 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15197
15198 * windows-tdep.c (windows_get_tlb_type):
15199 Add rtl_user_process_parameters type.
15200
15201 2020-01-16 Pedro Alves <palves@redhat.com>
15202 Norbert Lange <nolange79@gmail.com>
15203
15204 PR build/24805
15205 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15206 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15207 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15208 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15209 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15210 (ps_plog): Redeclare exported functions with default visibility.
15211
15212 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15213
15214 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15215 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15216
15217 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15218
15219 * infcmd.c (post_create_inferior): Use get_thread_regcache
15220 instead of get_current_regcache.
15221
15222 2020-01-14 Tom Tromey <tom@tromey.com>
15223
15224 PR symtab/12535:
15225 * python/python.c (gdbpy_decode_line): Treat empty string the same
15226 as no argument.
15227
15228 2020-01-14 Tom Tromey <tom@tromey.com>
15229
15230 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15231
15232 2020-01-14 Tom Tromey <tom@tromey.com>
15233
15234 * nat/linux-btrace.c: Don't include <config.h>.
15235 * nat/linux-ptrace.c: Don't include <config.h>.
15236 * nat/x86-linux-dregs.c: Don't include <config.h>.
15237
15238 2020-01-14 Tom Tromey <tom@tromey.com>
15239
15240 * configure: Rebuild.
15241 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15242
15243 2020-01-14 Tom Tromey <tom@tromey.com>
15244
15245 * nat/x86-linux-dregs.c: Include configh.h.
15246 * nat/linux-ptrace.c: Include configh.h.
15247 * nat/linux-btrace.c: Include configh.h.
15248 * defs.h: Include config.h, bfd.h.
15249 * configure.ac: Don't source common.host.
15250 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15251 * configure: Rebuild.
15252 * acinclude.m4: Update path.
15253 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15254 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15255 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15256 (CLIBS): Add LIBSUPPORT.
15257 (CDEPS): Likewise.
15258 (COMMON_SFILES): Remove gdbsupport files.
15259 (HFILES_NO_SRCDIR): Likewise.
15260 (stamp-version): Update path to create-version.sh.
15261 (ALLDEPFILES): Remove gdbsupport files.
15262
15263 2020-01-14 Tom Tromey <tom@tromey.com>
15264
15265 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15266 USE_WIN32API when needed.
15267 * configure.ac (USE_WIN32API): Don't define.
15268 (WIN32LIBS): Use WIN32APILIBS.
15269 * configure: Rebuild.
15270
15271 2020-01-14 Tom Tromey <tom@tromey.com>
15272
15273 * configure: Rebuild.
15274 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15275
15276 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15277
15278 * skip.c (skip_function_command): Make skip w/o arguments use the
15279 name of the inlined function if pc is inside any inlined function.
15280
15281 2020-01-14 Luis Machado <luis.machado@linaro.org>
15282
15283 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15284 * infrun.c (resume_1): Likewise.
15285 (handle_inferior_event): Remove stale comment.
15286 * linux-nat.c (linux_nat_target::resume): Update comments.
15287 (save_stop_reason): Likewise.
15288 (linux_nat_filter_event): Likewise.
15289 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15290
15291 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15292
15293 * elfread.c (record_minimal_symbol): Set section index to 0 for
15294 non-allocatable sections.
15295
15296
15297 2020-01-13 Ali Tamur <tamur@google.com>
15298
15299 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15300 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15301 to gdb::optional. Update comments.
15302 (dwo_file): Update comments.
15303 (read_attribute): Update API to take an additional out parameter,
15304 need_reprocess. This is used to mark attributes that need other
15305 attributes (e.g. str_offsets_base) for correct computation which may not
15306 have been read yet.
15307 (read_attribute_reprocess): New function declaration.
15308 (read_addr_index): Likewise.
15309 (read_dwo_str_index): Likewise.
15310 (read_stub_str_index): Likewise.
15311 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15312 (lookup_addr_base): New function definition.
15313 (lookup_ranges_base): Likewise.
15314 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15315 lookup_ranges_base.
15316 (init_cutu_and_read_dies): Update comments.
15317 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15318 unit. This is used to inherit parent's str_offsets_base and addr_base.
15319 Update comments.
15320 (init_cutu_and_read_dies_simple): Reflect API changes.
15321 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15322 (create_cus_hash_table): Change API to take parent compile unit.
15323 Reflect API changes.
15324 (open_and_init_dwo_file): Reflect API changes.
15325 (dwarf2_get_pc_bounds): Update comments.
15326 (dwarf2_record_block_ranges): Likewise.
15327 (read_full_die_1): Change implementation to reprocess attributes that
15328 need str_offsets_base and addr_base.
15329 (partial_die_info::read): Likewise.
15330 (read_attribute_reprocess): New function definition.
15331 (read_attribute_value): Change API to take an additional out parameter,
15332 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15333 when a non-dwo compile unit has index based attributes.
15334 (read_attribute): Reflect API changes.
15335 (read_addr_index_1): Reflect API changes. Update comments.
15336 (dwarf2_read_addr_index_data): Reflect API changes.
15337 (dwarf2_read_addr_index): Likewise.
15338 (read_str_index): Change API and implementation. This becomes a helper
15339 to be used by the new string index related methods. Update error
15340 message and comments.
15341 (read_dwo_str_index): New function definition.
15342 (read_stub_str_index): Likewise.
15343 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15344 * symfile.h (dwarf2_debug_sections): Likewise.
15345 * xcoffread.c (dwarf2_debug_sections): Likewise.
15346
15347 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15348
15349 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15350 core_reg_sect type to gdb_byte *.
15351 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15352 * cris-tdep.c (fetch_core_registers): Likewise.
15353 * corelow.c (core_target::get_core_register_section): Change
15354 type of `contents` to gdb::byte_vector.
15355
15356 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15357
15358 * tui/tui-wingeneral.c (box_win): Position the title in the center
15359 of the border.
15360
15361 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15362
15363 * corelow.c (core_target::get_core_register_section): Use
15364 std::vector instead of alloca.
15365
15366 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15367
15368 * warning.m4: Add -Wmissing-declarations to build_warnings.
15369 * configure: Re-generate.
15370
15371 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15372
15373 * python/python.c (init__gdb_module): Add declaration.
15374
15375 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15376
15377 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15378 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15379 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15380 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15381 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15382 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15383 * ada-exp.y (_initialize_ada_exp): Add declaration.
15384 * ada-lang.c (_initialize_ada_language): Add declaration.
15385 * ada-tasks.c (_initialize_tasks): Add declaration.
15386 * agent.c (_initialize_agent): Add declaration.
15387 * aix-thread.c (_initialize_aix_thread): Add declaration.
15388 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15389 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15390 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15391 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15392 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15393 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15394 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15395 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15396 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15397 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15398 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15399 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15400 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15401 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15402 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15403 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15404 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15405 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15406 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15407 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15408 * annotate.c (_initialize_annotate): Add declaration.
15409 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15410 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15411 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15412 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15413 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15414 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15415 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15416 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15417 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15418 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15419 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15420 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15421 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15422 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15423 * auto-load.c (_initialize_auto_load): Add declaration.
15424 * auxv.c (_initialize_auxv): Add declaration.
15425 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15426 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15427 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15428 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15429 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15430 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15431 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15432 * breakpoint.c (_initialize_breakpoint): Add declaration.
15433 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15434 * btrace.c (_initialize_btrace): Add declaration.
15435 * charset.c (_initialize_charset): Add declaration.
15436 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15437 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15438 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15439 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15440 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15441 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15442 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15443 * coffread.c (_initialize_coffread): Add declaration.
15444 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15445 * compile/compile.c (_initialize_compile): Add declaration.
15446 * complaints.c (_initialize_complaints): Add declaration.
15447 * completer.c (_initialize_completer): Add declaration.
15448 * copying.c (_initialize_copying): Add declaration.
15449 * corefile.c (_initialize_core): Add declaration.
15450 * corelow.c (_initialize_corelow): Add declaration.
15451 * cp-abi.c (_initialize_cp_abi): Add declaration.
15452 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15453 * cp-support.c (_initialize_cp_support): Add declaration.
15454 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15455 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15456 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15457 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15458 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15459 * ctfread.c (_initialize_ctfread): Add declaration.
15460 * d-lang.c (_initialize_d_language): Add declaration.
15461 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15462 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15463 * dbxread.c (_initialize_dbxread): Add declaration.
15464 * dcache.c (_initialize_dcache): Add declaration.
15465 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15466 * disasm.c (_initialize_disasm): Add declaration.
15467 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15468 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15469 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15470 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15471 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15472 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15473 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15474 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15475 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15476 * elfread.c (_initialize_elfread): Add declaration.
15477 * exec.c (_initialize_exec): Add declaration.
15478 * extension.c (_initialize_extension): Add declaration.
15479 * f-lang.c (_initialize_f_language): Add declaration.
15480 * f-valprint.c (_initialize_f_valprint): Add declaration.
15481 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15482 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15483 * filesystem.c (_initialize_filesystem): Add declaration.
15484 * findcmd.c (_initialize_mem_search): Add declaration.
15485 * findvar.c (_initialize_findvar): Add declaration.
15486 * fork-child.c (_initialize_fork_child): Add declaration.
15487 * frame-base.c (_initialize_frame_base): Add declaration.
15488 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15489 * frame.c (_initialize_frame): Add declaration.
15490 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15491 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15492 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15493 * gcore.c (_initialize_gcore): Add declaration.
15494 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15495 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15496 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15497 * gdbarch.c (_initialize_gdbarch): Add declaration.
15498 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15499 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15500 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15501 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15502 * go-lang.c (_initialize_go_language): Add declaration.
15503 * go32-nat.c (_initialize_go32_nat): Add declaration.
15504 * guile/guile.c (_initialize_guile): Add declaration.
15505 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15506 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15507 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15508 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15509 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15510 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15511 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15512 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15513 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15514 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15515 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15516 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15517 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15518 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15519 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15520 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15521 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15522 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15523 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15524 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15525 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15526 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15527 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15528 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15529 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15530 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15531 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15532 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15533 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15534 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15535 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15536 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15537 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15538 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15539 * infcall.c (_initialize_infcall): Add declaration.
15540 * infcmd.c (_initialize_infcmd): Add declaration.
15541 * inflow.c (_initialize_inflow): Add declaration.
15542 * infrun.c (_initialize_infrun): Add declaration.
15543 * interps.c (_initialize_interpreter): Add declaration.
15544 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15545 * jit.c (_initialize_jit): Add declaration.
15546 * language.c (_initialize_language): Add declaration.
15547 * linux-fork.c (_initialize_linux_fork): Add declaration.
15548 * linux-nat.c (_initialize_linux_nat): Add declaration.
15549 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15550 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15551 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15552 * m2-lang.c (_initialize_m2_language): Add declaration.
15553 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15554 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15555 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15556 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15557 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15558 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15559 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15560 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15561 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15562 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15563 * machoread.c (_initialize_machoread): Add declaration.
15564 * macrocmd.c (_initialize_macrocmd): Add declaration.
15565 * macroscope.c (_initialize_macroscope): Add declaration.
15566 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15567 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15568 * maint.c (_initialize_maint_cmds): Add declaration.
15569 * mdebugread.c (_initialize_mdebugread): Add declaration.
15570 * memattr.c (_initialize_mem): Add declaration.
15571 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15572 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15573 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15574 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15575 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15576 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15577 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15578 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15579 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15580 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15581 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15582 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15583 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15584 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15585 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15586 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15587 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15588 * mipsread.c (_initialize_mipsread): Add declaration.
15589 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15590 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15591 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15592 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15593 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15594 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15595 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15596 * nto-procfs.c (_initialize_procfs): Add declaration.
15597 * objc-lang.c (_initialize_objc_language): Add declaration.
15598 * observable.c (_initialize_observer): Add declaration.
15599 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15600 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15601 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15602 * osabi.c (_initialize_gdb_osabi): Add declaration.
15603 * osdata.c (_initialize_osdata): Add declaration.
15604 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15605 * parse.c (_initialize_parse): Add declaration.
15606 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15607 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15608 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15609 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15610 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15611 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15612 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15613 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15614 * printcmd.c (_initialize_printcmd): Add declaration.
15615 * probe.c (_initialize_probe): Add declaration.
15616 * proc-api.c (_initialize_proc_api): Add declaration.
15617 * proc-events.c (_initialize_proc_events): Add declaration.
15618 * proc-service.c (_initialize_proc_service): Add declaration.
15619 * procfs.c (_initialize_procfs): Add declaration.
15620 * producer.c (_initialize_producer): Add declaration.
15621 * psymtab.c (_initialize_psymtab): Add declaration.
15622 * python/python.c (_initialize_python): Add declaration.
15623 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15624 * record-btrace.c (_initialize_record_btrace): Add declaration.
15625 * record-full.c (_initialize_record_full): Add declaration.
15626 * record.c (_initialize_record): Add declaration.
15627 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15628 * regcache.c (_initialize_regcache): Add declaration.
15629 * reggroups.c (_initialize_reggroup): Add declaration.
15630 * remote-notif.c (_initialize_notif): Add declaration.
15631 * remote-sim.c (_initialize_remote_sim): Add declaration.
15632 * remote.c (_initialize_remote): Add declaration.
15633 * reverse.c (_initialize_reverse): Add declaration.
15634 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15635 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15636 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15637 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15638 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15639 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15640 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15641 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15642 Add declaration.
15643 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15644 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15645 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15646 * rust-exp.y (_initialize_rust_exp): Add declaration.
15647 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15648 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15649 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15650 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15651 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15652 * score-tdep.c (_initialize_score_tdep): Add declaration.
15653 * ser-go32.c (_initialize_ser_dos): Add declaration.
15654 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15655 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15656 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15657 * ser-uds.c (_initialize_ser_socket): Add declaration.
15658 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15659 * serial.c (_initialize_serial): Add declaration.
15660 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15661 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15662 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15663 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15664 * skip.c (_initialize_step_skip): Add declaration.
15665 * sol-thread.c (_initialize_sol_thread): Add declaration.
15666 * solib-aix.c (_initialize_solib_aix): Add declaration.
15667 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15668 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15669 * solib-frv.c (_initialize_frv_solib): Add declaration.
15670 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15671 * solib-target.c (_initialize_solib_target): Add declaration.
15672 * solib.c (_initialize_solib): Add declaration.
15673 * source-cache.c (_initialize_source_cache): Add declaration.
15674 * source.c (_initialize_source): Add declaration.
15675 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15676 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15677 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15678 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15679 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15680 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15681 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15682 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15683 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15684 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15685 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15686 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15687 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15688 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15689 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15690 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15691 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15692 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15693 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15694 * stabsread.c (_initialize_stabsread): Add declaration.
15695 * stack.c (_initialize_stack): Add declaration.
15696 * stap-probe.c (_initialize_stap_probe): Add declaration.
15697 * std-regs.c (_initialize_frame_reg): Add declaration.
15698 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15699 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15700 * symfile.c (_initialize_symfile): Add declaration.
15701 * symmisc.c (_initialize_symmisc): Add declaration.
15702 * symtab.c (_initialize_symtab): Add declaration.
15703 * target.c (_initialize_target): Add declaration.
15704 * target-connection.c (_initialize_target_connection): Add
15705 declaration.
15706 * target-dcache.c (_initialize_target_dcache): Add declaration.
15707 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15708 * thread.c (_initialize_thread): Add declaration.
15709 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15710 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15711 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15712 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15713 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15714 * tracectf.c (_initialize_ctf): Add declaration.
15715 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15716 * tracefile.c (_initialize_tracefile): Add declaration.
15717 * tracepoint.c (_initialize_tracepoint): Add declaration.
15718 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15719 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15720 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15721 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15722 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15723 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15724 * tui/tui.c (_initialize_tui): Add declaration.
15725 * typeprint.c (_initialize_typeprint): Add declaration.
15726 * ui-style.c (_initialize_ui_style): Add declaration.
15727 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15728 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15729 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15730 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15731 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15732 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15733 * unittests/filtered_iterator-selftests.c
15734 (_initialize_filtered_iterator_selftests): Add declaration.
15735 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15736 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15737 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15738 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15739 * unittests/main-thread-selftests.c
15740 (_initialize_main_thread_selftests): Add declaration.
15741 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15742 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15743 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15744 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15745 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15746 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15747 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15748 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15749 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15750 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15751 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15752 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15753 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15754 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15755 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15756 declaration.
15757 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15758 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15759 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15760 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15761 * user-regs.c (_initialize_user_regs): Add declaration.
15762 * utils.c (_initialize_utils): Add declaration.
15763 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15764 * valops.c (_initialize_valops): Add declaration.
15765 * valprint.c (_initialize_valprint): Add declaration.
15766 * value.c (_initialize_values): Add declaration.
15767 * varobj.c (_initialize_varobj): Add declaration.
15768 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15769 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15770 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15771 * windows-nat.c (_initialize_windows_nat): Add declaration.
15772 (_initialize_check_for_gdb_ini): Add declaration.
15773 (_initialize_loadable): Add declaration.
15774 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15775 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15776 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15777 * xcoffread.c (_initialize_xcoffread): Add declaration.
15778 * xml-support.c (_initialize_xml_support): Add declaration.
15779 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15780 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15781 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15782 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15783
15784 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15785
15786 * regformats/regdat.sh: Generate declaration for init function.
15787
15788 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15789
15790 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15791 up.
15792 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15793 close_one_inferior>: New methods.
15794 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15795 pass down target to find_inferior_pid.
15796 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15797 Pass down target to find_inferior_ptid.
15798 (gdbsim_target::create_inferior): Pass down target to
15799 add_thread_silent.
15800 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15801 target down to find_inferior_ptid and switch_to_thread.
15802 (gdbsim_target::close): Update to call close_one_inferior.
15803 (struct resume_data): Remove.
15804 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15805 directly, rather than through a void pointer.
15806 (gdbsim_target::resume): Update to call resume_one_inferior.
15807
15808 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15809
15810 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15811
15812 2020-01-12 Pedro Alves <palves@redhat.com>
15813
15814 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15815 directly for the current inferior instead of
15816 discard_all_inferiors.
15817 (discard_all_inferiors): Delete.
15818
15819 2020-01-11 Tom Tromey <tom@tromey.com>
15820
15821 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15822 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15823 deprecated_safe_get_selected_frame.
15824
15825 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15826
15827 * inferior.c (print_inferior): Switch inferior before printing it.
15828
15829 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15830 Pedro Alves <palves@redhat.com>
15831
15832 * progspace-and-thread.c (switch_to_program_space_and_thread):
15833 Assert there's an inferior for PSPACE. Use
15834 switch_to_inferior_no_thread to switch the inferior too.
15835 * progspace.c (program_space::~program_space): Call
15836 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15837 (program_space::free_all_objfiles): Don't call clear_symtab_users
15838 here.
15839 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15840
15841 2020-01-10 Pedro Alves <palves@redhat.com>
15842
15843 * NEWS: Mention multi-target debugging, "info connections", and
15844 "add-inferior -no-connection".
15845
15846 2020-01-10 Pedro Alves <palves@redhat.com>
15847
15848 * infrun.c: Include "target-connection.h".
15849 (check_multi_target_resumption): New.
15850 (proceed): Call it.
15851 * target-connection.c (make_target_connection_string): Make
15852 extern.
15853 * target-connection.h (make_target_connection_string): Declare.
15854
15855 2020-01-10 Pedro Alves <palves@redhat.com>
15856
15857 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15858 * inferior.c (uiout_field_connection): New function.
15859 (print_inferior): Add new "connection-id" column.
15860 (add_inferior_command): Show connection number/string of added
15861 inferior.
15862 * process-stratum-target.h
15863 (process_stratum_target::connection_string): New virtual method.
15864 (process_stratum_target::connection_number): New field.
15865 * remote.c (remote_target::connection_string): New override.
15866 * target-connection.c: New file.
15867 * target-connection.h: New file.
15868 * target.c (decref_target): Remove process_stratum targets from
15869 the connection list.
15870 (target_stack::push): Add process_stratum targets to the
15871 connection list.
15872
15873 2020-01-10 Pedro Alves <palves@redhat.com>
15874
15875 Revert:
15876 2016-04-12 Pedro Alves <palves@redhat.com>
15877 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15878 Remove references to name.
15879 * serial.h (struct serial) <name>: Delete.
15880
15881 2020-01-10 Pedro Alves <palves@redhat.com>
15882
15883 * gdbarch-selftests.c (register_to_value_test): Remove "target
15884 already pushed" check.
15885
15886 2020-01-10 Pedro Alves <palves@redhat.com>
15887 John Baldwin <jhb@FreeBSD.org>
15888
15889 * aarch64-linux-nat.c
15890 (aarch64_linux_nat_target::thread_architecture): Adjust.
15891 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15892 (task_command_1): Likewise.
15893 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15894 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15895 (aix_thread_target::store_registers)
15896 (aix_thread_target::thread_alive): Adjust.
15897 * amd64-fbsd-tdep.c: Include "inferior.h".
15898 (amd64fbsd_get_thread_local_address): Pass down target.
15899 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15900 thread's gdbarch instead of target_gdbarch.
15901 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15902 get_last_target_status.
15903 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15904 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15905 inferiors.
15906 (update_inserted_breakpoint_locations): Skip if inferiors with no
15907 execution.
15908 (update_global_location_list): When handling moribund locations,
15909 find representative inferior for location's pspace, and use thread
15910 count of its process_stratum target.
15911 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15912 * bsd-uthread.c (bsd_uthread_target::wait): Use
15913 as_process_stratum_target and adjust thread_change_ptid and
15914 add_thread calls.
15915 (bsd_uthread_target::update_thread_list): Use
15916 as_process_stratum_target and adjust find_thread_ptid,
15917 thread_change_ptid and add_thread calls.
15918 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15919 find_thread_ptid call.
15920 * corelow.c (add_to_thread_list): Adjust add_thread call.
15921 (core_target_open): Adjust add_thread_silent and thread_count
15922 calls.
15923 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15924 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15925 * event-top.c (async_disconnect): Pop targets from all inferiors.
15926 * exec.c (add_target_sections): Push exec target on all inferiors
15927 sharing the program space.
15928 (remove_target_sections): Remove the exec target from all
15929 inferiors sharing the program space.
15930 (exec_on_vfork): New.
15931 * exec.h (exec_on_vfork): Declare.
15932 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15933 Pass it down.
15934 (fbsd_nat_target::update_thread_list): Adjust.
15935 (fbsd_nat_target::resume): Adjust.
15936 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15937 down.
15938 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15939 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15940 get_thread_arch_regcache call.
15941 * fork-child.c (gdb_startup_inferior): Pass target down to
15942 startup_inferior and set_executing.
15943 * gdbthread.h (struct process_stratum_target): Forward declare.
15944 (add_thread, add_thread_silent, add_thread_with_info)
15945 (in_thread_list): Add process_stratum_target parameter.
15946 (find_thread_ptid(inferior*, ptid_t)): New overload.
15947 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15948 parameter.
15949 (all_threads()): Delete overload.
15950 (all_threads, all_non_exited_threads): Add process_stratum_target
15951 parameter.
15952 (all_threads_safe): Use brace initialization.
15953 (thread_count): Add process_stratum_target parameter.
15954 (set_resumed, set_running, set_stop_requested, set_executing)
15955 (threads_are_executing, finish_thread_state): Add
15956 process_stratum_target parameter.
15957 (switch_to_thread): Use is_current_thread.
15958 * i386-fbsd-tdep.c: Include "inferior.h".
15959 (i386fbsd_get_thread_local_address): Pass down target.
15960 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15961 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15962 have_inferiors check.
15963 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15964 (inf_ptrace_target::attach): Adjust.
15965 * infcall.c (run_inferior_call): Adjust.
15966 * infcmd.c (run_command_1): Pass target to
15967 scoped_finish_thread_state.
15968 (proceed_thread_callback): Skip inferiors with no execution.
15969 (continue_command): Rename 'all_threads' local to avoid hiding
15970 'all_threads' function. Adjust get_last_target_status call.
15971 (prepare_one_step): Adjust set_running call.
15972 (signal_command): Use user_visible_resume_target. Compare thread
15973 pointers instead of inferior_ptid.
15974 (info_program_command): Adjust to pass down target.
15975 (attach_command): Mark target's 'thread_executing' flag.
15976 (stop_current_target_threads_ns): New, factored out from ...
15977 (interrupt_target_1): ... this. Switch inferior before making
15978 target calls.
15979 * inferior-iter.h
15980 (struct all_inferiors_iterator, struct all_inferiors_range)
15981 (struct all_inferiors_safe_range)
15982 (struct all_non_exited_inferiors_range): Filter on
15983 process_stratum_target too. Remove explicit.
15984 * inferior.c (inferior::inferior): Push dummy target on target
15985 stack.
15986 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15987 Add process_stratum_target parameter, and pass it down.
15988 (have_live_inferiors): Adjust.
15989 (switch_to_inferior_and_push_target): New.
15990 (add_inferior_command, clone_inferior_command): Handle
15991 "-no-connection" parameter. Use
15992 switch_to_inferior_and_push_target.
15993 (_initialize_inferior): Mention "-no-connection" option in
15994 the help of "add-inferior" and "clone-inferior" commands.
15995 * inferior.h: Include "process-stratum-target.h".
15996 (interrupt_target_1): Use bool.
15997 (struct inferior) <push_target, unpush_target, target_is_pushed,
15998 find_target_beneath, top_target, process_target, target_at,
15999 m_stack>: New.
16000 (discard_all_inferiors): Delete.
16001 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16002 (all_inferiors, all_non_exited_inferiors): Add
16003 process_stratum_target parameter.
16004 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16005 (target_last_proc_target): New global.
16006 (follow_fork_inferior): Push target on new inferior. Pass target
16007 to add_thread_silent. Call exec_on_vfork. Handle target's
16008 reference count.
16009 (follow_fork): Adjust get_last_target_status call. Also consider
16010 target.
16011 (follow_exec): Push target on new inferior.
16012 (struct execution_control_state) <target>: New field.
16013 (user_visible_resume_target): New.
16014 (do_target_resume): Call target_async.
16015 (resume_1): Set target's threads_executing flag. Consider resume
16016 target.
16017 (commit_resume_all_targets): New.
16018 (proceed): Also consider resume target. Skip threads of inferiors
16019 with no execution. Commit resumtion in all targets.
16020 (start_remote): Pass current inferior to wait_for_inferior.
16021 (infrun_thread_stop_requested): Consider target as well. Pass
16022 thread_info pointer to clear_inline_frame_state instead of ptid.
16023 (infrun_thread_thread_exit): Consider target as well.
16024 (random_pending_event_thread): New inferior parameter. Use it.
16025 (do_target_wait): Rename to ...
16026 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16027 down.
16028 (threads_are_resumed_pending_p, do_target_wait): New.
16029 (prepare_for_detach): Adjust calls.
16030 (wait_for_inferior): New inferior parameter. Handle it. Use
16031 do_target_wait_1 instead of do_target_wait.
16032 (fetch_inferior_event): Adjust. Switch to representative
16033 inferior. Pass target down.
16034 (set_last_target_status): Add process_stratum_target parameter.
16035 Save target in global.
16036 (get_last_target_status): Add process_stratum_target parameter and
16037 handle it.
16038 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16039 (context_switch): Check inferior_ptid == null_ptid before calling
16040 inferior_thread().
16041 (get_inferior_stop_soon): Pass down target.
16042 (wait_one): Rename to ...
16043 (poll_one_curr_target): ... this.
16044 (struct wait_one_event): New.
16045 (wait_one): New.
16046 (stop_all_threads): Adjust.
16047 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16048 event's target.
16049 (switch_back_to_stepped_thread): Also consider target.
16050 (print_stop_event): Update.
16051 (normal_stop): Update. Also consider the resume target.
16052 * infrun.h (wait_for_inferior): Remove declaration.
16053 (user_visible_resume_target): New declaration.
16054 (get_last_target_status, set_last_target_status): New
16055 process_stratum_target parameter.
16056 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16057 process_stratum_target parameter, and use it.
16058 (clear_inline_frame_state (thread_info*)): New.
16059 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16060 process_stratum_target parameter.
16061 (clear_inline_frame_state (thread_info*)): Declare.
16062 * linux-fork.c (delete_checkpoint_command): Pass target down to
16063 find_thread_ptid.
16064 (checkpoint_command): Adjust.
16065 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16066 instead of just tweaking inferior_ptid.
16067 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16068 (exit_lwp): Pass target down to find_thread_ptid.
16069 (attach_proc_task_lwp_callback): Pass target down to
16070 add_thread/set_running/set_executing.
16071 (linux_nat_target::attach): Pass target down to
16072 thread_change_ptid.
16073 (get_detach_signal): Pass target down to find_thread_ptid.
16074 Consider last target status's target.
16075 (linux_resume_one_lwp_throw, resume_lwp)
16076 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16077 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16078 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16079 (linux_nat_target::async_wait_fd): New.
16080 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16081 target down.
16082 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16083 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16084 * linux-thread-db.c (struct thread_db_info::process_target): New
16085 field.
16086 (add_thread_db_info): Save target.
16087 (get_thread_db_info): New process_stratum_target parameter. Also
16088 match target.
16089 (delete_thread_db_info): New process_stratum_target parameter.
16090 Also match target.
16091 (thread_from_lwp): Adjust to pass down target.
16092 (thread_db_notice_clone): Pass down target.
16093 (check_thread_db_callback): Pass down target.
16094 (try_thread_db_load_1): Always push the thread_db target.
16095 (try_thread_db_load, record_thread): Pass target down.
16096 (thread_db_target::detach): Pass target down. Always unpush the
16097 thread_db target.
16098 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16099 target down. Always unpush the thread_db target.
16100 (find_new_threads_callback, thread_db_find_new_threads_2)
16101 (thread_db_target::update_thread_list): Pass target down.
16102 (thread_db_target::pid_to_str): Pass current inferior down.
16103 (thread_db_target::get_thread_local_address): Pass target down.
16104 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16105 target down.
16106 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16107 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16108 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16109 (procfs_init_inferior): Rename to ...
16110 (procfs_target::procfs_init_inferior): ... this and adjust.
16111 (procfs_target::create_inferior, procfs_notice_thread)
16112 (procfs_do_thread_registers): Adjust.
16113 * ppc-fbsd-tdep.c: Include "inferior.h".
16114 (ppcfbsd_get_thread_local_address): Pass down target.
16115 * proc-service.c (ps_xfer_memory): Switch current inferior and
16116 program space as well.
16117 (get_ps_regcache): Pass target down.
16118 * process-stratum-target.c
16119 (process_stratum_target::thread_address_space)
16120 (process_stratum_target::thread_architecture): Pass target down.
16121 * process-stratum-target.h
16122 (process_stratum_target::threads_executing): New field.
16123 (as_process_stratum_target): New.
16124 * ravenscar-thread.c
16125 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16126 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16127 down.
16128 * record-btrace.c (record_btrace_target::info_record): Adjust.
16129 (record_btrace_target::record_method)
16130 (record_btrace_target::record_is_replaying)
16131 (record_btrace_target::fetch_registers)
16132 (get_thread_current_frame_id, record_btrace_target::resume)
16133 (record_btrace_target::wait, record_btrace_target::stop): Pass
16134 target down.
16135 * record-full.c (record_full_wait_1): Switch to event thread.
16136 Pass target down.
16137 * regcache.c (regcache::regcache)
16138 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16139 process_stratum_target parameter and handle it.
16140 (current_thread_target): New global.
16141 (get_thread_regcache): Add process_stratum_target parameter and
16142 handle it. Switch inferior before calling target method.
16143 (get_thread_regcache): Pass target down.
16144 (get_thread_regcache_for_ptid): Pass target down.
16145 (registers_changed_ptid): Add process_stratum_target parameter and
16146 handle it.
16147 (registers_changed_thread, registers_changed): Pass target down.
16148 (test_get_thread_arch_aspace_regcache): New.
16149 (current_regcache_test): Define a couple local test_target_ops
16150 instances and use them for testing.
16151 (readwrite_regcache): Pass process_stratum_target parameter.
16152 (cooked_read_test, cooked_write_test): Pass mock_target down.
16153 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16154 (get_thread_arch_aspace_regcache): Add process_stratum_target
16155 parameter.
16156 (regcache::target): New method.
16157 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16158 (regcache::registers_changed_ptid): Add process_stratum_target
16159 parameter.
16160 (regcache::m_target): New field.
16161 (registers_changed_ptid): Add process_stratum_target parameter.
16162 * remote.c (remote_state::supports_vCont_probed): New field.
16163 (remote_target::async_wait_fd): New method.
16164 (remote_unpush_and_throw): Add remote_target parameter.
16165 (get_current_remote_target): Adjust.
16166 (remote_target::remote_add_inferior): Push target.
16167 (remote_target::remote_add_thread)
16168 (remote_target::remote_notice_new_inferior)
16169 (get_remote_thread_info): Pass target down.
16170 (remote_target::update_thread_list): Skip threads of inferiors
16171 bound to other targets. (remote_target::close): Don't discard
16172 inferiors. (remote_target::add_current_inferior_and_thread)
16173 (remote_target::process_initial_stop_replies)
16174 (remote_target::start_remote)
16175 (remote_target::remote_serial_quit_handler): Pass down target.
16176 (remote_target::remote_unpush_target): New remote_target
16177 parameter. Unpush the target from all inferiors.
16178 (remote_target::remote_unpush_and_throw): New remote_target
16179 parameter. Pass it down.
16180 (remote_target::open_1): Check whether the current inferior has
16181 execution instead of checking whether any inferior is live. Pass
16182 target down.
16183 (remote_target::remote_detach_1): Pass down target. Use
16184 remote_unpush_target.
16185 (extended_remote_target::attach): Pass down target.
16186 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16187 (remote_target::append_resumption): Pass down target.
16188 (remote_target::append_pending_thread_resumptions)
16189 (remote_target::remote_resume_with_hc, remote_target::resume)
16190 (remote_target::commit_resume): Pass down target.
16191 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16192 (remote_target::interrupt_query)
16193 (remote_target::remove_new_fork_children)
16194 (remote_target::check_pending_events_prevent_wildcard_vcont)
16195 (remote_target::remote_parse_stop_reply)
16196 (remote_target::process_stop_reply): Pass down target.
16197 (first_remote_resumed_thread): New remote_target parameter. Pass
16198 it down.
16199 (remote_target::wait_as): Pass down target.
16200 (unpush_and_perror): New remote_target parameter. Pass it down.
16201 (remote_target::readchar, remote_target::remote_serial_write)
16202 (remote_target::getpkt_or_notif_sane_1)
16203 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16204 down target.
16205 (remote_target::mourn_inferior): Pass down target. Use
16206 remote_unpush_target.
16207 (remote_target::core_of_thread)
16208 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16209 (remote_target::pid_to_exec_file)
16210 (remote_target::thread_handle_to_thread_info): Pass down target.
16211 (remote_target::async_wait_fd): New.
16212 * riscv-fbsd-tdep.c: Include "inferior.h".
16213 (riscv_fbsd_get_thread_local_address): Pass down target.
16214 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16215 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16216 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16217 Adjust.
16218 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16219 * solib-svr4.c (enable_break): Pass down target.
16220 * spu-multiarch.c (parse_spufs_run): Pass down target.
16221 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16222 * target-delegates.c: Regenerate.
16223 * target.c (g_target_stack): Delete.
16224 (current_top_target): Return the current inferior's top target.
16225 (target_has_execution_1): Refer to the passed-in inferior's top
16226 target.
16227 (target_supports_terminal_ours): Check whether the initial
16228 inferior was already created.
16229 (decref_target): New.
16230 (target_stack::push): Incref/decref the target.
16231 (push_target, push_target, unpush_target): Adjust.
16232 (target_stack::unpush): Defref target.
16233 (target_is_pushed): Return bool. Adjust to refer to the current
16234 inferior's target stack.
16235 (dispose_inferior): Delete, and inline parts ...
16236 (target_preopen): ... here. Only dispose of the current inferior.
16237 (target_detach): Hold strong target reference while detaching.
16238 Pass target down.
16239 (target_thread_name): Add assertion.
16240 (target_resume): Pass down target.
16241 (target_ops::beneath, find_target_at): Adjust to refer to the
16242 current inferior's target stack.
16243 (get_dummy_target): New.
16244 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16245 has a thread running.
16246 (initialize_targets): Rename to ...
16247 (_initialize_target): ... this.
16248 * target.h: Include "gdbsupport/refcounted-object.h".
16249 (struct target_ops): Inherit refcounted_object.
16250 (target_ops::shortname, target_ops::longname): Make const.
16251 (target_ops::async_wait_fd): New method.
16252 (decref_target): Declare.
16253 (struct target_ops_ref_policy): New.
16254 (target_ops_ref): New typedef.
16255 (get_dummy_target): Declare function.
16256 (target_is_pushed): Return bool.
16257 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16258 (all_matching_threads_iterator::all_matching_threads_iterator):
16259 Handle filter target.
16260 * thread-iter.h (struct all_matching_threads_iterator, struct
16261 all_matching_threads_range, class all_non_exited_threads_range):
16262 Filter by target too. Remove explicit.
16263 * thread.c (threads_executing): Delete.
16264 (inferior_thread): Pass down current inferior.
16265 (clear_thread_inferior_resources): Pass down thread pointer
16266 instead of ptid_t.
16267 (add_thread_silent, add_thread_with_info, add_thread): Add
16268 process_stratum_target parameter. Use it for thread and inferior
16269 searches.
16270 (is_current_thread): New.
16271 (thread_info::deletable): Use it.
16272 (find_thread_ptid, thread_count, in_thread_list)
16273 (thread_change_ptid, set_resumed, set_running): New
16274 process_stratum_target parameter. Pass it down.
16275 (set_executing): New process_stratum_target parameter. Pass it
16276 down. Adjust reference to 'threads_executing'.
16277 (threads_are_executing): New process_stratum_target parameter.
16278 Adjust reference to 'threads_executing'.
16279 (set_stop_requested, finish_thread_state): New
16280 process_stratum_target parameter. Pass it down.
16281 (switch_to_thread): Also match inferior.
16282 (switch_to_thread): New process_stratum_target parameter. Pass it
16283 down.
16284 (update_threads_executing): Reimplement.
16285 * top.c (quit_force): Pop targets from all inferior.
16286 (gdb_init): Don't call initialize_targets.
16287 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16288 Declare.
16289 (windows_add_thread, windows_delete_thread): Adjust.
16290 (get_windows_debug_event): Rename to ...
16291 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16292 * tracefile-tfile.c (tfile_target_open): Pass down target.
16293 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16294 Forward declare.
16295 (switch_to_thread): Add process_stratum_target parameter.
16296 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16297 parameter. Use it.
16298 (mi_on_resume): Pass target down.
16299 * nat/fork-inferior.c (startup_inferior): Add
16300 process_stratum_target parameter. Pass it down.
16301 * nat/fork-inferior.h (startup_inferior): Add
16302 process_stratum_target parameter.
16303 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16304
16305 2020-01-10 Pedro Alves <palves@redhat.com>
16306
16307 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16308 directly. Instead find the first thread in the thread list and
16309 use switch_to_thread.
16310
16311 2020-01-10 Pedro Alves <palves@redhat.com>
16312
16313 * remote.c (remote_target::remote_add_inferior): Don't bind a
16314 process to the current inferior if the current inferior is already
16315 bound to a process.
16316
16317 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16318 Pedro Alves <palves@redhat.com>
16319
16320 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16321 If no process is specified, return null_ptid instead of
16322 inferior_ptid.
16323 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16324 TARGET_WAITKIND_SIGNALLED with no pid.
16325
16326 2020-01-10 Pedro Alves <palves@redhat.com>
16327
16328 * remote.c (first_remote_resumed_thread): New.
16329 (remote_target::wait_as): Use it as default event_ptid instead of
16330 inferior_ptid.
16331
16332 2020-01-10 Pedro Alves <palves@redhat.com>
16333
16334 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16335
16336 2020-01-10 Pedro Alves <palves@redhat.com>
16337
16338 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16339 not -1.
16340
16341 2020-01-10 Pedro Alves <palves@redhat.com>
16342
16343 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16344 ptid to get_last_target_status.
16345 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16346 ptid to get_last_target_status.
16347 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16348 get_last_target_status.
16349 (info_program_command): Don't pass a target_waitstatus to
16350 get_last_target_status.
16351 * infrun.c (init_wait_for_inferior): Use
16352 nullify_last_target_wait_ptid.
16353 (get_last_target_status): Handle nullptr arguments.
16354 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16355 (print_stop_event): Don't pass a ptid to get_last_target_status.
16356 (normal_stop): Don't pass a ptid to get_last_target_status.
16357 * infrun.h (get_last_target_status, set_last_target_status): Move
16358 comments here and update.
16359 (nullify_last_target_wait_ptid): Declare.
16360 * linux-fork.c (fork_load_infrun_state): Remove local extern
16361 declaration of nullify_last_target_wait_ptid.
16362 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16363 to get_last_target_status.
16364
16365 2020-01-10 Pedro Alves <palves@redhat.com>
16366
16367 * gdbthread.h (scoped_restore_current_thread)
16368 <dont_restore, restore, m_dont_restore>: Declare.
16369 * thread.c (thread_alive): Add assertion. Return bool.
16370 (switch_to_thread_if_alive): New.
16371 (prune_threads): Switch inferior/thread.
16372 (print_thread_info_1): Switch thread before calling target methods.
16373 (scoped_restore_current_thread::restore): New, factored out from
16374 ...
16375 (scoped_restore_current_thread::~scoped_restore_current_thread):
16376 ... this.
16377 (scoped_restore_current_thread::scoped_restore_current_thread):
16378 Add assertion.
16379 (thread_apply_all_command, thread_select): Use
16380 switch_to_thread_if_alive.
16381 * infrun.c (proceed, restart_threads, handle_signal_stop)
16382 (switch_back_to_stepped_thread): Switch current thread before
16383 calling target methods.
16384
16385 2020-01-10 Pedro Alves <palves@redhat.com>
16386
16387 * inferior.c (switch_to_inferior_no_thread): New function,
16388 factored out from ...
16389 (inferior_command): ... here.
16390 * inferior.h (switch_to_inferior_no_thread): Declare.
16391 * mi/mi-main.c (run_one_inferior): Use
16392 switch_to_inferior_no_thread.
16393
16394 2020-01-10 Pedro Alves <palves@redhat.com>
16395
16396 * infcmd.c (kill_command): Remove dead code.
16397
16398 2020-01-10 Pedro Alves <palves@redhat.com>
16399
16400 * remote.c (remote_target::mourn_inferior): No longer check
16401 whether the target is running.
16402
16403 2020-01-10 Pedro Alves <palves@redhat.com>
16404
16405 * corelow.c (core_target::has_execution): Change parameter type to
16406 inferior pointer.
16407 * inferior.c (number_of_live_inferiors): Use
16408 inferior::has_execution instead of target_has_execution_1.
16409 * inferior.h (inferior::has_execution): New.
16410 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16411 inferior::has_execution instead of target_has_execution_1.
16412 * process-stratum-target.c
16413 (process_stratum_target::has_execution): Change parameter type to
16414 inferior pointer. Check the inferior's PID instead of
16415 inferior_ptid.
16416 * process-stratum-target.h
16417 (process_stratum_target::has_execution): Change parameter type to
16418 inferior pointer.
16419 * record-full.c (record_full_core_target::has_execution): Change
16420 parameter type to inferior pointer.
16421 * target.c (target_has_execution_1): Change parameter type to
16422 inferior pointer.
16423 (target_has_execution_current): Adjust.
16424 * target.h (target_ops::has_execution): Change parameter type to
16425 inferior pointer.
16426 (target_has_execution_1): Change parameter type to inferior
16427 pointer. Change return type to bool.
16428 * tracefile.h (tracefile_target::has_execution): Change parameter
16429 type to inferior pointer.
16430
16431 2020-01-10 Pedro Alves <palves@redhat.com>
16432
16433 * exceptions.c (print_flush): Remove current_top_target() check.
16434
16435 2020-01-10 Pedro Alves <palves@redhat.com>
16436
16437 * remote.c (show_remote_exec_file): Show the current inferior's
16438 exec-file instead of the command variable's value.
16439
16440 2020-01-10 Pedro Alves <palves@redhat.com>
16441
16442 * record-full.c (record_full_resume_ptid): New global.
16443 (record_full_target::resume): Set it.
16444 (record_full_wait_1): Use record_full_resume_ptid instead of
16445 inferior_ptid.
16446
16447 2020-01-10 Pedro Alves <palves@redhat.com>
16448
16449 * gdbthread.h (scoped_restore_current_thread)
16450 <dont_restore, restore, m_dont_restore>: Declare.
16451 * thread.c (thread_alive): Add assertion. Return bool.
16452 (switch_to_thread_if_alive): New.
16453 (prune_threads): Switch inferior/thread.
16454 (print_thread_info_1): Switch thread before calling target methods.
16455 (scoped_restore_current_thread::restore): New, factored out from
16456 ...
16457 (scoped_restore_current_thread::~scoped_restore_current_thread):
16458 ... this.
16459 (scoped_restore_current_thread::scoped_restore_current_thread):
16460 Add assertion.
16461 (thread_apply_all_command, thread_select): Use
16462 switch_to_thread_if_alive.
16463
16464 2020-01-10 George Barrett <bob@bob131.so>
16465
16466 * stap-probe.c (stap_modify_semaphore): Don't check for null
16467 semaphores.
16468 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16469 for null semaphores.
16470
16471 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16472
16473 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16474 all source windows, and maintain horizontal scroll status while
16475 doing so.
16476
16477 2020-01-09 Tom Tromey <tom@tromey.com>
16478
16479 PR tui/18932:
16480 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16481 update_source_window, not print_source_lines.
16482
16483 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16484
16485 * tui/tui.c (tui_enable): Register tui hooks after calling
16486 tui_display_main.
16487
16488 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16489
16490 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16491
16492 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16493
16494 * thread.c (print_thread_info_1): Fix indentation.
16495
16496 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16497
16498 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16499 unique_xmalloc_ptr outside the if to always free the demangled name.
16500
16501 2020-01-08 Tom Tromey <tromey@adacore.com>
16502
16503 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16504 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16505 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16506 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16507 Remove.
16508 (section_offsets): New typedef.
16509 * symtab.c (fixup_section, get_msymbol_address): Update.
16510 * symmisc.c (dump_msymbols): Update.
16511 * symfile.h (relative_addr_info_to_section_offsets)
16512 (symfile_map_offsets_to_segments): Update.
16513 * symfile.c (build_section_addr_info_from_objfile)
16514 (init_objfile_sect_indices): Update.
16515 (struct place_section_arg): Change type of "offsets".
16516 (place_section): Update.
16517 (relative_addr_info_to_section_offsets): Change type of
16518 "section_offsets". Remove "num_sections" parameter.
16519 (default_symfile_offsets, syms_from_objfile_1)
16520 (set_objfile_default_section_offset): Update.
16521 (reread_symbols): No need to preserve section offsets by hand.
16522 (symfile_map_offsets_to_segments): Change type of "offsets".
16523 * stap-probe.c (relocate_address): Update.
16524 * stabsread.h (process_one_symbol): Update.
16525 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16526 (solib_target_relocate_section_addresses): Update.
16527 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16528 Update.
16529 * solib-frv.c (frv_relocate_main_executable): Update.
16530 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16531 * solib-aix.c (solib_aix_get_section_offsets): Change return
16532 type.
16533 (solib_aix_solib_create_inferior_hook): Update.
16534 * remote.c (remote_target::get_offsets): Update.
16535 * psymtab.c (find_pc_sect_psymtab): Update.
16536 * psympriv.h (struct partial_symbol) <address, text_low,
16537 text_high>: Update.
16538 * objfiles.h (obj_section_offset): Update.
16539 (struct objfile) <section_offsets>: Change type.
16540 <num_sections>: Remove.
16541 (objfile_relocate): Update.
16542 * objfiles.c (entry_point_address_query): Update
16543 (relocate_one_symbol): Change type of "section_offsets".
16544 (objfile_relocate1, objfile_relocate1): Change type of
16545 "new_offsets".
16546 (objfile_rebase1): Update.
16547 * mipsread.c (mipscoff_symfile_read): Update.
16548 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16549 parameter.
16550 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16551 (parse_external, psymtab_to_symtab_1): Update.
16552 * machoread.c (macho_symfile_offsets): Update.
16553 * ia64-tdep.c (ia64_find_unwind_table): Update.
16554 * hppa-tdep.c (read_unwind_info): Update.
16555 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16556 * dwarf2read.c (create_addrmap_from_index)
16557 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16558 (process_psymtab_comp_unit_reader, add_partial_symbol)
16559 (add_partial_subprogram, process_full_comp_unit)
16560 (read_file_scope, read_func_scope, read_lexical_block_scope)
16561 (read_call_site_scope, dwarf2_rnglists_process)
16562 (dwarf2_ranges_process, dwarf2_ranges_read)
16563 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16564 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16565 Update.
16566 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16567 Update.
16568 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16569 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16570 (process_one_symbol): Change type of "section_offsets".
16571 * ctfread.c (get_objfile_text_range): Update.
16572 * coffread.c (coff_symtab_read, enter_linenos)
16573 (process_coff_symbol): Update.
16574 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16575 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16576
16577 2020-01-08 Tom Tromey <tromey@adacore.com>
16578
16579 * dwarf2read.c (parse_macro_definition): Use std::string.
16580 (parse_macro_definition): Likewise.
16581
16582 2020-01-08 Tom Tromey <tromey@adacore.com>
16583
16584 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16585 (ATTR_ALLOC_CHUNK): Remove.
16586
16587 2020-01-08 Tom Tromey <tromey@adacore.com>
16588
16589 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16590
16591 2020-01-08 Tom Tromey <tromey@adacore.com>
16592
16593 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16594 (dwarf2_compute_name, open_dwo_file): Likewise.
16595 (process_enumeration_scope): Use std::vector.
16596 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16597 (partial_die_info::fixup, dwarf2_start_subfile)
16598 (guess_full_die_structure_name, dwarf2_name): Likewise.
16599 (determine_prefix): Update.
16600 (guess_full_die_structure_name): Make return type const.
16601 (partial_die_full_name): Return unique_xmalloc_ptr.
16602 (DW_FIELD_ALLOC_CHUNK): Remove.
16603
16604 2020-01-07 Tom Tromey <tromey@adacore.com>
16605
16606 PR build/24937:
16607 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16608
16609 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16610
16611 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16612
16613 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16614
16615 * stack.c (print_frame_info): Move disassemble_next_line code
16616 inside source_print block.
16617
16618 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16619
16620 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16621 gdb/signals.h, as we are now using native signal symbols.
16622
16623 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16624
16625 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16626 overflow by an early check of content vs threshold.
16627 * tui/tui-source.c (tui_source_window::line_is_displayed):
16628 Likewise.
16629
16630 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16631
16632 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16633
16634 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16635
16636 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16637 export table if no section contains it's RVA.
16638
16639 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16640
16641 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16642
16643 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16644
16645 * source.c (print_source_lines_base): Set last_line_listed.
16646
16647 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16648
16649 * tui/tui-disasm.c: Remove trailing spaces.
16650
16651 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16652 Pedro Alves <palves@redhat.com>
16653
16654 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16655 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16656 (windows_gdb_signal_to_target): New function, uses the above
16657 enumeration to convert GDB internal signal codes to equivalent
16658 Windows codes.
16659 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16660 * windows-nat.c: Include "gdb_wait.h".
16661 (get_windows_debug_event): Extract the fatal exception from the
16662 exit status and convert to the equivalent Posix signal number.
16663 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16664 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16665 * gdbsupport/gdb_wait.c: New file, implements
16666 windows_status_to_termsig.
16667 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16668 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16669
16670 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16671
16672 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16673 show_layout.
16674
16675 2020-01-05 Luis Machado <luis.machado@linaro.org>
16676
16677 * aarch64-linux-nat.c
16678 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16679 and bfd_mach_aarch64.
16680
16681 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16682
16683 * ui-file.c (stdio_file::can_emit_style_escape)
16684 (tee_file::can_emit_style_escape): Ensure style is used also on
16685 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16686 to gdb_stdout.
16687 * main.c (set_gdb_data_directory): Use file style to output the
16688 warning that the given pathname is not a directory.
16689 * top.c (show_history_filename, gdb_safe_append_history)
16690 (show_gdb_datadir): Use file style.
16691
16692 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16693
16694 * solib-target.c (struct lm_info_target):
16695 Change offsets to be a unique_xmalloc_ptr.
16696 (solib_target_relocate_section_addresses): Update.
16697
16698 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16699
16700 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16701
16702 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16703
16704 * MAINTAINERS (Write After Approval): Add myself.
16705
16706 2020-01-02 Luis Machado <luis.machado@linaro.org>
16707
16708 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16709 Cell BE architecture.
16710 * target.h (struct target_ops) <thread_architecture>: Likewise.
16711
16712 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16713
16714 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16715
16716 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16717
16718 * MAINTAINERS (Write After Approval): Add myself.
16719
16720 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16721
16722 * gdbarch.sh: Update copyright year range of generated files.
16723
16724 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16725
16726 Update copyright year range in all GDB files.
16727
16728 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16729
16730 * copyright.py: Convert to Python 3.
16731
16732 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16733
16734 * copyright.py: Adapt after move of gnulib directory from gdb
16735 directory to toplevel directory.
16736
16737 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16738
16739 * copyright.py (main): Exit if run from the wrong directory.
16740
16741 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16742
16743 * top.c (print_gdb_version): Change copyright year to 2020.
16744
16745 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16746
16747 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16748
16749 For older changes see ChangeLog-2019.
16750 \f
16751 Local Variables:
16752 mode: change-log
16753 left-margin: 8
16754 fill-column: 74
16755 version-control: never
16756 coding: utf-8
16757 End:
This page took 0.355751 seconds and 5 git commands to generate.