Constify value_nsstring
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8e20b4be
TT
12020-11-10 Tom Tromey <tom@tromey.com>
2
3 * objc-lang.h (value_nsstring): Update.
4 * objc-lang.c (value_nsstring): Make "ptr" const.
5
86775fab
AB
62020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * expprint.c (print_subexp_funcall): Increment expression position
9 after reading argument count.
10 * f-lang.c (print_subexp_f): Skip over opcode before calling
11 common function.
12 (dump_subexp_body_f): Likewise.
13
3fed4c0b
RG
142020-11-06 Romain Geissler <romain.geissler@amadeus.com>
15
16 PR python/26832
17 * configure: Regenerate.
18 * configure.ac: Check for python modules ctypes instead of
19 itertools.
20
ac3d4064
PA
212020-11-06 Pedro Alves <pedro@palves.net>
22
23 * macroexp.c (struct macro_buffer): Split in two classes. Add
24 uses adjusted.
25 (struct shared_macro_buffer): New, factored out from struct
26 macro_buffer.
27 (struct growable_macro_buffer): New, factored out from struct
28 macro_buffer.
29 (set_token, get_comment, get_identifier, get_pp_number)
30 (get_character_constant, get_string_literal, get_punctuator)
31 (get_next_token_for_substitution): Constify parameters.
32 (substitute_args): Constify locals.
33
606decb2
TT
342020-11-05 Tom Tromey <tom@tromey.com>
35
36 * dwarf2/read.c (read_cutu_die_from_dwo)
37 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
38 (build_type_psymtabs_1): Update.
39 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
40 parameter.
41 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
42 Don't read section. Add assert.
43
9c91c725
TT
442020-11-04 Tom Tromey <tromey@adacore.com>
45
46 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
47
8d9fd3a1
TT
482020-11-04 Tom Tromey <tromey@adacore.com>
49
50 * ada-typeprint.c (ada_print_type): Handle __T types.
51
d8f62e84
TT
522020-11-04 Tom Tromey <tromey@adacore.com>
53
54 * dwarf2/read.c (add_partial_symbol, process_die):
55 Handle DW_TAG_array_type.
56 (is_type_tag_for_partial): Add "lang" parameter.
57 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
58
7ff5b937
TT
592020-11-04 Tom Tromey <tromey@adacore.com>
60
61 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
62
10f6a3ad
TT
632020-11-04 Tom Tromey <tromey@adacore.com>
64
65 * dwarf2/read.c (read_array_type): Only apply stride to innermost
66 array.
67
b72795a8
TT
682020-11-04 Tom Tromey <tromey@adacore.com>
69
70 * gdbtypes.c (update_static_array_size): Handle bit stride.
71
24aa1b02
TT
722020-11-04 Tom Tromey <tromey@adacore.com>
73
74 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
75
c9a28cbe
TT
762020-11-04 Tom Tromey <tromey@adacore.com>
77
78 * ada-lang.c (ada_is_any_packed_array_type): New function.
79 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
80
57567375
TT
812020-11-04 Tom Tromey <tromey@adacore.com>
82
83 * dwarf2/read.c (recognize_bound_expression)
84 (quirk_ada_thick_pointer): New functions.
85 (read_array_type): Call quirk_ada_thick_pointer.
86 (set_die_type): Add "skip_data_location" parameter.
87 (quirk_ada_thick_pointer): New function.
88 (process_structure_scope): Call quirk_ada_thick_pointer.
89 * ada-lang.c (ada_is_unconstrained_packed_array_type)
90 (decode_packed_array_bitsize): Handle thick pointers without
91 parallel types.
92 (ada_is_gnat_encoded_packed_array_type): Rename from
93 ada_is_packed_array_type.
94 (ada_is_constrained_packed_array_type): Update.
95 * ada-valprint.c (ada_val_print_gnat_array): Remove.
96 (ada_value_print_1): Use ada_get_decoded_value.
97
a7400e44
TT
982020-11-04 Tom Tromey <tromey@adacore.com>
99
100 * ada-lang.c (recursively_update_array_bitsize): New function.
101 (decode_constrained_packed_array_type): Call it.
102
75fd6a26
TT
1032020-11-04 Tom Tromey <tromey@adacore.com>
104
105 * ada-lang.c (to_fixed_array_type): Error if
106 decode_constrained_packed_array_type returns NULL.
107
93f9561e
TT
1082020-11-04 Tom Tromey <tromey@adacore.com>
109
110 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
111
257e02d8
TT
1122020-11-02 Tom Tromey <tromey@adacore.com>
113
114 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
115 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
116 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
117 * amd64-ravenscar-thread.c: New file.
118 * amd64-ravenscar-thread.h: New file.
119 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
120 * configure.tgt (amd64_tobjs): Add ravenscar objects.
121
74d877e5
AB
1222020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * main.c (execute_cmdargs): New function.
125 (captured_main_1): Make use of execute_cmdargs.
126
64aaad63
AB
1272020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * NEWS: Mention changes to config file search path.
130 * main.c
131
5b3d3560
TT
1322020-11-02 Tom Tromey <tromey@adacore.com>
133
134 * python/python.c: Consolidate two HAVE_PYTHON blocks.
135 (python_GdbModuleDef): Move earlier. Now static.
136 (do_start_initialization): Consolidate some IS_PY3K blocks.
137
dda83cd7
SM
1382020-11-02 Simon Marchi <simon.marchi@efficios.com>
139
140 * aarch64-linux-tdep.c: Fix indentation.
141 * aarch64-ravenscar-thread.c: Fix indentation.
142 * aarch64-tdep.c: Fix indentation.
143 * aarch64-tdep.h: Fix indentation.
144 * ada-lang.c: Fix indentation.
145 * ada-lang.h: Fix indentation.
146 * ada-tasks.c: Fix indentation.
147 * ada-typeprint.c: Fix indentation.
148 * ada-valprint.c: Fix indentation.
149 * ada-varobj.c: Fix indentation.
150 * addrmap.c: Fix indentation.
151 * addrmap.h: Fix indentation.
152 * agent.c: Fix indentation.
153 * aix-thread.c: Fix indentation.
154 * alpha-bsd-nat.c: Fix indentation.
155 * alpha-linux-tdep.c: Fix indentation.
156 * alpha-mdebug-tdep.c: Fix indentation.
157 * alpha-nbsd-tdep.c: Fix indentation.
158 * alpha-obsd-tdep.c: Fix indentation.
159 * alpha-tdep.c: Fix indentation.
160 * amd64-bsd-nat.c: Fix indentation.
161 * amd64-darwin-tdep.c: Fix indentation.
162 * amd64-linux-nat.c: Fix indentation.
163 * amd64-linux-tdep.c: Fix indentation.
164 * amd64-nat.c: Fix indentation.
165 * amd64-obsd-tdep.c: Fix indentation.
166 * amd64-tdep.c: Fix indentation.
167 * amd64-windows-tdep.c: Fix indentation.
168 * annotate.c: Fix indentation.
169 * arc-tdep.c: Fix indentation.
170 * arch-utils.c: Fix indentation.
171 * arch/arm-get-next-pcs.c: Fix indentation.
172 * arch/arm.c: Fix indentation.
173 * arm-linux-nat.c: Fix indentation.
174 * arm-linux-tdep.c: Fix indentation.
175 * arm-nbsd-tdep.c: Fix indentation.
176 * arm-pikeos-tdep.c: Fix indentation.
177 * arm-tdep.c: Fix indentation.
178 * arm-tdep.h: Fix indentation.
179 * arm-wince-tdep.c: Fix indentation.
180 * auto-load.c: Fix indentation.
181 * auxv.c: Fix indentation.
182 * avr-tdep.c: Fix indentation.
183 * ax-gdb.c: Fix indentation.
184 * ax-general.c: Fix indentation.
185 * bfin-linux-tdep.c: Fix indentation.
186 * block.c: Fix indentation.
187 * block.h: Fix indentation.
188 * blockframe.c: Fix indentation.
189 * bpf-tdep.c: Fix indentation.
190 * break-catch-sig.c: Fix indentation.
191 * break-catch-syscall.c: Fix indentation.
192 * break-catch-throw.c: Fix indentation.
193 * breakpoint.c: Fix indentation.
194 * breakpoint.h: Fix indentation.
195 * bsd-uthread.c: Fix indentation.
196 * btrace.c: Fix indentation.
197 * build-id.c: Fix indentation.
198 * buildsym-legacy.h: Fix indentation.
199 * buildsym.c: Fix indentation.
200 * c-typeprint.c: Fix indentation.
201 * c-valprint.c: Fix indentation.
202 * c-varobj.c: Fix indentation.
203 * charset.c: Fix indentation.
204 * cli/cli-cmds.c: Fix indentation.
205 * cli/cli-decode.c: Fix indentation.
206 * cli/cli-decode.h: Fix indentation.
207 * cli/cli-script.c: Fix indentation.
208 * cli/cli-setshow.c: Fix indentation.
209 * coff-pe-read.c: Fix indentation.
210 * coffread.c: Fix indentation.
211 * compile/compile-cplus-types.c: Fix indentation.
212 * compile/compile-object-load.c: Fix indentation.
213 * compile/compile-object-run.c: Fix indentation.
214 * completer.c: Fix indentation.
215 * corefile.c: Fix indentation.
216 * corelow.c: Fix indentation.
217 * cp-abi.h: Fix indentation.
218 * cp-namespace.c: Fix indentation.
219 * cp-support.c: Fix indentation.
220 * cp-valprint.c: Fix indentation.
221 * cris-linux-tdep.c: Fix indentation.
222 * cris-tdep.c: Fix indentation.
223 * darwin-nat-info.c: Fix indentation.
224 * darwin-nat.c: Fix indentation.
225 * darwin-nat.h: Fix indentation.
226 * dbxread.c: Fix indentation.
227 * dcache.c: Fix indentation.
228 * disasm.c: Fix indentation.
229 * dtrace-probe.c: Fix indentation.
230 * dwarf2/abbrev.c: Fix indentation.
231 * dwarf2/attribute.c: Fix indentation.
232 * dwarf2/expr.c: Fix indentation.
233 * dwarf2/frame.c: Fix indentation.
234 * dwarf2/index-cache.c: Fix indentation.
235 * dwarf2/index-write.c: Fix indentation.
236 * dwarf2/line-header.c: Fix indentation.
237 * dwarf2/loc.c: Fix indentation.
238 * dwarf2/macro.c: Fix indentation.
239 * dwarf2/read.c: Fix indentation.
240 * dwarf2/read.h: Fix indentation.
241 * elfread.c: Fix indentation.
242 * eval.c: Fix indentation.
243 * event-top.c: Fix indentation.
244 * exec.c: Fix indentation.
245 * exec.h: Fix indentation.
246 * expprint.c: Fix indentation.
247 * f-lang.c: Fix indentation.
248 * f-typeprint.c: Fix indentation.
249 * f-valprint.c: Fix indentation.
250 * fbsd-nat.c: Fix indentation.
251 * fbsd-tdep.c: Fix indentation.
252 * findvar.c: Fix indentation.
253 * fork-child.c: Fix indentation.
254 * frame-unwind.c: Fix indentation.
255 * frame-unwind.h: Fix indentation.
256 * frame.c: Fix indentation.
257 * frv-linux-tdep.c: Fix indentation.
258 * frv-tdep.c: Fix indentation.
259 * frv-tdep.h: Fix indentation.
260 * ft32-tdep.c: Fix indentation.
261 * gcore.c: Fix indentation.
262 * gdb_bfd.c: Fix indentation.
263 * gdbarch.sh: Fix indentation.
264 * gdbarch.c: Re-generate
265 * gdbarch.h: Re-generate.
266 * gdbcore.h: Fix indentation.
267 * gdbthread.h: Fix indentation.
268 * gdbtypes.c: Fix indentation.
269 * gdbtypes.h: Fix indentation.
270 * glibc-tdep.c: Fix indentation.
271 * gnu-nat.c: Fix indentation.
272 * gnu-nat.h: Fix indentation.
273 * gnu-v2-abi.c: Fix indentation.
274 * gnu-v3-abi.c: Fix indentation.
275 * go32-nat.c: Fix indentation.
276 * guile/guile-internal.h: Fix indentation.
277 * guile/scm-cmd.c: Fix indentation.
278 * guile/scm-frame.c: Fix indentation.
279 * guile/scm-iterator.c: Fix indentation.
280 * guile/scm-math.c: Fix indentation.
281 * guile/scm-ports.c: Fix indentation.
282 * guile/scm-pretty-print.c: Fix indentation.
283 * guile/scm-value.c: Fix indentation.
284 * h8300-tdep.c: Fix indentation.
285 * hppa-linux-nat.c: Fix indentation.
286 * hppa-linux-tdep.c: Fix indentation.
287 * hppa-nbsd-nat.c: Fix indentation.
288 * hppa-nbsd-tdep.c: Fix indentation.
289 * hppa-obsd-nat.c: Fix indentation.
290 * hppa-tdep.c: Fix indentation.
291 * hppa-tdep.h: Fix indentation.
292 * i386-bsd-nat.c: Fix indentation.
293 * i386-darwin-nat.c: Fix indentation.
294 * i386-darwin-tdep.c: Fix indentation.
295 * i386-dicos-tdep.c: Fix indentation.
296 * i386-gnu-nat.c: Fix indentation.
297 * i386-linux-nat.c: Fix indentation.
298 * i386-linux-tdep.c: Fix indentation.
299 * i386-nto-tdep.c: Fix indentation.
300 * i386-obsd-tdep.c: Fix indentation.
301 * i386-sol2-nat.c: Fix indentation.
302 * i386-tdep.c: Fix indentation.
303 * i386-tdep.h: Fix indentation.
304 * i386-windows-tdep.c: Fix indentation.
305 * i387-tdep.c: Fix indentation.
306 * i387-tdep.h: Fix indentation.
307 * ia64-libunwind-tdep.c: Fix indentation.
308 * ia64-libunwind-tdep.h: Fix indentation.
309 * ia64-linux-nat.c: Fix indentation.
310 * ia64-linux-tdep.c: Fix indentation.
311 * ia64-tdep.c: Fix indentation.
312 * ia64-tdep.h: Fix indentation.
313 * ia64-vms-tdep.c: Fix indentation.
314 * infcall.c: Fix indentation.
315 * infcmd.c: Fix indentation.
316 * inferior.c: Fix indentation.
317 * infrun.c: Fix indentation.
318 * iq2000-tdep.c: Fix indentation.
319 * language.c: Fix indentation.
320 * linespec.c: Fix indentation.
321 * linux-fork.c: Fix indentation.
322 * linux-nat.c: Fix indentation.
323 * linux-tdep.c: Fix indentation.
324 * linux-thread-db.c: Fix indentation.
325 * lm32-tdep.c: Fix indentation.
326 * m2-lang.c: Fix indentation.
327 * m2-typeprint.c: Fix indentation.
328 * m2-valprint.c: Fix indentation.
329 * m32c-tdep.c: Fix indentation.
330 * m32r-linux-tdep.c: Fix indentation.
331 * m32r-tdep.c: Fix indentation.
332 * m68hc11-tdep.c: Fix indentation.
333 * m68k-bsd-nat.c: Fix indentation.
334 * m68k-linux-nat.c: Fix indentation.
335 * m68k-linux-tdep.c: Fix indentation.
336 * m68k-tdep.c: Fix indentation.
337 * machoread.c: Fix indentation.
338 * macrocmd.c: Fix indentation.
339 * macroexp.c: Fix indentation.
340 * macroscope.c: Fix indentation.
341 * macrotab.c: Fix indentation.
342 * macrotab.h: Fix indentation.
343 * main.c: Fix indentation.
344 * mdebugread.c: Fix indentation.
345 * mep-tdep.c: Fix indentation.
346 * mi/mi-cmd-catch.c: Fix indentation.
347 * mi/mi-cmd-disas.c: Fix indentation.
348 * mi/mi-cmd-env.c: Fix indentation.
349 * mi/mi-cmd-stack.c: Fix indentation.
350 * mi/mi-cmd-var.c: Fix indentation.
351 * mi/mi-cmds.c: Fix indentation.
352 * mi/mi-main.c: Fix indentation.
353 * mi/mi-parse.c: Fix indentation.
354 * microblaze-tdep.c: Fix indentation.
355 * minidebug.c: Fix indentation.
356 * minsyms.c: Fix indentation.
357 * mips-linux-nat.c: Fix indentation.
358 * mips-linux-tdep.c: Fix indentation.
359 * mips-nbsd-tdep.c: Fix indentation.
360 * mips-tdep.c: Fix indentation.
361 * mn10300-linux-tdep.c: Fix indentation.
362 * mn10300-tdep.c: Fix indentation.
363 * moxie-tdep.c: Fix indentation.
364 * msp430-tdep.c: Fix indentation.
365 * namespace.h: Fix indentation.
366 * nat/fork-inferior.c: Fix indentation.
367 * nat/gdb_ptrace.h: Fix indentation.
368 * nat/linux-namespaces.c: Fix indentation.
369 * nat/linux-osdata.c: Fix indentation.
370 * nat/netbsd-nat.c: Fix indentation.
371 * nat/x86-dregs.c: Fix indentation.
372 * nbsd-nat.c: Fix indentation.
373 * nbsd-tdep.c: Fix indentation.
374 * nios2-linux-tdep.c: Fix indentation.
375 * nios2-tdep.c: Fix indentation.
376 * nto-procfs.c: Fix indentation.
377 * nto-tdep.c: Fix indentation.
378 * objfiles.c: Fix indentation.
379 * objfiles.h: Fix indentation.
380 * opencl-lang.c: Fix indentation.
381 * or1k-tdep.c: Fix indentation.
382 * osabi.c: Fix indentation.
383 * osabi.h: Fix indentation.
384 * osdata.c: Fix indentation.
385 * p-lang.c: Fix indentation.
386 * p-typeprint.c: Fix indentation.
387 * p-valprint.c: Fix indentation.
388 * parse.c: Fix indentation.
389 * ppc-linux-nat.c: Fix indentation.
390 * ppc-linux-tdep.c: Fix indentation.
391 * ppc-nbsd-nat.c: Fix indentation.
392 * ppc-nbsd-tdep.c: Fix indentation.
393 * ppc-obsd-nat.c: Fix indentation.
394 * ppc-ravenscar-thread.c: Fix indentation.
395 * ppc-sysv-tdep.c: Fix indentation.
396 * ppc64-tdep.c: Fix indentation.
397 * printcmd.c: Fix indentation.
398 * proc-api.c: Fix indentation.
399 * producer.c: Fix indentation.
400 * producer.h: Fix indentation.
401 * prologue-value.c: Fix indentation.
402 * prologue-value.h: Fix indentation.
403 * psymtab.c: Fix indentation.
404 * python/py-arch.c: Fix indentation.
405 * python/py-bpevent.c: Fix indentation.
406 * python/py-event.c: Fix indentation.
407 * python/py-event.h: Fix indentation.
408 * python/py-finishbreakpoint.c: Fix indentation.
409 * python/py-frame.c: Fix indentation.
410 * python/py-framefilter.c: Fix indentation.
411 * python/py-inferior.c: Fix indentation.
412 * python/py-infthread.c: Fix indentation.
413 * python/py-objfile.c: Fix indentation.
414 * python/py-prettyprint.c: Fix indentation.
415 * python/py-registers.c: Fix indentation.
416 * python/py-signalevent.c: Fix indentation.
417 * python/py-stopevent.c: Fix indentation.
418 * python/py-stopevent.h: Fix indentation.
419 * python/py-threadevent.c: Fix indentation.
420 * python/py-tui.c: Fix indentation.
421 * python/py-unwind.c: Fix indentation.
422 * python/py-value.c: Fix indentation.
423 * python/py-xmethods.c: Fix indentation.
424 * python/python-internal.h: Fix indentation.
425 * python/python.c: Fix indentation.
426 * ravenscar-thread.c: Fix indentation.
427 * record-btrace.c: Fix indentation.
428 * record-full.c: Fix indentation.
429 * record.c: Fix indentation.
430 * reggroups.c: Fix indentation.
431 * regset.h: Fix indentation.
432 * remote-fileio.c: Fix indentation.
433 * remote.c: Fix indentation.
434 * reverse.c: Fix indentation.
435 * riscv-linux-tdep.c: Fix indentation.
436 * riscv-ravenscar-thread.c: Fix indentation.
437 * riscv-tdep.c: Fix indentation.
438 * rl78-tdep.c: Fix indentation.
439 * rs6000-aix-tdep.c: Fix indentation.
440 * rs6000-lynx178-tdep.c: Fix indentation.
441 * rs6000-nat.c: Fix indentation.
442 * rs6000-tdep.c: Fix indentation.
443 * rust-lang.c: Fix indentation.
444 * rx-tdep.c: Fix indentation.
445 * s12z-tdep.c: Fix indentation.
446 * s390-linux-tdep.c: Fix indentation.
447 * score-tdep.c: Fix indentation.
448 * ser-base.c: Fix indentation.
449 * ser-mingw.c: Fix indentation.
450 * ser-uds.c: Fix indentation.
451 * ser-unix.c: Fix indentation.
452 * serial.c: Fix indentation.
453 * sh-linux-tdep.c: Fix indentation.
454 * sh-nbsd-tdep.c: Fix indentation.
455 * sh-tdep.c: Fix indentation.
456 * skip.c: Fix indentation.
457 * sol-thread.c: Fix indentation.
458 * solib-aix.c: Fix indentation.
459 * solib-darwin.c: Fix indentation.
460 * solib-frv.c: Fix indentation.
461 * solib-svr4.c: Fix indentation.
462 * solib.c: Fix indentation.
463 * source.c: Fix indentation.
464 * sparc-linux-tdep.c: Fix indentation.
465 * sparc-nbsd-tdep.c: Fix indentation.
466 * sparc-obsd-tdep.c: Fix indentation.
467 * sparc-ravenscar-thread.c: Fix indentation.
468 * sparc-tdep.c: Fix indentation.
469 * sparc64-linux-tdep.c: Fix indentation.
470 * sparc64-nbsd-tdep.c: Fix indentation.
471 * sparc64-obsd-tdep.c: Fix indentation.
472 * sparc64-tdep.c: Fix indentation.
473 * stabsread.c: Fix indentation.
474 * stack.c: Fix indentation.
475 * stap-probe.c: Fix indentation.
476 * stubs/ia64vms-stub.c: Fix indentation.
477 * stubs/m32r-stub.c: Fix indentation.
478 * stubs/m68k-stub.c: Fix indentation.
479 * stubs/sh-stub.c: Fix indentation.
480 * stubs/sparc-stub.c: Fix indentation.
481 * symfile-mem.c: Fix indentation.
482 * symfile.c: Fix indentation.
483 * symfile.h: Fix indentation.
484 * symmisc.c: Fix indentation.
485 * symtab.c: Fix indentation.
486 * symtab.h: Fix indentation.
487 * target-float.c: Fix indentation.
488 * target.c: Fix indentation.
489 * target.h: Fix indentation.
490 * tic6x-tdep.c: Fix indentation.
491 * tilegx-linux-tdep.c: Fix indentation.
492 * tilegx-tdep.c: Fix indentation.
493 * top.c: Fix indentation.
494 * tracefile-tfile.c: Fix indentation.
495 * tracepoint.c: Fix indentation.
496 * tui/tui-disasm.c: Fix indentation.
497 * tui/tui-io.c: Fix indentation.
498 * tui/tui-regs.c: Fix indentation.
499 * tui/tui-stack.c: Fix indentation.
500 * tui/tui-win.c: Fix indentation.
501 * tui/tui-winsource.c: Fix indentation.
502 * tui/tui.c: Fix indentation.
503 * typeprint.c: Fix indentation.
504 * ui-out.h: Fix indentation.
505 * unittests/copy_bitwise-selftests.c: Fix indentation.
506 * unittests/memory-map-selftests.c: Fix indentation.
507 * utils.c: Fix indentation.
508 * v850-tdep.c: Fix indentation.
509 * valarith.c: Fix indentation.
510 * valops.c: Fix indentation.
511 * valprint.c: Fix indentation.
512 * valprint.h: Fix indentation.
513 * value.c: Fix indentation.
514 * value.h: Fix indentation.
515 * varobj.c: Fix indentation.
516 * vax-tdep.c: Fix indentation.
517 * windows-nat.c: Fix indentation.
518 * windows-tdep.c: Fix indentation.
519 * xcoffread.c: Fix indentation.
520 * xml-syscall.c: Fix indentation.
521 * xml-tdesc.c: Fix indentation.
522 * xstormy16-tdep.c: Fix indentation.
523 * xtensa-config.c: Fix indentation.
524 * xtensa-linux-nat.c: Fix indentation.
525 * xtensa-linux-tdep.c: Fix indentation.
526 * xtensa-tdep.c: Fix indentation.
527
e1f57067
AB
5282020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
529 Craig Blackmore <craig.blackmore@embecosm.com>
530
531 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
532 as an unsigned value.
533
ae7754b2
TT
5342020-11-01 Tom Tromey <tom@tromey.com>
535
536 * dbxread.c (dbx_end_psymtab): Update.
537 * dwarf2/read.c (process_psymtab_comp_unit_reader)
538 (build_type_psymtabs_reader): Update.
539 * xcoffread.c (xcoff_end_psymtab): Update.
540 * ctfread.c (scan_partial_symbols): Update.
541 * psymtab.c (sort_pst_symbols): Remove.
542 (partial_symtab::end): Rename from end_psymtab_common. Inline
543 sort_pst_symbols.
544 * psympriv.h (struct partial_symtab) <end>: New method.
545 (end_psymtab_common): Don't declare.
546
0684bb51
TT
5472020-11-01 Tom Tromey <tom@tromey.com>
548
549 * symmisc.c (count_psyms): New function.
550 (print_objfile_statistics): Use it.
551 * psymtab.c (append_psymbol_to_list): Remove.
552 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
553 * objfiles.h (struct objstats) <n_psyms>: Remove.
554
089002bb
TT
5552020-11-01 Tom Tromey <tom@tromey.com>
556
557 * dbxread.c (dbx_end_psymtab): Update.
558 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
559 (build_type_psymtabs_reader): Update.
560 * xcoffread.c (xcoff_end_psymtab): Update.
561 * ctfread.c (scan_partial_symbols): Update.
562 * psympriv.h (end_psymtab_common): Update.
563 * psymtab.c (end_psymtab_common): Remove objfile parameter.
564 (sort_pst_symbols): Likewise.
565
525454d6
TT
5662020-11-01 Tom Tromey <tom@tromey.com>
567
568 * dbxread.c (dbx_symfile_read): Update.
569 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
570 * xcoffread.c (xcoff_initial_scan): Update.
571 * psympriv.h (init_psymbol_list): Don't declare.
572 * psymtab.c (init_psymbol_list): Remove.
573
60bd1d53
JB
5742020-11-01 Joel Brobecker <brobecker@adacore.com>
575
576 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
577 gnat_encoded_fixed_type_info. Update all callers.
578
db99d0d0
JB
5792020-11-01 Joel Brobecker <brobecker@adacore.com>
580
581 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
582 line too long.
583
75f24e86
JB
5842020-11-01 Joel Brobecker <brobecker@adacore.com>
585
586 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
587 cast_from_fixed. Update all callers.
588 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
589 Update all callers.
590 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
591 Update all callers.
592 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
593 ada_scaling_factor.
594 * ada-typeprint.c: Replace call to ada_scaling_factor by call
595 to print_gnat_encoded_fixed_point_type.
596 * ada-valprint.c: Likewise.
597
4f0469cd
AB
5982020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
599
600 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
601 (debug_prefixed_printf): Add check of debug_displaced flag.
602 * linux-nat.c (linux_nat_debug_printf): Add check of
603 debug_linux_nat flag.
604
17417fb0
SM
6052020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
606
607 * infrun.c (infrun_debug_printf_1): Remove.
608 (displaced_debug_printf_1): Remove.
609 (stop_all_threads): Use debug_prefixed_printf.
610 * infrun.h (infrun_debug_printf_1): Remove.
611 (infrun_debug_printf): Use debug_prefixed_printf.
612 (displaced_debug_printf_1): Remove.
613 (displaced_debug_printf): Use debug_prefixed_printf.
614 * linux-nat.c (linux_nat_debug_printf_1): Remove.
615 (linux_nat_debug_printf): Use debug_prefixed_printf.
616
ad6dba1c
SM
6172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
618
619 * configure: Re-generate.
620 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
621 AC_LANG_PROGRAM.
622
b6fb30ed
SM
6232020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
624
625 * configure: Re-generate.
626
5164c117
SM
6272020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
628
629 * configure: Re-generate.
630
864ca435
SM
6312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
632
633 * configure: Re-generate.
634
b9442ec1
SM
6352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
636
637 * configure: Re-generate.
638
294f2697
SM
6392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
640
641 * acinclude.m4: Modernize.
642 * configure: Re-generate.
643
5593a99a
SM
6442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
645
646 * configure.ac: Modernize.
647 * configure: Re-generate.
648
e41fda1d
SM
6492020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
650
651 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
652 * configure: Re-generate.
653 * configure.ac: Remove AM_PROG_CC_STDC.
654
91e1a0ed
SM
6552020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
656
657 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
658 AC_CANONICAL_SYSTEM.
659 * configure: Re-generate.
660
136821d9
SM
6612020-10-30 Simon Marchi <simon.marchi@efficios.com>
662
663 * infrun.h (displaced_debug_printf): New macro. Replace
664 displaced debug prints throughout to use it.
665 (displaced_debug_printf_1): New declaration.
666 (displaced_step_dump_bytes): Return string, remove ui_file
667 parameter, update all callers.
668 * infrun.c (displaced_debug_printf_1): New function.
669 (displaced_step_dump_bytes): Return string, remove ui_file
670 parameter
671
aa2045e7
SM
6722020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
673
674 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
675
b1ec2735
TT
6762020-10-30 Tom Tromey <tromey@adacore.com>
677
678 * Makefile.in (stamp-init): Depend on config.status.
679
b78b3a29
TBA
6802020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
681
682 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
683
d70bdd3c
PA
6842020-10-30 Pedro Alves <pedro@palves.net>
685
686 * thread.c (lookup_selected_frame): Move ...
687 * frame.c (lookup_selected_frame): ... here.
688
79952e69
PA
6892020-10-30 Pedro Alves <pedro@palves.net>
690
691 * blockframe.c (block_innermost_frame): Use get_selected_frame.
692 * frame.c
693 (scoped_restore_selected_frame::scoped_restore_selected_frame):
694 Use save_selected_frame. Save language as well.
695 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
696 Use restore_selected_frame, and restore language as well.
697 (selected_frame_id, selected_frame_level): New.
698 (selected_frame): Update comments.
699 (save_selected_frame, restore_selected_frame): New.
700 (get_selected_frame): Use lookup_selected_frame.
701 (get_selected_frame_if_set): Delete.
702 (select_frame): Record selected_frame_level and selected_frame_id.
703 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
704 fields.
705 (get_selected_frame): Make 'message' parameter optional.
706 (get_selected_frame_if_set): Delete declaration.
707 (select_frame): Update comments.
708 (save_selected_frame, restore_selected_frame)
709 (lookup_selected_frame): Declare.
710 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
711 * infrun.c (struct infcall_control_state) <selected_frame_level>:
712 New field.
713 (save_infcall_control_state): Use save_selected_frame.
714 (restore_selected_frame): Delete.
715 (restore_infcall_control_state): Use restore_selected_frame.
716 * stack.c (select_frame_command_core, frame_command_core): Use
717 get_selected_frame.
718 * thread.c (restore_selected_frame): Rename to ...
719 (lookup_selected_frame): ... this and make extern. Select the
720 current frame if the frame level is -1.
721 (scoped_restore_current_thread::restore): Also restore the
722 language.
723 (scoped_restore_current_thread::~scoped_restore_current_thread):
724 Don't try/catch.
725 (scoped_restore_current_thread::scoped_restore_current_thread):
726 Save the language as well. Use save_selected_frame.
727
58103c33
SM
7282020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
729
730 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
731 documentation.
732 * gdbarch.h: Re-generate.
733
40a53766
SM
7342020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
735
736 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
737 parameter.
738 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
739 Likewise.
740 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
741 Likewise.
742 * arch-utils.c (default_displaced_step_hw_singlestep):
743 Likewise.
744 * arch-utils.h (default_displaced_step_hw_singlestep):
745 Likewise.
746 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
747 Likewise.
748 * s390-tdep.c (s390_displaced_step_hw_singlestep):
749 Likewise.
750 * gdbarch.c: Re-generate.
751 * gdbarch.h: Re-generate.
752 * infrun.c (resume_1): Adjust.
753
8407f91b
TT
7542020-10-29 Tom Tromey <tom@tromey.com>
755
756 * progspace.c (program_space::~program_space): Don't call
757 exec_close.
758
5008b3b2
TT
7592020-10-29 Tom Tromey <tom@tromey.com>
760
761 * exec.c (exec_target::close): Don't change current program
762 space.
763
d9eebde0
TT
7642020-10-29 Tom Tromey <tom@tromey.com>
765
766 * symfile.c (add_symbol_file_command): Update.
767 * exec.c (program_space::add_target_sections): Rename.
768 * symfile-mem.c (symbol_file_add_from_memory): Update.
769 * progspace.h (struct program_space) <add_target_sections>:
770 Declare new overload.
771 * exec.h (add_target_sections_of_objfile): Don't declare.
772
3769e227
TT
7732020-10-29 Tom Tromey <tom@tromey.com>
774
775 * solib.c (solib_map_sections): Update.
776 * exec.c (program_space::add_target_sections): Now a method.
777 (exec_file_attach): Update.
778 * exec.h (add_target_sections): Don't declare.
779 * progspace.h (struct program_space) <add_target_sections>:
780 Declare.
781
2a3f84af
TT
7822020-10-29 Tom Tromey <tom@tromey.com>
783
784 * progspace.h (struct program_space) <remove_target_sections>:
785 Declare.
786 * exec.c (program_space::remove_target_sections): Now a method.
787 * exec.h (remove_target_sections): Don't declare.
788
004eecfd
TT
7892020-10-29 Tom Tromey <tom@tromey.com>
790
791 * inferior.c (delete_inferior): Update.
792 * progspace.c (program_space::empty): Rename from
793 program_space_empty_p. Return bool.
794 * progspace.h (struct program_space) <empty>: New method.
795 (program_space_empty_p): Don't declare.
796
e39fb971
TT
7972020-10-29 Tom Tromey <tom@tromey.com>
798
799 * progspace.c (program_space::~program_space): Don't call
800 clear_program_space_solib_cache.
801 (program_space::clear_solib_cache): Rename from
802 clear_solib_cache.
803 * solib.c (handle_solib_event): Update.
804 * progspace.h (struct program_space) <clear_solib_cache>: New
805 method.
806 (clear_program_space_solib_cache): Don't declare.
807
a42d7dd8
TT
8082020-10-29 Tom Tromey <tom@tromey.com>
809
810 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
811 * target.c (info_target_command): Update.
812 * symfile.c (syms_from_objfile_1, finish_new_objfile)
813 (symbol_file_clear, reread_symbols): Update.
814 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
815 * stabsread.c (scan_file_globals): Update.
816 * solib.c (update_solib_list): Update.
817 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
818 (svr4_fetch_objfile_link_map, enable_break)
819 (svr4_relocate_main_executable)
820 (svr4_iterate_over_objfiles_in_search_order): Update.
821 * solib-frv.c (lm_base, enable_break)
822 (frv_relocate_main_executable): Update.
823 (main_got, frv_fdpic_find_canonical_descriptor): Update.
824 (frv_fetch_objfile_link_map): Update.
825 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
826 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
827 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
828 * remote.c (remote_target::get_offsets): Update.
829 (remote_target::start_remote)
830 (extended_remote_target::post_attach): Update.
831 * objfiles.c (entry_point_address_query): Update.
832 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
833 * minsyms.c (get_symbol_leading_char): Update.
834 * frame.c (inside_main_func): Update.
835 * progspace.h (symfile_objfile): Remove macro.
836
19f6550e
TT
8372020-10-29 Tom Tromey <tom@tromey.com>
838
839 * exec.c (exec_file_attach): Update.
840 * progspace.c (program_space::exec_close): Update.
841 * progspace.h (struct program_space) <ebfd>: Now a
842 gdb_bfd_ref_ptr.
843 <set_exec_bfd>: Change argument type.
844 <exec_bfd>: Update.
845
7e10abd1
TT
8462020-10-29 Tom Tromey <tom@tromey.com>
847
848 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
849 * symfile.c (reread_symbols): Update.
850 * symfile-mem.c (add_symbol_file_from_memory_command)
851 (add_vsyscall_page): Update.
852 * source-cache.c (source_cache::get_plain_source_lines): Update.
853 * solib-svr4.c (find_program_interpreter, elf_locate_base)
854 (svr4_current_sos_direct, svr4_exec_displacement)
855 (svr4_relocate_main_executable): Update.
856 (svr4_iterate_over_objfiles_in_search_order): Update.
857 * solib-frv.c (enable_break2, enable_break): Update.
858 * solib-dsbt.c (lm_base, enable_break): Update.
859 * solib-darwin.c (find_program_interpreter)
860 (darwin_solib_create_inferior_hook): Update.
861 * sol-thread.c (rw_common, ps_pdmodel): Update.
862 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
863 * remote.c (compare_sections_command)
864 (remote_target::trace_set_readonly_regions): Update.
865 * remote-sim.c (get_sim_inferior_data)
866 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
867 (gdbsim_target_open, gdbsim_target::files_info): Update.
868 * exec.h (exec_bfd): Remove macro.
869 * progspace.c (initialize_progspace): Update.
870 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
871 Update.
872 * nto-procfs.c (nto_procfs_target::post_attach)
873 (nto_procfs_target::create_inferior): Update.
874 * maint.c (maintenance_info_sections): Update.
875 * linux-thread-db.c (thread_db_target::get_thread_local_address):
876 Update.
877 * infcmd.c (post_create_inferior): Update.
878 * gcore.c (default_gcore_arch, default_gcore_target): Update.
879 (objfile_find_memory_regions): Update.
880 * exec.c (validate_exec_file, exec_file_attach)
881 (exec_read_partial_read_only, print_section_info): Update.
882 * corelow.c (core_target_open): Update.
883 * corefile.c (reopen_exec_file, validate_files): Update.
884 * arm-tdep.c (gdb_print_insn_arm): Update.
885 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
886 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
887 methods.
888
b55221ab
TT
8892020-10-29 Tom Tromey <tom@tromey.com>
890
891 * progspace.h (current_target_sections): Remove macro.
892 * solib-svr4.c (scan_dyntag): Update.
893 * solib-dsbt.c (scan_dyntag): Update.
894 * exec.c (exec_target::close): Update.
895 (add_target_sections, add_target_sections_of_objfile)
896 (remove_target_sections, exec_target::get_section_table)
897 (exec_target::files_info, set_section_command)
898 (exec_set_section_address, exec_target::has_memory)
899 (exec_target::has_memory): Update.
900
5a36e715
TT
9012020-10-29 Tom Tromey <tom@tromey.com>
902
903 * source-cache.c (source_cache::get_plain_source_lines): Use
904 current_program_space.
905 * corefile.c (reopen_exec_file): Use current_program_space.
906 * exec.c (exec_file_attach): Use current_program_space.
907 * exec.h (exec_bfd_mtime): Remove.
908
784c8592
TT
9092020-10-29 Tom Tromey <tom@tromey.com>
910
911 * gcore.c (default_gcore_mach): Remove.
912 (create_gcore_bfd): Update.
913
8a4f1402
TT
9142020-10-29 Tom Tromey <tom@tromey.com>
915
916 * progspace.c (program_space::exec_close): New method, from
917 exec_close in exec.c.
918 * exec.c (exec_close): Move to progspace.c.
919 (exec_target::close, exec_file_attach): Update.
920 * progspace.h (struct program_space) <exec_close>: Declare
921 method.
922
c20cb686
TT
9232020-10-29 Tom Tromey <tom@tromey.com>
924
925 * progspace.h (struct program_space) <exec_filename>: Rename from
926 pspace_exec_filename. Now a unique_xmalloc_ptr.
927 * inferior.c (print_selected_inferior): Update.
928 (print_inferior): Update.
929 * mi/mi-main.c (print_one_inferior): Update.
930 * exec.h (exec_filename): Remove macro.
931 * corefile.c (get_exec_file): Update.
932 * exec.c (exec_close): Update.
933 (exec_file_attach): Update.
934 * progspace.c (clone_program_space): Update.
935 (print_program_space): Update.
936
6be2a9ab
TT
9372020-10-29 Tom Tromey <tom@tromey.com>
938
939 * target-section.h (struct target_section): Add constructor.
940 * exec.c (build_section_table, add_target_sections_of_objfile):
941 Update.
942 * corelow.c (core_target::build_file_mappings): Update.
943
cfaa8f76
TBA
9442020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
945
946 PR gdb/19318
947 * inferior.c (detach_inferior_command): Restore the current thread.
948 (kill_inferior_command): Ditto.
949
1b00ef06
TV
9502020-10-28 Tom de Vries <tdevries@suse.de>
951
952 PR symtab/26772
953 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
954 map, check it in the "best match" loop.
955
7f40ce1a
SM
9562020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
957
958 * m32c-tdep.c: Remove unused includes.
959
5eb9e3f5
SM
9602020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
961
962 * xtensa-tdep.c: Remove includes.
963
b1d4d8d1
TBA
9642020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
965
966 * breakpoint.c (struct condition_command_opts): New struct.
967 (condition_command_option_defs): New static global.
968 (make_condition_command_options_def_group): New function.
969 (condition_completer): Update to consider the '-force' flag.
970 (condition_command): Use gdb::option for the '-force' flag.
971
bd24c5d6
TV
9722020-10-27 Tom de Vries <tdevries@suse.de>
973
974 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
975 symbols in section check.
976
61eb46a4
TV
9772020-10-27 Tom de Vries <tdevries@suse.de>
978
979 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
980
733d554a
TBA
9812020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
982
983 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
984 * breakpoint.c: Update the help text of the 'condition' and 'break'
985 commands.
986 (set_breakpoint_condition): Take a new bool parameter
987 to control whether condition definition should be forced even when
988 the condition expression is invalid in all of the current locations.
989 (condition_command): Update the call to 'set_breakpoint_condition'.
990 (find_condition_and_thread): Take the "-force-condition" flag into
991 account.
992 * linespec.c (linespec_keywords): Add "-force-condition" as an
993 element.
994 (FORCE_KEYWORD_INDEX): New #define.
995 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
996 as a keyword.
997 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
998 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
999 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1000 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1001
b5fa468f
TBA
10022020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1003
1004 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1005 * breakpoint.c (set_breakpoint_location_condition): New function.
1006 (set_breakpoint_condition): Disable a breakpoint location if parsing
1007 the condition string gives an error.
1008 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1009 (build_target_condition_list): Ditto.
1010 (build_target_command_list): Ditto.
1011 (build_bpstat_chain): Ditto.
1012 (print_one_breakpoint_location): Ditto.
1013 (print_one_breakpoint): Ditto.
1014 (breakpoint_1): Ditto.
1015 (bp_location::bp_location): Ditto.
1016 (locations_are_equal): Ditto.
1017 (update_breakpoint_locations): Ditto.
1018 (enable_disable_bp_num_loc): Ditto.
1019 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1020 (find_condition_and_thread_for_sals): New static function.
1021 (create_breakpoint): Call find_condition_and_thread_for_sals.
1022 (location_to_sals): Call find_condition_and_thread_for_sals instead
1023 of find_condition_and_thread.
1024
1c47ec3e
TV
10252020-10-26 Tom de Vries <tdevries@suse.de>
1026
1027 * dwarf2/read.c (process_full_comp_unit): Call
1028 dwarf2_find_base_address.
1029
6390859c
TT
10302020-10-26 Tom Tromey <tromey@adacore.com>
1031
1032 * gdbtypes.c (create_range_type): Revert previous patch. Add
1033 comment.
1034
d744f0f9
PA
10352020-10-26 Pedro Alves <pedro@palves.net>
1036
1037 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1038 (my_waitpid): Use gdb::handle_eintr.
1039
006811bc
SM
10402020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1041
1042 * acinclude.m4: Update ptrace.m4 path.
1043 * ptrace.m4: Moved to gdbsupport.
1044
c75e31a1
SM
10452020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1048 instead of target_gdbarch.
1049
32495661
SM
10502020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1051
1052 * jit.c (jit_reader_load_command): Pass current inferior.
1053 (jit_inferior_init): Change parameter type to inferior, use it.
1054 (jit_inferior_created): Remove.
1055 (jit_inferior_created_hook): Pass inferior parameter down.
1056 (_initialize_jit): Use jit_inferior_created_hook instead of
1057 jit_inferior_created.
1058 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1059 * infrun.c (follow_exec): Pass inferior to
1060 jit_inferior_created_hook.
1061
3f66685e
SM
10622020-10-24 Simon Marchi <simon.marchi@efficios.com>
1063
1064 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1065 parameter and use it.
1066 (thread_db_inferior_created): Pass inferior argument.
1067
a0ff652f
SM
10682020-10-24 Simon Marchi <simon.marchi@efficios.com>
1069
1070 * aix-thread.c (aix_thread_inferior_created): Add inferior
1071 parameter.
1072 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1073 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1074 * jit.c (jit_inferior_created): Likewise.
1075 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1076 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1077 * observable.h (inferior_created): Likewise.
1078 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1079 * symfile-mem.c (add_vsyscall_page): Likewise.
1080 * infcmd.c (post_create_inferior): Pass inferior argument.
1081
3c67532c
JB
10822020-10-24 Joel Brobecker <brobecker@adacore.com>
1083
1084 GDB 10.1 released.
1085
8747316e
JB
10862020-10-23 Joel Brobecker <brobecker@adacore.com>
1087
1088 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1089 to ada_check_typedef.
1090
1a0ea399
AB
10912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1092
1093 * f-exp.y (f_parse): Rename to...
1094 (f_language::parser): ...this.
1095 * f-lang.c (f_get_encoding): Rename to...
1096 (f_language::get_encoding): ...this.
1097 (f_op_print_tab): Rename to...
1098 (f_language::op_print_tab): ...this.
1099 (exp_descriptor_f): Rename to...
1100 (f_language::exp_descriptor_tab): ...this.
1101 (class f_language): Moved to f-lang.h.
1102 (f_language::language_arch_info): New function, moved out of class
1103 declaration.
1104 (f_language::search_name_hash): Likewise.
1105 (f_language::lookup_symbol_nonlocal): Likewise.
1106 (f_language::get_symbol_name_matcher_inner): Likewise.
1107 * f-lang.h: Add 'valprint.h' include.
1108 (class f_language): Moved here from f-lang.c.
1109 * f-typeprint.c (f_type_print_args): Delete commented out
1110 declaration.
1111 (f_print_typedef): Rename to...
1112 (f_language::print_typedef): ...this.
1113 (f_print_type): Rename to...
1114 (f_language::print_type): ...this.
1115 (f_type_print_varspec_prefix): Delete declaration and rename to...
1116 (f_language::f_type_print_varspec_prefix): ...this.
1117 (f_type_print_varspec_suffix): Delete declaration and rename to...
1118 (f_language::f_type_print_varspec_suffix): ...this.
1119 (f_type_print_base): Delete declaration and rename to...
1120 (f_language::f_type_print_base): ...this.
1121 * f-valprint.c (f_value_print_inner): Rename to...
1122 (f_language::value_print_inner): ...this.
1123 * parse.c: Delete 'f-lang.h' include.
1124
88cefd9b
AB
11252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * language.h (language_defn::print_type): Add variable names in
1128 declaration, and update header comment.
1129
5399db93
AB
11302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1131
1132 * ada-lang.c (ada_language::demangle): Rename to...
1133 (ada_language::demangle_symbol): ...this.
1134 * c-lang.c (cplus_language::demangle): Rename to...
1135 (cplus_language::demangle_symbol): ...this.
1136 * d-lang.c (d_language::demangle): Rename to...
1137 (d_language::demangle_symbol): ...this.
1138 * f-lang.c (f_language::demangle): Rename to...
1139 (f_language::demangle_symbol): ...this.
1140 * go-lang.c (go_language::demangle): Rename to...
1141 (go_language::demangle_symbol): ...this.
1142 * language.c (language_demangle): Update call to demangle_symbol.
1143 (auto_or_unknown_language::demangle): Rename to...
1144 (auto_or_unknown_language::demangle_symbol): ...this.
1145 * language.h (language_defn::demangle): Rename to...
1146 (language_defn::demangle_symbol): ...this.
1147 * objc-lang.c (objc_language::demangle): Rename to...
1148 (objc_language::demangle_symbol): ...this.
1149 * rust-lang.c (rust_language::demangle): Rename to...
1150 (rust_language::demangle_symbol): ...this.
1151
4b2f86ef
AB
11522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1153
1154 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1155 (iterate_over_file_blocks): Replace use of macro with the macros
1156 definition.
1157
e74b39de
AB
11582020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1161 * valprint.c (maybe_print_array_index): Replace use of macro with
1162 the macros definition.
1163
00c696a6
AB
11642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1165
1166 * ada-lang.c (ada_language::print_array_index): Call value_print
1167 directly.
1168 * language.c (language_defn::print_array_index): Likewise.
1169 * language.h (LA_VALUE_PRINT): Delete.
1170 * valprint.c (value_print): Call value_print on the
1171 current_language directly.
1172
d3b67c56
AB
11732020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * language.h (LA_PRINT_TYPEDEF): Delete.
1176 * typeprint.c (typedef_print): Call print_typedef directly on the
1177 current_language object.
1178
790e2a12
AB
11792020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1180
1181 * m2-exp.y (m2_parse): Rename to...
1182 (m2_language::parser): ...this. Update function signature.
1183 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1184 (m2_op_print): Rename to...
1185 (m2_language::op_print_tab): ...this, and make const.
1186 (exp_descriptor_modula2): Rename to...
1187 (m2_language::exp_descriptor_modula2): ...this.
1188 (class m2_language): Move to m2-lang.h.
1189 (m2_language::language_arch_info): New function, moved out of
1190 class declaration.
1191 (m2_language::printchar): New function, body from m2_printchar.
1192 (m2_language::printstr): New function, moved out of class
1193 declaration.
1194 (m2_language::emitchar): Likewise.
1195 * m2-lang.h (m2_parse): Delete declaration.
1196 (m2_print_typedef): Delete declaration.
1197 (m2_value_print_inner): Delete declaration.
1198 (class m2_language): Class declaration moved from m2-lang.c,
1199 larger functions are left in m2-lang.c.
1200 * m2-typeprint.c (m2_print_typedef): Rename to...
1201 (m2_language::print_typedef): ...this, and update function
1202 signature.
1203 * m2-valprint.c (m2_value_print_inner): Rename to...
1204 (m2_language::value_print_inner): ...this, replace use of
1205 LA_PRINT_STRING with a direct call to printstr member function,
1206 and update recursive call.
1207
b01175fc
AB
12082020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * language.c (default_is_string_type_p): Delete, implementation
1211 moved into auto_or_unknown_language::is_string_type_p.
1212 (unk_op_print_tab): Moved into
1213 auto_or_unknown_language::opcode_print_table.
1214 (unknown_language_arch_info): Delete, implementation moved into
1215 auto_or_unknown_language::language_arch_info.
1216 (class auto_or_unknown_language): New class, member functions
1217 copied from unknown_language class, with some updates.
1218 (class unknown_language): Most member functions moved into
1219 auto_or_unknown_language class. Inherit from
1220 auto_or_unknown_language class.
1221 (class auto_language): Inherit from auto_or_unknown_language.
1222 Delete most member functions.
1223
1a97fe8c
HD
12242020-10-22 Hannes Domani <ssbssa@yahoo.de>
1225
1226 * stabsread.c (read_member_functions): Remove gdb_assert.
1227
6b9d0dfd
HD
12282020-10-22 Hannes Domani <ssbssa@yahoo.de>
1229
1230 * gdbtypes.c (init_complex_type): Check target type name.
1231
4b4bb603
SM
12322020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1233
1234 * target-debug.h (target_debug_print_struct_target_ops_p):
1235 Remove.
1236 (target_debug_print_async_callback_ftype_p): Remove.
1237 (target_debug_print_struct_trace_state_variable_p): Remove.
1238 (target_debug_print_struct_traceframe_info_p): Remove.
1239 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1240 (target_debug_print_enum_btrace_format): Remove.
1241 (target_debug_print_enum_info_proc_what): Remove.
1242 (target_debug_print_thread_info_pp): Remove.
1243
24f5300a
SM
12442020-10-22 Simon Marchi <simon.marchi@efficios.com>
1245
1246 * target.h (struct target_ops) <make_corefile_notes>:
1247 Change return type to unique pointer.
1248 * target.c (dummy_make_corefile_notes): Likewise.
1249 * exec.c (struct exec_target) <make_corefile_notes>:
1250 Likewise.
1251 (exec_target::make_corefile_notes): Likewise.
1252 * procfs.c (class procfs_target) <make_corefile_notes>:
1253 Likewise.
1254 (procfs_do_thread_registers): Adjust to unique pointer.
1255 (struct procfs_corefile_thread_data): Add constructor.
1256 <note_data>: Change type to unique pointer.
1257 (procfs_corefile_thread_callback): Adjust to unique pointer.
1258 (procfs_target::make_corefile_notes): Change return type to
1259 unique pointer.
1260 * target-delegates.c: Re-generate.
1261 * gcore.c (write_gcore_file_1): Adjust.
1262 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1263 New.
1264
5fb4027f
TV
12652020-10-22 Tom de Vries <tdevries@suse.de>
1266
1267 * block.c (find_block_in_blockvector): Make sure the returned block
1268 contains pc.
1269
4a636814
SM
12702020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 PR gdb/26693
1273 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1274 parameter.
1275 (load_cu): Pass existing CU.
1276 (process_imported_unit_die): Likewise.
1277 (follow_die_offset): Likewise.
1278
1bd57575
LM
12792020-10-22 Luis Machado <luis.machado@linaro.org>
1280
1281 * corelow.c (core_target::xfer_partial): Also check for an empty
1282 m_core_unavailable_mappings vector.
1283
6b4c676c
AB
12842020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1285
1286 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1287 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1288 * f-exp.y (arglist): Allow for a series of subranges.
1289 (subrange): Add cases for subranges with strides.
1290 * f-lang.c (value_f90_subarray): Catch use of array strides and
1291 throw an error.
1292 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1293
f2d8e4c5
AB
12942020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1295
1296 * expprint.c (print_subexp_standard): Change enum range_type to
1297 range_flag and rename variables to match.
1298 (dump_subexp_body_standard): Likewise.
1299 * expression.h (enum range_type): Rename to...
1300 (enum range_flag): ...this.
1301 (range_types): Rename to...
1302 (range_flags): ...this.
1303 * f-lang.c (value_f90_subarray): Change enum range_type to
1304 range_flag and rename variables to match.
1305 * parse.c (operator_length_standard): Likewise.
1306 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1307 range_type to range_flag.
1308 * rust-lang.c (rust_evaluate_funcall): Likewise.
1309 (rust_range): Likewise.
1310 (rust_compute_range): Likewise.
1311 (rust_subscript): Likewise.
1312
2f1b18db
AB
13132020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * expprint.c (print_subexp_standard): Update to reflect changes to
1316 enum range_type.
1317 (dump_subexp_body_standard): Likewise.
1318 * expression.h (enum range_type): Convert to a bit field enum, and
1319 make the enum unsigned.
1320 * f-exp.y (subrange): Update to reflect changes to enum
1321 range_type.
1322 * f-lang.c (value_f90_subarray): Likewise.
1323 * parse.c (operator_length_standard): Likewise.
1324 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1325 * rust-lang.c (rust_range): Likewise.
1326 (rust_compute_range): Likewise.
1327 (rust_subscript): Likewise.
1328
a46d1843
SM
13292020-10-21 Simon Marchi <simon.marchi@efficios.com>
1330
1331 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1332 (displaced_step_in_progress): Fix comment.
1333
c21f37a8
SM
13342020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1337 * gdbarch.c: Re-generate.
1338 * gdbarch.h: Re-generate.
1339 * gcore.c (write_gcore_file_1): Adjust.
1340 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1341 constructor.
1342 <note_data>: Change type to unique pointer.
1343 <abort_iteration>: Change type to bool.
1344 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1345 (fbsd_collect_thread_registers): Return void, adjust.
1346 (struct fbsd_corefile_thread_data): Add construtor.
1347 <note_data>: Change type to unique pointer.
1348 (fbsd_corefile_thread): Adjust.
1349 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1350 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1351 to unique pointer, adjust.
1352 (struct linux_collect_regset_section_cb_data): Add constructor.
1353 <note_data>: Change type to unique pointer.
1354 <abort_iteration>: Change type to bool.
1355 (linux_collect_thread_registers): Return void, adjust.
1356 (struct linux_corefile_thread_data): Add constructor.
1357 <note_data>: Change type to unique pointer.
1358 (linux_corefile_thread): Adjust.
1359 (linux_make_corefile_notes): Return unique pointer, adjust.
1360
07fbbd01
SM
13612020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1362
1363 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1364 * gdbarch.c: Re-generate.
1365 * gdbarch.h: Re-generate.
1366 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1367 bool.
1368 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1369 Likewise.
1370 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1371 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1372 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1373 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1374
39535193
SM
13752020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1376
1377 * gdbarch.sh: Make generated predicates return bool.
1378 * gdbarch.c: Re-generate.
1379 * gdbarch.h: Re-generate.
1380
ad523d01
TT
13812020-10-20 Tom Tromey <tom@tromey.com>
1382
1383 * varobj-iter.h (struct varobj_item): Remove typedef.
1384
c4464ade
SM
13852020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * infrun.c (currently_stepping): Change int to bool
1388 (maybe_software_singlestep): Likewise.
1389 (show_stop_on_solib_events): Likewise.
1390 (stepping_past_nonsteppable_watchpoint): Likewise.
1391 (displaced_step_in_progress_any_inferior): Likewise.
1392 (displaced_step_in_progress_thread): Likewise.
1393 (keep_going_stepped_thread): Likewise.
1394 (thread_still_needs_step_over): Likewise.
1395 (start_step_over): Likewise.
1396 (do_target_resume): Likewise.
1397 (resume_1): Likewise.
1398 (clear_proceed_status): Likewise.
1399 (thread_still_needs_step_over_bp): Likewise.
1400 (proceed): Likewise.
1401 (switch_back_to_stepped_thread): Likewise.
1402 (adjust_pc_after_break): Likewise.
1403 (stepped_in_from): Likewise.
1404 (handle_stop_requested): Likewise.
1405 (handle_syscall_event): Likewise.
1406 (handle_no_resumed): Likewise.
1407 (handle_inferior_event): Likewise.
1408 (finish_step_over): Likewise.
1409 (handle_signal_stop): Likewise.
1410 (process_event_stop_test): Likewise.
1411
2eb20436
SM
14122020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1413
1414 * infrun.c (get_displaced_stepping_state): Fix comment.
1415
e0c45ded
AS
14162020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1417
1418 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1419
22cc388e
TT
14202020-10-19 Tom Tromey <tromey@adacore.com>
1421
1422 PR tui/26719
1423 * tui/tui-winsource.h (struct tui_source_window_base)
1424 <refresh_window>: Rename from refresh_pad.
1425 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1426 Rename from refresh_pad.
1427 (tui_source_window_base::show_source_content)
1428 (tui_source_window_base::do_scroll_horizontal): Update.
1429
3c6eb4d4
TBA
14302020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1431
1432 * thread.c (_initialize_thread): Fine-tune the help text of
1433 'info threads'.
1434
26703721
TBA
14352020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1436
1437 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1438
61c26be8
MS
14392020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1440
1441 * breakpoint.c (handle_jit_event): Add an argument, change how
1442 `jit_event_handler` is called.
1443
932539d7
TT
14442020-10-17 Tom Tromey <tom@tromey.com>
1445
1446 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1447 (scan_xcoff_symtab): Update.
1448 * psymtab.h (class psymtab_storage) <global_psymbols,
1449 static_psymbols, current_global_psymbols,
1450 current_static_psymbols>: Remove.
1451 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1452 (match_partial_symbol, lookup_partial_symbol): Update.
1453 (print_partial_symbols): Change parameters.
1454 (dump_psymtab, recursively_search_psymtabs)
1455 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1456 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1457 (concat): Remove.
1458 (end_psymtab_common): Simplify.
1459 (append_psymbol_to_list): Change parameters.
1460 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1461 (init_psymbol_list): Simplify.
1462 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1463 * psympriv.h (struct partial_symtab) <empty>: New method.
1464 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1465 Remove.
1466 <global_psymbols, static_psymbols>: New members.
1467 <add_psymbol>: New methods.
1468 (add_psymbol_to_list): Don't declare.
1469 (psymbol_placement): Move earlier.
1470 * mdebugread.c (parse_partial_symbols): Update.
1471 (handle_psymbol_enumerators): Change parameters.
1472 (mdebug_expand_psymtab): Update.
1473 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1474 (add_partial_symbol): Update.
1475 * dwarf2/index-write.c (write_psymbols): Change parameters.
1476 (write_one_signatured_type): Update.
1477 (recursively_count_psymbols): Update.
1478 (recursively_write_psymbols): Update.
1479 (class debug_names) <recursively_write_psymbols>: Update.
1480 <write_psymbols>: Change parameters.
1481 <write_one_signatured_type>: Update.
1482 * dbxread.c (read_dbx_symtab): Update.
1483 (dbx_end_psymtab): Use partial_symtab::empty.
1484 * ctfread.c (struct ctf_context) <pst>: New member.
1485 (create_partial_symtab): Set it.
1486 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1487 (scan_partial_symbols): Use the psymtab's context. Update.
1488
cfabbd35
TT
14892020-10-17 Tom Tromey <tom@tromey.com>
1490
1491 * valprint.c (generic_value_print): Remove comment.
1492 * m2-valprint.c (m2_value_print_inner): Remove comment.
1493 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1494 type.
1495
520596f2
TV
14962020-10-17 Tom de Vries <tdevries@suse.de>
1497
1498 PR symtab/26317
1499 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1500 symbol main.
1501
76547ab3
TV
15022020-10-14 Tom de Vries <tdevries@suse.de>
1503
1504 PR gdb/26733
1505 * solib.c (solib_contains_address_p): Handle
1506 'solib->sections == nullptr'.
1507
d3a07122
SM
15082020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1509
1510 PR gdb/26642
1511 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1512 target can't do async.
1513 * target.c (target_wait): Assert that we don't pass
1514 TARGET_WNOHANG to a target that can't async.
1515
1b71cfcf
KR
15162020-10-13 Kamil Rytarowski <n54@gmx.com>
1517
1518 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1519 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1520 * alpha-bsd-nat.c: Adjust include.
1521 * alpha-bsd-tdep.h: Adjust comment.
1522 * alpha-nbsd-tdep.c: Rename to ...
1523 * alpha-netbsd-tdep.c: ... this, adjust include.
1524 * amd64-nbsd-nat.c: Rename to ...
1525 * amd64-netbsd-nat.c: ... this, adjust include.
1526 * amd64-nbsd-tdep.c: Rename to ...
1527 * amd64-netbsd-tdep.c: ... this, adjust include.
1528 * amd64-tdep.h: Adjust include.
1529 * arm-nbsd-nat.c: Rename to ...
1530 * arm-netbsd-nat.c: ... this, adjust include.
1531 * arm-nbsd-tdep.c: Rename to ...
1532 * arm-netbsd-tdep.c: ... this, adjust include.
1533 * arm-nbsd-tdep.h: Rename to ...
1534 * arm-netbsd-tdep.h: ... this, adjust include.
1535 * configure.nat: Adjust file lists.
1536 * configure.tgt: Likewise.
1537 * hppa-nbsd-nat.c: Rename to ...
1538 * hppa-netbsd-nat.c: ... this, adjust include.
1539 * hppa-nbsd-tdep.c: Rename to ...
1540 * hppa-netbsd-tdep.c: ... this, adjust include.
1541 * i386-nbsd-nat.c: Rename to ...
1542 * i386-netbsd-nat.c: ... this, adjust include.
1543 * i386-nbsd-tdep.c: Rename to ...
1544 * i386-netbsd-tdep.c: ... this, adjust include.
1545 * m68k-bsd-nat.c: Adjust include.
1546 * mips-nbsd-nat.c: Rename to ...
1547 * mips-netbsd-nat.c: ... this, adjust include.
1548 * mips-nbsd-tdep.c: Rename to ...
1549 * mips-netbsd-tdep.c: ... this, adjust include.
1550 * mips-nbsd-tdep.h: Rename to ...
1551 * mips-netbsd-tdep.h: ... this.
1552 * nbsd-nat.c: Rename to ...
1553 * netbsd-nat.c: ... this, adjust include.
1554 * nbsd-nat.h: Rename to ...
1555 * netbsd-nat.h: ... this, adjust include.
1556 * nbsd-tdep.c: Rename to ...
1557 * netbsd-tdep.c: ... this, adjust include.
1558 * nbsd-tdep.h: Rename to ...
1559 * netbsd-tdep.h: ... this.
1560 * ppc-nbsd-nat.c: Rename to ...
1561 * ppc-netbsd-nat.c: ... this, adjust include.
1562 * ppc-nbsd-tdep.c: Rename to ...
1563 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1564 * ppc-nbsd-tdep.h: Rename to ...
1565 * ppc-netbsd-tdep.h: ... this.
1566 * sh-nbsd-nat.c: Rename to ...
1567 * sh-netbsd-nat.c: ... this, adjust include.
1568 * sh-nbsd-tdep.c: Rename to ...
1569 * sh-netbsd-tdep.c: ... this, adjust include.
1570 * sparc-nbsd-nat.c: Rename to ...
1571 * sparc-netbsd-nat.c: ... this.
1572 * sparc-nbsd-tdep.c: Rename to ...
1573 * sparc-netbsd-tdep.c: ... this, adjust include.
1574 * sparc64-nbsd-nat.c: Rename to ...
1575 * sparc64-netbsd-nat.c: ... this.
1576 * sparc64-nbsd-tdep.c: Rename to ...
1577 * sparc64-netbsd-tdep.c: ... this, adjust include.
1578 * sparc64-tdep.h: Adjust comment.
1579 * vax-bsd-nat.c: Adjust include.
1580 * vax-nbsd-tdep.c: Rename to ...
1581 * vax-netbsd-tdep.c: ... this, adjust include.
1582
d7a78e5c
TT
15832020-10-12 Tom Tromey <tom@tromey.com>
1584
1585 * target.h (struct target_ops) <get_section_table>: Update.
1586 (target_get_section_table): Update.
1587 * target.c (target_get_section_table, target_section_by_addr)
1588 (memory_xfer_partial_1): Update.
1589 * target-section.h (target_section_table): Now an alias.
1590 * target-delegates.c: Rebuild.
1591 * target-debug.h (target_debug_print_target_section_table_p):
1592 Rename from target_debug_print_struct_target_section_table_p.
1593 * symfile.c (build_section_addr_info_from_section_table): Update.
1594 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1595 * solib-svr4.c (scan_dyntag): Update.
1596 * solib-dsbt.c (scan_dyntag): Update.
1597 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1598 Update.
1599 * record-full.c (record_full_core_target::xfer_partial): Update.
1600 * progspace.h (struct program_space) <target_sections>: Update.
1601 * exec.h (print_section_info): Update.
1602 * exec.c (exec_target::close, build_section_table)
1603 (add_target_sections, add_target_sections_of_objfile)
1604 (remove_target_sections, exec_on_vfork)
1605 (section_table_available_memory)
1606 (section_table_xfer_memory_partial)
1607 (exec_target::get_section_table, exec_target::xfer_partial)
1608 (print_section_info, set_section_command)
1609 (exec_set_section_address, exec_target::has_memory): Update.
1610 * corelow.c (core_target::build_file_mappings)
1611 (core_target::xfer_partial, core_target::info_proc_mappings)
1612 (core_target::info_proc_mappings): Update.
1613 * bfd-target.c (class target_bfd): Update
1614
eda214ce
TT
16152020-10-12 Tom Tromey <tom@tromey.com>
1616
1617 * progspace.c (program_space::~program_space): Don't call
1618 clear_section_table.
1619 * exec.h (clear_section_table): Don't declare.
1620 * exec.c (exec_target::close): Update.
1621 (clear_section_table): Remove.
1622
91840ee3
TT
16232020-10-12 Tom Tromey <tom@tromey.com>
1624
1625 * exec.c (add_target_sections_of_objfile): Simplify.
1626
2d128614
TT
16272020-10-12 Tom Tromey <tom@tromey.com>
1628
1629 * solib.c (solib_map_sections): Update.
1630 * record-full.c (record_full_core_open_1): Update.
1631 * exec.h (build_section_table): Return a target_section_table.
1632 * exec.c (exec_file_attach): Update.
1633 (build_section_table): Return a target_section_table.
1634 * corelow.c (core_target::core_target): Update.
1635 * bfd-target.c (target_bfd::target_bfd): Update.
1636
bb2a6777
TT
16372020-10-12 Tom Tromey <tom@tromey.com>
1638
1639 * target.c (target_section_by_addr, memory_xfer_partial_1):
1640 Update.
1641 * target-section.h (struct target_section_table): Use
1642 std::vector.
1643 * symfile.h (build_section_addr_info_from_section_table): Take a
1644 target_section_table.
1645 * symfile.c (build_section_addr_info_from_section_table): Take a
1646 target_section_table.
1647 * solist.h (struct so_list) <sections>: Change type.
1648 <sections_end>: Remove.
1649 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1650 (solib_contains_address_p): Update.
1651 * solib-svr4.c (scan_dyntag): Update.
1652 * solib-dsbt.c (scan_dyntag): Update.
1653 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1654 Update.
1655 * record-full.c (record_full_core_start, record_full_core_end):
1656 Remove.
1657 (record_full_core_sections): New global.
1658 (record_full_core_open_1, record_full_core_target::xfer_partial):
1659 Update.
1660 * exec.h (build_section_table, section_table_xfer_memory_partial)
1661 (add_target_sections): Take a target_section_table.
1662 * exec.c (exec_file_attach, clear_section_table): Update.
1663 (resize_section_table): Remove.
1664 (build_section_table, add_target_sections): Take a
1665 target_section_table.
1666 (add_target_sections_of_objfile, remove_target_sections)
1667 (exec_on_vfork): Update.
1668 (section_table_available_memory): Take a target_section_table.
1669 (section_table_read_available_memory): Update.
1670 (section_table_xfer_memory_partial): Take a target_section_table.
1671 (print_section_info, set_section_command)
1672 (exec_set_section_address, exec_target::has_memory): Update.
1673 * corelow.c (class core_target) <m_core_section_table,
1674 m_core_file_mappings>: Remove braces.
1675 <~core_target>: Remove.
1676 (core_target::core_target): Update.
1677 (core_target::~core_target): Remove.
1678 (core_target::build_file_mappings)
1679 (core_target::xfer_memory_via_mappings)
1680 (core_target::xfer_partial, core_target::info_proc_mappings):
1681 Update.
1682 * bfd-target.c (target_bfd::xfer_partial): Update.
1683 (target_bfd::target_bfd): Update.
1684 (target_bfd::~target_bfd): Remove.
1685
7b466b10
TT
16862020-10-12 Tom Tromey <tom@tromey.com>
1687
1688 * target.h (struct target_section, struct target_section_table):
1689 Move to target-section.h.
1690 * target-section.h: New file.
1691
87a37e5e
PA
16922020-10-12 Pedro Alves <pedro@palves.net>
1693
1694 PR exp/26602
1695 * valops.c (struct struct_field_searcher): New.
1696 (update_search_result): Rename to ...
1697 (struct_field_searcher::update_result): ... this. Simplify
1698 prototype. Record all found fields.
1699 (do_search_struct_field): Rename to ...
1700 (struct_field_searcher::search): ... this. Simplify prototype.
1701 Maintain stack of visited baseclass path. Call update_result for
1702 fields too. Keep searching fields in baseclasses instead of
1703 stopping at the first found field.
1704 (search_struct_field): Use struct_field_searcher. When looking
1705 for fields, report ambiguous access attempts.
1706
9370fd51
AB
17072020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1708
1709 * frame.c (inside_main_func): Check full symbols as well as
1710 minimal symbols.
1711
59c8a30b
JB
17122020-10-09 Joel Brobecker <brobecker@adacore.com>
1713
1714 * ada-lang.c (advance_wild_match): Rewrite the function's
1715 description. Change the type of target0, t0 and t1 to char.
1716
7c184d33
TT
17172020-10-09 Tom Tromey <tromey@adacore.com>
1718
1719 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1720
5c4258f4
TT
17212020-10-09 Tom Tromey <tromey@adacore.com>
1722
1723 * ada-lang.h (ada_encode): Return std::string.
1724 * ada-lang.c (ada_encode_1): Return std::string.
1725 (ada_encode): Likewise.
1726 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1727 Update.
1728 * ada-exp.y (block_lookup, write_var_or_type): Update.
1729
3d87245c
HD
17302020-10-09 Hannes Domani <ssbssa@yahoo.de>
1731
1732 PR exp/26714
1733 * printcmd.c (print_formatted): Handle void results as
1734 unformatted prints.
1735
bbb826f5
AB
17362020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1737
1738 * arch/aarch32.c (aarch32_create_target_description): Release the
1739 target_desc_up as late as possible.
1740 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1741 * arch/amd64.c (amd64_create_target_description): Likewise.
1742 * arch/arc.c (arc_create_target_description): Return a
1743 target_desc_up, don't release it.
1744 * arch/arc.h (arc_create_target_description): Update declaration.
1745 (arc_lookup_target_description): Move target_desc_up into the
1746 cache, and return a borrowed pointer.
1747 * arch/arm.c (arm_create_target_description): Release the
1748 target_desc_up as late as possible.
1749 * arch/i386.c (i386_create_target_description): Likewise.
1750 * arch/riscv.h (riscv_create_target_description): Update
1751 declaration to match definition.
1752 * arch/tic6x.c (tic6x_create_target_description): Release the
1753 target_desc_up as late as possible.
1754
361cb219
AB
17552020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1756
1757 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1758 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1759
f5c4b229
JV
17602020-10-09 Jan Vrany <jan.vrany@labware.com>
1761
1762 * source.c (directory_command): Notify observers that "directories"
1763 parameter has changed.
1764
b2701685
TT
17652020-10-08 Tom Tromey <tom@tromey.com>
1766
1767 * cli/cli-cmds.c (print_disassembly): Style function name and
1768 addresses. Add _() wrappers.
1769
ada508b6
SV
17702020-10-08 Shahab Vahedi <shahab@synopsys.com>
1771
1772 * NEWS: Mention ARC support in GDBserver.
1773
51a948fd
AB
17742020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1775
1776 * arch/aarch32.c (aarch32_create_target_description): Release
1777 unique_ptr returned from allocate_target_description.
1778 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1779 * arch/amd64.c (amd64_create_target_description): Likewise.
1780 * arch/arc.c (arc_create_target_description): Likewise.
1781 * arch/arm.c (arm_create_target_description): Likewise.
1782 * arch/i386.c (i386_create_target_description): Likewise.
1783 * arch/riscv.c (riscv_create_target_description): Update return
1784 type. Handle allocate_target_description returning a unique_ptr.
1785 (riscv_lookup_target_description): Update to handle unique_ptr.
1786 * arch/tic6x.c (tic6x_create_target_description): Release
1787 unique_ptr returned from allocate_target_description.
1788 * features/microblaze-with-stack-protect.c: Regenerate.
1789 * features/microblaze.c: Regenerate.
1790 * features/mips-dsp-linux.c: Regenerate.
1791 * features/mips-linux.c: Regenerate.
1792 * features/mips64-dsp-linux.c: Regenerate.
1793 * features/mips64-linux.c: Regenerate.
1794 * features/nds32.c: Regenerate.
1795 * features/nios2.c: Regenerate.
1796 * features/or1k.c: Regenerate.
1797 * features/rs6000/powerpc-32.c: Regenerate.
1798 * features/rs6000/powerpc-32l.c: Regenerate.
1799 * features/rs6000/powerpc-403.c: Regenerate.
1800 * features/rs6000/powerpc-403gc.c: Regenerate.
1801 * features/rs6000/powerpc-405.c: Regenerate.
1802 * features/rs6000/powerpc-505.c: Regenerate.
1803 * features/rs6000/powerpc-601.c: Regenerate.
1804 * features/rs6000/powerpc-602.c: Regenerate.
1805 * features/rs6000/powerpc-603.c: Regenerate.
1806 * features/rs6000/powerpc-604.c: Regenerate.
1807 * features/rs6000/powerpc-64.c: Regenerate.
1808 * features/rs6000/powerpc-64l.c: Regenerate.
1809 * features/rs6000/powerpc-7400.c: Regenerate.
1810 * features/rs6000/powerpc-750.c: Regenerate.
1811 * features/rs6000/powerpc-860.c: Regenerate.
1812 * features/rs6000/powerpc-altivec32.c: Regenerate.
1813 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1814 * features/rs6000/powerpc-altivec64.c: Regenerate.
1815 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1816 * features/rs6000/powerpc-e500.c: Regenerate.
1817 * features/rs6000/powerpc-e500l.c: Regenerate.
1818 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1819 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1820 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1821 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1822 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1823 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1824 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1825 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1826 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1827 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1828 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1829 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1830 * features/rs6000/powerpc-vsx32.c: Regenerate.
1831 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1832 * features/rs6000/powerpc-vsx64.c: Regenerate.
1833 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1834 * features/rs6000/rs6000.c: Regenerate.
1835 * features/rx.c: Regenerate.
1836 * features/s390-gs-linux64.c: Regenerate.
1837 * features/s390-linux32.c: Regenerate.
1838 * features/s390-linux32v1.c: Regenerate.
1839 * features/s390-linux32v2.c: Regenerate.
1840 * features/s390-linux64.c: Regenerate.
1841 * features/s390-linux64v1.c: Regenerate.
1842 * features/s390-linux64v2.c: Regenerate.
1843 * features/s390-te-linux64.c: Regenerate.
1844 * features/s390-tevx-linux64.c: Regenerate.
1845 * features/s390-vx-linux64.c: Regenerate.
1846 * features/s390x-gs-linux64.c: Regenerate.
1847 * features/s390x-linux64.c: Regenerate.
1848 * features/s390x-linux64v1.c: Regenerate.
1849 * features/s390x-linux64v2.c: Regenerate.
1850 * features/s390x-te-linux64.c: Regenerate.
1851 * features/s390x-tevx-linux64.c: Regenerate.
1852 * features/s390x-vx-linux64.c: Regenerate.
1853 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1854 from allocate_target_description.
1855 * target-descriptions.c (allocate_target_description): Update
1856 return type.
1857 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1858 allocate_target_description.
1859
485c47e5
TT
18602020-10-07 Tom Tromey <tromey@adacore.com>
1861
1862 * unittests/search-memory-selftests.c: New file.
1863 * Makefile.in (SELFTESTS_SRCS): Add
1864 unittests/search-memory-selftests.c.
1865
3a135a91
TT
18662020-10-07 Tom Tromey <tromey@adacore.com>
1867
1868 PR gdb/16930:
1869 * findcmd.c (_initialize_mem_search): Mention that the range is
1870 inclusive.
1871
4a72de73
TT
18722020-10-07 Tom Tromey <tromey@adacore.com>
1873
1874 * target.h (simple_search_memory): Don't declare.
1875 * target.c (simple_search_memory): Move to gdbsupport.
1876 (default_search_memory): Update.
1877 * remote.c (remote_target::search_memory): Update.
1878
a038ffd8
SM
18792020-10-07 Simon Marchi <simon.marchi@efficios.com>
1880
1881 * Makefile.in (COMPILE): Add CXXFLAGS.
1882 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1883 (check-headers): Add CXXFLAGS.
1884
cc463201
AK
18852020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1886
1887 * arc-linux-tdep.h: New file.
1888 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1889 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1890 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1891 arc_linux_gregset, arc_linux_v2_regset,
1892 arc_linux_iterate_over_regset_sections,
1893 arc_linux_core_read_description): Implement.
1894 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1895 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1896 (arc_gdbarch_features_create): Add.
1897 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1898
e4bd363f
SV
18992020-10-07 Shahab Vahedi <shahab@synopsys.com>
1900
1901 * arch/arc.h: Rename "arc_gdbarch_features" to
1902 "arc_arch_features".
1903 * arc-tdep.h: Likewise.
1904 * arc-tdep.c: Likewise.
1905
b68bef99
TBA
19062020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1907
1908 * infcmd.c (attach_command): Remove the redundant call to
1909 `clear_proceed_status`.
1910
4641551a
KR
19112020-10-07 Kamil Rytarowski <n54@gmx.com>
1912
1913 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1914
91e5e8db
KR
19152020-10-07 Kamil Rytarowski <n54@gmx.com>
1916
1917 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1918 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1919 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1920
64c03bdb
SM
19212020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1922
1923 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1924 (_initialize_break_catch_sig): Don't allocate array.
1925
31a8f60f
AB
19262020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1927
1928 * symtab.c (find_pc_line): Return unmapped addresses when the
1929 requested address is also unmapped.
1930
9e6dbd8b
SM
19312020-10-05 Simon Marchi <simon.marchi@efficios.com>
1932
1933 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1934 tui/tui-out.h.
1935
a1d217e8
SM
19362020-10-05 Simon Marchi <simon.marchi@efficios.com>
1937
1938 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1939 type::is_vector instead of TYPE_VECTOR.
1940
7d144117
SM
19412020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1942
1943 * auto-load.c (auto_load_objfile_script_1): Don't use
1944 debugfile_holder as temporary variable when stripping drive
1945 letter.
1946
cd096ec8
HD
19472020-10-05 Hannes Domani <ssbssa@yahoo.de>
1948
1949 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1950 Add TYPE_CODE_COMPLEX.
1951 (amd64_windows_return_value): Fix types returned via XMM0.
1952
b58e7f72
AH
19532020-10-05 Alan Hayward <alan.hayward@arm.com>
1954
1955 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1956 AArch64/ARM maintainers.
1957
8d378f27
SM
19582020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1959
1960 * NEWS: Mention set/show debug event-loop.
1961
d5519913
TT
19622020-10-02 Tom Tromey <tromey@adacore.com>
1963
1964 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1965 REG_EXTENDED.
1966
18b67edc
SM
19672020-10-02 Simon Marchi <simon.marchi@efficios.com>
1968
1969 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1970 * procfs.c (procfs_inferior_created): Remove.
1971 (_initialize_procfs): Don't register procfs_inferior_created.
1972
6b01403b
SM
19732020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1974
1975 * async-event.c (invoke_async_signal_handlers): Add debug
1976 print.
1977 (check_async_event_handlers): Likewise.
1978 * event-top.c (show_debug_event_loop): New function.
1979 (_initialize_event_top): Register "set debug event-loop"
1980 setting.
1981
ba988419
SM
19822020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1983
1984 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1985 * debug.h: Remove.
1986 * infrun.c: Include gdbsupport/common-debug.h.
1987 * linux-nat.c: Likewise.
1988
db20ebdf
SM
19892020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1990
1991 * async-event.h (create_async_signal_handler): Add name
1992 parameter.
1993 (create_async_event_handler): Likewise.
1994 * async-event.c (struct async_signal_handler) <name>: New field.
1995 (struct async_event_handler) <name>: New field.
1996 (create_async_signal_handler): Assign name.
1997 (create_async_event_handler): Assign name.
1998 * event-top.c (async_init_signals): Pass name when creating
1999 handler.
2000 * infrun.c (_initialize_infrun): Likewise.
2001 * record-btrace.c (record_btrace_push_target): Likewise.
2002 * record-full.c (record_full_open): Likewise.
2003 * remote-notif.c (remote_notif_state_allocate): Likewise.
2004 * remote.c (remote_target::open_1): Likewise.
2005 * tui/tui-win.c (tui_initialize_win): Likewise.
2006
2554f6f5
SM
20072020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2008
2009 * async-event.c (initialize_async_signal_handlers): Pass name to
2010 add_file_handler
2011 * event-top.c (ui_register_input_event_handler): Likewise.
2012 * linux-nat.c (linux_nat_target::async): Likewise.
2013 * run-on-main-thread.c (_initialize_run_on_main_thread):
2014 Likewise
2015 * ser-base.c (reschedule): Likewise.
2016 (ser_base_async): Likewise.
2017 * tui/tui-io.c: Likewise.
2018 * top.h (struct ui) <num>: New field.
2019 * top.c (highest_ui_num): New variable.
2020 (ui::ui): Initialize num.
2021
a7aba266
SM
20222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2023
2024 * observable.h <inferior_created>: Remove parameters. Update all
2025 listeners.
2026 * inferior.h (post_create_inferior): Remove target parameter.
2027 Update all callers.
2028
048fde1e 20292020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2030
2031 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2032 and DW_MACRO_undef_strx.
2033 (dwarf_decode_macros): Likewise
2034 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2035 which is the value of DW_AT_str_offsets_base.
2036 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2037 str_offsets_base.
2038
064280be
KR
20392020-10-01 Kamil Rytarowski <n54@gmx.com>
2040
2041 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2042
6ff33035
KR
20432020-10-01 Kamil Rytarowski <n54@gmx.com>
2044
2045 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2046 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2047
1eb6eb79
KR
20482020-10-01 Kamil Rytarowski <n54@gmx.com>
2049
2050 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2051
95eb9e54
TV
20522020-09-30 Tom de Vries <tdevries@suse.de>
2053
2054 PR symtab/26683
2055 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2056
cae21f8e
TT
20572020-09-30 Tom Tromey <tromey@adacore.com>
2058
2059 * dwarf2/read.c (handle_variant): Use constant_value.
2060
529908cb
TT
20612020-09-29 Tom Tromey <tom@tromey.com>
2062
2063 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2064 (read_file_scope, dwarf2_get_pc_bounds)
2065 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2066 (read_structure_type, handle_struct_member_die)
2067 (read_enumeration_type, read_array_type, read_set_type)
2068 (read_tag_pointer_type, read_tag_reference_type)
2069 (read_subroutine_type, read_base_type, read_subrange_type)
2070 (read_full_die_1, partial_die_info::read)
2071 (partial_die_info::read, by, new_symbol)
2072 (dwarf2_const_value_data, dwarf2_const_value_attr)
2073 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2074 (prepare_one_comp_unit): Update.
2075 * dwarf2/attribute.h (DW_UNSND): Remove.
2076
c45bc3f8
TT
20772020-09-29 Tom Tromey <tom@tromey.com>
2078
2079 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2080 (read_subroutine_type, partial_die_info::read)
2081 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2082 (dwarf2_add_member_fn): Update.
2083 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2084 * dwarf2/attribute.c (attribute::as_boolean): New method.
2085
23dca5c3
TT
20862020-09-29 Tom Tromey <tom@tromey.com>
2087
2088 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2089 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2090 method.
2091 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2092
52c14d11
TT
20932020-09-29 Tom Tromey <tom@tromey.com>
2094
2095 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2096 the attribute's form.
2097
e8e5c158
TT
20982020-09-29 Tom Tromey <tom@tromey.com>
2099
2100 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2101 (dwarf2_add_member_fn): Update.
2102 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2103 * dwarf2/attribute.c (attribute::defaulted): New method, from
2104 is_valid_DW_AT_defaulted.
2105
d4df075e
TT
21062020-09-29 Tom Tromey <tom@tromey.com>
2107
2108 * dwarf2/read.c (dw2_get_file_names_reader)
2109 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2110 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2111 (dwarf2_symbol_mark_computed): Use as_unsigned.
2112 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2113 method.
2114 <form_is_section_offset>: Update comment.
2115
bf23a268
TT
21162020-09-29 Tom Tromey <tom@tromey.com>
2117
2118 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2119 dwarf2_default_access_attribute. Look up attribute.
2120 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2121 Update.
2122
7a5f294d
TT
21232020-09-29 Tom Tromey <tom@tromey.com>
2124
2125 * dwarf2/read.c (skip_one_die): Update.
2126 (read_full_die_1): Change how reprocessing is done.
2127 (partial_die_info::read): Update.
2128 (read_attribute_value): Remove need_reprocess parameter.
2129 (read_attribute): Likewise.
2130 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2131 New method.
2132
36d378cf
TT
21332020-09-29 Tom Tromey <tom@tromey.com>
2134
2135 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2136 (dwarf2_const_value_attr, dump_die_shallow)
2137 (dwarf2_fetch_constant_bytes): Update.
2138 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2139 comment.
2140 <set_address>: New method.
2141 (DW_ADDR): Remove.
2142 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2143 (attribute::as_string, attribute::as_address): Add assert.
2144
fe56917a
TT
21452020-09-29 Tom Tromey <tom@tromey.com>
2146
2147 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2148 (read_attribute_reprocess, read_attribute_value): Update.
2149 (read_attribute): Clear requires_reprocessing.
2150 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2151 form_requires_reprocessing>: New methods.
2152 <string_init>: Clear requires_reprocessing.
2153 <set_unsigned_reprocess>: New method.
2154 <name>: Shrink by one bit.
2155 <requires_reprocessing>: New member.
2156 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2157 method.
2158
414ad644
TT
21592020-09-29 Tom Tromey <tom@tromey.com>
2160
2161 * dwarf2/read.c (read_attribute_value): Update.
2162 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2163 set_unsigned>: New methods.
2164 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2165
1bc397c5
TT
21662020-09-29 Tom Tromey <tom@tromey.com>
2167
2168 * dwarf2/read.c (get_alignment, read_array_order)
2169 (read_attribute_value, dwarf2_const_value_attr)
2170 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2171 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2172 New methods.
2173 (DW_SND): Remove.
2174
630ed6b9
TT
21752020-09-29 Tom Tromey <tom@tromey.com>
2176
2177 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2178 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2179 Update.
2180 * dwarf2/attribute.h (struct attribute) <as_signature,
2181 set_signature>: New methods.
2182 (DW_SIGNATURE): Remove.
2183
9d2246fc
TT
21842020-09-29 Tom Tromey <tom@tromey.com>
2185
2186 * dwarf2/read.c (read_call_site_scope)
2187 (handle_data_member_location, dwarf2_add_member_fn)
2188 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2189 (partial_die_info::read, read_attribute_value)
2190 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2191 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2192 (dwarf2_symbol_mark_computed): Update.
2193 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2194 methods.
2195 (DW_BLOCK): Remove.
2196 * dwarf2/attribute.c (attribute::form_is_block): Add
2197 DW_FORM_data16.
2198
c6481205
TT
21992020-09-29 Tom Tromey <tom@tromey.com>
2200
2201 * dwarf2/read.c (read_cutu_die_from_dwo)
2202 (read_attribute_reprocess, read_attribute_value, read_attribute)
2203 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2204 (dwarf2_fetch_constant_bytes): Update.
2205 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2206 <set_string_noncanonical, set_string_canonical>: New methods.
2207 <string_is_canonical>: Update comment.
2208 <canonical_string_p>: Add assert.
2209 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2210 * dwarf2/attribute.c (attribute::form_is_string): New method.
2211 (attribute::string): Use it.
2212
3b64bf15
TT
22132020-09-29 Tom Tromey <tom@tromey.com>
2214
2215 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2216 (dump_die_shallow): Use canonical_string_p.
2217 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2218 method.
2219
2c830f54
TT
22202020-09-29 Tom Tromey <tom@tromey.com>
2221
2222 * dwarf2/read.c (partial_die_info::read)
2223 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2224 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2225 attribute::as_string.
2226
6c412691
TT
22272020-09-29 Tom Tromey <tom@tromey.com>
2228
2229 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2230 DW_ADDR.
2231 (attribute::string): Don't use DW_STRING.
2232 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2233 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2234
95f982e5
TT
22352020-09-29 Tom Tromey <tom@tromey.com>
2236
2237 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2238 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2239 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2240 * dwarf2/attribute.h (struct attribute): Rename methods.
2241 * dwarf2/attribute.c (attribute::as_address): Rename from
2242 value_as_address.
2243 (attribute::as_string): Rename from value_as_string.
2244
f800b00e
TT
22452020-09-29 Tom Tromey <tom@tromey.com>
2246
2247 * dwarf2/read.c (partial_die_info::read) <case
2248 DW_AT_linkage_name>: Use value_as_string.
2249 (dwarf2_string_attr): Use value_as_string.
2250 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2251 method.
2252 * dwarf2/attribute.c (attribute::value_as_string): New method.
2253
de38d64a
PA
22542020-09-29 Pedro Alves <pedro@palves.net>
2255
2256 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2257 defined before using '#pragma GCC diagnostic' instead of checking
2258 __clang__.
2259
9aed480c
TT
22602020-09-28 Tom Tromey <tom@tromey.com>
2261
2262 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2263 (handle_signal_stop): Update.
2264 * procfs.c (procfs_target::insert_watchpoint): Update.
2265 * target.h (target_have_steppable_watchpoint): Now a function.
2266
8a3ecb79
TT
22672020-09-28 Tom Tromey <tom@tromey.com>
2268
2269 * infrun.c (set_schedlock_func): Update.
2270 * target.h (target_can_lock_scheduler): Now a function.
2271
55f6301a
TT
22722020-09-28 Tom Tromey <tom@tromey.com>
2273
2274 * inferior.h (class inferior) <has_execution>: Update.
2275 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2276 * valops.c (find_function_in_inferior)
2277 (value_allocate_space_in_inferior): Update.
2278 * top.c (kill_or_detach): Update.
2279 * target.c (target_preopen, set_target_permissions): Update.
2280 (target_has_execution_current): Remove.
2281 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2282 Update.
2283 * solib.c (update_solib_list, reload_shared_libraries): Update.
2284 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2285 * solib-dsbt.c (enable_break): Update.
2286 * score-tdep.c (score7_fetch_inst): Update.
2287 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2288 Update.
2289 * remote.c (remote_target::start_remote)
2290 (remote_target::remote_check_symbols, remote_target::open_1)
2291 (remote_target::remote_detach_1, remote_target::verify_memory)
2292 (remote_target::xfer_partial, remote_target::read_description)
2293 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2294 * record-full.c (record_full_open_1): Update.
2295 * record-btrace.c (record_btrace_target_open): Update.
2296 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2297 (value_nsstring): Update.
2298 * linux-thread-db.c (add_thread_db_info)
2299 (thread_db_find_new_threads_silently, check_thread_db_callback)
2300 (try_thread_db_load_1, record_thread): Update.
2301 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2302 Update.
2303 * linux-fork.c (checkpoint_command): Update.
2304 * infrun.c (set_non_stop, set_observer_mode)
2305 (check_multi_target_resumption, for_each_just_stopped_thread)
2306 (maybe_remove_breakpoints, normal_stop)
2307 (class infcall_suspend_state): Update.
2308 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2309 (info_program_command, attach_command): Update.
2310 * infcall.c (call_function_by_hand_dummy): Update.
2311 * inf-loop.c (inferior_event_handler): Update.
2312 * gcore.c (gcore_command, derive_heap_segment): Update.
2313 * exec.c (exec_file_command): Update.
2314 * eval.c (evaluate_subexp): Update.
2315 * compile/compile.c (compile_to_object): Update.
2316 * cli/cli-dump.c (restore_command): Update.
2317 * breakpoint.c (update_watchpoint)
2318 (update_inserted_breakpoint_locations)
2319 (insert_breakpoint_locations, get_bpstat_thread): Update.
2320 * target.h (target_has_execution): Remove macro.
2321 (target_has_execution_current): Don't declare.
2322 (target_has_execution): Rename from target_has_execution_1. Add
2323 argument default.
2324
05374cfd
TT
23252020-09-28 Tom Tromey <tom@tromey.com>
2326
2327 * mi/mi-main.c (exec_reverse_continue)
2328 (mi_cmd_list_target_features): Update.
2329 * infrun.c (set_exec_direction_func): Update.
2330 * target.c (default_execution_direction): Update.
2331 * reverse.c (exec_reverse_once): Update.
2332 * target.h (target_can_execute_reverse): Now a function.
2333
9dccd06e
TT
23342020-09-28 Tom Tromey <tom@tromey.com>
2335
2336 * tui/tui-regs.c (tui_get_register)
2337 (tui_data_window::show_registers): Update.
2338 * thread.c (scoped_restore_current_thread::restore)
2339 (scoped_restore_current_thread::scoped_restore_current_thread):
2340 Update.
2341 * regcache-dump.c (regcache_print): Update.
2342 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2343 Update.
2344 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2345 * mep-tdep.c (current_me_module, current_options): Update.
2346 * linux-thread-db.c (thread_db_load): Update.
2347 * infcmd.c (registers_info, info_vector_command)
2348 (info_float_command): Update.
2349 * ia64-tdep.c (ia64_frame_prev_register)
2350 (ia64_sigtramp_frame_prev_register): Update.
2351 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2352 * gcore.c (derive_stack_segment): Update.
2353 * frame.c (get_current_frame, has_stack_frames): Update.
2354 * findvar.c (language_defn::read_var_value): Update.
2355 * arm-tdep.c (arm_pc_is_thumb): Update.
2356 * target.c (target_has_registers): Rename from
2357 target_has_registers_1.
2358 * target.h (target_has_registers): Remove macro.
2359 (target_has_registers): Rename from target_has_registers_1.
2360
841de120
TT
23612020-09-28 Tom Tromey <tom@tromey.com>
2362
2363 * windows-tdep.c (tlb_make_value): Update.
2364 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2365 * thread.c (scoped_restore_current_thread::restore)
2366 (scoped_restore_current_thread::scoped_restore_current_thread)
2367 (thread_command): Update.
2368 * stack.c (backtrace_command_1, frame_apply_level_command)
2369 (frame_apply_all_command, frame_apply_command): Update.
2370 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2371 Update.
2372 * gcore.c (derive_stack_segment): Update.
2373 * frame.c (get_current_frame, has_stack_frames): Update.
2374 * auxv.c (info_auxv_command): Update.
2375 * ada-tasks.c (ada_build_task_list): Update.
2376 * target.c (target_has_stack): Rename from target_has_stack_1.
2377 * target.h (target_has_stack): Remove macro.
2378 (target_has_stack): Rename from target_has_stack_1.
2379
a739972c
TT
23802020-09-28 Tom Tromey <tom@tromey.com>
2381
2382 * target.c (target_has_memory): Rename from target_has_memory_1.
2383 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2384 * thread.c (scoped_restore_current_thread::restore)
2385 (scoped_restore_current_thread::scoped_restore_current_thread):
2386 Update.
2387 * frame.c (get_current_frame, has_stack_frames): Update.
2388 * target.h (target_has_memory): Remove macro.
2389 (target_has_memory): Rename from target_has_memory_1.
2390
5b8a4776
TT
23912020-09-28 Tom Tromey <tom@tromey.com>
2392
2393 * target.c (target_has_all_memory_1): Remove.
2394 * target.h (target_has_all_memory): Remove define.
2395 (target_has_all_memory_1): Don't declare.
2396
bd356ec6
SM
23972020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2398
2399 * ser-base.c: Adjust comments formatting.
2400
2c72d5e5
TT
24012020-09-27 Tom Tromey <tom@tromey.com>
2402
2403 PR tui/25342:
2404 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2405
35a98237
TT
24062020-09-27 Tom Tromey <tom@tromey.com>
2407
2408 PR tui/25342:
2409 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2410
9e820dec
TT
24112020-09-27 Tom Tromey <tom@tromey.com>
2412
2413 * unittests/tui-selftests.c: Update.
2414 * tui/tui-winsource.h (struct tui_source_window_base)
2415 <extra_margin, show_line_number, refresh_pad>: New methods.
2416 <m_max_length, m_pad>: New members.
2417 (tui_copy_source_line): Update.
2418 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2419 first_col, line_width, ndigits parameters. Add length.
2420 (tui_source_window_base::show_source_line): Write to pad. Line
2421 number now 0-based.
2422 (tui_source_window_base::refresh_pad): New method.
2423 (tui_source_window_base::show_source_content): Write to pad. Call
2424 refresh_pad.
2425 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2426 not refill.
2427 (tui_source_window_base::update_exec_info): Call
2428 show_line_number.
2429 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2430 method.
2431 <m_digits>: New member.
2432 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2433 and m_max_length.
2434 (tui_source_window::show_line_number): New method.
2435 * tui/tui-io.h (tui_puts): Fix comment.
2436 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2437 m_max_length.
2438
c15c15c8
TT
24392020-09-27 Tom Tromey <tom@tromey.com>
2440
2441 * tui/tui-winsource.c
2442 (tui_source_window_base::set_is_exec_point_at): Don't call
2443 show_source_line.
2444
149830c1
TT
24452020-09-27 Tom Tromey <tom@tromey.com>
2446
2447 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2448 method.
2449 <erase>: Update.
2450 <cursor_x, cursor_y>: Remove.
2451 <m_inner_window>: New member.
2452 (tui_py_window::rerender): Create inner window.
2453 (tui_py_window::output): Write to inner window.
2454
8f9929bb
GR
24552020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2456
2457 PR python/26586
2458 * cli/cli-script.c (execute_control_commands): don't set
2459 instream to nullptr here as this breaks the from_tty argument
2460 to gdb.execute in Python.
2461 (execute_user_command): set instream to nullptr here instead.
2462
956bdb59
SM
24632020-09-25 Simon Marchi <simon.marchi@efficios.com>
2464
2465 * infrun.h (infrun_debug_printf): Fix formatting.
2466 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2467
3b93626b
SJ
24682020-09-25 Saagar Jha <saagar@saagarjha.com>
2469
2470 * compile/compile-object-load.h (struct munmap_list): Add
2471 explicitly-defined move constructor.
2472
b551a89f
TT
24732020-09-24 Tom Tromey <tromey@adacore.com>
2474
2475 PR tui/26638:
2476 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2477 method.
2478 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2479 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2480 (tui_prev_win): Rewrite.
2481
99bb393f
HD
24822020-09-23 Hannes Domani <ssbssa@yahoo.de>
2483
2484 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2485 in WOW64 processes as SIGINT.
2486 * nat/windows-nat.h: Make wow64_process a shared variable.
2487 * windows-nat.c: Remove static wow64_process variable.
2488
20a5fcbd
TT
24892020-09-23 Tom Tromey <tom@tromey.com>
2490
2491 PR symtab/25470:
2492 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2493 offset and bit size.
2494 * printcmd.c (print_scalar_formatted): Handle zero-length
2495 integer.
2496 (print_scalar_formatted): Use bit_size_differs_p.
2497 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2498 constant.
2499 (union type_specific): <int_stuff>: New member.
2500 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2501 methods.
2502 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2503 TYPE_SPECIFIC_FIELD.
2504 (recursive_dump_type, copy_type_recursive): Update.
2505 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2506 DW_AT_data_bit_offset.
2507
bac51ab7
TT
25082020-09-23 Tom Tromey <tom@tromey.com>
2509
2510 * utils.h (class gdb_argv): Add move operators.
2511 <append>: New methods.
2512 * compile/compile.c (build_argc_argv): Remove.
2513 (compile_args_argc): Remove.
2514 (compile_args_argv): Change type.
2515 (set_compile_args): Simplify.
2516 (append_args): Remove.
2517 (filter_args): Remove argcp parameter.
2518 (get_args): Return gdb_argv. Simplify.
2519 (compile_to_object): Update.
2520
92677124
TT
25212020-09-23 Tom Tromey <tom@tromey.com>
2522
2523 * compile/compile-object-run.c (do_module_cleanup)
2524 <~do_module_cleanup> :Remove.
2525 (do_module_cleanup): Update.
2526 * compile/compile-object-load.h (struct munmap_list): Add move
2527 assignment operator.
2528 <source_file>: Now a std::string.
2529 <munmap_list>: Rename. No longer a pointer.
2530 * compile/compile-object-load.c (struct setup_sections_data): Add
2531 constructor.
2532 <setup_one_section>: Declare.
2533 <munmap_list>: Move earlier.
2534 <m_bfd>: New member.
2535 <m_last_size, m_last_section_first, m_last_prot,
2536 m_last_max_alignment>: Rename, add initializers where needed.
2537 (setup_sections_data::setup_one_section): Rename from
2538 setup_sections. Update.
2539 (compile_object_load): Update. Don't use bfd_map_over_sections.
2540
e616f60a
TT
25412020-09-23 Tom Tromey <tom@tromey.com>
2542
2543 * compile/compile-object-run.c (struct do_module_cleanup): Add
2544 parameters to constructor. Update destructor.
2545 <source_file, scope, scope_data, out_value_type, out_value_addr,
2546 munmap_list_head, objfile_name_string>: Remove.
2547 <module>: New member.
2548 (do_module_cleanup): Update.
2549 (compile_object_run): Update.
2550
e947a848
TT
25512020-09-23 Tom Tromey <tom@tromey.com>
2552
2553 * compile/compile.c (eval_compile_command): Update.
2554 * compile/compile-object-run.h (compile_object_run): Take a
2555 compile_module_up.
2556 * compile/compile-object-run.c (compile_object_run): Take a
2557 compile_module_up.
2558 * compile/compile-object-load.h (struct compile_module): Add
2559 constructor, destructor.
2560 (compile_module_up): New typedef.
2561 (compile_object_load): Return compile_object_up.
2562 * compile/compile-object-load.c (compile_object_load): Return
2563 compile_module_up.
2564
0dbf6ee6
TT
25652020-09-23 Tom Tromey <tom@tromey.com>
2566
2567 * compile/compile-object-run.c (struct do_module_cleanup): Add
2568 constructor, destructor.
2569 <objfile_name_string>: Don't use struct hack.
2570 (do_module_cleanup): Use delete.
2571 (compile_object_run): Use new.
2572
ebe824f5
TT
25732020-09-23 Tom Tromey <tom@tromey.com>
2574
2575 * compile/compile-cplus-types.c
2576 (compile_cplus_convert_struct_or_union): Use std::vector.
2577 (compile_cplus_convert_func): Likewise.
2578 * compile/compile-c-types.c (convert_func): Use std::vector.
2579
5dd918d9
TT
25802020-09-21 Tom Tromey <tromey@adacore.com>
2581
2582 * sparc-tdep.c (sparc32_skip_prologue): Use
2583 skip_prologue_using_sal.
2584
5486c517
TT
25852020-09-19 Tom Tromey <tom@tromey.com>
2586
2587 * symfile.c (add_section_size_callback): Remove.
2588 (load_one_section): Rename from load_section_callback. Change
2589 parameters.
2590 (generic_load): Use foreach.
2591
8a6bb1d1
TT
25922020-09-19 Tom Tromey <tom@tromey.com>
2593
2594 * exec.c (add_to_section_table): Remove.
2595 (build_section_table): Use foreach.
2596
08f93a1a
TT
25972020-09-19 Tom Tromey <tom@tromey.com>
2598
2599 * elfread.c (elf_locate_sections): Change parameters.
2600 (elf_symfile_read): Use foreach.
2601
03cd72b8
TT
26022020-09-19 Tom Tromey <tom@tromey.com>
2603
2604 * cli/cli-dump.c (struct callback_data): Remove.
2605 (restore_one_section): Rename from restore_section_callback.
2606 Change parameters.
2607 (restore_binary_file): Change parameters.
2608 (restore_command): Use foreach.
2609
f4f2b85f
TT
26102020-09-19 Tom Tromey <tom@tromey.com>
2611
2612 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2613 (gcore_copy_callback): Likewise.
2614 (gcore_memory_sections): Use foreach.
2615
b35c1d1c
TT
26162020-09-19 Tom Tromey <tom@tromey.com>
2617
2618 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2619 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2620 parameters.
2621 (generic_elf_osabi_sniffer): Use foreach.
2622 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2623 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2624
5bb6e9dd
TT
26252020-09-19 Tom Tromey <tom@tromey.com>
2626
2627 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2628 (dwarf2_get_dwz_file): Use foreach.
2629 (dwarf2_locate_dwo_sections): Change parameters.
2630 (open_and_init_dwo_file): Use foreach.
2631 (dwarf2_locate_common_dwp_sections): Change parameters.
2632 (open_and_init_dwp_file): Use foreach.
2633
ad7277da
TT
26342020-09-19 Tom Tromey <tom@tromey.com>
2635
2636 * symfile.h: (find_lowest_section): Don't declare.
2637 * symfile.c (find_lowest_section): Now static. Change
2638 parameters.
2639 (struct place_section_arg): Remove.
2640 (place_section): Change parameters.
2641 (addr_info_make_relative): Use foreach.
2642 (symfile_dummy_outputs): Remove.
2643 (default_symfile_relocate): Use foreach.
2644
cb814f2e
TT
26452020-09-19 Tom Tromey <tom@tromey.com>
2646
2647 * objfiles.c (add_to_objfile_sections): Rename from
2648 add_to_objfile_sections_full.
2649 (add_to_objfile_sections): Remove.
2650 (build_objfile_section_table): Use foreach.
2651
3cabfd26
TT
26522020-09-19 Tom Tromey <tom@tromey.com>
2653
2654 * stap-probe.c (get_stap_base_address_1): Remove.
2655 (get_stap_base_address): Use foreach.
2656
1ce51eb5
TT
26572020-09-19 Tom Tromey <tom@tromey.com>
2658
2659 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2660 parameters.
2661 (gdb_bfd_close_or_warn): Use foreach.
2662
a190fabb
TT
26632020-09-19 Tom Tromey <tom@tromey.com>
2664
2665 * corelow.c (add_to_thread_list): Change parameters.
2666 (core_target_open): Use foreach.
2667
cafb0d81
TT
26682020-09-19 Tom Tromey <tom@tromey.com>
2669
2670 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2671 existing function.
2672
c8d5abea
AB
26732020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2674
2675 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2676 for arrays.
2677
6d816919
AB
26782020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * eval.c: Remove 'f-lang.h' include.
2681 (value_f90_subarray): Moved to f-lang.c.
2682 (eval_call): Renamed to...
2683 (evaluate_subexp_do_call): ...this, is no longer static, header
2684 comment moved into header file.
2685 (evaluate_funcall): Update call to eval_call.
2686 (skip_undetermined_arglist): Moved to f-lang.c.
2687 (fortran_value_subarray): Likewise.
2688 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2689 moved to evaluate_subexp_f.
2690 (calc_f77_array_dims): Moved to f-lang.c
2691 * expprint.c (print_subexp_funcall): New function.
2692 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2693 moved to print_subexp_f, OP_FUNCALL uses new function.
2694 (dump_subexp_body_funcall): New function.
2695 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2696 moved to dump_subexp_f, OP_FUNCALL uses new function.
2697 * expression.h (evaluate_subexp_do_call): Declare.
2698 * f-lang.c (value_f90_subarray): Moved from eval.c.
2699 (skip_undetermined_arglist): Likewise.
2700 (calc_f77_array_dims): Likewise.
2701 (fortran_value_subarray): Likewise.
2702 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2703 (operator_length_f): Likewise.
2704 (print_subexp_f): Likewise.
2705 (dump_subexp_body_f): Likewise.
2706 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2707 declaration of this operation to here.
2708 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2709 support moved to operator_length_f.
2710 * parser-defs.h (dump_subexp_body_funcall): Declare.
2711 (print_subexp_funcall): Declare.
2712 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2713 fortran-operator.def.
2714
8c37706a
AB
27152020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2716
2717 * eval.c (fortran_value_subarray): New function, content is taken
2718 from...
2719 (evaluate_subexp_standard): ...here, in two places. Now arrays
2720 and strings both call the new function.
2721 (calc_f77_array_dims): Add header comment, handle strings.
2722
14f9473c
VC
27232020-09-18 Victor Collod <vcollod@nvidia.com>
2724
2725 PR gdb/26635
2726 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2727 (i386_analyze_prologue): Call i386_skip_endbr.
2728
b60cea74
TT
27292020-09-18 Tom Tromey <tromey@adacore.com>
2730
2731 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2732 (windows_nat_target::wait): Update.
2733 * target/wait.h (enum target_wait_flag): New. Use
2734 DEF_ENUM_FLAGS_TYPE.
2735 * target/target.h (target_wait): Change type of options.
2736 * target.h (target_options_to_string, default_target_wait):
2737 Update.
2738 (struct target_ops) <wait>: Change type of options.
2739 * target.c (target_wait, default_target_wait, do_option): Change
2740 type of "options".
2741 (target_options_to_string): Likewise.
2742 * target-delegates.c: Rebuild.
2743 * target-debug.h (target_debug_print_target_wait_flags): Rename
2744 from target_debug_print_options.
2745 * sol-thread.c (class sol_thread_target) <wait>: Update.
2746 (sol_thread_target::wait): Update.
2747 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2748 (rs6000_nat_target::wait): Update.
2749 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2750 Update.
2751 (remote_target::wait_ns, remote_target::wait_as): Change type of
2752 "options".
2753 (remote_target::wait): Update.
2754 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2755 (gdbsim_target::wait): Update.
2756 * record-full.c (class record_full_base_target) <wait>: Update.
2757 (record_full_wait_1): Change type of "options".
2758 (record_full_base_target::wait): Update.
2759 * record-btrace.c (class record_btrace_target) <wait>: Update.
2760 (record_btrace_target::wait): Update.
2761 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2762 Update.
2763 (ravenscar_thread_target::wait): Update.
2764 * procfs.c (class procfs_target) <wait>: Update.
2765 (procfs_target::wait): Update.
2766 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2767 * obsd-nat.c (obsd_nat_target::wait): Update.
2768 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2769 (nto_procfs_target::wait): Update.
2770 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2771 * nbsd-nat.c (nbsd_wait): Change type of "options".
2772 (nbsd_nat_target::wait): Update.
2773 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2774 (thread_db_target::wait): Update.
2775 * linux-nat.h (class linux_nat_target) <wait>: Update.
2776 * linux-nat.c (linux_nat_target::wait): Update.
2777 (linux_nat_wait_1): Update.
2778 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2779 "options".
2780 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2781 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2782 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2783 (go32_nat_target::wait): Update.
2784 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2785 * gnu-nat.c (gnu_nat_target::wait): Update.
2786 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2787 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2788 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2789 * darwin-nat.c (darwin_nat_target::wait): Update.
2790 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2791 (bsd_uthread_target::wait): Update.
2792 * aix-thread.c (class aix_thread_target) <wait>: Update.
2793 (aix_thread_target::wait): Update.
2794
0295dde6
AB
27952020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * compile/compile-object-run.c (create_copied_type_recursive): New
2798 function.
2799 (compile_object_run): Use new function.
2800
d3483b43
JT
28012020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2802
2803 * NEWS: Mention x86_64 Cygwin core file support.
2804
e7d612ad
JT
28052020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2806
2807 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2808 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2809
aff9d387
JT
28102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2811
62a5151b
JT
2812 * windows-tdep.h: Add prototypes.
2813 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2814 (i386_windows_core_pid_to_str): Move and rename ...
2815 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2816 (windows_core_pid_to_str): ... and here.
2817 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2818
28192020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2820 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2821 (amd64_windows_init_abi_common): ... and register.
2822
7d155da3
JT
28232020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2824
2825 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2826 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2827
e8ef12b9
PA
28282020-09-18 Pedro Alves <pedro@palves.net>
2829
2830 PR gdb/26631
2831 * thread.c (thread_find_command): Switch inferior before calling
2832 target methods.
2833
c1e1314d
TT
28342020-09-17 Tom Tromey <tromey@adacore.com>
2835
2836 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2837 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2838 (tdesc_arch_data_up): New typedef.
2839 (tdesc_use_registers, tdesc_data_alloc): Update.
2840 (tdesc_data_cleanup): Don't declare.
2841 * target-descriptions.c (tdesc_data_alloc): Return a
2842 tdesc_arch_data_up.
2843 (tdesc_arch_data_deleter::operator()): Rename from
2844 tdesc_data_cleanup. Change argument type.
2845 (tdesc_use_registers): Change early_data to an rvalue reference.
2846 (tdesc_use_registers): Don't use delete.
2847 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2848 * s390-tdep.c (s390_gdbarch_init): Update.
2849 * rx-tdep.c (rx_gdbarch_init): Update.
2850 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2851 * riscv-tdep.c (riscv_gdbarch_init): Update.
2852 * or1k-tdep.c (or1k_gdbarch_init): Update.
2853 * nios2-tdep.c (nios2_gdbarch_init): Update.
2854 * nds32-tdep.c (nds32_gdbarch_init): Update.
2855 * mips-tdep.c (mips_gdbarch_init): Update.
2856 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2857 * m68k-tdep.c (m68k_gdbarch_init): Update.
2858 * i386-tdep.c (i386_gdbarch_init): Update.
2859 * arm-tdep.c (arm_gdbarch_init): Update.
2860 * arc-tdep.c (arc_tdesc_init): Update.
2861 (arc_gdbarch_init): Update.
2862 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2863
0363df3d
HD
28642020-09-17 Hannes Domani <ssbssa@yahoo.de>
2865
2866 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2867 for WOW64 processes.
2868
280a9412
TT
28692020-09-17 Tom Tromey <tom@tromey.com>
2870
2871 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2872
6108fd18
TT
28732020-09-17 Tom Tromey <tom@tromey.com>
2874
2875 * value.c (preserve_values): Update.
2876 * python/py-type.c (save_objfile_types): Update.
2877 * guile/scm-type.c (save_objfile_types): Update.
2878 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2879 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2880 * compile/compile-object-run.c (compile_object_run): Update.
2881
fa9b1164
TT
28822020-09-17 Tom Tromey <tom@tromey.com>
2883
2884 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2885 Remove.
2886 <m_table>: Now htab_up.
2887 * typeprint.c (typedef_hash_table::recursively_update)
2888 (typedef_hash_table::add_template_parameters)
2889 (typedef_hash_table::typedef_hash_table): Update.
2890 (typedef_hash_table::~typedef_hash_table): Remove.
2891 (typedef_hash_table::typedef_hash_table)
2892 (typedef_hash_table::find_global_typedef)
2893 (typedef_hash_table::find_typedef): Update.
2894
eb53f105
TT
28952020-09-17 Tom Tromey <tom@tromey.com>
2896
2897 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2898
7a8a5d47
TT
28992020-09-17 Tom Tromey <tom@tromey.com>
2900
2901 * linespec.c (class decode_compound_collector)
2902 <~decode_compound_collector>: Remove.
2903 <m_unique_syms>: Now htab_up.
2904 (decode_compound_collector::operator ()): Update.
2905 (class symtab_collector) <~symtab_collector>: Remove.
2906 <m_symtab_table>: Now htab_up.
2907 (symtab_collector::operator ()): Update.
2908
99032cfc
TT
29092020-09-17 Tom Tromey <tom@tromey.com>
2910
2911 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2912 (filename_seen_cache::clear): Update.
2913 (~filename_seen_cache): Remove.
2914 (filename_seen_cache::seen): Update.
2915 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2916 htab_up.
2917 <~filename_seen_cache>: Remove.
2918 <traverse>: Update.
2919
32580f6d
TT
29202020-09-17 Tom Tromey <tom@tromey.com>
2921
2922 * completer.c (completion_tracker::discard_completions)
2923 (completion_tracker::~completion_tracker)
2924 (completion_tracker::maybe_add_completion)
2925 (completion_tracker::remove_completion)
2926 (completion_tracker::recompute_lowest_common_denominator)
2927 (completion_tracker::build_completion_result): Update.
2928 * completer.h (class completion_tracker) <have_completions>:
2929 Update.
2930 <m_entries_hash>: Now htab_up.
2931
c1fb9836
TT
29322020-09-17 Tom Tromey <tom@tromey.com>
2933
2934 * breakpoint.c (ambiguous_names_p): Use htab_up.
2935
88f07206
TT
29362020-09-17 Tom Tromey <tom@tromey.com>
2937
2938 * auto-load.c (struct auto_load_pspace_info)
2939 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2940 <loaded_script_files, loaded_script_texts>: Change type to
2941 htab_up.
2942 (~auto_load_pspace_info) Remove.
2943 (init_loaded_scripts_info, maybe_add_script_file)
2944 (maybe_add_script_text, auto_load_info_scripts): Update.
2945
9519b2ee
TT
29462020-09-17 Tom Tromey <tromey@adacore.com>
2947
2948 * c-exp.y (name_obstack): Now static.
2949
d2cd4113
CC
29502020-09-17 Chungyi Chi <demonic@csie.io>
2951
2952 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2953
b650a282
SM
29542020-09-16 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2957 (add_solib_catchpoint): Likewise.
2958 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2959 to bool.
2960 (add_solib_catchpoint): Change int parameter/variable to bool.
2961 (catch_load_or_unload): Likewise.
2962 (init_catchpoint): Likewise.
2963 (create_fork_vfork_event_catchpoint): Likewise.
2964 (catch_fork_command_1): Likewise.
2965 (catch_exec_command_1): Likewise.
2966
4d0bcfcf
SM
29672020-09-16 Simon Marchi <simon.marchi@efficios.com>
2968
2969 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2970 Change instance_flags to m_instance_flags.
2971
fe830662
TT
29722020-09-16 Tom Tromey <tromey@adacore.com>
2973
2974 PR gdb/26598:
2975 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2976
fe5ddfc3
JB
29772020-09-16 John Baldwin <jhb@FreeBSD.org>
2978
2979 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2980 PL_FLAG_EXEC.
2981 (fbsd_nat_target::insert_exec_catchpoint)
2982 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2983 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2984 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2985
e911c666
JB
29862020-09-16 John Baldwin <jhb@FreeBSD.org>
2987
2988 * configure.ac: Remove check for kinfo_getvmmap().
2989 * configure, config.in: Regenerate.
2990 * fbsd-nat.c (fbsd_read_mapping): Remove
2991 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2992 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2993 kinfo_get_vmmap() are always present.
2994
1f17d372
JB
29952020-09-16 John Baldwin <jhb@FreeBSD.org>
2996
2997 * fbsd-nat.c: Always include support for
2998 TARGET_OBJECT_SIGNAL_INFO.
2999
bcb1da7f
JB
30002020-09-16 John Baldwin <jhb@FreeBSD.org>
3001
3002 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3003 sysctl and remove procfs fallback.
3004
5515f729
JB
30052020-09-16 John Baldwin <jhb@FreeBSD.org>
3006
3007 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3008 * fbsd-nat.h: Likewise.
3009
da1df1db
TBA
30102020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3011
3012 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3013 argument.
3014
0e25e767
AB
30152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3016
3017 * ada-lang.c (ada_language_data): Delete.
3018 (ada_language): Remove references to ada_language_data.
3019 * c-lang.c (c_language_data): Delete.
3020 (c_language): Remove references to c_language_data.
3021 (cplus_language_data): Delete.
3022 (cplus_language): Remove references to cplus_language_data.
3023 (asm_language_data): Delete.
3024 (asm_language): Remove references to asm_language_data.
3025 (minimal_language_data): Delete.
3026 (minimal_language): Remove references to minimal_language_data.
3027 * d-lang.c (d_language_data): Delete.
3028 (d_language): Remove references to d_language_data.
3029 * f-lang.c (f_language_data): Delete.
3030 (f_language): Remove references to f_language_data.
3031 * go-lang.c (go_language_data): Delete.
3032 (go_language): Remove references to go_language_data.
3033 * language.c (unknown_language_data): Delete.
3034 (unknown_language): Remove references to unknown_language_data.
3035 (auto_language_data): Delete.
3036 (auto_language): Remove references to auto_language_data.
3037 * language.h (language_data): Delete struct.
3038 (language_defn): No longer inherit from language_data.
3039 * m2-lang.c (m2_language_data): Delete.
3040 (m2_language): Remove references to m2_language_data.
3041 * objc-lang.c (objc_language_data): Delete.
3042 (objc_language): Remove references to objc_language_data.
3043 * opencl-lang.c (opencl_language_data): Delete.
3044 (opencl_language): Remove references to opencl_language_data.
3045 * p-lang.c (pascal_language_data): Delete.
3046 (pascal_language): Remove references to pascal_language_data.
3047 * rust-lang.c (rust_language_data): Delete.
3048 (rust_language): Remove references to rust_language_data.
3049
b7c6e27d
AB
30502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3051
3052 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3053 initializer.
3054 (ada_language::opcode_print_table): New member function.
3055 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3056 (c_language::opcode_print_table): New member function.
3057 (cplus_language_data): Remove la_op_print_tab initializer.
3058 (cplus_language::opcode_print_table): New member function.
3059 (asm_language_data): Remove la_op_print_tab initializer.
3060 (asm_language::opcode_print_table): New member function.
3061 (minimal_language_data): Remove la_op_print_tab initializer.
3062 (minimal_language::opcode_print_table): New member function.
3063 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3064 (d_language::opcode_print_table): New member function.
3065 * expprint.c (print_subexp_standard): Update call to
3066 opcode_print_table.
3067 (op_string): Likewise.
3068 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3069 (f_language::opcode_print_table): New member function.
3070 * go-lang.c (go_language_data): Remove la_op_print_tab
3071 initializer.
3072 (go_language::opcode_print_table): New member function.
3073 * language.c (unknown_language_data): Remove la_op_print_tab
3074 initializer.
3075 (unknown_language::opcode_print_table): New member function.
3076 (auto_language_data): Remove la_op_print_tab initializer.
3077 (auto_language::opcode_print_table): New member function.
3078 * language.h (language_data): Remove la_op_print_tab field.
3079 (language_defn::opcode_print_table): Declare new member function.
3080 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3081 initializer.
3082 (m2_language::opcode_print_table): New member function.
3083 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3084 initializer.
3085 (objc_language::opcode_print_table): New member function.
3086 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3087 initializer.
3088 (opencl_language::opcode_print_table): New member function.
3089 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3090 initializer.
3091 (pascal_language::opcode_print_table): New member function.
3092 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3093 initializer.
3094 (rust_language::opcode_print_table): New member function.
3095
5aba6ebe
AB
30962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3097
3098 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3099 (ada_language::expression_ops): New member function.
3100 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3101 (c_language::expression_ops): New member function.
3102 (cplus_language_data): Remove la_exp_desc initializer.
3103 (cplus_language::expression_ops): New member function.
3104 (asm_language_data): Remove la_exp_desc initializer.
3105 (asm_language::expression_ops): New member function.
3106 (minimal_language_data): Remove la_exp_desc initializer.
3107 (minimal_language::expression_ops): New member function.
3108 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3109 (d_language::expression_ops): New member function.
3110 * eval.c (evaluate_subexp): Update call to expression_ops.
3111 * expprint.c (print_subexp): Likewise.
3112 (op_name): Likewise.
3113 (dump_subexp_body): Likewise.
3114 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3115 (f_language::expression_ops): New member function.
3116 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3117 (go_language::expression_ops): New member function.
3118 * language.c (language_defn::expression_ops): New function.
3119 (unknown_language_data): Remove la_exp_desc initializer.
3120 (auto_language_data): Likewise.
3121 * language.h (language_data): Remove la_exp_desc field.
3122 (language_defn::expression_ops): Declare new member function.
3123 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3124 (m2_language::expression_ops): New member function.
3125 * objc-lang.c (objc_language_data): Remove la_exp_desc
3126 initializer.
3127 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3128 initializer.
3129 (opencl_language::expression_ops): New member function.
3130 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3131 * parse.c (operator_length): Update call to expression_ops.
3132 (exp_iterate): Likewise.
3133 * rust-lang.c (rust_language_data): Remove la_exp_desc
3134 initializer.
3135 (ruse_language::expression_ops): New member function.
3136
b63a3f3f
AB
31372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3138
3139 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3140 initializer.
3141 (ada_language::varobj_ops): New member function.
3142 * c-lang.c (c_language_data): Remove la_varobj_ops
3143 initializer.
3144 (cplus_language_data): Likewise.
3145 (cplus_language::varobj_ops): New member function.
3146 (asm_language_data): Remove la_varobj_ops initializer.
3147 (minimal_language_data): Likewise.
3148 * d-lang.c (d_language_data): Likewise.
3149 * f-lang.c (f_language_data): Likewise.
3150 * go-lang.c (go_language_data): Likewise.
3151 * language.c (language_defn::varobj_ops): New function.
3152 (unknown_language_data): Remove la_varobj_ops
3153 initializer.
3154 (auto_language_data): Likewise.
3155 * language.h (language_data): Remove la_varobj_ops field.
3156 (language_defn::varobj_ops): Declare new member function.
3157 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3158 * objc-lang.c (objc_language_data): Likewise.
3159 * opencl-lang.c (opencl_language_data): Likewise.
3160 * p-lang.c (pascal_language_data): Likewise.
3161 * rust-lang.c (rust_language_data): Likewise.
3162 * varobj.c (varobj_create): Update call to varobj_ops.
3163 * varobj.h (default_varobj_ops): Delete define.
3164
1ac14a04
AB
31652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3166
3167 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3168 initializer.
3169 * c-lang.c (c_language_data): Likewise.
3170 (c_language::macro_expansion): New member function.
3171 (cplus_language_data): Likewise.
3172 (cplus_language::macro_expansion): New member function.
3173 (asm_language_data): Likewise.
3174 (asm_language::macro_expansion): New member function.
3175 (minimal_language_data): Likewise.
3176 (minimal_language::macro_expansion): New member function.
3177 * d-lang.c (d_language_data): Remove la_macro_expansion
3178 initializer.
3179 * f-lang.c (f_language_data): Likewise.
3180 * go-lang.c (go_language_data): Likewise.
3181 * language.c (unknown_language_data): Likewise.
3182 (auto_language_data): Likewise.
3183 * language.h (language_data): Remove la_macro_expansion field.
3184 (language_defn::macro_expansion): New member function.
3185 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3186 initializer.
3187 * objc-lang.c (objc_language_data): Likewise.
3188 (objc_language::macro_expansion): New member function.
3189 * opencl-lang.c (opencl_language_data): Likewise.
3190 (opencl_language::macro_expansion): New member function.
3191 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3192 initializer.
3193 * rust-lang.c (rust_language_data): Likewise.
3194 * symtab.c (default_collect_symbol_completion_matches_break_on):
3195 Update call to macro_expansion.
3196
3a3440fb
AB
31972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * ada-lang.c (ada_language_data): Remove la_array_ordering
3200 initializer.
3201 * c-lang.c (c_language_data): Likewise.
3202 (cplus_language_data): Likewise.
3203 (asm_language_data): Likewise.
3204 (minimal_language_data): Likewise.
3205 * d-lang.c (d_language_data): Likewise.
3206 * dwarf2/read.c (read_array_order): Update for call to
3207 array_ordering.
3208 * f-lang.c (f_language_data): Remove la_array_ordering
3209 initializer.
3210 (f_language::array_ordering): New member function.
3211 * go-lang.c (go_language_data): Remove la_array_ordering
3212 initializer.
3213 * language.c (unknown_language_data): Likewise.
3214 (auto_language_data): Likewise.
3215 * language.h (language_data): Delete la_array_ordering field.
3216 (language_defn::array_ordering): New member function.
3217 * m2-lang.c (m2_language_data): Remove la_array_ordering
3218 initializer.
3219 * objc-lang.c (objc_language_data): Likewise.
3220 * opencl-lang.c (opencl_language_data): Likewise.
3221 * p-lang.c (pascal_language_data): Likewise.
3222 * rust-lang.c (rust_language_data): Likewise.
3223
0d201fa4
AB
32242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3227 initializer.
3228 * c-lang.c (c_language_data): Likewise.
3229 (cplus_language_data): Likewise.
3230 (asm_language_data): Likewise.
3231 (minimal_language_data): Likewise.
3232 * d-lang.c (d_language_data): Likewise.
3233 * f-lang.c (f_language_data): Likewise.
3234 (f_language::case_sensitivity): New member function.
3235 * go-lang.c (go_language_data): Remove la_case_sensitivity
3236 initializer.
3237 * language.c (enum case_mode): Moved here from language.h.
3238 (case_mode): Make static.
3239 (show_case_command): Update for case_sensitivity being a method.
3240 (set_case_command): Likewise.
3241 (set_range_case): Likewise.
3242 (unknown_language_data): Remove la_case_sensitivity initializer.
3243 (auto_language_data): Likewise.
3244 * language.h (case_mode): Delete, move enum declaration to
3245 language.c.
3246 (language_data): Delete la_case_sensitivity field.
3247 (language_defn::case_sensitivity): New member function.
3248 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3249 initializer.
3250 * objc-lang.c (objc_language_data): Likewise.
3251 * opencl-lang.c (opencl_language_data): Likewise.
3252 * p-lang.c (pascal_language_data): Likewise.
3253 * rust-lang.c (rust_language_data): Likewise.
3254
efdf6a73
AB
32552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * ada-lang.c (ada_language_data): Remove la_range_check
3258 initializer.
3259 * c-lang.c (c_language_data): Likewise.
3260 (cplus_language_data): Likewise.
3261 (asm_language_data): Likewise.
3262 (minimal_language_data): Likewise.
3263 * d-lang.c (d_language_data): Likewise.
3264 * f-lang.c (f_language_data): Likewise.
3265 (f_language::range_checking_on_by_default): New member function.
3266 * go-lang.c (go_language_data): Remove la_range_check initializer.
3267 * language.c (enum range_mode): Moved here from language.h.
3268 (range_mode): Made static.
3269 (show_range_command): Update to use
3270 range_checking_on_by_default.
3271 (set_range_command): Likewise.
3272 (set_range_case): Likewise.
3273 (unknown_language_data): Remove la_range_check initializer.
3274 (auto_language_data): Likewise.
3275 * language.h (range_mode): Delete. Enum definition moved to
3276 language.c.
3277 (language_data): Remove la_range_check field.
3278 (language_defn::range_checking_on_by_default): New member
3279 function.
3280 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3281 (m2_language::range_checking_on_by_default): New member function.
3282 * objc-lang.c (objc_language_data): Remove la_range_check
3283 initializer.
3284 * opencl-lang.c (opencl_language_data): Likewise.
3285 * p-lang.c (pascal_language_data): Likewise.
3286 (pascal_language::range_checking_on_by_default): New member
3287 function.
3288 * rust-lang.c (rust_language_data): Remove la_range_check
3289 initializer.
3290 (rust_language::range_checking_on_by_default): New member
3291 function.
3292
bf92aec5
AB
32932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3294
3295 * dwarf2/read.c (dwarf2_physname): Remove special case for
3296 language_go.
3297 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3298 member function.
3299
d3355e4d
AB
33002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * ada-lang.c (ada_language_data): Remove
3303 la_store_sym_names_in_linkage_form_p initializer.
3304 (ada_language::store_sym_names_in_linkage_form_p): New member
3305 function.
3306 * c-lang.c (c_language_data): Remove
3307 la_store_sym_names_in_linkage_form_p initializer.
3308 (c_language::store_sym_names_in_linkage_form_p): New member
3309 function.
3310 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3311 initializer.
3312 (asm_language_data): Likewise.
3313 (asm_language::store_sym_names_in_linkage_form_p): New member
3314 function.
3315 (minimal_language_data): Remove
3316 la_store_sym_names_in_linkage_form_p initializer.
3317 (minimal_language::store_sym_names_in_linkage_form_p): New member
3318 function.
3319 * d-lang.c (d_language_data): Remove
3320 la_store_sym_names_in_linkage_form_p initializer.
3321 * dwarf2/read.c (dwarf2_physname): Update call to
3322 store_sym_names_in_linkage_form_p.
3323 * f-lang.c (f_language_data): Remove
3324 la_store_sym_names_in_linkage_form_p initializer.
3325 * go-lang.c (go_language_data): Remove
3326 la_store_sym_names_in_linkage_form_p initializer.
3327 * language.c (unknown_language_data): Remove
3328 la_store_sym_names_in_linkage_form_p initializer.
3329 (unknown_language::store_sym_names_in_linkage_form_p): New member
3330 function.
3331 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3332 initializer.
3333 (auto_language::store_sym_names_in_linkage_form_p): New member
3334 function.
3335 * language.h (language_data): Remove
3336 la_store_sym_names_in_linkage_form_p member variable.
3337 (language_defn::store_sym_names_in_linkage_form_p): New member
3338 function.
3339 * m2-lang.c (m2_language_data): Remove
3340 la_store_sym_names_in_linkage_form_p initializer.
3341 * objc-lang.c (objc_language_data): Likewise.
3342 * opencl-lang.c (opencl_language_data): Likewise.
3343 * p-lang.c (pascal_language_data): Likewise.
3344 * rust-lang.c (rust_language_data): Likewise.
3345
22c12a6c
AB
33462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3347
3348 * ada-lang.c (ada_language_data): Remove string_lower_bound
3349 initializer.
3350 * c-lang.c (c_language_data): Likewise.
3351 (cplus_language_data): Likewise.
3352 (asm_language_data): Likewise.
3353 (minimal_language_data): Likewise.
3354 * d-lang.c (d_language_data): Likewise.
3355 * f-lang.c (f_language_data): Likewise.
3356 * go-lang.c (go_language_data): Likewise.
3357 * language.c (unknown_language_data): Likewise.
3358 (auto_language_data): Likewise.
3359 * language.h (language_data): Remove string_lower_bound field.
3360 (language_defn::string_lower_bound): New member function.
3361 * m2-lang.c (m2_language_data): Remove string_lower_bound
3362 initializer.
3363 (m2_language::string_lower_bound): New member function.
3364 * objc-lang.c (objc_language_data): Remove string_lower_bound
3365 initializer.
3366 * opencl-lang.c (opencl_language_data): Likewise.
3367 * p-lang.c (pascal_language_data): Likewise.
3368 * rust-lang.c (rust_language_data): Likewise.
3369 * valops.c (value_cstring): Update call to string_lower_bound.
3370 (value_string): Likewise.
3371 * value.c (allocate_repeated_value): Likewise.
3372
1c236ddd
AB
33732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3374
3375 * valops.c (value_repeat): Fix incorrect argument name in comment.
3376
67bd3fd5
AB
33772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3378
3379 * ada-lang.c (ada_language_data): Remove c_style_arrays
3380 initializer.
3381 (ada_language::c_style_arrays_p): New member fuction.
3382 * c-lang.c (c_language_data): Remove c_style_arrays
3383 initializer.
3384 (cplus_language_data): Likewise.
3385 (asm_language_data): Likewise.
3386 (minimal_language_data): Likewise.
3387 * d-lang.c (d_language_data): Likewise.
3388 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3389 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3390 (f_language::c_style_arrays_p): New member function.
3391 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3392 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3393 * language.c (unknown_language_data): Remove c_style_arrays
3394 initializer.
3395 (auto_language_data): Likewise.
3396 * language.h (language_data): Remove c_style_arrays field.
3397 (language_defn::c_style_arrays_p): New member function.
3398 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3399 (m2_language::c_style_arrays_p): New member function.
3400 * objc-lang.c (objc_language_data): Remove c_style_arrays
3401 initializer.
3402 * opencl-lang.c (opencl_language_data): Likewise.
3403 * p-lang.c (pascal_language_data): Likewise.
3404 * rust-lang.c (rust_language_data): Likewise.
3405 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3406 and update local variable to a bool.
3407 * valops.c (value_cast): Update call to c_style_arrays_p.
3408 (value_array): Likewise.
3409 * value.c (coerce_array): Likewise.
3410
85967615
AB
34112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3412
3413 * ada-lang.c (ada_language_data): Remove la_language initializer.
3414 * c-lang.c (c_language_data): Likewise.
3415 (cplus_language_data): Likewise.
3416 (asm_language_data): Likewise.
3417 (minimal_language_data): Likewise.
3418 * d-lang.c (d_language_data): Likewise.
3419 * f-lang.c (f_language_data): Likewise.
3420 * go-lang.c (go_language_data): Likewise.
3421 * language.c (unknown_language_data): Likewise.
3422 (auto_language_data): Likewise.
3423 * language.h (language_data): Remove la_language field.
3424 (language_defn::language_defn): Initialise la_language field.
3425 (language_defn::la_language): New member variable.
3426 * m2-lang.c (m2_language_data): Remove la_language field.
3427 * objc-lang.c (objc_language_data): Likewise.
3428 * opencl-lang.c (opencl_language_data): Likewise.
3429 * p-lang.c (pascal_language_data): Likewise.
3430 * rust-lang.c (rust_language_data): Likewise.
3431
e171d6f1
AB
34322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3433
3434 * ada-lang.c (ada_extensions): Delete, moved into
3435 ada_language::filename_extensions.
3436 (ada_language_data): Remove la_filename_extensions initializer.
3437 (ada_language::filename_extensions): New member function.
3438 * c-lang.c (c_extensions): Delete, moved into
3439 c_language::filename_extensions.
3440 (c_language_data): Remove la_filename_extensions initializer.
3441 (c_language::filename_extensions): New member function.
3442 (cplus_extensions): Delete, moved into
3443 cplus_language::filename_extensions.
3444 (cplus_language_data): Remove la_filename_extensions initializer.
3445 (cplus_language::filename_extensions): New member function.
3446 (asm_extensions): Delete, moved into
3447 asm_language::filename_extensions.
3448 (asm_language_data): Remove la_filename_extensions initializer.
3449 (asm_language::filename_extensions): New member function.
3450 (minimal_language_data): Remove la_filename_extensions
3451 initializer.
3452 * d-lang.c (d_extensions): Delete, moved into
3453 d_language::filename_extensions.
3454 (d_language_data): Remove la_filename_extensions initializer.
3455 (d_language::filename_extensions): New member function.
3456 * f-lang.c (f_extensions): Delete, moved into
3457 f_language::filename_extensions.
3458 (f_language_data): Remove la_filename_extensions initializer.
3459 (f_language::filename_extensions): New member function.
3460 * go-lang.c (go_language_data): Remove la_filename_extensions
3461 initializer.
3462 * language.c (add_set_language_command): Update now that
3463 filename_extensions returns a vector.
3464 (unknown_language_data): Remove la_filename_extensions
3465 initializer.
3466 (auto_language_data): Likewise.
3467 * language.h (language_data): Remove la_filename_extensions field.
3468 (language_defn::filename_extensions): New member function.
3469 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3470 initializer.
3471 * objc-lang.c (objc_extensions): Delete, moved into
3472 objc_language::filename_extensions.
3473 (objc_language_data): Remove la_filename_extensions initializer.
3474 (objc_language::filename_extensions): New member function.
3475 * opencl-lang.c (opencl_language_data): Remove
3476 la_filename_extensions initializer.
3477 * p-lang.c (pascal_extensions): Delete, moved into
3478 pascal_language::filename_extensions.
3479 (pascal_language_data): Remove la_filename_extensions initializer.
3480 (pascal_language::filename_extensions): New member function.
3481 * rust-lang.c (rust_extensions): Delete, moved into
3482 rust_language::filename_extensions.
3483 (rust_language_data): Remove la_filename_extensions initializer.
3484 (rust_language::filename_extensions): New member function.
3485 * symfile.c (add_filename_language): Add new assert.
3486
6f7664a9
AB
34872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3488
3489 * ada-lang.c (ada_language_data): Remove la_name and
3490 la_natural_name initializers.
3491 (ada_language::name): New member function.
3492 (ada_language::natural_name): New member function.
3493 * c-lang.c (c_language_data): Remove la_name and
3494 la_natural_name initializers.
3495 (c_language::name): New member function.
3496 (c_language::natural_name): New member function.
3497 (cplus_language_data): Remove la_name and
3498 la_natural_name initializers.
3499 (cplus_language::name): New member function.
3500 (cplus_language::natural_name): New member function.
3501 (asm_language_data): Remove la_name and
3502 la_natural_name initializers.
3503 (asm_language::name): New member function.
3504 (asm_language::natural_name): New member function.
3505 (minimal_language_data): Remove la_name and
3506 la_natural_name initializers.
3507 (minimal_language::name): New member function.
3508 (minimal_language::natural_name): New member function.
3509 * compile/compile.c (compile_to_object): Update call to
3510 lanugage_defn::name.
3511 * d-lang.c (d_language_data): Remove la_name and
3512 la_natural_name initializers.
3513 (d_language::name): New member function.
3514 (d_language::natural_name): New member function.
3515 * expprint.c (print_subexp_standard): Update call to
3516 language_defn::name.
3517 (dump_raw_expression): Likewise
3518 (dump_prefix_expression): Likewise.
3519 * f-lang.c (f_language_data): Remove la_name and
3520 la_natural_name initializers.
3521 (f_language::name): New member function.
3522 (f_language::natural_name): New member function.
3523 * go-lang.c (go_language_data): Remove la_name and
3524 la_natural_name initializers.
3525 (go_language::name): New member function.
3526 (go_language::natural_name): New member function.
3527 * language.c (show_language_command): Update call to
3528 language_defn::name.
3529 (set_language_command): Likewise.
3530 (language_enum): Likewise.
3531 (language_str): Likewise.
3532 (add_set_language_command): Likewise, use
3533 language_defn::natural_name in the doc string.
3534 (unknown_language_data): Remove la_name and
3535 la_natural_name initializers.
3536 (unknown_language::name): New member function.
3537 (unknown_language::natural_name): New member function.
3538 (auto_language_data): Remove la_name and
3539 la_natural_name initializers.
3540 (auto_language::name): New member function.
3541 (auto_language::natural_name): New member function.
3542 (language_lookup_primitive_type_as_symbol): Update call to
3543 language_defn::name.
3544 * language.h (language_data): Remove la_name and la_natural_name
3545 member variables.
3546 (language_defn::name): New member function.
3547 (language_defn::natural_name): New member function.
3548 * m2-lang.c (m2_language_data): Remove la_name and
3549 la_natural_name initializers.
3550 (m2_language::name): New member function.
3551 (m2_language::natural_name): New member function.
3552 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3553 language_defn::natural_name.
3554 * objc-lang.c (objc_language_data): Remove la_name and
3555 la_natural_name initializers.
3556 (objc_language::name): New member function.
3557 (objc_language::natural_name): New member function.
3558 * opencl-lang.c (opencl_language_data): Remove la_name and
3559 la_natural_name initializers.
3560 (opencl_language::name): New member function.
3561 (opencl_language::natural_name): New member function.
3562 * p-lang.c (pascal_language_data): Remove la_name and
3563 la_natural_name initializers.
3564 (pascal_language::name): New member function.
3565 (pascal_language::natural_name): New member function.
3566 * rust-lang.c (rust_language_data): Remove la_name and
3567 la_natural_name initializers.
3568 (rust_language::name): New member function.
3569 (rust_language::natural_name): New member function.
3570 * symtab.c (lookup_language_this): Update call to
3571 language_defn::name.
3572
5bae7c4e
AB
35732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * ada-lang.c (ada_language_data): Remove la_name_of_this
3576 initializer.
3577 * ax-gdb.c (gen_expr): Update call to name_of_this.
3578 * c-exp.y (classify_name): Likewise.
3579 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3580 (cplus_language_data): Likewise.
3581 (cplus_language::name_of_this): New member function.
3582 (asm_language_data): Remove la_name_of_this initializer.
3583 (minimal_language_data): Likewise.
3584 * d-lang.c (d_language_data): Likewise.
3585 (d_language::name_of_this): New member function.
3586 * expprint.c (print_subexp_standard): Update call to name_of_this.
3587 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3588 * go-lang.c (go_language_data): Likewise.
3589 * language.c (unknown_language_data): Likewise.
3590 (unknown_language::name_of_this): New member function.
3591 (auto_language_data): Remove la_name_of_this initializer.
3592 (auto_language::name_of_this): New member function.
3593 * language.h (language_data): Delete la_name_of_this member
3594 variable.
3595 (language_defn::name_of_this): New member function.
3596 * m2-lang.c (m2_language_data): Remove la_name_of_this
3597 initializer.
3598 * objc-lang.c (objc_language_data): Likewise.
3599 (objc_language::name_of_this): New member function.
3600 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3601 initializer.
3602 * p-lang.c (pascal_language_data): Likewise.
3603 (pascal_language::name_of_this): New member function.
3604 * rust-lang.c (rust_language_data): Remove la_name_of_this
3605 initializer.
3606 * symtab.c (lookup_language_this): Update call to name_of_this.
3607 (lookup_symbol_aux): Likewise.
3608 * valops.c (value_of_this): Likewise.
3609
22e3f3ed
AB
36102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3611
3612 * ada-lang.c (ada_language_data): Remove
3613 la_struct_too_deep_ellipsis initializer.
3614 (ada_language::struct_too_deep_ellipsis): New member function.
3615 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3616 initializer.
3617 (cplus_language_data): Likewise.
3618 (asm_language_data): Likewise.
3619 (minimal_language_data): Likewise.
3620 * cp-valprint.c (cp_print_value): Update call to
3621 struct_too_deep_ellipsis.
3622 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3623 initializer.
3624 * f-lang.c (f_language_data): Likewise.
3625 (f_language::struct_too_deep_ellipsis): New member function.
3626 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3627 initializer.
3628 * language.c (unknown_language_data): Likewise.
3629 (auto_language_data): Likewise.
3630 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3631 member variable.
3632 (language_defn::struct_too_deep_ellipsis): New member function.
3633 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3634 initializer.Q
3635 * objc-lang.c (objc_language_data): Likewise.
3636 * opencl-lang.c (opencl_language_data): Likewise.
3637 * p-lang.c (pascal_language_data): Likewise.
3638 * rust-lang.c (rust_language_data): Likewise.
3639 * valprint.c (val_print_check_max_depth): Update call to
3640 struct_too_deep_ellipsis.
3641
ed29e1c7
FW
36422020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3643
3644 * MAINTAINERS (Write After Approval): Add myself.
3645
12d8f940
TT
36462020-09-15 Tom Tromey <tom@tromey.com>
3647
3648 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3649 Remove.
3650
6b5a7bc7
TT
36512020-09-15 Tom Tromey <tom@tromey.com>
3652
3653 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3654 and TYPE_CODE_METHODPTR cases.
3655 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3656 (c_value_print_inner): Update.
3657 * valprint.c (generic_value_print_memberptr): New function, from
3658 c_value_print_memberptr.
3659 (generic_value_print): Use it. Call cplus_print_method_ptr.
3660
47f0e2ff
TT
36612020-09-15 Tom Tromey <tromey@adacore.com>
3662
3663 * python/python-internal.h (PyInt_FromLong): Remove define.
3664 * python/py-value.c (convert_value_from_python): Use
3665 gdb_py_object_from_longest.
3666 * python/py-type.c (typy_get_code): Use
3667 gdb_py_object_from_longest.
3668 * python/py-symtab.c (salpy_get_line): Use
3669 gdb_py_object_from_longest.
3670 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3671 gdb_py_object_from_longest.
3672 * python/py-record.c (recpy_gap_reason_code): Use
3673 gdb_py_object_from_longest.
3674 * python/py-record-btrace.c (recpy_bt_insn_size)
3675 (recpy_bt_func_level, btpy_list_count): Use
3676 gdb_py_object_from_longest.
3677 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3678 gdb_py_object_from_longest. Fix error handling.
3679 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3680 gdb_py_object_from_longest.
3681 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3682 gdb_py_object_from_longest.
3683 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3684 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3685 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3686
512116ce
TT
36872020-09-15 Tom Tromey <tromey@adacore.com>
3688
3689 * python/python.c (gdbpy_parameter_value): Use
3690 gdb_py_object_from_ulongest.
3691
4ab1029c
TT
36922020-09-15 Tom Tromey <tromey@adacore.com>
3693
3694 * python/py-infevents.c (create_register_changed_event_object):
3695 Use gdb_py_object_from_longest.
3696 * python/py-exitedevent.c (create_exited_event_object): Use
3697 gdb_py_object_from_longest.
3698
062534d4
TT
36992020-09-15 Tom Tromey <tromey@adacore.com>
3700
3701 * python/python.c (gdbpy_parameter_value): Use
3702 gdb_py_object_from_longest.
3703 * python/py-type.c (convert_field, typy_range): Use
3704 gdb_py_object_from_longest.
3705 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3706 gdb_py_object_from_longest.
3707 * python/py-lazy-string.c (stpy_get_length): Use
3708 gdb_py_object_from_longest.
3709 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3710 gdb_py_object_from_longest.
3711 * python/py-infevents.c (create_memory_changed_event_object): Use
3712 gdb_py_object_from_longest.
3713 * python/py-inferior.c (infpy_get_num): Use
3714 gdb_py_object_from_longest.
3715 (infpy_get_pid): Likewise.
3716
d1cab987
TT
37172020-09-15 Tom Tromey <tromey@adacore.com>
3718
3719 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3720 defines.
3721 * python/py-value.c (valpy_long): Use
3722 gdb_py_object_from_ulongest.
3723 * python/py-symtab.c (salpy_get_pc): Use
3724 gdb_py_object_from_ulongest.
3725 (salpy_get_last): Likewise.
3726 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3727 gdb_py_object_from_ulongest.
3728 * python/py-lazy-string.c (stpy_get_address): Use
3729 gdb_py_object_from_ulongest.
3730 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3731 * python/py-arch.c (archpy_disassemble): Use
3732 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3733 error handling.
3734
4bde49dc
TT
37352020-09-15 Tom Tromey <tromey@adacore.com>
3736
3737 * python/python-internal.h (gdb_py_long_from_longest): Remove
3738 defines.
3739 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3740 * python/py-type.c (convert_field, typy_get_sizeof): Use
3741 gdb_py_object_from_longest.
3742 * python/py-record-btrace.c (btpy_list_index): Use
3743 gdb_py_object_from_longest.
3744
37431074
TT
37452020-09-15 Tom Tromey <tromey@adacore.com>
3746
3747 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3748 * python/py-record.c (recpy_element_number): Use
3749 gdb_py_object_from_longest.
3750 (recpy_gap_number): Likewise.
3751
cbe25684
TT
37522020-09-15 Tom Tromey <tromey@adacore.com>
3753
3754 * top.c (ui::ui): Update.
3755 (highest_ui_num): Remove.
3756 * top.h (struct ui) <num>: Remove.
3757
db92ac45
TT
37582020-09-15 Tom Tromey <tromey@adacore.com>
3759
3760 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3761 * ui-style.c (ansi_regex_text): Now array.
3762 * rust-exp.y (number_regex_text): Now array.
3763 * linespec.c (linespec_quote_characters): Now array.
3764 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3765 Now arrays.
3766
d2b31b67
SM
37672020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3768
3769 * debuginfod-support.c (debuginfod_client_deleter): New.
3770 (debuginfod_client_up): New.
3771 (debuginfod_init): Return debuginfod_client_up.
3772 (debuginfod_source_query): Adjust.
3773 (debuginfod_debuginfo_query): Adjust.
3774
3246bd8e
SM
37752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3776
3777 * debuginfod-support.c (debuginfod_source_query): Use
3778 make_unique_xstrdup.
3779
10242f36
SM
37802020-09-14 Simon Marchi <simon.marchi@efficios.com>
3781
3782 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3783 with `type::instance_flags`.
3784
e1044e6a
MM
37852020-09-14 Michael Mullin <masmullin@gmail.com>
3786
3787 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3788 Remove baton parameter.
3789
04902b09
PA
37902020-09-14 Pedro Alves <pedro@palves.net>
3791
3792 * Makefile.in (SELFTESTS_SRCS): Add
3793 unittests/enum-flags-selftests.c.
3794 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3795 btrace_function_flags instead of enum btrace_function_flag.
3796 * compile/compile-c-types.c (convert_qualified): Use
3797 enum_flags::raw.
3798 * compile/compile-cplus-symbols.c (convert_one_symbol)
3799 (convert_symbol_bmsym):
3800 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3801 (compile_cplus_convert_struct_or_union_methods)
3802 (compile_cplus_instance::convert_qualified_base):
3803 * go-exp.y (parse_string_or_char): Add cast to int.
3804 * unittests/enum-flags-selftests.c: New file.
3805 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3806 type to btrace_thread_flags from btrace_thread_flag.
3807 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3808 local's type to btrace_thread_flags from btrace_thread_flag. Add
3809 cast in DEBUG call.
3810
69896a2c
PA
38112020-09-14 Pedro Alves <pedro@palves.net>
3812
3813 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3814 * gdbtypes.c (address_space_name_to_int): Rename to ...
3815 (address_space_name_to_type_instance_flags): ... this.
3816 (address_space_int_to_name): Rename to ...
3817 (address_space_type_instance_flags_to_name): ... this.
3818 * gdbtypes.h (address_space_name_to_int): Rename to ...
3819 (address_space_name_to_type_instance_flags): ... this.
3820 (address_space_int_to_name): Rename to ...
3821 (address_space_type_instance_flags_to_name): ... this.
3822 * type-stack.c (type_stack::insert): Adjust to rename.
3823 * type-stack.h (type_stack::insert): Likewise.
3824
314ad88d
PA
38252020-09-14 Pedro Alves <pedro@palves.net>
3826 Andrew Burgess <andrew.burgess@embecosm.com>
3827
3828 * avr-tdep.c (avr_address_class_type_flags): Return
3829 type_instance_flags.
3830 (avr_address_class_type_flags_to_name): Take a
3831 type_instance_flags.
3832 (avr_address_class_name_to_type_flags): Return bool and take a
3833 type_instance_flags.
3834 * d-lang.c (build_d_types): Use type::set_instance_flags.
3835 * ft32-tdep.c (ft32_address_class_type_flags): Return
3836 type_instance_flags.
3837 (ft32_address_class_type_flags_to_name): Take a
3838 type_instance_flags.
3839 (ft32_address_class_name_to_type_flags): Return bool and take a
3840 type_instance_flags.
3841 (ft32_gdbarch_init): Use type::set_instance_flags.
3842 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3843 * gdbarch.h, gdbarch.c: Regenerate.
3844 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3845 (address_class_name_to_type_flags): Use type_instance_flags and
3846 bool.
3847 * gdbtypes.c (address_space_name_to_int)
3848 (address_space_int_to_name, make_qualified_type): Use
3849 type_instance_flags.
3850 (make_qualified_type): Use type_instance_flags and
3851 type::set_instance_flags.
3852 (make_type_with_address_space, make_cv_type, make_vector_type)
3853 (check_typedef): Use type_instance_flags.
3854 (recursive_dump_type): Cast type_instance_flags to unsigned for
3855 printing.
3856 (copy_type_recursive): Use type::set_instance_flags.
3857 (gdbtypes_post_init): Use type::set_instance_flags.
3858 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3859 <m_instance_flags>: ... this.
3860 <instance_flags, set_instance_flags>: New methods.
3861 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3862 (SET_TYPE_INSTANCE_FLAGS): New.
3863 (address_space_name_to_int, address_space_int_to_name)
3864 (make_type_with_address_space): Pass flags using
3865 type_instance_flags instead of int.
3866 * stabsread.c (cleanup_undefined_types_noname): Use
3867 type::set_instance_flags.
3868 * s390-tdep.c (s390_address_class_type_flags): Return
3869 type_instance_flags.
3870 (s390_address_class_type_flags_to_name): Take a
3871 type_instance_flags.
3872 (s390_address_class_name_to_type_flags): Return bool and take a
3873 type_instance_flags.
3874 * type-stack.c (type_stack::follow_types): Use
3875 type_instance_flags.
3876 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3877
27087b7f
TT
38782020-09-14 Tom Tromey <tromey@adacore.com>
3879
3880 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3881 * x86-tdep.c (x86_is_thunk_register_name)
3882 (x86_in_indirect_branch_thunk): Update.
3883 * sparc64-tdep.c (sparc64_fpu_register_names)
3884 (sparc64_cp0_register_names, sparc64_register_names)
3885 (sparc64_pseudo_register_names): Now const.
3886 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3887 cp0_registers_num>: Now const.
3888 * sparc-tdep.c (sparc_core_register_names)
3889 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3890 (sparc32_pseudo_register_names): Now const.
3891 (validate_tdesc_registers): Update.
3892 * rust-lang.c (rust_extensions): Now const.
3893 * p-lang.c (p_extensions): Now const.
3894 * objc-lang.c (objc_extensions): Now const.
3895 * nto-tdep.c (nto_thread_state_str): Now const.
3896 * moxie-tdep.c (moxie_register_names): Now const.
3897 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3898 Now const.
3899 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3900 (mips_linux_reg_names): Now const.
3901 (mips_gdbarch_init): Update.
3902 * microblaze-tdep.c (microblaze_register_names): Now const.
3903 * m68k-tdep.c (m68k_register_names): Now const.
3904 * m32r-tdep.c (m32r_register_names): Now const.
3905 * ia64-tdep.c (ia64_register_names): Now const.
3906 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3907 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3908 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3909 ymm_avx512_register_names, pkeys_register_names>: Now const.
3910 * i386-tdep.c (i386_register_names, i386_zmm_names)
3911 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3912 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3913 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3914 * f-lang.c (f_extensions): Now const.
3915 * d-lang.c (d_extensions): Now const.
3916 * csky-tdep.c (csky_register_names): Now const.
3917 * charset.c (default_charset_names, charset_enum): Now const.
3918 (_initialize_charset): Update.
3919 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3920 const.
3921 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3922 (bsd_uthread_solib_loaded): Update.
3923 (bsd_uthread_state): Now const.
3924 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3925 (amd64_ymm_avx512_names, amd64_ymmh_names)
3926 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3927 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3928 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3929 (amd64_dword_names): Now const.
3930 * agent.c (can_use_agent_enum): Now const.
3931 * ada-tasks.c (task_states, long_task_states): Now const.
3932 * ada-lang.c (known_runtime_file_name_patterns)
3933 (known_auxiliary_function_name_patterns, attribute_names)
3934 (standard_exc, ada_extensions): Now const.
3935
89806626
SM
39362020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3937
3938 * bcache.h (struct bcache) <bcache>: Remove constructor.
3939 <m_hash_function, m_compare_function>: Remove.
3940 <~bcache>: Make virtual.
3941 <compare>: Remove static method, introduce virtual method.
3942 <default_hash>: Remove.
3943 <hash>: New virtual method.
3944 * bcache.c (bcache::expand_hash_table): Update.
3945 (bcache::insert): Update.
3946 (bcache::hash): New.
3947 (bcache::compare): Update comment and parameter names.
3948 * gdbtypes.c (types_deeply_equal): Update.
3949 * psymtab.h (struct psymbol_bcache): New struct.
3950 (class psymtab_storage) <psymtab_storage>: Make default.
3951 <psymbol_cache>: Change type to psymbol_bcache.
3952 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3953 (psymbol_hash): Change to...
3954 (psymbol_bcache::hash): ... this.
3955 (psymbol_compare): Change to...
3956 (psymbol_bcache::compare): ... this.
3957
677c92fe
SM
39582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3959
3960 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3961 checking for initial lwp.
3962
3eba3a01
TT
39632020-09-14 Tom Tromey <tromey@adacore.com>
3964
3965 * m68k-tdep.c (m68k_extract_return_value): Use
3966 pointer_result_regnum.
3967 (m68k_store_return_value): Likewise.
3968 (m68k_reg_struct_return_p): Handle vectors and arrays.
3969 (m68k_return_value): Handle arrays.
3970 (m68k_svr4_return_value): Fix single-element aggregate handling.
3971 Handle long double. Adjust for embedded ABI.
3972 (m68k_svr4_init_abi): Set pointer_result_regnum.
3973 (m68k_embedded_init_abi): New function.
3974 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3975 (m68k_osabi_sniffer): New function.
3976 (_initialize_m68k_tdep): Register osabi sniffer.
3977 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3978 member.
3979
33f4dd48
SM
39802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3981
3982 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3983 with gdb::unique_xmalloc_ptr<char>.
3984
8400a90d
SM
39852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3986
3987 * xml-support.h (xml_fetch_another): Change type to be a
3988 function_view.
3989 (xml_process_xincludes): Remove baton parameter.
3990 (xml_fetch_content_from_file): Change baton parameter to
3991 dirname.
3992 * xml-support.c (struct xinclude_parsing_data)
3993 <xinclude_parsing_data>: Remove baton parameter.
3994 <fetcher_baton>: Remove.
3995 (xinclude_start_include): Adjust.
3996 (xml_process_xincludes): Adjust.
3997 (xml_fetch_content_from_file): Replace baton parameter with
3998 dirname.
3999 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4000 (xml_init_syscalls_info): Use a lambda.
4001 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4002 (file_read_description_xml): Use a lambda.
4003 (fetch_available_features_from_target): Change baton parameter
4004 to target_ops.
4005 (target_read_description_xml): Use a lambda.
4006 (target_fetch_description_xml): Use a lambda.
4007 (string_read_description_xml): Update.
4008
04f5bab2
SM
40092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4010
4011 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4012 uses with type::endianity_is_not_default.
4013
db558e34
SM
40142020-09-14 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * gdbtypes.h (struct type) <endianity_is_not_default,
4017 set_endianity_is_not_default>: New methods.
4018 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4019 type::endianity_is_not_default, change all write call sites to
4020 use type::set_endianity_is_not_default.
4021
22c4c60c
SM
40222020-09-14 Simon Marchi <simon.marchi@efficios.com>
4023
4024 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4025 uses with type::is_fixed_instance.
4026
9cdd0d12
SM
40272020-09-14 Simon Marchi <simon.marchi@efficios.com>
4028
4029 * gdbtypes.h (struct type) <is_fixed_instance,
4030 set_is_fixed_instance>: New methods.
4031 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4032 write call sites to use type::set_is_fixed_instance.
4033
0becda7a
SM
40342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4037 uses with type::is_gnu_ifunc.
4038
03cc7249
SM
40392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4042 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4043 use type::set_is_gnu_ifunc.
4044
3f46044c
SM
40452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4048 uses with type::stub_is_supported.
4049
9baccff6
SM
40502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4053 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4054 use type::set_stub_is_supported.
4055
bd63c870
SM
40562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4059 uses with type::is_vector.
4060
2062087b
SM
40612020-09-14 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4064 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4065 use type::set_is_vector.
4066
a409645d
SM
40672020-09-14 Simon Marchi <simon.marchi@efficios.com>
4068
4069 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4070 uses with type::has_varargs.
4071
1d6286ed
SM
40722020-09-14 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4075 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4076 use type::set_has_varargs.
4077
7f9f399b
SM
40782020-09-14 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4081 uses with type::is_prototyped.
4082
27e69b7a
SM
40832020-09-14 Simon Marchi <simon.marchi@efficios.com>
4084
4085 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4086 New methods.
4087 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4088 call sites to use type::set_is_prototyped.
4089
d2183968
SM
40902020-09-14 Simon Marchi <simon.marchi@efficios.com>
4091
4092 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4093 uses with type::target_is_stub.
4094
8f53807e
SM
40952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4096
4097 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4098 New methods.
4099 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4100 sites to use type::set_target_is_stub.
4101
e46d3488
SM
41022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * gdbtypes.h (TYPE_STUB): Remove, replace all
4105 uses with type::is_stub.
4106
b4b73759
SM
41072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4110 (TYPE_STUB): Use type::is_stub, change all write call sites to
4111 use type::set_is_stub.
4112
20ce4123
SM
41132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4116 type::has_no_signedness.
4117
15152a54
SM
41182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4119
4120 * gdbtypes.h (struct type) <has_no_signedness,
4121 set_has_no_signedness>: New methods.
4122 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4123 call sites to use type::set_has_no_signedness.
4124
c6d940a9
SM
41252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4126
4127 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4128 type::is_unsigned.
4129
653223d3
SM
41302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4131
4132 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4133 methods.
4134 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4135 sites to use type::set_is_unsigned.
4136
55ea94da 41372020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4138 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4139
e851246a
SM
4140 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4141 pointer and stack frame offset when unwinding.
55ea94da 4142
6791b117
PA
41432020-09-13 Pedro Alves <pedro@palves.net>
4144
4145 * NEWS: Document "-break-insert --qualified".
4146 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4147
77f2120b
PA
41482020-09-13 Pedro Alves <pedro@palves.net>
4149
4150 * linespec.c (classify_mtype, compare_msyms): Delete.
4151 (search_minsyms_for_name): Remove classification logic. Instead
4152 filter out trampoline symbols if we also found an external
4153 function of the same name.
4154
ed6a896c
JB
41552020-09-13 Joel Brobecker <brobecker@adacore.com>
4156
4157 * NEWS: Create a new section for the next release branch.
4158 Rename the section of the current branch, now that it has
4159 been cut.
4160
32aea73e
JB
41612020-09-13 Joel Brobecker <brobecker@adacore.com>
4162
4163 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4164 * version.in: Bump version to 11.0.50.DATE-git.
4165
8087c3fa
JB
41662020-09-12 Joel Brobecker <brobecker@adacore.com>
4167
4168 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4169
2a67f09d
FW
41702020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4171 Felix Willgerodt <Felix.Willgerodt@intel.com>
4172
4173 * gdbarch.sh: Added bfloat16 type.
4174 * gdbarch.c: Regenerated.
4175 * gdbarch.h: Regenerated.
4176 * gdbtypes.c (floatformats_bfloat16): New struct.
4177 (gdbtypes_post_init): Add builtin_bfloat16.
4178 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4179 (floatformats_bfloat16): New struct.
4180 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4181 (i386_ymm_type): Add field "v16_bfloat16"
4182 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4183 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4184 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4185 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4186 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4187 * features/i386/64bit-avx512.c: Regenerated.
4188 * features/i386/64bit-sse.xml: Add bfloat16 type.
4189 * features/i386/64bit-sse.c: Regenerated.
4190
1347d111
FW
41912020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4192
4193 * i386-tdep.c (i386_zmm_type): Fix field names.
4194 (i386_ymm_type): Fix field names.
4195
7a4e8e7d
TBA
41962020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4197
4198 * breakpoint.c: Fix typo in the help message of the
4199 "set breakpoint condition-evaluation" command.
4200
cf4ac4be
KR
42012020-09-10 Kamil Rytarowski <n54@gmx.com>
4202
4203 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4204 * (nbsd_nat_target::pid_to_exec_file)
4205 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4206 (nbsd_nat_target::post_startup_inferior)
4207 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4208 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4209 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4210 * (nbsd_thread_lister): Remove.
4211
f404573e
KR
42122020-09-10 Kamil Rytarowski <n54@gmx.com>
4213
4214 * fork-inferior.c (startup_inferior): Avoid double free.
4215
1ccb2c17
KR
42162020-09-10 Kamil Rytarowski <n54@gmx.com>
4217
4218 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4219 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4220
feedfcc7
KR
42212020-09-10 Kamil Rytarowski <n54@gmx.com>
4222
4223 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4224 * netbsd-nat.c: Include <sys/ptrace.h>.
4225 * (netbsd_nat::enable_proc_events): Add.
4226
c489f8c6
KR
42272020-09-10 Kamil Rytarowski <n54@gmx.com>
4228
4229 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4230 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4231 (netbsd_nat::for_each_thread): Add.
4232 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4233 "gdbsupport/common-debug.h".
4234 * (netbsd_nat::netbsd_thread_lister)
4235 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4236 (netbsd_nat::for_each_thread): Add.
4237
330662f6
KR
42382020-09-10 Kamil Rytarowski <n54@gmx.com>
4239
4240 * netbsd-nat.h: Include <unistd.h>.
4241 * (netbsd_nat::pid_to_exec_file): Add.
4242 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4243 * (netbsd_nat::pid_to_exec_file) Add.
4244
70b67307
KR
42452020-09-10 Kamil Rytarowski <n54@gmx.com>
4246
4247 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4248
99cf6da6
KR
42492020-09-10 Kamil Rytarowski <n54@gmx.com>
4250
4251 * netbsd-nat.h: New file.
4252 * netbsd-nat.c: Likewise.
4253
1b788fb6
TT
42542020-09-09 Tom Tromey <tromey@adacore.com>
4255
4256 * ada-lang.c (remove_extra_symbols): Do not increment when
4257 removing an element
4258
03b0a45f
TT
42592020-09-08 Tom Tromey <tromey@adacore.com>
4260
4261 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4262
3cae4447
TT
42632020-09-08 Tom Tromey <tromey@adacore.com>
4264
4265 PR win32/25302:
4266 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4267 (gdb_bfd_init_data): New function.
4268 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4269
7f08fd51
TBA
42702020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4271
4272 * infrun.c (fetch_inferior_event): Use
4273 `switch_to_target_no_thread` to switch the target.
4274
3e6ff933
TT
42752020-09-06 Tom Tromey <tom@tromey.com>
4276
4277 * symfile.h (dwarf2_free_objfile): Don't declare.
4278
e56798df
AKS
42792020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4280
4281 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4282 to match 16 byte real/complex type generated by Flang compiler.
4283
8f5c6526
TV
42842020-09-03 Tom de Vries <tdevries@suse.de>
4285
4286 PR breakpoint/26546
4287 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4288 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4289
c5065df0
SM
42902020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4291
4292 * maint.c (index_digits): New function.
4293 (struct maint_print_section_data): Remove.
4294 (print_bfd_section_info): Remove print_data parameter, add arg
4295 and index_digits.
4296 (print_objfile_section_info): Likewise.
4297 (print_bfd_section_info_maybe_relocated): Likewise (plus
4298 objfile).
4299 (maintenance_info_sections): Adjust calls.
4300
02c6f3f1
TT
43012020-09-02 Tom Tromey <tromey@adacore.com>
4302
4303 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4304 for null pointers.
4305 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4306
ef5e5b0b
SM
43072020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4308
4309 * bcache.h (struct bcache) <insert>: Change type of `added` to
4310 pointer to bool.
4311 * bcache.c (bcache::insert): Likewise.
4312 * gdbtypes.c (check_types_worklist): Adjust.
4313 * psymtab.c (add_psymbol_to_bcache): Adjust.
4314
973695d6
KB
43152020-08-31 Kevin Buettner <kevinb@redhat.com>
4316
4317 * corelow.c (unordered_set): Include.
4318 (class core_target): Add field 'm_core_unavailable_mappings'.
4319 (core_target::build_file_mappings): Print only one warning
4320 per inaccessible file. Add unavailable/broken mappings
4321 to m_core_unavailable_mappings.
4322 (core_target::xfer_partial): Call...
4323 (core_target::xfer_memory_via_mappings): New method.
4324
264fc0e2
SM
43252020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4326
4327 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4328 type to bool.
4329
2de01bdb
SM
43302020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4331
4332 * dwarf2/read.c (struct field_info): Fix indentation.
4333
f3bd50f1
SM
43342020-08-31 Simon Marchi <simon.marchi@efficios.com>
4335
4336 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4337 ordering in comment.
4338 * frame.c (frame_id_eq): Fix indentation.
4339
22b9b4b0
SL
43402020-08-31 Scott Linder <scott@scottlinder.com>
4341 Simon Marchi <simon.marchi@efficios.com>
4342
4343 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4344 inline frame ids in outer frame.
4345
84154d16
SM
43462020-08-31 Simon Marchi <simon.marchi@efficios.com>
4347
4348 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4349 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4350 (outer_frame_id): Use FID_STACK_OUTER instead of
4351 FID_STACK_INVALID.
4352 (frame_id_p): Don't check for outer_frame_id.
4353
8efaf6b3
SM
43542020-08-31 Simon Marchi <simon.marchi@efficios.com>
4355
4356 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4357 regnum/frame in value. Call allocate_value_lazy.
4358 * frame.c (frame_unwind_register_value): Use
4359 val_print_not_saved.
4360
fe1fe7ea
SM
43612020-08-31 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4364
f7c7700d
PA
43652020-08-29 Pedro Alves <pedro@palves.net>
4366
4367 * progspace.c (print_program_space): Use all_inferiors. Switch to
4368 the inferior before calling target_pid_to_str.
4369
e0814aae
TT
43702020-08-28 Tom Tromey <tom@tromey.com>
4371
4372 * xcoffread.c (xcoff_end_psymtab): Update comment.
4373 * dbxread.c (dbx_end_psymtab): Update comment.
4374
626d2320
TV
43752020-08-28 Tom de Vries <tdevries@suse.de>
4376
4377 PR breakpoint/26544
4378 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4379 event_location.
4380 (create_breakpoint): Same.
4381 (base_breakpoint_decode_location): Same.
4382 (bkpt_create_sals_from_location): Same.
4383 (bkpt_decode_location): Same.
4384 (bkpt_probe_create_sals_from_location): Same.
4385 (bkpt_probe_decode_location): Same.
4386 (tracepoint_create_sals_from_location): Same.
4387 (tracepoint_decode_location): Same.
4388 (tracepoint_probe_decode_location): Same.
4389 (strace_marker_create_sals_from_location): Same.
4390 (strace_marker_decode_location): Same.
4391 (create_sals_from_location_default): Same.
4392 (decode_location_default): Same.
4393 * breakpoint.h (struct breakpoint_ops): Same.
4394 (create_breakpoint): Same.
4395 * linespec.h (decode_line_full): Same.
4396 * linespec.c (decode_line_full): Same. Throw error if
4397 result.size () == 0.
4398
df631783
PA
43992020-08-27 Pedro Alves <pedro@palves.net>
4400
4401 PR gdb/26524
4402 * breakpoint.c (until_break_fsm) <location_breakpoint,
4403 caller_breakpoint>: Delete fields.
4404 <breakpoints>: New field.
4405 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4406 two individual breakpoints.
4407 (until_break_fsm::should_stop): Loop over breakpoints in the
4408 breakpoint vector.
4409 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4410 vector.
4411 (until_break_command): Handle location expanding into multiple
4412 sals.
4413
b2b38aa4
PA
44142020-08-27 Pedro Alves <pedro@palves.net>
4415
4416 PR gdb/26523
4417 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4418 bp_until breakpoints user-specified locations. Update intro
4419 comment.
4420
b886559f
SM
44212020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4422
4423 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4424 gdb_bfd_sections): New.
4425 * maint.c (print_bfd_section_info): Change param type to
4426 maint_print_section_data.
4427 (print_objfile_section_info): Likewise.
4428 (print_bfd_section_info_maybe_relocated): Likewise.
4429 (maintenance_info_sections): Use gdb_bfd_sections.
4430
4c6e63bf
SV
44312020-08-25 Shahab Vahedi <shahab@synopsys.com>
4432
4433 * MAINTAINERS: Add ARC target and maintainer.
4434
8d7f0635
AK
44352020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4436
4437 * configure.tgt: ARC support for GNU/Linux.
4438 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4439 * arc-linux-tdep.c: New file.
4440 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4441 * arc-tdep.c (arc_write_pc): Use it.
4442
fdd8731b
SV
44432020-08-25 Shahab Vahedi <shahab@synopsys.com>
4444
4445 * arc-tdep.c (arc_check_for_hardware_loop): New.
4446 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4447
22459524
SV
44482020-08-25 Shahab Vahedi <shahab@synopsys.com>
4449
4450 * arc-tdep.h: Include "gdbarch.h".
4451
995d3a19
SV
44522020-08-25 Shahab Vahedi <shahab@synopsys.com>
4453
4454 * arch/arc.h
4455 (arc_gdbarch_features): New class to stir the selection of target XML.
4456 (arc_create_target_description): Use FEATURES to choose XML target.
4457 (arc_lookup_target_description): Use arc_create_target_description
4458 to create _new_ target descriptions or return the already created
4459 ones if the FEATURES is the same.
4460 * arch/arc.c: Implementation of prototypes described above.
4461 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4462 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4463 * arc-tdep.c (*_feature_name): Make feature names consistent.
4464 (arc_register_feature): A new struct to hold information about
4465 registers of a particular target/feature.
4466 (arc_check_tdesc_feature): Check if XML provides registers in
4467 compliance with ARC_REGISTER_FEATURE structs.
4468 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4469 (determine_*_reg_feature_set): Which feature name to look for.
4470 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4471 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4472 to expected ISA enums to be used in arc_gdbarch_features structs.
4473 * features/Makefile (FEATURE_XMLFILES): Add new files.
4474 * gdb/features/arc/v1-aux.c: New file.
4475 * gdb/features/arc/v1-aux.xml: Likewise.
4476 * gdb/features/arc/v1-core.c: Likewise.
4477 * gdb/features/arc/v1-core.xml: Likewise.
4478 * gdb/features/arc/v2-aux.c: Likewise.
4479 * gdb/features/arc/v2-aux.xml: Likewise.
4480 * gdb/features/arc/v2-core.c: Likewise.
4481 * gdb/features/arc/v2-core.xml: Likewise.
4482 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4483
3945d2d7
GM
44842020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4485 Andrew Burgess <andrew.burgess@embecosm.com>
4486
4487 PR m2/26372
fc5d6901 4488 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4489 an assert. Remove single element array indexing pattern as the
4490 MULTI_SUBSCRIPT support will handle this case too.
4491
2677f2d3
SM
44922020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4493
4494 * value.h (valprint_check_validity): Move declaration from
4495 here...
4496 * valprint.h (valprint_check_validity): ... to here.
4497
c426fddb
SM
44982020-08-24 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * debug.h: New file.
4501 * debug.c (debug_prefixed_vprintf): New function.
4502 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4503 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4504
1eb8556f
SM
45052020-08-24 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * infrun.h (infrun_debug_printf_1): New function declaration.
4508 (infrun_debug_printf): New macro.
4509 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4510 throughout.
4511 (infrun_debug_printf): New function.
4512 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4513 (handle_jit_event): Likewise.
4514
b8fff44e
MW
45152020-08-21 Mark Wielaard <mark@klomp.org>
4516
4517 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4518
d19c3068
SM
45192020-08-22 Simon Marchi <simon.marchi@efficios.com>
4520
4521 * frame.c (enum class frame_id_status): New.
4522 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4523 (fprintf_frame): Update.
4524 (compute_frame_id): Set frame id status to "computing" on entry.
4525 Set it back to "not_computed" on failure and to "computed" on
4526 success.
4527 (get_frame_id): Assert the frame id is not being computed.
4528 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4529 (create_new_frame): Likewise.
4530 (frame_cleanup_after_sniffer): Update assert.
4531
b70e516e
SM
45322020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4533
4534 * regcache.c (pid_ptid_regcache_map): New type.
4535 (target_ptid_regcache_map): Remove.
4536 (target_pid_ptid_regcache_map): New type.
4537 (regcaches): Change type to target_pid_ptid_regcache_map.
4538 (get_thread_arch_aspace_regcache): Update.
4539 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4540 case.
4541 (regcaches_size): Update.
4542 (regcache_count): Update.
4543 (registers_changed_ptid_target_pid_test): New.
4544 (_initialize_regcache): Register new test.
4545
cdd9148a
SM
45462020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4547
4548 * regcache.c (regcache_count): New.
4549 (struct regcache_test_data): New.
4550 (regcache_test_data_up): New.
4551 (populate_regcaches_for_test): New.
4552 (regcaches_test): Remove.
4553 (get_thread_arch_aspace_regcache_test): New.
4554 (registers_changed_ptid_all_test): New.
4555 (registers_changed_ptid_target_test): New.
4556 (registers_changed_ptid_target_ptid_test): New.
4557 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4558 (_initialize_regcache): Register new tests.
4559
dd125343
SM
45602020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4561
4562 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4563 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4564 gdbarch and aspace parameter. Use current inferior's aspace.
4565 Validate regcache's arch value.
4566 (regcaches_test): Update.
4567
3ee93972
SM
45682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4569
4570 * regcache.c (regcaches_test): Call registers_changed.
4571
33bf4c5c
TBA
45722020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4573
4574 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4575
c2fd7fae
AKS
45762020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4577
4578 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4579 to find the end of prologue for flang compiled binaries.
4580 * arm-tdep.c (arm_skip_prologue): Likewise.
4581 * i386-tdep.c (i386_skip_prologue): Likewise.
4582 * producer.c (producer_is_llvm): New function.
4583 (producer_parsing_tests): Added new tests for clang/flang.
4584 * producer.h (producer_is_llvm): New declaration.
4585
9327494e
SM
45862020-08-18 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * linux-nat.c (linux_nat_debug_printf): New function.
4589 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4590
d138725a
AM
45912020-08-18 Aaron Merey <amerey@redhat.com>
4592
4593 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4594 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4595 (CLIBS): Add DEBUGINFOD_LIBS.
4596
f9b11e6b
ST
45972020-08-17 Sergei Trofimovich <siarheit@google.com>
4598
4599 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4600 'gdbarch_num_regs'.
4601
3ae7ab99
TT
46022020-08-17 Tom Tromey <tromey@adacore.com>
4603
4604 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4605 ada_get_decoded_value returns NULL.
4606
b017825f
TT
46072020-08-17 Tom Tromey <tromey@adacore.com>
4608
4609 * python/py-inferior.c (infpy_search_memory): Use
4610 gdb_py_object_from_ulongest.
4611 * python/py-infevents.c (create_inferior_call_event_object)
4612 (create_memory_changed_event_object): Use
4613 gdb_py_object_from_ulongest.
4614 * python/py-linetable.c (ltpy_entry_get_pc): Use
4615 gdb_py_object_from_ulongest.
4616
7635cf79
SM
46172020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4618
4619 * loc.c (class symbol_needs_eval_context): Fix indentation.
4620
f54be24b
SM
46212020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4622
4623 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4624 bool.
4625
53d5a2a5
TV
46262020-08-17 Tom de Vries <tdevries@suse.de>
4627
4628 PR gdb/26393
4629 * gdbtypes.c (dump_dynamic_prop): New function.
4630 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4631
547ce8f0
TV
46322020-08-15 Tom de Vries <tdevries@suse.de>
4633
4634 PR backtrace/26390
4635 * stack.c (print_frame_args): Temporarily set the selected
4636 frame to FRAME while printing the frame's arguments.
4637
6ea815e7
PFC
46382020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4639
4640 PR breakpoints/26385
4641 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4642 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4643
6e562fa3
PFC
46442020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4645
4646 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4647 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4648 and >= to check return value instead of == -1 and != -1.
4649
d369b608
SM
46502020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4651
4652 * utils.h (class gdb_argv) <as_array_view>: New method.
4653 * utils.c (gdb_argv_as_array_view_test): New.
4654 (_initialize_utils): Register selftest.
4655 * maint.c (maintenance_selftest): Use the new method.
4656
b31488a3
KR
46572020-08-13 Kamil Rytarowski <n54@gmx.com>
4658
4659 * target.h (supports_dumpcore, dumpcore): New
4660 function declarations.
4661 * target.c (supports_dumpcore, dumpcore): New
4662 functions.
4663 * target-delegates.c: Rebuild.
4664 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4665 and target_dumpcore ().
4666
002a3166
AM
46672020-08-13 Aaron Merey <amerey@redhat.com>
4668
4669 * debuginfod-support.c: Replace global variables with user_data.
4670
ece5bc8a
SM
46712020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4672
4673 * maint.c (maintenance_selftest): Split args and pass array_view
4674 to run_tests.
4675
6d8a0a5e
LM
46762020-08-12 Luis Machado <luis.machado@linaro.org>
4677
4678 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4679 type's length.
4680 Use %s and pulongest to print the length.
4681
7cf663a9
PA
46822020-08-12 Pedro Alves <palves@redhat.com>
4683
4684 * NEWS: Move "Multi-target debugging support" item to the
4685 "Changes since GDB 9" section.
4686
27c7b875
PA
46872020-08-12 Pedro Alves <palves@redhat.com>
4688
4689 PR gdb/26336
4690 * progspace.c (program_space::remove_objfile): Invalidate the
4691 frame cache.
4692
1796a2a1
TV
46932020-08-11 Tom de Vries <tdevries@suse.de>
4694
4695 * MAINTAINERS: Mark ms1 as deleted.
4696
f8e3fe0d
LM
46972020-08-10 Luis Machado <luis.machado@linaro.org>
4698
4699 PR gdb/26310
4700
4701 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4702 act accordingly.
4703 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4704 movz/str/stur/stp skipping behavior.
4705
cc308722
LM
47062020-08-10 Luis Machado <luis.machado@linaro.org>
4707
4708 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4709 struct user_sve_header instead of struct sve_context.
4710
041d9819
SM
47112020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4712
4713 * read.h (dwarf2_fetch_die_loc_sect_off,
4714 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4715 `void *` parameter with function_view.
4716 * read.c (dwarf2_fetch_die_loc_sect_off,
4717 dwarf2_fetch_die_loc_cu_off): Likewise.
4718 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4719 (per_cu_dwarf_call): Adjust.
4720 (get_frame_address_in_block_wrapper): Remove.
4721 (indirect_synthetic_pointer): Adjust.
4722 (get_ax_pc): Remove.
4723 (dwarf2_compile_expr_to_ax): Adjust.
4724
38f8aa06
TV
47252020-08-08 Tom de Vries <tdevries@suse.de>
4726
4727 PR build/26344
4728 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4729 constructor.
4730 * regcache.c (get_thread_arch_aspace_regcache): Same.
4731
a52b3ae2
TT
47322020-08-07 Tom Tromey <tromey@adacore.com>
4733
4734 * ravenscar-thread.c
4735 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4736 New method.
4737 (ravenscar_thread_target::wait): Check
4738 runtime_initialized.
4739 (ravenscar_thread_target::prepare_to_store)
4740 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4741 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4742 (ravenscar_thread_target::stopped_by_watchpoint)
4743 (ravenscar_thread_target::stopped_data_address)
4744 (ravenscar_thread_target::core_of_thread): Use
4745 scoped_restore_current_thread and
4746 set_base_thread_from_ravenscar_task.
4747
0e29517d
TT
47482020-08-07 Tom Tromey <tromey@adacore.com>
4749
4750 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4751
592f9bd7
TT
47522020-08-07 Tom Tromey <tromey@adacore.com>
4753
4754 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4755 update_inferior_ptid before update_thread_list.
4756 (temporarily_change_regcache_ptid): New class.
4757 (ravenscar_thread_target::fetch_registers)
4758 (ravenscar_thread_target::store_registers)
4759 (ravenscar_thread_target::prepare_to_store): Use base thread when
4760 forwarding operation.
4761
39e2018a
TT
47622020-08-07 Tom Tromey <tromey@adacore.com>
4763
4764 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4765 "is_pid" case.
4766
2080266b
TT
47672020-08-07 Tom Tromey <tromey@adacore.com>
4768
4769 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4770 New methods.
4771 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4772 first.
4773 (ravenscar_thread_target::add_thread): Rename from
4774 ravenscar_add_thread.
4775 (ravenscar_thread_target::update_thread_list): Use a lambda.
4776 (ravenscar_thread_target::xfer_partial): New method.
4777
78c02f21
TT
47782020-08-07 Tom Tromey <tromey@adacore.com>
4779
4780 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4781 gdb::function_view.
4782 (iterate_over_live_ada_tasks): Change type of argument.
4783 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4784 of argument.
4785
d5d833af
TT
47862020-08-07 Tom Tromey <tromey@adacore.com>
4787
4788 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4789 Remove.
4790 (ravenscar_thread_target::extra_thread_info): Remove.
4791 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4792 defer to target beneath for non-Ravenscar threads.
4793
a8ac85bb
TT
47942020-08-07 Tom Tromey <tromey@adacore.com>
4795
4796 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4797 get_base_thread_from_ravenscar_task>: Now methods.
4798 <m_cpu_map>: New member.
4799 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4800 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4801 (ravenscar_thread_target::task_is_currently_active): Update.
4802 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4803 Now a method.
4804 (ravenscar_thread_target::add_active_thread): Put initial thread
4805 into the m_cpu_map.
4806
550ab58d
TT
48072020-08-07 Tom Tromey <tromey@adacore.com>
4808
4809 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4810 event_ptid.
4811
e9546579
TT
48122020-08-07 Tom Tromey <tromey@adacore.com>
4813
4814 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4815 runtime_initialized.
4816
3d4470e5
TT
48172020-08-07 Tom Tromey <tromey@adacore.com>
4818
4819 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4820 add_active_thread.
4821 (ravenscar_thread_target::add_active_thread): Now public.
4822 (ravenscar_inferior_created): Call add_active_thread after pushing
4823 the target.
4824
888bdb2b
SM
48252020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4826
4827 * regcache.c (ptid_regcache_map): New type.
4828 (target_ptid_regcache_map): New type.
4829 (regcaches): Change type to target_ptid_regcache_map.
4830 (get_thread_arch_aspace_regcache): Update to regcaches' new
4831 type.
4832 (regcache_thread_ptid_changed): Likewise.
4833 (registers_changed_ptid): Likewise.
4834 (regcaches_size): Likewise.
4835 (regcaches_test): Update.
4836 (regcache_thread_ptid_changed): Update.
4837 * regcache.h (regcache_up): New type.
4838 * gdbsupport/ptid.h (hash_ptid): New struct.
4839
b161a60d
SM
48402020-08-07 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * observable.h (thread_ptid_changed): Add parameter
4843 `process_stratum_target *`.
4844 * infrun.c (infrun_thread_ptid_changed): Add parameter
4845 `process_stratum_target *` and use it.
4846 (selftests): New namespace.
4847 (infrun_thread_ptid_changed): New function.
4848 (_initialize_infrun): Register selftest.
4849 * regcache.c (regcache_thread_ptid_changed): Add parameter
4850 `process_stratum_target *` and use it.
4851 (regcache_thread_ptid_changed): New function.
4852 (_initialize_regcache): Register selftest.
4853 * thread.c (thread_change_ptid): Pass target to
4854 thread_ptid_changed observable.
4855
d2854d8d
CT
48562020-08-06 Caroline Tice <cmtice@google.com>
4857
fe4c3d43
SM
4858 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4859 (struct dwp_sections): Update field comments. Add loclists and
4860 rnglists fields.
4861 (struct virtual_v2_dwo_sections): Rename struct to
4862 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4863 size & offset fields for loclists and rnglists.
4864 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4865 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4866 skipping dummy type units.
4867 (create_dwp_hash_table): Update the large comment above the function to
4868 discuss Version 5 DWP files as well, with references. Update all the
4869 version checks in the function to check for version 5 as well. Add new
4870 section at the end to create dwp hash table for version 5.
4871 (create_dwp_v2_section): Rename function to
4872 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4873 Add V5 to error message text.
4874 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4875 into calls to create_dwp_v2_or_v5_section.
4876 (create_dwo_unit_in_dwp_v5): New function.
4877 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4878 check for version2; add else clause to handle version 5.
4879 (open_and_init_dwo_file): Add code to check dwarf version & only call
4880 create_debug_types_hash_table (with sections.types) if version is not 5;
4881 else call create_debug_type_hash_table, with sections.info.
4882 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4883 version 5.
4884 (dwarf2_locate_v5_dwp_sections): New function.
4885 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4886 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4887
159ed7d9
SM
48882020-08-06 Simon Marchi <simon.marchi@efficios.com>
4889
4890 * regcache.h (class regcache): Remove friend
4891 registers_changed_ptid.
4892 <regcache_thread_ptid_changed>: Remove.
4893 <regcaches>: Remove.
4894 * regcache.c (regcache::regcaches): Rename to...
4895 (regcaches): ... this. Make static.
4896 (get_thread_arch_aspace_regcache): Update.
4897 (regcache::regcache_thread_ptid_changed): Rename to...
4898 (regcache_thread_ptid_changed): ... this. Update.
4899 (class regcache_access): Remove.
4900 (regcaches_test): Update.
4901 (_initialize_regcache): Update.
4902 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4903 <forward_list>.
4904
174981ae
SM
49052020-08-06 Simon Marchi <simon.marchi@efficios.com>
4906
4907 * regcache.h (class regcache) <current_regcache>: Rename to...
4908 <regcaches>: ... this. Move doc here.
4909 * regcache.c (regcache::current_regcache) Rename to...
4910 (regcache::regcaches): ... this. Move doc to header.
4911 (get_thread_arch_aspace_regcache): Update.
4912 (regcache::regcache_thread_ptid_changed): Update.
4913 (registers_changed_ptid): Update.
4914 (class regcache_access) <current_regcache_size>: Rename to...
4915 <regcaches_size>: ... this.
4916 (current_regcache_test): Rename to...
4917 (regcaches_test): ... this.
4918 (_initialize_regcache): Update.
4919
ed908db6
VC
49202020-08-06 Victor Collod <vcollod@nvidia.com>
4921
4922 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4923
b5582ab7
KB
49242020-08-05 Kevin Buettner <kevinb@redhat.com>
4925
4926 * corelow.c (core_target::build_file_mappings): Don't output
4927 null pathname in warning.
4928
ea946b86
SM
49292020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4930
4931 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4932 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4933 gdb.dwarf2/dw2-single-line-discriminators.exp,
4934 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4935
57d02173
TT
49362020-08-05 Tom Tromey <tromey@adacore.com>
4937
4938 PR rust/26197:
4939 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4940 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4941 Fix off-by-one and type size errors in ordinary case.
4942
5555c86d
TV
49432020-08-05 Tom de Vries <tdevries@suse.de>
4944
4945 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4946 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4947
97916bfe
SM
49482020-08-04 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * frame.h (frame_id_p): Return bool.
4951 (frame_id_artificial_p): Return bool.
4952 (frame_id_eq): Return bool.
4953 (has_stack_frames): Return bool.
4954 (get_selected_frame): Fix typo in comment.
4955 (get_frame_pc_if_available): Return bool.
4956 (get_frame_address_in_block_if_available): Return bool.
4957 (get_frame_func_if_available): Return bool.
4958 (read_frame_register_unsigned): Return bool.
4959 (get_frame_register_bytes): Return bool.
4960 (safe_frame_unwind_memory): Return bool.
4961 (deprecated_frame_register_read): Return bool.
4962 (frame_unwinder_is): Return bool.
4963 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4964 bool.
4965 <this_id::p>: Likewise.
4966 <prev_p>: Likewise.
4967 (frame_stash_add): Return bool.
4968 (get_frame_id): Use bool.
4969 (frame_id_build_special) Use bool.
4970 (frame_id_build_unavailable_stack): Use bool.
4971 (frame_id_build): Use bool.
4972 (frame_id_p): Return bool, use true/false instead of 1/0.
4973 (frame_id_artificial_p): Likewise.
4974 (frame_id_eq): Likewise.
4975 (frame_id_inner): Likewise.
4976 (get_frame_func_if_available): Likewise.
4977 (read_frame_register_unsigned): Likewise.
4978 (deprecated_frame_register_read): Likewise.
4979 (get_frame_register_bytes): Likewise.
4980 (has_stack_frames): Likewise.
4981 (inside_main_func): Likewise.
4982 (inside_entry_func): Likewise.
4983 (get_frame_pc_if_available): Likewise.
4984 (get_frame_address_in_block_if_available): Likewise.
4985 (frame_unwinder_is): Likewise.
4986 (safe_frame_unwind_memory): Likewise.
4987 (frame_unwind_arch): Likewise.
4988
fedfee88
SM
49892020-08-04 Simon Marchi <simon.marchi@efficios.com>
4990
4991 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4992 type to cached_copy_status.
4993 (fprintf_frame): Adjust.
4994 (get_frame_func_if_available): Adjust.
4995 (frame_cleanup_after_sniffer): Adjust.
4996
6cfa9b59
MW
49972020-08-04 Mark Wielaard <mark@klomp.org>
4998
4999 * MAINTAINERS (Write After Approval): Update email address.
5000
66d6346b
SM
50012020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5002
5003 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5004 dynamic_prop::const_val.
5005
8a6d5e35
SM
50062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5007
5008 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5009 dynamic_prop::kind.
5010
51d6067d
SM
50112020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5012
5013 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5014
b26e2ae7
JM
50152020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5016
5017 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5018
39791af2
JM
50192020-08-04 Weimin Pan <weimin.pan@oracle.com>
5020 Jose E. Marchesi <jose.marchesi@oracle.com>
5021
5022 * configure.tgt: Add entry for bpf-*-*.
5023 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5024 (ALLDEPFILES): Add bpf-tdep.c.
5025 * bpf-tdep.c: New file.
5026 * MAINTAINERS: Add bpf target and maintainer.
5027 * NEWS: Mention the support for the new target.
5028
521894aa
TV
50292020-08-04 Tom de Vries <tdevries@suse.de>
5030
5031 PR symtab/23270
5032 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5033 Error.
5034
5d6356e9
JB
50352020-08-03 John Baldwin <jhb@FreeBSD.org>
5036
5037 * syscalls/freebsd.xml: Regenerate.
5038
0cf82b81
JB
50392020-08-03 John Baldwin <jhb@FreeBSD.org>
5040
5041 * syscalls/update-freebsd.sh: Fix usage and year range.
5042
8f34b746
TV
50432020-08-03 Tom de Vries <tdevries@suse.de>
5044
5045 PR symtab/26333
5046 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5047 DW_LNE_lo_user/DW_LNE_hi_user range.
5048
5e500d33
SM
50492020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5050
5051 PR ada/26318
5052 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5053 kind.
5054
78319c15
TBA
50552020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5056
5057 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5058
4c55e970
TBA
50592020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5060
5061 * breakpoint.c (set_breakpoint_condition): Update the condition
5062 expressions after checking that the input condition string parses
5063 successfully and does not contain junk at the end.
5064
1e620590
TBA
50652020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5066
5067 * breakpoint.c (set_breakpoint_condition): Update the
5068 condition string after parsing the new condition successfully.
5069
c8693053
RO
50702020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5071
5072 * proc-api.c (_STRUCTURED_PROC): Don't define.
5073 * proc-events.c: Likewise.
5074 * proc-flags.c: Likewise.
5075 * proc-why.c: Likewise.
5076 * procfs.c: Likewise.
5077
5078 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5079 * configure, config.in: Regenerate.
5080
5a99adb8
TV
50812020-07-30 Tom de Vries <tdevries@suse.de>
5082
5083 PR build/26320
5084 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5085 m_red/m_green/m_blue in a union.
5086
8ba83e91
TV
50872020-07-29 Tom de Vries <tdevries@suse.de>
5088
5089 PR tdep/26280
5090 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5091
f75a0693
AB
50922020-07-28 Tom Tromey <tromey@adacore.com>
5093
5094 PR symtab/26270:
5095 * symtab.h (find_pc_partial_function_sym): Declare.
5096 * cli/cli-cmds.c (disassemble_command): Use
5097 find_pc_partial_function_sym. Check asm_demangle.
5098 * blockframe.c (cache_pc_function_sym): New global.
5099 (cache_pc_function_name): Remove.
5100 (clear_pc_function_cache): Update.
5101 (find_pc_partial_function_sym): New function, from
5102 find_pc_partial_function.
5103 (find_pc_partial_function): Rewrite using
5104 find_pc_partial_function_sym.
5105
16f3242c
TT
51062020-07-28 Tom Tromey <tromey@adacore.com>
5107
5108 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5109 help. Add usage.
5110
4888741a
TT
51112020-07-28 Tom Tromey <tromey@adacore.com>
5112
5113 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5114 <DW_OP_GNU_variable_value>: Cast to address type.
5115
4d46f402
KR
51162020-07-28 Kamil Rytarowski <n54@gmx.com>
5117
5118 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5119 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5120 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5121 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5122 (nbsd_get_siginfo_type): New.
5123 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5124 (_initialize_nbsd_tdep): New.
5125
d70f978b
L
51262020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5127
5128 PR binutils/26301
5129 * configure: Regenerated.
5130
377170fa
L
51312020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5132
5133 PR binutils/26301
5134 * configure: Regenerated.
5135
43d5901d
AB
51362020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5137
5138 * python/py-frame.c: Remove 'user-regs.h' include.
5139 (frapy_read_register): Rewrite to make use of
5140 gdbpy_parse_register_id.
5141 * python/py-registers.c (gdbpy_parse_register_id): New function,
5142 moved here from python/py-unwind.c. Updated the return type, and
5143 also accepts register descriptor objects.
5144 * python/py-unwind.c: Remove 'user-regs.h' include.
5145 (pyuw_parse_register_id): Moved to python/py-registers.c.
5146 (unwind_infopy_add_saved_register): Update to use
5147 gdbpy_parse_register_id.
5148 (pending_framepy_read_register): Likewise.
5149 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5150
14fa8fb3
AB
51512020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5152
5153 * python/py-registers.c: Add 'user-regs.h' include.
5154 (register_descriptor_iter_find): New function.
5155 (register_descriptor_iterator_object_methods): New static global
5156 methods array.
5157 (register_descriptor_iterator_object_type): Add pointer to methods
5158 array.
5159
ddce1758
JB
51602020-07-27 John Baldwin <jhb@FreeBSD.org>
5161
5162 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5163 for all architectures on FreeBSD 11.3 and later.
5164
a4089f52
TT
51652020-07-27 Tom Tromey <tromey@adacore.com>
5166
5167 * gcore.h (load_corefile): Don't declare.
5168
95420d30
TV
51692020-07-27 Tom de Vries <tdevries@suse.de>
5170
5171 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5172 * config.in: Regenerate.
5173 * configure: Regenerate.
5174
05a6b8c2
EZ
51752020-07-26 Eli Zaretskii <eliz@gnu.org>
5176
5177 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5178 ws2tcpip.h. When checking whether socklen_t type is defined, use
5179 ws2tcpip.h if it is available and sys/socket.h isn't.
5180 * configure: Regenerate.
5181 * config.in: Regenerate.
5182
e79eb02f
AB
51832020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5184
5185 PR fortran/23051
5186 PR fortran/26139
5187 * valops.c (value_ind): Pass address to
5188 readjust_indirect_value_type.
5189 * value.c (readjust_indirect_value_type): Make parameter
5190 non-const, and add extra address parameter. Resolve original type
5191 before using it.
5192 * value.h (readjust_indirect_value_type): Update function
5193 signature and comment.
5194
876518dd
TV
51952020-07-25 Tom de Vries <tdevries@suse.de>
5196
5197 PR symtab/26243
5198 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5199 entries.
5200
f6720b1c
AM
52012020-07-24 Aaron Merey <amerey@redhat.com>
5202
5203 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5204 * configure: Rebuild.
5205
513487e1
KB
52062020-07-23 Kevin Buettner <kevinb@redhat.com>
5207
5208 PR corefiles/26294
5209 * corelow.c (_initialize_corelow): Add period to help text
5210 for "maintenance print core-file-backed-mappings".
5211
e7bc9db8
PA
52122020-07-23 Pedro Alves <pedro@palves.net>
5213
5214 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5215 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5216 meanwhile.
5217 * frame.c (frame_cache_generation, get_frame_cache_generation):
5218 New.
5219 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5220 (get_prev_frame_if_no_cycle): On exception, don't touch
5221 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5222 * frame.h (get_frame_cache_generation): Declare.
5223
90fcc466
TV
52242020-07-23 Tom de Vries <tdevries@suse.de>
5225
5226 PR tui/26282
5227 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5228 New default constructor.
5229
78344df7
AB
52302020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5231
5232 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5233 exclude non-statement entries.
5234
b089853a
KB
52352020-07-22 Kevin Buettner <kevinb@redhat.com>
5236
5237 * NEWS (New commands): Mention new command
5238 "maintenance print core-file-backed-mappings".
5239
09c2f5d4
KB
52402020-07-22 Kevin Buettner <kevinb@redhat.com>
5241
5242 * corelow.c (gdbcmd.h): Include.
5243 (core_target::info_proc_mappings): New method.
5244 (get_current_core_target): New function.
5245 (maintenance_print_core_file_backed_mappings): New function.
5246 (_initialize_corelow): Add core-file-backed-mappings to
5247 "maint print" commands.
5248
9c5ec5c2 52492020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5250
9c5ec5c2
KB
5251 * linux-tdep.c (dump_note_entry_p): New function.
5252 (linux_dump_mapping_p_ftype): New typedef.
5253 (linux_find_memory_regions_full): Add new parameter,
5254 should_dump_mapping_p.
5255 (linux_find_memory_regions): Adjust call to
5256 linux_find_memory_regions_full.
5257 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5258 call to linux_find_memory_regions_full.
5259
db082f59
KB
52602020-07-22 Kevin Buettner <kevinb@redhat.com>
5261
5262 * corelow.c (solist.h, unordered_map): Include.
5263 (class core_target): Add field m_core_file_mappings and
5264 method build_file_mappings.
5265 (core_target::core_target): Call build_file_mappings.
5266 (core_target::~core_target): Free memory associated with
5267 m_core_file_mappings.
5268 (core_target::build_file_mappings): New method.
5269 (core_target::xfer_partial): Use m_core_file_mappings
5270 for memory transfers.
5271 * linux-tdep.c (linux_read_core_file_mappings): New
5272 function.
5273 (linux_core_info_proc_mappings): Rewrite to use
5274 linux_read_core_file_mappings.
5275 (linux_init_abi): Register linux_read_core_file_mappings.
5276
7e183d27
KB
52772020-07-22 Kevin Buettner <kevinb@redhat.com>
5278
5279 * arch-utils.c (default_read_core_file_mappings): New function.
5280 * arch-utils.c (default_read_core_file_mappings): Declare.
5281 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5282 * gdbarch.h, gdbarch.c: Regenerate.
5283
2735d421
KB
52842020-07-22 Kevin Buettner <kevinb@redhat.com>
5285
5286 PR corefiles/25631
5287 * corelow.c (core_target:xfer_partial): Revise
5288 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5289 case after first checking the stratum beneath the core
5290 target.
5291 (has_all_memory): Return true.
5292 * target.c (raw_memory_xfer_partial): Revise comment
5293 regarding use of has_all_memory.
5294
e56cb451
KB
52952020-07-22 Kevin Buettner <kevinb@redhat.com>
5296
5297 * exec.h (section_table_xfer_memory): Revise declaration,
5298 replacing section name parameter with an optional callback
5299 predicate.
5300 * exec.c (section_table_xfer_memory): Likewise.
5301 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5302 of section_table_xfer_memory.
5303
32fa152e
TT
53042020-07-22 Tom Tromey <tromey@adacore.com>
5305
5306 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5307 lookup_symbol_search_name.
5308
a67a1c41
AB
53092020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5310
5311 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5312 redundant local variable.
5313 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5314 reference, not pointer, update code accordingly.
5315
a7b4ff4f
SM
53162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5317 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5318
5319 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5320 * jit.c (jit_breakpoint_re_set_internal): Use the
5321 `skip_jit_symbol_lookup` field.
5322
2340e834
SM
53232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5324 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5325
5326 * jit.c (jit_read_descriptor): Define the descriptor address once,
5327 use twice.
5328 (jit_breakpoint_deleted): Move the declaration of the loop variable
5329 `iter` into the loop header.
5330 (jit_breakpoint_re_set_internal): Move the declaration of the local
5331 variable `objf_data` to the first point of definition.
5332 (jit_event_handler): Move the declaration of local variables
5333 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5334 Rename `objf` to `jited`.
5335
c1072906
SM
53362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5337
5338 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5339 Remove.
5340 * jit.c (get_jiter_objfile_data): Update.
5341
c8474dc3
TBA
53422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5343 Simon Marchi <simon.marchi@polymtl.ca>
5344
5345 * jit.c (struct jit_program_space_data): Remove.
5346 (jit_program_space_key): Remove.
5347 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5348 stuff.
5349 (get_jit_program_space_data): Remove.
5350 (jit_breakpoint_deleted): Iterate on all of the program space's
5351 objfiles.
5352 (jit_inferior_init): Likewise.
5353 (jit_breakpoint_re_set_internal): Likewise. Also change return
5354 type to void.
5355 (jit_breakpoint_re_set): Pass current_program_space to
5356 jit_breakpoint_re_set_internal.
5357
77208eb7
SM
53582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5359
5360 * jit.h (struct jiter_objfile_data) <cached_code_address,
5361 jit_breakpoint>: Move to here from ...
5362 * jit.c (jit_program_space_data): ... here.
5363 (jiter_objfile_data::~jiter_objfile_data): Update.
5364 (jit_breakpoint_deleted): Update.
5365 (jit_breakpoint_re_set_internal): Update.
5366
8c1c720f
SM
53672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5368
5369 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5370 checks.
5371 (jit_read_descriptor): Remove NULL check.
5372 (jit_event_handler): Add an assertion.
5373
0e74a041
SM
53742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5375
5376 * jit.h (struct jit_objfile_data): Split into...
5377 (struct jiter_objfile_data): ... this ...
5378 (struct jited_objfile_data): ... and this.
5379 * objfiles.h (struct objfile) <jit_data>: Remove.
5380 <jiter_data, jited_data>: New fields.
5381 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5382 (jiter_objfile_data::~jiter_objfile_data): ... this.
5383 (get_jit_objfile_data): Rename to ...
5384 (get_jiter_objfile_data): ... this.
5385 (add_objfile_entry): Update.
5386 (jit_read_descriptor): Use get_jiter_objfile_data.
5387 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5388 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5389 (jit_inferior_exit_hook): Use objfile's jited_data field.
5390
238b5c9f
SM
53912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5392
5393 * jit.h: Forward-declare `struct minimal_symbol`.
5394 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5395 constructor, destructor, and an objfile* field.
5396 * jit.c (jit_objfile_data): Remove.
5397 (struct jit_objfile_data): Migrate from here to jit.h.
5398 (jit_objfile_data::~jit_objfile_data): New destructor
5399 implementation with code moved from free_objfile_data.
5400 (free_objfile_data): Delete.
5401 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5402 (jit_find_objf_with_entry_addr): Ditto.
5403 (jit_inferior_exit_hook): Ditto.
5404 (_initialize_jit): Remove the call to
5405 register_objfile_data_with_cleanup.
5406 * objfiles.h (struct objfile) <jit_data>: New field.
5407
fe053b9e
TBA
54082020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5409
5410 * jit.h: Forward-declare `struct objfile`.
5411 (jit_event_handler): Add a second parameter, the JITer objfile.
5412 * jit.c (jit_read_descriptor): Change the signature to take the
5413 JITer objfile as an argument instead of the jit_program_space_data.
5414 (jit_inferior_init): Update the call to jit_read_descriptor.
5415 (jit_event_handler): Use the new JITer objfile argument when calling
5416 jit_read_descriptor.
5417 * breakpoint.c (handle_jit_event): Update the call to
5418 jit_event_handler to pass the JITer objfile.
5419
4cec0c66
JB
54202020-07-21 John Baldwin <jhb@FreeBSD.org>
5421
5422 * gdbarch.c: Regenerate.
5423 * gdbarch.h: Regenerate.
5424 * gdbarch.sh (handle_segmentation_fault): Remove method.
5425 * infrun.c (handle_segmentation_fault): Remove.
5426 (print_signal_received_reason): Remove call to
5427 handle_segmentation_fault.
5428
0e42f66a
JB
54292020-07-21 John Baldwin <jhb@FreeBSD.org>
5430
5431 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5432 Rename to sparc64_linux_report_signal_info and add siggnal
5433 argument.
5434 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5435 instead of sparc64_linux_handle_segmentation_fault.
5436
77bdfeb2
JB
54372020-07-21 John Baldwin <jhb@FreeBSD.org>
5438
5439 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5440 i386_linux_report_signal_info instead of
5441 i386_linux_handle_segmentation_fault.
5442 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5443 to i386_linux_report_signal_info and add siggnal argument.
5444 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5445 of i386_linux_handle_segmentation_fault.
5446 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5447 to i386_linux_report_signal_info and add siggnal argument.
5448
ad97bfc5
JB
54492020-07-21 John Baldwin <jhb@FreeBSD.org>
5450
5451 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5452 hook if present.
5453
272bb05c
JB
54542020-07-21 John Baldwin <jhb@FreeBSD.org>
5455
5456 * gdbarch.c: Regenerate.
5457 * gdbarch.h: Regenerate.
5458 * gdbarch.sh (report_signal_info): New method.
5459 * infrun.c (print_signal_received_reason): Invoke gdbarch
5460 report_signal_info hook if present.
5461
baf8791e
AB
54622020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5463
5464 * python/py-registers.c : Add 'unordered_map' include.
5465 (gdbpy_new_reggroup): Renamed to...
5466 (gdbpy_get_reggroup): ...this. Update to only create register
5467 group descriptors when needed.
5468 (gdbpy_reggroup_iter_next): Update.
5469
f7306dac
AB
54702020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5471
5472 * python/py-registers.c (gdbpy_register_object_data): New static
5473 global.
5474 (gdbpy_register_object_data_init): New function.
5475 (gdbpy_new_register_descriptor): Renamed to...
5476 (gdbpy_get_register_descriptor): ...this, and update to reuse
5477 existing register descriptors where possible.
5478 (gdbpy_register_descriptor_iter_next): Update.
5479 (gdbpy_initialize_registers): Register new gdbarch data.
5480
05c309a8
SM
54812020-07-21 Simon Marchi <simon.marchi@efficios.com>
5482
5483 * linux-nat.c (stopped_pids): Make static.
5484
d1fd641e
SM
54852020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5486
5487 PR ada/26235
5488 * gdbtypes.c (ada_discrete_type_low_bound,
5489 ada_discrete_type_high_bound): Handle undefined bounds.
5490
1de14d77
KR
54912020-07-21 Kamil Rytarowski <n54@gmx.com>
5492
5493 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5494 declaration.
5495 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5496 function.
5497
ed810cc7
JB
54982020-07-20 John Baldwin <jhb@FreeBSD.org>
5499
5500 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5501 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5502 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5503 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5504 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5505 method.
5506
ae5369e7
LC
55072020-07-20 Ludovic Courtès <ludo@gnu.org>
5508
5509 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5510 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5511 which are deprecated in Guile 3.0.
5512 * configure.ac (try_guile_versions): Add "guile-3.0".
5513 * configure (try_guile_versions): Regenerate.
5514 * NEWS: Update entry.
5515
68cf161c
LC
55162020-07-20 Ludovic Courtès <ludo@gnu.org>
5517 Doug Evans <dje@google.com>
5518
5519 PR gdb/21104
5520 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5521 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5522 USING_GUILE_BEFORE_2_2.
5523 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5524 Change type to 'scm_t_port_type *'.
5525 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5526 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5527 parameter and honor it. Update callers.
5528 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5529 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5530 functions.
5531 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5532 USING_GUILE_BEFORE_2_2.
5533 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5534 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5535 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5536 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5537 and 'SCM_PORT_TYPE'.
5538 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5539 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5540 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5541 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5542 [!USING_GUILE_BEFORE_2_2]: New functions.
5543 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5544 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5545 'gdbscm_memory_port_read'.
5546 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5547 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5548 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5549 function.
5550 (ioscm_init_memory_port): Remove.
5551 (ioscm_init_memory_port_stream): New function
5552 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5553 function.
5554 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5555 Return scm_from_uint (0).
5556 (gdbscm_set_memory_port_read_buffer_size_x)
5557 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5558 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5559 Return scm_from_uint (0).
5560 (gdbscm_set_memory_port_write_buffer_size_x)
5561 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5562 * configure.ac (try_guile_versions): Add "guile-2.2".
5563 * configure: Regenerate.
5564 * NEWS: Add entry.
5565
aee91db3
TT
55662020-07-18 Tom Tromey <tom@tromey.com>
5567
5568 * linux-nat.c (linux_multi_process): Remove.
5569 (linux_nat_target::supports_multi_process): Return true.
5570
0e267416
AB
55712020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5572
5573 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5574 (riscv_lookup_target_description): Return pointer out of
5575 unique_ptr.
5576 * target-descriptions.c (allocate_target_description): Add
5577 comment.
5578 (target_desc_deleter::operator()): Likewise.
5579 * target-descriptions.h (struct target_desc_deleter): Moved to
5580 gdbsupport/tdesc.h.
5581 (target_desc_up): Likewise.
5582
f80c8ec4
TT
55832020-07-17 Tom Tromey <tromey@adacore.com>
5584
5585 * linux-nat.c (linux_nat_target::supports_non_stop)
5586 (linux_nat_target::always_non_stop_p): Use "true".
5587 (linux_nat_target::supports_disable_randomization): Use "true" and
5588 "false".
5589
d0ce17d8
CT
55902020-07-16 Caroline Tice <cmtice@google.com>
5591
5592 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5593 (RNGLIST_HEADER_SIZE64): New constant definition.
5594 (struct dwop_section_names): Add rnglists_dwo.
5595 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5596 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5597 (struct dwo_sections): Add rnglists field.
5598 (read_attribut_reprocess): Add tag parameter.
5599 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5600 (cu_debug_rnglists_section): New function (decl & definition).
5601 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5602 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5603 die whose range is being checked; get rnglist section from
5604 cu_debug_rnglists_section, to get from either objfile or dwo file as
5605 appropriate. Add cases for DW_RLE_base_addressx,
5606 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5607 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5608 test inside if-condition and updating complaint message.
5609 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5610 dwarf2_rnglists_process.
5611 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5612 dwarf2_ranges_process.
5613 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5614 need_ranges_base and update comment appropriately. Also pass die tag
5615 to dwarf2_ranges_read.
5616 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5617 need_ranges_base and update comment appropriately. Also pass die tag
5618 to dwarf2_ranges_process.
5619 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5620 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5621 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5622 need_ranges_base and update comment appropriately. Also pass die tag
5623 to read_attribute_reprocess and dwarf2_ranges_read.
5624 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5625 and update function comment appropriately.
5626 (read_loclist_index): Call read_loclists_rnglists_header instead of
5627 read_loclist_header.
5628 (read_rnglist_index): New function.
5629 (read_attribute_reprocess): Add tag parameter. Add code for
5630 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5631 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5632
3dcc261c
AB
56332020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5634
5635 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5636 being resolved.
5637
ccb9eba6
AB
56382020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5639
5640 * arch-utils.c (show_architecture): Update formatting of messages.
5641
cf88be68
SM
56422020-07-12 Simon Marchi <simon.marchi@efficios.com>
5643
5644 * gdbtypes.h (struct type) <bounds>: Handle array and string
5645 types.
5646 * ada-lang.c (assign_aggregate): Use type::bounds on
5647 array/string type.
5648 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5649 * c-varobj.c (c_number_of_children): Likewise.
5650 (c_describe_child): Likewise.
5651 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5652 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5653 (f_type_print_base): Likewise.
5654 * f-valprint.c (f77_array_offset_tbl): Likewise.
5655 (f77_get_upperbound): Likewise.
5656 (f77_print_array_1): Likewise.
5657 * guile/scm-type.c (gdbscm_type_range): Likewise.
5658 * m2-typeprint.c (m2_array): Likewise.
5659 (m2_is_long_set_of_type): Likewise.
5660 * m2-valprint.c (get_long_set_bounds): Likewise.
5661 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5662 * python/py-type.c (typy_range): Likewise.
5663 * rust-lang.c (rust_internal_print_type): Likewise.
5664 * type-stack.c (type_stack::follow_types): Likewise.
5665 * valarith.c (value_subscripted_rvalue): Likewise.
5666 * valops.c (value_cast): Likewise.
5667
509971ae
SM
56682020-07-12 Simon Marchi <simon.marchi@efficios.com>
5669
5670 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5671 callers to use the equivalent accessor methods.
5672
107406b7
SM
56732020-07-12 Simon Marchi <simon.marchi@efficios.com>
5674
5675 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5676 (struct type) <bit_stride>: New method.
5677 (TYPE_BIT_STRIDE): Remove.
5678 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5679
bb789949
SM
56802020-07-12 Simon Marchi <simon.marchi@efficios.com>
5681
5682 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5683 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5684 callers to use the equivalent accessor methods instead.
5685
39498edb
SM
56862020-07-12 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5689 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5690 callers to use the equivalent accessor methods instead.
5691
3b606f38
SM
56922020-07-12 Simon Marchi <simon.marchi@efficios.com>
5693
5694 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5695 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5696 to use dynamic_prop::kind.
5697
064d9cb9
SM
56982020-07-12 Simon Marchi <simon.marchi@efficios.com>
5699
5700 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5701 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5702 to get the bound property's kind and check against
5703 PROP_UNDEFINED.
5704
5537ddd0
SM
57052020-07-12 Simon Marchi <simon.marchi@efficios.com>
5706
5707 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5708 all callers to use type::range_bounds followed by
5709 dynamic_prop::{low,high}.
5710
8c2e4e06
SM
57112020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5712
5713 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5714 const_val, set_const_val, baton, set_locexpr, set_loclist,
5715 set_addr_offset, variant_parts, set_variant_parts,
5716 original_type, set_original_type>: New methods.
5717 <kind>: Rename to...
5718 <m_kind>: ... this. Update all users to use the new methods
5719 instead.
5720 <data>: Rename to...
5721 <m_data>: ... this. Update all users to use the new methods
5722 instead.
5723
7c6f2712
SM
57242020-07-12 Simon Marchi <simon.marchi@efficios.com>
5725
5726 * gdbtypes.c (get_discrete_bounds): Return failure if
5727 the range type's bounds are not both defined and constant
5728 values.
5729 (get_array_bounds): Update comment. Remove undefined bound check.
5730
599088e3
SM
57312020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5732
5733 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5734 the type::bounds method directly.
5735
c4dfcb36
SM
57362020-07-12 Simon Marchi <simon.marchi@efficios.com>
5737
5738 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5739 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5740 are used to set the range type's bounds to use set_bounds.
5741
0a278aa7
PW
57422020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5743
5744 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5745
cce20f10
PA
57462020-07-10 Pedro Alves <pedro@palves.net>
5747
5748 * gdbthread.h (inferior_ref): Define.
5749 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5750 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5751 * thread.c
5752 (scoped_restore_current_thread::restore):
5753 Adjust to gdb::ref_ptr.
5754 (scoped_restore_current_thread::~scoped_restore_current_thread):
5755 Remove manual decref handling.
5756 (scoped_restore_current_thread::scoped_restore_current_thread):
5757 Adjust to use
5758 inferior_ref::new_reference/thread_info_ref::new_reference.
5759 Incref the thread before calling get_frame_id instead of after.
5760 Let TARGET_CLOSE_ERROR propagate.
5761
6d7aa592
PA
57622020-07-10 Pedro Alves <pedro@palves.net>
5763
5764 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5765 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5766 NOT_AVAILABLE_ERROR.
5767 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5768 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5769
b3e3a4c1
SM
57702020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5771 Pedro Alves <pedro@palves.net>
5772
5773 PR gdb/26199
5774 * infrun.c (threads_are_resumed_pending_p): Delete.
5775 (do_target_wait): Remove threads_are_executing and
5776 threads_are_resumed_pending_p checks from the inferior_matches
5777 lambda. Update comments.
5778
d6cc5d98
PA
57792020-07-10 Pedro Alves <pedro@palves.net>
5780
5781 PR gdb/26199
5782 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5783 executing threads.
5784
7d3badc6
PA
57852020-07-10 Pedro Alves <pedro@palves.net>
5786
5787 PR gdb/26199
5788 * infrun.c (handle_no_resumed): Handle multiple targets.
5789
42bd97a6
PA
57902020-07-10 Pedro Alves <pedro@palves.net>
5791
5792 PR gdb/26199
5793 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5794 target_is_async_p.
5795
43667cc6
PA
57962020-07-10 Pedro Alves <pedro@palves.net>
5797
5798 PR gdb/26199
5799 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5800 threads, not all threads.
5801
96118d11
PA
58022020-07-10 Pedro Alves <pedro@palves.net>
5803
5804 PR gdb/26199
5805 * remote.c (remote_target::open_1): Pass remote target pointer as
5806 data to create_async_event_handler.
5807 (remote_async_inferior_event_handler): Mark async event handler
5808 before returning if the remote target still has either pending
5809 events or unacknowledged notifications.
5810
54904d81
JB
58112020-07-10 John Baldwin <jhb@FreeBSD.org>
5812
5813 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5814 declaration.
5815 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5816 function.
5817
f37e5866
JB
58182020-07-09 John Baldwin <jhb@FreeBSD.org>
5819
5820 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5821 inferior_ptid.
5822
fc238d4a
JB
58232020-07-09 John Baldwin <jhb@FreeBSD.org>
5824
5825 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5826 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5827 AT_FREEBSD_PS_STRINGS.
5828
6e2469ff
HD
58292020-07-08 Hannes Domani <ssbssa@yahoo.de>
5830
5831 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5832 of debugfile path on Windows.
5833
d1076c41
JB
58342020-07-08 John Baldwin <jhb@FreeBSD.org>
5835
5836 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5837 argument to 'data'.
5838
15f3b077
TT
58392020-07-08 Tom Tromey <tromey@adacore.com>
5840
5841 * ada-lang.c (ada_exception_message_1): Use read_memory.
5842
9fc501fd
AB
58432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5844
5845 PR python/22748
5846 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5847 special handling for inline frames.
5848 * findvar.c (value_of_register_lazy): Skip inline frames when
5849 creating lazy register values.
5850 * frame.c (frame_id_computed_p): Delete definition.
5851 * frame.h (frame_id_computed_p): Delete declaration.
5852
64cb3757
AB
58532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5854
5855 * NEWS: Mention additions to Python API.
5856 * python/py-arch.c (archpy_register_groups): New function.
5857 (arch_object_methods): Add 'register_groups' method.
5858 * python/py-registers.c (reggroup_iterator_object): New struct.
5859 (reggroup_object): New struct.
5860 (gdbpy_new_reggroup): New function.
5861 (gdbpy_reggroup_to_string): New function.
5862 (gdbpy_reggroup_name): New function.
5863 (gdbpy_reggroup_iter): New function.
5864 (gdbpy_reggroup_iter_next): New function.
5865 (gdbpy_new_reggroup_iterator): New function
5866 (gdbpy_initialize_registers): Register new types.
5867 (reggroup_iterator_object_type): Define new Python type.
5868 (gdbpy_reggroup_getset): New static global.
5869 (reggroup_object_type): Define new Python type.
5870 * python/python-internal.h
5871
0f767f94
AB
58722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5873
5874 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5875 * python/py-arch.c (archpy_registers): New function.
5876 (arch_object_methods): Add 'registers' method.
5877 * python/py-registers.c: New file.
5878 * python/python-internal.h
5879 (gdbpy_new_register_descriptor_iterator): Declare.
5880 (gdbpy_initialize_registers): Declare.
5881 * python/python.c (do_start_initialization): Call
5882 gdbpy_initialize_registers.
5883 * NEWS: Mention additions to the Python API.
5884
87dbc774
AB
58852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5886
5887 * NEWS: Mention new Python API method.
5888 * python/py-unwind.c (pending_framepy_architecture): New function.
5889 (pending_frame_object_methods): Add architecture method.
5890
3bc98c0c
AB
58912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5892
5893 * gdbarch.c: Regenerate.
5894 * gdbarch.h: Regenerate.
5895 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5896 (gdbarch_data): Use internal_error for the case where
5897 deprecated_set_gdbarch_data was originally needed.
5898 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5899 and use passed in obstack.
5900 (libunwind_frame_set_descr): Should no longer get back NULL from
5901 gdbarch_data.
5902 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5903 type.
5904 * user-regs.c (user_regs_init): Update parameters, and use passed
5905 in obstack.
5906 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5907 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5908
d8cc8af6
TV
59092020-07-06 Tom de Vries <tdevries@suse.de>
5910
5911 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5912 End-Of-Sequence in lte_is_less_than.
5913 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5914 "gdb: Don't reorder line table entries too much when sorting".
5915
947f7597
TV
59162020-07-06 Tom de Vries <tdevries@suse.de>
5917
5918 PR tui/26205
5919 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5920
1e7c1b22
TV
59212020-07-05 Tom de Vries <tdevries@suse.de>
5922
5923 PR build/26187
5924 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5925 std::uncaught_exceptions instead of deprecated
5926 std::uncaught_exception.
5927
a36158ec
SM
59282020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5929
5930 * macroexp.h (macro_stringify): Return
5931 gdb::unique_xmalloc_ptr<char>.
5932 * macroexp.c (macro_stringify): Likewise.
5933 * macrotab.c (fixup_definition): Update.
5934
14d960c8
SM
59352020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5936
5937 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5938 (lex_one_token): Update.
5939 * macroexp.c (struct macro_buffer) <release>: Return
5940 gdb::unique_xmalloc_ptr<char>.
5941 (macro_stringify): Update.
5942 (macro_expand): Update.
5943 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5944 * macroexp.h (macro_expand_next): Likewise.
5945
211d5b1c
SM
59462020-07-02 Simon Marchi <simon.marchi@efficios.com>
5947
5948 * macroexp.h (macro_lookup_ftype): Remove.
5949 (macro_expand, macro_expand_once, macro_expand_next): Remove
5950 lookup function parameters, add scope parameter.
5951 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5952 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5953 * macroscope.h (standard_macro_lookup): Change parameter type
5954 to macro_scope.
5955 * macroscope.c (standard_macro_lookup): Likewise.
5956 * c-exp.y (lex_one_token): Update.
5957 * macrocmd.c (macro_expand_command): Likewise.
5958 (macro_expand_once_command): Likewise.
5959
b1a35af2
SM
59602020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5961
5962 * inf-loop.c (inferior_event_handler): Remove client_data param.
5963 * inf-loop.h (inferior_event_handler): Likewise.
5964 * infcmd.c (step_1): Adjust.
5965 * infrun.c (proceed): Adjust.
5966 (fetch_inferior_event): Remove client_data param.
5967 (infrun_async_inferior_event_handler): Adjust.
5968 * infrun.h (fetch_inferior_event): Remove `void *` param.
5969 * linux-nat.c (handle_target_event): Adjust.
5970 * record-btrace.c (record_btrace_handle_async_inferior_event):
5971 Adjust.
5972 * record-full.c (record_full_async_inferior_event_handler):
5973 Adjust.
5974 * remote.c (remote_async_inferior_event_handler): Adjust.
5975
1cdf9e33
TT
59762020-07-01 Tom Tromey <tom@tromey.com>
5977
5978 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5979 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5980
32c1e210
TT
59812020-07-01 Tom Tromey <tom@tromey.com>
5982
5983 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5984 tui_gen_win_info.
5985 (tui_win_info::make_window): Merge with
5986 tui_gen_win_info::make_window.
5987 (tui_win_info::make_visible): Move from tui_gen_win_info.
5988 * tui/tui-win.c (tui_win_info::max_width): Move from
5989 tui_gen_win_info.
5990 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5991 type.
5992 <window_factory>: Likewise.
5993 * tui/tui-layout.c (tui_win_info::resize): Move from
5994 tui_gen_win_info.
5995 (make_standard_window): Change return type.
5996 (get_locator_window, tui_get_window_by_name): Likewise.
5997 (tui_layout_window::apply): Remove a cast.
5998 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5999 (struct tui_win_info): Merge with tui_gen_win_info.
6000 (struct tui_gen_win_info): Remove.
6001
a30cb6da
TT
60022020-07-01 Tom Tromey <tom@tromey.com>
6003
6004 * tui/tui-stack.h (struct tui_locator_window): Derive from
6005 tui_win_info.
6006 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6007 <can_box>: New method.
6008
1eb2161f
TT
60092020-07-01 Tom Tromey <tom@tromey.com>
6010
6011 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6012
7134f2eb
TT
60132020-07-01 Tom Tromey <tom@tromey.com>
6014
6015 * tui/tui-regs.c (tui_data_window::display_registers_from)
6016 (tui_data_window::display_registers_from)
6017 (tui_data_window::first_data_item_displayed)
6018 (tui_data_window::delete_data_content_windows): Update.
6019 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6020 Remove.
6021 (tui_data_window::check_register_values): Update.
6022 (tui_data_item_window::rerender): Add parameters. Update.
6023 (tui_data_item_window::refresh_window): Remove.
6024 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6025 virtual.
6026 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6027 tui_gen_win_info.
6028 <refresh_window, max_height, min_height>: Remove.
6029 <rerender>: Add parameters.
6030 <x, y, visible>: New members.
6031 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6032 <m_item_width>: New member.
6033
22b7b041
TT
60342020-07-01 Tom Tromey <tom@tromey.com>
6035
6036 * tui/tui-regs.c (tui_data_window::show_register_group)
6037 (tui_data_window::check_register_values): Update.
6038 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6039 from item_no.
6040
c9753adb
TT
60412020-07-01 Tom Tromey <tom@tromey.com>
6042
6043 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6044 useless "if".
6045
9ab26b4a
TT
60462020-07-01 Tom Tromey <tom@tromey.com>
6047
6048 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6049 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6050
e555083f
TT
60512020-07-01 Tom Tromey <tom@tromey.com>
6052
6053 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6054 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6055 (struct tui_line_or_address): Move from tui-data.h.
6056 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6057 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6058 (tui_cmd_window, tui_source_window_base, tui_source_window)
6059 (tui_disasm_window): Don't declare.
6060 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6061 to tui-winsource.h.
6062 (SINGLE_KEY): Move to tui-stack.c.
6063
7a02bab7
TT
60642020-07-01 Tom Tromey <tom@tromey.com>
6065
6066 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6067 std::string.
6068 * tui/tui-regs.c (class tab_expansion_file): New.
6069 (tab_expansion_file::write): New method.
6070 (tui_register_format): Change return type. Use
6071 tab_expansion_file.
6072 (tui_get_register, tui_data_window::display_registers_from)
6073 (tui_data_item_window::rerender): Update.
6074 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6075 * tui/tui-io.c (tui_expand_tabs): Remove.
6076
ea68593b
TT
60772020-07-01 Tom Tromey <tom@tromey.com>
6078
6079 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6080
a8caed5d
FS
60812020-07-01 Fangrui Song <maskray@google.com>
6082
6083 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6084
9cdf9820
AKS
60852020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6086
6087 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6088 forms for DW_AT_associated and DW_AT_allocated attributes,
6089 which is already checked in function attr_to_dynamic_prop.
6090
a1520ad8
TT
60912020-06-30 Tom Tromey <tromey@adacore.com>
6092
6093 * dwarf2/read.c (quirk_rust_enum): Correctly call
6094 alloc_rust_variant for default-less enum.
6095
5ac58899
TT
60962020-06-30 Tom Tromey <tromey@adacore.com>
6097
6098 PR build/26183:
6099 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6100 gdb::to_string.
6101
19b187a9
SM
61022020-06-29 Simon Marchi <simon.marchi@efficios.com>
6103
6104 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6105 * gdbarch.h: Re-generate.
6106
cd4c4c07
TT
61072020-06-28 Tom Tromey <tom@tromey.com>
6108
6109 * command.h (cmd_types): Remove.
6110 (cmd_type): Don't declare.
6111 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6112 typedef.
6113 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6114 * cli/cli-decode.c (cmd_type): Remove.
6115
05779d57
PA
61162020-06-27 Pedro Alves <palves@redhat.com>
6117
6118 * fork-child.c (prefork_hook): Adjust.
6119 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6120 Delete.
6121 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6122 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6123 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6124 Remove declarations.
6125 (struct inferior) <set_tty, tty>: New methods.
6126 (struct inferior) <terminal>: Rename to ...
6127 (struct inferior) <m_terminal>: ... this and make private.
6128 * main.c (captured_main_1): Adjust.
6129 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6130 (mi_cmd_inferior_tty_show): Adjust.
6131 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6132 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6133
1776e3e5
NA
61342020-06-26 Nick Alcock <nick.alcock@oracle.com>
6135
6136 * configure.ac: Add --enable-libctf: handle --disable-static
6137 properly.
6138 * acinclude.m4: sinclude ../config/enable.m4.
6139 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6140 (LIBCTF): Substitute in.
6141 (CTF_DEPS): New, likewise.
6142 (CLIBS): libctf needs symbols from libbfd: move earlier.
6143 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6144 flags.
6145 * ctfread.c: Surround in ENABLE_LIBCTF.
6146 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6147 * configure: Regenerate.
6148 * config.in: Likewise.
6149
58373b80
SM
61502020-06-25 Simon Marchi <simon.marchi@efficios.com>
6151
6152 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6153
277474ee
SM
61542020-06-25 Simon Marchi <simon.marchi@efficios.com>
6155
6156 * inferior.h (struct inferior) <terminal>: Change type to
6157 gdb::unique_xmalloc_ptr<char>.
6158 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6159 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6160 field, adjust to unique pointer.
6161 (get_inferior_io_terminal): Adjust to unique pointer.
6162
6d74da72
AB
61632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6164
6165 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6166 registers, not just the known core set of registers.
6167
2e52d038
AB
61682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6169
6170 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6171 fflags, frm, and fcsr registers.
6172 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6173 restore groups.
6174 (riscv_tdesc_unknown_reg): New function.
6175 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6176 tdesc_use_registers.
6177 * riscv-tdep.h (struct gdbarch_tdep): Add
6178 unknown_csrs_first_regnum, unknown_csrs_count,
6179 duplicate_fflags_regnum, duplicate_frm_regnum, and
6180 duplicate_fcsr_regnum fields.
6181
be64fd07
AB
61822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6183
6184 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6185 callback, use the callback (when not null) to help number unknown
6186 registers.
6187 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6188 (tdesc_use_registers): Add extra parameter to declaration.
6189
3b9fce96
AB
61902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6191
6192 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6193 in the file.
6194 (class riscv_pending_register_alias): Likewise.
6195 (riscv_register_feature::register_info): Change 'required_p' field
6196 to 'required', and change its type. Add 'check' member function.
6197 (riscv_register_feature::register_info::check): Define new member
6198 function.
6199 (riscv_xreg_feature): Change initialisation of 'required' field.
6200 (riscv_freg_feature): Likewise.
6201 (riscv_virtual_feature): Likewise.
6202 (riscv_csr_feature): Likewise.
6203 (riscv_check_tdesc_feature): Take extra parameter, the csr
6204 tdesc_feature, rewrite the function to use the new
6205 riscv_register_feature::register_info::check function.
6206 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6207
865bad26
AB
62082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6209
6210 * features/Makefile: Remove all references to the deleted files
6211 below.
6212 * features/riscv/32bit-csr.c: Deleted.
6213 * features/riscv/32bit-csr.xml: Deleted.
6214 * features/riscv/64bit-csr.c: Deleted.
6215 * features/riscv/64bit-csr.xml: Deleted.
6216 * features/riscv/rebuild-csr-xml.sh: Deleted.
6217
ed69cbc8
AB
62182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6219
6220 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6221 whitespace error for declaration of names member variable.
6222 (struct riscv_register_feature): Add new prefer_first_name member
6223 variable, and fix whitespace error in declaration of registers.
6224 (riscv_xreg_feature): Initialize prefer_first_name field.
6225 (riscv_freg_feature): Likewise.
6226 (riscv_virtual_feature): Likewise.
6227 (riscv_csr_feature): Likewise.
6228 (riscv_register_name): Expand on comments. Remove register name
6229 modifications for CSR and virtual registers.
6230
4445e8f5
AB
62312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6232
6233 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6234 errors.
6235
767a879e
AB
62362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6237
6238 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6239 riscv-opc.h.
6240 (class riscv_pending_register_alias): New class.
6241 (riscv_check_tdesc_feature): Take vector of pending aliases and
6242 populate it as appropriate.
6243 (riscv_setup_register_aliases): Delete.
6244 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6245 to riscv_check_tdesc_feature in all cases. Use the vector to
6246 create the register aliases.
6247
bb6e55f3
RO
62482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6249
6250 * sol2-tdep.c (sol2_static_transform_name): Remove.
6251 (sol2_init_abi): Don't register it.
6252 * gdbarch.sh (static_transform_name): Remove.
6253 * gdbarch.c, gdbarch.h: Regenerate.
6254
6255 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6256 gdbarch_static_transform_name.
6257 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6258 * stabsread.c (define_symbol) <'X'>: Remove.
6259 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6260 handling.
6261 <'V'>: Likewise.
6262 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6263 <'S'>: Remove call to gdbarch_static_transform_name.
6264
c6d36836
RO
62652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6266
6267 * procfs.c (procfs_pre_trace): New function.
6268 (procfs_target::create_inferior): Pass it to fork_inferior.
6269
a7e6196b
RO
62702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6271
6272 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6273 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6274 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6275 sol2-tdep.o, sparc-sol2-tdep.o.
6276 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6277 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6278 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6279 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6280
d412e696
RO
62812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6282
6283 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6284 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6285 Call sol2_init_abi.
6286 Remove calls to set_gdbarch_skip_solib_resolver,
6287 set_gdbarch_core_pid_to_str.
6288 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6289 (i386_sol2_static_transform_name): Remove.
6290 (i386_sol2_init_abi): Call sol2_init_abi.
6291 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6292 set_gdbarch_static_transform_name,
6293 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6294 Use sol2_sigtramp_p.
6295 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6296 (sol2_sigtramp_p): New function.
6297 (sol2_static_transform_name): New function.
6298 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6299 (sol2_init_abi): New function.
6300 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6301 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6302 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6303 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6304 (sparc_sol2_static_transform_name): Remove.
6305 (sparc32_sol2_init_abi): Call sol2_init_abi.
6306 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6307 set_gdbarch_static_transform_name,
6308 set_gdbarch_skip_solib_resolver,
6309 set_gdbarch_core_pid_to_str.
6310 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6311 (sparc_sol2_static_transform_name): Remove
6312 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6313 call sol2_sigtramp_p.
6314 (sparc64_sol2_init_abi): Call sol2_init_abi.
6315 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6316 set_gdbarch_static_transform_name,
6317 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6318
a8654e7d
PW
63192020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6320
6321 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6322 * exec.c (validate_exec_file): If from_tty, set both
6323 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6324 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6325 and from_tty, unconditionally ask a confirmation.
6326
caa7fd04
AB
63272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6328
6329 * target-descriptions.c (tdesc_architecture_name): Protect against
6330 NULL pointer dereference.
6331 (maint_print_xml_tdesc_cmd): New function.
6332 (_initialize_target_descriptions): Register new 'maint print
6333 xml-tdesc' command and give it the filename completer.
6334 * NEWS: Mention new 'maint print xml-tdesc' command.
6335
fbf42f4e
AB
63362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6337
6338 * target-descriptions.c (class tdesc_compatible_info): New class.
6339 (struct target_desc): Change type of compatible vector.
6340 (tdesc_compatible_p): Update for change in type of
6341 target_desc::compatible.
6342 (tdesc_compatible_info_list): New function.
6343 (tdesc_compatible_info_arch_name): New function.
6344 (tdesc_add_compatible): Update for change in type of
6345 target_desc::compatible.
6346 (print_c_tdesc::visit_pre): Likewise.
6347
20821f4e
AB
63482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6349
6350 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6351 whitespace to underscore.
6352 (maint_print_c_tdesc_cmd): Use fake filename for target
6353 descriptions that came from the target.
6354 (_initialize_target_descriptions): Add filename command completion
6355 for 'maint print c-tdesc'.
6356
1fb5ee62
SM
63572020-06-23 Simon Marchi <simon.marchi@efficios.com>
6358
6359 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6360 lines.
6361
fc3ecb3e
SM
63622020-06-23 Simon Marchi <simon.marchi@efficios.com>
6363
6364 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6365 lines.
6366 (dwarf2_find_location_expression): Likewise.
6367 (call_site_parameter_matches): Likewise.
6368 (dwarf2_compile_expr_to_ax): Likewise.
6369 (disassemble_dwarf_expression): Likewise.
6370 (loclist_describe_location): Likewise.
6371
236ef034
PA
63722020-06-23 Pedro Alves <palves@redhat.com>
6373
6374 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6375 progspace-and-thread.h. Include scoped-mock-context.h instead.
6376 (register_to_value_test): Use scoped_mock_context.
6377 * regcache.c: Include "scoped-mock-context.h".
6378 (cooked_read_test): Don't error out if a target is already pushed.
6379 Use scoped_mock_context. Adjust.
6380 * scoped-mock-context.h: New file.
6381
39e7ecca
AB
63822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6383
6384 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6385 initializer.
6386 (ada_language::is_string_type_p): New member function.
6387 * c-lang.c (c_language_data): Delete la_is_string_type_p
6388 initializer.
6389 (cplus_language_data): Likewise.
6390 (asm_language_data): Likewise.
6391 (minimal_language_data): Likewise.
6392 * d-lang.c (d_language_data): Likewise.
6393 * f-lang.c (f_is_string_type_p): Delete function, implementation
6394 moved to f_language::is_string_type_p.
6395 (f_language_data): Delete la_is_string_type_p initializer.
6396 (f_language::is_string_type_p): New member function,
6397 implementation from f_is_string_type_p.
6398 * go-lang.c (go_is_string_type_p): Delete function, implementation
6399 moved to go_language::is_string_type_p.
6400 (go_language_data): Delete la_is_string_type_p initializer.
6401 (go_language::is_string_type_p): New member function,
6402 implementation from go_is_string_type_p.
6403 * language.c (language_defn::is_string_type_p): Define new member
6404 function.
6405 (default_is_string_type_p): Make static, add comment copied from
6406 header file.
6407 (unknown_language_data): Delete la_is_string_type_p initializer.
6408 (unknown_language::is_string_type_p): New member function.
6409 (auto_language_data): Delete la_is_string_type_p initializer.
6410 (auto_language::is_string_type_p): New member function.
6411 * language.h (language_data): Delete la_is_string_type_p field.
6412 (language_defn::is_string_type_p): Declare new function.
6413 (default_is_string_type_p): Delete desclaration, move comment to
6414 definition.
6415 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6416 moved to m2_language::is_string_type_p.
6417 (m2_language_data): Delete la_is_string_type_p initializer.
6418 (m2_language::is_string_type_p): New member function,
6419 implementation from m2_is_string_type_p.
6420 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6421 initializer.
6422 * opencl-lang.c (opencl_language_data): Likewise.
6423 * p-lang.c (pascal_is_string_type_p): Delete function,
6424 implementation moved to pascal_language::is_string_type_p.
6425 (pascal_language_data): Delete la_is_string_type_p initializer.
6426 (pascal_language::is_string_type_p): New member function,
6427 implementation from pascal_is_string_type_p.
6428 * rust-lang.c (rust_is_string_type_p): Delete function,
6429 implementation moved to rust_language::is_string_type_p.
6430 (rust_language_data): Delete la_is_string_type_p initializer.
6431 (rust_language::is_string_type_p): New member function,
6432 implementation from rust_is_string_type_p.
6433 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6434 is_string_type_p.
6435
4ffc13fb
AB
64362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6437
6438 * ada-lang.c (ada_language_data): Delete la_print_typedef
6439 initializer.
6440 (ada_language::print_typedef): New member function.
6441 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6442 (cplus_language_data): Likewise.
6443 (asm_language_data): Likewise.
6444 (minimal_language_data): Likewise.
6445 * d-lang.c (d_language_data): Likewise.
6446 * f-lang.c (f_language_data): Likewise.
6447 (f_language::print_typedef): New member function.
6448 * go-lang.c (go_language_data): Delete la_print_typedef
6449 initializer.
6450 * language.c (language_defn::print_typedef): Define member
6451 function.
6452 (unknown_language_data): Delete la_print_typedef initializer.
6453 (unknown_language::print_typedef): New member function.
6454 (auto_language_data): Delete la_print_typedef initializer.
6455 (auto_language::print_typedef): New member function.
6456 * language.h (language_data): Delete la_print_typedef field.
6457 (language_defn::print_typedef): Declare new member function.
6458 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6459 (default_print_typedef): Delete declaration.
6460 * m2-lang.c (m2_language_data): Delete la_print_typedef
6461 initializer.
6462 (m2_language::print_typedef): New member function.
6463 * objc-lang.c (objc_language_data): Delete la_print_typedef
6464 initializer.
6465 * opencl-lang.c (opencl_language_data): Likewise.
6466 * p-lang.c (pascal_language_data): Likewise.
6467 (pascal_language::print_typedef): New member function.
6468 * rust-lang.c (rust_print_typedef): Delete function,
6469 implementation moved to rust_language::print_typedef.
6470 (rust_language): Delete la_print_typedef initializer.
6471 (rust_language::print_typedef): New member function,
6472 implementation from rust_print_typedef.
6473 * typeprint.c (default_print_typedef): Delete.
6474
d711ee67
AB
64752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6476
6477 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6478 (ada_language::printstr): New member function.
6479 * c-lang.c (c_language_data): Delete la_printstr initializer.
6480 (cplus_language_data): Likewise.
6481 (asm_language_data): Likewise.
6482 (minimal_language_data): Likewise.
6483 * d-lang.c (d_language_data): Likewise.
6484 * f-lang.c (f_printstr): Rename to f_language::printstr.
6485 (f_language_data): Delete la_printstr initializer.
6486 (f_language::printstr): New member function, implementation from
6487 f_printstr.
6488 * go-lang.c (go_language_data): Delete la_printstr initializer.
6489 * language.c (language_defn::printstr): Define new member
6490 function.
6491 (unk_lang_printstr): Delete.
6492 (unknown_language_data): Delete la_printstr initializer.
6493 (unknown_language::printstr): New member function.
6494 (auto_language_data): Delete la_printstr initializer.
6495 (auto_language::printstr): New member function.
6496 * language.h (language_data): Delete la_printstr field.
6497 (language_defn::printstr): Declare new member function.
6498 (LA_PRINT_STRING): Update call to printstr.
6499 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6500 (m2_language_data): Delete la_printstr initializer.
6501 (m2_language::printstr): New member function, implementation from
6502 m2_printstr.
6503 * objc-lang.c (objc_language_data): Delete la_printstr
6504 initializer.
6505 * opencl-lang.c (opencl_language_data): Likewise.
6506 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6507 (pascal_language_data): Delete la_printstr initializer.
6508 (pascal_language::printstr): New member function, implementation
6509 from pascal_printstr.
6510 * p-lang.h (pascal_printstr): Delete declaration.
6511 * rust-lang.c (rust_printstr): Update header comment.
6512 (rust_language_data): Delete la_printstr initializer.
6513 (rust_language::printstr): New member function.
6514
52b50f2c
AB
65152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6516
6517 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6518 (ada_language::printchar): New member function.
6519 * c-lang.c (c_language_data): Delete la_printchar initializer.
6520 (cplus_language_data): Likewise.
6521 (asm_language_data): Likewise.
6522 (minimal_language_data): Likewise.
6523 * d-lang.c (d_language_data): Likewise.
6524 * f-lang.c (f_printchar): Rename to f_language::printchar.
6525 (f_language_data): Delete la_printchar initializer.
6526 (f_language::printchar): New member function, implementation from
6527 f_printchar.
6528 * go-lang.c (go_language_data): Delete la_printchar initializer.
6529 * language.c (unk_lang_printchar): Delete.
6530 (language_defn::printchar): Define new member function.
6531 (unknown_language_data): Delete la_printchar initializer.
6532 (unknown_language::printchar): New member function.
6533 (auto_language_data): Delete la_printchar initializer.
6534 (auto_language::printchar): New member function.
6535 * language.h (language_data): Delete la_printchar field.
6536 (language_defn::printchar): Declare new member function.
6537 (LA_PRINT_CHAR): Update call to printchar.
6538 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6539 (m2_language::printchar): New member function.
6540 * objc-lang.c (objc_language_data): Delete la_printchar
6541 initializer.
6542 * opencl-lang.c (opencl_language_data): Likewise.
6543 * p-lang.c (pascal_language_data): Delete la_printchar
6544 initializer.
6545 (pascal_language::printchar): New member function.
6546 * rust-lang.c (rust_printchar): Rename to
6547 rust_language::printchar.
6548 (rust_language_data): Delete la_printchar initializer.
6549 (rust_language::printchar): New member function, implementation
6550 from rust_printchar.
6551
ec8cec5b
AB
65522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6553
6554 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6555 (ada_language_data): Delete la_emitchar initializer.
6556 (ada_language::emitchar): New member function, implementation from
6557 emit_char.
6558 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6559 (cplus_language_data): Likewise.
6560 (asm_language_data): Likewise.
6561 (minimal_language_data): Likewise.
6562 * d-lang.c (d_language_data): Likewise.
6563 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6564 (f_language_data): Delete la_emitchar initializer.
6565 (f_language::emitchar): New member function, implementation from
6566 f_emit_char.
6567 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6568 * language.c (unk_lang_emit_char): Delete.
6569 (language_defn::emitchar): New member function definition.
6570 (unknown_language_data): Delete la_emitchar initializer.
6571 (unknown_language::emitchar): New member function.
6572 (auto_language_data): Delete la_emitchar initializer.
6573 (auto_language::emitchar): New member function.
6574 * language.h (language_data): Delete la_emitchar field.
6575 (language_defn::emitchar): New member field declaration.
6576 (LA_EMIT_CHAR): Update call to emitchar.
6577 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6578 (m2_language_data): Delete la_emitchar initializer.
6579 (m2_language::emitchar): New member function, implementation from
6580 m2_emit_char.
6581 * objc-lang.c (objc_language_data): Delete la_emitchar
6582 initializer.
6583 * opencl-lang.c (opencl_language_data): Likewise.
6584 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6585 (pascal_language_data): Delete la_emitchar initializer.
6586 (pascal_language::emitchar): New member function, implementation
6587 from pascal_emit_char.
6588 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6589 (rust_language_data): Delete la_emitchar initializer.
6590 (rust_language::emitchar): New member function, implementation
6591 from rust_emitchar.
6592
1bf9c363
AB
65932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6594
6595 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6596 (ada_language_data): Delete la_post_parser initializer.
6597 (ada_language::post_parser): New member function.
6598 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6599 (cplus_language_data): Likewise.
6600 (asm_language_data): Likewise.
6601 (minimal_language_data): Likewise.
6602 * d-lang.c (d_language_data): Likewise.
6603 * f-lang.c (f_language_data): Likewise.
6604 * go-lang.c (go_language_data): Likewise.
6605 * language.c (unknown_language_data): Likewise.
6606 (auto_language_data): Likewise.
6607 * language.h (language_data): Delete la_post_parser field.
6608 (language_defn::post_parser): New member function.
6609 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6610 * objc-lang.c (objc_language_data): Likewise.
6611 * opencl-lang.c (opencl_language_data): Likewise.
6612 * p-lang.c (pascal_language_data): Likewise.
6613 * parse.c (parse_exp_in_context): Update call to post_parser.
6614 (null_post_parser): Delete definition.
6615 * parser-defs.h (null_post_parser): Delete declaration.
6616 * rust-lang.c (rust_language_data): Delete la_post_parser
6617 initializer.
6618
87afa652
AB
66192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6620
6621 * ada-lang.c (parse): Rename to ada_language::parser.
6622 (ada_language_data): Delete la_parser initializer.
6623 (ada_language::parser): New member function, implementation from
6624 parse.
6625 * c-lang.c (c_language_data): Delete la_parser initializer.
6626 (cplus_language_data): Likewise.
6627 (asm_language_data): Likewise.
6628 (minimal_language_data): Likewise.
6629 * d-lang.c (d_language_data): Likewise.
6630 (d_language::parser): New member function.
6631 * f-lang.c (f_language_data): Delete la_parser initializer.
6632 (f_language::parser): New member function.
6633 * go-lang.c (go_language_data): Delete la_parser initializer.
6634 (go_language::parser): New member function.
6635 * language.c (unk_lang_parser): Delete.
6636 (language_defn::parser): Define new member function.
6637 (unknown_language_data): Delete la_parser initializer.
6638 (unknown_language::parser): New member function.
6639 (auto_language_data): Delete la_parser initializer.
6640 (auto_language::parser): New member function.
6641 * language.h (language_data): Delete la_parser field.
6642 (language_defn::parser): Declare new member function.
6643 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6644 (m2_language::parser): New member function.
6645 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6646 * opencl-lang.c (opencl_language_data): Likewise.
6647 * p-lang.c (pascal_language_data): Likewise.
6648 (pascal_language::parser): New member function.
6649 * parse.c (parse_exp_in_context): Update call to parser.
6650 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6651 (rust_language::parser): New member function.
6652
37825800
AB
66532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6654
6655 * top.c (print_gdb_configuration): Print --with-python-libdir
6656 configuration value.
6657
5b860c93
PW
66582020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6659
6660 * NEWS: Mention change to the alias command.
6661
cf00cd6f
PW
66622020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6663
6664 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6665 (alias_command_completer)
6666 (make_alias_options_def_group): New functions.
6667 (alias_opts, alias_option_defs): New struct and array.
6668 (alias_usage_error): Update usage.
6669 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6670 Use option framework.
6671 (_initialize_cli_cmds): Update alias command help.
6672 Update aliases command help.
6673 (show_user):
6674 Add NULL for new default_args lookup_cmd argument.
6675 (valid_command_p): Rename to validate_aliased_command.
6676 Add NULL for new default_args lookup_cmd argument. Verify that the
6677 aliased_command has no default args.
6678 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6679 (lookup_cmd_1, lookup_cmd): New argument default_args.
6680 (add_alias_cmd):
6681 Add NULL for new default_args lookup_cmd argument.
6682 (print_help_for_command): Show default args under the layout
6683 alias some_alias = some_aliased_cmd some_alias_default_arg.
6684 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6685 xfree default_args in destructor.
6686 * cli/cli-script.c (process_next_line, do_define_command):
6687 Add NULL for new default_args lookup_cmd argument.
6688 * command.h: Declare new default_args argument in lookup_cmd
6689 and lookup_cmd_1.
6690 * completer.c (complete_line_internal_1):
6691 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6692 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6693 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6694 Likewise.
6695 * infcmd.c (_initialize_infcmd): Likewise.
6696 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6697 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6698 * python/py-param.c (add_setshow_generic): Likewise.
6699 * remote.c (_initialize_remote): Likewise.
6700 * top.c (execute_command): Prepend default_args if command has some.
6701 (set_verbose):
6702 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6703 * tracepoint.c (validate_actionline, encode_actions_1):
6704 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6705
bd920864
TBA
67062020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6707
6708 * jit.c (jit_read_descriptor): Use bool as the return type.
6709 (jit_breakpoint_re_set_internal): Use bool as the return type.
6710 Invert the return value logic; return true if the jit breakpoint
6711 has been successfully initialized.
6712 (jit_inferior_init): Update the call to
6713 jit_breakpoint_re_set_internal.
6714
f8098322
PA
67152020-06-22 Pedro Alves <palves@redhat.com>
6716
6717 PR gdb/25939
6718 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6719 Use the current inferior instead. Don't return
6720 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6721 wait again.
6722 * sol-thread.c (sol_thread_target::wait): Don't reference
6723 inferior_ptid.
6724 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6725 (sol_update_thread_list_callback): Use the current inferior's pid
6726 instead of inferior_ptid.
6727
196535a6
RO
67282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6729
6730 * procfs.c: Cleanup many comments.
6731
6732 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6733 (AFTER_WATCHFLAG): Replace by value.
6734
6735 (MAIN_PROC_NAME_FORMAT): Inline ...
6736 (create_procinfo): ... here.
6737
6738 (procfs_debug_inferior): Remove SYS_exec handling.
6739 (syscall_is_exec): Likewise.
6740 (procfs_set_exec_trap): Likewise.
6741
6742 (syscall_is_lwp_exit): Inline in callers.
6743 (syscall_is_exit): Likewise.
6744 (syscall_is_exec): Likewise.
6745 (syscall_is_lwp_create): Likewise.
6746
6747 (invalidate_cache): Remove #if 0 code.
6748
6749 (make_signal_thread_runnable): Remove.
6750 (procfs_target::resume): Remove #if 0 code.
6751
cf6f3e86
RO
67522020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6753
6754 PR gdb/25939
6755 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6756 call ...
6757 (procfs_target::create_inferior): ... here.
6758
48e9cc84
PW
67592020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6760
6761 * exec.c (validate_exec_file): Ensure the build-id is up to
6762 date by calling reopen_exec_file (that checks file timestamp
6763 to decide to re-read the file).
6764
3922b302
PA
67652020-06-18 Pedro Alves <palves@redhat.com>
6766
6767 PR gdb/25412
6768 * gdbthread.h (delete_thread, delete_thread_silent)
6769 (find_thread_ptid): Update comments.
6770 * thread.c (current_thread_): New global.
6771 (is_current_thread): Move higher, and reimplement.
6772 (inferior_thread): Reimplement.
6773 (set_thread_exited): Use bool. Add assertions.
6774 (add_thread_silent): Simplify thread-reuse handling by always
6775 calling delete_thread.
6776 (delete_thread): Remove intro comment.
6777 (find_thread_ptid): Skip exited threads.
6778 (switch_to_thread_no_regs): Write to current_thread_.
6779 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6780 INFERIOR_PTID. Clear current_thread_.
6781
6dbdab44
PA
67822020-06-18 Pedro Alves <palves@redhat.com>
6783
6784 * aix-thread.c (pd_update): Use switch_to_thread.
6785
2da4b788
PA
67862020-06-18 Pedro Alves <palves@redhat.com>
6787
6788 * ravenscar-thread.c (ravenscar_thread_target): Update.
6789 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6790 (ravenscar_thread_target::add_active_thread): ... this. Don't
6791 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6792 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6793
50838d1b
PA
67942020-06-18 Pedro Alves <palves@redhat.com>
6795
6796 * nat/windows-nat.c (current_windows_thread): Remove.
6797 * nat/windows-nat.h (current_windows_thread): Remove.
6798 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6799 Adjust.
6800 (display_selectors): Adjust to fetch the current
6801 windows_thread_info based on inferior_ptid.
6802 (fake_create_process): No longer write to current_windows_thread.
6803 (windows_nat_target::get_windows_debug_event):
6804 Don't set inferior_ptid or current_windows_thread.
6805 (windows_nat_target::wait): Adjust to not rely on
6806 current_windows_thread.
6807 (do_initial_windows_stuff): Now a method of windows_nat_target.
6808 Switch to the last_ptid thread.
6809 (windows_nat_target::attach): Adjust.
6810 (windows_nat_target::detach): Use switch_to_no_thread instead of
6811 writing to inferior_ptid directly.
6812 (windows_nat_target::create_inferior): Adjust.
6813
31ce04e9
PA
68142020-06-18 Pedro Alves <palves@redhat.com>
6815
6816 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6817
1ee1a363
PA
68182020-06-18 Pedro Alves <palves@redhat.com>
6819
6820 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6821 after creating it, instead of writing to inferior_ptid. Don't
6822 write to inferior_ptid.
6823
6d350754
PA
68242020-06-18 Pedro Alves <palves@redhat.com>
6825
6826 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6827
5d971d48
PA
68282020-06-18 Pedro Alves <palves@redhat.com>
6829
6830 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6831 it, instead of writing to inferior_ptid.
6832
86e57d1b
PA
68332020-06-18 Pedro Alves <palves@redhat.com>
6834
6835 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6836 to inferior_ptid.
6837
f2e1c129
PA
68382020-06-18 Pedro Alves <palves@redhat.com>
6839
6840 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6841 instead of writing to inferior_ptid directly.
6842
60db1b85
PA
68432020-06-18 Pedro Alves <palves@redhat.com>
6844
6845 * corelow.c (core_target::close): Use switch_to_no_thread instead
6846 of writing to inferior_ptid directly.
6847 (add_to_thread_list, core_target_open): Use switch_to_thread
6848 instead of writing to inferior_ptid directly.
6849
fe7d6a8d
PA
68502020-06-18 Pedro Alves <palves@redhat.com>
6851
6852 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6853 inferior_ptid.
6854 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6855 inferior_ptid.
6856 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6857 inferior_ptid directly.
6858 (darwin_nat_target::init_thread_list): Switch to thread, instead
6859 of writing to inferior_ptid.
6860 (darwin_nat_target::attach): Don't write to inferior_ptid.
6861 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6862
975f8708
PA
68632020-06-18 Pedro Alves <palves@redhat.com>
6864
6865 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6866 thread.
6867 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6868 Instead use switch_to_thread.
6869 (gnu_nat_target::detach): Use switch_to_no_thread
6870 instead of writing to inferior_ptid directly. Used passed-in
6871 inferior instead of looking up the inferior by pid.
6872
1a204730
PA
68732020-06-18 Pedro Alves <palves@redhat.com>
6874
6875 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6876 inferior_ptid.
6877
ebe84f23
PA
68782020-06-18 Pedro Alves <palves@redhat.com>
6879
6880 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6881 inferior_ptid.
6882 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6883 thread.
6884 (nto_procfs_target::detach): Avoid referencing
6885 inferior_ptid. Use switch_to_no_thread instead of writing to
6886 inferior_ptid directly.
6887 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6888 instead of writing to inferior_ptid directly.
6889 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6890 to thread.
6891
191f02e5
PA
68922020-06-18 Pedro Alves <palves@redhat.com>
6893
6894 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6895 after creating it, instead of writing to inferior_ptid.
6896 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6897 to inferior_ptid directly.
6898 (gdbsim_target::wait): Don't write to inferior_ptid.
6899
0ac55310
PA
69002020-06-18 Pedro Alves <palves@redhat.com>
6901
6902 * remote.c (remote_target::remote_notice_new_inferior): Use
6903 switch_to_thread instead of writing to inferior_ptid directly.
6904 (remote_target::add_current_inferior_and_thread): Use
6905 switch_to_no_thread instead of writing to inferior_ptid directly.
6906 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6907 and switch_to_thread instead of using set_current_inferior or
6908 writing to inferior_ptid directly.
6909
5233f39b
PA
69102020-06-18 Pedro Alves <palves@redhat.com>
6911
6912 * tracectf.c (ctf_target_open): Switch to added thread instead of
6913 writing to inferior_ptid directly.
6914 (ctf_target::close): Use switch_to_no_thread instead of writing to
6915 inferior_ptid directly.
6916
087e161b
PA
69172020-06-18 Pedro Alves <palves@redhat.com>
6918
6919 * tracefile-tfile.c (tfile_target_open): Don't write to
6920 inferior_ptid directly, instead switch to added thread.
6921 (tfile_target::close): Use switch_to_no_thread instead of writing
6922 to inferior_ptid directly.
6923
7fb43e53
PA
69242020-06-18 Pedro Alves <palves@redhat.com>
6925
6926 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6927 (procfs_target::detach): Use switch_to_no_thread
6928 instead of writing to inferior_ptid directly.
6929 (do_attach): Change return type to void. Switch to the added
6930 thread.
6931 (procfs_target::create_inferior): Switch to the added thread.
6932 (procfs_do_thread_registers): Don't write to inferior_ptid.
6933
18493a00
PA
69342020-06-18 Pedro Alves <palves@redhat.com>
6935
6936 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6937 of writing to inferior_ptid.
6938 (scoped_restore_exited_inferior): Delete.
6939 (handle_vfork_child_exec_or_exit): Simplify using
6940 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6941 instead of writing to inferior_ptid.
6942 (THREAD_STOPPED_BY): Delete.
6943 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6944 (thread_stopped_by_hw_breakpoint): Delete.
6945 (save_waitstatus): Use
6946 scoped_restore_current_thread+switch_to_thread, and call
6947 target_stopped_by_watchpoint instead of
6948 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6949 instead of thread_stopped_by_sw_breakpoint, and
6950 target_stopped_by_hw_breakpoint instead of
6951 thread_stopped_by_hw_breakpoint.
6952 (handle_inferior_event)
6953 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6954 inferior_ptid directly, nor
6955 set_current_inferior/set_current_program_space. Use
6956 switch_to_thread / switch_to_inferior_no_thread instead.
6957
a0776b13
PA
69582020-06-18 Pedro Alves <palves@redhat.com>
6959
6960 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6961 instead of writing to inferior_ptid.
6962
6155c136
PA
69632020-06-18 Pedro Alves <palves@redhat.com>
6964
6965 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6966 added thread.
6967 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6968 to the added thread.
6969 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6970 instead of writing to inferior_ptid.
6971
c5316fc6
PA
69722020-06-18 Pedro Alves <palves@redhat.com>
6973
6974 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6975 (register_to_value_test): Mock a program_space too. Heap-allocate
6976 the address space. Don't write to inferior_ptid. Use
6977 switch_to_thread instead.
6978
8df01799
PA
69792020-06-18 Pedro Alves <palves@redhat.com>
6980
6981 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6982 Delete.
6983 (find_signalled_thread()): New, factored out from
6984 linux_make_corefile_notes and adjusted to handle exited threads.
6985 (linux_make_corefile_notes): Adjust to use the new
6986 find_signalled_thread.
6987
41792d68
PA
69882020-06-18 Pedro Alves <palves@redhat.com>
6989
6990 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6991 of saving/restoring inferior_ptid.
6992
612f258a
TT
69932020-06-17 Tom Tromey <tom@tromey.com>
6994
6995 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6996 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6997 declare.
6998 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6999
efb763a5
SM
70002020-06-15 Simon Marchi <simon.marchi@efficios.com>
7001
7002 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7003 of partial symtabs.
7004
2951f6c0
SM
70052020-06-17 Simon Marchi <simon.marchi@efficios.com>
7006
7007 * regformats/reg-arm.dat: Remove.
7008 * regformats/reg-bfin.dat: Remove.
7009 * regformats/reg-cris.dat: Remove.
7010 * regformats/reg-crisv32.dat: Remove.
7011 * regformats/reg-m32r.dat: Remove.
7012 * regformats/reg-tilegx.dat: Remove.
7013 * regformats/reg-tilegx32.dat: Remove.
7014
7d458ea5
SM
70152020-06-17 Simon Marchi <simon.marchi@efficios.com>
7016
7017 * features/Makefile (WHICH): Remove arm files.
7018 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7019 * regformats/arm/arm-with-neon.dat: Remove.
7020 * regformats/arm/arm-with-vfpv2.dat: Remove.
7021 * regformats/arm/arm-with-vfpv3.dat: Remove.
7022
3af96c0d
SM
70232020-06-17 Simon Marchi <simon.marchi@efficios.com>
7024
7025 * features/Makefile (XMLTOC): Remove rx.xml.
7026
b25e22fd
PA
70272020-06-17 Pedro Alves <palves@redhat.com>
7028
7029 * gdbthread.h (thread_control_state) <trap_expected> Update
7030 comments.
7031
a78a19b1
AB
70322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7033
7034 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7035 ada_language::lookup_symbol_nonlocal.
7036 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7037 (ada_language::lookup_symbol_nonlocal): New member function,
7038 implementation from ada_lookup_symbol_nonlocal.
7039 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7040 initializer.
7041 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7042 initializer.
7043 (cplus_language::lookup_symbol_nonlocal): New member function.
7044 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7045 (minimal_language_data) Likewise.
7046 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7047 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7048 initializer.
7049 (d_language::lookup_symbol_nonlocal): New member function.
7050 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7051 initializer.
7052 (f_language::lookup_symbol_nonlocal): New member function.
7053 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7054 initializer.
7055 * language.c (unknown_language_data): Likewise.
7056 (auto_language_data): Likewise.
7057 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7058 field.
7059 (language_defn::lookup_symbol_nonlocal): New member function.
7060 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7061 initializer.
7062 * objc-lang.c (objc_language_data): Likewise.
7063 * opencl-lang.c (opencl_language_data): Likewise.
7064 * p-lang.c (pascal_language_data): Likewise.
7065 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7066 rust_language::lookup_symbol_nonlocal.
7067 (rust_language_data): Delete la_lookup_symbol_nonlocal
7068 initializer.
7069 (rust_language::lookup_symbol_nonlocal): New member function,
7070 implementation from rust_lookup_symbol_nonlocal.
7071 * symtab.c (lookup_symbol_aux): Update call to
7072 lookup_symbol_nonlocal.
7073 (basic_lookup_symbol_nonlocal): Rename to...
7074 (language_defn::lookup_symbol_nonlocal): ...this, and update
7075 header comment. Remove language_defn parameter, and replace with
7076 uses of `this'.
7077 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7078
ebe2334e
AB
70792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7080
7081 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7082 initializer.
7083 (ada_language::value_print_inner): New member function.
7084 * c-lang.c (c_language_data): Delete la_value_print_inner
7085 initializer.
7086 (cplus_language_data): Likewise.
7087 (asm_language_data): Likewise.
7088 (minimal_language_data): Likewise.
7089 * d-lang.c (d_language_data): Likewise.
7090 (d_language::value_print_inner): New member function.
7091 * f-lang.c (f_language_data): Delete la_value_print_inner
7092 initializer.
7093 (f_language::value_print_inner): New member function.
7094 * f-lang.h (f_value_print_innner): Rename to...
7095 (f_value_print_inner): ...this (note spelling of 'inner').
7096 * f-valprint.c (f_value_print_innner): Rename to...
7097 (f_value_print_inner): ...this (note spelling of 'inner').
7098 * go-lang.c (go_language_data): Delete la_value_print_inner
7099 initializer.
7100 (go_language::value_print_inner): New member function.
7101 * language.c (language_defn::value_print_inner): Define new member
7102 function.
7103 (unk_lang_value_print_inner): Delete.
7104 (unknown_language_data): Delete la_value_print_inner initializer.
7105 (unknown_language::value_print_inner): New member function.
7106 (auto_language_data): Delete la_value_print_inner initializer.
7107 (auto_language::value_print_inner): New member function.
7108 * language.h (language_data): Delete la_value_print_inner field.
7109 (language_defn::value_print_inner): Delcare new member function.
7110 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7111 initializer.
7112 (m2_language::value_print_inner): New member function.
7113 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7114 initializer.
7115 * opencl-lang.c (opencl_language_data): Likewise.
7116 * p-lang.c (pascal_language_data): Likewise.
7117 (pascal_language::value_print_inner): New member function.
7118 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7119 initializer.
7120 (rust_language::value_print_inner): New member function.
7121 * valprint.c (do_val_print): Update call to value_print_inner.
7122
a1d1fa3e
AB
71232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7124
7125 * ada-lang.c (ada_language_data): Delete la_value_print
7126 initializer.
7127 (ada_language::value_print): New member function.
7128 * c-lang.c (c_language_data): Delete la_value_print initializer.
7129 (cplus_language_data): Likewise.
7130 (asm_language_data): Likewise.
7131 (minimal_language_data): Likewise.
7132 * d-lang.c (d_language_data): Likewise.
7133 * f-lang.c (f_language_data): Likewise.
7134 * go-lang.c (go_language_data): Likewise.
7135 * language.c (unk_lang_value_print): Delete.
7136 (language_defn::value_print): Define new member function.
7137 (unknown_language_data): Delete la_value_print initializer.
7138 (unknown_language::value_print): New member function.
7139 (auto_language_data): Delete la_value_print initializer.
7140 (auto_language::value_print): New member function.
7141 * language.h (language_data): Delete la_value_print field.
7142 (language_defn::value_print): Declare new member function.
7143 (LA_VALUE_PRINT): Update call to value_print.
7144 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7145 * objc-lang.c (objc_language_data): Likewise.
7146 * opencl-lang.c (opencl_language_data): Likewise.
7147 * p-lang.c (pascal_language_data): Likewise.
7148 (pascal_language::value_print): New member function.
7149 * rust-lang.c (rust_language_data): Delete la_value_print
7150 initializer.
7151
f16a9f57
AB
71522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7153
7154 * ada-lang.c (ada_watch_location_expression): Rename to
7155 ada_language::watch_location_expression.
7156 (ada_language_data): Delete la_watch_location_expression
7157 initializer.
7158 (ada_language::watch_location_expression): New member function,
7159 implementation from ada_watch_location_expression.
7160 * breakpoint.c (watch_command_1): Update call to
7161 watch_location_expression.
7162 * c-lang.c (c_watch_location_expression): Rename to
7163 language_defn::watch_location_expression.
7164 (c_language_data): Delete la_watch_location_expression
7165 initializer.
7166 (cplus_language_data): Likewise.
7167 (asm_language_data): Likewise.
7168 (minimal_language_data): Likewise.
7169 * c-lang.h (c_watch_location_expression): Delete declaration.
7170 * d-lang.c (d_language_data): Delete la_watch_location_expression
7171 initializer.
7172 * f-lang.c (f_language_data): Likewise.
7173 * go-lang.c (go_language_data): Likewise.
7174 * language.c (language_defn::watch_location_expression): Member
7175 function implementation from c_watch_location_expression.
7176 (unknown_language_data): Delete la_watch_location_expression
7177 initializer.
7178 (auto_language_data): Likewise.
7179 * language.h (language_data): Delete la_watch_location_expression
7180 field.
7181 (language_defn::watch_location_expression): Declare new member
7182 function.
7183 * m2-lang.c (m2_language_data): Delete
7184 la_watch_location_expression initializer.
7185 * objc-lang.c (objc_language_data): Likewise.
7186 * opencl-lang.c (opencl_language_data): Likewise.
7187 * p-lang.c (pascal_language_data): Likewise.
7188 * rust-lang.c (rust_watch_location_expression): Rename to
7189 rust_language::watch_location_expression.
7190 (rust_language_data): Delete la_watch_location_expression
7191 initializer.
7192 (rust_language::watch_location_expression): New member function,
7193 implementation from rust_watch_location_expression.
7194
7e56227d
AB
71952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7196
7197 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7198 ada_language::collect_symbol_completion_matches.
7199 (ada_language_data): Delete la_collect_symbol_completion_matches
7200 initializer.
7201 (ada_language::collect_symbol_completion_matches): New member
7202 function, implementation from
7203 ada_collect_symbol_completion_matches.
7204 * c-lang.c (c_language_data): Delete
7205 la_collect_symbol_completion_matches initializer.
7206 (cplus_language_data): Likewise.
7207 (asm_language_data): Likewise.
7208 (minimal_language_data): Likewise.
7209 * d-lang.c (d_language_data): Likewise.
7210 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7211 f_language::collect_symbol_completion_matches.
7212 (f_language_data): Delete la_collect_symbol_completion_matches
7213 initializer.
7214 (f_language::collect_symbol_completion_matches) New member
7215 function, implementation from f_collect_symbol_completion_matches.
7216 * go-lang.c (go_language_data): Delete
7217 la_collect_symbol_completion_matches initializer.
7218 * language.c (unknown_language_data): Likewise.
7219 (auto_language_data): Likewise.
7220 * language.h (language_data): Delete
7221 la_collect_symbol_completion_matches field.
7222 (language_defn::collect_symbol_completion_matches): New member
7223 function.
7224 * m2-lang.c (m2_language_data): Delete
7225 la_collect_symbol_completion_matches initializer.
7226 * objc-lang.c (objc_language_data): Likewise.
7227 * opencl-lang.c (opencl_language_data): Likewise.
7228 * p-lang.c (pascal_language_data): Likewise.
7229 * rust-lang.c (rust_language_data): Likewise.
7230 * symtab.c (default_collect_symbol_completion_matches): Delete.
7231 (collect_symbol_completion_matches): Update call to
7232 collect_symbol_completion_matches.
7233 (collect_symbol_completion_matches_type): Likewise.
7234 * symtab.h (default_collect_symbol_completion_matches): Delete
7235 declaration.
7236
53fc67f8
AB
72372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7238
7239 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7240 (ada_language_data): Delete la_word_break_characters initializer.
7241 (ada_language::word_break_characters): New member function.
7242 * c-lang.c (c_language_data): Delete la_word_break_characters
7243 initializer.
7244 (cplus_language_data): Likewise.
7245 (asm_language_data): Likewise.
7246 (minimal_language_data): Likewise.
7247 * completer.c: Update global comment.
7248 (advance_to_expression_complete_word_point): Update call to
7249 word_break_characters.
7250 (complete_files_symbols): Likewise.
7251 (complete_line_internal_1): Likewise.
7252 (default_completer_handle_brkchars): Likewise.
7253 (skip_quoted_chars): Likewise.
7254 * d-lang.c (d_language_data): Delete la_word_break_characters
7255 initializer.
7256 * f-lang.c (f_word_break_characters): Delete.
7257 (f_language_data): Delete la_word_break_characters initializer.
7258 (f_language::word_break_characters): New member function.
7259 * go-lang.c (go_language_data): Delete la_word_break_characters
7260 initializer.
7261 * language.c (unknown_language_data): Likewise.
7262 (auto_language_data): Likewise.
7263 * language.h (default_word_break_characters): Move declaration to
7264 earlier in the file.
7265 (language_data): Delete la_word_break_characters field.
7266 (language_defn::word_break_characters): New member function.
7267 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7268 initializer.
7269 * objc-lang.c (objc_language_data): Likewise.
7270 * opencl-lang.c (opencl_language_data): Likewise.
7271 * p-lang.c (pascal_language_data): Likewise.
7272 * rust-lang.c (rust_language_data): Likewise.
7273
c9debfb9
AB
72742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7275
7276 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7277 (ada_language_data): Delete la_get_symbol_name_matcher
7278 initializer.
7279 (language_defn::get_symbol_name_matcher_inner): New member
7280 function.
7281 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7282 initializer.
7283 (cplus_language_data): Likewise.
7284 (cplus_language::get_symbol_name_matcher_inner): New member
7285 function.
7286 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7287 (minimal_language_data): Likewise.
7288 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7289 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7290 initializer.
7291 * dictionary.c (iter_match_first_hashed): Update call to
7292 get_symbol_name_matcher.
7293 (iter_match_next_hashed): Likewise.
7294 (iter_match_next_linear): Likewise.
7295 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7296 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7297 initializer.
7298 (f_language::get_symbol_name_matcher_inner): New member function.
7299 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7300 initializer.
7301 * language.c (default_symbol_name_matcher): Update header comment,
7302 make static.
7303 (language_defn::get_symbol_name_matcher): New definition.
7304 (language_defn::get_symbol_name_matcher_inner): Likewise.
7305 (get_symbol_name_matcher): Delete.
7306 (unknown_language_data): Delete la_get_symbol_name_matcher
7307 initializer.
7308 (auto_language_data): Likewise.
7309 * language.h (language_data): Delete la_get_symbol_name_matcher
7310 field.
7311 (language_defn::get_symbol_name_matcher): New member function.
7312 (language_defn::get_symbol_name_matcher_inner): Likewise.
7313 (default_symbol_name_matcher): Delete declaration.
7314 * linespec.c (find_methods): Update call to
7315 get_symbol_name_matcher.
7316 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7317 initializer.
7318 * minsyms.c (lookup_minimal_symbol): Update call to
7319 get_symbol_name_matcher.
7320 (iterate_over_minimal_symbols): Likewise.
7321 * objc-lang.c (objc_language_data): Delete
7322 la_get_symbol_name_matcher initializer.
7323 * opencl-lang.c (opencl_language_data): Likewise.
7324 * p-lang.c (pascal_language_data): Likewise.
7325 * psymtab.c (psymbol_name_matches): Update call to
7326 get_symbol_name_matcher.
7327 * rust-lang.c (rust_language_data): Delete
7328 la_get_symbol_name_matcher initializer.
7329 * symtab.c (symbol_matches_search_name): Update call to
7330 get_symbol_name_matcher.
7331 (compare_symbol_name): Likewise.
7332
9a49ad8c
AB
73332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7334
7335 * ada-lang.c (ada_language_data): Delete la_compute_program
7336 initializer.
7337 * c-lang.c (c_language_data): Likewise.
7338 (c_language::compute_program): New member function.
7339 (cplus_language_data): Delete la_compute_program initializer.
7340 (cplus_language::compute_program): New member function.
7341 (asm_language_data): Delete la_compute_program initializer.
7342 (minimal_language_data): Likewise.
7343 * c-lang.h (c_compute_program): Update comment.
7344 (cplus_compute_program): Likewise.
7345 * compile/compile-c-support.c (c_compute_program): Likewise.
7346 (cplus_compute_program): Likewise.
7347 * compile/compile.c (compile_to_object): Update call to
7348 la_compute_program.
7349 * d-lang.c (d_language_data): Delete la_compute_program
7350 initializer.
7351 * f-lang.c (f_language_data): Likewise.
7352 * go-lang.c (go_language_data): Likewise.
7353 * language.c (unknown_language_data): Likewise.
7354 (auto_language_data): Likewise.
7355 * language.h (language_data): Delete la_compute_program field.
7356 (language_defn::compute_program): New member function.
7357 * m2-lang.c (m2_language_data): Delete la_compute_program
7358 initializer.
7359 * objc-lang.c (objc_language_data): Likewise.
7360 * opencl-lang.c (opencl_language_data): Likewise.
7361 * p-lang.c (pascal_language_data): Likewise.
7362 * rust-lang.c (rust_language_data): Likewise.
7363
eff93b4d
AB
73642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7365
7366 * ada-lang.c (ada_language_data) Delete
7367 la_class_name_from_physname initializer.
7368 * c-lang.c (c_language_data): Likewise.
7369 (cplus_language_data): Likewise.
7370 (cplus_language::class_name_from_physname): New member function.
7371 (asm_language_data): Delete la_class_name_from_physname
7372 initializer.
7373 (minimal_language_data): Likewise.
7374 * d-lang.c (d_language_data): Likewise.
7375 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7376 method on language_defn class.
7377 (guess_full_die_structure_name): Likewise.
7378 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7379 initializer.
7380 * go-lang.c (go_language_data): Likewise.
7381 * language.c (language_class_name_from_physname): Delete.
7382 (unk_lang_class_name): Delete.
7383 (unknown_language_data): Delete la_class_name_from_physname
7384 initializer.
7385 (auto_language_data): Likewise.
7386 * language.h (language_data): Delete la_class_name_from_physname
7387 field.
7388 (language_defn::class_name_from_physname): New function.
7389 (language_class_name_from_physname): Delete declaration.
7390 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7391 initializer.
7392 * objc-lang.c (objc_language_data): Likewise.
7393 * opencl-lang.c (opencl_language_data): Likewise.
7394 * p-lang.c (pascal_language_data): Likewise.
7395 * rust-lang.c (rust_language_data): Likewise.
7396
de543742
TT
73972020-06-16 Tom Tromey <tom@tromey.com>
7398
7399 * tui/tui-data.h (STATUS_NAME): New macro.
7400 * tui/tui-layout.c (tui_remove_some_windows)
7401 (initialize_known_windows, tui_register_window)
7402 (tui_layout_split::remove_windows, initialize_layouts)
7403 (tui_new_layout_command): Don't use hard-coded window names.
7404
a350efd4
TT
74052020-06-16 Tom Tromey <tom@tromey.com>
7406
7407 PR tui/25348:
7408 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7409 tui_initialize_readline. Only run once. Call rl_initialize.
7410 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7411 tui_initialize_readline.
7412 * tui/tui-io.c (tui_setup_io): Call
7413 tui_ensure_readline_initialized.
7414 * tui/tui-interp.c (tui_interp::init): Update.
7415
39ec0490
TT
74162020-06-16 Tom Tromey <tom@tromey.com>
7417
7418 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7419 Also preserve the status window.
7420
d2d1ea20
TT
74212020-06-16 Tom Tromey <tom@tromey.com>
7422
7423 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7424 where m_window==nullptr.
7425
66920317
TT
74262020-06-15 Tom Tromey <tromey@adacore.com>
7427
7428 * windows-nat.c (windows_nat::handle_output_debug_string):
7429 Update.
7430 (windows_nat::handle_ms_vc_exception): Update.
7431 * target.h (target_read_string): Change API.
7432 * target.c (target_read_string): Change API.
7433 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7434 Update.
7435 * solib-frv.c (frv_current_sos): Update.
7436 * solib-dsbt.c (dsbt_current_sos): Update.
7437 * solib-darwin.c (darwin_current_sos): Update.
7438 * linux-thread-db.c (inferior_has_bug): Update.
7439 * expprint.c (print_subexp_standard): Update.
7440 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7441 (ada_exception_message_1): Update.
7442
a5d871dd
TT
74432020-06-15 Tom Tromey <tromey@adacore.com>
7444
7445 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7446
670e35fa
TT
74472020-06-15 Tom Tromey <tromey@adacore.com>
7448
7449 * valprint.c (read_string): Update comment.
7450 * target.c (MIN): Remove.
7451 (target_read_string): Rewrite.
7452
f5272a3b
TT
74532020-06-15 Tom Tromey <tromey@adacore.com>
7454
7455 * corefile.c (read_memory_string): Remove.
7456 * ada-valprint.c (ada_value_print_ptr): Update.
7457 * ada-lang.h (ada_tag_name): Change return type.
7458 * ada-lang.c (type_from_tag): Update.
7459 (ada_tag_name_from_tsd): Change return type. Use
7460 target_read_string.
7461 (ada_tag_name): Likewise.
7462 * gdbcore.h (read_memory_string): Don't declare.
7463
2c074f49
HD
74642020-06-14 Hannes Domani <ssbssa@yahoo.de>
7465
7466 * symtab.c (rbreak_command): Ignore Windows drive colon.
7467
6a17d503
SM
74682020-06-12 Simon Marchi <simon.marchi@efficios.com>
7469
7470 * NEWS: Mention removed GDBserver host support.
7471
453c733f
NC
74722020-06-12 Nelson Chu <nelson.chu@sifive.com>
7473
7474 * features/riscv/rebuild-csr-xml.sh: Updated.
7475
2b4e6a3f
TT
74762020-06-11 Tom Tromey <tom@tromey.com>
7477
7478 PR gdb/18318:
7479 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7480
4412332f
JG
74812020-06-09 Jonny Grant <jg@jguk.org>
74822020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7483
7484 * main.c (captured_main_1): Don't print new line after help.
7485 (print_gdb_help): add mailing list and IRC channel information
7486 to --help. Add new lines between items in the footer. Remove
7487 quotes around bug url.
7488
2f33032a
KS
74892020-06-11 Keith Seitz <keiths@redhat.com>
7490
7491 PR gdb/21356
7492 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7493 Resolve typedefs for type length calculations.
7494
7ab96794
TV
74952020-06-10 Tom de Vries <tdevries@suse.de>
7496
7497 PR ada/24713
7498 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7499 (write_psymbols): Enable .gdb_index for ada.
7500 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7501 ada.
7502
e5f3ece2
TV
75032020-06-10 Tom de Vries <tdevries@suse.de>
7504
7505 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7506 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7507 namei" instead of "const char *name" argument.
7508 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7509 dw2_symtab_iter_init.
7510
940da03e
SM
75112020-06-08 Simon Marchi <simon.marchi@efficios.com>
7512
7513 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7514 to use type::field and field::type instead.
7515
b6cdac4b
SM
75162020-06-08 Simon Marchi <simon.marchi@efficios.com>
7517
7518 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7519 to use field::type instead.
7520
5d14b6e5
SM
75212020-06-08 Simon Marchi <simon.marchi@efficios.com>
7522
7523 * gdbtypes.h (struct field) <type, set_type>: New methods.
7524 Rename `type` field to...
7525 <m_type>: ... this. Change references throughout to use type or
7526 set_type methods.
7527 (FIELD_TYPE): Use field::type. Change call sites that modify
7528 the field's type to use field::set_type instead.
7529
3d967001
SM
75302020-06-08 Simon Marchi <simon.marchi@efficios.com>
7531
7532 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7533 to use type::index_type instead.
7534
262abc0d
SM
75352020-06-08 Simon Marchi <simon.marchi@efficios.com>
7536
7537 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7538 methods.
7539 (TYPE_INDEX_TYPE): Use type::index_type.
7540 * gdbtypes.c (create_array_type_with_stride): Likewise.
7541
82836c92
TT
75422020-06-07 Tom Tromey <tom@tromey.com>
7543
7544 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7545 parameter.
7546 (generic_value_print): Update.
7547
940dace9
AB
75482020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7549
7550 Revert commit 982a38f60b0.
7551 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7552
982a38f6
AB
75532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7554
7555 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7556 avoid use after free.
7557
82f06518
TV
75582020-06-05 Tom de Vries <tdevries@suse.de>
7559
7560 * NEWS: Fix typos.
7561
f8c41851
SM
75622020-06-04 Simon Marchi <simon.marchi@efficios.com>
7563
7564 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7565 the per_bfd object.
7566 (dwarf2_read_debug_names): Likewise.
7567 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7568 object when re-using a per_bfd object with an index.
7569
f9b5d5ea
TV
75702020-06-03 Tom de Vries <tdevries@suse.de>
7571
7572 PR symtab/26046
7573 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7574 children for C++.
7575 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7576 DW_TAG_subprogram.
7577
f6eee2d0
AB
75782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7579
7580 * ada-lang.c (ada_language_data): Delete skip_trampoline
7581 initializer.
7582 * c-lang.c (c_language_data): Likewise.
7583 (cplus_language_data): Likewise.
7584 (cplus_language::skip_trampoline): New member function.
7585 (asm_language_data): Delete skip_trampoline initializer.
7586 (minimal_language_data): Likewise.
7587 * d-lang.c (d_language_data): Likewise.
7588 * f-lang.c (f_language_data): Likewise.
7589 * go-lang.c (go_language_data): Likewise.
7590 * language.c (unk_lang_trampoline): Delete function.
7591 (skip_language_trampoline): Update.
7592 (unknown_language_data): Delete skip_trampoline initializer.
7593 (auto_language_data): Likewise.
7594 * language.h (language_data): Delete skip_trampoline field.
7595 (language_defn::skip_trampoline): New function.
7596 * m2-lang.c (m2_language_data): Delete skip_trampoline
7597 initializer.
7598 * objc-lang.c (objc_skip_trampoline): Delete function, move
7599 implementation to objc_language::skip_trampoline.
7600 (objc_language_data): Delete skip_trampoline initializer.
7601 (objc_language::skip_trampoline): New member function with
7602 implementation from objc_skip_trampoline.
7603 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7604 initializer.
7605 * p-lang.c (pascal_language_data): Likewise.
7606 * rust-lang.c (rust_language_data): Likewise.
7607
0a50df5d
AB
76082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7609
7610 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7611 (ada_language::demangle): New member function.
7612 * c-lang.c (c_language_data): Delete la_demangle initializer.
7613 (cplus_language_data): Delete la_demangle initializer.
7614 (cplus_language::demangle): New member function.
7615 (asm_language_data): Delete la_demangle initializer.
7616 (minimal_language_data): Delete la_demangle initializer.
7617 * d-lang.c (d_language_data): Delete la_demangle initializer.
7618 (d_language::demangle): New member function.
7619 * f-lang.c (f_language_data): Delete la_demangle initializer.
7620 (f_language::demangle): New member function.
7621 * go-lang.c (go_language_data): Delete la_demangle initializer.
7622 (go_language::demangle): New member function.
7623 * language.c (language_demangle): Update.
7624 (unk_lang_demangle): Delete.
7625 (unknown_language_data): Delete la_demangle initializer.
7626 (unknown_language::demangle): New member function.
7627 (auto_language_data): Delete la_demangle initializer.
7628 (auto_language::demangle): New member function.
7629 * language.h (language_data): Delete la_demangle field.
7630 (language_defn::demangle): New function.
7631 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7632 * objc-lang.c (objc_language_data): Delete la_demangle
7633 initializer.
7634 (objc_language::demangle): New member function.
7635 * opencl-lang.c (opencl_language_data): Delete la_demangle
7636 initializer.
7637 * p-lang.c (pascal_language_data): Likewise.
7638 * rust-lang.c (rust_language_data): Likewise.
7639 (rust_language::demangle): New member function.
7640
fbfb0a46
AB
76412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7642
7643 * ada-lang.c (ada_language_data): Delete la_print_type
7644 initializer.
7645 (ada_language::print_type): New member function.
7646 * c-lang.c (c_language_data): Delete la_print_type initializer.
7647 (c_language::print_type): New member function.
7648 (cplus_language_data): Delete la_print_type initializer.
7649 (cplus_language::print_type): New member function.
7650 (asm_language_data): Delete la_print_type initializer.
7651 (asm_language::print_type): New member function.
7652 (minimal_language_data): Delete la_print_type initializer.
7653 (minimal_language::print_type): New member function.
7654 * d-lang.c (d_language_data): Delete la_print_type initializer.
7655 (d_language::print_type): New member function.
7656 * f-lang.c (f_language_data): Delete la_print_type initializer.
7657 (f_language::print_type): New member function.
7658 * go-lang.c (go_language_data): Delete la_print_type initializer.
7659 (go_language::print_type): New member function.
7660 * language.c (unk_lang_print_type): Delete.
7661 (unknown_language_data): Delete la_print_type initializer.
7662 (unknown_language::print_type): New member function.
7663 (auto_language_data): Delete la_print_type initializer.
7664 (auto_language::print_type): New member function.
7665 * language.h (language_data): Delete la_print_type field.
7666 (language_defn::print_type): New function.
7667 (LA_PRINT_TYPE): Update.
7668 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7669 (m2_language::print_type): New member function.
7670 * objc-lang.c (objc_language_data): Delete la_print_type
7671 initializer.
7672 (objc_language::print_type): New member function.
7673 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7674 to opencl_language::print_type.
7675 (opencl_language_data): Delete la_print_type initializer.
7676 (opencl_language::print_type): New member function, implementation
7677 from opencl_print_type.
7678 * p-lang.c (pascal_language_data): Delete la_print_type
7679 initializer.
7680 (pascal_language::print_type): New member function.
7681 * rust-lang.c (rust_print_type): Delete, implementation moved to
7682 rust_language::print_type.
7683 (rust_language_data): Delete la_print_type initializer.
7684 (rust_language::print_type): New member function, implementation
7685 from rust_print_type.
7686
6f827019
AB
76872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7688
7689 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7690 implementation moves to...
7691 (ada_language::sniff_from_mangled_name): ...here. Update return
7692 type.
7693 (ada_language_data): Delete la_sniff_from_mangled_name
7694 initializer.
7695 * c-lang.c (c_language_data): Likewise.
7696 (cplus_language_data): Likewise.
7697 (cplus_language::sniff_from_mangled_name): New member function,
7698 implementation taken from gdb_sniff_from_mangled_name.
7699 (asm_language_data): Delete la_sniff_from_mangled_name
7700 initializer.
7701 (minimal_language_data): Likewise.
7702 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7703 implementation moves to cplus_language::sniff_from_mangled_name.
7704 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7705 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7706 moves to...
7707 (d_language::sniff_from_mangled_name): ...here.
7708 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7709 * f-lang.c (f_language_data): Likewise.
7710 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7711 moves to...
7712 (go_language::sniff_from_mangled_name): ...here.
7713 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7714 * language.c (language_sniff_from_mangled_name): Delete.
7715 (unknown_language_data): Delete la_sniff_from_mangled_name
7716 initializer.
7717 (auto_language_data): Likewise.
7718 * language.h (language_data): Delete la_sniff_from_mangled_name
7719 field.
7720 (language_defn::sniff_from_mangled_name): New function.
7721 (language_sniff_from_mangled_name): Delete declaration.
7722 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7723 field.
7724 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7725 implementation moves to...
7726 (objc_language::sniff_from_mangled_name): ...here.
7727 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7728 * opencl-lang.c (opencl_language_data): Likewise.
7729 * p-lang.c (pascal_language_data): Likewise.
7730 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7731 implementation moves to...
7732 (rust_language::sniff_from_mangled_name): ...here.
7733 (rust_language_data): Delete la_sniff_from_mangled_name
7734 initializer.
7735 * symtab.c (symbol_find_demangled_name): Call
7736 sniff_from_mangled_name member function.
7737
fb8006fd
AB
77382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7739
7740 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7741 initializer.
7742 * c-lang.c (c_language_data): Likewise.
7743 (cplus_language_data): Likewise.
7744 (cplus_language::search_name_hash): New member function.
7745 (asm_language_data): Delete la_search_name_hash initializer.
7746 (minimal_language_data): Likewise.
7747 * d-lang.c (d_language_data): Likewise.
7748 * dictionary.c (default_search_name_hash): Rename to...
7749 (language_defn::search_name_hash): ...this.
7750 * f-lang.c (f_language_data): Likewise.
7751 (f_language::search_name_hash): New member function.
7752 * go-lang.c (go_language_data): Delete la_search_name_hash
7753 initializer.
7754 * language.c (unknown_language_data): Likewise.
7755 (auto_language_data): Likewise.
7756 * language.h (struct language_data): Delete la_search_name_hash
7757 field.
7758 (language_defn::search_name_hash): Declare new member function.
7759 (default_search_name_hash): Delete declaration.
7760 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7761 initializer.
7762 * objc-lang.c (objc_language_data): Likewise.
7763 * opencl-lang.c (opencl_language_data): Likewise.
7764 * p-lang.c (pascal_language_data): Likewise.
7765 * rust-lang.c (rust_language_data): Likewise.
7766 * symtab.c (search_name_hash): Update call.
7767
8e25bafe
AB
77682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7769
7770 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7771 initializer.
7772 * c-lang.c (class compile_instance): Declare.
7773 (c_language_data): Delete la_get_compile_instance initializer.
7774 (c_language::get_compile_instance): New member function.
7775 (cplus_language_data): Delete la_get_compile_instance initializer.
7776 (cplus_language::get_compile_instance): New member function.
7777 (asm_language_data): Delete la_get_compile_instance initializer.
7778 (minimal_language_data): Likewise.
7779 * c-lang.h (c_get_compile_context): Update comment.
7780 (cplus_get_compile_context): Update comment.
7781 * compile/compile.c (compile_to_object): Update calls, don't rely
7782 on function pointer being NULL.
7783 * d-lang.c (d_language_data): Delete la_get_compile_instance
7784 initializer.
7785 * f-lang.c (f_language_data): Likewise.
7786 * go-lang.c (go_language_data): Likewise.
7787 * language.c (unknown_language_data): Likewise.
7788 (auto_language_data): Likewise.
7789 * language.h (language_data): Delete la_get_compile_instance field.
7790 (language_defn::get_compile_instance): New member function.
7791 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7792 initializer.
7793 * objc-lang.c (objc_language_data): Likewise.
7794 * opencl-lang.c (opencl_language_data): Likewise.
7795 * p-lang.c (pascal_language_data): Likewise.
7796 * rust-lang.c (rust_language_data): Likewise.
7797
4009ee92
AB
77982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7799
7800 * ada-lang.c (ada_add_all_symbols): Update comment.
7801 (ada_iterate_over_symbols): Delete, move implementation to...
7802 (ada_language::iterate_over_symbols): ...here, a new member
7803 function, rewrite to use range based for loop.
7804 (ada_language_data): Delete la_iterate_over_symbols initializer.
7805 * c-lang.c (c_language_data): Likewise.
7806 (cplus_language_data): Likewise.
7807 (asm_language_data): Likewise.
7808 (minimal_language_data): Likewise.
7809 * d-lang.c (d_language_data): Likewise.
7810 * f-lang.c (f_language_data): Likewise.
7811 * go-lang.c (go_language_data): Likewise.
7812 * language.c (unknown_language_data): Likewise.
7813 (auto_language_data): Likewise.
7814 * language.h (language_data): Delete la_iterate_over_symbols field.
7815 (language_defn::iterate_over_symbols): New member function.
7816 (LA_ITERATE_OVER_SYMBOLS): Update.
7817 * linespec.c (iterate_over_all_matching_symtabs): Update.
7818 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7819 initializer.
7820 * objc-lang.c (objc_language_data): Likewise.
7821 * opencl-lang.c (opencl_language_data): Likewise.
7822 * p-lang.c (pascal_language_data): Likewise.
7823 * rust-lang.c (rust_language_data): Likewise.
7824
54f4ca46
AB
78252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7826
7827 * ada-lang.c (ada_language_data): Delete
7828 la_lookup_transparent_type initializer.
7829 * c-lang.c (c_language_data): Likewise.
7830 (cplus_language_data): Likewise.
7831 (cplus_language::lookup_transparent_type): New member function.
7832 (asm_language_data): Delete la_lookup_transparent_type
7833 initializer.
7834 (minimal_language_data): Likewise.
7835 * d-lang.c (d_language_data): Likewise.
7836 * f-lang.c (f_language_data): Likewise.
7837 * go-lang.c (go_language_data): Likewise.
7838 * language.c (unknown_language_data): Likewise.
7839 (auto_language_data): Likewise.
7840 * language.h (struct language_data): Delete
7841 la_lookup_transparent_type field.
7842 (language_defn::lookup_transparent_type): New member function.
7843 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7844 initializer.
7845 * objc-lang.c (objc_language_data): Likewise.
7846 * opencl-lang.c (opencl_language_data): Likewise.
7847 * p-lang.c (pascal_language_data): Likewise.
7848 * rust-lang.c (rust_language_data): Likewise.
7849 * symtab.c (symbol_matches_domain): Update call.
7850
1fb314aa
AB
78512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7852
7853 * ada-lang.c (ada_language_arch_info): Delete function, move
7854 implementation to...
7855 (ada_language::language_arch_info): ...here, a new member
7856 function.
7857 (ada_language_data): Delete la_language_arch_info.
7858 * c-lang.c (c_language_data): Likewise.
7859 (c_language::language_arch_info): New member function.
7860 (cplus_language_arch_info): Delete function, move
7861 implementation to...
7862 (cplus_language::language_arch_info): ...here, a new member
7863 function.
7864 (cplus_language_data): Delete la_language_arch_info.
7865 (asm_language_data): Likewise.
7866 (asm_language::language_arch_info): New member function.
7867 (minimal_language_data): Delete la_language_arch_info.
7868 (minimal_language::language_arch_info): New member function.
7869 * d-lang.c (d_language_arch_info): Delete function, move
7870 implementation to...
7871 (d_language::language_arch_info): ...here, a new member
7872 function.
7873 (d_language_data): Delete la_language_arch_info.
7874 * f-lang.c (f_language_arch_info): Delete function, move
7875 implementation to...
7876 (f_language::language_arch_info): ...here, a new member
7877 function.
7878 (f_language_data): Delete la_language_arch_info.
7879 * go-lang.c (go_language_arch_info): Delete function, move
7880 implementation to...
7881 (go_language::language_arch_info): ...here, a new member
7882 function.
7883 (go_language_data): Delete la_language_arch_info.
7884 * language.c (unknown_language_data): Likewise.
7885 (unknown_language::language_arch_info): New member function.
7886 (auto_language_data): Delete la_language_arch_info.
7887 (auto_language::language_arch_info): New member function.
7888 (language_gdbarch_post_init): Update call to
7889 la_language_arch_info.
7890 * language.h (language_data): Delete la_language_arch_info
7891 function pointer.
7892 (language_defn::language_arch_info): New function.
7893 * m2-lang.c (m2_language_arch_info): Delete function, move
7894 implementation to...
7895 (m2_language::language_arch_info): ...here, a new member
7896 function.
7897 (m2_language_data): Delete la_language_arch_info.
7898 * objc-lang.c (objc_language_arch_info): Delete function, move
7899 implementation to...
7900 (objc_language::language_arch_info): ...here, a new member
7901 function.
7902 (objc_language_data): Delete la_language_arch_info.
7903 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7904 implementation to...
7905 (opencl_language::language_arch_info): ...here, a new member
7906 function.
7907 (opencl_language_data): Delete la_language_arch_info.
7908 * p-lang.c (pascal_language_arch_info): Delete function, move
7909 implementation to...
7910 (pascal_language::language_arch_info): ...here, a new member
7911 function.
7912 (pascal_language_data): Delete la_language_arch_info.
7913 * rust-lang.c (rust_language_arch_info): Delete function, move
7914 implementation to...
7915 (rust_language::language_arch_info): ...here, a new member
7916 function.
7917 (rust_language_data): Delete la_language_arch_info.
7918
48448202
AB
79192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7920
7921 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7922 initializer.
7923 * c-lang.c (c_language_data): Likewise.
7924 (cplus_language_data): Likewise.
7925 (cplus_language::pass_by_reference_info): New method.
7926 (asm_language_data): Delete la_pass_by_reference initializer.
7927 (minimal_language_data): Likewise.
7928 * cp-abi.c (cp_pass_by_reference): Remove use of
7929 default_pass_by_reference.
7930 * d-lang.c (d_language_data): Likewise.
7931 * f-lang.c (f_language_data): Likewise.
7932 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7933 default_pass_by_reference.
7934 * go-lang.c (go_language_data): Likewise.
7935 * language.c (language_pass_by_reference): Update.
7936 (default_pass_by_reference): Delete.
7937 (unknown_language_data): Delete la_pass_by_reference
7938 initializer.
7939 (auto_language_data): Likewise.
7940 * language.h (struct language_data): Delete la_pass_by_reference
7941 field.
7942 (language_defn::pass_by_reference_info): New member function.
7943 (default_pass_by_reference): Delete declaration.
7944 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7945 initializer.
7946 * objc-lang.c (objc_language_data): Likewise.
7947 * opencl-lang.c (opencl_language_data): Likewise.
7948 * p-lang.c (pascal_language_data): Likewise.
7949 * rust-lang.c (rust_language_data): Likewise.
7950
15e5fd35
AB
79512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7952
7953 * ada-lang.c (ada_read_var_value): Delete function, move
7954 implementation to...
7955 (ada_language::read_var_value): ...here.
7956 (ada_language_data): Delete la_read_var_value initializer.
7957 * c-lang.c (c_language_data): Likewise.
7958 (cplus_language_data): Likewise.
7959 (minimal_language_data): Likewise.
7960 * d-lang.c (d_language_data): Likewise.
7961 * f-lang.c (f_language_data): Likewise.
7962 * findvar.c (default_read_var_value): Rename to...
7963 (language_defn::read_var_value): ...this.
7964 * findvar.c (read_var_value): Update header comment, and change to
7965 call member function instead of function pointer.
7966 * go-lang.c (go_language_data): Likewise.
7967 * language.c (unknown_language_data): Delete la_read_var_value
7968 initializer.
7969 (auto_language_data): Likewise.
7970 * language.h (struct language_data): Delete la_read_var_value
7971 field.
7972 (language_defn::read_var_value): New member function.
7973 (default_read_var_value): Delete declaration.
7974 * m2-lang.c (m2_language_data): Delete la_read_var_value
7975 initializer.
7976 * objc-lang.c (objc_language_data): Likewise.
7977 * opencl-lang.c (opencl_language_data): Likewise.
7978 * p-lang.c (pascal_language_data): Likewise.
7979 * rust-lang.c (rust_language_data): Likewise.
7980 * value.h (default_read_var_value): Delete declaration.
7981
5bd40f2a
AB
79822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7983
7984 * ada-lang.c (ada_print_array_index): Delete function, move
7985 implementation to...
7986 (ada_language::print_array_index): ...here.
7987 (ada_language_data): Delete la_print_array_index initializer.
7988 * c-lang.c (c_language_data): Likewise.
7989 (cplus_language_data): Likewise.
7990 (minimal_language_data): Likewise.
7991 * d-lang.c (d_language_data): Likewise.
7992 * f-lang.c (f_language_data): Likewise.
7993 * go-lang.c (go_language_data): Likewise.
7994 * language.c (default_print_array_index): Delete function, move
7995 implementation to...
7996 (language_defn::print_array_index): ...here.
7997 (unknown_language_data): Delete la_print_array_index initializer.
7998 (auto_language_data): Likewise.
7999 * language.h (struct language_data): Delete la_print_array_index
8000 field.
8001 (language_defn::print_array_index): New member function.
8002 (LA_PRINT_ARRAY_INDEX): Update.
8003 (default_print_array_index): Delete declaration.
8004 * m2-lang.c (m2_language_data): Delete la_print_array_index
8005 initializer.
8006 * objc-lang.c (objc_language_data): Likewise.
8007 * opencl-lang.c (opencl_language_data): Likewise.
8008 * p-lang.c (pascal_language_data): Likewise.
8009 * rust-lang.c (rust_language_data): Likewise.
8010
0874fd07
AB
80112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8012
8013 * gdb/ada-lang.c (ada_language_defn): Convert to...
8014 (ada_language_data): ...this.
8015 (class ada_language): New class.
8016 (ada_language_defn): New static global.
8017 * gdb/c-lang.c (c_language_defn): Convert to...
8018 (c_language_data): ...this.
8019 (class c_language): New class.
8020 (c_language_defn): New static global.
8021 (cplus_language_defn): Convert to...
8022 (cplus_language_data): ...this.
8023 (class cplus_language): New class.
8024 (cplus_language_defn): New static global.
8025 (asm_language_defn): Convert to...
8026 (asm_language_data): ...this.
8027 (class asm_language): New class.
8028 (asm_language_defn): New static global.
8029 (minimal_language_defn): Convert to...
8030 (minimal_language_data): ...this.
8031 (class minimal_language): New class.
8032 (minimal_language_defn): New static global.
8033 * gdb/d-lang.c (d_language_defn): Convert to...
8034 (d_language_data): ...this.
8035 (class d_language): New class.
8036 (d_language_defn): New static global.
8037 * gdb/f-lang.c (f_language_defn): Convert to...
8038 (f_language_data): ...this.
8039 (class f_language): New class.
8040 (f_language_defn): New static global.
8041 * gdb/go-lang.c (go_language_defn): Convert to...
8042 (go_language_data): ...this.
8043 (class go_language): New class.
8044 (go_language_defn): New static global.
8045 * gdb/language.c (unknown_language_defn): Remove declaration.
8046 (current_language): Initialize to nullptr, real initialization is
8047 moved to _initialize_language.
8048 (languages): Delete global.
8049 (language_defn::languages): Define.
8050 (set_language_command): Use language_defn::languages.
8051 (set_language): Likewise.
8052 (range_error): Likewise.
8053 (language_enum): Likewise.
8054 (language_def): Likewise.
8055 (add_set_language_command): Use language_def::languages for the
8056 language list, and language_def to lookup language pointers.
8057 (skip_language_trampoline): Use language_defn::languages.
8058 (unknown_language_defn): Convert to...
8059 (unknown_language_data): ...this.
8060 (class unknown_language): New class.
8061 (unknown_language_defn): New static global.
8062 (auto_language_defn): Convert to...
8063 (auto_language_data): ...this.
8064 (class auto_language): New class.
8065 (auto_language_defn): New static global.
8066 (language_gdbarch_post_init): Use language_defn::languages.
8067 (_initialize_language): Initialize current_language.
8068 * gdb/language.h (struct language_defn): Rename to...
8069 (struct language_data): ...this.
8070 (struct language_defn): New.
8071 (auto_language_defn): Delete.
8072 (unknown_language_defn): Delete.
8073 (minimal_language_defn): Delete.
8074 (ada_language_defn): Delete.
8075 (asm_language_defn): Delete.
8076 (c_language_defn): Delete.
8077 (cplus_language_defn): Delete.
8078 (d_language_defn): Delete.
8079 (f_language_defn): Delete.
8080 (go_language_defn): Delete.
8081 (m2_language_defn): Delete.
8082 (objc_language_defn): Delete.
8083 (opencl_language_defn): Delete.
8084 (pascal_language_defn): Delete.
8085 (rust_language_defn): Delete.
8086 * gdb/m2-lang.c (m2_language_defn): Convert to...
8087 (m2_language_data): ...this.
8088 (class m2_language): New class.
8089 (m2_language_defn): New static global.
8090 * gdb/objc-lang.c (objc_language_defn): Convert to...
8091 (objc_language_data): ...this.
8092 (class objc_language): New class.
8093 (objc_language_defn): New static global.
8094 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8095 (opencl_language_data): ...this.
8096 (class opencl_language): New class.
8097 (opencl_language_defn): New static global.
8098 * gdb/p-lang.c (pascal_language_defn): Convert to...
8099 (pascal_language_data): ...this.
8100 (class pascal_language): New class.
8101 (pascal_language_defn): New static global.
8102 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8103 language pointer, update comment format.
8104 * gdb/rust-lang.c (rust_language_defn): Convert to...
8105 (rust_language_data): ...this.
8106 (class rust_language): New class.
8107 (rust_language_defn): New static global.
8108
1313c56e
AB
81092020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8110
8111 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8112 member variable.
8113 <m_stmt_at_address>: New member variable.
8114 (lnp_state_machine::record_line): Don't record some lines, update
8115 tracking of is_stmt at the same address.
8116 (lnp_state_machine::lnp_state_machine): Initialise new member
8117 variables.
8118
b7ed9f3d
ST
81192020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8120
8121 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8122 "-include gnu-nat-mig.h".
8123 * gnu-nat-mig.h: New file.
8124 * gnu-nat.c: Include "gnu-nat-mig.h".
8125 (exc_server, msg_reply_server, notify_server,
8126 process_reply_server): Remove declarations.
8127
14a8ad62
ST
81282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8129
8130 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8131 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8132 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8133 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8134 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8135 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8136 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8137 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8138 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8139 to gnu_nat_target class.
8140 * gnu-nat.c: Likewise.
8141 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8142 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8143 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8144 object.
8145 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8146 instead of `gnu_target'.
8147
0af5e106
ST
81482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8149
8150 * i386-gnu-tdep.c: Include "gdbcore.h"
8151 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8152 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8153 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8154 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8155 i386_gnu_sigcontext_addr): New functions
8156 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8157 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8158 tdep.
8159
078f2fc9
ST
81602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8161
8162 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8163 before fork_inferior call. Avoid calling it if target_is_pushed returns
8164 true.
8165
53dff92c
ST
81662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8167
8168 * gnu-nat.h (gnu_target): New variable declaration.
8169 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8170 gnu_target.
8171 * gnu-nat.c (gnu_target): New variable.
8172 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8173 add_thread_silent, and add_thread calls.
8174 (gnu_nat_target::create_inferior): Pass gnu_target to
8175 add_thread_silent, thread_change_ptid call.
8176 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8177 call.
8178
5a8b8627
ST
81792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8180
8181 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8182 (gnu_nat_target::find_memory_regions): Remove unused
8183 `old_address' variable.
8184
366f550a
ST
81852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8186
8187 * gnu-nat.c: Include "gdbarch.h".
8188
f14871bf
ST
81892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8190
8191 * reply_mig_hack.awk (Error return): Cast function through
8192 void *, to bypass compiler function call check.
8193
c6887cfb
ST
81942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8195
8196 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8197 $(srcdir)/reply_mig_hack.awk.
8198
6930bffe
ST
81992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8200
8201 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8202
112c22ed
JG
82032020-05-30 Jonny Grant <jg@jguk.org>
8204
8205 * configure.ac (ACX_BUGURL): change bug URL to https.
8206
f68f85b5
PA
82072020-05-30 Pedro Alves <palves@redhat.com>
8208
8209 * cp-support.c (replace_typedefs_template): New.
8210 (replace_typedefs_qualified_name): Handle
8211 DEMANGLE_COMPONENT_TEMPLATE.
8212
976ca316
SM
82132020-05-29 Simon Marchi <simon.marchi@efficios.com>
8214
8215 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8216 dwarf2/index-cache.h, dwarf2/index-write.c,
8217 dwarf2/index-write.h, dwarf2/line-header.c,
8218 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8219 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8220 variables and fields from `dwarf2_per_objfile` to just
8221 `per_objfile` throughout.
8222
989ade05
SM
82232020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8224
8225 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8226 <push_dwarf_reg_entry_value>: Add comment.
8227
c47bae85
KB
82282020-05-28 Kevin Buettner <kevinb@redhat.com>
8229 Keith Seitz <keiths@redhat.com>
8230
8231 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8232 instead of PyEval_ReleaseLock.
8233 (class gdbpy_gil): Move to earlier in file.
8234 (finalize_python): Set gdb_python_initialized.
8235 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8236 when not initialized.
8237
44486dcf
SM
82382020-05-28 Simon Marchi <simon.marchi@efficios.com>
8239
8240 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8241 <push_dwarf_reg_entry_value>: Remove assert. Override
8242 per_objfile with caller_per_objfile.
8243
f030440d
TV
82442020-05-28 Tom de Vries <tdevries@suse.de>
8245
8246 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8247 PR gold/15646 workaround to symbol kind "type".
8248
f0fbb768
TT
82492020-05-27 Tom Tromey <tromey@adacore.com>
8250
8251 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8252
af0b2a3e
TT
82532020-05-27 Tom Tromey <tromey@adacore.com>
8254
8255 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8256 Use htab_find_with_hash.
8257 <add_abbrev>: Remove "abbrev_number" parameter.
8258 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8259 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8260 (hash_abbrev): Add comment.
8261 (abbrev_table::lookup_abbrev): Move to header file.
8262 (abbrev_table::read): Update.
8263
7d00ffec
TT
82642020-05-27 Tom Tromey <tromey@adacore.com>
8265
8266 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8267 method.
8268 <canonical_name>: New member.
8269 <raw_name>: Rename from "name".
8270 (partial_die_info): Initialize canonical_name.
8271 (scan_partial_symbols): Check raw_name.
8272 (partial_die_parent_scope, partial_die_full_name)
8273 (add_partial_symbol, add_partial_subprogram)
8274 (add_partial_enumeration, load_partial_dies): Use "name" method.
8275 (partial_die_info::name): New method.
8276 (partial_die_info::read, guess_partial_die_structure_name)
8277 (partial_die_info::fixup): Update.
8278
697bba18
TT
82792020-05-27 Tom Tromey <tromey@adacore.com>
8280
8281 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8282 <get_ref_die_offset>: Inline.
8283 <get_ref_die_offset_complaint>: New method.
8284 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8285 (attribute::get_ref_die_offset_complaint): Rename from
8286 get_ref_die_offset. Just issue complaint.
8287
c17ace43
HD
82882020-05-27 Hannes Domani <ssbssa@yahoo.de>
8289
8290 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8291
96445f0b
HD
82922020-05-27 Hannes Domani <ssbssa@yahoo.de>
8293
8294 * exec.c (exec_file_attach): Use errno value of first openp failure.
8295
ac637ec3
HD
82962020-05-27 Hannes Domani <ssbssa@yahoo.de>
8297
8298 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8299 Don't close thread handle.
8300
17ee85fc
TT
83012020-05-27 Tom Tromey <tom@tromey.com>
8302 Simon Marchi <simon.marchi@efficios.com>
8303
8304 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8305 shared_ptr.
8306 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8307 member.
8308 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8309 dwarf2_per_bfd_objfile_data_key>: New globals.
8310 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8311 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8312 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8313 shared.
8314 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8315 short-circuit when sharing.
8316 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8317 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8318
39b16f87
SM
83192020-05-27 Simon Marchi <simon.marchi@efficios.com>
8320
8321 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8322 to...
8323 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8324 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8325
fcf23d5b
SM
83262020-05-27 Simon Marchi <simon.marchi@efficios.com>
8327
8328 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8329 build_name_components, find_name_components_bounds>:
8330 Add per_objfile parameter.
8331 (struct mapped_index) <symbol_name_at>: Likewise.
8332 (struct mapped_debug_names): Remove constructor.
8333 <dwarf2_per_objfile>: Remove field.
8334 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8335 (mapped_index_base::find_name_components_bounds,
8336 mapped_index_base::build_name_components,
8337 dw2_expand_symtabs_matching_symbol): Likewise.
8338 (class mock_mapped_index) <symbol_name_at>: Likewise.
8339 (check_match): Likewise.
8340 (check_find_bounds_finds): Likewise.
8341 (test_mapped_index_find_name_component_bounds): Update.
8342 (CHECK_MATCH): Update.
8343 (dw2_expand_symtabs_matching): Update.
8344 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8345 per_objfile parameter.
8346 <find_vec_in_debug_names>: Likewise.
8347 <m_per_objfile>: New field.
8348 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8349 parameter.
8350 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8351 (dw2_debug_names_iterator::next): Update.
8352 (dw2_debug_names_lookup_symbol): Update.
8353 (dw2_debug_names_expand_symtabs_for_function): Update.
8354 (dw2_debug_names_map_matching_symbols): Update.
8355 (dw2_debug_names_expand_symtabs_matching): Update.
8356 (dwarf2_read_debug_names): Update.
8357
7188ed02
SM
83582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8359
8360 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8361 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8362 move to dwarf2_per_objfile.
8363 <read_in_chain>: Remove.
8364 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8365 remove_all_cus, age_comp_units>: New methods.
8366 <m_dwarf2_cus>: New member.
8367 (struct dwarf2_per_cu_data) <cu>: Remove.
8368 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8369 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8370 moved to methods of dwarf2_per_objfile.
8371 (dwarf2_clear_marks): Remove.
8372 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8373 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8374 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8375 (dwarf2_per_objfile::remove_all_cus): New.
8376 (class free_cached_comp_units) <~free_cached_comp_units>:
8377 Update.
8378 (load_cu): Update.
8379 (dw2_do_instantiate_symtab): Adjust.
8380 (fill_in_sig_entry_from_dwo_entry): Adjust.
8381 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8382 (cutu_reader::cutu_reader): Likewise.
8383 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8384 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8385 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8386 and dwarf2_per_objfile::age_comp_units.
8387 (load_partial_comp_unit): Update.
8388 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8389 (process_queue): Likewise.
8390 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8391 backlink.
8392 (dwarf2_read_addr_index): Likewise.
8393 (follow_die_offset): Likewise.
8394 (dwarf2_fetch_die_loc_sect_off): Likewise.
8395 (dwarf2_fetch_constant_bytes): Likewise.
8396 (dwarf2_fetch_die_type_sect_off): Likewise.
8397 (follow_die_sig_1): Likewise.
8398 (load_full_type_unit): Likewise.
8399 (read_signatured_type): Likewise.
8400 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8401 (dwarf2_cu::~dwarf2_cu): Remove.
8402 (dwarf2_per_objfile::get_cu): New.
8403 (dwarf2_per_objfile::set_cu): New.
8404 (age_cached_comp_units): Rename to...
8405 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8406 to std::unordered_map.
8407 (free_one_cached_comp_unit): Rename to...
8408 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8409 to std::unordered_map.
8410 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8411 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8412 a dwarf2_per_objfile in data.
8413 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8414 (dwarf2_clear_marks): Remove.
8415
2e671100
SM
84162020-05-27 Simon Marchi <simon.marchi@efficios.com>
8417
8418 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8419 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8420 (init_tu_and_read_dwo_dies): Likewise.
8421 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8422 (cutu_reader::cutu_reader): Likewise.
8423 (load_partial_comp_unit): Likewise.
8424 (process_psymtab_comp_unit): Update.
8425 (build_type_psymtabs_1): Update.
8426 (process_skeletonless_type_unit): Update.
8427 (load_full_comp_unit): Update.
8428 (find_partial_die): Update.
8429 (dwarf2_read_addr_index): Update.
8430 (read_signatured_type): Update.
8431
2e6a9f79
SM
84322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8433
8434 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8435 m_header_read_in>: New fields.
8436 <get_header>: New method.
8437 * dwarf2/read.c (per_cu_header_read_in): Remove.
8438 (dwarf2_per_cu_data::get_header): New.
8439 (dwarf2_per_cu_data::addr_size): Update.
8440 (dwarf2_per_cu_data::offset_size): Update.
8441 (dwarf2_per_cu_data::ref_addr_size): Update.
8442
1b555f17
SM
84432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8444
8445 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8446 (dw2_do_instantiate_symtab): Update.
8447 (queue_and_load_all_dwo_tus): Change parameter from
8448 dwarf2_per_cu_data to dwarf2_cu.
8449 (dwarf2_fetch_die_loc_sect_off): Update.
8450 (dwarf2_fetch_constant_bytes): Update.
8451 (dwarf2_fetch_die_type_sect_off): Update.
8452
8fc0b21d
SM
84532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8454
8455 * dwarf2/read.c (process_full_comp_unit,
8456 process_full_type_unit): Remove per_cu, per_objfile paramters.
8457 Add dwarf2_cu parameter.
8458 (process_queue): Update.
8459
168c9250
SM
84602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8461
8462 * dwarf2/read.c (create_cu_from_index_list): Replace
8463 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8464 (create_cus_from_index_list): Likewise.
8465 (create_cus_from_index): Likewise.
8466 (create_signatured_type_table_from_index): Likewise.
8467 (create_cus_from_debug_names_list): Likewise.
8468 (create_cus_from_debug_names): Likewise.
8469 (dwarf2_read_gdb_index): Update.
8470 (dwarf2_read_debug_names): Update.
8471
e286671b
TT
84722020-05-27 Tom Tromey <tom@tromey.com>
8473 Simon Marchi <simon.marchi@efficios.com>
8474
8475 * dwarf2/read.h (struct dwarf2_per_objfile)
8476 <get_type_for_signatured_type, set_type_for_signatured_type>:
8477 New methods.
8478 <m_type_map>: New member.
8479 (struct signatured_type) <type>: Remove.
8480 * dwarf2/read.c
8481 (dwarf2_per_objfile::get_type_for_signatured_type,
8482 dwarf2_per_objfile::set_type_for_signatured_type): New.
8483 (get_signatured_type): Use new methods.
8484
8adb8487
TT
84852020-05-27 Tom Tromey <tom@tromey.com>
8486 Simon Marchi <simon.marchi@efficios.com>
8487
8488 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8489 (struct dwarf2_per_objfile) <type_units>: New member.
8490 <get_type_unit_group_unshareable>: New method.
8491 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8492 num_symtabs, symtabs>: Remove; move to
8493 type_unit_group_unshareable.
8494 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8495 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8496 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8497
127bbf4b
SM
84982020-05-27 Simon Marchi <simon.marchi@efficios.com>
8499
8500 * dwarf2/read.h (struct dwarf2_per_cu_data):
8501 <dwarf2_per_objfile>: Remove.
8502 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8503 dwarf2_per_objfile.
8504 (create_signatured_type_table_from_index): Likewise.
8505 (create_signatured_type_table_from_debug_names): Likewise.
8506 (create_debug_type_hash_table): Likewise.
8507 (fill_in_sig_entry_from_dwo_entry): Likewise.
8508 (create_type_unit_group): Likewise.
8509 (read_comp_units_from_section): Likewise.
8510 (create_cus_hash_table): Likewise.
8511
f6e649dd
SM
85122020-05-27 Simon Marchi <simon.marchi@efficios.com>
8513
8514 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8515 dwarf2_per_cu_data::dwarf2_per_objfile.
8516 (compute_compunit_symtab_includes): Likewise.
8517 (dwarf2_cu::start_symtab): Likewise.
8518
aa66c379
SM
85192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8520
8521 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8522 parameter.
8523 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8524 (read_namespace_alias): Update.
8525 (lookup_die_type): Update.
8526 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8527 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8528 Update.
8529 (disassemble_dwarf_expression): Update.
8530
120ce1b5
SM
85312020-05-27 Simon Marchi <simon.marchi@efficios.com>
8532
8533 * dwarf2/read.h (struct dwarf2_queue_item): Add
8534 dwarf2_per_objfile parameter, assign new parameter.
8535 <per_objfile>: New field.
8536 * dwarf2/read.c (free_one_cached_comp_unit): Add
8537 dwarf2_per_objfile parameter.
8538 (queue_comp_unit): Likewise.
8539 (dw2_do_instantiate_symtab): Update.
8540 (process_psymtab_comp_unit): Update.
8541 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8542 (process_imported_unit_die): Update.
8543 (queue_and_load_dwo_tu): Update.
8544 (follow_die_offset): Update.
8545 (follow_die_sig_1): Update.
8546
9f47c707
SM
85472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8548
8549 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8550 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8551 (read_call_site_scope): Assign per_objfile.
8552 (dwarf2_per_cu_data::objfile): Remove.
8553 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8554 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8555 dwarf2_per_objfile parameter.
8556 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8557 dwarf2_per_objfile parameter.
8558 (dwarf_expr_reg_to_entry_parameter): Add output
8559 dwarf2_per_objfile parameter.
8560 (locexpr_get_frame_base): Update.
8561 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8562 <push_dwarf_reg_entry_value>: Update.
8563 <call_site_to_target_addr>: Update.
8564 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8565 parameter.
8566 (value_of_dwarf_reg_entry): Update.
8567 (rw_pieced_value): Update.
8568 (indirect_synthetic_pointer): Update.
8569 (dwarf2_evaluate_property): Update.
8570 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8571 parameter.
8572 (locexpr_read_variable): Update.
8573 (locexpr_get_symbol_read_needs): Update.
8574 (loclist_read_variable): Update.
8575
14095eb3
SM
85762020-05-27 Simon Marchi <simon.marchi@efficios.com>
8577
8578 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8579 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8580 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8581 parameter.
8582 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8583 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8584 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8585 parameter.
8586 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8587 sect_variable_value): Add dwarf2_per_objfile parameter.
8588 (class dwarf_evaluate_loc_desc) <dwarf_call,
8589 dwarf_variable_value>: Update.
8590 (fetch_const_value_from_synthetic_pointer): Add
8591 dwarf2_per_objfile parameter.
8592 (fetch_const_value_from_synthetic_pointer): Update.
8593 (coerced_pieced_ref): Update.
8594 (class symbol_needs_eval_context) <dwarf_call,
8595 dwarf_variable_value>: Update.
8596 (dwarf2_compile_expr_to_ax): Update.
8597
3c3cd3d4
SM
85982020-05-27 Simon Marchi <simon.marchi@efficios.com>
8599
8600 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8601 parameter.
8602 (dwarf2_evaluate_loc_desc_full): Update.
8603
82ca3f51
SM
86042020-05-27 Simon Marchi <simon.marchi@efficios.com>
8605
8606 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8607 parameter.
8608 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8609 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8610 dwarf2_per_objfile parameter.
8611 (decode_debug_loc_dwo_addresses): Likewise.
8612 (dwarf2_find_location_expression): Update.
8613 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8614 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8615 parameter.
8616 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8617 parameter.
8618 (locexpr_describe_location_1): Likewise.
8619 (locexpr_describe_location): Update.
8620
4b167ea1
SM
86212020-05-27 Simon Marchi <simon.marchi@efficios.com>
8622
8623 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8624 Remove.
8625 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8626 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8627 (dwarf2_compile_property_to_c): Update.
8628 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8629 use text offset from objfile.
8630 (locexpr_tracepoint_var_ref): Update.
8631 (locexpr_generate_c_location): Update.
8632 (loclist_describe_location): Update.
8633 (loclist_tracepoint_var_ref): Update.
8634 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8635 dwarf2_per_objfile parameter.
8636 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8637 use text offset from objfile.
8638 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8639
89b07335
SM
86402020-05-27 Simon Marchi <simon.marchi@efficios.com>
8641
8642 * dwarf2/expr.h (struct dwarf_expr_context)
8643 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8644 <offset>: Remove.
8645 <per_objfile>: New member.
8646 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8647 dwarf2_per_objfile parameter. Don't set offset, set
8648 per_objfile.
8649 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8650 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8651 a dwarf2_per_objfile object instead of an offset.
8652 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8653 constructor.
8654 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8655 to dwarf2_expr_executor constructor. Don't set offset.
8656 (dwarf2_fetch_cfa_info): Update.
8657 (struct dwarf2_frame_cache) <text_offset>: Remove.
8658 <per_objfile>: New field.
8659 (dwarf2_frame_cache): Update.
8660 (dwarf2_frame_prev_register): Update.
8661 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8662 <dwarf_evaluate_loc_desc>: Add constructor.
8663 (dwarf2_evaluate_loc_desc_full): Update.
8664 (dwarf2_locexpr_baton_eval): Update.
8665 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8666 Add constructor.
8667 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8668
293e7e51
SM
86692020-05-27 Simon Marchi <simon.marchi@efficios.com>
8670
8671 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8672 addr_sized_int_type>: Move to dwarf2_cu.
8673 <int_type>: Move to dwarf2_per_objfile.
8674 (struct dwarf2_per_objfile) <int_type>: Move here.
8675 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8676 addr_sized_int_type>: Move here.
8677 (read_func_scope): Update.
8678 (read_array_type): Update.
8679 (read_tag_string_type): Update.
8680 (attr_to_dynamic_prop): Update.
8681 (dwarf2_per_cu_data::int_type): Rename to...
8682 (dwarf2_per_objfile::int_type): ... this.
8683 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8684 (dwarf2_cu::addr_sized_int_type): ... this.
8685 (read_subrange_type): Update.
8686 (dwarf2_per_cu_data::addr_type): Rename to...
8687 (dwarf2_cu::addr_type): ... this.
8688 (set_die_type): Update.
8689
64874a40
SM
86902020-05-27 Simon Marchi <simon.marchi@efficios.com>
8691
8692 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8693 data through per_cu->cu.
8694
4ab09049
SM
86952020-05-27 Simon Marchi <simon.marchi@efficios.com>
8696
8697 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8698 dwarf2_per_cu_data parameter fo dwarf2_cu.
8699 (lookup_dwo_type_unit): Likewise.
8700 (read_cutu_die_from_dwo): Likewise.
8701 (lookup_dwo_unit): Likewise.
8702 (open_and_init_dwo_file): Likewise.
8703 (lookup_dwo_cutu): Likewise.
8704 (lookup_dwo_comp_unit): Likewise.
8705 (lookup_dwo_type_unit): Likewise.
8706 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8707 (cutu_reader::cutu_reader): Update.
8708
47b14e86
SM
87092020-05-27 Simon Marchi <simon.marchi@efficios.com>
8710
8711 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8712 parameter.
8713 (process_full_type_unit): Likewise.
8714 (process_queue): Update.
8715
43182c09
SM
87162020-05-27 Simon Marchi <simon.marchi@efficios.com>
8717
8718 * dwarf2/read.c (recursively_compute_inclusions): Add
8719 dwarf2_per_objfile parameter.
8720 (compute_compunit_symtab_includes): Likewise.
8721 (process_cu_includes): Update.
8722
7aa104c4
SM
87232020-05-27 Simon Marchi <simon.marchi@efficios.com>
8724
8725 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8726 parameter.
8727 (create_type_unit_group): Update.
8728 (process_psymtab_comp_unit_reader): Update.
8729 (build_type_psymtabs_reader): Update.
8730
e3beb21d
SM
87312020-05-27 Simon Marchi <simon.marchi@efficios.com>
8732
8733 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8734 object through m_this_cu->cu.
8735
d460f660
SM
87362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8737
8738 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8739 the info parameter.
8740 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8741
ab432490
SM
87422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8743
8744 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8745 per_objfile parameter.
8746 (load_full_type_unit): Add per_objfile parameter.
8747 (read_signatured_type): Likewise.
8748 (load_full_comp_unit): Likewise.
8749 (load_cu): Likewise.
8750 (dw2_do_instantiate_symtab): Likewise.
8751 (dw2_get_file_names): Likewise.
8752 (dw2_map_symtabs_matching_filename): Update.
8753 (dw_expand_symtabs_matching_file_matcher): Update.
8754 (dw2_map_symbol_filenames): Update.
8755 (process_psymtab_comp_unit): Add per_objfile parameter.
8756 (build_type_psymtabs_1): Update.
8757 (process_skeletonless_type_unit): Update.
8758 (dwarf2_build_psymtabs_hard): Update.
8759 (load_partial_comp_unit): Add per_objfile parameter.
8760 (scan_partial_symbols): Update.
8761 (load_full_comp_unit): Add per_objfile parameter.
8762 (process_imported_unit_die): Update.
8763 (create_cus_hash_table): Update.
8764 (find_partial_die): Update.
8765 (dwarf2_read_addr_index): Update.
8766 (follow_die_offset): Update.
8767 (dwarf2_fetch_die_loc_sect_off): Update.
8768 (dwarf2_fetch_constant_bytes): Update.
8769 (dwarf2_fetch_die_type_sect_off): Update.
8770 (follow_die_sig_1): Update.
8771 (load_full_type_unit): Add per_objfile parameter.
8772 (read_signatured_type): Likewise.
8773
313bad1b
SM
87742020-05-27 Simon Marchi <simon.marchi@efficios.com>
8775
8776 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8777 of objfile_name.
8778
c3699833
SM
87792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8780
8781 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8782 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8783 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8784 field.
8785 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8786 (create_cus_from_index): Update.
8787 (dwarf2_read_gdb_index): Update.
8788 (create_cus_from_debug_names): Update.
8789 (dwarf2_read_debug_names): Update.
8790 (get_abbrev_section_for_cu): Update.
8791 (create_all_comp_units): Update.
8792 (read_attribute_value): Update.
8793 (get_debug_line_section): Update.
8794 * dwarf2/index-cache.c (index_cache::store): Update.
8795 * dwarf2/index-write.c (save_gdb_index_command): Update.
8796 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8797
1859c670
SM
87982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8799
8800 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8801 member.
8802 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8803 dwarf2_per_cu_data::per_bfd.
8804 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8805 (create_type_unit_group): Likewise.
8806 (queue_comp_unit): Remove reference to
8807 per_cu->dwarf2_per_objfile.
8808 (maybe_queue_comp_unit): Likewise.
8809 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8810 (create_cus_hash_table): Assign new field.
8811
5e22e966
SM
88122020-05-27 Simon Marchi <simon.marchi@efficios.com>
8813
8814 * dwarf2/read.c: Replace
8815 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8816 dwarf2_cu->per_objfile throughout.
8817
97a1449a
SM
88182020-05-27 Simon Marchi <simon.marchi@efficios.com>
8819
8820 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8821 parameter, don't use per_cu->dwarf2_per_objfile.
8822 (dw2_instantiate_symtab): Likewise.
8823 (dw2_find_last_source_symtab): Update.
8824 (dw2_map_expand_apply): Update.
8825 (dw2_lookup_symbol): Update.
8826 (dw2_expand_symtabs_for_function): Update.
8827 (dw2_expand_all_symtabs): Update.
8828 (dw2_expand_symtabs_with_fullname): Update.
8829 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8830 don't use per_cu->dwarf2_per_objfile.
8831 (dw2_expand_marked_cus): Update.
8832 (dw2_find_pc_sect_compunit_symtab): Update.
8833 (dw2_debug_names_lookup_symbol): Update.
8834 (dw2_debug_names_expand_symtabs_for_function): Update.
8835 (dw2_debug_names_map_matching_symbols): Update.
8836 (dwarf2_psymtab::expand_psymtab): Update.
8837
9e021579
SM
88382020-05-27 Simon Marchi <simon.marchi@efficios.com>
8839
8840 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8841 <per_objfile>: New member.
8842 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8843 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8844 call to dwarf2_cu.
8845 (cutu_reader::cutu_reader): Update.
8846 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8847
ae090bdb
SM
88482020-05-27 Simon Marchi <simon.marchi@efficios.com>
8849
8850 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8851 struct dwarf2_per_objfile.
8852 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8853 dwarf2_per_bfd.
8854 * dwarf2/read.c (set_die_type): Update.
8855 (get_die_type_at_offset): Update.
8856
af758d11
SM
88572020-05-27 Tom Tromey <tom@tromey.com>
8858 Simon Marchi <simon.marchi@efficios.com>
8859
8860 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8861 method.
8862 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8863 get_symtab, set_symtab>: New methods.
8864 <m_symtabs>: New field.
8865 (struct dwarf2_psymtab): Derive from partial_symtab.
8866 <readin_p, get_compunit_symtab>: Declare methods.
8867 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8868 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8869 New methods.
8870 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8871 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8872 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8873 (dw2_symtab_iter_next, dw2_print_stats)
8874 (dw2_expand_symtabs_with_fullname)
8875 (dw2_expand_symtabs_matching_one)
8876 (dw_expand_symtabs_matching_file_matcher)
8877 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8878 (dw2_debug_names_iterator::next)
8879 (dw2_debug_names_map_matching_symbols)
8880 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8881 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8882 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8883 New methods.
8884 (get_compunit_symtab, process_full_comp_unit)
8885 (process_full_type_unit): Update.
8886 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8887
5989a64e
SM
88882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8889
8890 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8891 then introduce a new dwarf2_per_objfile type.
8892 <read_line_string>: Move to the new dwarf2_per_objfile type.
8893 <objfile>: Likewise.
8894 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8895 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8896 dwarf2_per_objfile->per_bfd.
8897 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8898 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8899 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8900 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8901 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8902 (dwarf2_per_objfile::locate_sections): Rename to...
8903 (dwarf2_per_bfd::locate_sections): ... this.
8904 (dwarf2_per_objfile::get_cutu): Rename to...
8905 (dwarf2_per_bfd::get_cutu): ... this.
8906 (dwarf2_per_objfile::get_cu): Rename to...
8907 (dwarf2_per_bfd::get_cu): ... this.
8908 (dwarf2_per_objfile::get_tu): Rename to...
8909 (dwarf2_per_bfd::get_tu): ... this.
8910 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8911 (dwarf2_per_bfd::allocate_per_cu): ... this.
8912 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8913 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8914 (get_gdb_index_contents_ftype): Change parameter from
8915 dwarf2_per_objfile to dwarf2_per_bfd.
8916 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8917 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8918
a50264ba
TT
89192020-05-27 Tom Tromey <tom@tromey.com>
8920 Simon Marchi <simon.marchi@efficios.com>
8921
8922 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8923 (allocate_piece_closure): Set "per_objfile" member.
8924 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8925 (locexpr_describe_location, loclist_describe_location): Use new
8926 member.
8927 * dwarf2/read.c (read_call_site_scope)
8928 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8929 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8930 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8931 handle_data_member_location): Set per_objfile member.
8932 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8933 member.
8934 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8935
d3473f0c
TT
89362020-05-27 Tom Tromey <tom@tromey.com>
8937
8938 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8939 allocate_signatured_type>: Declare new methods.
8940 <m_num_psymtabs>: New member.
8941 (struct dwarf2_per_cu_data) <index>: New member.
8942 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8943 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8944 (create_cu_from_index_list): Use allocate_per_cu.
8945 (create_signatured_type_table_from_index)
8946 (create_signatured_type_table_from_debug_names)
8947 (create_debug_type_hash_table, add_type_unit)
8948 (read_comp_units_from_section): Use allocate_signatured_type.
8949
5717c425
TT
89502020-05-27 Tom Tromey <tom@tromey.com>
8951
8952 * psymtab.c (partial_map_expand_apply)
8953 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8954 (psym_lookup_global_symbol_language)
8955 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8956 (psym_print_stats, psym_expand_symtabs_for_function)
8957 (psym_map_symbol_filenames, psym_map_matching_symbols)
8958 (psym_expand_symtabs_matching)
8959 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8960 (maintenance_check_psymtabs): Update.
8961 * psympriv.h (struct partial_symtab) <readin_p,
8962 get_compunit_symtab>: Add objfile parameter.
8963 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8964 Likewise.
8965 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8966 get_compunit_symtab>: Likewise.
8967 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8968
45940949
TT
89692020-05-27 Tom Tromey <tom@tromey.com>
8970
8971 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8972 member.
8973 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8974 (create_cu_from_index_list)
8975 (create_signatured_type_table_from_index)
8976 (create_signatured_type_table_from_debug_names)
8977 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8978 (dwarf2_create_include_psymtab)
8979 (create_debug_type_hash_table, add_type_unit)
8980 (create_type_unit_group, read_comp_units_from_section)
8981 (dwarf2_compute_name, create_cus_hash_table)
8982 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8983 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8984 obstack.
8985 (dw2_get_real_path): Likewise. Change argument to
8986 dwarf2_per_objfile.
8987
f8c6d152
LM
89882020-05-27 Luis Machado <luis.machado@linaro.org>
8989
8990 PR tdep/26000
8991 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8992 for ldrd (immediate).
8993
e98d2e6d
PW
89942020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8995
8996 * command.h: Add comment giving the name of class_tui.
8997 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8998 create the fake command for the help for class_tui.
8999
53a47a3e
TT
90002020-05-26 Tom Tromey <tromey@adacore.com>
9001
9002 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9003 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9004 (val_atr): New function.
9005 (value_val_atr): Use it.
9006 * ada-valprint.c (print_optional_low_bound): Change low bound
9007 handling for enums.
9008 (val_print_packed_array_elements): Don't call discrete_position.
9009 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9010 discrete_position for enum types.
9011 * language.c (default_print_array_index): Change type.
9012 * language.h (struct language_defn) <la_print_array_index>: Add
9013 index_type parameter, change type of index_value.
9014 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9015 (default_print_array_index): Update.
9016 * valprint.c (maybe_print_array_index): Don't call
9017 value_from_longest. Update.
9018 (value_print_array_elements): Don't call discrete_position.
9019
0bc2354b
TT
90202020-05-26 Tom Tromey <tromey@adacore.com>
9021
9022 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9023 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9024
1218a4bf
CDA
90252020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9026
9027 PR gdb/13519
9028 * avr-tdep.c (avr_integer_to_address): Return data or code
9029 address accordingly to the second 'type' argument of the
9030 function.
9031
92651b1d
MW
90322020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9033
9034 * infcmd.c, inferior.h: (construct_inferior_arguments):
9035 Moved function from here to gdbsupport/common-inferior.{h,cc}
9036
0a4f5f8c
TT
90372020-05-23 Tom Tromey <tom@tromey.com>
9038
9039 Revert commit eca1f90c:
9040 * NEWS: Remove entry for completion styling.
9041 * completer.c (_rl_completion_prefix_display_length): Move
9042 declaration later.
9043 (gdb_fnprint): Revert.
9044 (gdb_display_match_list_1): Likewise.
9045 * cli/cli-style.c (completion_prefix_style)
9046 (completion_difference_style, completion_suffix_style): Remove.
9047 (_initialize_cli_style): Revert.
9048 * cli/cli-style.h (completion_prefix_style)
9049 (completion_difference_style, completion_suffix_style): Don't
9050 declare.
9051
e08bd6c5
PA
90522020-05-24 Pedro Alves <palves@redhat.com>
9053
9054 * symtab.c (completion_list_add_name): Return boolean indication
9055 of whether the symbol matched.
9056 (completion_list_add_symbol): Don't try to remove C++ aliases if
9057 the symbol didn't match in the first place.
9058 * symtab.h (completion_list_add_name): Return bool.
9059
ceacbf6e
SM
90602020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9061
9062 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9063 type::field.
9064
26f16254
JB
90652020-05-23 Joel Brobecker <brobecker@adacore.com>
9066
9067 GDB 9.2 released.
9068
eca1f90c
TT
90692020-05-23 Tom Tromey <tom@tromey.com>
9070
9071 * NEWS: Add entry for completion styling.
9072 * completer.c (_rl_completion_prefix_display_length): Move
9073 declaration earlier.
9074 (gdb_fnprint): Use completion_style.
9075 (gdb_display_match_list_1): Likewise.
9076 * cli/cli-style.c (completion_prefix_style)
9077 (completion_difference_style, completion_suffix_style): New
9078 globals.
9079 (_initialize_cli_style): Register new globals.
9080 * cli/cli-style.h (completion_prefix_style)
9081 (completion_difference_style, completion_suffix_style): Declare.
9082
51e2cfa2
PA
90832020-05-23 Pedro Alves <palves@redhat.com>
9084
9085 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9086 (parse_escape): Use ISDIGIT instead of isdigit.
9087 (puts_debug): Use gdb_isprint instead of isprint.
9088 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9089 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9090 ISSPACE instead of isspace.
9091 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9092 instead of isspace.
9093 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9094 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9095 instead of isxdigit and ISDIGIT instead of isdigit.
9096
80fc5e77
SM
90972020-05-22 Simon Marchi <simon.marchi@efficios.com>
9098
9099 * gdbtypes.h (struct type) <field>: New method.
9100 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9101 or type::field.
9102
3cabb6b0
SM
91032020-05-22 Simon Marchi <simon.marchi@efficios.com>
9104
9105 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9106 (TYPE_FIELDS): Use type::fields. Change all call sites that
9107 modify the propery to use type::set_fields instead.
9108
1f704f76
SM
91092020-05-22 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9112 type::num_fields instead.
9113
5e33d5f4
SM
91142020-05-22 Simon Marchi <simon.marchi@efficios.com>
9115
9116 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9117 methods.
9118 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9119 that modify the number of fields to use type::set_num_fields
9120 instead.
9121
9392ebb3
TT
91222020-05-22 Tom Tromey <tromey@adacore.com>
9123
9124 * compile/compile-object-load.h (munmap_list_free): Don't
9125 declare.
9126
7c13f4e8
AB
91272020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9128
9129 * annotate.c (annotate_source_line): Update return type, add call
9130 to update current symtab and line.
9131 * annotate.h (annotate_source_line): Update return type, and
9132 extend header comment.
9133 * source.c (info_line_command): Check annotation_level before
9134 calling annotate_source_line.
9135 * stack.c (print_frame_info): If calling annotate_source_line
9136 returns true, then don't print any other source line information.
9137
aa370940
SM
91382020-05-21 Simon Marchi <simon.marchi@efficios.com>
9139
9140 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9141
84d53fa9
SM
91422020-05-21 Simon Marchi <simon.marchi@efficios.com>
9143
9144 * coffread.c (patch_type): Remove NULL check before xfree.
9145 * corefile.c (set_gnutarget): Likewise.
9146 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9147 * exec.c (build_section_table): Likewise.
9148 * remote.c (remote_target::pass_signals): Likewise.
9149 * utils.c (n_spaces): Likewise.
9150 * cli/cli-script.c (document_command): Likewise.
9151 * i386-windows-tdep.c (core_process_module_section): Likewise.
9152 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9153
9d428aae
SM
91542020-05-20 Simon Marchi <simon.marchi@efficios.com>
9155
9156 * symfile.c (reread_symbols): Clear objfile's section_offsets
9157 vector and section indices, re-compute them by calling
9158 sym_offsets.
9159
250106a7
TT
91602020-05-20 Tom Tromey <tromey@adacore.com>
9161
9162 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9163 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9164
9a0bacfb
TV
91652020-05-20 Tom de Vries <tdevries@suse.de>
9166
9167 PR symtab/25833
9168 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9169
7b958a48
AM
91702020-05-20 Alan Modra <amodra@gmail.com>
9171
9172 PR 25993
9173 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9174 bfd_set_filename.
9175 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9176 passed to bfd_set_filename.
9177 * symfile-mem.c (add_vsyscall_page): Likewise for string
9178 passed to symbol_file_add_from_memory.
9179 (symbol_file_add_from_memory): Make name param a const char* and
9180 don't strdup.
9181
c7e97679
AM
91822020-05-20 Alan Modra <amodra@gmail.com>
9183
9184 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9185 rather than accessing bfd->filename directly.
9186 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9187 and use bfd_section_name.
9188 * dwarf2/frame.c (decode_frame_entry): Likewise.
9189 * exec.c (exec_set_section_address): Likewise.
9190 * solib-aix.c (solib_aix_bfd_open): Likewise.
9191 * stap-probe.c (get_stap_base_address): Likewise.
9192 * symfile.c (reread_symbols): Likewise.
9193
563c591b
TT
91942020-05-19 Tom Tromey <tromey@adacore.com>
9195
9196 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9197
f408d82c
SM
91982020-05-19 Simon Marchi <simon.marchi@efficios.com>
9199
9200 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9201
98c59b52
PA
92022020-05-19 Pedro Alves <palves@redhat.com>
9203
9204 * NEWS (set exec-file-mismatch): Adjust entry.
9205 * exec.c: Include "build-id.h".
9206 (validate_exec_file): Try to match build IDs instead of filenames.
9207 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9208 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9209 and pass down 'warn_if_slow'.
9210 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9211 gdb_bfd_open_closure to pass it down.
9212 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9213
4111f652
PA
92142020-05-19 Pedro Alves <palves@redhat.com>
9215
9216 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9217 * target.c (target_fileio_open_1): Rename to target_fileio_open
9218 and make extern. Use bool.
9219 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9220 (target_fileio_read_alloc_1): Adjust.
9221 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9222 (target_fileio_open_warn_if_slow): Delete declaration.
9223
ad80db5b
PA
92242020-05-19 Pedro Alves <palves@redhat.com>
9225
9226 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9227 Adjust all callers.
9228
1d6ce4d3
YS
92292020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9230
9231 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9232 whether disp is negative.
9233
9005fbbb
SM
92342020-05-19 Simon Marchi <simon.marchi@efficios.com>
9235
9236 * symfile.h (struct symfile_segment_data)
9237 <~symfile_segment_data>: Remove.
9238 <segment_info>: Change to std::vector.
9239 * symfile.c (default_symfile_segments): Update.
9240 * elfread.c (elf_symfile_segments): Update.
9241
68b888ff
SM
92422020-05-19 Simon Marchi <simon.marchi@efficios.com>
9243
9244 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9245 <segments>: New.
9246 <segment_bases, segment_sizes>: Remove.
9247 * symfile.c (default_symfile_segments): Update.
9248 * elfread.c (elf_symfile_segments): Update.
9249 * remote.c (remote_target::get_offsets): Update.
9250 * solib-target.c (solib_target_relocate_section_addresses):
9251 Update.
9252
62982abd
SM
92532020-05-19 Simon Marchi <simon.marchi@efficios.com>
9254
9255 * symfile.h (struct symfile_segment_data): Initialize fields.
9256 <~symfile_segment_data>: Add.
9257 (symfile_segment_data_up): New.
9258 (struct sym_fns) <sym_segments>: Return a
9259 symfile_segment_data_up.
9260 (default_symfile_segments): Return a symfile_segment_data_up.
9261 (free_symfile_segment_data): Remove.
9262 (get_symfile_segment_data): Return a symfile_segment_data_up.
9263 * symfile.c (default_symfile_segments): Likewise.
9264 (get_symfile_segment_data): Likewise.
9265 (free_symfile_segment_data): Remove.
9266 (symfile_find_segment_sections): Update.
9267 * elfread.c (elf_symfile_segments): Return a
9268 symfile_segment_data_up.
9269 * remote.c (remote_target::get_offsets): Update.
9270 * solib-target.c (solib_target_relocate_section_addresses):
9271 Update.
9272 * symfile-debug.c (debug_sym_segments): Return a
9273 symfile_segment_data_up.
9274
7f204339
RO
92752020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9276
e52a0f1b
RO
9277 PR build/25981
9278 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9279 Hardcode register numbers.
9280
7f204339
RO
9281 PR build/25981
9282 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9283 procfs_find_LDT_entry): Remove.
9284 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9285 procfs_find_LDT_entry): Remove.
9286 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9287 Remove.
9288
7f32a4d5
PA
92892020-05-17 Pedro Alves <palves@redhat.com>
9290 Andrew Burgess <andrew.burgess@embecosm.com>
9291 Keno Fischer <keno@juliacomputing.com>
9292
9293 PR gdb/25741
9294 * breakpoint.c (build_target_condition_list): Update comments.
9295 (build_target_command_list): Update comments and skip matching
9296 locations.
9297 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9298 a separate function. Simplify "set breakpoint auto-hw off"
9299 handling.
9300 (insert_breakpoints): Update comment.
9301 (tracepoint_locations_match): New parameter. For breakpoints,
9302 compare location types too, if the caller wants to.
9303 (handle_automatic_hardware_breakpoints): New functions.
9304 (bp_location_is_less_than): Also sort by location type and
9305 hardware breakpoint length.
9306 (update_global_location_list): Handle "set breakpoint auto-hw on"
9307 here.
9308 (update_breakpoint_locations): Ask breakpoint_locations_match to
9309 ignore location types.
9310
7d93a1e0
SM
93112020-05-16 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9314 type::name instead.
9315
d0e39ea2
SM
93162020-05-16 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * gdbtypes.h (struct type) <name, set_name>: New methods.
9319 (TYPE_CODE): Use type::name. Change all call sites used to set
9320 the name to use type::set_name instead.
9321
2dab0c7b
TT
93222020-05-16 Tom Tromey <tom@tromey.com>
9323
9324 * top.c (quit_force): Update.
9325 * infrun.c (handle_no_resumed): Update.
9326 * top.h (all_uis): New function.
9327 (ALL_UIS): Remove.
9328
59f7bd8d
SM
93292020-05-16 Simon Marchi <simon.marchi@efficios.com>
9330
9331 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9332
9bf058f0
PA
93332020-05-16 Pedro Alves <palves@redhat.com>
9334
9335 * ia64-linux-nat.c
9336 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9337 Declare method.
9338 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9339
8f86ae1a
SM
93402020-05-15 Simon Marchi <simon.marchi@efficios.com>
9341
9342 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9343 (sparc64_adi_info): Likewise.
9344
d6bc0792
TT
93452020-05-15 Tom Tromey <tom@tromey.com>
9346
9347 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9348 block_objfile.
9349 (lookup_objfile_from_block): Remove.
9350 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9351 (lookup_global_symbol): Use block_objfile.
9352 * symtab.h (lookup_objfile_from_block): Don't declare.
9353 * printcmd.c (clear_dangling_display_expressions): Use
9354 block_objfile.
9355 * parse.c (operator_check_standard): Use block_objfile.
9356
8c14c3a3
TT
93572020-05-15 Tom Tromey <tom@tromey.com>
9358
9359 * language.c (language_alloc_type_symbol): Set
9360 SYMBOL_SECTION.
9361 * symtab.c (initialize_objfile_symbol): Remove.
9362 (allocate_symbol): Remove.
9363 (allocate_template_symbol): Remove.
9364 * dwarf2/read.c (fixup_go_packaging): Use "new".
9365 (new_symbol): Use "new".
9366 (read_variable): Don't call initialize_objfile_symbol. Use
9367 "new".
9368 (read_func_scope): Use "new".
9369 * xcoffread.c (process_xcoff_symbol): Don't call
9370 initialize_objfile_symbol.
9371 (SYMBOL_DUP): Remove.
9372 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9373 "new".
9374 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9375 (allocate_template_symbol): Don't declare.
9376 (struct symbol): Add copy constructor. Change defaults.
9377 * jit.c (finalize_symtab): Use "new".
9378 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9379 Use "new".
9380 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9381 (common_block_end): Use "new".
9382 * mdebugread.c (parse_symbol): Use "new".
9383 (new_symbol): Likewise.
9384
5b4a1a8d
PW
93852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9386
9387 * NEWS: Mention changes to help and apropos.
9388
57b4f16e
PW
93892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9390
9391 * command.h (enum command_class): Improve comments, document
9392 that class_alias is for user-defined aliases, give the class
9393 name for each class, remove unused class_xdb.
9394 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9395 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9396 by a precise class.
9397 * infcmd.c (_initialize_infcmd): Likewise.
9398 * reverse.c (_initialize_reverse): Likewise.
9399 * stack.c (_initialize_stack): Likewise.
9400 * symfile.c (_initialize_symfile): Likewise.
9401 * tracepoint.c (_initialize_tracepoint): Likewise.
9402
7c05caf7
PW
94032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9404
9405 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9406 when their aliased command is traversed.
9407 (help_cmd): Add fput_command_names_styled call to
9408 output command name and aliases when command has an alias.
9409
3b3aaacb
PW
94102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9411
9412 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9413 * cli/cli-decode.c (help_cmd_list): Declare as static,
9414 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9415 a command together with the command.
9416 (fput_command_name_styled, fput_command_names_styled): New functions.
9417 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9418 fput_command_name_styled.
9419 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9420 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9421
7aa1b46f
PW
94222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9423
9424 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9425 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9426 * command.h (cmd_show_list): Likewise.
9427 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9428 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9429
89bcba74
PW
94302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9431
9432 * unittests/command-def-selftests.c (traverse_command_structure):
9433 Verify all commands of a list have the same prefix command and
9434 that only the top cmdlist commands have a null prefix.
9435
3f4d92eb
PW
94362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9437
9438 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9439 as prefix, not one of its aliases.
9440 (set_cmd_prefix): Remove.
9441 (do_add_cmd): Centralize the setting of the prefix of a command, when
9442 command is defined after its full chain of prefix commands.
9443 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9444 (add_setshow_cmd_full): Likewise.
9445 (update_prefix_field_of_prefixed_commands): New function.
9446 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9447 update_prefix_field_of_prefixed_commands.
9448 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9449 addresses of remote_set_cmdlist and remote_show_cmdlist given
9450 as argument, not the address of an argument.
9451 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9452 * gdb/remote.c (_initialize_remote): Likewise.
9453
0605465f
PW
94542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9455
9456 * cli/cli-cmds.c (alias_command): Check for an existing alias
9457 using lookup_cmd_composition, as valid_command_p is too strict
9458 and forbids aliases that are the prefix of an existing alias
9459 or command.
9460 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9461 command is properly recognised as a valid command.
9462
58e6ac70
PW
94632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9464
9465 * unittests/help-doc-selftests.c: Rename to
9466 unittests/command-def-selftests.c
9467 * unittests/command-def-selftests.c (help_doc_tests): Update some
9468 comments.
9469 (command_structure_tests, traverse_command_structure): New namespace
9470 and function.
9471 (command_structure_invariants_tests): New function.
9472 (_initialize_command_def_selftests) Renamed from
9473 _initialize_help_doc_selftests, register command_structure_invariants
9474 selftest.
9475
a7b9ceb8
PW
94762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9477
9478 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9479 an alias of 'show'.
9480
b2188a06
JB
94812020-05-15 Joel Brobecker <brobecker@adacore.com>
9482
9483 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9484 ada_is_fixed_point_type. Update all callers.
9485 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9486 all callers.
9487 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9488 Update all callers.
9489 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9490 print_fixed_point_type. Update all callers.
9491 * ada-valprint.c (ada_value_print_num): Replace call to
9492 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9493
a51951c2
KB
94942020-05-14 Kevin Buettner <kevinb@redhat.com>
9495
9496 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9497 processors.
9498 (cpu_supports_bts): Add CV_AMD case.
9499
29d6859f
LM
95002020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9501 Simon Marchi <simon.marchi@efficios.com>
9502
9503 * infrun.c (stop_all_threads): Collect multiple wait events at
9504 each pass.
9505
78134374
SM
95062020-05-14 Simon Marchi <simon.marchi@efficios.com>
9507
9508 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9509 type::code instead.
9510
67607e24
SM
95112020-05-14 Simon Marchi <simon.marchi@efficios.com>
9512
9513 * gdbtypes.h (struct type) <code, set_code>: New methods.
9514 (TYPE_CODE): Use type::code. Change all call sites used to set
9515 the code to use type::set_code instead.
9516
a05575d3
TBA
95172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9518 Tom de Vries <tdevries@suse.de>
9519 Pedro Alves <palves@redhat.com>
9520
9521 PR threads/25478
9522 * infrun.c (stop_all_threads): Do NOT ignore
9523 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9524 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9525 received.
9526 (handle_no_resumed): Remove code handling a live inferior with no
9527 threads.
9528 * remote.c (has_single_non_exited_thread): New.
9529 (remote_target::update_thread_list): Do not delete a thread if is
9530 the last thread of the process.
9531 * thread.c (thread_select): Call delete_exited_threads instead of
9532 prune_threads.
9533
6ad82919
TBA
95342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9535
9536 * infrun.c (stop_all_threads): Enable/disable thread events of all
9537 targets. Move a debug message denoting the end of the function
9538 into the SCOPED_EXIT block.
9539
d890404b
TBA
95402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9541
9542 * process-stratum-target.h: Include <set>.
9543 (all_non_exited_process_targets, switch_to_target_no_thread): New
9544 function declarations.
9545 * process-stratum-target.c (all_non_exited_process_targets)
9546 (switch_to_target_no_thread): New function implementations.
9547
293b3ebc
TBA
95482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9549
9550 * infrun.c (handle_inferior_event): Extract out a piece of code
9551 into...
9552 (mark_non_executing_threads): ...this new function.
9553
7ca9b62a
TBA
95542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9555
9556 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9557 use.
9558
fc75c28b
TBA
95592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9560
9561 * regcache.c (regcache_read_pc_protected): New function
9562 implementation that returns 0 if the PC cannot read via
9563 'regcache_read_pc'.
9564 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9565 instead of 'regcache_read_pc'.
9566 (keep_going_pass_signal): Ditto.
9567
a89febbd
TT
95682020-05-13 Tom Tromey <tromey@adacore.com>
9569
9570 * ada-lang.c (align_value): Remove.
9571 (ada_template_to_fixed_record_type_1): Use align_up.
9572
f7e23710
TBA
95732020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9574
9575 * async-event.c: Update the copyright year.
9576 * async-event.h: Update the copyright year.
9577
02ff80c2
SM
95782020-05-12 Simon Marchi <simon.marchi@efficios.com>
9579
9580 * objfiles.h (is_addr_in_objfile,
9581 shared_objfile_contains_address_p): Return bool.
9582 * objfile.c (is_addr_in_objfile,
9583 shared_objfile_contains_address_p): Return bool.
9584
4fd6c7e8
TT
95852020-05-11 Tom Tromey <tromey@adacore.com>
9586
9587 * cli/cli-cmds.c (info_command): Restore.
9588 (_initialize_cli_cmds): Use add_prefix_command for "info".
9589 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9590
5eb68a39
TT
95912020-05-11 Tom Tromey <tromey@adacore.com>
9592
9593 * ada-lang.c (ada_value_primitive_field): Now public.
9594 * ada-lang.h (ada_value_primitive_field): Declare.
9595 * ada-valprint.c (print_field_values): Use
9596 ada_value_primitive_field for wrapper fields.
9597
7666722f
TV
95982020-05-11 Tom de Vries <tdevries@suse.de>
9599
9600 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9601 MODULE_DOMAIN.
9602
3ee6bb11
TV
96032020-05-11 Tom de Vries <tdevries@suse.de>
9604
9605 PR symtab/25941
9606 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9607 with length 0, if not gdb-produced.
9608 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9609
43434996
TV
96102020-05-09 Tom de Vries <tdevries@suse.de>
9611
9612 PR gdb/25955
9613 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9614 calculation.
9615
2f78cffc
TT
96162020-05-09 Tom Tromey <tom@tromey.com>
9617
9618 * top.c (server_command): Now bool.
9619 * top.h (server_command): Now bool.
9620
4f7bc5ed
TT
96212020-05-08 Tom Tromey <tromey@adacore.com>
9622
9623 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9624 already being processed.
9625
8be4b118
TT
96262020-05-08 Tom Tromey <tom@tromey.com>
9627
9628 * printcmd.c (struct display) <next>: Remove.
9629 <display>: New constructor.
9630 <exp_string>: Now a std::string.
9631 <enabled_p>: Now a bool.
9632 (display_number): Move definition earlier.
9633 (displays): Rename from display_chain. Now a std::vector.
9634 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9635 (display_command): Update.
9636 (do_one_display, disable_display)
9637 (enable_disable_display_command, do_enable_disable_display):
9638 Update.
9639 (free_display): Remove.
9640 (clear_displays): Rewrite.
9641 (delete_display): Update.
9642 (map_display_numbers): Use function_view. Remove "data"
9643 parameter. Update.
9644 (do_delete_display): Remove.
9645 (undisplay_command): Update.
9646 (do_one_display, do_displays, disable_display)
9647 (info_display_command): Update.
9648 (do_enable_disable_display): Remove.
9649 (enable_disable_display_command)
9650 (clear_dangling_display_expressions): Update.
9651
94c93c35
TT
96522020-05-08 Tom Tromey <tom@tromey.com>
9653
9654 * symtab.c (set_symbol_cache_size)
9655 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9656 (maintenance_print_symbol_cache_statistics): Update.
9657 * symmisc.c (print_symbol_bcache_statistics)
9658 (print_objfile_statistics, maintenance_print_objfiles)
9659 (maintenance_info_symtabs, maintenance_check_symtabs)
9660 (maintenance_expand_symtabs, maintenance_info_line_tables):
9661 Update.
9662 * symfile-debug.c (set_debug_symfile): Update.
9663 * source.c (forget_cached_source_info): Update.
9664 * python/python.c (gdbpy_progspaces): Update.
9665 * psymtab.c (maintenance_info_psymtabs): Update.
9666 * probe.c (parse_probes): Update.
9667 * linespec.c (iterate_over_all_matching_symtabs)
9668 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9669 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9670 * exec.c (exec_target::close): Update.
9671 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9672 * breakpoint.c (print_one_breakpoint_location)
9673 (create_longjmp_master_breakpoint)
9674 (create_std_terminate_master_breakpoint): Update.
9675 * progspace.c (program_spaces): Now a std::vector.
9676 (maybe_new_address_space): Update.
9677 (add_program_space): Remove.
9678 (program_space::program_space): Update.
9679 (remove_program_space): Update.
9680 (number_of_program_spaces): Remove.
9681 (print_program_space, update_address_spaces): Update.
9682 * progspace.h (program_spaces): Change type.
9683 (ALL_PSPACES): Remove.
9684 (number_of_program_spaces): Don't declare.
9685 (struct program_space) <next>: Remove.
9686
a1fd1ac9
TT
96872020-05-08 Tom Tromey <tom@tromey.com>
9688
9689 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9690 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9691 (enable_break): Update.
9692 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9693 (frv_fdpic_find_canonical_descriptor): Update.
9694 (frv_fetch_objfile_link_map): Update.
9695 * progspace.c (program_space::free_all_objfiles): Update.
9696 (program_space::solibs): New method.
9697 * progspace.h (struct program_space) <solibs>: New method.
9698 * solist.h (master_so_list): Don't declare.
9699 (ALL_SO_LIBS): Remove.
9700 * solib.h (so_list_head): Remove.
9701 (update_solib_list): Update comment.
9702 * solib.c (master_so_list): Remove.
9703 (solib_used, update_solib_list, solib_add)
9704 (info_sharedlibrary_command, clear_solib)
9705 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9706
38eae084
TT
97072020-05-08 Tom Tromey <tom@tromey.com>
9708
9709 * extension.c (extension_languages): Now a std::array.
9710 (ALL_EXTENSION_LANGUAGES): Remove.
9711 (get_ext_lang_defn, get_ext_lang_of_file)
9712 (eval_ext_lang_from_control_command): Update.
9713 (finish_ext_lang_initialization)
9714 (auto_load_ext_lang_scripts_for_objfile)
9715 (ext_lang_type_printers::ext_lang_type_printers)
9716 (apply_ext_lang_type_printers)
9717 (ext_lang_type_printers::~ext_lang_type_printers)
9718 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9719 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9720 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9721 (get_matching_xmethod_workers, ext_lang_colorize)
9722 (ext_lang_before_prompt): Update.
9723 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9724
596dc4ad
TT
97252020-05-08 Tom Tromey <tom@tromey.com>
9726
9727 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9728 overload.
9729 <swap_string, m_string>: Remove.
9730 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9731 Update.
9732 * stabsread.c (define_symbol, read_type): Update.
9733 * linespec.c (find_linespec_symbols): Update.
9734 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9735 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9736 * dbxread.c (read_dbx_symtab): Update.
9737 * cp-support.h (cp_canonicalize_string_full)
9738 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9739 Return unique_xmalloc_ptr.
9740 * cp-support.c (inspect_type): Update.
9741 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9742 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9743 Likewise.
9744 * c-typeprint.c (print_name_maybe_canonical): Update.
9745 * break-catch-throw.c (check_status_exception_catchpoint):
9746 Update.
9747
bf4cb9be
TV
97482020-05-08 Tom de Vries <tdevries@suse.de>
9749
9750 * infrun.c (follow_fork): Copy current_line and current_symtab to
9751 child thread.
9752
a1b68f28
SM
97532020-05-07 Simon Marchi <simon.marchi@efficios.com>
9754
9755 * async-event.c (struct async_signal_handler, struct
9756 async_event_handler): Reformat, remove typedef.
9757
98d48915
SM
97582020-05-07 Simon Marchi <simon.marchi@efficios.com>
9759
9760 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9761 access thistype->main_type->dyn_prop_list directly.
9762
7aa91313
SM
97632020-05-07 Simon Marchi <simon.marchi@efficios.com>
9764
9765 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9766 (remove_dyn_prop): Remove. Update all users to use
9767 type::remove_dyn_prop.
9768 * gdbtypes.c (remove_dyn_prop): Rename to...
9769 (type::remove_dyn_prop): ... this.
9770
5c54719c
SM
97712020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9772
9773 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9774 (add_dyn_prop): Remove. Update all users to use
9775 type::add_dyn_prop.
9776 * gdbtypes.c (add_dyn_prop): Rename to...
9777 (type::add_dyn_prop): ... this.
9778
24e99c6c
SM
97792020-05-07 Simon Marchi <simon.marchi@efficios.com>
9780
9781 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9782 (get_dyn_prop): Remove. Update all users to use
9783 type::dyn_prop.
9784 * gdbtypes.c (get_dyn_prop): Rename to...
9785 (type::dyn_prop): ... this.
9786
0d4bf016
SM
97872020-05-06 Simon Marchi <simon.marchi@efficios.com>
9788
9789 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9790
ac4a4f1c
SM
97912020-05-06 Simon Marchi <simon.marchi@efficios.com>
9792
9793 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9794 instruction, skip it if it's there.
9795
a3bbacc1
SM
97962020-05-05 Simon Marchi <simon.marchi@efficios.com>
9797
9798 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9799
c3236f84
SM
98002020-05-04 Simon Marchi <simon.marchi@efficios.com>
9801
9802 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9803 * gdbtypes.c (recursive_dump_type): Remove use of
9804 TYPE_INCOMPLETE.
9805
3b6acaee
TT
98062020-05-03 Tom Tromey <tom@tromey.com>
9807
9808 * breakpoint.c (catch_command, tcatch_command): Remove.
9809 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9810 add_show_prefix_cmd.
9811 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9812 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9813 Remove.
9814 (add_internal_problem_command): Use add_basic_prefix_cmd,
9815 add_show_prefix_cmd.
9816 * mips-tdep.c (set_mipsfpu_command): Remove.
9817 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9818 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9819 (_initialize_index_cache): Use add_basic_prefix_cmd.
9820 * memattr.c (dummy_cmd): Remove.
9821 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9822 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9823 (_initialize_tui_win): Use add_basic_prefix_cmd,
9824 add_show_prefix_cmd.
9825 * cli/cli-logging.c (set_logging_command): Remove.
9826 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9827 add_show_prefix_cmd.
9828 (show_logging_command): Remove.
9829 * target.c (target_command): Remove.
9830 (add_target): Use add_basic_prefix_cmd.
9831
a51119cd
HD
98322020-05-02 Hannes Domani <ssbssa@yahoo.de>
9833
9834 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9835
652fc23a 98362020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9837
652fc23a
PW
9838 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9839 info_command.
9840
117539e6
KR
98412020-04-30 Kamil Rytarowski <n54@gmx.com>
9842
9843 * nbsd-nat.c (nbsd_enable_proc_events)
9844 (nbsd_nat_target::post_startup_inferior): Add.
9845 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9846 (nbsd_nat_target::update_thread_list): Rewrite.
9847 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9848 "PTRACE_LWP_CREATE".
9849 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9850
102e38eb 98512020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9852
102e38eb
PW
9853 * stack.c (_initialize_stack): Remove duplicated creation
9854 of "frame" command and "f" alias.
9855
ee9d1e5f
HD
98562020-04-30 Hannes Domani <ssbssa@yahoo.de>
9857
9858 PR gdb/18706
9859 * gdbtypes.c (check_typedef): Calculate size of array of
9860 stubbed type.
9861
627c7fb8
HD
98622020-04-30 Hannes Domani <ssbssa@yahoo.de>
9863
9864 PR gdb/15559
9865 * i386-tdep.c (i386_push_dummy_call): Call
9866 i386_thiscall_push_dummy_call.
9867 (i386_thiscall_push_dummy_call): New function.
9868 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9869 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9870 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9871
ffc2844e
SM
98722020-04-29 Simon Marchi <simon.marchi@efficios.com>
9873
9874 * gdbarch.sh (do_read): Add shellcheck disable directive for
9875 warning SC2162.
9876
1207375d
SM
98772020-04-29 Simon Marchi <simon.marchi@efficios.com>
9878
9879 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9880 "referenced but not assigned" warning.
9881
9fdb2916
SM
98822020-04-29 Simon Marchi <simon.marchi@efficios.com>
9883
9884 * gdbarch.sh: Remove code that sets fallbackdefault.
9885
759cea5e
SM
98862020-04-29 Simon Marchi <simon.marchi@efficios.com>
9887
9888 * gdbarch.sh: Use shell operators && and || instead of
9889 -a and -o.
9890
cb02ab24
SM
98912020-04-29 Simon Marchi <simon.marchi@efficios.com>
9892
9893 * gdbarch.sh: Use $(...) instead of `...`.
9894
a6fc5ffc
SM
98952020-04-29 Simon Marchi <simon.marchi@efficios.com>
9896
9897 * gdbarch.sh: Use double quotes around variables.
9898
8d113d13
SM
98992020-04-29 Simon Marchi <simon.marchi@efficios.com>
9900
9901 * gdbarch.sh: Use %s with printf, instead of variables in the
9902 format string.
9903
ed6acedd
TT
99042020-04-29 Tom Tromey <tromey@adacore.com>
9905
9906 PR ada/25875:
9907 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9908 type fields here.
9909 (read_enumeration_type): Call
9910 update_enumeration_type_from_children later. Update comments.
9911 (process_enumeration_scope): Don't create type fields.
9912
b68b1b58
KR
99132020-04-29 Kamil Rytarowski <n54@gmx.com>
9914
9915 * nbsd-tdep.c: Include "xml-syscall.h".
9916 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9917
f94b2e03
KR
99182020-04-29 Kamil Rytarowski <n54@gmx.com>
9919
9920 * nbsd-nat.c: Include "sys/wait.h".
9921 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9922 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9923 (nbsd_nat_target::remove_exec_catchpoint)
9924 (nbsd_nat_target::set_syscall_catchpoint): Add.
9925 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9926 (nbsd_nat_target::insert_exec_catchpoint)
9927 (nbsd_nat_target::remove_exec_catchpoint)
9928 (nbsd_nat_target::set_syscall_catchpoint): Add.
9929 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9930 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9931 `nbsd_get_syscall_number'.
9932
fc49bc72
TT
99332020-04-29 Tom Tromey <tom@tromey.com>
9934
9935 * stack.c (print_block_frame_labels): Remove.
9936
d642b692
HD
99372020-04-29 Hannes Domani <ssbssa@yahoo.de>
9938
9939 PR gdb/17320
9940 * ada-valprint.c (val_print_packed_array_elements): Move array
9941 end bracket to new line.
9942 (ada_val_print_string): Remove extra spaces before first array
9943 element.
9944 * c-valprint.c (c_value_print_array): Likewise.
9945 * m2-valprint.c (m2_print_array_contents): Likewise.
9946 (m2_value_print_inner): Likewise.
9947 * p-valprint.c (pascal_value_print_inner): Likewise.
9948 * valprint.c (generic_val_print_array): Likewise.
9949 (value_print_array_elements): Move first array element and array
9950 end bracket to new line.
9951
ea90f227
TV
99522020-04-29 Tom de Vries <tdevries@suse.de>
9953
9954 PR symtab/25889
9955 * linespec.c (find_method): Fix ix calculation.
9956
4498ef4f
KR
99572020-04-28 Kamil Rytarowski <n54@gmx.com>
9958
9959 * syscalls/update-netbsd.sh: New file.
9960 * syscalls/netbsd.xml: Regenerate.
9961 * data-directory/Makefile.in: Register `netbsd.xml' in
9962 `SYSCALLS_FILES'.
9963
a55e30b5
SM
99642020-04-28 Simon Marchi <simon.marchi@efficios.com>
9965
9966 * syscalls/update-freebsd.sh: Add double quotes.
9967
2b2fbab8
TT
99682020-04-28 Tom Tromey <tom@tromey.com>
9969
9970 * NEWS: Update.
9971 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9972 (cmdpy_init): Allow class_tui.
9973
a65189c9
TV
99742020-04-28 Mark Williams <mark@myosotissp.com>
9975
9976 PR gdb/24480
9977 * dwarf2read.c: Add missing assingments to list_in_scope when
9978 start_symtab was already called.
9979
1b95cdb7
SM
99802020-04-28 Simon Marchi <simon.marchi@efficios.com>
9981
9982 PR gdb/25881
9983 * dwarf2/read.c (offset_map_type): Use
9984 gdb:hash_enum<sect_offset> as hash function.
9985
15cd93d0
TV
99862020-04-28 Tom de Vries <tdevries@suse.de>
9987
9988 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9989 with DW_AT_signature.
9990
1eb39914
SM
99912020-04-27 Simon Marchi <simon.marchi@efficios.com>
9992
9993 * configure.ac: Remove check for fs_base/gs_base in
9994 user_regs_struct.
9995 * configure: Re-generate.
9996 * config.in: Re-generate.
9997 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9998 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9999 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10000
991a3e2e
LM
100012020-04-27 Luis Machado <luis.machado@linaro.org>
10002
10003 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10004 problematic inline frame unwinding situation.
10005 * frame.c (frame_id_computed_p): New function.
10006 * frame.h (frame_id_computed_p): New prototype.
10007
361ba0e8
TT
100082020-04-26 Tom Tromey <tom@tromey.com>
10009
10010 * command.h (enum command_class) <class_pseudo>: Remove.
10011
bc3609fd
PW
100122020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10013
10014 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10015 and whitespace.
10016
b9771db7
KR
100172020-04-25 Kamil Rytarowski <n54@gmx.com>
10018
ec16513e
SM
10019 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10020 `PT_GET_PROCESS_STATE' block.
b9771db7 10021
7151c1af
TT
100222020-04-24 Tom Tromey <tom@tromey.com>
10023
10024 * symtab.h (symbol_get_demangled_name): Don't declare.
10025 * symtab.c (symbol_get_demangled_name): Remove.
10026 (general_symbol_info::natural_name)
10027 (general_symbol_info::demangled_name): Update.
10028
906bb4c5
TT
100292020-04-24 Tom Tromey <tom@tromey.com>
10030
10031 PR rust/25025:
10032 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10033
bcfe6157
TT
100342020-04-24 Tom Tromey <tom@tromey.com>
10035
10036 PR symtab/12707:
10037 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10038 exists.
10039 (new_symbol): Likewise.
10040 * compile/compile-object-load.c (get_out_value_type): Use
10041 symbol_matches_search_name.
10042
f049a313
TT
100432020-04-24 Tom Tromey <tom@tromey.com>
10044
10045 * dwarf2/read.c (add_partial_symbol): Do not call
10046 compute_and_set_names.
10047
76e288d1
TT
100482020-04-24 Tom Tromey <tom@tromey.com>
10049
10050 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10051 overload.
10052
2467f4f6
TT
100532020-04-24 Tom Tromey <tom@tromey.com>
10054
10055 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10056 (add_psymbol_to_list): New overload. Make old overload call new
10057 one.
10058 * psympriv.h (add_psymbol_to_list): New overload.
10059
e61108c9
TT
100602020-04-24 Tom Tromey <tom@tromey.com>
10061
10062 * dwarf2/read.c (partial_die_info::read) <case
10063 DW_AT_linkage_name>: Use value_as_string.
10064 (dwarf2_string_attr): Use value_as_string.
10065 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10066 method.
10067 * dwarf2/attribute.c (attribute::value_as_string): New method.
10068
8c87a452
TT
100692020-04-24 Tom Tromey <tom@tromey.com>
10070
10071 * symtab.c (general_symbol_info::natural_name)
10072 (general_symbol_info::demangled_name): Check for language_rust.
10073
787de330
TT
100742020-04-24 Tom Tromey <tom@tromey.com>
10075
10076 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10077 (dwarf2_physname): ... from here.
10078 (partial_die_info::read): Add Rust "{" hack.
10079
ff985671
TT
100802020-04-24 Tom Tromey <tom@tromey.com>
10081
10082 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10083 method.
10084 (symbol_set_demangled_name): Don't declare.
10085 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10086 symbol_set_demangled_name.
10087 (general_symbol_info::set_language)
10088 (general_symbol_info::compute_and_set_names): Update.
10089 * minsyms.c (minimal_symbol_reader::install): Update.
10090 * dwarf2/read.c (new_symbol): Update.
10091
1acda803
TT
100922020-04-24 Tom Tromey <tromey@adacore.com>
10093
10094 PR python/23662:
10095 * python/py-type.c (convert_field): Handle
10096 FIELD_LOC_KIND_DWARF_BLOCK.
10097 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10098 (typy_get_dynamic): Nw function.
10099 (type_object_getset): Add "dynamic".
10100 * NEWS: Add entry.
10101
d656f129
TT
101022020-04-24 Tom Tromey <tromey@adacore.com>
10103
10104 * ada-typeprint.c (print_choices, print_variant_part)
10105 (print_record_field_types_dynamic): New functions.
10106 (print_record_field_types): Use print_record_field_types_dynamic.
10107
7d79de9a
TT
101082020-04-24 Tom Tromey <tromey@adacore.com>
10109
10110 * dwarf2/read.c (handle_data_member_location): New overload.
10111 (dwarf2_add_field): Use it.
10112 (decode_locdesc): Add "computed" parameter. Update comment.
10113 * gdbtypes.c (is_dynamic_type_internal): Also look for
10114 FIELD_LOC_KIND_DWARF_BLOCK.
10115 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10116 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10117 virtual base classes.
10118 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10119 FIELD_LOC_KIND_DWARF_BLOCK.
10120
f8e89861
TT
101212020-04-24 Tom Tromey <tromey@adacore.com>
10122
10123 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10124 * gdbtypes.c (is_dynamic_type_internal): Check
10125 TYPE_HAS_DYNAMIC_LENGTH.
10126 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10127 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10128 New macros.
10129 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10130 constant.
10131
9c6a1327
TT
101322020-04-24 Tom Tromey <tromey@adacore.com>
10133
10134 * dwarf2/read.c (struct variant_field): Rewrite.
10135 (struct variant_part_builder): New.
10136 (struct nextfield): Remove "variant" field. Add "offset".
10137 (struct field_info): Add "current_variant_part" and
10138 "variant_parts".
10139 (alloc_discriminant_info): Remove.
10140 (alloc_rust_variant): New function.
10141 (quirk_rust_enum): Update.
10142 (dwarf2_add_field): Set "offset" member. Don't handle
10143 DW_TAG_variant_part.
10144 (offset_map_type): New typedef.
10145 (convert_variant_range, create_one_variant)
10146 (create_one_variant_part, create_variant_parts)
10147 (add_variant_property): New functions.
10148 (dwarf2_attach_fields_to_type): Call add_variant_property.
10149 (read_structure_type): Don't handle DW_TAG_variant_part.
10150 (handle_variant_part, handle_variant): New functions.
10151 (handle_struct_member_die): Use them.
10152 (process_structure_scope): Don't handle variant parts.
10153 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10154 (struct discriminant_info): Remove.
10155 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10156 (struct main_type) <flag_discriminated_union>: Remove.
10157 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10158 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10159 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10160 Update.
10161 * valops.c (value_union_variant): Remove.
10162 * value.h (value_union_variant): Don't declare.
10163
b249d2c2
TT
101642020-04-24 Tom Tromey <tromey@adacore.com>
10165
10166 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10167 (ada_value_primitive_packed_val): Update.
10168 * ada-valprint.c (ada_value_print_1): Update.
10169 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10170 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10171 just an address. Use evaluate_for_locexpr_baton.
10172 (dwarf2_evaluate_property): Update.
10173 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10174 array_view.
10175 * findvar.c (default_read_var_value): Update.
10176 * gdbtypes.c (compute_variant_fields_inner)
10177 (resolve_dynamic_type_internal): Update.
10178 (resolve_dynamic_type): Change type of valaddr parameter.
10179 * gdbtypes.h (resolve_dynamic_type): Update.
10180 * valarith.c (value_subscripted_rvalue): Update.
10181 * value.c (value_from_contents_and_address): Update.
10182
61122aa9
TT
101832020-04-24 Tom Tromey <tromey@adacore.com>
10184
10185 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10186 "push_initial_value" parameter.
10187 (dwarf2_evaluate_property): Likewise.
10188 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10189
ef83a141
TT
101902020-04-24 Tom Tromey <tromey@adacore.com>
10191
10192 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10193 (variant::matches, compute_variant_fields_recurse)
10194 (compute_variant_fields_inner, compute_variant_fields): New
10195 functions.
10196 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10197 Use resolved_type after type is made.
10198 (operator==): Add new cases.
10199 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10200 (struct discriminant_range, struct variant, struct variant_part):
10201 New.
10202 (union dynamic_prop_data) <variant_parts, original_type>: New
10203 members.
10204 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10205 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10206 constants.
10207 * value.c (unpack_bits_as_long): Now public.
10208 * value.h (unpack_bits_as_long): Declare.
10209
675127ec
TT
102102020-04-24 Tom Tromey <tromey@adacore.com>
10211
10212 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10213 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10214
9852ceef
HD
102152020-04-24 Hannes Domani <ssbssa@yahoo.de>
10216
10217 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10218
7632c6ce
KR
102192020-04-24 Kamil Rytarowski <n54@gmx.com>
10220
10221 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10222 (remove_fork_catchpoint, post_startup_inferior)
10223 (post_attach): Move...
10224 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10225 (remove_fork_catchpoint, post_startup_inferior)
10226 (post_attach): ...here.
10227 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10228 (remove_fork_catchpoint, post_startup_inferior)
10229 (post_attach): Move...
10230 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10231 (remove_fork_catchpoint, post_startup_inferior)
10232 (post_attach): ...here.
10233
7be2bb4f
TT
102342020-04-24 Tom Tromey <tromey@adacore.com>
10235
10236 * nat/windows-nat.h (struct windows_thread_info)
10237 <pc_adjusted>: New member.
10238 * windows-nat.c (windows_fetch_one_register): Check
10239 pc_adjusted.
10240 (windows_nat_target::get_windows_debug_event)
10241 (windows_nat_target::wait): Set pc_adjusted.
10242
f80cb3b4
TV
102432020-04-24 Tom de Vries <tdevries@suse.de>
10244
10245 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10246 Run gdb-add-index inside temp dir.
10247
29514b87
TT
102482020-04-23 Tom Tromey <tromey@adacore.com>
10249
10250 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10251 in loop.
10252
5939967b
LM
102532020-04-23 Luis Machado <luis.machado@linaro.org>
10254
10255 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10256 get_frame_register instead of gdbarch_unwind_pc.
10257
70bc38f5
TV
102582020-04-23 Tom de Vries <tdevries@suse.de>
10259
10260 * symtab.c (lookup_global_symbol): Prefer def over decl.
10261
de82891c
TV
102622020-04-23 Tom de Vries <tdevries@suse.de>
10263
10264 PR symtab/25807
10265 * block.c (best_symbol, better_symbol): Promote to external.
10266 * block.h (best_symbol, better_symbol): Declare.
10267 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10268 decl.
10269
ecc6c606
TT
102702020-04-23 Tom Tromey <tromey@adacore.com>
10271
10272 PR ada/25837:
10273 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10274 "const char *", not a "const std::string &".
10275 <name_and_matcher::operator==>: Update.
10276 * unittests/lookup_name_info-selftests.c: Change type of
10277 "result".
10278
740480b8
TT
102792020-04-23 Tom Tromey <tom@tromey.com>
10280
10281 * inferior.h (iterate_over_inferiors): Don't declare.
10282 * inferior.c (iterate_over_inferiors): Remove.
10283 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10284 Remove.
10285 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10286 use iterate_over_inferiors.
10287 (darwin_resume_inferior_it)
10288 (struct resume_inferior_threads_param)
10289 (darwin_resume_inferior_threads_it): Remove.
10290 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10291
ae3ab1f0
TV
102922020-04-23 Tom de Vries <tdevries@suse.de>
10293
10294 * blockframe.c (find_pc_partial_function): Use
10295 find_pc_sect_compunit_symtab rather than
10296 objfile->sf->qf->find_pc_sect_compunit_symtab.
10297
317d2668
TV
102982020-04-22 Tom de Vries <tdevries@suse.de>
10299
10300 PR symtab/25764
10301 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10302 in psymtabs.
10303
eea9e357
TV
103042020-04-22 Tom de Vries <tdevries@suse.de>
10305
10306 PR symtab/25801
10307 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10308 symtabs.
10309
3d5afab3
TV
103102020-04-22 Tom de Vries <tdevries@suse.de>
10311
10312 PR symtab/25700
10313 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10314 CU if already created.
10315
d43b7a2d
TBA
103162020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10317
10318 * infrun.c (displaced_step_fixup): Switch to the event_thread
10319 before calling displaced_step_restore, not after.
10320
d89edf9b
MM
103212020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10322
10323 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10324 its inferior is not recorded by us.
10325 (record_btrace_target_open): Replace call to
10326 all_non_exited_threads () with call to current_inferior
10327 ()->non_exited_threads ().
10328 (record_btrace_target::stop_recording): Likewise.
10329 (record_btrace_target::close): Likewise.
10330 (record_btrace_target::wait): Likewise.
10331 (record_btrace_target::record_stop_replaying): Likewise.
10332
5897fd49
MM
103332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10334
10335 * btrace.c (btrace_enable): Throw an error on double enables and
10336 when enabling recording fails.
10337 (btrace_disable): Throw an error if the thread is not recorded.
10338
1a476b6d
MM
103392020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10340
10341 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10342 request if we do not have a thread_info.
10343
4778a5f8
TV
103442020-04-21 Tom de Vries <tdevries@suse.de>
10345
10346 PR gdb/25471
10347 * thread.c
10348 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10349 exception in get_frame_id.
10350
0fa7617d
TT
103512020-04-20 Tom Tromey <tromey@adacore.com>
10352
10353 * python/python.c (struct gdbpy_event): Mark move constructor as
10354 noexcept.
10355 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10356 constructor as noexcept.
10357 * completer.h (struct completion_result): Mark move constructor as
10358 noexcept.
10359 * completer.c (completion_result::completion_result): Use
10360 initialization style. Don't call reset_match_list.
10361
ad23bda0
MS
103622020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10363
10364 * MAINTAINERS (Write After Approval): Add myself.
10365
45e1f031
TT
103662020-04-18 Tom Tromey <tom@tromey.com>
10367
10368 * windows-tdep.c (init_w32_command_list)
10369 (w32_prefix_command_valid): Restore.
10370 (_initialize_windows_tdep): Call init_w32_command_list.
10371
08feed99
TT
103722020-04-18 Tom Tromey <tom@tromey.com>
10373
10374 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10375 * value.c (value_fn_field): Update.
10376 * valops.c (find_function_in_inferior)
10377 (value_allocate_space_in_inferior): Update.
10378 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10379 Update.
10380 * tui/tui-source.c (tui_source_window::set_contents): Update.
10381 * symtab.c (lookup_global_or_static_symbol)
10382 (find_function_start_sal_1, skip_prologue_sal)
10383 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10384 * symmisc.c (dump_msymbols, dump_symtab_1)
10385 (maintenance_print_one_line_table): Update.
10386 * symfile.c (init_entry_point_info, section_is_mapped)
10387 (list_overlays_command, simple_read_overlay_table)
10388 (simple_overlay_update_1): Update.
10389 * stap-probe.c (handle_stap_probe): Update.
10390 * stabsread.c (dbx_init_float_type, define_symbol)
10391 (read_one_struct_field, read_enum_type, read_range_type): Update.
10392 * source.c (info_line_command): Update.
10393 * python/python.c (gdbpy_source_objfile_script)
10394 (gdbpy_execute_objfile_script): Update.
10395 * python/py-type.c (save_objfile_types): Update.
10396 * python/py-objfile.c (py_free_objfile): Update.
10397 * python/py-inferior.c (python_new_objfile): Update.
10398 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10399 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10400 (maintenance_check_psymtabs): Update.
10401 * printcmd.c (info_address_command): Update.
10402 * objfiles.h (struct objfile) <arch>: New method, from
10403 get_objfile_arch.
10404 (get_objfile_arch): Don't declare.
10405 * objfiles.c (get_objfile_arch): Remove.
10406 (filter_overlapping_sections): Update.
10407 * minsyms.c (msymbol_is_function): Update.
10408 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10409 (output_nondebug_symbol): Update.
10410 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10411 (mdebug_expand_psymtab): Update.
10412 * machoread.c (macho_add_oso_symfile): Update.
10413 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10414 Update.
10415 * linux-fork.c (checkpoint_command): Update.
10416 * linespec.c (convert_linespec_to_sals): Update.
10417 * jit.c (finalize_symtab): Update.
10418 * infrun.c (insert_exception_resume_from_probe): Update.
10419 * ia64-tdep.c (ia64_find_unwind_table): Update.
10420 * hppa-tdep.c (internalize_unwinds): Update.
10421 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10422 Update.
10423 * gcore.c (call_target_sbrk): Update.
10424 * elfread.c (record_minimal_symbol, elf_symtab_read)
10425 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10426 (elf_gnu_ifunc_resolve_by_got): Update.
10427 * dwarf2/read.c (create_addrmap_from_index)
10428 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10429 (read_debug_names_from_section)
10430 (process_psymtab_comp_unit_reader, add_partial_symbol)
10431 (add_partial_subprogram, process_full_comp_unit)
10432 (read_file_scope, read_func_scope, read_lexical_block_scope)
10433 (read_call_site_scope, dwarf2_ranges_read)
10434 (dwarf2_record_block_ranges, dwarf2_add_field)
10435 (mark_common_block_symbol_computed, read_tag_pointer_type)
10436 (read_tag_string_type, dwarf2_init_float_type)
10437 (dwarf2_init_complex_target_type, read_base_type)
10438 (partial_die_info::read, partial_die_info::read)
10439 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10440 (dwarf2_fetch_die_loc_sect_off): Update.
10441 * dwarf2/loc.c (dwarf2_find_location_expression)
10442 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10443 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10444 (dwarf2_loc_desc_get_symbol_read_needs)
10445 (locexpr_describe_location_piece, locexpr_describe_location_1)
10446 (loclist_describe_location): Update.
10447 * dwarf2/index-write.c (write_debug_names): Update.
10448 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10449 * dtrace-probe.c (dtrace_process_dof): Update.
10450 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10451 (process_one_symbol): Update.
10452 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10453 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10454 (coff_read_enum_type): Update.
10455 * cli/cli-cmds.c (edit_command, list_command): Update.
10456 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10457 * breakpoint.c (create_overlay_event_breakpoint)
10458 (create_longjmp_master_breakpoint)
10459 (create_std_terminate_master_breakpoint)
10460 (create_exception_master_breakpoint, get_sal_arch): Update.
10461 * block.c (block_gdbarch): Update.
10462 * annotate.c (annotate_source_line): Update.
10463
0743fc83
TT
104642020-04-17 Tom Tromey <tromey@adacore.com>
10465
10466 * auto-load.c (show_auto_load_cmd): Remove.
10467 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10468 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10469 (maintenance_print_arc_command): Remove.
10470 * tui/tui-win.c (tui_command): Remove.
10471 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10472 * tui/tui-layout.c (tui_layout_command): Remove.
10473 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10474 * python/python.c (user_set_python, user_show_python): Remove.
10475 (_initialize_python): Use add_basic_prefix_cmd,
10476 add_show_prefix_cmd.
10477 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10478 (install_gdb_commands): Use add_basic_prefix_cmd,
10479 add_show_prefix_cmd.
10480 (info_guile_command): Remove.
10481 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10482 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10483 add_show_prefix_cmd.
10484 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10485 Remove do_set and do_show parameters.
10486 * cli/cli-style.c (set_style, show_style): Remove.
10487 (_initialize_cli_style): Use add_basic_prefix_cmd,
10488 add_show_prefix_cmd.
10489 (cli_style_option::add_setshow_commands): Remove do_set and
10490 do_show parameters.
10491 (cli_style_option::add_setshow_commands): Use
10492 add_basic_prefix_cmd, add_show_prefix_cmd.
10493 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10494 (set_style_name): Remove.
10495 * cli/cli-dump.c (dump_command, append_command): Remove.
10496 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10497 (tekhex_dump_command, binary_dump_command)
10498 (binary_append_command): Remove.
10499 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10500 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10501 (init_w32_command_list): Remove; move into ...
10502 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10503 * valprint.c (set_print, show_print, set_print_raw)
10504 (show_print_raw): Remove.
10505 (_initialize_valprint): Use add_basic_prefix_cmd,
10506 add_show_prefix_cmd.
10507 * typeprint.c (set_print_type, show_print_type): Remove.
10508 (_initialize_typeprint): Use add_basic_prefix_cmd,
10509 add_show_prefix_cmd.
10510 * record.c (set_record_command, show_record_command): Remove.
10511 (_initialize_record): Use add_basic_prefix_cmd,
10512 add_show_prefix_cmd.
10513 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10514 add_show_prefix_cmd.
10515 (info_command, show_command, set_debug, show_debug): Remove.
10516 * top.h (set_history, show_history): Don't declare.
10517 * top.c (set_history, show_history): Remove.
10518 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10519 (unset_tdesc_cmd): Remove.
10520 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10521 add_show_prefix_cmd.
10522 * symtab.c (info_module_command): Remove.
10523 (_initialize_symtab): Use add_basic_prefix_cmd.
10524 * symfile.c (overlay_command): Remove.
10525 (_initialize_symfile): Use add_basic_prefix_cmd.
10526 * sparc64-tdep.c (info_adi_command): Remove.
10527 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10528 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10529 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10530 add_show_prefix_cmd.
10531 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10532 (_initialize_serial): Use add_basic_prefix_cmd,
10533 add_show_prefix_cmd.
10534 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10535 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10536 add_show_prefix_cmd.
10537 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10538 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10539 add_show_prefix_cmd.
10540 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10541 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10542 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10543 add_show_prefix_cmd.
10544 * remote.c (remote_command, set_remote_cmd): Remove.
10545 (_initialize_remote): Use add_basic_prefix_cmd.
10546 * record-full.c (set_record_full_command)
10547 (show_record_full_command): Remove.
10548 (_initialize_record_full): Use add_basic_prefix_cmd,
10549 add_show_prefix_cmd.
10550 * record-btrace.c (cmd_set_record_btrace)
10551 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10552 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10553 (cmd_show_record_btrace_pt): Remove.
10554 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10555 add_show_prefix_cmd.
10556 * ravenscar-thread.c (set_ravenscar_command)
10557 (show_ravenscar_command): Remove.
10558 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10559 add_show_prefix_cmd.
10560 * mips-tdep.c (show_mips_command, set_mips_command)
10561 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10562 add_show_prefix_cmd.
10563 * maint.c (maintenance_command, maintenance_info_command)
10564 (maintenance_check_command, maintenance_print_command)
10565 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10566 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10567 add_show_prefix_cmd.
10568 (show_per_command_cmd): Remove.
10569 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10570 Remove.
10571 (maintenance_show_test_settings_cmd): Remove.
10572 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10573 add_show_prefix_cmd.
10574 * maint-test-options.c (maintenance_test_options_command):
10575 Remove.
10576 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10577 * macrocmd.c (macro_command): Remove
10578 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10579 * language.c (set_check, show_check): Remove.
10580 (_initialize_language): Use add_basic_prefix_cmd,
10581 add_show_prefix_cmd.
10582 * infcmd.c (unset_command): Remove.
10583 (_initialize_infcmd): Use add_basic_prefix_cmd.
10584 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10585 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10586 add_show_prefix_cmd.
10587 * go32-nat.c (go32_info_dos_command): Remove.
10588 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10589 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10590 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10591 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10592 (_initialize_frame): Use add_basic_prefix_cmd,
10593 add_show_prefix_cmd.
10594 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10595 (_initialize_dcache): Use add_basic_prefix_cmd,
10596 add_show_prefix_cmd.
10597 * cp-support.c (maint_cplus_command): Remove.
10598 (_initialize_cp_support): Use add_basic_prefix_cmd.
10599 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10600 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10601 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10602 add_basic_prefix_cmd, add_show_prefix_cmd.
10603 * breakpoint.c (save_command): Remove.
10604 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10605 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10606 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10607 add_show_prefix_cmd.
10608 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10609 (set_ada_command, show_ada_command): Remove.
10610 (_initialize_ada_language): Use add_basic_prefix_cmd,
10611 add_show_prefix_cmd.
10612 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10613
3557f442
KR
106142020-04-16 Kamil Rytarowski <n54@gmx.com>
10615
10616 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10617 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10618
16197208
SM
106192020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10620
10621 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10622 warning messages.
10623
00ac85d3
SM
106242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10625
10626 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10627 import table is not at beginning of .idata section.
10628
381ce63f
PA
106292020-04-16 Pedro Alves <palves@redhat.com>
10630
10631 * inferior.c (delete_inferior): Use delete operator directly
10632 instead of delete_program_space.
10633 * progspace.c (add_program_space): New, factored out from
10634 program_space::program_space.
10635 (remove_program_space): New, factored out from
10636 delete_program_space.
10637 (program_space::program_space): Remove intro comment. Rewrite.
10638 (program_space::~program_space): Remove intro comment. Call
10639 remove_program_space.
10640 (delete_program_space): Delete.
10641 * progspace.h (program_space::program_space): Make explicit. Move
10642 intro comment here, adjusted.
10643 (program_space::~program_space): Move intro comment here,
10644 adjusted.
10645 (delete_program_space): Remove.
10646
a010605f
TT
106472020-04-16 Tom Tromey <tromey@adacore.com>
10648
10649 * windows-nat.c (windows_nat::handle_access_violation): New
10650 function.
10651 * nat/windows-nat.h (handle_access_violation): Declare.
10652 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10653 windows-nat.c. Call handle_access_violation.
10654
efba5c23
TV
106552020-04-16 Tom de Vries <tdevries@suse.de>
10656
10657 PR symtab/25791
10658 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10659 CUs without psymtab.
10660
97ed802d
KB
106612020-04-16 Kevin Buettner <kevinb@redhat.com>
10662
10663 * python/python.c (do_start_initialization): Don't call
10664 PyEval_InitThreads for Python 3.9 and beyond.
10665
c7d64809
KR
106662020-04-15 Kamil Rytarowski <n54@gmx.com>
10667
10668 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10669 thread functions.
10670 (obsd_nat_target::wait): Likewise.
10671
ce127a96
TT
106722020-04-15 Tom Tromey <tromey@adacore.com>
10673
10674 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10675 (DEBUG_EXCEPT): Use debug_printf.
10676
99f1bc6a
AB
106772020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10678
10679 * completer.c (class completion_tracker::completion_hash_entry)
10680 <hash_name>: New member function.
10681 (completion_tracker::discard_completions): New callback to hash a
10682 completion_hash_entry, pass this to htab_create_alloc.
10683
a0e9b532
JT
106842016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10685
10686 * windows-nat.c (windows_make_so): Warn rather than stopping with
10687 an error if realpath() fails.
10688
06ca5dd4
KR
106892020-04-14 Kamil Rytarowski <n54@gmx.com>
10690
10691 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10692 (nbsd_nat_target::info_proc): Add do_status.
10693
194d088f
TV
106942020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10695 Tom de Vries <tdevries@suse.de>
10696
10697 PR symtab/25718
10698 * psympriv.h (struct partial_symtab::read_symtab)
10699 (struct partial_symtab::expand_psymtab)
10700 (struct partial_symtab::read_dependencies): Update comments.
10701 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10702 read_symtab for includer.
10703 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10704 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10705 (struct dwarf2_include_psymtab::m_readin): Remove.
10706 (struct dwarf2_include_psymtab::includer): New member function.
10707 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10708
c1a66c06
TV
107092020-04-14 Tom de Vries <tdevries@suse.de>
10710
10711 PR symtab/25720
10712 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10713 with NULL symbol_matcher and lookup_name.
10714 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10715 and lookup_name.
10716 * dwarf2/read.c (dw2_expand_symtabs_matching)
10717 (dw2_debug_names_expand_symtabs_matching): Same.
10718 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10719 Make lookup_name a pointer. Update comment.
10720 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10721 lookup_name being a pointer.
10722 * symfile.c (expand_symtabs_matching): Same.
10723 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10724 * linespec.c (iterate_over_all_matching_symtabs): Same.
10725
400b5eca
TT
107262020-04-13 Tom Tromey <tom@tromey.com>
10727
10728 * run-on-main-thread.c: Update include.
10729 * unittests/main-thread-selftests.c: Update include.
10730 * tui/tui-win.c: Update include.
10731 * tui/tui-io.c: Update include.
10732 * tui/tui-interp.c: Update include.
10733 * tui/tui-hooks.c: Update include.
10734 * top.h: Update include.
10735 * top.c: Update include.
10736 * ser-base.c: Update include.
10737 * remote.c: Update include.
10738 * remote-notif.c: Update include.
10739 * remote-fileio.c: Update include.
10740 * record-full.c: Update include.
10741 * record-btrace.c: Update include.
10742 * python/python.c: Update include.
10743 * posix-hdep.c: Update include.
10744 * mingw-hdep.c: Update include.
10745 * mi/mi-main.c: Update include.
10746 * mi/mi-interp.c: Update include.
10747 * main.c: Update include.
10748 * linux-nat.c: Update include.
10749 * interps.c: Update include.
10750 * infrun.c: Update include.
10751 * inf-loop.c: Update include.
10752 * event-top.c: Update include.
10753 * event-loop.c: Move to ../gdbsupport/.
10754 * event-loop.h: Move to ../gdbsupport/.
10755 * async-event.h: Update include.
10756 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10757
93b54c8e
TT
107582020-04-13 Tom Tromey <tom@tromey.com>
10759
10760 * tui/tui-win.c: Include async-event.h.
10761 * remote.c: Include async-event.h.
10762 * remote-notif.c: Include async-event.h.
10763 * record-full.c: Include async-event.h.
10764 * record-btrace.c: Include async-event.h.
10765 * infrun.c: Include async-event.h.
10766 * event-top.c: Include async-event.h.
10767 * event-loop.h: Move some declarations to async-event.h.
10768 * event-loop.c: Don't include ser-event.h or top.h. Move some
10769 code to async-event.c.
10770 * async-event.h: New file.
10771 * async-event.c: New file.
10772 * Makefile.in (COMMON_SFILES): Add async-event.c.
10773 (HFILES_NO_SRCDIR): Add async-event.h.
10774
c1cd3163
TT
107752020-04-13 Tom Tromey <tom@tromey.com>
10776
10777 * utils.c (flush_streams): New function.
10778 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10779
29f2bf4f
TT
107802020-04-13 Tom Tromey <tom@tromey.com>
10781
10782 * event-loop.c (handle_file_event): Use warning, not
10783 printf_unfiltered.
10784
98029d02
TT
107852020-04-13 Tom Tromey <tom@tromey.com>
10786
10787 * event-loop.c: Include <chrono>.
10788
06cc9596
TT
107892020-04-13 Tom Tromey <tom@tromey.com>
10790
10791 * gdb_select.h: Move to ../gdbsupport/.
10792 * event-loop.c: Update include path.
10793 * top.c: Update include path.
10794 * ser-base.c: Update include path.
10795 * ui-file.c: Update include path.
10796 * ser-tcp.c: Update include path.
10797 * guile/scm-ports.c: Update include path.
10798 * posix-hdep.c: Update include path.
10799 * ser-unix.c: Update include path.
10800 * gdb_usleep.c: Update include path.
10801 * mingw-hdep.c: Update include path.
10802 * inflow.c: Update include path.
10803 * infrun.c: Update include path.
10804 * event-top.c: Update include path.
10805
8ae8e197
TT
108062020-04-13 Tom Tromey <tom@tromey.com>
10807
10808 * configure: Rebuild.
10809 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10810
58cf28e8
TT
108112020-04-13 Tom Tromey <tom@tromey.com>
10812
10813 * event-loop.h (start_event_loop): Don't declare.
10814 * event-loop.c (start_event_loop): Move...
10815 * main.c (start_event_loop): ...here. Now static.
10816
b7f999ae
SDJ
108172020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10818
10819 * MAINTAINERS: Update my email address.
10820
1085dfd4
KR
108212020-04-12 Kamil Rytarowski <n54@gmx.com>
10822
10823 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10824 IP_ALL.
10825
49d1d1f5
KR
108262020-04-12 Kamil Rytarowski <n54@gmx.com>
10827
10828 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10829 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10830
b4848d2a
KR
108312020-04-12 Kamil Rytarowski <n54@gmx.com>
10832
10833 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10834 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10835
51c133d5
KR
108362020-04-12 Kamil Rytarowski <n54@gmx.com>
10837
10838 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10839
54b8cbd0
KR
108402020-04-11 Kamil Rytarowski <n54@gmx.com>
10841
10842 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10843 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10844 (nbsd_nat_target::info_proc): New functions.
10845 * nbsd-nat.c (kinfo_get_vmmap): New function.
10846 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10847 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10848 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10849 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10850 functions.
10851 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10852 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10853 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10854 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10855 (KINFO_VME_FLAG_GROWS_DOWN): New.
10856
cf83625d
AS
108572020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10858
10859 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10860 bit shift.
10861
0c4311ab
TT
108622020-04-10 Tom Tromey <tromey@adacore.com>
10863
10864 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10865
3e65b3e9
TT
108662020-04-10 Tom Tromey <tromey@adacore.com>
10867
10868 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10869 separate debug files.
10870
13302e95
HD
108712020-04-10 Hannes Domani <ssbssa@yahoo.de>
10872
10873 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10874 Move to...
10875 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10876 ... here.
10877 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10878 Check for STATUS_WX86_BREAKPOINT.
10879 (windows_nat_target::wait): Same.
10880
bdfc1e8a
TV
108812020-04-10 Tom de Vries <tdevries@suse.de>
10882
10883 PR cli/25808
10884 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10885
f4460aec
SM
108862020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10887
10888 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10889 (Write After Approval): Remove Tom de Vries.
10890
a25198bb
BE
108912020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10892
10893 revert partially:
10894 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10895
aac66a4c
SM
10896 * buildsym.c (record_line): Fix undefined behavior and preserve
10897 lines at eof.
a25198bb 10898
206c98a6
KR
108992020-04-09 Kamil Rytarowski <n54@gmx.com>
10900
10901 * auxv.h (svr4_auxv_parse): New.
10902 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10903 and generic_auxv_parse.
10904 (svr4_auxv_parse): Add.
10905 * obsd-tdep.c: Include "auxv.h".
10906 (obsd_auxv_parse): Remove.
10907 (obsd_init_abi): Remove comment.
10908 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10909 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10910 * nbsd-tdep.c: Include "auxv.h".
10911 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10912
71fbdbaf
TT
109132020-04-08 Tom Tromey <tromey@adacore.com>
10914
10915 * nat/windows-nat.h (last_wait_event): Don't declare.
10916 (wait_for_debug_event): Update comment.
10917 * nat/windows-nat.c (last_wait_event): Now static.
10918
2c1d95e8
TT
109192020-04-08 Tom Tromey <tromey@adacore.com>
10920
10921 * windows-nat.c (wait_for_debug_event): Move to
10922 nat/windows-nat.c.
10923 * nat/windows-nat.h (wait_for_debug_event): Declare.
10924 * nat/windows-nat.c (wait_for_debug_event): Move from
10925 windows-nat.c. No longer static.
10926
d2977bc4
TT
109272020-04-08 Tom Tromey <tromey@adacore.com>
10928
10929 * windows-nat.c (get_windows_debug_event): Use
10930 fetch_pending_stop.
10931 * nat/windows-nat.h (fetch_pending_stop): Declare.
10932 * nat/windows-nat.c (fetch_pending_stop): New function.
10933
e758e19c
TT
109342020-04-08 Tom Tromey <tromey@adacore.com>
10935
10936 * windows-nat.c (windows_continue): Use matching_pending_stop and
10937 continue_last_debug_event.
10938 * nat/windows-nat.h (matching_pending_stop)
10939 (continue_last_debug_event): Declare.
10940 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10941 (matching_pending_stop, continue_last_debug_event): New
10942 functions.
10943
8d30e395
TT
109442020-04-08 Tom Tromey <tromey@adacore.com>
10945
10946 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10947 (handle_exception_result): Move to nat/windows-nat.h.
10948 (DEBUG_EXCEPTION_SIMPLE): Remove.
10949 (windows_nat::handle_ms_vc_exception): New function.
10950 (handle_exception): Move to nat/windows-nat.c.
10951 (get_windows_debug_event): Update.
10952 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10953 nat/windows-nat.c.
10954 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10955 (handle_exception_result): Move from windows-nat.c.
10956 (handle_exception): Declare.
10957 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10958 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10959 windows-nat.c.
10960
29de418d
TT
109612020-04-08 Tom Tromey <tromey@adacore.com>
10962
10963 * windows-nat.c (exception_count, event_count): Remove.
10964 (handle_exception, get_windows_debug_event)
10965 (do_initial_windows_stuff): Update.
10966
a816ba18
TT
109672020-04-08 Tom Tromey <tromey@adacore.com>
10968
10969 * windows-nat.c (windows_nat::handle_load_dll)
10970 (windows_nat::handle_unload_dll): Rename. No longer static.
10971 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10972 Declare.
10973
a00caa12
TT
109742020-04-08 Tom Tromey <tromey@adacore.com>
10975
10976 * complaints.h (stop_whining): Declare at top-level.
10977 (complaint): Don't declare stop_whining.
10978
d41b524f
TT
109792020-04-08 Tom Tromey <tromey@adacore.com>
10980
10981 * windows-nat.c (windows_nat::handle_output_debug_string):
10982 Rename. No longer static.
10983 * nat/windows-nat.h (handle_output_debug_string): Declare.
10984
3c76026d
TT
109852020-04-08 Tom Tromey <tromey@adacore.com>
10986
10987 * windows-nat.c (current_process_handle, current_process_id)
10988 (main_thread_id, last_sig, current_event, last_wait_event)
10989 (current_windows_thread, desired_stop_thread_id, pending_stops)
10990 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10991 (display_selectors, fake_create_process)
10992 (get_windows_debug_event): Update.
10993 * nat/windows-nat.h (current_process_handle, current_process_id)
10994 (main_thread_id, last_sig, current_event, last_wait_event)
10995 (current_windows_thread, desired_stop_thread_id, pending_stops)
10996 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10997 * nat/windows-nat.c (current_process_handle, current_process_id)
10998 (main_thread_id, last_sig, current_event, last_wait_event)
10999 (current_windows_thread, desired_stop_thread_id, pending_stops)
11000 (siginfo_er): New globals. Move from windows-nat.c.
11001
9d8679cc
TT
110022020-04-08 Tom Tromey <tromey@adacore.com>
11003
11004 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11005 (handle_load_dll): Update.
11006 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11007
28688adf
TT
110082020-04-08 Tom Tromey <tromey@adacore.com>
11009
11010 * windows-nat.c (enum thread_disposition_type): Move to
11011 nat/windows-nat.h.
11012 (windows_nat::thread_rec): Rename from thread_rec. No longer
11013 static.
11014 (windows_add_thread, windows_nat_target::fetch_registers)
11015 (windows_nat_target::store_registers, handle_exception)
11016 (windows_nat_target::resume, get_windows_debug_event)
11017 (windows_nat_target::get_tib_address)
11018 (windows_nat_target::thread_name)
11019 (windows_nat_target::thread_alive): Update.
11020 * nat/windows-nat.h (enum thread_disposition_type): Move from
11021 windows-nat.c.
11022 (thread_rec): Declare.
11023
4834dad0
TT
110242020-04-08 Tom Tromey <tromey@adacore.com>
11025
11026 * windows-nat.c: Add "using namespace".
11027 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11028 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11029
65bafd5b
TT
110302020-04-08 Tom Tromey <tromey@adacore.com>
11031
11032 * nat/windows-nat.h (struct windows_thread_info): Declare
11033 destructor.
11034 * nat/windows-nat.c (~windows_thread_info): New.
11035
0a4afda3
TT
110362020-04-08 Tom Tromey <tromey@adacore.com>
11037
11038 PR gdb/22992
11039 * windows-nat.c (current_event): Update comment.
11040 (last_wait_event, desired_stop_thread_id): New globals.
11041 (struct pending_stop): New.
11042 (pending_stops): New global.
11043 (windows_nat_target) <stopped_by_sw_breakpoint>
11044 <supports_stopped_by_sw_breakpoint>: New methods.
11045 (windows_fetch_one_register): Add assertions. Adjust PC.
11046 (windows_continue): Handle pending stops. Suspend other threads
11047 when stepping. Use last_wait_event
11048 (wait_for_debug_event): New function.
11049 (get_windows_debug_event): Use wait_for_debug_event. Handle
11050 pending stops. Queue spurious stops.
11051 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11052 (windows_nat_target::kill): Use wait_for_debug_event.
11053 * nat/windows-nat.h (struct windows_thread_info)
11054 <stopped_at_software_breakpoint>: New field.
11055 * nat/windows-nat.c (windows_thread_info::resume): Clear
11056 stopped_at_software_breakpoint.
11057
8e61ebec
TT
110582020-04-08 Tom Tromey <tromey@adacore.com>
11059
11060 * windows-nat.c (enum thread_disposition_type): New.
11061 (thread_rec): Replace "get_context" parameter with "disposition";
11062 change type.
11063 (windows_add_thread, windows_nat_target::fetch_registers)
11064 (windows_nat_target::store_registers, handle_exception)
11065 (windows_nat_target::resume, get_windows_debug_event)
11066 (windows_nat_target::get_tib_address)
11067 (windows_nat_target::thread_name)
11068 (windows_nat_target::thread_alive): Update.
11069
98a03287
TT
110702020-04-08 Tom Tromey <tromey@adacore.com>
11071
11072 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11073 (windows_continue): Use windows_continue::resume.
11074 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11075 resume>: Declare new methods.
11076 * nat/windows-nat.c: New file.
11077 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11078
7c7411bc
TT
110792020-04-08 Tom Tromey <tromey@adacore.com>
11080
11081 * windows-nat.c (windows_add_thread, windows_delete_thread)
11082 (windows_nat_target::fetch_registers)
11083 (windows_nat_target::store_registers, fake_create_process)
11084 (windows_nat_target::resume, windows_nat_target::resume)
11085 (get_windows_debug_event, windows_nat_target::wait)
11086 (windows_nat_target::pid_to_str)
11087 (windows_nat_target::get_tib_address)
11088 (windows_nat_target::get_ada_task_ptid)
11089 (windows_nat_target::thread_name)
11090 (windows_nat_target::thread_alive): Use lwp, not tid.
11091
2950fdf7
TT
110922020-04-08 Tom Tromey <tromey@adacore.com>
11093
11094 * windows-nat.c (handle_exception)
11095 (windows_nat_target::thread_name): Update.
11096 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11097 <name>: Now unique_xmalloc_ptr.
11098
62fe396b
TT
110992020-04-08 Tom Tromey <tromey@adacore.com>
11100
11101 * windows-nat.c (thread_rec)
11102 (windows_nat_target::fetch_registers): Update.
11103 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11104 Update comment.
11105 <debug_registers_changed, reload_context>: Now bool.
11106
e9534bd2
TT
111072020-04-08 Tom Tromey <tromey@adacore.com>
11108
11109 * windows-nat.c (windows_add_thread): Use new.
11110 (windows_init_thread_list, windows_delete_thread): Use delete.
11111 (get_windows_debug_event): Update.
11112 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11113 destructor, and initializers.
11114
ae1f8880
TT
111152020-04-08 Tom Tromey <tromey@adacore.com>
11116
11117 * windows-nat.c (struct windows_thread_info): Remove.
11118 * nat/windows-nat.h: New file.
11119
55a1e039
TT
111202020-04-08 Tom Tromey <tromey@adacore.com>
11121
11122 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11123 (thread_rec, windows_add_thread, windows_delete_thread)
11124 (windows_continue): Update.
11125
93366324
TT
111262020-04-08 Tom Tromey <tromey@adacore.com>
11127
11128 * windows-nat.c (struct windows_thread_info): Remove typedef.
11129 (thread_head): Remove.
11130 (thread_list): New global.
11131 (thread_rec, windows_add_thread, windows_init_thread_list)
11132 (windows_delete_thread, windows_continue): Update.
11133
0f2265e2
SM
111342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11135
11136 * windows-tdep.h (windows_init_abi): Add comment.
11137 (cygwin_init_abi): New declaration.
11138 * windows-tdep.c: Split signal enumeration in two, one for
11139 Windows and one for Cygwin.
11140 (windows_gdb_signal_to_target): Only deal with signal of the
11141 Windows OS ABI.
11142 (cygwin_gdb_signal_to_target): New function.
11143 (windows_init_abi): Rename to windows_init_abi_common, don't set
11144 gdb_signal_to_target gdbarch method. Add new new function with
11145 this name.
11146 (cygwin_init_abi): New function.
11147 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11148 comment. Don't call windows_init_abi.
11149 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11150 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11151 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11152 i386_windows_init_abi_common, don't call windows_init_abi. Add
11153 a new function of this name.
11154 (i386_cygwin_init_abi): New function.
11155 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11156 OS ABI Cygwin.
11157
3810f182
SM
111582020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11159
11160 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11161 parameter.c.
11162 (dwarf2_read_gdb_index): Update.
11163
063f8e80
KR
111642020-04-07 Kamil Rytarowski <n54@gmx.com>
11165
11166 * nbsd-tdep.c: Include "objfiles.h".
11167 (nbsd_skip_solib_resolver): New.
11168 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11169
85a9510c 111702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11171
11172 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11173 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11174 with DW_LLE_base_addressx are being emitted in DWARFv5.
11175 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11176 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11177 unsigned integer.
11178
9fc3eaae 111792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11180
11181 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11182 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11183 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11184 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11185 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11186 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11187 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11188
11189
41144253 111902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11191
11192 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11193 (read_loclist_index): New function definition.
11194 (lookup_loclist_base): New function definition.
11195 (read_loclist_header): New function definition.
11196 (dwarf2_cu): Add loclist_base and loclist_header field.
11197 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11198 (read_full_die_1): Read the value of DW_AT_loclists_base.
11199 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11200 (read_attribute_value): Handle DW_FORM_loclistx.
11201 (skip_one_die): Handle DW_FORM_loclistx.
11202 (loclist_header): New structure declaration.
11203 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11204
9f4e76a4
SM
112052020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11206
11207 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11208 constructor. Remove `addr` parameter from other constructor and
11209 add `per_cu` parameter.
11210 * dwarf2/read.c (create_partial_symtab): Update.
11211
25c11aca
TV
112122020-04-07 Tom de Vries <tdevries@suse.de>
11213
11214 PR symtab/25796
11215 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11216 (partial_die_info::fixup): Inherit has_const_value.
11217
5707e24b
TV
112182020-04-07 Tom de Vries <tdevries@suse.de>
11219
11220 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11221 symbols without address.
11222
05f00e22
KR
112232020-04-06 Kamil Rytarowski <n54@gmx.com>
11224
11225 * nbsd-nat.h (struct thread_info): Add forward declaration.
11226 (nbsd_nat_target::thread_alive): Add.
11227 (nbsd_nat_target::thread_name): Likewise.
11228 (nbsd_nat_target::update_thread_list): Likewise.
11229 (update_thread_list::post_attach): Likewise.
11230 (post_attach::pid_to_str): Likewise.
11231 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11232 (nbsd_thread_lister): Add.
11233 (nbsd_nat_target::thread_alive): Likewise.
11234 (nbsd_nat_target::thread_name): Likewise.
11235 (nbsd_add_threads): Likewise.
11236 (update_thread_list::post_attach): Likewise.
11237 (nbsd_nat_target::update_thread_list): Likewise.
11238 (post_attach::pid_to_str): Likewise.
11239
6ee448cc
TT
112402020-04-06 Tom Tromey <tromey@adacore.com>
11241
11242 * ada-valprint.c (print_variant_part): Extract the variant field.
11243 (print_field_values): Use the field as the outer value when
11244 recursing.
11245
dea34e8c
TT
112462020-04-06 Tom Tromey <tromey@adacore.com>
11247
11248 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11249 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11250 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11251 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11252 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11253
93689ce9
TT
112542020-04-06 Tom Tromey <tromey@adacore.com>
11255
11256 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11257 TYPE_CODE_ERROR.
11258
79743962
KR
112592020-04-06 Kamil Rytarowski <n54@gmx.com>
11260
11261 * nbsd-tdep.c: Include "gdbarch.h".
11262 Define enum with NetBSD signal numbers.
11263 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11264 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11265 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11266 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11267 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11268 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11269 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11270 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11271 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11272 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11273 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11274 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11275
9e7c9a03
HD
112762020-04-03 Hannes Domani <ssbssa@yahoo.de>
11277
11278 PR gdb/25325
11279 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11280
d9e49b61
TT
112812020-04-03 Tom Tromey <tromey@adacore.com>
11282
11283 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11284 Read constant block.
11285
e0fc5c3f
SM
112862020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11287
11288 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11289 (gdb_bfd_get_full_section_contents): New declaration.
11290 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11291 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11292 gdb_bfd_get_full_section_contents.
11293
e2ff18a0
SM
112942020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11295
11296 * exec.c (build_section_table): Replace internal_error with
11297 gdb_assert.
11298 (section_table_xfer_memory_partial): Likewise.
11299 * mdebugread.c (parse_partial_symbols): Likewise.
11300 * psymtab.c (lookup_partial_symbol): Likewise.
11301 * utils.c (wrap_here): Likewise.
11302
0830d301
TT
113032020-04-02 Tom Tromey <tromey@adacore.com>
11304
11305 * f-lang.c (build_fortran_types): Use arch_type to initialize
11306 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11307
e7da7f8f
TT
113082020-04-02 Tom Tromey <tromey@adacore.com>
11309
11310 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11311 of attributes.
11312
c90d28ac
AB
113132020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11314 Bernd Edlinger <bernd.edlinger@hotmail.de>
11315 Tom Tromey <tromey@adacore.com>
11316
11317 * buildsym.c (buildsym_compunit::record_line): Remove
11318 deduplication code.
11319
1aa98955
TV
113202020-04-02 Tom de Vries <tdevries@suse.de>
11321
11322 PR ada/24671
11323 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11324
d3214198
TV
113252020-04-02 Tom de Vries <tdevries@suse.de>
11326
11327 * dwarf2/read.c (dwarf2_gdb_index_functions,
11328 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11329 NULL.
11330 * psymtab.c (psym_lookup_global_symbol_language): New function.
11331 (psym_functions): Init psym_lookup_global_symbol_language with
11332 psym_lookup_global_symbol_language.
11333 * symfile-debug.c (debug_sym_quick_functions): Init
11334 lookup_global_symbol_language with NULL.
11335 * symfile.c (set_initial_language): Remove fixme comment.
11336 * symfile.h (struct quick_symbol_functions): Add
11337 lookup_global_symbol_language.
11338 * symtab.c (find_quick_global_symbol_language): New function.
11339 (find_main_name): Use find_quick_global_symbol_language.
11340
2836752f
SM
113412020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11342
11343 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11344
64dc2d4b
BE
113452020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11346
11347 * buildsym.c (record_line): Fix undefined behavior and preserve
11348 lines at eof.
11349
bbe3dc41
BE
113502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11351
11352 * buildsym.c (record_line): Fix the resizing condition.
11353
6b4a335b
TT
113542020-04-01 Tom Tromey <tom@tromey.com>
11355
11356 * value.h (value_literal_complex): Add comment.
11357 * valops.c (value_literal_complex): Refer to value.h.
11358
3638a098
TT
113592020-04-01 Tom Tromey <tom@tromey.com>
11360
11361 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11362 (scalar_type): New rule, from typebase.
11363 (typebase): Use scalar_type. Recognize complex types.
11364 (field_name): Handle FLOAT_KEYWORD.
11365 (ident_tokens): Add _Complex and __complex__.
11366
c34e8714
TT
113672020-04-01 Tom Tromey <tom@tromey.com>
11368
11369 PR exp/25299:
11370 * valarith.c (promotion_type, complex_binop): New functions.
11371 (scalar_binop): Handle complex numbers. Use promotion_type.
11372 (value_pos, value_neg, value_complement): Handle complex numbers.
11373
fa649bb7
TT
113742020-04-01 Tom Tromey <tom@tromey.com>
11375
11376 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11377 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11378 (parse_number): Handle complex numbers.
11379
981c08ce
TT
113802020-04-01 Tom Tromey <tom@tromey.com>
11381
11382 * c-valprint.c (c_decorations): Change complex suffix to "i".
11383
4c99290d
TT
113842020-04-01 Tom Tromey <tom@tromey.com>
11385
11386 * valprint.c (generic_value_print_complex): Use accessors.
11387 * value.h (value_real_part, value_imaginary_part): Declare.
11388 * valops.c (value_real_part, value_imaginary_part): New
11389 functions.
11390 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11391
5b930b45
TT
113922020-04-01 Tom Tromey <tom@tromey.com>
11393
11394 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11395 (read_range_type): Update.
11396 * mdebugread.c (basic_type): Update.
11397 * go-lang.c (build_go_types): Use init_complex_type.
11398 * gdbtypes.h (struct main_type) <complex_type>: New member.
11399 (init_complex_type): Update.
11400 (arch_complex_type): Don't declare.
11401 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11402 Make name if none given. Use alloc_type_copy. Look for cached
11403 complex type.
11404 (arch_complex_type): Remove.
11405 (gdbtypes_post_init): Use init_complex_type.
11406 * f-lang.c (build_fortran_types): Use init_complex_type.
11407 * dwarf2/read.c (read_base_type): Update.
11408 * d-lang.c (build_d_types): Use init_complex_type.
11409 * ctfread.c (read_base_type): Update.
11410
53cccef1
TBA
114112020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11412
11413 * infrun.c (stop_all_threads): Update assertion, plus when
11414 stopping threads, take into account that we might be trying
11415 to stop an all-stop target.
11416 (stop_waiting): Call 'stop_all_threads' if there exists a
11417 non-stop target.
11418
a0714d30
TBA
114192020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11420
11421 * target.h (exists_non_stop_target): New function declaration.
11422 * target.c (exists_non_stop_target): New function.
11423
60e22c1e
HD
114242020-04-01 Hannes Domani <ssbssa@yahoo.de>
11425
11426 PR gdb/24789
11427 * eval.c (is_integral_or_integral_reference): New function.
11428 (evaluate_subexp_standard): Allow integer references in
11429 pointer arithmetic.
11430
e139a727
TBA
114312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11432
11433 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11434 check for no ptid in the stop reply when the target is non-stop.
11435
e0802d59
TT
114362020-04-01 Tom Tromey <tromey@adacore.com>
11437
11438 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11439 "name" parameter to rvalue reference. Initialize m_name_holder.
11440 <lookup_name_info>: New overloads.
11441 <name>: Return gdb::string_view.
11442 <c_str>: New method.
11443 <make_ignore_params>: Update.
11444 <search_name_hash>: Update.
11445 <language_lookup_name>: Return const char *.
11446 <m_name>: Change type.
11447 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11448 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11449 (lookup_name_info::match_any): Update.
11450 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11451 Update.
11452 * minsyms.c (linkage_name_str): Update.
11453 * language.c (default_symbol_name_matcher): Update.
11454 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11455 Update.
11456 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11457 (ada_lookup_name_info::ada_lookup_name_info): Update.
11458 (literal_symbol_name_matcher): Update.
11459
8c072cb6
TT
114602020-04-01 Tom Tromey <tromey@adacore.com>
11461
11462 * psymtab.c (psymtab_search_name): Remove function.
11463 (psym_lookup_symbol): Create search name and lookup name here.
11464 (lookup_partial_symbol): Remove "name" parameter; add
11465 lookup_name.
11466 (psym_expand_symtabs_for_function): Update.
11467
6f29a534
TT
114682020-03-31 Joel Jones <joelkevinjones@gmail.com>
11469
11470 PR tui/25597:
11471 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11472
af62665e
TT
114732020-03-31 Tom Tromey <tromey@adacore.com>
11474
11475 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11476 memcpy.
11477
d1a89da5
NC
114782020-03-30 Nelson Chu <nelson.chu@sifive.com>
11479
11480 * features/riscv/32bit-csr.xml: Regenerated.
11481 * features/riscv/64bit-csr.xml: Regenerated.
11482
d8af9068
TT
114832020-03-30 Tom Tromey <tromey@adacore.com>
11484
11485 * ada-valprint.c (print_variant_part): Update.
11486 * ada-lang.h (ada_which_variant_applies): Update.
11487 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11488 outer_valaddr parameters; replace with "outer" value parameter.
11489 (to_fixed_variant_branch_type): Update.
11490
227c0bf4
PFC
114912020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11492
11493 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11494 <list>. Remove inclusion of observable.h.
11495 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11496 (struct arch_lwp_info): New struct.
11497 (class ppc_linux_dreg_interface): New class.
11498 (struct ppc_linux_process_info): New struct.
11499 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11500 <low_new_clone, low_forget_process, low_prepare_to_resume>
11501 <copy_thread_dreg_state, mark_thread_stale>
11502 <mark_debug_registers_changed, register_hw_breakpoint>
11503 <clear_hw_breakpoint, register_wp, clear_wp>
11504 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11505 <num_memory_accesses, get_trigger_type>
11506 <create_watchpoint_request, hwdebug_point_cmp>
11507 <init_arch_lwp_info, get_arch_lwp_info>
11508 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11509 methods.
11510 <struct ptid_hash>: New inner struct.
11511 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11512 members.
11513 (saved_dabr_value, hwdebug_info, max_slots_number)
11514 (struct hw_break_tuple, struct thread_points, ppc_threads)
11515 (have_ptrace_hwdebug_interface)
11516 (hwdebug_find_thread_points_by_tid)
11517 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11518 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11519 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11520 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11521 use m_dreg_interface.
11522 (hwdebug_point_cmp): Change to...
11523 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11524 reference arguments instead of pointers.
11525 (ppc_linux_nat_target::ranged_break_num_registers): Use
11526 m_dreg_interface.
11527 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11528 m_dreg_interface. Call register_hw_breakpoint.
11529 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11530 m_dreg_interface. Call clear_hw_breakpoint.
11531 (get_trigger_type): Change to...
11532 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11533 comment.
11534 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11535 use m_dreg_interface. Call register_hw_breakpoint.
11536 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11537 use m_dreg_interface. Call clear_hw_breakpoint.
11538 (can_use_watchpoint_cond_accel): Change to...
11539 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11540 method. Update comment, use m_dreg_interface and
11541 m_process_info.
11542 (calculate_dvc): Change to...
11543 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11544 m_dreg_interface.
11545 (num_memory_accesses): Change to...
11546 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11547 (check_condition): Change to...
11548 (ppc_linux_nat_target::check_condition): ...this method.
11549 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11550 comment, use m_dreg_interface.
11551 (create_watchpoint_request): Change to...
11552 (ppc_linux_nat_target::create_watchpoint_request): ...this
11553 method. Use m_dreg_interface.
11554 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11555 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11556 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11557 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11558 (ppc_linux_nat_target::low_forget_process)
11559 (ppc_linux_nat_target::low_new_fork)
11560 (ppc_linux_nat_target::low_new_clone)
11561 (ppc_linux_nat_target::low_delete_thread)
11562 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11563 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11564 only call mark_thread_stale.
11565 (ppc_linux_thread_exit): Remove.
11566 (ppc_linux_nat_target::stopped_data_address): Change to...
11567 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11568 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11569 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11570 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11571 comment. Call low_stopped_data_address.
11572 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11573 m_dreg_interface.
11574 (ppc_linux_nat_target::masked_watch_num_registers): Use
11575 m_dreg_interface.
11576 (ppc_linux_nat_target::copy_thread_dreg_state)
11577 (ppc_linux_nat_target::mark_thread_stale)
11578 (ppc_linux_nat_target::mark_debug_registers_changed)
11579 (ppc_linux_nat_target::register_hw_breakpoint)
11580 (ppc_linux_nat_target::clear_hw_breakpoint)
11581 (ppc_linux_nat_target::register_wp)
11582 (ppc_linux_nat_target::clear_wp)
11583 (ppc_linux_nat_target::init_arch_lwp_info)
11584 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11585 (_initialize_ppc_linux_nat): Remove observer callback.
11586
4db10d8f
PFC
115872020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11588
11589 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11590 (ppc_linux_nat_target::auxv_parse)
11591 (ppc_linux_nat_target::read_description)
11592 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11593 Move up.
11594
1310c1b0
PFC
115952020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11596
11597 * linux-nat.h (low_new_clone): New method.
11598 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11599
69b037c3
SM
116002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11601
11602 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11603 (dbx_expand_psymtab): ... this.
11604 (start_psymtab): Update.
11605 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11606 (mdebug_expand_psymtab): ... this.
11607 (parse_partial_symbols): Update.
11608 (new_psymtab): Update.
11609 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11610 (xcoff_expand_psymtab): ... this.
11611 (xcoff_start_psymtab): Update.
11612
48993951
SM
116132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11614
11615 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11616 <expand_dependencies>: ... this.
11617 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11618 (partial_symtab::expand_dependencies): ... this.
11619 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11620 Update.
11621 (dwarf2_psymtab::expand_psymtab): Update.
11622 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11623 * mdebugread.c (psymtab_to_symtab_1): Update.
11624 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11625
3ad83046
SM
116262020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11627
11628 * psympriv.h (discard_psymtab): Remove.
11629 * dbxread.c (dbx_end_psymtab): Update.
11630 * xcoffread.c (xcoff_end_psymtab): Update.
11631
4d1b9ab6
TT
116322020-03-28 Tom Tromey <tom@tromey.com>
11633
11634 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11635 comment.
11636
f1749218
TT
116372020-03-28 Tom Tromey <tom@tromey.com>
11638
11639 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11640
ebea7626
HD
116412020-03-27 Hannes Domani <ssbssa@yahoo.de>
11642
11643 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11644
a879b4d5
JB
116452020-03-26 John Baldwin <jhb@FreeBSD.org>
11646
11647 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11648
0826b30a
TT
116492020-03-26 Tom Tromey <tom@tromey.com>
11650
11651 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11652 (mark_common_block_symbol_computed, read_tag_string_type)
11653 (attr_to_dynamic_prop, read_subrange_type): Update.
11654 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11655 to be methods on struct attribute.
11656 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11657 (read_call_site_scope, partial_die_info::read)
11658 (partial_die_info::read, lookup_die_type, follow_die_ref):
11659 Update.
11660 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11661 from dwarf2_get_ref_die_offset.
11662 (attribute::constant_value): New method, from
11663 dwarf2_get_attr_constant_value.
11664 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11665 Declare method.
11666 <constant_value>: New method.
11667
2b2558bf
TT
116682020-03-26 Tom Tromey <tom@tromey.com>
11669
11670 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11671 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11672 (dwarf_type_encoding_name): Move to stringify.c.
11673 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11674 * dwarf2/stringify.c: New file.
11675 * dwarf2/stringify.h: New file.
11676
eeb64781
TT
116772020-03-26 Tom Tromey <tom@tromey.com>
11678
11679 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11680 Rewrite.
11681
a39fdb41
TT
116822020-03-26 Tom Tromey <tom@tromey.com>
11683
11684 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11685 methods.
11686 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11687 (lookup_ranges_base): Likewise.
11688 (read_cutu_die_from_dwo, read_full_die_1): Update.
11689
436c571c
TT
116902020-03-26 Tom Tromey <tom@tromey.com>
11691
11692 * dwarf2/read.c (read_import_statement, read_file_scope)
11693 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11694 (read_lexical_block_scope, read_call_site_scope)
11695 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11696 (handle_struct_member_die, process_structure_scope)
11697 (update_enumeration_type_from_children)
11698 (process_enumeration_scope, read_array_type, read_common_block)
11699 (read_namespace, read_module, read_subroutine_type): Update.
11700 (sibling_die): Remove.
11701
052c8bb8
TT
117022020-03-26 Tom Tromey <tom@tromey.com>
11703
11704 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11705 (build_type_psymtabs_reader, read_structure_type)
11706 (read_enumeration_type, read_full_die_1): Update.
11707 (dwarf2_attr_no_follow): Move to die.h.
11708 * dwarf2/die.h (struct die_info) <attr>: New method.
11709
2b24b6e4
TT
117102020-03-26 Tom Tromey <tom@tromey.com>
11711
11712 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11713 <base_address>: Now an optional.
11714 (dwarf2_find_base_address, dwarf2_rnglists_process)
11715 (dwarf2_ranges_process, fill_in_loclist_baton)
11716 (dwarf2_symbol_mark_computed): Update.
11717
c2d50fd0
TT
117182020-03-26 Tom Tromey <tom@tromey.com>
11719
11720 * dwarf2/read.c (struct die_info): Move to die.h.
11721 * dwarf2/die.h: New file.
11722
0df7ad3a
TT
117232020-03-26 Tom Tromey <tom@tromey.com>
11724
11725 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11726 * dwarf2/read.c
11727 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11728 Move to line-header.c.
11729 (read_checked_initial_length_and_offset, read_formatted_entries):
11730 Likewise.
11731 (dwarf_decode_line_header): Split into two.
11732 * dwarf2/line-header.c
11733 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11734 Move from read.c.
11735 (read_checked_initial_length_and_offset, read_formatted_entries):
11736 Likewise.
11737 (dwarf_decode_line_header): New function, split from read.c.
11738
86c0bb4c
TT
117392020-03-26 Tom Tromey <tom@tromey.com>
11740
11741 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11742 Declare method.
11743 * dwarf2/read.c (read_attribute_value): Update.
11744 (dwarf2_per_objfile::read_line_string): Rename from
11745 read_indirect_line_string.
11746 (read_formatted_entries): Update.
11747
2ef46c2f
TT
117482020-03-26 Tom Tromey <tom@tromey.com>
11749
11750 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11751 variable.
11752
4f9c1eda
TT
117532020-03-26 Tom Tromey <tom@tromey.com>
11754
11755 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11756 const.
11757 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11758 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11759 parameter const.
11760
5a0e026f
TT
117612020-03-26 Tom Tromey <tom@tromey.com>
11762
11763 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11764 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11765 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11766 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11767
8844c11b
TT
117682020-03-26 Tom Tromey <tom@tromey.com>
11769
11770 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11771 file_names_size, file_full_name, file_file_name>: Use const.
11772 <file_name_at, file_names>: Add const overload.
11773 * dwarf2/line-header.c (line_header::file_file_name)
11774 (line_header::file_full_name): Update.
11775
c90ec28a
TT
117762020-03-26 Tom Tromey <tom@tromey.com>
11777
11778 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11779 (macro_start_file, consume_improper_spaces)
11780 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11781 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11782 (dwarf_decode_macros): Move to macro.c.
11783 * dwarf2/macro.c: New file.
11784 * dwarf2/macro.h: New file.
11785 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11786
4f44ae6c
TT
117872020-03-26 Tom Tromey <tom@tromey.com>
11788
11789 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11790 method.
11791 * dwarf2/section.c: New method. From
11792 read_indirect_string_at_offset_from.
11793 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11794 (read_indirect_string_at_offset_from): Move to section.c.
11795 (read_indirect_string_at_offset): Rewrite.
11796 (read_indirect_line_string_at_offset): Remove.
11797 (read_indirect_string, read_indirect_line_string)
11798 (dwarf_decode_macro_bytes): Update.
11799
a0194fa8
TT
118002020-03-26 Tom Tromey <tom@tromey.com>
11801
11802 * dwarf2/section.h (struct dwarf2_section_info)
11803 <overload_complaint>: Declare.
11804 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11805 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11806 Rename from dwarf2_section_buffer_overflow_complaint.
11807 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11808 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11809
3d27bbdb
TT
118102020-03-26 Tom Tromey <tom@tromey.com>
11811
11812 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11813 Declare.
11814 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11815 Move from read.c.
11816 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11817 to section.c.
11818
9eac9650
TT
118192020-03-26 Tom Tromey <tom@tromey.com>
11820
11821 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11822
bf80d710
TT
118232020-03-26 Tom Tromey <tom@tromey.com>
11824
11825 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11826 "builder".
11827 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11828 parameter.
11829 (dwarf_decode_macros): Update.
11830
0314b390
TT
118312020-03-26 Tom Tromey <tom@tromey.com>
11832
11833 * dwarf2/read.c (read_attribute_value): Update.
11834 (read_indirect_string_from_dwz): Move to dwz.c; change into
11835 method.
11836 (dwarf_decode_macro_bytes): Update.
11837 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11838 * dwarf2/dwz.c: New file.
11839 * Makefile.in (COMMON_SFILES): Add dwz.c.
11840
9fda78b6
TT
118412020-03-26 Tom Tromey <tom@tromey.com>
11842
11843 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11844 * dwarf2/read.c: Add include.
11845 * dwarf2/index-write.c: Add include.
11846 * dwarf2/index-cache.c: Add include.
11847 * dwarf2/dwz.h: New file.
11848
33aa3c10
TT
118492020-03-25 Tom Tromey <tom@tromey.com>
11850
11851 * compile/compile-object-load.c (get_out_value_type): Mention
11852 correct symbol name in error message.
11853
d503b685
HD
118542020-03-25 Hannes Domani <ssbssa@yahoo.de>
11855
11856 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11857
7b1eff95
TV
118582020-03-25 Tom de Vries <tdevries@suse.de>
11859
11860 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11861 * symmisc.c (dump_symtab_1): Print user and includes fields.
11862 (maintenance_info_symtabs): Same.
11863
dd895392
AB
118642020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11865
11866 PR gdb/25534
11867 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11868 (riscv_regcache_cooked_write): New function.
11869 (riscv_push_dummy_call): Use new function.
11870 (riscv_return_value): Likewise.
11871
5ab2fbf1
SM
118722020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11873
11874 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11875 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11876 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11877 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11878 * infrun.c (follow_fork): Likewise.
11879 (follow_fork_inferior): Likewise.
11880 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11881 * linux-nat.h (class linux_nat_target): Likewise.
11882 * remote.c (class remote_target) <follow_fork>: Likewise.
11883 (remote_target::follow_fork): Likewise.
11884 * target-delegates.c: Re-generate.
11885 * target.c (default_follow_fork): Likewise.
11886 (target_follow_fork): Likewise.
11887 * target.h (struct target_ops) <follow_fork>: Likewise.
11888 (target_follow_fork): Likewise.
11889
a64fafb5
TV
118902020-03-24 Tom de Vries <tdevries@suse.de>
11891
11892 * psymtab.c (maintenance_info_psymtabs): Print user field.
11893
fe26d3a3
TT
118942020-03-20 Tom Tromey <tromey@adacore.com>
11895
11896 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11897 const.
11898 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11899 const.
11900
c884cc46
SM
119012020-03-20 Simon Marchi <simon.marchi@efficios.com>
11902
11903 * ptrace.m4: Don't check for ptrace declaration.
11904 * config.in: Re-generate.
11905 * configure: Re-generate.
11906 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11907 not defined.
11908
1ff700c2
KR
119092020-03-20 Kamil Rytarowski <n54@gmx.com>
11910
11911 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11912 `PTRACE_TYPE_RET'.
11913 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11914 * sparc-nat.c (gdb_ptrace): Likewise.
11915 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11916
f7d4f0b1
TT
119172020-03-20 Tom Tromey <tromey@adacore.com>
11918
11919 * c-exp.y (lex_one_token): Fix assert.
11920
f67210ff
TT
119212020-03-20 Tom Tromey <tromey@adacore.com>
11922
11923 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11924 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11925 strncpy call.
11926
1773be9e
TT
119272020-03-20 Tom Tromey <tromey@adacore.com>
11928
11929 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11930
70304be9
TT
119312020-03-20 Tom Tromey <tromey@adacore.com>
11932
11933 * ada-valprint.c (print_variant_part): Remove parameters; switch
11934 to value-based API.
11935 (print_field_values): Likewise.
11936 (ada_val_print_struct_union): Likewise.
11937 (ada_value_print_1): Update.
11938
9faa006d
KR
119392020-03-20 Kamil Rytarowski <n54@gmx.com>
11940
11941 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11942 nbsd_nat_target instead of inf_ptrace_target.
11943 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11944 nbsd_nat_target.
11945
4a90f062
KR
119462020-03-20 Kamil Rytarowski <n54@gmx.com>
11947
11948 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11949 it to the ptrace call.
11950 * (store_registers): Likewise.
11951
119522020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11953
11954 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11955 it to the ptrace call.
11956 * (store_registers): Likewise.
11957
2d07da27
LM
119582020-03-19 Luis Machado <luis.machado@linaro.org>
11959
11960 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11961 valid, fetch vg value from ptrace.
11962
f09db380
KR
119632020-03-19 Kamil Rytarowski <n54@gmx.com>
11964 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11965 * inf-ptrace.c: Likewise.
11966 * (gdb_ptrace): Add.
11967 * (inf_ptrace_target::resume): Update.
11968 * (inf_ptrace_target::xfer_partial): Likewise.
11969 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11970 * (inf_ptrace_peek_poke): Update.
11971
fcc7376e
KR
119722020-03-19 Kamil Rytarowski <n54@gmx.com>
11973
11974 * x86-bsd-nat.c (gdb_ptrace): New.
11975 * (x86bsd_dr_set): Add new argument `ptid'.
11976 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11977 x86bsd_dr_set_addr): Update.
11978
cada5fc9
AB
119792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11980
11981 * remote.c (remote_target::process_stop_reply): Handle events for
11982 all threads differently.
11983
19a2740f
AB
119842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11985
11986 * completer.c (completion_tracker::remove_completion): Define new
11987 function.
11988 * completer.h (completion_tracker::remove_completion): Declare new
11989 function.
11990 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11991 when adding a C++ function symbol.
11992
724fd9ba
AB
119932020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11994
11995 * completer.c (completion_tracker::completion_hash_entry): Define
11996 new class.
11997 (advance_to_filename_complete_word_point): Call
11998 recompute_lowest_common_denominator.
11999 (completion_tracker::completion_tracker): Call discard_completions
12000 to setup the hash table.
12001 (completion_tracker::discard_completions): Allow for being called
12002 from the constructor, pass new equal function, and element deleter
12003 when constructing the hash table. Initialise new class member
12004 variables.
12005 (completion_tracker::maybe_add_completion): Remove use of
12006 m_entries_vec, and store more information into m_entries_hash.
12007 (completion_tracker::recompute_lcd_visitor): New function, most
12008 content taken from...
12009 (completion_tracker::recompute_lowest_common_denominator):
12010 ...here, this now just visits each item in the hash calling the
12011 above visitor.
12012 (completion_tracker::build_completion_result): Remove use of
12013 m_entries_vec, call recompute_lowest_common_denominator.
12014 * completer.h (completion_tracker::have_completions): Remove use
12015 of m_entries_vec.
12016 (completion_tracker::completion_hash_entry): Declare new class.
12017 (completion_tracker::recompute_lowest_common_denominator): Change
12018 function signature.
12019 (completion_tracker::recompute_lcd_visitor): Declare new function.
12020 (completion_tracker::m_entries_vec): Delete.
12021 (completion_tracker::m_entries_hash): Initialize to NULL.
12022 (completion_tracker::m_lowest_common_denominator_valid): New
12023 member variable.
12024 (completion_tracker::m_lowest_common_denominator_max_length): New
12025 member variable.
12026
5a82b8a1
KR
120272020-03-17 Kamil Rytarowski <n54@gmx.com>
12028
12029 * regformats/regdef.h: Put reg in gdb namespace.
12030
fb516a69
KR
120312020-03-17 Kamil Rytarowski <n54@gmx.com>
12032
12033 * i386-bsd-nat.c (gdb_ptrace): New.
12034 * (i386bsd_fetch_inferior_registers,
12035 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12036 * (i386bsd_fetch_inferior_registers,
12037 i386bsd_store_inferior_registers) Use gdb_ptrace.
12038
1c0aa1fb
KR
120392020-03-17 Kamil Rytarowski <n54@gmx.com>
12040
12041 * amd64-bsd-nat.c (gdb_ptrace): New.
12042 * (amd64bsd_fetch_inferior_registers,
12043 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12044 * (amd64bsd_fetch_inferior_registers,
12045 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12046
5ccd2fb7
KR
120472020-03-17 Kamil Rytarowski <n54@gmx.com>
12048
12049 * user-regs.c (user_reg::read): Rename to...
12050 (user_reg::xread): ...this.
12051 * (append_user_reg): Rename argument `read' to `xread'.
12052 * (user_reg_add_builtin): Likewise.
12053 * (user_reg_add): Likewise.
12054 * (value_of_user_reg): Likewise.
12055
2108a63a
KR
120562020-03-17 Kamil Rytarowski <n54@gmx.com>
12057
12058 * sparc-nat.c (gdb_ptrace): New.
12059 * sparc-nat.c (sparc_fetch_inferior_registers)
12060 (sparc_store_inferior_registers) Remove obsolete comment.
12061 * sparc-nat.c (sparc_fetch_inferior_registers)
12062 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12063 * sparc-nat.c (sparc_fetch_inferior_registers)
12064 (sparc_store_inferior_registers) Use gdb_ptrace.
12065
a225c9a8
KR
120662020-03-17 Kamil Rytarowski <n54@gmx.com>
12067
12068 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12069 it to the ptrace call.
12070 * sh-nbsd-nat.c (store_registers): Likewise.
12071
98097623
KR
120722020-03-17 Kamil Rytarowski <n54@gmx.com>
12073
12074 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12075 nbsd_nat_target instead of inf_ptrace_target.
12076 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12077 nbsd_nat_target.
12078
9e38d619
KR
120792020-03-17 Kamil Rytarowski <n54@gmx.com>
12080
12081 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12082
a2ecbe9f
KR
120832020-03-17 Kamil Rytarowski <n54@gmx.com>
12084
12085 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12086 <sys/sysctl.h>.
12087 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12088
58990295
TV
120892020-03-17 Tom de Vries <tdevries@suse.de>
12090
12091 PR gdb/23710
12092 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12093 fields.
12094 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12095 fields.
12096 (process_imported_unit_die): Skip import of c++ CUs.
12097
771dd3a8
TT
120982020-03-16 Tom Tromey <tom@tromey.com>
12099
12100 * p-valprint.c (pascal_object_print_value): Initialize
12101 base_value.
12102
817a7585
AK
121032020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12104 Shahab Vahedi <shahab@synopsys.com>
12105
12106 * Makefile.in: Add arch/arc.o
12107 * configure.tgt: Likewise.
12108 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12109 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12110 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12111 * arc-tdep.h (arc_read_description): Add proto type.
12112 * arch/arc.c: New file.
12113 * arch/arc.h: Likewise.
12114 * features/Makefile: Replace old target descriptions with new.
12115 * features/arc-arcompact.c: Remove.
12116 * features/arc-arcompact.xml: Likewise.
12117 * features/arc-v2.c: Likewise
12118 * features/arc-v2.xml: Likewise
12119 * features/arc/aux-arcompact.xml: New file.
12120 * features/arc/aux-v2.xml: Likewise.
12121 * features/arc/core-arcompact.xml: Likewise.
12122 * features/arc/core-v2.xml: Likewise.
12123 * features/arc/aux-arcompact.c: Generate.
12124 * features/arc/aux-v2.c: Likewise.
12125 * features/arc/core-arcompact.c: Likewise.
12126 * features/arc/core-v2.c: Likewise.
12127 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12128
67430cd0
TT
121292020-03-16 Tom Tromey <tromey@adacore.com>
12130
12131 PR gdb/25663:
12132 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12133 putting value into bcache.
12134
30efb6c7
SM
121352020-03-16 Simon Marchi <simon.marchi@efficios.com>
12136
12137 PR gdb/21500
12138 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12139 to...
12140 (amd64_windows_init_abi_common): ... this. Don't set size of
12141 long type.
12142 (amd64_windows_init_abi): New function.
12143 (amd64_cygwin_init_abi): New function.
12144 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12145 the Cygwin OS ABI.
12146 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12147 comment.
12148
8db52437
SM
121492020-03-16 Simon Marchi <simon.marchi@efficios.com>
12150
12151 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12152 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12153 (pe_import_directory_entry): New struct type.
12154 (is_linked_with_cygwin_dll): New function.
12155 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12156 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12157 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12158
5982a56a
SM
121592020-03-16 Simon Marchi <simon.marchi@efficios.com>
12160
12161 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12162 i386_cygwin_core_osabi_sniffer.
12163
7a1998df
SM
121642020-03-16 Simon Marchi <simon.marchi@efficios.com>
12165
12166 * i386-cygwin-tdep.c: Rename to...
12167 * i386-windows-tdep.c: ... this.
12168 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12169 i386-windows-tdep.c.
12170 * configure.tgt: Likewise.
12171
053205cc
SM
121722020-03-16 Simon Marchi <simon.marchi@efficios.com>
12173
12174 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12175 * osabi.c (gdb_osabi_names): Add "Windows".
12176 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12177 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12178 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12179 i386_cygwin_osabi_sniffer.
12180 (_initialize_i386_cygwin_tdep): Register OS ABI
12181 GDB_OSABI_WINDOWS for i386.
12182 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12183 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12184 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12185 for x86-64.
12186 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12187 when the target matches '*-*-mingw*'.
12188
fe4b2ee6
SM
121892020-03-16 Simon Marchi <simon.marchi@efficios.com>
12190
12191 * defs.h (enum gdb_osabi): Move to...
12192 * osabi.h (enum gdb_osabi): ... here.
12193 * gdbarch.sh: Include osabi.h in gdbarch.h.
12194 * gdbarch.h: Re-generate.
12195
cb9b645d
SM
121962020-03-16 Simon Marchi <simon.marchi@efficios.com>
12197
12198 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12199 function.
12200 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12201
3293bbaf
TT
122022020-03-14 Tom Tromey <tom@tromey.com>
12203
12204 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12205 for C++.
12206 (c_type_print_modifier): Likewise. Add "language" parameter.
12207 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12208 (c_type_print_base_1): Update.
12209 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12210 constants.
12211 * type-stack.c (type_stack::insert): Handle tp_atomic and
12212 tp_restrict.
12213 (type_stack::follow_type_instance_flags): Likewise.
12214 (type_stack::follow_types): Likewise. Merge type-following code.
12215 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12216 (space_identifier, cv_with_space_id)
12217 (const_or_volatile_or_space_identifier_noopt)
12218 (const_or_volatile_or_space_identifier): Remove.
12219 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12220 rules.
12221 (ptr_operator, typebase): Update.
12222 (enum token_flag) <FLAG_C>: New constant.
12223 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12224 "_Atomic".
12225 (lex_one_token): Handle FLAG_C.
12226
154151a6
KR
122272020-03-14 Kamil Rytarowski <n54@gmx.com>
12228
12229 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12230 it to the ptrace call.
12231 * m68k-bsd-nat.c (store_registers): Likewise.
12232
bc107784
KR
122332020-03-14 Kamil Rytarowski <n54@gmx.com>
12234
12235 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12236 gdb_byte *.
12237 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12238 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12239 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12240
01a80117
KR
122412020-03-14 Kamil Rytarowski <n54@gmx.com>
12242
12243 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12244 nbsd_nat_target instead of inf_ptrace_target.
12245 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12246 nbsd_nat_target.
12247
f90280ca
KR
122482020-03-14 Kamil Rytarowski <n54@gmx.com>
12249
12250 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12251 register_t.
12252
6def66f1
KR
122532020-03-14 Kamil Rytarowski <n54@gmx.com>
12254
12255 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12256 it to the ptrace call.
12257 * alpha-bsd-nat.c (store_registers): Likewise.
12258
66eaca97
KR
122592020-03-14 Kamil Rytarowski <n54@gmx.com>
12260
12261 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12262 includes.
12263 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12264 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12265 fill_fpregset): Likewise.
12266
4fed520b
KR
122672020-03-14 Kamil Rytarowski <n54@gmx.com>
12268
12269 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12270 nbsd_nat_target instead of inf_ptrace_target.
12271 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12272 nbsd_nat_target.
12273
2190cf06
KR
122742020-03-14 Kamil Rytarowski <n54@gmx.com>
12275
12276 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12277 register_t.
12278
75c56d3d
KR
122792020-03-14 Kamil Rytarowski <n54@gmx.com>
12280
12281 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12282 it to the ptrace call.
12283 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12284 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12285 * arm-nbsd-nat.c (store_register): Likewise.
12286 * arm-nbsd-nat.c (store_regs): Likewise.
12287 * arm-nbsd-nat.c (store_fp_register): Likewise.
12288 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12289
6018d381
KR
122902020-03-14 Kamil Rytarowski <n54@gmx.com>
12291
12292 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12293 nbsd_nat_target instead of inf_ptrace_target.
12294 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12295 nbsd_nat_target.
12296
013f99f0
KR
122972020-03-14 Kamil Rytarowski <n54@gmx.com>
12298
12299 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12300 it to the ptrace call.
12301 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12302
12753073
KR
123032020-03-14 Kamil Rytarowski <n54@gmx.com>
12304
6227b330
KR
12305 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12306 it to the ptrace call.
12307 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12308
123092020-03-14 Kamil Rytarowski <n54@gmx.com>
12310
12311 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12312 gdb_byte *.
12753073
KR
12313 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12314
d5be5fa4
KR
123152020-03-14 Kamil Rytarowski <n54@gmx.com>
12316
12317 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12318 instead of inf_ptrace_target.
12319 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12320 nbsd_nat_target.
12321
8110f842
KR
123222020-03-14 Kamil Rytarowski <n54@gmx.com>
12323
12324 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12325 register_t.
12326
52feded7
KR
123272020-03-14 Kamil Rytarowski <n54@gmx.com>
12328
12329 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12330 register_t.
12331
25567eee
KR
123322020-03-14 Kamil Rytarowski <n54@gmx.com>
12333
12334 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12335 register_t.
12336
426a9c18
TT
123372020-03-13 Tom Tromey <tom@tromey.com>
12338
12339 * value.h (val_print): Don't declare.
12340 * valprint.h (val_print_array_elements)
12341 (val_print_scalar_formatted, generic_val_print): Don't declare.
12342 * valprint.c (generic_val_print_array): Take a struct value.
12343 (generic_val_print_ptr, generic_val_print_memberptr)
12344 (generic_val_print_bool, generic_val_print_int)
12345 (generic_val_print_char, generic_val_print_complex)
12346 (generic_val_print): Remove.
12347 (generic_value_print): Update.
12348 (do_val_print): Remove unused parameters. Don't call
12349 la_val_print.
12350 (val_print): Remove.
12351 (common_val_print): Update. Don't call value_check_printable.
12352 (val_print_scalar_formatted, val_print_array_elements): Remove.
12353 * rust-lang.c (rust_val_print): Remove.
12354 (rust_language_defn): Update.
12355 * p-valprint.c (pascal_val_print): Remove.
12356 (pascal_value_print_inner): Update.
12357 (pascal_object_print_val_fields, pascal_object_print_val):
12358 Remove.
12359 (pascal_object_print_static_field): Update.
12360 * p-lang.h (pascal_val_print): Don't declare.
12361 * p-lang.c (pascal_language_defn): Update.
12362 * opencl-lang.c (opencl_language_defn): Update.
12363 * objc-lang.c (objc_language_defn): Update.
12364 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12365 * m2-lang.h (m2_val_print): Don't declare.
12366 * m2-lang.c (m2_language_defn): Update.
12367 * language.h (struct language_defn) <la_val_print>: Remove.
12368 * language.c (unk_lang_value_print_inner): Rename. Change
12369 argument types.
12370 (unknown_language_defn, auto_language_defn): Update.
12371 * go-valprint.c (go_val_print): Remove.
12372 * go-lang.h (go_val_print): Don't declare.
12373 * go-lang.c (go_language_defn): Update.
12374 * f-valprint.c (f_val_print): Remove.
12375 * f-lang.h (f_value_print): Don't declare.
12376 * f-lang.c (f_language_defn): Update.
12377 * d-valprint.c (d_val_print): Remove.
12378 * d-lang.h (d_value_print): Don't declare.
12379 * d-lang.c (d_language_defn): Update.
12380 * cp-valprint.c (cp_print_value_fields)
12381 (cp_print_value_fields_rtti, cp_print_value): Remove.
12382 (cp_print_static_field): Update.
12383 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12384 (c_val_print_struct, c_val_print_union, c_val_print_int)
12385 (c_val_print_memberptr, c_val_print): Remove.
12386 * c-lang.h (c_val_print_array, cp_print_value_fields)
12387 (cp_print_value_fields_rtti): Don't declare.
12388 * c-lang.c (c_language_defn, cplus_language_defn)
12389 (asm_language_defn, minimal_language_defn): Update.
12390 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12391 (ada_val_print_enum): Take a struct value.
12392 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12393 (ada_val_print): Remove.
12394 (ada_value_print_1): Update.
12395 (printable_val_type): Remove.
12396 * ada-lang.h (ada_val_print): Don't declare.
12397 * ada-lang.c (ada_language_defn): Update.
12398
42331a1e
TT
123992020-03-13 Tom Tromey <tom@tromey.com>
12400
12401 * valprint.c (do_val_print): Update.
12402 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12403 a struct value.
12404 (value_to_value_object_no_release): Declare.
12405 * python/py-value.c (value_to_value_object_no_release): New
12406 function.
12407 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12408 struct value.
12409 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12410 function.
12411 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12412 a struct value.
12413 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12414 Declare.
12415 (gdbscm_apply_val_pretty_printer): Take a struct value.
12416 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12417 value.
12418 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12419 value.
12420 * extension-priv.h (struct extension_language_ops)
12421 <apply_val_pretty_printer>: Take a struct value.
12422 * cp-valprint.c (cp_print_value): Create a struct value.
12423 (cp_print_value): Update.
12424
3a916a97
TT
124252020-03-13 Tom Tromey <tom@tromey.com>
12426
12427 * ada-valprint.c (print_field_values): Call common_val_print.
12428
b59eac37
TT
124292020-03-13 Tom Tromey <tom@tromey.com>
12430
12431 * ada-valprint.c (val_print_packed_array_elements): Remove
12432 bitoffset and val parameters. Call common_val_print.
12433 (ada_val_print_string): Remove offset, address, and original_value
12434 parameters.
12435 (ada_val_print_array): Update.
12436 (ada_value_print_array): New function.
12437 (ada_value_print_1): Call it.
12438
03371129
TT
124392020-03-13 Tom Tromey <tom@tromey.com>
12440
12441 * ada-valprint.c (ada_value_print): Use common_val_print.
12442
2e088f8b
TT
124432020-03-13 Tom Tromey <tom@tromey.com>
12444
12445 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12446
39ef85a8
TT
124472020-03-13 Tom Tromey <tom@tromey.com>
12448
12449 * ada-valprint.c (ada_value_print_num): New function.
12450 (ada_value_print_1): Use it.
12451
b9fa6e07
TT
124522020-03-13 Tom Tromey <tom@tromey.com>
12453
12454 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12455
416595d6
TT
124562020-03-13 Tom Tromey <tom@tromey.com>
12457
12458 * ada-valprint.c (ada_value_print_ptr): New function.
12459 (ada_value_print_1): Use it.
12460
5b5e15ec
TT
124612020-03-13 Tom Tromey <tom@tromey.com>
12462
12463 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12464 call common_val_print.
12465 (ada_val_print_1): Update.
12466 (ada_value_print_1): New function.
12467 (ada_value_print_inner): Rewrite.
12468
fbf54e75
TT
124692020-03-13 Tom Tromey <tom@tromey.com>
12470
12471 * cp-valprint.c (cp_print_value_fields): Update.
12472 (cp_print_value): New function.
12473
64b653ca
TT
124742020-03-13 Tom Tromey <tom@tromey.com>
12475
12476 * m2-valprint.c (m2_value_print_inner): Use
12477 cp_print_value_fields.
12478 * cp-valprint.c (cp_print_value_fields): New function.
12479 * c-valprint.c (c_value_print_struct): New function.
12480 (c_value_print_inner): Use c_value_print_struct.
12481 * c-lang.h (cp_print_value_fields): Declare.
12482
6999f067
TT
124832020-03-13 Tom Tromey <tom@tromey.com>
12484
12485 * c-valprint.c (c_value_print_array): New function.
12486 (c_value_print_inner): Use it.
12487
ce80b8bd
TT
124882020-03-13 Tom Tromey <tom@tromey.com>
12489
12490 * c-valprint.c (c_value_print_memberptr): New function.
12491 (c_value_print_inner): Use it.
12492
2faac269
TT
124932020-03-13 Tom Tromey <tom@tromey.com>
12494
12495 * c-valprint.c (c_value_print_int): New function.
12496 (c_value_print_inner): Use it.
12497
da3e2c29
TT
124982020-03-13 Tom Tromey <tom@tromey.com>
12499
12500 * c-valprint.c (c_value_print_ptr): New function.
12501 (c_value_print_inner): Use it.
12502
50836231
TT
125032020-03-13 Tom Tromey <tom@tromey.com>
12504
12505 * c-valprint.c (c_value_print_inner): Rewrite.
12506
4f412b6e
TT
125072020-03-13 Tom Tromey <tom@tromey.com>
12508
12509 * valprint.c (generic_value_print_complex): New function.
12510 (generic_value_print): Use it.
12511
f5354008
TT
125122020-03-13 Tom Tromey <tom@tromey.com>
12513
12514 * valprint.c (generic_val_print_float): Don't call
12515 val_print_scalar_formatted.
12516 (generic_val_print, generic_value_print): Update.
12517
3eec3b05
TT
125182020-03-13 Tom Tromey <tom@tromey.com>
12519
12520 * valprint.c (generic_value_print_char): New function
12521 (generic_value_print): Use it.
12522
fdddfccb
TT
125232020-03-13 Tom Tromey <tom@tromey.com>
12524
12525 * valprint.c (generic_value_print_int): New function.
12526 (generic_value_print): Use it.
12527
6dde7521
TT
125282020-03-13 Tom Tromey <tom@tromey.com>
12529
12530 * valprint.c (generic_value_print_bool): New function.
12531 (generic_value_print): Use it.
12532
4112d2e6
TT
125332020-03-13 Tom Tromey <tom@tromey.com>
12534
12535 * valprint.c (generic_val_print_func): Simplify.
12536 (generic_val_print, generic_value_print): Update.
12537
65786af6
TT
125382020-03-13 Tom Tromey <tom@tromey.com>
12539
12540 * valprint.c (generic_val_print_flags): Remove.
12541 (generic_val_print, generic_value_print): Update.
12542 (val_print_type_code_flags): Add original_value parameter.
12543
40f3ce18
TT
125442020-03-13 Tom Tromey <tom@tromey.com>
12545
12546 * valprint.c (generic_val_print): Update.
12547 (generic_value_print): Update.
12548 * valprint.c (generic_val_print_enum): Don't call
12549 val_print_scalar_formatted.
12550
2a5b130b
TT
125512020-03-13 Tom Tromey <tom@tromey.com>
12552
12553 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12554 * valprint.c (generic_value_print_ptr): New function.
12555
abc66ce9
TT
125562020-03-13 Tom Tromey <tom@tromey.com>
12557
12558 * valprint.c (generic_value_print): Rewrite.
12559
07a32858
TT
125602020-03-13 Tom Tromey <tom@tromey.com>
12561
12562 * p-valprint.c (pascal_object_print_value_fields)
12563 (pascal_object_print_value): New functions.
12564
64d64d3a
TT
125652020-03-13 Tom Tromey <tom@tromey.com>
12566
12567 * p-valprint.c (pascal_value_print_inner): Rewrite.
12568
6a95a1f5
TT
125692020-03-13 Tom Tromey <tom@tromey.com>
12570
12571 * f-valprint.c (f_value_print_innner): Rewrite.
12572
59fcdac6
TT
125732020-03-13 Tom Tromey <tom@tromey.com>
12574
12575 * m2-valprint.c (m2_print_unbounded_array): New overload.
12576 (m2_print_unbounded_array): Update.
12577 (m2_print_array_contents): Take a struct value.
12578 (m2_value_print_inner): Rewrite.
12579
d133c3e1
TT
125802020-03-13 Tom Tromey <tom@tromey.com>
12581
12582 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12583 (d_value_print_inner): New function.
12584 * d-lang.h (d_value_print_inner): Declare.
12585 * d-lang.c (d_language_defn): Use d_value_print_inner.
12586
23b0f06b
TT
125872020-03-13 Tom Tromey <tom@tromey.com>
12588
12589 * go-valprint.c (go_value_print_inner): New function.
12590 * go-lang.h (go_value_print_inner): Declare.
12591 * go-lang.c (go_language_defn): Use go_value_print_inner.
12592
5f56f7cb
TT
125932020-03-13 Tom Tromey <tom@tromey.com>
12594
12595 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12596 API.
12597 (rust_val_print): Rewrite.
12598 (rust_value_print_inner): New function, from rust_val_print.
12599 (rust_language_defn): Use rust_value_print_inner.
12600
26792ee0
TT
126012020-03-13 Tom Tromey <tom@tromey.com>
12602
12603 * ada-valprint.c (ada_value_print_inner): New function.
12604 * ada-lang.h (ada_value_print_inner): Declare.
12605 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12606
24051bbe
TT
126072020-03-13 Tom Tromey <tom@tromey.com>
12608
12609 * f-valprint.c (f_value_print_innner): New function.
12610 * f-lang.h (f_value_print_innner): Declare.
12611 * f-lang.c (f_language_defn): Use f_value_print_innner.
12612
c0941be6
TT
126132020-03-13 Tom Tromey <tom@tromey.com>
12614
12615 * p-valprint.c (pascal_value_print_inner): New function.
12616 * p-lang.h (pascal_value_print_inner): Declare.
12617 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12618
62c4663d
TT
126192020-03-13 Tom Tromey <tom@tromey.com>
12620
12621 * m2-valprint.c (m2_value_print_inner): New function.
12622 * m2-lang.h (m2_value_print_inner): Declare.
12623 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12624
62182190
TT
126252020-03-13 Tom Tromey <tom@tromey.com>
12626
12627 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12628 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12629 * c-valprint.c (c_value_print_inner): New function.
12630 * c-lang.h (c_value_print_inner): Declare.
12631 * c-lang.c (c_language_defn, cplus_language_defn)
12632 (asm_language_defn, minimal_language_defn): Use
12633 c_value_print_inner.
12634
1e592a8a
TT
126352020-03-13 Tom Tromey <tom@tromey.com>
12636
12637 * p-valprint.c (pascal_object_print_value_fields): Now static.
12638 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12639
7fe471e9
TT
126402020-03-13 Tom Tromey <tom@tromey.com>
12641
12642 * c-valprint.c (c_val_print_array): Simplify.
12643
d121c6ce
TT
126442020-03-13 Tom Tromey <tom@tromey.com>
12645
12646 * valprint.c (value_print_array_elements): New function.
12647 * valprint.h (value_print_array_elements): Declare.
12648
4dba70ee
TT
126492020-03-13 Tom Tromey <tom@tromey.com>
12650
12651 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12652 * mips-tdep.c (mips_print_register): Use
12653 value_print_scalar_formatted.
12654
4f9ae810
TT
126552020-03-13 Tom Tromey <tom@tromey.com>
12656
12657 * valprint.h (value_print_scalar_formatted): Declare.
12658 * valprint.c (value_print_scalar_formatted): New function.
12659
156bfec9
TT
126602020-03-13 Tom Tromey <tom@tromey.com>
12661
12662 * valprint.h (generic_value_print): Declare.
12663 * valprint.c (generic_value_print): New function.
12664
2b4e573d
TT
126652020-03-13 Tom Tromey <tom@tromey.com>
12666
12667 * valprint.c (do_val_print): Call la_value_print_inner, if
12668 available.
12669 * rust-lang.c (rust_language_defn): Update.
12670 * p-lang.c (pascal_language_defn): Update.
12671 * opencl-lang.c (opencl_language_defn): Update.
12672 * objc-lang.c (objc_language_defn): Update.
12673 * m2-lang.c (m2_language_defn): Update.
12674 * language.h (struct language_defn) <la_value_print_inner>: New
12675 member.
12676 * language.c (unknown_language_defn, auto_language_defn): Update.
12677 * go-lang.c (go_language_defn): Update.
12678 * f-lang.c (f_language_defn): Update.
12679 * d-lang.c (d_language_defn): Update.
12680 * c-lang.c (c_language_defn, cplus_language_defn)
12681 (asm_language_defn, minimal_language_defn): Update.
12682 * ada-lang.c (ada_language_defn): Update.
12683
a1f6a07c
TT
126842020-03-13 Tom Tromey <tom@tromey.com>
12685
12686 * c-valprint.c (c_value_print): Use common_val_print.
12687
410cf315
TT
126882020-03-13 Tom Tromey <tom@tromey.com>
12689
12690 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12691
72a45c93
TT
126922020-03-13 Tom Tromey <tom@tromey.com>
12693
12694 * f-valprint.c (f77_print_array_1, f_val_print): Use
12695 common_val_print.
12696
040f66bd
TT
126972020-03-13 Tom Tromey <tom@tromey.com>
12698
12699 * riscv-tdep.c (riscv_print_one_register_info): Use
12700 common_val_print.
12701
a6e05a6c
TT
127022020-03-13 Tom Tromey <tom@tromey.com>
12703
12704 * mi/mi-main.c (output_register): Use common_val_print.
12705
3444c526
TT
127062020-03-13 Tom Tromey <tom@tromey.com>
12707
12708 * infcmd.c (default_print_one_register_info): Use
12709 common_val_print.
12710
c2a44efe
TT
127112020-03-13 Tom Tromey <tom@tromey.com>
12712
12713 * valprint.h (common_val_print_checked): Declare.
12714 * valprint.c (common_val_print_checked): New function.
12715 * stack.c (print_frame_arg): Use common_val_print_checked.
12716
b0c26e99
TT
127172020-03-13 Tom Tromey <tom@tromey.com>
12718
12719 * valprint.c (do_val_print): New function, from val_print.
12720 (val_print): Use do_val_print.
12721 (common_val_print): Use do_val_print.
12722
ce3acbe9
TT
127232020-03-13 Tom Tromey <tom@tromey.com>
12724
12725 * valprint.c (value_print): Use scoped_value_mark.
12726
96c7f873
TV
127272020-03-13 Tom de Vries <tdevries@suse.de>
12728
12729 PR symtab/25646
12730 * psymtab.c (partial_symtab::partial_symtab): Don't set
12731 globals_offset and statics_offset. Push element onto
12732 current_global_psymbols and current_static_psymbols stacks.
12733 (concat): New function.
12734 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12735 element from current_global_psymbols and current_static_psymbols
12736 stacks. Concat popped elements to global_psymbols and
12737 static_symbols.
12738 (add_psymbol_to_list): Use current_global_psymbols and
12739 current_static_psymbols stacks.
12740 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12741 current_static_psymbols fields.
12742
6ba0a321
CB
127432020-03-12 Christian Biesinger <cbiesinger@google.com>
12744
12745 * corelow.c (sniff_core_bfd): Remove.
12746 (class core_target) <m_core_vec>: Remove.
12747 (core_target::core_target): Update.
12748 (core_file_fns): Remove.
12749 (deprecated_add_core_fns): Remove.
12750 (default_core_sniffer): Remove.
12751 (sniff_core_bfd): Remove.
12752 (default_check_format): Remove.
12753 (gdb_check_format): Remove.
12754 (core_target_open): Update.
12755 (core_target::get_core_register_section): Update.
12756 (get_core_registers_cb): Update.
12757 (core_target::fetch_registers): Update.
12758 * gdbcore.h (struct core_fns): Remove.
12759 (deprecated_add_core_fns): Remove.
12760 (default_core_sniffer): Remove.
12761 (default_check_format): Remove.
12762
227031b2
TT
127632020-03-12 Tom Tromey <tom@tromey.com>
12764
12765 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12766 CORE_ADDR.
12767 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12768
53807e9f
TT
127692020-03-12 Tom Tromey <tom@tromey.com>
12770
12771 * remote.c (remote_target::download_tracepoint)
12772 (remote_target::enable_tracepoint)
12773 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12774 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12775 sprintf_vma.
12776
64f25102
TT
127772020-03-12 Tom Tromey <tom@tromey.com>
12778
12779 * symfile-mem.c: Update CORE_ADDR size assert.
12780
272cd5a3
SM
127812020-03-12 Simon Marchi <simon.marchi@efficios.com>
12782
12783 * selftest.m4: Move to gdbsupport/.
12784 * acinclude.m4: Update path to selftest.m4.
12785
74cd3f9d
SM
127862020-03-12 Simon Marchi <simon.marchi@efficios.com>
12787
12788 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12789 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12790 gdbarch-selfselftests.c and selftest-arch.c.
12791 (SUBDIR_UNITTESTS_OBS): Rename to...
12792 (SELFTESTS_OBS): ... this.
12793 (COMMON_SFILES): Remove disasm-selftests.c and
12794 gdbarch-selftests.c.
12795 * configure.ac: Don't add selftest-arch.{c,o} to
12796 CONFIG_{SRCS,OBS}.
12797 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12798 preprocessor conditions.
12799
db6878ac
SM
128002020-03-12 Simon Marchi <simon.marchi@efficios.com>
12801
12802 * configure.ac: Don't source bfd/development.sh.
12803 * selftest.m4: Modify comment.
12804 * configure: Re-generate.
12805
4d696a5c
SM
128062020-03-12 Simon Marchi <simon.marchi@efficios.com>
12807
12808 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12809 not "true" or "false".
12810 * configure: Re-generate.
12811
8dd8e1c7
CB
128122020-03-12 Christian Biesinger <cbiesinger@google.com>
12813
12814 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12815 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12816 renamed to arm_nbsd_supply_gregset.
12817 (fetch_register): Update to call arm_nbsd_supply_gregset.
12818 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12819 (arm_netbsd_nat_target::fetch_registers): Update.
12820 (fetch_elfcore_registers): Removed.
12821 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12822 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12823 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12824 not require NetBSD system headers.
12825 (arm_nbsd_regset): New struct.
12826 (arm_nbsd_iterate_over_regset_sections): New function.
12827 (arm_netbsd_init_abi_common): Updated to call
12828 set_gdbarch_iterate_over_regset_sections.
12829 * arm-nbsd-tdep.h: New file.
12830
dd69bf7a
KB
128312020-03-11 Kevin Buettner <kevinb@redhat.com>
12832
12833 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12834 recursion.
12835
a0761e34
SM
128362020-03-11 Simon Marchi <simon.marchi@efficios.com>
12837
12838 * configure: Re-generate.
12839
e7a82140
TT
128402020-03-11 Tom Tromey <tromey@adacore.com>
12841
12842 * ada-typeprint.c (print_choices): Fix comment.
12843
dcc050c8
AB
128442020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12845
12846 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12847 previous item in the list, when the list has no items.
12848
1c33af77
TV
128492020-03-11 Tom de Vries <tdevries@suse.de>
12850
12851 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12852 PROP_LOCLIST handling code.
12853
8c95582d
AB
128542020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12855
12856 * buildsym-legacy.c (record_line): Pass extra parameter to
12857 record_line.
12858 * buildsym.c (buildsym_compunit::record_line): Take an extra
12859 parameter, reduce duplication in the line table, and record the
12860 is_stmt flag in the line table.
12861 * buildsym.h (buildsym_compunit::record_line): Add extra
12862 parameter.
12863 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12864 non-statement lines.
12865 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12866 this to the symtab builder.
12867 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12868 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12869 through to dwarf_record_line_1.
12870 * infrun.c (process_event_stop_test): When stepping, don't stop at
12871 a non-statement instruction, and only refresh the step info when
12872 we land in the middle of a line's range. Also add an extra
12873 comment.
12874 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12875 field.
12876 * record-btrace.c (btrace_find_line_range): Only record lines
12877 marked as is-statement.
12878 * stack.c (frame_show_address): Show the frame address if we are
12879 in a non-statement sal.
12880 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12881 (maintenance_print_one_line_table): Print a header for the is_stmt
12882 column, and include is_stmt information in the output.
12883 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12884 preference to non-statements.
12885 (find_pcs_for_symtab_line): Prefer is-statement entries.
12886 (find_line_common): Likewise.
12887 * symtab.h (struct linetable_entry): Add is_stmt field.
12888 (struct symtab_and_line): Likewise.
12889 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12890 arranging the line table.
12891
e4003a34
TV
128922020-03-07 Tom de Vries <tdevries@suse.de>
12893
12894 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12895 DIE.
12896
e8932576
TT
128972020-03-07 Tom Tromey <tom@tromey.com>
12898
12899 * valops.c (value_literal_complex): Remove obsolete comment.
12900 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12901 comment.
12902
29734269
SM
129032020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12904
12905 * infrun.h: Forward-declare thread_info.
12906 (set_step_info): Add thread_info parameter, add doc.
12907 * infrun.c (set_step_info): Add thread_info parameter, move doc
12908 to header.
12909 * infrun.c (process_event_stop_test): Pass thread to
12910 set_step_info call.
12911 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12912 set_step_info.
12913 (prepare_one_step): Add thread_info parameter, pass it to
12914 set_step_frame and prepare_one_step (recursive) call.
12915 (step_1): Pass thread to prepare_one_step call.
12916 (step_command_fsm::should_stop): Pass thread to
12917 prepare_one_step.
12918 (until_next_fsm): Pass thread to set_step_frame call.
12919 (finish_command): Pass thread to set_step_info call.
12920
b7d64b29
HD
129212020-03-06 Hannes Domani <ssbssa@yahoo.de>
12922
12923 * windows-tdep.c (windows_solib_create_inferior_hook):
12924 Check if inferior is running.
12925
09f2921c
TV
129262020-03-06 Tom de Vries <tdevries@suse.de>
12927
12928 * NEWS: Fix "the the".
12929 * ctfread.c: Same.
12930
fd760e79
TV
129312020-03-06 Tom de Vries <tdevries@suse.de>
12932
12933 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12934
20ea4a60
AB
129352020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12936
12937 * .dir-locals.el: Add a comment referencing the other copies of
12938 this file.
12939
0afbabf0
JB
129402020-03-05 John Baldwin <jhb@FreeBSD.org>
12941
12942 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12943 psargs.
12944
842806cb
TBA
129452020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12946
12947 * .gitattributes: New file.
12948
be1e3d3e
TT
129492020-03-04 Tom Tromey <tom@tromey.com>
12950
12951 * symmisc.c (print_symbol_bcache_statistics)
12952 (print_objfile_statistics): Update.
12953 * symfile.c (allocate_symtab): Use intern.
12954 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12955 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12956 macro_cache>: Remove.
12957 <string_cache>: New member.
12958 (struct objfile) <intern>: New methods.
12959 * elfread.c (elf_symtab_read): Use intern.
12960 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12961 (dwarf2_compute_name, dwarf2_physname)
12962 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12963 names.
12964 (guess_partial_die_structure_name): Update.
12965 (partial_die_info::fixup): Intern name.
12966 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12967 name.
12968 (dwarf2_name): Intern name. Update.
12969 * buildsym.c (buildsym_compunit::get_macro_table): Use
12970 string_cache.
12971
4e7625fd
TT
129722020-03-04 Tom Tromey <tom@tromey.com>
12973
12974 * jit.c (bfd_open_from_target_memory): Make "target" const.
12975 * corefile.c (gnutarget): Now const.
12976 * gdbcore.h (gnutarget): Now const.
12977
46f9f931
HD
129782020-03-04 Hannes Domani <ssbssa@yahoo.de>
12979
12980 * NEWS: Mention support for WOW64 processes.
12981 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12982 (amd64_windows_segment_register_p): Remove static.
12983 (_initialize_amd64_windows_nat): Update.
12984 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12985 * i386-windows-nat.c (context_offset): Update.
12986 (i386_mappings): Rename and remove static.
12987 (i386_windows_segment_register_p): Remove static.
12988 (_initialize_i386_windows_nat): Update.
12989 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12990 (STATUS_WX86_SINGLE_STEP): New macro.
12991 (EnumProcessModulesEx): New macro.
12992 (Wow64SuspendThread): New macro.
12993 (Wow64GetThreadContext): New macro.
12994 (Wow64SetThreadContext): New macro.
12995 (Wow64GetThreadSelectorEntry): New macro.
12996 (windows_set_context_register_offsets): Add static.
12997 (windows_set_segment_register_p): Likewise.
12998 (windows_add_thread): Adapt for WOW64 processes.
12999 (windows_fetch_one_register): Likewise.
13000 (windows_nat_target::fetch_registers): Likewise.
13001 (windows_store_one_register): Likewise.
13002 (display_selector): Likewise.
13003 (display_selectors): Likewise.
13004 (handle_exception): Likewise.
13005 (windows_continue): Likewise.
13006 (windows_nat_target::resume): Likewise.
13007 (windows_add_all_dlls): Likewise.
13008 (do_initial_windows_stuff): Likewise.
13009 (windows_nat_target::attach): Likewise.
13010 (windows_get_exec_module_filename): Likewise.
13011 (windows_nat_target::create_inferior): Likewise.
13012 (windows_xfer_siginfo): Likewise.
13013 (_initialize_loadable): Initialize Wow64SuspendThread,
13014 Wow64GetThreadContext, Wow64SetThreadContext,
13015 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13016 * windows-nat.h (windows_set_context_register_offsets):
13017 Remove declaration.
13018 (windows_set_segment_register_p): Likewise.
13019 (i386_windows_segment_register_p): Add declaration.
13020 (amd64_windows_segment_register_p): Likewise.
13021
440cf44e
LM
130222020-03-04 Luis Machado <luis.machado@linaro.org>
13023
13024 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13025 in "info registers" for AArch64/ARM.
13026
13027 The change caused "info registers" to not print GPR's.
13028
13029 gdb/ChangeLog:
13030
13031 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13032
13033 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13034 when reg->group is empty and reggroup is not.
13035
1009d92f
TT
130362020-03-03 Tom Tromey <tromey@adacore.com>
13037
13038 * dwarf2/frame.c (struct dwarf2_frame_cache)
13039 <checked_tailcall_bottom, entry_cfa_sp_offset,
13040 entry_cfa_sp_offset_p>: Remove members.
13041 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13042 (dwarf2_frame_prev_register): Don't call
13043 dwarf2_tailcall_sniffer_first.
13044 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13045 * frame-unwind.c (add_unwinder): New fuction.
13046 (frame_unwind_init): Use it. Add tailcall unwinder.
13047
5e5d66b6
AB
130482020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13049 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13050
13051 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13052 value should be printed as true.
13053
584cf46d
HD
130542020-03-03 Hannes Domani <ssbssa@yahoo.de>
13055
13056 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13057 (windows_init_abi): Set and use windows_so_ops.
13058
7b973adc
SDJ
130592020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13060
13061 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13062 when verifying if dealing with a convenience variable.
13063
bb7b70ab
LM
130642020-03-03 Luis Machado <luis.machado@linaro.org>
13065
13066 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13067
9822cb57
SM
130682020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13069
13070 * infrun.c (gdbarch_supports_displaced_stepping): New.
13071 (use_displaced_stepping): Break up conditions in smaller pieces.
13072 Use gdbarch_supports_displaced_stepping.
13073 (displaced_step_prepare_throw): Use
13074 gdbarch_supports_displaced_stepping.
13075
63e163f2
AB
130762020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13077
13078 * NEWS: Mention new behaviour of the history filename.
13079 * top.c (write_history_p): Add comment.
13080 (show_write_history_p): Add header comment, give a different
13081 message when history writing is on, but the history filename is
13082 empty.
13083 (history_filename): Add comment.
13084 (history_filename_empty): New function.
13085 (show_history_filename): Add header comment, give a different
13086 message when the filename is empty.
13087 (init_history): Compare history_filename against nullptr, and only
13088 read history if the filename is not empty.
13089 (set_history_filename): Add header comment, and only make
13090 non-empty filenames absolute.
13091 (init_main): Make the filename argument to 'set history filename'
13092 optional.
13093
81b86b97
CB
130942020-03-02 Christian Biesinger <cbiesinger@google.com>
13095
13096 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13097 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13098 (fetch_fp_register): Update.
13099 (fetch_fp_regs): Update.
13100 (store_fp_register): Update.
13101 (store_fp_regs): Update.
13102 (arm_netbsd_nat_target::read_description): New function.
13103 (fetch_elfcore_registers): Update.
13104
24ed6739
AB
131052020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13106
13107 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13108 general_thread if the stop reply is missing a thread-id.
13109 (remote_target::process_stop_reply): Use the first non-exited
13110 thread if the target didn't pass a thread-id.
13111 * infrun.c (do_target_wait): Move call to
13112 switch_to_inferior_no_thread to ....
13113 (do_target_wait_1): ... here.
13114
a84bb2a0
JT
131152020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13116
13117 * debuginfod-support.c: Include defs.h first.
13118
658dadf0
TV
131192020-02-28 Tom de Vries <tdevries@suse.de>
13120
13121 * symfile.c (set_initial_language): Use default language for lookup.
13122
4ebe4877
SM
131232020-02-28 Simon Marchi <simon.marchi@efficios.com>
13124
13125 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13126 reader variable, pass `this` to read_cutu_die_from_dwo.
13127
e5da1139
AM
131282020-02-27 Aaron Merey <amerey@redhat.com>
13129
13130 * source.c (open_source_file): Check for nullptr when computing
13131 srcpath.
13132
317f7127
TT
131332020-02-27 Tom Tromey <tromey@adacore.com>
13134
13135 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13136 member.
13137 (dwarf2_add_field): Don't update nfields.
13138 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13139
3104d9ee
AB
131402020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13141
13142 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13143 abs.
13144
b83470bf
TT
131452020-02-26 Tom Tromey <tom@tromey.com>
13146
13147 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13148 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13149 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13150 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13151 per_cu_data.
13152
edfe0a0c
TT
131532020-02-26 Tom Tromey <tom@tromey.com>
13154
13155 * dwarf2/index-write.c (psym_index_map): Change type.
13156 (add_address_entry_worker, write_one_signatured_type)
13157 (recursively_count_psymbols, recursively_write_psymbols)
13158 (class debug_names, psyms_seen_size, write_gdbindex)
13159 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13160
0d79cdc4
AM
131612020-02-26 Aaron Merey <amerey@redhat.com>
13162
13163 * Makefile.in: Handle optional debuginfod support.
13164 * NEWS: Update.
13165 * README: Add --with-debuginfod summary.
13166 * config.in: Regenerate.
13167 * configure: Regenerate.
13168 * configure.ac: Handle optional debuginfod support.
13169 * debuginfod-support.c: debuginfod helper functions.
13170 * debuginfod-support.h: Ditto.
13171 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13172 summary.
13173 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13174 when a dwz file cannot be found.
13175 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13176 debuginfo file cannot be found.
13177 * source.c (open_source_file): Query debuginfod servers when a
13178 source file cannot be found.
13179 * top.c (print_gdb_configuration): Include
13180 --{with,without}-debuginfod in the output.
13181
b65ce565
JG
131822020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13183
13184 * thread.c (thr_try_catch_cmd): Print thread name.
13185
d4c9a4f8
SM
131862020-02-26 Simon Marchi <simon.marchi@efficios.com>
13187
13188 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13189 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13190 dwarf2_fetch_die_type_sect_off): Move to...
13191 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13192 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13193 dwarf2_fetch_die_type_sect_off): ... here.
13194 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13195 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13196 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13197
0dce4280
TV
131982020-02-26 Tom de Vries <tdevries@suse.de>
13199
13200 PR gdb/25603
13201 * symfile.c (set_initial_language): Exit-early if
13202 language_mode == language_mode_manual.
13203
450a1bfc
SM
132042020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13205
13206 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13207 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13208 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13209
9e80cfa1
AB
132102020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13211
13212 * gdbtypes.c (create_array_type_with_stride): Handle negative
13213 array strides.
13214 * valarith.c (value_subscripted_rvalue): Likewise.
13215
09624f1f
LM
132162020-02-25 Luis Machado <luis.machado@linaro.org>
13217
13218 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13219
8cb5117c
SM
132202020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13221
13222 * loc.h (dwarf2_get_die_type): Move to...
13223 * read.h (dwarf2_get_die_type): ... here.
13224 * read.c (dwarf2_get_die_type): Move doc to header.
13225
c325c44e
JB
132262020-02-25 Joel Brobecker <brobecker@adacore.com>
13227
13228 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13229 'gnulib/Makefile.in' to the list.
13230
4ac93832
TT
132312020-02-24 Tom Tromey <tom@tromey.com>
13232
13233 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13234 Remove.
13235 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13236 XOBNEWVEC.
13237
197400e8
TT
132382020-02-24 Tom Tromey <tom@tromey.com>
13239
13240 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13241 New method.
13242 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13243 (dw2_do_instantiate_symtab, dw2_get_file_names)
13244 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13245
76935768
TT
132462020-02-24 Tom Tromey <tom@tromey.com>
13247
13248 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13249 make_scoped_restore.
13250 (dwarf2_psymtab::read_symtab): Don't clear
13251 reading_partial_symbols.
13252
a88ef40d
TV
132532020-02-24 Tom de Vries <tdevries@suse.de>
13254
13255 PR gdb/25592
13256 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13257
c9af6521
TV
132582020-02-24 Tom de Vries <tdevries@suse.de>
13259
13260 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13261 commands layout next/prev/regs.
13262
5707a07a
TT
132632020-02-22 Tom Tromey <tom@tromey.com>
13264
13265 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13266 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13267
3b0fb49e
TT
132682020-02-22 Tom Tromey <tom@tromey.com>
13269
13270 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13271
283be8bf
TT
132722020-02-22 Tom Tromey <tom@tromey.com>
13273
13274 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13275 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13276 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13277 * tui/tui.c (_initialize_tui): Add usage text.
13278
ca793b96
TT
132792020-02-22 Tom Tromey <tom@tromey.com>
13280
13281 * tui/tui-win.c (tui_set_focus_command)
13282 (tui_set_win_height_command): Use error_no_arg.
13283 (_initialize_tui_win): Update help text.
13284 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13285
432b5c40
TT
132862020-02-22 Tom Tromey <tom@tromey.com>
13287
13288 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13289 * tui/tui-disasm.h (struct tui_disasm_window)
13290 <display_start_addr>: Declare.
13291 * tui/tui-source.h (struct tui_source_window)
13292 <display_start_addr>: Declare.
13293 * tui/tui-winsource.h (struct tui_source_window_base)
13294 <show_source_line, display_start_addr>: New methods.
13295 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13296 Rename and move to protected section.
13297 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13298 (tui_source_window_base::do_erase_source_content): Update.
13299 (tui_source_window_base::show_source_line): Now a method.
13300 (tui_source_window_base::show_source_content)
13301 (tui_source_window_base::tui_source_window_base)
13302 (tui_source_window_base::rerender)
13303 (tui_source_window_base::refill)
13304 (tui_source_window_base::do_scroll_horizontal)
13305 (tui_source_window_base::set_is_exec_point_at)
13306 (tui_source_window_base::update_breakpoint_info)
13307 (tui_source_window_base::update_exec_info): Update.
13308 * tui/tui-source.c (tui_source_window::set_contents)
13309 (tui_source_window::showing_source_p)
13310 (tui_source_window::do_scroll_vertical)
13311 (tui_source_window::location_matches_p)
13312 (tui_source_window::line_is_displayed): Update.
13313 (tui_source_window::display_start_addr): New method.
13314 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13315 (tui_disasm_window::do_scroll_vertical)
13316 (tui_disasm_window::location_matches_p): Update.
13317 (tui_disasm_window::display_start_addr): New method.
13318
01b1af32
TT
133192020-02-22 Tom Tromey <tom@tromey.com>
13320
13321 * NEWS: Add entry for gdb.register_window_type.
13322 * tui/tui-layout.h (window_factory): New typedef.
13323 (tui_register_window): Declare.
13324 * tui/tui-layout.c (saved_tui_windows): New global.
13325 (tui_apply_current_layout): Use it.
13326 (tui_register_window): New function.
13327 * python/python.c (do_start_initialization): Call
13328 gdbpy_initialize_tui.
13329 (python_GdbMethods): Add "register_window_type" function.
13330 * python/python-internal.h (gdbpy_register_tui_window)
13331 (gdbpy_initialize_tui): Declare.
13332 * python/py-tui.c: New file.
13333 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13334
fc96d20b
TT
133352020-02-22 Tom Tromey <tom@tromey.com>
13336
13337 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13338
935c78c0
TT
133392020-02-22 Tom Tromey <tom@tromey.com>
13340
13341 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13342 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13343 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13344 (tui_set_win_focus_to): Move from tui-win.c.
13345
0240c8f1
TT
133462020-02-22 Tom Tromey <tom@tromey.com>
13347
13348 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13349 functions.
13350 (known_window_types): New global.
13351 (tui_get_window_by_name): Reimplement.
13352 (initialize_known_windows): New function.
13353 (validate_window_name): Rewrite.
13354 (_initialize_tui_layout): Call initialize_known_windows.
13355
fdb01f0c
TT
133562020-02-22 Tom Tromey <tom@tromey.com>
13357
13358 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13359 Remove constants.
13360 * tui/tui-winsource.h (struct tui_source_window_base)
13361 <tui_source_window_base>: Remove parameter.
13362 * tui/tui-winsource.c
13363 (tui_source_window_base::tui_source_window_base): Remove
13364 parameter.
13365 (tui_source_window_base::refill): Update.
13366 * tui/tui-stack.h (struct tui_locator_window)
13367 <tui_locator_window>: Update.
13368 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13369 Default the constructor.
13370 * tui/tui-regs.h (struct tui_data_item_window)
13371 <tui_data_item_window>: Default the constructor.
13372 (struct tui_data_window) <tui_data_window>: Likewise.
13373 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13374 Default the constructor.
13375 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13376 Default the constructor.
13377 <type>: Remove.
13378 (struct tui_win_info) <tui_win_info>: Default the constructor.
13379 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13380 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13381 Default the constructor.
13382
865a5aec
TT
133832020-02-22 Tom Tromey <tom@tromey.com>
13384
13385 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13386 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13387 * tui/tui-win.c (tui_resize_all): Don't call
13388 tui_delete_invisible_windows.
13389 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13390 done.
13391 (tui_set_layout): Update.
13392 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13393 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13394 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13395
e098d18c
TT
133962020-02-22 Tom Tromey <tom@tromey.com>
13397
13398 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13399 correctly.
13400
eb9c8874
TT
134012020-02-22 Tom Tromey <tom@tromey.com>
13402
13403 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13404
7eed1a8e
TT
134052020-02-22 Tom Tromey <tom@tromey.com>
13406
13407 * tui/tui-winsource.h (struct tui_source_window_iterator)
13408 <inner_iterator>: New etytypedef.
13409 <tui_source_window_iterator>: Take "end" parameter.
13410 <tui_source_window_iterator>: Take iterator.
13411 <operator*, advance>: Update.
13412 <m_iter>: Change type.
13413 <m_end>: New field.
13414 (struct tui_source_windows) <begin, end>: Update.
13415 * tui/tui-layout.c (tui_windows): New global.
13416 (tui_apply_current_layout): Clear tui_windows.
13417 (tui_layout_window::apply): Update tui_windows.
13418 * tui/tui-data.h (tui_windows): Declare.
13419 (all_tui_windows): Now inline function.
13420 (class tui_window_iterator, struct all_tui_windows): Remove.
13421
7c043ba6
TT
134222020-02-22 Tom Tromey <tom@tromey.com>
13423
13424 PR tui/17850:
13425 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13426 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13427 "height" argument.
13428 (class tui_layout_window) <get_sizes>: Likewise.
13429 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13430 argument.
13431 <get_sizes>: Add "height" argument.
13432 <m_vertical>: New field.
13433 * tui/tui-layout.c (tui_layout_split::clone): Update.
13434 (tui_layout_split::get_sizes): Add "height" argument.
13435 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13436 (tui_new_layout_command): Parse "-horizontal".
13437 (_initialize_tui_layout): Update help string.
13438 (tui_layout_split::specification): Add "-horizontal" when needed.
13439 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13440 argument.
13441 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13442 New methods.
13443
6bc56648
TT
134442020-02-22 Tom Tromey <tom@tromey.com>
13445
13446 * tui/tui-layout.h (enum tui_adjust_result): New.
13447 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13448 (class tui_layout_window) <adjust_size>: Return
13449 tui_adjust_result. Rewrite.
13450 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13451 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13452
c22fef7e
TT
134532020-02-22 Tom Tromey <tom@tromey.com>
13454
13455 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13456 parameter and return types.
13457 (class tui_layout_base) <specification>: Add "depth".
13458 (class tui_layout_window) <specification>: Add "depth".
13459 (class tui_layout_split) <specification>: Add "depth".
13460 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13461 and return types.
13462 (tui_new_layout_command): Parse sub-layouts.
13463 (_initialize_tui_layout): Update help string.
13464 (tui_layout_window::specification): Add "depth".
13465 (add_layout_command): Update.
13466
ee325b61
TT
134672020-02-22 Tom Tromey <tom@tromey.com>
13468
13469 * NEWS: Add "tui new-layout" item.
13470 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13471 Add new-layout command to help text.
13472 (validate_window_name): New function.
13473 (tui_new_layout_command): New function.
13474 (_initialize_tui_layout): Register "new-layout".
13475 (tui_layout_window::specification): New method.
13476 (tui_layout_window::specification): New method.
13477 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13478 method.
13479 (class tui_layout_window) <specification>: New method.
13480 (class tui_layout_split) <specification>: New method.
13481
416eb92d
TT
134822020-02-22 Tom Tromey <tom@tromey.com>
13483
13484 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13485 * tui/tui-win.c (window_name_completer): Update comment.
13486 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13487 Declare method.
13488 (class tui_layout_window) <replace_window>: Likewise.
13489 (class tui_layout_split) <replace_window>: Likewise.
13490 (tui_set_layout): Don't declare.
13491 (tui_set_initial_layout): Declare function.
13492 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13493 (asm_regs_layout): New globals.
13494 (tui_current_layout, show_layout): Remove.
13495 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13496 (find_layout, tui_apply_layout): New function.
13497 (layout_completer): Remove.
13498 (tui_next_layout): Reimplement.
13499 (tui_next_layout_command): New function.
13500 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13501 (tui_regs_layout): Reimplement.
13502 (tui_regs_layout_command): New function.
13503 (extract_display_start_addr): Rewrite.
13504 (next_layout, prev_layout): Remove.
13505 (tui_layout_window::replace_window): New method.
13506 (tui_layout_split::replace_window): New method.
13507 (destroy_layout): New function.
13508 (layout_list): New global.
13509 (add_layout_command): New function.
13510 (initialize_layouts): Update.
13511 (tui_layout_command): New function.
13512 (_initialize_tui_layout): Install "layout" commands.
13513 * tui/tui-data.h (enum tui_layout_type): Remove.
13514 (tui_current_layout): Don't declare.
13515
0dbc2fc7
TT
135162020-02-22 Tom Tromey <tom@tromey.com>
13517
13518 * tui/tui-regs.c (tui_reg_layout): Remove.
13519 (tui_reg_command): Use tui_regs_layout.
13520 * tui/tui-layout.h (tui_reg_command): Declare.
13521 * tui/tui-layout.c (tui_reg_command): New function.
13522
5afe342e
TT
135232020-02-22 Tom Tromey <tom@tromey.com>
13524
13525 * tui/tui.c (tui_rl_delete_other_windows): Call
13526 tui_remove_some_windows.
13527 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13528 Declare method.
13529 (class tui_layout_window) <remove_windows>: New method.
13530 (class tui_layout_split) <remove_windows>: Declare.
13531 (tui_remove_some_windows): Declare.
13532 * tui/tui-layout.c (tui_remove_some_windows): New function.
13533 (tui_layout_split::remove_windows): New method.
13534
427326a8
TT
135352020-02-22 Tom Tromey <tom@tromey.com>
13536
13537 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13538 * tui/tui-layout.h (tui_next_layout): Declare.
13539 * tui/tui-layout.c (tui_next_layout): New function.
13540
3fe12b6d
TT
135412020-02-22 Tom Tromey <tom@tromey.com>
13542
13543 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13544 correct coordinates.
13545
59b8b5d2
TT
135462020-02-22 Tom Tromey <tom@tromey.com>
13547
13548 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13549 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13550 DATA_WIN case.
13551
2a3d458b
TT
135522020-02-22 Tom Tromey <tom@tromey.com>
13553
13554 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13555 TUI_DISASM_WIN, not tui_win_list.
13556
3f0cbb04
TT
135572020-02-22 Tom Tromey <tom@tromey.com>
13558
13559 * valprint.c (generic_val_print_enum_1)
13560 (val_print_type_code_flags): Style member names.
13561 * rust-lang.c (val_print_struct, rust_print_enum)
13562 (rust_print_struct_def, rust_internal_print_type): Style member
13563 names.
13564 * p-valprint.c (pascal_object_print_value_fields): Style member
13565 names. Only call fprintf_symbol_filtered for static members.
13566 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13567 * f-valprint.c (f_val_print): Style member names.
13568 * f-typeprint.c (f_type_print_base): Style member names.
13569 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13570 call fprintf_symbol_filtered for static members.
13571 (cp_print_class_member): Style member names.
13572 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13573 member names.
13574 * ada-valprint.c (ada_print_scalar): Style enum names.
13575 (ada_val_print_enum): Likewise.
13576 * ada-typeprint.c (print_enum_type): Style enum names.
13577
d4d947ae
TT
135782020-02-21 Tom Tromey <tom@tromey.com>
13579
13580 * psympriv.h (struct partial_symtab): Update comment.
13581
e94e944b
TT
135822020-02-21 Tom Tromey <tromey@adacore.com>
13583
13584 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13585 type is CORE_ADDR.
13586
1eb73179
TV
135872020-02-21 Tom de Vries <tdevries@suse.de>
13588
13589 PR gdb/25534
13590 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13591 if dependencies[i]->user != NULL.
13592
4f180d53
AT
135932020-02-21 Ali Tamur <tamur@google.com>
13594
13595 * dwarf2/read.c (dwarf2_name): Add null check.
13596
22b6cd70
TT
135972020-02-20 Tom Tromey <tom@tromey.com>
13598
13599 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13600 ">=", in binary search.
13601 (dwarf2_find_containing_comp_unit): New overload.
13602 (run_test): New self-test.
13603 (_initialize_dwarf2_read): Register new test.
13604
bd0cf5a6
NC
136052020-02-20 Nelson Chu <nelson.chu@sifive.com>
13606
13607 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13608 * riscv-tdep.h: Likewise.
13609 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13610 rv32-only CSR.
13611 * features/riscv/64bit-csr.xml: Regenerated.
13612
3f702acd
SDJ
136132020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13614 Tom Tromey <tom@tromey.com>
13615
13616 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13617 of 'fputc_unfiltered'.
13618 (putchar_unfiltered): Call 'fputc_unfiltered'.
13619 (fputc_unfiltered): Call 'fputs_unfiltered'.
13620
d13c7322
AB
136212020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13622
13623 * config.in: Regenerate.
13624 * configure: Regenerate.
13625 * configure.ac: Add --with-python-libdir option.
13626 * main.c: Use WITH_PYTHON_LIBDIR.
13627
869d8950
TT
136282020-02-19 Tom Tromey <tom@tromey.com>
13629
13630 * symtab.c (general_symbol_info::compute_and_set_names): Use
13631 obstack_strndup. Simplify call to symbol_set_demangled_name.
13632
298e9637
SM
136332020-02-19 Simon Marchi <simon.marchi@efficios.com>
13634
13635 * dwarf2/read.c (allocate_signatured_type_table,
13636 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13637 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13638 Remove objfile parameter, update all callers.
13639
08410482
DE
136402020-02-19 Doug Evans <dje@google.com>
13641
13642 PR rust/25535
13643 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13644 rust_enum_variant calculation.
13645
dfdeeca1
TT
136462020-02-19 Tom Tromey <tromey@adacore.com>
13647
13648 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13649
2ef5453b
TT
136502020-02-19 Tom Tromey <tromey@adacore.com>
13651
13652 * ada-lang.c (cache_symbol): Use obstack_strdup.
13653
9f1528a1
AB
136542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13655
13656 * configure: Regenerate.
13657
d3c22fa8
TT
136582020-02-19 Tom Tromey <tromey@adacore.com>
13659
13660 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13661 NULL check.
13662
bf84f706
MR
136632020-02-19 Maciej W. Rozycki <macro@wdc.com>
13664
13665 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13666
d1c9b20f
AB
136672020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13668
13669 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13670 if GDBSERVER is not defined.
13671 (riscv_tdesc_cache): Likewise, also store const target_desc.
13672 (STATIC_IN_GDB): Define.
13673 (riscv_create_target_description): Update declaration with
13674 STATIC_IN_GDB.
13675 (riscv_lookup_target_description): New function, only define if
13676 GDBSERVER is not defined.
13677 * arch/riscv.h (riscv_create_target_description): Declare only
13678 when GDBSERVER is defined.
13679 (riscv_lookup_target_description): New declaration when GDBSERVER
13680 is not defined.
13681 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13682 (riscv_linux_read_features): ...this, and return
13683 riscv_gdbarch_features instead of target_desc.
13684 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13685 (riscv_linux_read_description): Rename to...
13686 (riscv_linux_read_features): ...this.
13687 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13688 Update to use riscv_gdbarch_features and
13689 riscv_lookup_target_description.
13690 * riscv-tdep.c (riscv_find_default_target_description): Use
13691 riscv_lookup_target_description instead of
13692 riscv_create_target_description.
13693
373d7ac0
SM
136942020-02-18 Simon Marchi <simon.marchi@efficios.com>
13695
13696 * valprint.c (generic_val_print_enum_1): When printing a flag
13697 enum with value 0 and there is no enumerator with value 0, print
13698 just "0" instead of "(unknown: 0x0)".
13699
b29a2df0
SM
137002020-02-18 Simon Marchi <simon.marchi@efficios.com>
13701
13702 * valprint.c (generic_val_print_enum_1): Print unknown part of
13703 flag enum in hex.
13704
6740f0cc
SM
137052020-02-18 Simon Marchi <simon.marchi@efficios.com>
13706
13707 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13708 flag enums to contain duplicate enumerators.
13709 * valprint.c (generic_val_print_enum_1): Update comment.
13710
edd45eb0
SM
137112020-02-18 Simon Marchi <simon.marchi@efficios.com>
13712
13713 * dwarf2/read.c: Include "count-one-bits.h".
13714 (update_enumeration_type_from_children): If an enumerator has
13715 multiple bits set, don't treat the enumeration as a "flag enum".
13716 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13717 of flag enums have 0 or 1 bit set.
13718
6d0cf446
BE
137192020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13720
13721 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13722 conversion.
13723 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13724 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13725 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13726 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13727 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13728
7001c1b7
SM
137292020-02-18 Simon Marchi <simon.marchi@efficios.com>
13730
13731 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13732
fdb61c6c
SM
137332020-02-14 Simon Marchi <simon.marchi@efficios.com>
13734
13735 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13736 displaced_step_closure_up.
13737 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13738 (struct displaced_step_closure_up):
13739 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13740 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13741 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13742 Likewise.
13743 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13744 * gdbarch.c, gdbarch.h: Re-generate.
13745 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13746 displaced_step_closure_up.
13747 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13748 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13749 * infrun.h (displaced_step_closure_up): New type alias.
13750 (struct displaced_step_inferior_state) <step_closure>: Change
13751 type to displaced_step_closure_up.
13752 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13753 displaced_step_closure_up.
13754 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13755
a4a38eb4
TT
137562020-02-14 Tom Tromey <tom@tromey.com>
13757
13758 * minidebug.c (gnu_debug_key): New global.
13759 (find_separate_debug_file_in_section): Use it.
13760
e8217e61
SM
137612020-02-14 Simon Marchi <simon.marchi@efficios.com>
13762
13763 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13764 std::unique_ptr.
13765 * gdbarch.c: Re-generate.
13766 * gdbarch.h: Re-generate.
13767 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13768 change.
13769 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13770 type to std::unique_ptr.
13771 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13772 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13773 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13774 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13775 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13776 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13777 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13778 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13779 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13780
d8d83535
SM
137812020-02-14 Simon Marchi <simon.marchi@efficios.com>
13782
13783 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13784 std::unique_ptr.
13785 (displaced_step_clear): Rename to...
13786 (displaced_step_reset): ... this. Just call displaced->reset ().
13787 (displaced_step_clear_cleanup): Rename to...
13788 (displaced_step_reset_cleanup): ... this.
13789 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13790 (displaced_step_fixup): Likewise.
13791 (resume_1): Likewise.
13792 (handle_inferior_event): Restore child's memory before calling
13793 displaced_step_fixup on the parent.
13794 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13795 to std::unique_ptr.
13796 <step_closure>: Change type to std::unique_ptr.
13797
5f661e03
SM
137982020-02-14 Simon Marchi <simon.marchi@efficios.com>
13799
13800 * arm-tdep.c: Include count-one-bits.h.
13801 (cleanup_block_store_pc): Use count_one_bits.
13802 (cleanup_block_load_pc): Use count_one_bits.
13803 (arm_copy_block_xfer): Use count_one_bits.
13804 (thumb2_copy_block_xfer): Use count_one_bits.
13805 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13806 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13807 (thumb_get_next_pcs_raw): Use count_one_bits.
13808 (arm_get_next_pcs_raw): Use count_one_bits_l.
13809 * arch/arm.c (bitcount): Remove.
13810 * arch/arm.h (bitcount): Remove.
13811
8084e579
TT
138122020-02-14 Tom Tromey <tromey@adacore.com>
13813
13814 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13815 Update.
13816 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13817 * dwarf2/loc.c (call_site_find_chain_1): Return
13818 unique_xmalloc_ptr.
13819 (call_site_find_chain): Likewise.
13820
258bf0ee
RB
138212020-02-14 Richard Biener <rguenther@suse.de>
13822
13823 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13824 on expression with division operators.
13825
f98a8458
AKS
138262020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13827
13828 * MAINTAINERS (Write After Approval): Adding myself.
13829
d1437c0e
TT
138302020-02-12 Tom Tromey <tom@tromey.com>
13831
13832 * event-loop.c (event_data, gdb_event, event_handler_func):
13833 Remove.
13834
3d4560f7
TT
138352020-02-12 Tom Tromey <tom@tromey.com>
13836
13837 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13838 (dwarf2_frame_objfile_data): Add comment.
13839 (find_comp_unit, set_comp_unit): New functions.
13840 (dwarf2_frame_find_fde): Use find_comp_unit.
13841 (dwarf2_build_frame_info): Use set_comp_unit.
13842
21982304
TT
138432020-02-12 Tom Tromey <tom@tromey.com>
13844
13845 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13846 (comp_unit): Don't initialize objfile.
13847 (execute_cfa_program): Add text_offset parameter.
13848 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13849 (dwarf2_frame_cache): Update.
13850 (dwarf2_build_frame_info): Don't set "objfile" member.
13851
4debb237
TT
138522020-02-12 Tom Tromey <tom@tromey.com>
13853
13854 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13855 (decode_frame_entry): Likewise.
13856 (dwarf2_build_frame_info): Update.
13857
0d404d44
TT
138582020-02-12 Tom Tromey <tom@tromey.com>
13859
13860 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13861 (decode_frame_entry_1): Use the comp_unit obstack.
13862
a7a3ae5c
TT
138632020-02-12 Tom Tromey <tom@tromey.com>
13864
13865 * dwarf2/frame.c (struct comp_unit): Add initializers and
13866 constructor.
13867 (dwarf2_frame_objfile_data): Store a comp_unit.
13868 (dwarf2_frame_find_fde): Update.
13869 (dwarf2_build_frame_info): Use "new".
13870
a9d65418
TT
138712020-02-12 Tom Tromey <tom@tromey.com>
13872
13873 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13874 (dwarf2_fde_table): Typedef for std::vector.
13875 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13876 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13877 (decode_frame_entry): Update.
13878 (dwarf2_build_frame_info): Use "new".
13879
7559c217
CB
138802020-02-12 Christian Biesinger <cbiesinger@google.com>
13881
13882 * arm-tdep.c (arm_gdbarch_init): Update.
13883 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13884 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13885 have_neon, is_m>: Change to bool.
13886
aeefc73c
CB
138872020-02-12 Christian Biesinger <cbiesinger@google.com>
13888
13889 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13890
d27b8e5f
TT
138912020-02-12 Tom Tromey <tom@tromey.com>
13892
13893 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13894
cd5900f3
HD
138952020-02-12 Hannes Domani <ssbssa@yahoo.de>
13896
13897 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13898 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13899
f056b22b
TT
139002020-02-11 Tom Tromey <tom@tromey.com>
13901
13902 * psymtab.h: Update comment.
13903
f92ff6b5
TT
139042020-02-11 Tom Tromey <tom@tromey.com>
13905
13906 * gdb_obstack.h (struct auto_obstack): Use
13907 DISABLE_COPY_AND_ASSIGN.
13908
3fd6912b
TT
139092020-02-11 Tom Tromey <tom@tromey.com>
13910
13911 * dwarf2/frame.h (struct objfile): Don't forward declare.
13912
69ed9b74
CB
139132020-02-11 Christian Biesinger <cbiesinger@google.com>
13914
13915 * cris-tdep.c (cris_supply_gregset): Change signature to match
13916 what struct regset expects.
13917 (cris_regset): New struct.
13918 (fetch_core_registers): Remove.
13919 (cris_iterate_over_regset_sections): New function.
13920 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13921 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13922
bda874f6
CB
139232020-02-11 Christian Biesinger <cbiesinger@google.com>
13924
13925 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13926 registers.
13927
754e1564
CB
139282020-02-11 Christian Biesinger <cbiesinger@google.com>
13929
13930 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13931
8ddd8e0e
SM
139322020-02-11 Simon Marchi <simon.marchi@efficios.com>
13933
13934 * configure: Re-generate.
13935
898e7f60
SM
139362020-02-11 Simon Marchi <simon.marchi@efficios.com>
13937
13938 * configure: Re-generate.
13939
58df732b
SM
139402020-02-11 Simon Marchi <simon.marchi@efficios.com>
13941
13942 * acinclude: Update warning.m4 path.
13943 * warning.m4: Move to gdbsupport.
13944
da5bd37e
TT
139452020-02-11 Tom Tromey <tromey@adacore.com>
13946
13947 * remote.c (remote_console_output): Update.
13948 * printcmd.c (printf_command): Update.
13949 * event-loop.c (gdb_wait_for_event): Update.
13950 * linux-nat.c (sigchld_handler): Update.
13951 * remote-sim.c (gdb_os_write_stdout): Update.
13952 (gdb_os_flush_stdout): Update.
13953 (gdb_os_flush_stderr): Update.
13954 (gdb_os_write_stderr): Update.
13955 * exceptions.c (print_exception): Update.
13956 * remote-fileio.c (remote_fileio_func_read): Update.
13957 (remote_fileio_func_write): Update.
13958 * tui/tui.c (tui_enable): Update.
13959 * tui/tui-interp.c (tui_interp::init): Update.
13960 * utils.c (init_page_info): Update.
13961 (putchar_unfiltered, fputc_unfiltered): Update.
13962 (gdb_flush): Update.
13963 (emit_style_escape): Update.
13964 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13965 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13966 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13967 (stderr_file::write): Update.
13968 (stderr_file::puts): Update.
13969 * ui-file.h (ui_file_isatty, ui_file_write)
13970 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13971 (ui_file_puts): Don't declare.
13972
85f0dd3c
TV
139732020-02-10 Tom de Vries <tdevries@suse.de>
13974
13975 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13976 sentinel to char *.
13977
2e927613
TV
139782020-02-09 Tom de Vries <tdevries@suse.de>
13979
13980 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13981 filename if it matches "<artificial>".
13982
6bafc845
HD
139832020-02-09 Hannes Domani <ssbssa@yahoo.de>
13984
13985 * windows-tdep.c (struct enum_value_name): New struct.
13986 (create_enum): New function.
13987 (windows_get_siginfo_type): Create and use enum types.
13988
7928d571
HD
139892020-02-09 Hannes Domani <ssbssa@yahoo.de>
13990
13991 * NEWS: Mention $_siginfo support for Windows.
13992 * windows-nat.c (handle_exception): Set siginfo_er.
13993 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13994 (windows_xfer_siginfo): New function.
13995 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13996 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13997 (init_windows_gdbarch_data): New function.
13998 (get_windows_gdbarch_data): New function.
13999 (windows_get_siginfo_type): New function.
14000 (windows_init_abi): Register windows_get_siginfo_type.
14001 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14002
6751ebae
TT
140032020-02-08 Tom Tromey <tom@tromey.com>
14004
14005 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14006 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14007 <keep>: Declare method.
14008 <m_keep>: Remove member.
14009 <~cutu_reader>: Remove.
14010 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14011 (cutu_reader::cutu_reader): Update.
14012 (cutu_reader::keep): Rename from ~cutu_reader.
14013 (process_psymtab_comp_unit, build_type_psymtabs_1)
14014 (process_skeletonless_type_unit, load_partial_comp_unit)
14015 (load_full_comp_unit, dwarf2_read_addr_index)
14016 (read_signatured_type): Update.
14017
135f5437
TT
140182020-02-08 Tom Tromey <tom@tromey.com>
14019
14020 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14021 "want_partial_unit" parameter.
14022 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14023 Inline check for DW_TAG_partial_unit.
14024 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14025
9f66ff1c
TT
140262020-02-08 Tom Tromey <tom@tromey.com>
14027
14028 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14029 read.c.
14030 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14031 read.c.
14032
c8a7a66f
TT
140332020-02-08 Tom Tromey <tom@tromey.com>
14034
14035 * dwarf2/read.c (read_address): Move to comp-unit.c.
14036 (dwarf2_rnglists_process, dwarf2_ranges_process)
14037 (read_attribute_value, dwarf_decode_lines_1)
14038 (var_decode_location, decode_locdesc): Update.
14039 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14040 read.c. Remove "cu" parameter.
14041 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14042 method.
14043
8266302d
TT
140442020-02-08 Tom Tromey <tom@tromey.com>
14045
14046 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14047 (read_indirect_line_string): Update.
14048 * dwarf2/comp-unit.c (read_offset): Remove.
14049 (read_comp_unit_head): Update.
14050 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14051 method.
14052 (read_offset): Don't declare.
14053
4057dfde
TT
140542020-02-08 Tom Tromey <tom@tromey.com>
14055
14056 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14057 * dwarf2/read.c (struct comp_unit_head): Move to
14058 dwarf2/comp-unit.h.
14059 (enum class rcuh_kind): Move to comp-unit.h.
14060 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14061 (read_comp_unit_head, error_check_comp_unit_head)
14062 (read_and_check_comp_unit_head): Move to comp-unit.c.
14063 (read_offset, dwarf_unit_type_name): Likewise.
14064 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14065 (cutu_reader::cutu_reader, read_call_site_scope)
14066 (find_partial_die, follow_die_offset): Update.
14067 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14068
24aa364d
TT
140692020-02-08 Tom Tromey <tom@tromey.com>
14070
14071 * dwarf2/read.c (read_offset_1): Move to leb.c.
14072 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14073 (dwarf_decode_macro_bytes): Update.
14074 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14075 * dwarf2/leb.h (read_offset): Declare.
14076
2c7d5afc
TT
140772020-02-08 Tom Tromey <tom@tromey.com>
14078
14079 * dwarf2/read.c (dwarf2_section_size): Remove.
14080 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14081 Update.
14082 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14083
4075cb26
TT
140842020-02-08 Tom Tromey <tom@tromey.com>
14085
14086 * dwarf2/read.c (read_initial_length): Move to leb.c.
14087 * dwarf2/leb.h (read_initial_length): Declare.
14088 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14089 handle_nonstd parameter.
14090 * dwarf2/frame.c (read_initial_length): Remove.
14091 (decode_frame_entry_1): Update.
14092
09ba997f
TT
140932020-02-08 Tom Tromey <tom@tromey.com>
14094
14095 * dwarf2/loc.c (dwarf2_find_location_expression)
14096 (dwarf_evaluate_loc_desc::get_tls_address)
14097 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14098 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14099 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14100 (dwarf2_compile_property_to_c)
14101 (dwarf2_loc_desc_get_symbol_read_needs)
14102 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14103 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14104 (loclist_describe_location, loclist_tracepoint_var_ref)
14105 (loclist_generate_c_location): Update.
14106 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14107 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14108 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14109 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14110 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14111 (dwarf2_per_cu_data::addr_size)
14112 (dwarf2_per_cu_data::ref_addr_size)
14113 (dwarf2_per_cu_data::text_offset)
14114 (dwarf2_per_cu_data::addr_type): Now methods.
14115 (per_cu_header_read_in): Make per_cu "const".
14116 (dwarf2_version): Remove.
14117 (dwarf2_per_cu_data::int_type): Now a method.
14118 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14119 (set_die_type, read_array_type, read_subrange_index_type)
14120 (read_tag_string_type, read_subrange_type): Update.
14121 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14122 offset_size, ref_addr_size, text_offset, addr_type, version,
14123 objfile, int_type, addr_sized_int_type>: Declare methods.
14124
96c738c0
TT
141252020-02-08 Tom Tromey <tom@tromey.com>
14126
14127 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14128 Move earlier.
14129
8fdd972c
TT
141302020-02-08 Tom Tromey <tom@tromey.com>
14131
14132 * dwarf2/read.h (dwarf_line_debug): Declare.
14133 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14134 * dwarf2/read.c: Move line_header code to new files.
14135 (dwarf_line_debug): No longer static.
14136 * dwarf2/line-header.c: New file.
14137 * dwarf2/line-header.h: New file.
14138
03075812
TT
141392020-02-08 Tom Tromey <tom@tromey.com>
14140
14141 * dwarf2/read.c (struct line_header) <file_full_name,
14142 file_file_name>: Return unique_xmalloc_ptr.
14143 (line_header::file_file_name): Update.
14144 (line_header::file_full_name): Update.
14145 (dw2_get_file_names_reader): Update.
14146 (macro_start_file): Update.
14147
bb822404
TT
141482020-02-08 Tom Tromey <tom@tromey.com>
14149
14150 * dwarf2/read.c (struct line_header) <file_full_name,
14151 file_file_name>: Declare methods.
14152 (dw2_get_file_names_reader): Update.
14153 (file_file_name): Now a method.
14154 (file_full_name): Likewise.
14155 (macro_start_file): Update.
14156
009b64fc
TT
141572020-02-08 Tom Tromey <tom@tromey.com>
14158
14159 * dwarf2/read.c (dwarf_always_disassemble)
14160 (show_dwarf_always_disassemble): Move to loc.c.
14161 (_initialize_dwarf2_read): Move "always-disassemble" registration
14162 to loc.c.
14163 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14164 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14165 static.
14166 (show_dwarf_always_disassemble): Move from read.c.
14167 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14168
5895093f
TT
141692020-02-08 Tom Tromey <tom@tromey.com>
14170
14171 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14172 (create_quick_file_names_table): Return htab_up.
14173 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14174 Update.
14175 * dwarf2/read.h (struct dwarf2_per_objfile)
14176 <quick_file_names_table>: Now htab_up.
14177
b3b32279
TT
141782020-02-08 Tom Tromey <tom@tromey.com>
14179
14180 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14181
1d33d811
TT
141822020-02-08 Tom Tromey <tom@tromey.com>
14183
14184 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14185 Rewrite.
14186 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14187 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14188 (abbrev_table::abbrev_table): No longer inline.
14189 (ABBREV_HASH_SIZE): Remove.
14190 (abbrev_table::m_abbrevs): Now an htab_up.
14191
86de1d91
TT
141922020-02-08 Tom Tromey <tom@tromey.com>
14193
14194 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14195 (cutu_reader): Update.
14196 (build_type_psymtabs_1): Update.
14197 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14198 (abbrev_table::alloc_abbrev): Update.
14199 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14200 (abbrev_table::read): New static method, renamed from
14201 abbrev_table_read_table.
14202 (abbrev_table::alloc_abbrev)
14203 (abbrev_table::add_abbrev): Now private.
14204 (abbrev_table::abbrev_table): Now private.
14205 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14206
0335378b
TT
142072020-02-08 Tom Tromey <tom@tromey.com>
14208
14209 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14210 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14211 htab_up.
14212
48b490f2
TT
142132020-02-08 Tom Tromey <tom@tromey.com>
14214
14215 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14216 htab_up.
14217 (lookup_dwo_unit_in_dwp): Update.
14218 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14219 on obstack.
14220
bc68fb19
TT
142212020-02-08 Tom Tromey <tom@tromey.com>
14222
14223 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14224 obstack.
14225
d15acc42
TT
142262020-02-08 Tom Tromey <tom@tromey.com>
14227
14228 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14229 line_header_hash.
14230 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14231 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14232 Change type to htab_up.
14233
eaa5fa8b
TT
142342020-02-08 Tom Tromey <tom@tromey.com>
14235
14236 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14237 htab_up. Don't allocate on obstack.
14238 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14239 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14240 Change type to htab_up.
14241
b0b6a987
TT
142422020-02-08 Tom Tromey <tom@tromey.com>
14243
14244 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14245 Change type to htab_up.
14246 * dwarf2/read.c (create_signatured_type_table_from_index)
14247 (create_signatured_type_table_from_debug_names)
14248 (create_all_type_units, add_type_unit)
14249 (lookup_dwo_signatured_type, lookup_signatured_type)
14250 (process_skeletonless_type_unit): Update.
14251 (create_debug_type_hash_table, create_debug_types_hash_table):
14252 Change type of types_htab.
14253 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14254 htab_up. Don't allocate on obstack.
14255 (create_cus_hash_table): Change type of cus_htab parameter.
14256 (struct dwo_file) <cus, tus>: Now htab_up.
14257 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14258 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14259 (queue_and_load_all_dwo_tus): Update.
14260 * dwarf2/index-write.c (write_gdbindex): Update.
14261 (write_debug_names): Update.
14262
39856def
TT
142632020-02-08 Tom Tromey <tom@tromey.com>
14264
14265 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14266 dwarf2/read.c. Remove "next" member. Add constructor ntad
14267 destructor.
14268 (struct dwarf2_per_objfile) <queue>: New member.
14269 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14270 dwarf2/read.h.
14271 (dwarf2_queue, dwarf2_queue_tail): Remove.
14272 (class dwarf2_queue_guard): Add parameter to constructor. Use
14273 DISABLE_COPY_AND_ASSIGN.
14274 <m_per_objfile>: New member.
14275 <~dwarf2_queue_guard>: Rewrite.
14276 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14277 Update.
14278 (~dwarf2_queue_item): New.
14279
3e225074
TT
142802020-02-08 Tom Tromey <tom@tromey.com>
14281
14282 * dwarf2/read.c (struct die_info) <has_children>: New member.
14283 (dw2_get_file_names_reader): Remove has_children.
14284 (dw2_get_file_names): Update.
14285 (read_cutu_die_from_dwo): Remove has_children.
14286 (cutu_reader::init_tu_and_read_dwo_dies)
14287 (cutu_reader::cutu_reader): Update.
14288 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14289 Remove has_children.
14290 (build_type_psymtabs_1, process_skeletonless_type_unit)
14291 (load_partial_comp_unit, load_full_comp_unit): Update.
14292 (create_dwo_cu_reader): Remove has_children.
14293 (create_cus_hash_table, read_die_and_children): Update.
14294 (read_full_die_1,read_full_die): Remove has_children.
14295 (read_signatured_type): Update.
14296 (class cutu_reader) <has_children>: Remove.
14297
82ca8957
TT
142982020-02-08 Tom Tromey <tom@tromey.com>
14299
14300 * dwarf2/expr.c: Rename from dwarf2expr.c.
14301 * dwarf2/expr.h: Rename from dwarf2expr.h.
14302 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14303 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14304 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14305 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14306 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14307 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14308 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14309 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14310 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14311 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14312 * dwarf2/loc.c: Rename from dwarf2loc.c.
14313 * dwarf2/loc.h: Rename from dwarf2loc.h.
14314 * dwarf2/read.c: Rename from dwarf2read.c.
14315 * dwarf2/read.h: Rename from dwarf2read.h.
14316 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14317 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14318 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14319 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14320 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14321 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14322 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14323 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14324 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14325 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14326 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14327 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14328 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14329 Update.
14330 * Makefile.in (COMMON_SFILES): Update.
14331 (HFILES_NO_SRCDIR): Update.
14332
9e35d499
TT
143332020-02-08 Tom Tromey <tom@tromey.com>
14334
14335 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14336 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14337
1eba2311
TT
143382020-02-08 Tom Tromey <tom@tromey.com>
14339
14340 * dwarf2read.h (struct die_info): Don't declare.
14341
e41c2da2
TT
143422020-02-08 Tom Tromey <tom@tromey.com>
14343
14344 * dwarf2read.h (die_info_ptr): Remove typedef.
14345
4fc6c0d5
TT
143462020-02-08 Tom Tromey <tom@tromey.com>
14347
14348 * dwarf2read.c (read_call_site_scope)
14349 (handle_data_member_location, dwarf2_add_member_fn)
14350 (mark_common_block_symbol_computed, read_common_block)
14351 (attr_to_dynamic_prop, partial_die_info::read)
14352 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14353 (dwarf2_symbol_mark_computed, set_die_type): Update.
14354 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14355 method.
14356 (attr_form_is_block): Don't declare.
14357 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14358
cd6c91b4
TT
143592020-02-08 Tom Tromey <tom@tromey.com>
14360
14361 * dwarf2read.c (dwarf2_find_base_address, )
14362 (read_call_site_scope, rust_containing_type)
14363 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14364 (handle_data_member_location, dwarf2_add_member_fn)
14365 (get_alignment, read_structure_type, process_structure_scope)
14366 (mark_common_block_symbol_computed, read_common_block)
14367 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14368 (partial_die_info::read, read_attribute_value, new_symbol)
14369 (lookup_die_type, dwarf2_get_ref_die_offset)
14370 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14371 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14372 (dwarf2_symbol_mark_computed): Update.
14373 * dwarf2/attribute.h (struct attribute) <value_as_address,
14374 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14375 methods.
14376 (value_as_address, attr_form_is_section_offset)
14377 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14378 * dwarf2/attribute.c (attribute::value_as_address)
14379 (attribute::form_is_section_offset, attribute::form_is_constant)
14380 (attribute::form_is_ref): Now methods.
14381
162dce55
TT
143822020-02-08 Tom Tromey <tom@tromey.com>
14383
14384 * dwarf2read.c (struct attribute, DW_STRING)
14385 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14386 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14387 (attr_form_is_block, attr_form_is_section_offset)
14388 (attr_form_is_constant, attr_form_is_ref): Move.
14389 * dwarf2/attribute.h: New file.
14390 * dwarf2/attribute.c: New file, from dwarf2read.c.
14391 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14392
3054dd54
TT
143932020-02-08 Tom Tromey <tom@tromey.com>
14394
14395 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14396 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14397 Move.
14398 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14399 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14400 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14401 abbrev.c.
14402 * dwarf2/abbrev.h: New file.
14403 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14404 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14405
96b79293
TT
144062020-02-08 Tom Tromey <tom@tromey.com>
14407
14408 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14409 (dwarf2_section_size, dwarf2_get_section_info)
14410 (create_signatured_type_table_from_debug_names)
14411 (create_addrmap_from_aranges, read_debug_names_from_section)
14412 (get_gdb_index_contents_from_section, read_comp_unit_head)
14413 (error_check_comp_unit_head, read_abbrev_offset)
14414 (create_debug_type_hash_table, init_cu_die_reader)
14415 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14416 (read_comp_units_from_section, create_cus_hash_table)
14417 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14418 (create_dwp_v2_section, dwarf2_rnglists_process)
14419 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14420 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14421 (read_indirect_string_from_dwz, read_addr_index_1)
14422 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14423 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14424 (fill_in_loclist_baton): Update.
14425 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14426 get_containing_section, get_bfd_owner, get_bfd_section,
14427 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14428 (dwarf2_read_section, get_section_name, get_section_file_name)
14429 (get_containing_section, get_section_bfd_owner)
14430 (get_section_bfd_section, get_section_name, get_section_file_name)
14431 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14432 declare.
14433 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14434 (dwarf2_section_info::get_bfd_owner)
14435 (dwarf2_section_info::get_bfd_section)
14436 (dwarf2_section_info::get_name)
14437 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14438 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14439 (dwarf2_section_info::read): Now methods.
14440 * dwarf-index-write.c (class debug_names): Update.
14441
2c86cff9
TT
144422020-02-08 Tom Tromey <tom@tromey.com>
14443
14444 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14445 Move to dwarf2/section.h.
14446 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14447 (get_section_bfd_section, get_section_name)
14448 (get_section_file_name, get_section_id, get_section_flags)
14449 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14450 dwarf2/section.c.
14451 * dwarf2/section.h: New file.
14452 * dwarf2/section.c: New file, from dwarf2read.c.
14453 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14454
f4382c45
TT
144552020-02-08 Tom Tromey <tom@tromey.com>
14456
14457 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14458 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14459 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14460 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14461 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14462 * dwarf2/leb.h: New file, from dwarf2read.c.
14463 * dwarf2/leb.c: New file, from dwarf2read.c.
14464 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14465 Remove.
14466 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14467 (COMMON_SFILES): Add dwarf2/leb.c.
14468
01840b7a
JB
144692020-02-08 Joel Brobecker <brobecker@adacore.com>
14470
14471 GDB 9.1 released.
14472
dfcb27e4
IB
144732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14474
14475 PR gdb/25190:
aac66a4c
SM
14476 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14477 * gdb/remote.c (remote_console_output): Update.
14478 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14479 (ui_file_puts): ...this.
14480 * gdb/ui-file.h (ui_file_puts): Add declaration.
14481 * gdb/utils.c (emit_style_escape): Update.
14482 (flush_wrap_buffer): Update.
14483 (fputs_maybe_filtered): Update.
14484 (fputs_unfiltered): Add function.
dfcb27e4 14485
faa17681
IB
144862020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14487
aac66a4c
SM
14488 * gdb/event-loop.c (gdb_wait_for_event): Update.
14489 * gdb/printcmd.c (printf_command): Update.
14490 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14491 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14492 (gdb_os_flush_stderr): Update.
14493 * gdb/remote.c (remote_console_output): Update.
14494 * gdb/ui-file.c (gdb_flush): Rename to...
14495 (ui_file_flush): ...this.
14496 (stderr_file::write): Update.
14497 (stderr_file::puts): Update.
14498 * gdb/ui-file.h (gdb_flush): Rename to...
14499 (ui_file_flush): ...this.
14500 * gdb/utils.c (gdb_flush): Add function.
14501 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14502
5abbbe1d
TT
145032020-02-07 Tom Tromey <tromey@adacore.com>
14504
14505 PR breakpoints/24915:
14506 * source.c (find_and_open_source): Do not check basenames_may_differ.
14507
919adfe8
TT
145082020-02-07 Tom Tromey <tom@tromey.com>
14509
14510 * README: Update gdbserver documentation.
14511 * gdbserver: Move to top level.
14512 * configure.tgt (build_gdbserver): Remove.
14513 * configure.ac: Remove --enable-gdbserver.
14514 * configure: Rebuild.
14515 * Makefile.in (distclean): Don't mention gdbserver.
14516
1d5d29e7
SV
145172020-02-06 Shahab Vahedi <shahab@synopsys.com>
14518
14519 * source-cache.c (source_cache::ensure): Surround
14520 get_plain_source_lines with a try/catch.
14521 (source_cache::get_line_charpos): Get rid of try/catch
14522 and only check for the return value of "ensure".
14523 * tui/tui-source.c (tui_source_window::set_contents):
14524 Simplify "nlines" calculation.
14525
6eb1129c
SV
145262020-02-06 Shahab Vahedi <shahab@synopsys.com>
14527
14528 * MAINTAINERS (Write After Approval): Add myself.
14529
c6a42d11
CB
145302020-02-05 Christian Biesinger <cbiesinger@google.com>
14531
14532 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14533 function call.
14534
c8ecdda6
CB
145352020-02-05 Christian Biesinger <cbiesinger@google.com>
14536
14537 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14538
f6480e70
MR
145392020-02-05 Maciej W. Rozycki <macro@wdc.com>
14540
14541 * nat/riscv-linux-tdesc.h: New file.
14542 * nat/riscv-linux-tdesc.c: New file, taking code from...
14543 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14544 ... here.
14545 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14546 NATDEPFILES.
14547
dcc9fbc6
AB
145482020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14549
14550 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14551 we don't set the fake simulator ptid to the null_ptid.
14552
719546c4
SM
145532020-02-03 Simon Marchi <simon.marchi@efficios.com>
14554
14555 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14556 * gdbthread.h (class thread_info) <resumed>: Likewise.
14557 * infrun.c (resume_1): Likewise.
14558 (proceed): Likewise.
14559 (infrun_thread_stop_requested): Likewise.
14560 (stop_all_threads): Likewise.
14561 (handle_inferior_event): Likewise.
14562 (restart_threads): Likewise.
14563 (finish_step_over): Likewise.
14564 (keep_going_stepped_thread): Likewise.
14565 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14566 (linux_handle_extended_wait): Likewise.
14567 * record-btrace.c (get_thread_current_frame_id): Likewise.
14568 * record-full.c (record_full_wait_1): Likewise.
14569 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14570 * target.c (target_resume): Likewise.
14571 * thread.c (set_running_thread): Likewise.
14572
e409c542
AKS
145732020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14574
14575 * f-valprint.c (f77_print_array_1): Changed datatype of index
14576 variable to LONGEST from int to enable it to contain bound
14577 values correctly.
14578
ee98c0da
MR
145792020-02-03 Maciej W. Rozycki <macro@wdc.com>
14580
14581 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14582 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14583 offsets according to FLEN determined.
14584 (riscv_linux_nat_target::read_description): Determine FLEN
14585 dynamically.
14586 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14587 according to FLEN determined.
14588 (riscv_linux_nat_target::store_registers): Likewise.
14589
aa66aac4
SV
145902020-02-01 Shahab Vahedi <shahab@synopsys.com>
14591
14592 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14593 when reg->group is empty and reggroup is not.
14594
fd9faca8
TT
145952020-01-31 Tom Tromey <tromey@adacore.com>
14596
14597 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14598 Call beneath target's mourn_inferior after unpushing.
14599
42330a68
AB
146002020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14601
14602 PR tui/9765
14603 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14604 have enough lines to fill the screen, still return the lowest
14605 address we found.
14606
7a27a45b
AB
146072020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14608
14609 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14610 '-', '<', and '>' commands.
14611
c47f70e2
PA
146122020-01-29 Pedro Alves <palves@redhat.com>
14613 Sergio Durigan Junior <sergiodj@redhat.com>
14614
14615 * infcmd.c (construct_inferior_arguments): Assert that
14616 'argc' is greater than 0.
14617
5133a315
LM
146182020-01-29 Luis Machado <luis.machado@linaro.org>
14619
14620 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14621 (BRK_INSN_MASK): Define to 0xd4200000.
14622 (aarch64_program_breakpoint_here_p): New function.
14623 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14624 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14625 breakpoint.c.
14626 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14627 breakpoint.h
14628 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14629 call gdbarch_program_breakpoint_here_p.
14630 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14631 default_program_breakpoint_here_p, changed return type to bool and
14632 simplified.
14633 * breakpoint.h (program_breakpoint_here): Moved prototype to
14634 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14635 return type to bool.
14636 * gdbarch.c: Regenerate.
14637 * gdbarch.h: Regenerate.
14638 * gdbarch.sh (program_breakpoint_here_p): New method.
14639 * infrun.c (handle_signal_stop): Call
14640 gdbarch_program_breakpoint_here_p.
14641
168f8c6b
TT
146422020-01-26 Tom Tromey <tom@tromey.com>
14643
14644 * ctfread.c (struct ctf_fp_info): Reindent.
14645 (_initialize_ctfread): Remove.
14646
128a391f
TT
146472020-01-26 Tom Tromey <tom@tromey.com>
14648
14649 * psymtab.c (partial_map_expand_apply)
14650 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14651 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14652 (psym_print_stats, psym_expand_symtabs_for_function)
14653 (psym_map_symbol_filenames, psym_map_matching_symbols)
14654 (psym_expand_symtabs_matching)
14655 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14656 (maintenance_check_psymtabs): Use new methods.
14657 * psympriv.h (struct partial_symtab) <readin_p,
14658 get_compunit_symtab>: New methods.
14659 <readin, compunit_symtab>: Remove members.
14660 (struct standard_psymtab): New.
14661 (struct legacy_psymtab): Derive from standard_psymtab.
14662 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14663 standard_psymtab.
14664 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14665
0494dbec
TT
146662020-01-26 Tom Tromey <tom@tromey.com>
14667
14668 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14669 read_dependencies. Add assert.
14670 * psymtab.c (partial_symtab::read_dependencies): New method.
14671 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14672 method.
14673 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14674 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14675 read_dependencies.
14676 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14677 Add assert.
14678
8566b89b
TT
146792020-01-26 Tom Tromey <tom@tromey.com>
14680
14681 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14682 Call expand_psymtab.
14683 (xcoff_read_symtab): Call expand_psymtab.
14684 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14685 legacy_expand_psymtab.
14686 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14687 method.
14688 (struct legacy_psymtab) <expand_psymtab>: Implement.
14689 <legacy_expand_psymtab>: New member.
14690 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14691 (parse_partial_symbols): Set legacy_expand_psymtab.
14692 (psymtab_to_symtab_1): Change argument order. Call
14693 expand_psymtab.
14694 (new_psymtab): Set legacy_expand_psymtab.
14695 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14696 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14697 expand_psymtab.
14698 (dwarf2_psymtab::expand_psymtab): Rename from
14699 psymtab_to_symtab_1. Call expand_psymtab.
14700 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14701 (dbx_end_psymtab): Likewise.
14702 (dbx_psymtab_to_symtab_1): Change argument order. Call
14703 expand_psymtab.
14704 (dbx_read_symtab): Call expand_psymtab.
14705 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14706 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14707 (ctf_psymtab::read_symtab): Call expand_psymtab.
14708
077cbab2
TT
147092020-01-26 Tom Tromey <tom@tromey.com>
14710
14711 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14712 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14713 messages.
14714 * mdebugread.c (mdebug_read_symtab): Remove prints.
14715 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14716 assert.
14717 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14718
891813be
TT
147192020-01-26 Tom Tromey <tom@tromey.com>
14720
14721 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14722 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14723 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14724 legacy_symtab.
14725 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14726 * psymtab.c (psymtab_to_symtab): Call method.
14727 (dump_psymtab): Update.
14728 * psympriv.h (struct partial_symtab): Add virtual destructor.
14729 <read_symtab>: New method.
14730 (struct legacy_symtab): New.
14731 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14732 (struct pst_map) <pst>: Now a legacy_psymtab.
14733 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14734 (new_psymtab): Use legacy_psymtab.
14735 * dwarf2read.h (struct dwarf2_psymtab): New.
14736 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14737 * dwarf2read.c (dwarf2_create_include_psymtab)
14738 (dwarf2_build_include_psymtabs, create_type_unit_group)
14739 (create_partial_symtab, process_psymtab_comp_unit_reader)
14740 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14741 (set_partial_user): Use dwarf2_psymtab.
14742 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14743 (psymtab_to_symtab_1, process_full_comp_unit)
14744 (process_full_type_unit, dwarf2_ranges_read)
14745 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14746 (dwarf_decode_lines): Use dwarf2_psymtab.
14747 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14748 (add_address_entry_worker, write_one_signatured_type)
14749 (recursively_count_psymbols, recursively_write_psymbols)
14750 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14751 (write_debug_names): Likewise.
14752 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14753 <pst>: Now a legacy_psymtab.
14754 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14755 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14756 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14757 * ctfread.c (struct ctf_psymtab): New.
14758 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14759 ctf_psymtab.
14760 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14761 (create_partial_symtab): Return a ctf_psymtab.
14762 (scan_partial_symbols): Update.
14763
c3693a1d
TT
147642020-01-26 Tom Tromey <tom@tromey.com>
14765
14766 * xcoffread.c (xcoff_start_psymtab): Use new.
14767 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14768 renamed from start_psymtab_common.
14769 * psympriv.h (struct partial_symtab): Add new constructor.
14770 (start_psymtab_common): Don't declare.
14771 * mdebugread.c (parse_partial_symbols): Use new.
14772 * dwarf2read.c (create_partial_symtab): Use new.
14773 * dbxread.c (start_psymtab): Use new.
14774 * ctfread.c (create_partial_symtab): Use new.
14775
32caafd0
TT
147762020-01-26 Tom Tromey <tom@tromey.com>
14777
14778 * xcoffread.c (xcoff_end_psymtab): Use new.
14779 * psymtab.c (start_psymtab_common): Use new.
14780 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14781 Update.
14782 * psympriv.h (struct partial_symtab): Add parameters to
14783 constructor. Don't inline.
14784 (allocate_psymtab): Don't declare.
14785 * mdebugread.c (new_psymtab): Use new.
14786 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14787 * dbxread.c (dbx_end_psymtab): Use new.
14788
abaa2f23
TT
147892020-01-26 Tom Tromey <tom@tromey.com>
14790
14791 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14792 allocate_psymtab. Update documentation.
14793 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14794 allocate_psymtab. Do not use new.
14795 (allocate_psymtab): Use new. Update.
14796
6d94535f
TT
147972020-01-26 Tom Tromey <tom@tromey.com>
14798
14799 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14800 * psymtab.c (psym_print_stats): Update.
14801 * psympriv.h (struct partial_symtab) <readin,
14802 psymtabs_addrmap_supported, anonymous>: Now bool.
14803 * mdebugread.c (psymtab_to_symtab_1): Update.
14804 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14805 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14806 (process_full_comp_unit, process_full_type_unit): Update.
14807 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14808 * ctfread.c (psymtab_to_symtab): Update.
14809
6f17252b
TT
148102020-01-26 Tom Tromey <tom@tromey.com>
14811
14812 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14813 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14814 * psymtab.c (psymtab_storage): Delete psymtabs.
14815 (psymtab_storage::allocate_psymtab): Use new.
14816 (psymtab_storage::discard_psymtab): Use delete.
14817 * psympriv.h (struct partial_symtab): Add constructor and
14818 initializers.
14819
f6f1cebc
TT
148202020-01-26 Tom Tromey <tom@tromey.com>
14821
14822 * machoread.c: Do not include psympriv.h.
14823
e47e48f6
PW
148242020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14825
14826 * NEWS: Mention the new option and the set/show commands.
14827
a2fedca9
PW
148282020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14829
14830 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14831 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14832 (validate_exec_file): New variables, enums, functions.
14833 (exec_file_locate_attach, print_section_info): Style the filenames.
14834 (_initialize_exec): Install show_exec_file_mismatch_command and
14835 set_exec_file_mismatch_command.
14836 * gdbcore.h (validate_exec_file): Declare.
14837 * infcmd.c (attach_command): Call validate_exec_file.
14838 * remote.c ( remote_target::remote_add_inferior): Likewise.
14839
7ffa82e1
AB
148402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14841
14842 * frame.c (find_frame_sal): Move call to get_next_frame into more
14843 inner scope.
14844 * inline-frame.c (inilne_state) <inline_state>: Update argument
14845 types.
14846 (inilne_state) <skipped_symbol>: Rename to...
14847 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14848 (skip_inline_frames): Build vector of skipped symbols and use this
14849 to reate the inline_state.
14850 (inline_skipped_symbol): Add a comment and some assertions, fetch
14851 skipped symbol from the list.
14852
3d92a3e3
AB
148532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14854
14855 * buildsym.c (lte_is_less_than): Delete.
14856 (buildsym_compunit::end_symtab_with_blockvector): Create local
14857 lambda function to sort line table entries, and use
14858 std::stable_sort instead of std::sort.
14859 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14860 markers when looking for a previous line.
14861
94a72be7
AB
148622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14863
14864 * dwarf2read.c (lnp_state_machine::record_line): Include
14865 end_sequence parameter in debug print out. Record the line if we
14866 are at an end_sequence marker even if it's not the start of a
14867 statement.
14868 * symmisc.c (maintenance_print_one_line_table): Print end of
14869 sequence markers with 'END' not '0'.
14870
53af73bf
PA
148712020-01-24 Pedro Alves <palves@redhat.com>
14872
14873 PR gdb/25410
14874 * thread.c (scoped_restore_current_thread::restore): Use
14875 switch_to_inferior_no_thread.
14876 * exec.c: Include "progspace-and-thread.h".
14877 (add_target_sections, remove_target_sections):
14878 scoped_restore_current_pspace_and_thread instead of
14879 scoped_restore_current_thread.
14880 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14881 and aspace to the inferior before calling clone_program_space.
14882 Remove stale comment.
14883
3050c6f4
CB
148842020-01-24 Christian Biesinger <cbiesinger@google.com>
14885
14886 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14887 (arm_netbsd_nat_target::fetch_registers): ...this.
14888 (arm_nbsd_nat_target::store_registers): Rename to...
14889 (arm_netbsd_nat_target::store_registers): ...this.
14890
73685c7e
CB
148912020-01-24 Christian Biesinger <cbiesinger@google.com>
14892
14893 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14894 register_t.
14895
89203d40
CB
148962020-01-24 Christian Biesinger <cbiesinger@google.com>
14897
14898 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14899 Update comment.
14900 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14901 Likewise.
14902 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14903 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14904 the correct replacement (iterate_over_regset_sections).
14905 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14906 Update comment.
14907
1ba1ac88
AB
149082020-01-24 Graham Markall <graham.markall@embecosm.com>
14909
14910 PR gdb/23718
14911 * gdb/python/python.c (execute_gdb_command): Call
14912 async_enable_stdin in catch block.
14913
f3364a6d
AB
149142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14915
14916 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14917 SWITCH_THRU_ALL_UIS.
14918
733d0a67
AB
149192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14920
14921 PR tui/9765
14922 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14923 comment, add extra parameter, and update to store previous symbol
14924 when appropriate.
14925 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14926 add extra parameter.
14927 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14928 remove unneeded parameter, add try/catch around gdb_print_insn,
14929 rewrite to add items to asm_lines vector.
14930 (tui_find_backward_disassembly_start_address): New function.
14931 (tui_find_disassembly_address): Updated throughout.
14932 (tui_disasm_window::set_contents): Update for changes to
14933 tui_disassemble.
14934 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14935 number of lines to scroll.
14936
b3b3bada
SM
149372020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14938
14939 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14940 (SECT_OFF_DATA): Likewise.
14941 (SECT_OFF_RODATA): Likewise.
14942 (SECT_OFF_TEXT): Likewise.
14943 (SECT_OFF_BSS): Likewise.
14944 (struct objfile) <text_section_offset, data_section_offset>: New
14945 methods.
14946 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14947 objfile::text_section_offset.
14948 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14949 * coffread.c (coff_symtab_read): Likewise.
14950 (enter_linenos): Likewise.
14951 (process_coff_symbol): Likewise.
14952 * ctfread.c (get_objfile_text_range): Likewise.
14953 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14954 Use objfile::data_section_offset.
14955 * dwarf2-frame.c (execute_cfa_program): Use
14956 objfile::text_section_offset.
14957 (dwarf2_frame_find_fde): Likewise.
14958 * dwarf2read.c (create_addrmap_from_index): Likewise.
14959 (create_addrmap_from_aranges): Likewise.
14960 (dw2_find_pc_sect_compunit_symtab): Likewise.
14961 (process_psymtab_comp_unit_reader): Likewise.
14962 (add_partial_symbol): Likewise.
14963 (add_partial_subprogram): Likewise.
14964 (process_full_comp_unit): Likewise.
14965 (read_file_scope): Likewise.
14966 (read_func_scope): Likewise.
14967 (read_lexical_block_scope): Likewise.
14968 (read_call_site_scope): Likewise.
14969 (dwarf2_rnglists_process): Likewise.
14970 (dwarf2_ranges_process): Likewise.
14971 (dwarf2_ranges_read): Likewise.
14972 (dwarf_decode_lines_1): Likewise.
14973 (new_symbol): Likewise.
14974 (dwarf2_fetch_die_loc_sect_off): Likewise.
14975 (dwarf2_per_cu_text_offset): Likewise.
14976 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14977 * hppa-tdep.c (read_unwind_info): Likewise.
14978 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14979 * psympriv.h (struct partial_symtab): Likewise.
14980 * psymtab.c (find_pc_sect_psymtab): Likewise.
14981 * solib-svr4.c (enable_break): Likewise.
14982 * stap-probe.c (relocate_address): Use
14983 objfile::data_section_offset.
14984 * xcoffread.c (enter_line_range): Use
14985 objfile::text_section_offset.
14986 (read_xcoff_symtab): Likewise.
14987
ab53f382
SM
149882020-01-23 Simon Marchi <simon.marchi@efficios.com>
14989
14990 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14991 declaration to narrower scopes.
14992
e7eee665
SM
149932020-01-23 Simon Marchi <simon.marchi@efficios.com>
14994
14995 * darwin-nat.h (struct darwin_exception_msg, enum
14996 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14997 Move up.
14998 (class darwin_nat_target) <wait_1, check_new_threads,
14999 decode_exception_message, decode_message, stop_inferior,
15000 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15001 * darwin-nat.c (darwin_check_new_threads): Rename to...
15002 (darwin_nat_target::check_new_threads): ... this.
15003 (darwin_suspend_inferior_it): Remove.
15004 (darwin_decode_exception_message): Rename to...
15005 (darwin_nat_target::decode_exception_message): ... this.
15006 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15007 (darwin_decode_message): Rename to...
15008 (darwin_nat_target::decode_message): ... this.
15009 (cancel_breakpoint): Rename to...
15010 (darwin_nat_target::cancel_breakpoint): ... this.
15011 (darwin_wait): Rename to...
15012 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15013 instead of iterate_over_inferiors.
15014 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15015 (darwin_stop_inferior): Rename to...
15016 (darwin_nat_target::stop_inferior): ... this.
15017 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15018 (darwin_init_thread_list): Rename to...
15019 (darwin_nat_target::init_thread_list): ... this.
15020 (darwin_ptrace_him): Rename to...
15021 (darwin_nat_target::ptrace_him): ... this.
15022 (darwin_nat_target::create_inferior): Pass lambda function to
15023 fork_inferior.
15024 (darwin_nat_target::detach): Call stop_inferior instead of
15025 darwin_stop_inferior.
15026 * fork-inferior.h (fork_inferior): Change init_trace_fun
15027 parameter to gdb::function_view.
15028 * fork-inferior.c (fork_inferior): Likewise.
15029
c162ed3e
HD
150302020-01-23 Hannes Domani <ssbssa@yahoo.de>
15031
15032 * i386-cygwin-tdep.c (core_process_module_section): Update.
15033 * windows-nat.c (struct lm_info_windows): Add text_offset.
15034 (windows_xfer_shared_libraries): Update.
15035 * windows-tdep.c (windows_xfer_shared_library):
15036 Add text_offset_cached argument.
15037 * windows-tdep.h (windows_xfer_shared_library): Update.
15038
a1237872
SM
150392020-01-21 Simon Marchi <simon.marchi@efficios.com>
15040
15041 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15042
b3ee6dd9
SM
150432020-01-21 Simon Marchi <simon.marchi@efficios.com>
15044
15045 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15046 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15047 replace with range-based for.
15048 (gdbsim_interrupt_inferior): Remove.
15049 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15050 with a range-based for. Inline code from
15051 gdbsim_interrupt_inferior.
15052
f9fac3c8
SM
150532020-01-21 Simon Marchi <simon.marchi@efficios.com>
15054
15055 * infrun.c (proceed): Fix indentation.
15056
f6474de9
TT
150572020-01-21 Tom Tromey <tromey@adacore.com>
15058
15059 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15060 * python/python.c (python_extension_ops): Update.
15061 (gdbpy_colorize): New function.
15062 * python/lib/gdb/__init__.py (colorize): New function.
15063 * extension.h (ext_lang_colorize): Declare.
15064 * extension.c (ext_lang_colorize): New function.
15065 * extension-priv.h (struct extension_language_ops) <colorize>: New
15066 member.
15067 * cli/cli-style.c (_initialize_cli_style): Update help text.
15068
f0c702d4
LM
150692020-01-21 Luis Machado <luis.machado@linaro.org>
15070
15071 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15072 <cond>: Change type to bool.
15073 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15074 (aarch64_displaced_step_cb): Likewise.
15075 (aarch64_displaced_step_tb): Likewise.
15076
1ab139e5
LM
150772020-01-21 Luis Machado <luis.machado@linaro.org>
15078
15079 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15080 output.
15081
0c271889
LM
150822020-01-21 Luis Machado <luis.machado@linaro.org>
15083
15084 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15085 <pc_adjust>: Adjust the documentation.
15086 (aarch64_displaced_step_fixup): Check if PC really moved before
15087 adjusting it.
15088
4d89c1c7
TT
150892020-01-19 Tom Tromey <tom@tromey.com>
15090
15091 * disasm.c (~gdb_disassembler): New destructor.
15092 (gdb_buffered_insn_length): Call disassemble_free_target.
15093 * disasm.h (class gdb_disassembler): Declare destructor. Use
15094 DISABLE_COPY_AND_ASSIGN.
15095
c0ab21c2
TT
150962020-01-19 Tom Tromey <tom@tromey.com>
15097
15098 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15099 (die_reader_func_ftype): Remove.
15100 (cutu_reader): New class.
15101 (dw2_get_file_names_reader): Remove "data" parameter.
15102 (dw2_get_file_names): Use cutu_reader.
15103 (create_debug_type_hash_table): Update.
15104 (read_cutu_die_from_dwo): Update comment.
15105 (lookup_dwo_unit): Add dwo_name parameter.
15106 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15107 die_reader_func_ftype and data parameters.
15108 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15109 Remove die_reader_func_ftype and data parameters.
15110 (~cutu_reader): New; from init_cutu_and_read_dies.
15111 (cutu_reader::cutu_reader): Rename from
15112 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15113 and data parameters.
15114 (init_cutu_and_read_dies_simple): Remove.
15115 (struct process_psymtab_comp_unit_data): Remove.
15116 (process_psymtab_comp_unit_reader): Remove data parameter; add
15117 want_partial_unit and pretend_language parameters.
15118 (process_psymtab_comp_unit): Use cutu_reader.
15119 (build_type_psymtabs_reader): Remove data parameter.
15120 (build_type_psymtabs_1): Use cutu_reader.
15121 (process_skeletonless_type_unit): Likewise.
15122 (load_partial_comp_unit_reader): Remove.
15123 (load_partial_comp_unit): Use cutu_reader.
15124 (load_full_comp_unit_reader): Remove.
15125 (load_full_comp_unit): Use cutu_reader.
15126 (struct create_dwo_cu_data): Remove.
15127 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15128 dwo_unit parameters.
15129 (create_cus_hash_table): Use cutu_reader.
15130 (struct dwarf2_read_addr_index_data): Remove.
15131 (dwarf2_read_addr_index_reader): Remove.
15132 (dwarf2_read_addr_index): Use cutu_reader.
15133 (read_signatured_type_reader): Remove.
15134 (read_signatured_type): Use cutu_reader.
15135
45bbae5c
TT
151362020-01-19 Tom Tromey <tom@tromey.com>
15137
15138 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15139 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15140 (tui_wrefresh): Declare.
15141 * tui/tui-wingeneral.c (suppress_output): New global.
15142 (tui_suppress_output, ~tui_suppress_output): New constructor and
15143 destructor.
15144 (tui_wrefresh): New function.
15145 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15146 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15147 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15148 method.
15149 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15150 tui_wrefresh.
15151 (tui_data_window::no_refresh): New method.
15152 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15153 (tui_reg_command): Use tui_suppress_output
15154 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15155 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15156 method.
15157 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15158
4f13c1c0
TT
151592020-01-19 Tom Tromey <tom@tromey.com>
15160
15161 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15162 Handle case where symtab is null.
15163
fa47e446
SM
151642020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15165
15166 * linux-fork.c (one_fork_p): Simplify.
15167
26f42329
SM
151682020-01-17 Simon Marchi <simon.marchi@efficios.com>
15169
15170 * top.c (struct qt_args): Remove.
15171 (kill_or_detach): Change return type to void, replace `void *`
15172 parameter with a proper one.
15173 (print_inferior_quit_action): Likewise.
15174 (quit_confirm): Use range-based for loop to iterate over inferiors.
15175 (quit_force): Likewise.
15176
a9ac81b1
SM
151772020-01-17 Simon Marchi <simon.marchi@efficios.com>
15178
15179 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15180 `void *` parameter with proper parameters.
15181 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15182 (print_one_inferior): Change return type to void, replace `void *`
15183 parameter with proper parameters.
15184 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15185 inferiors.
15186 (get_other_inferior): Remove.
15187 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15188 inferiors.
15189
788eca49
SM
151902020-01-17 Simon Marchi <simon.marchi@efficios.com>
15191
15192 * mi/mi-interp.c (report_initial_inferior): Remove.
15193 (mi_interp::init): Use range-based for to iterate over inferiors.
15194
d9bc85b6
SM
151952020-01-17 Simon Marchi <simon.marchi@efficios.com>
15196
15197 * python/py-inferior.c (build_inferior_list): Remove.
15198 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15199
40c94099
CB
152002020-01-16 Christian Biesinger <cbiesinger@google.com>
15201
15202 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15203 (btrace_stitch_trace): Likewise.
15204 * charset.c (intermediate_encoding): Likewise (vaild).
15205 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15206 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15207 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15208
e0cdfe3c
HD
152092020-01-16 Hannes Domani <ssbssa@yahoo.de>
15210
15211 * windows-tdep.c (windows_get_tlb_type):
15212 Add rtl_user_process_parameters type.
15213
790f1718 152142020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15215 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15216
15217 PR build/24805
15218 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15219 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15220 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15221 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15222 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15223 (ps_plog): Redeclare exported functions with default visibility.
15224
3112ed97
NA
152252020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15226
15227 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15228 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15229
8dc3273e
SM
152302020-01-15 Simon Marchi <simon.marchi@efficios.com>
15231
15232 * infcmd.c (post_create_inferior): Use get_thread_regcache
15233 instead of get_current_regcache.
15234
ff47f4f0
TT
152352020-01-14 Tom Tromey <tom@tromey.com>
15236
15237 PR symtab/12535:
15238 * python/python.c (gdbpy_decode_line): Treat empty string the same
15239 as no argument.
15240
975f45b7
TT
152412020-01-14 Tom Tromey <tom@tromey.com>
15242
15243 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15244
25e57356
TT
152452020-01-14 Tom Tromey <tom@tromey.com>
15246
15247 * nat/linux-btrace.c: Don't include <config.h>.
15248 * nat/linux-ptrace.c: Don't include <config.h>.
15249 * nat/x86-linux-dregs.c: Don't include <config.h>.
15250
05ea2a05
TT
152512020-01-14 Tom Tromey <tom@tromey.com>
15252
15253 * configure: Rebuild.
15254 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15255
01027315
TT
152562020-01-14 Tom Tromey <tom@tromey.com>
15257
15258 * nat/x86-linux-dregs.c: Include configh.h.
15259 * nat/linux-ptrace.c: Include configh.h.
15260 * nat/linux-btrace.c: Include configh.h.
15261 * defs.h: Include config.h, bfd.h.
15262 * configure.ac: Don't source common.host.
15263 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15264 * configure: Rebuild.
15265 * acinclude.m4: Update path.
15266 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15267 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15268 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15269 (CLIBS): Add LIBSUPPORT.
15270 (CDEPS): Likewise.
15271 (COMMON_SFILES): Remove gdbsupport files.
15272 (HFILES_NO_SRCDIR): Likewise.
15273 (stamp-version): Update path to create-version.sh.
15274 (ALLDEPFILES): Remove gdbsupport files.
15275
b2ceabe8
TT
152762020-01-14 Tom Tromey <tom@tromey.com>
15277
15278 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15279 USE_WIN32API when needed.
15280 * configure.ac (USE_WIN32API): Don't define.
15281 (WIN32LIBS): Use WIN32APILIBS.
15282 * configure: Rebuild.
15283
25c51f71
TT
152842020-01-14 Tom Tromey <tom@tromey.com>
15285
15286 * configure: Rebuild.
15287 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15288
717c684d
BE
152892020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15290
15291 * skip.c (skip_function_command): Make skip w/o arguments use the
15292 name of the inlined function if pc is inside any inlined function.
15293
7da6a5b9
LM
152942020-01-14 Luis Machado <luis.machado@linaro.org>
15295
15296 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15297 * infrun.c (resume_1): Likewise.
15298 (handle_inferior_event): Remove stale comment.
15299 * linux-nat.c (linux_nat_target::resume): Update comments.
15300 (save_stop_reason): Likewise.
15301 (linux_nat_filter_event): Likewise.
15302 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15303
44e4c775
AB
153042020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15305
15306 * elfread.c (record_minimal_symbol): Set section index to 0 for
15307 non-allocatable sections.
15308
18a8505e
AT
15309
153102020-01-13 Ali Tamur <tamur@google.com>
15311
15312 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15313 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15314 to gdb::optional. Update comments.
15315 (dwo_file): Update comments.
15316 (read_attribute): Update API to take an additional out parameter,
15317 need_reprocess. This is used to mark attributes that need other
15318 attributes (e.g. str_offsets_base) for correct computation which may not
15319 have been read yet.
15320 (read_attribute_reprocess): New function declaration.
15321 (read_addr_index): Likewise.
15322 (read_dwo_str_index): Likewise.
15323 (read_stub_str_index): Likewise.
15324 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15325 (lookup_addr_base): New function definition.
15326 (lookup_ranges_base): Likewise.
15327 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15328 lookup_ranges_base.
15329 (init_cutu_and_read_dies): Update comments.
15330 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15331 unit. This is used to inherit parent's str_offsets_base and addr_base.
15332 Update comments.
15333 (init_cutu_and_read_dies_simple): Reflect API changes.
15334 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15335 (create_cus_hash_table): Change API to take parent compile unit.
15336 Reflect API changes.
15337 (open_and_init_dwo_file): Reflect API changes.
15338 (dwarf2_get_pc_bounds): Update comments.
15339 (dwarf2_record_block_ranges): Likewise.
15340 (read_full_die_1): Change implementation to reprocess attributes that
15341 need str_offsets_base and addr_base.
15342 (partial_die_info::read): Likewise.
15343 (read_attribute_reprocess): New function definition.
15344 (read_attribute_value): Change API to take an additional out parameter,
15345 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15346 when a non-dwo compile unit has index based attributes.
15347 (read_attribute): Reflect API changes.
15348 (read_addr_index_1): Reflect API changes. Update comments.
15349 (dwarf2_read_addr_index_data): Reflect API changes.
15350 (dwarf2_read_addr_index): Likewise.
15351 (read_str_index): Change API and implementation. This becomes a helper
15352 to be used by the new string index related methods. Update error
15353 message and comments.
15354 (read_dwo_str_index): New function definition.
15355 (read_stub_str_index): Likewise.
15356 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15357 * symfile.h (dwarf2_debug_sections): Likewise.
15358 * xcoffread.c (dwarf2_debug_sections): Likewise.
15359
0cac9354
SM
153602020-01-13 Simon Marchi <simon.marchi@efficios.com>
15361
15362 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15363 core_reg_sect type to gdb_byte *.
15364 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15365 * cris-tdep.c (fetch_core_registers): Likewise.
15366 * corelow.c (core_target::get_core_register_section): Change
15367 type of `contents` to gdb::byte_vector.
15368
9a6d629c
AB
153692020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15370
15371 * tui/tui-wingeneral.c (box_win): Position the title in the center
15372 of the border.
15373
d8b2f9e3
SM
153742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15375
15376 * corelow.c (core_target::get_core_register_section): Use
15377 std::vector instead of alloca.
15378
bb564c58
SM
153792020-01-13 Simon Marchi <simon.marchi@efficios.com>
15380
15381 * warning.m4: Add -Wmissing-declarations to build_warnings.
15382 * configure: Re-generate.
15383
6b366111
SM
153842020-01-13 Simon Marchi <simon.marchi@efficios.com>
15385
15386 * python/python.c (init__gdb_module): Add declaration.
15387
6c265988
SM
153882020-01-13 Simon Marchi <simon.marchi@efficios.com>
15389
15390 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15391 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15392 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15393 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15394 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15395 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15396 * ada-exp.y (_initialize_ada_exp): Add declaration.
15397 * ada-lang.c (_initialize_ada_language): Add declaration.
15398 * ada-tasks.c (_initialize_tasks): Add declaration.
15399 * agent.c (_initialize_agent): Add declaration.
15400 * aix-thread.c (_initialize_aix_thread): Add declaration.
15401 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15402 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15403 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15404 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15405 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15406 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15407 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15408 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15409 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15410 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15411 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15412 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15413 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15414 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15415 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15416 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15417 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15418 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15419 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15420 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15421 * annotate.c (_initialize_annotate): Add declaration.
15422 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15423 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15424 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15425 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15426 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15427 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15428 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15429 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15430 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15431 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15432 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15433 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15434 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15435 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15436 * auto-load.c (_initialize_auto_load): Add declaration.
15437 * auxv.c (_initialize_auxv): Add declaration.
15438 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15439 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15440 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15441 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15442 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15443 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15444 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15445 * breakpoint.c (_initialize_breakpoint): Add declaration.
15446 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15447 * btrace.c (_initialize_btrace): Add declaration.
15448 * charset.c (_initialize_charset): Add declaration.
15449 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15450 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15451 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15452 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15453 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15454 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15455 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15456 * coffread.c (_initialize_coffread): Add declaration.
15457 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15458 * compile/compile.c (_initialize_compile): Add declaration.
15459 * complaints.c (_initialize_complaints): Add declaration.
15460 * completer.c (_initialize_completer): Add declaration.
15461 * copying.c (_initialize_copying): Add declaration.
15462 * corefile.c (_initialize_core): Add declaration.
15463 * corelow.c (_initialize_corelow): Add declaration.
15464 * cp-abi.c (_initialize_cp_abi): Add declaration.
15465 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15466 * cp-support.c (_initialize_cp_support): Add declaration.
15467 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15468 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15469 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15470 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15471 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15472 * ctfread.c (_initialize_ctfread): Add declaration.
15473 * d-lang.c (_initialize_d_language): Add declaration.
15474 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15475 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15476 * dbxread.c (_initialize_dbxread): Add declaration.
15477 * dcache.c (_initialize_dcache): Add declaration.
15478 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15479 * disasm.c (_initialize_disasm): Add declaration.
15480 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15481 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15482 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15483 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15484 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15485 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15486 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15487 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15488 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15489 * elfread.c (_initialize_elfread): Add declaration.
15490 * exec.c (_initialize_exec): Add declaration.
15491 * extension.c (_initialize_extension): Add declaration.
15492 * f-lang.c (_initialize_f_language): Add declaration.
15493 * f-valprint.c (_initialize_f_valprint): Add declaration.
15494 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15495 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15496 * filesystem.c (_initialize_filesystem): Add declaration.
15497 * findcmd.c (_initialize_mem_search): Add declaration.
15498 * findvar.c (_initialize_findvar): Add declaration.
15499 * fork-child.c (_initialize_fork_child): Add declaration.
15500 * frame-base.c (_initialize_frame_base): Add declaration.
15501 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15502 * frame.c (_initialize_frame): Add declaration.
15503 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15504 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15505 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15506 * gcore.c (_initialize_gcore): Add declaration.
15507 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15508 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15509 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15510 * gdbarch.c (_initialize_gdbarch): Add declaration.
15511 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15512 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15513 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15514 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15515 * go-lang.c (_initialize_go_language): Add declaration.
15516 * go32-nat.c (_initialize_go32_nat): Add declaration.
15517 * guile/guile.c (_initialize_guile): Add declaration.
15518 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15519 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15520 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15521 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15522 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15523 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15524 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15525 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15526 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15527 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15528 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15529 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15530 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15531 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15532 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15533 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15534 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15535 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15536 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15537 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15538 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15539 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15540 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15541 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15542 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15543 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15544 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15545 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15546 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15547 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15548 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15549 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15550 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15551 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15552 * infcall.c (_initialize_infcall): Add declaration.
15553 * infcmd.c (_initialize_infcmd): Add declaration.
15554 * inflow.c (_initialize_inflow): Add declaration.
15555 * infrun.c (_initialize_infrun): Add declaration.
15556 * interps.c (_initialize_interpreter): Add declaration.
15557 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15558 * jit.c (_initialize_jit): Add declaration.
15559 * language.c (_initialize_language): Add declaration.
15560 * linux-fork.c (_initialize_linux_fork): Add declaration.
15561 * linux-nat.c (_initialize_linux_nat): Add declaration.
15562 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15563 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15564 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15565 * m2-lang.c (_initialize_m2_language): Add declaration.
15566 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15567 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15568 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15569 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15570 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15571 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15572 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15573 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15574 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15575 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15576 * machoread.c (_initialize_machoread): Add declaration.
15577 * macrocmd.c (_initialize_macrocmd): Add declaration.
15578 * macroscope.c (_initialize_macroscope): Add declaration.
15579 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15580 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15581 * maint.c (_initialize_maint_cmds): Add declaration.
15582 * mdebugread.c (_initialize_mdebugread): Add declaration.
15583 * memattr.c (_initialize_mem): Add declaration.
15584 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15585 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15586 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15587 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15588 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15589 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15590 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15591 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15592 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15593 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15594 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15595 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15596 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15597 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15598 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15599 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15600 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15601 * mipsread.c (_initialize_mipsread): Add declaration.
15602 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15603 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15604 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15605 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15606 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15607 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15608 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15609 * nto-procfs.c (_initialize_procfs): Add declaration.
15610 * objc-lang.c (_initialize_objc_language): Add declaration.
15611 * observable.c (_initialize_observer): Add declaration.
15612 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15613 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15614 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15615 * osabi.c (_initialize_gdb_osabi): Add declaration.
15616 * osdata.c (_initialize_osdata): Add declaration.
15617 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15618 * parse.c (_initialize_parse): Add declaration.
15619 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15620 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15621 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15622 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15623 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15624 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15625 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15626 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15627 * printcmd.c (_initialize_printcmd): Add declaration.
15628 * probe.c (_initialize_probe): Add declaration.
15629 * proc-api.c (_initialize_proc_api): Add declaration.
15630 * proc-events.c (_initialize_proc_events): Add declaration.
15631 * proc-service.c (_initialize_proc_service): Add declaration.
15632 * procfs.c (_initialize_procfs): Add declaration.
15633 * producer.c (_initialize_producer): Add declaration.
15634 * psymtab.c (_initialize_psymtab): Add declaration.
15635 * python/python.c (_initialize_python): Add declaration.
15636 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15637 * record-btrace.c (_initialize_record_btrace): Add declaration.
15638 * record-full.c (_initialize_record_full): Add declaration.
15639 * record.c (_initialize_record): Add declaration.
15640 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15641 * regcache.c (_initialize_regcache): Add declaration.
15642 * reggroups.c (_initialize_reggroup): Add declaration.
15643 * remote-notif.c (_initialize_notif): Add declaration.
15644 * remote-sim.c (_initialize_remote_sim): Add declaration.
15645 * remote.c (_initialize_remote): Add declaration.
15646 * reverse.c (_initialize_reverse): Add declaration.
15647 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15648 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15649 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15650 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15651 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15652 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15653 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15654 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15655 Add declaration.
15656 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15657 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15658 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15659 * rust-exp.y (_initialize_rust_exp): Add declaration.
15660 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15661 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15662 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15663 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15664 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15665 * score-tdep.c (_initialize_score_tdep): Add declaration.
15666 * ser-go32.c (_initialize_ser_dos): Add declaration.
15667 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15668 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15669 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15670 * ser-uds.c (_initialize_ser_socket): Add declaration.
15671 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15672 * serial.c (_initialize_serial): Add declaration.
15673 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15674 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15675 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15676 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15677 * skip.c (_initialize_step_skip): Add declaration.
15678 * sol-thread.c (_initialize_sol_thread): Add declaration.
15679 * solib-aix.c (_initialize_solib_aix): Add declaration.
15680 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15681 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15682 * solib-frv.c (_initialize_frv_solib): Add declaration.
15683 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15684 * solib-target.c (_initialize_solib_target): Add declaration.
15685 * solib.c (_initialize_solib): Add declaration.
15686 * source-cache.c (_initialize_source_cache): Add declaration.
15687 * source.c (_initialize_source): Add declaration.
15688 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15689 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15690 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15691 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15692 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15693 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15694 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15695 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15696 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15697 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15698 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15699 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15700 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15701 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15702 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15703 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15704 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15705 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15706 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15707 * stabsread.c (_initialize_stabsread): Add declaration.
15708 * stack.c (_initialize_stack): Add declaration.
15709 * stap-probe.c (_initialize_stap_probe): Add declaration.
15710 * std-regs.c (_initialize_frame_reg): Add declaration.
15711 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15712 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15713 * symfile.c (_initialize_symfile): Add declaration.
15714 * symmisc.c (_initialize_symmisc): Add declaration.
15715 * symtab.c (_initialize_symtab): Add declaration.
15716 * target.c (_initialize_target): Add declaration.
15717 * target-connection.c (_initialize_target_connection): Add
15718 declaration.
15719 * target-dcache.c (_initialize_target_dcache): Add declaration.
15720 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15721 * thread.c (_initialize_thread): Add declaration.
15722 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15723 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15724 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15725 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15726 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15727 * tracectf.c (_initialize_ctf): Add declaration.
15728 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15729 * tracefile.c (_initialize_tracefile): Add declaration.
15730 * tracepoint.c (_initialize_tracepoint): Add declaration.
15731 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15732 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15733 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15734 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15735 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15736 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15737 * tui/tui.c (_initialize_tui): Add declaration.
15738 * typeprint.c (_initialize_typeprint): Add declaration.
15739 * ui-style.c (_initialize_ui_style): Add declaration.
15740 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15741 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15742 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15743 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15744 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15745 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15746 * unittests/filtered_iterator-selftests.c
15747 (_initialize_filtered_iterator_selftests): Add declaration.
15748 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15749 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15750 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15751 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15752 * unittests/main-thread-selftests.c
15753 (_initialize_main_thread_selftests): Add declaration.
15754 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15755 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15756 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15757 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15758 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15759 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15760 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15761 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15762 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15763 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15764 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15765 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15766 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15767 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15768 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15769 declaration.
15770 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15771 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15772 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15773 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15774 * user-regs.c (_initialize_user_regs): Add declaration.
15775 * utils.c (_initialize_utils): Add declaration.
15776 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15777 * valops.c (_initialize_valops): Add declaration.
15778 * valprint.c (_initialize_valprint): Add declaration.
15779 * value.c (_initialize_values): Add declaration.
15780 * varobj.c (_initialize_varobj): Add declaration.
15781 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15782 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15783 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15784 * windows-nat.c (_initialize_windows_nat): Add declaration.
15785 (_initialize_check_for_gdb_ini): Add declaration.
15786 (_initialize_loadable): Add declaration.
15787 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15788 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15789 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15790 * xcoffread.c (_initialize_xcoffread): Add declaration.
15791 * xml-support.c (_initialize_xml_support): Add declaration.
15792 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15793 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15794 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15795 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15796
e2de1eec
SM
157972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15798
15799 * regformats/regdat.sh: Generate declaration for init function.
15800
e0037b4c
SM
158012020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15802
15803 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15804 up.
15805 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15806 close_one_inferior>: New methods.
15807 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15808 pass down target to find_inferior_pid.
15809 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15810 Pass down target to find_inferior_ptid.
15811 (gdbsim_target::create_inferior): Pass down target to
15812 add_thread_silent.
15813 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15814 target down to find_inferior_ptid and switch_to_thread.
15815 (gdbsim_target::close): Update to call close_one_inferior.
15816 (struct resume_data): Remove.
15817 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15818 directly, rather than through a void pointer.
15819 (gdbsim_target::resume): Update to call resume_one_inferior.
15820
58920b5b
SM
158212020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15822
15823 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15824
4ec89149
PA
158252020-01-12 Pedro Alves <palves@redhat.com>
15826
15827 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15828 directly for the current inferior instead of
15829 discard_all_inferiors.
15830 (discard_all_inferiors): Delete.
15831
7c392d1d
TT
158322020-01-11 Tom Tromey <tom@tromey.com>
15833
15834 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15835 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15836 deprecated_safe_get_selected_frame.
15837
d9ebdab7
TBA
158382020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15839
15840 * inferior.c (print_inferior): Switch inferior before printing it.
15841
f3c469b9
PA
158422020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15843 Pedro Alves <palves@redhat.com>
15844
15845 * progspace-and-thread.c (switch_to_program_space_and_thread):
15846 Assert there's an inferior for PSPACE. Use
15847 switch_to_inferior_no_thread to switch the inferior too.
15848 * progspace.c (program_space::~program_space): Call
15849 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15850 (program_space::free_all_objfiles): Don't call clear_symtab_users
15851 here.
15852 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15853
65c574f6
PA
158542020-01-10 Pedro Alves <palves@redhat.com>
15855
15856 * NEWS: Mention multi-target debugging, "info connections", and
15857 "add-inferior -no-connection".
15858
2f4fcf00
PA
158592020-01-10 Pedro Alves <palves@redhat.com>
15860
15861 * infrun.c: Include "target-connection.h".
15862 (check_multi_target_resumption): New.
15863 (proceed): Call it.
15864 * target-connection.c (make_target_connection_string): Make
15865 extern.
15866 * target-connection.h (make_target_connection_string): Declare.
15867
121b3efd
PA
158682020-01-10 Pedro Alves <palves@redhat.com>
15869
15870 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15871 * inferior.c (uiout_field_connection): New function.
15872 (print_inferior): Add new "connection-id" column.
15873 (add_inferior_command): Show connection number/string of added
15874 inferior.
15875 * process-stratum-target.h
15876 (process_stratum_target::connection_string): New virtual method.
15877 (process_stratum_target::connection_number): New field.
15878 * remote.c (remote_target::connection_string): New override.
15879 * target-connection.c: New file.
15880 * target-connection.h: New file.
15881 * target.c (decref_target): Remove process_stratum targets from
15882 the connection list.
15883 (target_stack::push): Add process_stratum targets to the
15884 connection list.
15885
4f837581
PA
158862020-01-10 Pedro Alves <palves@redhat.com>
15887
15888 Revert:
15889 2016-04-12 Pedro Alves <palves@redhat.com>
15890 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15891 Remove references to name.
15892 * serial.h (struct serial) <name>: Delete.
15893
f4ec508e
PA
158942020-01-10 Pedro Alves <palves@redhat.com>
15895
15896 * gdbarch-selftests.c (register_to_value_test): Remove "target
15897 already pushed" check.
15898
5b6d1e4f
PA
158992020-01-10 Pedro Alves <palves@redhat.com>
15900 John Baldwin <jhb@FreeBSD.org>
15901
15902 * aarch64-linux-nat.c
15903 (aarch64_linux_nat_target::thread_architecture): Adjust.
15904 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15905 (task_command_1): Likewise.
15906 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15907 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15908 (aix_thread_target::store_registers)
15909 (aix_thread_target::thread_alive): Adjust.
15910 * amd64-fbsd-tdep.c: Include "inferior.h".
15911 (amd64fbsd_get_thread_local_address): Pass down target.
15912 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15913 thread's gdbarch instead of target_gdbarch.
15914 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15915 get_last_target_status.
15916 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15917 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15918 inferiors.
15919 (update_inserted_breakpoint_locations): Skip if inferiors with no
15920 execution.
15921 (update_global_location_list): When handling moribund locations,
15922 find representative inferior for location's pspace, and use thread
15923 count of its process_stratum target.
15924 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15925 * bsd-uthread.c (bsd_uthread_target::wait): Use
15926 as_process_stratum_target and adjust thread_change_ptid and
15927 add_thread calls.
15928 (bsd_uthread_target::update_thread_list): Use
15929 as_process_stratum_target and adjust find_thread_ptid,
15930 thread_change_ptid and add_thread calls.
15931 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15932 find_thread_ptid call.
15933 * corelow.c (add_to_thread_list): Adjust add_thread call.
15934 (core_target_open): Adjust add_thread_silent and thread_count
15935 calls.
15936 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15937 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15938 * event-top.c (async_disconnect): Pop targets from all inferiors.
15939 * exec.c (add_target_sections): Push exec target on all inferiors
15940 sharing the program space.
15941 (remove_target_sections): Remove the exec target from all
15942 inferiors sharing the program space.
15943 (exec_on_vfork): New.
15944 * exec.h (exec_on_vfork): Declare.
15945 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15946 Pass it down.
15947 (fbsd_nat_target::update_thread_list): Adjust.
15948 (fbsd_nat_target::resume): Adjust.
15949 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15950 down.
15951 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15952 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15953 get_thread_arch_regcache call.
15954 * fork-child.c (gdb_startup_inferior): Pass target down to
15955 startup_inferior and set_executing.
15956 * gdbthread.h (struct process_stratum_target): Forward declare.
15957 (add_thread, add_thread_silent, add_thread_with_info)
15958 (in_thread_list): Add process_stratum_target parameter.
15959 (find_thread_ptid(inferior*, ptid_t)): New overload.
15960 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15961 parameter.
15962 (all_threads()): Delete overload.
15963 (all_threads, all_non_exited_threads): Add process_stratum_target
15964 parameter.
15965 (all_threads_safe): Use brace initialization.
15966 (thread_count): Add process_stratum_target parameter.
15967 (set_resumed, set_running, set_stop_requested, set_executing)
15968 (threads_are_executing, finish_thread_state): Add
15969 process_stratum_target parameter.
15970 (switch_to_thread): Use is_current_thread.
15971 * i386-fbsd-tdep.c: Include "inferior.h".
15972 (i386fbsd_get_thread_local_address): Pass down target.
15973 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15974 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15975 have_inferiors check.
15976 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15977 (inf_ptrace_target::attach): Adjust.
15978 * infcall.c (run_inferior_call): Adjust.
15979 * infcmd.c (run_command_1): Pass target to
15980 scoped_finish_thread_state.
15981 (proceed_thread_callback): Skip inferiors with no execution.
15982 (continue_command): Rename 'all_threads' local to avoid hiding
15983 'all_threads' function. Adjust get_last_target_status call.
15984 (prepare_one_step): Adjust set_running call.
15985 (signal_command): Use user_visible_resume_target. Compare thread
15986 pointers instead of inferior_ptid.
15987 (info_program_command): Adjust to pass down target.
15988 (attach_command): Mark target's 'thread_executing' flag.
15989 (stop_current_target_threads_ns): New, factored out from ...
15990 (interrupt_target_1): ... this. Switch inferior before making
15991 target calls.
15992 * inferior-iter.h
15993 (struct all_inferiors_iterator, struct all_inferiors_range)
15994 (struct all_inferiors_safe_range)
15995 (struct all_non_exited_inferiors_range): Filter on
15996 process_stratum_target too. Remove explicit.
15997 * inferior.c (inferior::inferior): Push dummy target on target
15998 stack.
15999 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16000 Add process_stratum_target parameter, and pass it down.
16001 (have_live_inferiors): Adjust.
16002 (switch_to_inferior_and_push_target): New.
16003 (add_inferior_command, clone_inferior_command): Handle
16004 "-no-connection" parameter. Use
16005 switch_to_inferior_and_push_target.
16006 (_initialize_inferior): Mention "-no-connection" option in
16007 the help of "add-inferior" and "clone-inferior" commands.
16008 * inferior.h: Include "process-stratum-target.h".
16009 (interrupt_target_1): Use bool.
16010 (struct inferior) <push_target, unpush_target, target_is_pushed,
16011 find_target_beneath, top_target, process_target, target_at,
16012 m_stack>: New.
16013 (discard_all_inferiors): Delete.
16014 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16015 (all_inferiors, all_non_exited_inferiors): Add
16016 process_stratum_target parameter.
16017 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16018 (target_last_proc_target): New global.
16019 (follow_fork_inferior): Push target on new inferior. Pass target
16020 to add_thread_silent. Call exec_on_vfork. Handle target's
16021 reference count.
16022 (follow_fork): Adjust get_last_target_status call. Also consider
16023 target.
16024 (follow_exec): Push target on new inferior.
16025 (struct execution_control_state) <target>: New field.
16026 (user_visible_resume_target): New.
16027 (do_target_resume): Call target_async.
16028 (resume_1): Set target's threads_executing flag. Consider resume
16029 target.
16030 (commit_resume_all_targets): New.
16031 (proceed): Also consider resume target. Skip threads of inferiors
16032 with no execution. Commit resumtion in all targets.
16033 (start_remote): Pass current inferior to wait_for_inferior.
16034 (infrun_thread_stop_requested): Consider target as well. Pass
16035 thread_info pointer to clear_inline_frame_state instead of ptid.
16036 (infrun_thread_thread_exit): Consider target as well.
16037 (random_pending_event_thread): New inferior parameter. Use it.
16038 (do_target_wait): Rename to ...
16039 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16040 down.
16041 (threads_are_resumed_pending_p, do_target_wait): New.
16042 (prepare_for_detach): Adjust calls.
16043 (wait_for_inferior): New inferior parameter. Handle it. Use
16044 do_target_wait_1 instead of do_target_wait.
16045 (fetch_inferior_event): Adjust. Switch to representative
16046 inferior. Pass target down.
16047 (set_last_target_status): Add process_stratum_target parameter.
16048 Save target in global.
16049 (get_last_target_status): Add process_stratum_target parameter and
16050 handle it.
16051 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16052 (context_switch): Check inferior_ptid == null_ptid before calling
16053 inferior_thread().
16054 (get_inferior_stop_soon): Pass down target.
16055 (wait_one): Rename to ...
16056 (poll_one_curr_target): ... this.
16057 (struct wait_one_event): New.
16058 (wait_one): New.
16059 (stop_all_threads): Adjust.
16060 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16061 event's target.
16062 (switch_back_to_stepped_thread): Also consider target.
16063 (print_stop_event): Update.
16064 (normal_stop): Update. Also consider the resume target.
16065 * infrun.h (wait_for_inferior): Remove declaration.
16066 (user_visible_resume_target): New declaration.
16067 (get_last_target_status, set_last_target_status): New
16068 process_stratum_target parameter.
16069 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16070 process_stratum_target parameter, and use it.
16071 (clear_inline_frame_state (thread_info*)): New.
16072 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16073 process_stratum_target parameter.
16074 (clear_inline_frame_state (thread_info*)): Declare.
16075 * linux-fork.c (delete_checkpoint_command): Pass target down to
16076 find_thread_ptid.
16077 (checkpoint_command): Adjust.
16078 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16079 instead of just tweaking inferior_ptid.
16080 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16081 (exit_lwp): Pass target down to find_thread_ptid.
16082 (attach_proc_task_lwp_callback): Pass target down to
16083 add_thread/set_running/set_executing.
16084 (linux_nat_target::attach): Pass target down to
16085 thread_change_ptid.
16086 (get_detach_signal): Pass target down to find_thread_ptid.
16087 Consider last target status's target.
16088 (linux_resume_one_lwp_throw, resume_lwp)
16089 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16090 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16091 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16092 (linux_nat_target::async_wait_fd): New.
16093 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16094 target down.
16095 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16096 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16097 * linux-thread-db.c (struct thread_db_info::process_target): New
16098 field.
16099 (add_thread_db_info): Save target.
16100 (get_thread_db_info): New process_stratum_target parameter. Also
16101 match target.
16102 (delete_thread_db_info): New process_stratum_target parameter.
16103 Also match target.
16104 (thread_from_lwp): Adjust to pass down target.
16105 (thread_db_notice_clone): Pass down target.
16106 (check_thread_db_callback): Pass down target.
16107 (try_thread_db_load_1): Always push the thread_db target.
16108 (try_thread_db_load, record_thread): Pass target down.
16109 (thread_db_target::detach): Pass target down. Always unpush the
16110 thread_db target.
16111 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16112 target down. Always unpush the thread_db target.
16113 (find_new_threads_callback, thread_db_find_new_threads_2)
16114 (thread_db_target::update_thread_list): Pass target down.
16115 (thread_db_target::pid_to_str): Pass current inferior down.
16116 (thread_db_target::get_thread_local_address): Pass target down.
16117 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16118 target down.
16119 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16120 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16121 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16122 (procfs_init_inferior): Rename to ...
16123 (procfs_target::procfs_init_inferior): ... this and adjust.
16124 (procfs_target::create_inferior, procfs_notice_thread)
16125 (procfs_do_thread_registers): Adjust.
16126 * ppc-fbsd-tdep.c: Include "inferior.h".
16127 (ppcfbsd_get_thread_local_address): Pass down target.
16128 * proc-service.c (ps_xfer_memory): Switch current inferior and
16129 program space as well.
16130 (get_ps_regcache): Pass target down.
16131 * process-stratum-target.c
16132 (process_stratum_target::thread_address_space)
16133 (process_stratum_target::thread_architecture): Pass target down.
16134 * process-stratum-target.h
16135 (process_stratum_target::threads_executing): New field.
16136 (as_process_stratum_target): New.
16137 * ravenscar-thread.c
16138 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16139 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16140 down.
16141 * record-btrace.c (record_btrace_target::info_record): Adjust.
16142 (record_btrace_target::record_method)
16143 (record_btrace_target::record_is_replaying)
16144 (record_btrace_target::fetch_registers)
16145 (get_thread_current_frame_id, record_btrace_target::resume)
16146 (record_btrace_target::wait, record_btrace_target::stop): Pass
16147 target down.
16148 * record-full.c (record_full_wait_1): Switch to event thread.
16149 Pass target down.
16150 * regcache.c (regcache::regcache)
16151 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16152 process_stratum_target parameter and handle it.
16153 (current_thread_target): New global.
16154 (get_thread_regcache): Add process_stratum_target parameter and
16155 handle it. Switch inferior before calling target method.
16156 (get_thread_regcache): Pass target down.
16157 (get_thread_regcache_for_ptid): Pass target down.
16158 (registers_changed_ptid): Add process_stratum_target parameter and
16159 handle it.
16160 (registers_changed_thread, registers_changed): Pass target down.
16161 (test_get_thread_arch_aspace_regcache): New.
16162 (current_regcache_test): Define a couple local test_target_ops
16163 instances and use them for testing.
16164 (readwrite_regcache): Pass process_stratum_target parameter.
16165 (cooked_read_test, cooked_write_test): Pass mock_target down.
16166 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16167 (get_thread_arch_aspace_regcache): Add process_stratum_target
16168 parameter.
16169 (regcache::target): New method.
16170 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16171 (regcache::registers_changed_ptid): Add process_stratum_target
16172 parameter.
16173 (regcache::m_target): New field.
16174 (registers_changed_ptid): Add process_stratum_target parameter.
16175 * remote.c (remote_state::supports_vCont_probed): New field.
16176 (remote_target::async_wait_fd): New method.
16177 (remote_unpush_and_throw): Add remote_target parameter.
16178 (get_current_remote_target): Adjust.
16179 (remote_target::remote_add_inferior): Push target.
16180 (remote_target::remote_add_thread)
16181 (remote_target::remote_notice_new_inferior)
16182 (get_remote_thread_info): Pass target down.
16183 (remote_target::update_thread_list): Skip threads of inferiors
16184 bound to other targets. (remote_target::close): Don't discard
16185 inferiors. (remote_target::add_current_inferior_and_thread)
16186 (remote_target::process_initial_stop_replies)
16187 (remote_target::start_remote)
16188 (remote_target::remote_serial_quit_handler): Pass down target.
16189 (remote_target::remote_unpush_target): New remote_target
16190 parameter. Unpush the target from all inferiors.
16191 (remote_target::remote_unpush_and_throw): New remote_target
16192 parameter. Pass it down.
16193 (remote_target::open_1): Check whether the current inferior has
16194 execution instead of checking whether any inferior is live. Pass
16195 target down.
16196 (remote_target::remote_detach_1): Pass down target. Use
16197 remote_unpush_target.
16198 (extended_remote_target::attach): Pass down target.
16199 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16200 (remote_target::append_resumption): Pass down target.
16201 (remote_target::append_pending_thread_resumptions)
16202 (remote_target::remote_resume_with_hc, remote_target::resume)
16203 (remote_target::commit_resume): Pass down target.
16204 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16205 (remote_target::interrupt_query)
16206 (remote_target::remove_new_fork_children)
16207 (remote_target::check_pending_events_prevent_wildcard_vcont)
16208 (remote_target::remote_parse_stop_reply)
16209 (remote_target::process_stop_reply): Pass down target.
16210 (first_remote_resumed_thread): New remote_target parameter. Pass
16211 it down.
16212 (remote_target::wait_as): Pass down target.
16213 (unpush_and_perror): New remote_target parameter. Pass it down.
16214 (remote_target::readchar, remote_target::remote_serial_write)
16215 (remote_target::getpkt_or_notif_sane_1)
16216 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16217 down target.
16218 (remote_target::mourn_inferior): Pass down target. Use
16219 remote_unpush_target.
16220 (remote_target::core_of_thread)
16221 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16222 (remote_target::pid_to_exec_file)
16223 (remote_target::thread_handle_to_thread_info): Pass down target.
16224 (remote_target::async_wait_fd): New.
16225 * riscv-fbsd-tdep.c: Include "inferior.h".
16226 (riscv_fbsd_get_thread_local_address): Pass down target.
16227 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16228 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16229 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16230 Adjust.
16231 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16232 * solib-svr4.c (enable_break): Pass down target.
16233 * spu-multiarch.c (parse_spufs_run): Pass down target.
16234 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16235 * target-delegates.c: Regenerate.
16236 * target.c (g_target_stack): Delete.
16237 (current_top_target): Return the current inferior's top target.
16238 (target_has_execution_1): Refer to the passed-in inferior's top
16239 target.
16240 (target_supports_terminal_ours): Check whether the initial
16241 inferior was already created.
16242 (decref_target): New.
16243 (target_stack::push): Incref/decref the target.
16244 (push_target, push_target, unpush_target): Adjust.
16245 (target_stack::unpush): Defref target.
16246 (target_is_pushed): Return bool. Adjust to refer to the current
16247 inferior's target stack.
16248 (dispose_inferior): Delete, and inline parts ...
16249 (target_preopen): ... here. Only dispose of the current inferior.
16250 (target_detach): Hold strong target reference while detaching.
16251 Pass target down.
16252 (target_thread_name): Add assertion.
16253 (target_resume): Pass down target.
16254 (target_ops::beneath, find_target_at): Adjust to refer to the
16255 current inferior's target stack.
16256 (get_dummy_target): New.
16257 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16258 has a thread running.
16259 (initialize_targets): Rename to ...
16260 (_initialize_target): ... this.
16261 * target.h: Include "gdbsupport/refcounted-object.h".
16262 (struct target_ops): Inherit refcounted_object.
16263 (target_ops::shortname, target_ops::longname): Make const.
16264 (target_ops::async_wait_fd): New method.
16265 (decref_target): Declare.
16266 (struct target_ops_ref_policy): New.
16267 (target_ops_ref): New typedef.
16268 (get_dummy_target): Declare function.
16269 (target_is_pushed): Return bool.
16270 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16271 (all_matching_threads_iterator::all_matching_threads_iterator):
16272 Handle filter target.
16273 * thread-iter.h (struct all_matching_threads_iterator, struct
16274 all_matching_threads_range, class all_non_exited_threads_range):
16275 Filter by target too. Remove explicit.
16276 * thread.c (threads_executing): Delete.
16277 (inferior_thread): Pass down current inferior.
16278 (clear_thread_inferior_resources): Pass down thread pointer
16279 instead of ptid_t.
16280 (add_thread_silent, add_thread_with_info, add_thread): Add
16281 process_stratum_target parameter. Use it for thread and inferior
16282 searches.
16283 (is_current_thread): New.
16284 (thread_info::deletable): Use it.
16285 (find_thread_ptid, thread_count, in_thread_list)
16286 (thread_change_ptid, set_resumed, set_running): New
16287 process_stratum_target parameter. Pass it down.
16288 (set_executing): New process_stratum_target parameter. Pass it
16289 down. Adjust reference to 'threads_executing'.
16290 (threads_are_executing): New process_stratum_target parameter.
16291 Adjust reference to 'threads_executing'.
16292 (set_stop_requested, finish_thread_state): New
16293 process_stratum_target parameter. Pass it down.
16294 (switch_to_thread): Also match inferior.
16295 (switch_to_thread): New process_stratum_target parameter. Pass it
16296 down.
16297 (update_threads_executing): Reimplement.
16298 * top.c (quit_force): Pop targets from all inferior.
16299 (gdb_init): Don't call initialize_targets.
16300 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16301 Declare.
16302 (windows_add_thread, windows_delete_thread): Adjust.
16303 (get_windows_debug_event): Rename to ...
16304 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16305 * tracefile-tfile.c (tfile_target_open): Pass down target.
16306 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16307 Forward declare.
16308 (switch_to_thread): Add process_stratum_target parameter.
16309 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16310 parameter. Use it.
16311 (mi_on_resume): Pass target down.
16312 * nat/fork-inferior.c (startup_inferior): Add
16313 process_stratum_target parameter. Pass it down.
16314 * nat/fork-inferior.h (startup_inferior): Add
16315 process_stratum_target parameter.
16316 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16317
75c6c844
PA
163182020-01-10 Pedro Alves <palves@redhat.com>
16319
16320 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16321 directly. Instead find the first thread in the thread list and
16322 use switch_to_thread.
16323
78f2c40a
PA
163242020-01-10 Pedro Alves <palves@redhat.com>
16325
16326 * remote.c (remote_target::remote_add_inferior): Don't bind a
16327 process to the current inferior if the current inferior is already
16328 bound to a process.
16329
e7af6c70
TBA
163302020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16331 Pedro Alves <palves@redhat.com>
16332
16333 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16334 If no process is specified, return null_ptid instead of
16335 inferior_ptid.
16336 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16337 TARGET_WAITKIND_SIGNALLED with no pid.
16338
31ba933e
PA
163392020-01-10 Pedro Alves <palves@redhat.com>
16340
16341 * remote.c (first_remote_resumed_thread): New.
16342 (remote_target::wait_as): Use it as default event_ptid instead of
16343 inferior_ptid.
16344
735fc2ca
PA
163452020-01-10 Pedro Alves <palves@redhat.com>
16346
16347 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16348
c17e02e1
PA
163492020-01-10 Pedro Alves <palves@redhat.com>
16350
16351 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16352 not -1.
16353
ab1ddbcf
PA
163542020-01-10 Pedro Alves <palves@redhat.com>
16355
16356 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16357 ptid to get_last_target_status.
16358 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16359 ptid to get_last_target_status.
16360 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16361 get_last_target_status.
16362 (info_program_command): Don't pass a target_waitstatus to
16363 get_last_target_status.
16364 * infrun.c (init_wait_for_inferior): Use
16365 nullify_last_target_wait_ptid.
16366 (get_last_target_status): Handle nullptr arguments.
16367 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16368 (print_stop_event): Don't pass a ptid to get_last_target_status.
16369 (normal_stop): Don't pass a ptid to get_last_target_status.
16370 * infrun.h (get_last_target_status, set_last_target_status): Move
16371 comments here and update.
16372 (nullify_last_target_wait_ptid): Declare.
16373 * linux-fork.c (fork_load_infrun_state): Remove local extern
16374 declaration of nullify_last_target_wait_ptid.
16375 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16376 to get_last_target_status.
16377
f3f8ece4
PA
163782020-01-10 Pedro Alves <palves@redhat.com>
16379
16380 * gdbthread.h (scoped_restore_current_thread)
16381 <dont_restore, restore, m_dont_restore>: Declare.
16382 * thread.c (thread_alive): Add assertion. Return bool.
16383 (switch_to_thread_if_alive): New.
16384 (prune_threads): Switch inferior/thread.
16385 (print_thread_info_1): Switch thread before calling target methods.
16386 (scoped_restore_current_thread::restore): New, factored out from
16387 ...
16388 (scoped_restore_current_thread::~scoped_restore_current_thread):
16389 ... this.
16390 (scoped_restore_current_thread::scoped_restore_current_thread):
16391 Add assertion.
16392 (thread_apply_all_command, thread_select): Use
16393 switch_to_thread_if_alive.
16394 * infrun.c (proceed, restart_threads, handle_signal_stop)
16395 (switch_back_to_stepped_thread): Switch current thread before
16396 calling target methods.
16397
db2d40f7
PA
163982020-01-10 Pedro Alves <palves@redhat.com>
16399
16400 * inferior.c (switch_to_inferior_no_thread): New function,
16401 factored out from ...
16402 (inferior_command): ... here.
16403 * inferior.h (switch_to_inferior_no_thread): Declare.
16404 * mi/mi-main.c (run_one_inferior): Use
16405 switch_to_inferior_no_thread.
16406
bd420a2d
PA
164072020-01-10 Pedro Alves <palves@redhat.com>
16408
16409 * infcmd.c (kill_command): Remove dead code.
16410
ddf5db90
PA
164112020-01-10 Pedro Alves <palves@redhat.com>
16412
16413 * remote.c (remote_target::mourn_inferior): No longer check
16414 whether the target is running.
16415
5018ce90
PA
164162020-01-10 Pedro Alves <palves@redhat.com>
16417
16418 * corelow.c (core_target::has_execution): Change parameter type to
16419 inferior pointer.
16420 * inferior.c (number_of_live_inferiors): Use
16421 inferior::has_execution instead of target_has_execution_1.
16422 * inferior.h (inferior::has_execution): New.
16423 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16424 inferior::has_execution instead of target_has_execution_1.
16425 * process-stratum-target.c
16426 (process_stratum_target::has_execution): Change parameter type to
16427 inferior pointer. Check the inferior's PID instead of
16428 inferior_ptid.
16429 * process-stratum-target.h
16430 (process_stratum_target::has_execution): Change parameter type to
16431 inferior pointer.
16432 * record-full.c (record_full_core_target::has_execution): Change
16433 parameter type to inferior pointer.
16434 * target.c (target_has_execution_1): Change parameter type to
16435 inferior pointer.
16436 (target_has_execution_current): Adjust.
16437 * target.h (target_ops::has_execution): Change parameter type to
16438 inferior pointer.
16439 (target_has_execution_1): Change parameter type to inferior
16440 pointer. Change return type to bool.
16441 * tracefile.h (tracefile_target::has_execution): Change parameter
16442 type to inferior pointer.
16443
74375d18
PA
164442020-01-10 Pedro Alves <palves@redhat.com>
16445
16446 * exceptions.c (print_flush): Remove current_top_target() check.
16447
acdf84a6
PA
164482020-01-10 Pedro Alves <palves@redhat.com>
16449
16450 * remote.c (show_remote_exec_file): Show the current inferior's
16451 exec-file instead of the command variable's value.
16452
ec506636
PA
164532020-01-10 Pedro Alves <palves@redhat.com>
16454
16455 * record-full.c (record_full_resume_ptid): New global.
16456 (record_full_target::resume): Set it.
16457 (record_full_wait_1): Use record_full_resume_ptid instead of
16458 inferior_ptid.
16459
873657b9
PA
164602020-01-10 Pedro Alves <palves@redhat.com>
16461
16462 * gdbthread.h (scoped_restore_current_thread)
16463 <dont_restore, restore, m_dont_restore>: Declare.
16464 * thread.c (thread_alive): Add assertion. Return bool.
16465 (switch_to_thread_if_alive): New.
16466 (prune_threads): Switch inferior/thread.
16467 (print_thread_info_1): Switch thread before calling target methods.
16468 (scoped_restore_current_thread::restore): New, factored out from
16469 ...
16470 (scoped_restore_current_thread::~scoped_restore_current_thread):
16471 ... this.
16472 (scoped_restore_current_thread::scoped_restore_current_thread):
16473 Add assertion.
16474 (thread_apply_all_command, thread_select): Use
16475 switch_to_thread_if_alive.
16476
7f0ae84c
GB
164772020-01-10 George Barrett <bob@bob131.so>
16478
16479 * stap-probe.c (stap_modify_semaphore): Don't check for null
16480 semaphores.
16481 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16482 for null semaphores.
16483
f5a7c406
AB
164842020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16485
16486 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16487 all source windows, and maintain horizontal scroll status while
16488 doing so.
16489
9ae6bf64
TT
164902020-01-09 Tom Tromey <tom@tromey.com>
16491
16492 PR tui/18932:
16493 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16494 update_source_window, not print_source_lines.
16495
b2efe70c
AB
164962020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16497
16498 * tui/tui.c (tui_enable): Register tui hooks after calling
16499 tui_display_main.
16500
5f23a082
CB
165012020-01-09 Christian Biesinger <cbiesinger@google.com>
16502
16503 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16504
3061113b
SM
165052020-01-08 Simon Marchi <simon.marchi@efficios.com>
16506
16507 * thread.c (print_thread_info_1): Fix indentation.
16508
57d75002
CB
165092020-01-09 Christian Biesinger <cbiesinger@google.com>
16510
16511 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16512 unique_xmalloc_ptr outside the if to always free the demangled name.
16513
6a053cb1
TT
165142020-01-08 Tom Tromey <tromey@adacore.com>
16515
16516 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16517 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16518 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16519 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16520 Remove.
16521 (section_offsets): New typedef.
16522 * symtab.c (fixup_section, get_msymbol_address): Update.
16523 * symmisc.c (dump_msymbols): Update.
16524 * symfile.h (relative_addr_info_to_section_offsets)
16525 (symfile_map_offsets_to_segments): Update.
16526 * symfile.c (build_section_addr_info_from_objfile)
16527 (init_objfile_sect_indices): Update.
16528 (struct place_section_arg): Change type of "offsets".
16529 (place_section): Update.
16530 (relative_addr_info_to_section_offsets): Change type of
16531 "section_offsets". Remove "num_sections" parameter.
16532 (default_symfile_offsets, syms_from_objfile_1)
16533 (set_objfile_default_section_offset): Update.
16534 (reread_symbols): No need to preserve section offsets by hand.
16535 (symfile_map_offsets_to_segments): Change type of "offsets".
16536 * stap-probe.c (relocate_address): Update.
16537 * stabsread.h (process_one_symbol): Update.
16538 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16539 (solib_target_relocate_section_addresses): Update.
16540 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16541 Update.
16542 * solib-frv.c (frv_relocate_main_executable): Update.
16543 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16544 * solib-aix.c (solib_aix_get_section_offsets): Change return
16545 type.
16546 (solib_aix_solib_create_inferior_hook): Update.
16547 * remote.c (remote_target::get_offsets): Update.
16548 * psymtab.c (find_pc_sect_psymtab): Update.
16549 * psympriv.h (struct partial_symbol) <address, text_low,
16550 text_high>: Update.
16551 * objfiles.h (obj_section_offset): Update.
16552 (struct objfile) <section_offsets>: Change type.
16553 <num_sections>: Remove.
16554 (objfile_relocate): Update.
16555 * objfiles.c (entry_point_address_query): Update
16556 (relocate_one_symbol): Change type of "section_offsets".
16557 (objfile_relocate1, objfile_relocate1): Change type of
16558 "new_offsets".
16559 (objfile_rebase1): Update.
16560 * mipsread.c (mipscoff_symfile_read): Update.
16561 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16562 parameter.
16563 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16564 (parse_external, psymtab_to_symtab_1): Update.
16565 * machoread.c (macho_symfile_offsets): Update.
16566 * ia64-tdep.c (ia64_find_unwind_table): Update.
16567 * hppa-tdep.c (read_unwind_info): Update.
16568 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16569 * dwarf2read.c (create_addrmap_from_index)
16570 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16571 (process_psymtab_comp_unit_reader, add_partial_symbol)
16572 (add_partial_subprogram, process_full_comp_unit)
16573 (read_file_scope, read_func_scope, read_lexical_block_scope)
16574 (read_call_site_scope, dwarf2_rnglists_process)
16575 (dwarf2_ranges_process, dwarf2_ranges_read)
16576 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16577 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16578 Update.
16579 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16580 Update.
16581 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16582 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16583 (process_one_symbol): Change type of "section_offsets".
16584 * ctfread.c (get_objfile_text_range): Update.
16585 * coffread.c (coff_symtab_read, enter_linenos)
16586 (process_coff_symbol): Update.
16587 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16588 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16589
456e800a
TT
165902020-01-08 Tom Tromey <tromey@adacore.com>
16591
16592 * dwarf2read.c (parse_macro_definition): Use std::string.
16593 (parse_macro_definition): Likewise.
16594
6dfa2fc2
TT
165952020-01-08 Tom Tromey <tromey@adacore.com>
16596
16597 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16598 (ATTR_ALLOC_CHUNK): Remove.
16599
421d1616
TT
166002020-01-08 Tom Tromey <tromey@adacore.com>
16601
16602 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16603
43816ebc
TT
166042020-01-08 Tom Tromey <tromey@adacore.com>
16605
16606 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16607 (dwarf2_compute_name, open_dwo_file): Likewise.
16608 (process_enumeration_scope): Use std::vector.
16609 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16610 (partial_die_info::fixup, dwarf2_start_subfile)
16611 (guess_full_die_structure_name, dwarf2_name): Likewise.
16612 (determine_prefix): Update.
16613 (guess_full_die_structure_name): Make return type const.
16614 (partial_die_full_name): Return unique_xmalloc_ptr.
16615 (DW_FIELD_ALLOC_CHUNK): Remove.
16616
4212d509
TT
166172020-01-07 Tom Tromey <tromey@adacore.com>
16618
16619 PR build/24937:
16620 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16621
06a6207a
JT
166222020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16623
16624 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16625
153d79c4
AB
166262020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16627
16628 * stack.c (print_frame_info): Move disassemble_next_line code
16629 inside source_print block.
16630
66182876
EZ
166312020-01-06 Eli Zaretskii <eliz@gnu.org>
16632
16633 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16634 gdb/signals.h, as we are now using native signal symbols.
16635
cbfa8581
SV
166362020-01-06 Shahab Vahedi <shahab@synopsys.com>
16637
16638 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16639 overflow by an early check of content vs threshold.
aac66a4c 16640 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16641 Likewise.
16642
3f602821
EZ
166432020-01-06 Eli Zaretskii <eliz@gnu.org>
16644
16645 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16646
a08c904d
JT
166472020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16648
16649 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16650 export table if no section contains it's RVA.
16651
89a65580
EZ
166522020-01-06 Eli Zaretskii <eliz@gnu.org>
16653
16654 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16655
8b7fcda2
HD
166562020-01-06 Hannes Domani <ssbssa@yahoo.de>
16657
16658 * source.c (print_source_lines_base): Set last_line_listed.
16659
a61b4f69
SV
166602020-01-06 Shahab Vahedi <shahab@synopsys.com>
16661
16662 * tui/tui-disasm.c: Remove trailing spaces.
16663
559e7e50
EZ
166642020-01-06 Eli Zaretskii <eliz@gnu.org>
16665 Pedro Alves <palves@redhat.com>
16666
16667 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16668 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16669 (windows_gdb_signal_to_target): New function, uses the above
16670 enumeration to convert GDB internal signal codes to equivalent
16671 Windows codes.
16672 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16673 * windows-nat.c: Include "gdb_wait.h".
16674 (get_windows_debug_event): Extract the fatal exception from the
16675 exit status and convert to the equivalent Posix signal number.
16676 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16677 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16678 * gdbsupport/gdb_wait.c: New file, implements
16679 windows_status_to_termsig.
16680 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16681 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16682
f2302a34
AB
166832020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16684
16685 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16686 show_layout.
16687
6a5206eb
LM
166882020-01-05 Luis Machado <luis.machado@linaro.org>
16689
16690 * aarch64-linux-nat.c
16691 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16692 and bfd_mach_aarch64.
16693
6ec1d75e
PW
166942020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16695
16696 * ui-file.c (stdio_file::can_emit_style_escape)
16697 (tee_file::can_emit_style_escape): Ensure style is used also on
16698 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16699 to gdb_stdout.
16700 * main.c (set_gdb_data_directory): Use file style to output the
16701 warning that the given pathname is not a directory.
16702 * top.c (show_history_filename, gdb_safe_append_history)
16703 (show_gdb_datadir): Use file style.
16704
44f81a76
HD
167052020-01-03 Hannes Domani <ssbssa@yahoo.de>
16706
16707 * solib-target.c (struct lm_info_target):
16708 Change offsets to be a unique_xmalloc_ptr.
16709 (solib_target_relocate_section_addresses): Update.
16710
25057eb0
HD
167112020-01-03 Hannes Domani <ssbssa@yahoo.de>
16712
16713 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16714
6e2118f5
BE
167152020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16716
16717 * MAINTAINERS (Write After Approval): Add myself.
16718
8133c7dc
LM
167192020-01-02 Luis Machado <luis.machado@linaro.org>
16720
16721 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16722 Cell BE architecture.
16723 * target.h (struct target_ops) <thread_architecture>: Likewise.
16724
48189bec
HD
167252020-01-01 Hannes Domani <ssbssa@yahoo.de>
16726
16727 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16728
ead1063b
HD
167292020-01-01 Hannes Domani <ssbssa@yahoo.de>
16730
16731 * MAINTAINERS (Write After Approval): Add myself.
16732
e5d78223
JB
167332020-01-01 Joel Brobecker <brobecker@adacore.com>
16734
16735 * gdbarch.sh: Update copyright year range of generated files.
16736
b811d2c2
JB
167372020-01-01 Joel Brobecker <brobecker@adacore.com>
16738
16739 Update copyright year range in all GDB files.
16740
5f4def5c
JB
167412020-01-01 Joel Brobecker <brobecker@adacore.com>
16742
16743 * copyright.py: Convert to Python 3.
16744
51fd4002
JB
167452020-01-01 Joel Brobecker <brobecker@adacore.com>
16746
16747 * copyright.py: Adapt after move of gnulib directory from gdb
16748 directory to toplevel directory.
16749
5fb651f2
JB
167502020-01-01 Joel Brobecker <brobecker@adacore.com>
16751
16752 * copyright.py (main): Exit if run from the wrong directory.
16753
5dd8bf88
JB
167542020-01-01 Joel Brobecker <brobecker@adacore.com>
16755
16756 * top.c (print_gdb_version): Change copyright year to 2020.
16757
9f71dacb 167582020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16759
9f71dacb 16760 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16761
9f71dacb 16762For older changes see ChangeLog-2019.
c906108c
SS
16763\f
16764Local Variables:
16765mode: change-log
16766left-margin: 8
16767fill-column: 74
16768version-control: never
57da7796 16769coding: utf-8
c906108c 16770End:
This page took 3.084738 seconds and 4 git commands to generate.