]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: fix debug expression dumping of function call expressions
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
86775fab
AB
12020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * expprint.c (print_subexp_funcall): Increment expression position
4 after reading argument count.
5 * f-lang.c (print_subexp_f): Skip over opcode before calling
6 common function.
7 (dump_subexp_body_f): Likewise.
8
3fed4c0b
RG
92020-11-06 Romain Geissler <romain.geissler@amadeus.com>
10
11 PR python/26832
12 * configure: Regenerate.
13 * configure.ac: Check for python modules ctypes instead of
14 itertools.
15
ac3d4064
PA
162020-11-06 Pedro Alves <pedro@palves.net>
17
18 * macroexp.c (struct macro_buffer): Split in two classes. Add
19 uses adjusted.
20 (struct shared_macro_buffer): New, factored out from struct
21 macro_buffer.
22 (struct growable_macro_buffer): New, factored out from struct
23 macro_buffer.
24 (set_token, get_comment, get_identifier, get_pp_number)
25 (get_character_constant, get_string_literal, get_punctuator)
26 (get_next_token_for_substitution): Constify parameters.
27 (substitute_args): Constify locals.
28
606decb2
TT
292020-11-05 Tom Tromey <tom@tromey.com>
30
31 * dwarf2/read.c (read_cutu_die_from_dwo)
32 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
33 (build_type_psymtabs_1): Update.
34 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
35 parameter.
36 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
37 Don't read section. Add assert.
38
9c91c725
TT
392020-11-04 Tom Tromey <tromey@adacore.com>
40
41 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
42
8d9fd3a1
TT
432020-11-04 Tom Tromey <tromey@adacore.com>
44
45 * ada-typeprint.c (ada_print_type): Handle __T types.
46
d8f62e84
TT
472020-11-04 Tom Tromey <tromey@adacore.com>
48
49 * dwarf2/read.c (add_partial_symbol, process_die):
50 Handle DW_TAG_array_type.
51 (is_type_tag_for_partial): Add "lang" parameter.
52 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
53
7ff5b937
TT
542020-11-04 Tom Tromey <tromey@adacore.com>
55
56 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
57
10f6a3ad
TT
582020-11-04 Tom Tromey <tromey@adacore.com>
59
60 * dwarf2/read.c (read_array_type): Only apply stride to innermost
61 array.
62
b72795a8
TT
632020-11-04 Tom Tromey <tromey@adacore.com>
64
65 * gdbtypes.c (update_static_array_size): Handle bit stride.
66
24aa1b02
TT
672020-11-04 Tom Tromey <tromey@adacore.com>
68
69 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
70
c9a28cbe
TT
712020-11-04 Tom Tromey <tromey@adacore.com>
72
73 * ada-lang.c (ada_is_any_packed_array_type): New function.
74 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
75
57567375
TT
762020-11-04 Tom Tromey <tromey@adacore.com>
77
78 * dwarf2/read.c (recognize_bound_expression)
79 (quirk_ada_thick_pointer): New functions.
80 (read_array_type): Call quirk_ada_thick_pointer.
81 (set_die_type): Add "skip_data_location" parameter.
82 (quirk_ada_thick_pointer): New function.
83 (process_structure_scope): Call quirk_ada_thick_pointer.
84 * ada-lang.c (ada_is_unconstrained_packed_array_type)
85 (decode_packed_array_bitsize): Handle thick pointers without
86 parallel types.
87 (ada_is_gnat_encoded_packed_array_type): Rename from
88 ada_is_packed_array_type.
89 (ada_is_constrained_packed_array_type): Update.
90 * ada-valprint.c (ada_val_print_gnat_array): Remove.
91 (ada_value_print_1): Use ada_get_decoded_value.
92
a7400e44
TT
932020-11-04 Tom Tromey <tromey@adacore.com>
94
95 * ada-lang.c (recursively_update_array_bitsize): New function.
96 (decode_constrained_packed_array_type): Call it.
97
75fd6a26
TT
982020-11-04 Tom Tromey <tromey@adacore.com>
99
100 * ada-lang.c (to_fixed_array_type): Error if
101 decode_constrained_packed_array_type returns NULL.
102
93f9561e
TT
1032020-11-04 Tom Tromey <tromey@adacore.com>
104
105 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
106
257e02d8
TT
1072020-11-02 Tom Tromey <tromey@adacore.com>
108
109 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
110 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
111 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
112 * amd64-ravenscar-thread.c: New file.
113 * amd64-ravenscar-thread.h: New file.
114 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
115 * configure.tgt (amd64_tobjs): Add ravenscar objects.
116
74d877e5
AB
1172020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
118
119 * main.c (execute_cmdargs): New function.
120 (captured_main_1): Make use of execute_cmdargs.
121
64aaad63
AB
1222020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * NEWS: Mention changes to config file search path.
125 * main.c
126
5b3d3560
TT
1272020-11-02 Tom Tromey <tromey@adacore.com>
128
129 * python/python.c: Consolidate two HAVE_PYTHON blocks.
130 (python_GdbModuleDef): Move earlier. Now static.
131 (do_start_initialization): Consolidate some IS_PY3K blocks.
132
dda83cd7
SM
1332020-11-02 Simon Marchi <simon.marchi@efficios.com>
134
135 * aarch64-linux-tdep.c: Fix indentation.
136 * aarch64-ravenscar-thread.c: Fix indentation.
137 * aarch64-tdep.c: Fix indentation.
138 * aarch64-tdep.h: Fix indentation.
139 * ada-lang.c: Fix indentation.
140 * ada-lang.h: Fix indentation.
141 * ada-tasks.c: Fix indentation.
142 * ada-typeprint.c: Fix indentation.
143 * ada-valprint.c: Fix indentation.
144 * ada-varobj.c: Fix indentation.
145 * addrmap.c: Fix indentation.
146 * addrmap.h: Fix indentation.
147 * agent.c: Fix indentation.
148 * aix-thread.c: Fix indentation.
149 * alpha-bsd-nat.c: Fix indentation.
150 * alpha-linux-tdep.c: Fix indentation.
151 * alpha-mdebug-tdep.c: Fix indentation.
152 * alpha-nbsd-tdep.c: Fix indentation.
153 * alpha-obsd-tdep.c: Fix indentation.
154 * alpha-tdep.c: Fix indentation.
155 * amd64-bsd-nat.c: Fix indentation.
156 * amd64-darwin-tdep.c: Fix indentation.
157 * amd64-linux-nat.c: Fix indentation.
158 * amd64-linux-tdep.c: Fix indentation.
159 * amd64-nat.c: Fix indentation.
160 * amd64-obsd-tdep.c: Fix indentation.
161 * amd64-tdep.c: Fix indentation.
162 * amd64-windows-tdep.c: Fix indentation.
163 * annotate.c: Fix indentation.
164 * arc-tdep.c: Fix indentation.
165 * arch-utils.c: Fix indentation.
166 * arch/arm-get-next-pcs.c: Fix indentation.
167 * arch/arm.c: Fix indentation.
168 * arm-linux-nat.c: Fix indentation.
169 * arm-linux-tdep.c: Fix indentation.
170 * arm-nbsd-tdep.c: Fix indentation.
171 * arm-pikeos-tdep.c: Fix indentation.
172 * arm-tdep.c: Fix indentation.
173 * arm-tdep.h: Fix indentation.
174 * arm-wince-tdep.c: Fix indentation.
175 * auto-load.c: Fix indentation.
176 * auxv.c: Fix indentation.
177 * avr-tdep.c: Fix indentation.
178 * ax-gdb.c: Fix indentation.
179 * ax-general.c: Fix indentation.
180 * bfin-linux-tdep.c: Fix indentation.
181 * block.c: Fix indentation.
182 * block.h: Fix indentation.
183 * blockframe.c: Fix indentation.
184 * bpf-tdep.c: Fix indentation.
185 * break-catch-sig.c: Fix indentation.
186 * break-catch-syscall.c: Fix indentation.
187 * break-catch-throw.c: Fix indentation.
188 * breakpoint.c: Fix indentation.
189 * breakpoint.h: Fix indentation.
190 * bsd-uthread.c: Fix indentation.
191 * btrace.c: Fix indentation.
192 * build-id.c: Fix indentation.
193 * buildsym-legacy.h: Fix indentation.
194 * buildsym.c: Fix indentation.
195 * c-typeprint.c: Fix indentation.
196 * c-valprint.c: Fix indentation.
197 * c-varobj.c: Fix indentation.
198 * charset.c: Fix indentation.
199 * cli/cli-cmds.c: Fix indentation.
200 * cli/cli-decode.c: Fix indentation.
201 * cli/cli-decode.h: Fix indentation.
202 * cli/cli-script.c: Fix indentation.
203 * cli/cli-setshow.c: Fix indentation.
204 * coff-pe-read.c: Fix indentation.
205 * coffread.c: Fix indentation.
206 * compile/compile-cplus-types.c: Fix indentation.
207 * compile/compile-object-load.c: Fix indentation.
208 * compile/compile-object-run.c: Fix indentation.
209 * completer.c: Fix indentation.
210 * corefile.c: Fix indentation.
211 * corelow.c: Fix indentation.
212 * cp-abi.h: Fix indentation.
213 * cp-namespace.c: Fix indentation.
214 * cp-support.c: Fix indentation.
215 * cp-valprint.c: Fix indentation.
216 * cris-linux-tdep.c: Fix indentation.
217 * cris-tdep.c: Fix indentation.
218 * darwin-nat-info.c: Fix indentation.
219 * darwin-nat.c: Fix indentation.
220 * darwin-nat.h: Fix indentation.
221 * dbxread.c: Fix indentation.
222 * dcache.c: Fix indentation.
223 * disasm.c: Fix indentation.
224 * dtrace-probe.c: Fix indentation.
225 * dwarf2/abbrev.c: Fix indentation.
226 * dwarf2/attribute.c: Fix indentation.
227 * dwarf2/expr.c: Fix indentation.
228 * dwarf2/frame.c: Fix indentation.
229 * dwarf2/index-cache.c: Fix indentation.
230 * dwarf2/index-write.c: Fix indentation.
231 * dwarf2/line-header.c: Fix indentation.
232 * dwarf2/loc.c: Fix indentation.
233 * dwarf2/macro.c: Fix indentation.
234 * dwarf2/read.c: Fix indentation.
235 * dwarf2/read.h: Fix indentation.
236 * elfread.c: Fix indentation.
237 * eval.c: Fix indentation.
238 * event-top.c: Fix indentation.
239 * exec.c: Fix indentation.
240 * exec.h: Fix indentation.
241 * expprint.c: Fix indentation.
242 * f-lang.c: Fix indentation.
243 * f-typeprint.c: Fix indentation.
244 * f-valprint.c: Fix indentation.
245 * fbsd-nat.c: Fix indentation.
246 * fbsd-tdep.c: Fix indentation.
247 * findvar.c: Fix indentation.
248 * fork-child.c: Fix indentation.
249 * frame-unwind.c: Fix indentation.
250 * frame-unwind.h: Fix indentation.
251 * frame.c: Fix indentation.
252 * frv-linux-tdep.c: Fix indentation.
253 * frv-tdep.c: Fix indentation.
254 * frv-tdep.h: Fix indentation.
255 * ft32-tdep.c: Fix indentation.
256 * gcore.c: Fix indentation.
257 * gdb_bfd.c: Fix indentation.
258 * gdbarch.sh: Fix indentation.
259 * gdbarch.c: Re-generate
260 * gdbarch.h: Re-generate.
261 * gdbcore.h: Fix indentation.
262 * gdbthread.h: Fix indentation.
263 * gdbtypes.c: Fix indentation.
264 * gdbtypes.h: Fix indentation.
265 * glibc-tdep.c: Fix indentation.
266 * gnu-nat.c: Fix indentation.
267 * gnu-nat.h: Fix indentation.
268 * gnu-v2-abi.c: Fix indentation.
269 * gnu-v3-abi.c: Fix indentation.
270 * go32-nat.c: Fix indentation.
271 * guile/guile-internal.h: Fix indentation.
272 * guile/scm-cmd.c: Fix indentation.
273 * guile/scm-frame.c: Fix indentation.
274 * guile/scm-iterator.c: Fix indentation.
275 * guile/scm-math.c: Fix indentation.
276 * guile/scm-ports.c: Fix indentation.
277 * guile/scm-pretty-print.c: Fix indentation.
278 * guile/scm-value.c: Fix indentation.
279 * h8300-tdep.c: Fix indentation.
280 * hppa-linux-nat.c: Fix indentation.
281 * hppa-linux-tdep.c: Fix indentation.
282 * hppa-nbsd-nat.c: Fix indentation.
283 * hppa-nbsd-tdep.c: Fix indentation.
284 * hppa-obsd-nat.c: Fix indentation.
285 * hppa-tdep.c: Fix indentation.
286 * hppa-tdep.h: Fix indentation.
287 * i386-bsd-nat.c: Fix indentation.
288 * i386-darwin-nat.c: Fix indentation.
289 * i386-darwin-tdep.c: Fix indentation.
290 * i386-dicos-tdep.c: Fix indentation.
291 * i386-gnu-nat.c: Fix indentation.
292 * i386-linux-nat.c: Fix indentation.
293 * i386-linux-tdep.c: Fix indentation.
294 * i386-nto-tdep.c: Fix indentation.
295 * i386-obsd-tdep.c: Fix indentation.
296 * i386-sol2-nat.c: Fix indentation.
297 * i386-tdep.c: Fix indentation.
298 * i386-tdep.h: Fix indentation.
299 * i386-windows-tdep.c: Fix indentation.
300 * i387-tdep.c: Fix indentation.
301 * i387-tdep.h: Fix indentation.
302 * ia64-libunwind-tdep.c: Fix indentation.
303 * ia64-libunwind-tdep.h: Fix indentation.
304 * ia64-linux-nat.c: Fix indentation.
305 * ia64-linux-tdep.c: Fix indentation.
306 * ia64-tdep.c: Fix indentation.
307 * ia64-tdep.h: Fix indentation.
308 * ia64-vms-tdep.c: Fix indentation.
309 * infcall.c: Fix indentation.
310 * infcmd.c: Fix indentation.
311 * inferior.c: Fix indentation.
312 * infrun.c: Fix indentation.
313 * iq2000-tdep.c: Fix indentation.
314 * language.c: Fix indentation.
315 * linespec.c: Fix indentation.
316 * linux-fork.c: Fix indentation.
317 * linux-nat.c: Fix indentation.
318 * linux-tdep.c: Fix indentation.
319 * linux-thread-db.c: Fix indentation.
320 * lm32-tdep.c: Fix indentation.
321 * m2-lang.c: Fix indentation.
322 * m2-typeprint.c: Fix indentation.
323 * m2-valprint.c: Fix indentation.
324 * m32c-tdep.c: Fix indentation.
325 * m32r-linux-tdep.c: Fix indentation.
326 * m32r-tdep.c: Fix indentation.
327 * m68hc11-tdep.c: Fix indentation.
328 * m68k-bsd-nat.c: Fix indentation.
329 * m68k-linux-nat.c: Fix indentation.
330 * m68k-linux-tdep.c: Fix indentation.
331 * m68k-tdep.c: Fix indentation.
332 * machoread.c: Fix indentation.
333 * macrocmd.c: Fix indentation.
334 * macroexp.c: Fix indentation.
335 * macroscope.c: Fix indentation.
336 * macrotab.c: Fix indentation.
337 * macrotab.h: Fix indentation.
338 * main.c: Fix indentation.
339 * mdebugread.c: Fix indentation.
340 * mep-tdep.c: Fix indentation.
341 * mi/mi-cmd-catch.c: Fix indentation.
342 * mi/mi-cmd-disas.c: Fix indentation.
343 * mi/mi-cmd-env.c: Fix indentation.
344 * mi/mi-cmd-stack.c: Fix indentation.
345 * mi/mi-cmd-var.c: Fix indentation.
346 * mi/mi-cmds.c: Fix indentation.
347 * mi/mi-main.c: Fix indentation.
348 * mi/mi-parse.c: Fix indentation.
349 * microblaze-tdep.c: Fix indentation.
350 * minidebug.c: Fix indentation.
351 * minsyms.c: Fix indentation.
352 * mips-linux-nat.c: Fix indentation.
353 * mips-linux-tdep.c: Fix indentation.
354 * mips-nbsd-tdep.c: Fix indentation.
355 * mips-tdep.c: Fix indentation.
356 * mn10300-linux-tdep.c: Fix indentation.
357 * mn10300-tdep.c: Fix indentation.
358 * moxie-tdep.c: Fix indentation.
359 * msp430-tdep.c: Fix indentation.
360 * namespace.h: Fix indentation.
361 * nat/fork-inferior.c: Fix indentation.
362 * nat/gdb_ptrace.h: Fix indentation.
363 * nat/linux-namespaces.c: Fix indentation.
364 * nat/linux-osdata.c: Fix indentation.
365 * nat/netbsd-nat.c: Fix indentation.
366 * nat/x86-dregs.c: Fix indentation.
367 * nbsd-nat.c: Fix indentation.
368 * nbsd-tdep.c: Fix indentation.
369 * nios2-linux-tdep.c: Fix indentation.
370 * nios2-tdep.c: Fix indentation.
371 * nto-procfs.c: Fix indentation.
372 * nto-tdep.c: Fix indentation.
373 * objfiles.c: Fix indentation.
374 * objfiles.h: Fix indentation.
375 * opencl-lang.c: Fix indentation.
376 * or1k-tdep.c: Fix indentation.
377 * osabi.c: Fix indentation.
378 * osabi.h: Fix indentation.
379 * osdata.c: Fix indentation.
380 * p-lang.c: Fix indentation.
381 * p-typeprint.c: Fix indentation.
382 * p-valprint.c: Fix indentation.
383 * parse.c: Fix indentation.
384 * ppc-linux-nat.c: Fix indentation.
385 * ppc-linux-tdep.c: Fix indentation.
386 * ppc-nbsd-nat.c: Fix indentation.
387 * ppc-nbsd-tdep.c: Fix indentation.
388 * ppc-obsd-nat.c: Fix indentation.
389 * ppc-ravenscar-thread.c: Fix indentation.
390 * ppc-sysv-tdep.c: Fix indentation.
391 * ppc64-tdep.c: Fix indentation.
392 * printcmd.c: Fix indentation.
393 * proc-api.c: Fix indentation.
394 * producer.c: Fix indentation.
395 * producer.h: Fix indentation.
396 * prologue-value.c: Fix indentation.
397 * prologue-value.h: Fix indentation.
398 * psymtab.c: Fix indentation.
399 * python/py-arch.c: Fix indentation.
400 * python/py-bpevent.c: Fix indentation.
401 * python/py-event.c: Fix indentation.
402 * python/py-event.h: Fix indentation.
403 * python/py-finishbreakpoint.c: Fix indentation.
404 * python/py-frame.c: Fix indentation.
405 * python/py-framefilter.c: Fix indentation.
406 * python/py-inferior.c: Fix indentation.
407 * python/py-infthread.c: Fix indentation.
408 * python/py-objfile.c: Fix indentation.
409 * python/py-prettyprint.c: Fix indentation.
410 * python/py-registers.c: Fix indentation.
411 * python/py-signalevent.c: Fix indentation.
412 * python/py-stopevent.c: Fix indentation.
413 * python/py-stopevent.h: Fix indentation.
414 * python/py-threadevent.c: Fix indentation.
415 * python/py-tui.c: Fix indentation.
416 * python/py-unwind.c: Fix indentation.
417 * python/py-value.c: Fix indentation.
418 * python/py-xmethods.c: Fix indentation.
419 * python/python-internal.h: Fix indentation.
420 * python/python.c: Fix indentation.
421 * ravenscar-thread.c: Fix indentation.
422 * record-btrace.c: Fix indentation.
423 * record-full.c: Fix indentation.
424 * record.c: Fix indentation.
425 * reggroups.c: Fix indentation.
426 * regset.h: Fix indentation.
427 * remote-fileio.c: Fix indentation.
428 * remote.c: Fix indentation.
429 * reverse.c: Fix indentation.
430 * riscv-linux-tdep.c: Fix indentation.
431 * riscv-ravenscar-thread.c: Fix indentation.
432 * riscv-tdep.c: Fix indentation.
433 * rl78-tdep.c: Fix indentation.
434 * rs6000-aix-tdep.c: Fix indentation.
435 * rs6000-lynx178-tdep.c: Fix indentation.
436 * rs6000-nat.c: Fix indentation.
437 * rs6000-tdep.c: Fix indentation.
438 * rust-lang.c: Fix indentation.
439 * rx-tdep.c: Fix indentation.
440 * s12z-tdep.c: Fix indentation.
441 * s390-linux-tdep.c: Fix indentation.
442 * score-tdep.c: Fix indentation.
443 * ser-base.c: Fix indentation.
444 * ser-mingw.c: Fix indentation.
445 * ser-uds.c: Fix indentation.
446 * ser-unix.c: Fix indentation.
447 * serial.c: Fix indentation.
448 * sh-linux-tdep.c: Fix indentation.
449 * sh-nbsd-tdep.c: Fix indentation.
450 * sh-tdep.c: Fix indentation.
451 * skip.c: Fix indentation.
452 * sol-thread.c: Fix indentation.
453 * solib-aix.c: Fix indentation.
454 * solib-darwin.c: Fix indentation.
455 * solib-frv.c: Fix indentation.
456 * solib-svr4.c: Fix indentation.
457 * solib.c: Fix indentation.
458 * source.c: Fix indentation.
459 * sparc-linux-tdep.c: Fix indentation.
460 * sparc-nbsd-tdep.c: Fix indentation.
461 * sparc-obsd-tdep.c: Fix indentation.
462 * sparc-ravenscar-thread.c: Fix indentation.
463 * sparc-tdep.c: Fix indentation.
464 * sparc64-linux-tdep.c: Fix indentation.
465 * sparc64-nbsd-tdep.c: Fix indentation.
466 * sparc64-obsd-tdep.c: Fix indentation.
467 * sparc64-tdep.c: Fix indentation.
468 * stabsread.c: Fix indentation.
469 * stack.c: Fix indentation.
470 * stap-probe.c: Fix indentation.
471 * stubs/ia64vms-stub.c: Fix indentation.
472 * stubs/m32r-stub.c: Fix indentation.
473 * stubs/m68k-stub.c: Fix indentation.
474 * stubs/sh-stub.c: Fix indentation.
475 * stubs/sparc-stub.c: Fix indentation.
476 * symfile-mem.c: Fix indentation.
477 * symfile.c: Fix indentation.
478 * symfile.h: Fix indentation.
479 * symmisc.c: Fix indentation.
480 * symtab.c: Fix indentation.
481 * symtab.h: Fix indentation.
482 * target-float.c: Fix indentation.
483 * target.c: Fix indentation.
484 * target.h: Fix indentation.
485 * tic6x-tdep.c: Fix indentation.
486 * tilegx-linux-tdep.c: Fix indentation.
487 * tilegx-tdep.c: Fix indentation.
488 * top.c: Fix indentation.
489 * tracefile-tfile.c: Fix indentation.
490 * tracepoint.c: Fix indentation.
491 * tui/tui-disasm.c: Fix indentation.
492 * tui/tui-io.c: Fix indentation.
493 * tui/tui-regs.c: Fix indentation.
494 * tui/tui-stack.c: Fix indentation.
495 * tui/tui-win.c: Fix indentation.
496 * tui/tui-winsource.c: Fix indentation.
497 * tui/tui.c: Fix indentation.
498 * typeprint.c: Fix indentation.
499 * ui-out.h: Fix indentation.
500 * unittests/copy_bitwise-selftests.c: Fix indentation.
501 * unittests/memory-map-selftests.c: Fix indentation.
502 * utils.c: Fix indentation.
503 * v850-tdep.c: Fix indentation.
504 * valarith.c: Fix indentation.
505 * valops.c: Fix indentation.
506 * valprint.c: Fix indentation.
507 * valprint.h: Fix indentation.
508 * value.c: Fix indentation.
509 * value.h: Fix indentation.
510 * varobj.c: Fix indentation.
511 * vax-tdep.c: Fix indentation.
512 * windows-nat.c: Fix indentation.
513 * windows-tdep.c: Fix indentation.
514 * xcoffread.c: Fix indentation.
515 * xml-syscall.c: Fix indentation.
516 * xml-tdesc.c: Fix indentation.
517 * xstormy16-tdep.c: Fix indentation.
518 * xtensa-config.c: Fix indentation.
519 * xtensa-linux-nat.c: Fix indentation.
520 * xtensa-linux-tdep.c: Fix indentation.
521 * xtensa-tdep.c: Fix indentation.
522
e1f57067
AB
5232020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
524 Craig Blackmore <craig.blackmore@embecosm.com>
525
526 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
527 as an unsigned value.
528
ae7754b2
TT
5292020-11-01 Tom Tromey <tom@tromey.com>
530
531 * dbxread.c (dbx_end_psymtab): Update.
532 * dwarf2/read.c (process_psymtab_comp_unit_reader)
533 (build_type_psymtabs_reader): Update.
534 * xcoffread.c (xcoff_end_psymtab): Update.
535 * ctfread.c (scan_partial_symbols): Update.
536 * psymtab.c (sort_pst_symbols): Remove.
537 (partial_symtab::end): Rename from end_psymtab_common. Inline
538 sort_pst_symbols.
539 * psympriv.h (struct partial_symtab) <end>: New method.
540 (end_psymtab_common): Don't declare.
541
0684bb51
TT
5422020-11-01 Tom Tromey <tom@tromey.com>
543
544 * symmisc.c (count_psyms): New function.
545 (print_objfile_statistics): Use it.
546 * psymtab.c (append_psymbol_to_list): Remove.
547 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
548 * objfiles.h (struct objstats) <n_psyms>: Remove.
549
089002bb
TT
5502020-11-01 Tom Tromey <tom@tromey.com>
551
552 * dbxread.c (dbx_end_psymtab): Update.
553 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
554 (build_type_psymtabs_reader): Update.
555 * xcoffread.c (xcoff_end_psymtab): Update.
556 * ctfread.c (scan_partial_symbols): Update.
557 * psympriv.h (end_psymtab_common): Update.
558 * psymtab.c (end_psymtab_common): Remove objfile parameter.
559 (sort_pst_symbols): Likewise.
560
525454d6
TT
5612020-11-01 Tom Tromey <tom@tromey.com>
562
563 * dbxread.c (dbx_symfile_read): Update.
564 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
565 * xcoffread.c (xcoff_initial_scan): Update.
566 * psympriv.h (init_psymbol_list): Don't declare.
567 * psymtab.c (init_psymbol_list): Remove.
568
60bd1d53
JB
5692020-11-01 Joel Brobecker <brobecker@adacore.com>
570
571 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
572 gnat_encoded_fixed_type_info. Update all callers.
573
db99d0d0
JB
5742020-11-01 Joel Brobecker <brobecker@adacore.com>
575
576 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
577 line too long.
578
75f24e86
JB
5792020-11-01 Joel Brobecker <brobecker@adacore.com>
580
581 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
582 cast_from_fixed. Update all callers.
583 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
584 Update all callers.
585 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
586 Update all callers.
587 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
588 ada_scaling_factor.
589 * ada-typeprint.c: Replace call to ada_scaling_factor by call
590 to print_gnat_encoded_fixed_point_type.
591 * ada-valprint.c: Likewise.
592
4f0469cd
AB
5932020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
596 (debug_prefixed_printf): Add check of debug_displaced flag.
597 * linux-nat.c (linux_nat_debug_printf): Add check of
598 debug_linux_nat flag.
599
17417fb0
SM
6002020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
601
602 * infrun.c (infrun_debug_printf_1): Remove.
603 (displaced_debug_printf_1): Remove.
604 (stop_all_threads): Use debug_prefixed_printf.
605 * infrun.h (infrun_debug_printf_1): Remove.
606 (infrun_debug_printf): Use debug_prefixed_printf.
607 (displaced_debug_printf_1): Remove.
608 (displaced_debug_printf): Use debug_prefixed_printf.
609 * linux-nat.c (linux_nat_debug_printf_1): Remove.
610 (linux_nat_debug_printf): Use debug_prefixed_printf.
611
ad6dba1c
SM
6122020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
613
614 * configure: Re-generate.
615 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
616 AC_LANG_PROGRAM.
617
b6fb30ed
SM
6182020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
619
620 * configure: Re-generate.
621
5164c117
SM
6222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
623
624 * configure: Re-generate.
625
864ca435
SM
6262020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
627
628 * configure: Re-generate.
629
b9442ec1
SM
6302020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
631
632 * configure: Re-generate.
633
294f2697
SM
6342020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
635
636 * acinclude.m4: Modernize.
637 * configure: Re-generate.
638
5593a99a
SM
6392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
640
641 * configure.ac: Modernize.
642 * configure: Re-generate.
643
e41fda1d
SM
6442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
645
646 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
647 * configure: Re-generate.
648 * configure.ac: Remove AM_PROG_CC_STDC.
649
91e1a0ed
SM
6502020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
651
652 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
653 AC_CANONICAL_SYSTEM.
654 * configure: Re-generate.
655
136821d9
SM
6562020-10-30 Simon Marchi <simon.marchi@efficios.com>
657
658 * infrun.h (displaced_debug_printf): New macro. Replace
659 displaced debug prints throughout to use it.
660 (displaced_debug_printf_1): New declaration.
661 (displaced_step_dump_bytes): Return string, remove ui_file
662 parameter, update all callers.
663 * infrun.c (displaced_debug_printf_1): New function.
664 (displaced_step_dump_bytes): Return string, remove ui_file
665 parameter
666
aa2045e7
SM
6672020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
668
669 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
670
b1ec2735
TT
6712020-10-30 Tom Tromey <tromey@adacore.com>
672
673 * Makefile.in (stamp-init): Depend on config.status.
674
b78b3a29
TBA
6752020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
676
677 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
678
d70bdd3c
PA
6792020-10-30 Pedro Alves <pedro@palves.net>
680
681 * thread.c (lookup_selected_frame): Move ...
682 * frame.c (lookup_selected_frame): ... here.
683
79952e69
PA
6842020-10-30 Pedro Alves <pedro@palves.net>
685
686 * blockframe.c (block_innermost_frame): Use get_selected_frame.
687 * frame.c
688 (scoped_restore_selected_frame::scoped_restore_selected_frame):
689 Use save_selected_frame. Save language as well.
690 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
691 Use restore_selected_frame, and restore language as well.
692 (selected_frame_id, selected_frame_level): New.
693 (selected_frame): Update comments.
694 (save_selected_frame, restore_selected_frame): New.
695 (get_selected_frame): Use lookup_selected_frame.
696 (get_selected_frame_if_set): Delete.
697 (select_frame): Record selected_frame_level and selected_frame_id.
698 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
699 fields.
700 (get_selected_frame): Make 'message' parameter optional.
701 (get_selected_frame_if_set): Delete declaration.
702 (select_frame): Update comments.
703 (save_selected_frame, restore_selected_frame)
704 (lookup_selected_frame): Declare.
705 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
706 * infrun.c (struct infcall_control_state) <selected_frame_level>:
707 New field.
708 (save_infcall_control_state): Use save_selected_frame.
709 (restore_selected_frame): Delete.
710 (restore_infcall_control_state): Use restore_selected_frame.
711 * stack.c (select_frame_command_core, frame_command_core): Use
712 get_selected_frame.
713 * thread.c (restore_selected_frame): Rename to ...
714 (lookup_selected_frame): ... this and make extern. Select the
715 current frame if the frame level is -1.
716 (scoped_restore_current_thread::restore): Also restore the
717 language.
718 (scoped_restore_current_thread::~scoped_restore_current_thread):
719 Don't try/catch.
720 (scoped_restore_current_thread::scoped_restore_current_thread):
721 Save the language as well. Use save_selected_frame.
722
58103c33
SM
7232020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
724
725 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
726 documentation.
727 * gdbarch.h: Re-generate.
728
40a53766
SM
7292020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
730
731 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
732 parameter.
733 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
734 Likewise.
735 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
736 Likewise.
737 * arch-utils.c (default_displaced_step_hw_singlestep):
738 Likewise.
739 * arch-utils.h (default_displaced_step_hw_singlestep):
740 Likewise.
741 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
742 Likewise.
743 * s390-tdep.c (s390_displaced_step_hw_singlestep):
744 Likewise.
745 * gdbarch.c: Re-generate.
746 * gdbarch.h: Re-generate.
747 * infrun.c (resume_1): Adjust.
748
8407f91b
TT
7492020-10-29 Tom Tromey <tom@tromey.com>
750
751 * progspace.c (program_space::~program_space): Don't call
752 exec_close.
753
5008b3b2
TT
7542020-10-29 Tom Tromey <tom@tromey.com>
755
756 * exec.c (exec_target::close): Don't change current program
757 space.
758
d9eebde0
TT
7592020-10-29 Tom Tromey <tom@tromey.com>
760
761 * symfile.c (add_symbol_file_command): Update.
762 * exec.c (program_space::add_target_sections): Rename.
763 * symfile-mem.c (symbol_file_add_from_memory): Update.
764 * progspace.h (struct program_space) <add_target_sections>:
765 Declare new overload.
766 * exec.h (add_target_sections_of_objfile): Don't declare.
767
3769e227
TT
7682020-10-29 Tom Tromey <tom@tromey.com>
769
770 * solib.c (solib_map_sections): Update.
771 * exec.c (program_space::add_target_sections): Now a method.
772 (exec_file_attach): Update.
773 * exec.h (add_target_sections): Don't declare.
774 * progspace.h (struct program_space) <add_target_sections>:
775 Declare.
776
2a3f84af
TT
7772020-10-29 Tom Tromey <tom@tromey.com>
778
779 * progspace.h (struct program_space) <remove_target_sections>:
780 Declare.
781 * exec.c (program_space::remove_target_sections): Now a method.
782 * exec.h (remove_target_sections): Don't declare.
783
004eecfd
TT
7842020-10-29 Tom Tromey <tom@tromey.com>
785
786 * inferior.c (delete_inferior): Update.
787 * progspace.c (program_space::empty): Rename from
788 program_space_empty_p. Return bool.
789 * progspace.h (struct program_space) <empty>: New method.
790 (program_space_empty_p): Don't declare.
791
e39fb971
TT
7922020-10-29 Tom Tromey <tom@tromey.com>
793
794 * progspace.c (program_space::~program_space): Don't call
795 clear_program_space_solib_cache.
796 (program_space::clear_solib_cache): Rename from
797 clear_solib_cache.
798 * solib.c (handle_solib_event): Update.
799 * progspace.h (struct program_space) <clear_solib_cache>: New
800 method.
801 (clear_program_space_solib_cache): Don't declare.
802
a42d7dd8
TT
8032020-10-29 Tom Tromey <tom@tromey.com>
804
805 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
806 * target.c (info_target_command): Update.
807 * symfile.c (syms_from_objfile_1, finish_new_objfile)
808 (symbol_file_clear, reread_symbols): Update.
809 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
810 * stabsread.c (scan_file_globals): Update.
811 * solib.c (update_solib_list): Update.
812 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
813 (svr4_fetch_objfile_link_map, enable_break)
814 (svr4_relocate_main_executable)
815 (svr4_iterate_over_objfiles_in_search_order): Update.
816 * solib-frv.c (lm_base, enable_break)
817 (frv_relocate_main_executable): Update.
818 (main_got, frv_fdpic_find_canonical_descriptor): Update.
819 (frv_fetch_objfile_link_map): Update.
820 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
821 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
822 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
823 * remote.c (remote_target::get_offsets): Update.
824 (remote_target::start_remote)
825 (extended_remote_target::post_attach): Update.
826 * objfiles.c (entry_point_address_query): Update.
827 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
828 * minsyms.c (get_symbol_leading_char): Update.
829 * frame.c (inside_main_func): Update.
830 * progspace.h (symfile_objfile): Remove macro.
831
19f6550e
TT
8322020-10-29 Tom Tromey <tom@tromey.com>
833
834 * exec.c (exec_file_attach): Update.
835 * progspace.c (program_space::exec_close): Update.
836 * progspace.h (struct program_space) <ebfd>: Now a
837 gdb_bfd_ref_ptr.
838 <set_exec_bfd>: Change argument type.
839 <exec_bfd>: Update.
840
7e10abd1
TT
8412020-10-29 Tom Tromey <tom@tromey.com>
842
843 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
844 * symfile.c (reread_symbols): Update.
845 * symfile-mem.c (add_symbol_file_from_memory_command)
846 (add_vsyscall_page): Update.
847 * source-cache.c (source_cache::get_plain_source_lines): Update.
848 * solib-svr4.c (find_program_interpreter, elf_locate_base)
849 (svr4_current_sos_direct, svr4_exec_displacement)
850 (svr4_relocate_main_executable): Update.
851 (svr4_iterate_over_objfiles_in_search_order): Update.
852 * solib-frv.c (enable_break2, enable_break): Update.
853 * solib-dsbt.c (lm_base, enable_break): Update.
854 * solib-darwin.c (find_program_interpreter)
855 (darwin_solib_create_inferior_hook): Update.
856 * sol-thread.c (rw_common, ps_pdmodel): Update.
857 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
858 * remote.c (compare_sections_command)
859 (remote_target::trace_set_readonly_regions): Update.
860 * remote-sim.c (get_sim_inferior_data)
861 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
862 (gdbsim_target_open, gdbsim_target::files_info): Update.
863 * exec.h (exec_bfd): Remove macro.
864 * progspace.c (initialize_progspace): Update.
865 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
866 Update.
867 * nto-procfs.c (nto_procfs_target::post_attach)
868 (nto_procfs_target::create_inferior): Update.
869 * maint.c (maintenance_info_sections): Update.
870 * linux-thread-db.c (thread_db_target::get_thread_local_address):
871 Update.
872 * infcmd.c (post_create_inferior): Update.
873 * gcore.c (default_gcore_arch, default_gcore_target): Update.
874 (objfile_find_memory_regions): Update.
875 * exec.c (validate_exec_file, exec_file_attach)
876 (exec_read_partial_read_only, print_section_info): Update.
877 * corelow.c (core_target_open): Update.
878 * corefile.c (reopen_exec_file, validate_files): Update.
879 * arm-tdep.c (gdb_print_insn_arm): Update.
880 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
881 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
882 methods.
883
b55221ab
TT
8842020-10-29 Tom Tromey <tom@tromey.com>
885
886 * progspace.h (current_target_sections): Remove macro.
887 * solib-svr4.c (scan_dyntag): Update.
888 * solib-dsbt.c (scan_dyntag): Update.
889 * exec.c (exec_target::close): Update.
890 (add_target_sections, add_target_sections_of_objfile)
891 (remove_target_sections, exec_target::get_section_table)
892 (exec_target::files_info, set_section_command)
893 (exec_set_section_address, exec_target::has_memory)
894 (exec_target::has_memory): Update.
895
5a36e715
TT
8962020-10-29 Tom Tromey <tom@tromey.com>
897
898 * source-cache.c (source_cache::get_plain_source_lines): Use
899 current_program_space.
900 * corefile.c (reopen_exec_file): Use current_program_space.
901 * exec.c (exec_file_attach): Use current_program_space.
902 * exec.h (exec_bfd_mtime): Remove.
903
784c8592
TT
9042020-10-29 Tom Tromey <tom@tromey.com>
905
906 * gcore.c (default_gcore_mach): Remove.
907 (create_gcore_bfd): Update.
908
8a4f1402
TT
9092020-10-29 Tom Tromey <tom@tromey.com>
910
911 * progspace.c (program_space::exec_close): New method, from
912 exec_close in exec.c.
913 * exec.c (exec_close): Move to progspace.c.
914 (exec_target::close, exec_file_attach): Update.
915 * progspace.h (struct program_space) <exec_close>: Declare
916 method.
917
c20cb686
TT
9182020-10-29 Tom Tromey <tom@tromey.com>
919
920 * progspace.h (struct program_space) <exec_filename>: Rename from
921 pspace_exec_filename. Now a unique_xmalloc_ptr.
922 * inferior.c (print_selected_inferior): Update.
923 (print_inferior): Update.
924 * mi/mi-main.c (print_one_inferior): Update.
925 * exec.h (exec_filename): Remove macro.
926 * corefile.c (get_exec_file): Update.
927 * exec.c (exec_close): Update.
928 (exec_file_attach): Update.
929 * progspace.c (clone_program_space): Update.
930 (print_program_space): Update.
931
6be2a9ab
TT
9322020-10-29 Tom Tromey <tom@tromey.com>
933
934 * target-section.h (struct target_section): Add constructor.
935 * exec.c (build_section_table, add_target_sections_of_objfile):
936 Update.
937 * corelow.c (core_target::build_file_mappings): Update.
938
cfaa8f76
TBA
9392020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
940
941 PR gdb/19318
942 * inferior.c (detach_inferior_command): Restore the current thread.
943 (kill_inferior_command): Ditto.
944
1b00ef06
TV
9452020-10-28 Tom de Vries <tdevries@suse.de>
946
947 PR symtab/26772
948 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
949 map, check it in the "best match" loop.
950
7f40ce1a
SM
9512020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
952
953 * m32c-tdep.c: Remove unused includes.
954
5eb9e3f5
SM
9552020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
956
957 * xtensa-tdep.c: Remove includes.
958
b1d4d8d1
TBA
9592020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
960
961 * breakpoint.c (struct condition_command_opts): New struct.
962 (condition_command_option_defs): New static global.
963 (make_condition_command_options_def_group): New function.
964 (condition_completer): Update to consider the '-force' flag.
965 (condition_command): Use gdb::option for the '-force' flag.
966
bd24c5d6
TV
9672020-10-27 Tom de Vries <tdevries@suse.de>
968
969 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
970 symbols in section check.
971
61eb46a4
TV
9722020-10-27 Tom de Vries <tdevries@suse.de>
973
974 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
975
733d554a
TBA
9762020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
977
978 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
979 * breakpoint.c: Update the help text of the 'condition' and 'break'
980 commands.
981 (set_breakpoint_condition): Take a new bool parameter
982 to control whether condition definition should be forced even when
983 the condition expression is invalid in all of the current locations.
984 (condition_command): Update the call to 'set_breakpoint_condition'.
985 (find_condition_and_thread): Take the "-force-condition" flag into
986 account.
987 * linespec.c (linespec_keywords): Add "-force-condition" as an
988 element.
989 (FORCE_KEYWORD_INDEX): New #define.
990 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
991 as a keyword.
992 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
993 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
994 * python/py-breakpoint.c (bppy_set_condition): Ditto.
995 * NEWS: Mention the changes to the 'break' and 'condition' commands.
996
b5fa468f
TBA
9972020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
998
999 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1000 * breakpoint.c (set_breakpoint_location_condition): New function.
1001 (set_breakpoint_condition): Disable a breakpoint location if parsing
1002 the condition string gives an error.
1003 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1004 (build_target_condition_list): Ditto.
1005 (build_target_command_list): Ditto.
1006 (build_bpstat_chain): Ditto.
1007 (print_one_breakpoint_location): Ditto.
1008 (print_one_breakpoint): Ditto.
1009 (breakpoint_1): Ditto.
1010 (bp_location::bp_location): Ditto.
1011 (locations_are_equal): Ditto.
1012 (update_breakpoint_locations): Ditto.
1013 (enable_disable_bp_num_loc): Ditto.
1014 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1015 (find_condition_and_thread_for_sals): New static function.
1016 (create_breakpoint): Call find_condition_and_thread_for_sals.
1017 (location_to_sals): Call find_condition_and_thread_for_sals instead
1018 of find_condition_and_thread.
1019
1c47ec3e
TV
10202020-10-26 Tom de Vries <tdevries@suse.de>
1021
1022 * dwarf2/read.c (process_full_comp_unit): Call
1023 dwarf2_find_base_address.
1024
6390859c
TT
10252020-10-26 Tom Tromey <tromey@adacore.com>
1026
1027 * gdbtypes.c (create_range_type): Revert previous patch. Add
1028 comment.
1029
d744f0f9
PA
10302020-10-26 Pedro Alves <pedro@palves.net>
1031
1032 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1033 (my_waitpid): Use gdb::handle_eintr.
1034
006811bc
SM
10352020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1036
1037 * acinclude.m4: Update ptrace.m4 path.
1038 * ptrace.m4: Moved to gdbsupport.
1039
c75e31a1
SM
10402020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1041
1042 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1043 instead of target_gdbarch.
1044
32495661
SM
10452020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * jit.c (jit_reader_load_command): Pass current inferior.
1048 (jit_inferior_init): Change parameter type to inferior, use it.
1049 (jit_inferior_created): Remove.
1050 (jit_inferior_created_hook): Pass inferior parameter down.
1051 (_initialize_jit): Use jit_inferior_created_hook instead of
1052 jit_inferior_created.
1053 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1054 * infrun.c (follow_exec): Pass inferior to
1055 jit_inferior_created_hook.
1056
3f66685e
SM
10572020-10-24 Simon Marchi <simon.marchi@efficios.com>
1058
1059 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1060 parameter and use it.
1061 (thread_db_inferior_created): Pass inferior argument.
1062
a0ff652f
SM
10632020-10-24 Simon Marchi <simon.marchi@efficios.com>
1064
1065 * aix-thread.c (aix_thread_inferior_created): Add inferior
1066 parameter.
1067 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1068 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1069 * jit.c (jit_inferior_created): Likewise.
1070 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1071 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1072 * observable.h (inferior_created): Likewise.
1073 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1074 * symfile-mem.c (add_vsyscall_page): Likewise.
1075 * infcmd.c (post_create_inferior): Pass inferior argument.
1076
3c67532c
JB
10772020-10-24 Joel Brobecker <brobecker@adacore.com>
1078
1079 GDB 10.1 released.
1080
8747316e
JB
10812020-10-23 Joel Brobecker <brobecker@adacore.com>
1082
1083 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1084 to ada_check_typedef.
1085
1a0ea399
AB
10862020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1087
1088 * f-exp.y (f_parse): Rename to...
1089 (f_language::parser): ...this.
1090 * f-lang.c (f_get_encoding): Rename to...
1091 (f_language::get_encoding): ...this.
1092 (f_op_print_tab): Rename to...
1093 (f_language::op_print_tab): ...this.
1094 (exp_descriptor_f): Rename to...
1095 (f_language::exp_descriptor_tab): ...this.
1096 (class f_language): Moved to f-lang.h.
1097 (f_language::language_arch_info): New function, moved out of class
1098 declaration.
1099 (f_language::search_name_hash): Likewise.
1100 (f_language::lookup_symbol_nonlocal): Likewise.
1101 (f_language::get_symbol_name_matcher_inner): Likewise.
1102 * f-lang.h: Add 'valprint.h' include.
1103 (class f_language): Moved here from f-lang.c.
1104 * f-typeprint.c (f_type_print_args): Delete commented out
1105 declaration.
1106 (f_print_typedef): Rename to...
1107 (f_language::print_typedef): ...this.
1108 (f_print_type): Rename to...
1109 (f_language::print_type): ...this.
1110 (f_type_print_varspec_prefix): Delete declaration and rename to...
1111 (f_language::f_type_print_varspec_prefix): ...this.
1112 (f_type_print_varspec_suffix): Delete declaration and rename to...
1113 (f_language::f_type_print_varspec_suffix): ...this.
1114 (f_type_print_base): Delete declaration and rename to...
1115 (f_language::f_type_print_base): ...this.
1116 * f-valprint.c (f_value_print_inner): Rename to...
1117 (f_language::value_print_inner): ...this.
1118 * parse.c: Delete 'f-lang.h' include.
1119
88cefd9b
AB
11202020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * language.h (language_defn::print_type): Add variable names in
1123 declaration, and update header comment.
1124
5399db93
AB
11252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * ada-lang.c (ada_language::demangle): Rename to...
1128 (ada_language::demangle_symbol): ...this.
1129 * c-lang.c (cplus_language::demangle): Rename to...
1130 (cplus_language::demangle_symbol): ...this.
1131 * d-lang.c (d_language::demangle): Rename to...
1132 (d_language::demangle_symbol): ...this.
1133 * f-lang.c (f_language::demangle): Rename to...
1134 (f_language::demangle_symbol): ...this.
1135 * go-lang.c (go_language::demangle): Rename to...
1136 (go_language::demangle_symbol): ...this.
1137 * language.c (language_demangle): Update call to demangle_symbol.
1138 (auto_or_unknown_language::demangle): Rename to...
1139 (auto_or_unknown_language::demangle_symbol): ...this.
1140 * language.h (language_defn::demangle): Rename to...
1141 (language_defn::demangle_symbol): ...this.
1142 * objc-lang.c (objc_language::demangle): Rename to...
1143 (objc_language::demangle_symbol): ...this.
1144 * rust-lang.c (rust_language::demangle): Rename to...
1145 (rust_language::demangle_symbol): ...this.
1146
4b2f86ef
AB
11472020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1148
1149 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1150 (iterate_over_file_blocks): Replace use of macro with the macros
1151 definition.
1152
e74b39de
AB
11532020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1154
1155 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1156 * valprint.c (maybe_print_array_index): Replace use of macro with
1157 the macros definition.
1158
00c696a6
AB
11592020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1160
1161 * ada-lang.c (ada_language::print_array_index): Call value_print
1162 directly.
1163 * language.c (language_defn::print_array_index): Likewise.
1164 * language.h (LA_VALUE_PRINT): Delete.
1165 * valprint.c (value_print): Call value_print on the
1166 current_language directly.
1167
d3b67c56
AB
11682020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1169
1170 * language.h (LA_PRINT_TYPEDEF): Delete.
1171 * typeprint.c (typedef_print): Call print_typedef directly on the
1172 current_language object.
1173
790e2a12
AB
11742020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1175
1176 * m2-exp.y (m2_parse): Rename to...
1177 (m2_language::parser): ...this. Update function signature.
1178 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1179 (m2_op_print): Rename to...
1180 (m2_language::op_print_tab): ...this, and make const.
1181 (exp_descriptor_modula2): Rename to...
1182 (m2_language::exp_descriptor_modula2): ...this.
1183 (class m2_language): Move to m2-lang.h.
1184 (m2_language::language_arch_info): New function, moved out of
1185 class declaration.
1186 (m2_language::printchar): New function, body from m2_printchar.
1187 (m2_language::printstr): New function, moved out of class
1188 declaration.
1189 (m2_language::emitchar): Likewise.
1190 * m2-lang.h (m2_parse): Delete declaration.
1191 (m2_print_typedef): Delete declaration.
1192 (m2_value_print_inner): Delete declaration.
1193 (class m2_language): Class declaration moved from m2-lang.c,
1194 larger functions are left in m2-lang.c.
1195 * m2-typeprint.c (m2_print_typedef): Rename to...
1196 (m2_language::print_typedef): ...this, and update function
1197 signature.
1198 * m2-valprint.c (m2_value_print_inner): Rename to...
1199 (m2_language::value_print_inner): ...this, replace use of
1200 LA_PRINT_STRING with a direct call to printstr member function,
1201 and update recursive call.
1202
b01175fc
AB
12032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * language.c (default_is_string_type_p): Delete, implementation
1206 moved into auto_or_unknown_language::is_string_type_p.
1207 (unk_op_print_tab): Moved into
1208 auto_or_unknown_language::opcode_print_table.
1209 (unknown_language_arch_info): Delete, implementation moved into
1210 auto_or_unknown_language::language_arch_info.
1211 (class auto_or_unknown_language): New class, member functions
1212 copied from unknown_language class, with some updates.
1213 (class unknown_language): Most member functions moved into
1214 auto_or_unknown_language class. Inherit from
1215 auto_or_unknown_language class.
1216 (class auto_language): Inherit from auto_or_unknown_language.
1217 Delete most member functions.
1218
1a97fe8c
HD
12192020-10-22 Hannes Domani <ssbssa@yahoo.de>
1220
1221 * stabsread.c (read_member_functions): Remove gdb_assert.
1222
6b9d0dfd
HD
12232020-10-22 Hannes Domani <ssbssa@yahoo.de>
1224
1225 * gdbtypes.c (init_complex_type): Check target type name.
1226
4b4bb603
SM
12272020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1228
1229 * target-debug.h (target_debug_print_struct_target_ops_p):
1230 Remove.
1231 (target_debug_print_async_callback_ftype_p): Remove.
1232 (target_debug_print_struct_trace_state_variable_p): Remove.
1233 (target_debug_print_struct_traceframe_info_p): Remove.
1234 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1235 (target_debug_print_enum_btrace_format): Remove.
1236 (target_debug_print_enum_info_proc_what): Remove.
1237 (target_debug_print_thread_info_pp): Remove.
1238
24f5300a
SM
12392020-10-22 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * target.h (struct target_ops) <make_corefile_notes>:
1242 Change return type to unique pointer.
1243 * target.c (dummy_make_corefile_notes): Likewise.
1244 * exec.c (struct exec_target) <make_corefile_notes>:
1245 Likewise.
1246 (exec_target::make_corefile_notes): Likewise.
1247 * procfs.c (class procfs_target) <make_corefile_notes>:
1248 Likewise.
1249 (procfs_do_thread_registers): Adjust to unique pointer.
1250 (struct procfs_corefile_thread_data): Add constructor.
1251 <note_data>: Change type to unique pointer.
1252 (procfs_corefile_thread_callback): Adjust to unique pointer.
1253 (procfs_target::make_corefile_notes): Change return type to
1254 unique pointer.
1255 * target-delegates.c: Re-generate.
1256 * gcore.c (write_gcore_file_1): Adjust.
1257 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1258 New.
1259
5fb4027f
TV
12602020-10-22 Tom de Vries <tdevries@suse.de>
1261
1262 * block.c (find_block_in_blockvector): Make sure the returned block
1263 contains pc.
1264
4a636814
SM
12652020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1266
1267 PR gdb/26693
1268 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1269 parameter.
1270 (load_cu): Pass existing CU.
1271 (process_imported_unit_die): Likewise.
1272 (follow_die_offset): Likewise.
1273
1bd57575
LM
12742020-10-22 Luis Machado <luis.machado@linaro.org>
1275
1276 * corelow.c (core_target::xfer_partial): Also check for an empty
1277 m_core_unavailable_mappings vector.
1278
6b4c676c
AB
12792020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1280
1281 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1282 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1283 * f-exp.y (arglist): Allow for a series of subranges.
1284 (subrange): Add cases for subranges with strides.
1285 * f-lang.c (value_f90_subarray): Catch use of array strides and
1286 throw an error.
1287 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1288
f2d8e4c5
AB
12892020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * expprint.c (print_subexp_standard): Change enum range_type to
1292 range_flag and rename variables to match.
1293 (dump_subexp_body_standard): Likewise.
1294 * expression.h (enum range_type): Rename to...
1295 (enum range_flag): ...this.
1296 (range_types): Rename to...
1297 (range_flags): ...this.
1298 * f-lang.c (value_f90_subarray): Change enum range_type to
1299 range_flag and rename variables to match.
1300 * parse.c (operator_length_standard): Likewise.
1301 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1302 range_type to range_flag.
1303 * rust-lang.c (rust_evaluate_funcall): Likewise.
1304 (rust_range): Likewise.
1305 (rust_compute_range): Likewise.
1306 (rust_subscript): Likewise.
1307
2f1b18db
AB
13082020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1309
1310 * expprint.c (print_subexp_standard): Update to reflect changes to
1311 enum range_type.
1312 (dump_subexp_body_standard): Likewise.
1313 * expression.h (enum range_type): Convert to a bit field enum, and
1314 make the enum unsigned.
1315 * f-exp.y (subrange): Update to reflect changes to enum
1316 range_type.
1317 * f-lang.c (value_f90_subarray): Likewise.
1318 * parse.c (operator_length_standard): Likewise.
1319 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1320 * rust-lang.c (rust_range): Likewise.
1321 (rust_compute_range): Likewise.
1322 (rust_subscript): Likewise.
1323
a46d1843
SM
13242020-10-21 Simon Marchi <simon.marchi@efficios.com>
1325
1326 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1327 (displaced_step_in_progress): Fix comment.
1328
c21f37a8
SM
13292020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1330
1331 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1332 * gdbarch.c: Re-generate.
1333 * gdbarch.h: Re-generate.
1334 * gcore.c (write_gcore_file_1): Adjust.
1335 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1336 constructor.
1337 <note_data>: Change type to unique pointer.
1338 <abort_iteration>: Change type to bool.
1339 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1340 (fbsd_collect_thread_registers): Return void, adjust.
1341 (struct fbsd_corefile_thread_data): Add construtor.
1342 <note_data>: Change type to unique pointer.
1343 (fbsd_corefile_thread): Adjust.
1344 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1345 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1346 to unique pointer, adjust.
1347 (struct linux_collect_regset_section_cb_data): Add constructor.
1348 <note_data>: Change type to unique pointer.
1349 <abort_iteration>: Change type to bool.
1350 (linux_collect_thread_registers): Return void, adjust.
1351 (struct linux_corefile_thread_data): Add constructor.
1352 <note_data>: Change type to unique pointer.
1353 (linux_corefile_thread): Adjust.
1354 (linux_make_corefile_notes): Return unique pointer, adjust.
1355
07fbbd01
SM
13562020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1357
1358 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1359 * gdbarch.c: Re-generate.
1360 * gdbarch.h: Re-generate.
1361 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1362 bool.
1363 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1364 Likewise.
1365 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1366 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1367 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1368 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1369
39535193
SM
13702020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1371
1372 * gdbarch.sh: Make generated predicates return bool.
1373 * gdbarch.c: Re-generate.
1374 * gdbarch.h: Re-generate.
1375
ad523d01
TT
13762020-10-20 Tom Tromey <tom@tromey.com>
1377
1378 * varobj-iter.h (struct varobj_item): Remove typedef.
1379
c4464ade
SM
13802020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1381
1382 * infrun.c (currently_stepping): Change int to bool
1383 (maybe_software_singlestep): Likewise.
1384 (show_stop_on_solib_events): Likewise.
1385 (stepping_past_nonsteppable_watchpoint): Likewise.
1386 (displaced_step_in_progress_any_inferior): Likewise.
1387 (displaced_step_in_progress_thread): Likewise.
1388 (keep_going_stepped_thread): Likewise.
1389 (thread_still_needs_step_over): Likewise.
1390 (start_step_over): Likewise.
1391 (do_target_resume): Likewise.
1392 (resume_1): Likewise.
1393 (clear_proceed_status): Likewise.
1394 (thread_still_needs_step_over_bp): Likewise.
1395 (proceed): Likewise.
1396 (switch_back_to_stepped_thread): Likewise.
1397 (adjust_pc_after_break): Likewise.
1398 (stepped_in_from): Likewise.
1399 (handle_stop_requested): Likewise.
1400 (handle_syscall_event): Likewise.
1401 (handle_no_resumed): Likewise.
1402 (handle_inferior_event): Likewise.
1403 (finish_step_over): Likewise.
1404 (handle_signal_stop): Likewise.
1405 (process_event_stop_test): Likewise.
1406
2eb20436
SM
14072020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1408
1409 * infrun.c (get_displaced_stepping_state): Fix comment.
1410
e0c45ded
AS
14112020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1412
1413 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1414
22cc388e
TT
14152020-10-19 Tom Tromey <tromey@adacore.com>
1416
1417 PR tui/26719
1418 * tui/tui-winsource.h (struct tui_source_window_base)
1419 <refresh_window>: Rename from refresh_pad.
1420 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1421 Rename from refresh_pad.
1422 (tui_source_window_base::show_source_content)
1423 (tui_source_window_base::do_scroll_horizontal): Update.
1424
3c6eb4d4
TBA
14252020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1426
1427 * thread.c (_initialize_thread): Fine-tune the help text of
1428 'info threads'.
1429
26703721
TBA
14302020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1431
1432 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1433
61c26be8
MS
14342020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1435
1436 * breakpoint.c (handle_jit_event): Add an argument, change how
1437 `jit_event_handler` is called.
1438
932539d7
TT
14392020-10-17 Tom Tromey <tom@tromey.com>
1440
1441 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1442 (scan_xcoff_symtab): Update.
1443 * psymtab.h (class psymtab_storage) <global_psymbols,
1444 static_psymbols, current_global_psymbols,
1445 current_static_psymbols>: Remove.
1446 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1447 (match_partial_symbol, lookup_partial_symbol): Update.
1448 (print_partial_symbols): Change parameters.
1449 (dump_psymtab, recursively_search_psymtabs)
1450 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1451 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1452 (concat): Remove.
1453 (end_psymtab_common): Simplify.
1454 (append_psymbol_to_list): Change parameters.
1455 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1456 (init_psymbol_list): Simplify.
1457 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1458 * psympriv.h (struct partial_symtab) <empty>: New method.
1459 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1460 Remove.
1461 <global_psymbols, static_psymbols>: New members.
1462 <add_psymbol>: New methods.
1463 (add_psymbol_to_list): Don't declare.
1464 (psymbol_placement): Move earlier.
1465 * mdebugread.c (parse_partial_symbols): Update.
1466 (handle_psymbol_enumerators): Change parameters.
1467 (mdebug_expand_psymtab): Update.
1468 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1469 (add_partial_symbol): Update.
1470 * dwarf2/index-write.c (write_psymbols): Change parameters.
1471 (write_one_signatured_type): Update.
1472 (recursively_count_psymbols): Update.
1473 (recursively_write_psymbols): Update.
1474 (class debug_names) <recursively_write_psymbols>: Update.
1475 <write_psymbols>: Change parameters.
1476 <write_one_signatured_type>: Update.
1477 * dbxread.c (read_dbx_symtab): Update.
1478 (dbx_end_psymtab): Use partial_symtab::empty.
1479 * ctfread.c (struct ctf_context) <pst>: New member.
1480 (create_partial_symtab): Set it.
1481 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1482 (scan_partial_symbols): Use the psymtab's context. Update.
1483
cfabbd35
TT
14842020-10-17 Tom Tromey <tom@tromey.com>
1485
1486 * valprint.c (generic_value_print): Remove comment.
1487 * m2-valprint.c (m2_value_print_inner): Remove comment.
1488 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1489 type.
1490
520596f2
TV
14912020-10-17 Tom de Vries <tdevries@suse.de>
1492
1493 PR symtab/26317
1494 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1495 symbol main.
1496
76547ab3
TV
14972020-10-14 Tom de Vries <tdevries@suse.de>
1498
1499 PR gdb/26733
1500 * solib.c (solib_contains_address_p): Handle
1501 'solib->sections == nullptr'.
1502
d3a07122
SM
15032020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1504
1505 PR gdb/26642
1506 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1507 target can't do async.
1508 * target.c (target_wait): Assert that we don't pass
1509 TARGET_WNOHANG to a target that can't async.
1510
1b71cfcf
KR
15112020-10-13 Kamil Rytarowski <n54@gmx.com>
1512
1513 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1514 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1515 * alpha-bsd-nat.c: Adjust include.
1516 * alpha-bsd-tdep.h: Adjust comment.
1517 * alpha-nbsd-tdep.c: Rename to ...
1518 * alpha-netbsd-tdep.c: ... this, adjust include.
1519 * amd64-nbsd-nat.c: Rename to ...
1520 * amd64-netbsd-nat.c: ... this, adjust include.
1521 * amd64-nbsd-tdep.c: Rename to ...
1522 * amd64-netbsd-tdep.c: ... this, adjust include.
1523 * amd64-tdep.h: Adjust include.
1524 * arm-nbsd-nat.c: Rename to ...
1525 * arm-netbsd-nat.c: ... this, adjust include.
1526 * arm-nbsd-tdep.c: Rename to ...
1527 * arm-netbsd-tdep.c: ... this, adjust include.
1528 * arm-nbsd-tdep.h: Rename to ...
1529 * arm-netbsd-tdep.h: ... this, adjust include.
1530 * configure.nat: Adjust file lists.
1531 * configure.tgt: Likewise.
1532 * hppa-nbsd-nat.c: Rename to ...
1533 * hppa-netbsd-nat.c: ... this, adjust include.
1534 * hppa-nbsd-tdep.c: Rename to ...
1535 * hppa-netbsd-tdep.c: ... this, adjust include.
1536 * i386-nbsd-nat.c: Rename to ...
1537 * i386-netbsd-nat.c: ... this, adjust include.
1538 * i386-nbsd-tdep.c: Rename to ...
1539 * i386-netbsd-tdep.c: ... this, adjust include.
1540 * m68k-bsd-nat.c: Adjust include.
1541 * mips-nbsd-nat.c: Rename to ...
1542 * mips-netbsd-nat.c: ... this, adjust include.
1543 * mips-nbsd-tdep.c: Rename to ...
1544 * mips-netbsd-tdep.c: ... this, adjust include.
1545 * mips-nbsd-tdep.h: Rename to ...
1546 * mips-netbsd-tdep.h: ... this.
1547 * nbsd-nat.c: Rename to ...
1548 * netbsd-nat.c: ... this, adjust include.
1549 * nbsd-nat.h: Rename to ...
1550 * netbsd-nat.h: ... this, adjust include.
1551 * nbsd-tdep.c: Rename to ...
1552 * netbsd-tdep.c: ... this, adjust include.
1553 * nbsd-tdep.h: Rename to ...
1554 * netbsd-tdep.h: ... this.
1555 * ppc-nbsd-nat.c: Rename to ...
1556 * ppc-netbsd-nat.c: ... this, adjust include.
1557 * ppc-nbsd-tdep.c: Rename to ...
1558 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1559 * ppc-nbsd-tdep.h: Rename to ...
1560 * ppc-netbsd-tdep.h: ... this.
1561 * sh-nbsd-nat.c: Rename to ...
1562 * sh-netbsd-nat.c: ... this, adjust include.
1563 * sh-nbsd-tdep.c: Rename to ...
1564 * sh-netbsd-tdep.c: ... this, adjust include.
1565 * sparc-nbsd-nat.c: Rename to ...
1566 * sparc-netbsd-nat.c: ... this.
1567 * sparc-nbsd-tdep.c: Rename to ...
1568 * sparc-netbsd-tdep.c: ... this, adjust include.
1569 * sparc64-nbsd-nat.c: Rename to ...
1570 * sparc64-netbsd-nat.c: ... this.
1571 * sparc64-nbsd-tdep.c: Rename to ...
1572 * sparc64-netbsd-tdep.c: ... this, adjust include.
1573 * sparc64-tdep.h: Adjust comment.
1574 * vax-bsd-nat.c: Adjust include.
1575 * vax-nbsd-tdep.c: Rename to ...
1576 * vax-netbsd-tdep.c: ... this, adjust include.
1577
d7a78e5c
TT
15782020-10-12 Tom Tromey <tom@tromey.com>
1579
1580 * target.h (struct target_ops) <get_section_table>: Update.
1581 (target_get_section_table): Update.
1582 * target.c (target_get_section_table, target_section_by_addr)
1583 (memory_xfer_partial_1): Update.
1584 * target-section.h (target_section_table): Now an alias.
1585 * target-delegates.c: Rebuild.
1586 * target-debug.h (target_debug_print_target_section_table_p):
1587 Rename from target_debug_print_struct_target_section_table_p.
1588 * symfile.c (build_section_addr_info_from_section_table): Update.
1589 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1590 * solib-svr4.c (scan_dyntag): Update.
1591 * solib-dsbt.c (scan_dyntag): Update.
1592 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1593 Update.
1594 * record-full.c (record_full_core_target::xfer_partial): Update.
1595 * progspace.h (struct program_space) <target_sections>: Update.
1596 * exec.h (print_section_info): Update.
1597 * exec.c (exec_target::close, build_section_table)
1598 (add_target_sections, add_target_sections_of_objfile)
1599 (remove_target_sections, exec_on_vfork)
1600 (section_table_available_memory)
1601 (section_table_xfer_memory_partial)
1602 (exec_target::get_section_table, exec_target::xfer_partial)
1603 (print_section_info, set_section_command)
1604 (exec_set_section_address, exec_target::has_memory): Update.
1605 * corelow.c (core_target::build_file_mappings)
1606 (core_target::xfer_partial, core_target::info_proc_mappings)
1607 (core_target::info_proc_mappings): Update.
1608 * bfd-target.c (class target_bfd): Update
1609
eda214ce
TT
16102020-10-12 Tom Tromey <tom@tromey.com>
1611
1612 * progspace.c (program_space::~program_space): Don't call
1613 clear_section_table.
1614 * exec.h (clear_section_table): Don't declare.
1615 * exec.c (exec_target::close): Update.
1616 (clear_section_table): Remove.
1617
91840ee3
TT
16182020-10-12 Tom Tromey <tom@tromey.com>
1619
1620 * exec.c (add_target_sections_of_objfile): Simplify.
1621
2d128614
TT
16222020-10-12 Tom Tromey <tom@tromey.com>
1623
1624 * solib.c (solib_map_sections): Update.
1625 * record-full.c (record_full_core_open_1): Update.
1626 * exec.h (build_section_table): Return a target_section_table.
1627 * exec.c (exec_file_attach): Update.
1628 (build_section_table): Return a target_section_table.
1629 * corelow.c (core_target::core_target): Update.
1630 * bfd-target.c (target_bfd::target_bfd): Update.
1631
bb2a6777
TT
16322020-10-12 Tom Tromey <tom@tromey.com>
1633
1634 * target.c (target_section_by_addr, memory_xfer_partial_1):
1635 Update.
1636 * target-section.h (struct target_section_table): Use
1637 std::vector.
1638 * symfile.h (build_section_addr_info_from_section_table): Take a
1639 target_section_table.
1640 * symfile.c (build_section_addr_info_from_section_table): Take a
1641 target_section_table.
1642 * solist.h (struct so_list) <sections>: Change type.
1643 <sections_end>: Remove.
1644 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1645 (solib_contains_address_p): Update.
1646 * solib-svr4.c (scan_dyntag): Update.
1647 * solib-dsbt.c (scan_dyntag): Update.
1648 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1649 Update.
1650 * record-full.c (record_full_core_start, record_full_core_end):
1651 Remove.
1652 (record_full_core_sections): New global.
1653 (record_full_core_open_1, record_full_core_target::xfer_partial):
1654 Update.
1655 * exec.h (build_section_table, section_table_xfer_memory_partial)
1656 (add_target_sections): Take a target_section_table.
1657 * exec.c (exec_file_attach, clear_section_table): Update.
1658 (resize_section_table): Remove.
1659 (build_section_table, add_target_sections): Take a
1660 target_section_table.
1661 (add_target_sections_of_objfile, remove_target_sections)
1662 (exec_on_vfork): Update.
1663 (section_table_available_memory): Take a target_section_table.
1664 (section_table_read_available_memory): Update.
1665 (section_table_xfer_memory_partial): Take a target_section_table.
1666 (print_section_info, set_section_command)
1667 (exec_set_section_address, exec_target::has_memory): Update.
1668 * corelow.c (class core_target) <m_core_section_table,
1669 m_core_file_mappings>: Remove braces.
1670 <~core_target>: Remove.
1671 (core_target::core_target): Update.
1672 (core_target::~core_target): Remove.
1673 (core_target::build_file_mappings)
1674 (core_target::xfer_memory_via_mappings)
1675 (core_target::xfer_partial, core_target::info_proc_mappings):
1676 Update.
1677 * bfd-target.c (target_bfd::xfer_partial): Update.
1678 (target_bfd::target_bfd): Update.
1679 (target_bfd::~target_bfd): Remove.
1680
7b466b10
TT
16812020-10-12 Tom Tromey <tom@tromey.com>
1682
1683 * target.h (struct target_section, struct target_section_table):
1684 Move to target-section.h.
1685 * target-section.h: New file.
1686
87a37e5e
PA
16872020-10-12 Pedro Alves <pedro@palves.net>
1688
1689 PR exp/26602
1690 * valops.c (struct struct_field_searcher): New.
1691 (update_search_result): Rename to ...
1692 (struct_field_searcher::update_result): ... this. Simplify
1693 prototype. Record all found fields.
1694 (do_search_struct_field): Rename to ...
1695 (struct_field_searcher::search): ... this. Simplify prototype.
1696 Maintain stack of visited baseclass path. Call update_result for
1697 fields too. Keep searching fields in baseclasses instead of
1698 stopping at the first found field.
1699 (search_struct_field): Use struct_field_searcher. When looking
1700 for fields, report ambiguous access attempts.
1701
9370fd51
AB
17022020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1703
1704 * frame.c (inside_main_func): Check full symbols as well as
1705 minimal symbols.
1706
59c8a30b
JB
17072020-10-09 Joel Brobecker <brobecker@adacore.com>
1708
1709 * ada-lang.c (advance_wild_match): Rewrite the function's
1710 description. Change the type of target0, t0 and t1 to char.
1711
7c184d33
TT
17122020-10-09 Tom Tromey <tromey@adacore.com>
1713
1714 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1715
5c4258f4
TT
17162020-10-09 Tom Tromey <tromey@adacore.com>
1717
1718 * ada-lang.h (ada_encode): Return std::string.
1719 * ada-lang.c (ada_encode_1): Return std::string.
1720 (ada_encode): Likewise.
1721 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1722 Update.
1723 * ada-exp.y (block_lookup, write_var_or_type): Update.
1724
3d87245c
HD
17252020-10-09 Hannes Domani <ssbssa@yahoo.de>
1726
1727 PR exp/26714
1728 * printcmd.c (print_formatted): Handle void results as
1729 unformatted prints.
1730
bbb826f5
AB
17312020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * arch/aarch32.c (aarch32_create_target_description): Release the
1734 target_desc_up as late as possible.
1735 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1736 * arch/amd64.c (amd64_create_target_description): Likewise.
1737 * arch/arc.c (arc_create_target_description): Return a
1738 target_desc_up, don't release it.
1739 * arch/arc.h (arc_create_target_description): Update declaration.
1740 (arc_lookup_target_description): Move target_desc_up into the
1741 cache, and return a borrowed pointer.
1742 * arch/arm.c (arm_create_target_description): Release the
1743 target_desc_up as late as possible.
1744 * arch/i386.c (i386_create_target_description): Likewise.
1745 * arch/riscv.h (riscv_create_target_description): Update
1746 declaration to match definition.
1747 * arch/tic6x.c (tic6x_create_target_description): Release the
1748 target_desc_up as late as possible.
1749
361cb219
AB
17502020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1751
1752 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1753 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1754
f5c4b229
JV
17552020-10-09 Jan Vrany <jan.vrany@labware.com>
1756
1757 * source.c (directory_command): Notify observers that "directories"
1758 parameter has changed.
1759
b2701685
TT
17602020-10-08 Tom Tromey <tom@tromey.com>
1761
1762 * cli/cli-cmds.c (print_disassembly): Style function name and
1763 addresses. Add _() wrappers.
1764
ada508b6
SV
17652020-10-08 Shahab Vahedi <shahab@synopsys.com>
1766
1767 * NEWS: Mention ARC support in GDBserver.
1768
51a948fd
AB
17692020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1770
1771 * arch/aarch32.c (aarch32_create_target_description): Release
1772 unique_ptr returned from allocate_target_description.
1773 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1774 * arch/amd64.c (amd64_create_target_description): Likewise.
1775 * arch/arc.c (arc_create_target_description): Likewise.
1776 * arch/arm.c (arm_create_target_description): Likewise.
1777 * arch/i386.c (i386_create_target_description): Likewise.
1778 * arch/riscv.c (riscv_create_target_description): Update return
1779 type. Handle allocate_target_description returning a unique_ptr.
1780 (riscv_lookup_target_description): Update to handle unique_ptr.
1781 * arch/tic6x.c (tic6x_create_target_description): Release
1782 unique_ptr returned from allocate_target_description.
1783 * features/microblaze-with-stack-protect.c: Regenerate.
1784 * features/microblaze.c: Regenerate.
1785 * features/mips-dsp-linux.c: Regenerate.
1786 * features/mips-linux.c: Regenerate.
1787 * features/mips64-dsp-linux.c: Regenerate.
1788 * features/mips64-linux.c: Regenerate.
1789 * features/nds32.c: Regenerate.
1790 * features/nios2.c: Regenerate.
1791 * features/or1k.c: Regenerate.
1792 * features/rs6000/powerpc-32.c: Regenerate.
1793 * features/rs6000/powerpc-32l.c: Regenerate.
1794 * features/rs6000/powerpc-403.c: Regenerate.
1795 * features/rs6000/powerpc-403gc.c: Regenerate.
1796 * features/rs6000/powerpc-405.c: Regenerate.
1797 * features/rs6000/powerpc-505.c: Regenerate.
1798 * features/rs6000/powerpc-601.c: Regenerate.
1799 * features/rs6000/powerpc-602.c: Regenerate.
1800 * features/rs6000/powerpc-603.c: Regenerate.
1801 * features/rs6000/powerpc-604.c: Regenerate.
1802 * features/rs6000/powerpc-64.c: Regenerate.
1803 * features/rs6000/powerpc-64l.c: Regenerate.
1804 * features/rs6000/powerpc-7400.c: Regenerate.
1805 * features/rs6000/powerpc-750.c: Regenerate.
1806 * features/rs6000/powerpc-860.c: Regenerate.
1807 * features/rs6000/powerpc-altivec32.c: Regenerate.
1808 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1809 * features/rs6000/powerpc-altivec64.c: Regenerate.
1810 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1811 * features/rs6000/powerpc-e500.c: Regenerate.
1812 * features/rs6000/powerpc-e500l.c: Regenerate.
1813 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1814 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1815 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1816 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1817 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1818 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1819 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1820 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1821 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1822 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1823 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1824 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1825 * features/rs6000/powerpc-vsx32.c: Regenerate.
1826 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1827 * features/rs6000/powerpc-vsx64.c: Regenerate.
1828 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1829 * features/rs6000/rs6000.c: Regenerate.
1830 * features/rx.c: Regenerate.
1831 * features/s390-gs-linux64.c: Regenerate.
1832 * features/s390-linux32.c: Regenerate.
1833 * features/s390-linux32v1.c: Regenerate.
1834 * features/s390-linux32v2.c: Regenerate.
1835 * features/s390-linux64.c: Regenerate.
1836 * features/s390-linux64v1.c: Regenerate.
1837 * features/s390-linux64v2.c: Regenerate.
1838 * features/s390-te-linux64.c: Regenerate.
1839 * features/s390-tevx-linux64.c: Regenerate.
1840 * features/s390-vx-linux64.c: Regenerate.
1841 * features/s390x-gs-linux64.c: Regenerate.
1842 * features/s390x-linux64.c: Regenerate.
1843 * features/s390x-linux64v1.c: Regenerate.
1844 * features/s390x-linux64v2.c: Regenerate.
1845 * features/s390x-te-linux64.c: Regenerate.
1846 * features/s390x-tevx-linux64.c: Regenerate.
1847 * features/s390x-vx-linux64.c: Regenerate.
1848 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1849 from allocate_target_description.
1850 * target-descriptions.c (allocate_target_description): Update
1851 return type.
1852 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1853 allocate_target_description.
1854
485c47e5
TT
18552020-10-07 Tom Tromey <tromey@adacore.com>
1856
1857 * unittests/search-memory-selftests.c: New file.
1858 * Makefile.in (SELFTESTS_SRCS): Add
1859 unittests/search-memory-selftests.c.
1860
3a135a91
TT
18612020-10-07 Tom Tromey <tromey@adacore.com>
1862
1863 PR gdb/16930:
1864 * findcmd.c (_initialize_mem_search): Mention that the range is
1865 inclusive.
1866
4a72de73
TT
18672020-10-07 Tom Tromey <tromey@adacore.com>
1868
1869 * target.h (simple_search_memory): Don't declare.
1870 * target.c (simple_search_memory): Move to gdbsupport.
1871 (default_search_memory): Update.
1872 * remote.c (remote_target::search_memory): Update.
1873
a038ffd8
SM
18742020-10-07 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * Makefile.in (COMPILE): Add CXXFLAGS.
1877 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1878 (check-headers): Add CXXFLAGS.
1879
cc463201
AK
18802020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1881
1882 * arc-linux-tdep.h: New file.
1883 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1884 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1885 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1886 arc_linux_gregset, arc_linux_v2_regset,
1887 arc_linux_iterate_over_regset_sections,
1888 arc_linux_core_read_description): Implement.
1889 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1890 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1891 (arc_gdbarch_features_create): Add.
1892 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1893
e4bd363f
SV
18942020-10-07 Shahab Vahedi <shahab@synopsys.com>
1895
1896 * arch/arc.h: Rename "arc_gdbarch_features" to
1897 "arc_arch_features".
1898 * arc-tdep.h: Likewise.
1899 * arc-tdep.c: Likewise.
1900
b68bef99
TBA
19012020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1902
1903 * infcmd.c (attach_command): Remove the redundant call to
1904 `clear_proceed_status`.
1905
4641551a
KR
19062020-10-07 Kamil Rytarowski <n54@gmx.com>
1907
1908 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1909
91e5e8db
KR
19102020-10-07 Kamil Rytarowski <n54@gmx.com>
1911
1912 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1913 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1914 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1915
64c03bdb
SM
19162020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1917
1918 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1919 (_initialize_break_catch_sig): Don't allocate array.
1920
31a8f60f
AB
19212020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1922
1923 * symtab.c (find_pc_line): Return unmapped addresses when the
1924 requested address is also unmapped.
1925
9e6dbd8b
SM
19262020-10-05 Simon Marchi <simon.marchi@efficios.com>
1927
1928 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1929 tui/tui-out.h.
1930
a1d217e8
SM
19312020-10-05 Simon Marchi <simon.marchi@efficios.com>
1932
1933 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1934 type::is_vector instead of TYPE_VECTOR.
1935
7d144117
SM
19362020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1937
1938 * auto-load.c (auto_load_objfile_script_1): Don't use
1939 debugfile_holder as temporary variable when stripping drive
1940 letter.
1941
cd096ec8
HD
19422020-10-05 Hannes Domani <ssbssa@yahoo.de>
1943
1944 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1945 Add TYPE_CODE_COMPLEX.
1946 (amd64_windows_return_value): Fix types returned via XMM0.
1947
b58e7f72
AH
19482020-10-05 Alan Hayward <alan.hayward@arm.com>
1949
1950 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1951 AArch64/ARM maintainers.
1952
8d378f27
SM
19532020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1954
1955 * NEWS: Mention set/show debug event-loop.
1956
d5519913
TT
19572020-10-02 Tom Tromey <tromey@adacore.com>
1958
1959 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1960 REG_EXTENDED.
1961
18b67edc
SM
19622020-10-02 Simon Marchi <simon.marchi@efficios.com>
1963
1964 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1965 * procfs.c (procfs_inferior_created): Remove.
1966 (_initialize_procfs): Don't register procfs_inferior_created.
1967
6b01403b
SM
19682020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1969
1970 * async-event.c (invoke_async_signal_handlers): Add debug
1971 print.
1972 (check_async_event_handlers): Likewise.
1973 * event-top.c (show_debug_event_loop): New function.
1974 (_initialize_event_top): Register "set debug event-loop"
1975 setting.
1976
ba988419
SM
19772020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1978
1979 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1980 * debug.h: Remove.
1981 * infrun.c: Include gdbsupport/common-debug.h.
1982 * linux-nat.c: Likewise.
1983
db20ebdf
SM
19842020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1985
1986 * async-event.h (create_async_signal_handler): Add name
1987 parameter.
1988 (create_async_event_handler): Likewise.
1989 * async-event.c (struct async_signal_handler) <name>: New field.
1990 (struct async_event_handler) <name>: New field.
1991 (create_async_signal_handler): Assign name.
1992 (create_async_event_handler): Assign name.
1993 * event-top.c (async_init_signals): Pass name when creating
1994 handler.
1995 * infrun.c (_initialize_infrun): Likewise.
1996 * record-btrace.c (record_btrace_push_target): Likewise.
1997 * record-full.c (record_full_open): Likewise.
1998 * remote-notif.c (remote_notif_state_allocate): Likewise.
1999 * remote.c (remote_target::open_1): Likewise.
2000 * tui/tui-win.c (tui_initialize_win): Likewise.
2001
2554f6f5
SM
20022020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2003
2004 * async-event.c (initialize_async_signal_handlers): Pass name to
2005 add_file_handler
2006 * event-top.c (ui_register_input_event_handler): Likewise.
2007 * linux-nat.c (linux_nat_target::async): Likewise.
2008 * run-on-main-thread.c (_initialize_run_on_main_thread):
2009 Likewise
2010 * ser-base.c (reschedule): Likewise.
2011 (ser_base_async): Likewise.
2012 * tui/tui-io.c: Likewise.
2013 * top.h (struct ui) <num>: New field.
2014 * top.c (highest_ui_num): New variable.
2015 (ui::ui): Initialize num.
2016
a7aba266
SM
20172020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2018
2019 * observable.h <inferior_created>: Remove parameters. Update all
2020 listeners.
2021 * inferior.h (post_create_inferior): Remove target parameter.
2022 Update all callers.
2023
048fde1e 20242020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2025
2026 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2027 and DW_MACRO_undef_strx.
2028 (dwarf_decode_macros): Likewise
2029 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2030 which is the value of DW_AT_str_offsets_base.
2031 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2032 str_offsets_base.
2033
064280be
KR
20342020-10-01 Kamil Rytarowski <n54@gmx.com>
2035
2036 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2037
6ff33035
KR
20382020-10-01 Kamil Rytarowski <n54@gmx.com>
2039
2040 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2041 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2042
1eb6eb79
KR
20432020-10-01 Kamil Rytarowski <n54@gmx.com>
2044
2045 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2046
95eb9e54
TV
20472020-09-30 Tom de Vries <tdevries@suse.de>
2048
2049 PR symtab/26683
2050 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2051
cae21f8e
TT
20522020-09-30 Tom Tromey <tromey@adacore.com>
2053
2054 * dwarf2/read.c (handle_variant): Use constant_value.
2055
529908cb
TT
20562020-09-29 Tom Tromey <tom@tromey.com>
2057
2058 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2059 (read_file_scope, dwarf2_get_pc_bounds)
2060 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2061 (read_structure_type, handle_struct_member_die)
2062 (read_enumeration_type, read_array_type, read_set_type)
2063 (read_tag_pointer_type, read_tag_reference_type)
2064 (read_subroutine_type, read_base_type, read_subrange_type)
2065 (read_full_die_1, partial_die_info::read)
2066 (partial_die_info::read, by, new_symbol)
2067 (dwarf2_const_value_data, dwarf2_const_value_attr)
2068 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2069 (prepare_one_comp_unit): Update.
2070 * dwarf2/attribute.h (DW_UNSND): Remove.
2071
c45bc3f8
TT
20722020-09-29 Tom Tromey <tom@tromey.com>
2073
2074 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2075 (read_subroutine_type, partial_die_info::read)
2076 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2077 (dwarf2_add_member_fn): Update.
2078 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2079 * dwarf2/attribute.c (attribute::as_boolean): New method.
2080
23dca5c3
TT
20812020-09-29 Tom Tromey <tom@tromey.com>
2082
2083 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2084 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2085 method.
2086 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2087
52c14d11
TT
20882020-09-29 Tom Tromey <tom@tromey.com>
2089
2090 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2091 the attribute's form.
2092
e8e5c158
TT
20932020-09-29 Tom Tromey <tom@tromey.com>
2094
2095 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2096 (dwarf2_add_member_fn): Update.
2097 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2098 * dwarf2/attribute.c (attribute::defaulted): New method, from
2099 is_valid_DW_AT_defaulted.
2100
d4df075e
TT
21012020-09-29 Tom Tromey <tom@tromey.com>
2102
2103 * dwarf2/read.c (dw2_get_file_names_reader)
2104 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2105 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2106 (dwarf2_symbol_mark_computed): Use as_unsigned.
2107 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2108 method.
2109 <form_is_section_offset>: Update comment.
2110
bf23a268
TT
21112020-09-29 Tom Tromey <tom@tromey.com>
2112
2113 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2114 dwarf2_default_access_attribute. Look up attribute.
2115 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2116 Update.
2117
7a5f294d
TT
21182020-09-29 Tom Tromey <tom@tromey.com>
2119
2120 * dwarf2/read.c (skip_one_die): Update.
2121 (read_full_die_1): Change how reprocessing is done.
2122 (partial_die_info::read): Update.
2123 (read_attribute_value): Remove need_reprocess parameter.
2124 (read_attribute): Likewise.
2125 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2126 New method.
2127
36d378cf
TT
21282020-09-29 Tom Tromey <tom@tromey.com>
2129
2130 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2131 (dwarf2_const_value_attr, dump_die_shallow)
2132 (dwarf2_fetch_constant_bytes): Update.
2133 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2134 comment.
2135 <set_address>: New method.
2136 (DW_ADDR): Remove.
2137 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2138 (attribute::as_string, attribute::as_address): Add assert.
2139
fe56917a
TT
21402020-09-29 Tom Tromey <tom@tromey.com>
2141
2142 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2143 (read_attribute_reprocess, read_attribute_value): Update.
2144 (read_attribute): Clear requires_reprocessing.
2145 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2146 form_requires_reprocessing>: New methods.
2147 <string_init>: Clear requires_reprocessing.
2148 <set_unsigned_reprocess>: New method.
2149 <name>: Shrink by one bit.
2150 <requires_reprocessing>: New member.
2151 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2152 method.
2153
414ad644
TT
21542020-09-29 Tom Tromey <tom@tromey.com>
2155
2156 * dwarf2/read.c (read_attribute_value): Update.
2157 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2158 set_unsigned>: New methods.
2159 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2160
1bc397c5
TT
21612020-09-29 Tom Tromey <tom@tromey.com>
2162
2163 * dwarf2/read.c (get_alignment, read_array_order)
2164 (read_attribute_value, dwarf2_const_value_attr)
2165 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2166 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2167 New methods.
2168 (DW_SND): Remove.
2169
630ed6b9
TT
21702020-09-29 Tom Tromey <tom@tromey.com>
2171
2172 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2173 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2174 Update.
2175 * dwarf2/attribute.h (struct attribute) <as_signature,
2176 set_signature>: New methods.
2177 (DW_SIGNATURE): Remove.
2178
9d2246fc
TT
21792020-09-29 Tom Tromey <tom@tromey.com>
2180
2181 * dwarf2/read.c (read_call_site_scope)
2182 (handle_data_member_location, dwarf2_add_member_fn)
2183 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2184 (partial_die_info::read, read_attribute_value)
2185 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2186 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2187 (dwarf2_symbol_mark_computed): Update.
2188 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2189 methods.
2190 (DW_BLOCK): Remove.
2191 * dwarf2/attribute.c (attribute::form_is_block): Add
2192 DW_FORM_data16.
2193
c6481205
TT
21942020-09-29 Tom Tromey <tom@tromey.com>
2195
2196 * dwarf2/read.c (read_cutu_die_from_dwo)
2197 (read_attribute_reprocess, read_attribute_value, read_attribute)
2198 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2199 (dwarf2_fetch_constant_bytes): Update.
2200 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2201 <set_string_noncanonical, set_string_canonical>: New methods.
2202 <string_is_canonical>: Update comment.
2203 <canonical_string_p>: Add assert.
2204 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2205 * dwarf2/attribute.c (attribute::form_is_string): New method.
2206 (attribute::string): Use it.
2207
3b64bf15
TT
22082020-09-29 Tom Tromey <tom@tromey.com>
2209
2210 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2211 (dump_die_shallow): Use canonical_string_p.
2212 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2213 method.
2214
2c830f54
TT
22152020-09-29 Tom Tromey <tom@tromey.com>
2216
2217 * dwarf2/read.c (partial_die_info::read)
2218 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2219 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2220 attribute::as_string.
2221
6c412691
TT
22222020-09-29 Tom Tromey <tom@tromey.com>
2223
2224 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2225 DW_ADDR.
2226 (attribute::string): Don't use DW_STRING.
2227 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2228 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2229
95f982e5
TT
22302020-09-29 Tom Tromey <tom@tromey.com>
2231
2232 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2233 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2234 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2235 * dwarf2/attribute.h (struct attribute): Rename methods.
2236 * dwarf2/attribute.c (attribute::as_address): Rename from
2237 value_as_address.
2238 (attribute::as_string): Rename from value_as_string.
2239
f800b00e
TT
22402020-09-29 Tom Tromey <tom@tromey.com>
2241
2242 * dwarf2/read.c (partial_die_info::read) <case
2243 DW_AT_linkage_name>: Use value_as_string.
2244 (dwarf2_string_attr): Use value_as_string.
2245 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2246 method.
2247 * dwarf2/attribute.c (attribute::value_as_string): New method.
2248
de38d64a
PA
22492020-09-29 Pedro Alves <pedro@palves.net>
2250
2251 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2252 defined before using '#pragma GCC diagnostic' instead of checking
2253 __clang__.
2254
9aed480c
TT
22552020-09-28 Tom Tromey <tom@tromey.com>
2256
2257 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2258 (handle_signal_stop): Update.
2259 * procfs.c (procfs_target::insert_watchpoint): Update.
2260 * target.h (target_have_steppable_watchpoint): Now a function.
2261
8a3ecb79
TT
22622020-09-28 Tom Tromey <tom@tromey.com>
2263
2264 * infrun.c (set_schedlock_func): Update.
2265 * target.h (target_can_lock_scheduler): Now a function.
2266
55f6301a
TT
22672020-09-28 Tom Tromey <tom@tromey.com>
2268
2269 * inferior.h (class inferior) <has_execution>: Update.
2270 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2271 * valops.c (find_function_in_inferior)
2272 (value_allocate_space_in_inferior): Update.
2273 * top.c (kill_or_detach): Update.
2274 * target.c (target_preopen, set_target_permissions): Update.
2275 (target_has_execution_current): Remove.
2276 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2277 Update.
2278 * solib.c (update_solib_list, reload_shared_libraries): Update.
2279 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2280 * solib-dsbt.c (enable_break): Update.
2281 * score-tdep.c (score7_fetch_inst): Update.
2282 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2283 Update.
2284 * remote.c (remote_target::start_remote)
2285 (remote_target::remote_check_symbols, remote_target::open_1)
2286 (remote_target::remote_detach_1, remote_target::verify_memory)
2287 (remote_target::xfer_partial, remote_target::read_description)
2288 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2289 * record-full.c (record_full_open_1): Update.
2290 * record-btrace.c (record_btrace_target_open): Update.
2291 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2292 (value_nsstring): Update.
2293 * linux-thread-db.c (add_thread_db_info)
2294 (thread_db_find_new_threads_silently, check_thread_db_callback)
2295 (try_thread_db_load_1, record_thread): Update.
2296 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2297 Update.
2298 * linux-fork.c (checkpoint_command): Update.
2299 * infrun.c (set_non_stop, set_observer_mode)
2300 (check_multi_target_resumption, for_each_just_stopped_thread)
2301 (maybe_remove_breakpoints, normal_stop)
2302 (class infcall_suspend_state): Update.
2303 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2304 (info_program_command, attach_command): Update.
2305 * infcall.c (call_function_by_hand_dummy): Update.
2306 * inf-loop.c (inferior_event_handler): Update.
2307 * gcore.c (gcore_command, derive_heap_segment): Update.
2308 * exec.c (exec_file_command): Update.
2309 * eval.c (evaluate_subexp): Update.
2310 * compile/compile.c (compile_to_object): Update.
2311 * cli/cli-dump.c (restore_command): Update.
2312 * breakpoint.c (update_watchpoint)
2313 (update_inserted_breakpoint_locations)
2314 (insert_breakpoint_locations, get_bpstat_thread): Update.
2315 * target.h (target_has_execution): Remove macro.
2316 (target_has_execution_current): Don't declare.
2317 (target_has_execution): Rename from target_has_execution_1. Add
2318 argument default.
2319
05374cfd
TT
23202020-09-28 Tom Tromey <tom@tromey.com>
2321
2322 * mi/mi-main.c (exec_reverse_continue)
2323 (mi_cmd_list_target_features): Update.
2324 * infrun.c (set_exec_direction_func): Update.
2325 * target.c (default_execution_direction): Update.
2326 * reverse.c (exec_reverse_once): Update.
2327 * target.h (target_can_execute_reverse): Now a function.
2328
9dccd06e
TT
23292020-09-28 Tom Tromey <tom@tromey.com>
2330
2331 * tui/tui-regs.c (tui_get_register)
2332 (tui_data_window::show_registers): Update.
2333 * thread.c (scoped_restore_current_thread::restore)
2334 (scoped_restore_current_thread::scoped_restore_current_thread):
2335 Update.
2336 * regcache-dump.c (regcache_print): Update.
2337 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2338 Update.
2339 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2340 * mep-tdep.c (current_me_module, current_options): Update.
2341 * linux-thread-db.c (thread_db_load): Update.
2342 * infcmd.c (registers_info, info_vector_command)
2343 (info_float_command): Update.
2344 * ia64-tdep.c (ia64_frame_prev_register)
2345 (ia64_sigtramp_frame_prev_register): Update.
2346 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2347 * gcore.c (derive_stack_segment): Update.
2348 * frame.c (get_current_frame, has_stack_frames): Update.
2349 * findvar.c (language_defn::read_var_value): Update.
2350 * arm-tdep.c (arm_pc_is_thumb): Update.
2351 * target.c (target_has_registers): Rename from
2352 target_has_registers_1.
2353 * target.h (target_has_registers): Remove macro.
2354 (target_has_registers): Rename from target_has_registers_1.
2355
841de120
TT
23562020-09-28 Tom Tromey <tom@tromey.com>
2357
2358 * windows-tdep.c (tlb_make_value): Update.
2359 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2360 * thread.c (scoped_restore_current_thread::restore)
2361 (scoped_restore_current_thread::scoped_restore_current_thread)
2362 (thread_command): Update.
2363 * stack.c (backtrace_command_1, frame_apply_level_command)
2364 (frame_apply_all_command, frame_apply_command): Update.
2365 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2366 Update.
2367 * gcore.c (derive_stack_segment): Update.
2368 * frame.c (get_current_frame, has_stack_frames): Update.
2369 * auxv.c (info_auxv_command): Update.
2370 * ada-tasks.c (ada_build_task_list): Update.
2371 * target.c (target_has_stack): Rename from target_has_stack_1.
2372 * target.h (target_has_stack): Remove macro.
2373 (target_has_stack): Rename from target_has_stack_1.
2374
a739972c
TT
23752020-09-28 Tom Tromey <tom@tromey.com>
2376
2377 * target.c (target_has_memory): Rename from target_has_memory_1.
2378 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2379 * thread.c (scoped_restore_current_thread::restore)
2380 (scoped_restore_current_thread::scoped_restore_current_thread):
2381 Update.
2382 * frame.c (get_current_frame, has_stack_frames): Update.
2383 * target.h (target_has_memory): Remove macro.
2384 (target_has_memory): Rename from target_has_memory_1.
2385
5b8a4776
TT
23862020-09-28 Tom Tromey <tom@tromey.com>
2387
2388 * target.c (target_has_all_memory_1): Remove.
2389 * target.h (target_has_all_memory): Remove define.
2390 (target_has_all_memory_1): Don't declare.
2391
bd356ec6
SM
23922020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2393
2394 * ser-base.c: Adjust comments formatting.
2395
2c72d5e5
TT
23962020-09-27 Tom Tromey <tom@tromey.com>
2397
2398 PR tui/25342:
2399 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2400
35a98237
TT
24012020-09-27 Tom Tromey <tom@tromey.com>
2402
2403 PR tui/25342:
2404 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2405
9e820dec
TT
24062020-09-27 Tom Tromey <tom@tromey.com>
2407
2408 * unittests/tui-selftests.c: Update.
2409 * tui/tui-winsource.h (struct tui_source_window_base)
2410 <extra_margin, show_line_number, refresh_pad>: New methods.
2411 <m_max_length, m_pad>: New members.
2412 (tui_copy_source_line): Update.
2413 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2414 first_col, line_width, ndigits parameters. Add length.
2415 (tui_source_window_base::show_source_line): Write to pad. Line
2416 number now 0-based.
2417 (tui_source_window_base::refresh_pad): New method.
2418 (tui_source_window_base::show_source_content): Write to pad. Call
2419 refresh_pad.
2420 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2421 not refill.
2422 (tui_source_window_base::update_exec_info): Call
2423 show_line_number.
2424 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2425 method.
2426 <m_digits>: New member.
2427 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2428 and m_max_length.
2429 (tui_source_window::show_line_number): New method.
2430 * tui/tui-io.h (tui_puts): Fix comment.
2431 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2432 m_max_length.
2433
c15c15c8
TT
24342020-09-27 Tom Tromey <tom@tromey.com>
2435
2436 * tui/tui-winsource.c
2437 (tui_source_window_base::set_is_exec_point_at): Don't call
2438 show_source_line.
2439
149830c1
TT
24402020-09-27 Tom Tromey <tom@tromey.com>
2441
2442 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2443 method.
2444 <erase>: Update.
2445 <cursor_x, cursor_y>: Remove.
2446 <m_inner_window>: New member.
2447 (tui_py_window::rerender): Create inner window.
2448 (tui_py_window::output): Write to inner window.
2449
8f9929bb
GR
24502020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2451
2452 PR python/26586
2453 * cli/cli-script.c (execute_control_commands): don't set
2454 instream to nullptr here as this breaks the from_tty argument
2455 to gdb.execute in Python.
2456 (execute_user_command): set instream to nullptr here instead.
2457
956bdb59
SM
24582020-09-25 Simon Marchi <simon.marchi@efficios.com>
2459
2460 * infrun.h (infrun_debug_printf): Fix formatting.
2461 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2462
3b93626b
SJ
24632020-09-25 Saagar Jha <saagar@saagarjha.com>
2464
2465 * compile/compile-object-load.h (struct munmap_list): Add
2466 explicitly-defined move constructor.
2467
b551a89f
TT
24682020-09-24 Tom Tromey <tromey@adacore.com>
2469
2470 PR tui/26638:
2471 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2472 method.
2473 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2474 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2475 (tui_prev_win): Rewrite.
2476
99bb393f
HD
24772020-09-23 Hannes Domani <ssbssa@yahoo.de>
2478
2479 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2480 in WOW64 processes as SIGINT.
2481 * nat/windows-nat.h: Make wow64_process a shared variable.
2482 * windows-nat.c: Remove static wow64_process variable.
2483
20a5fcbd
TT
24842020-09-23 Tom Tromey <tom@tromey.com>
2485
2486 PR symtab/25470:
2487 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2488 offset and bit size.
2489 * printcmd.c (print_scalar_formatted): Handle zero-length
2490 integer.
2491 (print_scalar_formatted): Use bit_size_differs_p.
2492 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2493 constant.
2494 (union type_specific): <int_stuff>: New member.
2495 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2496 methods.
2497 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2498 TYPE_SPECIFIC_FIELD.
2499 (recursive_dump_type, copy_type_recursive): Update.
2500 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2501 DW_AT_data_bit_offset.
2502
bac51ab7
TT
25032020-09-23 Tom Tromey <tom@tromey.com>
2504
2505 * utils.h (class gdb_argv): Add move operators.
2506 <append>: New methods.
2507 * compile/compile.c (build_argc_argv): Remove.
2508 (compile_args_argc): Remove.
2509 (compile_args_argv): Change type.
2510 (set_compile_args): Simplify.
2511 (append_args): Remove.
2512 (filter_args): Remove argcp parameter.
2513 (get_args): Return gdb_argv. Simplify.
2514 (compile_to_object): Update.
2515
92677124
TT
25162020-09-23 Tom Tromey <tom@tromey.com>
2517
2518 * compile/compile-object-run.c (do_module_cleanup)
2519 <~do_module_cleanup> :Remove.
2520 (do_module_cleanup): Update.
2521 * compile/compile-object-load.h (struct munmap_list): Add move
2522 assignment operator.
2523 <source_file>: Now a std::string.
2524 <munmap_list>: Rename. No longer a pointer.
2525 * compile/compile-object-load.c (struct setup_sections_data): Add
2526 constructor.
2527 <setup_one_section>: Declare.
2528 <munmap_list>: Move earlier.
2529 <m_bfd>: New member.
2530 <m_last_size, m_last_section_first, m_last_prot,
2531 m_last_max_alignment>: Rename, add initializers where needed.
2532 (setup_sections_data::setup_one_section): Rename from
2533 setup_sections. Update.
2534 (compile_object_load): Update. Don't use bfd_map_over_sections.
2535
e616f60a
TT
25362020-09-23 Tom Tromey <tom@tromey.com>
2537
2538 * compile/compile-object-run.c (struct do_module_cleanup): Add
2539 parameters to constructor. Update destructor.
2540 <source_file, scope, scope_data, out_value_type, out_value_addr,
2541 munmap_list_head, objfile_name_string>: Remove.
2542 <module>: New member.
2543 (do_module_cleanup): Update.
2544 (compile_object_run): Update.
2545
e947a848
TT
25462020-09-23 Tom Tromey <tom@tromey.com>
2547
2548 * compile/compile.c (eval_compile_command): Update.
2549 * compile/compile-object-run.h (compile_object_run): Take a
2550 compile_module_up.
2551 * compile/compile-object-run.c (compile_object_run): Take a
2552 compile_module_up.
2553 * compile/compile-object-load.h (struct compile_module): Add
2554 constructor, destructor.
2555 (compile_module_up): New typedef.
2556 (compile_object_load): Return compile_object_up.
2557 * compile/compile-object-load.c (compile_object_load): Return
2558 compile_module_up.
2559
0dbf6ee6
TT
25602020-09-23 Tom Tromey <tom@tromey.com>
2561
2562 * compile/compile-object-run.c (struct do_module_cleanup): Add
2563 constructor, destructor.
2564 <objfile_name_string>: Don't use struct hack.
2565 (do_module_cleanup): Use delete.
2566 (compile_object_run): Use new.
2567
ebe824f5
TT
25682020-09-23 Tom Tromey <tom@tromey.com>
2569
2570 * compile/compile-cplus-types.c
2571 (compile_cplus_convert_struct_or_union): Use std::vector.
2572 (compile_cplus_convert_func): Likewise.
2573 * compile/compile-c-types.c (convert_func): Use std::vector.
2574
5dd918d9
TT
25752020-09-21 Tom Tromey <tromey@adacore.com>
2576
2577 * sparc-tdep.c (sparc32_skip_prologue): Use
2578 skip_prologue_using_sal.
2579
5486c517
TT
25802020-09-19 Tom Tromey <tom@tromey.com>
2581
2582 * symfile.c (add_section_size_callback): Remove.
2583 (load_one_section): Rename from load_section_callback. Change
2584 parameters.
2585 (generic_load): Use foreach.
2586
8a6bb1d1
TT
25872020-09-19 Tom Tromey <tom@tromey.com>
2588
2589 * exec.c (add_to_section_table): Remove.
2590 (build_section_table): Use foreach.
2591
08f93a1a
TT
25922020-09-19 Tom Tromey <tom@tromey.com>
2593
2594 * elfread.c (elf_locate_sections): Change parameters.
2595 (elf_symfile_read): Use foreach.
2596
03cd72b8
TT
25972020-09-19 Tom Tromey <tom@tromey.com>
2598
2599 * cli/cli-dump.c (struct callback_data): Remove.
2600 (restore_one_section): Rename from restore_section_callback.
2601 Change parameters.
2602 (restore_binary_file): Change parameters.
2603 (restore_command): Use foreach.
2604
f4f2b85f
TT
26052020-09-19 Tom Tromey <tom@tromey.com>
2606
2607 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2608 (gcore_copy_callback): Likewise.
2609 (gcore_memory_sections): Use foreach.
2610
b35c1d1c
TT
26112020-09-19 Tom Tromey <tom@tromey.com>
2612
2613 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2614 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2615 parameters.
2616 (generic_elf_osabi_sniffer): Use foreach.
2617 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2618 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2619
5bb6e9dd
TT
26202020-09-19 Tom Tromey <tom@tromey.com>
2621
2622 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2623 (dwarf2_get_dwz_file): Use foreach.
2624 (dwarf2_locate_dwo_sections): Change parameters.
2625 (open_and_init_dwo_file): Use foreach.
2626 (dwarf2_locate_common_dwp_sections): Change parameters.
2627 (open_and_init_dwp_file): Use foreach.
2628
ad7277da
TT
26292020-09-19 Tom Tromey <tom@tromey.com>
2630
2631 * symfile.h: (find_lowest_section): Don't declare.
2632 * symfile.c (find_lowest_section): Now static. Change
2633 parameters.
2634 (struct place_section_arg): Remove.
2635 (place_section): Change parameters.
2636 (addr_info_make_relative): Use foreach.
2637 (symfile_dummy_outputs): Remove.
2638 (default_symfile_relocate): Use foreach.
2639
cb814f2e
TT
26402020-09-19 Tom Tromey <tom@tromey.com>
2641
2642 * objfiles.c (add_to_objfile_sections): Rename from
2643 add_to_objfile_sections_full.
2644 (add_to_objfile_sections): Remove.
2645 (build_objfile_section_table): Use foreach.
2646
3cabfd26
TT
26472020-09-19 Tom Tromey <tom@tromey.com>
2648
2649 * stap-probe.c (get_stap_base_address_1): Remove.
2650 (get_stap_base_address): Use foreach.
2651
1ce51eb5
TT
26522020-09-19 Tom Tromey <tom@tromey.com>
2653
2654 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2655 parameters.
2656 (gdb_bfd_close_or_warn): Use foreach.
2657
a190fabb
TT
26582020-09-19 Tom Tromey <tom@tromey.com>
2659
2660 * corelow.c (add_to_thread_list): Change parameters.
2661 (core_target_open): Use foreach.
2662
cafb0d81
TT
26632020-09-19 Tom Tromey <tom@tromey.com>
2664
2665 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2666 existing function.
2667
c8d5abea
AB
26682020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2669
2670 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2671 for arrays.
2672
6d816919
AB
26732020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2674
2675 * eval.c: Remove 'f-lang.h' include.
2676 (value_f90_subarray): Moved to f-lang.c.
2677 (eval_call): Renamed to...
2678 (evaluate_subexp_do_call): ...this, is no longer static, header
2679 comment moved into header file.
2680 (evaluate_funcall): Update call to eval_call.
2681 (skip_undetermined_arglist): Moved to f-lang.c.
2682 (fortran_value_subarray): Likewise.
2683 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2684 moved to evaluate_subexp_f.
2685 (calc_f77_array_dims): Moved to f-lang.c
2686 * expprint.c (print_subexp_funcall): New function.
2687 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2688 moved to print_subexp_f, OP_FUNCALL uses new function.
2689 (dump_subexp_body_funcall): New function.
2690 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2691 moved to dump_subexp_f, OP_FUNCALL uses new function.
2692 * expression.h (evaluate_subexp_do_call): Declare.
2693 * f-lang.c (value_f90_subarray): Moved from eval.c.
2694 (skip_undetermined_arglist): Likewise.
2695 (calc_f77_array_dims): Likewise.
2696 (fortran_value_subarray): Likewise.
2697 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2698 (operator_length_f): Likewise.
2699 (print_subexp_f): Likewise.
2700 (dump_subexp_body_f): Likewise.
2701 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2702 declaration of this operation to here.
2703 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2704 support moved to operator_length_f.
2705 * parser-defs.h (dump_subexp_body_funcall): Declare.
2706 (print_subexp_funcall): Declare.
2707 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2708 fortran-operator.def.
2709
8c37706a
AB
27102020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2711
2712 * eval.c (fortran_value_subarray): New function, content is taken
2713 from...
2714 (evaluate_subexp_standard): ...here, in two places. Now arrays
2715 and strings both call the new function.
2716 (calc_f77_array_dims): Add header comment, handle strings.
2717
14f9473c
VC
27182020-09-18 Victor Collod <vcollod@nvidia.com>
2719
2720 PR gdb/26635
2721 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2722 (i386_analyze_prologue): Call i386_skip_endbr.
2723
b60cea74
TT
27242020-09-18 Tom Tromey <tromey@adacore.com>
2725
2726 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2727 (windows_nat_target::wait): Update.
2728 * target/wait.h (enum target_wait_flag): New. Use
2729 DEF_ENUM_FLAGS_TYPE.
2730 * target/target.h (target_wait): Change type of options.
2731 * target.h (target_options_to_string, default_target_wait):
2732 Update.
2733 (struct target_ops) <wait>: Change type of options.
2734 * target.c (target_wait, default_target_wait, do_option): Change
2735 type of "options".
2736 (target_options_to_string): Likewise.
2737 * target-delegates.c: Rebuild.
2738 * target-debug.h (target_debug_print_target_wait_flags): Rename
2739 from target_debug_print_options.
2740 * sol-thread.c (class sol_thread_target) <wait>: Update.
2741 (sol_thread_target::wait): Update.
2742 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2743 (rs6000_nat_target::wait): Update.
2744 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2745 Update.
2746 (remote_target::wait_ns, remote_target::wait_as): Change type of
2747 "options".
2748 (remote_target::wait): Update.
2749 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2750 (gdbsim_target::wait): Update.
2751 * record-full.c (class record_full_base_target) <wait>: Update.
2752 (record_full_wait_1): Change type of "options".
2753 (record_full_base_target::wait): Update.
2754 * record-btrace.c (class record_btrace_target) <wait>: Update.
2755 (record_btrace_target::wait): Update.
2756 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2757 Update.
2758 (ravenscar_thread_target::wait): Update.
2759 * procfs.c (class procfs_target) <wait>: Update.
2760 (procfs_target::wait): Update.
2761 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2762 * obsd-nat.c (obsd_nat_target::wait): Update.
2763 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2764 (nto_procfs_target::wait): Update.
2765 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2766 * nbsd-nat.c (nbsd_wait): Change type of "options".
2767 (nbsd_nat_target::wait): Update.
2768 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2769 (thread_db_target::wait): Update.
2770 * linux-nat.h (class linux_nat_target) <wait>: Update.
2771 * linux-nat.c (linux_nat_target::wait): Update.
2772 (linux_nat_wait_1): Update.
2773 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2774 "options".
2775 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2776 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2777 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2778 (go32_nat_target::wait): Update.
2779 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2780 * gnu-nat.c (gnu_nat_target::wait): Update.
2781 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2782 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2783 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2784 * darwin-nat.c (darwin_nat_target::wait): Update.
2785 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2786 (bsd_uthread_target::wait): Update.
2787 * aix-thread.c (class aix_thread_target) <wait>: Update.
2788 (aix_thread_target::wait): Update.
2789
0295dde6
AB
27902020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2791
2792 * compile/compile-object-run.c (create_copied_type_recursive): New
2793 function.
2794 (compile_object_run): Use new function.
2795
d3483b43
JT
27962020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2797
2798 * NEWS: Mention x86_64 Cygwin core file support.
2799
e7d612ad
JT
28002020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2801
2802 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2803 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2804
aff9d387
JT
28052020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2806
62a5151b
JT
2807 * windows-tdep.h: Add prototypes.
2808 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2809 (i386_windows_core_pid_to_str): Move and rename ...
2810 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2811 (windows_core_pid_to_str): ... and here.
2812 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2813
28142020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2815 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2816 (amd64_windows_init_abi_common): ... and register.
2817
7d155da3
JT
28182020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2819
2820 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2821 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2822
e8ef12b9
PA
28232020-09-18 Pedro Alves <pedro@palves.net>
2824
2825 PR gdb/26631
2826 * thread.c (thread_find_command): Switch inferior before calling
2827 target methods.
2828
c1e1314d
TT
28292020-09-17 Tom Tromey <tromey@adacore.com>
2830
2831 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2832 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2833 (tdesc_arch_data_up): New typedef.
2834 (tdesc_use_registers, tdesc_data_alloc): Update.
2835 (tdesc_data_cleanup): Don't declare.
2836 * target-descriptions.c (tdesc_data_alloc): Return a
2837 tdesc_arch_data_up.
2838 (tdesc_arch_data_deleter::operator()): Rename from
2839 tdesc_data_cleanup. Change argument type.
2840 (tdesc_use_registers): Change early_data to an rvalue reference.
2841 (tdesc_use_registers): Don't use delete.
2842 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2843 * s390-tdep.c (s390_gdbarch_init): Update.
2844 * rx-tdep.c (rx_gdbarch_init): Update.
2845 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2846 * riscv-tdep.c (riscv_gdbarch_init): Update.
2847 * or1k-tdep.c (or1k_gdbarch_init): Update.
2848 * nios2-tdep.c (nios2_gdbarch_init): Update.
2849 * nds32-tdep.c (nds32_gdbarch_init): Update.
2850 * mips-tdep.c (mips_gdbarch_init): Update.
2851 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2852 * m68k-tdep.c (m68k_gdbarch_init): Update.
2853 * i386-tdep.c (i386_gdbarch_init): Update.
2854 * arm-tdep.c (arm_gdbarch_init): Update.
2855 * arc-tdep.c (arc_tdesc_init): Update.
2856 (arc_gdbarch_init): Update.
2857 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2858
0363df3d
HD
28592020-09-17 Hannes Domani <ssbssa@yahoo.de>
2860
2861 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2862 for WOW64 processes.
2863
280a9412
TT
28642020-09-17 Tom Tromey <tom@tromey.com>
2865
2866 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2867
6108fd18
TT
28682020-09-17 Tom Tromey <tom@tromey.com>
2869
2870 * value.c (preserve_values): Update.
2871 * python/py-type.c (save_objfile_types): Update.
2872 * guile/scm-type.c (save_objfile_types): Update.
2873 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2874 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2875 * compile/compile-object-run.c (compile_object_run): Update.
2876
fa9b1164
TT
28772020-09-17 Tom Tromey <tom@tromey.com>
2878
2879 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2880 Remove.
2881 <m_table>: Now htab_up.
2882 * typeprint.c (typedef_hash_table::recursively_update)
2883 (typedef_hash_table::add_template_parameters)
2884 (typedef_hash_table::typedef_hash_table): Update.
2885 (typedef_hash_table::~typedef_hash_table): Remove.
2886 (typedef_hash_table::typedef_hash_table)
2887 (typedef_hash_table::find_global_typedef)
2888 (typedef_hash_table::find_typedef): Update.
2889
eb53f105
TT
28902020-09-17 Tom Tromey <tom@tromey.com>
2891
2892 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2893
7a8a5d47
TT
28942020-09-17 Tom Tromey <tom@tromey.com>
2895
2896 * linespec.c (class decode_compound_collector)
2897 <~decode_compound_collector>: Remove.
2898 <m_unique_syms>: Now htab_up.
2899 (decode_compound_collector::operator ()): Update.
2900 (class symtab_collector) <~symtab_collector>: Remove.
2901 <m_symtab_table>: Now htab_up.
2902 (symtab_collector::operator ()): Update.
2903
99032cfc
TT
29042020-09-17 Tom Tromey <tom@tromey.com>
2905
2906 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2907 (filename_seen_cache::clear): Update.
2908 (~filename_seen_cache): Remove.
2909 (filename_seen_cache::seen): Update.
2910 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2911 htab_up.
2912 <~filename_seen_cache>: Remove.
2913 <traverse>: Update.
2914
32580f6d
TT
29152020-09-17 Tom Tromey <tom@tromey.com>
2916
2917 * completer.c (completion_tracker::discard_completions)
2918 (completion_tracker::~completion_tracker)
2919 (completion_tracker::maybe_add_completion)
2920 (completion_tracker::remove_completion)
2921 (completion_tracker::recompute_lowest_common_denominator)
2922 (completion_tracker::build_completion_result): Update.
2923 * completer.h (class completion_tracker) <have_completions>:
2924 Update.
2925 <m_entries_hash>: Now htab_up.
2926
c1fb9836
TT
29272020-09-17 Tom Tromey <tom@tromey.com>
2928
2929 * breakpoint.c (ambiguous_names_p): Use htab_up.
2930
88f07206
TT
29312020-09-17 Tom Tromey <tom@tromey.com>
2932
2933 * auto-load.c (struct auto_load_pspace_info)
2934 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2935 <loaded_script_files, loaded_script_texts>: Change type to
2936 htab_up.
2937 (~auto_load_pspace_info) Remove.
2938 (init_loaded_scripts_info, maybe_add_script_file)
2939 (maybe_add_script_text, auto_load_info_scripts): Update.
2940
9519b2ee
TT
29412020-09-17 Tom Tromey <tromey@adacore.com>
2942
2943 * c-exp.y (name_obstack): Now static.
2944
d2cd4113
CC
29452020-09-17 Chungyi Chi <demonic@csie.io>
2946
2947 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2948
b650a282
SM
29492020-09-16 Simon Marchi <simon.marchi@efficios.com>
2950
2951 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2952 (add_solib_catchpoint): Likewise.
2953 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2954 to bool.
2955 (add_solib_catchpoint): Change int parameter/variable to bool.
2956 (catch_load_or_unload): Likewise.
2957 (init_catchpoint): Likewise.
2958 (create_fork_vfork_event_catchpoint): Likewise.
2959 (catch_fork_command_1): Likewise.
2960 (catch_exec_command_1): Likewise.
2961
4d0bcfcf
SM
29622020-09-16 Simon Marchi <simon.marchi@efficios.com>
2963
2964 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2965 Change instance_flags to m_instance_flags.
2966
fe830662
TT
29672020-09-16 Tom Tromey <tromey@adacore.com>
2968
2969 PR gdb/26598:
2970 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2971
fe5ddfc3
JB
29722020-09-16 John Baldwin <jhb@FreeBSD.org>
2973
2974 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2975 PL_FLAG_EXEC.
2976 (fbsd_nat_target::insert_exec_catchpoint)
2977 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2978 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2979 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2980
e911c666
JB
29812020-09-16 John Baldwin <jhb@FreeBSD.org>
2982
2983 * configure.ac: Remove check for kinfo_getvmmap().
2984 * configure, config.in: Regenerate.
2985 * fbsd-nat.c (fbsd_read_mapping): Remove
2986 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2987 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2988 kinfo_get_vmmap() are always present.
2989
1f17d372
JB
29902020-09-16 John Baldwin <jhb@FreeBSD.org>
2991
2992 * fbsd-nat.c: Always include support for
2993 TARGET_OBJECT_SIGNAL_INFO.
2994
bcb1da7f
JB
29952020-09-16 John Baldwin <jhb@FreeBSD.org>
2996
2997 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2998 sysctl and remove procfs fallback.
2999
5515f729
JB
30002020-09-16 John Baldwin <jhb@FreeBSD.org>
3001
3002 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3003 * fbsd-nat.h: Likewise.
3004
da1df1db
TBA
30052020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3006
3007 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3008 argument.
3009
0e25e767
AB
30102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3011
3012 * ada-lang.c (ada_language_data): Delete.
3013 (ada_language): Remove references to ada_language_data.
3014 * c-lang.c (c_language_data): Delete.
3015 (c_language): Remove references to c_language_data.
3016 (cplus_language_data): Delete.
3017 (cplus_language): Remove references to cplus_language_data.
3018 (asm_language_data): Delete.
3019 (asm_language): Remove references to asm_language_data.
3020 (minimal_language_data): Delete.
3021 (minimal_language): Remove references to minimal_language_data.
3022 * d-lang.c (d_language_data): Delete.
3023 (d_language): Remove references to d_language_data.
3024 * f-lang.c (f_language_data): Delete.
3025 (f_language): Remove references to f_language_data.
3026 * go-lang.c (go_language_data): Delete.
3027 (go_language): Remove references to go_language_data.
3028 * language.c (unknown_language_data): Delete.
3029 (unknown_language): Remove references to unknown_language_data.
3030 (auto_language_data): Delete.
3031 (auto_language): Remove references to auto_language_data.
3032 * language.h (language_data): Delete struct.
3033 (language_defn): No longer inherit from language_data.
3034 * m2-lang.c (m2_language_data): Delete.
3035 (m2_language): Remove references to m2_language_data.
3036 * objc-lang.c (objc_language_data): Delete.
3037 (objc_language): Remove references to objc_language_data.
3038 * opencl-lang.c (opencl_language_data): Delete.
3039 (opencl_language): Remove references to opencl_language_data.
3040 * p-lang.c (pascal_language_data): Delete.
3041 (pascal_language): Remove references to pascal_language_data.
3042 * rust-lang.c (rust_language_data): Delete.
3043 (rust_language): Remove references to rust_language_data.
3044
b7c6e27d
AB
30452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3046
3047 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3048 initializer.
3049 (ada_language::opcode_print_table): New member function.
3050 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3051 (c_language::opcode_print_table): New member function.
3052 (cplus_language_data): Remove la_op_print_tab initializer.
3053 (cplus_language::opcode_print_table): New member function.
3054 (asm_language_data): Remove la_op_print_tab initializer.
3055 (asm_language::opcode_print_table): New member function.
3056 (minimal_language_data): Remove la_op_print_tab initializer.
3057 (minimal_language::opcode_print_table): New member function.
3058 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3059 (d_language::opcode_print_table): New member function.
3060 * expprint.c (print_subexp_standard): Update call to
3061 opcode_print_table.
3062 (op_string): Likewise.
3063 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3064 (f_language::opcode_print_table): New member function.
3065 * go-lang.c (go_language_data): Remove la_op_print_tab
3066 initializer.
3067 (go_language::opcode_print_table): New member function.
3068 * language.c (unknown_language_data): Remove la_op_print_tab
3069 initializer.
3070 (unknown_language::opcode_print_table): New member function.
3071 (auto_language_data): Remove la_op_print_tab initializer.
3072 (auto_language::opcode_print_table): New member function.
3073 * language.h (language_data): Remove la_op_print_tab field.
3074 (language_defn::opcode_print_table): Declare new member function.
3075 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3076 initializer.
3077 (m2_language::opcode_print_table): New member function.
3078 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3079 initializer.
3080 (objc_language::opcode_print_table): New member function.
3081 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3082 initializer.
3083 (opencl_language::opcode_print_table): New member function.
3084 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3085 initializer.
3086 (pascal_language::opcode_print_table): New member function.
3087 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3088 initializer.
3089 (rust_language::opcode_print_table): New member function.
3090
5aba6ebe
AB
30912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3092
3093 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3094 (ada_language::expression_ops): New member function.
3095 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3096 (c_language::expression_ops): New member function.
3097 (cplus_language_data): Remove la_exp_desc initializer.
3098 (cplus_language::expression_ops): New member function.
3099 (asm_language_data): Remove la_exp_desc initializer.
3100 (asm_language::expression_ops): New member function.
3101 (minimal_language_data): Remove la_exp_desc initializer.
3102 (minimal_language::expression_ops): New member function.
3103 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3104 (d_language::expression_ops): New member function.
3105 * eval.c (evaluate_subexp): Update call to expression_ops.
3106 * expprint.c (print_subexp): Likewise.
3107 (op_name): Likewise.
3108 (dump_subexp_body): Likewise.
3109 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3110 (f_language::expression_ops): New member function.
3111 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3112 (go_language::expression_ops): New member function.
3113 * language.c (language_defn::expression_ops): New function.
3114 (unknown_language_data): Remove la_exp_desc initializer.
3115 (auto_language_data): Likewise.
3116 * language.h (language_data): Remove la_exp_desc field.
3117 (language_defn::expression_ops): Declare new member function.
3118 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3119 (m2_language::expression_ops): New member function.
3120 * objc-lang.c (objc_language_data): Remove la_exp_desc
3121 initializer.
3122 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3123 initializer.
3124 (opencl_language::expression_ops): New member function.
3125 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3126 * parse.c (operator_length): Update call to expression_ops.
3127 (exp_iterate): Likewise.
3128 * rust-lang.c (rust_language_data): Remove la_exp_desc
3129 initializer.
3130 (ruse_language::expression_ops): New member function.
3131
b63a3f3f
AB
31322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3133
3134 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3135 initializer.
3136 (ada_language::varobj_ops): New member function.
3137 * c-lang.c (c_language_data): Remove la_varobj_ops
3138 initializer.
3139 (cplus_language_data): Likewise.
3140 (cplus_language::varobj_ops): New member function.
3141 (asm_language_data): Remove la_varobj_ops initializer.
3142 (minimal_language_data): Likewise.
3143 * d-lang.c (d_language_data): Likewise.
3144 * f-lang.c (f_language_data): Likewise.
3145 * go-lang.c (go_language_data): Likewise.
3146 * language.c (language_defn::varobj_ops): New function.
3147 (unknown_language_data): Remove la_varobj_ops
3148 initializer.
3149 (auto_language_data): Likewise.
3150 * language.h (language_data): Remove la_varobj_ops field.
3151 (language_defn::varobj_ops): Declare new member function.
3152 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3153 * objc-lang.c (objc_language_data): Likewise.
3154 * opencl-lang.c (opencl_language_data): Likewise.
3155 * p-lang.c (pascal_language_data): Likewise.
3156 * rust-lang.c (rust_language_data): Likewise.
3157 * varobj.c (varobj_create): Update call to varobj_ops.
3158 * varobj.h (default_varobj_ops): Delete define.
3159
1ac14a04
AB
31602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3161
3162 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3163 initializer.
3164 * c-lang.c (c_language_data): Likewise.
3165 (c_language::macro_expansion): New member function.
3166 (cplus_language_data): Likewise.
3167 (cplus_language::macro_expansion): New member function.
3168 (asm_language_data): Likewise.
3169 (asm_language::macro_expansion): New member function.
3170 (minimal_language_data): Likewise.
3171 (minimal_language::macro_expansion): New member function.
3172 * d-lang.c (d_language_data): Remove la_macro_expansion
3173 initializer.
3174 * f-lang.c (f_language_data): Likewise.
3175 * go-lang.c (go_language_data): Likewise.
3176 * language.c (unknown_language_data): Likewise.
3177 (auto_language_data): Likewise.
3178 * language.h (language_data): Remove la_macro_expansion field.
3179 (language_defn::macro_expansion): New member function.
3180 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3181 initializer.
3182 * objc-lang.c (objc_language_data): Likewise.
3183 (objc_language::macro_expansion): New member function.
3184 * opencl-lang.c (opencl_language_data): Likewise.
3185 (opencl_language::macro_expansion): New member function.
3186 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3187 initializer.
3188 * rust-lang.c (rust_language_data): Likewise.
3189 * symtab.c (default_collect_symbol_completion_matches_break_on):
3190 Update call to macro_expansion.
3191
3a3440fb
AB
31922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3193
3194 * ada-lang.c (ada_language_data): Remove la_array_ordering
3195 initializer.
3196 * c-lang.c (c_language_data): Likewise.
3197 (cplus_language_data): Likewise.
3198 (asm_language_data): Likewise.
3199 (minimal_language_data): Likewise.
3200 * d-lang.c (d_language_data): Likewise.
3201 * dwarf2/read.c (read_array_order): Update for call to
3202 array_ordering.
3203 * f-lang.c (f_language_data): Remove la_array_ordering
3204 initializer.
3205 (f_language::array_ordering): New member function.
3206 * go-lang.c (go_language_data): Remove la_array_ordering
3207 initializer.
3208 * language.c (unknown_language_data): Likewise.
3209 (auto_language_data): Likewise.
3210 * language.h (language_data): Delete la_array_ordering field.
3211 (language_defn::array_ordering): New member function.
3212 * m2-lang.c (m2_language_data): Remove la_array_ordering
3213 initializer.
3214 * objc-lang.c (objc_language_data): Likewise.
3215 * opencl-lang.c (opencl_language_data): Likewise.
3216 * p-lang.c (pascal_language_data): Likewise.
3217 * rust-lang.c (rust_language_data): Likewise.
3218
0d201fa4
AB
32192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3222 initializer.
3223 * c-lang.c (c_language_data): Likewise.
3224 (cplus_language_data): Likewise.
3225 (asm_language_data): Likewise.
3226 (minimal_language_data): Likewise.
3227 * d-lang.c (d_language_data): Likewise.
3228 * f-lang.c (f_language_data): Likewise.
3229 (f_language::case_sensitivity): New member function.
3230 * go-lang.c (go_language_data): Remove la_case_sensitivity
3231 initializer.
3232 * language.c (enum case_mode): Moved here from language.h.
3233 (case_mode): Make static.
3234 (show_case_command): Update for case_sensitivity being a method.
3235 (set_case_command): Likewise.
3236 (set_range_case): Likewise.
3237 (unknown_language_data): Remove la_case_sensitivity initializer.
3238 (auto_language_data): Likewise.
3239 * language.h (case_mode): Delete, move enum declaration to
3240 language.c.
3241 (language_data): Delete la_case_sensitivity field.
3242 (language_defn::case_sensitivity): New member function.
3243 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3244 initializer.
3245 * objc-lang.c (objc_language_data): Likewise.
3246 * opencl-lang.c (opencl_language_data): Likewise.
3247 * p-lang.c (pascal_language_data): Likewise.
3248 * rust-lang.c (rust_language_data): Likewise.
3249
efdf6a73
AB
32502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3251
3252 * ada-lang.c (ada_language_data): Remove la_range_check
3253 initializer.
3254 * c-lang.c (c_language_data): Likewise.
3255 (cplus_language_data): Likewise.
3256 (asm_language_data): Likewise.
3257 (minimal_language_data): Likewise.
3258 * d-lang.c (d_language_data): Likewise.
3259 * f-lang.c (f_language_data): Likewise.
3260 (f_language::range_checking_on_by_default): New member function.
3261 * go-lang.c (go_language_data): Remove la_range_check initializer.
3262 * language.c (enum range_mode): Moved here from language.h.
3263 (range_mode): Made static.
3264 (show_range_command): Update to use
3265 range_checking_on_by_default.
3266 (set_range_command): Likewise.
3267 (set_range_case): Likewise.
3268 (unknown_language_data): Remove la_range_check initializer.
3269 (auto_language_data): Likewise.
3270 * language.h (range_mode): Delete. Enum definition moved to
3271 language.c.
3272 (language_data): Remove la_range_check field.
3273 (language_defn::range_checking_on_by_default): New member
3274 function.
3275 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3276 (m2_language::range_checking_on_by_default): New member function.
3277 * objc-lang.c (objc_language_data): Remove la_range_check
3278 initializer.
3279 * opencl-lang.c (opencl_language_data): Likewise.
3280 * p-lang.c (pascal_language_data): Likewise.
3281 (pascal_language::range_checking_on_by_default): New member
3282 function.
3283 * rust-lang.c (rust_language_data): Remove la_range_check
3284 initializer.
3285 (rust_language::range_checking_on_by_default): New member
3286 function.
3287
bf92aec5
AB
32882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3289
3290 * dwarf2/read.c (dwarf2_physname): Remove special case for
3291 language_go.
3292 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3293 member function.
3294
d3355e4d
AB
32952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * ada-lang.c (ada_language_data): Remove
3298 la_store_sym_names_in_linkage_form_p initializer.
3299 (ada_language::store_sym_names_in_linkage_form_p): New member
3300 function.
3301 * c-lang.c (c_language_data): Remove
3302 la_store_sym_names_in_linkage_form_p initializer.
3303 (c_language::store_sym_names_in_linkage_form_p): New member
3304 function.
3305 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3306 initializer.
3307 (asm_language_data): Likewise.
3308 (asm_language::store_sym_names_in_linkage_form_p): New member
3309 function.
3310 (minimal_language_data): Remove
3311 la_store_sym_names_in_linkage_form_p initializer.
3312 (minimal_language::store_sym_names_in_linkage_form_p): New member
3313 function.
3314 * d-lang.c (d_language_data): Remove
3315 la_store_sym_names_in_linkage_form_p initializer.
3316 * dwarf2/read.c (dwarf2_physname): Update call to
3317 store_sym_names_in_linkage_form_p.
3318 * f-lang.c (f_language_data): Remove
3319 la_store_sym_names_in_linkage_form_p initializer.
3320 * go-lang.c (go_language_data): Remove
3321 la_store_sym_names_in_linkage_form_p initializer.
3322 * language.c (unknown_language_data): Remove
3323 la_store_sym_names_in_linkage_form_p initializer.
3324 (unknown_language::store_sym_names_in_linkage_form_p): New member
3325 function.
3326 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3327 initializer.
3328 (auto_language::store_sym_names_in_linkage_form_p): New member
3329 function.
3330 * language.h (language_data): Remove
3331 la_store_sym_names_in_linkage_form_p member variable.
3332 (language_defn::store_sym_names_in_linkage_form_p): New member
3333 function.
3334 * m2-lang.c (m2_language_data): Remove
3335 la_store_sym_names_in_linkage_form_p initializer.
3336 * objc-lang.c (objc_language_data): Likewise.
3337 * opencl-lang.c (opencl_language_data): Likewise.
3338 * p-lang.c (pascal_language_data): Likewise.
3339 * rust-lang.c (rust_language_data): Likewise.
3340
22c12a6c
AB
33412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3342
3343 * ada-lang.c (ada_language_data): Remove string_lower_bound
3344 initializer.
3345 * c-lang.c (c_language_data): Likewise.
3346 (cplus_language_data): Likewise.
3347 (asm_language_data): Likewise.
3348 (minimal_language_data): Likewise.
3349 * d-lang.c (d_language_data): Likewise.
3350 * f-lang.c (f_language_data): Likewise.
3351 * go-lang.c (go_language_data): Likewise.
3352 * language.c (unknown_language_data): Likewise.
3353 (auto_language_data): Likewise.
3354 * language.h (language_data): Remove string_lower_bound field.
3355 (language_defn::string_lower_bound): New member function.
3356 * m2-lang.c (m2_language_data): Remove string_lower_bound
3357 initializer.
3358 (m2_language::string_lower_bound): New member function.
3359 * objc-lang.c (objc_language_data): Remove string_lower_bound
3360 initializer.
3361 * opencl-lang.c (opencl_language_data): Likewise.
3362 * p-lang.c (pascal_language_data): Likewise.
3363 * rust-lang.c (rust_language_data): Likewise.
3364 * valops.c (value_cstring): Update call to string_lower_bound.
3365 (value_string): Likewise.
3366 * value.c (allocate_repeated_value): Likewise.
3367
1c236ddd
AB
33682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * valops.c (value_repeat): Fix incorrect argument name in comment.
3371
67bd3fd5
AB
33722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3373
3374 * ada-lang.c (ada_language_data): Remove c_style_arrays
3375 initializer.
3376 (ada_language::c_style_arrays_p): New member fuction.
3377 * c-lang.c (c_language_data): Remove c_style_arrays
3378 initializer.
3379 (cplus_language_data): Likewise.
3380 (asm_language_data): Likewise.
3381 (minimal_language_data): Likewise.
3382 * d-lang.c (d_language_data): Likewise.
3383 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3384 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3385 (f_language::c_style_arrays_p): New member function.
3386 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3387 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3388 * language.c (unknown_language_data): Remove c_style_arrays
3389 initializer.
3390 (auto_language_data): Likewise.
3391 * language.h (language_data): Remove c_style_arrays field.
3392 (language_defn::c_style_arrays_p): New member function.
3393 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3394 (m2_language::c_style_arrays_p): New member function.
3395 * objc-lang.c (objc_language_data): Remove c_style_arrays
3396 initializer.
3397 * opencl-lang.c (opencl_language_data): Likewise.
3398 * p-lang.c (pascal_language_data): Likewise.
3399 * rust-lang.c (rust_language_data): Likewise.
3400 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3401 and update local variable to a bool.
3402 * valops.c (value_cast): Update call to c_style_arrays_p.
3403 (value_array): Likewise.
3404 * value.c (coerce_array): Likewise.
3405
85967615
AB
34062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3407
3408 * ada-lang.c (ada_language_data): Remove la_language initializer.
3409 * c-lang.c (c_language_data): Likewise.
3410 (cplus_language_data): Likewise.
3411 (asm_language_data): Likewise.
3412 (minimal_language_data): Likewise.
3413 * d-lang.c (d_language_data): Likewise.
3414 * f-lang.c (f_language_data): Likewise.
3415 * go-lang.c (go_language_data): Likewise.
3416 * language.c (unknown_language_data): Likewise.
3417 (auto_language_data): Likewise.
3418 * language.h (language_data): Remove la_language field.
3419 (language_defn::language_defn): Initialise la_language field.
3420 (language_defn::la_language): New member variable.
3421 * m2-lang.c (m2_language_data): Remove la_language field.
3422 * objc-lang.c (objc_language_data): Likewise.
3423 * opencl-lang.c (opencl_language_data): Likewise.
3424 * p-lang.c (pascal_language_data): Likewise.
3425 * rust-lang.c (rust_language_data): Likewise.
3426
e171d6f1
AB
34272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3428
3429 * ada-lang.c (ada_extensions): Delete, moved into
3430 ada_language::filename_extensions.
3431 (ada_language_data): Remove la_filename_extensions initializer.
3432 (ada_language::filename_extensions): New member function.
3433 * c-lang.c (c_extensions): Delete, moved into
3434 c_language::filename_extensions.
3435 (c_language_data): Remove la_filename_extensions initializer.
3436 (c_language::filename_extensions): New member function.
3437 (cplus_extensions): Delete, moved into
3438 cplus_language::filename_extensions.
3439 (cplus_language_data): Remove la_filename_extensions initializer.
3440 (cplus_language::filename_extensions): New member function.
3441 (asm_extensions): Delete, moved into
3442 asm_language::filename_extensions.
3443 (asm_language_data): Remove la_filename_extensions initializer.
3444 (asm_language::filename_extensions): New member function.
3445 (minimal_language_data): Remove la_filename_extensions
3446 initializer.
3447 * d-lang.c (d_extensions): Delete, moved into
3448 d_language::filename_extensions.
3449 (d_language_data): Remove la_filename_extensions initializer.
3450 (d_language::filename_extensions): New member function.
3451 * f-lang.c (f_extensions): Delete, moved into
3452 f_language::filename_extensions.
3453 (f_language_data): Remove la_filename_extensions initializer.
3454 (f_language::filename_extensions): New member function.
3455 * go-lang.c (go_language_data): Remove la_filename_extensions
3456 initializer.
3457 * language.c (add_set_language_command): Update now that
3458 filename_extensions returns a vector.
3459 (unknown_language_data): Remove la_filename_extensions
3460 initializer.
3461 (auto_language_data): Likewise.
3462 * language.h (language_data): Remove la_filename_extensions field.
3463 (language_defn::filename_extensions): New member function.
3464 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3465 initializer.
3466 * objc-lang.c (objc_extensions): Delete, moved into
3467 objc_language::filename_extensions.
3468 (objc_language_data): Remove la_filename_extensions initializer.
3469 (objc_language::filename_extensions): New member function.
3470 * opencl-lang.c (opencl_language_data): Remove
3471 la_filename_extensions initializer.
3472 * p-lang.c (pascal_extensions): Delete, moved into
3473 pascal_language::filename_extensions.
3474 (pascal_language_data): Remove la_filename_extensions initializer.
3475 (pascal_language::filename_extensions): New member function.
3476 * rust-lang.c (rust_extensions): Delete, moved into
3477 rust_language::filename_extensions.
3478 (rust_language_data): Remove la_filename_extensions initializer.
3479 (rust_language::filename_extensions): New member function.
3480 * symfile.c (add_filename_language): Add new assert.
3481
6f7664a9
AB
34822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3483
3484 * ada-lang.c (ada_language_data): Remove la_name and
3485 la_natural_name initializers.
3486 (ada_language::name): New member function.
3487 (ada_language::natural_name): New member function.
3488 * c-lang.c (c_language_data): Remove la_name and
3489 la_natural_name initializers.
3490 (c_language::name): New member function.
3491 (c_language::natural_name): New member function.
3492 (cplus_language_data): Remove la_name and
3493 la_natural_name initializers.
3494 (cplus_language::name): New member function.
3495 (cplus_language::natural_name): New member function.
3496 (asm_language_data): Remove la_name and
3497 la_natural_name initializers.
3498 (asm_language::name): New member function.
3499 (asm_language::natural_name): New member function.
3500 (minimal_language_data): Remove la_name and
3501 la_natural_name initializers.
3502 (minimal_language::name): New member function.
3503 (minimal_language::natural_name): New member function.
3504 * compile/compile.c (compile_to_object): Update call to
3505 lanugage_defn::name.
3506 * d-lang.c (d_language_data): Remove la_name and
3507 la_natural_name initializers.
3508 (d_language::name): New member function.
3509 (d_language::natural_name): New member function.
3510 * expprint.c (print_subexp_standard): Update call to
3511 language_defn::name.
3512 (dump_raw_expression): Likewise
3513 (dump_prefix_expression): Likewise.
3514 * f-lang.c (f_language_data): Remove la_name and
3515 la_natural_name initializers.
3516 (f_language::name): New member function.
3517 (f_language::natural_name): New member function.
3518 * go-lang.c (go_language_data): Remove la_name and
3519 la_natural_name initializers.
3520 (go_language::name): New member function.
3521 (go_language::natural_name): New member function.
3522 * language.c (show_language_command): Update call to
3523 language_defn::name.
3524 (set_language_command): Likewise.
3525 (language_enum): Likewise.
3526 (language_str): Likewise.
3527 (add_set_language_command): Likewise, use
3528 language_defn::natural_name in the doc string.
3529 (unknown_language_data): Remove la_name and
3530 la_natural_name initializers.
3531 (unknown_language::name): New member function.
3532 (unknown_language::natural_name): New member function.
3533 (auto_language_data): Remove la_name and
3534 la_natural_name initializers.
3535 (auto_language::name): New member function.
3536 (auto_language::natural_name): New member function.
3537 (language_lookup_primitive_type_as_symbol): Update call to
3538 language_defn::name.
3539 * language.h (language_data): Remove la_name and la_natural_name
3540 member variables.
3541 (language_defn::name): New member function.
3542 (language_defn::natural_name): New member function.
3543 * m2-lang.c (m2_language_data): Remove la_name and
3544 la_natural_name initializers.
3545 (m2_language::name): New member function.
3546 (m2_language::natural_name): New member function.
3547 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3548 language_defn::natural_name.
3549 * objc-lang.c (objc_language_data): Remove la_name and
3550 la_natural_name initializers.
3551 (objc_language::name): New member function.
3552 (objc_language::natural_name): New member function.
3553 * opencl-lang.c (opencl_language_data): Remove la_name and
3554 la_natural_name initializers.
3555 (opencl_language::name): New member function.
3556 (opencl_language::natural_name): New member function.
3557 * p-lang.c (pascal_language_data): Remove la_name and
3558 la_natural_name initializers.
3559 (pascal_language::name): New member function.
3560 (pascal_language::natural_name): New member function.
3561 * rust-lang.c (rust_language_data): Remove la_name and
3562 la_natural_name initializers.
3563 (rust_language::name): New member function.
3564 (rust_language::natural_name): New member function.
3565 * symtab.c (lookup_language_this): Update call to
3566 language_defn::name.
3567
5bae7c4e
AB
35682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3569
3570 * ada-lang.c (ada_language_data): Remove la_name_of_this
3571 initializer.
3572 * ax-gdb.c (gen_expr): Update call to name_of_this.
3573 * c-exp.y (classify_name): Likewise.
3574 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3575 (cplus_language_data): Likewise.
3576 (cplus_language::name_of_this): New member function.
3577 (asm_language_data): Remove la_name_of_this initializer.
3578 (minimal_language_data): Likewise.
3579 * d-lang.c (d_language_data): Likewise.
3580 (d_language::name_of_this): New member function.
3581 * expprint.c (print_subexp_standard): Update call to name_of_this.
3582 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3583 * go-lang.c (go_language_data): Likewise.
3584 * language.c (unknown_language_data): Likewise.
3585 (unknown_language::name_of_this): New member function.
3586 (auto_language_data): Remove la_name_of_this initializer.
3587 (auto_language::name_of_this): New member function.
3588 * language.h (language_data): Delete la_name_of_this member
3589 variable.
3590 (language_defn::name_of_this): New member function.
3591 * m2-lang.c (m2_language_data): Remove la_name_of_this
3592 initializer.
3593 * objc-lang.c (objc_language_data): Likewise.
3594 (objc_language::name_of_this): New member function.
3595 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3596 initializer.
3597 * p-lang.c (pascal_language_data): Likewise.
3598 (pascal_language::name_of_this): New member function.
3599 * rust-lang.c (rust_language_data): Remove la_name_of_this
3600 initializer.
3601 * symtab.c (lookup_language_this): Update call to name_of_this.
3602 (lookup_symbol_aux): Likewise.
3603 * valops.c (value_of_this): Likewise.
3604
22e3f3ed
AB
36052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3606
3607 * ada-lang.c (ada_language_data): Remove
3608 la_struct_too_deep_ellipsis initializer.
3609 (ada_language::struct_too_deep_ellipsis): New member function.
3610 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3611 initializer.
3612 (cplus_language_data): Likewise.
3613 (asm_language_data): Likewise.
3614 (minimal_language_data): Likewise.
3615 * cp-valprint.c (cp_print_value): Update call to
3616 struct_too_deep_ellipsis.
3617 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3618 initializer.
3619 * f-lang.c (f_language_data): Likewise.
3620 (f_language::struct_too_deep_ellipsis): New member function.
3621 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3622 initializer.
3623 * language.c (unknown_language_data): Likewise.
3624 (auto_language_data): Likewise.
3625 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3626 member variable.
3627 (language_defn::struct_too_deep_ellipsis): New member function.
3628 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3629 initializer.Q
3630 * objc-lang.c (objc_language_data): Likewise.
3631 * opencl-lang.c (opencl_language_data): Likewise.
3632 * p-lang.c (pascal_language_data): Likewise.
3633 * rust-lang.c (rust_language_data): Likewise.
3634 * valprint.c (val_print_check_max_depth): Update call to
3635 struct_too_deep_ellipsis.
3636
ed29e1c7
FW
36372020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3638
3639 * MAINTAINERS (Write After Approval): Add myself.
3640
12d8f940
TT
36412020-09-15 Tom Tromey <tom@tromey.com>
3642
3643 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3644 Remove.
3645
6b5a7bc7
TT
36462020-09-15 Tom Tromey <tom@tromey.com>
3647
3648 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3649 and TYPE_CODE_METHODPTR cases.
3650 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3651 (c_value_print_inner): Update.
3652 * valprint.c (generic_value_print_memberptr): New function, from
3653 c_value_print_memberptr.
3654 (generic_value_print): Use it. Call cplus_print_method_ptr.
3655
47f0e2ff
TT
36562020-09-15 Tom Tromey <tromey@adacore.com>
3657
3658 * python/python-internal.h (PyInt_FromLong): Remove define.
3659 * python/py-value.c (convert_value_from_python): Use
3660 gdb_py_object_from_longest.
3661 * python/py-type.c (typy_get_code): Use
3662 gdb_py_object_from_longest.
3663 * python/py-symtab.c (salpy_get_line): Use
3664 gdb_py_object_from_longest.
3665 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3666 gdb_py_object_from_longest.
3667 * python/py-record.c (recpy_gap_reason_code): Use
3668 gdb_py_object_from_longest.
3669 * python/py-record-btrace.c (recpy_bt_insn_size)
3670 (recpy_bt_func_level, btpy_list_count): Use
3671 gdb_py_object_from_longest.
3672 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3673 gdb_py_object_from_longest. Fix error handling.
3674 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3675 gdb_py_object_from_longest.
3676 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3677 gdb_py_object_from_longest.
3678 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3679 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3680 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3681
512116ce
TT
36822020-09-15 Tom Tromey <tromey@adacore.com>
3683
3684 * python/python.c (gdbpy_parameter_value): Use
3685 gdb_py_object_from_ulongest.
3686
4ab1029c
TT
36872020-09-15 Tom Tromey <tromey@adacore.com>
3688
3689 * python/py-infevents.c (create_register_changed_event_object):
3690 Use gdb_py_object_from_longest.
3691 * python/py-exitedevent.c (create_exited_event_object): Use
3692 gdb_py_object_from_longest.
3693
062534d4
TT
36942020-09-15 Tom Tromey <tromey@adacore.com>
3695
3696 * python/python.c (gdbpy_parameter_value): Use
3697 gdb_py_object_from_longest.
3698 * python/py-type.c (convert_field, typy_range): Use
3699 gdb_py_object_from_longest.
3700 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3701 gdb_py_object_from_longest.
3702 * python/py-lazy-string.c (stpy_get_length): Use
3703 gdb_py_object_from_longest.
3704 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3705 gdb_py_object_from_longest.
3706 * python/py-infevents.c (create_memory_changed_event_object): Use
3707 gdb_py_object_from_longest.
3708 * python/py-inferior.c (infpy_get_num): Use
3709 gdb_py_object_from_longest.
3710 (infpy_get_pid): Likewise.
3711
d1cab987
TT
37122020-09-15 Tom Tromey <tromey@adacore.com>
3713
3714 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3715 defines.
3716 * python/py-value.c (valpy_long): Use
3717 gdb_py_object_from_ulongest.
3718 * python/py-symtab.c (salpy_get_pc): Use
3719 gdb_py_object_from_ulongest.
3720 (salpy_get_last): Likewise.
3721 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3722 gdb_py_object_from_ulongest.
3723 * python/py-lazy-string.c (stpy_get_address): Use
3724 gdb_py_object_from_ulongest.
3725 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3726 * python/py-arch.c (archpy_disassemble): Use
3727 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3728 error handling.
3729
4bde49dc
TT
37302020-09-15 Tom Tromey <tromey@adacore.com>
3731
3732 * python/python-internal.h (gdb_py_long_from_longest): Remove
3733 defines.
3734 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3735 * python/py-type.c (convert_field, typy_get_sizeof): Use
3736 gdb_py_object_from_longest.
3737 * python/py-record-btrace.c (btpy_list_index): Use
3738 gdb_py_object_from_longest.
3739
37431074
TT
37402020-09-15 Tom Tromey <tromey@adacore.com>
3741
3742 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3743 * python/py-record.c (recpy_element_number): Use
3744 gdb_py_object_from_longest.
3745 (recpy_gap_number): Likewise.
3746
cbe25684
TT
37472020-09-15 Tom Tromey <tromey@adacore.com>
3748
3749 * top.c (ui::ui): Update.
3750 (highest_ui_num): Remove.
3751 * top.h (struct ui) <num>: Remove.
3752
db92ac45
TT
37532020-09-15 Tom Tromey <tromey@adacore.com>
3754
3755 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3756 * ui-style.c (ansi_regex_text): Now array.
3757 * rust-exp.y (number_regex_text): Now array.
3758 * linespec.c (linespec_quote_characters): Now array.
3759 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3760 Now arrays.
3761
d2b31b67
SM
37622020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3763
3764 * debuginfod-support.c (debuginfod_client_deleter): New.
3765 (debuginfod_client_up): New.
3766 (debuginfod_init): Return debuginfod_client_up.
3767 (debuginfod_source_query): Adjust.
3768 (debuginfod_debuginfo_query): Adjust.
3769
3246bd8e
SM
37702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3771
3772 * debuginfod-support.c (debuginfod_source_query): Use
3773 make_unique_xstrdup.
3774
10242f36
SM
37752020-09-14 Simon Marchi <simon.marchi@efficios.com>
3776
3777 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3778 with `type::instance_flags`.
3779
e1044e6a
MM
37802020-09-14 Michael Mullin <masmullin@gmail.com>
3781
3782 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3783 Remove baton parameter.
3784
04902b09
PA
37852020-09-14 Pedro Alves <pedro@palves.net>
3786
3787 * Makefile.in (SELFTESTS_SRCS): Add
3788 unittests/enum-flags-selftests.c.
3789 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3790 btrace_function_flags instead of enum btrace_function_flag.
3791 * compile/compile-c-types.c (convert_qualified): Use
3792 enum_flags::raw.
3793 * compile/compile-cplus-symbols.c (convert_one_symbol)
3794 (convert_symbol_bmsym):
3795 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3796 (compile_cplus_convert_struct_or_union_methods)
3797 (compile_cplus_instance::convert_qualified_base):
3798 * go-exp.y (parse_string_or_char): Add cast to int.
3799 * unittests/enum-flags-selftests.c: New file.
3800 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3801 type to btrace_thread_flags from btrace_thread_flag.
3802 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3803 local's type to btrace_thread_flags from btrace_thread_flag. Add
3804 cast in DEBUG call.
3805
69896a2c
PA
38062020-09-14 Pedro Alves <pedro@palves.net>
3807
3808 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3809 * gdbtypes.c (address_space_name_to_int): Rename to ...
3810 (address_space_name_to_type_instance_flags): ... this.
3811 (address_space_int_to_name): Rename to ...
3812 (address_space_type_instance_flags_to_name): ... this.
3813 * gdbtypes.h (address_space_name_to_int): Rename to ...
3814 (address_space_name_to_type_instance_flags): ... this.
3815 (address_space_int_to_name): Rename to ...
3816 (address_space_type_instance_flags_to_name): ... this.
3817 * type-stack.c (type_stack::insert): Adjust to rename.
3818 * type-stack.h (type_stack::insert): Likewise.
3819
314ad88d
PA
38202020-09-14 Pedro Alves <pedro@palves.net>
3821 Andrew Burgess <andrew.burgess@embecosm.com>
3822
3823 * avr-tdep.c (avr_address_class_type_flags): Return
3824 type_instance_flags.
3825 (avr_address_class_type_flags_to_name): Take a
3826 type_instance_flags.
3827 (avr_address_class_name_to_type_flags): Return bool and take a
3828 type_instance_flags.
3829 * d-lang.c (build_d_types): Use type::set_instance_flags.
3830 * ft32-tdep.c (ft32_address_class_type_flags): Return
3831 type_instance_flags.
3832 (ft32_address_class_type_flags_to_name): Take a
3833 type_instance_flags.
3834 (ft32_address_class_name_to_type_flags): Return bool and take a
3835 type_instance_flags.
3836 (ft32_gdbarch_init): Use type::set_instance_flags.
3837 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3838 * gdbarch.h, gdbarch.c: Regenerate.
3839 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3840 (address_class_name_to_type_flags): Use type_instance_flags and
3841 bool.
3842 * gdbtypes.c (address_space_name_to_int)
3843 (address_space_int_to_name, make_qualified_type): Use
3844 type_instance_flags.
3845 (make_qualified_type): Use type_instance_flags and
3846 type::set_instance_flags.
3847 (make_type_with_address_space, make_cv_type, make_vector_type)
3848 (check_typedef): Use type_instance_flags.
3849 (recursive_dump_type): Cast type_instance_flags to unsigned for
3850 printing.
3851 (copy_type_recursive): Use type::set_instance_flags.
3852 (gdbtypes_post_init): Use type::set_instance_flags.
3853 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3854 <m_instance_flags>: ... this.
3855 <instance_flags, set_instance_flags>: New methods.
3856 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3857 (SET_TYPE_INSTANCE_FLAGS): New.
3858 (address_space_name_to_int, address_space_int_to_name)
3859 (make_type_with_address_space): Pass flags using
3860 type_instance_flags instead of int.
3861 * stabsread.c (cleanup_undefined_types_noname): Use
3862 type::set_instance_flags.
3863 * s390-tdep.c (s390_address_class_type_flags): Return
3864 type_instance_flags.
3865 (s390_address_class_type_flags_to_name): Take a
3866 type_instance_flags.
3867 (s390_address_class_name_to_type_flags): Return bool and take a
3868 type_instance_flags.
3869 * type-stack.c (type_stack::follow_types): Use
3870 type_instance_flags.
3871 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3872
27087b7f
TT
38732020-09-14 Tom Tromey <tromey@adacore.com>
3874
3875 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3876 * x86-tdep.c (x86_is_thunk_register_name)
3877 (x86_in_indirect_branch_thunk): Update.
3878 * sparc64-tdep.c (sparc64_fpu_register_names)
3879 (sparc64_cp0_register_names, sparc64_register_names)
3880 (sparc64_pseudo_register_names): Now const.
3881 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3882 cp0_registers_num>: Now const.
3883 * sparc-tdep.c (sparc_core_register_names)
3884 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3885 (sparc32_pseudo_register_names): Now const.
3886 (validate_tdesc_registers): Update.
3887 * rust-lang.c (rust_extensions): Now const.
3888 * p-lang.c (p_extensions): Now const.
3889 * objc-lang.c (objc_extensions): Now const.
3890 * nto-tdep.c (nto_thread_state_str): Now const.
3891 * moxie-tdep.c (moxie_register_names): Now const.
3892 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3893 Now const.
3894 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3895 (mips_linux_reg_names): Now const.
3896 (mips_gdbarch_init): Update.
3897 * microblaze-tdep.c (microblaze_register_names): Now const.
3898 * m68k-tdep.c (m68k_register_names): Now const.
3899 * m32r-tdep.c (m32r_register_names): Now const.
3900 * ia64-tdep.c (ia64_register_names): Now const.
3901 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3902 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3903 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3904 ymm_avx512_register_names, pkeys_register_names>: Now const.
3905 * i386-tdep.c (i386_register_names, i386_zmm_names)
3906 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3907 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3908 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3909 * f-lang.c (f_extensions): Now const.
3910 * d-lang.c (d_extensions): Now const.
3911 * csky-tdep.c (csky_register_names): Now const.
3912 * charset.c (default_charset_names, charset_enum): Now const.
3913 (_initialize_charset): Update.
3914 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3915 const.
3916 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3917 (bsd_uthread_solib_loaded): Update.
3918 (bsd_uthread_state): Now const.
3919 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3920 (amd64_ymm_avx512_names, amd64_ymmh_names)
3921 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3922 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3923 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3924 (amd64_dword_names): Now const.
3925 * agent.c (can_use_agent_enum): Now const.
3926 * ada-tasks.c (task_states, long_task_states): Now const.
3927 * ada-lang.c (known_runtime_file_name_patterns)
3928 (known_auxiliary_function_name_patterns, attribute_names)
3929 (standard_exc, ada_extensions): Now const.
3930
89806626
SM
39312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3932
3933 * bcache.h (struct bcache) <bcache>: Remove constructor.
3934 <m_hash_function, m_compare_function>: Remove.
3935 <~bcache>: Make virtual.
3936 <compare>: Remove static method, introduce virtual method.
3937 <default_hash>: Remove.
3938 <hash>: New virtual method.
3939 * bcache.c (bcache::expand_hash_table): Update.
3940 (bcache::insert): Update.
3941 (bcache::hash): New.
3942 (bcache::compare): Update comment and parameter names.
3943 * gdbtypes.c (types_deeply_equal): Update.
3944 * psymtab.h (struct psymbol_bcache): New struct.
3945 (class psymtab_storage) <psymtab_storage>: Make default.
3946 <psymbol_cache>: Change type to psymbol_bcache.
3947 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3948 (psymbol_hash): Change to...
3949 (psymbol_bcache::hash): ... this.
3950 (psymbol_compare): Change to...
3951 (psymbol_bcache::compare): ... this.
3952
677c92fe
SM
39532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3954
3955 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3956 checking for initial lwp.
3957
3eba3a01
TT
39582020-09-14 Tom Tromey <tromey@adacore.com>
3959
3960 * m68k-tdep.c (m68k_extract_return_value): Use
3961 pointer_result_regnum.
3962 (m68k_store_return_value): Likewise.
3963 (m68k_reg_struct_return_p): Handle vectors and arrays.
3964 (m68k_return_value): Handle arrays.
3965 (m68k_svr4_return_value): Fix single-element aggregate handling.
3966 Handle long double. Adjust for embedded ABI.
3967 (m68k_svr4_init_abi): Set pointer_result_regnum.
3968 (m68k_embedded_init_abi): New function.
3969 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3970 (m68k_osabi_sniffer): New function.
3971 (_initialize_m68k_tdep): Register osabi sniffer.
3972 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3973 member.
3974
33f4dd48
SM
39752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3976
3977 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3978 with gdb::unique_xmalloc_ptr<char>.
3979
8400a90d
SM
39802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3981
3982 * xml-support.h (xml_fetch_another): Change type to be a
3983 function_view.
3984 (xml_process_xincludes): Remove baton parameter.
3985 (xml_fetch_content_from_file): Change baton parameter to
3986 dirname.
3987 * xml-support.c (struct xinclude_parsing_data)
3988 <xinclude_parsing_data>: Remove baton parameter.
3989 <fetcher_baton>: Remove.
3990 (xinclude_start_include): Adjust.
3991 (xml_process_xincludes): Adjust.
3992 (xml_fetch_content_from_file): Replace baton parameter with
3993 dirname.
3994 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3995 (xml_init_syscalls_info): Use a lambda.
3996 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3997 (file_read_description_xml): Use a lambda.
3998 (fetch_available_features_from_target): Change baton parameter
3999 to target_ops.
4000 (target_read_description_xml): Use a lambda.
4001 (target_fetch_description_xml): Use a lambda.
4002 (string_read_description_xml): Update.
4003
04f5bab2
SM
40042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4005
4006 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4007 uses with type::endianity_is_not_default.
4008
db558e34
SM
40092020-09-14 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * gdbtypes.h (struct type) <endianity_is_not_default,
4012 set_endianity_is_not_default>: New methods.
4013 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4014 type::endianity_is_not_default, change all write call sites to
4015 use type::set_endianity_is_not_default.
4016
22c4c60c
SM
40172020-09-14 Simon Marchi <simon.marchi@efficios.com>
4018
4019 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4020 uses with type::is_fixed_instance.
4021
9cdd0d12
SM
40222020-09-14 Simon Marchi <simon.marchi@efficios.com>
4023
4024 * gdbtypes.h (struct type) <is_fixed_instance,
4025 set_is_fixed_instance>: New methods.
4026 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4027 write call sites to use type::set_is_fixed_instance.
4028
0becda7a
SM
40292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4030
4031 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4032 uses with type::is_gnu_ifunc.
4033
03cc7249
SM
40342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4037 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4038 use type::set_is_gnu_ifunc.
4039
3f46044c
SM
40402020-09-14 Simon Marchi <simon.marchi@efficios.com>
4041
4042 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4043 uses with type::stub_is_supported.
4044
9baccff6
SM
40452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4048 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4049 use type::set_stub_is_supported.
4050
bd63c870
SM
40512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4054 uses with type::is_vector.
4055
2062087b
SM
40562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4059 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4060 use type::set_is_vector.
4061
a409645d
SM
40622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4065 uses with type::has_varargs.
4066
1d6286ed
SM
40672020-09-14 Simon Marchi <simon.marchi@efficios.com>
4068
4069 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4070 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4071 use type::set_has_varargs.
4072
7f9f399b
SM
40732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4074
4075 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4076 uses with type::is_prototyped.
4077
27e69b7a
SM
40782020-09-14 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4081 New methods.
4082 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4083 call sites to use type::set_is_prototyped.
4084
d2183968
SM
40852020-09-14 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4088 uses with type::target_is_stub.
4089
8f53807e
SM
40902020-09-14 Simon Marchi <simon.marchi@efficios.com>
4091
4092 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4093 New methods.
4094 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4095 sites to use type::set_target_is_stub.
4096
e46d3488
SM
40972020-09-14 Simon Marchi <simon.marchi@efficios.com>
4098
4099 * gdbtypes.h (TYPE_STUB): Remove, replace all
4100 uses with type::is_stub.
4101
b4b73759
SM
41022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4105 (TYPE_STUB): Use type::is_stub, change all write call sites to
4106 use type::set_is_stub.
4107
20ce4123
SM
41082020-09-14 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4111 type::has_no_signedness.
4112
15152a54
SM
41132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * gdbtypes.h (struct type) <has_no_signedness,
4116 set_has_no_signedness>: New methods.
4117 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4118 call sites to use type::set_has_no_signedness.
4119
c6d940a9
SM
41202020-09-14 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4123 type::is_unsigned.
4124
653223d3
SM
41252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4126
4127 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4128 methods.
4129 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4130 sites to use type::set_is_unsigned.
4131
55ea94da 41322020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4133 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4134
e851246a
SM
4135 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4136 pointer and stack frame offset when unwinding.
55ea94da 4137
6791b117
PA
41382020-09-13 Pedro Alves <pedro@palves.net>
4139
4140 * NEWS: Document "-break-insert --qualified".
4141 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4142
77f2120b
PA
41432020-09-13 Pedro Alves <pedro@palves.net>
4144
4145 * linespec.c (classify_mtype, compare_msyms): Delete.
4146 (search_minsyms_for_name): Remove classification logic. Instead
4147 filter out trampoline symbols if we also found an external
4148 function of the same name.
4149
ed6a896c
JB
41502020-09-13 Joel Brobecker <brobecker@adacore.com>
4151
4152 * NEWS: Create a new section for the next release branch.
4153 Rename the section of the current branch, now that it has
4154 been cut.
4155
32aea73e
JB
41562020-09-13 Joel Brobecker <brobecker@adacore.com>
4157
4158 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4159 * version.in: Bump version to 11.0.50.DATE-git.
4160
8087c3fa
JB
41612020-09-12 Joel Brobecker <brobecker@adacore.com>
4162
4163 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4164
2a67f09d
FW
41652020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4166 Felix Willgerodt <Felix.Willgerodt@intel.com>
4167
4168 * gdbarch.sh: Added bfloat16 type.
4169 * gdbarch.c: Regenerated.
4170 * gdbarch.h: Regenerated.
4171 * gdbtypes.c (floatformats_bfloat16): New struct.
4172 (gdbtypes_post_init): Add builtin_bfloat16.
4173 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4174 (floatformats_bfloat16): New struct.
4175 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4176 (i386_ymm_type): Add field "v16_bfloat16"
4177 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4178 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4179 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4180 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4181 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4182 * features/i386/64bit-avx512.c: Regenerated.
4183 * features/i386/64bit-sse.xml: Add bfloat16 type.
4184 * features/i386/64bit-sse.c: Regenerated.
4185
1347d111
FW
41862020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4187
4188 * i386-tdep.c (i386_zmm_type): Fix field names.
4189 (i386_ymm_type): Fix field names.
4190
7a4e8e7d
TBA
41912020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4192
4193 * breakpoint.c: Fix typo in the help message of the
4194 "set breakpoint condition-evaluation" command.
4195
cf4ac4be
KR
41962020-09-10 Kamil Rytarowski <n54@gmx.com>
4197
4198 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4199 * (nbsd_nat_target::pid_to_exec_file)
4200 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4201 (nbsd_nat_target::post_startup_inferior)
4202 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4203 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4204 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4205 * (nbsd_thread_lister): Remove.
4206
f404573e
KR
42072020-09-10 Kamil Rytarowski <n54@gmx.com>
4208
4209 * fork-inferior.c (startup_inferior): Avoid double free.
4210
1ccb2c17
KR
42112020-09-10 Kamil Rytarowski <n54@gmx.com>
4212
4213 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4214 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4215
feedfcc7
KR
42162020-09-10 Kamil Rytarowski <n54@gmx.com>
4217
4218 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4219 * netbsd-nat.c: Include <sys/ptrace.h>.
4220 * (netbsd_nat::enable_proc_events): Add.
4221
c489f8c6
KR
42222020-09-10 Kamil Rytarowski <n54@gmx.com>
4223
4224 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4225 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4226 (netbsd_nat::for_each_thread): Add.
4227 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4228 "gdbsupport/common-debug.h".
4229 * (netbsd_nat::netbsd_thread_lister)
4230 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4231 (netbsd_nat::for_each_thread): Add.
4232
330662f6
KR
42332020-09-10 Kamil Rytarowski <n54@gmx.com>
4234
4235 * netbsd-nat.h: Include <unistd.h>.
4236 * (netbsd_nat::pid_to_exec_file): Add.
4237 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4238 * (netbsd_nat::pid_to_exec_file) Add.
4239
70b67307
KR
42402020-09-10 Kamil Rytarowski <n54@gmx.com>
4241
4242 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4243
99cf6da6
KR
42442020-09-10 Kamil Rytarowski <n54@gmx.com>
4245
4246 * netbsd-nat.h: New file.
4247 * netbsd-nat.c: Likewise.
4248
1b788fb6
TT
42492020-09-09 Tom Tromey <tromey@adacore.com>
4250
4251 * ada-lang.c (remove_extra_symbols): Do not increment when
4252 removing an element
4253
03b0a45f
TT
42542020-09-08 Tom Tromey <tromey@adacore.com>
4255
4256 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4257
3cae4447
TT
42582020-09-08 Tom Tromey <tromey@adacore.com>
4259
4260 PR win32/25302:
4261 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4262 (gdb_bfd_init_data): New function.
4263 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4264
7f08fd51
TBA
42652020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4266
4267 * infrun.c (fetch_inferior_event): Use
4268 `switch_to_target_no_thread` to switch the target.
4269
3e6ff933
TT
42702020-09-06 Tom Tromey <tom@tromey.com>
4271
4272 * symfile.h (dwarf2_free_objfile): Don't declare.
4273
e56798df
AKS
42742020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4275
4276 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4277 to match 16 byte real/complex type generated by Flang compiler.
4278
8f5c6526
TV
42792020-09-03 Tom de Vries <tdevries@suse.de>
4280
4281 PR breakpoint/26546
4282 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4283 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4284
c5065df0
SM
42852020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4286
4287 * maint.c (index_digits): New function.
4288 (struct maint_print_section_data): Remove.
4289 (print_bfd_section_info): Remove print_data parameter, add arg
4290 and index_digits.
4291 (print_objfile_section_info): Likewise.
4292 (print_bfd_section_info_maybe_relocated): Likewise (plus
4293 objfile).
4294 (maintenance_info_sections): Adjust calls.
4295
02c6f3f1
TT
42962020-09-02 Tom Tromey <tromey@adacore.com>
4297
4298 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4299 for null pointers.
4300 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4301
ef5e5b0b
SM
43022020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4303
4304 * bcache.h (struct bcache) <insert>: Change type of `added` to
4305 pointer to bool.
4306 * bcache.c (bcache::insert): Likewise.
4307 * gdbtypes.c (check_types_worklist): Adjust.
4308 * psymtab.c (add_psymbol_to_bcache): Adjust.
4309
973695d6
KB
43102020-08-31 Kevin Buettner <kevinb@redhat.com>
4311
4312 * corelow.c (unordered_set): Include.
4313 (class core_target): Add field 'm_core_unavailable_mappings'.
4314 (core_target::build_file_mappings): Print only one warning
4315 per inaccessible file. Add unavailable/broken mappings
4316 to m_core_unavailable_mappings.
4317 (core_target::xfer_partial): Call...
4318 (core_target::xfer_memory_via_mappings): New method.
4319
264fc0e2
SM
43202020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4321
4322 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4323 type to bool.
4324
2de01bdb
SM
43252020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4326
4327 * dwarf2/read.c (struct field_info): Fix indentation.
4328
f3bd50f1
SM
43292020-08-31 Simon Marchi <simon.marchi@efficios.com>
4330
4331 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4332 ordering in comment.
4333 * frame.c (frame_id_eq): Fix indentation.
4334
22b9b4b0
SL
43352020-08-31 Scott Linder <scott@scottlinder.com>
4336 Simon Marchi <simon.marchi@efficios.com>
4337
4338 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4339 inline frame ids in outer frame.
4340
84154d16
SM
43412020-08-31 Simon Marchi <simon.marchi@efficios.com>
4342
4343 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4344 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4345 (outer_frame_id): Use FID_STACK_OUTER instead of
4346 FID_STACK_INVALID.
4347 (frame_id_p): Don't check for outer_frame_id.
4348
8efaf6b3
SM
43492020-08-31 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4352 regnum/frame in value. Call allocate_value_lazy.
4353 * frame.c (frame_unwind_register_value): Use
4354 val_print_not_saved.
4355
fe1fe7ea
SM
43562020-08-31 Simon Marchi <simon.marchi@efficios.com>
4357
4358 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4359
f7c7700d
PA
43602020-08-29 Pedro Alves <pedro@palves.net>
4361
4362 * progspace.c (print_program_space): Use all_inferiors. Switch to
4363 the inferior before calling target_pid_to_str.
4364
e0814aae
TT
43652020-08-28 Tom Tromey <tom@tromey.com>
4366
4367 * xcoffread.c (xcoff_end_psymtab): Update comment.
4368 * dbxread.c (dbx_end_psymtab): Update comment.
4369
626d2320
TV
43702020-08-28 Tom de Vries <tdevries@suse.de>
4371
4372 PR breakpoint/26544
4373 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4374 event_location.
4375 (create_breakpoint): Same.
4376 (base_breakpoint_decode_location): Same.
4377 (bkpt_create_sals_from_location): Same.
4378 (bkpt_decode_location): Same.
4379 (bkpt_probe_create_sals_from_location): Same.
4380 (bkpt_probe_decode_location): Same.
4381 (tracepoint_create_sals_from_location): Same.
4382 (tracepoint_decode_location): Same.
4383 (tracepoint_probe_decode_location): Same.
4384 (strace_marker_create_sals_from_location): Same.
4385 (strace_marker_decode_location): Same.
4386 (create_sals_from_location_default): Same.
4387 (decode_location_default): Same.
4388 * breakpoint.h (struct breakpoint_ops): Same.
4389 (create_breakpoint): Same.
4390 * linespec.h (decode_line_full): Same.
4391 * linespec.c (decode_line_full): Same. Throw error if
4392 result.size () == 0.
4393
df631783
PA
43942020-08-27 Pedro Alves <pedro@palves.net>
4395
4396 PR gdb/26524
4397 * breakpoint.c (until_break_fsm) <location_breakpoint,
4398 caller_breakpoint>: Delete fields.
4399 <breakpoints>: New field.
4400 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4401 two individual breakpoints.
4402 (until_break_fsm::should_stop): Loop over breakpoints in the
4403 breakpoint vector.
4404 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4405 vector.
4406 (until_break_command): Handle location expanding into multiple
4407 sals.
4408
b2b38aa4
PA
44092020-08-27 Pedro Alves <pedro@palves.net>
4410
4411 PR gdb/26523
4412 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4413 bp_until breakpoints user-specified locations. Update intro
4414 comment.
4415
b886559f
SM
44162020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4417
4418 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4419 gdb_bfd_sections): New.
4420 * maint.c (print_bfd_section_info): Change param type to
4421 maint_print_section_data.
4422 (print_objfile_section_info): Likewise.
4423 (print_bfd_section_info_maybe_relocated): Likewise.
4424 (maintenance_info_sections): Use gdb_bfd_sections.
4425
4c6e63bf
SV
44262020-08-25 Shahab Vahedi <shahab@synopsys.com>
4427
4428 * MAINTAINERS: Add ARC target and maintainer.
4429
8d7f0635
AK
44302020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4431
4432 * configure.tgt: ARC support for GNU/Linux.
4433 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4434 * arc-linux-tdep.c: New file.
4435 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4436 * arc-tdep.c (arc_write_pc): Use it.
4437
fdd8731b
SV
44382020-08-25 Shahab Vahedi <shahab@synopsys.com>
4439
4440 * arc-tdep.c (arc_check_for_hardware_loop): New.
4441 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4442
22459524
SV
44432020-08-25 Shahab Vahedi <shahab@synopsys.com>
4444
4445 * arc-tdep.h: Include "gdbarch.h".
4446
995d3a19
SV
44472020-08-25 Shahab Vahedi <shahab@synopsys.com>
4448
4449 * arch/arc.h
4450 (arc_gdbarch_features): New class to stir the selection of target XML.
4451 (arc_create_target_description): Use FEATURES to choose XML target.
4452 (arc_lookup_target_description): Use arc_create_target_description
4453 to create _new_ target descriptions or return the already created
4454 ones if the FEATURES is the same.
4455 * arch/arc.c: Implementation of prototypes described above.
4456 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4457 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4458 * arc-tdep.c (*_feature_name): Make feature names consistent.
4459 (arc_register_feature): A new struct to hold information about
4460 registers of a particular target/feature.
4461 (arc_check_tdesc_feature): Check if XML provides registers in
4462 compliance with ARC_REGISTER_FEATURE structs.
4463 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4464 (determine_*_reg_feature_set): Which feature name to look for.
4465 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4466 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4467 to expected ISA enums to be used in arc_gdbarch_features structs.
4468 * features/Makefile (FEATURE_XMLFILES): Add new files.
4469 * gdb/features/arc/v1-aux.c: New file.
4470 * gdb/features/arc/v1-aux.xml: Likewise.
4471 * gdb/features/arc/v1-core.c: Likewise.
4472 * gdb/features/arc/v1-core.xml: Likewise.
4473 * gdb/features/arc/v2-aux.c: Likewise.
4474 * gdb/features/arc/v2-aux.xml: Likewise.
4475 * gdb/features/arc/v2-core.c: Likewise.
4476 * gdb/features/arc/v2-core.xml: Likewise.
4477 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4478
3945d2d7
GM
44792020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4480 Andrew Burgess <andrew.burgess@embecosm.com>
4481
4482 PR m2/26372
fc5d6901 4483 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4484 an assert. Remove single element array indexing pattern as the
4485 MULTI_SUBSCRIPT support will handle this case too.
4486
2677f2d3
SM
44872020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4488
4489 * value.h (valprint_check_validity): Move declaration from
4490 here...
4491 * valprint.h (valprint_check_validity): ... to here.
4492
c426fddb
SM
44932020-08-24 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * debug.h: New file.
4496 * debug.c (debug_prefixed_vprintf): New function.
4497 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4498 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4499
1eb8556f
SM
45002020-08-24 Simon Marchi <simon.marchi@efficios.com>
4501
4502 * infrun.h (infrun_debug_printf_1): New function declaration.
4503 (infrun_debug_printf): New macro.
4504 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4505 throughout.
4506 (infrun_debug_printf): New function.
4507 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4508 (handle_jit_event): Likewise.
4509
b8fff44e
MW
45102020-08-21 Mark Wielaard <mark@klomp.org>
4511
4512 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4513
d19c3068
SM
45142020-08-22 Simon Marchi <simon.marchi@efficios.com>
4515
4516 * frame.c (enum class frame_id_status): New.
4517 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4518 (fprintf_frame): Update.
4519 (compute_frame_id): Set frame id status to "computing" on entry.
4520 Set it back to "not_computed" on failure and to "computed" on
4521 success.
4522 (get_frame_id): Assert the frame id is not being computed.
4523 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4524 (create_new_frame): Likewise.
4525 (frame_cleanup_after_sniffer): Update assert.
4526
b70e516e
SM
45272020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4528
4529 * regcache.c (pid_ptid_regcache_map): New type.
4530 (target_ptid_regcache_map): Remove.
4531 (target_pid_ptid_regcache_map): New type.
4532 (regcaches): Change type to target_pid_ptid_regcache_map.
4533 (get_thread_arch_aspace_regcache): Update.
4534 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4535 case.
4536 (regcaches_size): Update.
4537 (regcache_count): Update.
4538 (registers_changed_ptid_target_pid_test): New.
4539 (_initialize_regcache): Register new test.
4540
cdd9148a
SM
45412020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4542
4543 * regcache.c (regcache_count): New.
4544 (struct regcache_test_data): New.
4545 (regcache_test_data_up): New.
4546 (populate_regcaches_for_test): New.
4547 (regcaches_test): Remove.
4548 (get_thread_arch_aspace_regcache_test): New.
4549 (registers_changed_ptid_all_test): New.
4550 (registers_changed_ptid_target_test): New.
4551 (registers_changed_ptid_target_ptid_test): New.
4552 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4553 (_initialize_regcache): Register new tests.
4554
dd125343
SM
45552020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4556
4557 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4558 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4559 gdbarch and aspace parameter. Use current inferior's aspace.
4560 Validate regcache's arch value.
4561 (regcaches_test): Update.
4562
3ee93972
SM
45632020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4564
4565 * regcache.c (regcaches_test): Call registers_changed.
4566
33bf4c5c
TBA
45672020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4568
4569 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4570
c2fd7fae
AKS
45712020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4572
4573 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4574 to find the end of prologue for flang compiled binaries.
4575 * arm-tdep.c (arm_skip_prologue): Likewise.
4576 * i386-tdep.c (i386_skip_prologue): Likewise.
4577 * producer.c (producer_is_llvm): New function.
4578 (producer_parsing_tests): Added new tests for clang/flang.
4579 * producer.h (producer_is_llvm): New declaration.
4580
9327494e
SM
45812020-08-18 Simon Marchi <simon.marchi@efficios.com>
4582
4583 * linux-nat.c (linux_nat_debug_printf): New function.
4584 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4585
d138725a
AM
45862020-08-18 Aaron Merey <amerey@redhat.com>
4587
4588 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4589 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4590 (CLIBS): Add DEBUGINFOD_LIBS.
4591
f9b11e6b
ST
45922020-08-17 Sergei Trofimovich <siarheit@google.com>
4593
4594 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4595 'gdbarch_num_regs'.
4596
3ae7ab99
TT
45972020-08-17 Tom Tromey <tromey@adacore.com>
4598
4599 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4600 ada_get_decoded_value returns NULL.
4601
b017825f
TT
46022020-08-17 Tom Tromey <tromey@adacore.com>
4603
4604 * python/py-inferior.c (infpy_search_memory): Use
4605 gdb_py_object_from_ulongest.
4606 * python/py-infevents.c (create_inferior_call_event_object)
4607 (create_memory_changed_event_object): Use
4608 gdb_py_object_from_ulongest.
4609 * python/py-linetable.c (ltpy_entry_get_pc): Use
4610 gdb_py_object_from_ulongest.
4611
7635cf79
SM
46122020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4613
4614 * loc.c (class symbol_needs_eval_context): Fix indentation.
4615
f54be24b
SM
46162020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4617
4618 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4619 bool.
4620
53d5a2a5
TV
46212020-08-17 Tom de Vries <tdevries@suse.de>
4622
4623 PR gdb/26393
4624 * gdbtypes.c (dump_dynamic_prop): New function.
4625 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4626
547ce8f0
TV
46272020-08-15 Tom de Vries <tdevries@suse.de>
4628
4629 PR backtrace/26390
4630 * stack.c (print_frame_args): Temporarily set the selected
4631 frame to FRAME while printing the frame's arguments.
4632
6ea815e7
PFC
46332020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4634
4635 PR breakpoints/26385
4636 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4637 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4638
6e562fa3
PFC
46392020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4640
4641 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4642 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4643 and >= to check return value instead of == -1 and != -1.
4644
d369b608
SM
46452020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4646
4647 * utils.h (class gdb_argv) <as_array_view>: New method.
4648 * utils.c (gdb_argv_as_array_view_test): New.
4649 (_initialize_utils): Register selftest.
4650 * maint.c (maintenance_selftest): Use the new method.
4651
b31488a3
KR
46522020-08-13 Kamil Rytarowski <n54@gmx.com>
4653
4654 * target.h (supports_dumpcore, dumpcore): New
4655 function declarations.
4656 * target.c (supports_dumpcore, dumpcore): New
4657 functions.
4658 * target-delegates.c: Rebuild.
4659 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4660 and target_dumpcore ().
4661
002a3166
AM
46622020-08-13 Aaron Merey <amerey@redhat.com>
4663
4664 * debuginfod-support.c: Replace global variables with user_data.
4665
ece5bc8a
SM
46662020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4667
4668 * maint.c (maintenance_selftest): Split args and pass array_view
4669 to run_tests.
4670
6d8a0a5e
LM
46712020-08-12 Luis Machado <luis.machado@linaro.org>
4672
4673 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4674 type's length.
4675 Use %s and pulongest to print the length.
4676
7cf663a9
PA
46772020-08-12 Pedro Alves <palves@redhat.com>
4678
4679 * NEWS: Move "Multi-target debugging support" item to the
4680 "Changes since GDB 9" section.
4681
27c7b875
PA
46822020-08-12 Pedro Alves <palves@redhat.com>
4683
4684 PR gdb/26336
4685 * progspace.c (program_space::remove_objfile): Invalidate the
4686 frame cache.
4687
1796a2a1
TV
46882020-08-11 Tom de Vries <tdevries@suse.de>
4689
4690 * MAINTAINERS: Mark ms1 as deleted.
4691
f8e3fe0d
LM
46922020-08-10 Luis Machado <luis.machado@linaro.org>
4693
4694 PR gdb/26310
4695
4696 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4697 act accordingly.
4698 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4699 movz/str/stur/stp skipping behavior.
4700
cc308722
LM
47012020-08-10 Luis Machado <luis.machado@linaro.org>
4702
4703 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4704 struct user_sve_header instead of struct sve_context.
4705
041d9819
SM
47062020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4707
4708 * read.h (dwarf2_fetch_die_loc_sect_off,
4709 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4710 `void *` parameter with function_view.
4711 * read.c (dwarf2_fetch_die_loc_sect_off,
4712 dwarf2_fetch_die_loc_cu_off): Likewise.
4713 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4714 (per_cu_dwarf_call): Adjust.
4715 (get_frame_address_in_block_wrapper): Remove.
4716 (indirect_synthetic_pointer): Adjust.
4717 (get_ax_pc): Remove.
4718 (dwarf2_compile_expr_to_ax): Adjust.
4719
38f8aa06
TV
47202020-08-08 Tom de Vries <tdevries@suse.de>
4721
4722 PR build/26344
4723 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4724 constructor.
4725 * regcache.c (get_thread_arch_aspace_regcache): Same.
4726
a52b3ae2
TT
47272020-08-07 Tom Tromey <tromey@adacore.com>
4728
4729 * ravenscar-thread.c
4730 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4731 New method.
4732 (ravenscar_thread_target::wait): Check
4733 runtime_initialized.
4734 (ravenscar_thread_target::prepare_to_store)
4735 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4736 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4737 (ravenscar_thread_target::stopped_by_watchpoint)
4738 (ravenscar_thread_target::stopped_data_address)
4739 (ravenscar_thread_target::core_of_thread): Use
4740 scoped_restore_current_thread and
4741 set_base_thread_from_ravenscar_task.
4742
0e29517d
TT
47432020-08-07 Tom Tromey <tromey@adacore.com>
4744
4745 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4746
592f9bd7
TT
47472020-08-07 Tom Tromey <tromey@adacore.com>
4748
4749 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4750 update_inferior_ptid before update_thread_list.
4751 (temporarily_change_regcache_ptid): New class.
4752 (ravenscar_thread_target::fetch_registers)
4753 (ravenscar_thread_target::store_registers)
4754 (ravenscar_thread_target::prepare_to_store): Use base thread when
4755 forwarding operation.
4756
39e2018a
TT
47572020-08-07 Tom Tromey <tromey@adacore.com>
4758
4759 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4760 "is_pid" case.
4761
2080266b
TT
47622020-08-07 Tom Tromey <tromey@adacore.com>
4763
4764 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4765 New methods.
4766 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4767 first.
4768 (ravenscar_thread_target::add_thread): Rename from
4769 ravenscar_add_thread.
4770 (ravenscar_thread_target::update_thread_list): Use a lambda.
4771 (ravenscar_thread_target::xfer_partial): New method.
4772
78c02f21
TT
47732020-08-07 Tom Tromey <tromey@adacore.com>
4774
4775 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4776 gdb::function_view.
4777 (iterate_over_live_ada_tasks): Change type of argument.
4778 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4779 of argument.
4780
d5d833af
TT
47812020-08-07 Tom Tromey <tromey@adacore.com>
4782
4783 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4784 Remove.
4785 (ravenscar_thread_target::extra_thread_info): Remove.
4786 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4787 defer to target beneath for non-Ravenscar threads.
4788
a8ac85bb
TT
47892020-08-07 Tom Tromey <tromey@adacore.com>
4790
4791 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4792 get_base_thread_from_ravenscar_task>: Now methods.
4793 <m_cpu_map>: New member.
4794 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4795 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4796 (ravenscar_thread_target::task_is_currently_active): Update.
4797 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4798 Now a method.
4799 (ravenscar_thread_target::add_active_thread): Put initial thread
4800 into the m_cpu_map.
4801
550ab58d
TT
48022020-08-07 Tom Tromey <tromey@adacore.com>
4803
4804 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4805 event_ptid.
4806
e9546579
TT
48072020-08-07 Tom Tromey <tromey@adacore.com>
4808
4809 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4810 runtime_initialized.
4811
3d4470e5
TT
48122020-08-07 Tom Tromey <tromey@adacore.com>
4813
4814 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4815 add_active_thread.
4816 (ravenscar_thread_target::add_active_thread): Now public.
4817 (ravenscar_inferior_created): Call add_active_thread after pushing
4818 the target.
4819
888bdb2b
SM
48202020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4821
4822 * regcache.c (ptid_regcache_map): New type.
4823 (target_ptid_regcache_map): New type.
4824 (regcaches): Change type to target_ptid_regcache_map.
4825 (get_thread_arch_aspace_regcache): Update to regcaches' new
4826 type.
4827 (regcache_thread_ptid_changed): Likewise.
4828 (registers_changed_ptid): Likewise.
4829 (regcaches_size): Likewise.
4830 (regcaches_test): Update.
4831 (regcache_thread_ptid_changed): Update.
4832 * regcache.h (regcache_up): New type.
4833 * gdbsupport/ptid.h (hash_ptid): New struct.
4834
b161a60d
SM
48352020-08-07 Simon Marchi <simon.marchi@efficios.com>
4836
4837 * observable.h (thread_ptid_changed): Add parameter
4838 `process_stratum_target *`.
4839 * infrun.c (infrun_thread_ptid_changed): Add parameter
4840 `process_stratum_target *` and use it.
4841 (selftests): New namespace.
4842 (infrun_thread_ptid_changed): New function.
4843 (_initialize_infrun): Register selftest.
4844 * regcache.c (regcache_thread_ptid_changed): Add parameter
4845 `process_stratum_target *` and use it.
4846 (regcache_thread_ptid_changed): New function.
4847 (_initialize_regcache): Register selftest.
4848 * thread.c (thread_change_ptid): Pass target to
4849 thread_ptid_changed observable.
4850
d2854d8d
CT
48512020-08-06 Caroline Tice <cmtice@google.com>
4852
fe4c3d43
SM
4853 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4854 (struct dwp_sections): Update field comments. Add loclists and
4855 rnglists fields.
4856 (struct virtual_v2_dwo_sections): Rename struct to
4857 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4858 size & offset fields for loclists and rnglists.
4859 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4860 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4861 skipping dummy type units.
4862 (create_dwp_hash_table): Update the large comment above the function to
4863 discuss Version 5 DWP files as well, with references. Update all the
4864 version checks in the function to check for version 5 as well. Add new
4865 section at the end to create dwp hash table for version 5.
4866 (create_dwp_v2_section): Rename function to
4867 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4868 Add V5 to error message text.
4869 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4870 into calls to create_dwp_v2_or_v5_section.
4871 (create_dwo_unit_in_dwp_v5): New function.
4872 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4873 check for version2; add else clause to handle version 5.
4874 (open_and_init_dwo_file): Add code to check dwarf version & only call
4875 create_debug_types_hash_table (with sections.types) if version is not 5;
4876 else call create_debug_type_hash_table, with sections.info.
4877 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4878 version 5.
4879 (dwarf2_locate_v5_dwp_sections): New function.
4880 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4881 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4882
159ed7d9
SM
48832020-08-06 Simon Marchi <simon.marchi@efficios.com>
4884
4885 * regcache.h (class regcache): Remove friend
4886 registers_changed_ptid.
4887 <regcache_thread_ptid_changed>: Remove.
4888 <regcaches>: Remove.
4889 * regcache.c (regcache::regcaches): Rename to...
4890 (regcaches): ... this. Make static.
4891 (get_thread_arch_aspace_regcache): Update.
4892 (regcache::regcache_thread_ptid_changed): Rename to...
4893 (regcache_thread_ptid_changed): ... this. Update.
4894 (class regcache_access): Remove.
4895 (regcaches_test): Update.
4896 (_initialize_regcache): Update.
4897 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4898 <forward_list>.
4899
174981ae
SM
49002020-08-06 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * regcache.h (class regcache) <current_regcache>: Rename to...
4903 <regcaches>: ... this. Move doc here.
4904 * regcache.c (regcache::current_regcache) Rename to...
4905 (regcache::regcaches): ... this. Move doc to header.
4906 (get_thread_arch_aspace_regcache): Update.
4907 (regcache::regcache_thread_ptid_changed): Update.
4908 (registers_changed_ptid): Update.
4909 (class regcache_access) <current_regcache_size>: Rename to...
4910 <regcaches_size>: ... this.
4911 (current_regcache_test): Rename to...
4912 (regcaches_test): ... this.
4913 (_initialize_regcache): Update.
4914
ed908db6
VC
49152020-08-06 Victor Collod <vcollod@nvidia.com>
4916
4917 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4918
b5582ab7
KB
49192020-08-05 Kevin Buettner <kevinb@redhat.com>
4920
4921 * corelow.c (core_target::build_file_mappings): Don't output
4922 null pathname in warning.
4923
ea946b86
SM
49242020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4925
4926 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4927 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4928 gdb.dwarf2/dw2-single-line-discriminators.exp,
4929 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4930
57d02173
TT
49312020-08-05 Tom Tromey <tromey@adacore.com>
4932
4933 PR rust/26197:
4934 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4935 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4936 Fix off-by-one and type size errors in ordinary case.
4937
5555c86d
TV
49382020-08-05 Tom de Vries <tdevries@suse.de>
4939
4940 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4941 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4942
97916bfe
SM
49432020-08-04 Simon Marchi <simon.marchi@efficios.com>
4944
4945 * frame.h (frame_id_p): Return bool.
4946 (frame_id_artificial_p): Return bool.
4947 (frame_id_eq): Return bool.
4948 (has_stack_frames): Return bool.
4949 (get_selected_frame): Fix typo in comment.
4950 (get_frame_pc_if_available): Return bool.
4951 (get_frame_address_in_block_if_available): Return bool.
4952 (get_frame_func_if_available): Return bool.
4953 (read_frame_register_unsigned): Return bool.
4954 (get_frame_register_bytes): Return bool.
4955 (safe_frame_unwind_memory): Return bool.
4956 (deprecated_frame_register_read): Return bool.
4957 (frame_unwinder_is): Return bool.
4958 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4959 bool.
4960 <this_id::p>: Likewise.
4961 <prev_p>: Likewise.
4962 (frame_stash_add): Return bool.
4963 (get_frame_id): Use bool.
4964 (frame_id_build_special) Use bool.
4965 (frame_id_build_unavailable_stack): Use bool.
4966 (frame_id_build): Use bool.
4967 (frame_id_p): Return bool, use true/false instead of 1/0.
4968 (frame_id_artificial_p): Likewise.
4969 (frame_id_eq): Likewise.
4970 (frame_id_inner): Likewise.
4971 (get_frame_func_if_available): Likewise.
4972 (read_frame_register_unsigned): Likewise.
4973 (deprecated_frame_register_read): Likewise.
4974 (get_frame_register_bytes): Likewise.
4975 (has_stack_frames): Likewise.
4976 (inside_main_func): Likewise.
4977 (inside_entry_func): Likewise.
4978 (get_frame_pc_if_available): Likewise.
4979 (get_frame_address_in_block_if_available): Likewise.
4980 (frame_unwinder_is): Likewise.
4981 (safe_frame_unwind_memory): Likewise.
4982 (frame_unwind_arch): Likewise.
4983
fedfee88
SM
49842020-08-04 Simon Marchi <simon.marchi@efficios.com>
4985
4986 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4987 type to cached_copy_status.
4988 (fprintf_frame): Adjust.
4989 (get_frame_func_if_available): Adjust.
4990 (frame_cleanup_after_sniffer): Adjust.
4991
6cfa9b59
MW
49922020-08-04 Mark Wielaard <mark@klomp.org>
4993
4994 * MAINTAINERS (Write After Approval): Update email address.
4995
66d6346b
SM
49962020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4997
4998 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4999 dynamic_prop::const_val.
5000
8a6d5e35
SM
50012020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5002
5003 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5004 dynamic_prop::kind.
5005
51d6067d
SM
50062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5007
5008 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5009
b26e2ae7
JM
50102020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5011
5012 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5013
39791af2
JM
50142020-08-04 Weimin Pan <weimin.pan@oracle.com>
5015 Jose E. Marchesi <jose.marchesi@oracle.com>
5016
5017 * configure.tgt: Add entry for bpf-*-*.
5018 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5019 (ALLDEPFILES): Add bpf-tdep.c.
5020 * bpf-tdep.c: New file.
5021 * MAINTAINERS: Add bpf target and maintainer.
5022 * NEWS: Mention the support for the new target.
5023
521894aa
TV
50242020-08-04 Tom de Vries <tdevries@suse.de>
5025
5026 PR symtab/23270
5027 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5028 Error.
5029
5d6356e9
JB
50302020-08-03 John Baldwin <jhb@FreeBSD.org>
5031
5032 * syscalls/freebsd.xml: Regenerate.
5033
0cf82b81
JB
50342020-08-03 John Baldwin <jhb@FreeBSD.org>
5035
5036 * syscalls/update-freebsd.sh: Fix usage and year range.
5037
8f34b746
TV
50382020-08-03 Tom de Vries <tdevries@suse.de>
5039
5040 PR symtab/26333
5041 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5042 DW_LNE_lo_user/DW_LNE_hi_user range.
5043
5e500d33
SM
50442020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5045
5046 PR ada/26318
5047 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5048 kind.
5049
78319c15
TBA
50502020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5051
5052 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5053
4c55e970
TBA
50542020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5055
5056 * breakpoint.c (set_breakpoint_condition): Update the condition
5057 expressions after checking that the input condition string parses
5058 successfully and does not contain junk at the end.
5059
1e620590
TBA
50602020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5061
5062 * breakpoint.c (set_breakpoint_condition): Update the
5063 condition string after parsing the new condition successfully.
5064
c8693053
RO
50652020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5066
5067 * proc-api.c (_STRUCTURED_PROC): Don't define.
5068 * proc-events.c: Likewise.
5069 * proc-flags.c: Likewise.
5070 * proc-why.c: Likewise.
5071 * procfs.c: Likewise.
5072
5073 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5074 * configure, config.in: Regenerate.
5075
5a99adb8
TV
50762020-07-30 Tom de Vries <tdevries@suse.de>
5077
5078 PR build/26320
5079 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5080 m_red/m_green/m_blue in a union.
5081
8ba83e91
TV
50822020-07-29 Tom de Vries <tdevries@suse.de>
5083
5084 PR tdep/26280
5085 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5086
f75a0693
AB
50872020-07-28 Tom Tromey <tromey@adacore.com>
5088
5089 PR symtab/26270:
5090 * symtab.h (find_pc_partial_function_sym): Declare.
5091 * cli/cli-cmds.c (disassemble_command): Use
5092 find_pc_partial_function_sym. Check asm_demangle.
5093 * blockframe.c (cache_pc_function_sym): New global.
5094 (cache_pc_function_name): Remove.
5095 (clear_pc_function_cache): Update.
5096 (find_pc_partial_function_sym): New function, from
5097 find_pc_partial_function.
5098 (find_pc_partial_function): Rewrite using
5099 find_pc_partial_function_sym.
5100
16f3242c
TT
51012020-07-28 Tom Tromey <tromey@adacore.com>
5102
5103 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5104 help. Add usage.
5105
4888741a
TT
51062020-07-28 Tom Tromey <tromey@adacore.com>
5107
5108 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5109 <DW_OP_GNU_variable_value>: Cast to address type.
5110
4d46f402
KR
51112020-07-28 Kamil Rytarowski <n54@gmx.com>
5112
5113 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5114 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5115 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5116 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5117 (nbsd_get_siginfo_type): New.
5118 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5119 (_initialize_nbsd_tdep): New.
5120
d70f978b
L
51212020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5122
5123 PR binutils/26301
5124 * configure: Regenerated.
5125
377170fa
L
51262020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5127
5128 PR binutils/26301
5129 * configure: Regenerated.
5130
43d5901d
AB
51312020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5132
5133 * python/py-frame.c: Remove 'user-regs.h' include.
5134 (frapy_read_register): Rewrite to make use of
5135 gdbpy_parse_register_id.
5136 * python/py-registers.c (gdbpy_parse_register_id): New function,
5137 moved here from python/py-unwind.c. Updated the return type, and
5138 also accepts register descriptor objects.
5139 * python/py-unwind.c: Remove 'user-regs.h' include.
5140 (pyuw_parse_register_id): Moved to python/py-registers.c.
5141 (unwind_infopy_add_saved_register): Update to use
5142 gdbpy_parse_register_id.
5143 (pending_framepy_read_register): Likewise.
5144 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5145
14fa8fb3
AB
51462020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5147
5148 * python/py-registers.c: Add 'user-regs.h' include.
5149 (register_descriptor_iter_find): New function.
5150 (register_descriptor_iterator_object_methods): New static global
5151 methods array.
5152 (register_descriptor_iterator_object_type): Add pointer to methods
5153 array.
5154
ddce1758
JB
51552020-07-27 John Baldwin <jhb@FreeBSD.org>
5156
5157 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5158 for all architectures on FreeBSD 11.3 and later.
5159
a4089f52
TT
51602020-07-27 Tom Tromey <tromey@adacore.com>
5161
5162 * gcore.h (load_corefile): Don't declare.
5163
95420d30
TV
51642020-07-27 Tom de Vries <tdevries@suse.de>
5165
5166 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5167 * config.in: Regenerate.
5168 * configure: Regenerate.
5169
05a6b8c2
EZ
51702020-07-26 Eli Zaretskii <eliz@gnu.org>
5171
5172 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5173 ws2tcpip.h. When checking whether socklen_t type is defined, use
5174 ws2tcpip.h if it is available and sys/socket.h isn't.
5175 * configure: Regenerate.
5176 * config.in: Regenerate.
5177
e79eb02f
AB
51782020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5179
5180 PR fortran/23051
5181 PR fortran/26139
5182 * valops.c (value_ind): Pass address to
5183 readjust_indirect_value_type.
5184 * value.c (readjust_indirect_value_type): Make parameter
5185 non-const, and add extra address parameter. Resolve original type
5186 before using it.
5187 * value.h (readjust_indirect_value_type): Update function
5188 signature and comment.
5189
876518dd
TV
51902020-07-25 Tom de Vries <tdevries@suse.de>
5191
5192 PR symtab/26243
5193 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5194 entries.
5195
f6720b1c
AM
51962020-07-24 Aaron Merey <amerey@redhat.com>
5197
5198 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5199 * configure: Rebuild.
5200
513487e1
KB
52012020-07-23 Kevin Buettner <kevinb@redhat.com>
5202
5203 PR corefiles/26294
5204 * corelow.c (_initialize_corelow): Add period to help text
5205 for "maintenance print core-file-backed-mappings".
5206
e7bc9db8
PA
52072020-07-23 Pedro Alves <pedro@palves.net>
5208
5209 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5210 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5211 meanwhile.
5212 * frame.c (frame_cache_generation, get_frame_cache_generation):
5213 New.
5214 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5215 (get_prev_frame_if_no_cycle): On exception, don't touch
5216 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5217 * frame.h (get_frame_cache_generation): Declare.
5218
90fcc466
TV
52192020-07-23 Tom de Vries <tdevries@suse.de>
5220
5221 PR tui/26282
5222 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5223 New default constructor.
5224
78344df7
AB
52252020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5226
5227 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5228 exclude non-statement entries.
5229
b089853a
KB
52302020-07-22 Kevin Buettner <kevinb@redhat.com>
5231
5232 * NEWS (New commands): Mention new command
5233 "maintenance print core-file-backed-mappings".
5234
09c2f5d4
KB
52352020-07-22 Kevin Buettner <kevinb@redhat.com>
5236
5237 * corelow.c (gdbcmd.h): Include.
5238 (core_target::info_proc_mappings): New method.
5239 (get_current_core_target): New function.
5240 (maintenance_print_core_file_backed_mappings): New function.
5241 (_initialize_corelow): Add core-file-backed-mappings to
5242 "maint print" commands.
5243
9c5ec5c2 52442020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5245
9c5ec5c2
KB
5246 * linux-tdep.c (dump_note_entry_p): New function.
5247 (linux_dump_mapping_p_ftype): New typedef.
5248 (linux_find_memory_regions_full): Add new parameter,
5249 should_dump_mapping_p.
5250 (linux_find_memory_regions): Adjust call to
5251 linux_find_memory_regions_full.
5252 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5253 call to linux_find_memory_regions_full.
5254
db082f59
KB
52552020-07-22 Kevin Buettner <kevinb@redhat.com>
5256
5257 * corelow.c (solist.h, unordered_map): Include.
5258 (class core_target): Add field m_core_file_mappings and
5259 method build_file_mappings.
5260 (core_target::core_target): Call build_file_mappings.
5261 (core_target::~core_target): Free memory associated with
5262 m_core_file_mappings.
5263 (core_target::build_file_mappings): New method.
5264 (core_target::xfer_partial): Use m_core_file_mappings
5265 for memory transfers.
5266 * linux-tdep.c (linux_read_core_file_mappings): New
5267 function.
5268 (linux_core_info_proc_mappings): Rewrite to use
5269 linux_read_core_file_mappings.
5270 (linux_init_abi): Register linux_read_core_file_mappings.
5271
7e183d27
KB
52722020-07-22 Kevin Buettner <kevinb@redhat.com>
5273
5274 * arch-utils.c (default_read_core_file_mappings): New function.
5275 * arch-utils.c (default_read_core_file_mappings): Declare.
5276 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5277 * gdbarch.h, gdbarch.c: Regenerate.
5278
2735d421
KB
52792020-07-22 Kevin Buettner <kevinb@redhat.com>
5280
5281 PR corefiles/25631
5282 * corelow.c (core_target:xfer_partial): Revise
5283 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5284 case after first checking the stratum beneath the core
5285 target.
5286 (has_all_memory): Return true.
5287 * target.c (raw_memory_xfer_partial): Revise comment
5288 regarding use of has_all_memory.
5289
e56cb451
KB
52902020-07-22 Kevin Buettner <kevinb@redhat.com>
5291
5292 * exec.h (section_table_xfer_memory): Revise declaration,
5293 replacing section name parameter with an optional callback
5294 predicate.
5295 * exec.c (section_table_xfer_memory): Likewise.
5296 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5297 of section_table_xfer_memory.
5298
32fa152e
TT
52992020-07-22 Tom Tromey <tromey@adacore.com>
5300
5301 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5302 lookup_symbol_search_name.
5303
a67a1c41
AB
53042020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5305
5306 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5307 redundant local variable.
5308 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5309 reference, not pointer, update code accordingly.
5310
a7b4ff4f
SM
53112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5312 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5313
5314 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5315 * jit.c (jit_breakpoint_re_set_internal): Use the
5316 `skip_jit_symbol_lookup` field.
5317
2340e834
SM
53182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5319 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5320
5321 * jit.c (jit_read_descriptor): Define the descriptor address once,
5322 use twice.
5323 (jit_breakpoint_deleted): Move the declaration of the loop variable
5324 `iter` into the loop header.
5325 (jit_breakpoint_re_set_internal): Move the declaration of the local
5326 variable `objf_data` to the first point of definition.
5327 (jit_event_handler): Move the declaration of local variables
5328 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5329 Rename `objf` to `jited`.
5330
c1072906
SM
53312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5332
5333 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5334 Remove.
5335 * jit.c (get_jiter_objfile_data): Update.
5336
c8474dc3
TBA
53372020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5338 Simon Marchi <simon.marchi@polymtl.ca>
5339
5340 * jit.c (struct jit_program_space_data): Remove.
5341 (jit_program_space_key): Remove.
5342 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5343 stuff.
5344 (get_jit_program_space_data): Remove.
5345 (jit_breakpoint_deleted): Iterate on all of the program space's
5346 objfiles.
5347 (jit_inferior_init): Likewise.
5348 (jit_breakpoint_re_set_internal): Likewise. Also change return
5349 type to void.
5350 (jit_breakpoint_re_set): Pass current_program_space to
5351 jit_breakpoint_re_set_internal.
5352
77208eb7
SM
53532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5354
5355 * jit.h (struct jiter_objfile_data) <cached_code_address,
5356 jit_breakpoint>: Move to here from ...
5357 * jit.c (jit_program_space_data): ... here.
5358 (jiter_objfile_data::~jiter_objfile_data): Update.
5359 (jit_breakpoint_deleted): Update.
5360 (jit_breakpoint_re_set_internal): Update.
5361
8c1c720f
SM
53622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5363
5364 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5365 checks.
5366 (jit_read_descriptor): Remove NULL check.
5367 (jit_event_handler): Add an assertion.
5368
0e74a041
SM
53692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5370
5371 * jit.h (struct jit_objfile_data): Split into...
5372 (struct jiter_objfile_data): ... this ...
5373 (struct jited_objfile_data): ... and this.
5374 * objfiles.h (struct objfile) <jit_data>: Remove.
5375 <jiter_data, jited_data>: New fields.
5376 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5377 (jiter_objfile_data::~jiter_objfile_data): ... this.
5378 (get_jit_objfile_data): Rename to ...
5379 (get_jiter_objfile_data): ... this.
5380 (add_objfile_entry): Update.
5381 (jit_read_descriptor): Use get_jiter_objfile_data.
5382 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5383 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5384 (jit_inferior_exit_hook): Use objfile's jited_data field.
5385
238b5c9f
SM
53862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5387
5388 * jit.h: Forward-declare `struct minimal_symbol`.
5389 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5390 constructor, destructor, and an objfile* field.
5391 * jit.c (jit_objfile_data): Remove.
5392 (struct jit_objfile_data): Migrate from here to jit.h.
5393 (jit_objfile_data::~jit_objfile_data): New destructor
5394 implementation with code moved from free_objfile_data.
5395 (free_objfile_data): Delete.
5396 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5397 (jit_find_objf_with_entry_addr): Ditto.
5398 (jit_inferior_exit_hook): Ditto.
5399 (_initialize_jit): Remove the call to
5400 register_objfile_data_with_cleanup.
5401 * objfiles.h (struct objfile) <jit_data>: New field.
5402
fe053b9e
TBA
54032020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5404
5405 * jit.h: Forward-declare `struct objfile`.
5406 (jit_event_handler): Add a second parameter, the JITer objfile.
5407 * jit.c (jit_read_descriptor): Change the signature to take the
5408 JITer objfile as an argument instead of the jit_program_space_data.
5409 (jit_inferior_init): Update the call to jit_read_descriptor.
5410 (jit_event_handler): Use the new JITer objfile argument when calling
5411 jit_read_descriptor.
5412 * breakpoint.c (handle_jit_event): Update the call to
5413 jit_event_handler to pass the JITer objfile.
5414
4cec0c66
JB
54152020-07-21 John Baldwin <jhb@FreeBSD.org>
5416
5417 * gdbarch.c: Regenerate.
5418 * gdbarch.h: Regenerate.
5419 * gdbarch.sh (handle_segmentation_fault): Remove method.
5420 * infrun.c (handle_segmentation_fault): Remove.
5421 (print_signal_received_reason): Remove call to
5422 handle_segmentation_fault.
5423
0e42f66a
JB
54242020-07-21 John Baldwin <jhb@FreeBSD.org>
5425
5426 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5427 Rename to sparc64_linux_report_signal_info and add siggnal
5428 argument.
5429 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5430 instead of sparc64_linux_handle_segmentation_fault.
5431
77bdfeb2
JB
54322020-07-21 John Baldwin <jhb@FreeBSD.org>
5433
5434 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5435 i386_linux_report_signal_info instead of
5436 i386_linux_handle_segmentation_fault.
5437 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5438 to i386_linux_report_signal_info and add siggnal argument.
5439 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5440 of i386_linux_handle_segmentation_fault.
5441 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5442 to i386_linux_report_signal_info and add siggnal argument.
5443
ad97bfc5
JB
54442020-07-21 John Baldwin <jhb@FreeBSD.org>
5445
5446 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5447 hook if present.
5448
272bb05c
JB
54492020-07-21 John Baldwin <jhb@FreeBSD.org>
5450
5451 * gdbarch.c: Regenerate.
5452 * gdbarch.h: Regenerate.
5453 * gdbarch.sh (report_signal_info): New method.
5454 * infrun.c (print_signal_received_reason): Invoke gdbarch
5455 report_signal_info hook if present.
5456
baf8791e
AB
54572020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5458
5459 * python/py-registers.c : Add 'unordered_map' include.
5460 (gdbpy_new_reggroup): Renamed to...
5461 (gdbpy_get_reggroup): ...this. Update to only create register
5462 group descriptors when needed.
5463 (gdbpy_reggroup_iter_next): Update.
5464
f7306dac
AB
54652020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5466
5467 * python/py-registers.c (gdbpy_register_object_data): New static
5468 global.
5469 (gdbpy_register_object_data_init): New function.
5470 (gdbpy_new_register_descriptor): Renamed to...
5471 (gdbpy_get_register_descriptor): ...this, and update to reuse
5472 existing register descriptors where possible.
5473 (gdbpy_register_descriptor_iter_next): Update.
5474 (gdbpy_initialize_registers): Register new gdbarch data.
5475
05c309a8
SM
54762020-07-21 Simon Marchi <simon.marchi@efficios.com>
5477
5478 * linux-nat.c (stopped_pids): Make static.
5479
d1fd641e
SM
54802020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5481
5482 PR ada/26235
5483 * gdbtypes.c (ada_discrete_type_low_bound,
5484 ada_discrete_type_high_bound): Handle undefined bounds.
5485
1de14d77
KR
54862020-07-21 Kamil Rytarowski <n54@gmx.com>
5487
5488 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5489 declaration.
5490 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5491 function.
5492
ed810cc7
JB
54932020-07-20 John Baldwin <jhb@FreeBSD.org>
5494
5495 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5496 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5497 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5498 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5499 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5500 method.
5501
ae5369e7
LC
55022020-07-20 Ludovic Courtès <ludo@gnu.org>
5503
5504 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5505 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5506 which are deprecated in Guile 3.0.
5507 * configure.ac (try_guile_versions): Add "guile-3.0".
5508 * configure (try_guile_versions): Regenerate.
5509 * NEWS: Update entry.
5510
68cf161c
LC
55112020-07-20 Ludovic Courtès <ludo@gnu.org>
5512 Doug Evans <dje@google.com>
5513
5514 PR gdb/21104
5515 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5516 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5517 USING_GUILE_BEFORE_2_2.
5518 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5519 Change type to 'scm_t_port_type *'.
5520 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5521 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5522 parameter and honor it. Update callers.
5523 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5524 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5525 functions.
5526 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5527 USING_GUILE_BEFORE_2_2.
5528 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5529 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5530 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5531 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5532 and 'SCM_PORT_TYPE'.
5533 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5534 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5535 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5536 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5537 [!USING_GUILE_BEFORE_2_2]: New functions.
5538 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5539 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5540 'gdbscm_memory_port_read'.
5541 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5542 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5543 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5544 function.
5545 (ioscm_init_memory_port): Remove.
5546 (ioscm_init_memory_port_stream): New function
5547 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5548 function.
5549 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5550 Return scm_from_uint (0).
5551 (gdbscm_set_memory_port_read_buffer_size_x)
5552 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5553 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5554 Return scm_from_uint (0).
5555 (gdbscm_set_memory_port_write_buffer_size_x)
5556 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5557 * configure.ac (try_guile_versions): Add "guile-2.2".
5558 * configure: Regenerate.
5559 * NEWS: Add entry.
5560
aee91db3
TT
55612020-07-18 Tom Tromey <tom@tromey.com>
5562
5563 * linux-nat.c (linux_multi_process): Remove.
5564 (linux_nat_target::supports_multi_process): Return true.
5565
0e267416
AB
55662020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5567
5568 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5569 (riscv_lookup_target_description): Return pointer out of
5570 unique_ptr.
5571 * target-descriptions.c (allocate_target_description): Add
5572 comment.
5573 (target_desc_deleter::operator()): Likewise.
5574 * target-descriptions.h (struct target_desc_deleter): Moved to
5575 gdbsupport/tdesc.h.
5576 (target_desc_up): Likewise.
5577
f80c8ec4
TT
55782020-07-17 Tom Tromey <tromey@adacore.com>
5579
5580 * linux-nat.c (linux_nat_target::supports_non_stop)
5581 (linux_nat_target::always_non_stop_p): Use "true".
5582 (linux_nat_target::supports_disable_randomization): Use "true" and
5583 "false".
5584
d0ce17d8
CT
55852020-07-16 Caroline Tice <cmtice@google.com>
5586
5587 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5588 (RNGLIST_HEADER_SIZE64): New constant definition.
5589 (struct dwop_section_names): Add rnglists_dwo.
5590 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5591 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5592 (struct dwo_sections): Add rnglists field.
5593 (read_attribut_reprocess): Add tag parameter.
5594 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5595 (cu_debug_rnglists_section): New function (decl & definition).
5596 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5597 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5598 die whose range is being checked; get rnglist section from
5599 cu_debug_rnglists_section, to get from either objfile or dwo file as
5600 appropriate. Add cases for DW_RLE_base_addressx,
5601 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5602 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5603 test inside if-condition and updating complaint message.
5604 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5605 dwarf2_rnglists_process.
5606 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5607 dwarf2_ranges_process.
5608 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5609 need_ranges_base and update comment appropriately. Also pass die tag
5610 to dwarf2_ranges_read.
5611 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5612 need_ranges_base and update comment appropriately. Also pass die tag
5613 to dwarf2_ranges_process.
5614 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5615 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5616 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5617 need_ranges_base and update comment appropriately. Also pass die tag
5618 to read_attribute_reprocess and dwarf2_ranges_read.
5619 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5620 and update function comment appropriately.
5621 (read_loclist_index): Call read_loclists_rnglists_header instead of
5622 read_loclist_header.
5623 (read_rnglist_index): New function.
5624 (read_attribute_reprocess): Add tag parameter. Add code for
5625 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5626 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5627
3dcc261c
AB
56282020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5629
5630 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5631 being resolved.
5632
ccb9eba6
AB
56332020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5634
5635 * arch-utils.c (show_architecture): Update formatting of messages.
5636
cf88be68
SM
56372020-07-12 Simon Marchi <simon.marchi@efficios.com>
5638
5639 * gdbtypes.h (struct type) <bounds>: Handle array and string
5640 types.
5641 * ada-lang.c (assign_aggregate): Use type::bounds on
5642 array/string type.
5643 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5644 * c-varobj.c (c_number_of_children): Likewise.
5645 (c_describe_child): Likewise.
5646 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5647 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5648 (f_type_print_base): Likewise.
5649 * f-valprint.c (f77_array_offset_tbl): Likewise.
5650 (f77_get_upperbound): Likewise.
5651 (f77_print_array_1): Likewise.
5652 * guile/scm-type.c (gdbscm_type_range): Likewise.
5653 * m2-typeprint.c (m2_array): Likewise.
5654 (m2_is_long_set_of_type): Likewise.
5655 * m2-valprint.c (get_long_set_bounds): Likewise.
5656 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5657 * python/py-type.c (typy_range): Likewise.
5658 * rust-lang.c (rust_internal_print_type): Likewise.
5659 * type-stack.c (type_stack::follow_types): Likewise.
5660 * valarith.c (value_subscripted_rvalue): Likewise.
5661 * valops.c (value_cast): Likewise.
5662
509971ae
SM
56632020-07-12 Simon Marchi <simon.marchi@efficios.com>
5664
5665 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5666 callers to use the equivalent accessor methods.
5667
107406b7
SM
56682020-07-12 Simon Marchi <simon.marchi@efficios.com>
5669
5670 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5671 (struct type) <bit_stride>: New method.
5672 (TYPE_BIT_STRIDE): Remove.
5673 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5674
bb789949
SM
56752020-07-12 Simon Marchi <simon.marchi@efficios.com>
5676
5677 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5678 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5679 callers to use the equivalent accessor methods instead.
5680
39498edb
SM
56812020-07-12 Simon Marchi <simon.marchi@efficios.com>
5682
5683 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5684 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5685 callers to use the equivalent accessor methods instead.
5686
3b606f38
SM
56872020-07-12 Simon Marchi <simon.marchi@efficios.com>
5688
5689 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5690 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5691 to use dynamic_prop::kind.
5692
064d9cb9
SM
56932020-07-12 Simon Marchi <simon.marchi@efficios.com>
5694
5695 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5696 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5697 to get the bound property's kind and check against
5698 PROP_UNDEFINED.
5699
5537ddd0
SM
57002020-07-12 Simon Marchi <simon.marchi@efficios.com>
5701
5702 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5703 all callers to use type::range_bounds followed by
5704 dynamic_prop::{low,high}.
5705
8c2e4e06
SM
57062020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5707
5708 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5709 const_val, set_const_val, baton, set_locexpr, set_loclist,
5710 set_addr_offset, variant_parts, set_variant_parts,
5711 original_type, set_original_type>: New methods.
5712 <kind>: Rename to...
5713 <m_kind>: ... this. Update all users to use the new methods
5714 instead.
5715 <data>: Rename to...
5716 <m_data>: ... this. Update all users to use the new methods
5717 instead.
5718
7c6f2712
SM
57192020-07-12 Simon Marchi <simon.marchi@efficios.com>
5720
5721 * gdbtypes.c (get_discrete_bounds): Return failure if
5722 the range type's bounds are not both defined and constant
5723 values.
5724 (get_array_bounds): Update comment. Remove undefined bound check.
5725
599088e3
SM
57262020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5727
5728 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5729 the type::bounds method directly.
5730
c4dfcb36
SM
57312020-07-12 Simon Marchi <simon.marchi@efficios.com>
5732
5733 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5734 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5735 are used to set the range type's bounds to use set_bounds.
5736
0a278aa7
PW
57372020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5738
5739 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5740
cce20f10
PA
57412020-07-10 Pedro Alves <pedro@palves.net>
5742
5743 * gdbthread.h (inferior_ref): Define.
5744 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5745 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5746 * thread.c
5747 (scoped_restore_current_thread::restore):
5748 Adjust to gdb::ref_ptr.
5749 (scoped_restore_current_thread::~scoped_restore_current_thread):
5750 Remove manual decref handling.
5751 (scoped_restore_current_thread::scoped_restore_current_thread):
5752 Adjust to use
5753 inferior_ref::new_reference/thread_info_ref::new_reference.
5754 Incref the thread before calling get_frame_id instead of after.
5755 Let TARGET_CLOSE_ERROR propagate.
5756
6d7aa592
PA
57572020-07-10 Pedro Alves <pedro@palves.net>
5758
5759 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5760 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5761 NOT_AVAILABLE_ERROR.
5762 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5763 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5764
b3e3a4c1
SM
57652020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5766 Pedro Alves <pedro@palves.net>
5767
5768 PR gdb/26199
5769 * infrun.c (threads_are_resumed_pending_p): Delete.
5770 (do_target_wait): Remove threads_are_executing and
5771 threads_are_resumed_pending_p checks from the inferior_matches
5772 lambda. Update comments.
5773
d6cc5d98
PA
57742020-07-10 Pedro Alves <pedro@palves.net>
5775
5776 PR gdb/26199
5777 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5778 executing threads.
5779
7d3badc6
PA
57802020-07-10 Pedro Alves <pedro@palves.net>
5781
5782 PR gdb/26199
5783 * infrun.c (handle_no_resumed): Handle multiple targets.
5784
42bd97a6
PA
57852020-07-10 Pedro Alves <pedro@palves.net>
5786
5787 PR gdb/26199
5788 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5789 target_is_async_p.
5790
43667cc6
PA
57912020-07-10 Pedro Alves <pedro@palves.net>
5792
5793 PR gdb/26199
5794 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5795 threads, not all threads.
5796
96118d11
PA
57972020-07-10 Pedro Alves <pedro@palves.net>
5798
5799 PR gdb/26199
5800 * remote.c (remote_target::open_1): Pass remote target pointer as
5801 data to create_async_event_handler.
5802 (remote_async_inferior_event_handler): Mark async event handler
5803 before returning if the remote target still has either pending
5804 events or unacknowledged notifications.
5805
54904d81
JB
58062020-07-10 John Baldwin <jhb@FreeBSD.org>
5807
5808 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5809 declaration.
5810 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5811 function.
5812
f37e5866
JB
58132020-07-09 John Baldwin <jhb@FreeBSD.org>
5814
5815 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5816 inferior_ptid.
5817
fc238d4a
JB
58182020-07-09 John Baldwin <jhb@FreeBSD.org>
5819
5820 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5821 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5822 AT_FREEBSD_PS_STRINGS.
5823
6e2469ff
HD
58242020-07-08 Hannes Domani <ssbssa@yahoo.de>
5825
5826 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5827 of debugfile path on Windows.
5828
d1076c41
JB
58292020-07-08 John Baldwin <jhb@FreeBSD.org>
5830
5831 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5832 argument to 'data'.
5833
15f3b077
TT
58342020-07-08 Tom Tromey <tromey@adacore.com>
5835
5836 * ada-lang.c (ada_exception_message_1): Use read_memory.
5837
9fc501fd
AB
58382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5839
5840 PR python/22748
5841 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5842 special handling for inline frames.
5843 * findvar.c (value_of_register_lazy): Skip inline frames when
5844 creating lazy register values.
5845 * frame.c (frame_id_computed_p): Delete definition.
5846 * frame.h (frame_id_computed_p): Delete declaration.
5847
64cb3757
AB
58482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5849
5850 * NEWS: Mention additions to Python API.
5851 * python/py-arch.c (archpy_register_groups): New function.
5852 (arch_object_methods): Add 'register_groups' method.
5853 * python/py-registers.c (reggroup_iterator_object): New struct.
5854 (reggroup_object): New struct.
5855 (gdbpy_new_reggroup): New function.
5856 (gdbpy_reggroup_to_string): New function.
5857 (gdbpy_reggroup_name): New function.
5858 (gdbpy_reggroup_iter): New function.
5859 (gdbpy_reggroup_iter_next): New function.
5860 (gdbpy_new_reggroup_iterator): New function
5861 (gdbpy_initialize_registers): Register new types.
5862 (reggroup_iterator_object_type): Define new Python type.
5863 (gdbpy_reggroup_getset): New static global.
5864 (reggroup_object_type): Define new Python type.
5865 * python/python-internal.h
5866
0f767f94
AB
58672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5868
5869 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5870 * python/py-arch.c (archpy_registers): New function.
5871 (arch_object_methods): Add 'registers' method.
5872 * python/py-registers.c: New file.
5873 * python/python-internal.h
5874 (gdbpy_new_register_descriptor_iterator): Declare.
5875 (gdbpy_initialize_registers): Declare.
5876 * python/python.c (do_start_initialization): Call
5877 gdbpy_initialize_registers.
5878 * NEWS: Mention additions to the Python API.
5879
87dbc774
AB
58802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5881
5882 * NEWS: Mention new Python API method.
5883 * python/py-unwind.c (pending_framepy_architecture): New function.
5884 (pending_frame_object_methods): Add architecture method.
5885
3bc98c0c
AB
58862020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5887
5888 * gdbarch.c: Regenerate.
5889 * gdbarch.h: Regenerate.
5890 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5891 (gdbarch_data): Use internal_error for the case where
5892 deprecated_set_gdbarch_data was originally needed.
5893 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5894 and use passed in obstack.
5895 (libunwind_frame_set_descr): Should no longer get back NULL from
5896 gdbarch_data.
5897 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5898 type.
5899 * user-regs.c (user_regs_init): Update parameters, and use passed
5900 in obstack.
5901 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5902 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5903
d8cc8af6
TV
59042020-07-06 Tom de Vries <tdevries@suse.de>
5905
5906 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5907 End-Of-Sequence in lte_is_less_than.
5908 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5909 "gdb: Don't reorder line table entries too much when sorting".
5910
947f7597
TV
59112020-07-06 Tom de Vries <tdevries@suse.de>
5912
5913 PR tui/26205
5914 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5915
1e7c1b22
TV
59162020-07-05 Tom de Vries <tdevries@suse.de>
5917
5918 PR build/26187
5919 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5920 std::uncaught_exceptions instead of deprecated
5921 std::uncaught_exception.
5922
a36158ec
SM
59232020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5924
5925 * macroexp.h (macro_stringify): Return
5926 gdb::unique_xmalloc_ptr<char>.
5927 * macroexp.c (macro_stringify): Likewise.
5928 * macrotab.c (fixup_definition): Update.
5929
14d960c8
SM
59302020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5931
5932 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5933 (lex_one_token): Update.
5934 * macroexp.c (struct macro_buffer) <release>: Return
5935 gdb::unique_xmalloc_ptr<char>.
5936 (macro_stringify): Update.
5937 (macro_expand): Update.
5938 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5939 * macroexp.h (macro_expand_next): Likewise.
5940
211d5b1c
SM
59412020-07-02 Simon Marchi <simon.marchi@efficios.com>
5942
5943 * macroexp.h (macro_lookup_ftype): Remove.
5944 (macro_expand, macro_expand_once, macro_expand_next): Remove
5945 lookup function parameters, add scope parameter.
5946 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5947 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5948 * macroscope.h (standard_macro_lookup): Change parameter type
5949 to macro_scope.
5950 * macroscope.c (standard_macro_lookup): Likewise.
5951 * c-exp.y (lex_one_token): Update.
5952 * macrocmd.c (macro_expand_command): Likewise.
5953 (macro_expand_once_command): Likewise.
5954
b1a35af2
SM
59552020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5956
5957 * inf-loop.c (inferior_event_handler): Remove client_data param.
5958 * inf-loop.h (inferior_event_handler): Likewise.
5959 * infcmd.c (step_1): Adjust.
5960 * infrun.c (proceed): Adjust.
5961 (fetch_inferior_event): Remove client_data param.
5962 (infrun_async_inferior_event_handler): Adjust.
5963 * infrun.h (fetch_inferior_event): Remove `void *` param.
5964 * linux-nat.c (handle_target_event): Adjust.
5965 * record-btrace.c (record_btrace_handle_async_inferior_event):
5966 Adjust.
5967 * record-full.c (record_full_async_inferior_event_handler):
5968 Adjust.
5969 * remote.c (remote_async_inferior_event_handler): Adjust.
5970
1cdf9e33
TT
59712020-07-01 Tom Tromey <tom@tromey.com>
5972
5973 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5974 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5975
32c1e210
TT
59762020-07-01 Tom Tromey <tom@tromey.com>
5977
5978 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5979 tui_gen_win_info.
5980 (tui_win_info::make_window): Merge with
5981 tui_gen_win_info::make_window.
5982 (tui_win_info::make_visible): Move from tui_gen_win_info.
5983 * tui/tui-win.c (tui_win_info::max_width): Move from
5984 tui_gen_win_info.
5985 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5986 type.
5987 <window_factory>: Likewise.
5988 * tui/tui-layout.c (tui_win_info::resize): Move from
5989 tui_gen_win_info.
5990 (make_standard_window): Change return type.
5991 (get_locator_window, tui_get_window_by_name): Likewise.
5992 (tui_layout_window::apply): Remove a cast.
5993 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5994 (struct tui_win_info): Merge with tui_gen_win_info.
5995 (struct tui_gen_win_info): Remove.
5996
a30cb6da
TT
59972020-07-01 Tom Tromey <tom@tromey.com>
5998
5999 * tui/tui-stack.h (struct tui_locator_window): Derive from
6000 tui_win_info.
6001 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6002 <can_box>: New method.
6003
1eb2161f
TT
60042020-07-01 Tom Tromey <tom@tromey.com>
6005
6006 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6007
7134f2eb
TT
60082020-07-01 Tom Tromey <tom@tromey.com>
6009
6010 * tui/tui-regs.c (tui_data_window::display_registers_from)
6011 (tui_data_window::display_registers_from)
6012 (tui_data_window::first_data_item_displayed)
6013 (tui_data_window::delete_data_content_windows): Update.
6014 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6015 Remove.
6016 (tui_data_window::check_register_values): Update.
6017 (tui_data_item_window::rerender): Add parameters. Update.
6018 (tui_data_item_window::refresh_window): Remove.
6019 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6020 virtual.
6021 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6022 tui_gen_win_info.
6023 <refresh_window, max_height, min_height>: Remove.
6024 <rerender>: Add parameters.
6025 <x, y, visible>: New members.
6026 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6027 <m_item_width>: New member.
6028
22b7b041
TT
60292020-07-01 Tom Tromey <tom@tromey.com>
6030
6031 * tui/tui-regs.c (tui_data_window::show_register_group)
6032 (tui_data_window::check_register_values): Update.
6033 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6034 from item_no.
6035
c9753adb
TT
60362020-07-01 Tom Tromey <tom@tromey.com>
6037
6038 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6039 useless "if".
6040
9ab26b4a
TT
60412020-07-01 Tom Tromey <tom@tromey.com>
6042
6043 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6044 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6045
e555083f
TT
60462020-07-01 Tom Tromey <tom@tromey.com>
6047
6048 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6049 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6050 (struct tui_line_or_address): Move from tui-data.h.
6051 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6052 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6053 (tui_cmd_window, tui_source_window_base, tui_source_window)
6054 (tui_disasm_window): Don't declare.
6055 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6056 to tui-winsource.h.
6057 (SINGLE_KEY): Move to tui-stack.c.
6058
7a02bab7
TT
60592020-07-01 Tom Tromey <tom@tromey.com>
6060
6061 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6062 std::string.
6063 * tui/tui-regs.c (class tab_expansion_file): New.
6064 (tab_expansion_file::write): New method.
6065 (tui_register_format): Change return type. Use
6066 tab_expansion_file.
6067 (tui_get_register, tui_data_window::display_registers_from)
6068 (tui_data_item_window::rerender): Update.
6069 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6070 * tui/tui-io.c (tui_expand_tabs): Remove.
6071
ea68593b
TT
60722020-07-01 Tom Tromey <tom@tromey.com>
6073
6074 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6075
a8caed5d
FS
60762020-07-01 Fangrui Song <maskray@google.com>
6077
6078 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6079
9cdf9820
AKS
60802020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6081
6082 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6083 forms for DW_AT_associated and DW_AT_allocated attributes,
6084 which is already checked in function attr_to_dynamic_prop.
6085
a1520ad8
TT
60862020-06-30 Tom Tromey <tromey@adacore.com>
6087
6088 * dwarf2/read.c (quirk_rust_enum): Correctly call
6089 alloc_rust_variant for default-less enum.
6090
5ac58899
TT
60912020-06-30 Tom Tromey <tromey@adacore.com>
6092
6093 PR build/26183:
6094 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6095 gdb::to_string.
6096
19b187a9
SM
60972020-06-29 Simon Marchi <simon.marchi@efficios.com>
6098
6099 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6100 * gdbarch.h: Re-generate.
6101
cd4c4c07
TT
61022020-06-28 Tom Tromey <tom@tromey.com>
6103
6104 * command.h (cmd_types): Remove.
6105 (cmd_type): Don't declare.
6106 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6107 typedef.
6108 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6109 * cli/cli-decode.c (cmd_type): Remove.
6110
05779d57
PA
61112020-06-27 Pedro Alves <palves@redhat.com>
6112
6113 * fork-child.c (prefork_hook): Adjust.
6114 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6115 Delete.
6116 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6117 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6118 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6119 Remove declarations.
6120 (struct inferior) <set_tty, tty>: New methods.
6121 (struct inferior) <terminal>: Rename to ...
6122 (struct inferior) <m_terminal>: ... this and make private.
6123 * main.c (captured_main_1): Adjust.
6124 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6125 (mi_cmd_inferior_tty_show): Adjust.
6126 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6127 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6128
1776e3e5
NA
61292020-06-26 Nick Alcock <nick.alcock@oracle.com>
6130
6131 * configure.ac: Add --enable-libctf: handle --disable-static
6132 properly.
6133 * acinclude.m4: sinclude ../config/enable.m4.
6134 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6135 (LIBCTF): Substitute in.
6136 (CTF_DEPS): New, likewise.
6137 (CLIBS): libctf needs symbols from libbfd: move earlier.
6138 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6139 flags.
6140 * ctfread.c: Surround in ENABLE_LIBCTF.
6141 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6142 * configure: Regenerate.
6143 * config.in: Likewise.
6144
58373b80
SM
61452020-06-25 Simon Marchi <simon.marchi@efficios.com>
6146
6147 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6148
277474ee
SM
61492020-06-25 Simon Marchi <simon.marchi@efficios.com>
6150
6151 * inferior.h (struct inferior) <terminal>: Change type to
6152 gdb::unique_xmalloc_ptr<char>.
6153 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6154 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6155 field, adjust to unique pointer.
6156 (get_inferior_io_terminal): Adjust to unique pointer.
6157
6d74da72
AB
61582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6159
6160 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6161 registers, not just the known core set of registers.
6162
2e52d038
AB
61632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6164
6165 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6166 fflags, frm, and fcsr registers.
6167 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6168 restore groups.
6169 (riscv_tdesc_unknown_reg): New function.
6170 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6171 tdesc_use_registers.
6172 * riscv-tdep.h (struct gdbarch_tdep): Add
6173 unknown_csrs_first_regnum, unknown_csrs_count,
6174 duplicate_fflags_regnum, duplicate_frm_regnum, and
6175 duplicate_fcsr_regnum fields.
6176
be64fd07
AB
61772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6178
6179 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6180 callback, use the callback (when not null) to help number unknown
6181 registers.
6182 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6183 (tdesc_use_registers): Add extra parameter to declaration.
6184
3b9fce96
AB
61852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6186
6187 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6188 in the file.
6189 (class riscv_pending_register_alias): Likewise.
6190 (riscv_register_feature::register_info): Change 'required_p' field
6191 to 'required', and change its type. Add 'check' member function.
6192 (riscv_register_feature::register_info::check): Define new member
6193 function.
6194 (riscv_xreg_feature): Change initialisation of 'required' field.
6195 (riscv_freg_feature): Likewise.
6196 (riscv_virtual_feature): Likewise.
6197 (riscv_csr_feature): Likewise.
6198 (riscv_check_tdesc_feature): Take extra parameter, the csr
6199 tdesc_feature, rewrite the function to use the new
6200 riscv_register_feature::register_info::check function.
6201 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6202
865bad26
AB
62032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6204
6205 * features/Makefile: Remove all references to the deleted files
6206 below.
6207 * features/riscv/32bit-csr.c: Deleted.
6208 * features/riscv/32bit-csr.xml: Deleted.
6209 * features/riscv/64bit-csr.c: Deleted.
6210 * features/riscv/64bit-csr.xml: Deleted.
6211 * features/riscv/rebuild-csr-xml.sh: Deleted.
6212
ed69cbc8
AB
62132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6214
6215 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6216 whitespace error for declaration of names member variable.
6217 (struct riscv_register_feature): Add new prefer_first_name member
6218 variable, and fix whitespace error in declaration of registers.
6219 (riscv_xreg_feature): Initialize prefer_first_name field.
6220 (riscv_freg_feature): Likewise.
6221 (riscv_virtual_feature): Likewise.
6222 (riscv_csr_feature): Likewise.
6223 (riscv_register_name): Expand on comments. Remove register name
6224 modifications for CSR and virtual registers.
6225
4445e8f5
AB
62262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6227
6228 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6229 errors.
6230
767a879e
AB
62312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6232
6233 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6234 riscv-opc.h.
6235 (class riscv_pending_register_alias): New class.
6236 (riscv_check_tdesc_feature): Take vector of pending aliases and
6237 populate it as appropriate.
6238 (riscv_setup_register_aliases): Delete.
6239 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6240 to riscv_check_tdesc_feature in all cases. Use the vector to
6241 create the register aliases.
6242
bb6e55f3
RO
62432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6244
6245 * sol2-tdep.c (sol2_static_transform_name): Remove.
6246 (sol2_init_abi): Don't register it.
6247 * gdbarch.sh (static_transform_name): Remove.
6248 * gdbarch.c, gdbarch.h: Regenerate.
6249
6250 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6251 gdbarch_static_transform_name.
6252 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6253 * stabsread.c (define_symbol) <'X'>: Remove.
6254 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6255 handling.
6256 <'V'>: Likewise.
6257 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6258 <'S'>: Remove call to gdbarch_static_transform_name.
6259
c6d36836
RO
62602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6261
6262 * procfs.c (procfs_pre_trace): New function.
6263 (procfs_target::create_inferior): Pass it to fork_inferior.
6264
a7e6196b
RO
62652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6266
6267 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6268 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6269 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6270 sol2-tdep.o, sparc-sol2-tdep.o.
6271 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6272 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6273 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6274 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6275
d412e696
RO
62762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6277
6278 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6279 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6280 Call sol2_init_abi.
6281 Remove calls to set_gdbarch_skip_solib_resolver,
6282 set_gdbarch_core_pid_to_str.
6283 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6284 (i386_sol2_static_transform_name): Remove.
6285 (i386_sol2_init_abi): Call sol2_init_abi.
6286 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6287 set_gdbarch_static_transform_name,
6288 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6289 Use sol2_sigtramp_p.
6290 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6291 (sol2_sigtramp_p): New function.
6292 (sol2_static_transform_name): New function.
6293 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6294 (sol2_init_abi): New function.
6295 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6296 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6297 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6298 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6299 (sparc_sol2_static_transform_name): Remove.
6300 (sparc32_sol2_init_abi): Call sol2_init_abi.
6301 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6302 set_gdbarch_static_transform_name,
6303 set_gdbarch_skip_solib_resolver,
6304 set_gdbarch_core_pid_to_str.
6305 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6306 (sparc_sol2_static_transform_name): Remove
6307 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6308 call sol2_sigtramp_p.
6309 (sparc64_sol2_init_abi): Call sol2_init_abi.
6310 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6311 set_gdbarch_static_transform_name,
6312 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6313
a8654e7d
PW
63142020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6315
6316 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6317 * exec.c (validate_exec_file): If from_tty, set both
6318 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6319 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6320 and from_tty, unconditionally ask a confirmation.
6321
caa7fd04
AB
63222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6323
6324 * target-descriptions.c (tdesc_architecture_name): Protect against
6325 NULL pointer dereference.
6326 (maint_print_xml_tdesc_cmd): New function.
6327 (_initialize_target_descriptions): Register new 'maint print
6328 xml-tdesc' command and give it the filename completer.
6329 * NEWS: Mention new 'maint print xml-tdesc' command.
6330
fbf42f4e
AB
63312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6332
6333 * target-descriptions.c (class tdesc_compatible_info): New class.
6334 (struct target_desc): Change type of compatible vector.
6335 (tdesc_compatible_p): Update for change in type of
6336 target_desc::compatible.
6337 (tdesc_compatible_info_list): New function.
6338 (tdesc_compatible_info_arch_name): New function.
6339 (tdesc_add_compatible): Update for change in type of
6340 target_desc::compatible.
6341 (print_c_tdesc::visit_pre): Likewise.
6342
20821f4e
AB
63432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6344
6345 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6346 whitespace to underscore.
6347 (maint_print_c_tdesc_cmd): Use fake filename for target
6348 descriptions that came from the target.
6349 (_initialize_target_descriptions): Add filename command completion
6350 for 'maint print c-tdesc'.
6351
1fb5ee62
SM
63522020-06-23 Simon Marchi <simon.marchi@efficios.com>
6353
6354 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6355 lines.
6356
fc3ecb3e
SM
63572020-06-23 Simon Marchi <simon.marchi@efficios.com>
6358
6359 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6360 lines.
6361 (dwarf2_find_location_expression): Likewise.
6362 (call_site_parameter_matches): Likewise.
6363 (dwarf2_compile_expr_to_ax): Likewise.
6364 (disassemble_dwarf_expression): Likewise.
6365 (loclist_describe_location): Likewise.
6366
236ef034
PA
63672020-06-23 Pedro Alves <palves@redhat.com>
6368
6369 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6370 progspace-and-thread.h. Include scoped-mock-context.h instead.
6371 (register_to_value_test): Use scoped_mock_context.
6372 * regcache.c: Include "scoped-mock-context.h".
6373 (cooked_read_test): Don't error out if a target is already pushed.
6374 Use scoped_mock_context. Adjust.
6375 * scoped-mock-context.h: New file.
6376
39e7ecca
AB
63772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6378
6379 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6380 initializer.
6381 (ada_language::is_string_type_p): New member function.
6382 * c-lang.c (c_language_data): Delete la_is_string_type_p
6383 initializer.
6384 (cplus_language_data): Likewise.
6385 (asm_language_data): Likewise.
6386 (minimal_language_data): Likewise.
6387 * d-lang.c (d_language_data): Likewise.
6388 * f-lang.c (f_is_string_type_p): Delete function, implementation
6389 moved to f_language::is_string_type_p.
6390 (f_language_data): Delete la_is_string_type_p initializer.
6391 (f_language::is_string_type_p): New member function,
6392 implementation from f_is_string_type_p.
6393 * go-lang.c (go_is_string_type_p): Delete function, implementation
6394 moved to go_language::is_string_type_p.
6395 (go_language_data): Delete la_is_string_type_p initializer.
6396 (go_language::is_string_type_p): New member function,
6397 implementation from go_is_string_type_p.
6398 * language.c (language_defn::is_string_type_p): Define new member
6399 function.
6400 (default_is_string_type_p): Make static, add comment copied from
6401 header file.
6402 (unknown_language_data): Delete la_is_string_type_p initializer.
6403 (unknown_language::is_string_type_p): New member function.
6404 (auto_language_data): Delete la_is_string_type_p initializer.
6405 (auto_language::is_string_type_p): New member function.
6406 * language.h (language_data): Delete la_is_string_type_p field.
6407 (language_defn::is_string_type_p): Declare new function.
6408 (default_is_string_type_p): Delete desclaration, move comment to
6409 definition.
6410 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6411 moved to m2_language::is_string_type_p.
6412 (m2_language_data): Delete la_is_string_type_p initializer.
6413 (m2_language::is_string_type_p): New member function,
6414 implementation from m2_is_string_type_p.
6415 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6416 initializer.
6417 * opencl-lang.c (opencl_language_data): Likewise.
6418 * p-lang.c (pascal_is_string_type_p): Delete function,
6419 implementation moved to pascal_language::is_string_type_p.
6420 (pascal_language_data): Delete la_is_string_type_p initializer.
6421 (pascal_language::is_string_type_p): New member function,
6422 implementation from pascal_is_string_type_p.
6423 * rust-lang.c (rust_is_string_type_p): Delete function,
6424 implementation moved to rust_language::is_string_type_p.
6425 (rust_language_data): Delete la_is_string_type_p initializer.
6426 (rust_language::is_string_type_p): New member function,
6427 implementation from rust_is_string_type_p.
6428 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6429 is_string_type_p.
6430
4ffc13fb
AB
64312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6432
6433 * ada-lang.c (ada_language_data): Delete la_print_typedef
6434 initializer.
6435 (ada_language::print_typedef): New member function.
6436 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6437 (cplus_language_data): Likewise.
6438 (asm_language_data): Likewise.
6439 (minimal_language_data): Likewise.
6440 * d-lang.c (d_language_data): Likewise.
6441 * f-lang.c (f_language_data): Likewise.
6442 (f_language::print_typedef): New member function.
6443 * go-lang.c (go_language_data): Delete la_print_typedef
6444 initializer.
6445 * language.c (language_defn::print_typedef): Define member
6446 function.
6447 (unknown_language_data): Delete la_print_typedef initializer.
6448 (unknown_language::print_typedef): New member function.
6449 (auto_language_data): Delete la_print_typedef initializer.
6450 (auto_language::print_typedef): New member function.
6451 * language.h (language_data): Delete la_print_typedef field.
6452 (language_defn::print_typedef): Declare new member function.
6453 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6454 (default_print_typedef): Delete declaration.
6455 * m2-lang.c (m2_language_data): Delete la_print_typedef
6456 initializer.
6457 (m2_language::print_typedef): New member function.
6458 * objc-lang.c (objc_language_data): Delete la_print_typedef
6459 initializer.
6460 * opencl-lang.c (opencl_language_data): Likewise.
6461 * p-lang.c (pascal_language_data): Likewise.
6462 (pascal_language::print_typedef): New member function.
6463 * rust-lang.c (rust_print_typedef): Delete function,
6464 implementation moved to rust_language::print_typedef.
6465 (rust_language): Delete la_print_typedef initializer.
6466 (rust_language::print_typedef): New member function,
6467 implementation from rust_print_typedef.
6468 * typeprint.c (default_print_typedef): Delete.
6469
d711ee67
AB
64702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6471
6472 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6473 (ada_language::printstr): New member function.
6474 * c-lang.c (c_language_data): Delete la_printstr initializer.
6475 (cplus_language_data): Likewise.
6476 (asm_language_data): Likewise.
6477 (minimal_language_data): Likewise.
6478 * d-lang.c (d_language_data): Likewise.
6479 * f-lang.c (f_printstr): Rename to f_language::printstr.
6480 (f_language_data): Delete la_printstr initializer.
6481 (f_language::printstr): New member function, implementation from
6482 f_printstr.
6483 * go-lang.c (go_language_data): Delete la_printstr initializer.
6484 * language.c (language_defn::printstr): Define new member
6485 function.
6486 (unk_lang_printstr): Delete.
6487 (unknown_language_data): Delete la_printstr initializer.
6488 (unknown_language::printstr): New member function.
6489 (auto_language_data): Delete la_printstr initializer.
6490 (auto_language::printstr): New member function.
6491 * language.h (language_data): Delete la_printstr field.
6492 (language_defn::printstr): Declare new member function.
6493 (LA_PRINT_STRING): Update call to printstr.
6494 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6495 (m2_language_data): Delete la_printstr initializer.
6496 (m2_language::printstr): New member function, implementation from
6497 m2_printstr.
6498 * objc-lang.c (objc_language_data): Delete la_printstr
6499 initializer.
6500 * opencl-lang.c (opencl_language_data): Likewise.
6501 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6502 (pascal_language_data): Delete la_printstr initializer.
6503 (pascal_language::printstr): New member function, implementation
6504 from pascal_printstr.
6505 * p-lang.h (pascal_printstr): Delete declaration.
6506 * rust-lang.c (rust_printstr): Update header comment.
6507 (rust_language_data): Delete la_printstr initializer.
6508 (rust_language::printstr): New member function.
6509
52b50f2c
AB
65102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6511
6512 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6513 (ada_language::printchar): New member function.
6514 * c-lang.c (c_language_data): Delete la_printchar initializer.
6515 (cplus_language_data): Likewise.
6516 (asm_language_data): Likewise.
6517 (minimal_language_data): Likewise.
6518 * d-lang.c (d_language_data): Likewise.
6519 * f-lang.c (f_printchar): Rename to f_language::printchar.
6520 (f_language_data): Delete la_printchar initializer.
6521 (f_language::printchar): New member function, implementation from
6522 f_printchar.
6523 * go-lang.c (go_language_data): Delete la_printchar initializer.
6524 * language.c (unk_lang_printchar): Delete.
6525 (language_defn::printchar): Define new member function.
6526 (unknown_language_data): Delete la_printchar initializer.
6527 (unknown_language::printchar): New member function.
6528 (auto_language_data): Delete la_printchar initializer.
6529 (auto_language::printchar): New member function.
6530 * language.h (language_data): Delete la_printchar field.
6531 (language_defn::printchar): Declare new member function.
6532 (LA_PRINT_CHAR): Update call to printchar.
6533 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6534 (m2_language::printchar): New member function.
6535 * objc-lang.c (objc_language_data): Delete la_printchar
6536 initializer.
6537 * opencl-lang.c (opencl_language_data): Likewise.
6538 * p-lang.c (pascal_language_data): Delete la_printchar
6539 initializer.
6540 (pascal_language::printchar): New member function.
6541 * rust-lang.c (rust_printchar): Rename to
6542 rust_language::printchar.
6543 (rust_language_data): Delete la_printchar initializer.
6544 (rust_language::printchar): New member function, implementation
6545 from rust_printchar.
6546
ec8cec5b
AB
65472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6548
6549 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6550 (ada_language_data): Delete la_emitchar initializer.
6551 (ada_language::emitchar): New member function, implementation from
6552 emit_char.
6553 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6554 (cplus_language_data): Likewise.
6555 (asm_language_data): Likewise.
6556 (minimal_language_data): Likewise.
6557 * d-lang.c (d_language_data): Likewise.
6558 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6559 (f_language_data): Delete la_emitchar initializer.
6560 (f_language::emitchar): New member function, implementation from
6561 f_emit_char.
6562 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6563 * language.c (unk_lang_emit_char): Delete.
6564 (language_defn::emitchar): New member function definition.
6565 (unknown_language_data): Delete la_emitchar initializer.
6566 (unknown_language::emitchar): New member function.
6567 (auto_language_data): Delete la_emitchar initializer.
6568 (auto_language::emitchar): New member function.
6569 * language.h (language_data): Delete la_emitchar field.
6570 (language_defn::emitchar): New member field declaration.
6571 (LA_EMIT_CHAR): Update call to emitchar.
6572 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6573 (m2_language_data): Delete la_emitchar initializer.
6574 (m2_language::emitchar): New member function, implementation from
6575 m2_emit_char.
6576 * objc-lang.c (objc_language_data): Delete la_emitchar
6577 initializer.
6578 * opencl-lang.c (opencl_language_data): Likewise.
6579 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6580 (pascal_language_data): Delete la_emitchar initializer.
6581 (pascal_language::emitchar): New member function, implementation
6582 from pascal_emit_char.
6583 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6584 (rust_language_data): Delete la_emitchar initializer.
6585 (rust_language::emitchar): New member function, implementation
6586 from rust_emitchar.
6587
1bf9c363
AB
65882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6589
6590 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6591 (ada_language_data): Delete la_post_parser initializer.
6592 (ada_language::post_parser): New member function.
6593 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6594 (cplus_language_data): Likewise.
6595 (asm_language_data): Likewise.
6596 (minimal_language_data): Likewise.
6597 * d-lang.c (d_language_data): Likewise.
6598 * f-lang.c (f_language_data): Likewise.
6599 * go-lang.c (go_language_data): Likewise.
6600 * language.c (unknown_language_data): Likewise.
6601 (auto_language_data): Likewise.
6602 * language.h (language_data): Delete la_post_parser field.
6603 (language_defn::post_parser): New member function.
6604 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6605 * objc-lang.c (objc_language_data): Likewise.
6606 * opencl-lang.c (opencl_language_data): Likewise.
6607 * p-lang.c (pascal_language_data): Likewise.
6608 * parse.c (parse_exp_in_context): Update call to post_parser.
6609 (null_post_parser): Delete definition.
6610 * parser-defs.h (null_post_parser): Delete declaration.
6611 * rust-lang.c (rust_language_data): Delete la_post_parser
6612 initializer.
6613
87afa652
AB
66142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6615
6616 * ada-lang.c (parse): Rename to ada_language::parser.
6617 (ada_language_data): Delete la_parser initializer.
6618 (ada_language::parser): New member function, implementation from
6619 parse.
6620 * c-lang.c (c_language_data): Delete la_parser initializer.
6621 (cplus_language_data): Likewise.
6622 (asm_language_data): Likewise.
6623 (minimal_language_data): Likewise.
6624 * d-lang.c (d_language_data): Likewise.
6625 (d_language::parser): New member function.
6626 * f-lang.c (f_language_data): Delete la_parser initializer.
6627 (f_language::parser): New member function.
6628 * go-lang.c (go_language_data): Delete la_parser initializer.
6629 (go_language::parser): New member function.
6630 * language.c (unk_lang_parser): Delete.
6631 (language_defn::parser): Define new member function.
6632 (unknown_language_data): Delete la_parser initializer.
6633 (unknown_language::parser): New member function.
6634 (auto_language_data): Delete la_parser initializer.
6635 (auto_language::parser): New member function.
6636 * language.h (language_data): Delete la_parser field.
6637 (language_defn::parser): Declare new member function.
6638 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6639 (m2_language::parser): New member function.
6640 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6641 * opencl-lang.c (opencl_language_data): Likewise.
6642 * p-lang.c (pascal_language_data): Likewise.
6643 (pascal_language::parser): New member function.
6644 * parse.c (parse_exp_in_context): Update call to parser.
6645 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6646 (rust_language::parser): New member function.
6647
37825800
AB
66482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6649
6650 * top.c (print_gdb_configuration): Print --with-python-libdir
6651 configuration value.
6652
5b860c93
PW
66532020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6654
6655 * NEWS: Mention change to the alias command.
6656
cf00cd6f
PW
66572020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6658
6659 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6660 (alias_command_completer)
6661 (make_alias_options_def_group): New functions.
6662 (alias_opts, alias_option_defs): New struct and array.
6663 (alias_usage_error): Update usage.
6664 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6665 Use option framework.
6666 (_initialize_cli_cmds): Update alias command help.
6667 Update aliases command help.
6668 (show_user):
6669 Add NULL for new default_args lookup_cmd argument.
6670 (valid_command_p): Rename to validate_aliased_command.
6671 Add NULL for new default_args lookup_cmd argument. Verify that the
6672 aliased_command has no default args.
6673 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6674 (lookup_cmd_1, lookup_cmd): New argument default_args.
6675 (add_alias_cmd):
6676 Add NULL for new default_args lookup_cmd argument.
6677 (print_help_for_command): Show default args under the layout
6678 alias some_alias = some_aliased_cmd some_alias_default_arg.
6679 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6680 xfree default_args in destructor.
6681 * cli/cli-script.c (process_next_line, do_define_command):
6682 Add NULL for new default_args lookup_cmd argument.
6683 * command.h: Declare new default_args argument in lookup_cmd
6684 and lookup_cmd_1.
6685 * completer.c (complete_line_internal_1):
6686 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6687 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6688 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6689 Likewise.
6690 * infcmd.c (_initialize_infcmd): Likewise.
6691 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6692 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6693 * python/py-param.c (add_setshow_generic): Likewise.
6694 * remote.c (_initialize_remote): Likewise.
6695 * top.c (execute_command): Prepend default_args if command has some.
6696 (set_verbose):
6697 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6698 * tracepoint.c (validate_actionline, encode_actions_1):
6699 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6700
bd920864
TBA
67012020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6702
6703 * jit.c (jit_read_descriptor): Use bool as the return type.
6704 (jit_breakpoint_re_set_internal): Use bool as the return type.
6705 Invert the return value logic; return true if the jit breakpoint
6706 has been successfully initialized.
6707 (jit_inferior_init): Update the call to
6708 jit_breakpoint_re_set_internal.
6709
f8098322
PA
67102020-06-22 Pedro Alves <palves@redhat.com>
6711
6712 PR gdb/25939
6713 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6714 Use the current inferior instead. Don't return
6715 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6716 wait again.
6717 * sol-thread.c (sol_thread_target::wait): Don't reference
6718 inferior_ptid.
6719 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6720 (sol_update_thread_list_callback): Use the current inferior's pid
6721 instead of inferior_ptid.
6722
196535a6
RO
67232020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6724
6725 * procfs.c: Cleanup many comments.
6726
6727 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6728 (AFTER_WATCHFLAG): Replace by value.
6729
6730 (MAIN_PROC_NAME_FORMAT): Inline ...
6731 (create_procinfo): ... here.
6732
6733 (procfs_debug_inferior): Remove SYS_exec handling.
6734 (syscall_is_exec): Likewise.
6735 (procfs_set_exec_trap): Likewise.
6736
6737 (syscall_is_lwp_exit): Inline in callers.
6738 (syscall_is_exit): Likewise.
6739 (syscall_is_exec): Likewise.
6740 (syscall_is_lwp_create): Likewise.
6741
6742 (invalidate_cache): Remove #if 0 code.
6743
6744 (make_signal_thread_runnable): Remove.
6745 (procfs_target::resume): Remove #if 0 code.
6746
cf6f3e86
RO
67472020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6748
6749 PR gdb/25939
6750 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6751 call ...
6752 (procfs_target::create_inferior): ... here.
6753
48e9cc84
PW
67542020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6755
6756 * exec.c (validate_exec_file): Ensure the build-id is up to
6757 date by calling reopen_exec_file (that checks file timestamp
6758 to decide to re-read the file).
6759
3922b302
PA
67602020-06-18 Pedro Alves <palves@redhat.com>
6761
6762 PR gdb/25412
6763 * gdbthread.h (delete_thread, delete_thread_silent)
6764 (find_thread_ptid): Update comments.
6765 * thread.c (current_thread_): New global.
6766 (is_current_thread): Move higher, and reimplement.
6767 (inferior_thread): Reimplement.
6768 (set_thread_exited): Use bool. Add assertions.
6769 (add_thread_silent): Simplify thread-reuse handling by always
6770 calling delete_thread.
6771 (delete_thread): Remove intro comment.
6772 (find_thread_ptid): Skip exited threads.
6773 (switch_to_thread_no_regs): Write to current_thread_.
6774 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6775 INFERIOR_PTID. Clear current_thread_.
6776
6dbdab44
PA
67772020-06-18 Pedro Alves <palves@redhat.com>
6778
6779 * aix-thread.c (pd_update): Use switch_to_thread.
6780
2da4b788
PA
67812020-06-18 Pedro Alves <palves@redhat.com>
6782
6783 * ravenscar-thread.c (ravenscar_thread_target): Update.
6784 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6785 (ravenscar_thread_target::add_active_thread): ... this. Don't
6786 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6787 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6788
50838d1b
PA
67892020-06-18 Pedro Alves <palves@redhat.com>
6790
6791 * nat/windows-nat.c (current_windows_thread): Remove.
6792 * nat/windows-nat.h (current_windows_thread): Remove.
6793 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6794 Adjust.
6795 (display_selectors): Adjust to fetch the current
6796 windows_thread_info based on inferior_ptid.
6797 (fake_create_process): No longer write to current_windows_thread.
6798 (windows_nat_target::get_windows_debug_event):
6799 Don't set inferior_ptid or current_windows_thread.
6800 (windows_nat_target::wait): Adjust to not rely on
6801 current_windows_thread.
6802 (do_initial_windows_stuff): Now a method of windows_nat_target.
6803 Switch to the last_ptid thread.
6804 (windows_nat_target::attach): Adjust.
6805 (windows_nat_target::detach): Use switch_to_no_thread instead of
6806 writing to inferior_ptid directly.
6807 (windows_nat_target::create_inferior): Adjust.
6808
31ce04e9
PA
68092020-06-18 Pedro Alves <palves@redhat.com>
6810
6811 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6812
1ee1a363
PA
68132020-06-18 Pedro Alves <palves@redhat.com>
6814
6815 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6816 after creating it, instead of writing to inferior_ptid. Don't
6817 write to inferior_ptid.
6818
6d350754
PA
68192020-06-18 Pedro Alves <palves@redhat.com>
6820
6821 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6822
5d971d48
PA
68232020-06-18 Pedro Alves <palves@redhat.com>
6824
6825 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6826 it, instead of writing to inferior_ptid.
6827
86e57d1b
PA
68282020-06-18 Pedro Alves <palves@redhat.com>
6829
6830 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6831 to inferior_ptid.
6832
f2e1c129
PA
68332020-06-18 Pedro Alves <palves@redhat.com>
6834
6835 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6836 instead of writing to inferior_ptid directly.
6837
60db1b85
PA
68382020-06-18 Pedro Alves <palves@redhat.com>
6839
6840 * corelow.c (core_target::close): Use switch_to_no_thread instead
6841 of writing to inferior_ptid directly.
6842 (add_to_thread_list, core_target_open): Use switch_to_thread
6843 instead of writing to inferior_ptid directly.
6844
fe7d6a8d
PA
68452020-06-18 Pedro Alves <palves@redhat.com>
6846
6847 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6848 inferior_ptid.
6849 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6850 inferior_ptid.
6851 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6852 inferior_ptid directly.
6853 (darwin_nat_target::init_thread_list): Switch to thread, instead
6854 of writing to inferior_ptid.
6855 (darwin_nat_target::attach): Don't write to inferior_ptid.
6856 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6857
975f8708
PA
68582020-06-18 Pedro Alves <palves@redhat.com>
6859
6860 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6861 thread.
6862 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6863 Instead use switch_to_thread.
6864 (gnu_nat_target::detach): Use switch_to_no_thread
6865 instead of writing to inferior_ptid directly. Used passed-in
6866 inferior instead of looking up the inferior by pid.
6867
1a204730
PA
68682020-06-18 Pedro Alves <palves@redhat.com>
6869
6870 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6871 inferior_ptid.
6872
ebe84f23
PA
68732020-06-18 Pedro Alves <palves@redhat.com>
6874
6875 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6876 inferior_ptid.
6877 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6878 thread.
6879 (nto_procfs_target::detach): Avoid referencing
6880 inferior_ptid. Use switch_to_no_thread instead of writing to
6881 inferior_ptid directly.
6882 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6883 instead of writing to inferior_ptid directly.
6884 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6885 to thread.
6886
191f02e5
PA
68872020-06-18 Pedro Alves <palves@redhat.com>
6888
6889 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6890 after creating it, instead of writing to inferior_ptid.
6891 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6892 to inferior_ptid directly.
6893 (gdbsim_target::wait): Don't write to inferior_ptid.
6894
0ac55310
PA
68952020-06-18 Pedro Alves <palves@redhat.com>
6896
6897 * remote.c (remote_target::remote_notice_new_inferior): Use
6898 switch_to_thread instead of writing to inferior_ptid directly.
6899 (remote_target::add_current_inferior_and_thread): Use
6900 switch_to_no_thread instead of writing to inferior_ptid directly.
6901 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6902 and switch_to_thread instead of using set_current_inferior or
6903 writing to inferior_ptid directly.
6904
5233f39b
PA
69052020-06-18 Pedro Alves <palves@redhat.com>
6906
6907 * tracectf.c (ctf_target_open): Switch to added thread instead of
6908 writing to inferior_ptid directly.
6909 (ctf_target::close): Use switch_to_no_thread instead of writing to
6910 inferior_ptid directly.
6911
087e161b
PA
69122020-06-18 Pedro Alves <palves@redhat.com>
6913
6914 * tracefile-tfile.c (tfile_target_open): Don't write to
6915 inferior_ptid directly, instead switch to added thread.
6916 (tfile_target::close): Use switch_to_no_thread instead of writing
6917 to inferior_ptid directly.
6918
7fb43e53
PA
69192020-06-18 Pedro Alves <palves@redhat.com>
6920
6921 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6922 (procfs_target::detach): Use switch_to_no_thread
6923 instead of writing to inferior_ptid directly.
6924 (do_attach): Change return type to void. Switch to the added
6925 thread.
6926 (procfs_target::create_inferior): Switch to the added thread.
6927 (procfs_do_thread_registers): Don't write to inferior_ptid.
6928
18493a00
PA
69292020-06-18 Pedro Alves <palves@redhat.com>
6930
6931 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6932 of writing to inferior_ptid.
6933 (scoped_restore_exited_inferior): Delete.
6934 (handle_vfork_child_exec_or_exit): Simplify using
6935 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6936 instead of writing to inferior_ptid.
6937 (THREAD_STOPPED_BY): Delete.
6938 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6939 (thread_stopped_by_hw_breakpoint): Delete.
6940 (save_waitstatus): Use
6941 scoped_restore_current_thread+switch_to_thread, and call
6942 target_stopped_by_watchpoint instead of
6943 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6944 instead of thread_stopped_by_sw_breakpoint, and
6945 target_stopped_by_hw_breakpoint instead of
6946 thread_stopped_by_hw_breakpoint.
6947 (handle_inferior_event)
6948 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6949 inferior_ptid directly, nor
6950 set_current_inferior/set_current_program_space. Use
6951 switch_to_thread / switch_to_inferior_no_thread instead.
6952
a0776b13
PA
69532020-06-18 Pedro Alves <palves@redhat.com>
6954
6955 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6956 instead of writing to inferior_ptid.
6957
6155c136
PA
69582020-06-18 Pedro Alves <palves@redhat.com>
6959
6960 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6961 added thread.
6962 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6963 to the added thread.
6964 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6965 instead of writing to inferior_ptid.
6966
c5316fc6
PA
69672020-06-18 Pedro Alves <palves@redhat.com>
6968
6969 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6970 (register_to_value_test): Mock a program_space too. Heap-allocate
6971 the address space. Don't write to inferior_ptid. Use
6972 switch_to_thread instead.
6973
8df01799
PA
69742020-06-18 Pedro Alves <palves@redhat.com>
6975
6976 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6977 Delete.
6978 (find_signalled_thread()): New, factored out from
6979 linux_make_corefile_notes and adjusted to handle exited threads.
6980 (linux_make_corefile_notes): Adjust to use the new
6981 find_signalled_thread.
6982
41792d68
PA
69832020-06-18 Pedro Alves <palves@redhat.com>
6984
6985 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6986 of saving/restoring inferior_ptid.
6987
612f258a
TT
69882020-06-17 Tom Tromey <tom@tromey.com>
6989
6990 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6991 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6992 declare.
6993 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6994
efb763a5
SM
69952020-06-15 Simon Marchi <simon.marchi@efficios.com>
6996
6997 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6998 of partial symtabs.
6999
2951f6c0
SM
70002020-06-17 Simon Marchi <simon.marchi@efficios.com>
7001
7002 * regformats/reg-arm.dat: Remove.
7003 * regformats/reg-bfin.dat: Remove.
7004 * regformats/reg-cris.dat: Remove.
7005 * regformats/reg-crisv32.dat: Remove.
7006 * regformats/reg-m32r.dat: Remove.
7007 * regformats/reg-tilegx.dat: Remove.
7008 * regformats/reg-tilegx32.dat: Remove.
7009
7d458ea5
SM
70102020-06-17 Simon Marchi <simon.marchi@efficios.com>
7011
7012 * features/Makefile (WHICH): Remove arm files.
7013 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7014 * regformats/arm/arm-with-neon.dat: Remove.
7015 * regformats/arm/arm-with-vfpv2.dat: Remove.
7016 * regformats/arm/arm-with-vfpv3.dat: Remove.
7017
3af96c0d
SM
70182020-06-17 Simon Marchi <simon.marchi@efficios.com>
7019
7020 * features/Makefile (XMLTOC): Remove rx.xml.
7021
b25e22fd
PA
70222020-06-17 Pedro Alves <palves@redhat.com>
7023
7024 * gdbthread.h (thread_control_state) <trap_expected> Update
7025 comments.
7026
a78a19b1
AB
70272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7028
7029 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7030 ada_language::lookup_symbol_nonlocal.
7031 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7032 (ada_language::lookup_symbol_nonlocal): New member function,
7033 implementation from ada_lookup_symbol_nonlocal.
7034 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7035 initializer.
7036 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7037 initializer.
7038 (cplus_language::lookup_symbol_nonlocal): New member function.
7039 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7040 (minimal_language_data) Likewise.
7041 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7042 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7043 initializer.
7044 (d_language::lookup_symbol_nonlocal): New member function.
7045 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7046 initializer.
7047 (f_language::lookup_symbol_nonlocal): New member function.
7048 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7049 initializer.
7050 * language.c (unknown_language_data): Likewise.
7051 (auto_language_data): Likewise.
7052 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7053 field.
7054 (language_defn::lookup_symbol_nonlocal): New member function.
7055 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7056 initializer.
7057 * objc-lang.c (objc_language_data): Likewise.
7058 * opencl-lang.c (opencl_language_data): Likewise.
7059 * p-lang.c (pascal_language_data): Likewise.
7060 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7061 rust_language::lookup_symbol_nonlocal.
7062 (rust_language_data): Delete la_lookup_symbol_nonlocal
7063 initializer.
7064 (rust_language::lookup_symbol_nonlocal): New member function,
7065 implementation from rust_lookup_symbol_nonlocal.
7066 * symtab.c (lookup_symbol_aux): Update call to
7067 lookup_symbol_nonlocal.
7068 (basic_lookup_symbol_nonlocal): Rename to...
7069 (language_defn::lookup_symbol_nonlocal): ...this, and update
7070 header comment. Remove language_defn parameter, and replace with
7071 uses of `this'.
7072 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7073
ebe2334e
AB
70742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7075
7076 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7077 initializer.
7078 (ada_language::value_print_inner): New member function.
7079 * c-lang.c (c_language_data): Delete la_value_print_inner
7080 initializer.
7081 (cplus_language_data): Likewise.
7082 (asm_language_data): Likewise.
7083 (minimal_language_data): Likewise.
7084 * d-lang.c (d_language_data): Likewise.
7085 (d_language::value_print_inner): New member function.
7086 * f-lang.c (f_language_data): Delete la_value_print_inner
7087 initializer.
7088 (f_language::value_print_inner): New member function.
7089 * f-lang.h (f_value_print_innner): Rename to...
7090 (f_value_print_inner): ...this (note spelling of 'inner').
7091 * f-valprint.c (f_value_print_innner): Rename to...
7092 (f_value_print_inner): ...this (note spelling of 'inner').
7093 * go-lang.c (go_language_data): Delete la_value_print_inner
7094 initializer.
7095 (go_language::value_print_inner): New member function.
7096 * language.c (language_defn::value_print_inner): Define new member
7097 function.
7098 (unk_lang_value_print_inner): Delete.
7099 (unknown_language_data): Delete la_value_print_inner initializer.
7100 (unknown_language::value_print_inner): New member function.
7101 (auto_language_data): Delete la_value_print_inner initializer.
7102 (auto_language::value_print_inner): New member function.
7103 * language.h (language_data): Delete la_value_print_inner field.
7104 (language_defn::value_print_inner): Delcare new member function.
7105 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7106 initializer.
7107 (m2_language::value_print_inner): New member function.
7108 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7109 initializer.
7110 * opencl-lang.c (opencl_language_data): Likewise.
7111 * p-lang.c (pascal_language_data): Likewise.
7112 (pascal_language::value_print_inner): New member function.
7113 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7114 initializer.
7115 (rust_language::value_print_inner): New member function.
7116 * valprint.c (do_val_print): Update call to value_print_inner.
7117
a1d1fa3e
AB
71182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7119
7120 * ada-lang.c (ada_language_data): Delete la_value_print
7121 initializer.
7122 (ada_language::value_print): New member function.
7123 * c-lang.c (c_language_data): Delete la_value_print initializer.
7124 (cplus_language_data): Likewise.
7125 (asm_language_data): Likewise.
7126 (minimal_language_data): Likewise.
7127 * d-lang.c (d_language_data): Likewise.
7128 * f-lang.c (f_language_data): Likewise.
7129 * go-lang.c (go_language_data): Likewise.
7130 * language.c (unk_lang_value_print): Delete.
7131 (language_defn::value_print): Define new member function.
7132 (unknown_language_data): Delete la_value_print initializer.
7133 (unknown_language::value_print): New member function.
7134 (auto_language_data): Delete la_value_print initializer.
7135 (auto_language::value_print): New member function.
7136 * language.h (language_data): Delete la_value_print field.
7137 (language_defn::value_print): Declare new member function.
7138 (LA_VALUE_PRINT): Update call to value_print.
7139 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7140 * objc-lang.c (objc_language_data): Likewise.
7141 * opencl-lang.c (opencl_language_data): Likewise.
7142 * p-lang.c (pascal_language_data): Likewise.
7143 (pascal_language::value_print): New member function.
7144 * rust-lang.c (rust_language_data): Delete la_value_print
7145 initializer.
7146
f16a9f57
AB
71472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7148
7149 * ada-lang.c (ada_watch_location_expression): Rename to
7150 ada_language::watch_location_expression.
7151 (ada_language_data): Delete la_watch_location_expression
7152 initializer.
7153 (ada_language::watch_location_expression): New member function,
7154 implementation from ada_watch_location_expression.
7155 * breakpoint.c (watch_command_1): Update call to
7156 watch_location_expression.
7157 * c-lang.c (c_watch_location_expression): Rename to
7158 language_defn::watch_location_expression.
7159 (c_language_data): Delete la_watch_location_expression
7160 initializer.
7161 (cplus_language_data): Likewise.
7162 (asm_language_data): Likewise.
7163 (minimal_language_data): Likewise.
7164 * c-lang.h (c_watch_location_expression): Delete declaration.
7165 * d-lang.c (d_language_data): Delete la_watch_location_expression
7166 initializer.
7167 * f-lang.c (f_language_data): Likewise.
7168 * go-lang.c (go_language_data): Likewise.
7169 * language.c (language_defn::watch_location_expression): Member
7170 function implementation from c_watch_location_expression.
7171 (unknown_language_data): Delete la_watch_location_expression
7172 initializer.
7173 (auto_language_data): Likewise.
7174 * language.h (language_data): Delete la_watch_location_expression
7175 field.
7176 (language_defn::watch_location_expression): Declare new member
7177 function.
7178 * m2-lang.c (m2_language_data): Delete
7179 la_watch_location_expression initializer.
7180 * objc-lang.c (objc_language_data): Likewise.
7181 * opencl-lang.c (opencl_language_data): Likewise.
7182 * p-lang.c (pascal_language_data): Likewise.
7183 * rust-lang.c (rust_watch_location_expression): Rename to
7184 rust_language::watch_location_expression.
7185 (rust_language_data): Delete la_watch_location_expression
7186 initializer.
7187 (rust_language::watch_location_expression): New member function,
7188 implementation from rust_watch_location_expression.
7189
7e56227d
AB
71902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7191
7192 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7193 ada_language::collect_symbol_completion_matches.
7194 (ada_language_data): Delete la_collect_symbol_completion_matches
7195 initializer.
7196 (ada_language::collect_symbol_completion_matches): New member
7197 function, implementation from
7198 ada_collect_symbol_completion_matches.
7199 * c-lang.c (c_language_data): Delete
7200 la_collect_symbol_completion_matches initializer.
7201 (cplus_language_data): Likewise.
7202 (asm_language_data): Likewise.
7203 (minimal_language_data): Likewise.
7204 * d-lang.c (d_language_data): Likewise.
7205 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7206 f_language::collect_symbol_completion_matches.
7207 (f_language_data): Delete la_collect_symbol_completion_matches
7208 initializer.
7209 (f_language::collect_symbol_completion_matches) New member
7210 function, implementation from f_collect_symbol_completion_matches.
7211 * go-lang.c (go_language_data): Delete
7212 la_collect_symbol_completion_matches initializer.
7213 * language.c (unknown_language_data): Likewise.
7214 (auto_language_data): Likewise.
7215 * language.h (language_data): Delete
7216 la_collect_symbol_completion_matches field.
7217 (language_defn::collect_symbol_completion_matches): New member
7218 function.
7219 * m2-lang.c (m2_language_data): Delete
7220 la_collect_symbol_completion_matches initializer.
7221 * objc-lang.c (objc_language_data): Likewise.
7222 * opencl-lang.c (opencl_language_data): Likewise.
7223 * p-lang.c (pascal_language_data): Likewise.
7224 * rust-lang.c (rust_language_data): Likewise.
7225 * symtab.c (default_collect_symbol_completion_matches): Delete.
7226 (collect_symbol_completion_matches): Update call to
7227 collect_symbol_completion_matches.
7228 (collect_symbol_completion_matches_type): Likewise.
7229 * symtab.h (default_collect_symbol_completion_matches): Delete
7230 declaration.
7231
53fc67f8
AB
72322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7233
7234 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7235 (ada_language_data): Delete la_word_break_characters initializer.
7236 (ada_language::word_break_characters): New member function.
7237 * c-lang.c (c_language_data): Delete la_word_break_characters
7238 initializer.
7239 (cplus_language_data): Likewise.
7240 (asm_language_data): Likewise.
7241 (minimal_language_data): Likewise.
7242 * completer.c: Update global comment.
7243 (advance_to_expression_complete_word_point): Update call to
7244 word_break_characters.
7245 (complete_files_symbols): Likewise.
7246 (complete_line_internal_1): Likewise.
7247 (default_completer_handle_brkchars): Likewise.
7248 (skip_quoted_chars): Likewise.
7249 * d-lang.c (d_language_data): Delete la_word_break_characters
7250 initializer.
7251 * f-lang.c (f_word_break_characters): Delete.
7252 (f_language_data): Delete la_word_break_characters initializer.
7253 (f_language::word_break_characters): New member function.
7254 * go-lang.c (go_language_data): Delete la_word_break_characters
7255 initializer.
7256 * language.c (unknown_language_data): Likewise.
7257 (auto_language_data): Likewise.
7258 * language.h (default_word_break_characters): Move declaration to
7259 earlier in the file.
7260 (language_data): Delete la_word_break_characters field.
7261 (language_defn::word_break_characters): New member function.
7262 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7263 initializer.
7264 * objc-lang.c (objc_language_data): Likewise.
7265 * opencl-lang.c (opencl_language_data): Likewise.
7266 * p-lang.c (pascal_language_data): Likewise.
7267 * rust-lang.c (rust_language_data): Likewise.
7268
c9debfb9
AB
72692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7270
7271 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7272 (ada_language_data): Delete la_get_symbol_name_matcher
7273 initializer.
7274 (language_defn::get_symbol_name_matcher_inner): New member
7275 function.
7276 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7277 initializer.
7278 (cplus_language_data): Likewise.
7279 (cplus_language::get_symbol_name_matcher_inner): New member
7280 function.
7281 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7282 (minimal_language_data): Likewise.
7283 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7284 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7285 initializer.
7286 * dictionary.c (iter_match_first_hashed): Update call to
7287 get_symbol_name_matcher.
7288 (iter_match_next_hashed): Likewise.
7289 (iter_match_next_linear): Likewise.
7290 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7291 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7292 initializer.
7293 (f_language::get_symbol_name_matcher_inner): New member function.
7294 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7295 initializer.
7296 * language.c (default_symbol_name_matcher): Update header comment,
7297 make static.
7298 (language_defn::get_symbol_name_matcher): New definition.
7299 (language_defn::get_symbol_name_matcher_inner): Likewise.
7300 (get_symbol_name_matcher): Delete.
7301 (unknown_language_data): Delete la_get_symbol_name_matcher
7302 initializer.
7303 (auto_language_data): Likewise.
7304 * language.h (language_data): Delete la_get_symbol_name_matcher
7305 field.
7306 (language_defn::get_symbol_name_matcher): New member function.
7307 (language_defn::get_symbol_name_matcher_inner): Likewise.
7308 (default_symbol_name_matcher): Delete declaration.
7309 * linespec.c (find_methods): Update call to
7310 get_symbol_name_matcher.
7311 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7312 initializer.
7313 * minsyms.c (lookup_minimal_symbol): Update call to
7314 get_symbol_name_matcher.
7315 (iterate_over_minimal_symbols): Likewise.
7316 * objc-lang.c (objc_language_data): Delete
7317 la_get_symbol_name_matcher initializer.
7318 * opencl-lang.c (opencl_language_data): Likewise.
7319 * p-lang.c (pascal_language_data): Likewise.
7320 * psymtab.c (psymbol_name_matches): Update call to
7321 get_symbol_name_matcher.
7322 * rust-lang.c (rust_language_data): Delete
7323 la_get_symbol_name_matcher initializer.
7324 * symtab.c (symbol_matches_search_name): Update call to
7325 get_symbol_name_matcher.
7326 (compare_symbol_name): Likewise.
7327
9a49ad8c
AB
73282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7329
7330 * ada-lang.c (ada_language_data): Delete la_compute_program
7331 initializer.
7332 * c-lang.c (c_language_data): Likewise.
7333 (c_language::compute_program): New member function.
7334 (cplus_language_data): Delete la_compute_program initializer.
7335 (cplus_language::compute_program): New member function.
7336 (asm_language_data): Delete la_compute_program initializer.
7337 (minimal_language_data): Likewise.
7338 * c-lang.h (c_compute_program): Update comment.
7339 (cplus_compute_program): Likewise.
7340 * compile/compile-c-support.c (c_compute_program): Likewise.
7341 (cplus_compute_program): Likewise.
7342 * compile/compile.c (compile_to_object): Update call to
7343 la_compute_program.
7344 * d-lang.c (d_language_data): Delete la_compute_program
7345 initializer.
7346 * f-lang.c (f_language_data): Likewise.
7347 * go-lang.c (go_language_data): Likewise.
7348 * language.c (unknown_language_data): Likewise.
7349 (auto_language_data): Likewise.
7350 * language.h (language_data): Delete la_compute_program field.
7351 (language_defn::compute_program): New member function.
7352 * m2-lang.c (m2_language_data): Delete la_compute_program
7353 initializer.
7354 * objc-lang.c (objc_language_data): Likewise.
7355 * opencl-lang.c (opencl_language_data): Likewise.
7356 * p-lang.c (pascal_language_data): Likewise.
7357 * rust-lang.c (rust_language_data): Likewise.
7358
eff93b4d
AB
73592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7360
7361 * ada-lang.c (ada_language_data) Delete
7362 la_class_name_from_physname initializer.
7363 * c-lang.c (c_language_data): Likewise.
7364 (cplus_language_data): Likewise.
7365 (cplus_language::class_name_from_physname): New member function.
7366 (asm_language_data): Delete la_class_name_from_physname
7367 initializer.
7368 (minimal_language_data): Likewise.
7369 * d-lang.c (d_language_data): Likewise.
7370 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7371 method on language_defn class.
7372 (guess_full_die_structure_name): Likewise.
7373 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7374 initializer.
7375 * go-lang.c (go_language_data): Likewise.
7376 * language.c (language_class_name_from_physname): Delete.
7377 (unk_lang_class_name): Delete.
7378 (unknown_language_data): Delete la_class_name_from_physname
7379 initializer.
7380 (auto_language_data): Likewise.
7381 * language.h (language_data): Delete la_class_name_from_physname
7382 field.
7383 (language_defn::class_name_from_physname): New function.
7384 (language_class_name_from_physname): Delete declaration.
7385 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7386 initializer.
7387 * objc-lang.c (objc_language_data): Likewise.
7388 * opencl-lang.c (opencl_language_data): Likewise.
7389 * p-lang.c (pascal_language_data): Likewise.
7390 * rust-lang.c (rust_language_data): Likewise.
7391
de543742
TT
73922020-06-16 Tom Tromey <tom@tromey.com>
7393
7394 * tui/tui-data.h (STATUS_NAME): New macro.
7395 * tui/tui-layout.c (tui_remove_some_windows)
7396 (initialize_known_windows, tui_register_window)
7397 (tui_layout_split::remove_windows, initialize_layouts)
7398 (tui_new_layout_command): Don't use hard-coded window names.
7399
a350efd4
TT
74002020-06-16 Tom Tromey <tom@tromey.com>
7401
7402 PR tui/25348:
7403 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7404 tui_initialize_readline. Only run once. Call rl_initialize.
7405 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7406 tui_initialize_readline.
7407 * tui/tui-io.c (tui_setup_io): Call
7408 tui_ensure_readline_initialized.
7409 * tui/tui-interp.c (tui_interp::init): Update.
7410
39ec0490
TT
74112020-06-16 Tom Tromey <tom@tromey.com>
7412
7413 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7414 Also preserve the status window.
7415
d2d1ea20
TT
74162020-06-16 Tom Tromey <tom@tromey.com>
7417
7418 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7419 where m_window==nullptr.
7420
66920317
TT
74212020-06-15 Tom Tromey <tromey@adacore.com>
7422
7423 * windows-nat.c (windows_nat::handle_output_debug_string):
7424 Update.
7425 (windows_nat::handle_ms_vc_exception): Update.
7426 * target.h (target_read_string): Change API.
7427 * target.c (target_read_string): Change API.
7428 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7429 Update.
7430 * solib-frv.c (frv_current_sos): Update.
7431 * solib-dsbt.c (dsbt_current_sos): Update.
7432 * solib-darwin.c (darwin_current_sos): Update.
7433 * linux-thread-db.c (inferior_has_bug): Update.
7434 * expprint.c (print_subexp_standard): Update.
7435 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7436 (ada_exception_message_1): Update.
7437
a5d871dd
TT
74382020-06-15 Tom Tromey <tromey@adacore.com>
7439
7440 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7441
670e35fa
TT
74422020-06-15 Tom Tromey <tromey@adacore.com>
7443
7444 * valprint.c (read_string): Update comment.
7445 * target.c (MIN): Remove.
7446 (target_read_string): Rewrite.
7447
f5272a3b
TT
74482020-06-15 Tom Tromey <tromey@adacore.com>
7449
7450 * corefile.c (read_memory_string): Remove.
7451 * ada-valprint.c (ada_value_print_ptr): Update.
7452 * ada-lang.h (ada_tag_name): Change return type.
7453 * ada-lang.c (type_from_tag): Update.
7454 (ada_tag_name_from_tsd): Change return type. Use
7455 target_read_string.
7456 (ada_tag_name): Likewise.
7457 * gdbcore.h (read_memory_string): Don't declare.
7458
2c074f49
HD
74592020-06-14 Hannes Domani <ssbssa@yahoo.de>
7460
7461 * symtab.c (rbreak_command): Ignore Windows drive colon.
7462
6a17d503
SM
74632020-06-12 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * NEWS: Mention removed GDBserver host support.
7466
453c733f
NC
74672020-06-12 Nelson Chu <nelson.chu@sifive.com>
7468
7469 * features/riscv/rebuild-csr-xml.sh: Updated.
7470
2b4e6a3f
TT
74712020-06-11 Tom Tromey <tom@tromey.com>
7472
7473 PR gdb/18318:
7474 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7475
4412332f
JG
74762020-06-09 Jonny Grant <jg@jguk.org>
74772020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7478
7479 * main.c (captured_main_1): Don't print new line after help.
7480 (print_gdb_help): add mailing list and IRC channel information
7481 to --help. Add new lines between items in the footer. Remove
7482 quotes around bug url.
7483
2f33032a
KS
74842020-06-11 Keith Seitz <keiths@redhat.com>
7485
7486 PR gdb/21356
7487 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7488 Resolve typedefs for type length calculations.
7489
7ab96794
TV
74902020-06-10 Tom de Vries <tdevries@suse.de>
7491
7492 PR ada/24713
7493 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7494 (write_psymbols): Enable .gdb_index for ada.
7495 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7496 ada.
7497
e5f3ece2
TV
74982020-06-10 Tom de Vries <tdevries@suse.de>
7499
7500 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7501 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7502 namei" instead of "const char *name" argument.
7503 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7504 dw2_symtab_iter_init.
7505
940da03e
SM
75062020-06-08 Simon Marchi <simon.marchi@efficios.com>
7507
7508 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7509 to use type::field and field::type instead.
7510
b6cdac4b
SM
75112020-06-08 Simon Marchi <simon.marchi@efficios.com>
7512
7513 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7514 to use field::type instead.
7515
5d14b6e5
SM
75162020-06-08 Simon Marchi <simon.marchi@efficios.com>
7517
7518 * gdbtypes.h (struct field) <type, set_type>: New methods.
7519 Rename `type` field to...
7520 <m_type>: ... this. Change references throughout to use type or
7521 set_type methods.
7522 (FIELD_TYPE): Use field::type. Change call sites that modify
7523 the field's type to use field::set_type instead.
7524
3d967001
SM
75252020-06-08 Simon Marchi <simon.marchi@efficios.com>
7526
7527 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7528 to use type::index_type instead.
7529
262abc0d
SM
75302020-06-08 Simon Marchi <simon.marchi@efficios.com>
7531
7532 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7533 methods.
7534 (TYPE_INDEX_TYPE): Use type::index_type.
7535 * gdbtypes.c (create_array_type_with_stride): Likewise.
7536
82836c92
TT
75372020-06-07 Tom Tromey <tom@tromey.com>
7538
7539 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7540 parameter.
7541 (generic_value_print): Update.
7542
940dace9
AB
75432020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7544
7545 Revert commit 982a38f60b0.
7546 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7547
982a38f6
AB
75482020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7549
7550 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7551 avoid use after free.
7552
82f06518
TV
75532020-06-05 Tom de Vries <tdevries@suse.de>
7554
7555 * NEWS: Fix typos.
7556
f8c41851
SM
75572020-06-04 Simon Marchi <simon.marchi@efficios.com>
7558
7559 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7560 the per_bfd object.
7561 (dwarf2_read_debug_names): Likewise.
7562 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7563 object when re-using a per_bfd object with an index.
7564
f9b5d5ea
TV
75652020-06-03 Tom de Vries <tdevries@suse.de>
7566
7567 PR symtab/26046
7568 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7569 children for C++.
7570 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7571 DW_TAG_subprogram.
7572
f6eee2d0
AB
75732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7574
7575 * ada-lang.c (ada_language_data): Delete skip_trampoline
7576 initializer.
7577 * c-lang.c (c_language_data): Likewise.
7578 (cplus_language_data): Likewise.
7579 (cplus_language::skip_trampoline): New member function.
7580 (asm_language_data): Delete skip_trampoline initializer.
7581 (minimal_language_data): Likewise.
7582 * d-lang.c (d_language_data): Likewise.
7583 * f-lang.c (f_language_data): Likewise.
7584 * go-lang.c (go_language_data): Likewise.
7585 * language.c (unk_lang_trampoline): Delete function.
7586 (skip_language_trampoline): Update.
7587 (unknown_language_data): Delete skip_trampoline initializer.
7588 (auto_language_data): Likewise.
7589 * language.h (language_data): Delete skip_trampoline field.
7590 (language_defn::skip_trampoline): New function.
7591 * m2-lang.c (m2_language_data): Delete skip_trampoline
7592 initializer.
7593 * objc-lang.c (objc_skip_trampoline): Delete function, move
7594 implementation to objc_language::skip_trampoline.
7595 (objc_language_data): Delete skip_trampoline initializer.
7596 (objc_language::skip_trampoline): New member function with
7597 implementation from objc_skip_trampoline.
7598 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7599 initializer.
7600 * p-lang.c (pascal_language_data): Likewise.
7601 * rust-lang.c (rust_language_data): Likewise.
7602
0a50df5d
AB
76032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7604
7605 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7606 (ada_language::demangle): New member function.
7607 * c-lang.c (c_language_data): Delete la_demangle initializer.
7608 (cplus_language_data): Delete la_demangle initializer.
7609 (cplus_language::demangle): New member function.
7610 (asm_language_data): Delete la_demangle initializer.
7611 (minimal_language_data): Delete la_demangle initializer.
7612 * d-lang.c (d_language_data): Delete la_demangle initializer.
7613 (d_language::demangle): New member function.
7614 * f-lang.c (f_language_data): Delete la_demangle initializer.
7615 (f_language::demangle): New member function.
7616 * go-lang.c (go_language_data): Delete la_demangle initializer.
7617 (go_language::demangle): New member function.
7618 * language.c (language_demangle): Update.
7619 (unk_lang_demangle): Delete.
7620 (unknown_language_data): Delete la_demangle initializer.
7621 (unknown_language::demangle): New member function.
7622 (auto_language_data): Delete la_demangle initializer.
7623 (auto_language::demangle): New member function.
7624 * language.h (language_data): Delete la_demangle field.
7625 (language_defn::demangle): New function.
7626 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7627 * objc-lang.c (objc_language_data): Delete la_demangle
7628 initializer.
7629 (objc_language::demangle): New member function.
7630 * opencl-lang.c (opencl_language_data): Delete la_demangle
7631 initializer.
7632 * p-lang.c (pascal_language_data): Likewise.
7633 * rust-lang.c (rust_language_data): Likewise.
7634 (rust_language::demangle): New member function.
7635
fbfb0a46
AB
76362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7637
7638 * ada-lang.c (ada_language_data): Delete la_print_type
7639 initializer.
7640 (ada_language::print_type): New member function.
7641 * c-lang.c (c_language_data): Delete la_print_type initializer.
7642 (c_language::print_type): New member function.
7643 (cplus_language_data): Delete la_print_type initializer.
7644 (cplus_language::print_type): New member function.
7645 (asm_language_data): Delete la_print_type initializer.
7646 (asm_language::print_type): New member function.
7647 (minimal_language_data): Delete la_print_type initializer.
7648 (minimal_language::print_type): New member function.
7649 * d-lang.c (d_language_data): Delete la_print_type initializer.
7650 (d_language::print_type): New member function.
7651 * f-lang.c (f_language_data): Delete la_print_type initializer.
7652 (f_language::print_type): New member function.
7653 * go-lang.c (go_language_data): Delete la_print_type initializer.
7654 (go_language::print_type): New member function.
7655 * language.c (unk_lang_print_type): Delete.
7656 (unknown_language_data): Delete la_print_type initializer.
7657 (unknown_language::print_type): New member function.
7658 (auto_language_data): Delete la_print_type initializer.
7659 (auto_language::print_type): New member function.
7660 * language.h (language_data): Delete la_print_type field.
7661 (language_defn::print_type): New function.
7662 (LA_PRINT_TYPE): Update.
7663 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7664 (m2_language::print_type): New member function.
7665 * objc-lang.c (objc_language_data): Delete la_print_type
7666 initializer.
7667 (objc_language::print_type): New member function.
7668 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7669 to opencl_language::print_type.
7670 (opencl_language_data): Delete la_print_type initializer.
7671 (opencl_language::print_type): New member function, implementation
7672 from opencl_print_type.
7673 * p-lang.c (pascal_language_data): Delete la_print_type
7674 initializer.
7675 (pascal_language::print_type): New member function.
7676 * rust-lang.c (rust_print_type): Delete, implementation moved to
7677 rust_language::print_type.
7678 (rust_language_data): Delete la_print_type initializer.
7679 (rust_language::print_type): New member function, implementation
7680 from rust_print_type.
7681
6f827019
AB
76822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7683
7684 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7685 implementation moves to...
7686 (ada_language::sniff_from_mangled_name): ...here. Update return
7687 type.
7688 (ada_language_data): Delete la_sniff_from_mangled_name
7689 initializer.
7690 * c-lang.c (c_language_data): Likewise.
7691 (cplus_language_data): Likewise.
7692 (cplus_language::sniff_from_mangled_name): New member function,
7693 implementation taken from gdb_sniff_from_mangled_name.
7694 (asm_language_data): Delete la_sniff_from_mangled_name
7695 initializer.
7696 (minimal_language_data): Likewise.
7697 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7698 implementation moves to cplus_language::sniff_from_mangled_name.
7699 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7700 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7701 moves to...
7702 (d_language::sniff_from_mangled_name): ...here.
7703 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7704 * f-lang.c (f_language_data): Likewise.
7705 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7706 moves to...
7707 (go_language::sniff_from_mangled_name): ...here.
7708 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7709 * language.c (language_sniff_from_mangled_name): Delete.
7710 (unknown_language_data): Delete la_sniff_from_mangled_name
7711 initializer.
7712 (auto_language_data): Likewise.
7713 * language.h (language_data): Delete la_sniff_from_mangled_name
7714 field.
7715 (language_defn::sniff_from_mangled_name): New function.
7716 (language_sniff_from_mangled_name): Delete declaration.
7717 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7718 field.
7719 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7720 implementation moves to...
7721 (objc_language::sniff_from_mangled_name): ...here.
7722 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7723 * opencl-lang.c (opencl_language_data): Likewise.
7724 * p-lang.c (pascal_language_data): Likewise.
7725 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7726 implementation moves to...
7727 (rust_language::sniff_from_mangled_name): ...here.
7728 (rust_language_data): Delete la_sniff_from_mangled_name
7729 initializer.
7730 * symtab.c (symbol_find_demangled_name): Call
7731 sniff_from_mangled_name member function.
7732
fb8006fd
AB
77332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7734
7735 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7736 initializer.
7737 * c-lang.c (c_language_data): Likewise.
7738 (cplus_language_data): Likewise.
7739 (cplus_language::search_name_hash): New member function.
7740 (asm_language_data): Delete la_search_name_hash initializer.
7741 (minimal_language_data): Likewise.
7742 * d-lang.c (d_language_data): Likewise.
7743 * dictionary.c (default_search_name_hash): Rename to...
7744 (language_defn::search_name_hash): ...this.
7745 * f-lang.c (f_language_data): Likewise.
7746 (f_language::search_name_hash): New member function.
7747 * go-lang.c (go_language_data): Delete la_search_name_hash
7748 initializer.
7749 * language.c (unknown_language_data): Likewise.
7750 (auto_language_data): Likewise.
7751 * language.h (struct language_data): Delete la_search_name_hash
7752 field.
7753 (language_defn::search_name_hash): Declare new member function.
7754 (default_search_name_hash): Delete declaration.
7755 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7756 initializer.
7757 * objc-lang.c (objc_language_data): Likewise.
7758 * opencl-lang.c (opencl_language_data): Likewise.
7759 * p-lang.c (pascal_language_data): Likewise.
7760 * rust-lang.c (rust_language_data): Likewise.
7761 * symtab.c (search_name_hash): Update call.
7762
8e25bafe
AB
77632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7764
7765 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7766 initializer.
7767 * c-lang.c (class compile_instance): Declare.
7768 (c_language_data): Delete la_get_compile_instance initializer.
7769 (c_language::get_compile_instance): New member function.
7770 (cplus_language_data): Delete la_get_compile_instance initializer.
7771 (cplus_language::get_compile_instance): New member function.
7772 (asm_language_data): Delete la_get_compile_instance initializer.
7773 (minimal_language_data): Likewise.
7774 * c-lang.h (c_get_compile_context): Update comment.
7775 (cplus_get_compile_context): Update comment.
7776 * compile/compile.c (compile_to_object): Update calls, don't rely
7777 on function pointer being NULL.
7778 * d-lang.c (d_language_data): Delete la_get_compile_instance
7779 initializer.
7780 * f-lang.c (f_language_data): Likewise.
7781 * go-lang.c (go_language_data): Likewise.
7782 * language.c (unknown_language_data): Likewise.
7783 (auto_language_data): Likewise.
7784 * language.h (language_data): Delete la_get_compile_instance field.
7785 (language_defn::get_compile_instance): New member function.
7786 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7787 initializer.
7788 * objc-lang.c (objc_language_data): Likewise.
7789 * opencl-lang.c (opencl_language_data): Likewise.
7790 * p-lang.c (pascal_language_data): Likewise.
7791 * rust-lang.c (rust_language_data): Likewise.
7792
4009ee92
AB
77932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 * ada-lang.c (ada_add_all_symbols): Update comment.
7796 (ada_iterate_over_symbols): Delete, move implementation to...
7797 (ada_language::iterate_over_symbols): ...here, a new member
7798 function, rewrite to use range based for loop.
7799 (ada_language_data): Delete la_iterate_over_symbols initializer.
7800 * c-lang.c (c_language_data): Likewise.
7801 (cplus_language_data): Likewise.
7802 (asm_language_data): Likewise.
7803 (minimal_language_data): Likewise.
7804 * d-lang.c (d_language_data): Likewise.
7805 * f-lang.c (f_language_data): Likewise.
7806 * go-lang.c (go_language_data): Likewise.
7807 * language.c (unknown_language_data): Likewise.
7808 (auto_language_data): Likewise.
7809 * language.h (language_data): Delete la_iterate_over_symbols field.
7810 (language_defn::iterate_over_symbols): New member function.
7811 (LA_ITERATE_OVER_SYMBOLS): Update.
7812 * linespec.c (iterate_over_all_matching_symtabs): Update.
7813 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7814 initializer.
7815 * objc-lang.c (objc_language_data): Likewise.
7816 * opencl-lang.c (opencl_language_data): Likewise.
7817 * p-lang.c (pascal_language_data): Likewise.
7818 * rust-lang.c (rust_language_data): Likewise.
7819
54f4ca46
AB
78202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7821
7822 * ada-lang.c (ada_language_data): Delete
7823 la_lookup_transparent_type initializer.
7824 * c-lang.c (c_language_data): Likewise.
7825 (cplus_language_data): Likewise.
7826 (cplus_language::lookup_transparent_type): New member function.
7827 (asm_language_data): Delete la_lookup_transparent_type
7828 initializer.
7829 (minimal_language_data): Likewise.
7830 * d-lang.c (d_language_data): Likewise.
7831 * f-lang.c (f_language_data): Likewise.
7832 * go-lang.c (go_language_data): Likewise.
7833 * language.c (unknown_language_data): Likewise.
7834 (auto_language_data): Likewise.
7835 * language.h (struct language_data): Delete
7836 la_lookup_transparent_type field.
7837 (language_defn::lookup_transparent_type): New member function.
7838 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7839 initializer.
7840 * objc-lang.c (objc_language_data): Likewise.
7841 * opencl-lang.c (opencl_language_data): Likewise.
7842 * p-lang.c (pascal_language_data): Likewise.
7843 * rust-lang.c (rust_language_data): Likewise.
7844 * symtab.c (symbol_matches_domain): Update call.
7845
1fb314aa
AB
78462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7847
7848 * ada-lang.c (ada_language_arch_info): Delete function, move
7849 implementation to...
7850 (ada_language::language_arch_info): ...here, a new member
7851 function.
7852 (ada_language_data): Delete la_language_arch_info.
7853 * c-lang.c (c_language_data): Likewise.
7854 (c_language::language_arch_info): New member function.
7855 (cplus_language_arch_info): Delete function, move
7856 implementation to...
7857 (cplus_language::language_arch_info): ...here, a new member
7858 function.
7859 (cplus_language_data): Delete la_language_arch_info.
7860 (asm_language_data): Likewise.
7861 (asm_language::language_arch_info): New member function.
7862 (minimal_language_data): Delete la_language_arch_info.
7863 (minimal_language::language_arch_info): New member function.
7864 * d-lang.c (d_language_arch_info): Delete function, move
7865 implementation to...
7866 (d_language::language_arch_info): ...here, a new member
7867 function.
7868 (d_language_data): Delete la_language_arch_info.
7869 * f-lang.c (f_language_arch_info): Delete function, move
7870 implementation to...
7871 (f_language::language_arch_info): ...here, a new member
7872 function.
7873 (f_language_data): Delete la_language_arch_info.
7874 * go-lang.c (go_language_arch_info): Delete function, move
7875 implementation to...
7876 (go_language::language_arch_info): ...here, a new member
7877 function.
7878 (go_language_data): Delete la_language_arch_info.
7879 * language.c (unknown_language_data): Likewise.
7880 (unknown_language::language_arch_info): New member function.
7881 (auto_language_data): Delete la_language_arch_info.
7882 (auto_language::language_arch_info): New member function.
7883 (language_gdbarch_post_init): Update call to
7884 la_language_arch_info.
7885 * language.h (language_data): Delete la_language_arch_info
7886 function pointer.
7887 (language_defn::language_arch_info): New function.
7888 * m2-lang.c (m2_language_arch_info): Delete function, move
7889 implementation to...
7890 (m2_language::language_arch_info): ...here, a new member
7891 function.
7892 (m2_language_data): Delete la_language_arch_info.
7893 * objc-lang.c (objc_language_arch_info): Delete function, move
7894 implementation to...
7895 (objc_language::language_arch_info): ...here, a new member
7896 function.
7897 (objc_language_data): Delete la_language_arch_info.
7898 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7899 implementation to...
7900 (opencl_language::language_arch_info): ...here, a new member
7901 function.
7902 (opencl_language_data): Delete la_language_arch_info.
7903 * p-lang.c (pascal_language_arch_info): Delete function, move
7904 implementation to...
7905 (pascal_language::language_arch_info): ...here, a new member
7906 function.
7907 (pascal_language_data): Delete la_language_arch_info.
7908 * rust-lang.c (rust_language_arch_info): Delete function, move
7909 implementation to...
7910 (rust_language::language_arch_info): ...here, a new member
7911 function.
7912 (rust_language_data): Delete la_language_arch_info.
7913
48448202
AB
79142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7917 initializer.
7918 * c-lang.c (c_language_data): Likewise.
7919 (cplus_language_data): Likewise.
7920 (cplus_language::pass_by_reference_info): New method.
7921 (asm_language_data): Delete la_pass_by_reference initializer.
7922 (minimal_language_data): Likewise.
7923 * cp-abi.c (cp_pass_by_reference): Remove use of
7924 default_pass_by_reference.
7925 * d-lang.c (d_language_data): Likewise.
7926 * f-lang.c (f_language_data): Likewise.
7927 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7928 default_pass_by_reference.
7929 * go-lang.c (go_language_data): Likewise.
7930 * language.c (language_pass_by_reference): Update.
7931 (default_pass_by_reference): Delete.
7932 (unknown_language_data): Delete la_pass_by_reference
7933 initializer.
7934 (auto_language_data): Likewise.
7935 * language.h (struct language_data): Delete la_pass_by_reference
7936 field.
7937 (language_defn::pass_by_reference_info): New member function.
7938 (default_pass_by_reference): Delete declaration.
7939 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7940 initializer.
7941 * objc-lang.c (objc_language_data): Likewise.
7942 * opencl-lang.c (opencl_language_data): Likewise.
7943 * p-lang.c (pascal_language_data): Likewise.
7944 * rust-lang.c (rust_language_data): Likewise.
7945
15e5fd35
AB
79462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7947
7948 * ada-lang.c (ada_read_var_value): Delete function, move
7949 implementation to...
7950 (ada_language::read_var_value): ...here.
7951 (ada_language_data): Delete la_read_var_value initializer.
7952 * c-lang.c (c_language_data): Likewise.
7953 (cplus_language_data): Likewise.
7954 (minimal_language_data): Likewise.
7955 * d-lang.c (d_language_data): Likewise.
7956 * f-lang.c (f_language_data): Likewise.
7957 * findvar.c (default_read_var_value): Rename to...
7958 (language_defn::read_var_value): ...this.
7959 * findvar.c (read_var_value): Update header comment, and change to
7960 call member function instead of function pointer.
7961 * go-lang.c (go_language_data): Likewise.
7962 * language.c (unknown_language_data): Delete la_read_var_value
7963 initializer.
7964 (auto_language_data): Likewise.
7965 * language.h (struct language_data): Delete la_read_var_value
7966 field.
7967 (language_defn::read_var_value): New member function.
7968 (default_read_var_value): Delete declaration.
7969 * m2-lang.c (m2_language_data): Delete la_read_var_value
7970 initializer.
7971 * objc-lang.c (objc_language_data): Likewise.
7972 * opencl-lang.c (opencl_language_data): Likewise.
7973 * p-lang.c (pascal_language_data): Likewise.
7974 * rust-lang.c (rust_language_data): Likewise.
7975 * value.h (default_read_var_value): Delete declaration.
7976
5bd40f2a
AB
79772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7978
7979 * ada-lang.c (ada_print_array_index): Delete function, move
7980 implementation to...
7981 (ada_language::print_array_index): ...here.
7982 (ada_language_data): Delete la_print_array_index initializer.
7983 * c-lang.c (c_language_data): Likewise.
7984 (cplus_language_data): Likewise.
7985 (minimal_language_data): Likewise.
7986 * d-lang.c (d_language_data): Likewise.
7987 * f-lang.c (f_language_data): Likewise.
7988 * go-lang.c (go_language_data): Likewise.
7989 * language.c (default_print_array_index): Delete function, move
7990 implementation to...
7991 (language_defn::print_array_index): ...here.
7992 (unknown_language_data): Delete la_print_array_index initializer.
7993 (auto_language_data): Likewise.
7994 * language.h (struct language_data): Delete la_print_array_index
7995 field.
7996 (language_defn::print_array_index): New member function.
7997 (LA_PRINT_ARRAY_INDEX): Update.
7998 (default_print_array_index): Delete declaration.
7999 * m2-lang.c (m2_language_data): Delete la_print_array_index
8000 initializer.
8001 * objc-lang.c (objc_language_data): Likewise.
8002 * opencl-lang.c (opencl_language_data): Likewise.
8003 * p-lang.c (pascal_language_data): Likewise.
8004 * rust-lang.c (rust_language_data): Likewise.
8005
0874fd07
AB
80062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8007
8008 * gdb/ada-lang.c (ada_language_defn): Convert to...
8009 (ada_language_data): ...this.
8010 (class ada_language): New class.
8011 (ada_language_defn): New static global.
8012 * gdb/c-lang.c (c_language_defn): Convert to...
8013 (c_language_data): ...this.
8014 (class c_language): New class.
8015 (c_language_defn): New static global.
8016 (cplus_language_defn): Convert to...
8017 (cplus_language_data): ...this.
8018 (class cplus_language): New class.
8019 (cplus_language_defn): New static global.
8020 (asm_language_defn): Convert to...
8021 (asm_language_data): ...this.
8022 (class asm_language): New class.
8023 (asm_language_defn): New static global.
8024 (minimal_language_defn): Convert to...
8025 (minimal_language_data): ...this.
8026 (class minimal_language): New class.
8027 (minimal_language_defn): New static global.
8028 * gdb/d-lang.c (d_language_defn): Convert to...
8029 (d_language_data): ...this.
8030 (class d_language): New class.
8031 (d_language_defn): New static global.
8032 * gdb/f-lang.c (f_language_defn): Convert to...
8033 (f_language_data): ...this.
8034 (class f_language): New class.
8035 (f_language_defn): New static global.
8036 * gdb/go-lang.c (go_language_defn): Convert to...
8037 (go_language_data): ...this.
8038 (class go_language): New class.
8039 (go_language_defn): New static global.
8040 * gdb/language.c (unknown_language_defn): Remove declaration.
8041 (current_language): Initialize to nullptr, real initialization is
8042 moved to _initialize_language.
8043 (languages): Delete global.
8044 (language_defn::languages): Define.
8045 (set_language_command): Use language_defn::languages.
8046 (set_language): Likewise.
8047 (range_error): Likewise.
8048 (language_enum): Likewise.
8049 (language_def): Likewise.
8050 (add_set_language_command): Use language_def::languages for the
8051 language list, and language_def to lookup language pointers.
8052 (skip_language_trampoline): Use language_defn::languages.
8053 (unknown_language_defn): Convert to...
8054 (unknown_language_data): ...this.
8055 (class unknown_language): New class.
8056 (unknown_language_defn): New static global.
8057 (auto_language_defn): Convert to...
8058 (auto_language_data): ...this.
8059 (class auto_language): New class.
8060 (auto_language_defn): New static global.
8061 (language_gdbarch_post_init): Use language_defn::languages.
8062 (_initialize_language): Initialize current_language.
8063 * gdb/language.h (struct language_defn): Rename to...
8064 (struct language_data): ...this.
8065 (struct language_defn): New.
8066 (auto_language_defn): Delete.
8067 (unknown_language_defn): Delete.
8068 (minimal_language_defn): Delete.
8069 (ada_language_defn): Delete.
8070 (asm_language_defn): Delete.
8071 (c_language_defn): Delete.
8072 (cplus_language_defn): Delete.
8073 (d_language_defn): Delete.
8074 (f_language_defn): Delete.
8075 (go_language_defn): Delete.
8076 (m2_language_defn): Delete.
8077 (objc_language_defn): Delete.
8078 (opencl_language_defn): Delete.
8079 (pascal_language_defn): Delete.
8080 (rust_language_defn): Delete.
8081 * gdb/m2-lang.c (m2_language_defn): Convert to...
8082 (m2_language_data): ...this.
8083 (class m2_language): New class.
8084 (m2_language_defn): New static global.
8085 * gdb/objc-lang.c (objc_language_defn): Convert to...
8086 (objc_language_data): ...this.
8087 (class objc_language): New class.
8088 (objc_language_defn): New static global.
8089 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8090 (opencl_language_data): ...this.
8091 (class opencl_language): New class.
8092 (opencl_language_defn): New static global.
8093 * gdb/p-lang.c (pascal_language_defn): Convert to...
8094 (pascal_language_data): ...this.
8095 (class pascal_language): New class.
8096 (pascal_language_defn): New static global.
8097 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8098 language pointer, update comment format.
8099 * gdb/rust-lang.c (rust_language_defn): Convert to...
8100 (rust_language_data): ...this.
8101 (class rust_language): New class.
8102 (rust_language_defn): New static global.
8103
1313c56e
AB
81042020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8105
8106 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8107 member variable.
8108 <m_stmt_at_address>: New member variable.
8109 (lnp_state_machine::record_line): Don't record some lines, update
8110 tracking of is_stmt at the same address.
8111 (lnp_state_machine::lnp_state_machine): Initialise new member
8112 variables.
8113
b7ed9f3d
ST
81142020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8115
8116 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8117 "-include gnu-nat-mig.h".
8118 * gnu-nat-mig.h: New file.
8119 * gnu-nat.c: Include "gnu-nat-mig.h".
8120 (exc_server, msg_reply_server, notify_server,
8121 process_reply_server): Remove declarations.
8122
14a8ad62
ST
81232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8124
8125 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8126 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8127 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8128 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8129 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8130 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8131 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8132 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8133 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8134 to gnu_nat_target class.
8135 * gnu-nat.c: Likewise.
8136 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8137 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8138 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8139 object.
8140 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8141 instead of `gnu_target'.
8142
0af5e106
ST
81432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8144
8145 * i386-gnu-tdep.c: Include "gdbcore.h"
8146 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8147 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8148 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8149 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8150 i386_gnu_sigcontext_addr): New functions
8151 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8152 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8153 tdep.
8154
078f2fc9
ST
81552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8156
8157 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8158 before fork_inferior call. Avoid calling it if target_is_pushed returns
8159 true.
8160
53dff92c
ST
81612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8162
8163 * gnu-nat.h (gnu_target): New variable declaration.
8164 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8165 gnu_target.
8166 * gnu-nat.c (gnu_target): New variable.
8167 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8168 add_thread_silent, and add_thread calls.
8169 (gnu_nat_target::create_inferior): Pass gnu_target to
8170 add_thread_silent, thread_change_ptid call.
8171 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8172 call.
8173
5a8b8627
ST
81742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8175
8176 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8177 (gnu_nat_target::find_memory_regions): Remove unused
8178 `old_address' variable.
8179
366f550a
ST
81802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8181
8182 * gnu-nat.c: Include "gdbarch.h".
8183
f14871bf
ST
81842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8185
8186 * reply_mig_hack.awk (Error return): Cast function through
8187 void *, to bypass compiler function call check.
8188
c6887cfb
ST
81892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8190
8191 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8192 $(srcdir)/reply_mig_hack.awk.
8193
6930bffe
ST
81942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8195
8196 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8197
112c22ed
JG
81982020-05-30 Jonny Grant <jg@jguk.org>
8199
8200 * configure.ac (ACX_BUGURL): change bug URL to https.
8201
f68f85b5
PA
82022020-05-30 Pedro Alves <palves@redhat.com>
8203
8204 * cp-support.c (replace_typedefs_template): New.
8205 (replace_typedefs_qualified_name): Handle
8206 DEMANGLE_COMPONENT_TEMPLATE.
8207
976ca316
SM
82082020-05-29 Simon Marchi <simon.marchi@efficios.com>
8209
8210 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8211 dwarf2/index-cache.h, dwarf2/index-write.c,
8212 dwarf2/index-write.h, dwarf2/line-header.c,
8213 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8214 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8215 variables and fields from `dwarf2_per_objfile` to just
8216 `per_objfile` throughout.
8217
989ade05
SM
82182020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8219
8220 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8221 <push_dwarf_reg_entry_value>: Add comment.
8222
c47bae85
KB
82232020-05-28 Kevin Buettner <kevinb@redhat.com>
8224 Keith Seitz <keiths@redhat.com>
8225
8226 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8227 instead of PyEval_ReleaseLock.
8228 (class gdbpy_gil): Move to earlier in file.
8229 (finalize_python): Set gdb_python_initialized.
8230 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8231 when not initialized.
8232
44486dcf
SM
82332020-05-28 Simon Marchi <simon.marchi@efficios.com>
8234
8235 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8236 <push_dwarf_reg_entry_value>: Remove assert. Override
8237 per_objfile with caller_per_objfile.
8238
f030440d
TV
82392020-05-28 Tom de Vries <tdevries@suse.de>
8240
8241 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8242 PR gold/15646 workaround to symbol kind "type".
8243
f0fbb768
TT
82442020-05-27 Tom Tromey <tromey@adacore.com>
8245
8246 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8247
af0b2a3e
TT
82482020-05-27 Tom Tromey <tromey@adacore.com>
8249
8250 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8251 Use htab_find_with_hash.
8252 <add_abbrev>: Remove "abbrev_number" parameter.
8253 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8254 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8255 (hash_abbrev): Add comment.
8256 (abbrev_table::lookup_abbrev): Move to header file.
8257 (abbrev_table::read): Update.
8258
7d00ffec
TT
82592020-05-27 Tom Tromey <tromey@adacore.com>
8260
8261 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8262 method.
8263 <canonical_name>: New member.
8264 <raw_name>: Rename from "name".
8265 (partial_die_info): Initialize canonical_name.
8266 (scan_partial_symbols): Check raw_name.
8267 (partial_die_parent_scope, partial_die_full_name)
8268 (add_partial_symbol, add_partial_subprogram)
8269 (add_partial_enumeration, load_partial_dies): Use "name" method.
8270 (partial_die_info::name): New method.
8271 (partial_die_info::read, guess_partial_die_structure_name)
8272 (partial_die_info::fixup): Update.
8273
697bba18
TT
82742020-05-27 Tom Tromey <tromey@adacore.com>
8275
8276 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8277 <get_ref_die_offset>: Inline.
8278 <get_ref_die_offset_complaint>: New method.
8279 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8280 (attribute::get_ref_die_offset_complaint): Rename from
8281 get_ref_die_offset. Just issue complaint.
8282
c17ace43
HD
82832020-05-27 Hannes Domani <ssbssa@yahoo.de>
8284
8285 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8286
96445f0b
HD
82872020-05-27 Hannes Domani <ssbssa@yahoo.de>
8288
8289 * exec.c (exec_file_attach): Use errno value of first openp failure.
8290
ac637ec3
HD
82912020-05-27 Hannes Domani <ssbssa@yahoo.de>
8292
8293 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8294 Don't close thread handle.
8295
17ee85fc
TT
82962020-05-27 Tom Tromey <tom@tromey.com>
8297 Simon Marchi <simon.marchi@efficios.com>
8298
8299 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8300 shared_ptr.
8301 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8302 member.
8303 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8304 dwarf2_per_bfd_objfile_data_key>: New globals.
8305 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8306 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8307 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8308 shared.
8309 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8310 short-circuit when sharing.
8311 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8312 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8313
39b16f87
SM
83142020-05-27 Simon Marchi <simon.marchi@efficios.com>
8315
8316 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8317 to...
8318 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8319 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8320
fcf23d5b
SM
83212020-05-27 Simon Marchi <simon.marchi@efficios.com>
8322
8323 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8324 build_name_components, find_name_components_bounds>:
8325 Add per_objfile parameter.
8326 (struct mapped_index) <symbol_name_at>: Likewise.
8327 (struct mapped_debug_names): Remove constructor.
8328 <dwarf2_per_objfile>: Remove field.
8329 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8330 (mapped_index_base::find_name_components_bounds,
8331 mapped_index_base::build_name_components,
8332 dw2_expand_symtabs_matching_symbol): Likewise.
8333 (class mock_mapped_index) <symbol_name_at>: Likewise.
8334 (check_match): Likewise.
8335 (check_find_bounds_finds): Likewise.
8336 (test_mapped_index_find_name_component_bounds): Update.
8337 (CHECK_MATCH): Update.
8338 (dw2_expand_symtabs_matching): Update.
8339 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8340 per_objfile parameter.
8341 <find_vec_in_debug_names>: Likewise.
8342 <m_per_objfile>: New field.
8343 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8344 parameter.
8345 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8346 (dw2_debug_names_iterator::next): Update.
8347 (dw2_debug_names_lookup_symbol): Update.
8348 (dw2_debug_names_expand_symtabs_for_function): Update.
8349 (dw2_debug_names_map_matching_symbols): Update.
8350 (dw2_debug_names_expand_symtabs_matching): Update.
8351 (dwarf2_read_debug_names): Update.
8352
7188ed02
SM
83532020-05-27 Simon Marchi <simon.marchi@efficios.com>
8354
8355 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8356 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8357 move to dwarf2_per_objfile.
8358 <read_in_chain>: Remove.
8359 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8360 remove_all_cus, age_comp_units>: New methods.
8361 <m_dwarf2_cus>: New member.
8362 (struct dwarf2_per_cu_data) <cu>: Remove.
8363 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8364 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8365 moved to methods of dwarf2_per_objfile.
8366 (dwarf2_clear_marks): Remove.
8367 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8368 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8369 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8370 (dwarf2_per_objfile::remove_all_cus): New.
8371 (class free_cached_comp_units) <~free_cached_comp_units>:
8372 Update.
8373 (load_cu): Update.
8374 (dw2_do_instantiate_symtab): Adjust.
8375 (fill_in_sig_entry_from_dwo_entry): Adjust.
8376 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8377 (cutu_reader::cutu_reader): Likewise.
8378 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8379 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8380 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8381 and dwarf2_per_objfile::age_comp_units.
8382 (load_partial_comp_unit): Update.
8383 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8384 (process_queue): Likewise.
8385 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8386 backlink.
8387 (dwarf2_read_addr_index): Likewise.
8388 (follow_die_offset): Likewise.
8389 (dwarf2_fetch_die_loc_sect_off): Likewise.
8390 (dwarf2_fetch_constant_bytes): Likewise.
8391 (dwarf2_fetch_die_type_sect_off): Likewise.
8392 (follow_die_sig_1): Likewise.
8393 (load_full_type_unit): Likewise.
8394 (read_signatured_type): Likewise.
8395 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8396 (dwarf2_cu::~dwarf2_cu): Remove.
8397 (dwarf2_per_objfile::get_cu): New.
8398 (dwarf2_per_objfile::set_cu): New.
8399 (age_cached_comp_units): Rename to...
8400 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8401 to std::unordered_map.
8402 (free_one_cached_comp_unit): Rename to...
8403 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8404 to std::unordered_map.
8405 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8406 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8407 a dwarf2_per_objfile in data.
8408 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8409 (dwarf2_clear_marks): Remove.
8410
2e671100
SM
84112020-05-27 Simon Marchi <simon.marchi@efficios.com>
8412
8413 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8414 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8415 (init_tu_and_read_dwo_dies): Likewise.
8416 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8417 (cutu_reader::cutu_reader): Likewise.
8418 (load_partial_comp_unit): Likewise.
8419 (process_psymtab_comp_unit): Update.
8420 (build_type_psymtabs_1): Update.
8421 (process_skeletonless_type_unit): Update.
8422 (load_full_comp_unit): Update.
8423 (find_partial_die): Update.
8424 (dwarf2_read_addr_index): Update.
8425 (read_signatured_type): Update.
8426
2e6a9f79
SM
84272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8428
8429 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8430 m_header_read_in>: New fields.
8431 <get_header>: New method.
8432 * dwarf2/read.c (per_cu_header_read_in): Remove.
8433 (dwarf2_per_cu_data::get_header): New.
8434 (dwarf2_per_cu_data::addr_size): Update.
8435 (dwarf2_per_cu_data::offset_size): Update.
8436 (dwarf2_per_cu_data::ref_addr_size): Update.
8437
1b555f17
SM
84382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8439
8440 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8441 (dw2_do_instantiate_symtab): Update.
8442 (queue_and_load_all_dwo_tus): Change parameter from
8443 dwarf2_per_cu_data to dwarf2_cu.
8444 (dwarf2_fetch_die_loc_sect_off): Update.
8445 (dwarf2_fetch_constant_bytes): Update.
8446 (dwarf2_fetch_die_type_sect_off): Update.
8447
8fc0b21d
SM
84482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8449
8450 * dwarf2/read.c (process_full_comp_unit,
8451 process_full_type_unit): Remove per_cu, per_objfile paramters.
8452 Add dwarf2_cu parameter.
8453 (process_queue): Update.
8454
168c9250
SM
84552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8456
8457 * dwarf2/read.c (create_cu_from_index_list): Replace
8458 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8459 (create_cus_from_index_list): Likewise.
8460 (create_cus_from_index): Likewise.
8461 (create_signatured_type_table_from_index): Likewise.
8462 (create_cus_from_debug_names_list): Likewise.
8463 (create_cus_from_debug_names): Likewise.
8464 (dwarf2_read_gdb_index): Update.
8465 (dwarf2_read_debug_names): Update.
8466
e286671b
TT
84672020-05-27 Tom Tromey <tom@tromey.com>
8468 Simon Marchi <simon.marchi@efficios.com>
8469
8470 * dwarf2/read.h (struct dwarf2_per_objfile)
8471 <get_type_for_signatured_type, set_type_for_signatured_type>:
8472 New methods.
8473 <m_type_map>: New member.
8474 (struct signatured_type) <type>: Remove.
8475 * dwarf2/read.c
8476 (dwarf2_per_objfile::get_type_for_signatured_type,
8477 dwarf2_per_objfile::set_type_for_signatured_type): New.
8478 (get_signatured_type): Use new methods.
8479
8adb8487
TT
84802020-05-27 Tom Tromey <tom@tromey.com>
8481 Simon Marchi <simon.marchi@efficios.com>
8482
8483 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8484 (struct dwarf2_per_objfile) <type_units>: New member.
8485 <get_type_unit_group_unshareable>: New method.
8486 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8487 num_symtabs, symtabs>: Remove; move to
8488 type_unit_group_unshareable.
8489 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8490 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8491 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8492
127bbf4b
SM
84932020-05-27 Simon Marchi <simon.marchi@efficios.com>
8494
8495 * dwarf2/read.h (struct dwarf2_per_cu_data):
8496 <dwarf2_per_objfile>: Remove.
8497 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8498 dwarf2_per_objfile.
8499 (create_signatured_type_table_from_index): Likewise.
8500 (create_signatured_type_table_from_debug_names): Likewise.
8501 (create_debug_type_hash_table): Likewise.
8502 (fill_in_sig_entry_from_dwo_entry): Likewise.
8503 (create_type_unit_group): Likewise.
8504 (read_comp_units_from_section): Likewise.
8505 (create_cus_hash_table): Likewise.
8506
f6e649dd
SM
85072020-05-27 Simon Marchi <simon.marchi@efficios.com>
8508
8509 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8510 dwarf2_per_cu_data::dwarf2_per_objfile.
8511 (compute_compunit_symtab_includes): Likewise.
8512 (dwarf2_cu::start_symtab): Likewise.
8513
aa66c379
SM
85142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8515
8516 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8517 parameter.
8518 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8519 (read_namespace_alias): Update.
8520 (lookup_die_type): Update.
8521 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8522 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8523 Update.
8524 (disassemble_dwarf_expression): Update.
8525
120ce1b5
SM
85262020-05-27 Simon Marchi <simon.marchi@efficios.com>
8527
8528 * dwarf2/read.h (struct dwarf2_queue_item): Add
8529 dwarf2_per_objfile parameter, assign new parameter.
8530 <per_objfile>: New field.
8531 * dwarf2/read.c (free_one_cached_comp_unit): Add
8532 dwarf2_per_objfile parameter.
8533 (queue_comp_unit): Likewise.
8534 (dw2_do_instantiate_symtab): Update.
8535 (process_psymtab_comp_unit): Update.
8536 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8537 (process_imported_unit_die): Update.
8538 (queue_and_load_dwo_tu): Update.
8539 (follow_die_offset): Update.
8540 (follow_die_sig_1): Update.
8541
9f47c707
SM
85422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8543
8544 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8545 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8546 (read_call_site_scope): Assign per_objfile.
8547 (dwarf2_per_cu_data::objfile): Remove.
8548 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8549 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8550 dwarf2_per_objfile parameter.
8551 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8552 dwarf2_per_objfile parameter.
8553 (dwarf_expr_reg_to_entry_parameter): Add output
8554 dwarf2_per_objfile parameter.
8555 (locexpr_get_frame_base): Update.
8556 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8557 <push_dwarf_reg_entry_value>: Update.
8558 <call_site_to_target_addr>: Update.
8559 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8560 parameter.
8561 (value_of_dwarf_reg_entry): Update.
8562 (rw_pieced_value): Update.
8563 (indirect_synthetic_pointer): Update.
8564 (dwarf2_evaluate_property): Update.
8565 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8566 parameter.
8567 (locexpr_read_variable): Update.
8568 (locexpr_get_symbol_read_needs): Update.
8569 (loclist_read_variable): Update.
8570
14095eb3
SM
85712020-05-27 Simon Marchi <simon.marchi@efficios.com>
8572
8573 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8574 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8575 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8576 parameter.
8577 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8578 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8579 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8580 parameter.
8581 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8582 sect_variable_value): Add dwarf2_per_objfile parameter.
8583 (class dwarf_evaluate_loc_desc) <dwarf_call,
8584 dwarf_variable_value>: Update.
8585 (fetch_const_value_from_synthetic_pointer): Add
8586 dwarf2_per_objfile parameter.
8587 (fetch_const_value_from_synthetic_pointer): Update.
8588 (coerced_pieced_ref): Update.
8589 (class symbol_needs_eval_context) <dwarf_call,
8590 dwarf_variable_value>: Update.
8591 (dwarf2_compile_expr_to_ax): Update.
8592
3c3cd3d4
SM
85932020-05-27 Simon Marchi <simon.marchi@efficios.com>
8594
8595 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8596 parameter.
8597 (dwarf2_evaluate_loc_desc_full): Update.
8598
82ca3f51
SM
85992020-05-27 Simon Marchi <simon.marchi@efficios.com>
8600
8601 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8602 parameter.
8603 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8604 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8605 dwarf2_per_objfile parameter.
8606 (decode_debug_loc_dwo_addresses): Likewise.
8607 (dwarf2_find_location_expression): Update.
8608 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8609 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8610 parameter.
8611 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8612 parameter.
8613 (locexpr_describe_location_1): Likewise.
8614 (locexpr_describe_location): Update.
8615
4b167ea1
SM
86162020-05-27 Simon Marchi <simon.marchi@efficios.com>
8617
8618 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8619 Remove.
8620 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8621 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8622 (dwarf2_compile_property_to_c): Update.
8623 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8624 use text offset from objfile.
8625 (locexpr_tracepoint_var_ref): Update.
8626 (locexpr_generate_c_location): Update.
8627 (loclist_describe_location): Update.
8628 (loclist_tracepoint_var_ref): Update.
8629 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8630 dwarf2_per_objfile parameter.
8631 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8632 use text offset from objfile.
8633 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8634
89b07335
SM
86352020-05-27 Simon Marchi <simon.marchi@efficios.com>
8636
8637 * dwarf2/expr.h (struct dwarf_expr_context)
8638 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8639 <offset>: Remove.
8640 <per_objfile>: New member.
8641 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8642 dwarf2_per_objfile parameter. Don't set offset, set
8643 per_objfile.
8644 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8645 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8646 a dwarf2_per_objfile object instead of an offset.
8647 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8648 constructor.
8649 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8650 to dwarf2_expr_executor constructor. Don't set offset.
8651 (dwarf2_fetch_cfa_info): Update.
8652 (struct dwarf2_frame_cache) <text_offset>: Remove.
8653 <per_objfile>: New field.
8654 (dwarf2_frame_cache): Update.
8655 (dwarf2_frame_prev_register): Update.
8656 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8657 <dwarf_evaluate_loc_desc>: Add constructor.
8658 (dwarf2_evaluate_loc_desc_full): Update.
8659 (dwarf2_locexpr_baton_eval): Update.
8660 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8661 Add constructor.
8662 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8663
293e7e51
SM
86642020-05-27 Simon Marchi <simon.marchi@efficios.com>
8665
8666 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8667 addr_sized_int_type>: Move to dwarf2_cu.
8668 <int_type>: Move to dwarf2_per_objfile.
8669 (struct dwarf2_per_objfile) <int_type>: Move here.
8670 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8671 addr_sized_int_type>: Move here.
8672 (read_func_scope): Update.
8673 (read_array_type): Update.
8674 (read_tag_string_type): Update.
8675 (attr_to_dynamic_prop): Update.
8676 (dwarf2_per_cu_data::int_type): Rename to...
8677 (dwarf2_per_objfile::int_type): ... this.
8678 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8679 (dwarf2_cu::addr_sized_int_type): ... this.
8680 (read_subrange_type): Update.
8681 (dwarf2_per_cu_data::addr_type): Rename to...
8682 (dwarf2_cu::addr_type): ... this.
8683 (set_die_type): Update.
8684
64874a40
SM
86852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8686
8687 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8688 data through per_cu->cu.
8689
4ab09049
SM
86902020-05-27 Simon Marchi <simon.marchi@efficios.com>
8691
8692 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8693 dwarf2_per_cu_data parameter fo dwarf2_cu.
8694 (lookup_dwo_type_unit): Likewise.
8695 (read_cutu_die_from_dwo): Likewise.
8696 (lookup_dwo_unit): Likewise.
8697 (open_and_init_dwo_file): Likewise.
8698 (lookup_dwo_cutu): Likewise.
8699 (lookup_dwo_comp_unit): Likewise.
8700 (lookup_dwo_type_unit): Likewise.
8701 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8702 (cutu_reader::cutu_reader): Update.
8703
47b14e86
SM
87042020-05-27 Simon Marchi <simon.marchi@efficios.com>
8705
8706 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8707 parameter.
8708 (process_full_type_unit): Likewise.
8709 (process_queue): Update.
8710
43182c09
SM
87112020-05-27 Simon Marchi <simon.marchi@efficios.com>
8712
8713 * dwarf2/read.c (recursively_compute_inclusions): Add
8714 dwarf2_per_objfile parameter.
8715 (compute_compunit_symtab_includes): Likewise.
8716 (process_cu_includes): Update.
8717
7aa104c4
SM
87182020-05-27 Simon Marchi <simon.marchi@efficios.com>
8719
8720 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8721 parameter.
8722 (create_type_unit_group): Update.
8723 (process_psymtab_comp_unit_reader): Update.
8724 (build_type_psymtabs_reader): Update.
8725
e3beb21d
SM
87262020-05-27 Simon Marchi <simon.marchi@efficios.com>
8727
8728 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8729 object through m_this_cu->cu.
8730
d460f660
SM
87312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8732
8733 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8734 the info parameter.
8735 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8736
ab432490
SM
87372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8738
8739 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8740 per_objfile parameter.
8741 (load_full_type_unit): Add per_objfile parameter.
8742 (read_signatured_type): Likewise.
8743 (load_full_comp_unit): Likewise.
8744 (load_cu): Likewise.
8745 (dw2_do_instantiate_symtab): Likewise.
8746 (dw2_get_file_names): Likewise.
8747 (dw2_map_symtabs_matching_filename): Update.
8748 (dw_expand_symtabs_matching_file_matcher): Update.
8749 (dw2_map_symbol_filenames): Update.
8750 (process_psymtab_comp_unit): Add per_objfile parameter.
8751 (build_type_psymtabs_1): Update.
8752 (process_skeletonless_type_unit): Update.
8753 (dwarf2_build_psymtabs_hard): Update.
8754 (load_partial_comp_unit): Add per_objfile parameter.
8755 (scan_partial_symbols): Update.
8756 (load_full_comp_unit): Add per_objfile parameter.
8757 (process_imported_unit_die): Update.
8758 (create_cus_hash_table): Update.
8759 (find_partial_die): Update.
8760 (dwarf2_read_addr_index): Update.
8761 (follow_die_offset): Update.
8762 (dwarf2_fetch_die_loc_sect_off): Update.
8763 (dwarf2_fetch_constant_bytes): Update.
8764 (dwarf2_fetch_die_type_sect_off): Update.
8765 (follow_die_sig_1): Update.
8766 (load_full_type_unit): Add per_objfile parameter.
8767 (read_signatured_type): Likewise.
8768
313bad1b
SM
87692020-05-27 Simon Marchi <simon.marchi@efficios.com>
8770
8771 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8772 of objfile_name.
8773
c3699833
SM
87742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8775
8776 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8777 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8778 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8779 field.
8780 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8781 (create_cus_from_index): Update.
8782 (dwarf2_read_gdb_index): Update.
8783 (create_cus_from_debug_names): Update.
8784 (dwarf2_read_debug_names): Update.
8785 (get_abbrev_section_for_cu): Update.
8786 (create_all_comp_units): Update.
8787 (read_attribute_value): Update.
8788 (get_debug_line_section): Update.
8789 * dwarf2/index-cache.c (index_cache::store): Update.
8790 * dwarf2/index-write.c (save_gdb_index_command): Update.
8791 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8792
1859c670
SM
87932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8794
8795 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8796 member.
8797 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8798 dwarf2_per_cu_data::per_bfd.
8799 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8800 (create_type_unit_group): Likewise.
8801 (queue_comp_unit): Remove reference to
8802 per_cu->dwarf2_per_objfile.
8803 (maybe_queue_comp_unit): Likewise.
8804 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8805 (create_cus_hash_table): Assign new field.
8806
5e22e966
SM
88072020-05-27 Simon Marchi <simon.marchi@efficios.com>
8808
8809 * dwarf2/read.c: Replace
8810 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8811 dwarf2_cu->per_objfile throughout.
8812
97a1449a
SM
88132020-05-27 Simon Marchi <simon.marchi@efficios.com>
8814
8815 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8816 parameter, don't use per_cu->dwarf2_per_objfile.
8817 (dw2_instantiate_symtab): Likewise.
8818 (dw2_find_last_source_symtab): Update.
8819 (dw2_map_expand_apply): Update.
8820 (dw2_lookup_symbol): Update.
8821 (dw2_expand_symtabs_for_function): Update.
8822 (dw2_expand_all_symtabs): Update.
8823 (dw2_expand_symtabs_with_fullname): Update.
8824 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8825 don't use per_cu->dwarf2_per_objfile.
8826 (dw2_expand_marked_cus): Update.
8827 (dw2_find_pc_sect_compunit_symtab): Update.
8828 (dw2_debug_names_lookup_symbol): Update.
8829 (dw2_debug_names_expand_symtabs_for_function): Update.
8830 (dw2_debug_names_map_matching_symbols): Update.
8831 (dwarf2_psymtab::expand_psymtab): Update.
8832
9e021579
SM
88332020-05-27 Simon Marchi <simon.marchi@efficios.com>
8834
8835 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8836 <per_objfile>: New member.
8837 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8838 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8839 call to dwarf2_cu.
8840 (cutu_reader::cutu_reader): Update.
8841 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8842
ae090bdb
SM
88432020-05-27 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8846 struct dwarf2_per_objfile.
8847 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8848 dwarf2_per_bfd.
8849 * dwarf2/read.c (set_die_type): Update.
8850 (get_die_type_at_offset): Update.
8851
af758d11
SM
88522020-05-27 Tom Tromey <tom@tromey.com>
8853 Simon Marchi <simon.marchi@efficios.com>
8854
8855 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8856 method.
8857 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8858 get_symtab, set_symtab>: New methods.
8859 <m_symtabs>: New field.
8860 (struct dwarf2_psymtab): Derive from partial_symtab.
8861 <readin_p, get_compunit_symtab>: Declare methods.
8862 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8863 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8864 New methods.
8865 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8866 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8867 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8868 (dw2_symtab_iter_next, dw2_print_stats)
8869 (dw2_expand_symtabs_with_fullname)
8870 (dw2_expand_symtabs_matching_one)
8871 (dw_expand_symtabs_matching_file_matcher)
8872 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8873 (dw2_debug_names_iterator::next)
8874 (dw2_debug_names_map_matching_symbols)
8875 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8876 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8877 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8878 New methods.
8879 (get_compunit_symtab, process_full_comp_unit)
8880 (process_full_type_unit): Update.
8881 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8882
5989a64e
SM
88832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8884
8885 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8886 then introduce a new dwarf2_per_objfile type.
8887 <read_line_string>: Move to the new dwarf2_per_objfile type.
8888 <objfile>: Likewise.
8889 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8890 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8891 dwarf2_per_objfile->per_bfd.
8892 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8893 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8894 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8895 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8896 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8897 (dwarf2_per_objfile::locate_sections): Rename to...
8898 (dwarf2_per_bfd::locate_sections): ... this.
8899 (dwarf2_per_objfile::get_cutu): Rename to...
8900 (dwarf2_per_bfd::get_cutu): ... this.
8901 (dwarf2_per_objfile::get_cu): Rename to...
8902 (dwarf2_per_bfd::get_cu): ... this.
8903 (dwarf2_per_objfile::get_tu): Rename to...
8904 (dwarf2_per_bfd::get_tu): ... this.
8905 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8906 (dwarf2_per_bfd::allocate_per_cu): ... this.
8907 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8908 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8909 (get_gdb_index_contents_ftype): Change parameter from
8910 dwarf2_per_objfile to dwarf2_per_bfd.
8911 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8912 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8913
a50264ba
TT
89142020-05-27 Tom Tromey <tom@tromey.com>
8915 Simon Marchi <simon.marchi@efficios.com>
8916
8917 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8918 (allocate_piece_closure): Set "per_objfile" member.
8919 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8920 (locexpr_describe_location, loclist_describe_location): Use new
8921 member.
8922 * dwarf2/read.c (read_call_site_scope)
8923 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8924 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8925 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8926 handle_data_member_location): Set per_objfile member.
8927 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8928 member.
8929 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8930
d3473f0c
TT
89312020-05-27 Tom Tromey <tom@tromey.com>
8932
8933 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8934 allocate_signatured_type>: Declare new methods.
8935 <m_num_psymtabs>: New member.
8936 (struct dwarf2_per_cu_data) <index>: New member.
8937 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8938 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8939 (create_cu_from_index_list): Use allocate_per_cu.
8940 (create_signatured_type_table_from_index)
8941 (create_signatured_type_table_from_debug_names)
8942 (create_debug_type_hash_table, add_type_unit)
8943 (read_comp_units_from_section): Use allocate_signatured_type.
8944
5717c425
TT
89452020-05-27 Tom Tromey <tom@tromey.com>
8946
8947 * psymtab.c (partial_map_expand_apply)
8948 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8949 (psym_lookup_global_symbol_language)
8950 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8951 (psym_print_stats, psym_expand_symtabs_for_function)
8952 (psym_map_symbol_filenames, psym_map_matching_symbols)
8953 (psym_expand_symtabs_matching)
8954 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8955 (maintenance_check_psymtabs): Update.
8956 * psympriv.h (struct partial_symtab) <readin_p,
8957 get_compunit_symtab>: Add objfile parameter.
8958 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8959 Likewise.
8960 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8961 get_compunit_symtab>: Likewise.
8962 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8963
45940949
TT
89642020-05-27 Tom Tromey <tom@tromey.com>
8965
8966 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8967 member.
8968 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8969 (create_cu_from_index_list)
8970 (create_signatured_type_table_from_index)
8971 (create_signatured_type_table_from_debug_names)
8972 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8973 (dwarf2_create_include_psymtab)
8974 (create_debug_type_hash_table, add_type_unit)
8975 (create_type_unit_group, read_comp_units_from_section)
8976 (dwarf2_compute_name, create_cus_hash_table)
8977 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8978 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8979 obstack.
8980 (dw2_get_real_path): Likewise. Change argument to
8981 dwarf2_per_objfile.
8982
f8c6d152
LM
89832020-05-27 Luis Machado <luis.machado@linaro.org>
8984
8985 PR tdep/26000
8986 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8987 for ldrd (immediate).
8988
e98d2e6d
PW
89892020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8990
8991 * command.h: Add comment giving the name of class_tui.
8992 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8993 create the fake command for the help for class_tui.
8994
53a47a3e
TT
89952020-05-26 Tom Tromey <tromey@adacore.com>
8996
8997 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8998 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8999 (val_atr): New function.
9000 (value_val_atr): Use it.
9001 * ada-valprint.c (print_optional_low_bound): Change low bound
9002 handling for enums.
9003 (val_print_packed_array_elements): Don't call discrete_position.
9004 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9005 discrete_position for enum types.
9006 * language.c (default_print_array_index): Change type.
9007 * language.h (struct language_defn) <la_print_array_index>: Add
9008 index_type parameter, change type of index_value.
9009 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9010 (default_print_array_index): Update.
9011 * valprint.c (maybe_print_array_index): Don't call
9012 value_from_longest. Update.
9013 (value_print_array_elements): Don't call discrete_position.
9014
0bc2354b
TT
90152020-05-26 Tom Tromey <tromey@adacore.com>
9016
9017 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9018 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9019
1218a4bf
CDA
90202020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9021
9022 PR gdb/13519
9023 * avr-tdep.c (avr_integer_to_address): Return data or code
9024 address accordingly to the second 'type' argument of the
9025 function.
9026
92651b1d
MW
90272020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9028
9029 * infcmd.c, inferior.h: (construct_inferior_arguments):
9030 Moved function from here to gdbsupport/common-inferior.{h,cc}
9031
0a4f5f8c
TT
90322020-05-23 Tom Tromey <tom@tromey.com>
9033
9034 Revert commit eca1f90c:
9035 * NEWS: Remove entry for completion styling.
9036 * completer.c (_rl_completion_prefix_display_length): Move
9037 declaration later.
9038 (gdb_fnprint): Revert.
9039 (gdb_display_match_list_1): Likewise.
9040 * cli/cli-style.c (completion_prefix_style)
9041 (completion_difference_style, completion_suffix_style): Remove.
9042 (_initialize_cli_style): Revert.
9043 * cli/cli-style.h (completion_prefix_style)
9044 (completion_difference_style, completion_suffix_style): Don't
9045 declare.
9046
e08bd6c5
PA
90472020-05-24 Pedro Alves <palves@redhat.com>
9048
9049 * symtab.c (completion_list_add_name): Return boolean indication
9050 of whether the symbol matched.
9051 (completion_list_add_symbol): Don't try to remove C++ aliases if
9052 the symbol didn't match in the first place.
9053 * symtab.h (completion_list_add_name): Return bool.
9054
ceacbf6e
SM
90552020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9056
9057 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9058 type::field.
9059
26f16254
JB
90602020-05-23 Joel Brobecker <brobecker@adacore.com>
9061
9062 GDB 9.2 released.
9063
eca1f90c
TT
90642020-05-23 Tom Tromey <tom@tromey.com>
9065
9066 * NEWS: Add entry for completion styling.
9067 * completer.c (_rl_completion_prefix_display_length): Move
9068 declaration earlier.
9069 (gdb_fnprint): Use completion_style.
9070 (gdb_display_match_list_1): Likewise.
9071 * cli/cli-style.c (completion_prefix_style)
9072 (completion_difference_style, completion_suffix_style): New
9073 globals.
9074 (_initialize_cli_style): Register new globals.
9075 * cli/cli-style.h (completion_prefix_style)
9076 (completion_difference_style, completion_suffix_style): Declare.
9077
51e2cfa2
PA
90782020-05-23 Pedro Alves <palves@redhat.com>
9079
9080 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9081 (parse_escape): Use ISDIGIT instead of isdigit.
9082 (puts_debug): Use gdb_isprint instead of isprint.
9083 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9084 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9085 ISSPACE instead of isspace.
9086 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9087 instead of isspace.
9088 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9089 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9090 instead of isxdigit and ISDIGIT instead of isdigit.
9091
80fc5e77
SM
90922020-05-22 Simon Marchi <simon.marchi@efficios.com>
9093
9094 * gdbtypes.h (struct type) <field>: New method.
9095 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9096 or type::field.
9097
3cabb6b0
SM
90982020-05-22 Simon Marchi <simon.marchi@efficios.com>
9099
9100 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9101 (TYPE_FIELDS): Use type::fields. Change all call sites that
9102 modify the propery to use type::set_fields instead.
9103
1f704f76
SM
91042020-05-22 Simon Marchi <simon.marchi@efficios.com>
9105
9106 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9107 type::num_fields instead.
9108
5e33d5f4
SM
91092020-05-22 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9112 methods.
9113 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9114 that modify the number of fields to use type::set_num_fields
9115 instead.
9116
9392ebb3
TT
91172020-05-22 Tom Tromey <tromey@adacore.com>
9118
9119 * compile/compile-object-load.h (munmap_list_free): Don't
9120 declare.
9121
7c13f4e8
AB
91222020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9123
9124 * annotate.c (annotate_source_line): Update return type, add call
9125 to update current symtab and line.
9126 * annotate.h (annotate_source_line): Update return type, and
9127 extend header comment.
9128 * source.c (info_line_command): Check annotation_level before
9129 calling annotate_source_line.
9130 * stack.c (print_frame_info): If calling annotate_source_line
9131 returns true, then don't print any other source line information.
9132
aa370940
SM
91332020-05-21 Simon Marchi <simon.marchi@efficios.com>
9134
9135 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9136
84d53fa9
SM
91372020-05-21 Simon Marchi <simon.marchi@efficios.com>
9138
9139 * coffread.c (patch_type): Remove NULL check before xfree.
9140 * corefile.c (set_gnutarget): Likewise.
9141 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9142 * exec.c (build_section_table): Likewise.
9143 * remote.c (remote_target::pass_signals): Likewise.
9144 * utils.c (n_spaces): Likewise.
9145 * cli/cli-script.c (document_command): Likewise.
9146 * i386-windows-tdep.c (core_process_module_section): Likewise.
9147 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9148
9d428aae
SM
91492020-05-20 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * symfile.c (reread_symbols): Clear objfile's section_offsets
9152 vector and section indices, re-compute them by calling
9153 sym_offsets.
9154
250106a7
TT
91552020-05-20 Tom Tromey <tromey@adacore.com>
9156
9157 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9158 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9159
9a0bacfb
TV
91602020-05-20 Tom de Vries <tdevries@suse.de>
9161
9162 PR symtab/25833
9163 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9164
7b958a48
AM
91652020-05-20 Alan Modra <amodra@gmail.com>
9166
9167 PR 25993
9168 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9169 bfd_set_filename.
9170 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9171 passed to bfd_set_filename.
9172 * symfile-mem.c (add_vsyscall_page): Likewise for string
9173 passed to symbol_file_add_from_memory.
9174 (symbol_file_add_from_memory): Make name param a const char* and
9175 don't strdup.
9176
c7e97679
AM
91772020-05-20 Alan Modra <amodra@gmail.com>
9178
9179 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9180 rather than accessing bfd->filename directly.
9181 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9182 and use bfd_section_name.
9183 * dwarf2/frame.c (decode_frame_entry): Likewise.
9184 * exec.c (exec_set_section_address): Likewise.
9185 * solib-aix.c (solib_aix_bfd_open): Likewise.
9186 * stap-probe.c (get_stap_base_address): Likewise.
9187 * symfile.c (reread_symbols): Likewise.
9188
563c591b
TT
91892020-05-19 Tom Tromey <tromey@adacore.com>
9190
9191 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9192
f408d82c
SM
91932020-05-19 Simon Marchi <simon.marchi@efficios.com>
9194
9195 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9196
98c59b52
PA
91972020-05-19 Pedro Alves <palves@redhat.com>
9198
9199 * NEWS (set exec-file-mismatch): Adjust entry.
9200 * exec.c: Include "build-id.h".
9201 (validate_exec_file): Try to match build IDs instead of filenames.
9202 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9203 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9204 and pass down 'warn_if_slow'.
9205 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9206 gdb_bfd_open_closure to pass it down.
9207 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9208
4111f652
PA
92092020-05-19 Pedro Alves <palves@redhat.com>
9210
9211 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9212 * target.c (target_fileio_open_1): Rename to target_fileio_open
9213 and make extern. Use bool.
9214 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9215 (target_fileio_read_alloc_1): Adjust.
9216 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9217 (target_fileio_open_warn_if_slow): Delete declaration.
9218
ad80db5b
PA
92192020-05-19 Pedro Alves <palves@redhat.com>
9220
9221 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9222 Adjust all callers.
9223
1d6ce4d3
YS
92242020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9225
9226 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9227 whether disp is negative.
9228
9005fbbb
SM
92292020-05-19 Simon Marchi <simon.marchi@efficios.com>
9230
9231 * symfile.h (struct symfile_segment_data)
9232 <~symfile_segment_data>: Remove.
9233 <segment_info>: Change to std::vector.
9234 * symfile.c (default_symfile_segments): Update.
9235 * elfread.c (elf_symfile_segments): Update.
9236
68b888ff
SM
92372020-05-19 Simon Marchi <simon.marchi@efficios.com>
9238
9239 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9240 <segments>: New.
9241 <segment_bases, segment_sizes>: Remove.
9242 * symfile.c (default_symfile_segments): Update.
9243 * elfread.c (elf_symfile_segments): Update.
9244 * remote.c (remote_target::get_offsets): Update.
9245 * solib-target.c (solib_target_relocate_section_addresses):
9246 Update.
9247
62982abd
SM
92482020-05-19 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * symfile.h (struct symfile_segment_data): Initialize fields.
9251 <~symfile_segment_data>: Add.
9252 (symfile_segment_data_up): New.
9253 (struct sym_fns) <sym_segments>: Return a
9254 symfile_segment_data_up.
9255 (default_symfile_segments): Return a symfile_segment_data_up.
9256 (free_symfile_segment_data): Remove.
9257 (get_symfile_segment_data): Return a symfile_segment_data_up.
9258 * symfile.c (default_symfile_segments): Likewise.
9259 (get_symfile_segment_data): Likewise.
9260 (free_symfile_segment_data): Remove.
9261 (symfile_find_segment_sections): Update.
9262 * elfread.c (elf_symfile_segments): Return a
9263 symfile_segment_data_up.
9264 * remote.c (remote_target::get_offsets): Update.
9265 * solib-target.c (solib_target_relocate_section_addresses):
9266 Update.
9267 * symfile-debug.c (debug_sym_segments): Return a
9268 symfile_segment_data_up.
9269
7f204339
RO
92702020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9271
e52a0f1b
RO
9272 PR build/25981
9273 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9274 Hardcode register numbers.
9275
7f204339
RO
9276 PR build/25981
9277 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9278 procfs_find_LDT_entry): Remove.
9279 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9280 procfs_find_LDT_entry): Remove.
9281 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9282 Remove.
9283
7f32a4d5
PA
92842020-05-17 Pedro Alves <palves@redhat.com>
9285 Andrew Burgess <andrew.burgess@embecosm.com>
9286 Keno Fischer <keno@juliacomputing.com>
9287
9288 PR gdb/25741
9289 * breakpoint.c (build_target_condition_list): Update comments.
9290 (build_target_command_list): Update comments and skip matching
9291 locations.
9292 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9293 a separate function. Simplify "set breakpoint auto-hw off"
9294 handling.
9295 (insert_breakpoints): Update comment.
9296 (tracepoint_locations_match): New parameter. For breakpoints,
9297 compare location types too, if the caller wants to.
9298 (handle_automatic_hardware_breakpoints): New functions.
9299 (bp_location_is_less_than): Also sort by location type and
9300 hardware breakpoint length.
9301 (update_global_location_list): Handle "set breakpoint auto-hw on"
9302 here.
9303 (update_breakpoint_locations): Ask breakpoint_locations_match to
9304 ignore location types.
9305
7d93a1e0
SM
93062020-05-16 Simon Marchi <simon.marchi@efficios.com>
9307
9308 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9309 type::name instead.
9310
d0e39ea2
SM
93112020-05-16 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * gdbtypes.h (struct type) <name, set_name>: New methods.
9314 (TYPE_CODE): Use type::name. Change all call sites used to set
9315 the name to use type::set_name instead.
9316
2dab0c7b
TT
93172020-05-16 Tom Tromey <tom@tromey.com>
9318
9319 * top.c (quit_force): Update.
9320 * infrun.c (handle_no_resumed): Update.
9321 * top.h (all_uis): New function.
9322 (ALL_UIS): Remove.
9323
59f7bd8d
SM
93242020-05-16 Simon Marchi <simon.marchi@efficios.com>
9325
9326 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9327
9bf058f0
PA
93282020-05-16 Pedro Alves <palves@redhat.com>
9329
9330 * ia64-linux-nat.c
9331 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9332 Declare method.
9333 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9334
8f86ae1a
SM
93352020-05-15 Simon Marchi <simon.marchi@efficios.com>
9336
9337 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9338 (sparc64_adi_info): Likewise.
9339
d6bc0792
TT
93402020-05-15 Tom Tromey <tom@tromey.com>
9341
9342 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9343 block_objfile.
9344 (lookup_objfile_from_block): Remove.
9345 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9346 (lookup_global_symbol): Use block_objfile.
9347 * symtab.h (lookup_objfile_from_block): Don't declare.
9348 * printcmd.c (clear_dangling_display_expressions): Use
9349 block_objfile.
9350 * parse.c (operator_check_standard): Use block_objfile.
9351
8c14c3a3
TT
93522020-05-15 Tom Tromey <tom@tromey.com>
9353
9354 * language.c (language_alloc_type_symbol): Set
9355 SYMBOL_SECTION.
9356 * symtab.c (initialize_objfile_symbol): Remove.
9357 (allocate_symbol): Remove.
9358 (allocate_template_symbol): Remove.
9359 * dwarf2/read.c (fixup_go_packaging): Use "new".
9360 (new_symbol): Use "new".
9361 (read_variable): Don't call initialize_objfile_symbol. Use
9362 "new".
9363 (read_func_scope): Use "new".
9364 * xcoffread.c (process_xcoff_symbol): Don't call
9365 initialize_objfile_symbol.
9366 (SYMBOL_DUP): Remove.
9367 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9368 "new".
9369 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9370 (allocate_template_symbol): Don't declare.
9371 (struct symbol): Add copy constructor. Change defaults.
9372 * jit.c (finalize_symtab): Use "new".
9373 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9374 Use "new".
9375 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9376 (common_block_end): Use "new".
9377 * mdebugread.c (parse_symbol): Use "new".
9378 (new_symbol): Likewise.
9379
5b4a1a8d
PW
93802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9381
9382 * NEWS: Mention changes to help and apropos.
9383
57b4f16e
PW
93842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9385
9386 * command.h (enum command_class): Improve comments, document
9387 that class_alias is for user-defined aliases, give the class
9388 name for each class, remove unused class_xdb.
9389 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9390 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9391 by a precise class.
9392 * infcmd.c (_initialize_infcmd): Likewise.
9393 * reverse.c (_initialize_reverse): Likewise.
9394 * stack.c (_initialize_stack): Likewise.
9395 * symfile.c (_initialize_symfile): Likewise.
9396 * tracepoint.c (_initialize_tracepoint): Likewise.
9397
7c05caf7
PW
93982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9399
9400 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9401 when their aliased command is traversed.
9402 (help_cmd): Add fput_command_names_styled call to
9403 output command name and aliases when command has an alias.
9404
3b3aaacb
PW
94052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9406
9407 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9408 * cli/cli-decode.c (help_cmd_list): Declare as static,
9409 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9410 a command together with the command.
9411 (fput_command_name_styled, fput_command_names_styled): New functions.
9412 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9413 fput_command_name_styled.
9414 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9415 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9416
7aa1b46f
PW
94172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9418
9419 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9420 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9421 * command.h (cmd_show_list): Likewise.
9422 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9423 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9424
89bcba74
PW
94252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9426
9427 * unittests/command-def-selftests.c (traverse_command_structure):
9428 Verify all commands of a list have the same prefix command and
9429 that only the top cmdlist commands have a null prefix.
9430
3f4d92eb
PW
94312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9432
9433 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9434 as prefix, not one of its aliases.
9435 (set_cmd_prefix): Remove.
9436 (do_add_cmd): Centralize the setting of the prefix of a command, when
9437 command is defined after its full chain of prefix commands.
9438 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9439 (add_setshow_cmd_full): Likewise.
9440 (update_prefix_field_of_prefixed_commands): New function.
9441 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9442 update_prefix_field_of_prefixed_commands.
9443 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9444 addresses of remote_set_cmdlist and remote_show_cmdlist given
9445 as argument, not the address of an argument.
9446 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9447 * gdb/remote.c (_initialize_remote): Likewise.
9448
0605465f
PW
94492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9450
9451 * cli/cli-cmds.c (alias_command): Check for an existing alias
9452 using lookup_cmd_composition, as valid_command_p is too strict
9453 and forbids aliases that are the prefix of an existing alias
9454 or command.
9455 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9456 command is properly recognised as a valid command.
9457
58e6ac70
PW
94582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9459
9460 * unittests/help-doc-selftests.c: Rename to
9461 unittests/command-def-selftests.c
9462 * unittests/command-def-selftests.c (help_doc_tests): Update some
9463 comments.
9464 (command_structure_tests, traverse_command_structure): New namespace
9465 and function.
9466 (command_structure_invariants_tests): New function.
9467 (_initialize_command_def_selftests) Renamed from
9468 _initialize_help_doc_selftests, register command_structure_invariants
9469 selftest.
9470
a7b9ceb8
PW
94712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9472
9473 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9474 an alias of 'show'.
9475
b2188a06
JB
94762020-05-15 Joel Brobecker <brobecker@adacore.com>
9477
9478 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9479 ada_is_fixed_point_type. Update all callers.
9480 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9481 all callers.
9482 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9483 Update all callers.
9484 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9485 print_fixed_point_type. Update all callers.
9486 * ada-valprint.c (ada_value_print_num): Replace call to
9487 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9488
a51951c2
KB
94892020-05-14 Kevin Buettner <kevinb@redhat.com>
9490
9491 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9492 processors.
9493 (cpu_supports_bts): Add CV_AMD case.
9494
29d6859f
LM
94952020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9496 Simon Marchi <simon.marchi@efficios.com>
9497
9498 * infrun.c (stop_all_threads): Collect multiple wait events at
9499 each pass.
9500
78134374
SM
95012020-05-14 Simon Marchi <simon.marchi@efficios.com>
9502
9503 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9504 type::code instead.
9505
67607e24
SM
95062020-05-14 Simon Marchi <simon.marchi@efficios.com>
9507
9508 * gdbtypes.h (struct type) <code, set_code>: New methods.
9509 (TYPE_CODE): Use type::code. Change all call sites used to set
9510 the code to use type::set_code instead.
9511
a05575d3
TBA
95122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9513 Tom de Vries <tdevries@suse.de>
9514 Pedro Alves <palves@redhat.com>
9515
9516 PR threads/25478
9517 * infrun.c (stop_all_threads): Do NOT ignore
9518 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9519 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9520 received.
9521 (handle_no_resumed): Remove code handling a live inferior with no
9522 threads.
9523 * remote.c (has_single_non_exited_thread): New.
9524 (remote_target::update_thread_list): Do not delete a thread if is
9525 the last thread of the process.
9526 * thread.c (thread_select): Call delete_exited_threads instead of
9527 prune_threads.
9528
6ad82919
TBA
95292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9530
9531 * infrun.c (stop_all_threads): Enable/disable thread events of all
9532 targets. Move a debug message denoting the end of the function
9533 into the SCOPED_EXIT block.
9534
d890404b
TBA
95352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9536
9537 * process-stratum-target.h: Include <set>.
9538 (all_non_exited_process_targets, switch_to_target_no_thread): New
9539 function declarations.
9540 * process-stratum-target.c (all_non_exited_process_targets)
9541 (switch_to_target_no_thread): New function implementations.
9542
293b3ebc
TBA
95432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9544
9545 * infrun.c (handle_inferior_event): Extract out a piece of code
9546 into...
9547 (mark_non_executing_threads): ...this new function.
9548
7ca9b62a
TBA
95492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9550
9551 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9552 use.
9553
fc75c28b
TBA
95542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9555
9556 * regcache.c (regcache_read_pc_protected): New function
9557 implementation that returns 0 if the PC cannot read via
9558 'regcache_read_pc'.
9559 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9560 instead of 'regcache_read_pc'.
9561 (keep_going_pass_signal): Ditto.
9562
a89febbd
TT
95632020-05-13 Tom Tromey <tromey@adacore.com>
9564
9565 * ada-lang.c (align_value): Remove.
9566 (ada_template_to_fixed_record_type_1): Use align_up.
9567
f7e23710
TBA
95682020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9569
9570 * async-event.c: Update the copyright year.
9571 * async-event.h: Update the copyright year.
9572
02ff80c2
SM
95732020-05-12 Simon Marchi <simon.marchi@efficios.com>
9574
9575 * objfiles.h (is_addr_in_objfile,
9576 shared_objfile_contains_address_p): Return bool.
9577 * objfile.c (is_addr_in_objfile,
9578 shared_objfile_contains_address_p): Return bool.
9579
4fd6c7e8
TT
95802020-05-11 Tom Tromey <tromey@adacore.com>
9581
9582 * cli/cli-cmds.c (info_command): Restore.
9583 (_initialize_cli_cmds): Use add_prefix_command for "info".
9584 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9585
5eb68a39
TT
95862020-05-11 Tom Tromey <tromey@adacore.com>
9587
9588 * ada-lang.c (ada_value_primitive_field): Now public.
9589 * ada-lang.h (ada_value_primitive_field): Declare.
9590 * ada-valprint.c (print_field_values): Use
9591 ada_value_primitive_field for wrapper fields.
9592
7666722f
TV
95932020-05-11 Tom de Vries <tdevries@suse.de>
9594
9595 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9596 MODULE_DOMAIN.
9597
3ee6bb11
TV
95982020-05-11 Tom de Vries <tdevries@suse.de>
9599
9600 PR symtab/25941
9601 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9602 with length 0, if not gdb-produced.
9603 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9604
43434996
TV
96052020-05-09 Tom de Vries <tdevries@suse.de>
9606
9607 PR gdb/25955
9608 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9609 calculation.
9610
2f78cffc
TT
96112020-05-09 Tom Tromey <tom@tromey.com>
9612
9613 * top.c (server_command): Now bool.
9614 * top.h (server_command): Now bool.
9615
4f7bc5ed
TT
96162020-05-08 Tom Tromey <tromey@adacore.com>
9617
9618 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9619 already being processed.
9620
8be4b118
TT
96212020-05-08 Tom Tromey <tom@tromey.com>
9622
9623 * printcmd.c (struct display) <next>: Remove.
9624 <display>: New constructor.
9625 <exp_string>: Now a std::string.
9626 <enabled_p>: Now a bool.
9627 (display_number): Move definition earlier.
9628 (displays): Rename from display_chain. Now a std::vector.
9629 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9630 (display_command): Update.
9631 (do_one_display, disable_display)
9632 (enable_disable_display_command, do_enable_disable_display):
9633 Update.
9634 (free_display): Remove.
9635 (clear_displays): Rewrite.
9636 (delete_display): Update.
9637 (map_display_numbers): Use function_view. Remove "data"
9638 parameter. Update.
9639 (do_delete_display): Remove.
9640 (undisplay_command): Update.
9641 (do_one_display, do_displays, disable_display)
9642 (info_display_command): Update.
9643 (do_enable_disable_display): Remove.
9644 (enable_disable_display_command)
9645 (clear_dangling_display_expressions): Update.
9646
94c93c35
TT
96472020-05-08 Tom Tromey <tom@tromey.com>
9648
9649 * symtab.c (set_symbol_cache_size)
9650 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9651 (maintenance_print_symbol_cache_statistics): Update.
9652 * symmisc.c (print_symbol_bcache_statistics)
9653 (print_objfile_statistics, maintenance_print_objfiles)
9654 (maintenance_info_symtabs, maintenance_check_symtabs)
9655 (maintenance_expand_symtabs, maintenance_info_line_tables):
9656 Update.
9657 * symfile-debug.c (set_debug_symfile): Update.
9658 * source.c (forget_cached_source_info): Update.
9659 * python/python.c (gdbpy_progspaces): Update.
9660 * psymtab.c (maintenance_info_psymtabs): Update.
9661 * probe.c (parse_probes): Update.
9662 * linespec.c (iterate_over_all_matching_symtabs)
9663 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9664 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9665 * exec.c (exec_target::close): Update.
9666 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9667 * breakpoint.c (print_one_breakpoint_location)
9668 (create_longjmp_master_breakpoint)
9669 (create_std_terminate_master_breakpoint): Update.
9670 * progspace.c (program_spaces): Now a std::vector.
9671 (maybe_new_address_space): Update.
9672 (add_program_space): Remove.
9673 (program_space::program_space): Update.
9674 (remove_program_space): Update.
9675 (number_of_program_spaces): Remove.
9676 (print_program_space, update_address_spaces): Update.
9677 * progspace.h (program_spaces): Change type.
9678 (ALL_PSPACES): Remove.
9679 (number_of_program_spaces): Don't declare.
9680 (struct program_space) <next>: Remove.
9681
a1fd1ac9
TT
96822020-05-08 Tom Tromey <tom@tromey.com>
9683
9684 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9685 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9686 (enable_break): Update.
9687 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9688 (frv_fdpic_find_canonical_descriptor): Update.
9689 (frv_fetch_objfile_link_map): Update.
9690 * progspace.c (program_space::free_all_objfiles): Update.
9691 (program_space::solibs): New method.
9692 * progspace.h (struct program_space) <solibs>: New method.
9693 * solist.h (master_so_list): Don't declare.
9694 (ALL_SO_LIBS): Remove.
9695 * solib.h (so_list_head): Remove.
9696 (update_solib_list): Update comment.
9697 * solib.c (master_so_list): Remove.
9698 (solib_used, update_solib_list, solib_add)
9699 (info_sharedlibrary_command, clear_solib)
9700 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9701
38eae084
TT
97022020-05-08 Tom Tromey <tom@tromey.com>
9703
9704 * extension.c (extension_languages): Now a std::array.
9705 (ALL_EXTENSION_LANGUAGES): Remove.
9706 (get_ext_lang_defn, get_ext_lang_of_file)
9707 (eval_ext_lang_from_control_command): Update.
9708 (finish_ext_lang_initialization)
9709 (auto_load_ext_lang_scripts_for_objfile)
9710 (ext_lang_type_printers::ext_lang_type_printers)
9711 (apply_ext_lang_type_printers)
9712 (ext_lang_type_printers::~ext_lang_type_printers)
9713 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9714 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9715 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9716 (get_matching_xmethod_workers, ext_lang_colorize)
9717 (ext_lang_before_prompt): Update.
9718 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9719
596dc4ad
TT
97202020-05-08 Tom Tromey <tom@tromey.com>
9721
9722 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9723 overload.
9724 <swap_string, m_string>: Remove.
9725 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9726 Update.
9727 * stabsread.c (define_symbol, read_type): Update.
9728 * linespec.c (find_linespec_symbols): Update.
9729 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9730 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9731 * dbxread.c (read_dbx_symtab): Update.
9732 * cp-support.h (cp_canonicalize_string_full)
9733 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9734 Return unique_xmalloc_ptr.
9735 * cp-support.c (inspect_type): Update.
9736 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9737 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9738 Likewise.
9739 * c-typeprint.c (print_name_maybe_canonical): Update.
9740 * break-catch-throw.c (check_status_exception_catchpoint):
9741 Update.
9742
bf4cb9be
TV
97432020-05-08 Tom de Vries <tdevries@suse.de>
9744
9745 * infrun.c (follow_fork): Copy current_line and current_symtab to
9746 child thread.
9747
a1b68f28
SM
97482020-05-07 Simon Marchi <simon.marchi@efficios.com>
9749
9750 * async-event.c (struct async_signal_handler, struct
9751 async_event_handler): Reformat, remove typedef.
9752
98d48915
SM
97532020-05-07 Simon Marchi <simon.marchi@efficios.com>
9754
9755 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9756 access thistype->main_type->dyn_prop_list directly.
9757
7aa91313
SM
97582020-05-07 Simon Marchi <simon.marchi@efficios.com>
9759
9760 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9761 (remove_dyn_prop): Remove. Update all users to use
9762 type::remove_dyn_prop.
9763 * gdbtypes.c (remove_dyn_prop): Rename to...
9764 (type::remove_dyn_prop): ... this.
9765
5c54719c
SM
97662020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9767
9768 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9769 (add_dyn_prop): Remove. Update all users to use
9770 type::add_dyn_prop.
9771 * gdbtypes.c (add_dyn_prop): Rename to...
9772 (type::add_dyn_prop): ... this.
9773
24e99c6c
SM
97742020-05-07 Simon Marchi <simon.marchi@efficios.com>
9775
9776 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9777 (get_dyn_prop): Remove. Update all users to use
9778 type::dyn_prop.
9779 * gdbtypes.c (get_dyn_prop): Rename to...
9780 (type::dyn_prop): ... this.
9781
0d4bf016
SM
97822020-05-06 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9785
ac4a4f1c
SM
97862020-05-06 Simon Marchi <simon.marchi@efficios.com>
9787
9788 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9789 instruction, skip it if it's there.
9790
a3bbacc1
SM
97912020-05-05 Simon Marchi <simon.marchi@efficios.com>
9792
9793 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9794
c3236f84
SM
97952020-05-04 Simon Marchi <simon.marchi@efficios.com>
9796
9797 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9798 * gdbtypes.c (recursive_dump_type): Remove use of
9799 TYPE_INCOMPLETE.
9800
3b6acaee
TT
98012020-05-03 Tom Tromey <tom@tromey.com>
9802
9803 * breakpoint.c (catch_command, tcatch_command): Remove.
9804 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9805 add_show_prefix_cmd.
9806 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9807 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9808 Remove.
9809 (add_internal_problem_command): Use add_basic_prefix_cmd,
9810 add_show_prefix_cmd.
9811 * mips-tdep.c (set_mipsfpu_command): Remove.
9812 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9813 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9814 (_initialize_index_cache): Use add_basic_prefix_cmd.
9815 * memattr.c (dummy_cmd): Remove.
9816 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9817 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9818 (_initialize_tui_win): Use add_basic_prefix_cmd,
9819 add_show_prefix_cmd.
9820 * cli/cli-logging.c (set_logging_command): Remove.
9821 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9822 add_show_prefix_cmd.
9823 (show_logging_command): Remove.
9824 * target.c (target_command): Remove.
9825 (add_target): Use add_basic_prefix_cmd.
9826
a51119cd
HD
98272020-05-02 Hannes Domani <ssbssa@yahoo.de>
9828
9829 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9830
652fc23a 98312020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9832
652fc23a
PW
9833 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9834 info_command.
9835
117539e6
KR
98362020-04-30 Kamil Rytarowski <n54@gmx.com>
9837
9838 * nbsd-nat.c (nbsd_enable_proc_events)
9839 (nbsd_nat_target::post_startup_inferior): Add.
9840 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9841 (nbsd_nat_target::update_thread_list): Rewrite.
9842 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9843 "PTRACE_LWP_CREATE".
9844 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9845
102e38eb 98462020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9847
102e38eb
PW
9848 * stack.c (_initialize_stack): Remove duplicated creation
9849 of "frame" command and "f" alias.
9850
ee9d1e5f
HD
98512020-04-30 Hannes Domani <ssbssa@yahoo.de>
9852
9853 PR gdb/18706
9854 * gdbtypes.c (check_typedef): Calculate size of array of
9855 stubbed type.
9856
627c7fb8
HD
98572020-04-30 Hannes Domani <ssbssa@yahoo.de>
9858
9859 PR gdb/15559
9860 * i386-tdep.c (i386_push_dummy_call): Call
9861 i386_thiscall_push_dummy_call.
9862 (i386_thiscall_push_dummy_call): New function.
9863 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9864 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9865 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9866
ffc2844e
SM
98672020-04-29 Simon Marchi <simon.marchi@efficios.com>
9868
9869 * gdbarch.sh (do_read): Add shellcheck disable directive for
9870 warning SC2162.
9871
1207375d
SM
98722020-04-29 Simon Marchi <simon.marchi@efficios.com>
9873
9874 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9875 "referenced but not assigned" warning.
9876
9fdb2916
SM
98772020-04-29 Simon Marchi <simon.marchi@efficios.com>
9878
9879 * gdbarch.sh: Remove code that sets fallbackdefault.
9880
759cea5e
SM
98812020-04-29 Simon Marchi <simon.marchi@efficios.com>
9882
9883 * gdbarch.sh: Use shell operators && and || instead of
9884 -a and -o.
9885
cb02ab24
SM
98862020-04-29 Simon Marchi <simon.marchi@efficios.com>
9887
9888 * gdbarch.sh: Use $(...) instead of `...`.
9889
a6fc5ffc
SM
98902020-04-29 Simon Marchi <simon.marchi@efficios.com>
9891
9892 * gdbarch.sh: Use double quotes around variables.
9893
8d113d13
SM
98942020-04-29 Simon Marchi <simon.marchi@efficios.com>
9895
9896 * gdbarch.sh: Use %s with printf, instead of variables in the
9897 format string.
9898
ed6acedd
TT
98992020-04-29 Tom Tromey <tromey@adacore.com>
9900
9901 PR ada/25875:
9902 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9903 type fields here.
9904 (read_enumeration_type): Call
9905 update_enumeration_type_from_children later. Update comments.
9906 (process_enumeration_scope): Don't create type fields.
9907
b68b1b58
KR
99082020-04-29 Kamil Rytarowski <n54@gmx.com>
9909
9910 * nbsd-tdep.c: Include "xml-syscall.h".
9911 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9912
f94b2e03
KR
99132020-04-29 Kamil Rytarowski <n54@gmx.com>
9914
9915 * nbsd-nat.c: Include "sys/wait.h".
9916 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9917 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9918 (nbsd_nat_target::remove_exec_catchpoint)
9919 (nbsd_nat_target::set_syscall_catchpoint): Add.
9920 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9921 (nbsd_nat_target::insert_exec_catchpoint)
9922 (nbsd_nat_target::remove_exec_catchpoint)
9923 (nbsd_nat_target::set_syscall_catchpoint): Add.
9924 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9925 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9926 `nbsd_get_syscall_number'.
9927
fc49bc72
TT
99282020-04-29 Tom Tromey <tom@tromey.com>
9929
9930 * stack.c (print_block_frame_labels): Remove.
9931
d642b692
HD
99322020-04-29 Hannes Domani <ssbssa@yahoo.de>
9933
9934 PR gdb/17320
9935 * ada-valprint.c (val_print_packed_array_elements): Move array
9936 end bracket to new line.
9937 (ada_val_print_string): Remove extra spaces before first array
9938 element.
9939 * c-valprint.c (c_value_print_array): Likewise.
9940 * m2-valprint.c (m2_print_array_contents): Likewise.
9941 (m2_value_print_inner): Likewise.
9942 * p-valprint.c (pascal_value_print_inner): Likewise.
9943 * valprint.c (generic_val_print_array): Likewise.
9944 (value_print_array_elements): Move first array element and array
9945 end bracket to new line.
9946
ea90f227
TV
99472020-04-29 Tom de Vries <tdevries@suse.de>
9948
9949 PR symtab/25889
9950 * linespec.c (find_method): Fix ix calculation.
9951
4498ef4f
KR
99522020-04-28 Kamil Rytarowski <n54@gmx.com>
9953
9954 * syscalls/update-netbsd.sh: New file.
9955 * syscalls/netbsd.xml: Regenerate.
9956 * data-directory/Makefile.in: Register `netbsd.xml' in
9957 `SYSCALLS_FILES'.
9958
a55e30b5
SM
99592020-04-28 Simon Marchi <simon.marchi@efficios.com>
9960
9961 * syscalls/update-freebsd.sh: Add double quotes.
9962
2b2fbab8
TT
99632020-04-28 Tom Tromey <tom@tromey.com>
9964
9965 * NEWS: Update.
9966 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9967 (cmdpy_init): Allow class_tui.
9968
a65189c9
TV
99692020-04-28 Mark Williams <mark@myosotissp.com>
9970
9971 PR gdb/24480
9972 * dwarf2read.c: Add missing assingments to list_in_scope when
9973 start_symtab was already called.
9974
1b95cdb7
SM
99752020-04-28 Simon Marchi <simon.marchi@efficios.com>
9976
9977 PR gdb/25881
9978 * dwarf2/read.c (offset_map_type): Use
9979 gdb:hash_enum<sect_offset> as hash function.
9980
15cd93d0
TV
99812020-04-28 Tom de Vries <tdevries@suse.de>
9982
9983 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9984 with DW_AT_signature.
9985
1eb39914
SM
99862020-04-27 Simon Marchi <simon.marchi@efficios.com>
9987
9988 * configure.ac: Remove check for fs_base/gs_base in
9989 user_regs_struct.
9990 * configure: Re-generate.
9991 * config.in: Re-generate.
9992 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9993 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9994 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9995
991a3e2e
LM
99962020-04-27 Luis Machado <luis.machado@linaro.org>
9997
9998 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9999 problematic inline frame unwinding situation.
10000 * frame.c (frame_id_computed_p): New function.
10001 * frame.h (frame_id_computed_p): New prototype.
10002
361ba0e8
TT
100032020-04-26 Tom Tromey <tom@tromey.com>
10004
10005 * command.h (enum command_class) <class_pseudo>: Remove.
10006
bc3609fd
PW
100072020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10008
10009 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10010 and whitespace.
10011
b9771db7
KR
100122020-04-25 Kamil Rytarowski <n54@gmx.com>
10013
ec16513e
SM
10014 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10015 `PT_GET_PROCESS_STATE' block.
b9771db7 10016
7151c1af
TT
100172020-04-24 Tom Tromey <tom@tromey.com>
10018
10019 * symtab.h (symbol_get_demangled_name): Don't declare.
10020 * symtab.c (symbol_get_demangled_name): Remove.
10021 (general_symbol_info::natural_name)
10022 (general_symbol_info::demangled_name): Update.
10023
906bb4c5
TT
100242020-04-24 Tom Tromey <tom@tromey.com>
10025
10026 PR rust/25025:
10027 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10028
bcfe6157
TT
100292020-04-24 Tom Tromey <tom@tromey.com>
10030
10031 PR symtab/12707:
10032 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10033 exists.
10034 (new_symbol): Likewise.
10035 * compile/compile-object-load.c (get_out_value_type): Use
10036 symbol_matches_search_name.
10037
f049a313
TT
100382020-04-24 Tom Tromey <tom@tromey.com>
10039
10040 * dwarf2/read.c (add_partial_symbol): Do not call
10041 compute_and_set_names.
10042
76e288d1
TT
100432020-04-24 Tom Tromey <tom@tromey.com>
10044
10045 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10046 overload.
10047
2467f4f6
TT
100482020-04-24 Tom Tromey <tom@tromey.com>
10049
10050 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10051 (add_psymbol_to_list): New overload. Make old overload call new
10052 one.
10053 * psympriv.h (add_psymbol_to_list): New overload.
10054
e61108c9
TT
100552020-04-24 Tom Tromey <tom@tromey.com>
10056
10057 * dwarf2/read.c (partial_die_info::read) <case
10058 DW_AT_linkage_name>: Use value_as_string.
10059 (dwarf2_string_attr): Use value_as_string.
10060 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10061 method.
10062 * dwarf2/attribute.c (attribute::value_as_string): New method.
10063
8c87a452
TT
100642020-04-24 Tom Tromey <tom@tromey.com>
10065
10066 * symtab.c (general_symbol_info::natural_name)
10067 (general_symbol_info::demangled_name): Check for language_rust.
10068
787de330
TT
100692020-04-24 Tom Tromey <tom@tromey.com>
10070
10071 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10072 (dwarf2_physname): ... from here.
10073 (partial_die_info::read): Add Rust "{" hack.
10074
ff985671
TT
100752020-04-24 Tom Tromey <tom@tromey.com>
10076
10077 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10078 method.
10079 (symbol_set_demangled_name): Don't declare.
10080 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10081 symbol_set_demangled_name.
10082 (general_symbol_info::set_language)
10083 (general_symbol_info::compute_and_set_names): Update.
10084 * minsyms.c (minimal_symbol_reader::install): Update.
10085 * dwarf2/read.c (new_symbol): Update.
10086
1acda803
TT
100872020-04-24 Tom Tromey <tromey@adacore.com>
10088
10089 PR python/23662:
10090 * python/py-type.c (convert_field): Handle
10091 FIELD_LOC_KIND_DWARF_BLOCK.
10092 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10093 (typy_get_dynamic): Nw function.
10094 (type_object_getset): Add "dynamic".
10095 * NEWS: Add entry.
10096
d656f129
TT
100972020-04-24 Tom Tromey <tromey@adacore.com>
10098
10099 * ada-typeprint.c (print_choices, print_variant_part)
10100 (print_record_field_types_dynamic): New functions.
10101 (print_record_field_types): Use print_record_field_types_dynamic.
10102
7d79de9a
TT
101032020-04-24 Tom Tromey <tromey@adacore.com>
10104
10105 * dwarf2/read.c (handle_data_member_location): New overload.
10106 (dwarf2_add_field): Use it.
10107 (decode_locdesc): Add "computed" parameter. Update comment.
10108 * gdbtypes.c (is_dynamic_type_internal): Also look for
10109 FIELD_LOC_KIND_DWARF_BLOCK.
10110 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10111 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10112 virtual base classes.
10113 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10114 FIELD_LOC_KIND_DWARF_BLOCK.
10115
f8e89861
TT
101162020-04-24 Tom Tromey <tromey@adacore.com>
10117
10118 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10119 * gdbtypes.c (is_dynamic_type_internal): Check
10120 TYPE_HAS_DYNAMIC_LENGTH.
10121 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10122 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10123 New macros.
10124 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10125 constant.
10126
9c6a1327
TT
101272020-04-24 Tom Tromey <tromey@adacore.com>
10128
10129 * dwarf2/read.c (struct variant_field): Rewrite.
10130 (struct variant_part_builder): New.
10131 (struct nextfield): Remove "variant" field. Add "offset".
10132 (struct field_info): Add "current_variant_part" and
10133 "variant_parts".
10134 (alloc_discriminant_info): Remove.
10135 (alloc_rust_variant): New function.
10136 (quirk_rust_enum): Update.
10137 (dwarf2_add_field): Set "offset" member. Don't handle
10138 DW_TAG_variant_part.
10139 (offset_map_type): New typedef.
10140 (convert_variant_range, create_one_variant)
10141 (create_one_variant_part, create_variant_parts)
10142 (add_variant_property): New functions.
10143 (dwarf2_attach_fields_to_type): Call add_variant_property.
10144 (read_structure_type): Don't handle DW_TAG_variant_part.
10145 (handle_variant_part, handle_variant): New functions.
10146 (handle_struct_member_die): Use them.
10147 (process_structure_scope): Don't handle variant parts.
10148 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10149 (struct discriminant_info): Remove.
10150 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10151 (struct main_type) <flag_discriminated_union>: Remove.
10152 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10153 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10154 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10155 Update.
10156 * valops.c (value_union_variant): Remove.
10157 * value.h (value_union_variant): Don't declare.
10158
b249d2c2
TT
101592020-04-24 Tom Tromey <tromey@adacore.com>
10160
10161 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10162 (ada_value_primitive_packed_val): Update.
10163 * ada-valprint.c (ada_value_print_1): Update.
10164 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10165 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10166 just an address. Use evaluate_for_locexpr_baton.
10167 (dwarf2_evaluate_property): Update.
10168 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10169 array_view.
10170 * findvar.c (default_read_var_value): Update.
10171 * gdbtypes.c (compute_variant_fields_inner)
10172 (resolve_dynamic_type_internal): Update.
10173 (resolve_dynamic_type): Change type of valaddr parameter.
10174 * gdbtypes.h (resolve_dynamic_type): Update.
10175 * valarith.c (value_subscripted_rvalue): Update.
10176 * value.c (value_from_contents_and_address): Update.
10177
61122aa9
TT
101782020-04-24 Tom Tromey <tromey@adacore.com>
10179
10180 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10181 "push_initial_value" parameter.
10182 (dwarf2_evaluate_property): Likewise.
10183 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10184
ef83a141
TT
101852020-04-24 Tom Tromey <tromey@adacore.com>
10186
10187 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10188 (variant::matches, compute_variant_fields_recurse)
10189 (compute_variant_fields_inner, compute_variant_fields): New
10190 functions.
10191 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10192 Use resolved_type after type is made.
10193 (operator==): Add new cases.
10194 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10195 (struct discriminant_range, struct variant, struct variant_part):
10196 New.
10197 (union dynamic_prop_data) <variant_parts, original_type>: New
10198 members.
10199 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10200 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10201 constants.
10202 * value.c (unpack_bits_as_long): Now public.
10203 * value.h (unpack_bits_as_long): Declare.
10204
675127ec
TT
102052020-04-24 Tom Tromey <tromey@adacore.com>
10206
10207 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10208 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10209
9852ceef
HD
102102020-04-24 Hannes Domani <ssbssa@yahoo.de>
10211
10212 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10213
7632c6ce
KR
102142020-04-24 Kamil Rytarowski <n54@gmx.com>
10215
10216 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10217 (remove_fork_catchpoint, post_startup_inferior)
10218 (post_attach): Move...
10219 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10220 (remove_fork_catchpoint, post_startup_inferior)
10221 (post_attach): ...here.
10222 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10223 (remove_fork_catchpoint, post_startup_inferior)
10224 (post_attach): Move...
10225 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10226 (remove_fork_catchpoint, post_startup_inferior)
10227 (post_attach): ...here.
10228
7be2bb4f
TT
102292020-04-24 Tom Tromey <tromey@adacore.com>
10230
10231 * nat/windows-nat.h (struct windows_thread_info)
10232 <pc_adjusted>: New member.
10233 * windows-nat.c (windows_fetch_one_register): Check
10234 pc_adjusted.
10235 (windows_nat_target::get_windows_debug_event)
10236 (windows_nat_target::wait): Set pc_adjusted.
10237
f80cb3b4
TV
102382020-04-24 Tom de Vries <tdevries@suse.de>
10239
10240 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10241 Run gdb-add-index inside temp dir.
10242
29514b87
TT
102432020-04-23 Tom Tromey <tromey@adacore.com>
10244
10245 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10246 in loop.
10247
5939967b
LM
102482020-04-23 Luis Machado <luis.machado@linaro.org>
10249
10250 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10251 get_frame_register instead of gdbarch_unwind_pc.
10252
70bc38f5
TV
102532020-04-23 Tom de Vries <tdevries@suse.de>
10254
10255 * symtab.c (lookup_global_symbol): Prefer def over decl.
10256
de82891c
TV
102572020-04-23 Tom de Vries <tdevries@suse.de>
10258
10259 PR symtab/25807
10260 * block.c (best_symbol, better_symbol): Promote to external.
10261 * block.h (best_symbol, better_symbol): Declare.
10262 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10263 decl.
10264
ecc6c606
TT
102652020-04-23 Tom Tromey <tromey@adacore.com>
10266
10267 PR ada/25837:
10268 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10269 "const char *", not a "const std::string &".
10270 <name_and_matcher::operator==>: Update.
10271 * unittests/lookup_name_info-selftests.c: Change type of
10272 "result".
10273
740480b8
TT
102742020-04-23 Tom Tromey <tom@tromey.com>
10275
10276 * inferior.h (iterate_over_inferiors): Don't declare.
10277 * inferior.c (iterate_over_inferiors): Remove.
10278 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10279 Remove.
10280 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10281 use iterate_over_inferiors.
10282 (darwin_resume_inferior_it)
10283 (struct resume_inferior_threads_param)
10284 (darwin_resume_inferior_threads_it): Remove.
10285 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10286
ae3ab1f0
TV
102872020-04-23 Tom de Vries <tdevries@suse.de>
10288
10289 * blockframe.c (find_pc_partial_function): Use
10290 find_pc_sect_compunit_symtab rather than
10291 objfile->sf->qf->find_pc_sect_compunit_symtab.
10292
317d2668
TV
102932020-04-22 Tom de Vries <tdevries@suse.de>
10294
10295 PR symtab/25764
10296 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10297 in psymtabs.
10298
eea9e357
TV
102992020-04-22 Tom de Vries <tdevries@suse.de>
10300
10301 PR symtab/25801
10302 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10303 symtabs.
10304
3d5afab3
TV
103052020-04-22 Tom de Vries <tdevries@suse.de>
10306
10307 PR symtab/25700
10308 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10309 CU if already created.
10310
d43b7a2d
TBA
103112020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10312
10313 * infrun.c (displaced_step_fixup): Switch to the event_thread
10314 before calling displaced_step_restore, not after.
10315
d89edf9b
MM
103162020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10317
10318 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10319 its inferior is not recorded by us.
10320 (record_btrace_target_open): Replace call to
10321 all_non_exited_threads () with call to current_inferior
10322 ()->non_exited_threads ().
10323 (record_btrace_target::stop_recording): Likewise.
10324 (record_btrace_target::close): Likewise.
10325 (record_btrace_target::wait): Likewise.
10326 (record_btrace_target::record_stop_replaying): Likewise.
10327
5897fd49
MM
103282020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10329
10330 * btrace.c (btrace_enable): Throw an error on double enables and
10331 when enabling recording fails.
10332 (btrace_disable): Throw an error if the thread is not recorded.
10333
1a476b6d
MM
103342020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10335
10336 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10337 request if we do not have a thread_info.
10338
4778a5f8
TV
103392020-04-21 Tom de Vries <tdevries@suse.de>
10340
10341 PR gdb/25471
10342 * thread.c
10343 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10344 exception in get_frame_id.
10345
0fa7617d
TT
103462020-04-20 Tom Tromey <tromey@adacore.com>
10347
10348 * python/python.c (struct gdbpy_event): Mark move constructor as
10349 noexcept.
10350 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10351 constructor as noexcept.
10352 * completer.h (struct completion_result): Mark move constructor as
10353 noexcept.
10354 * completer.c (completion_result::completion_result): Use
10355 initialization style. Don't call reset_match_list.
10356
ad23bda0
MS
103572020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10358
10359 * MAINTAINERS (Write After Approval): Add myself.
10360
45e1f031
TT
103612020-04-18 Tom Tromey <tom@tromey.com>
10362
10363 * windows-tdep.c (init_w32_command_list)
10364 (w32_prefix_command_valid): Restore.
10365 (_initialize_windows_tdep): Call init_w32_command_list.
10366
08feed99
TT
103672020-04-18 Tom Tromey <tom@tromey.com>
10368
10369 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10370 * value.c (value_fn_field): Update.
10371 * valops.c (find_function_in_inferior)
10372 (value_allocate_space_in_inferior): Update.
10373 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10374 Update.
10375 * tui/tui-source.c (tui_source_window::set_contents): Update.
10376 * symtab.c (lookup_global_or_static_symbol)
10377 (find_function_start_sal_1, skip_prologue_sal)
10378 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10379 * symmisc.c (dump_msymbols, dump_symtab_1)
10380 (maintenance_print_one_line_table): Update.
10381 * symfile.c (init_entry_point_info, section_is_mapped)
10382 (list_overlays_command, simple_read_overlay_table)
10383 (simple_overlay_update_1): Update.
10384 * stap-probe.c (handle_stap_probe): Update.
10385 * stabsread.c (dbx_init_float_type, define_symbol)
10386 (read_one_struct_field, read_enum_type, read_range_type): Update.
10387 * source.c (info_line_command): Update.
10388 * python/python.c (gdbpy_source_objfile_script)
10389 (gdbpy_execute_objfile_script): Update.
10390 * python/py-type.c (save_objfile_types): Update.
10391 * python/py-objfile.c (py_free_objfile): Update.
10392 * python/py-inferior.c (python_new_objfile): Update.
10393 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10394 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10395 (maintenance_check_psymtabs): Update.
10396 * printcmd.c (info_address_command): Update.
10397 * objfiles.h (struct objfile) <arch>: New method, from
10398 get_objfile_arch.
10399 (get_objfile_arch): Don't declare.
10400 * objfiles.c (get_objfile_arch): Remove.
10401 (filter_overlapping_sections): Update.
10402 * minsyms.c (msymbol_is_function): Update.
10403 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10404 (output_nondebug_symbol): Update.
10405 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10406 (mdebug_expand_psymtab): Update.
10407 * machoread.c (macho_add_oso_symfile): Update.
10408 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10409 Update.
10410 * linux-fork.c (checkpoint_command): Update.
10411 * linespec.c (convert_linespec_to_sals): Update.
10412 * jit.c (finalize_symtab): Update.
10413 * infrun.c (insert_exception_resume_from_probe): Update.
10414 * ia64-tdep.c (ia64_find_unwind_table): Update.
10415 * hppa-tdep.c (internalize_unwinds): Update.
10416 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10417 Update.
10418 * gcore.c (call_target_sbrk): Update.
10419 * elfread.c (record_minimal_symbol, elf_symtab_read)
10420 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10421 (elf_gnu_ifunc_resolve_by_got): Update.
10422 * dwarf2/read.c (create_addrmap_from_index)
10423 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10424 (read_debug_names_from_section)
10425 (process_psymtab_comp_unit_reader, add_partial_symbol)
10426 (add_partial_subprogram, process_full_comp_unit)
10427 (read_file_scope, read_func_scope, read_lexical_block_scope)
10428 (read_call_site_scope, dwarf2_ranges_read)
10429 (dwarf2_record_block_ranges, dwarf2_add_field)
10430 (mark_common_block_symbol_computed, read_tag_pointer_type)
10431 (read_tag_string_type, dwarf2_init_float_type)
10432 (dwarf2_init_complex_target_type, read_base_type)
10433 (partial_die_info::read, partial_die_info::read)
10434 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10435 (dwarf2_fetch_die_loc_sect_off): Update.
10436 * dwarf2/loc.c (dwarf2_find_location_expression)
10437 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10438 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10439 (dwarf2_loc_desc_get_symbol_read_needs)
10440 (locexpr_describe_location_piece, locexpr_describe_location_1)
10441 (loclist_describe_location): Update.
10442 * dwarf2/index-write.c (write_debug_names): Update.
10443 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10444 * dtrace-probe.c (dtrace_process_dof): Update.
10445 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10446 (process_one_symbol): Update.
10447 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10448 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10449 (coff_read_enum_type): Update.
10450 * cli/cli-cmds.c (edit_command, list_command): Update.
10451 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10452 * breakpoint.c (create_overlay_event_breakpoint)
10453 (create_longjmp_master_breakpoint)
10454 (create_std_terminate_master_breakpoint)
10455 (create_exception_master_breakpoint, get_sal_arch): Update.
10456 * block.c (block_gdbarch): Update.
10457 * annotate.c (annotate_source_line): Update.
10458
0743fc83
TT
104592020-04-17 Tom Tromey <tromey@adacore.com>
10460
10461 * auto-load.c (show_auto_load_cmd): Remove.
10462 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10463 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10464 (maintenance_print_arc_command): Remove.
10465 * tui/tui-win.c (tui_command): Remove.
10466 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10467 * tui/tui-layout.c (tui_layout_command): Remove.
10468 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10469 * python/python.c (user_set_python, user_show_python): Remove.
10470 (_initialize_python): Use add_basic_prefix_cmd,
10471 add_show_prefix_cmd.
10472 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10473 (install_gdb_commands): Use add_basic_prefix_cmd,
10474 add_show_prefix_cmd.
10475 (info_guile_command): Remove.
10476 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10477 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10478 add_show_prefix_cmd.
10479 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10480 Remove do_set and do_show parameters.
10481 * cli/cli-style.c (set_style, show_style): Remove.
10482 (_initialize_cli_style): Use add_basic_prefix_cmd,
10483 add_show_prefix_cmd.
10484 (cli_style_option::add_setshow_commands): Remove do_set and
10485 do_show parameters.
10486 (cli_style_option::add_setshow_commands): Use
10487 add_basic_prefix_cmd, add_show_prefix_cmd.
10488 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10489 (set_style_name): Remove.
10490 * cli/cli-dump.c (dump_command, append_command): Remove.
10491 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10492 (tekhex_dump_command, binary_dump_command)
10493 (binary_append_command): Remove.
10494 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10495 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10496 (init_w32_command_list): Remove; move into ...
10497 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10498 * valprint.c (set_print, show_print, set_print_raw)
10499 (show_print_raw): Remove.
10500 (_initialize_valprint): Use add_basic_prefix_cmd,
10501 add_show_prefix_cmd.
10502 * typeprint.c (set_print_type, show_print_type): Remove.
10503 (_initialize_typeprint): Use add_basic_prefix_cmd,
10504 add_show_prefix_cmd.
10505 * record.c (set_record_command, show_record_command): Remove.
10506 (_initialize_record): Use add_basic_prefix_cmd,
10507 add_show_prefix_cmd.
10508 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10509 add_show_prefix_cmd.
10510 (info_command, show_command, set_debug, show_debug): Remove.
10511 * top.h (set_history, show_history): Don't declare.
10512 * top.c (set_history, show_history): Remove.
10513 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10514 (unset_tdesc_cmd): Remove.
10515 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10516 add_show_prefix_cmd.
10517 * symtab.c (info_module_command): Remove.
10518 (_initialize_symtab): Use add_basic_prefix_cmd.
10519 * symfile.c (overlay_command): Remove.
10520 (_initialize_symfile): Use add_basic_prefix_cmd.
10521 * sparc64-tdep.c (info_adi_command): Remove.
10522 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10523 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10524 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10525 add_show_prefix_cmd.
10526 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10527 (_initialize_serial): Use add_basic_prefix_cmd,
10528 add_show_prefix_cmd.
10529 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10530 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10531 add_show_prefix_cmd.
10532 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10533 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10534 add_show_prefix_cmd.
10535 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10536 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10537 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10538 add_show_prefix_cmd.
10539 * remote.c (remote_command, set_remote_cmd): Remove.
10540 (_initialize_remote): Use add_basic_prefix_cmd.
10541 * record-full.c (set_record_full_command)
10542 (show_record_full_command): Remove.
10543 (_initialize_record_full): Use add_basic_prefix_cmd,
10544 add_show_prefix_cmd.
10545 * record-btrace.c (cmd_set_record_btrace)
10546 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10547 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10548 (cmd_show_record_btrace_pt): Remove.
10549 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10550 add_show_prefix_cmd.
10551 * ravenscar-thread.c (set_ravenscar_command)
10552 (show_ravenscar_command): Remove.
10553 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10554 add_show_prefix_cmd.
10555 * mips-tdep.c (show_mips_command, set_mips_command)
10556 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10557 add_show_prefix_cmd.
10558 * maint.c (maintenance_command, maintenance_info_command)
10559 (maintenance_check_command, maintenance_print_command)
10560 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10561 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10562 add_show_prefix_cmd.
10563 (show_per_command_cmd): Remove.
10564 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10565 Remove.
10566 (maintenance_show_test_settings_cmd): Remove.
10567 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10568 add_show_prefix_cmd.
10569 * maint-test-options.c (maintenance_test_options_command):
10570 Remove.
10571 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10572 * macrocmd.c (macro_command): Remove
10573 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10574 * language.c (set_check, show_check): Remove.
10575 (_initialize_language): Use add_basic_prefix_cmd,
10576 add_show_prefix_cmd.
10577 * infcmd.c (unset_command): Remove.
10578 (_initialize_infcmd): Use add_basic_prefix_cmd.
10579 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10580 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10581 add_show_prefix_cmd.
10582 * go32-nat.c (go32_info_dos_command): Remove.
10583 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10584 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10585 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10586 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10587 (_initialize_frame): Use add_basic_prefix_cmd,
10588 add_show_prefix_cmd.
10589 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10590 (_initialize_dcache): Use add_basic_prefix_cmd,
10591 add_show_prefix_cmd.
10592 * cp-support.c (maint_cplus_command): Remove.
10593 (_initialize_cp_support): Use add_basic_prefix_cmd.
10594 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10595 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10596 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10597 add_basic_prefix_cmd, add_show_prefix_cmd.
10598 * breakpoint.c (save_command): Remove.
10599 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10600 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10601 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10602 add_show_prefix_cmd.
10603 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10604 (set_ada_command, show_ada_command): Remove.
10605 (_initialize_ada_language): Use add_basic_prefix_cmd,
10606 add_show_prefix_cmd.
10607 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10608
3557f442
KR
106092020-04-16 Kamil Rytarowski <n54@gmx.com>
10610
10611 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10612 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10613
16197208
SM
106142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10615
10616 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10617 warning messages.
10618
00ac85d3
SM
106192020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10620
10621 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10622 import table is not at beginning of .idata section.
10623
381ce63f
PA
106242020-04-16 Pedro Alves <palves@redhat.com>
10625
10626 * inferior.c (delete_inferior): Use delete operator directly
10627 instead of delete_program_space.
10628 * progspace.c (add_program_space): New, factored out from
10629 program_space::program_space.
10630 (remove_program_space): New, factored out from
10631 delete_program_space.
10632 (program_space::program_space): Remove intro comment. Rewrite.
10633 (program_space::~program_space): Remove intro comment. Call
10634 remove_program_space.
10635 (delete_program_space): Delete.
10636 * progspace.h (program_space::program_space): Make explicit. Move
10637 intro comment here, adjusted.
10638 (program_space::~program_space): Move intro comment here,
10639 adjusted.
10640 (delete_program_space): Remove.
10641
a010605f
TT
106422020-04-16 Tom Tromey <tromey@adacore.com>
10643
10644 * windows-nat.c (windows_nat::handle_access_violation): New
10645 function.
10646 * nat/windows-nat.h (handle_access_violation): Declare.
10647 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10648 windows-nat.c. Call handle_access_violation.
10649
efba5c23
TV
106502020-04-16 Tom de Vries <tdevries@suse.de>
10651
10652 PR symtab/25791
10653 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10654 CUs without psymtab.
10655
97ed802d
KB
106562020-04-16 Kevin Buettner <kevinb@redhat.com>
10657
10658 * python/python.c (do_start_initialization): Don't call
10659 PyEval_InitThreads for Python 3.9 and beyond.
10660
c7d64809
KR
106612020-04-15 Kamil Rytarowski <n54@gmx.com>
10662
10663 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10664 thread functions.
10665 (obsd_nat_target::wait): Likewise.
10666
ce127a96
TT
106672020-04-15 Tom Tromey <tromey@adacore.com>
10668
10669 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10670 (DEBUG_EXCEPT): Use debug_printf.
10671
99f1bc6a
AB
106722020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10673
10674 * completer.c (class completion_tracker::completion_hash_entry)
10675 <hash_name>: New member function.
10676 (completion_tracker::discard_completions): New callback to hash a
10677 completion_hash_entry, pass this to htab_create_alloc.
10678
a0e9b532
JT
106792016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10680
10681 * windows-nat.c (windows_make_so): Warn rather than stopping with
10682 an error if realpath() fails.
10683
06ca5dd4
KR
106842020-04-14 Kamil Rytarowski <n54@gmx.com>
10685
10686 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10687 (nbsd_nat_target::info_proc): Add do_status.
10688
194d088f
TV
106892020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10690 Tom de Vries <tdevries@suse.de>
10691
10692 PR symtab/25718
10693 * psympriv.h (struct partial_symtab::read_symtab)
10694 (struct partial_symtab::expand_psymtab)
10695 (struct partial_symtab::read_dependencies): Update comments.
10696 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10697 read_symtab for includer.
10698 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10699 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10700 (struct dwarf2_include_psymtab::m_readin): Remove.
10701 (struct dwarf2_include_psymtab::includer): New member function.
10702 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10703
c1a66c06
TV
107042020-04-14 Tom de Vries <tdevries@suse.de>
10705
10706 PR symtab/25720
10707 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10708 with NULL symbol_matcher and lookup_name.
10709 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10710 and lookup_name.
10711 * dwarf2/read.c (dw2_expand_symtabs_matching)
10712 (dw2_debug_names_expand_symtabs_matching): Same.
10713 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10714 Make lookup_name a pointer. Update comment.
10715 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10716 lookup_name being a pointer.
10717 * symfile.c (expand_symtabs_matching): Same.
10718 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10719 * linespec.c (iterate_over_all_matching_symtabs): Same.
10720
400b5eca
TT
107212020-04-13 Tom Tromey <tom@tromey.com>
10722
10723 * run-on-main-thread.c: Update include.
10724 * unittests/main-thread-selftests.c: Update include.
10725 * tui/tui-win.c: Update include.
10726 * tui/tui-io.c: Update include.
10727 * tui/tui-interp.c: Update include.
10728 * tui/tui-hooks.c: Update include.
10729 * top.h: Update include.
10730 * top.c: Update include.
10731 * ser-base.c: Update include.
10732 * remote.c: Update include.
10733 * remote-notif.c: Update include.
10734 * remote-fileio.c: Update include.
10735 * record-full.c: Update include.
10736 * record-btrace.c: Update include.
10737 * python/python.c: Update include.
10738 * posix-hdep.c: Update include.
10739 * mingw-hdep.c: Update include.
10740 * mi/mi-main.c: Update include.
10741 * mi/mi-interp.c: Update include.
10742 * main.c: Update include.
10743 * linux-nat.c: Update include.
10744 * interps.c: Update include.
10745 * infrun.c: Update include.
10746 * inf-loop.c: Update include.
10747 * event-top.c: Update include.
10748 * event-loop.c: Move to ../gdbsupport/.
10749 * event-loop.h: Move to ../gdbsupport/.
10750 * async-event.h: Update include.
10751 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10752
93b54c8e
TT
107532020-04-13 Tom Tromey <tom@tromey.com>
10754
10755 * tui/tui-win.c: Include async-event.h.
10756 * remote.c: Include async-event.h.
10757 * remote-notif.c: Include async-event.h.
10758 * record-full.c: Include async-event.h.
10759 * record-btrace.c: Include async-event.h.
10760 * infrun.c: Include async-event.h.
10761 * event-top.c: Include async-event.h.
10762 * event-loop.h: Move some declarations to async-event.h.
10763 * event-loop.c: Don't include ser-event.h or top.h. Move some
10764 code to async-event.c.
10765 * async-event.h: New file.
10766 * async-event.c: New file.
10767 * Makefile.in (COMMON_SFILES): Add async-event.c.
10768 (HFILES_NO_SRCDIR): Add async-event.h.
10769
c1cd3163
TT
107702020-04-13 Tom Tromey <tom@tromey.com>
10771
10772 * utils.c (flush_streams): New function.
10773 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10774
29f2bf4f
TT
107752020-04-13 Tom Tromey <tom@tromey.com>
10776
10777 * event-loop.c (handle_file_event): Use warning, not
10778 printf_unfiltered.
10779
98029d02
TT
107802020-04-13 Tom Tromey <tom@tromey.com>
10781
10782 * event-loop.c: Include <chrono>.
10783
06cc9596
TT
107842020-04-13 Tom Tromey <tom@tromey.com>
10785
10786 * gdb_select.h: Move to ../gdbsupport/.
10787 * event-loop.c: Update include path.
10788 * top.c: Update include path.
10789 * ser-base.c: Update include path.
10790 * ui-file.c: Update include path.
10791 * ser-tcp.c: Update include path.
10792 * guile/scm-ports.c: Update include path.
10793 * posix-hdep.c: Update include path.
10794 * ser-unix.c: Update include path.
10795 * gdb_usleep.c: Update include path.
10796 * mingw-hdep.c: Update include path.
10797 * inflow.c: Update include path.
10798 * infrun.c: Update include path.
10799 * event-top.c: Update include path.
10800
8ae8e197
TT
108012020-04-13 Tom Tromey <tom@tromey.com>
10802
10803 * configure: Rebuild.
10804 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10805
58cf28e8
TT
108062020-04-13 Tom Tromey <tom@tromey.com>
10807
10808 * event-loop.h (start_event_loop): Don't declare.
10809 * event-loop.c (start_event_loop): Move...
10810 * main.c (start_event_loop): ...here. Now static.
10811
b7f999ae
SDJ
108122020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10813
10814 * MAINTAINERS: Update my email address.
10815
1085dfd4
KR
108162020-04-12 Kamil Rytarowski <n54@gmx.com>
10817
10818 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10819 IP_ALL.
10820
49d1d1f5
KR
108212020-04-12 Kamil Rytarowski <n54@gmx.com>
10822
10823 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10824 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10825
b4848d2a
KR
108262020-04-12 Kamil Rytarowski <n54@gmx.com>
10827
10828 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10829 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10830
51c133d5
KR
108312020-04-12 Kamil Rytarowski <n54@gmx.com>
10832
10833 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10834
54b8cbd0
KR
108352020-04-11 Kamil Rytarowski <n54@gmx.com>
10836
10837 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10838 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10839 (nbsd_nat_target::info_proc): New functions.
10840 * nbsd-nat.c (kinfo_get_vmmap): New function.
10841 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10842 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10843 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10844 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10845 functions.
10846 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10847 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10848 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10849 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10850 (KINFO_VME_FLAG_GROWS_DOWN): New.
10851
cf83625d
AS
108522020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10853
10854 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10855 bit shift.
10856
0c4311ab
TT
108572020-04-10 Tom Tromey <tromey@adacore.com>
10858
10859 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10860
3e65b3e9
TT
108612020-04-10 Tom Tromey <tromey@adacore.com>
10862
10863 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10864 separate debug files.
10865
13302e95
HD
108662020-04-10 Hannes Domani <ssbssa@yahoo.de>
10867
10868 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10869 Move to...
10870 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10871 ... here.
10872 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10873 Check for STATUS_WX86_BREAKPOINT.
10874 (windows_nat_target::wait): Same.
10875
bdfc1e8a
TV
108762020-04-10 Tom de Vries <tdevries@suse.de>
10877
10878 PR cli/25808
10879 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10880
f4460aec
SM
108812020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10882
10883 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10884 (Write After Approval): Remove Tom de Vries.
10885
a25198bb
BE
108862020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10887
10888 revert partially:
10889 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10890
aac66a4c
SM
10891 * buildsym.c (record_line): Fix undefined behavior and preserve
10892 lines at eof.
a25198bb 10893
206c98a6
KR
108942020-04-09 Kamil Rytarowski <n54@gmx.com>
10895
10896 * auxv.h (svr4_auxv_parse): New.
10897 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10898 and generic_auxv_parse.
10899 (svr4_auxv_parse): Add.
10900 * obsd-tdep.c: Include "auxv.h".
10901 (obsd_auxv_parse): Remove.
10902 (obsd_init_abi): Remove comment.
10903 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10904 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10905 * nbsd-tdep.c: Include "auxv.h".
10906 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10907
71fbdbaf
TT
109082020-04-08 Tom Tromey <tromey@adacore.com>
10909
10910 * nat/windows-nat.h (last_wait_event): Don't declare.
10911 (wait_for_debug_event): Update comment.
10912 * nat/windows-nat.c (last_wait_event): Now static.
10913
2c1d95e8
TT
109142020-04-08 Tom Tromey <tromey@adacore.com>
10915
10916 * windows-nat.c (wait_for_debug_event): Move to
10917 nat/windows-nat.c.
10918 * nat/windows-nat.h (wait_for_debug_event): Declare.
10919 * nat/windows-nat.c (wait_for_debug_event): Move from
10920 windows-nat.c. No longer static.
10921
d2977bc4
TT
109222020-04-08 Tom Tromey <tromey@adacore.com>
10923
10924 * windows-nat.c (get_windows_debug_event): Use
10925 fetch_pending_stop.
10926 * nat/windows-nat.h (fetch_pending_stop): Declare.
10927 * nat/windows-nat.c (fetch_pending_stop): New function.
10928
e758e19c
TT
109292020-04-08 Tom Tromey <tromey@adacore.com>
10930
10931 * windows-nat.c (windows_continue): Use matching_pending_stop and
10932 continue_last_debug_event.
10933 * nat/windows-nat.h (matching_pending_stop)
10934 (continue_last_debug_event): Declare.
10935 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10936 (matching_pending_stop, continue_last_debug_event): New
10937 functions.
10938
8d30e395
TT
109392020-04-08 Tom Tromey <tromey@adacore.com>
10940
10941 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10942 (handle_exception_result): Move to nat/windows-nat.h.
10943 (DEBUG_EXCEPTION_SIMPLE): Remove.
10944 (windows_nat::handle_ms_vc_exception): New function.
10945 (handle_exception): Move to nat/windows-nat.c.
10946 (get_windows_debug_event): Update.
10947 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10948 nat/windows-nat.c.
10949 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10950 (handle_exception_result): Move from windows-nat.c.
10951 (handle_exception): Declare.
10952 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10953 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10954 windows-nat.c.
10955
29de418d
TT
109562020-04-08 Tom Tromey <tromey@adacore.com>
10957
10958 * windows-nat.c (exception_count, event_count): Remove.
10959 (handle_exception, get_windows_debug_event)
10960 (do_initial_windows_stuff): Update.
10961
a816ba18
TT
109622020-04-08 Tom Tromey <tromey@adacore.com>
10963
10964 * windows-nat.c (windows_nat::handle_load_dll)
10965 (windows_nat::handle_unload_dll): Rename. No longer static.
10966 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10967 Declare.
10968
a00caa12
TT
109692020-04-08 Tom Tromey <tromey@adacore.com>
10970
10971 * complaints.h (stop_whining): Declare at top-level.
10972 (complaint): Don't declare stop_whining.
10973
d41b524f
TT
109742020-04-08 Tom Tromey <tromey@adacore.com>
10975
10976 * windows-nat.c (windows_nat::handle_output_debug_string):
10977 Rename. No longer static.
10978 * nat/windows-nat.h (handle_output_debug_string): Declare.
10979
3c76026d
TT
109802020-04-08 Tom Tromey <tromey@adacore.com>
10981
10982 * windows-nat.c (current_process_handle, current_process_id)
10983 (main_thread_id, last_sig, current_event, last_wait_event)
10984 (current_windows_thread, desired_stop_thread_id, pending_stops)
10985 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10986 (display_selectors, fake_create_process)
10987 (get_windows_debug_event): Update.
10988 * nat/windows-nat.h (current_process_handle, current_process_id)
10989 (main_thread_id, last_sig, current_event, last_wait_event)
10990 (current_windows_thread, desired_stop_thread_id, pending_stops)
10991 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10992 * nat/windows-nat.c (current_process_handle, current_process_id)
10993 (main_thread_id, last_sig, current_event, last_wait_event)
10994 (current_windows_thread, desired_stop_thread_id, pending_stops)
10995 (siginfo_er): New globals. Move from windows-nat.c.
10996
9d8679cc
TT
109972020-04-08 Tom Tromey <tromey@adacore.com>
10998
10999 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11000 (handle_load_dll): Update.
11001 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11002
28688adf
TT
110032020-04-08 Tom Tromey <tromey@adacore.com>
11004
11005 * windows-nat.c (enum thread_disposition_type): Move to
11006 nat/windows-nat.h.
11007 (windows_nat::thread_rec): Rename from thread_rec. No longer
11008 static.
11009 (windows_add_thread, windows_nat_target::fetch_registers)
11010 (windows_nat_target::store_registers, handle_exception)
11011 (windows_nat_target::resume, get_windows_debug_event)
11012 (windows_nat_target::get_tib_address)
11013 (windows_nat_target::thread_name)
11014 (windows_nat_target::thread_alive): Update.
11015 * nat/windows-nat.h (enum thread_disposition_type): Move from
11016 windows-nat.c.
11017 (thread_rec): Declare.
11018
4834dad0
TT
110192020-04-08 Tom Tromey <tromey@adacore.com>
11020
11021 * windows-nat.c: Add "using namespace".
11022 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11023 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11024
65bafd5b
TT
110252020-04-08 Tom Tromey <tromey@adacore.com>
11026
11027 * nat/windows-nat.h (struct windows_thread_info): Declare
11028 destructor.
11029 * nat/windows-nat.c (~windows_thread_info): New.
11030
0a4afda3
TT
110312020-04-08 Tom Tromey <tromey@adacore.com>
11032
11033 PR gdb/22992
11034 * windows-nat.c (current_event): Update comment.
11035 (last_wait_event, desired_stop_thread_id): New globals.
11036 (struct pending_stop): New.
11037 (pending_stops): New global.
11038 (windows_nat_target) <stopped_by_sw_breakpoint>
11039 <supports_stopped_by_sw_breakpoint>: New methods.
11040 (windows_fetch_one_register): Add assertions. Adjust PC.
11041 (windows_continue): Handle pending stops. Suspend other threads
11042 when stepping. Use last_wait_event
11043 (wait_for_debug_event): New function.
11044 (get_windows_debug_event): Use wait_for_debug_event. Handle
11045 pending stops. Queue spurious stops.
11046 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11047 (windows_nat_target::kill): Use wait_for_debug_event.
11048 * nat/windows-nat.h (struct windows_thread_info)
11049 <stopped_at_software_breakpoint>: New field.
11050 * nat/windows-nat.c (windows_thread_info::resume): Clear
11051 stopped_at_software_breakpoint.
11052
8e61ebec
TT
110532020-04-08 Tom Tromey <tromey@adacore.com>
11054
11055 * windows-nat.c (enum thread_disposition_type): New.
11056 (thread_rec): Replace "get_context" parameter with "disposition";
11057 change type.
11058 (windows_add_thread, windows_nat_target::fetch_registers)
11059 (windows_nat_target::store_registers, handle_exception)
11060 (windows_nat_target::resume, get_windows_debug_event)
11061 (windows_nat_target::get_tib_address)
11062 (windows_nat_target::thread_name)
11063 (windows_nat_target::thread_alive): Update.
11064
98a03287
TT
110652020-04-08 Tom Tromey <tromey@adacore.com>
11066
11067 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11068 (windows_continue): Use windows_continue::resume.
11069 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11070 resume>: Declare new methods.
11071 * nat/windows-nat.c: New file.
11072 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11073
7c7411bc
TT
110742020-04-08 Tom Tromey <tromey@adacore.com>
11075
11076 * windows-nat.c (windows_add_thread, windows_delete_thread)
11077 (windows_nat_target::fetch_registers)
11078 (windows_nat_target::store_registers, fake_create_process)
11079 (windows_nat_target::resume, windows_nat_target::resume)
11080 (get_windows_debug_event, windows_nat_target::wait)
11081 (windows_nat_target::pid_to_str)
11082 (windows_nat_target::get_tib_address)
11083 (windows_nat_target::get_ada_task_ptid)
11084 (windows_nat_target::thread_name)
11085 (windows_nat_target::thread_alive): Use lwp, not tid.
11086
2950fdf7
TT
110872020-04-08 Tom Tromey <tromey@adacore.com>
11088
11089 * windows-nat.c (handle_exception)
11090 (windows_nat_target::thread_name): Update.
11091 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11092 <name>: Now unique_xmalloc_ptr.
11093
62fe396b
TT
110942020-04-08 Tom Tromey <tromey@adacore.com>
11095
11096 * windows-nat.c (thread_rec)
11097 (windows_nat_target::fetch_registers): Update.
11098 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11099 Update comment.
11100 <debug_registers_changed, reload_context>: Now bool.
11101
e9534bd2
TT
111022020-04-08 Tom Tromey <tromey@adacore.com>
11103
11104 * windows-nat.c (windows_add_thread): Use new.
11105 (windows_init_thread_list, windows_delete_thread): Use delete.
11106 (get_windows_debug_event): Update.
11107 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11108 destructor, and initializers.
11109
ae1f8880
TT
111102020-04-08 Tom Tromey <tromey@adacore.com>
11111
11112 * windows-nat.c (struct windows_thread_info): Remove.
11113 * nat/windows-nat.h: New file.
11114
55a1e039
TT
111152020-04-08 Tom Tromey <tromey@adacore.com>
11116
11117 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11118 (thread_rec, windows_add_thread, windows_delete_thread)
11119 (windows_continue): Update.
11120
93366324
TT
111212020-04-08 Tom Tromey <tromey@adacore.com>
11122
11123 * windows-nat.c (struct windows_thread_info): Remove typedef.
11124 (thread_head): Remove.
11125 (thread_list): New global.
11126 (thread_rec, windows_add_thread, windows_init_thread_list)
11127 (windows_delete_thread, windows_continue): Update.
11128
0f2265e2
SM
111292020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11130
11131 * windows-tdep.h (windows_init_abi): Add comment.
11132 (cygwin_init_abi): New declaration.
11133 * windows-tdep.c: Split signal enumeration in two, one for
11134 Windows and one for Cygwin.
11135 (windows_gdb_signal_to_target): Only deal with signal of the
11136 Windows OS ABI.
11137 (cygwin_gdb_signal_to_target): New function.
11138 (windows_init_abi): Rename to windows_init_abi_common, don't set
11139 gdb_signal_to_target gdbarch method. Add new new function with
11140 this name.
11141 (cygwin_init_abi): New function.
11142 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11143 comment. Don't call windows_init_abi.
11144 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11145 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11146 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11147 i386_windows_init_abi_common, don't call windows_init_abi. Add
11148 a new function of this name.
11149 (i386_cygwin_init_abi): New function.
11150 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11151 OS ABI Cygwin.
11152
3810f182
SM
111532020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11154
11155 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11156 parameter.c.
11157 (dwarf2_read_gdb_index): Update.
11158
063f8e80
KR
111592020-04-07 Kamil Rytarowski <n54@gmx.com>
11160
11161 * nbsd-tdep.c: Include "objfiles.h".
11162 (nbsd_skip_solib_resolver): New.
11163 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11164
85a9510c 111652020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11166
11167 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11168 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11169 with DW_LLE_base_addressx are being emitted in DWARFv5.
11170 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11171 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11172 unsigned integer.
11173
9fc3eaae 111742020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11175
11176 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11177 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11178 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11179 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11180 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11181 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11182 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11183
11184
41144253 111852020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11186
11187 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11188 (read_loclist_index): New function definition.
11189 (lookup_loclist_base): New function definition.
11190 (read_loclist_header): New function definition.
11191 (dwarf2_cu): Add loclist_base and loclist_header field.
11192 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11193 (read_full_die_1): Read the value of DW_AT_loclists_base.
11194 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11195 (read_attribute_value): Handle DW_FORM_loclistx.
11196 (skip_one_die): Handle DW_FORM_loclistx.
11197 (loclist_header): New structure declaration.
11198 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11199
9f4e76a4
SM
112002020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11201
11202 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11203 constructor. Remove `addr` parameter from other constructor and
11204 add `per_cu` parameter.
11205 * dwarf2/read.c (create_partial_symtab): Update.
11206
25c11aca
TV
112072020-04-07 Tom de Vries <tdevries@suse.de>
11208
11209 PR symtab/25796
11210 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11211 (partial_die_info::fixup): Inherit has_const_value.
11212
5707e24b
TV
112132020-04-07 Tom de Vries <tdevries@suse.de>
11214
11215 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11216 symbols without address.
11217
05f00e22
KR
112182020-04-06 Kamil Rytarowski <n54@gmx.com>
11219
11220 * nbsd-nat.h (struct thread_info): Add forward declaration.
11221 (nbsd_nat_target::thread_alive): Add.
11222 (nbsd_nat_target::thread_name): Likewise.
11223 (nbsd_nat_target::update_thread_list): Likewise.
11224 (update_thread_list::post_attach): Likewise.
11225 (post_attach::pid_to_str): Likewise.
11226 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11227 (nbsd_thread_lister): Add.
11228 (nbsd_nat_target::thread_alive): Likewise.
11229 (nbsd_nat_target::thread_name): Likewise.
11230 (nbsd_add_threads): Likewise.
11231 (update_thread_list::post_attach): Likewise.
11232 (nbsd_nat_target::update_thread_list): Likewise.
11233 (post_attach::pid_to_str): Likewise.
11234
6ee448cc
TT
112352020-04-06 Tom Tromey <tromey@adacore.com>
11236
11237 * ada-valprint.c (print_variant_part): Extract the variant field.
11238 (print_field_values): Use the field as the outer value when
11239 recursing.
11240
dea34e8c
TT
112412020-04-06 Tom Tromey <tromey@adacore.com>
11242
11243 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11244 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11245 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11246 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11247 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11248
93689ce9
TT
112492020-04-06 Tom Tromey <tromey@adacore.com>
11250
11251 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11252 TYPE_CODE_ERROR.
11253
79743962
KR
112542020-04-06 Kamil Rytarowski <n54@gmx.com>
11255
11256 * nbsd-tdep.c: Include "gdbarch.h".
11257 Define enum with NetBSD signal numbers.
11258 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11259 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11260 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11261 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11262 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11263 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11264 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11265 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11266 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11267 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11268 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11269 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11270
9e7c9a03
HD
112712020-04-03 Hannes Domani <ssbssa@yahoo.de>
11272
11273 PR gdb/25325
11274 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11275
d9e49b61
TT
112762020-04-03 Tom Tromey <tromey@adacore.com>
11277
11278 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11279 Read constant block.
11280
e0fc5c3f
SM
112812020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11282
11283 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11284 (gdb_bfd_get_full_section_contents): New declaration.
11285 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11286 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11287 gdb_bfd_get_full_section_contents.
11288
e2ff18a0
SM
112892020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11290
11291 * exec.c (build_section_table): Replace internal_error with
11292 gdb_assert.
11293 (section_table_xfer_memory_partial): Likewise.
11294 * mdebugread.c (parse_partial_symbols): Likewise.
11295 * psymtab.c (lookup_partial_symbol): Likewise.
11296 * utils.c (wrap_here): Likewise.
11297
0830d301
TT
112982020-04-02 Tom Tromey <tromey@adacore.com>
11299
11300 * f-lang.c (build_fortran_types): Use arch_type to initialize
11301 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11302
e7da7f8f
TT
113032020-04-02 Tom Tromey <tromey@adacore.com>
11304
11305 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11306 of attributes.
11307
c90d28ac
AB
113082020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11309 Bernd Edlinger <bernd.edlinger@hotmail.de>
11310 Tom Tromey <tromey@adacore.com>
11311
11312 * buildsym.c (buildsym_compunit::record_line): Remove
11313 deduplication code.
11314
1aa98955
TV
113152020-04-02 Tom de Vries <tdevries@suse.de>
11316
11317 PR ada/24671
11318 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11319
d3214198
TV
113202020-04-02 Tom de Vries <tdevries@suse.de>
11321
11322 * dwarf2/read.c (dwarf2_gdb_index_functions,
11323 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11324 NULL.
11325 * psymtab.c (psym_lookup_global_symbol_language): New function.
11326 (psym_functions): Init psym_lookup_global_symbol_language with
11327 psym_lookup_global_symbol_language.
11328 * symfile-debug.c (debug_sym_quick_functions): Init
11329 lookup_global_symbol_language with NULL.
11330 * symfile.c (set_initial_language): Remove fixme comment.
11331 * symfile.h (struct quick_symbol_functions): Add
11332 lookup_global_symbol_language.
11333 * symtab.c (find_quick_global_symbol_language): New function.
11334 (find_main_name): Use find_quick_global_symbol_language.
11335
2836752f
SM
113362020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11337
11338 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11339
64dc2d4b
BE
113402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11341
11342 * buildsym.c (record_line): Fix undefined behavior and preserve
11343 lines at eof.
11344
bbe3dc41
BE
113452020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11346
11347 * buildsym.c (record_line): Fix the resizing condition.
11348
6b4a335b
TT
113492020-04-01 Tom Tromey <tom@tromey.com>
11350
11351 * value.h (value_literal_complex): Add comment.
11352 * valops.c (value_literal_complex): Refer to value.h.
11353
3638a098
TT
113542020-04-01 Tom Tromey <tom@tromey.com>
11355
11356 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11357 (scalar_type): New rule, from typebase.
11358 (typebase): Use scalar_type. Recognize complex types.
11359 (field_name): Handle FLOAT_KEYWORD.
11360 (ident_tokens): Add _Complex and __complex__.
11361
c34e8714
TT
113622020-04-01 Tom Tromey <tom@tromey.com>
11363
11364 PR exp/25299:
11365 * valarith.c (promotion_type, complex_binop): New functions.
11366 (scalar_binop): Handle complex numbers. Use promotion_type.
11367 (value_pos, value_neg, value_complement): Handle complex numbers.
11368
fa649bb7
TT
113692020-04-01 Tom Tromey <tom@tromey.com>
11370
11371 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11372 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11373 (parse_number): Handle complex numbers.
11374
981c08ce
TT
113752020-04-01 Tom Tromey <tom@tromey.com>
11376
11377 * c-valprint.c (c_decorations): Change complex suffix to "i".
11378
4c99290d
TT
113792020-04-01 Tom Tromey <tom@tromey.com>
11380
11381 * valprint.c (generic_value_print_complex): Use accessors.
11382 * value.h (value_real_part, value_imaginary_part): Declare.
11383 * valops.c (value_real_part, value_imaginary_part): New
11384 functions.
11385 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11386
5b930b45
TT
113872020-04-01 Tom Tromey <tom@tromey.com>
11388
11389 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11390 (read_range_type): Update.
11391 * mdebugread.c (basic_type): Update.
11392 * go-lang.c (build_go_types): Use init_complex_type.
11393 * gdbtypes.h (struct main_type) <complex_type>: New member.
11394 (init_complex_type): Update.
11395 (arch_complex_type): Don't declare.
11396 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11397 Make name if none given. Use alloc_type_copy. Look for cached
11398 complex type.
11399 (arch_complex_type): Remove.
11400 (gdbtypes_post_init): Use init_complex_type.
11401 * f-lang.c (build_fortran_types): Use init_complex_type.
11402 * dwarf2/read.c (read_base_type): Update.
11403 * d-lang.c (build_d_types): Use init_complex_type.
11404 * ctfread.c (read_base_type): Update.
11405
53cccef1
TBA
114062020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11407
11408 * infrun.c (stop_all_threads): Update assertion, plus when
11409 stopping threads, take into account that we might be trying
11410 to stop an all-stop target.
11411 (stop_waiting): Call 'stop_all_threads' if there exists a
11412 non-stop target.
11413
a0714d30
TBA
114142020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11415
11416 * target.h (exists_non_stop_target): New function declaration.
11417 * target.c (exists_non_stop_target): New function.
11418
60e22c1e
HD
114192020-04-01 Hannes Domani <ssbssa@yahoo.de>
11420
11421 PR gdb/24789
11422 * eval.c (is_integral_or_integral_reference): New function.
11423 (evaluate_subexp_standard): Allow integer references in
11424 pointer arithmetic.
11425
e139a727
TBA
114262020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11427
11428 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11429 check for no ptid in the stop reply when the target is non-stop.
11430
e0802d59
TT
114312020-04-01 Tom Tromey <tromey@adacore.com>
11432
11433 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11434 "name" parameter to rvalue reference. Initialize m_name_holder.
11435 <lookup_name_info>: New overloads.
11436 <name>: Return gdb::string_view.
11437 <c_str>: New method.
11438 <make_ignore_params>: Update.
11439 <search_name_hash>: Update.
11440 <language_lookup_name>: Return const char *.
11441 <m_name>: Change type.
11442 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11443 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11444 (lookup_name_info::match_any): Update.
11445 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11446 Update.
11447 * minsyms.c (linkage_name_str): Update.
11448 * language.c (default_symbol_name_matcher): Update.
11449 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11450 Update.
11451 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11452 (ada_lookup_name_info::ada_lookup_name_info): Update.
11453 (literal_symbol_name_matcher): Update.
11454
8c072cb6
TT
114552020-04-01 Tom Tromey <tromey@adacore.com>
11456
11457 * psymtab.c (psymtab_search_name): Remove function.
11458 (psym_lookup_symbol): Create search name and lookup name here.
11459 (lookup_partial_symbol): Remove "name" parameter; add
11460 lookup_name.
11461 (psym_expand_symtabs_for_function): Update.
11462
6f29a534
TT
114632020-03-31 Joel Jones <joelkevinjones@gmail.com>
11464
11465 PR tui/25597:
11466 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11467
af62665e
TT
114682020-03-31 Tom Tromey <tromey@adacore.com>
11469
11470 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11471 memcpy.
11472
d1a89da5
NC
114732020-03-30 Nelson Chu <nelson.chu@sifive.com>
11474
11475 * features/riscv/32bit-csr.xml: Regenerated.
11476 * features/riscv/64bit-csr.xml: Regenerated.
11477
d8af9068
TT
114782020-03-30 Tom Tromey <tromey@adacore.com>
11479
11480 * ada-valprint.c (print_variant_part): Update.
11481 * ada-lang.h (ada_which_variant_applies): Update.
11482 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11483 outer_valaddr parameters; replace with "outer" value parameter.
11484 (to_fixed_variant_branch_type): Update.
11485
227c0bf4
PFC
114862020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11487
11488 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11489 <list>. Remove inclusion of observable.h.
11490 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11491 (struct arch_lwp_info): New struct.
11492 (class ppc_linux_dreg_interface): New class.
11493 (struct ppc_linux_process_info): New struct.
11494 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11495 <low_new_clone, low_forget_process, low_prepare_to_resume>
11496 <copy_thread_dreg_state, mark_thread_stale>
11497 <mark_debug_registers_changed, register_hw_breakpoint>
11498 <clear_hw_breakpoint, register_wp, clear_wp>
11499 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11500 <num_memory_accesses, get_trigger_type>
11501 <create_watchpoint_request, hwdebug_point_cmp>
11502 <init_arch_lwp_info, get_arch_lwp_info>
11503 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11504 methods.
11505 <struct ptid_hash>: New inner struct.
11506 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11507 members.
11508 (saved_dabr_value, hwdebug_info, max_slots_number)
11509 (struct hw_break_tuple, struct thread_points, ppc_threads)
11510 (have_ptrace_hwdebug_interface)
11511 (hwdebug_find_thread_points_by_tid)
11512 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11513 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11514 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11515 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11516 use m_dreg_interface.
11517 (hwdebug_point_cmp): Change to...
11518 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11519 reference arguments instead of pointers.
11520 (ppc_linux_nat_target::ranged_break_num_registers): Use
11521 m_dreg_interface.
11522 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11523 m_dreg_interface. Call register_hw_breakpoint.
11524 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11525 m_dreg_interface. Call clear_hw_breakpoint.
11526 (get_trigger_type): Change to...
11527 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11528 comment.
11529 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11530 use m_dreg_interface. Call register_hw_breakpoint.
11531 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11532 use m_dreg_interface. Call clear_hw_breakpoint.
11533 (can_use_watchpoint_cond_accel): Change to...
11534 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11535 method. Update comment, use m_dreg_interface and
11536 m_process_info.
11537 (calculate_dvc): Change to...
11538 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11539 m_dreg_interface.
11540 (num_memory_accesses): Change to...
11541 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11542 (check_condition): Change to...
11543 (ppc_linux_nat_target::check_condition): ...this method.
11544 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11545 comment, use m_dreg_interface.
11546 (create_watchpoint_request): Change to...
11547 (ppc_linux_nat_target::create_watchpoint_request): ...this
11548 method. Use m_dreg_interface.
11549 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11550 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11551 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11552 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11553 (ppc_linux_nat_target::low_forget_process)
11554 (ppc_linux_nat_target::low_new_fork)
11555 (ppc_linux_nat_target::low_new_clone)
11556 (ppc_linux_nat_target::low_delete_thread)
11557 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11558 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11559 only call mark_thread_stale.
11560 (ppc_linux_thread_exit): Remove.
11561 (ppc_linux_nat_target::stopped_data_address): Change to...
11562 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11563 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11564 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11565 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11566 comment. Call low_stopped_data_address.
11567 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11568 m_dreg_interface.
11569 (ppc_linux_nat_target::masked_watch_num_registers): Use
11570 m_dreg_interface.
11571 (ppc_linux_nat_target::copy_thread_dreg_state)
11572 (ppc_linux_nat_target::mark_thread_stale)
11573 (ppc_linux_nat_target::mark_debug_registers_changed)
11574 (ppc_linux_nat_target::register_hw_breakpoint)
11575 (ppc_linux_nat_target::clear_hw_breakpoint)
11576 (ppc_linux_nat_target::register_wp)
11577 (ppc_linux_nat_target::clear_wp)
11578 (ppc_linux_nat_target::init_arch_lwp_info)
11579 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11580 (_initialize_ppc_linux_nat): Remove observer callback.
11581
4db10d8f
PFC
115822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11583
11584 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11585 (ppc_linux_nat_target::auxv_parse)
11586 (ppc_linux_nat_target::read_description)
11587 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11588 Move up.
11589
1310c1b0
PFC
115902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11591
11592 * linux-nat.h (low_new_clone): New method.
11593 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11594
69b037c3
SM
115952020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11596
11597 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11598 (dbx_expand_psymtab): ... this.
11599 (start_psymtab): Update.
11600 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11601 (mdebug_expand_psymtab): ... this.
11602 (parse_partial_symbols): Update.
11603 (new_psymtab): Update.
11604 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11605 (xcoff_expand_psymtab): ... this.
11606 (xcoff_start_psymtab): Update.
11607
48993951
SM
116082020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11609
11610 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11611 <expand_dependencies>: ... this.
11612 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11613 (partial_symtab::expand_dependencies): ... this.
11614 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11615 Update.
11616 (dwarf2_psymtab::expand_psymtab): Update.
11617 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11618 * mdebugread.c (psymtab_to_symtab_1): Update.
11619 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11620
3ad83046
SM
116212020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11622
11623 * psympriv.h (discard_psymtab): Remove.
11624 * dbxread.c (dbx_end_psymtab): Update.
11625 * xcoffread.c (xcoff_end_psymtab): Update.
11626
4d1b9ab6
TT
116272020-03-28 Tom Tromey <tom@tromey.com>
11628
11629 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11630 comment.
11631
f1749218
TT
116322020-03-28 Tom Tromey <tom@tromey.com>
11633
11634 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11635
ebea7626
HD
116362020-03-27 Hannes Domani <ssbssa@yahoo.de>
11637
11638 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11639
a879b4d5
JB
116402020-03-26 John Baldwin <jhb@FreeBSD.org>
11641
11642 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11643
0826b30a
TT
116442020-03-26 Tom Tromey <tom@tromey.com>
11645
11646 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11647 (mark_common_block_symbol_computed, read_tag_string_type)
11648 (attr_to_dynamic_prop, read_subrange_type): Update.
11649 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11650 to be methods on struct attribute.
11651 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11652 (read_call_site_scope, partial_die_info::read)
11653 (partial_die_info::read, lookup_die_type, follow_die_ref):
11654 Update.
11655 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11656 from dwarf2_get_ref_die_offset.
11657 (attribute::constant_value): New method, from
11658 dwarf2_get_attr_constant_value.
11659 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11660 Declare method.
11661 <constant_value>: New method.
11662
2b2558bf
TT
116632020-03-26 Tom Tromey <tom@tromey.com>
11664
11665 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11666 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11667 (dwarf_type_encoding_name): Move to stringify.c.
11668 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11669 * dwarf2/stringify.c: New file.
11670 * dwarf2/stringify.h: New file.
11671
eeb64781
TT
116722020-03-26 Tom Tromey <tom@tromey.com>
11673
11674 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11675 Rewrite.
11676
a39fdb41
TT
116772020-03-26 Tom Tromey <tom@tromey.com>
11678
11679 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11680 methods.
11681 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11682 (lookup_ranges_base): Likewise.
11683 (read_cutu_die_from_dwo, read_full_die_1): Update.
11684
436c571c
TT
116852020-03-26 Tom Tromey <tom@tromey.com>
11686
11687 * dwarf2/read.c (read_import_statement, read_file_scope)
11688 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11689 (read_lexical_block_scope, read_call_site_scope)
11690 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11691 (handle_struct_member_die, process_structure_scope)
11692 (update_enumeration_type_from_children)
11693 (process_enumeration_scope, read_array_type, read_common_block)
11694 (read_namespace, read_module, read_subroutine_type): Update.
11695 (sibling_die): Remove.
11696
052c8bb8
TT
116972020-03-26 Tom Tromey <tom@tromey.com>
11698
11699 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11700 (build_type_psymtabs_reader, read_structure_type)
11701 (read_enumeration_type, read_full_die_1): Update.
11702 (dwarf2_attr_no_follow): Move to die.h.
11703 * dwarf2/die.h (struct die_info) <attr>: New method.
11704
2b24b6e4
TT
117052020-03-26 Tom Tromey <tom@tromey.com>
11706
11707 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11708 <base_address>: Now an optional.
11709 (dwarf2_find_base_address, dwarf2_rnglists_process)
11710 (dwarf2_ranges_process, fill_in_loclist_baton)
11711 (dwarf2_symbol_mark_computed): Update.
11712
c2d50fd0
TT
117132020-03-26 Tom Tromey <tom@tromey.com>
11714
11715 * dwarf2/read.c (struct die_info): Move to die.h.
11716 * dwarf2/die.h: New file.
11717
0df7ad3a
TT
117182020-03-26 Tom Tromey <tom@tromey.com>
11719
11720 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11721 * dwarf2/read.c
11722 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11723 Move to line-header.c.
11724 (read_checked_initial_length_and_offset, read_formatted_entries):
11725 Likewise.
11726 (dwarf_decode_line_header): Split into two.
11727 * dwarf2/line-header.c
11728 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11729 Move from read.c.
11730 (read_checked_initial_length_and_offset, read_formatted_entries):
11731 Likewise.
11732 (dwarf_decode_line_header): New function, split from read.c.
11733
86c0bb4c
TT
117342020-03-26 Tom Tromey <tom@tromey.com>
11735
11736 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11737 Declare method.
11738 * dwarf2/read.c (read_attribute_value): Update.
11739 (dwarf2_per_objfile::read_line_string): Rename from
11740 read_indirect_line_string.
11741 (read_formatted_entries): Update.
11742
2ef46c2f
TT
117432020-03-26 Tom Tromey <tom@tromey.com>
11744
11745 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11746 variable.
11747
4f9c1eda
TT
117482020-03-26 Tom Tromey <tom@tromey.com>
11749
11750 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11751 const.
11752 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11753 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11754 parameter const.
11755
5a0e026f
TT
117562020-03-26 Tom Tromey <tom@tromey.com>
11757
11758 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11759 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11760 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11761 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11762
8844c11b
TT
117632020-03-26 Tom Tromey <tom@tromey.com>
11764
11765 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11766 file_names_size, file_full_name, file_file_name>: Use const.
11767 <file_name_at, file_names>: Add const overload.
11768 * dwarf2/line-header.c (line_header::file_file_name)
11769 (line_header::file_full_name): Update.
11770
c90ec28a
TT
117712020-03-26 Tom Tromey <tom@tromey.com>
11772
11773 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11774 (macro_start_file, consume_improper_spaces)
11775 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11776 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11777 (dwarf_decode_macros): Move to macro.c.
11778 * dwarf2/macro.c: New file.
11779 * dwarf2/macro.h: New file.
11780 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11781
4f44ae6c
TT
117822020-03-26 Tom Tromey <tom@tromey.com>
11783
11784 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11785 method.
11786 * dwarf2/section.c: New method. From
11787 read_indirect_string_at_offset_from.
11788 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11789 (read_indirect_string_at_offset_from): Move to section.c.
11790 (read_indirect_string_at_offset): Rewrite.
11791 (read_indirect_line_string_at_offset): Remove.
11792 (read_indirect_string, read_indirect_line_string)
11793 (dwarf_decode_macro_bytes): Update.
11794
a0194fa8
TT
117952020-03-26 Tom Tromey <tom@tromey.com>
11796
11797 * dwarf2/section.h (struct dwarf2_section_info)
11798 <overload_complaint>: Declare.
11799 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11800 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11801 Rename from dwarf2_section_buffer_overflow_complaint.
11802 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11803 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11804
3d27bbdb
TT
118052020-03-26 Tom Tromey <tom@tromey.com>
11806
11807 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11808 Declare.
11809 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11810 Move from read.c.
11811 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11812 to section.c.
11813
9eac9650
TT
118142020-03-26 Tom Tromey <tom@tromey.com>
11815
11816 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11817
bf80d710
TT
118182020-03-26 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11821 "builder".
11822 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11823 parameter.
11824 (dwarf_decode_macros): Update.
11825
0314b390
TT
118262020-03-26 Tom Tromey <tom@tromey.com>
11827
11828 * dwarf2/read.c (read_attribute_value): Update.
11829 (read_indirect_string_from_dwz): Move to dwz.c; change into
11830 method.
11831 (dwarf_decode_macro_bytes): Update.
11832 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11833 * dwarf2/dwz.c: New file.
11834 * Makefile.in (COMMON_SFILES): Add dwz.c.
11835
9fda78b6
TT
118362020-03-26 Tom Tromey <tom@tromey.com>
11837
11838 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11839 * dwarf2/read.c: Add include.
11840 * dwarf2/index-write.c: Add include.
11841 * dwarf2/index-cache.c: Add include.
11842 * dwarf2/dwz.h: New file.
11843
33aa3c10
TT
118442020-03-25 Tom Tromey <tom@tromey.com>
11845
11846 * compile/compile-object-load.c (get_out_value_type): Mention
11847 correct symbol name in error message.
11848
d503b685
HD
118492020-03-25 Hannes Domani <ssbssa@yahoo.de>
11850
11851 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11852
7b1eff95
TV
118532020-03-25 Tom de Vries <tdevries@suse.de>
11854
11855 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11856 * symmisc.c (dump_symtab_1): Print user and includes fields.
11857 (maintenance_info_symtabs): Same.
11858
dd895392
AB
118592020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11860
11861 PR gdb/25534
11862 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11863 (riscv_regcache_cooked_write): New function.
11864 (riscv_push_dummy_call): Use new function.
11865 (riscv_return_value): Likewise.
11866
5ab2fbf1
SM
118672020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11868
11869 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11870 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11871 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11872 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11873 * infrun.c (follow_fork): Likewise.
11874 (follow_fork_inferior): Likewise.
11875 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11876 * linux-nat.h (class linux_nat_target): Likewise.
11877 * remote.c (class remote_target) <follow_fork>: Likewise.
11878 (remote_target::follow_fork): Likewise.
11879 * target-delegates.c: Re-generate.
11880 * target.c (default_follow_fork): Likewise.
11881 (target_follow_fork): Likewise.
11882 * target.h (struct target_ops) <follow_fork>: Likewise.
11883 (target_follow_fork): Likewise.
11884
a64fafb5
TV
118852020-03-24 Tom de Vries <tdevries@suse.de>
11886
11887 * psymtab.c (maintenance_info_psymtabs): Print user field.
11888
fe26d3a3
TT
118892020-03-20 Tom Tromey <tromey@adacore.com>
11890
11891 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11892 const.
11893 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11894 const.
11895
c884cc46
SM
118962020-03-20 Simon Marchi <simon.marchi@efficios.com>
11897
11898 * ptrace.m4: Don't check for ptrace declaration.
11899 * config.in: Re-generate.
11900 * configure: Re-generate.
11901 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11902 not defined.
11903
1ff700c2
KR
119042020-03-20 Kamil Rytarowski <n54@gmx.com>
11905
11906 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11907 `PTRACE_TYPE_RET'.
11908 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11909 * sparc-nat.c (gdb_ptrace): Likewise.
11910 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11911
f7d4f0b1
TT
119122020-03-20 Tom Tromey <tromey@adacore.com>
11913
11914 * c-exp.y (lex_one_token): Fix assert.
11915
f67210ff
TT
119162020-03-20 Tom Tromey <tromey@adacore.com>
11917
11918 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11919 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11920 strncpy call.
11921
1773be9e
TT
119222020-03-20 Tom Tromey <tromey@adacore.com>
11923
11924 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11925
70304be9
TT
119262020-03-20 Tom Tromey <tromey@adacore.com>
11927
11928 * ada-valprint.c (print_variant_part): Remove parameters; switch
11929 to value-based API.
11930 (print_field_values): Likewise.
11931 (ada_val_print_struct_union): Likewise.
11932 (ada_value_print_1): Update.
11933
9faa006d
KR
119342020-03-20 Kamil Rytarowski <n54@gmx.com>
11935
11936 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11937 nbsd_nat_target instead of inf_ptrace_target.
11938 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11939 nbsd_nat_target.
11940
4a90f062
KR
119412020-03-20 Kamil Rytarowski <n54@gmx.com>
11942
11943 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11944 it to the ptrace call.
11945 * (store_registers): Likewise.
11946
119472020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11948
11949 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11950 it to the ptrace call.
11951 * (store_registers): Likewise.
11952
2d07da27
LM
119532020-03-19 Luis Machado <luis.machado@linaro.org>
11954
11955 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11956 valid, fetch vg value from ptrace.
11957
f09db380
KR
119582020-03-19 Kamil Rytarowski <n54@gmx.com>
11959 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11960 * inf-ptrace.c: Likewise.
11961 * (gdb_ptrace): Add.
11962 * (inf_ptrace_target::resume): Update.
11963 * (inf_ptrace_target::xfer_partial): Likewise.
11964 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11965 * (inf_ptrace_peek_poke): Update.
11966
fcc7376e
KR
119672020-03-19 Kamil Rytarowski <n54@gmx.com>
11968
11969 * x86-bsd-nat.c (gdb_ptrace): New.
11970 * (x86bsd_dr_set): Add new argument `ptid'.
11971 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11972 x86bsd_dr_set_addr): Update.
11973
cada5fc9
AB
119742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11975
11976 * remote.c (remote_target::process_stop_reply): Handle events for
11977 all threads differently.
11978
19a2740f
AB
119792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11980
11981 * completer.c (completion_tracker::remove_completion): Define new
11982 function.
11983 * completer.h (completion_tracker::remove_completion): Declare new
11984 function.
11985 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11986 when adding a C++ function symbol.
11987
724fd9ba
AB
119882020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11989
11990 * completer.c (completion_tracker::completion_hash_entry): Define
11991 new class.
11992 (advance_to_filename_complete_word_point): Call
11993 recompute_lowest_common_denominator.
11994 (completion_tracker::completion_tracker): Call discard_completions
11995 to setup the hash table.
11996 (completion_tracker::discard_completions): Allow for being called
11997 from the constructor, pass new equal function, and element deleter
11998 when constructing the hash table. Initialise new class member
11999 variables.
12000 (completion_tracker::maybe_add_completion): Remove use of
12001 m_entries_vec, and store more information into m_entries_hash.
12002 (completion_tracker::recompute_lcd_visitor): New function, most
12003 content taken from...
12004 (completion_tracker::recompute_lowest_common_denominator):
12005 ...here, this now just visits each item in the hash calling the
12006 above visitor.
12007 (completion_tracker::build_completion_result): Remove use of
12008 m_entries_vec, call recompute_lowest_common_denominator.
12009 * completer.h (completion_tracker::have_completions): Remove use
12010 of m_entries_vec.
12011 (completion_tracker::completion_hash_entry): Declare new class.
12012 (completion_tracker::recompute_lowest_common_denominator): Change
12013 function signature.
12014 (completion_tracker::recompute_lcd_visitor): Declare new function.
12015 (completion_tracker::m_entries_vec): Delete.
12016 (completion_tracker::m_entries_hash): Initialize to NULL.
12017 (completion_tracker::m_lowest_common_denominator_valid): New
12018 member variable.
12019 (completion_tracker::m_lowest_common_denominator_max_length): New
12020 member variable.
12021
5a82b8a1
KR
120222020-03-17 Kamil Rytarowski <n54@gmx.com>
12023
12024 * regformats/regdef.h: Put reg in gdb namespace.
12025
fb516a69
KR
120262020-03-17 Kamil Rytarowski <n54@gmx.com>
12027
12028 * i386-bsd-nat.c (gdb_ptrace): New.
12029 * (i386bsd_fetch_inferior_registers,
12030 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12031 * (i386bsd_fetch_inferior_registers,
12032 i386bsd_store_inferior_registers) Use gdb_ptrace.
12033
1c0aa1fb
KR
120342020-03-17 Kamil Rytarowski <n54@gmx.com>
12035
12036 * amd64-bsd-nat.c (gdb_ptrace): New.
12037 * (amd64bsd_fetch_inferior_registers,
12038 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12039 * (amd64bsd_fetch_inferior_registers,
12040 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12041
5ccd2fb7
KR
120422020-03-17 Kamil Rytarowski <n54@gmx.com>
12043
12044 * user-regs.c (user_reg::read): Rename to...
12045 (user_reg::xread): ...this.
12046 * (append_user_reg): Rename argument `read' to `xread'.
12047 * (user_reg_add_builtin): Likewise.
12048 * (user_reg_add): Likewise.
12049 * (value_of_user_reg): Likewise.
12050
2108a63a
KR
120512020-03-17 Kamil Rytarowski <n54@gmx.com>
12052
12053 * sparc-nat.c (gdb_ptrace): New.
12054 * sparc-nat.c (sparc_fetch_inferior_registers)
12055 (sparc_store_inferior_registers) Remove obsolete comment.
12056 * sparc-nat.c (sparc_fetch_inferior_registers)
12057 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12058 * sparc-nat.c (sparc_fetch_inferior_registers)
12059 (sparc_store_inferior_registers) Use gdb_ptrace.
12060
a225c9a8
KR
120612020-03-17 Kamil Rytarowski <n54@gmx.com>
12062
12063 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12064 it to the ptrace call.
12065 * sh-nbsd-nat.c (store_registers): Likewise.
12066
98097623
KR
120672020-03-17 Kamil Rytarowski <n54@gmx.com>
12068
12069 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12070 nbsd_nat_target instead of inf_ptrace_target.
12071 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12072 nbsd_nat_target.
12073
9e38d619
KR
120742020-03-17 Kamil Rytarowski <n54@gmx.com>
12075
12076 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12077
a2ecbe9f
KR
120782020-03-17 Kamil Rytarowski <n54@gmx.com>
12079
12080 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12081 <sys/sysctl.h>.
12082 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12083
58990295
TV
120842020-03-17 Tom de Vries <tdevries@suse.de>
12085
12086 PR gdb/23710
12087 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12088 fields.
12089 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12090 fields.
12091 (process_imported_unit_die): Skip import of c++ CUs.
12092
771dd3a8
TT
120932020-03-16 Tom Tromey <tom@tromey.com>
12094
12095 * p-valprint.c (pascal_object_print_value): Initialize
12096 base_value.
12097
817a7585
AK
120982020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12099 Shahab Vahedi <shahab@synopsys.com>
12100
12101 * Makefile.in: Add arch/arc.o
12102 * configure.tgt: Likewise.
12103 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12104 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12105 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12106 * arc-tdep.h (arc_read_description): Add proto type.
12107 * arch/arc.c: New file.
12108 * arch/arc.h: Likewise.
12109 * features/Makefile: Replace old target descriptions with new.
12110 * features/arc-arcompact.c: Remove.
12111 * features/arc-arcompact.xml: Likewise.
12112 * features/arc-v2.c: Likewise
12113 * features/arc-v2.xml: Likewise
12114 * features/arc/aux-arcompact.xml: New file.
12115 * features/arc/aux-v2.xml: Likewise.
12116 * features/arc/core-arcompact.xml: Likewise.
12117 * features/arc/core-v2.xml: Likewise.
12118 * features/arc/aux-arcompact.c: Generate.
12119 * features/arc/aux-v2.c: Likewise.
12120 * features/arc/core-arcompact.c: Likewise.
12121 * features/arc/core-v2.c: Likewise.
12122 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12123
67430cd0
TT
121242020-03-16 Tom Tromey <tromey@adacore.com>
12125
12126 PR gdb/25663:
12127 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12128 putting value into bcache.
12129
30efb6c7
SM
121302020-03-16 Simon Marchi <simon.marchi@efficios.com>
12131
12132 PR gdb/21500
12133 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12134 to...
12135 (amd64_windows_init_abi_common): ... this. Don't set size of
12136 long type.
12137 (amd64_windows_init_abi): New function.
12138 (amd64_cygwin_init_abi): New function.
12139 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12140 the Cygwin OS ABI.
12141 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12142 comment.
12143
8db52437
SM
121442020-03-16 Simon Marchi <simon.marchi@efficios.com>
12145
12146 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12147 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12148 (pe_import_directory_entry): New struct type.
12149 (is_linked_with_cygwin_dll): New function.
12150 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12151 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12152 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12153
5982a56a
SM
121542020-03-16 Simon Marchi <simon.marchi@efficios.com>
12155
12156 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12157 i386_cygwin_core_osabi_sniffer.
12158
7a1998df
SM
121592020-03-16 Simon Marchi <simon.marchi@efficios.com>
12160
12161 * i386-cygwin-tdep.c: Rename to...
12162 * i386-windows-tdep.c: ... this.
12163 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12164 i386-windows-tdep.c.
12165 * configure.tgt: Likewise.
12166
053205cc
SM
121672020-03-16 Simon Marchi <simon.marchi@efficios.com>
12168
12169 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12170 * osabi.c (gdb_osabi_names): Add "Windows".
12171 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12172 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12173 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12174 i386_cygwin_osabi_sniffer.
12175 (_initialize_i386_cygwin_tdep): Register OS ABI
12176 GDB_OSABI_WINDOWS for i386.
12177 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12178 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12179 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12180 for x86-64.
12181 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12182 when the target matches '*-*-mingw*'.
12183
fe4b2ee6
SM
121842020-03-16 Simon Marchi <simon.marchi@efficios.com>
12185
12186 * defs.h (enum gdb_osabi): Move to...
12187 * osabi.h (enum gdb_osabi): ... here.
12188 * gdbarch.sh: Include osabi.h in gdbarch.h.
12189 * gdbarch.h: Re-generate.
12190
cb9b645d
SM
121912020-03-16 Simon Marchi <simon.marchi@efficios.com>
12192
12193 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12194 function.
12195 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12196
3293bbaf
TT
121972020-03-14 Tom Tromey <tom@tromey.com>
12198
12199 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12200 for C++.
12201 (c_type_print_modifier): Likewise. Add "language" parameter.
12202 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12203 (c_type_print_base_1): Update.
12204 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12205 constants.
12206 * type-stack.c (type_stack::insert): Handle tp_atomic and
12207 tp_restrict.
12208 (type_stack::follow_type_instance_flags): Likewise.
12209 (type_stack::follow_types): Likewise. Merge type-following code.
12210 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12211 (space_identifier, cv_with_space_id)
12212 (const_or_volatile_or_space_identifier_noopt)
12213 (const_or_volatile_or_space_identifier): Remove.
12214 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12215 rules.
12216 (ptr_operator, typebase): Update.
12217 (enum token_flag) <FLAG_C>: New constant.
12218 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12219 "_Atomic".
12220 (lex_one_token): Handle FLAG_C.
12221
154151a6
KR
122222020-03-14 Kamil Rytarowski <n54@gmx.com>
12223
12224 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12225 it to the ptrace call.
12226 * m68k-bsd-nat.c (store_registers): Likewise.
12227
bc107784
KR
122282020-03-14 Kamil Rytarowski <n54@gmx.com>
12229
12230 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12231 gdb_byte *.
12232 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12233 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12234 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12235
01a80117
KR
122362020-03-14 Kamil Rytarowski <n54@gmx.com>
12237
12238 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12239 nbsd_nat_target instead of inf_ptrace_target.
12240 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12241 nbsd_nat_target.
12242
f90280ca
KR
122432020-03-14 Kamil Rytarowski <n54@gmx.com>
12244
12245 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12246 register_t.
12247
6def66f1
KR
122482020-03-14 Kamil Rytarowski <n54@gmx.com>
12249
12250 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12251 it to the ptrace call.
12252 * alpha-bsd-nat.c (store_registers): Likewise.
12253
66eaca97
KR
122542020-03-14 Kamil Rytarowski <n54@gmx.com>
12255
12256 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12257 includes.
12258 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12259 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12260 fill_fpregset): Likewise.
12261
4fed520b
KR
122622020-03-14 Kamil Rytarowski <n54@gmx.com>
12263
12264 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12265 nbsd_nat_target instead of inf_ptrace_target.
12266 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12267 nbsd_nat_target.
12268
2190cf06
KR
122692020-03-14 Kamil Rytarowski <n54@gmx.com>
12270
12271 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12272 register_t.
12273
75c56d3d
KR
122742020-03-14 Kamil Rytarowski <n54@gmx.com>
12275
12276 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12277 it to the ptrace call.
12278 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12279 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12280 * arm-nbsd-nat.c (store_register): Likewise.
12281 * arm-nbsd-nat.c (store_regs): Likewise.
12282 * arm-nbsd-nat.c (store_fp_register): Likewise.
12283 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12284
6018d381
KR
122852020-03-14 Kamil Rytarowski <n54@gmx.com>
12286
12287 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12288 nbsd_nat_target instead of inf_ptrace_target.
12289 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12290 nbsd_nat_target.
12291
013f99f0
KR
122922020-03-14 Kamil Rytarowski <n54@gmx.com>
12293
12294 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12295 it to the ptrace call.
12296 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12297
12753073
KR
122982020-03-14 Kamil Rytarowski <n54@gmx.com>
12299
6227b330
KR
12300 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12301 it to the ptrace call.
12302 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12303
123042020-03-14 Kamil Rytarowski <n54@gmx.com>
12305
12306 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12307 gdb_byte *.
12753073
KR
12308 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12309
d5be5fa4
KR
123102020-03-14 Kamil Rytarowski <n54@gmx.com>
12311
12312 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12313 instead of inf_ptrace_target.
12314 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12315 nbsd_nat_target.
12316
8110f842
KR
123172020-03-14 Kamil Rytarowski <n54@gmx.com>
12318
12319 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12320 register_t.
12321
52feded7
KR
123222020-03-14 Kamil Rytarowski <n54@gmx.com>
12323
12324 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12325 register_t.
12326
25567eee
KR
123272020-03-14 Kamil Rytarowski <n54@gmx.com>
12328
12329 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12330 register_t.
12331
426a9c18
TT
123322020-03-13 Tom Tromey <tom@tromey.com>
12333
12334 * value.h (val_print): Don't declare.
12335 * valprint.h (val_print_array_elements)
12336 (val_print_scalar_formatted, generic_val_print): Don't declare.
12337 * valprint.c (generic_val_print_array): Take a struct value.
12338 (generic_val_print_ptr, generic_val_print_memberptr)
12339 (generic_val_print_bool, generic_val_print_int)
12340 (generic_val_print_char, generic_val_print_complex)
12341 (generic_val_print): Remove.
12342 (generic_value_print): Update.
12343 (do_val_print): Remove unused parameters. Don't call
12344 la_val_print.
12345 (val_print): Remove.
12346 (common_val_print): Update. Don't call value_check_printable.
12347 (val_print_scalar_formatted, val_print_array_elements): Remove.
12348 * rust-lang.c (rust_val_print): Remove.
12349 (rust_language_defn): Update.
12350 * p-valprint.c (pascal_val_print): Remove.
12351 (pascal_value_print_inner): Update.
12352 (pascal_object_print_val_fields, pascal_object_print_val):
12353 Remove.
12354 (pascal_object_print_static_field): Update.
12355 * p-lang.h (pascal_val_print): Don't declare.
12356 * p-lang.c (pascal_language_defn): Update.
12357 * opencl-lang.c (opencl_language_defn): Update.
12358 * objc-lang.c (objc_language_defn): Update.
12359 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12360 * m2-lang.h (m2_val_print): Don't declare.
12361 * m2-lang.c (m2_language_defn): Update.
12362 * language.h (struct language_defn) <la_val_print>: Remove.
12363 * language.c (unk_lang_value_print_inner): Rename. Change
12364 argument types.
12365 (unknown_language_defn, auto_language_defn): Update.
12366 * go-valprint.c (go_val_print): Remove.
12367 * go-lang.h (go_val_print): Don't declare.
12368 * go-lang.c (go_language_defn): Update.
12369 * f-valprint.c (f_val_print): Remove.
12370 * f-lang.h (f_value_print): Don't declare.
12371 * f-lang.c (f_language_defn): Update.
12372 * d-valprint.c (d_val_print): Remove.
12373 * d-lang.h (d_value_print): Don't declare.
12374 * d-lang.c (d_language_defn): Update.
12375 * cp-valprint.c (cp_print_value_fields)
12376 (cp_print_value_fields_rtti, cp_print_value): Remove.
12377 (cp_print_static_field): Update.
12378 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12379 (c_val_print_struct, c_val_print_union, c_val_print_int)
12380 (c_val_print_memberptr, c_val_print): Remove.
12381 * c-lang.h (c_val_print_array, cp_print_value_fields)
12382 (cp_print_value_fields_rtti): Don't declare.
12383 * c-lang.c (c_language_defn, cplus_language_defn)
12384 (asm_language_defn, minimal_language_defn): Update.
12385 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12386 (ada_val_print_enum): Take a struct value.
12387 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12388 (ada_val_print): Remove.
12389 (ada_value_print_1): Update.
12390 (printable_val_type): Remove.
12391 * ada-lang.h (ada_val_print): Don't declare.
12392 * ada-lang.c (ada_language_defn): Update.
12393
42331a1e
TT
123942020-03-13 Tom Tromey <tom@tromey.com>
12395
12396 * valprint.c (do_val_print): Update.
12397 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12398 a struct value.
12399 (value_to_value_object_no_release): Declare.
12400 * python/py-value.c (value_to_value_object_no_release): New
12401 function.
12402 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12403 struct value.
12404 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12405 function.
12406 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12407 a struct value.
12408 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12409 Declare.
12410 (gdbscm_apply_val_pretty_printer): Take a struct value.
12411 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12412 value.
12413 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12414 value.
12415 * extension-priv.h (struct extension_language_ops)
12416 <apply_val_pretty_printer>: Take a struct value.
12417 * cp-valprint.c (cp_print_value): Create a struct value.
12418 (cp_print_value): Update.
12419
3a916a97
TT
124202020-03-13 Tom Tromey <tom@tromey.com>
12421
12422 * ada-valprint.c (print_field_values): Call common_val_print.
12423
b59eac37
TT
124242020-03-13 Tom Tromey <tom@tromey.com>
12425
12426 * ada-valprint.c (val_print_packed_array_elements): Remove
12427 bitoffset and val parameters. Call common_val_print.
12428 (ada_val_print_string): Remove offset, address, and original_value
12429 parameters.
12430 (ada_val_print_array): Update.
12431 (ada_value_print_array): New function.
12432 (ada_value_print_1): Call it.
12433
03371129
TT
124342020-03-13 Tom Tromey <tom@tromey.com>
12435
12436 * ada-valprint.c (ada_value_print): Use common_val_print.
12437
2e088f8b
TT
124382020-03-13 Tom Tromey <tom@tromey.com>
12439
12440 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12441
39ef85a8
TT
124422020-03-13 Tom Tromey <tom@tromey.com>
12443
12444 * ada-valprint.c (ada_value_print_num): New function.
12445 (ada_value_print_1): Use it.
12446
b9fa6e07
TT
124472020-03-13 Tom Tromey <tom@tromey.com>
12448
12449 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12450
416595d6
TT
124512020-03-13 Tom Tromey <tom@tromey.com>
12452
12453 * ada-valprint.c (ada_value_print_ptr): New function.
12454 (ada_value_print_1): Use it.
12455
5b5e15ec
TT
124562020-03-13 Tom Tromey <tom@tromey.com>
12457
12458 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12459 call common_val_print.
12460 (ada_val_print_1): Update.
12461 (ada_value_print_1): New function.
12462 (ada_value_print_inner): Rewrite.
12463
fbf54e75
TT
124642020-03-13 Tom Tromey <tom@tromey.com>
12465
12466 * cp-valprint.c (cp_print_value_fields): Update.
12467 (cp_print_value): New function.
12468
64b653ca
TT
124692020-03-13 Tom Tromey <tom@tromey.com>
12470
12471 * m2-valprint.c (m2_value_print_inner): Use
12472 cp_print_value_fields.
12473 * cp-valprint.c (cp_print_value_fields): New function.
12474 * c-valprint.c (c_value_print_struct): New function.
12475 (c_value_print_inner): Use c_value_print_struct.
12476 * c-lang.h (cp_print_value_fields): Declare.
12477
6999f067
TT
124782020-03-13 Tom Tromey <tom@tromey.com>
12479
12480 * c-valprint.c (c_value_print_array): New function.
12481 (c_value_print_inner): Use it.
12482
ce80b8bd
TT
124832020-03-13 Tom Tromey <tom@tromey.com>
12484
12485 * c-valprint.c (c_value_print_memberptr): New function.
12486 (c_value_print_inner): Use it.
12487
2faac269
TT
124882020-03-13 Tom Tromey <tom@tromey.com>
12489
12490 * c-valprint.c (c_value_print_int): New function.
12491 (c_value_print_inner): Use it.
12492
da3e2c29
TT
124932020-03-13 Tom Tromey <tom@tromey.com>
12494
12495 * c-valprint.c (c_value_print_ptr): New function.
12496 (c_value_print_inner): Use it.
12497
50836231
TT
124982020-03-13 Tom Tromey <tom@tromey.com>
12499
12500 * c-valprint.c (c_value_print_inner): Rewrite.
12501
4f412b6e
TT
125022020-03-13 Tom Tromey <tom@tromey.com>
12503
12504 * valprint.c (generic_value_print_complex): New function.
12505 (generic_value_print): Use it.
12506
f5354008
TT
125072020-03-13 Tom Tromey <tom@tromey.com>
12508
12509 * valprint.c (generic_val_print_float): Don't call
12510 val_print_scalar_formatted.
12511 (generic_val_print, generic_value_print): Update.
12512
3eec3b05
TT
125132020-03-13 Tom Tromey <tom@tromey.com>
12514
12515 * valprint.c (generic_value_print_char): New function
12516 (generic_value_print): Use it.
12517
fdddfccb
TT
125182020-03-13 Tom Tromey <tom@tromey.com>
12519
12520 * valprint.c (generic_value_print_int): New function.
12521 (generic_value_print): Use it.
12522
6dde7521
TT
125232020-03-13 Tom Tromey <tom@tromey.com>
12524
12525 * valprint.c (generic_value_print_bool): New function.
12526 (generic_value_print): Use it.
12527
4112d2e6
TT
125282020-03-13 Tom Tromey <tom@tromey.com>
12529
12530 * valprint.c (generic_val_print_func): Simplify.
12531 (generic_val_print, generic_value_print): Update.
12532
65786af6
TT
125332020-03-13 Tom Tromey <tom@tromey.com>
12534
12535 * valprint.c (generic_val_print_flags): Remove.
12536 (generic_val_print, generic_value_print): Update.
12537 (val_print_type_code_flags): Add original_value parameter.
12538
40f3ce18
TT
125392020-03-13 Tom Tromey <tom@tromey.com>
12540
12541 * valprint.c (generic_val_print): Update.
12542 (generic_value_print): Update.
12543 * valprint.c (generic_val_print_enum): Don't call
12544 val_print_scalar_formatted.
12545
2a5b130b
TT
125462020-03-13 Tom Tromey <tom@tromey.com>
12547
12548 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12549 * valprint.c (generic_value_print_ptr): New function.
12550
abc66ce9
TT
125512020-03-13 Tom Tromey <tom@tromey.com>
12552
12553 * valprint.c (generic_value_print): Rewrite.
12554
07a32858
TT
125552020-03-13 Tom Tromey <tom@tromey.com>
12556
12557 * p-valprint.c (pascal_object_print_value_fields)
12558 (pascal_object_print_value): New functions.
12559
64d64d3a
TT
125602020-03-13 Tom Tromey <tom@tromey.com>
12561
12562 * p-valprint.c (pascal_value_print_inner): Rewrite.
12563
6a95a1f5
TT
125642020-03-13 Tom Tromey <tom@tromey.com>
12565
12566 * f-valprint.c (f_value_print_innner): Rewrite.
12567
59fcdac6
TT
125682020-03-13 Tom Tromey <tom@tromey.com>
12569
12570 * m2-valprint.c (m2_print_unbounded_array): New overload.
12571 (m2_print_unbounded_array): Update.
12572 (m2_print_array_contents): Take a struct value.
12573 (m2_value_print_inner): Rewrite.
12574
d133c3e1
TT
125752020-03-13 Tom Tromey <tom@tromey.com>
12576
12577 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12578 (d_value_print_inner): New function.
12579 * d-lang.h (d_value_print_inner): Declare.
12580 * d-lang.c (d_language_defn): Use d_value_print_inner.
12581
23b0f06b
TT
125822020-03-13 Tom Tromey <tom@tromey.com>
12583
12584 * go-valprint.c (go_value_print_inner): New function.
12585 * go-lang.h (go_value_print_inner): Declare.
12586 * go-lang.c (go_language_defn): Use go_value_print_inner.
12587
5f56f7cb
TT
125882020-03-13 Tom Tromey <tom@tromey.com>
12589
12590 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12591 API.
12592 (rust_val_print): Rewrite.
12593 (rust_value_print_inner): New function, from rust_val_print.
12594 (rust_language_defn): Use rust_value_print_inner.
12595
26792ee0
TT
125962020-03-13 Tom Tromey <tom@tromey.com>
12597
12598 * ada-valprint.c (ada_value_print_inner): New function.
12599 * ada-lang.h (ada_value_print_inner): Declare.
12600 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12601
24051bbe
TT
126022020-03-13 Tom Tromey <tom@tromey.com>
12603
12604 * f-valprint.c (f_value_print_innner): New function.
12605 * f-lang.h (f_value_print_innner): Declare.
12606 * f-lang.c (f_language_defn): Use f_value_print_innner.
12607
c0941be6
TT
126082020-03-13 Tom Tromey <tom@tromey.com>
12609
12610 * p-valprint.c (pascal_value_print_inner): New function.
12611 * p-lang.h (pascal_value_print_inner): Declare.
12612 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12613
62c4663d
TT
126142020-03-13 Tom Tromey <tom@tromey.com>
12615
12616 * m2-valprint.c (m2_value_print_inner): New function.
12617 * m2-lang.h (m2_value_print_inner): Declare.
12618 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12619
62182190
TT
126202020-03-13 Tom Tromey <tom@tromey.com>
12621
12622 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12623 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12624 * c-valprint.c (c_value_print_inner): New function.
12625 * c-lang.h (c_value_print_inner): Declare.
12626 * c-lang.c (c_language_defn, cplus_language_defn)
12627 (asm_language_defn, minimal_language_defn): Use
12628 c_value_print_inner.
12629
1e592a8a
TT
126302020-03-13 Tom Tromey <tom@tromey.com>
12631
12632 * p-valprint.c (pascal_object_print_value_fields): Now static.
12633 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12634
7fe471e9
TT
126352020-03-13 Tom Tromey <tom@tromey.com>
12636
12637 * c-valprint.c (c_val_print_array): Simplify.
12638
d121c6ce
TT
126392020-03-13 Tom Tromey <tom@tromey.com>
12640
12641 * valprint.c (value_print_array_elements): New function.
12642 * valprint.h (value_print_array_elements): Declare.
12643
4dba70ee
TT
126442020-03-13 Tom Tromey <tom@tromey.com>
12645
12646 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12647 * mips-tdep.c (mips_print_register): Use
12648 value_print_scalar_formatted.
12649
4f9ae810
TT
126502020-03-13 Tom Tromey <tom@tromey.com>
12651
12652 * valprint.h (value_print_scalar_formatted): Declare.
12653 * valprint.c (value_print_scalar_formatted): New function.
12654
156bfec9
TT
126552020-03-13 Tom Tromey <tom@tromey.com>
12656
12657 * valprint.h (generic_value_print): Declare.
12658 * valprint.c (generic_value_print): New function.
12659
2b4e573d
TT
126602020-03-13 Tom Tromey <tom@tromey.com>
12661
12662 * valprint.c (do_val_print): Call la_value_print_inner, if
12663 available.
12664 * rust-lang.c (rust_language_defn): Update.
12665 * p-lang.c (pascal_language_defn): Update.
12666 * opencl-lang.c (opencl_language_defn): Update.
12667 * objc-lang.c (objc_language_defn): Update.
12668 * m2-lang.c (m2_language_defn): Update.
12669 * language.h (struct language_defn) <la_value_print_inner>: New
12670 member.
12671 * language.c (unknown_language_defn, auto_language_defn): Update.
12672 * go-lang.c (go_language_defn): Update.
12673 * f-lang.c (f_language_defn): Update.
12674 * d-lang.c (d_language_defn): Update.
12675 * c-lang.c (c_language_defn, cplus_language_defn)
12676 (asm_language_defn, minimal_language_defn): Update.
12677 * ada-lang.c (ada_language_defn): Update.
12678
a1f6a07c
TT
126792020-03-13 Tom Tromey <tom@tromey.com>
12680
12681 * c-valprint.c (c_value_print): Use common_val_print.
12682
410cf315
TT
126832020-03-13 Tom Tromey <tom@tromey.com>
12684
12685 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12686
72a45c93
TT
126872020-03-13 Tom Tromey <tom@tromey.com>
12688
12689 * f-valprint.c (f77_print_array_1, f_val_print): Use
12690 common_val_print.
12691
040f66bd
TT
126922020-03-13 Tom Tromey <tom@tromey.com>
12693
12694 * riscv-tdep.c (riscv_print_one_register_info): Use
12695 common_val_print.
12696
a6e05a6c
TT
126972020-03-13 Tom Tromey <tom@tromey.com>
12698
12699 * mi/mi-main.c (output_register): Use common_val_print.
12700
3444c526
TT
127012020-03-13 Tom Tromey <tom@tromey.com>
12702
12703 * infcmd.c (default_print_one_register_info): Use
12704 common_val_print.
12705
c2a44efe
TT
127062020-03-13 Tom Tromey <tom@tromey.com>
12707
12708 * valprint.h (common_val_print_checked): Declare.
12709 * valprint.c (common_val_print_checked): New function.
12710 * stack.c (print_frame_arg): Use common_val_print_checked.
12711
b0c26e99
TT
127122020-03-13 Tom Tromey <tom@tromey.com>
12713
12714 * valprint.c (do_val_print): New function, from val_print.
12715 (val_print): Use do_val_print.
12716 (common_val_print): Use do_val_print.
12717
ce3acbe9
TT
127182020-03-13 Tom Tromey <tom@tromey.com>
12719
12720 * valprint.c (value_print): Use scoped_value_mark.
12721
96c7f873
TV
127222020-03-13 Tom de Vries <tdevries@suse.de>
12723
12724 PR symtab/25646
12725 * psymtab.c (partial_symtab::partial_symtab): Don't set
12726 globals_offset and statics_offset. Push element onto
12727 current_global_psymbols and current_static_psymbols stacks.
12728 (concat): New function.
12729 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12730 element from current_global_psymbols and current_static_psymbols
12731 stacks. Concat popped elements to global_psymbols and
12732 static_symbols.
12733 (add_psymbol_to_list): Use current_global_psymbols and
12734 current_static_psymbols stacks.
12735 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12736 current_static_psymbols fields.
12737
6ba0a321
CB
127382020-03-12 Christian Biesinger <cbiesinger@google.com>
12739
12740 * corelow.c (sniff_core_bfd): Remove.
12741 (class core_target) <m_core_vec>: Remove.
12742 (core_target::core_target): Update.
12743 (core_file_fns): Remove.
12744 (deprecated_add_core_fns): Remove.
12745 (default_core_sniffer): Remove.
12746 (sniff_core_bfd): Remove.
12747 (default_check_format): Remove.
12748 (gdb_check_format): Remove.
12749 (core_target_open): Update.
12750 (core_target::get_core_register_section): Update.
12751 (get_core_registers_cb): Update.
12752 (core_target::fetch_registers): Update.
12753 * gdbcore.h (struct core_fns): Remove.
12754 (deprecated_add_core_fns): Remove.
12755 (default_core_sniffer): Remove.
12756 (default_check_format): Remove.
12757
227031b2
TT
127582020-03-12 Tom Tromey <tom@tromey.com>
12759
12760 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12761 CORE_ADDR.
12762 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12763
53807e9f
TT
127642020-03-12 Tom Tromey <tom@tromey.com>
12765
12766 * remote.c (remote_target::download_tracepoint)
12767 (remote_target::enable_tracepoint)
12768 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12769 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12770 sprintf_vma.
12771
64f25102
TT
127722020-03-12 Tom Tromey <tom@tromey.com>
12773
12774 * symfile-mem.c: Update CORE_ADDR size assert.
12775
272cd5a3
SM
127762020-03-12 Simon Marchi <simon.marchi@efficios.com>
12777
12778 * selftest.m4: Move to gdbsupport/.
12779 * acinclude.m4: Update path to selftest.m4.
12780
74cd3f9d
SM
127812020-03-12 Simon Marchi <simon.marchi@efficios.com>
12782
12783 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12784 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12785 gdbarch-selfselftests.c and selftest-arch.c.
12786 (SUBDIR_UNITTESTS_OBS): Rename to...
12787 (SELFTESTS_OBS): ... this.
12788 (COMMON_SFILES): Remove disasm-selftests.c and
12789 gdbarch-selftests.c.
12790 * configure.ac: Don't add selftest-arch.{c,o} to
12791 CONFIG_{SRCS,OBS}.
12792 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12793 preprocessor conditions.
12794
db6878ac
SM
127952020-03-12 Simon Marchi <simon.marchi@efficios.com>
12796
12797 * configure.ac: Don't source bfd/development.sh.
12798 * selftest.m4: Modify comment.
12799 * configure: Re-generate.
12800
4d696a5c
SM
128012020-03-12 Simon Marchi <simon.marchi@efficios.com>
12802
12803 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12804 not "true" or "false".
12805 * configure: Re-generate.
12806
8dd8e1c7
CB
128072020-03-12 Christian Biesinger <cbiesinger@google.com>
12808
12809 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12810 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12811 renamed to arm_nbsd_supply_gregset.
12812 (fetch_register): Update to call arm_nbsd_supply_gregset.
12813 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12814 (arm_netbsd_nat_target::fetch_registers): Update.
12815 (fetch_elfcore_registers): Removed.
12816 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12817 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12818 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12819 not require NetBSD system headers.
12820 (arm_nbsd_regset): New struct.
12821 (arm_nbsd_iterate_over_regset_sections): New function.
12822 (arm_netbsd_init_abi_common): Updated to call
12823 set_gdbarch_iterate_over_regset_sections.
12824 * arm-nbsd-tdep.h: New file.
12825
dd69bf7a
KB
128262020-03-11 Kevin Buettner <kevinb@redhat.com>
12827
12828 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12829 recursion.
12830
a0761e34
SM
128312020-03-11 Simon Marchi <simon.marchi@efficios.com>
12832
12833 * configure: Re-generate.
12834
e7a82140
TT
128352020-03-11 Tom Tromey <tromey@adacore.com>
12836
12837 * ada-typeprint.c (print_choices): Fix comment.
12838
dcc050c8
AB
128392020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12840
12841 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12842 previous item in the list, when the list has no items.
12843
1c33af77
TV
128442020-03-11 Tom de Vries <tdevries@suse.de>
12845
12846 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12847 PROP_LOCLIST handling code.
12848
8c95582d
AB
128492020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12850
12851 * buildsym-legacy.c (record_line): Pass extra parameter to
12852 record_line.
12853 * buildsym.c (buildsym_compunit::record_line): Take an extra
12854 parameter, reduce duplication in the line table, and record the
12855 is_stmt flag in the line table.
12856 * buildsym.h (buildsym_compunit::record_line): Add extra
12857 parameter.
12858 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12859 non-statement lines.
12860 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12861 this to the symtab builder.
12862 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12863 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12864 through to dwarf_record_line_1.
12865 * infrun.c (process_event_stop_test): When stepping, don't stop at
12866 a non-statement instruction, and only refresh the step info when
12867 we land in the middle of a line's range. Also add an extra
12868 comment.
12869 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12870 field.
12871 * record-btrace.c (btrace_find_line_range): Only record lines
12872 marked as is-statement.
12873 * stack.c (frame_show_address): Show the frame address if we are
12874 in a non-statement sal.
12875 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12876 (maintenance_print_one_line_table): Print a header for the is_stmt
12877 column, and include is_stmt information in the output.
12878 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12879 preference to non-statements.
12880 (find_pcs_for_symtab_line): Prefer is-statement entries.
12881 (find_line_common): Likewise.
12882 * symtab.h (struct linetable_entry): Add is_stmt field.
12883 (struct symtab_and_line): Likewise.
12884 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12885 arranging the line table.
12886
e4003a34
TV
128872020-03-07 Tom de Vries <tdevries@suse.de>
12888
12889 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12890 DIE.
12891
e8932576
TT
128922020-03-07 Tom Tromey <tom@tromey.com>
12893
12894 * valops.c (value_literal_complex): Remove obsolete comment.
12895 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12896 comment.
12897
29734269
SM
128982020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12899
12900 * infrun.h: Forward-declare thread_info.
12901 (set_step_info): Add thread_info parameter, add doc.
12902 * infrun.c (set_step_info): Add thread_info parameter, move doc
12903 to header.
12904 * infrun.c (process_event_stop_test): Pass thread to
12905 set_step_info call.
12906 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12907 set_step_info.
12908 (prepare_one_step): Add thread_info parameter, pass it to
12909 set_step_frame and prepare_one_step (recursive) call.
12910 (step_1): Pass thread to prepare_one_step call.
12911 (step_command_fsm::should_stop): Pass thread to
12912 prepare_one_step.
12913 (until_next_fsm): Pass thread to set_step_frame call.
12914 (finish_command): Pass thread to set_step_info call.
12915
b7d64b29
HD
129162020-03-06 Hannes Domani <ssbssa@yahoo.de>
12917
12918 * windows-tdep.c (windows_solib_create_inferior_hook):
12919 Check if inferior is running.
12920
09f2921c
TV
129212020-03-06 Tom de Vries <tdevries@suse.de>
12922
12923 * NEWS: Fix "the the".
12924 * ctfread.c: Same.
12925
fd760e79
TV
129262020-03-06 Tom de Vries <tdevries@suse.de>
12927
12928 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12929
20ea4a60
AB
129302020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12931
12932 * .dir-locals.el: Add a comment referencing the other copies of
12933 this file.
12934
0afbabf0
JB
129352020-03-05 John Baldwin <jhb@FreeBSD.org>
12936
12937 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12938 psargs.
12939
842806cb
TBA
129402020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12941
12942 * .gitattributes: New file.
12943
be1e3d3e
TT
129442020-03-04 Tom Tromey <tom@tromey.com>
12945
12946 * symmisc.c (print_symbol_bcache_statistics)
12947 (print_objfile_statistics): Update.
12948 * symfile.c (allocate_symtab): Use intern.
12949 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12950 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12951 macro_cache>: Remove.
12952 <string_cache>: New member.
12953 (struct objfile) <intern>: New methods.
12954 * elfread.c (elf_symtab_read): Use intern.
12955 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12956 (dwarf2_compute_name, dwarf2_physname)
12957 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12958 names.
12959 (guess_partial_die_structure_name): Update.
12960 (partial_die_info::fixup): Intern name.
12961 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12962 name.
12963 (dwarf2_name): Intern name. Update.
12964 * buildsym.c (buildsym_compunit::get_macro_table): Use
12965 string_cache.
12966
4e7625fd
TT
129672020-03-04 Tom Tromey <tom@tromey.com>
12968
12969 * jit.c (bfd_open_from_target_memory): Make "target" const.
12970 * corefile.c (gnutarget): Now const.
12971 * gdbcore.h (gnutarget): Now const.
12972
46f9f931
HD
129732020-03-04 Hannes Domani <ssbssa@yahoo.de>
12974
12975 * NEWS: Mention support for WOW64 processes.
12976 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12977 (amd64_windows_segment_register_p): Remove static.
12978 (_initialize_amd64_windows_nat): Update.
12979 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12980 * i386-windows-nat.c (context_offset): Update.
12981 (i386_mappings): Rename and remove static.
12982 (i386_windows_segment_register_p): Remove static.
12983 (_initialize_i386_windows_nat): Update.
12984 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12985 (STATUS_WX86_SINGLE_STEP): New macro.
12986 (EnumProcessModulesEx): New macro.
12987 (Wow64SuspendThread): New macro.
12988 (Wow64GetThreadContext): New macro.
12989 (Wow64SetThreadContext): New macro.
12990 (Wow64GetThreadSelectorEntry): New macro.
12991 (windows_set_context_register_offsets): Add static.
12992 (windows_set_segment_register_p): Likewise.
12993 (windows_add_thread): Adapt for WOW64 processes.
12994 (windows_fetch_one_register): Likewise.
12995 (windows_nat_target::fetch_registers): Likewise.
12996 (windows_store_one_register): Likewise.
12997 (display_selector): Likewise.
12998 (display_selectors): Likewise.
12999 (handle_exception): Likewise.
13000 (windows_continue): Likewise.
13001 (windows_nat_target::resume): Likewise.
13002 (windows_add_all_dlls): Likewise.
13003 (do_initial_windows_stuff): Likewise.
13004 (windows_nat_target::attach): Likewise.
13005 (windows_get_exec_module_filename): Likewise.
13006 (windows_nat_target::create_inferior): Likewise.
13007 (windows_xfer_siginfo): Likewise.
13008 (_initialize_loadable): Initialize Wow64SuspendThread,
13009 Wow64GetThreadContext, Wow64SetThreadContext,
13010 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13011 * windows-nat.h (windows_set_context_register_offsets):
13012 Remove declaration.
13013 (windows_set_segment_register_p): Likewise.
13014 (i386_windows_segment_register_p): Add declaration.
13015 (amd64_windows_segment_register_p): Likewise.
13016
440cf44e
LM
130172020-03-04 Luis Machado <luis.machado@linaro.org>
13018
13019 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13020 in "info registers" for AArch64/ARM.
13021
13022 The change caused "info registers" to not print GPR's.
13023
13024 gdb/ChangeLog:
13025
13026 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13027
13028 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13029 when reg->group is empty and reggroup is not.
13030
1009d92f
TT
130312020-03-03 Tom Tromey <tromey@adacore.com>
13032
13033 * dwarf2/frame.c (struct dwarf2_frame_cache)
13034 <checked_tailcall_bottom, entry_cfa_sp_offset,
13035 entry_cfa_sp_offset_p>: Remove members.
13036 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13037 (dwarf2_frame_prev_register): Don't call
13038 dwarf2_tailcall_sniffer_first.
13039 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13040 * frame-unwind.c (add_unwinder): New fuction.
13041 (frame_unwind_init): Use it. Add tailcall unwinder.
13042
5e5d66b6
AB
130432020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13044 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13045
13046 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13047 value should be printed as true.
13048
584cf46d
HD
130492020-03-03 Hannes Domani <ssbssa@yahoo.de>
13050
13051 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13052 (windows_init_abi): Set and use windows_so_ops.
13053
7b973adc
SDJ
130542020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13055
13056 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13057 when verifying if dealing with a convenience variable.
13058
bb7b70ab
LM
130592020-03-03 Luis Machado <luis.machado@linaro.org>
13060
13061 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13062
9822cb57
SM
130632020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13064
13065 * infrun.c (gdbarch_supports_displaced_stepping): New.
13066 (use_displaced_stepping): Break up conditions in smaller pieces.
13067 Use gdbarch_supports_displaced_stepping.
13068 (displaced_step_prepare_throw): Use
13069 gdbarch_supports_displaced_stepping.
13070
63e163f2
AB
130712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13072
13073 * NEWS: Mention new behaviour of the history filename.
13074 * top.c (write_history_p): Add comment.
13075 (show_write_history_p): Add header comment, give a different
13076 message when history writing is on, but the history filename is
13077 empty.
13078 (history_filename): Add comment.
13079 (history_filename_empty): New function.
13080 (show_history_filename): Add header comment, give a different
13081 message when the filename is empty.
13082 (init_history): Compare history_filename against nullptr, and only
13083 read history if the filename is not empty.
13084 (set_history_filename): Add header comment, and only make
13085 non-empty filenames absolute.
13086 (init_main): Make the filename argument to 'set history filename'
13087 optional.
13088
81b86b97
CB
130892020-03-02 Christian Biesinger <cbiesinger@google.com>
13090
13091 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13092 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13093 (fetch_fp_register): Update.
13094 (fetch_fp_regs): Update.
13095 (store_fp_register): Update.
13096 (store_fp_regs): Update.
13097 (arm_netbsd_nat_target::read_description): New function.
13098 (fetch_elfcore_registers): Update.
13099
24ed6739
AB
131002020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13101
13102 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13103 general_thread if the stop reply is missing a thread-id.
13104 (remote_target::process_stop_reply): Use the first non-exited
13105 thread if the target didn't pass a thread-id.
13106 * infrun.c (do_target_wait): Move call to
13107 switch_to_inferior_no_thread to ....
13108 (do_target_wait_1): ... here.
13109
a84bb2a0
JT
131102020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13111
13112 * debuginfod-support.c: Include defs.h first.
13113
658dadf0
TV
131142020-02-28 Tom de Vries <tdevries@suse.de>
13115
13116 * symfile.c (set_initial_language): Use default language for lookup.
13117
4ebe4877
SM
131182020-02-28 Simon Marchi <simon.marchi@efficios.com>
13119
13120 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13121 reader variable, pass `this` to read_cutu_die_from_dwo.
13122
e5da1139
AM
131232020-02-27 Aaron Merey <amerey@redhat.com>
13124
13125 * source.c (open_source_file): Check for nullptr when computing
13126 srcpath.
13127
317f7127
TT
131282020-02-27 Tom Tromey <tromey@adacore.com>
13129
13130 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13131 member.
13132 (dwarf2_add_field): Don't update nfields.
13133 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13134
3104d9ee
AB
131352020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13136
13137 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13138 abs.
13139
b83470bf
TT
131402020-02-26 Tom Tromey <tom@tromey.com>
13141
13142 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13143 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13144 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13145 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13146 per_cu_data.
13147
edfe0a0c
TT
131482020-02-26 Tom Tromey <tom@tromey.com>
13149
13150 * dwarf2/index-write.c (psym_index_map): Change type.
13151 (add_address_entry_worker, write_one_signatured_type)
13152 (recursively_count_psymbols, recursively_write_psymbols)
13153 (class debug_names, psyms_seen_size, write_gdbindex)
13154 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13155
0d79cdc4
AM
131562020-02-26 Aaron Merey <amerey@redhat.com>
13157
13158 * Makefile.in: Handle optional debuginfod support.
13159 * NEWS: Update.
13160 * README: Add --with-debuginfod summary.
13161 * config.in: Regenerate.
13162 * configure: Regenerate.
13163 * configure.ac: Handle optional debuginfod support.
13164 * debuginfod-support.c: debuginfod helper functions.
13165 * debuginfod-support.h: Ditto.
13166 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13167 summary.
13168 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13169 when a dwz file cannot be found.
13170 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13171 debuginfo file cannot be found.
13172 * source.c (open_source_file): Query debuginfod servers when a
13173 source file cannot be found.
13174 * top.c (print_gdb_configuration): Include
13175 --{with,without}-debuginfod in the output.
13176
b65ce565
JG
131772020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13178
13179 * thread.c (thr_try_catch_cmd): Print thread name.
13180
d4c9a4f8
SM
131812020-02-26 Simon Marchi <simon.marchi@efficios.com>
13182
13183 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13184 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13185 dwarf2_fetch_die_type_sect_off): Move to...
13186 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13187 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13188 dwarf2_fetch_die_type_sect_off): ... here.
13189 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13190 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13191 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13192
0dce4280
TV
131932020-02-26 Tom de Vries <tdevries@suse.de>
13194
13195 PR gdb/25603
13196 * symfile.c (set_initial_language): Exit-early if
13197 language_mode == language_mode_manual.
13198
450a1bfc
SM
131992020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13200
13201 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13202 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13203 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13204
9e80cfa1
AB
132052020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13206
13207 * gdbtypes.c (create_array_type_with_stride): Handle negative
13208 array strides.
13209 * valarith.c (value_subscripted_rvalue): Likewise.
13210
09624f1f
LM
132112020-02-25 Luis Machado <luis.machado@linaro.org>
13212
13213 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13214
8cb5117c
SM
132152020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13216
13217 * loc.h (dwarf2_get_die_type): Move to...
13218 * read.h (dwarf2_get_die_type): ... here.
13219 * read.c (dwarf2_get_die_type): Move doc to header.
13220
c325c44e
JB
132212020-02-25 Joel Brobecker <brobecker@adacore.com>
13222
13223 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13224 'gnulib/Makefile.in' to the list.
13225
4ac93832
TT
132262020-02-24 Tom Tromey <tom@tromey.com>
13227
13228 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13229 Remove.
13230 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13231 XOBNEWVEC.
13232
197400e8
TT
132332020-02-24 Tom Tromey <tom@tromey.com>
13234
13235 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13236 New method.
13237 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13238 (dw2_do_instantiate_symtab, dw2_get_file_names)
13239 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13240
76935768
TT
132412020-02-24 Tom Tromey <tom@tromey.com>
13242
13243 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13244 make_scoped_restore.
13245 (dwarf2_psymtab::read_symtab): Don't clear
13246 reading_partial_symbols.
13247
a88ef40d
TV
132482020-02-24 Tom de Vries <tdevries@suse.de>
13249
13250 PR gdb/25592
13251 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13252
c9af6521
TV
132532020-02-24 Tom de Vries <tdevries@suse.de>
13254
13255 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13256 commands layout next/prev/regs.
13257
5707a07a
TT
132582020-02-22 Tom Tromey <tom@tromey.com>
13259
13260 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13261 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13262
3b0fb49e
TT
132632020-02-22 Tom Tromey <tom@tromey.com>
13264
13265 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13266
283be8bf
TT
132672020-02-22 Tom Tromey <tom@tromey.com>
13268
13269 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13270 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13271 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13272 * tui/tui.c (_initialize_tui): Add usage text.
13273
ca793b96
TT
132742020-02-22 Tom Tromey <tom@tromey.com>
13275
13276 * tui/tui-win.c (tui_set_focus_command)
13277 (tui_set_win_height_command): Use error_no_arg.
13278 (_initialize_tui_win): Update help text.
13279 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13280
432b5c40
TT
132812020-02-22 Tom Tromey <tom@tromey.com>
13282
13283 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13284 * tui/tui-disasm.h (struct tui_disasm_window)
13285 <display_start_addr>: Declare.
13286 * tui/tui-source.h (struct tui_source_window)
13287 <display_start_addr>: Declare.
13288 * tui/tui-winsource.h (struct tui_source_window_base)
13289 <show_source_line, display_start_addr>: New methods.
13290 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13291 Rename and move to protected section.
13292 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13293 (tui_source_window_base::do_erase_source_content): Update.
13294 (tui_source_window_base::show_source_line): Now a method.
13295 (tui_source_window_base::show_source_content)
13296 (tui_source_window_base::tui_source_window_base)
13297 (tui_source_window_base::rerender)
13298 (tui_source_window_base::refill)
13299 (tui_source_window_base::do_scroll_horizontal)
13300 (tui_source_window_base::set_is_exec_point_at)
13301 (tui_source_window_base::update_breakpoint_info)
13302 (tui_source_window_base::update_exec_info): Update.
13303 * tui/tui-source.c (tui_source_window::set_contents)
13304 (tui_source_window::showing_source_p)
13305 (tui_source_window::do_scroll_vertical)
13306 (tui_source_window::location_matches_p)
13307 (tui_source_window::line_is_displayed): Update.
13308 (tui_source_window::display_start_addr): New method.
13309 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13310 (tui_disasm_window::do_scroll_vertical)
13311 (tui_disasm_window::location_matches_p): Update.
13312 (tui_disasm_window::display_start_addr): New method.
13313
01b1af32
TT
133142020-02-22 Tom Tromey <tom@tromey.com>
13315
13316 * NEWS: Add entry for gdb.register_window_type.
13317 * tui/tui-layout.h (window_factory): New typedef.
13318 (tui_register_window): Declare.
13319 * tui/tui-layout.c (saved_tui_windows): New global.
13320 (tui_apply_current_layout): Use it.
13321 (tui_register_window): New function.
13322 * python/python.c (do_start_initialization): Call
13323 gdbpy_initialize_tui.
13324 (python_GdbMethods): Add "register_window_type" function.
13325 * python/python-internal.h (gdbpy_register_tui_window)
13326 (gdbpy_initialize_tui): Declare.
13327 * python/py-tui.c: New file.
13328 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13329
fc96d20b
TT
133302020-02-22 Tom Tromey <tom@tromey.com>
13331
13332 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13333
935c78c0
TT
133342020-02-22 Tom Tromey <tom@tromey.com>
13335
13336 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13337 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13338 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13339 (tui_set_win_focus_to): Move from tui-win.c.
13340
0240c8f1
TT
133412020-02-22 Tom Tromey <tom@tromey.com>
13342
13343 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13344 functions.
13345 (known_window_types): New global.
13346 (tui_get_window_by_name): Reimplement.
13347 (initialize_known_windows): New function.
13348 (validate_window_name): Rewrite.
13349 (_initialize_tui_layout): Call initialize_known_windows.
13350
fdb01f0c
TT
133512020-02-22 Tom Tromey <tom@tromey.com>
13352
13353 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13354 Remove constants.
13355 * tui/tui-winsource.h (struct tui_source_window_base)
13356 <tui_source_window_base>: Remove parameter.
13357 * tui/tui-winsource.c
13358 (tui_source_window_base::tui_source_window_base): Remove
13359 parameter.
13360 (tui_source_window_base::refill): Update.
13361 * tui/tui-stack.h (struct tui_locator_window)
13362 <tui_locator_window>: Update.
13363 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13364 Default the constructor.
13365 * tui/tui-regs.h (struct tui_data_item_window)
13366 <tui_data_item_window>: Default the constructor.
13367 (struct tui_data_window) <tui_data_window>: Likewise.
13368 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13369 Default the constructor.
13370 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13371 Default the constructor.
13372 <type>: Remove.
13373 (struct tui_win_info) <tui_win_info>: Default the constructor.
13374 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13375 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13376 Default the constructor.
13377
865a5aec
TT
133782020-02-22 Tom Tromey <tom@tromey.com>
13379
13380 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13381 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13382 * tui/tui-win.c (tui_resize_all): Don't call
13383 tui_delete_invisible_windows.
13384 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13385 done.
13386 (tui_set_layout): Update.
13387 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13388 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13389 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13390
e098d18c
TT
133912020-02-22 Tom Tromey <tom@tromey.com>
13392
13393 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13394 correctly.
13395
eb9c8874
TT
133962020-02-22 Tom Tromey <tom@tromey.com>
13397
13398 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13399
7eed1a8e
TT
134002020-02-22 Tom Tromey <tom@tromey.com>
13401
13402 * tui/tui-winsource.h (struct tui_source_window_iterator)
13403 <inner_iterator>: New etytypedef.
13404 <tui_source_window_iterator>: Take "end" parameter.
13405 <tui_source_window_iterator>: Take iterator.
13406 <operator*, advance>: Update.
13407 <m_iter>: Change type.
13408 <m_end>: New field.
13409 (struct tui_source_windows) <begin, end>: Update.
13410 * tui/tui-layout.c (tui_windows): New global.
13411 (tui_apply_current_layout): Clear tui_windows.
13412 (tui_layout_window::apply): Update tui_windows.
13413 * tui/tui-data.h (tui_windows): Declare.
13414 (all_tui_windows): Now inline function.
13415 (class tui_window_iterator, struct all_tui_windows): Remove.
13416
7c043ba6
TT
134172020-02-22 Tom Tromey <tom@tromey.com>
13418
13419 PR tui/17850:
13420 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13421 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13422 "height" argument.
13423 (class tui_layout_window) <get_sizes>: Likewise.
13424 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13425 argument.
13426 <get_sizes>: Add "height" argument.
13427 <m_vertical>: New field.
13428 * tui/tui-layout.c (tui_layout_split::clone): Update.
13429 (tui_layout_split::get_sizes): Add "height" argument.
13430 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13431 (tui_new_layout_command): Parse "-horizontal".
13432 (_initialize_tui_layout): Update help string.
13433 (tui_layout_split::specification): Add "-horizontal" when needed.
13434 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13435 argument.
13436 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13437 New methods.
13438
6bc56648
TT
134392020-02-22 Tom Tromey <tom@tromey.com>
13440
13441 * tui/tui-layout.h (enum tui_adjust_result): New.
13442 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13443 (class tui_layout_window) <adjust_size>: Return
13444 tui_adjust_result. Rewrite.
13445 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13446 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13447
c22fef7e
TT
134482020-02-22 Tom Tromey <tom@tromey.com>
13449
13450 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13451 parameter and return types.
13452 (class tui_layout_base) <specification>: Add "depth".
13453 (class tui_layout_window) <specification>: Add "depth".
13454 (class tui_layout_split) <specification>: Add "depth".
13455 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13456 and return types.
13457 (tui_new_layout_command): Parse sub-layouts.
13458 (_initialize_tui_layout): Update help string.
13459 (tui_layout_window::specification): Add "depth".
13460 (add_layout_command): Update.
13461
ee325b61
TT
134622020-02-22 Tom Tromey <tom@tromey.com>
13463
13464 * NEWS: Add "tui new-layout" item.
13465 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13466 Add new-layout command to help text.
13467 (validate_window_name): New function.
13468 (tui_new_layout_command): New function.
13469 (_initialize_tui_layout): Register "new-layout".
13470 (tui_layout_window::specification): New method.
13471 (tui_layout_window::specification): New method.
13472 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13473 method.
13474 (class tui_layout_window) <specification>: New method.
13475 (class tui_layout_split) <specification>: New method.
13476
416eb92d
TT
134772020-02-22 Tom Tromey <tom@tromey.com>
13478
13479 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13480 * tui/tui-win.c (window_name_completer): Update comment.
13481 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13482 Declare method.
13483 (class tui_layout_window) <replace_window>: Likewise.
13484 (class tui_layout_split) <replace_window>: Likewise.
13485 (tui_set_layout): Don't declare.
13486 (tui_set_initial_layout): Declare function.
13487 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13488 (asm_regs_layout): New globals.
13489 (tui_current_layout, show_layout): Remove.
13490 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13491 (find_layout, tui_apply_layout): New function.
13492 (layout_completer): Remove.
13493 (tui_next_layout): Reimplement.
13494 (tui_next_layout_command): New function.
13495 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13496 (tui_regs_layout): Reimplement.
13497 (tui_regs_layout_command): New function.
13498 (extract_display_start_addr): Rewrite.
13499 (next_layout, prev_layout): Remove.
13500 (tui_layout_window::replace_window): New method.
13501 (tui_layout_split::replace_window): New method.
13502 (destroy_layout): New function.
13503 (layout_list): New global.
13504 (add_layout_command): New function.
13505 (initialize_layouts): Update.
13506 (tui_layout_command): New function.
13507 (_initialize_tui_layout): Install "layout" commands.
13508 * tui/tui-data.h (enum tui_layout_type): Remove.
13509 (tui_current_layout): Don't declare.
13510
0dbc2fc7
TT
135112020-02-22 Tom Tromey <tom@tromey.com>
13512
13513 * tui/tui-regs.c (tui_reg_layout): Remove.
13514 (tui_reg_command): Use tui_regs_layout.
13515 * tui/tui-layout.h (tui_reg_command): Declare.
13516 * tui/tui-layout.c (tui_reg_command): New function.
13517
5afe342e
TT
135182020-02-22 Tom Tromey <tom@tromey.com>
13519
13520 * tui/tui.c (tui_rl_delete_other_windows): Call
13521 tui_remove_some_windows.
13522 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13523 Declare method.
13524 (class tui_layout_window) <remove_windows>: New method.
13525 (class tui_layout_split) <remove_windows>: Declare.
13526 (tui_remove_some_windows): Declare.
13527 * tui/tui-layout.c (tui_remove_some_windows): New function.
13528 (tui_layout_split::remove_windows): New method.
13529
427326a8
TT
135302020-02-22 Tom Tromey <tom@tromey.com>
13531
13532 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13533 * tui/tui-layout.h (tui_next_layout): Declare.
13534 * tui/tui-layout.c (tui_next_layout): New function.
13535
3fe12b6d
TT
135362020-02-22 Tom Tromey <tom@tromey.com>
13537
13538 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13539 correct coordinates.
13540
59b8b5d2
TT
135412020-02-22 Tom Tromey <tom@tromey.com>
13542
13543 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13544 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13545 DATA_WIN case.
13546
2a3d458b
TT
135472020-02-22 Tom Tromey <tom@tromey.com>
13548
13549 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13550 TUI_DISASM_WIN, not tui_win_list.
13551
3f0cbb04
TT
135522020-02-22 Tom Tromey <tom@tromey.com>
13553
13554 * valprint.c (generic_val_print_enum_1)
13555 (val_print_type_code_flags): Style member names.
13556 * rust-lang.c (val_print_struct, rust_print_enum)
13557 (rust_print_struct_def, rust_internal_print_type): Style member
13558 names.
13559 * p-valprint.c (pascal_object_print_value_fields): Style member
13560 names. Only call fprintf_symbol_filtered for static members.
13561 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13562 * f-valprint.c (f_val_print): Style member names.
13563 * f-typeprint.c (f_type_print_base): Style member names.
13564 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13565 call fprintf_symbol_filtered for static members.
13566 (cp_print_class_member): Style member names.
13567 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13568 member names.
13569 * ada-valprint.c (ada_print_scalar): Style enum names.
13570 (ada_val_print_enum): Likewise.
13571 * ada-typeprint.c (print_enum_type): Style enum names.
13572
d4d947ae
TT
135732020-02-21 Tom Tromey <tom@tromey.com>
13574
13575 * psympriv.h (struct partial_symtab): Update comment.
13576
e94e944b
TT
135772020-02-21 Tom Tromey <tromey@adacore.com>
13578
13579 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13580 type is CORE_ADDR.
13581
1eb73179
TV
135822020-02-21 Tom de Vries <tdevries@suse.de>
13583
13584 PR gdb/25534
13585 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13586 if dependencies[i]->user != NULL.
13587
4f180d53
AT
135882020-02-21 Ali Tamur <tamur@google.com>
13589
13590 * dwarf2/read.c (dwarf2_name): Add null check.
13591
22b6cd70
TT
135922020-02-20 Tom Tromey <tom@tromey.com>
13593
13594 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13595 ">=", in binary search.
13596 (dwarf2_find_containing_comp_unit): New overload.
13597 (run_test): New self-test.
13598 (_initialize_dwarf2_read): Register new test.
13599
bd0cf5a6
NC
136002020-02-20 Nelson Chu <nelson.chu@sifive.com>
13601
13602 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13603 * riscv-tdep.h: Likewise.
13604 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13605 rv32-only CSR.
13606 * features/riscv/64bit-csr.xml: Regenerated.
13607
3f702acd
SDJ
136082020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13609 Tom Tromey <tom@tromey.com>
13610
13611 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13612 of 'fputc_unfiltered'.
13613 (putchar_unfiltered): Call 'fputc_unfiltered'.
13614 (fputc_unfiltered): Call 'fputs_unfiltered'.
13615
d13c7322
AB
136162020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13617
13618 * config.in: Regenerate.
13619 * configure: Regenerate.
13620 * configure.ac: Add --with-python-libdir option.
13621 * main.c: Use WITH_PYTHON_LIBDIR.
13622
869d8950
TT
136232020-02-19 Tom Tromey <tom@tromey.com>
13624
13625 * symtab.c (general_symbol_info::compute_and_set_names): Use
13626 obstack_strndup. Simplify call to symbol_set_demangled_name.
13627
298e9637
SM
136282020-02-19 Simon Marchi <simon.marchi@efficios.com>
13629
13630 * dwarf2/read.c (allocate_signatured_type_table,
13631 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13632 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13633 Remove objfile parameter, update all callers.
13634
08410482
DE
136352020-02-19 Doug Evans <dje@google.com>
13636
13637 PR rust/25535
13638 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13639 rust_enum_variant calculation.
13640
dfdeeca1
TT
136412020-02-19 Tom Tromey <tromey@adacore.com>
13642
13643 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13644
2ef5453b
TT
136452020-02-19 Tom Tromey <tromey@adacore.com>
13646
13647 * ada-lang.c (cache_symbol): Use obstack_strdup.
13648
9f1528a1
AB
136492020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13650
13651 * configure: Regenerate.
13652
d3c22fa8
TT
136532020-02-19 Tom Tromey <tromey@adacore.com>
13654
13655 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13656 NULL check.
13657
bf84f706
MR
136582020-02-19 Maciej W. Rozycki <macro@wdc.com>
13659
13660 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13661
d1c9b20f
AB
136622020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13663
13664 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13665 if GDBSERVER is not defined.
13666 (riscv_tdesc_cache): Likewise, also store const target_desc.
13667 (STATIC_IN_GDB): Define.
13668 (riscv_create_target_description): Update declaration with
13669 STATIC_IN_GDB.
13670 (riscv_lookup_target_description): New function, only define if
13671 GDBSERVER is not defined.
13672 * arch/riscv.h (riscv_create_target_description): Declare only
13673 when GDBSERVER is defined.
13674 (riscv_lookup_target_description): New declaration when GDBSERVER
13675 is not defined.
13676 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13677 (riscv_linux_read_features): ...this, and return
13678 riscv_gdbarch_features instead of target_desc.
13679 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13680 (riscv_linux_read_description): Rename to...
13681 (riscv_linux_read_features): ...this.
13682 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13683 Update to use riscv_gdbarch_features and
13684 riscv_lookup_target_description.
13685 * riscv-tdep.c (riscv_find_default_target_description): Use
13686 riscv_lookup_target_description instead of
13687 riscv_create_target_description.
13688
373d7ac0
SM
136892020-02-18 Simon Marchi <simon.marchi@efficios.com>
13690
13691 * valprint.c (generic_val_print_enum_1): When printing a flag
13692 enum with value 0 and there is no enumerator with value 0, print
13693 just "0" instead of "(unknown: 0x0)".
13694
b29a2df0
SM
136952020-02-18 Simon Marchi <simon.marchi@efficios.com>
13696
13697 * valprint.c (generic_val_print_enum_1): Print unknown part of
13698 flag enum in hex.
13699
6740f0cc
SM
137002020-02-18 Simon Marchi <simon.marchi@efficios.com>
13701
13702 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13703 flag enums to contain duplicate enumerators.
13704 * valprint.c (generic_val_print_enum_1): Update comment.
13705
edd45eb0
SM
137062020-02-18 Simon Marchi <simon.marchi@efficios.com>
13707
13708 * dwarf2/read.c: Include "count-one-bits.h".
13709 (update_enumeration_type_from_children): If an enumerator has
13710 multiple bits set, don't treat the enumeration as a "flag enum".
13711 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13712 of flag enums have 0 or 1 bit set.
13713
6d0cf446
BE
137142020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13715
13716 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13717 conversion.
13718 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13719 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13720 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13721 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13722 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13723
7001c1b7
SM
137242020-02-18 Simon Marchi <simon.marchi@efficios.com>
13725
13726 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13727
fdb61c6c
SM
137282020-02-14 Simon Marchi <simon.marchi@efficios.com>
13729
13730 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13731 displaced_step_closure_up.
13732 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13733 (struct displaced_step_closure_up):
13734 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13735 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13736 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13737 Likewise.
13738 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13739 * gdbarch.c, gdbarch.h: Re-generate.
13740 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13741 displaced_step_closure_up.
13742 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13743 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13744 * infrun.h (displaced_step_closure_up): New type alias.
13745 (struct displaced_step_inferior_state) <step_closure>: Change
13746 type to displaced_step_closure_up.
13747 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13748 displaced_step_closure_up.
13749 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13750
a4a38eb4
TT
137512020-02-14 Tom Tromey <tom@tromey.com>
13752
13753 * minidebug.c (gnu_debug_key): New global.
13754 (find_separate_debug_file_in_section): Use it.
13755
e8217e61
SM
137562020-02-14 Simon Marchi <simon.marchi@efficios.com>
13757
13758 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13759 std::unique_ptr.
13760 * gdbarch.c: Re-generate.
13761 * gdbarch.h: Re-generate.
13762 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13763 change.
13764 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13765 type to std::unique_ptr.
13766 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13767 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13768 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13769 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13770 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13771 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13772 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13773 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13774 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13775
d8d83535
SM
137762020-02-14 Simon Marchi <simon.marchi@efficios.com>
13777
13778 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13779 std::unique_ptr.
13780 (displaced_step_clear): Rename to...
13781 (displaced_step_reset): ... this. Just call displaced->reset ().
13782 (displaced_step_clear_cleanup): Rename to...
13783 (displaced_step_reset_cleanup): ... this.
13784 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13785 (displaced_step_fixup): Likewise.
13786 (resume_1): Likewise.
13787 (handle_inferior_event): Restore child's memory before calling
13788 displaced_step_fixup on the parent.
13789 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13790 to std::unique_ptr.
13791 <step_closure>: Change type to std::unique_ptr.
13792
5f661e03
SM
137932020-02-14 Simon Marchi <simon.marchi@efficios.com>
13794
13795 * arm-tdep.c: Include count-one-bits.h.
13796 (cleanup_block_store_pc): Use count_one_bits.
13797 (cleanup_block_load_pc): Use count_one_bits.
13798 (arm_copy_block_xfer): Use count_one_bits.
13799 (thumb2_copy_block_xfer): Use count_one_bits.
13800 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13801 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13802 (thumb_get_next_pcs_raw): Use count_one_bits.
13803 (arm_get_next_pcs_raw): Use count_one_bits_l.
13804 * arch/arm.c (bitcount): Remove.
13805 * arch/arm.h (bitcount): Remove.
13806
8084e579
TT
138072020-02-14 Tom Tromey <tromey@adacore.com>
13808
13809 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13810 Update.
13811 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13812 * dwarf2/loc.c (call_site_find_chain_1): Return
13813 unique_xmalloc_ptr.
13814 (call_site_find_chain): Likewise.
13815
258bf0ee
RB
138162020-02-14 Richard Biener <rguenther@suse.de>
13817
13818 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13819 on expression with division operators.
13820
f98a8458
AKS
138212020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13822
13823 * MAINTAINERS (Write After Approval): Adding myself.
13824
d1437c0e
TT
138252020-02-12 Tom Tromey <tom@tromey.com>
13826
13827 * event-loop.c (event_data, gdb_event, event_handler_func):
13828 Remove.
13829
3d4560f7
TT
138302020-02-12 Tom Tromey <tom@tromey.com>
13831
13832 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13833 (dwarf2_frame_objfile_data): Add comment.
13834 (find_comp_unit, set_comp_unit): New functions.
13835 (dwarf2_frame_find_fde): Use find_comp_unit.
13836 (dwarf2_build_frame_info): Use set_comp_unit.
13837
21982304
TT
138382020-02-12 Tom Tromey <tom@tromey.com>
13839
13840 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13841 (comp_unit): Don't initialize objfile.
13842 (execute_cfa_program): Add text_offset parameter.
13843 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13844 (dwarf2_frame_cache): Update.
13845 (dwarf2_build_frame_info): Don't set "objfile" member.
13846
4debb237
TT
138472020-02-12 Tom Tromey <tom@tromey.com>
13848
13849 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13850 (decode_frame_entry): Likewise.
13851 (dwarf2_build_frame_info): Update.
13852
0d404d44
TT
138532020-02-12 Tom Tromey <tom@tromey.com>
13854
13855 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13856 (decode_frame_entry_1): Use the comp_unit obstack.
13857
a7a3ae5c
TT
138582020-02-12 Tom Tromey <tom@tromey.com>
13859
13860 * dwarf2/frame.c (struct comp_unit): Add initializers and
13861 constructor.
13862 (dwarf2_frame_objfile_data): Store a comp_unit.
13863 (dwarf2_frame_find_fde): Update.
13864 (dwarf2_build_frame_info): Use "new".
13865
a9d65418
TT
138662020-02-12 Tom Tromey <tom@tromey.com>
13867
13868 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13869 (dwarf2_fde_table): Typedef for std::vector.
13870 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13871 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13872 (decode_frame_entry): Update.
13873 (dwarf2_build_frame_info): Use "new".
13874
7559c217
CB
138752020-02-12 Christian Biesinger <cbiesinger@google.com>
13876
13877 * arm-tdep.c (arm_gdbarch_init): Update.
13878 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13879 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13880 have_neon, is_m>: Change to bool.
13881
aeefc73c
CB
138822020-02-12 Christian Biesinger <cbiesinger@google.com>
13883
13884 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13885
d27b8e5f
TT
138862020-02-12 Tom Tromey <tom@tromey.com>
13887
13888 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13889
cd5900f3
HD
138902020-02-12 Hannes Domani <ssbssa@yahoo.de>
13891
13892 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13893 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13894
f056b22b
TT
138952020-02-11 Tom Tromey <tom@tromey.com>
13896
13897 * psymtab.h: Update comment.
13898
f92ff6b5
TT
138992020-02-11 Tom Tromey <tom@tromey.com>
13900
13901 * gdb_obstack.h (struct auto_obstack): Use
13902 DISABLE_COPY_AND_ASSIGN.
13903
3fd6912b
TT
139042020-02-11 Tom Tromey <tom@tromey.com>
13905
13906 * dwarf2/frame.h (struct objfile): Don't forward declare.
13907
69ed9b74
CB
139082020-02-11 Christian Biesinger <cbiesinger@google.com>
13909
13910 * cris-tdep.c (cris_supply_gregset): Change signature to match
13911 what struct regset expects.
13912 (cris_regset): New struct.
13913 (fetch_core_registers): Remove.
13914 (cris_iterate_over_regset_sections): New function.
13915 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13916 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13917
bda874f6
CB
139182020-02-11 Christian Biesinger <cbiesinger@google.com>
13919
13920 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13921 registers.
13922
754e1564
CB
139232020-02-11 Christian Biesinger <cbiesinger@google.com>
13924
13925 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13926
8ddd8e0e
SM
139272020-02-11 Simon Marchi <simon.marchi@efficios.com>
13928
13929 * configure: Re-generate.
13930
898e7f60
SM
139312020-02-11 Simon Marchi <simon.marchi@efficios.com>
13932
13933 * configure: Re-generate.
13934
58df732b
SM
139352020-02-11 Simon Marchi <simon.marchi@efficios.com>
13936
13937 * acinclude: Update warning.m4 path.
13938 * warning.m4: Move to gdbsupport.
13939
da5bd37e
TT
139402020-02-11 Tom Tromey <tromey@adacore.com>
13941
13942 * remote.c (remote_console_output): Update.
13943 * printcmd.c (printf_command): Update.
13944 * event-loop.c (gdb_wait_for_event): Update.
13945 * linux-nat.c (sigchld_handler): Update.
13946 * remote-sim.c (gdb_os_write_stdout): Update.
13947 (gdb_os_flush_stdout): Update.
13948 (gdb_os_flush_stderr): Update.
13949 (gdb_os_write_stderr): Update.
13950 * exceptions.c (print_exception): Update.
13951 * remote-fileio.c (remote_fileio_func_read): Update.
13952 (remote_fileio_func_write): Update.
13953 * tui/tui.c (tui_enable): Update.
13954 * tui/tui-interp.c (tui_interp::init): Update.
13955 * utils.c (init_page_info): Update.
13956 (putchar_unfiltered, fputc_unfiltered): Update.
13957 (gdb_flush): Update.
13958 (emit_style_escape): Update.
13959 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13960 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13961 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13962 (stderr_file::write): Update.
13963 (stderr_file::puts): Update.
13964 * ui-file.h (ui_file_isatty, ui_file_write)
13965 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13966 (ui_file_puts): Don't declare.
13967
85f0dd3c
TV
139682020-02-10 Tom de Vries <tdevries@suse.de>
13969
13970 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13971 sentinel to char *.
13972
2e927613
TV
139732020-02-09 Tom de Vries <tdevries@suse.de>
13974
13975 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13976 filename if it matches "<artificial>".
13977
6bafc845
HD
139782020-02-09 Hannes Domani <ssbssa@yahoo.de>
13979
13980 * windows-tdep.c (struct enum_value_name): New struct.
13981 (create_enum): New function.
13982 (windows_get_siginfo_type): Create and use enum types.
13983
7928d571
HD
139842020-02-09 Hannes Domani <ssbssa@yahoo.de>
13985
13986 * NEWS: Mention $_siginfo support for Windows.
13987 * windows-nat.c (handle_exception): Set siginfo_er.
13988 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13989 (windows_xfer_siginfo): New function.
13990 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13991 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13992 (init_windows_gdbarch_data): New function.
13993 (get_windows_gdbarch_data): New function.
13994 (windows_get_siginfo_type): New function.
13995 (windows_init_abi): Register windows_get_siginfo_type.
13996 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13997
6751ebae
TT
139982020-02-08 Tom Tromey <tom@tromey.com>
13999
14000 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14001 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14002 <keep>: Declare method.
14003 <m_keep>: Remove member.
14004 <~cutu_reader>: Remove.
14005 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14006 (cutu_reader::cutu_reader): Update.
14007 (cutu_reader::keep): Rename from ~cutu_reader.
14008 (process_psymtab_comp_unit, build_type_psymtabs_1)
14009 (process_skeletonless_type_unit, load_partial_comp_unit)
14010 (load_full_comp_unit, dwarf2_read_addr_index)
14011 (read_signatured_type): Update.
14012
135f5437
TT
140132020-02-08 Tom Tromey <tom@tromey.com>
14014
14015 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14016 "want_partial_unit" parameter.
14017 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14018 Inline check for DW_TAG_partial_unit.
14019 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14020
9f66ff1c
TT
140212020-02-08 Tom Tromey <tom@tromey.com>
14022
14023 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14024 read.c.
14025 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14026 read.c.
14027
c8a7a66f
TT
140282020-02-08 Tom Tromey <tom@tromey.com>
14029
14030 * dwarf2/read.c (read_address): Move to comp-unit.c.
14031 (dwarf2_rnglists_process, dwarf2_ranges_process)
14032 (read_attribute_value, dwarf_decode_lines_1)
14033 (var_decode_location, decode_locdesc): Update.
14034 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14035 read.c. Remove "cu" parameter.
14036 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14037 method.
14038
8266302d
TT
140392020-02-08 Tom Tromey <tom@tromey.com>
14040
14041 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14042 (read_indirect_line_string): Update.
14043 * dwarf2/comp-unit.c (read_offset): Remove.
14044 (read_comp_unit_head): Update.
14045 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14046 method.
14047 (read_offset): Don't declare.
14048
4057dfde
TT
140492020-02-08 Tom Tromey <tom@tromey.com>
14050
14051 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14052 * dwarf2/read.c (struct comp_unit_head): Move to
14053 dwarf2/comp-unit.h.
14054 (enum class rcuh_kind): Move to comp-unit.h.
14055 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14056 (read_comp_unit_head, error_check_comp_unit_head)
14057 (read_and_check_comp_unit_head): Move to comp-unit.c.
14058 (read_offset, dwarf_unit_type_name): Likewise.
14059 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14060 (cutu_reader::cutu_reader, read_call_site_scope)
14061 (find_partial_die, follow_die_offset): Update.
14062 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14063
24aa364d
TT
140642020-02-08 Tom Tromey <tom@tromey.com>
14065
14066 * dwarf2/read.c (read_offset_1): Move to leb.c.
14067 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14068 (dwarf_decode_macro_bytes): Update.
14069 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14070 * dwarf2/leb.h (read_offset): Declare.
14071
2c7d5afc
TT
140722020-02-08 Tom Tromey <tom@tromey.com>
14073
14074 * dwarf2/read.c (dwarf2_section_size): Remove.
14075 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14076 Update.
14077 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14078
4075cb26
TT
140792020-02-08 Tom Tromey <tom@tromey.com>
14080
14081 * dwarf2/read.c (read_initial_length): Move to leb.c.
14082 * dwarf2/leb.h (read_initial_length): Declare.
14083 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14084 handle_nonstd parameter.
14085 * dwarf2/frame.c (read_initial_length): Remove.
14086 (decode_frame_entry_1): Update.
14087
09ba997f
TT
140882020-02-08 Tom Tromey <tom@tromey.com>
14089
14090 * dwarf2/loc.c (dwarf2_find_location_expression)
14091 (dwarf_evaluate_loc_desc::get_tls_address)
14092 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14093 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14094 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14095 (dwarf2_compile_property_to_c)
14096 (dwarf2_loc_desc_get_symbol_read_needs)
14097 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14098 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14099 (loclist_describe_location, loclist_tracepoint_var_ref)
14100 (loclist_generate_c_location): Update.
14101 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14102 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14103 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14104 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14105 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14106 (dwarf2_per_cu_data::addr_size)
14107 (dwarf2_per_cu_data::ref_addr_size)
14108 (dwarf2_per_cu_data::text_offset)
14109 (dwarf2_per_cu_data::addr_type): Now methods.
14110 (per_cu_header_read_in): Make per_cu "const".
14111 (dwarf2_version): Remove.
14112 (dwarf2_per_cu_data::int_type): Now a method.
14113 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14114 (set_die_type, read_array_type, read_subrange_index_type)
14115 (read_tag_string_type, read_subrange_type): Update.
14116 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14117 offset_size, ref_addr_size, text_offset, addr_type, version,
14118 objfile, int_type, addr_sized_int_type>: Declare methods.
14119
96c738c0
TT
141202020-02-08 Tom Tromey <tom@tromey.com>
14121
14122 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14123 Move earlier.
14124
8fdd972c
TT
141252020-02-08 Tom Tromey <tom@tromey.com>
14126
14127 * dwarf2/read.h (dwarf_line_debug): Declare.
14128 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14129 * dwarf2/read.c: Move line_header code to new files.
14130 (dwarf_line_debug): No longer static.
14131 * dwarf2/line-header.c: New file.
14132 * dwarf2/line-header.h: New file.
14133
03075812
TT
141342020-02-08 Tom Tromey <tom@tromey.com>
14135
14136 * dwarf2/read.c (struct line_header) <file_full_name,
14137 file_file_name>: Return unique_xmalloc_ptr.
14138 (line_header::file_file_name): Update.
14139 (line_header::file_full_name): Update.
14140 (dw2_get_file_names_reader): Update.
14141 (macro_start_file): Update.
14142
bb822404
TT
141432020-02-08 Tom Tromey <tom@tromey.com>
14144
14145 * dwarf2/read.c (struct line_header) <file_full_name,
14146 file_file_name>: Declare methods.
14147 (dw2_get_file_names_reader): Update.
14148 (file_file_name): Now a method.
14149 (file_full_name): Likewise.
14150 (macro_start_file): Update.
14151
009b64fc
TT
141522020-02-08 Tom Tromey <tom@tromey.com>
14153
14154 * dwarf2/read.c (dwarf_always_disassemble)
14155 (show_dwarf_always_disassemble): Move to loc.c.
14156 (_initialize_dwarf2_read): Move "always-disassemble" registration
14157 to loc.c.
14158 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14159 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14160 static.
14161 (show_dwarf_always_disassemble): Move from read.c.
14162 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14163
5895093f
TT
141642020-02-08 Tom Tromey <tom@tromey.com>
14165
14166 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14167 (create_quick_file_names_table): Return htab_up.
14168 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14169 Update.
14170 * dwarf2/read.h (struct dwarf2_per_objfile)
14171 <quick_file_names_table>: Now htab_up.
14172
b3b32279
TT
141732020-02-08 Tom Tromey <tom@tromey.com>
14174
14175 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14176
1d33d811
TT
141772020-02-08 Tom Tromey <tom@tromey.com>
14178
14179 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14180 Rewrite.
14181 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14182 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14183 (abbrev_table::abbrev_table): No longer inline.
14184 (ABBREV_HASH_SIZE): Remove.
14185 (abbrev_table::m_abbrevs): Now an htab_up.
14186
86de1d91
TT
141872020-02-08 Tom Tromey <tom@tromey.com>
14188
14189 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14190 (cutu_reader): Update.
14191 (build_type_psymtabs_1): Update.
14192 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14193 (abbrev_table::alloc_abbrev): Update.
14194 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14195 (abbrev_table::read): New static method, renamed from
14196 abbrev_table_read_table.
14197 (abbrev_table::alloc_abbrev)
14198 (abbrev_table::add_abbrev): Now private.
14199 (abbrev_table::abbrev_table): Now private.
14200 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14201
0335378b
TT
142022020-02-08 Tom Tromey <tom@tromey.com>
14203
14204 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14205 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14206 htab_up.
14207
48b490f2
TT
142082020-02-08 Tom Tromey <tom@tromey.com>
14209
14210 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14211 htab_up.
14212 (lookup_dwo_unit_in_dwp): Update.
14213 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14214 on obstack.
14215
bc68fb19
TT
142162020-02-08 Tom Tromey <tom@tromey.com>
14217
14218 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14219 obstack.
14220
d15acc42
TT
142212020-02-08 Tom Tromey <tom@tromey.com>
14222
14223 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14224 line_header_hash.
14225 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14226 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14227 Change type to htab_up.
14228
eaa5fa8b
TT
142292020-02-08 Tom Tromey <tom@tromey.com>
14230
14231 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14232 htab_up. Don't allocate on obstack.
14233 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14234 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14235 Change type to htab_up.
14236
b0b6a987
TT
142372020-02-08 Tom Tromey <tom@tromey.com>
14238
14239 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14240 Change type to htab_up.
14241 * dwarf2/read.c (create_signatured_type_table_from_index)
14242 (create_signatured_type_table_from_debug_names)
14243 (create_all_type_units, add_type_unit)
14244 (lookup_dwo_signatured_type, lookup_signatured_type)
14245 (process_skeletonless_type_unit): Update.
14246 (create_debug_type_hash_table, create_debug_types_hash_table):
14247 Change type of types_htab.
14248 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14249 htab_up. Don't allocate on obstack.
14250 (create_cus_hash_table): Change type of cus_htab parameter.
14251 (struct dwo_file) <cus, tus>: Now htab_up.
14252 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14253 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14254 (queue_and_load_all_dwo_tus): Update.
14255 * dwarf2/index-write.c (write_gdbindex): Update.
14256 (write_debug_names): Update.
14257
39856def
TT
142582020-02-08 Tom Tromey <tom@tromey.com>
14259
14260 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14261 dwarf2/read.c. Remove "next" member. Add constructor ntad
14262 destructor.
14263 (struct dwarf2_per_objfile) <queue>: New member.
14264 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14265 dwarf2/read.h.
14266 (dwarf2_queue, dwarf2_queue_tail): Remove.
14267 (class dwarf2_queue_guard): Add parameter to constructor. Use
14268 DISABLE_COPY_AND_ASSIGN.
14269 <m_per_objfile>: New member.
14270 <~dwarf2_queue_guard>: Rewrite.
14271 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14272 Update.
14273 (~dwarf2_queue_item): New.
14274
3e225074
TT
142752020-02-08 Tom Tromey <tom@tromey.com>
14276
14277 * dwarf2/read.c (struct die_info) <has_children>: New member.
14278 (dw2_get_file_names_reader): Remove has_children.
14279 (dw2_get_file_names): Update.
14280 (read_cutu_die_from_dwo): Remove has_children.
14281 (cutu_reader::init_tu_and_read_dwo_dies)
14282 (cutu_reader::cutu_reader): Update.
14283 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14284 Remove has_children.
14285 (build_type_psymtabs_1, process_skeletonless_type_unit)
14286 (load_partial_comp_unit, load_full_comp_unit): Update.
14287 (create_dwo_cu_reader): Remove has_children.
14288 (create_cus_hash_table, read_die_and_children): Update.
14289 (read_full_die_1,read_full_die): Remove has_children.
14290 (read_signatured_type): Update.
14291 (class cutu_reader) <has_children>: Remove.
14292
82ca8957
TT
142932020-02-08 Tom Tromey <tom@tromey.com>
14294
14295 * dwarf2/expr.c: Rename from dwarf2expr.c.
14296 * dwarf2/expr.h: Rename from dwarf2expr.h.
14297 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14298 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14299 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14300 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14301 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14302 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14303 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14304 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14305 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14306 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14307 * dwarf2/loc.c: Rename from dwarf2loc.c.
14308 * dwarf2/loc.h: Rename from dwarf2loc.h.
14309 * dwarf2/read.c: Rename from dwarf2read.c.
14310 * dwarf2/read.h: Rename from dwarf2read.h.
14311 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14312 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14313 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14314 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14315 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14316 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14317 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14318 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14319 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14320 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14321 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14322 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14323 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14324 Update.
14325 * Makefile.in (COMMON_SFILES): Update.
14326 (HFILES_NO_SRCDIR): Update.
14327
9e35d499
TT
143282020-02-08 Tom Tromey <tom@tromey.com>
14329
14330 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14331 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14332
1eba2311
TT
143332020-02-08 Tom Tromey <tom@tromey.com>
14334
14335 * dwarf2read.h (struct die_info): Don't declare.
14336
e41c2da2
TT
143372020-02-08 Tom Tromey <tom@tromey.com>
14338
14339 * dwarf2read.h (die_info_ptr): Remove typedef.
14340
4fc6c0d5
TT
143412020-02-08 Tom Tromey <tom@tromey.com>
14342
14343 * dwarf2read.c (read_call_site_scope)
14344 (handle_data_member_location, dwarf2_add_member_fn)
14345 (mark_common_block_symbol_computed, read_common_block)
14346 (attr_to_dynamic_prop, partial_die_info::read)
14347 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14348 (dwarf2_symbol_mark_computed, set_die_type): Update.
14349 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14350 method.
14351 (attr_form_is_block): Don't declare.
14352 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14353
cd6c91b4
TT
143542020-02-08 Tom Tromey <tom@tromey.com>
14355
14356 * dwarf2read.c (dwarf2_find_base_address, )
14357 (read_call_site_scope, rust_containing_type)
14358 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14359 (handle_data_member_location, dwarf2_add_member_fn)
14360 (get_alignment, read_structure_type, process_structure_scope)
14361 (mark_common_block_symbol_computed, read_common_block)
14362 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14363 (partial_die_info::read, read_attribute_value, new_symbol)
14364 (lookup_die_type, dwarf2_get_ref_die_offset)
14365 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14366 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14367 (dwarf2_symbol_mark_computed): Update.
14368 * dwarf2/attribute.h (struct attribute) <value_as_address,
14369 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14370 methods.
14371 (value_as_address, attr_form_is_section_offset)
14372 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14373 * dwarf2/attribute.c (attribute::value_as_address)
14374 (attribute::form_is_section_offset, attribute::form_is_constant)
14375 (attribute::form_is_ref): Now methods.
14376
162dce55
TT
143772020-02-08 Tom Tromey <tom@tromey.com>
14378
14379 * dwarf2read.c (struct attribute, DW_STRING)
14380 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14381 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14382 (attr_form_is_block, attr_form_is_section_offset)
14383 (attr_form_is_constant, attr_form_is_ref): Move.
14384 * dwarf2/attribute.h: New file.
14385 * dwarf2/attribute.c: New file, from dwarf2read.c.
14386 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14387
3054dd54
TT
143882020-02-08 Tom Tromey <tom@tromey.com>
14389
14390 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14391 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14392 Move.
14393 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14394 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14395 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14396 abbrev.c.
14397 * dwarf2/abbrev.h: New file.
14398 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14399 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14400
96b79293
TT
144012020-02-08 Tom Tromey <tom@tromey.com>
14402
14403 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14404 (dwarf2_section_size, dwarf2_get_section_info)
14405 (create_signatured_type_table_from_debug_names)
14406 (create_addrmap_from_aranges, read_debug_names_from_section)
14407 (get_gdb_index_contents_from_section, read_comp_unit_head)
14408 (error_check_comp_unit_head, read_abbrev_offset)
14409 (create_debug_type_hash_table, init_cu_die_reader)
14410 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14411 (read_comp_units_from_section, create_cus_hash_table)
14412 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14413 (create_dwp_v2_section, dwarf2_rnglists_process)
14414 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14415 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14416 (read_indirect_string_from_dwz, read_addr_index_1)
14417 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14418 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14419 (fill_in_loclist_baton): Update.
14420 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14421 get_containing_section, get_bfd_owner, get_bfd_section,
14422 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14423 (dwarf2_read_section, get_section_name, get_section_file_name)
14424 (get_containing_section, get_section_bfd_owner)
14425 (get_section_bfd_section, get_section_name, get_section_file_name)
14426 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14427 declare.
14428 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14429 (dwarf2_section_info::get_bfd_owner)
14430 (dwarf2_section_info::get_bfd_section)
14431 (dwarf2_section_info::get_name)
14432 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14433 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14434 (dwarf2_section_info::read): Now methods.
14435 * dwarf-index-write.c (class debug_names): Update.
14436
2c86cff9
TT
144372020-02-08 Tom Tromey <tom@tromey.com>
14438
14439 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14440 Move to dwarf2/section.h.
14441 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14442 (get_section_bfd_section, get_section_name)
14443 (get_section_file_name, get_section_id, get_section_flags)
14444 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14445 dwarf2/section.c.
14446 * dwarf2/section.h: New file.
14447 * dwarf2/section.c: New file, from dwarf2read.c.
14448 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14449
f4382c45
TT
144502020-02-08 Tom Tromey <tom@tromey.com>
14451
14452 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14453 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14454 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14455 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14456 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14457 * dwarf2/leb.h: New file, from dwarf2read.c.
14458 * dwarf2/leb.c: New file, from dwarf2read.c.
14459 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14460 Remove.
14461 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14462 (COMMON_SFILES): Add dwarf2/leb.c.
14463
01840b7a
JB
144642020-02-08 Joel Brobecker <brobecker@adacore.com>
14465
14466 GDB 9.1 released.
14467
dfcb27e4
IB
144682020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14469
14470 PR gdb/25190:
aac66a4c
SM
14471 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14472 * gdb/remote.c (remote_console_output): Update.
14473 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14474 (ui_file_puts): ...this.
14475 * gdb/ui-file.h (ui_file_puts): Add declaration.
14476 * gdb/utils.c (emit_style_escape): Update.
14477 (flush_wrap_buffer): Update.
14478 (fputs_maybe_filtered): Update.
14479 (fputs_unfiltered): Add function.
dfcb27e4 14480
faa17681
IB
144812020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14482
aac66a4c
SM
14483 * gdb/event-loop.c (gdb_wait_for_event): Update.
14484 * gdb/printcmd.c (printf_command): Update.
14485 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14486 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14487 (gdb_os_flush_stderr): Update.
14488 * gdb/remote.c (remote_console_output): Update.
14489 * gdb/ui-file.c (gdb_flush): Rename to...
14490 (ui_file_flush): ...this.
14491 (stderr_file::write): Update.
14492 (stderr_file::puts): Update.
14493 * gdb/ui-file.h (gdb_flush): Rename to...
14494 (ui_file_flush): ...this.
14495 * gdb/utils.c (gdb_flush): Add function.
14496 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14497
5abbbe1d
TT
144982020-02-07 Tom Tromey <tromey@adacore.com>
14499
14500 PR breakpoints/24915:
14501 * source.c (find_and_open_source): Do not check basenames_may_differ.
14502
919adfe8
TT
145032020-02-07 Tom Tromey <tom@tromey.com>
14504
14505 * README: Update gdbserver documentation.
14506 * gdbserver: Move to top level.
14507 * configure.tgt (build_gdbserver): Remove.
14508 * configure.ac: Remove --enable-gdbserver.
14509 * configure: Rebuild.
14510 * Makefile.in (distclean): Don't mention gdbserver.
14511
1d5d29e7
SV
145122020-02-06 Shahab Vahedi <shahab@synopsys.com>
14513
14514 * source-cache.c (source_cache::ensure): Surround
14515 get_plain_source_lines with a try/catch.
14516 (source_cache::get_line_charpos): Get rid of try/catch
14517 and only check for the return value of "ensure".
14518 * tui/tui-source.c (tui_source_window::set_contents):
14519 Simplify "nlines" calculation.
14520
6eb1129c
SV
145212020-02-06 Shahab Vahedi <shahab@synopsys.com>
14522
14523 * MAINTAINERS (Write After Approval): Add myself.
14524
c6a42d11
CB
145252020-02-05 Christian Biesinger <cbiesinger@google.com>
14526
14527 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14528 function call.
14529
c8ecdda6
CB
145302020-02-05 Christian Biesinger <cbiesinger@google.com>
14531
14532 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14533
f6480e70
MR
145342020-02-05 Maciej W. Rozycki <macro@wdc.com>
14535
14536 * nat/riscv-linux-tdesc.h: New file.
14537 * nat/riscv-linux-tdesc.c: New file, taking code from...
14538 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14539 ... here.
14540 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14541 NATDEPFILES.
14542
dcc9fbc6
AB
145432020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14544
14545 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14546 we don't set the fake simulator ptid to the null_ptid.
14547
719546c4
SM
145482020-02-03 Simon Marchi <simon.marchi@efficios.com>
14549
14550 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14551 * gdbthread.h (class thread_info) <resumed>: Likewise.
14552 * infrun.c (resume_1): Likewise.
14553 (proceed): Likewise.
14554 (infrun_thread_stop_requested): Likewise.
14555 (stop_all_threads): Likewise.
14556 (handle_inferior_event): Likewise.
14557 (restart_threads): Likewise.
14558 (finish_step_over): Likewise.
14559 (keep_going_stepped_thread): Likewise.
14560 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14561 (linux_handle_extended_wait): Likewise.
14562 * record-btrace.c (get_thread_current_frame_id): Likewise.
14563 * record-full.c (record_full_wait_1): Likewise.
14564 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14565 * target.c (target_resume): Likewise.
14566 * thread.c (set_running_thread): Likewise.
14567
e409c542
AKS
145682020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14569
14570 * f-valprint.c (f77_print_array_1): Changed datatype of index
14571 variable to LONGEST from int to enable it to contain bound
14572 values correctly.
14573
ee98c0da
MR
145742020-02-03 Maciej W. Rozycki <macro@wdc.com>
14575
14576 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14577 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14578 offsets according to FLEN determined.
14579 (riscv_linux_nat_target::read_description): Determine FLEN
14580 dynamically.
14581 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14582 according to FLEN determined.
14583 (riscv_linux_nat_target::store_registers): Likewise.
14584
aa66aac4
SV
145852020-02-01 Shahab Vahedi <shahab@synopsys.com>
14586
14587 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14588 when reg->group is empty and reggroup is not.
14589
fd9faca8
TT
145902020-01-31 Tom Tromey <tromey@adacore.com>
14591
14592 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14593 Call beneath target's mourn_inferior after unpushing.
14594
42330a68
AB
145952020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14596
14597 PR tui/9765
14598 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14599 have enough lines to fill the screen, still return the lowest
14600 address we found.
14601
7a27a45b
AB
146022020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14603
14604 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14605 '-', '<', and '>' commands.
14606
c47f70e2
PA
146072020-01-29 Pedro Alves <palves@redhat.com>
14608 Sergio Durigan Junior <sergiodj@redhat.com>
14609
14610 * infcmd.c (construct_inferior_arguments): Assert that
14611 'argc' is greater than 0.
14612
5133a315
LM
146132020-01-29 Luis Machado <luis.machado@linaro.org>
14614
14615 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14616 (BRK_INSN_MASK): Define to 0xd4200000.
14617 (aarch64_program_breakpoint_here_p): New function.
14618 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14619 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14620 breakpoint.c.
14621 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14622 breakpoint.h
14623 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14624 call gdbarch_program_breakpoint_here_p.
14625 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14626 default_program_breakpoint_here_p, changed return type to bool and
14627 simplified.
14628 * breakpoint.h (program_breakpoint_here): Moved prototype to
14629 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14630 return type to bool.
14631 * gdbarch.c: Regenerate.
14632 * gdbarch.h: Regenerate.
14633 * gdbarch.sh (program_breakpoint_here_p): New method.
14634 * infrun.c (handle_signal_stop): Call
14635 gdbarch_program_breakpoint_here_p.
14636
168f8c6b
TT
146372020-01-26 Tom Tromey <tom@tromey.com>
14638
14639 * ctfread.c (struct ctf_fp_info): Reindent.
14640 (_initialize_ctfread): Remove.
14641
128a391f
TT
146422020-01-26 Tom Tromey <tom@tromey.com>
14643
14644 * psymtab.c (partial_map_expand_apply)
14645 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14646 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14647 (psym_print_stats, psym_expand_symtabs_for_function)
14648 (psym_map_symbol_filenames, psym_map_matching_symbols)
14649 (psym_expand_symtabs_matching)
14650 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14651 (maintenance_check_psymtabs): Use new methods.
14652 * psympriv.h (struct partial_symtab) <readin_p,
14653 get_compunit_symtab>: New methods.
14654 <readin, compunit_symtab>: Remove members.
14655 (struct standard_psymtab): New.
14656 (struct legacy_psymtab): Derive from standard_psymtab.
14657 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14658 standard_psymtab.
14659 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14660
0494dbec
TT
146612020-01-26 Tom Tromey <tom@tromey.com>
14662
14663 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14664 read_dependencies. Add assert.
14665 * psymtab.c (partial_symtab::read_dependencies): New method.
14666 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14667 method.
14668 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14669 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14670 read_dependencies.
14671 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14672 Add assert.
14673
8566b89b
TT
146742020-01-26 Tom Tromey <tom@tromey.com>
14675
14676 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14677 Call expand_psymtab.
14678 (xcoff_read_symtab): Call expand_psymtab.
14679 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14680 legacy_expand_psymtab.
14681 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14682 method.
14683 (struct legacy_psymtab) <expand_psymtab>: Implement.
14684 <legacy_expand_psymtab>: New member.
14685 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14686 (parse_partial_symbols): Set legacy_expand_psymtab.
14687 (psymtab_to_symtab_1): Change argument order. Call
14688 expand_psymtab.
14689 (new_psymtab): Set legacy_expand_psymtab.
14690 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14691 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14692 expand_psymtab.
14693 (dwarf2_psymtab::expand_psymtab): Rename from
14694 psymtab_to_symtab_1. Call expand_psymtab.
14695 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14696 (dbx_end_psymtab): Likewise.
14697 (dbx_psymtab_to_symtab_1): Change argument order. Call
14698 expand_psymtab.
14699 (dbx_read_symtab): Call expand_psymtab.
14700 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14701 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14702 (ctf_psymtab::read_symtab): Call expand_psymtab.
14703
077cbab2
TT
147042020-01-26 Tom Tromey <tom@tromey.com>
14705
14706 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14707 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14708 messages.
14709 * mdebugread.c (mdebug_read_symtab): Remove prints.
14710 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14711 assert.
14712 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14713
891813be
TT
147142020-01-26 Tom Tromey <tom@tromey.com>
14715
14716 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14717 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14718 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14719 legacy_symtab.
14720 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14721 * psymtab.c (psymtab_to_symtab): Call method.
14722 (dump_psymtab): Update.
14723 * psympriv.h (struct partial_symtab): Add virtual destructor.
14724 <read_symtab>: New method.
14725 (struct legacy_symtab): New.
14726 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14727 (struct pst_map) <pst>: Now a legacy_psymtab.
14728 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14729 (new_psymtab): Use legacy_psymtab.
14730 * dwarf2read.h (struct dwarf2_psymtab): New.
14731 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14732 * dwarf2read.c (dwarf2_create_include_psymtab)
14733 (dwarf2_build_include_psymtabs, create_type_unit_group)
14734 (create_partial_symtab, process_psymtab_comp_unit_reader)
14735 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14736 (set_partial_user): Use dwarf2_psymtab.
14737 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14738 (psymtab_to_symtab_1, process_full_comp_unit)
14739 (process_full_type_unit, dwarf2_ranges_read)
14740 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14741 (dwarf_decode_lines): Use dwarf2_psymtab.
14742 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14743 (add_address_entry_worker, write_one_signatured_type)
14744 (recursively_count_psymbols, recursively_write_psymbols)
14745 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14746 (write_debug_names): Likewise.
14747 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14748 <pst>: Now a legacy_psymtab.
14749 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14750 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14751 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14752 * ctfread.c (struct ctf_psymtab): New.
14753 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14754 ctf_psymtab.
14755 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14756 (create_partial_symtab): Return a ctf_psymtab.
14757 (scan_partial_symbols): Update.
14758
c3693a1d
TT
147592020-01-26 Tom Tromey <tom@tromey.com>
14760
14761 * xcoffread.c (xcoff_start_psymtab): Use new.
14762 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14763 renamed from start_psymtab_common.
14764 * psympriv.h (struct partial_symtab): Add new constructor.
14765 (start_psymtab_common): Don't declare.
14766 * mdebugread.c (parse_partial_symbols): Use new.
14767 * dwarf2read.c (create_partial_symtab): Use new.
14768 * dbxread.c (start_psymtab): Use new.
14769 * ctfread.c (create_partial_symtab): Use new.
14770
32caafd0
TT
147712020-01-26 Tom Tromey <tom@tromey.com>
14772
14773 * xcoffread.c (xcoff_end_psymtab): Use new.
14774 * psymtab.c (start_psymtab_common): Use new.
14775 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14776 Update.
14777 * psympriv.h (struct partial_symtab): Add parameters to
14778 constructor. Don't inline.
14779 (allocate_psymtab): Don't declare.
14780 * mdebugread.c (new_psymtab): Use new.
14781 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14782 * dbxread.c (dbx_end_psymtab): Use new.
14783
abaa2f23
TT
147842020-01-26 Tom Tromey <tom@tromey.com>
14785
14786 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14787 allocate_psymtab. Update documentation.
14788 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14789 allocate_psymtab. Do not use new.
14790 (allocate_psymtab): Use new. Update.
14791
6d94535f
TT
147922020-01-26 Tom Tromey <tom@tromey.com>
14793
14794 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14795 * psymtab.c (psym_print_stats): Update.
14796 * psympriv.h (struct partial_symtab) <readin,
14797 psymtabs_addrmap_supported, anonymous>: Now bool.
14798 * mdebugread.c (psymtab_to_symtab_1): Update.
14799 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14800 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14801 (process_full_comp_unit, process_full_type_unit): Update.
14802 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14803 * ctfread.c (psymtab_to_symtab): Update.
14804
6f17252b
TT
148052020-01-26 Tom Tromey <tom@tromey.com>
14806
14807 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14808 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14809 * psymtab.c (psymtab_storage): Delete psymtabs.
14810 (psymtab_storage::allocate_psymtab): Use new.
14811 (psymtab_storage::discard_psymtab): Use delete.
14812 * psympriv.h (struct partial_symtab): Add constructor and
14813 initializers.
14814
f6f1cebc
TT
148152020-01-26 Tom Tromey <tom@tromey.com>
14816
14817 * machoread.c: Do not include psympriv.h.
14818
e47e48f6
PW
148192020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14820
14821 * NEWS: Mention the new option and the set/show commands.
14822
a2fedca9
PW
148232020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14824
14825 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14826 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14827 (validate_exec_file): New variables, enums, functions.
14828 (exec_file_locate_attach, print_section_info): Style the filenames.
14829 (_initialize_exec): Install show_exec_file_mismatch_command and
14830 set_exec_file_mismatch_command.
14831 * gdbcore.h (validate_exec_file): Declare.
14832 * infcmd.c (attach_command): Call validate_exec_file.
14833 * remote.c ( remote_target::remote_add_inferior): Likewise.
14834
7ffa82e1
AB
148352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14836
14837 * frame.c (find_frame_sal): Move call to get_next_frame into more
14838 inner scope.
14839 * inline-frame.c (inilne_state) <inline_state>: Update argument
14840 types.
14841 (inilne_state) <skipped_symbol>: Rename to...
14842 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14843 (skip_inline_frames): Build vector of skipped symbols and use this
14844 to reate the inline_state.
14845 (inline_skipped_symbol): Add a comment and some assertions, fetch
14846 skipped symbol from the list.
14847
3d92a3e3
AB
148482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14849
14850 * buildsym.c (lte_is_less_than): Delete.
14851 (buildsym_compunit::end_symtab_with_blockvector): Create local
14852 lambda function to sort line table entries, and use
14853 std::stable_sort instead of std::sort.
14854 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14855 markers when looking for a previous line.
14856
94a72be7
AB
148572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14858
14859 * dwarf2read.c (lnp_state_machine::record_line): Include
14860 end_sequence parameter in debug print out. Record the line if we
14861 are at an end_sequence marker even if it's not the start of a
14862 statement.
14863 * symmisc.c (maintenance_print_one_line_table): Print end of
14864 sequence markers with 'END' not '0'.
14865
53af73bf
PA
148662020-01-24 Pedro Alves <palves@redhat.com>
14867
14868 PR gdb/25410
14869 * thread.c (scoped_restore_current_thread::restore): Use
14870 switch_to_inferior_no_thread.
14871 * exec.c: Include "progspace-and-thread.h".
14872 (add_target_sections, remove_target_sections):
14873 scoped_restore_current_pspace_and_thread instead of
14874 scoped_restore_current_thread.
14875 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14876 and aspace to the inferior before calling clone_program_space.
14877 Remove stale comment.
14878
3050c6f4
CB
148792020-01-24 Christian Biesinger <cbiesinger@google.com>
14880
14881 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14882 (arm_netbsd_nat_target::fetch_registers): ...this.
14883 (arm_nbsd_nat_target::store_registers): Rename to...
14884 (arm_netbsd_nat_target::store_registers): ...this.
14885
73685c7e
CB
148862020-01-24 Christian Biesinger <cbiesinger@google.com>
14887
14888 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14889 register_t.
14890
89203d40
CB
148912020-01-24 Christian Biesinger <cbiesinger@google.com>
14892
14893 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14894 Update comment.
14895 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14896 Likewise.
14897 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14898 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14899 the correct replacement (iterate_over_regset_sections).
14900 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14901 Update comment.
14902
1ba1ac88
AB
149032020-01-24 Graham Markall <graham.markall@embecosm.com>
14904
14905 PR gdb/23718
14906 * gdb/python/python.c (execute_gdb_command): Call
14907 async_enable_stdin in catch block.
14908
f3364a6d
AB
149092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14910
14911 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14912 SWITCH_THRU_ALL_UIS.
14913
733d0a67
AB
149142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14915
14916 PR tui/9765
14917 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14918 comment, add extra parameter, and update to store previous symbol
14919 when appropriate.
14920 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14921 add extra parameter.
14922 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14923 remove unneeded parameter, add try/catch around gdb_print_insn,
14924 rewrite to add items to asm_lines vector.
14925 (tui_find_backward_disassembly_start_address): New function.
14926 (tui_find_disassembly_address): Updated throughout.
14927 (tui_disasm_window::set_contents): Update for changes to
14928 tui_disassemble.
14929 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14930 number of lines to scroll.
14931
b3b3bada
SM
149322020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14933
14934 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14935 (SECT_OFF_DATA): Likewise.
14936 (SECT_OFF_RODATA): Likewise.
14937 (SECT_OFF_TEXT): Likewise.
14938 (SECT_OFF_BSS): Likewise.
14939 (struct objfile) <text_section_offset, data_section_offset>: New
14940 methods.
14941 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14942 objfile::text_section_offset.
14943 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14944 * coffread.c (coff_symtab_read): Likewise.
14945 (enter_linenos): Likewise.
14946 (process_coff_symbol): Likewise.
14947 * ctfread.c (get_objfile_text_range): Likewise.
14948 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14949 Use objfile::data_section_offset.
14950 * dwarf2-frame.c (execute_cfa_program): Use
14951 objfile::text_section_offset.
14952 (dwarf2_frame_find_fde): Likewise.
14953 * dwarf2read.c (create_addrmap_from_index): Likewise.
14954 (create_addrmap_from_aranges): Likewise.
14955 (dw2_find_pc_sect_compunit_symtab): Likewise.
14956 (process_psymtab_comp_unit_reader): Likewise.
14957 (add_partial_symbol): Likewise.
14958 (add_partial_subprogram): Likewise.
14959 (process_full_comp_unit): Likewise.
14960 (read_file_scope): Likewise.
14961 (read_func_scope): Likewise.
14962 (read_lexical_block_scope): Likewise.
14963 (read_call_site_scope): Likewise.
14964 (dwarf2_rnglists_process): Likewise.
14965 (dwarf2_ranges_process): Likewise.
14966 (dwarf2_ranges_read): Likewise.
14967 (dwarf_decode_lines_1): Likewise.
14968 (new_symbol): Likewise.
14969 (dwarf2_fetch_die_loc_sect_off): Likewise.
14970 (dwarf2_per_cu_text_offset): Likewise.
14971 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14972 * hppa-tdep.c (read_unwind_info): Likewise.
14973 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14974 * psympriv.h (struct partial_symtab): Likewise.
14975 * psymtab.c (find_pc_sect_psymtab): Likewise.
14976 * solib-svr4.c (enable_break): Likewise.
14977 * stap-probe.c (relocate_address): Use
14978 objfile::data_section_offset.
14979 * xcoffread.c (enter_line_range): Use
14980 objfile::text_section_offset.
14981 (read_xcoff_symtab): Likewise.
14982
ab53f382
SM
149832020-01-23 Simon Marchi <simon.marchi@efficios.com>
14984
14985 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14986 declaration to narrower scopes.
14987
e7eee665
SM
149882020-01-23 Simon Marchi <simon.marchi@efficios.com>
14989
14990 * darwin-nat.h (struct darwin_exception_msg, enum
14991 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14992 Move up.
14993 (class darwin_nat_target) <wait_1, check_new_threads,
14994 decode_exception_message, decode_message, stop_inferior,
14995 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14996 * darwin-nat.c (darwin_check_new_threads): Rename to...
14997 (darwin_nat_target::check_new_threads): ... this.
14998 (darwin_suspend_inferior_it): Remove.
14999 (darwin_decode_exception_message): Rename to...
15000 (darwin_nat_target::decode_exception_message): ... this.
15001 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15002 (darwin_decode_message): Rename to...
15003 (darwin_nat_target::decode_message): ... this.
15004 (cancel_breakpoint): Rename to...
15005 (darwin_nat_target::cancel_breakpoint): ... this.
15006 (darwin_wait): Rename to...
15007 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15008 instead of iterate_over_inferiors.
15009 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15010 (darwin_stop_inferior): Rename to...
15011 (darwin_nat_target::stop_inferior): ... this.
15012 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15013 (darwin_init_thread_list): Rename to...
15014 (darwin_nat_target::init_thread_list): ... this.
15015 (darwin_ptrace_him): Rename to...
15016 (darwin_nat_target::ptrace_him): ... this.
15017 (darwin_nat_target::create_inferior): Pass lambda function to
15018 fork_inferior.
15019 (darwin_nat_target::detach): Call stop_inferior instead of
15020 darwin_stop_inferior.
15021 * fork-inferior.h (fork_inferior): Change init_trace_fun
15022 parameter to gdb::function_view.
15023 * fork-inferior.c (fork_inferior): Likewise.
15024
c162ed3e
HD
150252020-01-23 Hannes Domani <ssbssa@yahoo.de>
15026
15027 * i386-cygwin-tdep.c (core_process_module_section): Update.
15028 * windows-nat.c (struct lm_info_windows): Add text_offset.
15029 (windows_xfer_shared_libraries): Update.
15030 * windows-tdep.c (windows_xfer_shared_library):
15031 Add text_offset_cached argument.
15032 * windows-tdep.h (windows_xfer_shared_library): Update.
15033
a1237872
SM
150342020-01-21 Simon Marchi <simon.marchi@efficios.com>
15035
15036 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15037
b3ee6dd9
SM
150382020-01-21 Simon Marchi <simon.marchi@efficios.com>
15039
15040 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15041 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15042 replace with range-based for.
15043 (gdbsim_interrupt_inferior): Remove.
15044 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15045 with a range-based for. Inline code from
15046 gdbsim_interrupt_inferior.
15047
f9fac3c8
SM
150482020-01-21 Simon Marchi <simon.marchi@efficios.com>
15049
15050 * infrun.c (proceed): Fix indentation.
15051
f6474de9
TT
150522020-01-21 Tom Tromey <tromey@adacore.com>
15053
15054 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15055 * python/python.c (python_extension_ops): Update.
15056 (gdbpy_colorize): New function.
15057 * python/lib/gdb/__init__.py (colorize): New function.
15058 * extension.h (ext_lang_colorize): Declare.
15059 * extension.c (ext_lang_colorize): New function.
15060 * extension-priv.h (struct extension_language_ops) <colorize>: New
15061 member.
15062 * cli/cli-style.c (_initialize_cli_style): Update help text.
15063
f0c702d4
LM
150642020-01-21 Luis Machado <luis.machado@linaro.org>
15065
15066 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15067 <cond>: Change type to bool.
15068 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15069 (aarch64_displaced_step_cb): Likewise.
15070 (aarch64_displaced_step_tb): Likewise.
15071
1ab139e5
LM
150722020-01-21 Luis Machado <luis.machado@linaro.org>
15073
15074 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15075 output.
15076
0c271889
LM
150772020-01-21 Luis Machado <luis.machado@linaro.org>
15078
15079 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15080 <pc_adjust>: Adjust the documentation.
15081 (aarch64_displaced_step_fixup): Check if PC really moved before
15082 adjusting it.
15083
4d89c1c7
TT
150842020-01-19 Tom Tromey <tom@tromey.com>
15085
15086 * disasm.c (~gdb_disassembler): New destructor.
15087 (gdb_buffered_insn_length): Call disassemble_free_target.
15088 * disasm.h (class gdb_disassembler): Declare destructor. Use
15089 DISABLE_COPY_AND_ASSIGN.
15090
c0ab21c2
TT
150912020-01-19 Tom Tromey <tom@tromey.com>
15092
15093 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15094 (die_reader_func_ftype): Remove.
15095 (cutu_reader): New class.
15096 (dw2_get_file_names_reader): Remove "data" parameter.
15097 (dw2_get_file_names): Use cutu_reader.
15098 (create_debug_type_hash_table): Update.
15099 (read_cutu_die_from_dwo): Update comment.
15100 (lookup_dwo_unit): Add dwo_name parameter.
15101 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15102 die_reader_func_ftype and data parameters.
15103 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15104 Remove die_reader_func_ftype and data parameters.
15105 (~cutu_reader): New; from init_cutu_and_read_dies.
15106 (cutu_reader::cutu_reader): Rename from
15107 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15108 and data parameters.
15109 (init_cutu_and_read_dies_simple): Remove.
15110 (struct process_psymtab_comp_unit_data): Remove.
15111 (process_psymtab_comp_unit_reader): Remove data parameter; add
15112 want_partial_unit and pretend_language parameters.
15113 (process_psymtab_comp_unit): Use cutu_reader.
15114 (build_type_psymtabs_reader): Remove data parameter.
15115 (build_type_psymtabs_1): Use cutu_reader.
15116 (process_skeletonless_type_unit): Likewise.
15117 (load_partial_comp_unit_reader): Remove.
15118 (load_partial_comp_unit): Use cutu_reader.
15119 (load_full_comp_unit_reader): Remove.
15120 (load_full_comp_unit): Use cutu_reader.
15121 (struct create_dwo_cu_data): Remove.
15122 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15123 dwo_unit parameters.
15124 (create_cus_hash_table): Use cutu_reader.
15125 (struct dwarf2_read_addr_index_data): Remove.
15126 (dwarf2_read_addr_index_reader): Remove.
15127 (dwarf2_read_addr_index): Use cutu_reader.
15128 (read_signatured_type_reader): Remove.
15129 (read_signatured_type): Use cutu_reader.
15130
45bbae5c
TT
151312020-01-19 Tom Tromey <tom@tromey.com>
15132
15133 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15134 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15135 (tui_wrefresh): Declare.
15136 * tui/tui-wingeneral.c (suppress_output): New global.
15137 (tui_suppress_output, ~tui_suppress_output): New constructor and
15138 destructor.
15139 (tui_wrefresh): New function.
15140 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15141 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15142 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15143 method.
15144 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15145 tui_wrefresh.
15146 (tui_data_window::no_refresh): New method.
15147 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15148 (tui_reg_command): Use tui_suppress_output
15149 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15150 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15151 method.
15152 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15153
4f13c1c0
TT
151542020-01-19 Tom Tromey <tom@tromey.com>
15155
15156 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15157 Handle case where symtab is null.
15158
fa47e446
SM
151592020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15160
15161 * linux-fork.c (one_fork_p): Simplify.
15162
26f42329
SM
151632020-01-17 Simon Marchi <simon.marchi@efficios.com>
15164
15165 * top.c (struct qt_args): Remove.
15166 (kill_or_detach): Change return type to void, replace `void *`
15167 parameter with a proper one.
15168 (print_inferior_quit_action): Likewise.
15169 (quit_confirm): Use range-based for loop to iterate over inferiors.
15170 (quit_force): Likewise.
15171
a9ac81b1
SM
151722020-01-17 Simon Marchi <simon.marchi@efficios.com>
15173
15174 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15175 `void *` parameter with proper parameters.
15176 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15177 (print_one_inferior): Change return type to void, replace `void *`
15178 parameter with proper parameters.
15179 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15180 inferiors.
15181 (get_other_inferior): Remove.
15182 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15183 inferiors.
15184
788eca49
SM
151852020-01-17 Simon Marchi <simon.marchi@efficios.com>
15186
15187 * mi/mi-interp.c (report_initial_inferior): Remove.
15188 (mi_interp::init): Use range-based for to iterate over inferiors.
15189
d9bc85b6
SM
151902020-01-17 Simon Marchi <simon.marchi@efficios.com>
15191
15192 * python/py-inferior.c (build_inferior_list): Remove.
15193 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15194
40c94099
CB
151952020-01-16 Christian Biesinger <cbiesinger@google.com>
15196
15197 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15198 (btrace_stitch_trace): Likewise.
15199 * charset.c (intermediate_encoding): Likewise (vaild).
15200 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15201 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15202 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15203
e0cdfe3c
HD
152042020-01-16 Hannes Domani <ssbssa@yahoo.de>
15205
15206 * windows-tdep.c (windows_get_tlb_type):
15207 Add rtl_user_process_parameters type.
15208
790f1718 152092020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15210 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15211
15212 PR build/24805
15213 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15214 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15215 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15216 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15217 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15218 (ps_plog): Redeclare exported functions with default visibility.
15219
3112ed97
NA
152202020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15221
15222 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15223 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15224
8dc3273e
SM
152252020-01-15 Simon Marchi <simon.marchi@efficios.com>
15226
15227 * infcmd.c (post_create_inferior): Use get_thread_regcache
15228 instead of get_current_regcache.
15229
ff47f4f0
TT
152302020-01-14 Tom Tromey <tom@tromey.com>
15231
15232 PR symtab/12535:
15233 * python/python.c (gdbpy_decode_line): Treat empty string the same
15234 as no argument.
15235
975f45b7
TT
152362020-01-14 Tom Tromey <tom@tromey.com>
15237
15238 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15239
25e57356
TT
152402020-01-14 Tom Tromey <tom@tromey.com>
15241
15242 * nat/linux-btrace.c: Don't include <config.h>.
15243 * nat/linux-ptrace.c: Don't include <config.h>.
15244 * nat/x86-linux-dregs.c: Don't include <config.h>.
15245
05ea2a05
TT
152462020-01-14 Tom Tromey <tom@tromey.com>
15247
15248 * configure: Rebuild.
15249 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15250
01027315
TT
152512020-01-14 Tom Tromey <tom@tromey.com>
15252
15253 * nat/x86-linux-dregs.c: Include configh.h.
15254 * nat/linux-ptrace.c: Include configh.h.
15255 * nat/linux-btrace.c: Include configh.h.
15256 * defs.h: Include config.h, bfd.h.
15257 * configure.ac: Don't source common.host.
15258 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15259 * configure: Rebuild.
15260 * acinclude.m4: Update path.
15261 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15262 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15263 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15264 (CLIBS): Add LIBSUPPORT.
15265 (CDEPS): Likewise.
15266 (COMMON_SFILES): Remove gdbsupport files.
15267 (HFILES_NO_SRCDIR): Likewise.
15268 (stamp-version): Update path to create-version.sh.
15269 (ALLDEPFILES): Remove gdbsupport files.
15270
b2ceabe8
TT
152712020-01-14 Tom Tromey <tom@tromey.com>
15272
15273 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15274 USE_WIN32API when needed.
15275 * configure.ac (USE_WIN32API): Don't define.
15276 (WIN32LIBS): Use WIN32APILIBS.
15277 * configure: Rebuild.
15278
25c51f71
TT
152792020-01-14 Tom Tromey <tom@tromey.com>
15280
15281 * configure: Rebuild.
15282 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15283
717c684d
BE
152842020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15285
15286 * skip.c (skip_function_command): Make skip w/o arguments use the
15287 name of the inlined function if pc is inside any inlined function.
15288
7da6a5b9
LM
152892020-01-14 Luis Machado <luis.machado@linaro.org>
15290
15291 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15292 * infrun.c (resume_1): Likewise.
15293 (handle_inferior_event): Remove stale comment.
15294 * linux-nat.c (linux_nat_target::resume): Update comments.
15295 (save_stop_reason): Likewise.
15296 (linux_nat_filter_event): Likewise.
15297 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15298
44e4c775
AB
152992020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15300
15301 * elfread.c (record_minimal_symbol): Set section index to 0 for
15302 non-allocatable sections.
15303
18a8505e
AT
15304
153052020-01-13 Ali Tamur <tamur@google.com>
15306
15307 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15308 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15309 to gdb::optional. Update comments.
15310 (dwo_file): Update comments.
15311 (read_attribute): Update API to take an additional out parameter,
15312 need_reprocess. This is used to mark attributes that need other
15313 attributes (e.g. str_offsets_base) for correct computation which may not
15314 have been read yet.
15315 (read_attribute_reprocess): New function declaration.
15316 (read_addr_index): Likewise.
15317 (read_dwo_str_index): Likewise.
15318 (read_stub_str_index): Likewise.
15319 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15320 (lookup_addr_base): New function definition.
15321 (lookup_ranges_base): Likewise.
15322 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15323 lookup_ranges_base.
15324 (init_cutu_and_read_dies): Update comments.
15325 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15326 unit. This is used to inherit parent's str_offsets_base and addr_base.
15327 Update comments.
15328 (init_cutu_and_read_dies_simple): Reflect API changes.
15329 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15330 (create_cus_hash_table): Change API to take parent compile unit.
15331 Reflect API changes.
15332 (open_and_init_dwo_file): Reflect API changes.
15333 (dwarf2_get_pc_bounds): Update comments.
15334 (dwarf2_record_block_ranges): Likewise.
15335 (read_full_die_1): Change implementation to reprocess attributes that
15336 need str_offsets_base and addr_base.
15337 (partial_die_info::read): Likewise.
15338 (read_attribute_reprocess): New function definition.
15339 (read_attribute_value): Change API to take an additional out parameter,
15340 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15341 when a non-dwo compile unit has index based attributes.
15342 (read_attribute): Reflect API changes.
15343 (read_addr_index_1): Reflect API changes. Update comments.
15344 (dwarf2_read_addr_index_data): Reflect API changes.
15345 (dwarf2_read_addr_index): Likewise.
15346 (read_str_index): Change API and implementation. This becomes a helper
15347 to be used by the new string index related methods. Update error
15348 message and comments.
15349 (read_dwo_str_index): New function definition.
15350 (read_stub_str_index): Likewise.
15351 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15352 * symfile.h (dwarf2_debug_sections): Likewise.
15353 * xcoffread.c (dwarf2_debug_sections): Likewise.
15354
0cac9354
SM
153552020-01-13 Simon Marchi <simon.marchi@efficios.com>
15356
15357 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15358 core_reg_sect type to gdb_byte *.
15359 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15360 * cris-tdep.c (fetch_core_registers): Likewise.
15361 * corelow.c (core_target::get_core_register_section): Change
15362 type of `contents` to gdb::byte_vector.
15363
9a6d629c
AB
153642020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15365
15366 * tui/tui-wingeneral.c (box_win): Position the title in the center
15367 of the border.
15368
d8b2f9e3
SM
153692020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15370
15371 * corelow.c (core_target::get_core_register_section): Use
15372 std::vector instead of alloca.
15373
bb564c58
SM
153742020-01-13 Simon Marchi <simon.marchi@efficios.com>
15375
15376 * warning.m4: Add -Wmissing-declarations to build_warnings.
15377 * configure: Re-generate.
15378
6b366111
SM
153792020-01-13 Simon Marchi <simon.marchi@efficios.com>
15380
15381 * python/python.c (init__gdb_module): Add declaration.
15382
6c265988
SM
153832020-01-13 Simon Marchi <simon.marchi@efficios.com>
15384
15385 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15386 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15387 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15388 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15389 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15390 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15391 * ada-exp.y (_initialize_ada_exp): Add declaration.
15392 * ada-lang.c (_initialize_ada_language): Add declaration.
15393 * ada-tasks.c (_initialize_tasks): Add declaration.
15394 * agent.c (_initialize_agent): Add declaration.
15395 * aix-thread.c (_initialize_aix_thread): Add declaration.
15396 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15397 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15398 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15399 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15400 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15401 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15402 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15403 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15404 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15405 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15406 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15407 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15408 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15409 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15410 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15411 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15412 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15413 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15414 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15415 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15416 * annotate.c (_initialize_annotate): Add declaration.
15417 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15418 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15419 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15420 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15421 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15422 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15423 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15424 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15425 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15426 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15427 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15428 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15429 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15430 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15431 * auto-load.c (_initialize_auto_load): Add declaration.
15432 * auxv.c (_initialize_auxv): Add declaration.
15433 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15434 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15435 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15436 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15437 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15438 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15439 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15440 * breakpoint.c (_initialize_breakpoint): Add declaration.
15441 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15442 * btrace.c (_initialize_btrace): Add declaration.
15443 * charset.c (_initialize_charset): Add declaration.
15444 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15445 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15446 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15447 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15448 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15449 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15450 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15451 * coffread.c (_initialize_coffread): Add declaration.
15452 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15453 * compile/compile.c (_initialize_compile): Add declaration.
15454 * complaints.c (_initialize_complaints): Add declaration.
15455 * completer.c (_initialize_completer): Add declaration.
15456 * copying.c (_initialize_copying): Add declaration.
15457 * corefile.c (_initialize_core): Add declaration.
15458 * corelow.c (_initialize_corelow): Add declaration.
15459 * cp-abi.c (_initialize_cp_abi): Add declaration.
15460 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15461 * cp-support.c (_initialize_cp_support): Add declaration.
15462 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15463 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15464 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15465 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15466 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15467 * ctfread.c (_initialize_ctfread): Add declaration.
15468 * d-lang.c (_initialize_d_language): Add declaration.
15469 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15470 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15471 * dbxread.c (_initialize_dbxread): Add declaration.
15472 * dcache.c (_initialize_dcache): Add declaration.
15473 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15474 * disasm.c (_initialize_disasm): Add declaration.
15475 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15476 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15477 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15478 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15479 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15480 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15481 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15482 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15483 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15484 * elfread.c (_initialize_elfread): Add declaration.
15485 * exec.c (_initialize_exec): Add declaration.
15486 * extension.c (_initialize_extension): Add declaration.
15487 * f-lang.c (_initialize_f_language): Add declaration.
15488 * f-valprint.c (_initialize_f_valprint): Add declaration.
15489 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15490 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15491 * filesystem.c (_initialize_filesystem): Add declaration.
15492 * findcmd.c (_initialize_mem_search): Add declaration.
15493 * findvar.c (_initialize_findvar): Add declaration.
15494 * fork-child.c (_initialize_fork_child): Add declaration.
15495 * frame-base.c (_initialize_frame_base): Add declaration.
15496 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15497 * frame.c (_initialize_frame): Add declaration.
15498 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15499 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15500 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15501 * gcore.c (_initialize_gcore): Add declaration.
15502 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15503 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15504 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15505 * gdbarch.c (_initialize_gdbarch): Add declaration.
15506 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15507 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15508 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15509 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15510 * go-lang.c (_initialize_go_language): Add declaration.
15511 * go32-nat.c (_initialize_go32_nat): Add declaration.
15512 * guile/guile.c (_initialize_guile): Add declaration.
15513 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15514 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15515 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15516 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15517 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15518 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15519 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15520 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15521 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15522 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15523 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15524 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15525 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15526 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15527 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15528 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15529 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15530 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15531 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15532 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15533 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15534 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15535 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15536 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15537 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15538 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15539 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15540 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15541 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15542 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15543 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15544 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15545 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15546 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15547 * infcall.c (_initialize_infcall): Add declaration.
15548 * infcmd.c (_initialize_infcmd): Add declaration.
15549 * inflow.c (_initialize_inflow): Add declaration.
15550 * infrun.c (_initialize_infrun): Add declaration.
15551 * interps.c (_initialize_interpreter): Add declaration.
15552 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15553 * jit.c (_initialize_jit): Add declaration.
15554 * language.c (_initialize_language): Add declaration.
15555 * linux-fork.c (_initialize_linux_fork): Add declaration.
15556 * linux-nat.c (_initialize_linux_nat): Add declaration.
15557 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15558 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15559 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15560 * m2-lang.c (_initialize_m2_language): Add declaration.
15561 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15562 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15563 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15564 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15565 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15566 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15567 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15568 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15569 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15570 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15571 * machoread.c (_initialize_machoread): Add declaration.
15572 * macrocmd.c (_initialize_macrocmd): Add declaration.
15573 * macroscope.c (_initialize_macroscope): Add declaration.
15574 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15575 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15576 * maint.c (_initialize_maint_cmds): Add declaration.
15577 * mdebugread.c (_initialize_mdebugread): Add declaration.
15578 * memattr.c (_initialize_mem): Add declaration.
15579 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15580 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15581 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15582 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15583 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15584 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15585 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15586 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15587 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15588 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15589 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15590 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15591 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15592 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15593 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15594 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15595 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15596 * mipsread.c (_initialize_mipsread): Add declaration.
15597 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15598 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15599 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15600 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15601 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15602 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15603 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15604 * nto-procfs.c (_initialize_procfs): Add declaration.
15605 * objc-lang.c (_initialize_objc_language): Add declaration.
15606 * observable.c (_initialize_observer): Add declaration.
15607 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15608 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15609 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15610 * osabi.c (_initialize_gdb_osabi): Add declaration.
15611 * osdata.c (_initialize_osdata): Add declaration.
15612 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15613 * parse.c (_initialize_parse): Add declaration.
15614 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15615 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15616 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15617 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15618 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15619 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15620 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15621 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15622 * printcmd.c (_initialize_printcmd): Add declaration.
15623 * probe.c (_initialize_probe): Add declaration.
15624 * proc-api.c (_initialize_proc_api): Add declaration.
15625 * proc-events.c (_initialize_proc_events): Add declaration.
15626 * proc-service.c (_initialize_proc_service): Add declaration.
15627 * procfs.c (_initialize_procfs): Add declaration.
15628 * producer.c (_initialize_producer): Add declaration.
15629 * psymtab.c (_initialize_psymtab): Add declaration.
15630 * python/python.c (_initialize_python): Add declaration.
15631 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15632 * record-btrace.c (_initialize_record_btrace): Add declaration.
15633 * record-full.c (_initialize_record_full): Add declaration.
15634 * record.c (_initialize_record): Add declaration.
15635 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15636 * regcache.c (_initialize_regcache): Add declaration.
15637 * reggroups.c (_initialize_reggroup): Add declaration.
15638 * remote-notif.c (_initialize_notif): Add declaration.
15639 * remote-sim.c (_initialize_remote_sim): Add declaration.
15640 * remote.c (_initialize_remote): Add declaration.
15641 * reverse.c (_initialize_reverse): Add declaration.
15642 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15643 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15644 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15645 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15646 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15647 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15648 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15649 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15650 Add declaration.
15651 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15652 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15653 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15654 * rust-exp.y (_initialize_rust_exp): Add declaration.
15655 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15656 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15657 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15658 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15659 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15660 * score-tdep.c (_initialize_score_tdep): Add declaration.
15661 * ser-go32.c (_initialize_ser_dos): Add declaration.
15662 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15663 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15664 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15665 * ser-uds.c (_initialize_ser_socket): Add declaration.
15666 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15667 * serial.c (_initialize_serial): Add declaration.
15668 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15669 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15670 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15671 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15672 * skip.c (_initialize_step_skip): Add declaration.
15673 * sol-thread.c (_initialize_sol_thread): Add declaration.
15674 * solib-aix.c (_initialize_solib_aix): Add declaration.
15675 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15676 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15677 * solib-frv.c (_initialize_frv_solib): Add declaration.
15678 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15679 * solib-target.c (_initialize_solib_target): Add declaration.
15680 * solib.c (_initialize_solib): Add declaration.
15681 * source-cache.c (_initialize_source_cache): Add declaration.
15682 * source.c (_initialize_source): Add declaration.
15683 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15684 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15685 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15686 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15687 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15688 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15689 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15690 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15691 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15692 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15693 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15694 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15695 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15696 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15697 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15698 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15699 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15700 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15701 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15702 * stabsread.c (_initialize_stabsread): Add declaration.
15703 * stack.c (_initialize_stack): Add declaration.
15704 * stap-probe.c (_initialize_stap_probe): Add declaration.
15705 * std-regs.c (_initialize_frame_reg): Add declaration.
15706 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15707 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15708 * symfile.c (_initialize_symfile): Add declaration.
15709 * symmisc.c (_initialize_symmisc): Add declaration.
15710 * symtab.c (_initialize_symtab): Add declaration.
15711 * target.c (_initialize_target): Add declaration.
15712 * target-connection.c (_initialize_target_connection): Add
15713 declaration.
15714 * target-dcache.c (_initialize_target_dcache): Add declaration.
15715 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15716 * thread.c (_initialize_thread): Add declaration.
15717 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15718 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15719 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15720 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15721 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15722 * tracectf.c (_initialize_ctf): Add declaration.
15723 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15724 * tracefile.c (_initialize_tracefile): Add declaration.
15725 * tracepoint.c (_initialize_tracepoint): Add declaration.
15726 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15727 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15728 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15729 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15730 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15731 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15732 * tui/tui.c (_initialize_tui): Add declaration.
15733 * typeprint.c (_initialize_typeprint): Add declaration.
15734 * ui-style.c (_initialize_ui_style): Add declaration.
15735 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15736 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15737 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15738 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15739 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15740 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15741 * unittests/filtered_iterator-selftests.c
15742 (_initialize_filtered_iterator_selftests): Add declaration.
15743 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15744 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15745 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15746 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15747 * unittests/main-thread-selftests.c
15748 (_initialize_main_thread_selftests): Add declaration.
15749 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15750 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15751 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15752 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15753 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15754 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15755 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15756 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15757 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15758 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15759 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15760 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15761 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15762 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15763 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15764 declaration.
15765 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15766 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15767 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15768 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15769 * user-regs.c (_initialize_user_regs): Add declaration.
15770 * utils.c (_initialize_utils): Add declaration.
15771 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15772 * valops.c (_initialize_valops): Add declaration.
15773 * valprint.c (_initialize_valprint): Add declaration.
15774 * value.c (_initialize_values): Add declaration.
15775 * varobj.c (_initialize_varobj): Add declaration.
15776 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15777 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15778 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15779 * windows-nat.c (_initialize_windows_nat): Add declaration.
15780 (_initialize_check_for_gdb_ini): Add declaration.
15781 (_initialize_loadable): Add declaration.
15782 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15783 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15784 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15785 * xcoffread.c (_initialize_xcoffread): Add declaration.
15786 * xml-support.c (_initialize_xml_support): Add declaration.
15787 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15788 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15789 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15790 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15791
e2de1eec
SM
157922020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15793
15794 * regformats/regdat.sh: Generate declaration for init function.
15795
e0037b4c
SM
157962020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15797
15798 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15799 up.
15800 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15801 close_one_inferior>: New methods.
15802 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15803 pass down target to find_inferior_pid.
15804 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15805 Pass down target to find_inferior_ptid.
15806 (gdbsim_target::create_inferior): Pass down target to
15807 add_thread_silent.
15808 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15809 target down to find_inferior_ptid and switch_to_thread.
15810 (gdbsim_target::close): Update to call close_one_inferior.
15811 (struct resume_data): Remove.
15812 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15813 directly, rather than through a void pointer.
15814 (gdbsim_target::resume): Update to call resume_one_inferior.
15815
58920b5b
SM
158162020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15817
15818 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15819
4ec89149
PA
158202020-01-12 Pedro Alves <palves@redhat.com>
15821
15822 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15823 directly for the current inferior instead of
15824 discard_all_inferiors.
15825 (discard_all_inferiors): Delete.
15826
7c392d1d
TT
158272020-01-11 Tom Tromey <tom@tromey.com>
15828
15829 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15830 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15831 deprecated_safe_get_selected_frame.
15832
d9ebdab7
TBA
158332020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15834
15835 * inferior.c (print_inferior): Switch inferior before printing it.
15836
f3c469b9
PA
158372020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15838 Pedro Alves <palves@redhat.com>
15839
15840 * progspace-and-thread.c (switch_to_program_space_and_thread):
15841 Assert there's an inferior for PSPACE. Use
15842 switch_to_inferior_no_thread to switch the inferior too.
15843 * progspace.c (program_space::~program_space): Call
15844 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15845 (program_space::free_all_objfiles): Don't call clear_symtab_users
15846 here.
15847 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15848
65c574f6
PA
158492020-01-10 Pedro Alves <palves@redhat.com>
15850
15851 * NEWS: Mention multi-target debugging, "info connections", and
15852 "add-inferior -no-connection".
15853
2f4fcf00
PA
158542020-01-10 Pedro Alves <palves@redhat.com>
15855
15856 * infrun.c: Include "target-connection.h".
15857 (check_multi_target_resumption): New.
15858 (proceed): Call it.
15859 * target-connection.c (make_target_connection_string): Make
15860 extern.
15861 * target-connection.h (make_target_connection_string): Declare.
15862
121b3efd
PA
158632020-01-10 Pedro Alves <palves@redhat.com>
15864
15865 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15866 * inferior.c (uiout_field_connection): New function.
15867 (print_inferior): Add new "connection-id" column.
15868 (add_inferior_command): Show connection number/string of added
15869 inferior.
15870 * process-stratum-target.h
15871 (process_stratum_target::connection_string): New virtual method.
15872 (process_stratum_target::connection_number): New field.
15873 * remote.c (remote_target::connection_string): New override.
15874 * target-connection.c: New file.
15875 * target-connection.h: New file.
15876 * target.c (decref_target): Remove process_stratum targets from
15877 the connection list.
15878 (target_stack::push): Add process_stratum targets to the
15879 connection list.
15880
4f837581
PA
158812020-01-10 Pedro Alves <palves@redhat.com>
15882
15883 Revert:
15884 2016-04-12 Pedro Alves <palves@redhat.com>
15885 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15886 Remove references to name.
15887 * serial.h (struct serial) <name>: Delete.
15888
f4ec508e
PA
158892020-01-10 Pedro Alves <palves@redhat.com>
15890
15891 * gdbarch-selftests.c (register_to_value_test): Remove "target
15892 already pushed" check.
15893
5b6d1e4f
PA
158942020-01-10 Pedro Alves <palves@redhat.com>
15895 John Baldwin <jhb@FreeBSD.org>
15896
15897 * aarch64-linux-nat.c
15898 (aarch64_linux_nat_target::thread_architecture): Adjust.
15899 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15900 (task_command_1): Likewise.
15901 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15902 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15903 (aix_thread_target::store_registers)
15904 (aix_thread_target::thread_alive): Adjust.
15905 * amd64-fbsd-tdep.c: Include "inferior.h".
15906 (amd64fbsd_get_thread_local_address): Pass down target.
15907 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15908 thread's gdbarch instead of target_gdbarch.
15909 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15910 get_last_target_status.
15911 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15912 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15913 inferiors.
15914 (update_inserted_breakpoint_locations): Skip if inferiors with no
15915 execution.
15916 (update_global_location_list): When handling moribund locations,
15917 find representative inferior for location's pspace, and use thread
15918 count of its process_stratum target.
15919 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15920 * bsd-uthread.c (bsd_uthread_target::wait): Use
15921 as_process_stratum_target and adjust thread_change_ptid and
15922 add_thread calls.
15923 (bsd_uthread_target::update_thread_list): Use
15924 as_process_stratum_target and adjust find_thread_ptid,
15925 thread_change_ptid and add_thread calls.
15926 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15927 find_thread_ptid call.
15928 * corelow.c (add_to_thread_list): Adjust add_thread call.
15929 (core_target_open): Adjust add_thread_silent and thread_count
15930 calls.
15931 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15932 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15933 * event-top.c (async_disconnect): Pop targets from all inferiors.
15934 * exec.c (add_target_sections): Push exec target on all inferiors
15935 sharing the program space.
15936 (remove_target_sections): Remove the exec target from all
15937 inferiors sharing the program space.
15938 (exec_on_vfork): New.
15939 * exec.h (exec_on_vfork): Declare.
15940 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15941 Pass it down.
15942 (fbsd_nat_target::update_thread_list): Adjust.
15943 (fbsd_nat_target::resume): Adjust.
15944 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15945 down.
15946 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15947 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15948 get_thread_arch_regcache call.
15949 * fork-child.c (gdb_startup_inferior): Pass target down to
15950 startup_inferior and set_executing.
15951 * gdbthread.h (struct process_stratum_target): Forward declare.
15952 (add_thread, add_thread_silent, add_thread_with_info)
15953 (in_thread_list): Add process_stratum_target parameter.
15954 (find_thread_ptid(inferior*, ptid_t)): New overload.
15955 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15956 parameter.
15957 (all_threads()): Delete overload.
15958 (all_threads, all_non_exited_threads): Add process_stratum_target
15959 parameter.
15960 (all_threads_safe): Use brace initialization.
15961 (thread_count): Add process_stratum_target parameter.
15962 (set_resumed, set_running, set_stop_requested, set_executing)
15963 (threads_are_executing, finish_thread_state): Add
15964 process_stratum_target parameter.
15965 (switch_to_thread): Use is_current_thread.
15966 * i386-fbsd-tdep.c: Include "inferior.h".
15967 (i386fbsd_get_thread_local_address): Pass down target.
15968 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15969 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15970 have_inferiors check.
15971 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15972 (inf_ptrace_target::attach): Adjust.
15973 * infcall.c (run_inferior_call): Adjust.
15974 * infcmd.c (run_command_1): Pass target to
15975 scoped_finish_thread_state.
15976 (proceed_thread_callback): Skip inferiors with no execution.
15977 (continue_command): Rename 'all_threads' local to avoid hiding
15978 'all_threads' function. Adjust get_last_target_status call.
15979 (prepare_one_step): Adjust set_running call.
15980 (signal_command): Use user_visible_resume_target. Compare thread
15981 pointers instead of inferior_ptid.
15982 (info_program_command): Adjust to pass down target.
15983 (attach_command): Mark target's 'thread_executing' flag.
15984 (stop_current_target_threads_ns): New, factored out from ...
15985 (interrupt_target_1): ... this. Switch inferior before making
15986 target calls.
15987 * inferior-iter.h
15988 (struct all_inferiors_iterator, struct all_inferiors_range)
15989 (struct all_inferiors_safe_range)
15990 (struct all_non_exited_inferiors_range): Filter on
15991 process_stratum_target too. Remove explicit.
15992 * inferior.c (inferior::inferior): Push dummy target on target
15993 stack.
15994 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15995 Add process_stratum_target parameter, and pass it down.
15996 (have_live_inferiors): Adjust.
15997 (switch_to_inferior_and_push_target): New.
15998 (add_inferior_command, clone_inferior_command): Handle
15999 "-no-connection" parameter. Use
16000 switch_to_inferior_and_push_target.
16001 (_initialize_inferior): Mention "-no-connection" option in
16002 the help of "add-inferior" and "clone-inferior" commands.
16003 * inferior.h: Include "process-stratum-target.h".
16004 (interrupt_target_1): Use bool.
16005 (struct inferior) <push_target, unpush_target, target_is_pushed,
16006 find_target_beneath, top_target, process_target, target_at,
16007 m_stack>: New.
16008 (discard_all_inferiors): Delete.
16009 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16010 (all_inferiors, all_non_exited_inferiors): Add
16011 process_stratum_target parameter.
16012 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16013 (target_last_proc_target): New global.
16014 (follow_fork_inferior): Push target on new inferior. Pass target
16015 to add_thread_silent. Call exec_on_vfork. Handle target's
16016 reference count.
16017 (follow_fork): Adjust get_last_target_status call. Also consider
16018 target.
16019 (follow_exec): Push target on new inferior.
16020 (struct execution_control_state) <target>: New field.
16021 (user_visible_resume_target): New.
16022 (do_target_resume): Call target_async.
16023 (resume_1): Set target's threads_executing flag. Consider resume
16024 target.
16025 (commit_resume_all_targets): New.
16026 (proceed): Also consider resume target. Skip threads of inferiors
16027 with no execution. Commit resumtion in all targets.
16028 (start_remote): Pass current inferior to wait_for_inferior.
16029 (infrun_thread_stop_requested): Consider target as well. Pass
16030 thread_info pointer to clear_inline_frame_state instead of ptid.
16031 (infrun_thread_thread_exit): Consider target as well.
16032 (random_pending_event_thread): New inferior parameter. Use it.
16033 (do_target_wait): Rename to ...
16034 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16035 down.
16036 (threads_are_resumed_pending_p, do_target_wait): New.
16037 (prepare_for_detach): Adjust calls.
16038 (wait_for_inferior): New inferior parameter. Handle it. Use
16039 do_target_wait_1 instead of do_target_wait.
16040 (fetch_inferior_event): Adjust. Switch to representative
16041 inferior. Pass target down.
16042 (set_last_target_status): Add process_stratum_target parameter.
16043 Save target in global.
16044 (get_last_target_status): Add process_stratum_target parameter and
16045 handle it.
16046 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16047 (context_switch): Check inferior_ptid == null_ptid before calling
16048 inferior_thread().
16049 (get_inferior_stop_soon): Pass down target.
16050 (wait_one): Rename to ...
16051 (poll_one_curr_target): ... this.
16052 (struct wait_one_event): New.
16053 (wait_one): New.
16054 (stop_all_threads): Adjust.
16055 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16056 event's target.
16057 (switch_back_to_stepped_thread): Also consider target.
16058 (print_stop_event): Update.
16059 (normal_stop): Update. Also consider the resume target.
16060 * infrun.h (wait_for_inferior): Remove declaration.
16061 (user_visible_resume_target): New declaration.
16062 (get_last_target_status, set_last_target_status): New
16063 process_stratum_target parameter.
16064 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16065 process_stratum_target parameter, and use it.
16066 (clear_inline_frame_state (thread_info*)): New.
16067 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16068 process_stratum_target parameter.
16069 (clear_inline_frame_state (thread_info*)): Declare.
16070 * linux-fork.c (delete_checkpoint_command): Pass target down to
16071 find_thread_ptid.
16072 (checkpoint_command): Adjust.
16073 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16074 instead of just tweaking inferior_ptid.
16075 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16076 (exit_lwp): Pass target down to find_thread_ptid.
16077 (attach_proc_task_lwp_callback): Pass target down to
16078 add_thread/set_running/set_executing.
16079 (linux_nat_target::attach): Pass target down to
16080 thread_change_ptid.
16081 (get_detach_signal): Pass target down to find_thread_ptid.
16082 Consider last target status's target.
16083 (linux_resume_one_lwp_throw, resume_lwp)
16084 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16085 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16086 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16087 (linux_nat_target::async_wait_fd): New.
16088 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16089 target down.
16090 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16091 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16092 * linux-thread-db.c (struct thread_db_info::process_target): New
16093 field.
16094 (add_thread_db_info): Save target.
16095 (get_thread_db_info): New process_stratum_target parameter. Also
16096 match target.
16097 (delete_thread_db_info): New process_stratum_target parameter.
16098 Also match target.
16099 (thread_from_lwp): Adjust to pass down target.
16100 (thread_db_notice_clone): Pass down target.
16101 (check_thread_db_callback): Pass down target.
16102 (try_thread_db_load_1): Always push the thread_db target.
16103 (try_thread_db_load, record_thread): Pass target down.
16104 (thread_db_target::detach): Pass target down. Always unpush the
16105 thread_db target.
16106 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16107 target down. Always unpush the thread_db target.
16108 (find_new_threads_callback, thread_db_find_new_threads_2)
16109 (thread_db_target::update_thread_list): Pass target down.
16110 (thread_db_target::pid_to_str): Pass current inferior down.
16111 (thread_db_target::get_thread_local_address): Pass target down.
16112 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16113 target down.
16114 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16115 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16116 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16117 (procfs_init_inferior): Rename to ...
16118 (procfs_target::procfs_init_inferior): ... this and adjust.
16119 (procfs_target::create_inferior, procfs_notice_thread)
16120 (procfs_do_thread_registers): Adjust.
16121 * ppc-fbsd-tdep.c: Include "inferior.h".
16122 (ppcfbsd_get_thread_local_address): Pass down target.
16123 * proc-service.c (ps_xfer_memory): Switch current inferior and
16124 program space as well.
16125 (get_ps_regcache): Pass target down.
16126 * process-stratum-target.c
16127 (process_stratum_target::thread_address_space)
16128 (process_stratum_target::thread_architecture): Pass target down.
16129 * process-stratum-target.h
16130 (process_stratum_target::threads_executing): New field.
16131 (as_process_stratum_target): New.
16132 * ravenscar-thread.c
16133 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16134 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16135 down.
16136 * record-btrace.c (record_btrace_target::info_record): Adjust.
16137 (record_btrace_target::record_method)
16138 (record_btrace_target::record_is_replaying)
16139 (record_btrace_target::fetch_registers)
16140 (get_thread_current_frame_id, record_btrace_target::resume)
16141 (record_btrace_target::wait, record_btrace_target::stop): Pass
16142 target down.
16143 * record-full.c (record_full_wait_1): Switch to event thread.
16144 Pass target down.
16145 * regcache.c (regcache::regcache)
16146 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16147 process_stratum_target parameter and handle it.
16148 (current_thread_target): New global.
16149 (get_thread_regcache): Add process_stratum_target parameter and
16150 handle it. Switch inferior before calling target method.
16151 (get_thread_regcache): Pass target down.
16152 (get_thread_regcache_for_ptid): Pass target down.
16153 (registers_changed_ptid): Add process_stratum_target parameter and
16154 handle it.
16155 (registers_changed_thread, registers_changed): Pass target down.
16156 (test_get_thread_arch_aspace_regcache): New.
16157 (current_regcache_test): Define a couple local test_target_ops
16158 instances and use them for testing.
16159 (readwrite_regcache): Pass process_stratum_target parameter.
16160 (cooked_read_test, cooked_write_test): Pass mock_target down.
16161 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16162 (get_thread_arch_aspace_regcache): Add process_stratum_target
16163 parameter.
16164 (regcache::target): New method.
16165 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16166 (regcache::registers_changed_ptid): Add process_stratum_target
16167 parameter.
16168 (regcache::m_target): New field.
16169 (registers_changed_ptid): Add process_stratum_target parameter.
16170 * remote.c (remote_state::supports_vCont_probed): New field.
16171 (remote_target::async_wait_fd): New method.
16172 (remote_unpush_and_throw): Add remote_target parameter.
16173 (get_current_remote_target): Adjust.
16174 (remote_target::remote_add_inferior): Push target.
16175 (remote_target::remote_add_thread)
16176 (remote_target::remote_notice_new_inferior)
16177 (get_remote_thread_info): Pass target down.
16178 (remote_target::update_thread_list): Skip threads of inferiors
16179 bound to other targets. (remote_target::close): Don't discard
16180 inferiors. (remote_target::add_current_inferior_and_thread)
16181 (remote_target::process_initial_stop_replies)
16182 (remote_target::start_remote)
16183 (remote_target::remote_serial_quit_handler): Pass down target.
16184 (remote_target::remote_unpush_target): New remote_target
16185 parameter. Unpush the target from all inferiors.
16186 (remote_target::remote_unpush_and_throw): New remote_target
16187 parameter. Pass it down.
16188 (remote_target::open_1): Check whether the current inferior has
16189 execution instead of checking whether any inferior is live. Pass
16190 target down.
16191 (remote_target::remote_detach_1): Pass down target. Use
16192 remote_unpush_target.
16193 (extended_remote_target::attach): Pass down target.
16194 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16195 (remote_target::append_resumption): Pass down target.
16196 (remote_target::append_pending_thread_resumptions)
16197 (remote_target::remote_resume_with_hc, remote_target::resume)
16198 (remote_target::commit_resume): Pass down target.
16199 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16200 (remote_target::interrupt_query)
16201 (remote_target::remove_new_fork_children)
16202 (remote_target::check_pending_events_prevent_wildcard_vcont)
16203 (remote_target::remote_parse_stop_reply)
16204 (remote_target::process_stop_reply): Pass down target.
16205 (first_remote_resumed_thread): New remote_target parameter. Pass
16206 it down.
16207 (remote_target::wait_as): Pass down target.
16208 (unpush_and_perror): New remote_target parameter. Pass it down.
16209 (remote_target::readchar, remote_target::remote_serial_write)
16210 (remote_target::getpkt_or_notif_sane_1)
16211 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16212 down target.
16213 (remote_target::mourn_inferior): Pass down target. Use
16214 remote_unpush_target.
16215 (remote_target::core_of_thread)
16216 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16217 (remote_target::pid_to_exec_file)
16218 (remote_target::thread_handle_to_thread_info): Pass down target.
16219 (remote_target::async_wait_fd): New.
16220 * riscv-fbsd-tdep.c: Include "inferior.h".
16221 (riscv_fbsd_get_thread_local_address): Pass down target.
16222 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16223 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16224 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16225 Adjust.
16226 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16227 * solib-svr4.c (enable_break): Pass down target.
16228 * spu-multiarch.c (parse_spufs_run): Pass down target.
16229 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16230 * target-delegates.c: Regenerate.
16231 * target.c (g_target_stack): Delete.
16232 (current_top_target): Return the current inferior's top target.
16233 (target_has_execution_1): Refer to the passed-in inferior's top
16234 target.
16235 (target_supports_terminal_ours): Check whether the initial
16236 inferior was already created.
16237 (decref_target): New.
16238 (target_stack::push): Incref/decref the target.
16239 (push_target, push_target, unpush_target): Adjust.
16240 (target_stack::unpush): Defref target.
16241 (target_is_pushed): Return bool. Adjust to refer to the current
16242 inferior's target stack.
16243 (dispose_inferior): Delete, and inline parts ...
16244 (target_preopen): ... here. Only dispose of the current inferior.
16245 (target_detach): Hold strong target reference while detaching.
16246 Pass target down.
16247 (target_thread_name): Add assertion.
16248 (target_resume): Pass down target.
16249 (target_ops::beneath, find_target_at): Adjust to refer to the
16250 current inferior's target stack.
16251 (get_dummy_target): New.
16252 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16253 has a thread running.
16254 (initialize_targets): Rename to ...
16255 (_initialize_target): ... this.
16256 * target.h: Include "gdbsupport/refcounted-object.h".
16257 (struct target_ops): Inherit refcounted_object.
16258 (target_ops::shortname, target_ops::longname): Make const.
16259 (target_ops::async_wait_fd): New method.
16260 (decref_target): Declare.
16261 (struct target_ops_ref_policy): New.
16262 (target_ops_ref): New typedef.
16263 (get_dummy_target): Declare function.
16264 (target_is_pushed): Return bool.
16265 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16266 (all_matching_threads_iterator::all_matching_threads_iterator):
16267 Handle filter target.
16268 * thread-iter.h (struct all_matching_threads_iterator, struct
16269 all_matching_threads_range, class all_non_exited_threads_range):
16270 Filter by target too. Remove explicit.
16271 * thread.c (threads_executing): Delete.
16272 (inferior_thread): Pass down current inferior.
16273 (clear_thread_inferior_resources): Pass down thread pointer
16274 instead of ptid_t.
16275 (add_thread_silent, add_thread_with_info, add_thread): Add
16276 process_stratum_target parameter. Use it for thread and inferior
16277 searches.
16278 (is_current_thread): New.
16279 (thread_info::deletable): Use it.
16280 (find_thread_ptid, thread_count, in_thread_list)
16281 (thread_change_ptid, set_resumed, set_running): New
16282 process_stratum_target parameter. Pass it down.
16283 (set_executing): New process_stratum_target parameter. Pass it
16284 down. Adjust reference to 'threads_executing'.
16285 (threads_are_executing): New process_stratum_target parameter.
16286 Adjust reference to 'threads_executing'.
16287 (set_stop_requested, finish_thread_state): New
16288 process_stratum_target parameter. Pass it down.
16289 (switch_to_thread): Also match inferior.
16290 (switch_to_thread): New process_stratum_target parameter. Pass it
16291 down.
16292 (update_threads_executing): Reimplement.
16293 * top.c (quit_force): Pop targets from all inferior.
16294 (gdb_init): Don't call initialize_targets.
16295 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16296 Declare.
16297 (windows_add_thread, windows_delete_thread): Adjust.
16298 (get_windows_debug_event): Rename to ...
16299 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16300 * tracefile-tfile.c (tfile_target_open): Pass down target.
16301 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16302 Forward declare.
16303 (switch_to_thread): Add process_stratum_target parameter.
16304 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16305 parameter. Use it.
16306 (mi_on_resume): Pass target down.
16307 * nat/fork-inferior.c (startup_inferior): Add
16308 process_stratum_target parameter. Pass it down.
16309 * nat/fork-inferior.h (startup_inferior): Add
16310 process_stratum_target parameter.
16311 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16312
75c6c844
PA
163132020-01-10 Pedro Alves <palves@redhat.com>
16314
16315 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16316 directly. Instead find the first thread in the thread list and
16317 use switch_to_thread.
16318
78f2c40a
PA
163192020-01-10 Pedro Alves <palves@redhat.com>
16320
16321 * remote.c (remote_target::remote_add_inferior): Don't bind a
16322 process to the current inferior if the current inferior is already
16323 bound to a process.
16324
e7af6c70
TBA
163252020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16326 Pedro Alves <palves@redhat.com>
16327
16328 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16329 If no process is specified, return null_ptid instead of
16330 inferior_ptid.
16331 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16332 TARGET_WAITKIND_SIGNALLED with no pid.
16333
31ba933e
PA
163342020-01-10 Pedro Alves <palves@redhat.com>
16335
16336 * remote.c (first_remote_resumed_thread): New.
16337 (remote_target::wait_as): Use it as default event_ptid instead of
16338 inferior_ptid.
16339
735fc2ca
PA
163402020-01-10 Pedro Alves <palves@redhat.com>
16341
16342 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16343
c17e02e1
PA
163442020-01-10 Pedro Alves <palves@redhat.com>
16345
16346 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16347 not -1.
16348
ab1ddbcf
PA
163492020-01-10 Pedro Alves <palves@redhat.com>
16350
16351 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16352 ptid to get_last_target_status.
16353 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16354 ptid to get_last_target_status.
16355 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16356 get_last_target_status.
16357 (info_program_command): Don't pass a target_waitstatus to
16358 get_last_target_status.
16359 * infrun.c (init_wait_for_inferior): Use
16360 nullify_last_target_wait_ptid.
16361 (get_last_target_status): Handle nullptr arguments.
16362 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16363 (print_stop_event): Don't pass a ptid to get_last_target_status.
16364 (normal_stop): Don't pass a ptid to get_last_target_status.
16365 * infrun.h (get_last_target_status, set_last_target_status): Move
16366 comments here and update.
16367 (nullify_last_target_wait_ptid): Declare.
16368 * linux-fork.c (fork_load_infrun_state): Remove local extern
16369 declaration of nullify_last_target_wait_ptid.
16370 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16371 to get_last_target_status.
16372
f3f8ece4
PA
163732020-01-10 Pedro Alves <palves@redhat.com>
16374
16375 * gdbthread.h (scoped_restore_current_thread)
16376 <dont_restore, restore, m_dont_restore>: Declare.
16377 * thread.c (thread_alive): Add assertion. Return bool.
16378 (switch_to_thread_if_alive): New.
16379 (prune_threads): Switch inferior/thread.
16380 (print_thread_info_1): Switch thread before calling target methods.
16381 (scoped_restore_current_thread::restore): New, factored out from
16382 ...
16383 (scoped_restore_current_thread::~scoped_restore_current_thread):
16384 ... this.
16385 (scoped_restore_current_thread::scoped_restore_current_thread):
16386 Add assertion.
16387 (thread_apply_all_command, thread_select): Use
16388 switch_to_thread_if_alive.
16389 * infrun.c (proceed, restart_threads, handle_signal_stop)
16390 (switch_back_to_stepped_thread): Switch current thread before
16391 calling target methods.
16392
db2d40f7
PA
163932020-01-10 Pedro Alves <palves@redhat.com>
16394
16395 * inferior.c (switch_to_inferior_no_thread): New function,
16396 factored out from ...
16397 (inferior_command): ... here.
16398 * inferior.h (switch_to_inferior_no_thread): Declare.
16399 * mi/mi-main.c (run_one_inferior): Use
16400 switch_to_inferior_no_thread.
16401
bd420a2d
PA
164022020-01-10 Pedro Alves <palves@redhat.com>
16403
16404 * infcmd.c (kill_command): Remove dead code.
16405
ddf5db90
PA
164062020-01-10 Pedro Alves <palves@redhat.com>
16407
16408 * remote.c (remote_target::mourn_inferior): No longer check
16409 whether the target is running.
16410
5018ce90
PA
164112020-01-10 Pedro Alves <palves@redhat.com>
16412
16413 * corelow.c (core_target::has_execution): Change parameter type to
16414 inferior pointer.
16415 * inferior.c (number_of_live_inferiors): Use
16416 inferior::has_execution instead of target_has_execution_1.
16417 * inferior.h (inferior::has_execution): New.
16418 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16419 inferior::has_execution instead of target_has_execution_1.
16420 * process-stratum-target.c
16421 (process_stratum_target::has_execution): Change parameter type to
16422 inferior pointer. Check the inferior's PID instead of
16423 inferior_ptid.
16424 * process-stratum-target.h
16425 (process_stratum_target::has_execution): Change parameter type to
16426 inferior pointer.
16427 * record-full.c (record_full_core_target::has_execution): Change
16428 parameter type to inferior pointer.
16429 * target.c (target_has_execution_1): Change parameter type to
16430 inferior pointer.
16431 (target_has_execution_current): Adjust.
16432 * target.h (target_ops::has_execution): Change parameter type to
16433 inferior pointer.
16434 (target_has_execution_1): Change parameter type to inferior
16435 pointer. Change return type to bool.
16436 * tracefile.h (tracefile_target::has_execution): Change parameter
16437 type to inferior pointer.
16438
74375d18
PA
164392020-01-10 Pedro Alves <palves@redhat.com>
16440
16441 * exceptions.c (print_flush): Remove current_top_target() check.
16442
acdf84a6
PA
164432020-01-10 Pedro Alves <palves@redhat.com>
16444
16445 * remote.c (show_remote_exec_file): Show the current inferior's
16446 exec-file instead of the command variable's value.
16447
ec506636
PA
164482020-01-10 Pedro Alves <palves@redhat.com>
16449
16450 * record-full.c (record_full_resume_ptid): New global.
16451 (record_full_target::resume): Set it.
16452 (record_full_wait_1): Use record_full_resume_ptid instead of
16453 inferior_ptid.
16454
873657b9
PA
164552020-01-10 Pedro Alves <palves@redhat.com>
16456
16457 * gdbthread.h (scoped_restore_current_thread)
16458 <dont_restore, restore, m_dont_restore>: Declare.
16459 * thread.c (thread_alive): Add assertion. Return bool.
16460 (switch_to_thread_if_alive): New.
16461 (prune_threads): Switch inferior/thread.
16462 (print_thread_info_1): Switch thread before calling target methods.
16463 (scoped_restore_current_thread::restore): New, factored out from
16464 ...
16465 (scoped_restore_current_thread::~scoped_restore_current_thread):
16466 ... this.
16467 (scoped_restore_current_thread::scoped_restore_current_thread):
16468 Add assertion.
16469 (thread_apply_all_command, thread_select): Use
16470 switch_to_thread_if_alive.
16471
7f0ae84c
GB
164722020-01-10 George Barrett <bob@bob131.so>
16473
16474 * stap-probe.c (stap_modify_semaphore): Don't check for null
16475 semaphores.
16476 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16477 for null semaphores.
16478
f5a7c406
AB
164792020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16480
16481 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16482 all source windows, and maintain horizontal scroll status while
16483 doing so.
16484
9ae6bf64
TT
164852020-01-09 Tom Tromey <tom@tromey.com>
16486
16487 PR tui/18932:
16488 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16489 update_source_window, not print_source_lines.
16490
b2efe70c
AB
164912020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16492
16493 * tui/tui.c (tui_enable): Register tui hooks after calling
16494 tui_display_main.
16495
5f23a082
CB
164962020-01-09 Christian Biesinger <cbiesinger@google.com>
16497
16498 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16499
3061113b
SM
165002020-01-08 Simon Marchi <simon.marchi@efficios.com>
16501
16502 * thread.c (print_thread_info_1): Fix indentation.
16503
57d75002
CB
165042020-01-09 Christian Biesinger <cbiesinger@google.com>
16505
16506 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16507 unique_xmalloc_ptr outside the if to always free the demangled name.
16508
6a053cb1
TT
165092020-01-08 Tom Tromey <tromey@adacore.com>
16510
16511 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16512 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16513 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16514 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16515 Remove.
16516 (section_offsets): New typedef.
16517 * symtab.c (fixup_section, get_msymbol_address): Update.
16518 * symmisc.c (dump_msymbols): Update.
16519 * symfile.h (relative_addr_info_to_section_offsets)
16520 (symfile_map_offsets_to_segments): Update.
16521 * symfile.c (build_section_addr_info_from_objfile)
16522 (init_objfile_sect_indices): Update.
16523 (struct place_section_arg): Change type of "offsets".
16524 (place_section): Update.
16525 (relative_addr_info_to_section_offsets): Change type of
16526 "section_offsets". Remove "num_sections" parameter.
16527 (default_symfile_offsets, syms_from_objfile_1)
16528 (set_objfile_default_section_offset): Update.
16529 (reread_symbols): No need to preserve section offsets by hand.
16530 (symfile_map_offsets_to_segments): Change type of "offsets".
16531 * stap-probe.c (relocate_address): Update.
16532 * stabsread.h (process_one_symbol): Update.
16533 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16534 (solib_target_relocate_section_addresses): Update.
16535 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16536 Update.
16537 * solib-frv.c (frv_relocate_main_executable): Update.
16538 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16539 * solib-aix.c (solib_aix_get_section_offsets): Change return
16540 type.
16541 (solib_aix_solib_create_inferior_hook): Update.
16542 * remote.c (remote_target::get_offsets): Update.
16543 * psymtab.c (find_pc_sect_psymtab): Update.
16544 * psympriv.h (struct partial_symbol) <address, text_low,
16545 text_high>: Update.
16546 * objfiles.h (obj_section_offset): Update.
16547 (struct objfile) <section_offsets>: Change type.
16548 <num_sections>: Remove.
16549 (objfile_relocate): Update.
16550 * objfiles.c (entry_point_address_query): Update
16551 (relocate_one_symbol): Change type of "section_offsets".
16552 (objfile_relocate1, objfile_relocate1): Change type of
16553 "new_offsets".
16554 (objfile_rebase1): Update.
16555 * mipsread.c (mipscoff_symfile_read): Update.
16556 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16557 parameter.
16558 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16559 (parse_external, psymtab_to_symtab_1): Update.
16560 * machoread.c (macho_symfile_offsets): Update.
16561 * ia64-tdep.c (ia64_find_unwind_table): Update.
16562 * hppa-tdep.c (read_unwind_info): Update.
16563 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16564 * dwarf2read.c (create_addrmap_from_index)
16565 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16566 (process_psymtab_comp_unit_reader, add_partial_symbol)
16567 (add_partial_subprogram, process_full_comp_unit)
16568 (read_file_scope, read_func_scope, read_lexical_block_scope)
16569 (read_call_site_scope, dwarf2_rnglists_process)
16570 (dwarf2_ranges_process, dwarf2_ranges_read)
16571 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16572 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16573 Update.
16574 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16575 Update.
16576 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16577 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16578 (process_one_symbol): Change type of "section_offsets".
16579 * ctfread.c (get_objfile_text_range): Update.
16580 * coffread.c (coff_symtab_read, enter_linenos)
16581 (process_coff_symbol): Update.
16582 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16583 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16584
456e800a
TT
165852020-01-08 Tom Tromey <tromey@adacore.com>
16586
16587 * dwarf2read.c (parse_macro_definition): Use std::string.
16588 (parse_macro_definition): Likewise.
16589
6dfa2fc2
TT
165902020-01-08 Tom Tromey <tromey@adacore.com>
16591
16592 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16593 (ATTR_ALLOC_CHUNK): Remove.
16594
421d1616
TT
165952020-01-08 Tom Tromey <tromey@adacore.com>
16596
16597 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16598
43816ebc
TT
165992020-01-08 Tom Tromey <tromey@adacore.com>
16600
16601 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16602 (dwarf2_compute_name, open_dwo_file): Likewise.
16603 (process_enumeration_scope): Use std::vector.
16604 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16605 (partial_die_info::fixup, dwarf2_start_subfile)
16606 (guess_full_die_structure_name, dwarf2_name): Likewise.
16607 (determine_prefix): Update.
16608 (guess_full_die_structure_name): Make return type const.
16609 (partial_die_full_name): Return unique_xmalloc_ptr.
16610 (DW_FIELD_ALLOC_CHUNK): Remove.
16611
4212d509
TT
166122020-01-07 Tom Tromey <tromey@adacore.com>
16613
16614 PR build/24937:
16615 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16616
06a6207a
JT
166172020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16618
16619 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16620
153d79c4
AB
166212020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16622
16623 * stack.c (print_frame_info): Move disassemble_next_line code
16624 inside source_print block.
16625
66182876
EZ
166262020-01-06 Eli Zaretskii <eliz@gnu.org>
16627
16628 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16629 gdb/signals.h, as we are now using native signal symbols.
16630
cbfa8581
SV
166312020-01-06 Shahab Vahedi <shahab@synopsys.com>
16632
16633 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16634 overflow by an early check of content vs threshold.
aac66a4c 16635 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16636 Likewise.
16637
3f602821
EZ
166382020-01-06 Eli Zaretskii <eliz@gnu.org>
16639
16640 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16641
a08c904d
JT
166422020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16643
16644 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16645 export table if no section contains it's RVA.
16646
89a65580
EZ
166472020-01-06 Eli Zaretskii <eliz@gnu.org>
16648
16649 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16650
8b7fcda2
HD
166512020-01-06 Hannes Domani <ssbssa@yahoo.de>
16652
16653 * source.c (print_source_lines_base): Set last_line_listed.
16654
a61b4f69
SV
166552020-01-06 Shahab Vahedi <shahab@synopsys.com>
16656
16657 * tui/tui-disasm.c: Remove trailing spaces.
16658
559e7e50
EZ
166592020-01-06 Eli Zaretskii <eliz@gnu.org>
16660 Pedro Alves <palves@redhat.com>
16661
16662 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16663 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16664 (windows_gdb_signal_to_target): New function, uses the above
16665 enumeration to convert GDB internal signal codes to equivalent
16666 Windows codes.
16667 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16668 * windows-nat.c: Include "gdb_wait.h".
16669 (get_windows_debug_event): Extract the fatal exception from the
16670 exit status and convert to the equivalent Posix signal number.
16671 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16672 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16673 * gdbsupport/gdb_wait.c: New file, implements
16674 windows_status_to_termsig.
16675 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16676 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16677
f2302a34
AB
166782020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16679
16680 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16681 show_layout.
16682
6a5206eb
LM
166832020-01-05 Luis Machado <luis.machado@linaro.org>
16684
16685 * aarch64-linux-nat.c
16686 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16687 and bfd_mach_aarch64.
16688
6ec1d75e
PW
166892020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16690
16691 * ui-file.c (stdio_file::can_emit_style_escape)
16692 (tee_file::can_emit_style_escape): Ensure style is used also on
16693 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16694 to gdb_stdout.
16695 * main.c (set_gdb_data_directory): Use file style to output the
16696 warning that the given pathname is not a directory.
16697 * top.c (show_history_filename, gdb_safe_append_history)
16698 (show_gdb_datadir): Use file style.
16699
44f81a76
HD
167002020-01-03 Hannes Domani <ssbssa@yahoo.de>
16701
16702 * solib-target.c (struct lm_info_target):
16703 Change offsets to be a unique_xmalloc_ptr.
16704 (solib_target_relocate_section_addresses): Update.
16705
25057eb0
HD
167062020-01-03 Hannes Domani <ssbssa@yahoo.de>
16707
16708 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16709
6e2118f5
BE
167102020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16711
16712 * MAINTAINERS (Write After Approval): Add myself.
16713
8133c7dc
LM
167142020-01-02 Luis Machado <luis.machado@linaro.org>
16715
16716 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16717 Cell BE architecture.
16718 * target.h (struct target_ops) <thread_architecture>: Likewise.
16719
48189bec
HD
167202020-01-01 Hannes Domani <ssbssa@yahoo.de>
16721
16722 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16723
ead1063b
HD
167242020-01-01 Hannes Domani <ssbssa@yahoo.de>
16725
16726 * MAINTAINERS (Write After Approval): Add myself.
16727
e5d78223
JB
167282020-01-01 Joel Brobecker <brobecker@adacore.com>
16729
16730 * gdbarch.sh: Update copyright year range of generated files.
16731
b811d2c2
JB
167322020-01-01 Joel Brobecker <brobecker@adacore.com>
16733
16734 Update copyright year range in all GDB files.
16735
5f4def5c
JB
167362020-01-01 Joel Brobecker <brobecker@adacore.com>
16737
16738 * copyright.py: Convert to Python 3.
16739
51fd4002
JB
167402020-01-01 Joel Brobecker <brobecker@adacore.com>
16741
16742 * copyright.py: Adapt after move of gnulib directory from gdb
16743 directory to toplevel directory.
16744
5fb651f2
JB
167452020-01-01 Joel Brobecker <brobecker@adacore.com>
16746
16747 * copyright.py (main): Exit if run from the wrong directory.
16748
5dd8bf88
JB
167492020-01-01 Joel Brobecker <brobecker@adacore.com>
16750
16751 * top.c (print_gdb_version): Change copyright year to 2020.
16752
9f71dacb 167532020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16754
9f71dacb 16755 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16756
9f71dacb 16757For older changes see ChangeLog-2019.
c906108c
SS
16758\f
16759Local Variables:
16760mode: change-log
16761left-margin: 8
16762fill-column: 74
16763version-control: never
57da7796 16764coding: utf-8
c906108c 16765End: