]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/dwarf: fix call to dwarf2_queue_guard in dw2_do_instantiate_symtab
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bf6e5d01
SM
12020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
4 dwarf2_queue_guard.
5
1350c3b4
SM
62020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
9 comment.
10
6f738b01
SM
112020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * dwarf2/read.c (dwarf_read_debug_printf,
14 dwarf_read_debug_printf_v): New macros, use throughout the file.
15
10c19fad
SV
162020-11-12 Shahab Vahedi <shahab@synopsys.com>
17
18 * arc-linux-tdep.c (collect_register): Populate "eret" by
19 "pc" value from the regcache when asked for "pc" value.
20
1f2624a3
TT
212020-11-12 Tom Tromey <tom@tromey.com>
22
23 PR rust/26799:
24 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
25 exist.
26
ab33b152
AB
272020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
28
29 * features/Makefile (XMLTOC): Add rx.xml.
30 (FEATURE_XMLFILES): Remove rx.xml.
31 (FEATURE_CFILES rule): Pass '-single-feature' flag.
32 * features/rx.c: Regenerate.
33 * features/rx.xml: Wrap in `target` tags, and reindent.
34 * target-descriptions.c (struct maint_print_c_tdesc_options): New
35 structure.
36 (maint_print_c_tdesc_opt_def): New typedef.
37 (maint_print_c_tdesc_opt_defs): New static global.
38 (make_maint_print_c_tdesc_options_def_group): New function.
39 (maint_print_c_tdesc_cmd): Make use of command line flags, only
40 print single feature C file for target descriptions containing a
41 single feature.
42 (maint_print_c_tdesc_cmd_completer): New function.
43 (_initialize_target_descriptions): Update call to register command
44 completer, and include command line flag in help text.
45
550820e1
AB
462020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
47
48 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
49 numbers.
50 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
51 enum values.
52
baf20f76
TT
532020-11-10 Tom Tromey <tom@tromey.com>
54
55 * value.h (internalvar_name): Update.
56 * value.c (internalvar_name): Make return type const.
57
caaece0e
TT
582020-11-10 Tom Tromey <tom@tromey.com>
59
60 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
61 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
62 const.
63
8e20b4be
TT
642020-11-10 Tom Tromey <tom@tromey.com>
65
66 * objc-lang.h (value_nsstring): Update.
67 * objc-lang.c (value_nsstring): Make "ptr" const.
68
86775fab
AB
692020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
70
71 * expprint.c (print_subexp_funcall): Increment expression position
72 after reading argument count.
73 * f-lang.c (print_subexp_f): Skip over opcode before calling
74 common function.
75 (dump_subexp_body_f): Likewise.
76
3fed4c0b
RG
772020-11-06 Romain Geissler <romain.geissler@amadeus.com>
78
79 PR python/26832
80 * configure: Regenerate.
81 * configure.ac: Check for python modules ctypes instead of
82 itertools.
83
ac3d4064
PA
842020-11-06 Pedro Alves <pedro@palves.net>
85
86 * macroexp.c (struct macro_buffer): Split in two classes. Add
87 uses adjusted.
88 (struct shared_macro_buffer): New, factored out from struct
89 macro_buffer.
90 (struct growable_macro_buffer): New, factored out from struct
91 macro_buffer.
92 (set_token, get_comment, get_identifier, get_pp_number)
93 (get_character_constant, get_string_literal, get_punctuator)
94 (get_next_token_for_substitution): Constify parameters.
95 (substitute_args): Constify locals.
96
606decb2
TT
972020-11-05 Tom Tromey <tom@tromey.com>
98
99 * dwarf2/read.c (read_cutu_die_from_dwo)
100 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
101 (build_type_psymtabs_1): Update.
102 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
103 parameter.
104 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
105 Don't read section. Add assert.
106
9c91c725
TT
1072020-11-04 Tom Tromey <tromey@adacore.com>
108
109 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
110
8d9fd3a1
TT
1112020-11-04 Tom Tromey <tromey@adacore.com>
112
113 * ada-typeprint.c (ada_print_type): Handle __T types.
114
d8f62e84
TT
1152020-11-04 Tom Tromey <tromey@adacore.com>
116
117 * dwarf2/read.c (add_partial_symbol, process_die):
118 Handle DW_TAG_array_type.
119 (is_type_tag_for_partial): Add "lang" parameter.
120 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
121
7ff5b937
TT
1222020-11-04 Tom Tromey <tromey@adacore.com>
123
124 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
125
10f6a3ad
TT
1262020-11-04 Tom Tromey <tromey@adacore.com>
127
128 * dwarf2/read.c (read_array_type): Only apply stride to innermost
129 array.
130
b72795a8
TT
1312020-11-04 Tom Tromey <tromey@adacore.com>
132
133 * gdbtypes.c (update_static_array_size): Handle bit stride.
134
24aa1b02
TT
1352020-11-04 Tom Tromey <tromey@adacore.com>
136
137 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
138
c9a28cbe
TT
1392020-11-04 Tom Tromey <tromey@adacore.com>
140
141 * ada-lang.c (ada_is_any_packed_array_type): New function.
142 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
143
57567375
TT
1442020-11-04 Tom Tromey <tromey@adacore.com>
145
146 * dwarf2/read.c (recognize_bound_expression)
147 (quirk_ada_thick_pointer): New functions.
148 (read_array_type): Call quirk_ada_thick_pointer.
149 (set_die_type): Add "skip_data_location" parameter.
150 (quirk_ada_thick_pointer): New function.
151 (process_structure_scope): Call quirk_ada_thick_pointer.
152 * ada-lang.c (ada_is_unconstrained_packed_array_type)
153 (decode_packed_array_bitsize): Handle thick pointers without
154 parallel types.
155 (ada_is_gnat_encoded_packed_array_type): Rename from
156 ada_is_packed_array_type.
157 (ada_is_constrained_packed_array_type): Update.
158 * ada-valprint.c (ada_val_print_gnat_array): Remove.
159 (ada_value_print_1): Use ada_get_decoded_value.
160
a7400e44
TT
1612020-11-04 Tom Tromey <tromey@adacore.com>
162
163 * ada-lang.c (recursively_update_array_bitsize): New function.
164 (decode_constrained_packed_array_type): Call it.
165
75fd6a26
TT
1662020-11-04 Tom Tromey <tromey@adacore.com>
167
168 * ada-lang.c (to_fixed_array_type): Error if
169 decode_constrained_packed_array_type returns NULL.
170
93f9561e
TT
1712020-11-04 Tom Tromey <tromey@adacore.com>
172
173 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
174
257e02d8
TT
1752020-11-02 Tom Tromey <tromey@adacore.com>
176
177 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
178 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
179 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
180 * amd64-ravenscar-thread.c: New file.
181 * amd64-ravenscar-thread.h: New file.
182 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
183 * configure.tgt (amd64_tobjs): Add ravenscar objects.
184
74d877e5
AB
1852020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
186
187 * main.c (execute_cmdargs): New function.
188 (captured_main_1): Make use of execute_cmdargs.
189
64aaad63
AB
1902020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
191
192 * NEWS: Mention changes to config file search path.
193 * main.c
194
5b3d3560
TT
1952020-11-02 Tom Tromey <tromey@adacore.com>
196
197 * python/python.c: Consolidate two HAVE_PYTHON blocks.
198 (python_GdbModuleDef): Move earlier. Now static.
199 (do_start_initialization): Consolidate some IS_PY3K blocks.
200
dda83cd7
SM
2012020-11-02 Simon Marchi <simon.marchi@efficios.com>
202
203 * aarch64-linux-tdep.c: Fix indentation.
204 * aarch64-ravenscar-thread.c: Fix indentation.
205 * aarch64-tdep.c: Fix indentation.
206 * aarch64-tdep.h: Fix indentation.
207 * ada-lang.c: Fix indentation.
208 * ada-lang.h: Fix indentation.
209 * ada-tasks.c: Fix indentation.
210 * ada-typeprint.c: Fix indentation.
211 * ada-valprint.c: Fix indentation.
212 * ada-varobj.c: Fix indentation.
213 * addrmap.c: Fix indentation.
214 * addrmap.h: Fix indentation.
215 * agent.c: Fix indentation.
216 * aix-thread.c: Fix indentation.
217 * alpha-bsd-nat.c: Fix indentation.
218 * alpha-linux-tdep.c: Fix indentation.
219 * alpha-mdebug-tdep.c: Fix indentation.
220 * alpha-nbsd-tdep.c: Fix indentation.
221 * alpha-obsd-tdep.c: Fix indentation.
222 * alpha-tdep.c: Fix indentation.
223 * amd64-bsd-nat.c: Fix indentation.
224 * amd64-darwin-tdep.c: Fix indentation.
225 * amd64-linux-nat.c: Fix indentation.
226 * amd64-linux-tdep.c: Fix indentation.
227 * amd64-nat.c: Fix indentation.
228 * amd64-obsd-tdep.c: Fix indentation.
229 * amd64-tdep.c: Fix indentation.
230 * amd64-windows-tdep.c: Fix indentation.
231 * annotate.c: Fix indentation.
232 * arc-tdep.c: Fix indentation.
233 * arch-utils.c: Fix indentation.
234 * arch/arm-get-next-pcs.c: Fix indentation.
235 * arch/arm.c: Fix indentation.
236 * arm-linux-nat.c: Fix indentation.
237 * arm-linux-tdep.c: Fix indentation.
238 * arm-nbsd-tdep.c: Fix indentation.
239 * arm-pikeos-tdep.c: Fix indentation.
240 * arm-tdep.c: Fix indentation.
241 * arm-tdep.h: Fix indentation.
242 * arm-wince-tdep.c: Fix indentation.
243 * auto-load.c: Fix indentation.
244 * auxv.c: Fix indentation.
245 * avr-tdep.c: Fix indentation.
246 * ax-gdb.c: Fix indentation.
247 * ax-general.c: Fix indentation.
248 * bfin-linux-tdep.c: Fix indentation.
249 * block.c: Fix indentation.
250 * block.h: Fix indentation.
251 * blockframe.c: Fix indentation.
252 * bpf-tdep.c: Fix indentation.
253 * break-catch-sig.c: Fix indentation.
254 * break-catch-syscall.c: Fix indentation.
255 * break-catch-throw.c: Fix indentation.
256 * breakpoint.c: Fix indentation.
257 * breakpoint.h: Fix indentation.
258 * bsd-uthread.c: Fix indentation.
259 * btrace.c: Fix indentation.
260 * build-id.c: Fix indentation.
261 * buildsym-legacy.h: Fix indentation.
262 * buildsym.c: Fix indentation.
263 * c-typeprint.c: Fix indentation.
264 * c-valprint.c: Fix indentation.
265 * c-varobj.c: Fix indentation.
266 * charset.c: Fix indentation.
267 * cli/cli-cmds.c: Fix indentation.
268 * cli/cli-decode.c: Fix indentation.
269 * cli/cli-decode.h: Fix indentation.
270 * cli/cli-script.c: Fix indentation.
271 * cli/cli-setshow.c: Fix indentation.
272 * coff-pe-read.c: Fix indentation.
273 * coffread.c: Fix indentation.
274 * compile/compile-cplus-types.c: Fix indentation.
275 * compile/compile-object-load.c: Fix indentation.
276 * compile/compile-object-run.c: Fix indentation.
277 * completer.c: Fix indentation.
278 * corefile.c: Fix indentation.
279 * corelow.c: Fix indentation.
280 * cp-abi.h: Fix indentation.
281 * cp-namespace.c: Fix indentation.
282 * cp-support.c: Fix indentation.
283 * cp-valprint.c: Fix indentation.
284 * cris-linux-tdep.c: Fix indentation.
285 * cris-tdep.c: Fix indentation.
286 * darwin-nat-info.c: Fix indentation.
287 * darwin-nat.c: Fix indentation.
288 * darwin-nat.h: Fix indentation.
289 * dbxread.c: Fix indentation.
290 * dcache.c: Fix indentation.
291 * disasm.c: Fix indentation.
292 * dtrace-probe.c: Fix indentation.
293 * dwarf2/abbrev.c: Fix indentation.
294 * dwarf2/attribute.c: Fix indentation.
295 * dwarf2/expr.c: Fix indentation.
296 * dwarf2/frame.c: Fix indentation.
297 * dwarf2/index-cache.c: Fix indentation.
298 * dwarf2/index-write.c: Fix indentation.
299 * dwarf2/line-header.c: Fix indentation.
300 * dwarf2/loc.c: Fix indentation.
301 * dwarf2/macro.c: Fix indentation.
302 * dwarf2/read.c: Fix indentation.
303 * dwarf2/read.h: Fix indentation.
304 * elfread.c: Fix indentation.
305 * eval.c: Fix indentation.
306 * event-top.c: Fix indentation.
307 * exec.c: Fix indentation.
308 * exec.h: Fix indentation.
309 * expprint.c: Fix indentation.
310 * f-lang.c: Fix indentation.
311 * f-typeprint.c: Fix indentation.
312 * f-valprint.c: Fix indentation.
313 * fbsd-nat.c: Fix indentation.
314 * fbsd-tdep.c: Fix indentation.
315 * findvar.c: Fix indentation.
316 * fork-child.c: Fix indentation.
317 * frame-unwind.c: Fix indentation.
318 * frame-unwind.h: Fix indentation.
319 * frame.c: Fix indentation.
320 * frv-linux-tdep.c: Fix indentation.
321 * frv-tdep.c: Fix indentation.
322 * frv-tdep.h: Fix indentation.
323 * ft32-tdep.c: Fix indentation.
324 * gcore.c: Fix indentation.
325 * gdb_bfd.c: Fix indentation.
326 * gdbarch.sh: Fix indentation.
327 * gdbarch.c: Re-generate
328 * gdbarch.h: Re-generate.
329 * gdbcore.h: Fix indentation.
330 * gdbthread.h: Fix indentation.
331 * gdbtypes.c: Fix indentation.
332 * gdbtypes.h: Fix indentation.
333 * glibc-tdep.c: Fix indentation.
334 * gnu-nat.c: Fix indentation.
335 * gnu-nat.h: Fix indentation.
336 * gnu-v2-abi.c: Fix indentation.
337 * gnu-v3-abi.c: Fix indentation.
338 * go32-nat.c: Fix indentation.
339 * guile/guile-internal.h: Fix indentation.
340 * guile/scm-cmd.c: Fix indentation.
341 * guile/scm-frame.c: Fix indentation.
342 * guile/scm-iterator.c: Fix indentation.
343 * guile/scm-math.c: Fix indentation.
344 * guile/scm-ports.c: Fix indentation.
345 * guile/scm-pretty-print.c: Fix indentation.
346 * guile/scm-value.c: Fix indentation.
347 * h8300-tdep.c: Fix indentation.
348 * hppa-linux-nat.c: Fix indentation.
349 * hppa-linux-tdep.c: Fix indentation.
350 * hppa-nbsd-nat.c: Fix indentation.
351 * hppa-nbsd-tdep.c: Fix indentation.
352 * hppa-obsd-nat.c: Fix indentation.
353 * hppa-tdep.c: Fix indentation.
354 * hppa-tdep.h: Fix indentation.
355 * i386-bsd-nat.c: Fix indentation.
356 * i386-darwin-nat.c: Fix indentation.
357 * i386-darwin-tdep.c: Fix indentation.
358 * i386-dicos-tdep.c: Fix indentation.
359 * i386-gnu-nat.c: Fix indentation.
360 * i386-linux-nat.c: Fix indentation.
361 * i386-linux-tdep.c: Fix indentation.
362 * i386-nto-tdep.c: Fix indentation.
363 * i386-obsd-tdep.c: Fix indentation.
364 * i386-sol2-nat.c: Fix indentation.
365 * i386-tdep.c: Fix indentation.
366 * i386-tdep.h: Fix indentation.
367 * i386-windows-tdep.c: Fix indentation.
368 * i387-tdep.c: Fix indentation.
369 * i387-tdep.h: Fix indentation.
370 * ia64-libunwind-tdep.c: Fix indentation.
371 * ia64-libunwind-tdep.h: Fix indentation.
372 * ia64-linux-nat.c: Fix indentation.
373 * ia64-linux-tdep.c: Fix indentation.
374 * ia64-tdep.c: Fix indentation.
375 * ia64-tdep.h: Fix indentation.
376 * ia64-vms-tdep.c: Fix indentation.
377 * infcall.c: Fix indentation.
378 * infcmd.c: Fix indentation.
379 * inferior.c: Fix indentation.
380 * infrun.c: Fix indentation.
381 * iq2000-tdep.c: Fix indentation.
382 * language.c: Fix indentation.
383 * linespec.c: Fix indentation.
384 * linux-fork.c: Fix indentation.
385 * linux-nat.c: Fix indentation.
386 * linux-tdep.c: Fix indentation.
387 * linux-thread-db.c: Fix indentation.
388 * lm32-tdep.c: Fix indentation.
389 * m2-lang.c: Fix indentation.
390 * m2-typeprint.c: Fix indentation.
391 * m2-valprint.c: Fix indentation.
392 * m32c-tdep.c: Fix indentation.
393 * m32r-linux-tdep.c: Fix indentation.
394 * m32r-tdep.c: Fix indentation.
395 * m68hc11-tdep.c: Fix indentation.
396 * m68k-bsd-nat.c: Fix indentation.
397 * m68k-linux-nat.c: Fix indentation.
398 * m68k-linux-tdep.c: Fix indentation.
399 * m68k-tdep.c: Fix indentation.
400 * machoread.c: Fix indentation.
401 * macrocmd.c: Fix indentation.
402 * macroexp.c: Fix indentation.
403 * macroscope.c: Fix indentation.
404 * macrotab.c: Fix indentation.
405 * macrotab.h: Fix indentation.
406 * main.c: Fix indentation.
407 * mdebugread.c: Fix indentation.
408 * mep-tdep.c: Fix indentation.
409 * mi/mi-cmd-catch.c: Fix indentation.
410 * mi/mi-cmd-disas.c: Fix indentation.
411 * mi/mi-cmd-env.c: Fix indentation.
412 * mi/mi-cmd-stack.c: Fix indentation.
413 * mi/mi-cmd-var.c: Fix indentation.
414 * mi/mi-cmds.c: Fix indentation.
415 * mi/mi-main.c: Fix indentation.
416 * mi/mi-parse.c: Fix indentation.
417 * microblaze-tdep.c: Fix indentation.
418 * minidebug.c: Fix indentation.
419 * minsyms.c: Fix indentation.
420 * mips-linux-nat.c: Fix indentation.
421 * mips-linux-tdep.c: Fix indentation.
422 * mips-nbsd-tdep.c: Fix indentation.
423 * mips-tdep.c: Fix indentation.
424 * mn10300-linux-tdep.c: Fix indentation.
425 * mn10300-tdep.c: Fix indentation.
426 * moxie-tdep.c: Fix indentation.
427 * msp430-tdep.c: Fix indentation.
428 * namespace.h: Fix indentation.
429 * nat/fork-inferior.c: Fix indentation.
430 * nat/gdb_ptrace.h: Fix indentation.
431 * nat/linux-namespaces.c: Fix indentation.
432 * nat/linux-osdata.c: Fix indentation.
433 * nat/netbsd-nat.c: Fix indentation.
434 * nat/x86-dregs.c: Fix indentation.
435 * nbsd-nat.c: Fix indentation.
436 * nbsd-tdep.c: Fix indentation.
437 * nios2-linux-tdep.c: Fix indentation.
438 * nios2-tdep.c: Fix indentation.
439 * nto-procfs.c: Fix indentation.
440 * nto-tdep.c: Fix indentation.
441 * objfiles.c: Fix indentation.
442 * objfiles.h: Fix indentation.
443 * opencl-lang.c: Fix indentation.
444 * or1k-tdep.c: Fix indentation.
445 * osabi.c: Fix indentation.
446 * osabi.h: Fix indentation.
447 * osdata.c: Fix indentation.
448 * p-lang.c: Fix indentation.
449 * p-typeprint.c: Fix indentation.
450 * p-valprint.c: Fix indentation.
451 * parse.c: Fix indentation.
452 * ppc-linux-nat.c: Fix indentation.
453 * ppc-linux-tdep.c: Fix indentation.
454 * ppc-nbsd-nat.c: Fix indentation.
455 * ppc-nbsd-tdep.c: Fix indentation.
456 * ppc-obsd-nat.c: Fix indentation.
457 * ppc-ravenscar-thread.c: Fix indentation.
458 * ppc-sysv-tdep.c: Fix indentation.
459 * ppc64-tdep.c: Fix indentation.
460 * printcmd.c: Fix indentation.
461 * proc-api.c: Fix indentation.
462 * producer.c: Fix indentation.
463 * producer.h: Fix indentation.
464 * prologue-value.c: Fix indentation.
465 * prologue-value.h: Fix indentation.
466 * psymtab.c: Fix indentation.
467 * python/py-arch.c: Fix indentation.
468 * python/py-bpevent.c: Fix indentation.
469 * python/py-event.c: Fix indentation.
470 * python/py-event.h: Fix indentation.
471 * python/py-finishbreakpoint.c: Fix indentation.
472 * python/py-frame.c: Fix indentation.
473 * python/py-framefilter.c: Fix indentation.
474 * python/py-inferior.c: Fix indentation.
475 * python/py-infthread.c: Fix indentation.
476 * python/py-objfile.c: Fix indentation.
477 * python/py-prettyprint.c: Fix indentation.
478 * python/py-registers.c: Fix indentation.
479 * python/py-signalevent.c: Fix indentation.
480 * python/py-stopevent.c: Fix indentation.
481 * python/py-stopevent.h: Fix indentation.
482 * python/py-threadevent.c: Fix indentation.
483 * python/py-tui.c: Fix indentation.
484 * python/py-unwind.c: Fix indentation.
485 * python/py-value.c: Fix indentation.
486 * python/py-xmethods.c: Fix indentation.
487 * python/python-internal.h: Fix indentation.
488 * python/python.c: Fix indentation.
489 * ravenscar-thread.c: Fix indentation.
490 * record-btrace.c: Fix indentation.
491 * record-full.c: Fix indentation.
492 * record.c: Fix indentation.
493 * reggroups.c: Fix indentation.
494 * regset.h: Fix indentation.
495 * remote-fileio.c: Fix indentation.
496 * remote.c: Fix indentation.
497 * reverse.c: Fix indentation.
498 * riscv-linux-tdep.c: Fix indentation.
499 * riscv-ravenscar-thread.c: Fix indentation.
500 * riscv-tdep.c: Fix indentation.
501 * rl78-tdep.c: Fix indentation.
502 * rs6000-aix-tdep.c: Fix indentation.
503 * rs6000-lynx178-tdep.c: Fix indentation.
504 * rs6000-nat.c: Fix indentation.
505 * rs6000-tdep.c: Fix indentation.
506 * rust-lang.c: Fix indentation.
507 * rx-tdep.c: Fix indentation.
508 * s12z-tdep.c: Fix indentation.
509 * s390-linux-tdep.c: Fix indentation.
510 * score-tdep.c: Fix indentation.
511 * ser-base.c: Fix indentation.
512 * ser-mingw.c: Fix indentation.
513 * ser-uds.c: Fix indentation.
514 * ser-unix.c: Fix indentation.
515 * serial.c: Fix indentation.
516 * sh-linux-tdep.c: Fix indentation.
517 * sh-nbsd-tdep.c: Fix indentation.
518 * sh-tdep.c: Fix indentation.
519 * skip.c: Fix indentation.
520 * sol-thread.c: Fix indentation.
521 * solib-aix.c: Fix indentation.
522 * solib-darwin.c: Fix indentation.
523 * solib-frv.c: Fix indentation.
524 * solib-svr4.c: Fix indentation.
525 * solib.c: Fix indentation.
526 * source.c: Fix indentation.
527 * sparc-linux-tdep.c: Fix indentation.
528 * sparc-nbsd-tdep.c: Fix indentation.
529 * sparc-obsd-tdep.c: Fix indentation.
530 * sparc-ravenscar-thread.c: Fix indentation.
531 * sparc-tdep.c: Fix indentation.
532 * sparc64-linux-tdep.c: Fix indentation.
533 * sparc64-nbsd-tdep.c: Fix indentation.
534 * sparc64-obsd-tdep.c: Fix indentation.
535 * sparc64-tdep.c: Fix indentation.
536 * stabsread.c: Fix indentation.
537 * stack.c: Fix indentation.
538 * stap-probe.c: Fix indentation.
539 * stubs/ia64vms-stub.c: Fix indentation.
540 * stubs/m32r-stub.c: Fix indentation.
541 * stubs/m68k-stub.c: Fix indentation.
542 * stubs/sh-stub.c: Fix indentation.
543 * stubs/sparc-stub.c: Fix indentation.
544 * symfile-mem.c: Fix indentation.
545 * symfile.c: Fix indentation.
546 * symfile.h: Fix indentation.
547 * symmisc.c: Fix indentation.
548 * symtab.c: Fix indentation.
549 * symtab.h: Fix indentation.
550 * target-float.c: Fix indentation.
551 * target.c: Fix indentation.
552 * target.h: Fix indentation.
553 * tic6x-tdep.c: Fix indentation.
554 * tilegx-linux-tdep.c: Fix indentation.
555 * tilegx-tdep.c: Fix indentation.
556 * top.c: Fix indentation.
557 * tracefile-tfile.c: Fix indentation.
558 * tracepoint.c: Fix indentation.
559 * tui/tui-disasm.c: Fix indentation.
560 * tui/tui-io.c: Fix indentation.
561 * tui/tui-regs.c: Fix indentation.
562 * tui/tui-stack.c: Fix indentation.
563 * tui/tui-win.c: Fix indentation.
564 * tui/tui-winsource.c: Fix indentation.
565 * tui/tui.c: Fix indentation.
566 * typeprint.c: Fix indentation.
567 * ui-out.h: Fix indentation.
568 * unittests/copy_bitwise-selftests.c: Fix indentation.
569 * unittests/memory-map-selftests.c: Fix indentation.
570 * utils.c: Fix indentation.
571 * v850-tdep.c: Fix indentation.
572 * valarith.c: Fix indentation.
573 * valops.c: Fix indentation.
574 * valprint.c: Fix indentation.
575 * valprint.h: Fix indentation.
576 * value.c: Fix indentation.
577 * value.h: Fix indentation.
578 * varobj.c: Fix indentation.
579 * vax-tdep.c: Fix indentation.
580 * windows-nat.c: Fix indentation.
581 * windows-tdep.c: Fix indentation.
582 * xcoffread.c: Fix indentation.
583 * xml-syscall.c: Fix indentation.
584 * xml-tdesc.c: Fix indentation.
585 * xstormy16-tdep.c: Fix indentation.
586 * xtensa-config.c: Fix indentation.
587 * xtensa-linux-nat.c: Fix indentation.
588 * xtensa-linux-tdep.c: Fix indentation.
589 * xtensa-tdep.c: Fix indentation.
590
e1f57067
AB
5912020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
592 Craig Blackmore <craig.blackmore@embecosm.com>
593
594 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
595 as an unsigned value.
596
ae7754b2
TT
5972020-11-01 Tom Tromey <tom@tromey.com>
598
599 * dbxread.c (dbx_end_psymtab): Update.
600 * dwarf2/read.c (process_psymtab_comp_unit_reader)
601 (build_type_psymtabs_reader): Update.
602 * xcoffread.c (xcoff_end_psymtab): Update.
603 * ctfread.c (scan_partial_symbols): Update.
604 * psymtab.c (sort_pst_symbols): Remove.
605 (partial_symtab::end): Rename from end_psymtab_common. Inline
606 sort_pst_symbols.
607 * psympriv.h (struct partial_symtab) <end>: New method.
608 (end_psymtab_common): Don't declare.
609
0684bb51
TT
6102020-11-01 Tom Tromey <tom@tromey.com>
611
612 * symmisc.c (count_psyms): New function.
613 (print_objfile_statistics): Use it.
614 * psymtab.c (append_psymbol_to_list): Remove.
615 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
616 * objfiles.h (struct objstats) <n_psyms>: Remove.
617
089002bb
TT
6182020-11-01 Tom Tromey <tom@tromey.com>
619
620 * dbxread.c (dbx_end_psymtab): Update.
621 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
622 (build_type_psymtabs_reader): Update.
623 * xcoffread.c (xcoff_end_psymtab): Update.
624 * ctfread.c (scan_partial_symbols): Update.
625 * psympriv.h (end_psymtab_common): Update.
626 * psymtab.c (end_psymtab_common): Remove objfile parameter.
627 (sort_pst_symbols): Likewise.
628
525454d6
TT
6292020-11-01 Tom Tromey <tom@tromey.com>
630
631 * dbxread.c (dbx_symfile_read): Update.
632 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
633 * xcoffread.c (xcoff_initial_scan): Update.
634 * psympriv.h (init_psymbol_list): Don't declare.
635 * psymtab.c (init_psymbol_list): Remove.
636
60bd1d53
JB
6372020-11-01 Joel Brobecker <brobecker@adacore.com>
638
639 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
640 gnat_encoded_fixed_type_info. Update all callers.
641
db99d0d0
JB
6422020-11-01 Joel Brobecker <brobecker@adacore.com>
643
644 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
645 line too long.
646
75f24e86
JB
6472020-11-01 Joel Brobecker <brobecker@adacore.com>
648
649 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
650 cast_from_fixed. Update all callers.
651 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
652 Update all callers.
653 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
654 Update all callers.
655 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
656 ada_scaling_factor.
657 * ada-typeprint.c: Replace call to ada_scaling_factor by call
658 to print_gnat_encoded_fixed_point_type.
659 * ada-valprint.c: Likewise.
660
4f0469cd
AB
6612020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
662
663 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
664 (debug_prefixed_printf): Add check of debug_displaced flag.
665 * linux-nat.c (linux_nat_debug_printf): Add check of
666 debug_linux_nat flag.
667
17417fb0
SM
6682020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
669
670 * infrun.c (infrun_debug_printf_1): Remove.
671 (displaced_debug_printf_1): Remove.
672 (stop_all_threads): Use debug_prefixed_printf.
673 * infrun.h (infrun_debug_printf_1): Remove.
674 (infrun_debug_printf): Use debug_prefixed_printf.
675 (displaced_debug_printf_1): Remove.
676 (displaced_debug_printf): Use debug_prefixed_printf.
677 * linux-nat.c (linux_nat_debug_printf_1): Remove.
678 (linux_nat_debug_printf): Use debug_prefixed_printf.
679
ad6dba1c
SM
6802020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
681
682 * configure: Re-generate.
683 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
684 AC_LANG_PROGRAM.
685
b6fb30ed
SM
6862020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
687
688 * configure: Re-generate.
689
5164c117
SM
6902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
691
692 * configure: Re-generate.
693
864ca435
SM
6942020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
695
696 * configure: Re-generate.
697
b9442ec1
SM
6982020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
699
700 * configure: Re-generate.
701
294f2697
SM
7022020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
703
704 * acinclude.m4: Modernize.
705 * configure: Re-generate.
706
5593a99a
SM
7072020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
708
709 * configure.ac: Modernize.
710 * configure: Re-generate.
711
e41fda1d
SM
7122020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
713
714 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
715 * configure: Re-generate.
716 * configure.ac: Remove AM_PROG_CC_STDC.
717
91e1a0ed
SM
7182020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
721 AC_CANONICAL_SYSTEM.
722 * configure: Re-generate.
723
136821d9
SM
7242020-10-30 Simon Marchi <simon.marchi@efficios.com>
725
726 * infrun.h (displaced_debug_printf): New macro. Replace
727 displaced debug prints throughout to use it.
728 (displaced_debug_printf_1): New declaration.
729 (displaced_step_dump_bytes): Return string, remove ui_file
730 parameter, update all callers.
731 * infrun.c (displaced_debug_printf_1): New function.
732 (displaced_step_dump_bytes): Return string, remove ui_file
733 parameter
734
aa2045e7
SM
7352020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
736
737 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
738
b1ec2735
TT
7392020-10-30 Tom Tromey <tromey@adacore.com>
740
741 * Makefile.in (stamp-init): Depend on config.status.
742
b78b3a29
TBA
7432020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
744
745 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
746
d70bdd3c
PA
7472020-10-30 Pedro Alves <pedro@palves.net>
748
749 * thread.c (lookup_selected_frame): Move ...
750 * frame.c (lookup_selected_frame): ... here.
751
79952e69
PA
7522020-10-30 Pedro Alves <pedro@palves.net>
753
754 * blockframe.c (block_innermost_frame): Use get_selected_frame.
755 * frame.c
756 (scoped_restore_selected_frame::scoped_restore_selected_frame):
757 Use save_selected_frame. Save language as well.
758 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
759 Use restore_selected_frame, and restore language as well.
760 (selected_frame_id, selected_frame_level): New.
761 (selected_frame): Update comments.
762 (save_selected_frame, restore_selected_frame): New.
763 (get_selected_frame): Use lookup_selected_frame.
764 (get_selected_frame_if_set): Delete.
765 (select_frame): Record selected_frame_level and selected_frame_id.
766 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
767 fields.
768 (get_selected_frame): Make 'message' parameter optional.
769 (get_selected_frame_if_set): Delete declaration.
770 (select_frame): Update comments.
771 (save_selected_frame, restore_selected_frame)
772 (lookup_selected_frame): Declare.
773 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
774 * infrun.c (struct infcall_control_state) <selected_frame_level>:
775 New field.
776 (save_infcall_control_state): Use save_selected_frame.
777 (restore_selected_frame): Delete.
778 (restore_infcall_control_state): Use restore_selected_frame.
779 * stack.c (select_frame_command_core, frame_command_core): Use
780 get_selected_frame.
781 * thread.c (restore_selected_frame): Rename to ...
782 (lookup_selected_frame): ... this and make extern. Select the
783 current frame if the frame level is -1.
784 (scoped_restore_current_thread::restore): Also restore the
785 language.
786 (scoped_restore_current_thread::~scoped_restore_current_thread):
787 Don't try/catch.
788 (scoped_restore_current_thread::scoped_restore_current_thread):
789 Save the language as well. Use save_selected_frame.
790
58103c33
SM
7912020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
792
793 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
794 documentation.
795 * gdbarch.h: Re-generate.
796
40a53766
SM
7972020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
798
799 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
800 parameter.
801 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
802 Likewise.
803 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
804 Likewise.
805 * arch-utils.c (default_displaced_step_hw_singlestep):
806 Likewise.
807 * arch-utils.h (default_displaced_step_hw_singlestep):
808 Likewise.
809 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
810 Likewise.
811 * s390-tdep.c (s390_displaced_step_hw_singlestep):
812 Likewise.
813 * gdbarch.c: Re-generate.
814 * gdbarch.h: Re-generate.
815 * infrun.c (resume_1): Adjust.
816
8407f91b
TT
8172020-10-29 Tom Tromey <tom@tromey.com>
818
819 * progspace.c (program_space::~program_space): Don't call
820 exec_close.
821
5008b3b2
TT
8222020-10-29 Tom Tromey <tom@tromey.com>
823
824 * exec.c (exec_target::close): Don't change current program
825 space.
826
d9eebde0
TT
8272020-10-29 Tom Tromey <tom@tromey.com>
828
829 * symfile.c (add_symbol_file_command): Update.
830 * exec.c (program_space::add_target_sections): Rename.
831 * symfile-mem.c (symbol_file_add_from_memory): Update.
832 * progspace.h (struct program_space) <add_target_sections>:
833 Declare new overload.
834 * exec.h (add_target_sections_of_objfile): Don't declare.
835
3769e227
TT
8362020-10-29 Tom Tromey <tom@tromey.com>
837
838 * solib.c (solib_map_sections): Update.
839 * exec.c (program_space::add_target_sections): Now a method.
840 (exec_file_attach): Update.
841 * exec.h (add_target_sections): Don't declare.
842 * progspace.h (struct program_space) <add_target_sections>:
843 Declare.
844
2a3f84af
TT
8452020-10-29 Tom Tromey <tom@tromey.com>
846
847 * progspace.h (struct program_space) <remove_target_sections>:
848 Declare.
849 * exec.c (program_space::remove_target_sections): Now a method.
850 * exec.h (remove_target_sections): Don't declare.
851
004eecfd
TT
8522020-10-29 Tom Tromey <tom@tromey.com>
853
854 * inferior.c (delete_inferior): Update.
855 * progspace.c (program_space::empty): Rename from
856 program_space_empty_p. Return bool.
857 * progspace.h (struct program_space) <empty>: New method.
858 (program_space_empty_p): Don't declare.
859
e39fb971
TT
8602020-10-29 Tom Tromey <tom@tromey.com>
861
862 * progspace.c (program_space::~program_space): Don't call
863 clear_program_space_solib_cache.
864 (program_space::clear_solib_cache): Rename from
865 clear_solib_cache.
866 * solib.c (handle_solib_event): Update.
867 * progspace.h (struct program_space) <clear_solib_cache>: New
868 method.
869 (clear_program_space_solib_cache): Don't declare.
870
a42d7dd8
TT
8712020-10-29 Tom Tromey <tom@tromey.com>
872
873 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
874 * target.c (info_target_command): Update.
875 * symfile.c (syms_from_objfile_1, finish_new_objfile)
876 (symbol_file_clear, reread_symbols): Update.
877 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
878 * stabsread.c (scan_file_globals): Update.
879 * solib.c (update_solib_list): Update.
880 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
881 (svr4_fetch_objfile_link_map, enable_break)
882 (svr4_relocate_main_executable)
883 (svr4_iterate_over_objfiles_in_search_order): Update.
884 * solib-frv.c (lm_base, enable_break)
885 (frv_relocate_main_executable): Update.
886 (main_got, frv_fdpic_find_canonical_descriptor): Update.
887 (frv_fetch_objfile_link_map): Update.
888 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
889 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
890 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
891 * remote.c (remote_target::get_offsets): Update.
892 (remote_target::start_remote)
893 (extended_remote_target::post_attach): Update.
894 * objfiles.c (entry_point_address_query): Update.
895 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
896 * minsyms.c (get_symbol_leading_char): Update.
897 * frame.c (inside_main_func): Update.
898 * progspace.h (symfile_objfile): Remove macro.
899
19f6550e
TT
9002020-10-29 Tom Tromey <tom@tromey.com>
901
902 * exec.c (exec_file_attach): Update.
903 * progspace.c (program_space::exec_close): Update.
904 * progspace.h (struct program_space) <ebfd>: Now a
905 gdb_bfd_ref_ptr.
906 <set_exec_bfd>: Change argument type.
907 <exec_bfd>: Update.
908
7e10abd1
TT
9092020-10-29 Tom Tromey <tom@tromey.com>
910
911 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
912 * symfile.c (reread_symbols): Update.
913 * symfile-mem.c (add_symbol_file_from_memory_command)
914 (add_vsyscall_page): Update.
915 * source-cache.c (source_cache::get_plain_source_lines): Update.
916 * solib-svr4.c (find_program_interpreter, elf_locate_base)
917 (svr4_current_sos_direct, svr4_exec_displacement)
918 (svr4_relocate_main_executable): Update.
919 (svr4_iterate_over_objfiles_in_search_order): Update.
920 * solib-frv.c (enable_break2, enable_break): Update.
921 * solib-dsbt.c (lm_base, enable_break): Update.
922 * solib-darwin.c (find_program_interpreter)
923 (darwin_solib_create_inferior_hook): Update.
924 * sol-thread.c (rw_common, ps_pdmodel): Update.
925 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
926 * remote.c (compare_sections_command)
927 (remote_target::trace_set_readonly_regions): Update.
928 * remote-sim.c (get_sim_inferior_data)
929 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
930 (gdbsim_target_open, gdbsim_target::files_info): Update.
931 * exec.h (exec_bfd): Remove macro.
932 * progspace.c (initialize_progspace): Update.
933 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
934 Update.
935 * nto-procfs.c (nto_procfs_target::post_attach)
936 (nto_procfs_target::create_inferior): Update.
937 * maint.c (maintenance_info_sections): Update.
938 * linux-thread-db.c (thread_db_target::get_thread_local_address):
939 Update.
940 * infcmd.c (post_create_inferior): Update.
941 * gcore.c (default_gcore_arch, default_gcore_target): Update.
942 (objfile_find_memory_regions): Update.
943 * exec.c (validate_exec_file, exec_file_attach)
944 (exec_read_partial_read_only, print_section_info): Update.
945 * corelow.c (core_target_open): Update.
946 * corefile.c (reopen_exec_file, validate_files): Update.
947 * arm-tdep.c (gdb_print_insn_arm): Update.
948 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
949 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
950 methods.
951
b55221ab
TT
9522020-10-29 Tom Tromey <tom@tromey.com>
953
954 * progspace.h (current_target_sections): Remove macro.
955 * solib-svr4.c (scan_dyntag): Update.
956 * solib-dsbt.c (scan_dyntag): Update.
957 * exec.c (exec_target::close): Update.
958 (add_target_sections, add_target_sections_of_objfile)
959 (remove_target_sections, exec_target::get_section_table)
960 (exec_target::files_info, set_section_command)
961 (exec_set_section_address, exec_target::has_memory)
962 (exec_target::has_memory): Update.
963
5a36e715
TT
9642020-10-29 Tom Tromey <tom@tromey.com>
965
966 * source-cache.c (source_cache::get_plain_source_lines): Use
967 current_program_space.
968 * corefile.c (reopen_exec_file): Use current_program_space.
969 * exec.c (exec_file_attach): Use current_program_space.
970 * exec.h (exec_bfd_mtime): Remove.
971
784c8592
TT
9722020-10-29 Tom Tromey <tom@tromey.com>
973
974 * gcore.c (default_gcore_mach): Remove.
975 (create_gcore_bfd): Update.
976
8a4f1402
TT
9772020-10-29 Tom Tromey <tom@tromey.com>
978
979 * progspace.c (program_space::exec_close): New method, from
980 exec_close in exec.c.
981 * exec.c (exec_close): Move to progspace.c.
982 (exec_target::close, exec_file_attach): Update.
983 * progspace.h (struct program_space) <exec_close>: Declare
984 method.
985
c20cb686
TT
9862020-10-29 Tom Tromey <tom@tromey.com>
987
988 * progspace.h (struct program_space) <exec_filename>: Rename from
989 pspace_exec_filename. Now a unique_xmalloc_ptr.
990 * inferior.c (print_selected_inferior): Update.
991 (print_inferior): Update.
992 * mi/mi-main.c (print_one_inferior): Update.
993 * exec.h (exec_filename): Remove macro.
994 * corefile.c (get_exec_file): Update.
995 * exec.c (exec_close): Update.
996 (exec_file_attach): Update.
997 * progspace.c (clone_program_space): Update.
998 (print_program_space): Update.
999
6be2a9ab
TT
10002020-10-29 Tom Tromey <tom@tromey.com>
1001
1002 * target-section.h (struct target_section): Add constructor.
1003 * exec.c (build_section_table, add_target_sections_of_objfile):
1004 Update.
1005 * corelow.c (core_target::build_file_mappings): Update.
1006
cfaa8f76
TBA
10072020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1008
1009 PR gdb/19318
1010 * inferior.c (detach_inferior_command): Restore the current thread.
1011 (kill_inferior_command): Ditto.
1012
1b00ef06
TV
10132020-10-28 Tom de Vries <tdevries@suse.de>
1014
1015 PR symtab/26772
1016 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1017 map, check it in the "best match" loop.
1018
7f40ce1a
SM
10192020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1020
1021 * m32c-tdep.c: Remove unused includes.
1022
5eb9e3f5
SM
10232020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1024
1025 * xtensa-tdep.c: Remove includes.
1026
b1d4d8d1
TBA
10272020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1028
1029 * breakpoint.c (struct condition_command_opts): New struct.
1030 (condition_command_option_defs): New static global.
1031 (make_condition_command_options_def_group): New function.
1032 (condition_completer): Update to consider the '-force' flag.
1033 (condition_command): Use gdb::option for the '-force' flag.
1034
bd24c5d6
TV
10352020-10-27 Tom de Vries <tdevries@suse.de>
1036
1037 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1038 symbols in section check.
1039
61eb46a4
TV
10402020-10-27 Tom de Vries <tdevries@suse.de>
1041
1042 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1043
733d554a
TBA
10442020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1045
1046 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1047 * breakpoint.c: Update the help text of the 'condition' and 'break'
1048 commands.
1049 (set_breakpoint_condition): Take a new bool parameter
1050 to control whether condition definition should be forced even when
1051 the condition expression is invalid in all of the current locations.
1052 (condition_command): Update the call to 'set_breakpoint_condition'.
1053 (find_condition_and_thread): Take the "-force-condition" flag into
1054 account.
1055 * linespec.c (linespec_keywords): Add "-force-condition" as an
1056 element.
1057 (FORCE_KEYWORD_INDEX): New #define.
1058 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1059 as a keyword.
1060 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1061 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1062 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1063 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1064
b5fa468f
TBA
10652020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1066
1067 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1068 * breakpoint.c (set_breakpoint_location_condition): New function.
1069 (set_breakpoint_condition): Disable a breakpoint location if parsing
1070 the condition string gives an error.
1071 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1072 (build_target_condition_list): Ditto.
1073 (build_target_command_list): Ditto.
1074 (build_bpstat_chain): Ditto.
1075 (print_one_breakpoint_location): Ditto.
1076 (print_one_breakpoint): Ditto.
1077 (breakpoint_1): Ditto.
1078 (bp_location::bp_location): Ditto.
1079 (locations_are_equal): Ditto.
1080 (update_breakpoint_locations): Ditto.
1081 (enable_disable_bp_num_loc): Ditto.
1082 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1083 (find_condition_and_thread_for_sals): New static function.
1084 (create_breakpoint): Call find_condition_and_thread_for_sals.
1085 (location_to_sals): Call find_condition_and_thread_for_sals instead
1086 of find_condition_and_thread.
1087
1c47ec3e
TV
10882020-10-26 Tom de Vries <tdevries@suse.de>
1089
1090 * dwarf2/read.c (process_full_comp_unit): Call
1091 dwarf2_find_base_address.
1092
6390859c
TT
10932020-10-26 Tom Tromey <tromey@adacore.com>
1094
1095 * gdbtypes.c (create_range_type): Revert previous patch. Add
1096 comment.
1097
d744f0f9
PA
10982020-10-26 Pedro Alves <pedro@palves.net>
1099
1100 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1101 (my_waitpid): Use gdb::handle_eintr.
1102
006811bc
SM
11032020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * acinclude.m4: Update ptrace.m4 path.
1106 * ptrace.m4: Moved to gdbsupport.
1107
c75e31a1
SM
11082020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1109
1110 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1111 instead of target_gdbarch.
1112
32495661
SM
11132020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1114
1115 * jit.c (jit_reader_load_command): Pass current inferior.
1116 (jit_inferior_init): Change parameter type to inferior, use it.
1117 (jit_inferior_created): Remove.
1118 (jit_inferior_created_hook): Pass inferior parameter down.
1119 (_initialize_jit): Use jit_inferior_created_hook instead of
1120 jit_inferior_created.
1121 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1122 * infrun.c (follow_exec): Pass inferior to
1123 jit_inferior_created_hook.
1124
3f66685e
SM
11252020-10-24 Simon Marchi <simon.marchi@efficios.com>
1126
1127 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1128 parameter and use it.
1129 (thread_db_inferior_created): Pass inferior argument.
1130
a0ff652f
SM
11312020-10-24 Simon Marchi <simon.marchi@efficios.com>
1132
1133 * aix-thread.c (aix_thread_inferior_created): Add inferior
1134 parameter.
1135 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1136 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1137 * jit.c (jit_inferior_created): Likewise.
1138 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1139 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1140 * observable.h (inferior_created): Likewise.
1141 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1142 * symfile-mem.c (add_vsyscall_page): Likewise.
1143 * infcmd.c (post_create_inferior): Pass inferior argument.
1144
3c67532c
JB
11452020-10-24 Joel Brobecker <brobecker@adacore.com>
1146
1147 GDB 10.1 released.
1148
8747316e
JB
11492020-10-23 Joel Brobecker <brobecker@adacore.com>
1150
1151 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1152 to ada_check_typedef.
1153
1a0ea399
AB
11542020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * f-exp.y (f_parse): Rename to...
1157 (f_language::parser): ...this.
1158 * f-lang.c (f_get_encoding): Rename to...
1159 (f_language::get_encoding): ...this.
1160 (f_op_print_tab): Rename to...
1161 (f_language::op_print_tab): ...this.
1162 (exp_descriptor_f): Rename to...
1163 (f_language::exp_descriptor_tab): ...this.
1164 (class f_language): Moved to f-lang.h.
1165 (f_language::language_arch_info): New function, moved out of class
1166 declaration.
1167 (f_language::search_name_hash): Likewise.
1168 (f_language::lookup_symbol_nonlocal): Likewise.
1169 (f_language::get_symbol_name_matcher_inner): Likewise.
1170 * f-lang.h: Add 'valprint.h' include.
1171 (class f_language): Moved here from f-lang.c.
1172 * f-typeprint.c (f_type_print_args): Delete commented out
1173 declaration.
1174 (f_print_typedef): Rename to...
1175 (f_language::print_typedef): ...this.
1176 (f_print_type): Rename to...
1177 (f_language::print_type): ...this.
1178 (f_type_print_varspec_prefix): Delete declaration and rename to...
1179 (f_language::f_type_print_varspec_prefix): ...this.
1180 (f_type_print_varspec_suffix): Delete declaration and rename to...
1181 (f_language::f_type_print_varspec_suffix): ...this.
1182 (f_type_print_base): Delete declaration and rename to...
1183 (f_language::f_type_print_base): ...this.
1184 * f-valprint.c (f_value_print_inner): Rename to...
1185 (f_language::value_print_inner): ...this.
1186 * parse.c: Delete 'f-lang.h' include.
1187
88cefd9b
AB
11882020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1189
1190 * language.h (language_defn::print_type): Add variable names in
1191 declaration, and update header comment.
1192
5399db93
AB
11932020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1194
1195 * ada-lang.c (ada_language::demangle): Rename to...
1196 (ada_language::demangle_symbol): ...this.
1197 * c-lang.c (cplus_language::demangle): Rename to...
1198 (cplus_language::demangle_symbol): ...this.
1199 * d-lang.c (d_language::demangle): Rename to...
1200 (d_language::demangle_symbol): ...this.
1201 * f-lang.c (f_language::demangle): Rename to...
1202 (f_language::demangle_symbol): ...this.
1203 * go-lang.c (go_language::demangle): Rename to...
1204 (go_language::demangle_symbol): ...this.
1205 * language.c (language_demangle): Update call to demangle_symbol.
1206 (auto_or_unknown_language::demangle): Rename to...
1207 (auto_or_unknown_language::demangle_symbol): ...this.
1208 * language.h (language_defn::demangle): Rename to...
1209 (language_defn::demangle_symbol): ...this.
1210 * objc-lang.c (objc_language::demangle): Rename to...
1211 (objc_language::demangle_symbol): ...this.
1212 * rust-lang.c (rust_language::demangle): Rename to...
1213 (rust_language::demangle_symbol): ...this.
1214
4b2f86ef
AB
12152020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1216
1217 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1218 (iterate_over_file_blocks): Replace use of macro with the macros
1219 definition.
1220
e74b39de
AB
12212020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1224 * valprint.c (maybe_print_array_index): Replace use of macro with
1225 the macros definition.
1226
00c696a6
AB
12272020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1228
1229 * ada-lang.c (ada_language::print_array_index): Call value_print
1230 directly.
1231 * language.c (language_defn::print_array_index): Likewise.
1232 * language.h (LA_VALUE_PRINT): Delete.
1233 * valprint.c (value_print): Call value_print on the
1234 current_language directly.
1235
d3b67c56
AB
12362020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * language.h (LA_PRINT_TYPEDEF): Delete.
1239 * typeprint.c (typedef_print): Call print_typedef directly on the
1240 current_language object.
1241
790e2a12
AB
12422020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * m2-exp.y (m2_parse): Rename to...
1245 (m2_language::parser): ...this. Update function signature.
1246 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1247 (m2_op_print): Rename to...
1248 (m2_language::op_print_tab): ...this, and make const.
1249 (exp_descriptor_modula2): Rename to...
1250 (m2_language::exp_descriptor_modula2): ...this.
1251 (class m2_language): Move to m2-lang.h.
1252 (m2_language::language_arch_info): New function, moved out of
1253 class declaration.
1254 (m2_language::printchar): New function, body from m2_printchar.
1255 (m2_language::printstr): New function, moved out of class
1256 declaration.
1257 (m2_language::emitchar): Likewise.
1258 * m2-lang.h (m2_parse): Delete declaration.
1259 (m2_print_typedef): Delete declaration.
1260 (m2_value_print_inner): Delete declaration.
1261 (class m2_language): Class declaration moved from m2-lang.c,
1262 larger functions are left in m2-lang.c.
1263 * m2-typeprint.c (m2_print_typedef): Rename to...
1264 (m2_language::print_typedef): ...this, and update function
1265 signature.
1266 * m2-valprint.c (m2_value_print_inner): Rename to...
1267 (m2_language::value_print_inner): ...this, replace use of
1268 LA_PRINT_STRING with a direct call to printstr member function,
1269 and update recursive call.
1270
b01175fc
AB
12712020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * language.c (default_is_string_type_p): Delete, implementation
1274 moved into auto_or_unknown_language::is_string_type_p.
1275 (unk_op_print_tab): Moved into
1276 auto_or_unknown_language::opcode_print_table.
1277 (unknown_language_arch_info): Delete, implementation moved into
1278 auto_or_unknown_language::language_arch_info.
1279 (class auto_or_unknown_language): New class, member functions
1280 copied from unknown_language class, with some updates.
1281 (class unknown_language): Most member functions moved into
1282 auto_or_unknown_language class. Inherit from
1283 auto_or_unknown_language class.
1284 (class auto_language): Inherit from auto_or_unknown_language.
1285 Delete most member functions.
1286
1a97fe8c
HD
12872020-10-22 Hannes Domani <ssbssa@yahoo.de>
1288
1289 * stabsread.c (read_member_functions): Remove gdb_assert.
1290
6b9d0dfd
HD
12912020-10-22 Hannes Domani <ssbssa@yahoo.de>
1292
1293 * gdbtypes.c (init_complex_type): Check target type name.
1294
4b4bb603
SM
12952020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * target-debug.h (target_debug_print_struct_target_ops_p):
1298 Remove.
1299 (target_debug_print_async_callback_ftype_p): Remove.
1300 (target_debug_print_struct_trace_state_variable_p): Remove.
1301 (target_debug_print_struct_traceframe_info_p): Remove.
1302 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1303 (target_debug_print_enum_btrace_format): Remove.
1304 (target_debug_print_enum_info_proc_what): Remove.
1305 (target_debug_print_thread_info_pp): Remove.
1306
24f5300a
SM
13072020-10-22 Simon Marchi <simon.marchi@efficios.com>
1308
1309 * target.h (struct target_ops) <make_corefile_notes>:
1310 Change return type to unique pointer.
1311 * target.c (dummy_make_corefile_notes): Likewise.
1312 * exec.c (struct exec_target) <make_corefile_notes>:
1313 Likewise.
1314 (exec_target::make_corefile_notes): Likewise.
1315 * procfs.c (class procfs_target) <make_corefile_notes>:
1316 Likewise.
1317 (procfs_do_thread_registers): Adjust to unique pointer.
1318 (struct procfs_corefile_thread_data): Add constructor.
1319 <note_data>: Change type to unique pointer.
1320 (procfs_corefile_thread_callback): Adjust to unique pointer.
1321 (procfs_target::make_corefile_notes): Change return type to
1322 unique pointer.
1323 * target-delegates.c: Re-generate.
1324 * gcore.c (write_gcore_file_1): Adjust.
1325 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1326 New.
1327
5fb4027f
TV
13282020-10-22 Tom de Vries <tdevries@suse.de>
1329
1330 * block.c (find_block_in_blockvector): Make sure the returned block
1331 contains pc.
1332
4a636814
SM
13332020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1334
1335 PR gdb/26693
1336 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1337 parameter.
1338 (load_cu): Pass existing CU.
1339 (process_imported_unit_die): Likewise.
1340 (follow_die_offset): Likewise.
1341
1bd57575
LM
13422020-10-22 Luis Machado <luis.machado@linaro.org>
1343
1344 * corelow.c (core_target::xfer_partial): Also check for an empty
1345 m_core_unavailable_mappings vector.
1346
6b4c676c
AB
13472020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1350 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1351 * f-exp.y (arglist): Allow for a series of subranges.
1352 (subrange): Add cases for subranges with strides.
1353 * f-lang.c (value_f90_subarray): Catch use of array strides and
1354 throw an error.
1355 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1356
f2d8e4c5
AB
13572020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1358
1359 * expprint.c (print_subexp_standard): Change enum range_type to
1360 range_flag and rename variables to match.
1361 (dump_subexp_body_standard): Likewise.
1362 * expression.h (enum range_type): Rename to...
1363 (enum range_flag): ...this.
1364 (range_types): Rename to...
1365 (range_flags): ...this.
1366 * f-lang.c (value_f90_subarray): Change enum range_type to
1367 range_flag and rename variables to match.
1368 * parse.c (operator_length_standard): Likewise.
1369 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1370 range_type to range_flag.
1371 * rust-lang.c (rust_evaluate_funcall): Likewise.
1372 (rust_range): Likewise.
1373 (rust_compute_range): Likewise.
1374 (rust_subscript): Likewise.
1375
2f1b18db
AB
13762020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1377
1378 * expprint.c (print_subexp_standard): Update to reflect changes to
1379 enum range_type.
1380 (dump_subexp_body_standard): Likewise.
1381 * expression.h (enum range_type): Convert to a bit field enum, and
1382 make the enum unsigned.
1383 * f-exp.y (subrange): Update to reflect changes to enum
1384 range_type.
1385 * f-lang.c (value_f90_subarray): Likewise.
1386 * parse.c (operator_length_standard): Likewise.
1387 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1388 * rust-lang.c (rust_range): Likewise.
1389 (rust_compute_range): Likewise.
1390 (rust_subscript): Likewise.
1391
a46d1843
SM
13922020-10-21 Simon Marchi <simon.marchi@efficios.com>
1393
1394 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1395 (displaced_step_in_progress): Fix comment.
1396
c21f37a8
SM
13972020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1398
1399 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1400 * gdbarch.c: Re-generate.
1401 * gdbarch.h: Re-generate.
1402 * gcore.c (write_gcore_file_1): Adjust.
1403 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1404 constructor.
1405 <note_data>: Change type to unique pointer.
1406 <abort_iteration>: Change type to bool.
1407 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1408 (fbsd_collect_thread_registers): Return void, adjust.
1409 (struct fbsd_corefile_thread_data): Add construtor.
1410 <note_data>: Change type to unique pointer.
1411 (fbsd_corefile_thread): Adjust.
1412 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1413 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1414 to unique pointer, adjust.
1415 (struct linux_collect_regset_section_cb_data): Add constructor.
1416 <note_data>: Change type to unique pointer.
1417 <abort_iteration>: Change type to bool.
1418 (linux_collect_thread_registers): Return void, adjust.
1419 (struct linux_corefile_thread_data): Add constructor.
1420 <note_data>: Change type to unique pointer.
1421 (linux_corefile_thread): Adjust.
1422 (linux_make_corefile_notes): Return unique pointer, adjust.
1423
07fbbd01
SM
14242020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1425
1426 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1427 * gdbarch.c: Re-generate.
1428 * gdbarch.h: Re-generate.
1429 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1430 bool.
1431 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1432 Likewise.
1433 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1434 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1435 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1436 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1437
39535193
SM
14382020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1439
1440 * gdbarch.sh: Make generated predicates return bool.
1441 * gdbarch.c: Re-generate.
1442 * gdbarch.h: Re-generate.
1443
ad523d01
TT
14442020-10-20 Tom Tromey <tom@tromey.com>
1445
1446 * varobj-iter.h (struct varobj_item): Remove typedef.
1447
c4464ade
SM
14482020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1449
1450 * infrun.c (currently_stepping): Change int to bool
1451 (maybe_software_singlestep): Likewise.
1452 (show_stop_on_solib_events): Likewise.
1453 (stepping_past_nonsteppable_watchpoint): Likewise.
1454 (displaced_step_in_progress_any_inferior): Likewise.
1455 (displaced_step_in_progress_thread): Likewise.
1456 (keep_going_stepped_thread): Likewise.
1457 (thread_still_needs_step_over): Likewise.
1458 (start_step_over): Likewise.
1459 (do_target_resume): Likewise.
1460 (resume_1): Likewise.
1461 (clear_proceed_status): Likewise.
1462 (thread_still_needs_step_over_bp): Likewise.
1463 (proceed): Likewise.
1464 (switch_back_to_stepped_thread): Likewise.
1465 (adjust_pc_after_break): Likewise.
1466 (stepped_in_from): Likewise.
1467 (handle_stop_requested): Likewise.
1468 (handle_syscall_event): Likewise.
1469 (handle_no_resumed): Likewise.
1470 (handle_inferior_event): Likewise.
1471 (finish_step_over): Likewise.
1472 (handle_signal_stop): Likewise.
1473 (process_event_stop_test): Likewise.
1474
2eb20436
SM
14752020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1476
1477 * infrun.c (get_displaced_stepping_state): Fix comment.
1478
e0c45ded
AS
14792020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1480
1481 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1482
22cc388e
TT
14832020-10-19 Tom Tromey <tromey@adacore.com>
1484
1485 PR tui/26719
1486 * tui/tui-winsource.h (struct tui_source_window_base)
1487 <refresh_window>: Rename from refresh_pad.
1488 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1489 Rename from refresh_pad.
1490 (tui_source_window_base::show_source_content)
1491 (tui_source_window_base::do_scroll_horizontal): Update.
1492
3c6eb4d4
TBA
14932020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1494
1495 * thread.c (_initialize_thread): Fine-tune the help text of
1496 'info threads'.
1497
26703721
TBA
14982020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1499
1500 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1501
61c26be8
MS
15022020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1503
1504 * breakpoint.c (handle_jit_event): Add an argument, change how
1505 `jit_event_handler` is called.
1506
932539d7
TT
15072020-10-17 Tom Tromey <tom@tromey.com>
1508
1509 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1510 (scan_xcoff_symtab): Update.
1511 * psymtab.h (class psymtab_storage) <global_psymbols,
1512 static_psymbols, current_global_psymbols,
1513 current_static_psymbols>: Remove.
1514 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1515 (match_partial_symbol, lookup_partial_symbol): Update.
1516 (print_partial_symbols): Change parameters.
1517 (dump_psymtab, recursively_search_psymtabs)
1518 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1519 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1520 (concat): Remove.
1521 (end_psymtab_common): Simplify.
1522 (append_psymbol_to_list): Change parameters.
1523 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1524 (init_psymbol_list): Simplify.
1525 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1526 * psympriv.h (struct partial_symtab) <empty>: New method.
1527 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1528 Remove.
1529 <global_psymbols, static_psymbols>: New members.
1530 <add_psymbol>: New methods.
1531 (add_psymbol_to_list): Don't declare.
1532 (psymbol_placement): Move earlier.
1533 * mdebugread.c (parse_partial_symbols): Update.
1534 (handle_psymbol_enumerators): Change parameters.
1535 (mdebug_expand_psymtab): Update.
1536 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1537 (add_partial_symbol): Update.
1538 * dwarf2/index-write.c (write_psymbols): Change parameters.
1539 (write_one_signatured_type): Update.
1540 (recursively_count_psymbols): Update.
1541 (recursively_write_psymbols): Update.
1542 (class debug_names) <recursively_write_psymbols>: Update.
1543 <write_psymbols>: Change parameters.
1544 <write_one_signatured_type>: Update.
1545 * dbxread.c (read_dbx_symtab): Update.
1546 (dbx_end_psymtab): Use partial_symtab::empty.
1547 * ctfread.c (struct ctf_context) <pst>: New member.
1548 (create_partial_symtab): Set it.
1549 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1550 (scan_partial_symbols): Use the psymtab's context. Update.
1551
cfabbd35
TT
15522020-10-17 Tom Tromey <tom@tromey.com>
1553
1554 * valprint.c (generic_value_print): Remove comment.
1555 * m2-valprint.c (m2_value_print_inner): Remove comment.
1556 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1557 type.
1558
520596f2
TV
15592020-10-17 Tom de Vries <tdevries@suse.de>
1560
1561 PR symtab/26317
1562 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1563 symbol main.
1564
76547ab3
TV
15652020-10-14 Tom de Vries <tdevries@suse.de>
1566
1567 PR gdb/26733
1568 * solib.c (solib_contains_address_p): Handle
1569 'solib->sections == nullptr'.
1570
d3a07122
SM
15712020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 PR gdb/26642
1574 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1575 target can't do async.
1576 * target.c (target_wait): Assert that we don't pass
1577 TARGET_WNOHANG to a target that can't async.
1578
1b71cfcf
KR
15792020-10-13 Kamil Rytarowski <n54@gmx.com>
1580
1581 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1582 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1583 * alpha-bsd-nat.c: Adjust include.
1584 * alpha-bsd-tdep.h: Adjust comment.
1585 * alpha-nbsd-tdep.c: Rename to ...
1586 * alpha-netbsd-tdep.c: ... this, adjust include.
1587 * amd64-nbsd-nat.c: Rename to ...
1588 * amd64-netbsd-nat.c: ... this, adjust include.
1589 * amd64-nbsd-tdep.c: Rename to ...
1590 * amd64-netbsd-tdep.c: ... this, adjust include.
1591 * amd64-tdep.h: Adjust include.
1592 * arm-nbsd-nat.c: Rename to ...
1593 * arm-netbsd-nat.c: ... this, adjust include.
1594 * arm-nbsd-tdep.c: Rename to ...
1595 * arm-netbsd-tdep.c: ... this, adjust include.
1596 * arm-nbsd-tdep.h: Rename to ...
1597 * arm-netbsd-tdep.h: ... this, adjust include.
1598 * configure.nat: Adjust file lists.
1599 * configure.tgt: Likewise.
1600 * hppa-nbsd-nat.c: Rename to ...
1601 * hppa-netbsd-nat.c: ... this, adjust include.
1602 * hppa-nbsd-tdep.c: Rename to ...
1603 * hppa-netbsd-tdep.c: ... this, adjust include.
1604 * i386-nbsd-nat.c: Rename to ...
1605 * i386-netbsd-nat.c: ... this, adjust include.
1606 * i386-nbsd-tdep.c: Rename to ...
1607 * i386-netbsd-tdep.c: ... this, adjust include.
1608 * m68k-bsd-nat.c: Adjust include.
1609 * mips-nbsd-nat.c: Rename to ...
1610 * mips-netbsd-nat.c: ... this, adjust include.
1611 * mips-nbsd-tdep.c: Rename to ...
1612 * mips-netbsd-tdep.c: ... this, adjust include.
1613 * mips-nbsd-tdep.h: Rename to ...
1614 * mips-netbsd-tdep.h: ... this.
1615 * nbsd-nat.c: Rename to ...
1616 * netbsd-nat.c: ... this, adjust include.
1617 * nbsd-nat.h: Rename to ...
1618 * netbsd-nat.h: ... this, adjust include.
1619 * nbsd-tdep.c: Rename to ...
1620 * netbsd-tdep.c: ... this, adjust include.
1621 * nbsd-tdep.h: Rename to ...
1622 * netbsd-tdep.h: ... this.
1623 * ppc-nbsd-nat.c: Rename to ...
1624 * ppc-netbsd-nat.c: ... this, adjust include.
1625 * ppc-nbsd-tdep.c: Rename to ...
1626 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1627 * ppc-nbsd-tdep.h: Rename to ...
1628 * ppc-netbsd-tdep.h: ... this.
1629 * sh-nbsd-nat.c: Rename to ...
1630 * sh-netbsd-nat.c: ... this, adjust include.
1631 * sh-nbsd-tdep.c: Rename to ...
1632 * sh-netbsd-tdep.c: ... this, adjust include.
1633 * sparc-nbsd-nat.c: Rename to ...
1634 * sparc-netbsd-nat.c: ... this.
1635 * sparc-nbsd-tdep.c: Rename to ...
1636 * sparc-netbsd-tdep.c: ... this, adjust include.
1637 * sparc64-nbsd-nat.c: Rename to ...
1638 * sparc64-netbsd-nat.c: ... this.
1639 * sparc64-nbsd-tdep.c: Rename to ...
1640 * sparc64-netbsd-tdep.c: ... this, adjust include.
1641 * sparc64-tdep.h: Adjust comment.
1642 * vax-bsd-nat.c: Adjust include.
1643 * vax-nbsd-tdep.c: Rename to ...
1644 * vax-netbsd-tdep.c: ... this, adjust include.
1645
d7a78e5c
TT
16462020-10-12 Tom Tromey <tom@tromey.com>
1647
1648 * target.h (struct target_ops) <get_section_table>: Update.
1649 (target_get_section_table): Update.
1650 * target.c (target_get_section_table, target_section_by_addr)
1651 (memory_xfer_partial_1): Update.
1652 * target-section.h (target_section_table): Now an alias.
1653 * target-delegates.c: Rebuild.
1654 * target-debug.h (target_debug_print_target_section_table_p):
1655 Rename from target_debug_print_struct_target_section_table_p.
1656 * symfile.c (build_section_addr_info_from_section_table): Update.
1657 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1658 * solib-svr4.c (scan_dyntag): Update.
1659 * solib-dsbt.c (scan_dyntag): Update.
1660 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1661 Update.
1662 * record-full.c (record_full_core_target::xfer_partial): Update.
1663 * progspace.h (struct program_space) <target_sections>: Update.
1664 * exec.h (print_section_info): Update.
1665 * exec.c (exec_target::close, build_section_table)
1666 (add_target_sections, add_target_sections_of_objfile)
1667 (remove_target_sections, exec_on_vfork)
1668 (section_table_available_memory)
1669 (section_table_xfer_memory_partial)
1670 (exec_target::get_section_table, exec_target::xfer_partial)
1671 (print_section_info, set_section_command)
1672 (exec_set_section_address, exec_target::has_memory): Update.
1673 * corelow.c (core_target::build_file_mappings)
1674 (core_target::xfer_partial, core_target::info_proc_mappings)
1675 (core_target::info_proc_mappings): Update.
1676 * bfd-target.c (class target_bfd): Update
1677
eda214ce
TT
16782020-10-12 Tom Tromey <tom@tromey.com>
1679
1680 * progspace.c (program_space::~program_space): Don't call
1681 clear_section_table.
1682 * exec.h (clear_section_table): Don't declare.
1683 * exec.c (exec_target::close): Update.
1684 (clear_section_table): Remove.
1685
91840ee3
TT
16862020-10-12 Tom Tromey <tom@tromey.com>
1687
1688 * exec.c (add_target_sections_of_objfile): Simplify.
1689
2d128614
TT
16902020-10-12 Tom Tromey <tom@tromey.com>
1691
1692 * solib.c (solib_map_sections): Update.
1693 * record-full.c (record_full_core_open_1): Update.
1694 * exec.h (build_section_table): Return a target_section_table.
1695 * exec.c (exec_file_attach): Update.
1696 (build_section_table): Return a target_section_table.
1697 * corelow.c (core_target::core_target): Update.
1698 * bfd-target.c (target_bfd::target_bfd): Update.
1699
bb2a6777
TT
17002020-10-12 Tom Tromey <tom@tromey.com>
1701
1702 * target.c (target_section_by_addr, memory_xfer_partial_1):
1703 Update.
1704 * target-section.h (struct target_section_table): Use
1705 std::vector.
1706 * symfile.h (build_section_addr_info_from_section_table): Take a
1707 target_section_table.
1708 * symfile.c (build_section_addr_info_from_section_table): Take a
1709 target_section_table.
1710 * solist.h (struct so_list) <sections>: Change type.
1711 <sections_end>: Remove.
1712 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1713 (solib_contains_address_p): Update.
1714 * solib-svr4.c (scan_dyntag): Update.
1715 * solib-dsbt.c (scan_dyntag): Update.
1716 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1717 Update.
1718 * record-full.c (record_full_core_start, record_full_core_end):
1719 Remove.
1720 (record_full_core_sections): New global.
1721 (record_full_core_open_1, record_full_core_target::xfer_partial):
1722 Update.
1723 * exec.h (build_section_table, section_table_xfer_memory_partial)
1724 (add_target_sections): Take a target_section_table.
1725 * exec.c (exec_file_attach, clear_section_table): Update.
1726 (resize_section_table): Remove.
1727 (build_section_table, add_target_sections): Take a
1728 target_section_table.
1729 (add_target_sections_of_objfile, remove_target_sections)
1730 (exec_on_vfork): Update.
1731 (section_table_available_memory): Take a target_section_table.
1732 (section_table_read_available_memory): Update.
1733 (section_table_xfer_memory_partial): Take a target_section_table.
1734 (print_section_info, set_section_command)
1735 (exec_set_section_address, exec_target::has_memory): Update.
1736 * corelow.c (class core_target) <m_core_section_table,
1737 m_core_file_mappings>: Remove braces.
1738 <~core_target>: Remove.
1739 (core_target::core_target): Update.
1740 (core_target::~core_target): Remove.
1741 (core_target::build_file_mappings)
1742 (core_target::xfer_memory_via_mappings)
1743 (core_target::xfer_partial, core_target::info_proc_mappings):
1744 Update.
1745 * bfd-target.c (target_bfd::xfer_partial): Update.
1746 (target_bfd::target_bfd): Update.
1747 (target_bfd::~target_bfd): Remove.
1748
7b466b10
TT
17492020-10-12 Tom Tromey <tom@tromey.com>
1750
1751 * target.h (struct target_section, struct target_section_table):
1752 Move to target-section.h.
1753 * target-section.h: New file.
1754
87a37e5e
PA
17552020-10-12 Pedro Alves <pedro@palves.net>
1756
1757 PR exp/26602
1758 * valops.c (struct struct_field_searcher): New.
1759 (update_search_result): Rename to ...
1760 (struct_field_searcher::update_result): ... this. Simplify
1761 prototype. Record all found fields.
1762 (do_search_struct_field): Rename to ...
1763 (struct_field_searcher::search): ... this. Simplify prototype.
1764 Maintain stack of visited baseclass path. Call update_result for
1765 fields too. Keep searching fields in baseclasses instead of
1766 stopping at the first found field.
1767 (search_struct_field): Use struct_field_searcher. When looking
1768 for fields, report ambiguous access attempts.
1769
9370fd51
AB
17702020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * frame.c (inside_main_func): Check full symbols as well as
1773 minimal symbols.
1774
59c8a30b
JB
17752020-10-09 Joel Brobecker <brobecker@adacore.com>
1776
1777 * ada-lang.c (advance_wild_match): Rewrite the function's
1778 description. Change the type of target0, t0 and t1 to char.
1779
7c184d33
TT
17802020-10-09 Tom Tromey <tromey@adacore.com>
1781
1782 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1783
5c4258f4
TT
17842020-10-09 Tom Tromey <tromey@adacore.com>
1785
1786 * ada-lang.h (ada_encode): Return std::string.
1787 * ada-lang.c (ada_encode_1): Return std::string.
1788 (ada_encode): Likewise.
1789 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1790 Update.
1791 * ada-exp.y (block_lookup, write_var_or_type): Update.
1792
3d87245c
HD
17932020-10-09 Hannes Domani <ssbssa@yahoo.de>
1794
1795 PR exp/26714
1796 * printcmd.c (print_formatted): Handle void results as
1797 unformatted prints.
1798
bbb826f5
AB
17992020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * arch/aarch32.c (aarch32_create_target_description): Release the
1802 target_desc_up as late as possible.
1803 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1804 * arch/amd64.c (amd64_create_target_description): Likewise.
1805 * arch/arc.c (arc_create_target_description): Return a
1806 target_desc_up, don't release it.
1807 * arch/arc.h (arc_create_target_description): Update declaration.
1808 (arc_lookup_target_description): Move target_desc_up into the
1809 cache, and return a borrowed pointer.
1810 * arch/arm.c (arm_create_target_description): Release the
1811 target_desc_up as late as possible.
1812 * arch/i386.c (i386_create_target_description): Likewise.
1813 * arch/riscv.h (riscv_create_target_description): Update
1814 declaration to match definition.
1815 * arch/tic6x.c (tic6x_create_target_description): Release the
1816 target_desc_up as late as possible.
1817
361cb219
AB
18182020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1821 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1822
f5c4b229
JV
18232020-10-09 Jan Vrany <jan.vrany@labware.com>
1824
1825 * source.c (directory_command): Notify observers that "directories"
1826 parameter has changed.
1827
b2701685
TT
18282020-10-08 Tom Tromey <tom@tromey.com>
1829
1830 * cli/cli-cmds.c (print_disassembly): Style function name and
1831 addresses. Add _() wrappers.
1832
ada508b6
SV
18332020-10-08 Shahab Vahedi <shahab@synopsys.com>
1834
1835 * NEWS: Mention ARC support in GDBserver.
1836
51a948fd
AB
18372020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * arch/aarch32.c (aarch32_create_target_description): Release
1840 unique_ptr returned from allocate_target_description.
1841 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1842 * arch/amd64.c (amd64_create_target_description): Likewise.
1843 * arch/arc.c (arc_create_target_description): Likewise.
1844 * arch/arm.c (arm_create_target_description): Likewise.
1845 * arch/i386.c (i386_create_target_description): Likewise.
1846 * arch/riscv.c (riscv_create_target_description): Update return
1847 type. Handle allocate_target_description returning a unique_ptr.
1848 (riscv_lookup_target_description): Update to handle unique_ptr.
1849 * arch/tic6x.c (tic6x_create_target_description): Release
1850 unique_ptr returned from allocate_target_description.
1851 * features/microblaze-with-stack-protect.c: Regenerate.
1852 * features/microblaze.c: Regenerate.
1853 * features/mips-dsp-linux.c: Regenerate.
1854 * features/mips-linux.c: Regenerate.
1855 * features/mips64-dsp-linux.c: Regenerate.
1856 * features/mips64-linux.c: Regenerate.
1857 * features/nds32.c: Regenerate.
1858 * features/nios2.c: Regenerate.
1859 * features/or1k.c: Regenerate.
1860 * features/rs6000/powerpc-32.c: Regenerate.
1861 * features/rs6000/powerpc-32l.c: Regenerate.
1862 * features/rs6000/powerpc-403.c: Regenerate.
1863 * features/rs6000/powerpc-403gc.c: Regenerate.
1864 * features/rs6000/powerpc-405.c: Regenerate.
1865 * features/rs6000/powerpc-505.c: Regenerate.
1866 * features/rs6000/powerpc-601.c: Regenerate.
1867 * features/rs6000/powerpc-602.c: Regenerate.
1868 * features/rs6000/powerpc-603.c: Regenerate.
1869 * features/rs6000/powerpc-604.c: Regenerate.
1870 * features/rs6000/powerpc-64.c: Regenerate.
1871 * features/rs6000/powerpc-64l.c: Regenerate.
1872 * features/rs6000/powerpc-7400.c: Regenerate.
1873 * features/rs6000/powerpc-750.c: Regenerate.
1874 * features/rs6000/powerpc-860.c: Regenerate.
1875 * features/rs6000/powerpc-altivec32.c: Regenerate.
1876 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1877 * features/rs6000/powerpc-altivec64.c: Regenerate.
1878 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1879 * features/rs6000/powerpc-e500.c: Regenerate.
1880 * features/rs6000/powerpc-e500l.c: Regenerate.
1881 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1882 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1883 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1884 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1885 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1886 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1887 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1888 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1889 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1890 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1891 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1892 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1893 * features/rs6000/powerpc-vsx32.c: Regenerate.
1894 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1895 * features/rs6000/powerpc-vsx64.c: Regenerate.
1896 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1897 * features/rs6000/rs6000.c: Regenerate.
1898 * features/rx.c: Regenerate.
1899 * features/s390-gs-linux64.c: Regenerate.
1900 * features/s390-linux32.c: Regenerate.
1901 * features/s390-linux32v1.c: Regenerate.
1902 * features/s390-linux32v2.c: Regenerate.
1903 * features/s390-linux64.c: Regenerate.
1904 * features/s390-linux64v1.c: Regenerate.
1905 * features/s390-linux64v2.c: Regenerate.
1906 * features/s390-te-linux64.c: Regenerate.
1907 * features/s390-tevx-linux64.c: Regenerate.
1908 * features/s390-vx-linux64.c: Regenerate.
1909 * features/s390x-gs-linux64.c: Regenerate.
1910 * features/s390x-linux64.c: Regenerate.
1911 * features/s390x-linux64v1.c: Regenerate.
1912 * features/s390x-linux64v2.c: Regenerate.
1913 * features/s390x-te-linux64.c: Regenerate.
1914 * features/s390x-tevx-linux64.c: Regenerate.
1915 * features/s390x-vx-linux64.c: Regenerate.
1916 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1917 from allocate_target_description.
1918 * target-descriptions.c (allocate_target_description): Update
1919 return type.
1920 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1921 allocate_target_description.
1922
485c47e5
TT
19232020-10-07 Tom Tromey <tromey@adacore.com>
1924
1925 * unittests/search-memory-selftests.c: New file.
1926 * Makefile.in (SELFTESTS_SRCS): Add
1927 unittests/search-memory-selftests.c.
1928
3a135a91
TT
19292020-10-07 Tom Tromey <tromey@adacore.com>
1930
1931 PR gdb/16930:
1932 * findcmd.c (_initialize_mem_search): Mention that the range is
1933 inclusive.
1934
4a72de73
TT
19352020-10-07 Tom Tromey <tromey@adacore.com>
1936
1937 * target.h (simple_search_memory): Don't declare.
1938 * target.c (simple_search_memory): Move to gdbsupport.
1939 (default_search_memory): Update.
1940 * remote.c (remote_target::search_memory): Update.
1941
a038ffd8
SM
19422020-10-07 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * Makefile.in (COMPILE): Add CXXFLAGS.
1945 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1946 (check-headers): Add CXXFLAGS.
1947
cc463201
AK
19482020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1949
1950 * arc-linux-tdep.h: New file.
1951 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1952 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1953 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1954 arc_linux_gregset, arc_linux_v2_regset,
1955 arc_linux_iterate_over_regset_sections,
1956 arc_linux_core_read_description): Implement.
1957 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1958 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1959 (arc_gdbarch_features_create): Add.
1960 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1961
e4bd363f
SV
19622020-10-07 Shahab Vahedi <shahab@synopsys.com>
1963
1964 * arch/arc.h: Rename "arc_gdbarch_features" to
1965 "arc_arch_features".
1966 * arc-tdep.h: Likewise.
1967 * arc-tdep.c: Likewise.
1968
b68bef99
TBA
19692020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1970
1971 * infcmd.c (attach_command): Remove the redundant call to
1972 `clear_proceed_status`.
1973
4641551a
KR
19742020-10-07 Kamil Rytarowski <n54@gmx.com>
1975
1976 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1977
91e5e8db
KR
19782020-10-07 Kamil Rytarowski <n54@gmx.com>
1979
1980 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1981 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1982 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1983
64c03bdb
SM
19842020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1985
1986 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1987 (_initialize_break_catch_sig): Don't allocate array.
1988
31a8f60f
AB
19892020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1990
1991 * symtab.c (find_pc_line): Return unmapped addresses when the
1992 requested address is also unmapped.
1993
9e6dbd8b
SM
19942020-10-05 Simon Marchi <simon.marchi@efficios.com>
1995
1996 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1997 tui/tui-out.h.
1998
a1d217e8
SM
19992020-10-05 Simon Marchi <simon.marchi@efficios.com>
2000
2001 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2002 type::is_vector instead of TYPE_VECTOR.
2003
7d144117
SM
20042020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2005
2006 * auto-load.c (auto_load_objfile_script_1): Don't use
2007 debugfile_holder as temporary variable when stripping drive
2008 letter.
2009
cd096ec8
HD
20102020-10-05 Hannes Domani <ssbssa@yahoo.de>
2011
2012 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2013 Add TYPE_CODE_COMPLEX.
2014 (amd64_windows_return_value): Fix types returned via XMM0.
2015
b58e7f72
AH
20162020-10-05 Alan Hayward <alan.hayward@arm.com>
2017
2018 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2019 AArch64/ARM maintainers.
2020
8d378f27
SM
20212020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2022
2023 * NEWS: Mention set/show debug event-loop.
2024
d5519913
TT
20252020-10-02 Tom Tromey <tromey@adacore.com>
2026
2027 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2028 REG_EXTENDED.
2029
18b67edc
SM
20302020-10-02 Simon Marchi <simon.marchi@efficios.com>
2031
2032 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2033 * procfs.c (procfs_inferior_created): Remove.
2034 (_initialize_procfs): Don't register procfs_inferior_created.
2035
6b01403b
SM
20362020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2037
2038 * async-event.c (invoke_async_signal_handlers): Add debug
2039 print.
2040 (check_async_event_handlers): Likewise.
2041 * event-top.c (show_debug_event_loop): New function.
2042 (_initialize_event_top): Register "set debug event-loop"
2043 setting.
2044
ba988419
SM
20452020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2046
2047 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2048 * debug.h: Remove.
2049 * infrun.c: Include gdbsupport/common-debug.h.
2050 * linux-nat.c: Likewise.
2051
db20ebdf
SM
20522020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2053
2054 * async-event.h (create_async_signal_handler): Add name
2055 parameter.
2056 (create_async_event_handler): Likewise.
2057 * async-event.c (struct async_signal_handler) <name>: New field.
2058 (struct async_event_handler) <name>: New field.
2059 (create_async_signal_handler): Assign name.
2060 (create_async_event_handler): Assign name.
2061 * event-top.c (async_init_signals): Pass name when creating
2062 handler.
2063 * infrun.c (_initialize_infrun): Likewise.
2064 * record-btrace.c (record_btrace_push_target): Likewise.
2065 * record-full.c (record_full_open): Likewise.
2066 * remote-notif.c (remote_notif_state_allocate): Likewise.
2067 * remote.c (remote_target::open_1): Likewise.
2068 * tui/tui-win.c (tui_initialize_win): Likewise.
2069
2554f6f5
SM
20702020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2071
2072 * async-event.c (initialize_async_signal_handlers): Pass name to
2073 add_file_handler
2074 * event-top.c (ui_register_input_event_handler): Likewise.
2075 * linux-nat.c (linux_nat_target::async): Likewise.
2076 * run-on-main-thread.c (_initialize_run_on_main_thread):
2077 Likewise
2078 * ser-base.c (reschedule): Likewise.
2079 (ser_base_async): Likewise.
2080 * tui/tui-io.c: Likewise.
2081 * top.h (struct ui) <num>: New field.
2082 * top.c (highest_ui_num): New variable.
2083 (ui::ui): Initialize num.
2084
a7aba266
SM
20852020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2086
2087 * observable.h <inferior_created>: Remove parameters. Update all
2088 listeners.
2089 * inferior.h (post_create_inferior): Remove target parameter.
2090 Update all callers.
2091
048fde1e 20922020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2093
2094 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2095 and DW_MACRO_undef_strx.
2096 (dwarf_decode_macros): Likewise
2097 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2098 which is the value of DW_AT_str_offsets_base.
2099 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2100 str_offsets_base.
2101
064280be
KR
21022020-10-01 Kamil Rytarowski <n54@gmx.com>
2103
2104 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2105
6ff33035
KR
21062020-10-01 Kamil Rytarowski <n54@gmx.com>
2107
2108 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2109 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2110
1eb6eb79
KR
21112020-10-01 Kamil Rytarowski <n54@gmx.com>
2112
2113 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2114
95eb9e54
TV
21152020-09-30 Tom de Vries <tdevries@suse.de>
2116
2117 PR symtab/26683
2118 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2119
cae21f8e
TT
21202020-09-30 Tom Tromey <tromey@adacore.com>
2121
2122 * dwarf2/read.c (handle_variant): Use constant_value.
2123
529908cb
TT
21242020-09-29 Tom Tromey <tom@tromey.com>
2125
2126 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2127 (read_file_scope, dwarf2_get_pc_bounds)
2128 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2129 (read_structure_type, handle_struct_member_die)
2130 (read_enumeration_type, read_array_type, read_set_type)
2131 (read_tag_pointer_type, read_tag_reference_type)
2132 (read_subroutine_type, read_base_type, read_subrange_type)
2133 (read_full_die_1, partial_die_info::read)
2134 (partial_die_info::read, by, new_symbol)
2135 (dwarf2_const_value_data, dwarf2_const_value_attr)
2136 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2137 (prepare_one_comp_unit): Update.
2138 * dwarf2/attribute.h (DW_UNSND): Remove.
2139
c45bc3f8
TT
21402020-09-29 Tom Tromey <tom@tromey.com>
2141
2142 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2143 (read_subroutine_type, partial_die_info::read)
2144 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2145 (dwarf2_add_member_fn): Update.
2146 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2147 * dwarf2/attribute.c (attribute::as_boolean): New method.
2148
23dca5c3
TT
21492020-09-29 Tom Tromey <tom@tromey.com>
2150
2151 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2152 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2153 method.
2154 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2155
52c14d11
TT
21562020-09-29 Tom Tromey <tom@tromey.com>
2157
2158 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2159 the attribute's form.
2160
e8e5c158
TT
21612020-09-29 Tom Tromey <tom@tromey.com>
2162
2163 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2164 (dwarf2_add_member_fn): Update.
2165 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2166 * dwarf2/attribute.c (attribute::defaulted): New method, from
2167 is_valid_DW_AT_defaulted.
2168
d4df075e
TT
21692020-09-29 Tom Tromey <tom@tromey.com>
2170
2171 * dwarf2/read.c (dw2_get_file_names_reader)
2172 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2173 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2174 (dwarf2_symbol_mark_computed): Use as_unsigned.
2175 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2176 method.
2177 <form_is_section_offset>: Update comment.
2178
bf23a268
TT
21792020-09-29 Tom Tromey <tom@tromey.com>
2180
2181 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2182 dwarf2_default_access_attribute. Look up attribute.
2183 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2184 Update.
2185
7a5f294d
TT
21862020-09-29 Tom Tromey <tom@tromey.com>
2187
2188 * dwarf2/read.c (skip_one_die): Update.
2189 (read_full_die_1): Change how reprocessing is done.
2190 (partial_die_info::read): Update.
2191 (read_attribute_value): Remove need_reprocess parameter.
2192 (read_attribute): Likewise.
2193 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2194 New method.
2195
36d378cf
TT
21962020-09-29 Tom Tromey <tom@tromey.com>
2197
2198 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2199 (dwarf2_const_value_attr, dump_die_shallow)
2200 (dwarf2_fetch_constant_bytes): Update.
2201 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2202 comment.
2203 <set_address>: New method.
2204 (DW_ADDR): Remove.
2205 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2206 (attribute::as_string, attribute::as_address): Add assert.
2207
fe56917a
TT
22082020-09-29 Tom Tromey <tom@tromey.com>
2209
2210 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2211 (read_attribute_reprocess, read_attribute_value): Update.
2212 (read_attribute): Clear requires_reprocessing.
2213 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2214 form_requires_reprocessing>: New methods.
2215 <string_init>: Clear requires_reprocessing.
2216 <set_unsigned_reprocess>: New method.
2217 <name>: Shrink by one bit.
2218 <requires_reprocessing>: New member.
2219 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2220 method.
2221
414ad644
TT
22222020-09-29 Tom Tromey <tom@tromey.com>
2223
2224 * dwarf2/read.c (read_attribute_value): Update.
2225 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2226 set_unsigned>: New methods.
2227 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2228
1bc397c5
TT
22292020-09-29 Tom Tromey <tom@tromey.com>
2230
2231 * dwarf2/read.c (get_alignment, read_array_order)
2232 (read_attribute_value, dwarf2_const_value_attr)
2233 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2234 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2235 New methods.
2236 (DW_SND): Remove.
2237
630ed6b9
TT
22382020-09-29 Tom Tromey <tom@tromey.com>
2239
2240 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2241 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2242 Update.
2243 * dwarf2/attribute.h (struct attribute) <as_signature,
2244 set_signature>: New methods.
2245 (DW_SIGNATURE): Remove.
2246
9d2246fc
TT
22472020-09-29 Tom Tromey <tom@tromey.com>
2248
2249 * dwarf2/read.c (read_call_site_scope)
2250 (handle_data_member_location, dwarf2_add_member_fn)
2251 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2252 (partial_die_info::read, read_attribute_value)
2253 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2254 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2255 (dwarf2_symbol_mark_computed): Update.
2256 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2257 methods.
2258 (DW_BLOCK): Remove.
2259 * dwarf2/attribute.c (attribute::form_is_block): Add
2260 DW_FORM_data16.
2261
c6481205
TT
22622020-09-29 Tom Tromey <tom@tromey.com>
2263
2264 * dwarf2/read.c (read_cutu_die_from_dwo)
2265 (read_attribute_reprocess, read_attribute_value, read_attribute)
2266 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2267 (dwarf2_fetch_constant_bytes): Update.
2268 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2269 <set_string_noncanonical, set_string_canonical>: New methods.
2270 <string_is_canonical>: Update comment.
2271 <canonical_string_p>: Add assert.
2272 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2273 * dwarf2/attribute.c (attribute::form_is_string): New method.
2274 (attribute::string): Use it.
2275
3b64bf15
TT
22762020-09-29 Tom Tromey <tom@tromey.com>
2277
2278 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2279 (dump_die_shallow): Use canonical_string_p.
2280 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2281 method.
2282
2c830f54
TT
22832020-09-29 Tom Tromey <tom@tromey.com>
2284
2285 * dwarf2/read.c (partial_die_info::read)
2286 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2287 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2288 attribute::as_string.
2289
6c412691
TT
22902020-09-29 Tom Tromey <tom@tromey.com>
2291
2292 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2293 DW_ADDR.
2294 (attribute::string): Don't use DW_STRING.
2295 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2296 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2297
95f982e5
TT
22982020-09-29 Tom Tromey <tom@tromey.com>
2299
2300 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2301 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2302 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2303 * dwarf2/attribute.h (struct attribute): Rename methods.
2304 * dwarf2/attribute.c (attribute::as_address): Rename from
2305 value_as_address.
2306 (attribute::as_string): Rename from value_as_string.
2307
f800b00e
TT
23082020-09-29 Tom Tromey <tom@tromey.com>
2309
2310 * dwarf2/read.c (partial_die_info::read) <case
2311 DW_AT_linkage_name>: Use value_as_string.
2312 (dwarf2_string_attr): Use value_as_string.
2313 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2314 method.
2315 * dwarf2/attribute.c (attribute::value_as_string): New method.
2316
de38d64a
PA
23172020-09-29 Pedro Alves <pedro@palves.net>
2318
2319 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2320 defined before using '#pragma GCC diagnostic' instead of checking
2321 __clang__.
2322
9aed480c
TT
23232020-09-28 Tom Tromey <tom@tromey.com>
2324
2325 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2326 (handle_signal_stop): Update.
2327 * procfs.c (procfs_target::insert_watchpoint): Update.
2328 * target.h (target_have_steppable_watchpoint): Now a function.
2329
8a3ecb79
TT
23302020-09-28 Tom Tromey <tom@tromey.com>
2331
2332 * infrun.c (set_schedlock_func): Update.
2333 * target.h (target_can_lock_scheduler): Now a function.
2334
55f6301a
TT
23352020-09-28 Tom Tromey <tom@tromey.com>
2336
2337 * inferior.h (class inferior) <has_execution>: Update.
2338 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2339 * valops.c (find_function_in_inferior)
2340 (value_allocate_space_in_inferior): Update.
2341 * top.c (kill_or_detach): Update.
2342 * target.c (target_preopen, set_target_permissions): Update.
2343 (target_has_execution_current): Remove.
2344 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2345 Update.
2346 * solib.c (update_solib_list, reload_shared_libraries): Update.
2347 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2348 * solib-dsbt.c (enable_break): Update.
2349 * score-tdep.c (score7_fetch_inst): Update.
2350 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2351 Update.
2352 * remote.c (remote_target::start_remote)
2353 (remote_target::remote_check_symbols, remote_target::open_1)
2354 (remote_target::remote_detach_1, remote_target::verify_memory)
2355 (remote_target::xfer_partial, remote_target::read_description)
2356 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2357 * record-full.c (record_full_open_1): Update.
2358 * record-btrace.c (record_btrace_target_open): Update.
2359 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2360 (value_nsstring): Update.
2361 * linux-thread-db.c (add_thread_db_info)
2362 (thread_db_find_new_threads_silently, check_thread_db_callback)
2363 (try_thread_db_load_1, record_thread): Update.
2364 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2365 Update.
2366 * linux-fork.c (checkpoint_command): Update.
2367 * infrun.c (set_non_stop, set_observer_mode)
2368 (check_multi_target_resumption, for_each_just_stopped_thread)
2369 (maybe_remove_breakpoints, normal_stop)
2370 (class infcall_suspend_state): Update.
2371 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2372 (info_program_command, attach_command): Update.
2373 * infcall.c (call_function_by_hand_dummy): Update.
2374 * inf-loop.c (inferior_event_handler): Update.
2375 * gcore.c (gcore_command, derive_heap_segment): Update.
2376 * exec.c (exec_file_command): Update.
2377 * eval.c (evaluate_subexp): Update.
2378 * compile/compile.c (compile_to_object): Update.
2379 * cli/cli-dump.c (restore_command): Update.
2380 * breakpoint.c (update_watchpoint)
2381 (update_inserted_breakpoint_locations)
2382 (insert_breakpoint_locations, get_bpstat_thread): Update.
2383 * target.h (target_has_execution): Remove macro.
2384 (target_has_execution_current): Don't declare.
2385 (target_has_execution): Rename from target_has_execution_1. Add
2386 argument default.
2387
05374cfd
TT
23882020-09-28 Tom Tromey <tom@tromey.com>
2389
2390 * mi/mi-main.c (exec_reverse_continue)
2391 (mi_cmd_list_target_features): Update.
2392 * infrun.c (set_exec_direction_func): Update.
2393 * target.c (default_execution_direction): Update.
2394 * reverse.c (exec_reverse_once): Update.
2395 * target.h (target_can_execute_reverse): Now a function.
2396
9dccd06e
TT
23972020-09-28 Tom Tromey <tom@tromey.com>
2398
2399 * tui/tui-regs.c (tui_get_register)
2400 (tui_data_window::show_registers): Update.
2401 * thread.c (scoped_restore_current_thread::restore)
2402 (scoped_restore_current_thread::scoped_restore_current_thread):
2403 Update.
2404 * regcache-dump.c (regcache_print): Update.
2405 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2406 Update.
2407 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2408 * mep-tdep.c (current_me_module, current_options): Update.
2409 * linux-thread-db.c (thread_db_load): Update.
2410 * infcmd.c (registers_info, info_vector_command)
2411 (info_float_command): Update.
2412 * ia64-tdep.c (ia64_frame_prev_register)
2413 (ia64_sigtramp_frame_prev_register): Update.
2414 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2415 * gcore.c (derive_stack_segment): Update.
2416 * frame.c (get_current_frame, has_stack_frames): Update.
2417 * findvar.c (language_defn::read_var_value): Update.
2418 * arm-tdep.c (arm_pc_is_thumb): Update.
2419 * target.c (target_has_registers): Rename from
2420 target_has_registers_1.
2421 * target.h (target_has_registers): Remove macro.
2422 (target_has_registers): Rename from target_has_registers_1.
2423
841de120
TT
24242020-09-28 Tom Tromey <tom@tromey.com>
2425
2426 * windows-tdep.c (tlb_make_value): Update.
2427 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2428 * thread.c (scoped_restore_current_thread::restore)
2429 (scoped_restore_current_thread::scoped_restore_current_thread)
2430 (thread_command): Update.
2431 * stack.c (backtrace_command_1, frame_apply_level_command)
2432 (frame_apply_all_command, frame_apply_command): Update.
2433 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2434 Update.
2435 * gcore.c (derive_stack_segment): Update.
2436 * frame.c (get_current_frame, has_stack_frames): Update.
2437 * auxv.c (info_auxv_command): Update.
2438 * ada-tasks.c (ada_build_task_list): Update.
2439 * target.c (target_has_stack): Rename from target_has_stack_1.
2440 * target.h (target_has_stack): Remove macro.
2441 (target_has_stack): Rename from target_has_stack_1.
2442
a739972c
TT
24432020-09-28 Tom Tromey <tom@tromey.com>
2444
2445 * target.c (target_has_memory): Rename from target_has_memory_1.
2446 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2447 * thread.c (scoped_restore_current_thread::restore)
2448 (scoped_restore_current_thread::scoped_restore_current_thread):
2449 Update.
2450 * frame.c (get_current_frame, has_stack_frames): Update.
2451 * target.h (target_has_memory): Remove macro.
2452 (target_has_memory): Rename from target_has_memory_1.
2453
5b8a4776
TT
24542020-09-28 Tom Tromey <tom@tromey.com>
2455
2456 * target.c (target_has_all_memory_1): Remove.
2457 * target.h (target_has_all_memory): Remove define.
2458 (target_has_all_memory_1): Don't declare.
2459
bd356ec6
SM
24602020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2461
2462 * ser-base.c: Adjust comments formatting.
2463
2c72d5e5
TT
24642020-09-27 Tom Tromey <tom@tromey.com>
2465
2466 PR tui/25342:
2467 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2468
35a98237
TT
24692020-09-27 Tom Tromey <tom@tromey.com>
2470
2471 PR tui/25342:
2472 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2473
9e820dec
TT
24742020-09-27 Tom Tromey <tom@tromey.com>
2475
2476 * unittests/tui-selftests.c: Update.
2477 * tui/tui-winsource.h (struct tui_source_window_base)
2478 <extra_margin, show_line_number, refresh_pad>: New methods.
2479 <m_max_length, m_pad>: New members.
2480 (tui_copy_source_line): Update.
2481 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2482 first_col, line_width, ndigits parameters. Add length.
2483 (tui_source_window_base::show_source_line): Write to pad. Line
2484 number now 0-based.
2485 (tui_source_window_base::refresh_pad): New method.
2486 (tui_source_window_base::show_source_content): Write to pad. Call
2487 refresh_pad.
2488 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2489 not refill.
2490 (tui_source_window_base::update_exec_info): Call
2491 show_line_number.
2492 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2493 method.
2494 <m_digits>: New member.
2495 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2496 and m_max_length.
2497 (tui_source_window::show_line_number): New method.
2498 * tui/tui-io.h (tui_puts): Fix comment.
2499 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2500 m_max_length.
2501
c15c15c8
TT
25022020-09-27 Tom Tromey <tom@tromey.com>
2503
2504 * tui/tui-winsource.c
2505 (tui_source_window_base::set_is_exec_point_at): Don't call
2506 show_source_line.
2507
149830c1
TT
25082020-09-27 Tom Tromey <tom@tromey.com>
2509
2510 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2511 method.
2512 <erase>: Update.
2513 <cursor_x, cursor_y>: Remove.
2514 <m_inner_window>: New member.
2515 (tui_py_window::rerender): Create inner window.
2516 (tui_py_window::output): Write to inner window.
2517
8f9929bb
GR
25182020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2519
2520 PR python/26586
2521 * cli/cli-script.c (execute_control_commands): don't set
2522 instream to nullptr here as this breaks the from_tty argument
2523 to gdb.execute in Python.
2524 (execute_user_command): set instream to nullptr here instead.
2525
956bdb59
SM
25262020-09-25 Simon Marchi <simon.marchi@efficios.com>
2527
2528 * infrun.h (infrun_debug_printf): Fix formatting.
2529 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2530
3b93626b
SJ
25312020-09-25 Saagar Jha <saagar@saagarjha.com>
2532
2533 * compile/compile-object-load.h (struct munmap_list): Add
2534 explicitly-defined move constructor.
2535
b551a89f
TT
25362020-09-24 Tom Tromey <tromey@adacore.com>
2537
2538 PR tui/26638:
2539 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2540 method.
2541 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2542 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2543 (tui_prev_win): Rewrite.
2544
99bb393f
HD
25452020-09-23 Hannes Domani <ssbssa@yahoo.de>
2546
2547 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2548 in WOW64 processes as SIGINT.
2549 * nat/windows-nat.h: Make wow64_process a shared variable.
2550 * windows-nat.c: Remove static wow64_process variable.
2551
20a5fcbd
TT
25522020-09-23 Tom Tromey <tom@tromey.com>
2553
2554 PR symtab/25470:
2555 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2556 offset and bit size.
2557 * printcmd.c (print_scalar_formatted): Handle zero-length
2558 integer.
2559 (print_scalar_formatted): Use bit_size_differs_p.
2560 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2561 constant.
2562 (union type_specific): <int_stuff>: New member.
2563 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2564 methods.
2565 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2566 TYPE_SPECIFIC_FIELD.
2567 (recursive_dump_type, copy_type_recursive): Update.
2568 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2569 DW_AT_data_bit_offset.
2570
bac51ab7
TT
25712020-09-23 Tom Tromey <tom@tromey.com>
2572
2573 * utils.h (class gdb_argv): Add move operators.
2574 <append>: New methods.
2575 * compile/compile.c (build_argc_argv): Remove.
2576 (compile_args_argc): Remove.
2577 (compile_args_argv): Change type.
2578 (set_compile_args): Simplify.
2579 (append_args): Remove.
2580 (filter_args): Remove argcp parameter.
2581 (get_args): Return gdb_argv. Simplify.
2582 (compile_to_object): Update.
2583
92677124
TT
25842020-09-23 Tom Tromey <tom@tromey.com>
2585
2586 * compile/compile-object-run.c (do_module_cleanup)
2587 <~do_module_cleanup> :Remove.
2588 (do_module_cleanup): Update.
2589 * compile/compile-object-load.h (struct munmap_list): Add move
2590 assignment operator.
2591 <source_file>: Now a std::string.
2592 <munmap_list>: Rename. No longer a pointer.
2593 * compile/compile-object-load.c (struct setup_sections_data): Add
2594 constructor.
2595 <setup_one_section>: Declare.
2596 <munmap_list>: Move earlier.
2597 <m_bfd>: New member.
2598 <m_last_size, m_last_section_first, m_last_prot,
2599 m_last_max_alignment>: Rename, add initializers where needed.
2600 (setup_sections_data::setup_one_section): Rename from
2601 setup_sections. Update.
2602 (compile_object_load): Update. Don't use bfd_map_over_sections.
2603
e616f60a
TT
26042020-09-23 Tom Tromey <tom@tromey.com>
2605
2606 * compile/compile-object-run.c (struct do_module_cleanup): Add
2607 parameters to constructor. Update destructor.
2608 <source_file, scope, scope_data, out_value_type, out_value_addr,
2609 munmap_list_head, objfile_name_string>: Remove.
2610 <module>: New member.
2611 (do_module_cleanup): Update.
2612 (compile_object_run): Update.
2613
e947a848
TT
26142020-09-23 Tom Tromey <tom@tromey.com>
2615
2616 * compile/compile.c (eval_compile_command): Update.
2617 * compile/compile-object-run.h (compile_object_run): Take a
2618 compile_module_up.
2619 * compile/compile-object-run.c (compile_object_run): Take a
2620 compile_module_up.
2621 * compile/compile-object-load.h (struct compile_module): Add
2622 constructor, destructor.
2623 (compile_module_up): New typedef.
2624 (compile_object_load): Return compile_object_up.
2625 * compile/compile-object-load.c (compile_object_load): Return
2626 compile_module_up.
2627
0dbf6ee6
TT
26282020-09-23 Tom Tromey <tom@tromey.com>
2629
2630 * compile/compile-object-run.c (struct do_module_cleanup): Add
2631 constructor, destructor.
2632 <objfile_name_string>: Don't use struct hack.
2633 (do_module_cleanup): Use delete.
2634 (compile_object_run): Use new.
2635
ebe824f5
TT
26362020-09-23 Tom Tromey <tom@tromey.com>
2637
2638 * compile/compile-cplus-types.c
2639 (compile_cplus_convert_struct_or_union): Use std::vector.
2640 (compile_cplus_convert_func): Likewise.
2641 * compile/compile-c-types.c (convert_func): Use std::vector.
2642
5dd918d9
TT
26432020-09-21 Tom Tromey <tromey@adacore.com>
2644
2645 * sparc-tdep.c (sparc32_skip_prologue): Use
2646 skip_prologue_using_sal.
2647
5486c517
TT
26482020-09-19 Tom Tromey <tom@tromey.com>
2649
2650 * symfile.c (add_section_size_callback): Remove.
2651 (load_one_section): Rename from load_section_callback. Change
2652 parameters.
2653 (generic_load): Use foreach.
2654
8a6bb1d1
TT
26552020-09-19 Tom Tromey <tom@tromey.com>
2656
2657 * exec.c (add_to_section_table): Remove.
2658 (build_section_table): Use foreach.
2659
08f93a1a
TT
26602020-09-19 Tom Tromey <tom@tromey.com>
2661
2662 * elfread.c (elf_locate_sections): Change parameters.
2663 (elf_symfile_read): Use foreach.
2664
03cd72b8
TT
26652020-09-19 Tom Tromey <tom@tromey.com>
2666
2667 * cli/cli-dump.c (struct callback_data): Remove.
2668 (restore_one_section): Rename from restore_section_callback.
2669 Change parameters.
2670 (restore_binary_file): Change parameters.
2671 (restore_command): Use foreach.
2672
f4f2b85f
TT
26732020-09-19 Tom Tromey <tom@tromey.com>
2674
2675 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2676 (gcore_copy_callback): Likewise.
2677 (gcore_memory_sections): Use foreach.
2678
b35c1d1c
TT
26792020-09-19 Tom Tromey <tom@tromey.com>
2680
2681 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2682 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2683 parameters.
2684 (generic_elf_osabi_sniffer): Use foreach.
2685 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2686 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2687
5bb6e9dd
TT
26882020-09-19 Tom Tromey <tom@tromey.com>
2689
2690 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2691 (dwarf2_get_dwz_file): Use foreach.
2692 (dwarf2_locate_dwo_sections): Change parameters.
2693 (open_and_init_dwo_file): Use foreach.
2694 (dwarf2_locate_common_dwp_sections): Change parameters.
2695 (open_and_init_dwp_file): Use foreach.
2696
ad7277da
TT
26972020-09-19 Tom Tromey <tom@tromey.com>
2698
2699 * symfile.h: (find_lowest_section): Don't declare.
2700 * symfile.c (find_lowest_section): Now static. Change
2701 parameters.
2702 (struct place_section_arg): Remove.
2703 (place_section): Change parameters.
2704 (addr_info_make_relative): Use foreach.
2705 (symfile_dummy_outputs): Remove.
2706 (default_symfile_relocate): Use foreach.
2707
cb814f2e
TT
27082020-09-19 Tom Tromey <tom@tromey.com>
2709
2710 * objfiles.c (add_to_objfile_sections): Rename from
2711 add_to_objfile_sections_full.
2712 (add_to_objfile_sections): Remove.
2713 (build_objfile_section_table): Use foreach.
2714
3cabfd26
TT
27152020-09-19 Tom Tromey <tom@tromey.com>
2716
2717 * stap-probe.c (get_stap_base_address_1): Remove.
2718 (get_stap_base_address): Use foreach.
2719
1ce51eb5
TT
27202020-09-19 Tom Tromey <tom@tromey.com>
2721
2722 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2723 parameters.
2724 (gdb_bfd_close_or_warn): Use foreach.
2725
a190fabb
TT
27262020-09-19 Tom Tromey <tom@tromey.com>
2727
2728 * corelow.c (add_to_thread_list): Change parameters.
2729 (core_target_open): Use foreach.
2730
cafb0d81
TT
27312020-09-19 Tom Tromey <tom@tromey.com>
2732
2733 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2734 existing function.
2735
c8d5abea
AB
27362020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2737
2738 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2739 for arrays.
2740
6d816919
AB
27412020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2742
2743 * eval.c: Remove 'f-lang.h' include.
2744 (value_f90_subarray): Moved to f-lang.c.
2745 (eval_call): Renamed to...
2746 (evaluate_subexp_do_call): ...this, is no longer static, header
2747 comment moved into header file.
2748 (evaluate_funcall): Update call to eval_call.
2749 (skip_undetermined_arglist): Moved to f-lang.c.
2750 (fortran_value_subarray): Likewise.
2751 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2752 moved to evaluate_subexp_f.
2753 (calc_f77_array_dims): Moved to f-lang.c
2754 * expprint.c (print_subexp_funcall): New function.
2755 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2756 moved to print_subexp_f, OP_FUNCALL uses new function.
2757 (dump_subexp_body_funcall): New function.
2758 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2759 moved to dump_subexp_f, OP_FUNCALL uses new function.
2760 * expression.h (evaluate_subexp_do_call): Declare.
2761 * f-lang.c (value_f90_subarray): Moved from eval.c.
2762 (skip_undetermined_arglist): Likewise.
2763 (calc_f77_array_dims): Likewise.
2764 (fortran_value_subarray): Likewise.
2765 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2766 (operator_length_f): Likewise.
2767 (print_subexp_f): Likewise.
2768 (dump_subexp_body_f): Likewise.
2769 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2770 declaration of this operation to here.
2771 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2772 support moved to operator_length_f.
2773 * parser-defs.h (dump_subexp_body_funcall): Declare.
2774 (print_subexp_funcall): Declare.
2775 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2776 fortran-operator.def.
2777
8c37706a
AB
27782020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2779
2780 * eval.c (fortran_value_subarray): New function, content is taken
2781 from...
2782 (evaluate_subexp_standard): ...here, in two places. Now arrays
2783 and strings both call the new function.
2784 (calc_f77_array_dims): Add header comment, handle strings.
2785
14f9473c
VC
27862020-09-18 Victor Collod <vcollod@nvidia.com>
2787
2788 PR gdb/26635
2789 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2790 (i386_analyze_prologue): Call i386_skip_endbr.
2791
b60cea74
TT
27922020-09-18 Tom Tromey <tromey@adacore.com>
2793
2794 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2795 (windows_nat_target::wait): Update.
2796 * target/wait.h (enum target_wait_flag): New. Use
2797 DEF_ENUM_FLAGS_TYPE.
2798 * target/target.h (target_wait): Change type of options.
2799 * target.h (target_options_to_string, default_target_wait):
2800 Update.
2801 (struct target_ops) <wait>: Change type of options.
2802 * target.c (target_wait, default_target_wait, do_option): Change
2803 type of "options".
2804 (target_options_to_string): Likewise.
2805 * target-delegates.c: Rebuild.
2806 * target-debug.h (target_debug_print_target_wait_flags): Rename
2807 from target_debug_print_options.
2808 * sol-thread.c (class sol_thread_target) <wait>: Update.
2809 (sol_thread_target::wait): Update.
2810 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2811 (rs6000_nat_target::wait): Update.
2812 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2813 Update.
2814 (remote_target::wait_ns, remote_target::wait_as): Change type of
2815 "options".
2816 (remote_target::wait): Update.
2817 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2818 (gdbsim_target::wait): Update.
2819 * record-full.c (class record_full_base_target) <wait>: Update.
2820 (record_full_wait_1): Change type of "options".
2821 (record_full_base_target::wait): Update.
2822 * record-btrace.c (class record_btrace_target) <wait>: Update.
2823 (record_btrace_target::wait): Update.
2824 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2825 Update.
2826 (ravenscar_thread_target::wait): Update.
2827 * procfs.c (class procfs_target) <wait>: Update.
2828 (procfs_target::wait): Update.
2829 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2830 * obsd-nat.c (obsd_nat_target::wait): Update.
2831 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2832 (nto_procfs_target::wait): Update.
2833 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2834 * nbsd-nat.c (nbsd_wait): Change type of "options".
2835 (nbsd_nat_target::wait): Update.
2836 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2837 (thread_db_target::wait): Update.
2838 * linux-nat.h (class linux_nat_target) <wait>: Update.
2839 * linux-nat.c (linux_nat_target::wait): Update.
2840 (linux_nat_wait_1): Update.
2841 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2842 "options".
2843 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2844 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2845 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2846 (go32_nat_target::wait): Update.
2847 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2848 * gnu-nat.c (gnu_nat_target::wait): Update.
2849 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2850 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2851 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2852 * darwin-nat.c (darwin_nat_target::wait): Update.
2853 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2854 (bsd_uthread_target::wait): Update.
2855 * aix-thread.c (class aix_thread_target) <wait>: Update.
2856 (aix_thread_target::wait): Update.
2857
0295dde6
AB
28582020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2859
2860 * compile/compile-object-run.c (create_copied_type_recursive): New
2861 function.
2862 (compile_object_run): Use new function.
2863
d3483b43
JT
28642020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2865
2866 * NEWS: Mention x86_64 Cygwin core file support.
2867
e7d612ad
JT
28682020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2869
2870 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2871 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2872
aff9d387
JT
28732020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2874
62a5151b
JT
2875 * windows-tdep.h: Add prototypes.
2876 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2877 (i386_windows_core_pid_to_str): Move and rename ...
2878 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2879 (windows_core_pid_to_str): ... and here.
2880 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2881
28822020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2883 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2884 (amd64_windows_init_abi_common): ... and register.
2885
7d155da3
JT
28862020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2887
2888 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2889 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2890
e8ef12b9
PA
28912020-09-18 Pedro Alves <pedro@palves.net>
2892
2893 PR gdb/26631
2894 * thread.c (thread_find_command): Switch inferior before calling
2895 target methods.
2896
c1e1314d
TT
28972020-09-17 Tom Tromey <tromey@adacore.com>
2898
2899 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2900 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2901 (tdesc_arch_data_up): New typedef.
2902 (tdesc_use_registers, tdesc_data_alloc): Update.
2903 (tdesc_data_cleanup): Don't declare.
2904 * target-descriptions.c (tdesc_data_alloc): Return a
2905 tdesc_arch_data_up.
2906 (tdesc_arch_data_deleter::operator()): Rename from
2907 tdesc_data_cleanup. Change argument type.
2908 (tdesc_use_registers): Change early_data to an rvalue reference.
2909 (tdesc_use_registers): Don't use delete.
2910 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2911 * s390-tdep.c (s390_gdbarch_init): Update.
2912 * rx-tdep.c (rx_gdbarch_init): Update.
2913 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2914 * riscv-tdep.c (riscv_gdbarch_init): Update.
2915 * or1k-tdep.c (or1k_gdbarch_init): Update.
2916 * nios2-tdep.c (nios2_gdbarch_init): Update.
2917 * nds32-tdep.c (nds32_gdbarch_init): Update.
2918 * mips-tdep.c (mips_gdbarch_init): Update.
2919 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2920 * m68k-tdep.c (m68k_gdbarch_init): Update.
2921 * i386-tdep.c (i386_gdbarch_init): Update.
2922 * arm-tdep.c (arm_gdbarch_init): Update.
2923 * arc-tdep.c (arc_tdesc_init): Update.
2924 (arc_gdbarch_init): Update.
2925 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2926
0363df3d
HD
29272020-09-17 Hannes Domani <ssbssa@yahoo.de>
2928
2929 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2930 for WOW64 processes.
2931
280a9412
TT
29322020-09-17 Tom Tromey <tom@tromey.com>
2933
2934 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2935
6108fd18
TT
29362020-09-17 Tom Tromey <tom@tromey.com>
2937
2938 * value.c (preserve_values): Update.
2939 * python/py-type.c (save_objfile_types): Update.
2940 * guile/scm-type.c (save_objfile_types): Update.
2941 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2942 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2943 * compile/compile-object-run.c (compile_object_run): Update.
2944
fa9b1164
TT
29452020-09-17 Tom Tromey <tom@tromey.com>
2946
2947 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2948 Remove.
2949 <m_table>: Now htab_up.
2950 * typeprint.c (typedef_hash_table::recursively_update)
2951 (typedef_hash_table::add_template_parameters)
2952 (typedef_hash_table::typedef_hash_table): Update.
2953 (typedef_hash_table::~typedef_hash_table): Remove.
2954 (typedef_hash_table::typedef_hash_table)
2955 (typedef_hash_table::find_global_typedef)
2956 (typedef_hash_table::find_typedef): Update.
2957
eb53f105
TT
29582020-09-17 Tom Tromey <tom@tromey.com>
2959
2960 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2961
7a8a5d47
TT
29622020-09-17 Tom Tromey <tom@tromey.com>
2963
2964 * linespec.c (class decode_compound_collector)
2965 <~decode_compound_collector>: Remove.
2966 <m_unique_syms>: Now htab_up.
2967 (decode_compound_collector::operator ()): Update.
2968 (class symtab_collector) <~symtab_collector>: Remove.
2969 <m_symtab_table>: Now htab_up.
2970 (symtab_collector::operator ()): Update.
2971
99032cfc
TT
29722020-09-17 Tom Tromey <tom@tromey.com>
2973
2974 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2975 (filename_seen_cache::clear): Update.
2976 (~filename_seen_cache): Remove.
2977 (filename_seen_cache::seen): Update.
2978 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2979 htab_up.
2980 <~filename_seen_cache>: Remove.
2981 <traverse>: Update.
2982
32580f6d
TT
29832020-09-17 Tom Tromey <tom@tromey.com>
2984
2985 * completer.c (completion_tracker::discard_completions)
2986 (completion_tracker::~completion_tracker)
2987 (completion_tracker::maybe_add_completion)
2988 (completion_tracker::remove_completion)
2989 (completion_tracker::recompute_lowest_common_denominator)
2990 (completion_tracker::build_completion_result): Update.
2991 * completer.h (class completion_tracker) <have_completions>:
2992 Update.
2993 <m_entries_hash>: Now htab_up.
2994
c1fb9836
TT
29952020-09-17 Tom Tromey <tom@tromey.com>
2996
2997 * breakpoint.c (ambiguous_names_p): Use htab_up.
2998
88f07206
TT
29992020-09-17 Tom Tromey <tom@tromey.com>
3000
3001 * auto-load.c (struct auto_load_pspace_info)
3002 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3003 <loaded_script_files, loaded_script_texts>: Change type to
3004 htab_up.
3005 (~auto_load_pspace_info) Remove.
3006 (init_loaded_scripts_info, maybe_add_script_file)
3007 (maybe_add_script_text, auto_load_info_scripts): Update.
3008
9519b2ee
TT
30092020-09-17 Tom Tromey <tromey@adacore.com>
3010
3011 * c-exp.y (name_obstack): Now static.
3012
d2cd4113
CC
30132020-09-17 Chungyi Chi <demonic@csie.io>
3014
3015 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3016
b650a282
SM
30172020-09-16 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3020 (add_solib_catchpoint): Likewise.
3021 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3022 to bool.
3023 (add_solib_catchpoint): Change int parameter/variable to bool.
3024 (catch_load_or_unload): Likewise.
3025 (init_catchpoint): Likewise.
3026 (create_fork_vfork_event_catchpoint): Likewise.
3027 (catch_fork_command_1): Likewise.
3028 (catch_exec_command_1): Likewise.
3029
4d0bcfcf
SM
30302020-09-16 Simon Marchi <simon.marchi@efficios.com>
3031
3032 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3033 Change instance_flags to m_instance_flags.
3034
fe830662
TT
30352020-09-16 Tom Tromey <tromey@adacore.com>
3036
3037 PR gdb/26598:
3038 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3039
fe5ddfc3
JB
30402020-09-16 John Baldwin <jhb@FreeBSD.org>
3041
3042 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3043 PL_FLAG_EXEC.
3044 (fbsd_nat_target::insert_exec_catchpoint)
3045 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3046 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3047 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3048
e911c666
JB
30492020-09-16 John Baldwin <jhb@FreeBSD.org>
3050
3051 * configure.ac: Remove check for kinfo_getvmmap().
3052 * configure, config.in: Regenerate.
3053 * fbsd-nat.c (fbsd_read_mapping): Remove
3054 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3055 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3056 kinfo_get_vmmap() are always present.
3057
1f17d372
JB
30582020-09-16 John Baldwin <jhb@FreeBSD.org>
3059
3060 * fbsd-nat.c: Always include support for
3061 TARGET_OBJECT_SIGNAL_INFO.
3062
bcb1da7f
JB
30632020-09-16 John Baldwin <jhb@FreeBSD.org>
3064
3065 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3066 sysctl and remove procfs fallback.
3067
5515f729
JB
30682020-09-16 John Baldwin <jhb@FreeBSD.org>
3069
3070 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3071 * fbsd-nat.h: Likewise.
3072
da1df1db
TBA
30732020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3074
3075 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3076 argument.
3077
0e25e767
AB
30782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3079
3080 * ada-lang.c (ada_language_data): Delete.
3081 (ada_language): Remove references to ada_language_data.
3082 * c-lang.c (c_language_data): Delete.
3083 (c_language): Remove references to c_language_data.
3084 (cplus_language_data): Delete.
3085 (cplus_language): Remove references to cplus_language_data.
3086 (asm_language_data): Delete.
3087 (asm_language): Remove references to asm_language_data.
3088 (minimal_language_data): Delete.
3089 (minimal_language): Remove references to minimal_language_data.
3090 * d-lang.c (d_language_data): Delete.
3091 (d_language): Remove references to d_language_data.
3092 * f-lang.c (f_language_data): Delete.
3093 (f_language): Remove references to f_language_data.
3094 * go-lang.c (go_language_data): Delete.
3095 (go_language): Remove references to go_language_data.
3096 * language.c (unknown_language_data): Delete.
3097 (unknown_language): Remove references to unknown_language_data.
3098 (auto_language_data): Delete.
3099 (auto_language): Remove references to auto_language_data.
3100 * language.h (language_data): Delete struct.
3101 (language_defn): No longer inherit from language_data.
3102 * m2-lang.c (m2_language_data): Delete.
3103 (m2_language): Remove references to m2_language_data.
3104 * objc-lang.c (objc_language_data): Delete.
3105 (objc_language): Remove references to objc_language_data.
3106 * opencl-lang.c (opencl_language_data): Delete.
3107 (opencl_language): Remove references to opencl_language_data.
3108 * p-lang.c (pascal_language_data): Delete.
3109 (pascal_language): Remove references to pascal_language_data.
3110 * rust-lang.c (rust_language_data): Delete.
3111 (rust_language): Remove references to rust_language_data.
3112
b7c6e27d
AB
31132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3114
3115 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3116 initializer.
3117 (ada_language::opcode_print_table): New member function.
3118 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3119 (c_language::opcode_print_table): New member function.
3120 (cplus_language_data): Remove la_op_print_tab initializer.
3121 (cplus_language::opcode_print_table): New member function.
3122 (asm_language_data): Remove la_op_print_tab initializer.
3123 (asm_language::opcode_print_table): New member function.
3124 (minimal_language_data): Remove la_op_print_tab initializer.
3125 (minimal_language::opcode_print_table): New member function.
3126 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3127 (d_language::opcode_print_table): New member function.
3128 * expprint.c (print_subexp_standard): Update call to
3129 opcode_print_table.
3130 (op_string): Likewise.
3131 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3132 (f_language::opcode_print_table): New member function.
3133 * go-lang.c (go_language_data): Remove la_op_print_tab
3134 initializer.
3135 (go_language::opcode_print_table): New member function.
3136 * language.c (unknown_language_data): Remove la_op_print_tab
3137 initializer.
3138 (unknown_language::opcode_print_table): New member function.
3139 (auto_language_data): Remove la_op_print_tab initializer.
3140 (auto_language::opcode_print_table): New member function.
3141 * language.h (language_data): Remove la_op_print_tab field.
3142 (language_defn::opcode_print_table): Declare new member function.
3143 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3144 initializer.
3145 (m2_language::opcode_print_table): New member function.
3146 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3147 initializer.
3148 (objc_language::opcode_print_table): New member function.
3149 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3150 initializer.
3151 (opencl_language::opcode_print_table): New member function.
3152 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3153 initializer.
3154 (pascal_language::opcode_print_table): New member function.
3155 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3156 initializer.
3157 (rust_language::opcode_print_table): New member function.
3158
5aba6ebe
AB
31592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3160
3161 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3162 (ada_language::expression_ops): New member function.
3163 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3164 (c_language::expression_ops): New member function.
3165 (cplus_language_data): Remove la_exp_desc initializer.
3166 (cplus_language::expression_ops): New member function.
3167 (asm_language_data): Remove la_exp_desc initializer.
3168 (asm_language::expression_ops): New member function.
3169 (minimal_language_data): Remove la_exp_desc initializer.
3170 (minimal_language::expression_ops): New member function.
3171 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3172 (d_language::expression_ops): New member function.
3173 * eval.c (evaluate_subexp): Update call to expression_ops.
3174 * expprint.c (print_subexp): Likewise.
3175 (op_name): Likewise.
3176 (dump_subexp_body): Likewise.
3177 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3178 (f_language::expression_ops): New member function.
3179 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3180 (go_language::expression_ops): New member function.
3181 * language.c (language_defn::expression_ops): New function.
3182 (unknown_language_data): Remove la_exp_desc initializer.
3183 (auto_language_data): Likewise.
3184 * language.h (language_data): Remove la_exp_desc field.
3185 (language_defn::expression_ops): Declare new member function.
3186 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3187 (m2_language::expression_ops): New member function.
3188 * objc-lang.c (objc_language_data): Remove la_exp_desc
3189 initializer.
3190 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3191 initializer.
3192 (opencl_language::expression_ops): New member function.
3193 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3194 * parse.c (operator_length): Update call to expression_ops.
3195 (exp_iterate): Likewise.
3196 * rust-lang.c (rust_language_data): Remove la_exp_desc
3197 initializer.
3198 (ruse_language::expression_ops): New member function.
3199
b63a3f3f
AB
32002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3203 initializer.
3204 (ada_language::varobj_ops): New member function.
3205 * c-lang.c (c_language_data): Remove la_varobj_ops
3206 initializer.
3207 (cplus_language_data): Likewise.
3208 (cplus_language::varobj_ops): New member function.
3209 (asm_language_data): Remove la_varobj_ops initializer.
3210 (minimal_language_data): Likewise.
3211 * d-lang.c (d_language_data): Likewise.
3212 * f-lang.c (f_language_data): Likewise.
3213 * go-lang.c (go_language_data): Likewise.
3214 * language.c (language_defn::varobj_ops): New function.
3215 (unknown_language_data): Remove la_varobj_ops
3216 initializer.
3217 (auto_language_data): Likewise.
3218 * language.h (language_data): Remove la_varobj_ops field.
3219 (language_defn::varobj_ops): Declare new member function.
3220 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3221 * objc-lang.c (objc_language_data): Likewise.
3222 * opencl-lang.c (opencl_language_data): Likewise.
3223 * p-lang.c (pascal_language_data): Likewise.
3224 * rust-lang.c (rust_language_data): Likewise.
3225 * varobj.c (varobj_create): Update call to varobj_ops.
3226 * varobj.h (default_varobj_ops): Delete define.
3227
1ac14a04
AB
32282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3229
3230 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3231 initializer.
3232 * c-lang.c (c_language_data): Likewise.
3233 (c_language::macro_expansion): New member function.
3234 (cplus_language_data): Likewise.
3235 (cplus_language::macro_expansion): New member function.
3236 (asm_language_data): Likewise.
3237 (asm_language::macro_expansion): New member function.
3238 (minimal_language_data): Likewise.
3239 (minimal_language::macro_expansion): New member function.
3240 * d-lang.c (d_language_data): Remove la_macro_expansion
3241 initializer.
3242 * f-lang.c (f_language_data): Likewise.
3243 * go-lang.c (go_language_data): Likewise.
3244 * language.c (unknown_language_data): Likewise.
3245 (auto_language_data): Likewise.
3246 * language.h (language_data): Remove la_macro_expansion field.
3247 (language_defn::macro_expansion): New member function.
3248 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3249 initializer.
3250 * objc-lang.c (objc_language_data): Likewise.
3251 (objc_language::macro_expansion): New member function.
3252 * opencl-lang.c (opencl_language_data): Likewise.
3253 (opencl_language::macro_expansion): New member function.
3254 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3255 initializer.
3256 * rust-lang.c (rust_language_data): Likewise.
3257 * symtab.c (default_collect_symbol_completion_matches_break_on):
3258 Update call to macro_expansion.
3259
3a3440fb
AB
32602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3261
3262 * ada-lang.c (ada_language_data): Remove la_array_ordering
3263 initializer.
3264 * c-lang.c (c_language_data): Likewise.
3265 (cplus_language_data): Likewise.
3266 (asm_language_data): Likewise.
3267 (minimal_language_data): Likewise.
3268 * d-lang.c (d_language_data): Likewise.
3269 * dwarf2/read.c (read_array_order): Update for call to
3270 array_ordering.
3271 * f-lang.c (f_language_data): Remove la_array_ordering
3272 initializer.
3273 (f_language::array_ordering): New member function.
3274 * go-lang.c (go_language_data): Remove la_array_ordering
3275 initializer.
3276 * language.c (unknown_language_data): Likewise.
3277 (auto_language_data): Likewise.
3278 * language.h (language_data): Delete la_array_ordering field.
3279 (language_defn::array_ordering): New member function.
3280 * m2-lang.c (m2_language_data): Remove la_array_ordering
3281 initializer.
3282 * objc-lang.c (objc_language_data): Likewise.
3283 * opencl-lang.c (opencl_language_data): Likewise.
3284 * p-lang.c (pascal_language_data): Likewise.
3285 * rust-lang.c (rust_language_data): Likewise.
3286
0d201fa4
AB
32872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3288
3289 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3290 initializer.
3291 * c-lang.c (c_language_data): Likewise.
3292 (cplus_language_data): Likewise.
3293 (asm_language_data): Likewise.
3294 (minimal_language_data): Likewise.
3295 * d-lang.c (d_language_data): Likewise.
3296 * f-lang.c (f_language_data): Likewise.
3297 (f_language::case_sensitivity): New member function.
3298 * go-lang.c (go_language_data): Remove la_case_sensitivity
3299 initializer.
3300 * language.c (enum case_mode): Moved here from language.h.
3301 (case_mode): Make static.
3302 (show_case_command): Update for case_sensitivity being a method.
3303 (set_case_command): Likewise.
3304 (set_range_case): Likewise.
3305 (unknown_language_data): Remove la_case_sensitivity initializer.
3306 (auto_language_data): Likewise.
3307 * language.h (case_mode): Delete, move enum declaration to
3308 language.c.
3309 (language_data): Delete la_case_sensitivity field.
3310 (language_defn::case_sensitivity): New member function.
3311 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3312 initializer.
3313 * objc-lang.c (objc_language_data): Likewise.
3314 * opencl-lang.c (opencl_language_data): Likewise.
3315 * p-lang.c (pascal_language_data): Likewise.
3316 * rust-lang.c (rust_language_data): Likewise.
3317
efdf6a73
AB
33182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * ada-lang.c (ada_language_data): Remove la_range_check
3321 initializer.
3322 * c-lang.c (c_language_data): Likewise.
3323 (cplus_language_data): Likewise.
3324 (asm_language_data): Likewise.
3325 (minimal_language_data): Likewise.
3326 * d-lang.c (d_language_data): Likewise.
3327 * f-lang.c (f_language_data): Likewise.
3328 (f_language::range_checking_on_by_default): New member function.
3329 * go-lang.c (go_language_data): Remove la_range_check initializer.
3330 * language.c (enum range_mode): Moved here from language.h.
3331 (range_mode): Made static.
3332 (show_range_command): Update to use
3333 range_checking_on_by_default.
3334 (set_range_command): Likewise.
3335 (set_range_case): Likewise.
3336 (unknown_language_data): Remove la_range_check initializer.
3337 (auto_language_data): Likewise.
3338 * language.h (range_mode): Delete. Enum definition moved to
3339 language.c.
3340 (language_data): Remove la_range_check field.
3341 (language_defn::range_checking_on_by_default): New member
3342 function.
3343 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3344 (m2_language::range_checking_on_by_default): New member function.
3345 * objc-lang.c (objc_language_data): Remove la_range_check
3346 initializer.
3347 * opencl-lang.c (opencl_language_data): Likewise.
3348 * p-lang.c (pascal_language_data): Likewise.
3349 (pascal_language::range_checking_on_by_default): New member
3350 function.
3351 * rust-lang.c (rust_language_data): Remove la_range_check
3352 initializer.
3353 (rust_language::range_checking_on_by_default): New member
3354 function.
3355
bf92aec5
AB
33562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3357
3358 * dwarf2/read.c (dwarf2_physname): Remove special case for
3359 language_go.
3360 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3361 member function.
3362
d3355e4d
AB
33632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3364
3365 * ada-lang.c (ada_language_data): Remove
3366 la_store_sym_names_in_linkage_form_p initializer.
3367 (ada_language::store_sym_names_in_linkage_form_p): New member
3368 function.
3369 * c-lang.c (c_language_data): Remove
3370 la_store_sym_names_in_linkage_form_p initializer.
3371 (c_language::store_sym_names_in_linkage_form_p): New member
3372 function.
3373 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3374 initializer.
3375 (asm_language_data): Likewise.
3376 (asm_language::store_sym_names_in_linkage_form_p): New member
3377 function.
3378 (minimal_language_data): Remove
3379 la_store_sym_names_in_linkage_form_p initializer.
3380 (minimal_language::store_sym_names_in_linkage_form_p): New member
3381 function.
3382 * d-lang.c (d_language_data): Remove
3383 la_store_sym_names_in_linkage_form_p initializer.
3384 * dwarf2/read.c (dwarf2_physname): Update call to
3385 store_sym_names_in_linkage_form_p.
3386 * f-lang.c (f_language_data): Remove
3387 la_store_sym_names_in_linkage_form_p initializer.
3388 * go-lang.c (go_language_data): Remove
3389 la_store_sym_names_in_linkage_form_p initializer.
3390 * language.c (unknown_language_data): Remove
3391 la_store_sym_names_in_linkage_form_p initializer.
3392 (unknown_language::store_sym_names_in_linkage_form_p): New member
3393 function.
3394 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3395 initializer.
3396 (auto_language::store_sym_names_in_linkage_form_p): New member
3397 function.
3398 * language.h (language_data): Remove
3399 la_store_sym_names_in_linkage_form_p member variable.
3400 (language_defn::store_sym_names_in_linkage_form_p): New member
3401 function.
3402 * m2-lang.c (m2_language_data): Remove
3403 la_store_sym_names_in_linkage_form_p initializer.
3404 * objc-lang.c (objc_language_data): Likewise.
3405 * opencl-lang.c (opencl_language_data): Likewise.
3406 * p-lang.c (pascal_language_data): Likewise.
3407 * rust-lang.c (rust_language_data): Likewise.
3408
22c12a6c
AB
34092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3410
3411 * ada-lang.c (ada_language_data): Remove string_lower_bound
3412 initializer.
3413 * c-lang.c (c_language_data): Likewise.
3414 (cplus_language_data): Likewise.
3415 (asm_language_data): Likewise.
3416 (minimal_language_data): Likewise.
3417 * d-lang.c (d_language_data): Likewise.
3418 * f-lang.c (f_language_data): Likewise.
3419 * go-lang.c (go_language_data): Likewise.
3420 * language.c (unknown_language_data): Likewise.
3421 (auto_language_data): Likewise.
3422 * language.h (language_data): Remove string_lower_bound field.
3423 (language_defn::string_lower_bound): New member function.
3424 * m2-lang.c (m2_language_data): Remove string_lower_bound
3425 initializer.
3426 (m2_language::string_lower_bound): New member function.
3427 * objc-lang.c (objc_language_data): Remove string_lower_bound
3428 initializer.
3429 * opencl-lang.c (opencl_language_data): Likewise.
3430 * p-lang.c (pascal_language_data): Likewise.
3431 * rust-lang.c (rust_language_data): Likewise.
3432 * valops.c (value_cstring): Update call to string_lower_bound.
3433 (value_string): Likewise.
3434 * value.c (allocate_repeated_value): Likewise.
3435
1c236ddd
AB
34362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 * valops.c (value_repeat): Fix incorrect argument name in comment.
3439
67bd3fd5
AB
34402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3441
3442 * ada-lang.c (ada_language_data): Remove c_style_arrays
3443 initializer.
3444 (ada_language::c_style_arrays_p): New member fuction.
3445 * c-lang.c (c_language_data): Remove c_style_arrays
3446 initializer.
3447 (cplus_language_data): Likewise.
3448 (asm_language_data): Likewise.
3449 (minimal_language_data): Likewise.
3450 * d-lang.c (d_language_data): Likewise.
3451 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3452 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3453 (f_language::c_style_arrays_p): New member function.
3454 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3455 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3456 * language.c (unknown_language_data): Remove c_style_arrays
3457 initializer.
3458 (auto_language_data): Likewise.
3459 * language.h (language_data): Remove c_style_arrays field.
3460 (language_defn::c_style_arrays_p): New member function.
3461 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3462 (m2_language::c_style_arrays_p): New member function.
3463 * objc-lang.c (objc_language_data): Remove c_style_arrays
3464 initializer.
3465 * opencl-lang.c (opencl_language_data): Likewise.
3466 * p-lang.c (pascal_language_data): Likewise.
3467 * rust-lang.c (rust_language_data): Likewise.
3468 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3469 and update local variable to a bool.
3470 * valops.c (value_cast): Update call to c_style_arrays_p.
3471 (value_array): Likewise.
3472 * value.c (coerce_array): Likewise.
3473
85967615
AB
34742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3475
3476 * ada-lang.c (ada_language_data): Remove la_language initializer.
3477 * c-lang.c (c_language_data): Likewise.
3478 (cplus_language_data): Likewise.
3479 (asm_language_data): Likewise.
3480 (minimal_language_data): Likewise.
3481 * d-lang.c (d_language_data): Likewise.
3482 * f-lang.c (f_language_data): Likewise.
3483 * go-lang.c (go_language_data): Likewise.
3484 * language.c (unknown_language_data): Likewise.
3485 (auto_language_data): Likewise.
3486 * language.h (language_data): Remove la_language field.
3487 (language_defn::language_defn): Initialise la_language field.
3488 (language_defn::la_language): New member variable.
3489 * m2-lang.c (m2_language_data): Remove la_language field.
3490 * objc-lang.c (objc_language_data): Likewise.
3491 * opencl-lang.c (opencl_language_data): Likewise.
3492 * p-lang.c (pascal_language_data): Likewise.
3493 * rust-lang.c (rust_language_data): Likewise.
3494
e171d6f1
AB
34952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3496
3497 * ada-lang.c (ada_extensions): Delete, moved into
3498 ada_language::filename_extensions.
3499 (ada_language_data): Remove la_filename_extensions initializer.
3500 (ada_language::filename_extensions): New member function.
3501 * c-lang.c (c_extensions): Delete, moved into
3502 c_language::filename_extensions.
3503 (c_language_data): Remove la_filename_extensions initializer.
3504 (c_language::filename_extensions): New member function.
3505 (cplus_extensions): Delete, moved into
3506 cplus_language::filename_extensions.
3507 (cplus_language_data): Remove la_filename_extensions initializer.
3508 (cplus_language::filename_extensions): New member function.
3509 (asm_extensions): Delete, moved into
3510 asm_language::filename_extensions.
3511 (asm_language_data): Remove la_filename_extensions initializer.
3512 (asm_language::filename_extensions): New member function.
3513 (minimal_language_data): Remove la_filename_extensions
3514 initializer.
3515 * d-lang.c (d_extensions): Delete, moved into
3516 d_language::filename_extensions.
3517 (d_language_data): Remove la_filename_extensions initializer.
3518 (d_language::filename_extensions): New member function.
3519 * f-lang.c (f_extensions): Delete, moved into
3520 f_language::filename_extensions.
3521 (f_language_data): Remove la_filename_extensions initializer.
3522 (f_language::filename_extensions): New member function.
3523 * go-lang.c (go_language_data): Remove la_filename_extensions
3524 initializer.
3525 * language.c (add_set_language_command): Update now that
3526 filename_extensions returns a vector.
3527 (unknown_language_data): Remove la_filename_extensions
3528 initializer.
3529 (auto_language_data): Likewise.
3530 * language.h (language_data): Remove la_filename_extensions field.
3531 (language_defn::filename_extensions): New member function.
3532 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3533 initializer.
3534 * objc-lang.c (objc_extensions): Delete, moved into
3535 objc_language::filename_extensions.
3536 (objc_language_data): Remove la_filename_extensions initializer.
3537 (objc_language::filename_extensions): New member function.
3538 * opencl-lang.c (opencl_language_data): Remove
3539 la_filename_extensions initializer.
3540 * p-lang.c (pascal_extensions): Delete, moved into
3541 pascal_language::filename_extensions.
3542 (pascal_language_data): Remove la_filename_extensions initializer.
3543 (pascal_language::filename_extensions): New member function.
3544 * rust-lang.c (rust_extensions): Delete, moved into
3545 rust_language::filename_extensions.
3546 (rust_language_data): Remove la_filename_extensions initializer.
3547 (rust_language::filename_extensions): New member function.
3548 * symfile.c (add_filename_language): Add new assert.
3549
6f7664a9
AB
35502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3551
3552 * ada-lang.c (ada_language_data): Remove la_name and
3553 la_natural_name initializers.
3554 (ada_language::name): New member function.
3555 (ada_language::natural_name): New member function.
3556 * c-lang.c (c_language_data): Remove la_name and
3557 la_natural_name initializers.
3558 (c_language::name): New member function.
3559 (c_language::natural_name): New member function.
3560 (cplus_language_data): Remove la_name and
3561 la_natural_name initializers.
3562 (cplus_language::name): New member function.
3563 (cplus_language::natural_name): New member function.
3564 (asm_language_data): Remove la_name and
3565 la_natural_name initializers.
3566 (asm_language::name): New member function.
3567 (asm_language::natural_name): New member function.
3568 (minimal_language_data): Remove la_name and
3569 la_natural_name initializers.
3570 (minimal_language::name): New member function.
3571 (minimal_language::natural_name): New member function.
3572 * compile/compile.c (compile_to_object): Update call to
3573 lanugage_defn::name.
3574 * d-lang.c (d_language_data): Remove la_name and
3575 la_natural_name initializers.
3576 (d_language::name): New member function.
3577 (d_language::natural_name): New member function.
3578 * expprint.c (print_subexp_standard): Update call to
3579 language_defn::name.
3580 (dump_raw_expression): Likewise
3581 (dump_prefix_expression): Likewise.
3582 * f-lang.c (f_language_data): Remove la_name and
3583 la_natural_name initializers.
3584 (f_language::name): New member function.
3585 (f_language::natural_name): New member function.
3586 * go-lang.c (go_language_data): Remove la_name and
3587 la_natural_name initializers.
3588 (go_language::name): New member function.
3589 (go_language::natural_name): New member function.
3590 * language.c (show_language_command): Update call to
3591 language_defn::name.
3592 (set_language_command): Likewise.
3593 (language_enum): Likewise.
3594 (language_str): Likewise.
3595 (add_set_language_command): Likewise, use
3596 language_defn::natural_name in the doc string.
3597 (unknown_language_data): Remove la_name and
3598 la_natural_name initializers.
3599 (unknown_language::name): New member function.
3600 (unknown_language::natural_name): New member function.
3601 (auto_language_data): Remove la_name and
3602 la_natural_name initializers.
3603 (auto_language::name): New member function.
3604 (auto_language::natural_name): New member function.
3605 (language_lookup_primitive_type_as_symbol): Update call to
3606 language_defn::name.
3607 * language.h (language_data): Remove la_name and la_natural_name
3608 member variables.
3609 (language_defn::name): New member function.
3610 (language_defn::natural_name): New member function.
3611 * m2-lang.c (m2_language_data): Remove la_name and
3612 la_natural_name initializers.
3613 (m2_language::name): New member function.
3614 (m2_language::natural_name): New member function.
3615 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3616 language_defn::natural_name.
3617 * objc-lang.c (objc_language_data): Remove la_name and
3618 la_natural_name initializers.
3619 (objc_language::name): New member function.
3620 (objc_language::natural_name): New member function.
3621 * opencl-lang.c (opencl_language_data): Remove la_name and
3622 la_natural_name initializers.
3623 (opencl_language::name): New member function.
3624 (opencl_language::natural_name): New member function.
3625 * p-lang.c (pascal_language_data): Remove la_name and
3626 la_natural_name initializers.
3627 (pascal_language::name): New member function.
3628 (pascal_language::natural_name): New member function.
3629 * rust-lang.c (rust_language_data): Remove la_name and
3630 la_natural_name initializers.
3631 (rust_language::name): New member function.
3632 (rust_language::natural_name): New member function.
3633 * symtab.c (lookup_language_this): Update call to
3634 language_defn::name.
3635
5bae7c4e
AB
36362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3637
3638 * ada-lang.c (ada_language_data): Remove la_name_of_this
3639 initializer.
3640 * ax-gdb.c (gen_expr): Update call to name_of_this.
3641 * c-exp.y (classify_name): Likewise.
3642 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3643 (cplus_language_data): Likewise.
3644 (cplus_language::name_of_this): New member function.
3645 (asm_language_data): Remove la_name_of_this initializer.
3646 (minimal_language_data): Likewise.
3647 * d-lang.c (d_language_data): Likewise.
3648 (d_language::name_of_this): New member function.
3649 * expprint.c (print_subexp_standard): Update call to name_of_this.
3650 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3651 * go-lang.c (go_language_data): Likewise.
3652 * language.c (unknown_language_data): Likewise.
3653 (unknown_language::name_of_this): New member function.
3654 (auto_language_data): Remove la_name_of_this initializer.
3655 (auto_language::name_of_this): New member function.
3656 * language.h (language_data): Delete la_name_of_this member
3657 variable.
3658 (language_defn::name_of_this): New member function.
3659 * m2-lang.c (m2_language_data): Remove la_name_of_this
3660 initializer.
3661 * objc-lang.c (objc_language_data): Likewise.
3662 (objc_language::name_of_this): New member function.
3663 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3664 initializer.
3665 * p-lang.c (pascal_language_data): Likewise.
3666 (pascal_language::name_of_this): New member function.
3667 * rust-lang.c (rust_language_data): Remove la_name_of_this
3668 initializer.
3669 * symtab.c (lookup_language_this): Update call to name_of_this.
3670 (lookup_symbol_aux): Likewise.
3671 * valops.c (value_of_this): Likewise.
3672
22e3f3ed
AB
36732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3674
3675 * ada-lang.c (ada_language_data): Remove
3676 la_struct_too_deep_ellipsis initializer.
3677 (ada_language::struct_too_deep_ellipsis): New member function.
3678 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3679 initializer.
3680 (cplus_language_data): Likewise.
3681 (asm_language_data): Likewise.
3682 (minimal_language_data): Likewise.
3683 * cp-valprint.c (cp_print_value): Update call to
3684 struct_too_deep_ellipsis.
3685 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3686 initializer.
3687 * f-lang.c (f_language_data): Likewise.
3688 (f_language::struct_too_deep_ellipsis): New member function.
3689 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3690 initializer.
3691 * language.c (unknown_language_data): Likewise.
3692 (auto_language_data): Likewise.
3693 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3694 member variable.
3695 (language_defn::struct_too_deep_ellipsis): New member function.
3696 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3697 initializer.Q
3698 * objc-lang.c (objc_language_data): Likewise.
3699 * opencl-lang.c (opencl_language_data): Likewise.
3700 * p-lang.c (pascal_language_data): Likewise.
3701 * rust-lang.c (rust_language_data): Likewise.
3702 * valprint.c (val_print_check_max_depth): Update call to
3703 struct_too_deep_ellipsis.
3704
ed29e1c7
FW
37052020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3706
3707 * MAINTAINERS (Write After Approval): Add myself.
3708
12d8f940
TT
37092020-09-15 Tom Tromey <tom@tromey.com>
3710
3711 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3712 Remove.
3713
6b5a7bc7
TT
37142020-09-15 Tom Tromey <tom@tromey.com>
3715
3716 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3717 and TYPE_CODE_METHODPTR cases.
3718 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3719 (c_value_print_inner): Update.
3720 * valprint.c (generic_value_print_memberptr): New function, from
3721 c_value_print_memberptr.
3722 (generic_value_print): Use it. Call cplus_print_method_ptr.
3723
47f0e2ff
TT
37242020-09-15 Tom Tromey <tromey@adacore.com>
3725
3726 * python/python-internal.h (PyInt_FromLong): Remove define.
3727 * python/py-value.c (convert_value_from_python): Use
3728 gdb_py_object_from_longest.
3729 * python/py-type.c (typy_get_code): Use
3730 gdb_py_object_from_longest.
3731 * python/py-symtab.c (salpy_get_line): Use
3732 gdb_py_object_from_longest.
3733 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3734 gdb_py_object_from_longest.
3735 * python/py-record.c (recpy_gap_reason_code): Use
3736 gdb_py_object_from_longest.
3737 * python/py-record-btrace.c (recpy_bt_insn_size)
3738 (recpy_bt_func_level, btpy_list_count): Use
3739 gdb_py_object_from_longest.
3740 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3741 gdb_py_object_from_longest. Fix error handling.
3742 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3743 gdb_py_object_from_longest.
3744 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3745 gdb_py_object_from_longest.
3746 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3747 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3748 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3749
512116ce
TT
37502020-09-15 Tom Tromey <tromey@adacore.com>
3751
3752 * python/python.c (gdbpy_parameter_value): Use
3753 gdb_py_object_from_ulongest.
3754
4ab1029c
TT
37552020-09-15 Tom Tromey <tromey@adacore.com>
3756
3757 * python/py-infevents.c (create_register_changed_event_object):
3758 Use gdb_py_object_from_longest.
3759 * python/py-exitedevent.c (create_exited_event_object): Use
3760 gdb_py_object_from_longest.
3761
062534d4
TT
37622020-09-15 Tom Tromey <tromey@adacore.com>
3763
3764 * python/python.c (gdbpy_parameter_value): Use
3765 gdb_py_object_from_longest.
3766 * python/py-type.c (convert_field, typy_range): Use
3767 gdb_py_object_from_longest.
3768 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3769 gdb_py_object_from_longest.
3770 * python/py-lazy-string.c (stpy_get_length): Use
3771 gdb_py_object_from_longest.
3772 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3773 gdb_py_object_from_longest.
3774 * python/py-infevents.c (create_memory_changed_event_object): Use
3775 gdb_py_object_from_longest.
3776 * python/py-inferior.c (infpy_get_num): Use
3777 gdb_py_object_from_longest.
3778 (infpy_get_pid): Likewise.
3779
d1cab987
TT
37802020-09-15 Tom Tromey <tromey@adacore.com>
3781
3782 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3783 defines.
3784 * python/py-value.c (valpy_long): Use
3785 gdb_py_object_from_ulongest.
3786 * python/py-symtab.c (salpy_get_pc): Use
3787 gdb_py_object_from_ulongest.
3788 (salpy_get_last): Likewise.
3789 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3790 gdb_py_object_from_ulongest.
3791 * python/py-lazy-string.c (stpy_get_address): Use
3792 gdb_py_object_from_ulongest.
3793 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3794 * python/py-arch.c (archpy_disassemble): Use
3795 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3796 error handling.
3797
4bde49dc
TT
37982020-09-15 Tom Tromey <tromey@adacore.com>
3799
3800 * python/python-internal.h (gdb_py_long_from_longest): Remove
3801 defines.
3802 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3803 * python/py-type.c (convert_field, typy_get_sizeof): Use
3804 gdb_py_object_from_longest.
3805 * python/py-record-btrace.c (btpy_list_index): Use
3806 gdb_py_object_from_longest.
3807
37431074
TT
38082020-09-15 Tom Tromey <tromey@adacore.com>
3809
3810 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3811 * python/py-record.c (recpy_element_number): Use
3812 gdb_py_object_from_longest.
3813 (recpy_gap_number): Likewise.
3814
cbe25684
TT
38152020-09-15 Tom Tromey <tromey@adacore.com>
3816
3817 * top.c (ui::ui): Update.
3818 (highest_ui_num): Remove.
3819 * top.h (struct ui) <num>: Remove.
3820
db92ac45
TT
38212020-09-15 Tom Tromey <tromey@adacore.com>
3822
3823 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3824 * ui-style.c (ansi_regex_text): Now array.
3825 * rust-exp.y (number_regex_text): Now array.
3826 * linespec.c (linespec_quote_characters): Now array.
3827 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3828 Now arrays.
3829
d2b31b67
SM
38302020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3831
3832 * debuginfod-support.c (debuginfod_client_deleter): New.
3833 (debuginfod_client_up): New.
3834 (debuginfod_init): Return debuginfod_client_up.
3835 (debuginfod_source_query): Adjust.
3836 (debuginfod_debuginfo_query): Adjust.
3837
3246bd8e
SM
38382020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3839
3840 * debuginfod-support.c (debuginfod_source_query): Use
3841 make_unique_xstrdup.
3842
10242f36
SM
38432020-09-14 Simon Marchi <simon.marchi@efficios.com>
3844
3845 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3846 with `type::instance_flags`.
3847
e1044e6a
MM
38482020-09-14 Michael Mullin <masmullin@gmail.com>
3849
3850 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3851 Remove baton parameter.
3852
04902b09
PA
38532020-09-14 Pedro Alves <pedro@palves.net>
3854
3855 * Makefile.in (SELFTESTS_SRCS): Add
3856 unittests/enum-flags-selftests.c.
3857 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3858 btrace_function_flags instead of enum btrace_function_flag.
3859 * compile/compile-c-types.c (convert_qualified): Use
3860 enum_flags::raw.
3861 * compile/compile-cplus-symbols.c (convert_one_symbol)
3862 (convert_symbol_bmsym):
3863 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3864 (compile_cplus_convert_struct_or_union_methods)
3865 (compile_cplus_instance::convert_qualified_base):
3866 * go-exp.y (parse_string_or_char): Add cast to int.
3867 * unittests/enum-flags-selftests.c: New file.
3868 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3869 type to btrace_thread_flags from btrace_thread_flag.
3870 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3871 local's type to btrace_thread_flags from btrace_thread_flag. Add
3872 cast in DEBUG call.
3873
69896a2c
PA
38742020-09-14 Pedro Alves <pedro@palves.net>
3875
3876 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3877 * gdbtypes.c (address_space_name_to_int): Rename to ...
3878 (address_space_name_to_type_instance_flags): ... this.
3879 (address_space_int_to_name): Rename to ...
3880 (address_space_type_instance_flags_to_name): ... this.
3881 * gdbtypes.h (address_space_name_to_int): Rename to ...
3882 (address_space_name_to_type_instance_flags): ... this.
3883 (address_space_int_to_name): Rename to ...
3884 (address_space_type_instance_flags_to_name): ... this.
3885 * type-stack.c (type_stack::insert): Adjust to rename.
3886 * type-stack.h (type_stack::insert): Likewise.
3887
314ad88d
PA
38882020-09-14 Pedro Alves <pedro@palves.net>
3889 Andrew Burgess <andrew.burgess@embecosm.com>
3890
3891 * avr-tdep.c (avr_address_class_type_flags): Return
3892 type_instance_flags.
3893 (avr_address_class_type_flags_to_name): Take a
3894 type_instance_flags.
3895 (avr_address_class_name_to_type_flags): Return bool and take a
3896 type_instance_flags.
3897 * d-lang.c (build_d_types): Use type::set_instance_flags.
3898 * ft32-tdep.c (ft32_address_class_type_flags): Return
3899 type_instance_flags.
3900 (ft32_address_class_type_flags_to_name): Take a
3901 type_instance_flags.
3902 (ft32_address_class_name_to_type_flags): Return bool and take a
3903 type_instance_flags.
3904 (ft32_gdbarch_init): Use type::set_instance_flags.
3905 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3906 * gdbarch.h, gdbarch.c: Regenerate.
3907 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3908 (address_class_name_to_type_flags): Use type_instance_flags and
3909 bool.
3910 * gdbtypes.c (address_space_name_to_int)
3911 (address_space_int_to_name, make_qualified_type): Use
3912 type_instance_flags.
3913 (make_qualified_type): Use type_instance_flags and
3914 type::set_instance_flags.
3915 (make_type_with_address_space, make_cv_type, make_vector_type)
3916 (check_typedef): Use type_instance_flags.
3917 (recursive_dump_type): Cast type_instance_flags to unsigned for
3918 printing.
3919 (copy_type_recursive): Use type::set_instance_flags.
3920 (gdbtypes_post_init): Use type::set_instance_flags.
3921 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3922 <m_instance_flags>: ... this.
3923 <instance_flags, set_instance_flags>: New methods.
3924 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3925 (SET_TYPE_INSTANCE_FLAGS): New.
3926 (address_space_name_to_int, address_space_int_to_name)
3927 (make_type_with_address_space): Pass flags using
3928 type_instance_flags instead of int.
3929 * stabsread.c (cleanup_undefined_types_noname): Use
3930 type::set_instance_flags.
3931 * s390-tdep.c (s390_address_class_type_flags): Return
3932 type_instance_flags.
3933 (s390_address_class_type_flags_to_name): Take a
3934 type_instance_flags.
3935 (s390_address_class_name_to_type_flags): Return bool and take a
3936 type_instance_flags.
3937 * type-stack.c (type_stack::follow_types): Use
3938 type_instance_flags.
3939 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3940
27087b7f
TT
39412020-09-14 Tom Tromey <tromey@adacore.com>
3942
3943 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3944 * x86-tdep.c (x86_is_thunk_register_name)
3945 (x86_in_indirect_branch_thunk): Update.
3946 * sparc64-tdep.c (sparc64_fpu_register_names)
3947 (sparc64_cp0_register_names, sparc64_register_names)
3948 (sparc64_pseudo_register_names): Now const.
3949 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3950 cp0_registers_num>: Now const.
3951 * sparc-tdep.c (sparc_core_register_names)
3952 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3953 (sparc32_pseudo_register_names): Now const.
3954 (validate_tdesc_registers): Update.
3955 * rust-lang.c (rust_extensions): Now const.
3956 * p-lang.c (p_extensions): Now const.
3957 * objc-lang.c (objc_extensions): Now const.
3958 * nto-tdep.c (nto_thread_state_str): Now const.
3959 * moxie-tdep.c (moxie_register_names): Now const.
3960 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3961 Now const.
3962 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3963 (mips_linux_reg_names): Now const.
3964 (mips_gdbarch_init): Update.
3965 * microblaze-tdep.c (microblaze_register_names): Now const.
3966 * m68k-tdep.c (m68k_register_names): Now const.
3967 * m32r-tdep.c (m32r_register_names): Now const.
3968 * ia64-tdep.c (ia64_register_names): Now const.
3969 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3970 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3971 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3972 ymm_avx512_register_names, pkeys_register_names>: Now const.
3973 * i386-tdep.c (i386_register_names, i386_zmm_names)
3974 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3975 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3976 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3977 * f-lang.c (f_extensions): Now const.
3978 * d-lang.c (d_extensions): Now const.
3979 * csky-tdep.c (csky_register_names): Now const.
3980 * charset.c (default_charset_names, charset_enum): Now const.
3981 (_initialize_charset): Update.
3982 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3983 const.
3984 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3985 (bsd_uthread_solib_loaded): Update.
3986 (bsd_uthread_state): Now const.
3987 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3988 (amd64_ymm_avx512_names, amd64_ymmh_names)
3989 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3990 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3991 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3992 (amd64_dword_names): Now const.
3993 * agent.c (can_use_agent_enum): Now const.
3994 * ada-tasks.c (task_states, long_task_states): Now const.
3995 * ada-lang.c (known_runtime_file_name_patterns)
3996 (known_auxiliary_function_name_patterns, attribute_names)
3997 (standard_exc, ada_extensions): Now const.
3998
89806626
SM
39992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4000
4001 * bcache.h (struct bcache) <bcache>: Remove constructor.
4002 <m_hash_function, m_compare_function>: Remove.
4003 <~bcache>: Make virtual.
4004 <compare>: Remove static method, introduce virtual method.
4005 <default_hash>: Remove.
4006 <hash>: New virtual method.
4007 * bcache.c (bcache::expand_hash_table): Update.
4008 (bcache::insert): Update.
4009 (bcache::hash): New.
4010 (bcache::compare): Update comment and parameter names.
4011 * gdbtypes.c (types_deeply_equal): Update.
4012 * psymtab.h (struct psymbol_bcache): New struct.
4013 (class psymtab_storage) <psymtab_storage>: Make default.
4014 <psymbol_cache>: Change type to psymbol_bcache.
4015 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4016 (psymbol_hash): Change to...
4017 (psymbol_bcache::hash): ... this.
4018 (psymbol_compare): Change to...
4019 (psymbol_bcache::compare): ... this.
4020
677c92fe
SM
40212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4022
4023 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4024 checking for initial lwp.
4025
3eba3a01
TT
40262020-09-14 Tom Tromey <tromey@adacore.com>
4027
4028 * m68k-tdep.c (m68k_extract_return_value): Use
4029 pointer_result_regnum.
4030 (m68k_store_return_value): Likewise.
4031 (m68k_reg_struct_return_p): Handle vectors and arrays.
4032 (m68k_return_value): Handle arrays.
4033 (m68k_svr4_return_value): Fix single-element aggregate handling.
4034 Handle long double. Adjust for embedded ABI.
4035 (m68k_svr4_init_abi): Set pointer_result_regnum.
4036 (m68k_embedded_init_abi): New function.
4037 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4038 (m68k_osabi_sniffer): New function.
4039 (_initialize_m68k_tdep): Register osabi sniffer.
4040 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4041 member.
4042
33f4dd48
SM
40432020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4044
4045 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4046 with gdb::unique_xmalloc_ptr<char>.
4047
8400a90d
SM
40482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4049
4050 * xml-support.h (xml_fetch_another): Change type to be a
4051 function_view.
4052 (xml_process_xincludes): Remove baton parameter.
4053 (xml_fetch_content_from_file): Change baton parameter to
4054 dirname.
4055 * xml-support.c (struct xinclude_parsing_data)
4056 <xinclude_parsing_data>: Remove baton parameter.
4057 <fetcher_baton>: Remove.
4058 (xinclude_start_include): Adjust.
4059 (xml_process_xincludes): Adjust.
4060 (xml_fetch_content_from_file): Replace baton parameter with
4061 dirname.
4062 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4063 (xml_init_syscalls_info): Use a lambda.
4064 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4065 (file_read_description_xml): Use a lambda.
4066 (fetch_available_features_from_target): Change baton parameter
4067 to target_ops.
4068 (target_read_description_xml): Use a lambda.
4069 (target_fetch_description_xml): Use a lambda.
4070 (string_read_description_xml): Update.
4071
04f5bab2
SM
40722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4073
4074 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4075 uses with type::endianity_is_not_default.
4076
db558e34
SM
40772020-09-14 Simon Marchi <simon.marchi@efficios.com>
4078
4079 * gdbtypes.h (struct type) <endianity_is_not_default,
4080 set_endianity_is_not_default>: New methods.
4081 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4082 type::endianity_is_not_default, change all write call sites to
4083 use type::set_endianity_is_not_default.
4084
22c4c60c
SM
40852020-09-14 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4088 uses with type::is_fixed_instance.
4089
9cdd0d12
SM
40902020-09-14 Simon Marchi <simon.marchi@efficios.com>
4091
4092 * gdbtypes.h (struct type) <is_fixed_instance,
4093 set_is_fixed_instance>: New methods.
4094 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4095 write call sites to use type::set_is_fixed_instance.
4096
0becda7a
SM
40972020-09-14 Simon Marchi <simon.marchi@efficios.com>
4098
4099 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4100 uses with type::is_gnu_ifunc.
4101
03cc7249
SM
41022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4105 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4106 use type::set_is_gnu_ifunc.
4107
3f46044c
SM
41082020-09-14 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4111 uses with type::stub_is_supported.
4112
9baccff6
SM
41132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4116 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4117 use type::set_stub_is_supported.
4118
bd63c870
SM
41192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4120
4121 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4122 uses with type::is_vector.
4123
2062087b
SM
41242020-09-14 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4127 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4128 use type::set_is_vector.
4129
a409645d
SM
41302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4131
4132 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4133 uses with type::has_varargs.
4134
1d6286ed
SM
41352020-09-14 Simon Marchi <simon.marchi@efficios.com>
4136
4137 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4138 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4139 use type::set_has_varargs.
4140
7f9f399b
SM
41412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4144 uses with type::is_prototyped.
4145
27e69b7a
SM
41462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4149 New methods.
4150 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4151 call sites to use type::set_is_prototyped.
4152
d2183968
SM
41532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4154
4155 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4156 uses with type::target_is_stub.
4157
8f53807e
SM
41582020-09-14 Simon Marchi <simon.marchi@efficios.com>
4159
4160 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4161 New methods.
4162 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4163 sites to use type::set_target_is_stub.
4164
e46d3488
SM
41652020-09-14 Simon Marchi <simon.marchi@efficios.com>
4166
4167 * gdbtypes.h (TYPE_STUB): Remove, replace all
4168 uses with type::is_stub.
4169
b4b73759
SM
41702020-09-14 Simon Marchi <simon.marchi@efficios.com>
4171
4172 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4173 (TYPE_STUB): Use type::is_stub, change all write call sites to
4174 use type::set_is_stub.
4175
20ce4123
SM
41762020-09-14 Simon Marchi <simon.marchi@efficios.com>
4177
4178 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4179 type::has_no_signedness.
4180
15152a54
SM
41812020-09-14 Simon Marchi <simon.marchi@efficios.com>
4182
4183 * gdbtypes.h (struct type) <has_no_signedness,
4184 set_has_no_signedness>: New methods.
4185 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4186 call sites to use type::set_has_no_signedness.
4187
c6d940a9
SM
41882020-09-14 Simon Marchi <simon.marchi@efficios.com>
4189
4190 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4191 type::is_unsigned.
4192
653223d3
SM
41932020-09-14 Simon Marchi <simon.marchi@efficios.com>
4194
4195 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4196 methods.
4197 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4198 sites to use type::set_is_unsigned.
4199
55ea94da 42002020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4201 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4202
e851246a
SM
4203 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4204 pointer and stack frame offset when unwinding.
55ea94da 4205
6791b117
PA
42062020-09-13 Pedro Alves <pedro@palves.net>
4207
4208 * NEWS: Document "-break-insert --qualified".
4209 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4210
77f2120b
PA
42112020-09-13 Pedro Alves <pedro@palves.net>
4212
4213 * linespec.c (classify_mtype, compare_msyms): Delete.
4214 (search_minsyms_for_name): Remove classification logic. Instead
4215 filter out trampoline symbols if we also found an external
4216 function of the same name.
4217
ed6a896c
JB
42182020-09-13 Joel Brobecker <brobecker@adacore.com>
4219
4220 * NEWS: Create a new section for the next release branch.
4221 Rename the section of the current branch, now that it has
4222 been cut.
4223
32aea73e
JB
42242020-09-13 Joel Brobecker <brobecker@adacore.com>
4225
4226 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4227 * version.in: Bump version to 11.0.50.DATE-git.
4228
8087c3fa
JB
42292020-09-12 Joel Brobecker <brobecker@adacore.com>
4230
4231 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4232
2a67f09d
FW
42332020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4234 Felix Willgerodt <Felix.Willgerodt@intel.com>
4235
4236 * gdbarch.sh: Added bfloat16 type.
4237 * gdbarch.c: Regenerated.
4238 * gdbarch.h: Regenerated.
4239 * gdbtypes.c (floatformats_bfloat16): New struct.
4240 (gdbtypes_post_init): Add builtin_bfloat16.
4241 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4242 (floatformats_bfloat16): New struct.
4243 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4244 (i386_ymm_type): Add field "v16_bfloat16"
4245 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4246 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4247 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4248 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4249 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4250 * features/i386/64bit-avx512.c: Regenerated.
4251 * features/i386/64bit-sse.xml: Add bfloat16 type.
4252 * features/i386/64bit-sse.c: Regenerated.
4253
1347d111
FW
42542020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4255
4256 * i386-tdep.c (i386_zmm_type): Fix field names.
4257 (i386_ymm_type): Fix field names.
4258
7a4e8e7d
TBA
42592020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4260
4261 * breakpoint.c: Fix typo in the help message of the
4262 "set breakpoint condition-evaluation" command.
4263
cf4ac4be
KR
42642020-09-10 Kamil Rytarowski <n54@gmx.com>
4265
4266 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4267 * (nbsd_nat_target::pid_to_exec_file)
4268 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4269 (nbsd_nat_target::post_startup_inferior)
4270 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4271 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4272 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4273 * (nbsd_thread_lister): Remove.
4274
f404573e
KR
42752020-09-10 Kamil Rytarowski <n54@gmx.com>
4276
4277 * fork-inferior.c (startup_inferior): Avoid double free.
4278
1ccb2c17
KR
42792020-09-10 Kamil Rytarowski <n54@gmx.com>
4280
4281 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4282 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4283
feedfcc7
KR
42842020-09-10 Kamil Rytarowski <n54@gmx.com>
4285
4286 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4287 * netbsd-nat.c: Include <sys/ptrace.h>.
4288 * (netbsd_nat::enable_proc_events): Add.
4289
c489f8c6
KR
42902020-09-10 Kamil Rytarowski <n54@gmx.com>
4291
4292 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4293 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4294 (netbsd_nat::for_each_thread): Add.
4295 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4296 "gdbsupport/common-debug.h".
4297 * (netbsd_nat::netbsd_thread_lister)
4298 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4299 (netbsd_nat::for_each_thread): Add.
4300
330662f6
KR
43012020-09-10 Kamil Rytarowski <n54@gmx.com>
4302
4303 * netbsd-nat.h: Include <unistd.h>.
4304 * (netbsd_nat::pid_to_exec_file): Add.
4305 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4306 * (netbsd_nat::pid_to_exec_file) Add.
4307
70b67307
KR
43082020-09-10 Kamil Rytarowski <n54@gmx.com>
4309
4310 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4311
99cf6da6
KR
43122020-09-10 Kamil Rytarowski <n54@gmx.com>
4313
4314 * netbsd-nat.h: New file.
4315 * netbsd-nat.c: Likewise.
4316
1b788fb6
TT
43172020-09-09 Tom Tromey <tromey@adacore.com>
4318
4319 * ada-lang.c (remove_extra_symbols): Do not increment when
4320 removing an element
4321
03b0a45f
TT
43222020-09-08 Tom Tromey <tromey@adacore.com>
4323
4324 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4325
3cae4447
TT
43262020-09-08 Tom Tromey <tromey@adacore.com>
4327
4328 PR win32/25302:
4329 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4330 (gdb_bfd_init_data): New function.
4331 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4332
7f08fd51
TBA
43332020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4334
4335 * infrun.c (fetch_inferior_event): Use
4336 `switch_to_target_no_thread` to switch the target.
4337
3e6ff933
TT
43382020-09-06 Tom Tromey <tom@tromey.com>
4339
4340 * symfile.h (dwarf2_free_objfile): Don't declare.
4341
e56798df
AKS
43422020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4343
4344 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4345 to match 16 byte real/complex type generated by Flang compiler.
4346
8f5c6526
TV
43472020-09-03 Tom de Vries <tdevries@suse.de>
4348
4349 PR breakpoint/26546
4350 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4351 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4352
c5065df0
SM
43532020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4354
4355 * maint.c (index_digits): New function.
4356 (struct maint_print_section_data): Remove.
4357 (print_bfd_section_info): Remove print_data parameter, add arg
4358 and index_digits.
4359 (print_objfile_section_info): Likewise.
4360 (print_bfd_section_info_maybe_relocated): Likewise (plus
4361 objfile).
4362 (maintenance_info_sections): Adjust calls.
4363
02c6f3f1
TT
43642020-09-02 Tom Tromey <tromey@adacore.com>
4365
4366 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4367 for null pointers.
4368 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4369
ef5e5b0b
SM
43702020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4371
4372 * bcache.h (struct bcache) <insert>: Change type of `added` to
4373 pointer to bool.
4374 * bcache.c (bcache::insert): Likewise.
4375 * gdbtypes.c (check_types_worklist): Adjust.
4376 * psymtab.c (add_psymbol_to_bcache): Adjust.
4377
973695d6
KB
43782020-08-31 Kevin Buettner <kevinb@redhat.com>
4379
4380 * corelow.c (unordered_set): Include.
4381 (class core_target): Add field 'm_core_unavailable_mappings'.
4382 (core_target::build_file_mappings): Print only one warning
4383 per inaccessible file. Add unavailable/broken mappings
4384 to m_core_unavailable_mappings.
4385 (core_target::xfer_partial): Call...
4386 (core_target::xfer_memory_via_mappings): New method.
4387
264fc0e2
SM
43882020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4389
4390 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4391 type to bool.
4392
2de01bdb
SM
43932020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4394
4395 * dwarf2/read.c (struct field_info): Fix indentation.
4396
f3bd50f1
SM
43972020-08-31 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4400 ordering in comment.
4401 * frame.c (frame_id_eq): Fix indentation.
4402
22b9b4b0
SL
44032020-08-31 Scott Linder <scott@scottlinder.com>
4404 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4407 inline frame ids in outer frame.
4408
84154d16
SM
44092020-08-31 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4412 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4413 (outer_frame_id): Use FID_STACK_OUTER instead of
4414 FID_STACK_INVALID.
4415 (frame_id_p): Don't check for outer_frame_id.
4416
8efaf6b3
SM
44172020-08-31 Simon Marchi <simon.marchi@efficios.com>
4418
4419 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4420 regnum/frame in value. Call allocate_value_lazy.
4421 * frame.c (frame_unwind_register_value): Use
4422 val_print_not_saved.
4423
fe1fe7ea
SM
44242020-08-31 Simon Marchi <simon.marchi@efficios.com>
4425
4426 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4427
f7c7700d
PA
44282020-08-29 Pedro Alves <pedro@palves.net>
4429
4430 * progspace.c (print_program_space): Use all_inferiors. Switch to
4431 the inferior before calling target_pid_to_str.
4432
e0814aae
TT
44332020-08-28 Tom Tromey <tom@tromey.com>
4434
4435 * xcoffread.c (xcoff_end_psymtab): Update comment.
4436 * dbxread.c (dbx_end_psymtab): Update comment.
4437
626d2320
TV
44382020-08-28 Tom de Vries <tdevries@suse.de>
4439
4440 PR breakpoint/26544
4441 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4442 event_location.
4443 (create_breakpoint): Same.
4444 (base_breakpoint_decode_location): Same.
4445 (bkpt_create_sals_from_location): Same.
4446 (bkpt_decode_location): Same.
4447 (bkpt_probe_create_sals_from_location): Same.
4448 (bkpt_probe_decode_location): Same.
4449 (tracepoint_create_sals_from_location): Same.
4450 (tracepoint_decode_location): Same.
4451 (tracepoint_probe_decode_location): Same.
4452 (strace_marker_create_sals_from_location): Same.
4453 (strace_marker_decode_location): Same.
4454 (create_sals_from_location_default): Same.
4455 (decode_location_default): Same.
4456 * breakpoint.h (struct breakpoint_ops): Same.
4457 (create_breakpoint): Same.
4458 * linespec.h (decode_line_full): Same.
4459 * linespec.c (decode_line_full): Same. Throw error if
4460 result.size () == 0.
4461
df631783
PA
44622020-08-27 Pedro Alves <pedro@palves.net>
4463
4464 PR gdb/26524
4465 * breakpoint.c (until_break_fsm) <location_breakpoint,
4466 caller_breakpoint>: Delete fields.
4467 <breakpoints>: New field.
4468 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4469 two individual breakpoints.
4470 (until_break_fsm::should_stop): Loop over breakpoints in the
4471 breakpoint vector.
4472 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4473 vector.
4474 (until_break_command): Handle location expanding into multiple
4475 sals.
4476
b2b38aa4
PA
44772020-08-27 Pedro Alves <pedro@palves.net>
4478
4479 PR gdb/26523
4480 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4481 bp_until breakpoints user-specified locations. Update intro
4482 comment.
4483
b886559f
SM
44842020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4485
4486 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4487 gdb_bfd_sections): New.
4488 * maint.c (print_bfd_section_info): Change param type to
4489 maint_print_section_data.
4490 (print_objfile_section_info): Likewise.
4491 (print_bfd_section_info_maybe_relocated): Likewise.
4492 (maintenance_info_sections): Use gdb_bfd_sections.
4493
4c6e63bf
SV
44942020-08-25 Shahab Vahedi <shahab@synopsys.com>
4495
4496 * MAINTAINERS: Add ARC target and maintainer.
4497
8d7f0635
AK
44982020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4499
4500 * configure.tgt: ARC support for GNU/Linux.
4501 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4502 * arc-linux-tdep.c: New file.
4503 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4504 * arc-tdep.c (arc_write_pc): Use it.
4505
fdd8731b
SV
45062020-08-25 Shahab Vahedi <shahab@synopsys.com>
4507
4508 * arc-tdep.c (arc_check_for_hardware_loop): New.
4509 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4510
22459524
SV
45112020-08-25 Shahab Vahedi <shahab@synopsys.com>
4512
4513 * arc-tdep.h: Include "gdbarch.h".
4514
995d3a19
SV
45152020-08-25 Shahab Vahedi <shahab@synopsys.com>
4516
4517 * arch/arc.h
4518 (arc_gdbarch_features): New class to stir the selection of target XML.
4519 (arc_create_target_description): Use FEATURES to choose XML target.
4520 (arc_lookup_target_description): Use arc_create_target_description
4521 to create _new_ target descriptions or return the already created
4522 ones if the FEATURES is the same.
4523 * arch/arc.c: Implementation of prototypes described above.
4524 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4525 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4526 * arc-tdep.c (*_feature_name): Make feature names consistent.
4527 (arc_register_feature): A new struct to hold information about
4528 registers of a particular target/feature.
4529 (arc_check_tdesc_feature): Check if XML provides registers in
4530 compliance with ARC_REGISTER_FEATURE structs.
4531 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4532 (determine_*_reg_feature_set): Which feature name to look for.
4533 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4534 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4535 to expected ISA enums to be used in arc_gdbarch_features structs.
4536 * features/Makefile (FEATURE_XMLFILES): Add new files.
4537 * gdb/features/arc/v1-aux.c: New file.
4538 * gdb/features/arc/v1-aux.xml: Likewise.
4539 * gdb/features/arc/v1-core.c: Likewise.
4540 * gdb/features/arc/v1-core.xml: Likewise.
4541 * gdb/features/arc/v2-aux.c: Likewise.
4542 * gdb/features/arc/v2-aux.xml: Likewise.
4543 * gdb/features/arc/v2-core.c: Likewise.
4544 * gdb/features/arc/v2-core.xml: Likewise.
4545 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4546
3945d2d7
GM
45472020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4548 Andrew Burgess <andrew.burgess@embecosm.com>
4549
4550 PR m2/26372
fc5d6901 4551 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4552 an assert. Remove single element array indexing pattern as the
4553 MULTI_SUBSCRIPT support will handle this case too.
4554
2677f2d3
SM
45552020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4556
4557 * value.h (valprint_check_validity): Move declaration from
4558 here...
4559 * valprint.h (valprint_check_validity): ... to here.
4560
c426fddb
SM
45612020-08-24 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * debug.h: New file.
4564 * debug.c (debug_prefixed_vprintf): New function.
4565 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4566 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4567
1eb8556f
SM
45682020-08-24 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * infrun.h (infrun_debug_printf_1): New function declaration.
4571 (infrun_debug_printf): New macro.
4572 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4573 throughout.
4574 (infrun_debug_printf): New function.
4575 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4576 (handle_jit_event): Likewise.
4577
b8fff44e
MW
45782020-08-21 Mark Wielaard <mark@klomp.org>
4579
4580 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4581
d19c3068
SM
45822020-08-22 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * frame.c (enum class frame_id_status): New.
4585 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4586 (fprintf_frame): Update.
4587 (compute_frame_id): Set frame id status to "computing" on entry.
4588 Set it back to "not_computed" on failure and to "computed" on
4589 success.
4590 (get_frame_id): Assert the frame id is not being computed.
4591 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4592 (create_new_frame): Likewise.
4593 (frame_cleanup_after_sniffer): Update assert.
4594
b70e516e
SM
45952020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4596
4597 * regcache.c (pid_ptid_regcache_map): New type.
4598 (target_ptid_regcache_map): Remove.
4599 (target_pid_ptid_regcache_map): New type.
4600 (regcaches): Change type to target_pid_ptid_regcache_map.
4601 (get_thread_arch_aspace_regcache): Update.
4602 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4603 case.
4604 (regcaches_size): Update.
4605 (regcache_count): Update.
4606 (registers_changed_ptid_target_pid_test): New.
4607 (_initialize_regcache): Register new test.
4608
cdd9148a
SM
46092020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4610
4611 * regcache.c (regcache_count): New.
4612 (struct regcache_test_data): New.
4613 (regcache_test_data_up): New.
4614 (populate_regcaches_for_test): New.
4615 (regcaches_test): Remove.
4616 (get_thread_arch_aspace_regcache_test): New.
4617 (registers_changed_ptid_all_test): New.
4618 (registers_changed_ptid_target_test): New.
4619 (registers_changed_ptid_target_ptid_test): New.
4620 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4621 (_initialize_regcache): Register new tests.
4622
dd125343
SM
46232020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4624
4625 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4626 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4627 gdbarch and aspace parameter. Use current inferior's aspace.
4628 Validate regcache's arch value.
4629 (regcaches_test): Update.
4630
3ee93972
SM
46312020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4632
4633 * regcache.c (regcaches_test): Call registers_changed.
4634
33bf4c5c
TBA
46352020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4636
4637 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4638
c2fd7fae
AKS
46392020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4640
4641 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4642 to find the end of prologue for flang compiled binaries.
4643 * arm-tdep.c (arm_skip_prologue): Likewise.
4644 * i386-tdep.c (i386_skip_prologue): Likewise.
4645 * producer.c (producer_is_llvm): New function.
4646 (producer_parsing_tests): Added new tests for clang/flang.
4647 * producer.h (producer_is_llvm): New declaration.
4648
9327494e
SM
46492020-08-18 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * linux-nat.c (linux_nat_debug_printf): New function.
4652 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4653
d138725a
AM
46542020-08-18 Aaron Merey <amerey@redhat.com>
4655
4656 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4657 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4658 (CLIBS): Add DEBUGINFOD_LIBS.
4659
f9b11e6b
ST
46602020-08-17 Sergei Trofimovich <siarheit@google.com>
4661
4662 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4663 'gdbarch_num_regs'.
4664
3ae7ab99
TT
46652020-08-17 Tom Tromey <tromey@adacore.com>
4666
4667 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4668 ada_get_decoded_value returns NULL.
4669
b017825f
TT
46702020-08-17 Tom Tromey <tromey@adacore.com>
4671
4672 * python/py-inferior.c (infpy_search_memory): Use
4673 gdb_py_object_from_ulongest.
4674 * python/py-infevents.c (create_inferior_call_event_object)
4675 (create_memory_changed_event_object): Use
4676 gdb_py_object_from_ulongest.
4677 * python/py-linetable.c (ltpy_entry_get_pc): Use
4678 gdb_py_object_from_ulongest.
4679
7635cf79
SM
46802020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4681
4682 * loc.c (class symbol_needs_eval_context): Fix indentation.
4683
f54be24b
SM
46842020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4685
4686 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4687 bool.
4688
53d5a2a5
TV
46892020-08-17 Tom de Vries <tdevries@suse.de>
4690
4691 PR gdb/26393
4692 * gdbtypes.c (dump_dynamic_prop): New function.
4693 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4694
547ce8f0
TV
46952020-08-15 Tom de Vries <tdevries@suse.de>
4696
4697 PR backtrace/26390
4698 * stack.c (print_frame_args): Temporarily set the selected
4699 frame to FRAME while printing the frame's arguments.
4700
6ea815e7
PFC
47012020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4702
4703 PR breakpoints/26385
4704 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4705 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4706
6e562fa3
PFC
47072020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4708
4709 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4710 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4711 and >= to check return value instead of == -1 and != -1.
4712
d369b608
SM
47132020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4714
4715 * utils.h (class gdb_argv) <as_array_view>: New method.
4716 * utils.c (gdb_argv_as_array_view_test): New.
4717 (_initialize_utils): Register selftest.
4718 * maint.c (maintenance_selftest): Use the new method.
4719
b31488a3
KR
47202020-08-13 Kamil Rytarowski <n54@gmx.com>
4721
4722 * target.h (supports_dumpcore, dumpcore): New
4723 function declarations.
4724 * target.c (supports_dumpcore, dumpcore): New
4725 functions.
4726 * target-delegates.c: Rebuild.
4727 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4728 and target_dumpcore ().
4729
002a3166
AM
47302020-08-13 Aaron Merey <amerey@redhat.com>
4731
4732 * debuginfod-support.c: Replace global variables with user_data.
4733
ece5bc8a
SM
47342020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4735
4736 * maint.c (maintenance_selftest): Split args and pass array_view
4737 to run_tests.
4738
6d8a0a5e
LM
47392020-08-12 Luis Machado <luis.machado@linaro.org>
4740
4741 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4742 type's length.
4743 Use %s and pulongest to print the length.
4744
7cf663a9
PA
47452020-08-12 Pedro Alves <palves@redhat.com>
4746
4747 * NEWS: Move "Multi-target debugging support" item to the
4748 "Changes since GDB 9" section.
4749
27c7b875
PA
47502020-08-12 Pedro Alves <palves@redhat.com>
4751
4752 PR gdb/26336
4753 * progspace.c (program_space::remove_objfile): Invalidate the
4754 frame cache.
4755
1796a2a1
TV
47562020-08-11 Tom de Vries <tdevries@suse.de>
4757
4758 * MAINTAINERS: Mark ms1 as deleted.
4759
f8e3fe0d
LM
47602020-08-10 Luis Machado <luis.machado@linaro.org>
4761
4762 PR gdb/26310
4763
4764 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4765 act accordingly.
4766 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4767 movz/str/stur/stp skipping behavior.
4768
cc308722
LM
47692020-08-10 Luis Machado <luis.machado@linaro.org>
4770
4771 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4772 struct user_sve_header instead of struct sve_context.
4773
041d9819
SM
47742020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4775
4776 * read.h (dwarf2_fetch_die_loc_sect_off,
4777 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4778 `void *` parameter with function_view.
4779 * read.c (dwarf2_fetch_die_loc_sect_off,
4780 dwarf2_fetch_die_loc_cu_off): Likewise.
4781 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4782 (per_cu_dwarf_call): Adjust.
4783 (get_frame_address_in_block_wrapper): Remove.
4784 (indirect_synthetic_pointer): Adjust.
4785 (get_ax_pc): Remove.
4786 (dwarf2_compile_expr_to_ax): Adjust.
4787
38f8aa06
TV
47882020-08-08 Tom de Vries <tdevries@suse.de>
4789
4790 PR build/26344
4791 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4792 constructor.
4793 * regcache.c (get_thread_arch_aspace_regcache): Same.
4794
a52b3ae2
TT
47952020-08-07 Tom Tromey <tromey@adacore.com>
4796
4797 * ravenscar-thread.c
4798 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4799 New method.
4800 (ravenscar_thread_target::wait): Check
4801 runtime_initialized.
4802 (ravenscar_thread_target::prepare_to_store)
4803 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4804 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4805 (ravenscar_thread_target::stopped_by_watchpoint)
4806 (ravenscar_thread_target::stopped_data_address)
4807 (ravenscar_thread_target::core_of_thread): Use
4808 scoped_restore_current_thread and
4809 set_base_thread_from_ravenscar_task.
4810
0e29517d
TT
48112020-08-07 Tom Tromey <tromey@adacore.com>
4812
4813 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4814
592f9bd7
TT
48152020-08-07 Tom Tromey <tromey@adacore.com>
4816
4817 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4818 update_inferior_ptid before update_thread_list.
4819 (temporarily_change_regcache_ptid): New class.
4820 (ravenscar_thread_target::fetch_registers)
4821 (ravenscar_thread_target::store_registers)
4822 (ravenscar_thread_target::prepare_to_store): Use base thread when
4823 forwarding operation.
4824
39e2018a
TT
48252020-08-07 Tom Tromey <tromey@adacore.com>
4826
4827 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4828 "is_pid" case.
4829
2080266b
TT
48302020-08-07 Tom Tromey <tromey@adacore.com>
4831
4832 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4833 New methods.
4834 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4835 first.
4836 (ravenscar_thread_target::add_thread): Rename from
4837 ravenscar_add_thread.
4838 (ravenscar_thread_target::update_thread_list): Use a lambda.
4839 (ravenscar_thread_target::xfer_partial): New method.
4840
78c02f21
TT
48412020-08-07 Tom Tromey <tromey@adacore.com>
4842
4843 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4844 gdb::function_view.
4845 (iterate_over_live_ada_tasks): Change type of argument.
4846 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4847 of argument.
4848
d5d833af
TT
48492020-08-07 Tom Tromey <tromey@adacore.com>
4850
4851 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4852 Remove.
4853 (ravenscar_thread_target::extra_thread_info): Remove.
4854 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4855 defer to target beneath for non-Ravenscar threads.
4856
a8ac85bb
TT
48572020-08-07 Tom Tromey <tromey@adacore.com>
4858
4859 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4860 get_base_thread_from_ravenscar_task>: Now methods.
4861 <m_cpu_map>: New member.
4862 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4863 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4864 (ravenscar_thread_target::task_is_currently_active): Update.
4865 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4866 Now a method.
4867 (ravenscar_thread_target::add_active_thread): Put initial thread
4868 into the m_cpu_map.
4869
550ab58d
TT
48702020-08-07 Tom Tromey <tromey@adacore.com>
4871
4872 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4873 event_ptid.
4874
e9546579
TT
48752020-08-07 Tom Tromey <tromey@adacore.com>
4876
4877 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4878 runtime_initialized.
4879
3d4470e5
TT
48802020-08-07 Tom Tromey <tromey@adacore.com>
4881
4882 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4883 add_active_thread.
4884 (ravenscar_thread_target::add_active_thread): Now public.
4885 (ravenscar_inferior_created): Call add_active_thread after pushing
4886 the target.
4887
888bdb2b
SM
48882020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4889
4890 * regcache.c (ptid_regcache_map): New type.
4891 (target_ptid_regcache_map): New type.
4892 (regcaches): Change type to target_ptid_regcache_map.
4893 (get_thread_arch_aspace_regcache): Update to regcaches' new
4894 type.
4895 (regcache_thread_ptid_changed): Likewise.
4896 (registers_changed_ptid): Likewise.
4897 (regcaches_size): Likewise.
4898 (regcaches_test): Update.
4899 (regcache_thread_ptid_changed): Update.
4900 * regcache.h (regcache_up): New type.
4901 * gdbsupport/ptid.h (hash_ptid): New struct.
4902
b161a60d
SM
49032020-08-07 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * observable.h (thread_ptid_changed): Add parameter
4906 `process_stratum_target *`.
4907 * infrun.c (infrun_thread_ptid_changed): Add parameter
4908 `process_stratum_target *` and use it.
4909 (selftests): New namespace.
4910 (infrun_thread_ptid_changed): New function.
4911 (_initialize_infrun): Register selftest.
4912 * regcache.c (regcache_thread_ptid_changed): Add parameter
4913 `process_stratum_target *` and use it.
4914 (regcache_thread_ptid_changed): New function.
4915 (_initialize_regcache): Register selftest.
4916 * thread.c (thread_change_ptid): Pass target to
4917 thread_ptid_changed observable.
4918
d2854d8d
CT
49192020-08-06 Caroline Tice <cmtice@google.com>
4920
fe4c3d43
SM
4921 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4922 (struct dwp_sections): Update field comments. Add loclists and
4923 rnglists fields.
4924 (struct virtual_v2_dwo_sections): Rename struct to
4925 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4926 size & offset fields for loclists and rnglists.
4927 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4928 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4929 skipping dummy type units.
4930 (create_dwp_hash_table): Update the large comment above the function to
4931 discuss Version 5 DWP files as well, with references. Update all the
4932 version checks in the function to check for version 5 as well. Add new
4933 section at the end to create dwp hash table for version 5.
4934 (create_dwp_v2_section): Rename function to
4935 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4936 Add V5 to error message text.
4937 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4938 into calls to create_dwp_v2_or_v5_section.
4939 (create_dwo_unit_in_dwp_v5): New function.
4940 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4941 check for version2; add else clause to handle version 5.
4942 (open_and_init_dwo_file): Add code to check dwarf version & only call
4943 create_debug_types_hash_table (with sections.types) if version is not 5;
4944 else call create_debug_type_hash_table, with sections.info.
4945 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4946 version 5.
4947 (dwarf2_locate_v5_dwp_sections): New function.
4948 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4949 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4950
159ed7d9
SM
49512020-08-06 Simon Marchi <simon.marchi@efficios.com>
4952
4953 * regcache.h (class regcache): Remove friend
4954 registers_changed_ptid.
4955 <regcache_thread_ptid_changed>: Remove.
4956 <regcaches>: Remove.
4957 * regcache.c (regcache::regcaches): Rename to...
4958 (regcaches): ... this. Make static.
4959 (get_thread_arch_aspace_regcache): Update.
4960 (regcache::regcache_thread_ptid_changed): Rename to...
4961 (regcache_thread_ptid_changed): ... this. Update.
4962 (class regcache_access): Remove.
4963 (regcaches_test): Update.
4964 (_initialize_regcache): Update.
4965 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4966 <forward_list>.
4967
174981ae
SM
49682020-08-06 Simon Marchi <simon.marchi@efficios.com>
4969
4970 * regcache.h (class regcache) <current_regcache>: Rename to...
4971 <regcaches>: ... this. Move doc here.
4972 * regcache.c (regcache::current_regcache) Rename to...
4973 (regcache::regcaches): ... this. Move doc to header.
4974 (get_thread_arch_aspace_regcache): Update.
4975 (regcache::regcache_thread_ptid_changed): Update.
4976 (registers_changed_ptid): Update.
4977 (class regcache_access) <current_regcache_size>: Rename to...
4978 <regcaches_size>: ... this.
4979 (current_regcache_test): Rename to...
4980 (regcaches_test): ... this.
4981 (_initialize_regcache): Update.
4982
ed908db6
VC
49832020-08-06 Victor Collod <vcollod@nvidia.com>
4984
4985 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4986
b5582ab7
KB
49872020-08-05 Kevin Buettner <kevinb@redhat.com>
4988
4989 * corelow.c (core_target::build_file_mappings): Don't output
4990 null pathname in warning.
4991
ea946b86
SM
49922020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4993
4994 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4995 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4996 gdb.dwarf2/dw2-single-line-discriminators.exp,
4997 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4998
57d02173
TT
49992020-08-05 Tom Tromey <tromey@adacore.com>
5000
5001 PR rust/26197:
5002 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5003 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5004 Fix off-by-one and type size errors in ordinary case.
5005
5555c86d
TV
50062020-08-05 Tom de Vries <tdevries@suse.de>
5007
5008 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5009 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5010
97916bfe
SM
50112020-08-04 Simon Marchi <simon.marchi@efficios.com>
5012
5013 * frame.h (frame_id_p): Return bool.
5014 (frame_id_artificial_p): Return bool.
5015 (frame_id_eq): Return bool.
5016 (has_stack_frames): Return bool.
5017 (get_selected_frame): Fix typo in comment.
5018 (get_frame_pc_if_available): Return bool.
5019 (get_frame_address_in_block_if_available): Return bool.
5020 (get_frame_func_if_available): Return bool.
5021 (read_frame_register_unsigned): Return bool.
5022 (get_frame_register_bytes): Return bool.
5023 (safe_frame_unwind_memory): Return bool.
5024 (deprecated_frame_register_read): Return bool.
5025 (frame_unwinder_is): Return bool.
5026 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5027 bool.
5028 <this_id::p>: Likewise.
5029 <prev_p>: Likewise.
5030 (frame_stash_add): Return bool.
5031 (get_frame_id): Use bool.
5032 (frame_id_build_special) Use bool.
5033 (frame_id_build_unavailable_stack): Use bool.
5034 (frame_id_build): Use bool.
5035 (frame_id_p): Return bool, use true/false instead of 1/0.
5036 (frame_id_artificial_p): Likewise.
5037 (frame_id_eq): Likewise.
5038 (frame_id_inner): Likewise.
5039 (get_frame_func_if_available): Likewise.
5040 (read_frame_register_unsigned): Likewise.
5041 (deprecated_frame_register_read): Likewise.
5042 (get_frame_register_bytes): Likewise.
5043 (has_stack_frames): Likewise.
5044 (inside_main_func): Likewise.
5045 (inside_entry_func): Likewise.
5046 (get_frame_pc_if_available): Likewise.
5047 (get_frame_address_in_block_if_available): Likewise.
5048 (frame_unwinder_is): Likewise.
5049 (safe_frame_unwind_memory): Likewise.
5050 (frame_unwind_arch): Likewise.
5051
fedfee88
SM
50522020-08-04 Simon Marchi <simon.marchi@efficios.com>
5053
5054 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5055 type to cached_copy_status.
5056 (fprintf_frame): Adjust.
5057 (get_frame_func_if_available): Adjust.
5058 (frame_cleanup_after_sniffer): Adjust.
5059
6cfa9b59
MW
50602020-08-04 Mark Wielaard <mark@klomp.org>
5061
5062 * MAINTAINERS (Write After Approval): Update email address.
5063
66d6346b
SM
50642020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5067 dynamic_prop::const_val.
5068
8a6d5e35
SM
50692020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5070
5071 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5072 dynamic_prop::kind.
5073
51d6067d
SM
50742020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5075
5076 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5077
b26e2ae7
JM
50782020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5079
5080 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5081
39791af2
JM
50822020-08-04 Weimin Pan <weimin.pan@oracle.com>
5083 Jose E. Marchesi <jose.marchesi@oracle.com>
5084
5085 * configure.tgt: Add entry for bpf-*-*.
5086 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5087 (ALLDEPFILES): Add bpf-tdep.c.
5088 * bpf-tdep.c: New file.
5089 * MAINTAINERS: Add bpf target and maintainer.
5090 * NEWS: Mention the support for the new target.
5091
521894aa
TV
50922020-08-04 Tom de Vries <tdevries@suse.de>
5093
5094 PR symtab/23270
5095 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5096 Error.
5097
5d6356e9
JB
50982020-08-03 John Baldwin <jhb@FreeBSD.org>
5099
5100 * syscalls/freebsd.xml: Regenerate.
5101
0cf82b81
JB
51022020-08-03 John Baldwin <jhb@FreeBSD.org>
5103
5104 * syscalls/update-freebsd.sh: Fix usage and year range.
5105
8f34b746
TV
51062020-08-03 Tom de Vries <tdevries@suse.de>
5107
5108 PR symtab/26333
5109 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5110 DW_LNE_lo_user/DW_LNE_hi_user range.
5111
5e500d33
SM
51122020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5113
5114 PR ada/26318
5115 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5116 kind.
5117
78319c15
TBA
51182020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5119
5120 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5121
4c55e970
TBA
51222020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5123
5124 * breakpoint.c (set_breakpoint_condition): Update the condition
5125 expressions after checking that the input condition string parses
5126 successfully and does not contain junk at the end.
5127
1e620590
TBA
51282020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5129
5130 * breakpoint.c (set_breakpoint_condition): Update the
5131 condition string after parsing the new condition successfully.
5132
c8693053
RO
51332020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5134
5135 * proc-api.c (_STRUCTURED_PROC): Don't define.
5136 * proc-events.c: Likewise.
5137 * proc-flags.c: Likewise.
5138 * proc-why.c: Likewise.
5139 * procfs.c: Likewise.
5140
5141 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5142 * configure, config.in: Regenerate.
5143
5a99adb8
TV
51442020-07-30 Tom de Vries <tdevries@suse.de>
5145
5146 PR build/26320
5147 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5148 m_red/m_green/m_blue in a union.
5149
8ba83e91
TV
51502020-07-29 Tom de Vries <tdevries@suse.de>
5151
5152 PR tdep/26280
5153 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5154
f75a0693
AB
51552020-07-28 Tom Tromey <tromey@adacore.com>
5156
5157 PR symtab/26270:
5158 * symtab.h (find_pc_partial_function_sym): Declare.
5159 * cli/cli-cmds.c (disassemble_command): Use
5160 find_pc_partial_function_sym. Check asm_demangle.
5161 * blockframe.c (cache_pc_function_sym): New global.
5162 (cache_pc_function_name): Remove.
5163 (clear_pc_function_cache): Update.
5164 (find_pc_partial_function_sym): New function, from
5165 find_pc_partial_function.
5166 (find_pc_partial_function): Rewrite using
5167 find_pc_partial_function_sym.
5168
16f3242c
TT
51692020-07-28 Tom Tromey <tromey@adacore.com>
5170
5171 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5172 help. Add usage.
5173
4888741a
TT
51742020-07-28 Tom Tromey <tromey@adacore.com>
5175
5176 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5177 <DW_OP_GNU_variable_value>: Cast to address type.
5178
4d46f402
KR
51792020-07-28 Kamil Rytarowski <n54@gmx.com>
5180
5181 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5182 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5183 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5184 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5185 (nbsd_get_siginfo_type): New.
5186 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5187 (_initialize_nbsd_tdep): New.
5188
d70f978b
L
51892020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5190
5191 PR binutils/26301
5192 * configure: Regenerated.
5193
377170fa
L
51942020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5195
5196 PR binutils/26301
5197 * configure: Regenerated.
5198
43d5901d
AB
51992020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5200
5201 * python/py-frame.c: Remove 'user-regs.h' include.
5202 (frapy_read_register): Rewrite to make use of
5203 gdbpy_parse_register_id.
5204 * python/py-registers.c (gdbpy_parse_register_id): New function,
5205 moved here from python/py-unwind.c. Updated the return type, and
5206 also accepts register descriptor objects.
5207 * python/py-unwind.c: Remove 'user-regs.h' include.
5208 (pyuw_parse_register_id): Moved to python/py-registers.c.
5209 (unwind_infopy_add_saved_register): Update to use
5210 gdbpy_parse_register_id.
5211 (pending_framepy_read_register): Likewise.
5212 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5213
14fa8fb3
AB
52142020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5215
5216 * python/py-registers.c: Add 'user-regs.h' include.
5217 (register_descriptor_iter_find): New function.
5218 (register_descriptor_iterator_object_methods): New static global
5219 methods array.
5220 (register_descriptor_iterator_object_type): Add pointer to methods
5221 array.
5222
ddce1758
JB
52232020-07-27 John Baldwin <jhb@FreeBSD.org>
5224
5225 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5226 for all architectures on FreeBSD 11.3 and later.
5227
a4089f52
TT
52282020-07-27 Tom Tromey <tromey@adacore.com>
5229
5230 * gcore.h (load_corefile): Don't declare.
5231
95420d30
TV
52322020-07-27 Tom de Vries <tdevries@suse.de>
5233
5234 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5235 * config.in: Regenerate.
5236 * configure: Regenerate.
5237
05a6b8c2
EZ
52382020-07-26 Eli Zaretskii <eliz@gnu.org>
5239
5240 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5241 ws2tcpip.h. When checking whether socklen_t type is defined, use
5242 ws2tcpip.h if it is available and sys/socket.h isn't.
5243 * configure: Regenerate.
5244 * config.in: Regenerate.
5245
e79eb02f
AB
52462020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5247
5248 PR fortran/23051
5249 PR fortran/26139
5250 * valops.c (value_ind): Pass address to
5251 readjust_indirect_value_type.
5252 * value.c (readjust_indirect_value_type): Make parameter
5253 non-const, and add extra address parameter. Resolve original type
5254 before using it.
5255 * value.h (readjust_indirect_value_type): Update function
5256 signature and comment.
5257
876518dd
TV
52582020-07-25 Tom de Vries <tdevries@suse.de>
5259
5260 PR symtab/26243
5261 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5262 entries.
5263
f6720b1c
AM
52642020-07-24 Aaron Merey <amerey@redhat.com>
5265
5266 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5267 * configure: Rebuild.
5268
513487e1
KB
52692020-07-23 Kevin Buettner <kevinb@redhat.com>
5270
5271 PR corefiles/26294
5272 * corelow.c (_initialize_corelow): Add period to help text
5273 for "maintenance print core-file-backed-mappings".
5274
e7bc9db8
PA
52752020-07-23 Pedro Alves <pedro@palves.net>
5276
5277 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5278 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5279 meanwhile.
5280 * frame.c (frame_cache_generation, get_frame_cache_generation):
5281 New.
5282 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5283 (get_prev_frame_if_no_cycle): On exception, don't touch
5284 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5285 * frame.h (get_frame_cache_generation): Declare.
5286
90fcc466
TV
52872020-07-23 Tom de Vries <tdevries@suse.de>
5288
5289 PR tui/26282
5290 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5291 New default constructor.
5292
78344df7
AB
52932020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5294
5295 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5296 exclude non-statement entries.
5297
b089853a
KB
52982020-07-22 Kevin Buettner <kevinb@redhat.com>
5299
5300 * NEWS (New commands): Mention new command
5301 "maintenance print core-file-backed-mappings".
5302
09c2f5d4
KB
53032020-07-22 Kevin Buettner <kevinb@redhat.com>
5304
5305 * corelow.c (gdbcmd.h): Include.
5306 (core_target::info_proc_mappings): New method.
5307 (get_current_core_target): New function.
5308 (maintenance_print_core_file_backed_mappings): New function.
5309 (_initialize_corelow): Add core-file-backed-mappings to
5310 "maint print" commands.
5311
9c5ec5c2 53122020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5313
9c5ec5c2
KB
5314 * linux-tdep.c (dump_note_entry_p): New function.
5315 (linux_dump_mapping_p_ftype): New typedef.
5316 (linux_find_memory_regions_full): Add new parameter,
5317 should_dump_mapping_p.
5318 (linux_find_memory_regions): Adjust call to
5319 linux_find_memory_regions_full.
5320 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5321 call to linux_find_memory_regions_full.
5322
db082f59
KB
53232020-07-22 Kevin Buettner <kevinb@redhat.com>
5324
5325 * corelow.c (solist.h, unordered_map): Include.
5326 (class core_target): Add field m_core_file_mappings and
5327 method build_file_mappings.
5328 (core_target::core_target): Call build_file_mappings.
5329 (core_target::~core_target): Free memory associated with
5330 m_core_file_mappings.
5331 (core_target::build_file_mappings): New method.
5332 (core_target::xfer_partial): Use m_core_file_mappings
5333 for memory transfers.
5334 * linux-tdep.c (linux_read_core_file_mappings): New
5335 function.
5336 (linux_core_info_proc_mappings): Rewrite to use
5337 linux_read_core_file_mappings.
5338 (linux_init_abi): Register linux_read_core_file_mappings.
5339
7e183d27
KB
53402020-07-22 Kevin Buettner <kevinb@redhat.com>
5341
5342 * arch-utils.c (default_read_core_file_mappings): New function.
5343 * arch-utils.c (default_read_core_file_mappings): Declare.
5344 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5345 * gdbarch.h, gdbarch.c: Regenerate.
5346
2735d421
KB
53472020-07-22 Kevin Buettner <kevinb@redhat.com>
5348
5349 PR corefiles/25631
5350 * corelow.c (core_target:xfer_partial): Revise
5351 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5352 case after first checking the stratum beneath the core
5353 target.
5354 (has_all_memory): Return true.
5355 * target.c (raw_memory_xfer_partial): Revise comment
5356 regarding use of has_all_memory.
5357
e56cb451
KB
53582020-07-22 Kevin Buettner <kevinb@redhat.com>
5359
5360 * exec.h (section_table_xfer_memory): Revise declaration,
5361 replacing section name parameter with an optional callback
5362 predicate.
5363 * exec.c (section_table_xfer_memory): Likewise.
5364 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5365 of section_table_xfer_memory.
5366
32fa152e
TT
53672020-07-22 Tom Tromey <tromey@adacore.com>
5368
5369 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5370 lookup_symbol_search_name.
5371
a67a1c41
AB
53722020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5373
5374 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5375 redundant local variable.
5376 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5377 reference, not pointer, update code accordingly.
5378
a7b4ff4f
SM
53792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5380 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5381
5382 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5383 * jit.c (jit_breakpoint_re_set_internal): Use the
5384 `skip_jit_symbol_lookup` field.
5385
2340e834
SM
53862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5387 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5388
5389 * jit.c (jit_read_descriptor): Define the descriptor address once,
5390 use twice.
5391 (jit_breakpoint_deleted): Move the declaration of the loop variable
5392 `iter` into the loop header.
5393 (jit_breakpoint_re_set_internal): Move the declaration of the local
5394 variable `objf_data` to the first point of definition.
5395 (jit_event_handler): Move the declaration of local variables
5396 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5397 Rename `objf` to `jited`.
5398
c1072906
SM
53992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5400
5401 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5402 Remove.
5403 * jit.c (get_jiter_objfile_data): Update.
5404
c8474dc3
TBA
54052020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5406 Simon Marchi <simon.marchi@polymtl.ca>
5407
5408 * jit.c (struct jit_program_space_data): Remove.
5409 (jit_program_space_key): Remove.
5410 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5411 stuff.
5412 (get_jit_program_space_data): Remove.
5413 (jit_breakpoint_deleted): Iterate on all of the program space's
5414 objfiles.
5415 (jit_inferior_init): Likewise.
5416 (jit_breakpoint_re_set_internal): Likewise. Also change return
5417 type to void.
5418 (jit_breakpoint_re_set): Pass current_program_space to
5419 jit_breakpoint_re_set_internal.
5420
77208eb7
SM
54212020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5422
5423 * jit.h (struct jiter_objfile_data) <cached_code_address,
5424 jit_breakpoint>: Move to here from ...
5425 * jit.c (jit_program_space_data): ... here.
5426 (jiter_objfile_data::~jiter_objfile_data): Update.
5427 (jit_breakpoint_deleted): Update.
5428 (jit_breakpoint_re_set_internal): Update.
5429
8c1c720f
SM
54302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5431
5432 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5433 checks.
5434 (jit_read_descriptor): Remove NULL check.
5435 (jit_event_handler): Add an assertion.
5436
0e74a041
SM
54372020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5438
5439 * jit.h (struct jit_objfile_data): Split into...
5440 (struct jiter_objfile_data): ... this ...
5441 (struct jited_objfile_data): ... and this.
5442 * objfiles.h (struct objfile) <jit_data>: Remove.
5443 <jiter_data, jited_data>: New fields.
5444 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5445 (jiter_objfile_data::~jiter_objfile_data): ... this.
5446 (get_jit_objfile_data): Rename to ...
5447 (get_jiter_objfile_data): ... this.
5448 (add_objfile_entry): Update.
5449 (jit_read_descriptor): Use get_jiter_objfile_data.
5450 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5451 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5452 (jit_inferior_exit_hook): Use objfile's jited_data field.
5453
238b5c9f
SM
54542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5455
5456 * jit.h: Forward-declare `struct minimal_symbol`.
5457 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5458 constructor, destructor, and an objfile* field.
5459 * jit.c (jit_objfile_data): Remove.
5460 (struct jit_objfile_data): Migrate from here to jit.h.
5461 (jit_objfile_data::~jit_objfile_data): New destructor
5462 implementation with code moved from free_objfile_data.
5463 (free_objfile_data): Delete.
5464 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5465 (jit_find_objf_with_entry_addr): Ditto.
5466 (jit_inferior_exit_hook): Ditto.
5467 (_initialize_jit): Remove the call to
5468 register_objfile_data_with_cleanup.
5469 * objfiles.h (struct objfile) <jit_data>: New field.
5470
fe053b9e
TBA
54712020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5472
5473 * jit.h: Forward-declare `struct objfile`.
5474 (jit_event_handler): Add a second parameter, the JITer objfile.
5475 * jit.c (jit_read_descriptor): Change the signature to take the
5476 JITer objfile as an argument instead of the jit_program_space_data.
5477 (jit_inferior_init): Update the call to jit_read_descriptor.
5478 (jit_event_handler): Use the new JITer objfile argument when calling
5479 jit_read_descriptor.
5480 * breakpoint.c (handle_jit_event): Update the call to
5481 jit_event_handler to pass the JITer objfile.
5482
4cec0c66
JB
54832020-07-21 John Baldwin <jhb@FreeBSD.org>
5484
5485 * gdbarch.c: Regenerate.
5486 * gdbarch.h: Regenerate.
5487 * gdbarch.sh (handle_segmentation_fault): Remove method.
5488 * infrun.c (handle_segmentation_fault): Remove.
5489 (print_signal_received_reason): Remove call to
5490 handle_segmentation_fault.
5491
0e42f66a
JB
54922020-07-21 John Baldwin <jhb@FreeBSD.org>
5493
5494 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5495 Rename to sparc64_linux_report_signal_info and add siggnal
5496 argument.
5497 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5498 instead of sparc64_linux_handle_segmentation_fault.
5499
77bdfeb2
JB
55002020-07-21 John Baldwin <jhb@FreeBSD.org>
5501
5502 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5503 i386_linux_report_signal_info instead of
5504 i386_linux_handle_segmentation_fault.
5505 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5506 to i386_linux_report_signal_info and add siggnal argument.
5507 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5508 of i386_linux_handle_segmentation_fault.
5509 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5510 to i386_linux_report_signal_info and add siggnal argument.
5511
ad97bfc5
JB
55122020-07-21 John Baldwin <jhb@FreeBSD.org>
5513
5514 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5515 hook if present.
5516
272bb05c
JB
55172020-07-21 John Baldwin <jhb@FreeBSD.org>
5518
5519 * gdbarch.c: Regenerate.
5520 * gdbarch.h: Regenerate.
5521 * gdbarch.sh (report_signal_info): New method.
5522 * infrun.c (print_signal_received_reason): Invoke gdbarch
5523 report_signal_info hook if present.
5524
baf8791e
AB
55252020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5526
5527 * python/py-registers.c : Add 'unordered_map' include.
5528 (gdbpy_new_reggroup): Renamed to...
5529 (gdbpy_get_reggroup): ...this. Update to only create register
5530 group descriptors when needed.
5531 (gdbpy_reggroup_iter_next): Update.
5532
f7306dac
AB
55332020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5534
5535 * python/py-registers.c (gdbpy_register_object_data): New static
5536 global.
5537 (gdbpy_register_object_data_init): New function.
5538 (gdbpy_new_register_descriptor): Renamed to...
5539 (gdbpy_get_register_descriptor): ...this, and update to reuse
5540 existing register descriptors where possible.
5541 (gdbpy_register_descriptor_iter_next): Update.
5542 (gdbpy_initialize_registers): Register new gdbarch data.
5543
05c309a8
SM
55442020-07-21 Simon Marchi <simon.marchi@efficios.com>
5545
5546 * linux-nat.c (stopped_pids): Make static.
5547
d1fd641e
SM
55482020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5549
5550 PR ada/26235
5551 * gdbtypes.c (ada_discrete_type_low_bound,
5552 ada_discrete_type_high_bound): Handle undefined bounds.
5553
1de14d77
KR
55542020-07-21 Kamil Rytarowski <n54@gmx.com>
5555
5556 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5557 declaration.
5558 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5559 function.
5560
ed810cc7
JB
55612020-07-20 John Baldwin <jhb@FreeBSD.org>
5562
5563 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5564 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5565 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5566 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5567 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5568 method.
5569
ae5369e7
LC
55702020-07-20 Ludovic Courtès <ludo@gnu.org>
5571
5572 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5573 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5574 which are deprecated in Guile 3.0.
5575 * configure.ac (try_guile_versions): Add "guile-3.0".
5576 * configure (try_guile_versions): Regenerate.
5577 * NEWS: Update entry.
5578
68cf161c
LC
55792020-07-20 Ludovic Courtès <ludo@gnu.org>
5580 Doug Evans <dje@google.com>
5581
5582 PR gdb/21104
5583 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5584 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5585 USING_GUILE_BEFORE_2_2.
5586 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5587 Change type to 'scm_t_port_type *'.
5588 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5589 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5590 parameter and honor it. Update callers.
5591 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5592 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5593 functions.
5594 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5595 USING_GUILE_BEFORE_2_2.
5596 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5597 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5598 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5599 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5600 and 'SCM_PORT_TYPE'.
5601 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5602 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5603 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5604 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5605 [!USING_GUILE_BEFORE_2_2]: New functions.
5606 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5607 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5608 'gdbscm_memory_port_read'.
5609 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5610 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5611 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5612 function.
5613 (ioscm_init_memory_port): Remove.
5614 (ioscm_init_memory_port_stream): New function
5615 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5616 function.
5617 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5618 Return scm_from_uint (0).
5619 (gdbscm_set_memory_port_read_buffer_size_x)
5620 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5621 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5622 Return scm_from_uint (0).
5623 (gdbscm_set_memory_port_write_buffer_size_x)
5624 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5625 * configure.ac (try_guile_versions): Add "guile-2.2".
5626 * configure: Regenerate.
5627 * NEWS: Add entry.
5628
aee91db3
TT
56292020-07-18 Tom Tromey <tom@tromey.com>
5630
5631 * linux-nat.c (linux_multi_process): Remove.
5632 (linux_nat_target::supports_multi_process): Return true.
5633
0e267416
AB
56342020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5635
5636 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5637 (riscv_lookup_target_description): Return pointer out of
5638 unique_ptr.
5639 * target-descriptions.c (allocate_target_description): Add
5640 comment.
5641 (target_desc_deleter::operator()): Likewise.
5642 * target-descriptions.h (struct target_desc_deleter): Moved to
5643 gdbsupport/tdesc.h.
5644 (target_desc_up): Likewise.
5645
f80c8ec4
TT
56462020-07-17 Tom Tromey <tromey@adacore.com>
5647
5648 * linux-nat.c (linux_nat_target::supports_non_stop)
5649 (linux_nat_target::always_non_stop_p): Use "true".
5650 (linux_nat_target::supports_disable_randomization): Use "true" and
5651 "false".
5652
d0ce17d8
CT
56532020-07-16 Caroline Tice <cmtice@google.com>
5654
5655 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5656 (RNGLIST_HEADER_SIZE64): New constant definition.
5657 (struct dwop_section_names): Add rnglists_dwo.
5658 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5659 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5660 (struct dwo_sections): Add rnglists field.
5661 (read_attribut_reprocess): Add tag parameter.
5662 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5663 (cu_debug_rnglists_section): New function (decl & definition).
5664 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5665 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5666 die whose range is being checked; get rnglist section from
5667 cu_debug_rnglists_section, to get from either objfile or dwo file as
5668 appropriate. Add cases for DW_RLE_base_addressx,
5669 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5670 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5671 test inside if-condition and updating complaint message.
5672 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5673 dwarf2_rnglists_process.
5674 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5675 dwarf2_ranges_process.
5676 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5677 need_ranges_base and update comment appropriately. Also pass die tag
5678 to dwarf2_ranges_read.
5679 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5680 need_ranges_base and update comment appropriately. Also pass die tag
5681 to dwarf2_ranges_process.
5682 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5683 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5684 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5685 need_ranges_base and update comment appropriately. Also pass die tag
5686 to read_attribute_reprocess and dwarf2_ranges_read.
5687 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5688 and update function comment appropriately.
5689 (read_loclist_index): Call read_loclists_rnglists_header instead of
5690 read_loclist_header.
5691 (read_rnglist_index): New function.
5692 (read_attribute_reprocess): Add tag parameter. Add code for
5693 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5694 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5695
3dcc261c
AB
56962020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5697
5698 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5699 being resolved.
5700
ccb9eba6
AB
57012020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5702
5703 * arch-utils.c (show_architecture): Update formatting of messages.
5704
cf88be68
SM
57052020-07-12 Simon Marchi <simon.marchi@efficios.com>
5706
5707 * gdbtypes.h (struct type) <bounds>: Handle array and string
5708 types.
5709 * ada-lang.c (assign_aggregate): Use type::bounds on
5710 array/string type.
5711 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5712 * c-varobj.c (c_number_of_children): Likewise.
5713 (c_describe_child): Likewise.
5714 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5715 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5716 (f_type_print_base): Likewise.
5717 * f-valprint.c (f77_array_offset_tbl): Likewise.
5718 (f77_get_upperbound): Likewise.
5719 (f77_print_array_1): Likewise.
5720 * guile/scm-type.c (gdbscm_type_range): Likewise.
5721 * m2-typeprint.c (m2_array): Likewise.
5722 (m2_is_long_set_of_type): Likewise.
5723 * m2-valprint.c (get_long_set_bounds): Likewise.
5724 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5725 * python/py-type.c (typy_range): Likewise.
5726 * rust-lang.c (rust_internal_print_type): Likewise.
5727 * type-stack.c (type_stack::follow_types): Likewise.
5728 * valarith.c (value_subscripted_rvalue): Likewise.
5729 * valops.c (value_cast): Likewise.
5730
509971ae
SM
57312020-07-12 Simon Marchi <simon.marchi@efficios.com>
5732
5733 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5734 callers to use the equivalent accessor methods.
5735
107406b7
SM
57362020-07-12 Simon Marchi <simon.marchi@efficios.com>
5737
5738 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5739 (struct type) <bit_stride>: New method.
5740 (TYPE_BIT_STRIDE): Remove.
5741 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5742
bb789949
SM
57432020-07-12 Simon Marchi <simon.marchi@efficios.com>
5744
5745 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5746 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5747 callers to use the equivalent accessor methods instead.
5748
39498edb
SM
57492020-07-12 Simon Marchi <simon.marchi@efficios.com>
5750
5751 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5752 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5753 callers to use the equivalent accessor methods instead.
5754
3b606f38
SM
57552020-07-12 Simon Marchi <simon.marchi@efficios.com>
5756
5757 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5758 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5759 to use dynamic_prop::kind.
5760
064d9cb9
SM
57612020-07-12 Simon Marchi <simon.marchi@efficios.com>
5762
5763 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5764 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5765 to get the bound property's kind and check against
5766 PROP_UNDEFINED.
5767
5537ddd0
SM
57682020-07-12 Simon Marchi <simon.marchi@efficios.com>
5769
5770 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5771 all callers to use type::range_bounds followed by
5772 dynamic_prop::{low,high}.
5773
8c2e4e06
SM
57742020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5775
5776 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5777 const_val, set_const_val, baton, set_locexpr, set_loclist,
5778 set_addr_offset, variant_parts, set_variant_parts,
5779 original_type, set_original_type>: New methods.
5780 <kind>: Rename to...
5781 <m_kind>: ... this. Update all users to use the new methods
5782 instead.
5783 <data>: Rename to...
5784 <m_data>: ... this. Update all users to use the new methods
5785 instead.
5786
7c6f2712
SM
57872020-07-12 Simon Marchi <simon.marchi@efficios.com>
5788
5789 * gdbtypes.c (get_discrete_bounds): Return failure if
5790 the range type's bounds are not both defined and constant
5791 values.
5792 (get_array_bounds): Update comment. Remove undefined bound check.
5793
599088e3
SM
57942020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5795
5796 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5797 the type::bounds method directly.
5798
c4dfcb36
SM
57992020-07-12 Simon Marchi <simon.marchi@efficios.com>
5800
5801 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5802 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5803 are used to set the range type's bounds to use set_bounds.
5804
0a278aa7
PW
58052020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5806
5807 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5808
cce20f10
PA
58092020-07-10 Pedro Alves <pedro@palves.net>
5810
5811 * gdbthread.h (inferior_ref): Define.
5812 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5813 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5814 * thread.c
5815 (scoped_restore_current_thread::restore):
5816 Adjust to gdb::ref_ptr.
5817 (scoped_restore_current_thread::~scoped_restore_current_thread):
5818 Remove manual decref handling.
5819 (scoped_restore_current_thread::scoped_restore_current_thread):
5820 Adjust to use
5821 inferior_ref::new_reference/thread_info_ref::new_reference.
5822 Incref the thread before calling get_frame_id instead of after.
5823 Let TARGET_CLOSE_ERROR propagate.
5824
6d7aa592
PA
58252020-07-10 Pedro Alves <pedro@palves.net>
5826
5827 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5828 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5829 NOT_AVAILABLE_ERROR.
5830 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5831 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5832
b3e3a4c1
SM
58332020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5834 Pedro Alves <pedro@palves.net>
5835
5836 PR gdb/26199
5837 * infrun.c (threads_are_resumed_pending_p): Delete.
5838 (do_target_wait): Remove threads_are_executing and
5839 threads_are_resumed_pending_p checks from the inferior_matches
5840 lambda. Update comments.
5841
d6cc5d98
PA
58422020-07-10 Pedro Alves <pedro@palves.net>
5843
5844 PR gdb/26199
5845 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5846 executing threads.
5847
7d3badc6
PA
58482020-07-10 Pedro Alves <pedro@palves.net>
5849
5850 PR gdb/26199
5851 * infrun.c (handle_no_resumed): Handle multiple targets.
5852
42bd97a6
PA
58532020-07-10 Pedro Alves <pedro@palves.net>
5854
5855 PR gdb/26199
5856 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5857 target_is_async_p.
5858
43667cc6
PA
58592020-07-10 Pedro Alves <pedro@palves.net>
5860
5861 PR gdb/26199
5862 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5863 threads, not all threads.
5864
96118d11
PA
58652020-07-10 Pedro Alves <pedro@palves.net>
5866
5867 PR gdb/26199
5868 * remote.c (remote_target::open_1): Pass remote target pointer as
5869 data to create_async_event_handler.
5870 (remote_async_inferior_event_handler): Mark async event handler
5871 before returning if the remote target still has either pending
5872 events or unacknowledged notifications.
5873
54904d81
JB
58742020-07-10 John Baldwin <jhb@FreeBSD.org>
5875
5876 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5877 declaration.
5878 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5879 function.
5880
f37e5866
JB
58812020-07-09 John Baldwin <jhb@FreeBSD.org>
5882
5883 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5884 inferior_ptid.
5885
fc238d4a
JB
58862020-07-09 John Baldwin <jhb@FreeBSD.org>
5887
5888 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5889 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5890 AT_FREEBSD_PS_STRINGS.
5891
6e2469ff
HD
58922020-07-08 Hannes Domani <ssbssa@yahoo.de>
5893
5894 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5895 of debugfile path on Windows.
5896
d1076c41
JB
58972020-07-08 John Baldwin <jhb@FreeBSD.org>
5898
5899 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5900 argument to 'data'.
5901
15f3b077
TT
59022020-07-08 Tom Tromey <tromey@adacore.com>
5903
5904 * ada-lang.c (ada_exception_message_1): Use read_memory.
5905
9fc501fd
AB
59062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5907
5908 PR python/22748
5909 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5910 special handling for inline frames.
5911 * findvar.c (value_of_register_lazy): Skip inline frames when
5912 creating lazy register values.
5913 * frame.c (frame_id_computed_p): Delete definition.
5914 * frame.h (frame_id_computed_p): Delete declaration.
5915
64cb3757
AB
59162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5917
5918 * NEWS: Mention additions to Python API.
5919 * python/py-arch.c (archpy_register_groups): New function.
5920 (arch_object_methods): Add 'register_groups' method.
5921 * python/py-registers.c (reggroup_iterator_object): New struct.
5922 (reggroup_object): New struct.
5923 (gdbpy_new_reggroup): New function.
5924 (gdbpy_reggroup_to_string): New function.
5925 (gdbpy_reggroup_name): New function.
5926 (gdbpy_reggroup_iter): New function.
5927 (gdbpy_reggroup_iter_next): New function.
5928 (gdbpy_new_reggroup_iterator): New function
5929 (gdbpy_initialize_registers): Register new types.
5930 (reggroup_iterator_object_type): Define new Python type.
5931 (gdbpy_reggroup_getset): New static global.
5932 (reggroup_object_type): Define new Python type.
5933 * python/python-internal.h
5934
0f767f94
AB
59352020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5936
5937 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5938 * python/py-arch.c (archpy_registers): New function.
5939 (arch_object_methods): Add 'registers' method.
5940 * python/py-registers.c: New file.
5941 * python/python-internal.h
5942 (gdbpy_new_register_descriptor_iterator): Declare.
5943 (gdbpy_initialize_registers): Declare.
5944 * python/python.c (do_start_initialization): Call
5945 gdbpy_initialize_registers.
5946 * NEWS: Mention additions to the Python API.
5947
87dbc774
AB
59482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5949
5950 * NEWS: Mention new Python API method.
5951 * python/py-unwind.c (pending_framepy_architecture): New function.
5952 (pending_frame_object_methods): Add architecture method.
5953
3bc98c0c
AB
59542020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5955
5956 * gdbarch.c: Regenerate.
5957 * gdbarch.h: Regenerate.
5958 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5959 (gdbarch_data): Use internal_error for the case where
5960 deprecated_set_gdbarch_data was originally needed.
5961 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5962 and use passed in obstack.
5963 (libunwind_frame_set_descr): Should no longer get back NULL from
5964 gdbarch_data.
5965 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5966 type.
5967 * user-regs.c (user_regs_init): Update parameters, and use passed
5968 in obstack.
5969 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5970 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5971
d8cc8af6
TV
59722020-07-06 Tom de Vries <tdevries@suse.de>
5973
5974 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5975 End-Of-Sequence in lte_is_less_than.
5976 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5977 "gdb: Don't reorder line table entries too much when sorting".
5978
947f7597
TV
59792020-07-06 Tom de Vries <tdevries@suse.de>
5980
5981 PR tui/26205
5982 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5983
1e7c1b22
TV
59842020-07-05 Tom de Vries <tdevries@suse.de>
5985
5986 PR build/26187
5987 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5988 std::uncaught_exceptions instead of deprecated
5989 std::uncaught_exception.
5990
a36158ec
SM
59912020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5992
5993 * macroexp.h (macro_stringify): Return
5994 gdb::unique_xmalloc_ptr<char>.
5995 * macroexp.c (macro_stringify): Likewise.
5996 * macrotab.c (fixup_definition): Update.
5997
14d960c8
SM
59982020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5999
6000 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6001 (lex_one_token): Update.
6002 * macroexp.c (struct macro_buffer) <release>: Return
6003 gdb::unique_xmalloc_ptr<char>.
6004 (macro_stringify): Update.
6005 (macro_expand): Update.
6006 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6007 * macroexp.h (macro_expand_next): Likewise.
6008
211d5b1c
SM
60092020-07-02 Simon Marchi <simon.marchi@efficios.com>
6010
6011 * macroexp.h (macro_lookup_ftype): Remove.
6012 (macro_expand, macro_expand_once, macro_expand_next): Remove
6013 lookup function parameters, add scope parameter.
6014 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6015 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6016 * macroscope.h (standard_macro_lookup): Change parameter type
6017 to macro_scope.
6018 * macroscope.c (standard_macro_lookup): Likewise.
6019 * c-exp.y (lex_one_token): Update.
6020 * macrocmd.c (macro_expand_command): Likewise.
6021 (macro_expand_once_command): Likewise.
6022
b1a35af2
SM
60232020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6024
6025 * inf-loop.c (inferior_event_handler): Remove client_data param.
6026 * inf-loop.h (inferior_event_handler): Likewise.
6027 * infcmd.c (step_1): Adjust.
6028 * infrun.c (proceed): Adjust.
6029 (fetch_inferior_event): Remove client_data param.
6030 (infrun_async_inferior_event_handler): Adjust.
6031 * infrun.h (fetch_inferior_event): Remove `void *` param.
6032 * linux-nat.c (handle_target_event): Adjust.
6033 * record-btrace.c (record_btrace_handle_async_inferior_event):
6034 Adjust.
6035 * record-full.c (record_full_async_inferior_event_handler):
6036 Adjust.
6037 * remote.c (remote_async_inferior_event_handler): Adjust.
6038
1cdf9e33
TT
60392020-07-01 Tom Tromey <tom@tromey.com>
6040
6041 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6042 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6043
32c1e210
TT
60442020-07-01 Tom Tromey <tom@tromey.com>
6045
6046 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6047 tui_gen_win_info.
6048 (tui_win_info::make_window): Merge with
6049 tui_gen_win_info::make_window.
6050 (tui_win_info::make_visible): Move from tui_gen_win_info.
6051 * tui/tui-win.c (tui_win_info::max_width): Move from
6052 tui_gen_win_info.
6053 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6054 type.
6055 <window_factory>: Likewise.
6056 * tui/tui-layout.c (tui_win_info::resize): Move from
6057 tui_gen_win_info.
6058 (make_standard_window): Change return type.
6059 (get_locator_window, tui_get_window_by_name): Likewise.
6060 (tui_layout_window::apply): Remove a cast.
6061 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6062 (struct tui_win_info): Merge with tui_gen_win_info.
6063 (struct tui_gen_win_info): Remove.
6064
a30cb6da
TT
60652020-07-01 Tom Tromey <tom@tromey.com>
6066
6067 * tui/tui-stack.h (struct tui_locator_window): Derive from
6068 tui_win_info.
6069 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6070 <can_box>: New method.
6071
1eb2161f
TT
60722020-07-01 Tom Tromey <tom@tromey.com>
6073
6074 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6075
7134f2eb
TT
60762020-07-01 Tom Tromey <tom@tromey.com>
6077
6078 * tui/tui-regs.c (tui_data_window::display_registers_from)
6079 (tui_data_window::display_registers_from)
6080 (tui_data_window::first_data_item_displayed)
6081 (tui_data_window::delete_data_content_windows): Update.
6082 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6083 Remove.
6084 (tui_data_window::check_register_values): Update.
6085 (tui_data_item_window::rerender): Add parameters. Update.
6086 (tui_data_item_window::refresh_window): Remove.
6087 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6088 virtual.
6089 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6090 tui_gen_win_info.
6091 <refresh_window, max_height, min_height>: Remove.
6092 <rerender>: Add parameters.
6093 <x, y, visible>: New members.
6094 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6095 <m_item_width>: New member.
6096
22b7b041
TT
60972020-07-01 Tom Tromey <tom@tromey.com>
6098
6099 * tui/tui-regs.c (tui_data_window::show_register_group)
6100 (tui_data_window::check_register_values): Update.
6101 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6102 from item_no.
6103
c9753adb
TT
61042020-07-01 Tom Tromey <tom@tromey.com>
6105
6106 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6107 useless "if".
6108
9ab26b4a
TT
61092020-07-01 Tom Tromey <tom@tromey.com>
6110
6111 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6112 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6113
e555083f
TT
61142020-07-01 Tom Tromey <tom@tromey.com>
6115
6116 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6117 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6118 (struct tui_line_or_address): Move from tui-data.h.
6119 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6120 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6121 (tui_cmd_window, tui_source_window_base, tui_source_window)
6122 (tui_disasm_window): Don't declare.
6123 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6124 to tui-winsource.h.
6125 (SINGLE_KEY): Move to tui-stack.c.
6126
7a02bab7
TT
61272020-07-01 Tom Tromey <tom@tromey.com>
6128
6129 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6130 std::string.
6131 * tui/tui-regs.c (class tab_expansion_file): New.
6132 (tab_expansion_file::write): New method.
6133 (tui_register_format): Change return type. Use
6134 tab_expansion_file.
6135 (tui_get_register, tui_data_window::display_registers_from)
6136 (tui_data_item_window::rerender): Update.
6137 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6138 * tui/tui-io.c (tui_expand_tabs): Remove.
6139
ea68593b
TT
61402020-07-01 Tom Tromey <tom@tromey.com>
6141
6142 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6143
a8caed5d
FS
61442020-07-01 Fangrui Song <maskray@google.com>
6145
6146 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6147
9cdf9820
AKS
61482020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6149
6150 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6151 forms for DW_AT_associated and DW_AT_allocated attributes,
6152 which is already checked in function attr_to_dynamic_prop.
6153
a1520ad8
TT
61542020-06-30 Tom Tromey <tromey@adacore.com>
6155
6156 * dwarf2/read.c (quirk_rust_enum): Correctly call
6157 alloc_rust_variant for default-less enum.
6158
5ac58899
TT
61592020-06-30 Tom Tromey <tromey@adacore.com>
6160
6161 PR build/26183:
6162 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6163 gdb::to_string.
6164
19b187a9
SM
61652020-06-29 Simon Marchi <simon.marchi@efficios.com>
6166
6167 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6168 * gdbarch.h: Re-generate.
6169
cd4c4c07
TT
61702020-06-28 Tom Tromey <tom@tromey.com>
6171
6172 * command.h (cmd_types): Remove.
6173 (cmd_type): Don't declare.
6174 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6175 typedef.
6176 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6177 * cli/cli-decode.c (cmd_type): Remove.
6178
05779d57
PA
61792020-06-27 Pedro Alves <palves@redhat.com>
6180
6181 * fork-child.c (prefork_hook): Adjust.
6182 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6183 Delete.
6184 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6185 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6186 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6187 Remove declarations.
6188 (struct inferior) <set_tty, tty>: New methods.
6189 (struct inferior) <terminal>: Rename to ...
6190 (struct inferior) <m_terminal>: ... this and make private.
6191 * main.c (captured_main_1): Adjust.
6192 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6193 (mi_cmd_inferior_tty_show): Adjust.
6194 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6195 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6196
1776e3e5
NA
61972020-06-26 Nick Alcock <nick.alcock@oracle.com>
6198
6199 * configure.ac: Add --enable-libctf: handle --disable-static
6200 properly.
6201 * acinclude.m4: sinclude ../config/enable.m4.
6202 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6203 (LIBCTF): Substitute in.
6204 (CTF_DEPS): New, likewise.
6205 (CLIBS): libctf needs symbols from libbfd: move earlier.
6206 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6207 flags.
6208 * ctfread.c: Surround in ENABLE_LIBCTF.
6209 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6210 * configure: Regenerate.
6211 * config.in: Likewise.
6212
58373b80
SM
62132020-06-25 Simon Marchi <simon.marchi@efficios.com>
6214
6215 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6216
277474ee
SM
62172020-06-25 Simon Marchi <simon.marchi@efficios.com>
6218
6219 * inferior.h (struct inferior) <terminal>: Change type to
6220 gdb::unique_xmalloc_ptr<char>.
6221 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6222 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6223 field, adjust to unique pointer.
6224 (get_inferior_io_terminal): Adjust to unique pointer.
6225
6d74da72
AB
62262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6227
6228 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6229 registers, not just the known core set of registers.
6230
2e52d038
AB
62312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6232
6233 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6234 fflags, frm, and fcsr registers.
6235 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6236 restore groups.
6237 (riscv_tdesc_unknown_reg): New function.
6238 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6239 tdesc_use_registers.
6240 * riscv-tdep.h (struct gdbarch_tdep): Add
6241 unknown_csrs_first_regnum, unknown_csrs_count,
6242 duplicate_fflags_regnum, duplicate_frm_regnum, and
6243 duplicate_fcsr_regnum fields.
6244
be64fd07
AB
62452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6246
6247 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6248 callback, use the callback (when not null) to help number unknown
6249 registers.
6250 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6251 (tdesc_use_registers): Add extra parameter to declaration.
6252
3b9fce96
AB
62532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6254
6255 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6256 in the file.
6257 (class riscv_pending_register_alias): Likewise.
6258 (riscv_register_feature::register_info): Change 'required_p' field
6259 to 'required', and change its type. Add 'check' member function.
6260 (riscv_register_feature::register_info::check): Define new member
6261 function.
6262 (riscv_xreg_feature): Change initialisation of 'required' field.
6263 (riscv_freg_feature): Likewise.
6264 (riscv_virtual_feature): Likewise.
6265 (riscv_csr_feature): Likewise.
6266 (riscv_check_tdesc_feature): Take extra parameter, the csr
6267 tdesc_feature, rewrite the function to use the new
6268 riscv_register_feature::register_info::check function.
6269 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6270
865bad26
AB
62712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6272
6273 * features/Makefile: Remove all references to the deleted files
6274 below.
6275 * features/riscv/32bit-csr.c: Deleted.
6276 * features/riscv/32bit-csr.xml: Deleted.
6277 * features/riscv/64bit-csr.c: Deleted.
6278 * features/riscv/64bit-csr.xml: Deleted.
6279 * features/riscv/rebuild-csr-xml.sh: Deleted.
6280
ed69cbc8
AB
62812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6282
6283 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6284 whitespace error for declaration of names member variable.
6285 (struct riscv_register_feature): Add new prefer_first_name member
6286 variable, and fix whitespace error in declaration of registers.
6287 (riscv_xreg_feature): Initialize prefer_first_name field.
6288 (riscv_freg_feature): Likewise.
6289 (riscv_virtual_feature): Likewise.
6290 (riscv_csr_feature): Likewise.
6291 (riscv_register_name): Expand on comments. Remove register name
6292 modifications for CSR and virtual registers.
6293
4445e8f5
AB
62942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6295
6296 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6297 errors.
6298
767a879e
AB
62992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6300
6301 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6302 riscv-opc.h.
6303 (class riscv_pending_register_alias): New class.
6304 (riscv_check_tdesc_feature): Take vector of pending aliases and
6305 populate it as appropriate.
6306 (riscv_setup_register_aliases): Delete.
6307 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6308 to riscv_check_tdesc_feature in all cases. Use the vector to
6309 create the register aliases.
6310
bb6e55f3
RO
63112020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6312
6313 * sol2-tdep.c (sol2_static_transform_name): Remove.
6314 (sol2_init_abi): Don't register it.
6315 * gdbarch.sh (static_transform_name): Remove.
6316 * gdbarch.c, gdbarch.h: Regenerate.
6317
6318 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6319 gdbarch_static_transform_name.
6320 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6321 * stabsread.c (define_symbol) <'X'>: Remove.
6322 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6323 handling.
6324 <'V'>: Likewise.
6325 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6326 <'S'>: Remove call to gdbarch_static_transform_name.
6327
c6d36836
RO
63282020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6329
6330 * procfs.c (procfs_pre_trace): New function.
6331 (procfs_target::create_inferior): Pass it to fork_inferior.
6332
a7e6196b
RO
63332020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6334
6335 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6336 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6337 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6338 sol2-tdep.o, sparc-sol2-tdep.o.
6339 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6340 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6341 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6342 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6343
d412e696
RO
63442020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6345
6346 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6347 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6348 Call sol2_init_abi.
6349 Remove calls to set_gdbarch_skip_solib_resolver,
6350 set_gdbarch_core_pid_to_str.
6351 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6352 (i386_sol2_static_transform_name): Remove.
6353 (i386_sol2_init_abi): Call sol2_init_abi.
6354 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6355 set_gdbarch_static_transform_name,
6356 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6357 Use sol2_sigtramp_p.
6358 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6359 (sol2_sigtramp_p): New function.
6360 (sol2_static_transform_name): New function.
6361 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6362 (sol2_init_abi): New function.
6363 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6364 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6365 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6366 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6367 (sparc_sol2_static_transform_name): Remove.
6368 (sparc32_sol2_init_abi): Call sol2_init_abi.
6369 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6370 set_gdbarch_static_transform_name,
6371 set_gdbarch_skip_solib_resolver,
6372 set_gdbarch_core_pid_to_str.
6373 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6374 (sparc_sol2_static_transform_name): Remove
6375 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6376 call sol2_sigtramp_p.
6377 (sparc64_sol2_init_abi): Call sol2_init_abi.
6378 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6379 set_gdbarch_static_transform_name,
6380 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6381
a8654e7d
PW
63822020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6383
6384 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6385 * exec.c (validate_exec_file): If from_tty, set both
6386 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6387 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6388 and from_tty, unconditionally ask a confirmation.
6389
caa7fd04
AB
63902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6391
6392 * target-descriptions.c (tdesc_architecture_name): Protect against
6393 NULL pointer dereference.
6394 (maint_print_xml_tdesc_cmd): New function.
6395 (_initialize_target_descriptions): Register new 'maint print
6396 xml-tdesc' command and give it the filename completer.
6397 * NEWS: Mention new 'maint print xml-tdesc' command.
6398
fbf42f4e
AB
63992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6400
6401 * target-descriptions.c (class tdesc_compatible_info): New class.
6402 (struct target_desc): Change type of compatible vector.
6403 (tdesc_compatible_p): Update for change in type of
6404 target_desc::compatible.
6405 (tdesc_compatible_info_list): New function.
6406 (tdesc_compatible_info_arch_name): New function.
6407 (tdesc_add_compatible): Update for change in type of
6408 target_desc::compatible.
6409 (print_c_tdesc::visit_pre): Likewise.
6410
20821f4e
AB
64112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6412
6413 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6414 whitespace to underscore.
6415 (maint_print_c_tdesc_cmd): Use fake filename for target
6416 descriptions that came from the target.
6417 (_initialize_target_descriptions): Add filename command completion
6418 for 'maint print c-tdesc'.
6419
1fb5ee62
SM
64202020-06-23 Simon Marchi <simon.marchi@efficios.com>
6421
6422 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6423 lines.
6424
fc3ecb3e
SM
64252020-06-23 Simon Marchi <simon.marchi@efficios.com>
6426
6427 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6428 lines.
6429 (dwarf2_find_location_expression): Likewise.
6430 (call_site_parameter_matches): Likewise.
6431 (dwarf2_compile_expr_to_ax): Likewise.
6432 (disassemble_dwarf_expression): Likewise.
6433 (loclist_describe_location): Likewise.
6434
236ef034
PA
64352020-06-23 Pedro Alves <palves@redhat.com>
6436
6437 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6438 progspace-and-thread.h. Include scoped-mock-context.h instead.
6439 (register_to_value_test): Use scoped_mock_context.
6440 * regcache.c: Include "scoped-mock-context.h".
6441 (cooked_read_test): Don't error out if a target is already pushed.
6442 Use scoped_mock_context. Adjust.
6443 * scoped-mock-context.h: New file.
6444
39e7ecca
AB
64452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6446
6447 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6448 initializer.
6449 (ada_language::is_string_type_p): New member function.
6450 * c-lang.c (c_language_data): Delete la_is_string_type_p
6451 initializer.
6452 (cplus_language_data): Likewise.
6453 (asm_language_data): Likewise.
6454 (minimal_language_data): Likewise.
6455 * d-lang.c (d_language_data): Likewise.
6456 * f-lang.c (f_is_string_type_p): Delete function, implementation
6457 moved to f_language::is_string_type_p.
6458 (f_language_data): Delete la_is_string_type_p initializer.
6459 (f_language::is_string_type_p): New member function,
6460 implementation from f_is_string_type_p.
6461 * go-lang.c (go_is_string_type_p): Delete function, implementation
6462 moved to go_language::is_string_type_p.
6463 (go_language_data): Delete la_is_string_type_p initializer.
6464 (go_language::is_string_type_p): New member function,
6465 implementation from go_is_string_type_p.
6466 * language.c (language_defn::is_string_type_p): Define new member
6467 function.
6468 (default_is_string_type_p): Make static, add comment copied from
6469 header file.
6470 (unknown_language_data): Delete la_is_string_type_p initializer.
6471 (unknown_language::is_string_type_p): New member function.
6472 (auto_language_data): Delete la_is_string_type_p initializer.
6473 (auto_language::is_string_type_p): New member function.
6474 * language.h (language_data): Delete la_is_string_type_p field.
6475 (language_defn::is_string_type_p): Declare new function.
6476 (default_is_string_type_p): Delete desclaration, move comment to
6477 definition.
6478 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6479 moved to m2_language::is_string_type_p.
6480 (m2_language_data): Delete la_is_string_type_p initializer.
6481 (m2_language::is_string_type_p): New member function,
6482 implementation from m2_is_string_type_p.
6483 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6484 initializer.
6485 * opencl-lang.c (opencl_language_data): Likewise.
6486 * p-lang.c (pascal_is_string_type_p): Delete function,
6487 implementation moved to pascal_language::is_string_type_p.
6488 (pascal_language_data): Delete la_is_string_type_p initializer.
6489 (pascal_language::is_string_type_p): New member function,
6490 implementation from pascal_is_string_type_p.
6491 * rust-lang.c (rust_is_string_type_p): Delete function,
6492 implementation moved to rust_language::is_string_type_p.
6493 (rust_language_data): Delete la_is_string_type_p initializer.
6494 (rust_language::is_string_type_p): New member function,
6495 implementation from rust_is_string_type_p.
6496 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6497 is_string_type_p.
6498
4ffc13fb
AB
64992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6500
6501 * ada-lang.c (ada_language_data): Delete la_print_typedef
6502 initializer.
6503 (ada_language::print_typedef): New member function.
6504 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6505 (cplus_language_data): Likewise.
6506 (asm_language_data): Likewise.
6507 (minimal_language_data): Likewise.
6508 * d-lang.c (d_language_data): Likewise.
6509 * f-lang.c (f_language_data): Likewise.
6510 (f_language::print_typedef): New member function.
6511 * go-lang.c (go_language_data): Delete la_print_typedef
6512 initializer.
6513 * language.c (language_defn::print_typedef): Define member
6514 function.
6515 (unknown_language_data): Delete la_print_typedef initializer.
6516 (unknown_language::print_typedef): New member function.
6517 (auto_language_data): Delete la_print_typedef initializer.
6518 (auto_language::print_typedef): New member function.
6519 * language.h (language_data): Delete la_print_typedef field.
6520 (language_defn::print_typedef): Declare new member function.
6521 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6522 (default_print_typedef): Delete declaration.
6523 * m2-lang.c (m2_language_data): Delete la_print_typedef
6524 initializer.
6525 (m2_language::print_typedef): New member function.
6526 * objc-lang.c (objc_language_data): Delete la_print_typedef
6527 initializer.
6528 * opencl-lang.c (opencl_language_data): Likewise.
6529 * p-lang.c (pascal_language_data): Likewise.
6530 (pascal_language::print_typedef): New member function.
6531 * rust-lang.c (rust_print_typedef): Delete function,
6532 implementation moved to rust_language::print_typedef.
6533 (rust_language): Delete la_print_typedef initializer.
6534 (rust_language::print_typedef): New member function,
6535 implementation from rust_print_typedef.
6536 * typeprint.c (default_print_typedef): Delete.
6537
d711ee67
AB
65382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6539
6540 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6541 (ada_language::printstr): New member function.
6542 * c-lang.c (c_language_data): Delete la_printstr initializer.
6543 (cplus_language_data): Likewise.
6544 (asm_language_data): Likewise.
6545 (minimal_language_data): Likewise.
6546 * d-lang.c (d_language_data): Likewise.
6547 * f-lang.c (f_printstr): Rename to f_language::printstr.
6548 (f_language_data): Delete la_printstr initializer.
6549 (f_language::printstr): New member function, implementation from
6550 f_printstr.
6551 * go-lang.c (go_language_data): Delete la_printstr initializer.
6552 * language.c (language_defn::printstr): Define new member
6553 function.
6554 (unk_lang_printstr): Delete.
6555 (unknown_language_data): Delete la_printstr initializer.
6556 (unknown_language::printstr): New member function.
6557 (auto_language_data): Delete la_printstr initializer.
6558 (auto_language::printstr): New member function.
6559 * language.h (language_data): Delete la_printstr field.
6560 (language_defn::printstr): Declare new member function.
6561 (LA_PRINT_STRING): Update call to printstr.
6562 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6563 (m2_language_data): Delete la_printstr initializer.
6564 (m2_language::printstr): New member function, implementation from
6565 m2_printstr.
6566 * objc-lang.c (objc_language_data): Delete la_printstr
6567 initializer.
6568 * opencl-lang.c (opencl_language_data): Likewise.
6569 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6570 (pascal_language_data): Delete la_printstr initializer.
6571 (pascal_language::printstr): New member function, implementation
6572 from pascal_printstr.
6573 * p-lang.h (pascal_printstr): Delete declaration.
6574 * rust-lang.c (rust_printstr): Update header comment.
6575 (rust_language_data): Delete la_printstr initializer.
6576 (rust_language::printstr): New member function.
6577
52b50f2c
AB
65782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6579
6580 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6581 (ada_language::printchar): New member function.
6582 * c-lang.c (c_language_data): Delete la_printchar initializer.
6583 (cplus_language_data): Likewise.
6584 (asm_language_data): Likewise.
6585 (minimal_language_data): Likewise.
6586 * d-lang.c (d_language_data): Likewise.
6587 * f-lang.c (f_printchar): Rename to f_language::printchar.
6588 (f_language_data): Delete la_printchar initializer.
6589 (f_language::printchar): New member function, implementation from
6590 f_printchar.
6591 * go-lang.c (go_language_data): Delete la_printchar initializer.
6592 * language.c (unk_lang_printchar): Delete.
6593 (language_defn::printchar): Define new member function.
6594 (unknown_language_data): Delete la_printchar initializer.
6595 (unknown_language::printchar): New member function.
6596 (auto_language_data): Delete la_printchar initializer.
6597 (auto_language::printchar): New member function.
6598 * language.h (language_data): Delete la_printchar field.
6599 (language_defn::printchar): Declare new member function.
6600 (LA_PRINT_CHAR): Update call to printchar.
6601 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6602 (m2_language::printchar): New member function.
6603 * objc-lang.c (objc_language_data): Delete la_printchar
6604 initializer.
6605 * opencl-lang.c (opencl_language_data): Likewise.
6606 * p-lang.c (pascal_language_data): Delete la_printchar
6607 initializer.
6608 (pascal_language::printchar): New member function.
6609 * rust-lang.c (rust_printchar): Rename to
6610 rust_language::printchar.
6611 (rust_language_data): Delete la_printchar initializer.
6612 (rust_language::printchar): New member function, implementation
6613 from rust_printchar.
6614
ec8cec5b
AB
66152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6616
6617 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6618 (ada_language_data): Delete la_emitchar initializer.
6619 (ada_language::emitchar): New member function, implementation from
6620 emit_char.
6621 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6622 (cplus_language_data): Likewise.
6623 (asm_language_data): Likewise.
6624 (minimal_language_data): Likewise.
6625 * d-lang.c (d_language_data): Likewise.
6626 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6627 (f_language_data): Delete la_emitchar initializer.
6628 (f_language::emitchar): New member function, implementation from
6629 f_emit_char.
6630 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6631 * language.c (unk_lang_emit_char): Delete.
6632 (language_defn::emitchar): New member function definition.
6633 (unknown_language_data): Delete la_emitchar initializer.
6634 (unknown_language::emitchar): New member function.
6635 (auto_language_data): Delete la_emitchar initializer.
6636 (auto_language::emitchar): New member function.
6637 * language.h (language_data): Delete la_emitchar field.
6638 (language_defn::emitchar): New member field declaration.
6639 (LA_EMIT_CHAR): Update call to emitchar.
6640 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6641 (m2_language_data): Delete la_emitchar initializer.
6642 (m2_language::emitchar): New member function, implementation from
6643 m2_emit_char.
6644 * objc-lang.c (objc_language_data): Delete la_emitchar
6645 initializer.
6646 * opencl-lang.c (opencl_language_data): Likewise.
6647 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6648 (pascal_language_data): Delete la_emitchar initializer.
6649 (pascal_language::emitchar): New member function, implementation
6650 from pascal_emit_char.
6651 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6652 (rust_language_data): Delete la_emitchar initializer.
6653 (rust_language::emitchar): New member function, implementation
6654 from rust_emitchar.
6655
1bf9c363
AB
66562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6657
6658 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6659 (ada_language_data): Delete la_post_parser initializer.
6660 (ada_language::post_parser): New member function.
6661 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6662 (cplus_language_data): Likewise.
6663 (asm_language_data): Likewise.
6664 (minimal_language_data): Likewise.
6665 * d-lang.c (d_language_data): Likewise.
6666 * f-lang.c (f_language_data): Likewise.
6667 * go-lang.c (go_language_data): Likewise.
6668 * language.c (unknown_language_data): Likewise.
6669 (auto_language_data): Likewise.
6670 * language.h (language_data): Delete la_post_parser field.
6671 (language_defn::post_parser): New member function.
6672 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6673 * objc-lang.c (objc_language_data): Likewise.
6674 * opencl-lang.c (opencl_language_data): Likewise.
6675 * p-lang.c (pascal_language_data): Likewise.
6676 * parse.c (parse_exp_in_context): Update call to post_parser.
6677 (null_post_parser): Delete definition.
6678 * parser-defs.h (null_post_parser): Delete declaration.
6679 * rust-lang.c (rust_language_data): Delete la_post_parser
6680 initializer.
6681
87afa652
AB
66822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6683
6684 * ada-lang.c (parse): Rename to ada_language::parser.
6685 (ada_language_data): Delete la_parser initializer.
6686 (ada_language::parser): New member function, implementation from
6687 parse.
6688 * c-lang.c (c_language_data): Delete la_parser initializer.
6689 (cplus_language_data): Likewise.
6690 (asm_language_data): Likewise.
6691 (minimal_language_data): Likewise.
6692 * d-lang.c (d_language_data): Likewise.
6693 (d_language::parser): New member function.
6694 * f-lang.c (f_language_data): Delete la_parser initializer.
6695 (f_language::parser): New member function.
6696 * go-lang.c (go_language_data): Delete la_parser initializer.
6697 (go_language::parser): New member function.
6698 * language.c (unk_lang_parser): Delete.
6699 (language_defn::parser): Define new member function.
6700 (unknown_language_data): Delete la_parser initializer.
6701 (unknown_language::parser): New member function.
6702 (auto_language_data): Delete la_parser initializer.
6703 (auto_language::parser): New member function.
6704 * language.h (language_data): Delete la_parser field.
6705 (language_defn::parser): Declare new member function.
6706 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6707 (m2_language::parser): New member function.
6708 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6709 * opencl-lang.c (opencl_language_data): Likewise.
6710 * p-lang.c (pascal_language_data): Likewise.
6711 (pascal_language::parser): New member function.
6712 * parse.c (parse_exp_in_context): Update call to parser.
6713 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6714 (rust_language::parser): New member function.
6715
37825800
AB
67162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6717
6718 * top.c (print_gdb_configuration): Print --with-python-libdir
6719 configuration value.
6720
5b860c93
PW
67212020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6722
6723 * NEWS: Mention change to the alias command.
6724
cf00cd6f
PW
67252020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6726
6727 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6728 (alias_command_completer)
6729 (make_alias_options_def_group): New functions.
6730 (alias_opts, alias_option_defs): New struct and array.
6731 (alias_usage_error): Update usage.
6732 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6733 Use option framework.
6734 (_initialize_cli_cmds): Update alias command help.
6735 Update aliases command help.
6736 (show_user):
6737 Add NULL for new default_args lookup_cmd argument.
6738 (valid_command_p): Rename to validate_aliased_command.
6739 Add NULL for new default_args lookup_cmd argument. Verify that the
6740 aliased_command has no default args.
6741 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6742 (lookup_cmd_1, lookup_cmd): New argument default_args.
6743 (add_alias_cmd):
6744 Add NULL for new default_args lookup_cmd argument.
6745 (print_help_for_command): Show default args under the layout
6746 alias some_alias = some_aliased_cmd some_alias_default_arg.
6747 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6748 xfree default_args in destructor.
6749 * cli/cli-script.c (process_next_line, do_define_command):
6750 Add NULL for new default_args lookup_cmd argument.
6751 * command.h: Declare new default_args argument in lookup_cmd
6752 and lookup_cmd_1.
6753 * completer.c (complete_line_internal_1):
6754 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6755 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6756 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6757 Likewise.
6758 * infcmd.c (_initialize_infcmd): Likewise.
6759 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6760 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6761 * python/py-param.c (add_setshow_generic): Likewise.
6762 * remote.c (_initialize_remote): Likewise.
6763 * top.c (execute_command): Prepend default_args if command has some.
6764 (set_verbose):
6765 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6766 * tracepoint.c (validate_actionline, encode_actions_1):
6767 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6768
bd920864
TBA
67692020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6770
6771 * jit.c (jit_read_descriptor): Use bool as the return type.
6772 (jit_breakpoint_re_set_internal): Use bool as the return type.
6773 Invert the return value logic; return true if the jit breakpoint
6774 has been successfully initialized.
6775 (jit_inferior_init): Update the call to
6776 jit_breakpoint_re_set_internal.
6777
f8098322
PA
67782020-06-22 Pedro Alves <palves@redhat.com>
6779
6780 PR gdb/25939
6781 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6782 Use the current inferior instead. Don't return
6783 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6784 wait again.
6785 * sol-thread.c (sol_thread_target::wait): Don't reference
6786 inferior_ptid.
6787 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6788 (sol_update_thread_list_callback): Use the current inferior's pid
6789 instead of inferior_ptid.
6790
196535a6
RO
67912020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6792
6793 * procfs.c: Cleanup many comments.
6794
6795 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6796 (AFTER_WATCHFLAG): Replace by value.
6797
6798 (MAIN_PROC_NAME_FORMAT): Inline ...
6799 (create_procinfo): ... here.
6800
6801 (procfs_debug_inferior): Remove SYS_exec handling.
6802 (syscall_is_exec): Likewise.
6803 (procfs_set_exec_trap): Likewise.
6804
6805 (syscall_is_lwp_exit): Inline in callers.
6806 (syscall_is_exit): Likewise.
6807 (syscall_is_exec): Likewise.
6808 (syscall_is_lwp_create): Likewise.
6809
6810 (invalidate_cache): Remove #if 0 code.
6811
6812 (make_signal_thread_runnable): Remove.
6813 (procfs_target::resume): Remove #if 0 code.
6814
cf6f3e86
RO
68152020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6816
6817 PR gdb/25939
6818 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6819 call ...
6820 (procfs_target::create_inferior): ... here.
6821
48e9cc84
PW
68222020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6823
6824 * exec.c (validate_exec_file): Ensure the build-id is up to
6825 date by calling reopen_exec_file (that checks file timestamp
6826 to decide to re-read the file).
6827
3922b302
PA
68282020-06-18 Pedro Alves <palves@redhat.com>
6829
6830 PR gdb/25412
6831 * gdbthread.h (delete_thread, delete_thread_silent)
6832 (find_thread_ptid): Update comments.
6833 * thread.c (current_thread_): New global.
6834 (is_current_thread): Move higher, and reimplement.
6835 (inferior_thread): Reimplement.
6836 (set_thread_exited): Use bool. Add assertions.
6837 (add_thread_silent): Simplify thread-reuse handling by always
6838 calling delete_thread.
6839 (delete_thread): Remove intro comment.
6840 (find_thread_ptid): Skip exited threads.
6841 (switch_to_thread_no_regs): Write to current_thread_.
6842 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6843 INFERIOR_PTID. Clear current_thread_.
6844
6dbdab44
PA
68452020-06-18 Pedro Alves <palves@redhat.com>
6846
6847 * aix-thread.c (pd_update): Use switch_to_thread.
6848
2da4b788
PA
68492020-06-18 Pedro Alves <palves@redhat.com>
6850
6851 * ravenscar-thread.c (ravenscar_thread_target): Update.
6852 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6853 (ravenscar_thread_target::add_active_thread): ... this. Don't
6854 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6855 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6856
50838d1b
PA
68572020-06-18 Pedro Alves <palves@redhat.com>
6858
6859 * nat/windows-nat.c (current_windows_thread): Remove.
6860 * nat/windows-nat.h (current_windows_thread): Remove.
6861 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6862 Adjust.
6863 (display_selectors): Adjust to fetch the current
6864 windows_thread_info based on inferior_ptid.
6865 (fake_create_process): No longer write to current_windows_thread.
6866 (windows_nat_target::get_windows_debug_event):
6867 Don't set inferior_ptid or current_windows_thread.
6868 (windows_nat_target::wait): Adjust to not rely on
6869 current_windows_thread.
6870 (do_initial_windows_stuff): Now a method of windows_nat_target.
6871 Switch to the last_ptid thread.
6872 (windows_nat_target::attach): Adjust.
6873 (windows_nat_target::detach): Use switch_to_no_thread instead of
6874 writing to inferior_ptid directly.
6875 (windows_nat_target::create_inferior): Adjust.
6876
31ce04e9
PA
68772020-06-18 Pedro Alves <palves@redhat.com>
6878
6879 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6880
1ee1a363
PA
68812020-06-18 Pedro Alves <palves@redhat.com>
6882
6883 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6884 after creating it, instead of writing to inferior_ptid. Don't
6885 write to inferior_ptid.
6886
6d350754
PA
68872020-06-18 Pedro Alves <palves@redhat.com>
6888
6889 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6890
5d971d48
PA
68912020-06-18 Pedro Alves <palves@redhat.com>
6892
6893 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6894 it, instead of writing to inferior_ptid.
6895
86e57d1b
PA
68962020-06-18 Pedro Alves <palves@redhat.com>
6897
6898 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6899 to inferior_ptid.
6900
f2e1c129
PA
69012020-06-18 Pedro Alves <palves@redhat.com>
6902
6903 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6904 instead of writing to inferior_ptid directly.
6905
60db1b85
PA
69062020-06-18 Pedro Alves <palves@redhat.com>
6907
6908 * corelow.c (core_target::close): Use switch_to_no_thread instead
6909 of writing to inferior_ptid directly.
6910 (add_to_thread_list, core_target_open): Use switch_to_thread
6911 instead of writing to inferior_ptid directly.
6912
fe7d6a8d
PA
69132020-06-18 Pedro Alves <palves@redhat.com>
6914
6915 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6916 inferior_ptid.
6917 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6918 inferior_ptid.
6919 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6920 inferior_ptid directly.
6921 (darwin_nat_target::init_thread_list): Switch to thread, instead
6922 of writing to inferior_ptid.
6923 (darwin_nat_target::attach): Don't write to inferior_ptid.
6924 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6925
975f8708
PA
69262020-06-18 Pedro Alves <palves@redhat.com>
6927
6928 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6929 thread.
6930 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6931 Instead use switch_to_thread.
6932 (gnu_nat_target::detach): Use switch_to_no_thread
6933 instead of writing to inferior_ptid directly. Used passed-in
6934 inferior instead of looking up the inferior by pid.
6935
1a204730
PA
69362020-06-18 Pedro Alves <palves@redhat.com>
6937
6938 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6939 inferior_ptid.
6940
ebe84f23
PA
69412020-06-18 Pedro Alves <palves@redhat.com>
6942
6943 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6944 inferior_ptid.
6945 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6946 thread.
6947 (nto_procfs_target::detach): Avoid referencing
6948 inferior_ptid. Use switch_to_no_thread instead of writing to
6949 inferior_ptid directly.
6950 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6951 instead of writing to inferior_ptid directly.
6952 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6953 to thread.
6954
191f02e5
PA
69552020-06-18 Pedro Alves <palves@redhat.com>
6956
6957 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6958 after creating it, instead of writing to inferior_ptid.
6959 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6960 to inferior_ptid directly.
6961 (gdbsim_target::wait): Don't write to inferior_ptid.
6962
0ac55310
PA
69632020-06-18 Pedro Alves <palves@redhat.com>
6964
6965 * remote.c (remote_target::remote_notice_new_inferior): Use
6966 switch_to_thread instead of writing to inferior_ptid directly.
6967 (remote_target::add_current_inferior_and_thread): Use
6968 switch_to_no_thread instead of writing to inferior_ptid directly.
6969 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6970 and switch_to_thread instead of using set_current_inferior or
6971 writing to inferior_ptid directly.
6972
5233f39b
PA
69732020-06-18 Pedro Alves <palves@redhat.com>
6974
6975 * tracectf.c (ctf_target_open): Switch to added thread instead of
6976 writing to inferior_ptid directly.
6977 (ctf_target::close): Use switch_to_no_thread instead of writing to
6978 inferior_ptid directly.
6979
087e161b
PA
69802020-06-18 Pedro Alves <palves@redhat.com>
6981
6982 * tracefile-tfile.c (tfile_target_open): Don't write to
6983 inferior_ptid directly, instead switch to added thread.
6984 (tfile_target::close): Use switch_to_no_thread instead of writing
6985 to inferior_ptid directly.
6986
7fb43e53
PA
69872020-06-18 Pedro Alves <palves@redhat.com>
6988
6989 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6990 (procfs_target::detach): Use switch_to_no_thread
6991 instead of writing to inferior_ptid directly.
6992 (do_attach): Change return type to void. Switch to the added
6993 thread.
6994 (procfs_target::create_inferior): Switch to the added thread.
6995 (procfs_do_thread_registers): Don't write to inferior_ptid.
6996
18493a00
PA
69972020-06-18 Pedro Alves <palves@redhat.com>
6998
6999 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7000 of writing to inferior_ptid.
7001 (scoped_restore_exited_inferior): Delete.
7002 (handle_vfork_child_exec_or_exit): Simplify using
7003 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7004 instead of writing to inferior_ptid.
7005 (THREAD_STOPPED_BY): Delete.
7006 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7007 (thread_stopped_by_hw_breakpoint): Delete.
7008 (save_waitstatus): Use
7009 scoped_restore_current_thread+switch_to_thread, and call
7010 target_stopped_by_watchpoint instead of
7011 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7012 instead of thread_stopped_by_sw_breakpoint, and
7013 target_stopped_by_hw_breakpoint instead of
7014 thread_stopped_by_hw_breakpoint.
7015 (handle_inferior_event)
7016 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7017 inferior_ptid directly, nor
7018 set_current_inferior/set_current_program_space. Use
7019 switch_to_thread / switch_to_inferior_no_thread instead.
7020
a0776b13
PA
70212020-06-18 Pedro Alves <palves@redhat.com>
7022
7023 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7024 instead of writing to inferior_ptid.
7025
6155c136
PA
70262020-06-18 Pedro Alves <palves@redhat.com>
7027
7028 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7029 added thread.
7030 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7031 to the added thread.
7032 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7033 instead of writing to inferior_ptid.
7034
c5316fc6
PA
70352020-06-18 Pedro Alves <palves@redhat.com>
7036
7037 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7038 (register_to_value_test): Mock a program_space too. Heap-allocate
7039 the address space. Don't write to inferior_ptid. Use
7040 switch_to_thread instead.
7041
8df01799
PA
70422020-06-18 Pedro Alves <palves@redhat.com>
7043
7044 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7045 Delete.
7046 (find_signalled_thread()): New, factored out from
7047 linux_make_corefile_notes and adjusted to handle exited threads.
7048 (linux_make_corefile_notes): Adjust to use the new
7049 find_signalled_thread.
7050
41792d68
PA
70512020-06-18 Pedro Alves <palves@redhat.com>
7052
7053 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7054 of saving/restoring inferior_ptid.
7055
612f258a
TT
70562020-06-17 Tom Tromey <tom@tromey.com>
7057
7058 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7059 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7060 declare.
7061 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7062
efb763a5
SM
70632020-06-15 Simon Marchi <simon.marchi@efficios.com>
7064
7065 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7066 of partial symtabs.
7067
2951f6c0
SM
70682020-06-17 Simon Marchi <simon.marchi@efficios.com>
7069
7070 * regformats/reg-arm.dat: Remove.
7071 * regformats/reg-bfin.dat: Remove.
7072 * regformats/reg-cris.dat: Remove.
7073 * regformats/reg-crisv32.dat: Remove.
7074 * regformats/reg-m32r.dat: Remove.
7075 * regformats/reg-tilegx.dat: Remove.
7076 * regformats/reg-tilegx32.dat: Remove.
7077
7d458ea5
SM
70782020-06-17 Simon Marchi <simon.marchi@efficios.com>
7079
7080 * features/Makefile (WHICH): Remove arm files.
7081 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7082 * regformats/arm/arm-with-neon.dat: Remove.
7083 * regformats/arm/arm-with-vfpv2.dat: Remove.
7084 * regformats/arm/arm-with-vfpv3.dat: Remove.
7085
3af96c0d
SM
70862020-06-17 Simon Marchi <simon.marchi@efficios.com>
7087
7088 * features/Makefile (XMLTOC): Remove rx.xml.
7089
b25e22fd
PA
70902020-06-17 Pedro Alves <palves@redhat.com>
7091
7092 * gdbthread.h (thread_control_state) <trap_expected> Update
7093 comments.
7094
a78a19b1
AB
70952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7096
7097 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7098 ada_language::lookup_symbol_nonlocal.
7099 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7100 (ada_language::lookup_symbol_nonlocal): New member function,
7101 implementation from ada_lookup_symbol_nonlocal.
7102 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7103 initializer.
7104 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7105 initializer.
7106 (cplus_language::lookup_symbol_nonlocal): New member function.
7107 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7108 (minimal_language_data) Likewise.
7109 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7110 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7111 initializer.
7112 (d_language::lookup_symbol_nonlocal): New member function.
7113 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7114 initializer.
7115 (f_language::lookup_symbol_nonlocal): New member function.
7116 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7117 initializer.
7118 * language.c (unknown_language_data): Likewise.
7119 (auto_language_data): Likewise.
7120 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7121 field.
7122 (language_defn::lookup_symbol_nonlocal): New member function.
7123 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7124 initializer.
7125 * objc-lang.c (objc_language_data): Likewise.
7126 * opencl-lang.c (opencl_language_data): Likewise.
7127 * p-lang.c (pascal_language_data): Likewise.
7128 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7129 rust_language::lookup_symbol_nonlocal.
7130 (rust_language_data): Delete la_lookup_symbol_nonlocal
7131 initializer.
7132 (rust_language::lookup_symbol_nonlocal): New member function,
7133 implementation from rust_lookup_symbol_nonlocal.
7134 * symtab.c (lookup_symbol_aux): Update call to
7135 lookup_symbol_nonlocal.
7136 (basic_lookup_symbol_nonlocal): Rename to...
7137 (language_defn::lookup_symbol_nonlocal): ...this, and update
7138 header comment. Remove language_defn parameter, and replace with
7139 uses of `this'.
7140 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7141
ebe2334e
AB
71422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7143
7144 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7145 initializer.
7146 (ada_language::value_print_inner): New member function.
7147 * c-lang.c (c_language_data): Delete la_value_print_inner
7148 initializer.
7149 (cplus_language_data): Likewise.
7150 (asm_language_data): Likewise.
7151 (minimal_language_data): Likewise.
7152 * d-lang.c (d_language_data): Likewise.
7153 (d_language::value_print_inner): New member function.
7154 * f-lang.c (f_language_data): Delete la_value_print_inner
7155 initializer.
7156 (f_language::value_print_inner): New member function.
7157 * f-lang.h (f_value_print_innner): Rename to...
7158 (f_value_print_inner): ...this (note spelling of 'inner').
7159 * f-valprint.c (f_value_print_innner): Rename to...
7160 (f_value_print_inner): ...this (note spelling of 'inner').
7161 * go-lang.c (go_language_data): Delete la_value_print_inner
7162 initializer.
7163 (go_language::value_print_inner): New member function.
7164 * language.c (language_defn::value_print_inner): Define new member
7165 function.
7166 (unk_lang_value_print_inner): Delete.
7167 (unknown_language_data): Delete la_value_print_inner initializer.
7168 (unknown_language::value_print_inner): New member function.
7169 (auto_language_data): Delete la_value_print_inner initializer.
7170 (auto_language::value_print_inner): New member function.
7171 * language.h (language_data): Delete la_value_print_inner field.
7172 (language_defn::value_print_inner): Delcare new member function.
7173 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7174 initializer.
7175 (m2_language::value_print_inner): New member function.
7176 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7177 initializer.
7178 * opencl-lang.c (opencl_language_data): Likewise.
7179 * p-lang.c (pascal_language_data): Likewise.
7180 (pascal_language::value_print_inner): New member function.
7181 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7182 initializer.
7183 (rust_language::value_print_inner): New member function.
7184 * valprint.c (do_val_print): Update call to value_print_inner.
7185
a1d1fa3e
AB
71862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7187
7188 * ada-lang.c (ada_language_data): Delete la_value_print
7189 initializer.
7190 (ada_language::value_print): New member function.
7191 * c-lang.c (c_language_data): Delete la_value_print initializer.
7192 (cplus_language_data): Likewise.
7193 (asm_language_data): Likewise.
7194 (minimal_language_data): Likewise.
7195 * d-lang.c (d_language_data): Likewise.
7196 * f-lang.c (f_language_data): Likewise.
7197 * go-lang.c (go_language_data): Likewise.
7198 * language.c (unk_lang_value_print): Delete.
7199 (language_defn::value_print): Define new member function.
7200 (unknown_language_data): Delete la_value_print initializer.
7201 (unknown_language::value_print): New member function.
7202 (auto_language_data): Delete la_value_print initializer.
7203 (auto_language::value_print): New member function.
7204 * language.h (language_data): Delete la_value_print field.
7205 (language_defn::value_print): Declare new member function.
7206 (LA_VALUE_PRINT): Update call to value_print.
7207 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7208 * objc-lang.c (objc_language_data): Likewise.
7209 * opencl-lang.c (opencl_language_data): Likewise.
7210 * p-lang.c (pascal_language_data): Likewise.
7211 (pascal_language::value_print): New member function.
7212 * rust-lang.c (rust_language_data): Delete la_value_print
7213 initializer.
7214
f16a9f57
AB
72152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7216
7217 * ada-lang.c (ada_watch_location_expression): Rename to
7218 ada_language::watch_location_expression.
7219 (ada_language_data): Delete la_watch_location_expression
7220 initializer.
7221 (ada_language::watch_location_expression): New member function,
7222 implementation from ada_watch_location_expression.
7223 * breakpoint.c (watch_command_1): Update call to
7224 watch_location_expression.
7225 * c-lang.c (c_watch_location_expression): Rename to
7226 language_defn::watch_location_expression.
7227 (c_language_data): Delete la_watch_location_expression
7228 initializer.
7229 (cplus_language_data): Likewise.
7230 (asm_language_data): Likewise.
7231 (minimal_language_data): Likewise.
7232 * c-lang.h (c_watch_location_expression): Delete declaration.
7233 * d-lang.c (d_language_data): Delete la_watch_location_expression
7234 initializer.
7235 * f-lang.c (f_language_data): Likewise.
7236 * go-lang.c (go_language_data): Likewise.
7237 * language.c (language_defn::watch_location_expression): Member
7238 function implementation from c_watch_location_expression.
7239 (unknown_language_data): Delete la_watch_location_expression
7240 initializer.
7241 (auto_language_data): Likewise.
7242 * language.h (language_data): Delete la_watch_location_expression
7243 field.
7244 (language_defn::watch_location_expression): Declare new member
7245 function.
7246 * m2-lang.c (m2_language_data): Delete
7247 la_watch_location_expression initializer.
7248 * objc-lang.c (objc_language_data): Likewise.
7249 * opencl-lang.c (opencl_language_data): Likewise.
7250 * p-lang.c (pascal_language_data): Likewise.
7251 * rust-lang.c (rust_watch_location_expression): Rename to
7252 rust_language::watch_location_expression.
7253 (rust_language_data): Delete la_watch_location_expression
7254 initializer.
7255 (rust_language::watch_location_expression): New member function,
7256 implementation from rust_watch_location_expression.
7257
7e56227d
AB
72582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7259
7260 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7261 ada_language::collect_symbol_completion_matches.
7262 (ada_language_data): Delete la_collect_symbol_completion_matches
7263 initializer.
7264 (ada_language::collect_symbol_completion_matches): New member
7265 function, implementation from
7266 ada_collect_symbol_completion_matches.
7267 * c-lang.c (c_language_data): Delete
7268 la_collect_symbol_completion_matches initializer.
7269 (cplus_language_data): Likewise.
7270 (asm_language_data): Likewise.
7271 (minimal_language_data): Likewise.
7272 * d-lang.c (d_language_data): Likewise.
7273 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7274 f_language::collect_symbol_completion_matches.
7275 (f_language_data): Delete la_collect_symbol_completion_matches
7276 initializer.
7277 (f_language::collect_symbol_completion_matches) New member
7278 function, implementation from f_collect_symbol_completion_matches.
7279 * go-lang.c (go_language_data): Delete
7280 la_collect_symbol_completion_matches initializer.
7281 * language.c (unknown_language_data): Likewise.
7282 (auto_language_data): Likewise.
7283 * language.h (language_data): Delete
7284 la_collect_symbol_completion_matches field.
7285 (language_defn::collect_symbol_completion_matches): New member
7286 function.
7287 * m2-lang.c (m2_language_data): Delete
7288 la_collect_symbol_completion_matches initializer.
7289 * objc-lang.c (objc_language_data): Likewise.
7290 * opencl-lang.c (opencl_language_data): Likewise.
7291 * p-lang.c (pascal_language_data): Likewise.
7292 * rust-lang.c (rust_language_data): Likewise.
7293 * symtab.c (default_collect_symbol_completion_matches): Delete.
7294 (collect_symbol_completion_matches): Update call to
7295 collect_symbol_completion_matches.
7296 (collect_symbol_completion_matches_type): Likewise.
7297 * symtab.h (default_collect_symbol_completion_matches): Delete
7298 declaration.
7299
53fc67f8
AB
73002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7301
7302 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7303 (ada_language_data): Delete la_word_break_characters initializer.
7304 (ada_language::word_break_characters): New member function.
7305 * c-lang.c (c_language_data): Delete la_word_break_characters
7306 initializer.
7307 (cplus_language_data): Likewise.
7308 (asm_language_data): Likewise.
7309 (minimal_language_data): Likewise.
7310 * completer.c: Update global comment.
7311 (advance_to_expression_complete_word_point): Update call to
7312 word_break_characters.
7313 (complete_files_symbols): Likewise.
7314 (complete_line_internal_1): Likewise.
7315 (default_completer_handle_brkchars): Likewise.
7316 (skip_quoted_chars): Likewise.
7317 * d-lang.c (d_language_data): Delete la_word_break_characters
7318 initializer.
7319 * f-lang.c (f_word_break_characters): Delete.
7320 (f_language_data): Delete la_word_break_characters initializer.
7321 (f_language::word_break_characters): New member function.
7322 * go-lang.c (go_language_data): Delete la_word_break_characters
7323 initializer.
7324 * language.c (unknown_language_data): Likewise.
7325 (auto_language_data): Likewise.
7326 * language.h (default_word_break_characters): Move declaration to
7327 earlier in the file.
7328 (language_data): Delete la_word_break_characters field.
7329 (language_defn::word_break_characters): New member function.
7330 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7331 initializer.
7332 * objc-lang.c (objc_language_data): Likewise.
7333 * opencl-lang.c (opencl_language_data): Likewise.
7334 * p-lang.c (pascal_language_data): Likewise.
7335 * rust-lang.c (rust_language_data): Likewise.
7336
c9debfb9
AB
73372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7338
7339 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7340 (ada_language_data): Delete la_get_symbol_name_matcher
7341 initializer.
7342 (language_defn::get_symbol_name_matcher_inner): New member
7343 function.
7344 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7345 initializer.
7346 (cplus_language_data): Likewise.
7347 (cplus_language::get_symbol_name_matcher_inner): New member
7348 function.
7349 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7350 (minimal_language_data): Likewise.
7351 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7352 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7353 initializer.
7354 * dictionary.c (iter_match_first_hashed): Update call to
7355 get_symbol_name_matcher.
7356 (iter_match_next_hashed): Likewise.
7357 (iter_match_next_linear): Likewise.
7358 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7359 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7360 initializer.
7361 (f_language::get_symbol_name_matcher_inner): New member function.
7362 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7363 initializer.
7364 * language.c (default_symbol_name_matcher): Update header comment,
7365 make static.
7366 (language_defn::get_symbol_name_matcher): New definition.
7367 (language_defn::get_symbol_name_matcher_inner): Likewise.
7368 (get_symbol_name_matcher): Delete.
7369 (unknown_language_data): Delete la_get_symbol_name_matcher
7370 initializer.
7371 (auto_language_data): Likewise.
7372 * language.h (language_data): Delete la_get_symbol_name_matcher
7373 field.
7374 (language_defn::get_symbol_name_matcher): New member function.
7375 (language_defn::get_symbol_name_matcher_inner): Likewise.
7376 (default_symbol_name_matcher): Delete declaration.
7377 * linespec.c (find_methods): Update call to
7378 get_symbol_name_matcher.
7379 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7380 initializer.
7381 * minsyms.c (lookup_minimal_symbol): Update call to
7382 get_symbol_name_matcher.
7383 (iterate_over_minimal_symbols): Likewise.
7384 * objc-lang.c (objc_language_data): Delete
7385 la_get_symbol_name_matcher initializer.
7386 * opencl-lang.c (opencl_language_data): Likewise.
7387 * p-lang.c (pascal_language_data): Likewise.
7388 * psymtab.c (psymbol_name_matches): Update call to
7389 get_symbol_name_matcher.
7390 * rust-lang.c (rust_language_data): Delete
7391 la_get_symbol_name_matcher initializer.
7392 * symtab.c (symbol_matches_search_name): Update call to
7393 get_symbol_name_matcher.
7394 (compare_symbol_name): Likewise.
7395
9a49ad8c
AB
73962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7397
7398 * ada-lang.c (ada_language_data): Delete la_compute_program
7399 initializer.
7400 * c-lang.c (c_language_data): Likewise.
7401 (c_language::compute_program): New member function.
7402 (cplus_language_data): Delete la_compute_program initializer.
7403 (cplus_language::compute_program): New member function.
7404 (asm_language_data): Delete la_compute_program initializer.
7405 (minimal_language_data): Likewise.
7406 * c-lang.h (c_compute_program): Update comment.
7407 (cplus_compute_program): Likewise.
7408 * compile/compile-c-support.c (c_compute_program): Likewise.
7409 (cplus_compute_program): Likewise.
7410 * compile/compile.c (compile_to_object): Update call to
7411 la_compute_program.
7412 * d-lang.c (d_language_data): Delete la_compute_program
7413 initializer.
7414 * f-lang.c (f_language_data): Likewise.
7415 * go-lang.c (go_language_data): Likewise.
7416 * language.c (unknown_language_data): Likewise.
7417 (auto_language_data): Likewise.
7418 * language.h (language_data): Delete la_compute_program field.
7419 (language_defn::compute_program): New member function.
7420 * m2-lang.c (m2_language_data): Delete la_compute_program
7421 initializer.
7422 * objc-lang.c (objc_language_data): Likewise.
7423 * opencl-lang.c (opencl_language_data): Likewise.
7424 * p-lang.c (pascal_language_data): Likewise.
7425 * rust-lang.c (rust_language_data): Likewise.
7426
eff93b4d
AB
74272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7428
7429 * ada-lang.c (ada_language_data) Delete
7430 la_class_name_from_physname initializer.
7431 * c-lang.c (c_language_data): Likewise.
7432 (cplus_language_data): Likewise.
7433 (cplus_language::class_name_from_physname): New member function.
7434 (asm_language_data): Delete la_class_name_from_physname
7435 initializer.
7436 (minimal_language_data): Likewise.
7437 * d-lang.c (d_language_data): Likewise.
7438 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7439 method on language_defn class.
7440 (guess_full_die_structure_name): Likewise.
7441 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7442 initializer.
7443 * go-lang.c (go_language_data): Likewise.
7444 * language.c (language_class_name_from_physname): Delete.
7445 (unk_lang_class_name): Delete.
7446 (unknown_language_data): Delete la_class_name_from_physname
7447 initializer.
7448 (auto_language_data): Likewise.
7449 * language.h (language_data): Delete la_class_name_from_physname
7450 field.
7451 (language_defn::class_name_from_physname): New function.
7452 (language_class_name_from_physname): Delete declaration.
7453 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7454 initializer.
7455 * objc-lang.c (objc_language_data): Likewise.
7456 * opencl-lang.c (opencl_language_data): Likewise.
7457 * p-lang.c (pascal_language_data): Likewise.
7458 * rust-lang.c (rust_language_data): Likewise.
7459
de543742
TT
74602020-06-16 Tom Tromey <tom@tromey.com>
7461
7462 * tui/tui-data.h (STATUS_NAME): New macro.
7463 * tui/tui-layout.c (tui_remove_some_windows)
7464 (initialize_known_windows, tui_register_window)
7465 (tui_layout_split::remove_windows, initialize_layouts)
7466 (tui_new_layout_command): Don't use hard-coded window names.
7467
a350efd4
TT
74682020-06-16 Tom Tromey <tom@tromey.com>
7469
7470 PR tui/25348:
7471 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7472 tui_initialize_readline. Only run once. Call rl_initialize.
7473 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7474 tui_initialize_readline.
7475 * tui/tui-io.c (tui_setup_io): Call
7476 tui_ensure_readline_initialized.
7477 * tui/tui-interp.c (tui_interp::init): Update.
7478
39ec0490
TT
74792020-06-16 Tom Tromey <tom@tromey.com>
7480
7481 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7482 Also preserve the status window.
7483
d2d1ea20
TT
74842020-06-16 Tom Tromey <tom@tromey.com>
7485
7486 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7487 where m_window==nullptr.
7488
66920317
TT
74892020-06-15 Tom Tromey <tromey@adacore.com>
7490
7491 * windows-nat.c (windows_nat::handle_output_debug_string):
7492 Update.
7493 (windows_nat::handle_ms_vc_exception): Update.
7494 * target.h (target_read_string): Change API.
7495 * target.c (target_read_string): Change API.
7496 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7497 Update.
7498 * solib-frv.c (frv_current_sos): Update.
7499 * solib-dsbt.c (dsbt_current_sos): Update.
7500 * solib-darwin.c (darwin_current_sos): Update.
7501 * linux-thread-db.c (inferior_has_bug): Update.
7502 * expprint.c (print_subexp_standard): Update.
7503 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7504 (ada_exception_message_1): Update.
7505
a5d871dd
TT
75062020-06-15 Tom Tromey <tromey@adacore.com>
7507
7508 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7509
670e35fa
TT
75102020-06-15 Tom Tromey <tromey@adacore.com>
7511
7512 * valprint.c (read_string): Update comment.
7513 * target.c (MIN): Remove.
7514 (target_read_string): Rewrite.
7515
f5272a3b
TT
75162020-06-15 Tom Tromey <tromey@adacore.com>
7517
7518 * corefile.c (read_memory_string): Remove.
7519 * ada-valprint.c (ada_value_print_ptr): Update.
7520 * ada-lang.h (ada_tag_name): Change return type.
7521 * ada-lang.c (type_from_tag): Update.
7522 (ada_tag_name_from_tsd): Change return type. Use
7523 target_read_string.
7524 (ada_tag_name): Likewise.
7525 * gdbcore.h (read_memory_string): Don't declare.
7526
2c074f49
HD
75272020-06-14 Hannes Domani <ssbssa@yahoo.de>
7528
7529 * symtab.c (rbreak_command): Ignore Windows drive colon.
7530
6a17d503
SM
75312020-06-12 Simon Marchi <simon.marchi@efficios.com>
7532
7533 * NEWS: Mention removed GDBserver host support.
7534
453c733f
NC
75352020-06-12 Nelson Chu <nelson.chu@sifive.com>
7536
7537 * features/riscv/rebuild-csr-xml.sh: Updated.
7538
2b4e6a3f
TT
75392020-06-11 Tom Tromey <tom@tromey.com>
7540
7541 PR gdb/18318:
7542 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7543
4412332f
JG
75442020-06-09 Jonny Grant <jg@jguk.org>
75452020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7546
7547 * main.c (captured_main_1): Don't print new line after help.
7548 (print_gdb_help): add mailing list and IRC channel information
7549 to --help. Add new lines between items in the footer. Remove
7550 quotes around bug url.
7551
2f33032a
KS
75522020-06-11 Keith Seitz <keiths@redhat.com>
7553
7554 PR gdb/21356
7555 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7556 Resolve typedefs for type length calculations.
7557
7ab96794
TV
75582020-06-10 Tom de Vries <tdevries@suse.de>
7559
7560 PR ada/24713
7561 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7562 (write_psymbols): Enable .gdb_index for ada.
7563 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7564 ada.
7565
e5f3ece2
TV
75662020-06-10 Tom de Vries <tdevries@suse.de>
7567
7568 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7569 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7570 namei" instead of "const char *name" argument.
7571 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7572 dw2_symtab_iter_init.
7573
940da03e
SM
75742020-06-08 Simon Marchi <simon.marchi@efficios.com>
7575
7576 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7577 to use type::field and field::type instead.
7578
b6cdac4b
SM
75792020-06-08 Simon Marchi <simon.marchi@efficios.com>
7580
7581 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7582 to use field::type instead.
7583
5d14b6e5
SM
75842020-06-08 Simon Marchi <simon.marchi@efficios.com>
7585
7586 * gdbtypes.h (struct field) <type, set_type>: New methods.
7587 Rename `type` field to...
7588 <m_type>: ... this. Change references throughout to use type or
7589 set_type methods.
7590 (FIELD_TYPE): Use field::type. Change call sites that modify
7591 the field's type to use field::set_type instead.
7592
3d967001
SM
75932020-06-08 Simon Marchi <simon.marchi@efficios.com>
7594
7595 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7596 to use type::index_type instead.
7597
262abc0d
SM
75982020-06-08 Simon Marchi <simon.marchi@efficios.com>
7599
7600 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7601 methods.
7602 (TYPE_INDEX_TYPE): Use type::index_type.
7603 * gdbtypes.c (create_array_type_with_stride): Likewise.
7604
82836c92
TT
76052020-06-07 Tom Tromey <tom@tromey.com>
7606
7607 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7608 parameter.
7609 (generic_value_print): Update.
7610
940dace9
AB
76112020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7612
7613 Revert commit 982a38f60b0.
7614 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7615
982a38f6
AB
76162020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7617
7618 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7619 avoid use after free.
7620
82f06518
TV
76212020-06-05 Tom de Vries <tdevries@suse.de>
7622
7623 * NEWS: Fix typos.
7624
f8c41851
SM
76252020-06-04 Simon Marchi <simon.marchi@efficios.com>
7626
7627 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7628 the per_bfd object.
7629 (dwarf2_read_debug_names): Likewise.
7630 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7631 object when re-using a per_bfd object with an index.
7632
f9b5d5ea
TV
76332020-06-03 Tom de Vries <tdevries@suse.de>
7634
7635 PR symtab/26046
7636 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7637 children for C++.
7638 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7639 DW_TAG_subprogram.
7640
f6eee2d0
AB
76412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7642
7643 * ada-lang.c (ada_language_data): Delete skip_trampoline
7644 initializer.
7645 * c-lang.c (c_language_data): Likewise.
7646 (cplus_language_data): Likewise.
7647 (cplus_language::skip_trampoline): New member function.
7648 (asm_language_data): Delete skip_trampoline initializer.
7649 (minimal_language_data): Likewise.
7650 * d-lang.c (d_language_data): Likewise.
7651 * f-lang.c (f_language_data): Likewise.
7652 * go-lang.c (go_language_data): Likewise.
7653 * language.c (unk_lang_trampoline): Delete function.
7654 (skip_language_trampoline): Update.
7655 (unknown_language_data): Delete skip_trampoline initializer.
7656 (auto_language_data): Likewise.
7657 * language.h (language_data): Delete skip_trampoline field.
7658 (language_defn::skip_trampoline): New function.
7659 * m2-lang.c (m2_language_data): Delete skip_trampoline
7660 initializer.
7661 * objc-lang.c (objc_skip_trampoline): Delete function, move
7662 implementation to objc_language::skip_trampoline.
7663 (objc_language_data): Delete skip_trampoline initializer.
7664 (objc_language::skip_trampoline): New member function with
7665 implementation from objc_skip_trampoline.
7666 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7667 initializer.
7668 * p-lang.c (pascal_language_data): Likewise.
7669 * rust-lang.c (rust_language_data): Likewise.
7670
0a50df5d
AB
76712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7672
7673 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7674 (ada_language::demangle): New member function.
7675 * c-lang.c (c_language_data): Delete la_demangle initializer.
7676 (cplus_language_data): Delete la_demangle initializer.
7677 (cplus_language::demangle): New member function.
7678 (asm_language_data): Delete la_demangle initializer.
7679 (minimal_language_data): Delete la_demangle initializer.
7680 * d-lang.c (d_language_data): Delete la_demangle initializer.
7681 (d_language::demangle): New member function.
7682 * f-lang.c (f_language_data): Delete la_demangle initializer.
7683 (f_language::demangle): New member function.
7684 * go-lang.c (go_language_data): Delete la_demangle initializer.
7685 (go_language::demangle): New member function.
7686 * language.c (language_demangle): Update.
7687 (unk_lang_demangle): Delete.
7688 (unknown_language_data): Delete la_demangle initializer.
7689 (unknown_language::demangle): New member function.
7690 (auto_language_data): Delete la_demangle initializer.
7691 (auto_language::demangle): New member function.
7692 * language.h (language_data): Delete la_demangle field.
7693 (language_defn::demangle): New function.
7694 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7695 * objc-lang.c (objc_language_data): Delete la_demangle
7696 initializer.
7697 (objc_language::demangle): New member function.
7698 * opencl-lang.c (opencl_language_data): Delete la_demangle
7699 initializer.
7700 * p-lang.c (pascal_language_data): Likewise.
7701 * rust-lang.c (rust_language_data): Likewise.
7702 (rust_language::demangle): New member function.
7703
fbfb0a46
AB
77042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7705
7706 * ada-lang.c (ada_language_data): Delete la_print_type
7707 initializer.
7708 (ada_language::print_type): New member function.
7709 * c-lang.c (c_language_data): Delete la_print_type initializer.
7710 (c_language::print_type): New member function.
7711 (cplus_language_data): Delete la_print_type initializer.
7712 (cplus_language::print_type): New member function.
7713 (asm_language_data): Delete la_print_type initializer.
7714 (asm_language::print_type): New member function.
7715 (minimal_language_data): Delete la_print_type initializer.
7716 (minimal_language::print_type): New member function.
7717 * d-lang.c (d_language_data): Delete la_print_type initializer.
7718 (d_language::print_type): New member function.
7719 * f-lang.c (f_language_data): Delete la_print_type initializer.
7720 (f_language::print_type): New member function.
7721 * go-lang.c (go_language_data): Delete la_print_type initializer.
7722 (go_language::print_type): New member function.
7723 * language.c (unk_lang_print_type): Delete.
7724 (unknown_language_data): Delete la_print_type initializer.
7725 (unknown_language::print_type): New member function.
7726 (auto_language_data): Delete la_print_type initializer.
7727 (auto_language::print_type): New member function.
7728 * language.h (language_data): Delete la_print_type field.
7729 (language_defn::print_type): New function.
7730 (LA_PRINT_TYPE): Update.
7731 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7732 (m2_language::print_type): New member function.
7733 * objc-lang.c (objc_language_data): Delete la_print_type
7734 initializer.
7735 (objc_language::print_type): New member function.
7736 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7737 to opencl_language::print_type.
7738 (opencl_language_data): Delete la_print_type initializer.
7739 (opencl_language::print_type): New member function, implementation
7740 from opencl_print_type.
7741 * p-lang.c (pascal_language_data): Delete la_print_type
7742 initializer.
7743 (pascal_language::print_type): New member function.
7744 * rust-lang.c (rust_print_type): Delete, implementation moved to
7745 rust_language::print_type.
7746 (rust_language_data): Delete la_print_type initializer.
7747 (rust_language::print_type): New member function, implementation
7748 from rust_print_type.
7749
6f827019
AB
77502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7751
7752 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7753 implementation moves to...
7754 (ada_language::sniff_from_mangled_name): ...here. Update return
7755 type.
7756 (ada_language_data): Delete la_sniff_from_mangled_name
7757 initializer.
7758 * c-lang.c (c_language_data): Likewise.
7759 (cplus_language_data): Likewise.
7760 (cplus_language::sniff_from_mangled_name): New member function,
7761 implementation taken from gdb_sniff_from_mangled_name.
7762 (asm_language_data): Delete la_sniff_from_mangled_name
7763 initializer.
7764 (minimal_language_data): Likewise.
7765 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7766 implementation moves to cplus_language::sniff_from_mangled_name.
7767 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7768 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7769 moves to...
7770 (d_language::sniff_from_mangled_name): ...here.
7771 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7772 * f-lang.c (f_language_data): Likewise.
7773 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7774 moves to...
7775 (go_language::sniff_from_mangled_name): ...here.
7776 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7777 * language.c (language_sniff_from_mangled_name): Delete.
7778 (unknown_language_data): Delete la_sniff_from_mangled_name
7779 initializer.
7780 (auto_language_data): Likewise.
7781 * language.h (language_data): Delete la_sniff_from_mangled_name
7782 field.
7783 (language_defn::sniff_from_mangled_name): New function.
7784 (language_sniff_from_mangled_name): Delete declaration.
7785 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7786 field.
7787 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7788 implementation moves to...
7789 (objc_language::sniff_from_mangled_name): ...here.
7790 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7791 * opencl-lang.c (opencl_language_data): Likewise.
7792 * p-lang.c (pascal_language_data): Likewise.
7793 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7794 implementation moves to...
7795 (rust_language::sniff_from_mangled_name): ...here.
7796 (rust_language_data): Delete la_sniff_from_mangled_name
7797 initializer.
7798 * symtab.c (symbol_find_demangled_name): Call
7799 sniff_from_mangled_name member function.
7800
fb8006fd
AB
78012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7802
7803 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7804 initializer.
7805 * c-lang.c (c_language_data): Likewise.
7806 (cplus_language_data): Likewise.
7807 (cplus_language::search_name_hash): New member function.
7808 (asm_language_data): Delete la_search_name_hash initializer.
7809 (minimal_language_data): Likewise.
7810 * d-lang.c (d_language_data): Likewise.
7811 * dictionary.c (default_search_name_hash): Rename to...
7812 (language_defn::search_name_hash): ...this.
7813 * f-lang.c (f_language_data): Likewise.
7814 (f_language::search_name_hash): New member function.
7815 * go-lang.c (go_language_data): Delete la_search_name_hash
7816 initializer.
7817 * language.c (unknown_language_data): Likewise.
7818 (auto_language_data): Likewise.
7819 * language.h (struct language_data): Delete la_search_name_hash
7820 field.
7821 (language_defn::search_name_hash): Declare new member function.
7822 (default_search_name_hash): Delete declaration.
7823 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7824 initializer.
7825 * objc-lang.c (objc_language_data): Likewise.
7826 * opencl-lang.c (opencl_language_data): Likewise.
7827 * p-lang.c (pascal_language_data): Likewise.
7828 * rust-lang.c (rust_language_data): Likewise.
7829 * symtab.c (search_name_hash): Update call.
7830
8e25bafe
AB
78312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7832
7833 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7834 initializer.
7835 * c-lang.c (class compile_instance): Declare.
7836 (c_language_data): Delete la_get_compile_instance initializer.
7837 (c_language::get_compile_instance): New member function.
7838 (cplus_language_data): Delete la_get_compile_instance initializer.
7839 (cplus_language::get_compile_instance): New member function.
7840 (asm_language_data): Delete la_get_compile_instance initializer.
7841 (minimal_language_data): Likewise.
7842 * c-lang.h (c_get_compile_context): Update comment.
7843 (cplus_get_compile_context): Update comment.
7844 * compile/compile.c (compile_to_object): Update calls, don't rely
7845 on function pointer being NULL.
7846 * d-lang.c (d_language_data): Delete la_get_compile_instance
7847 initializer.
7848 * f-lang.c (f_language_data): Likewise.
7849 * go-lang.c (go_language_data): Likewise.
7850 * language.c (unknown_language_data): Likewise.
7851 (auto_language_data): Likewise.
7852 * language.h (language_data): Delete la_get_compile_instance field.
7853 (language_defn::get_compile_instance): New member function.
7854 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7855 initializer.
7856 * objc-lang.c (objc_language_data): Likewise.
7857 * opencl-lang.c (opencl_language_data): Likewise.
7858 * p-lang.c (pascal_language_data): Likewise.
7859 * rust-lang.c (rust_language_data): Likewise.
7860
4009ee92
AB
78612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7862
7863 * ada-lang.c (ada_add_all_symbols): Update comment.
7864 (ada_iterate_over_symbols): Delete, move implementation to...
7865 (ada_language::iterate_over_symbols): ...here, a new member
7866 function, rewrite to use range based for loop.
7867 (ada_language_data): Delete la_iterate_over_symbols initializer.
7868 * c-lang.c (c_language_data): Likewise.
7869 (cplus_language_data): Likewise.
7870 (asm_language_data): Likewise.
7871 (minimal_language_data): Likewise.
7872 * d-lang.c (d_language_data): Likewise.
7873 * f-lang.c (f_language_data): Likewise.
7874 * go-lang.c (go_language_data): Likewise.
7875 * language.c (unknown_language_data): Likewise.
7876 (auto_language_data): Likewise.
7877 * language.h (language_data): Delete la_iterate_over_symbols field.
7878 (language_defn::iterate_over_symbols): New member function.
7879 (LA_ITERATE_OVER_SYMBOLS): Update.
7880 * linespec.c (iterate_over_all_matching_symtabs): Update.
7881 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7882 initializer.
7883 * objc-lang.c (objc_language_data): Likewise.
7884 * opencl-lang.c (opencl_language_data): Likewise.
7885 * p-lang.c (pascal_language_data): Likewise.
7886 * rust-lang.c (rust_language_data): Likewise.
7887
54f4ca46
AB
78882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7889
7890 * ada-lang.c (ada_language_data): Delete
7891 la_lookup_transparent_type initializer.
7892 * c-lang.c (c_language_data): Likewise.
7893 (cplus_language_data): Likewise.
7894 (cplus_language::lookup_transparent_type): New member function.
7895 (asm_language_data): Delete la_lookup_transparent_type
7896 initializer.
7897 (minimal_language_data): Likewise.
7898 * d-lang.c (d_language_data): Likewise.
7899 * f-lang.c (f_language_data): Likewise.
7900 * go-lang.c (go_language_data): Likewise.
7901 * language.c (unknown_language_data): Likewise.
7902 (auto_language_data): Likewise.
7903 * language.h (struct language_data): Delete
7904 la_lookup_transparent_type field.
7905 (language_defn::lookup_transparent_type): New member function.
7906 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7907 initializer.
7908 * objc-lang.c (objc_language_data): Likewise.
7909 * opencl-lang.c (opencl_language_data): Likewise.
7910 * p-lang.c (pascal_language_data): Likewise.
7911 * rust-lang.c (rust_language_data): Likewise.
7912 * symtab.c (symbol_matches_domain): Update call.
7913
1fb314aa
AB
79142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * ada-lang.c (ada_language_arch_info): Delete function, move
7917 implementation to...
7918 (ada_language::language_arch_info): ...here, a new member
7919 function.
7920 (ada_language_data): Delete la_language_arch_info.
7921 * c-lang.c (c_language_data): Likewise.
7922 (c_language::language_arch_info): New member function.
7923 (cplus_language_arch_info): Delete function, move
7924 implementation to...
7925 (cplus_language::language_arch_info): ...here, a new member
7926 function.
7927 (cplus_language_data): Delete la_language_arch_info.
7928 (asm_language_data): Likewise.
7929 (asm_language::language_arch_info): New member function.
7930 (minimal_language_data): Delete la_language_arch_info.
7931 (minimal_language::language_arch_info): New member function.
7932 * d-lang.c (d_language_arch_info): Delete function, move
7933 implementation to...
7934 (d_language::language_arch_info): ...here, a new member
7935 function.
7936 (d_language_data): Delete la_language_arch_info.
7937 * f-lang.c (f_language_arch_info): Delete function, move
7938 implementation to...
7939 (f_language::language_arch_info): ...here, a new member
7940 function.
7941 (f_language_data): Delete la_language_arch_info.
7942 * go-lang.c (go_language_arch_info): Delete function, move
7943 implementation to...
7944 (go_language::language_arch_info): ...here, a new member
7945 function.
7946 (go_language_data): Delete la_language_arch_info.
7947 * language.c (unknown_language_data): Likewise.
7948 (unknown_language::language_arch_info): New member function.
7949 (auto_language_data): Delete la_language_arch_info.
7950 (auto_language::language_arch_info): New member function.
7951 (language_gdbarch_post_init): Update call to
7952 la_language_arch_info.
7953 * language.h (language_data): Delete la_language_arch_info
7954 function pointer.
7955 (language_defn::language_arch_info): New function.
7956 * m2-lang.c (m2_language_arch_info): Delete function, move
7957 implementation to...
7958 (m2_language::language_arch_info): ...here, a new member
7959 function.
7960 (m2_language_data): Delete la_language_arch_info.
7961 * objc-lang.c (objc_language_arch_info): Delete function, move
7962 implementation to...
7963 (objc_language::language_arch_info): ...here, a new member
7964 function.
7965 (objc_language_data): Delete la_language_arch_info.
7966 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7967 implementation to...
7968 (opencl_language::language_arch_info): ...here, a new member
7969 function.
7970 (opencl_language_data): Delete la_language_arch_info.
7971 * p-lang.c (pascal_language_arch_info): Delete function, move
7972 implementation to...
7973 (pascal_language::language_arch_info): ...here, a new member
7974 function.
7975 (pascal_language_data): Delete la_language_arch_info.
7976 * rust-lang.c (rust_language_arch_info): Delete function, move
7977 implementation to...
7978 (rust_language::language_arch_info): ...here, a new member
7979 function.
7980 (rust_language_data): Delete la_language_arch_info.
7981
48448202
AB
79822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7983
7984 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7985 initializer.
7986 * c-lang.c (c_language_data): Likewise.
7987 (cplus_language_data): Likewise.
7988 (cplus_language::pass_by_reference_info): New method.
7989 (asm_language_data): Delete la_pass_by_reference initializer.
7990 (minimal_language_data): Likewise.
7991 * cp-abi.c (cp_pass_by_reference): Remove use of
7992 default_pass_by_reference.
7993 * d-lang.c (d_language_data): Likewise.
7994 * f-lang.c (f_language_data): Likewise.
7995 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7996 default_pass_by_reference.
7997 * go-lang.c (go_language_data): Likewise.
7998 * language.c (language_pass_by_reference): Update.
7999 (default_pass_by_reference): Delete.
8000 (unknown_language_data): Delete la_pass_by_reference
8001 initializer.
8002 (auto_language_data): Likewise.
8003 * language.h (struct language_data): Delete la_pass_by_reference
8004 field.
8005 (language_defn::pass_by_reference_info): New member function.
8006 (default_pass_by_reference): Delete declaration.
8007 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8008 initializer.
8009 * objc-lang.c (objc_language_data): Likewise.
8010 * opencl-lang.c (opencl_language_data): Likewise.
8011 * p-lang.c (pascal_language_data): Likewise.
8012 * rust-lang.c (rust_language_data): Likewise.
8013
15e5fd35
AB
80142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8015
8016 * ada-lang.c (ada_read_var_value): Delete function, move
8017 implementation to...
8018 (ada_language::read_var_value): ...here.
8019 (ada_language_data): Delete la_read_var_value initializer.
8020 * c-lang.c (c_language_data): Likewise.
8021 (cplus_language_data): Likewise.
8022 (minimal_language_data): Likewise.
8023 * d-lang.c (d_language_data): Likewise.
8024 * f-lang.c (f_language_data): Likewise.
8025 * findvar.c (default_read_var_value): Rename to...
8026 (language_defn::read_var_value): ...this.
8027 * findvar.c (read_var_value): Update header comment, and change to
8028 call member function instead of function pointer.
8029 * go-lang.c (go_language_data): Likewise.
8030 * language.c (unknown_language_data): Delete la_read_var_value
8031 initializer.
8032 (auto_language_data): Likewise.
8033 * language.h (struct language_data): Delete la_read_var_value
8034 field.
8035 (language_defn::read_var_value): New member function.
8036 (default_read_var_value): Delete declaration.
8037 * m2-lang.c (m2_language_data): Delete la_read_var_value
8038 initializer.
8039 * objc-lang.c (objc_language_data): Likewise.
8040 * opencl-lang.c (opencl_language_data): Likewise.
8041 * p-lang.c (pascal_language_data): Likewise.
8042 * rust-lang.c (rust_language_data): Likewise.
8043 * value.h (default_read_var_value): Delete declaration.
8044
5bd40f2a
AB
80452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8046
8047 * ada-lang.c (ada_print_array_index): Delete function, move
8048 implementation to...
8049 (ada_language::print_array_index): ...here.
8050 (ada_language_data): Delete la_print_array_index initializer.
8051 * c-lang.c (c_language_data): Likewise.
8052 (cplus_language_data): Likewise.
8053 (minimal_language_data): Likewise.
8054 * d-lang.c (d_language_data): Likewise.
8055 * f-lang.c (f_language_data): Likewise.
8056 * go-lang.c (go_language_data): Likewise.
8057 * language.c (default_print_array_index): Delete function, move
8058 implementation to...
8059 (language_defn::print_array_index): ...here.
8060 (unknown_language_data): Delete la_print_array_index initializer.
8061 (auto_language_data): Likewise.
8062 * language.h (struct language_data): Delete la_print_array_index
8063 field.
8064 (language_defn::print_array_index): New member function.
8065 (LA_PRINT_ARRAY_INDEX): Update.
8066 (default_print_array_index): Delete declaration.
8067 * m2-lang.c (m2_language_data): Delete la_print_array_index
8068 initializer.
8069 * objc-lang.c (objc_language_data): Likewise.
8070 * opencl-lang.c (opencl_language_data): Likewise.
8071 * p-lang.c (pascal_language_data): Likewise.
8072 * rust-lang.c (rust_language_data): Likewise.
8073
0874fd07
AB
80742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8075
8076 * gdb/ada-lang.c (ada_language_defn): Convert to...
8077 (ada_language_data): ...this.
8078 (class ada_language): New class.
8079 (ada_language_defn): New static global.
8080 * gdb/c-lang.c (c_language_defn): Convert to...
8081 (c_language_data): ...this.
8082 (class c_language): New class.
8083 (c_language_defn): New static global.
8084 (cplus_language_defn): Convert to...
8085 (cplus_language_data): ...this.
8086 (class cplus_language): New class.
8087 (cplus_language_defn): New static global.
8088 (asm_language_defn): Convert to...
8089 (asm_language_data): ...this.
8090 (class asm_language): New class.
8091 (asm_language_defn): New static global.
8092 (minimal_language_defn): Convert to...
8093 (minimal_language_data): ...this.
8094 (class minimal_language): New class.
8095 (minimal_language_defn): New static global.
8096 * gdb/d-lang.c (d_language_defn): Convert to...
8097 (d_language_data): ...this.
8098 (class d_language): New class.
8099 (d_language_defn): New static global.
8100 * gdb/f-lang.c (f_language_defn): Convert to...
8101 (f_language_data): ...this.
8102 (class f_language): New class.
8103 (f_language_defn): New static global.
8104 * gdb/go-lang.c (go_language_defn): Convert to...
8105 (go_language_data): ...this.
8106 (class go_language): New class.
8107 (go_language_defn): New static global.
8108 * gdb/language.c (unknown_language_defn): Remove declaration.
8109 (current_language): Initialize to nullptr, real initialization is
8110 moved to _initialize_language.
8111 (languages): Delete global.
8112 (language_defn::languages): Define.
8113 (set_language_command): Use language_defn::languages.
8114 (set_language): Likewise.
8115 (range_error): Likewise.
8116 (language_enum): Likewise.
8117 (language_def): Likewise.
8118 (add_set_language_command): Use language_def::languages for the
8119 language list, and language_def to lookup language pointers.
8120 (skip_language_trampoline): Use language_defn::languages.
8121 (unknown_language_defn): Convert to...
8122 (unknown_language_data): ...this.
8123 (class unknown_language): New class.
8124 (unknown_language_defn): New static global.
8125 (auto_language_defn): Convert to...
8126 (auto_language_data): ...this.
8127 (class auto_language): New class.
8128 (auto_language_defn): New static global.
8129 (language_gdbarch_post_init): Use language_defn::languages.
8130 (_initialize_language): Initialize current_language.
8131 * gdb/language.h (struct language_defn): Rename to...
8132 (struct language_data): ...this.
8133 (struct language_defn): New.
8134 (auto_language_defn): Delete.
8135 (unknown_language_defn): Delete.
8136 (minimal_language_defn): Delete.
8137 (ada_language_defn): Delete.
8138 (asm_language_defn): Delete.
8139 (c_language_defn): Delete.
8140 (cplus_language_defn): Delete.
8141 (d_language_defn): Delete.
8142 (f_language_defn): Delete.
8143 (go_language_defn): Delete.
8144 (m2_language_defn): Delete.
8145 (objc_language_defn): Delete.
8146 (opencl_language_defn): Delete.
8147 (pascal_language_defn): Delete.
8148 (rust_language_defn): Delete.
8149 * gdb/m2-lang.c (m2_language_defn): Convert to...
8150 (m2_language_data): ...this.
8151 (class m2_language): New class.
8152 (m2_language_defn): New static global.
8153 * gdb/objc-lang.c (objc_language_defn): Convert to...
8154 (objc_language_data): ...this.
8155 (class objc_language): New class.
8156 (objc_language_defn): New static global.
8157 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8158 (opencl_language_data): ...this.
8159 (class opencl_language): New class.
8160 (opencl_language_defn): New static global.
8161 * gdb/p-lang.c (pascal_language_defn): Convert to...
8162 (pascal_language_data): ...this.
8163 (class pascal_language): New class.
8164 (pascal_language_defn): New static global.
8165 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8166 language pointer, update comment format.
8167 * gdb/rust-lang.c (rust_language_defn): Convert to...
8168 (rust_language_data): ...this.
8169 (class rust_language): New class.
8170 (rust_language_defn): New static global.
8171
1313c56e
AB
81722020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8175 member variable.
8176 <m_stmt_at_address>: New member variable.
8177 (lnp_state_machine::record_line): Don't record some lines, update
8178 tracking of is_stmt at the same address.
8179 (lnp_state_machine::lnp_state_machine): Initialise new member
8180 variables.
8181
b7ed9f3d
ST
81822020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8183
8184 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8185 "-include gnu-nat-mig.h".
8186 * gnu-nat-mig.h: New file.
8187 * gnu-nat.c: Include "gnu-nat-mig.h".
8188 (exc_server, msg_reply_server, notify_server,
8189 process_reply_server): Remove declarations.
8190
14a8ad62
ST
81912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8192
8193 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8194 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8195 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8196 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8197 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8198 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8199 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8200 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8201 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8202 to gnu_nat_target class.
8203 * gnu-nat.c: Likewise.
8204 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8205 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8206 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8207 object.
8208 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8209 instead of `gnu_target'.
8210
0af5e106
ST
82112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8212
8213 * i386-gnu-tdep.c: Include "gdbcore.h"
8214 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8215 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8216 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8217 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8218 i386_gnu_sigcontext_addr): New functions
8219 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8220 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8221 tdep.
8222
078f2fc9
ST
82232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8224
8225 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8226 before fork_inferior call. Avoid calling it if target_is_pushed returns
8227 true.
8228
53dff92c
ST
82292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8230
8231 * gnu-nat.h (gnu_target): New variable declaration.
8232 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8233 gnu_target.
8234 * gnu-nat.c (gnu_target): New variable.
8235 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8236 add_thread_silent, and add_thread calls.
8237 (gnu_nat_target::create_inferior): Pass gnu_target to
8238 add_thread_silent, thread_change_ptid call.
8239 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8240 call.
8241
5a8b8627
ST
82422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8243
8244 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8245 (gnu_nat_target::find_memory_regions): Remove unused
8246 `old_address' variable.
8247
366f550a
ST
82482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8249
8250 * gnu-nat.c: Include "gdbarch.h".
8251
f14871bf
ST
82522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8253
8254 * reply_mig_hack.awk (Error return): Cast function through
8255 void *, to bypass compiler function call check.
8256
c6887cfb
ST
82572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8258
8259 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8260 $(srcdir)/reply_mig_hack.awk.
8261
6930bffe
ST
82622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8263
8264 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8265
112c22ed
JG
82662020-05-30 Jonny Grant <jg@jguk.org>
8267
8268 * configure.ac (ACX_BUGURL): change bug URL to https.
8269
f68f85b5
PA
82702020-05-30 Pedro Alves <palves@redhat.com>
8271
8272 * cp-support.c (replace_typedefs_template): New.
8273 (replace_typedefs_qualified_name): Handle
8274 DEMANGLE_COMPONENT_TEMPLATE.
8275
976ca316
SM
82762020-05-29 Simon Marchi <simon.marchi@efficios.com>
8277
8278 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8279 dwarf2/index-cache.h, dwarf2/index-write.c,
8280 dwarf2/index-write.h, dwarf2/line-header.c,
8281 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8282 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8283 variables and fields from `dwarf2_per_objfile` to just
8284 `per_objfile` throughout.
8285
989ade05
SM
82862020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8287
8288 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8289 <push_dwarf_reg_entry_value>: Add comment.
8290
c47bae85
KB
82912020-05-28 Kevin Buettner <kevinb@redhat.com>
8292 Keith Seitz <keiths@redhat.com>
8293
8294 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8295 instead of PyEval_ReleaseLock.
8296 (class gdbpy_gil): Move to earlier in file.
8297 (finalize_python): Set gdb_python_initialized.
8298 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8299 when not initialized.
8300
44486dcf
SM
83012020-05-28 Simon Marchi <simon.marchi@efficios.com>
8302
8303 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8304 <push_dwarf_reg_entry_value>: Remove assert. Override
8305 per_objfile with caller_per_objfile.
8306
f030440d
TV
83072020-05-28 Tom de Vries <tdevries@suse.de>
8308
8309 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8310 PR gold/15646 workaround to symbol kind "type".
8311
f0fbb768
TT
83122020-05-27 Tom Tromey <tromey@adacore.com>
8313
8314 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8315
af0b2a3e
TT
83162020-05-27 Tom Tromey <tromey@adacore.com>
8317
8318 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8319 Use htab_find_with_hash.
8320 <add_abbrev>: Remove "abbrev_number" parameter.
8321 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8322 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8323 (hash_abbrev): Add comment.
8324 (abbrev_table::lookup_abbrev): Move to header file.
8325 (abbrev_table::read): Update.
8326
7d00ffec
TT
83272020-05-27 Tom Tromey <tromey@adacore.com>
8328
8329 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8330 method.
8331 <canonical_name>: New member.
8332 <raw_name>: Rename from "name".
8333 (partial_die_info): Initialize canonical_name.
8334 (scan_partial_symbols): Check raw_name.
8335 (partial_die_parent_scope, partial_die_full_name)
8336 (add_partial_symbol, add_partial_subprogram)
8337 (add_partial_enumeration, load_partial_dies): Use "name" method.
8338 (partial_die_info::name): New method.
8339 (partial_die_info::read, guess_partial_die_structure_name)
8340 (partial_die_info::fixup): Update.
8341
697bba18
TT
83422020-05-27 Tom Tromey <tromey@adacore.com>
8343
8344 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8345 <get_ref_die_offset>: Inline.
8346 <get_ref_die_offset_complaint>: New method.
8347 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8348 (attribute::get_ref_die_offset_complaint): Rename from
8349 get_ref_die_offset. Just issue complaint.
8350
c17ace43
HD
83512020-05-27 Hannes Domani <ssbssa@yahoo.de>
8352
8353 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8354
96445f0b
HD
83552020-05-27 Hannes Domani <ssbssa@yahoo.de>
8356
8357 * exec.c (exec_file_attach): Use errno value of first openp failure.
8358
ac637ec3
HD
83592020-05-27 Hannes Domani <ssbssa@yahoo.de>
8360
8361 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8362 Don't close thread handle.
8363
17ee85fc
TT
83642020-05-27 Tom Tromey <tom@tromey.com>
8365 Simon Marchi <simon.marchi@efficios.com>
8366
8367 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8368 shared_ptr.
8369 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8370 member.
8371 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8372 dwarf2_per_bfd_objfile_data_key>: New globals.
8373 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8374 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8375 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8376 shared.
8377 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8378 short-circuit when sharing.
8379 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8380 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8381
39b16f87
SM
83822020-05-27 Simon Marchi <simon.marchi@efficios.com>
8383
8384 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8385 to...
8386 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8387 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8388
fcf23d5b
SM
83892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8390
8391 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8392 build_name_components, find_name_components_bounds>:
8393 Add per_objfile parameter.
8394 (struct mapped_index) <symbol_name_at>: Likewise.
8395 (struct mapped_debug_names): Remove constructor.
8396 <dwarf2_per_objfile>: Remove field.
8397 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8398 (mapped_index_base::find_name_components_bounds,
8399 mapped_index_base::build_name_components,
8400 dw2_expand_symtabs_matching_symbol): Likewise.
8401 (class mock_mapped_index) <symbol_name_at>: Likewise.
8402 (check_match): Likewise.
8403 (check_find_bounds_finds): Likewise.
8404 (test_mapped_index_find_name_component_bounds): Update.
8405 (CHECK_MATCH): Update.
8406 (dw2_expand_symtabs_matching): Update.
8407 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8408 per_objfile parameter.
8409 <find_vec_in_debug_names>: Likewise.
8410 <m_per_objfile>: New field.
8411 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8412 parameter.
8413 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8414 (dw2_debug_names_iterator::next): Update.
8415 (dw2_debug_names_lookup_symbol): Update.
8416 (dw2_debug_names_expand_symtabs_for_function): Update.
8417 (dw2_debug_names_map_matching_symbols): Update.
8418 (dw2_debug_names_expand_symtabs_matching): Update.
8419 (dwarf2_read_debug_names): Update.
8420
7188ed02
SM
84212020-05-27 Simon Marchi <simon.marchi@efficios.com>
8422
8423 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8424 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8425 move to dwarf2_per_objfile.
8426 <read_in_chain>: Remove.
8427 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8428 remove_all_cus, age_comp_units>: New methods.
8429 <m_dwarf2_cus>: New member.
8430 (struct dwarf2_per_cu_data) <cu>: Remove.
8431 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8432 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8433 moved to methods of dwarf2_per_objfile.
8434 (dwarf2_clear_marks): Remove.
8435 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8436 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8437 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8438 (dwarf2_per_objfile::remove_all_cus): New.
8439 (class free_cached_comp_units) <~free_cached_comp_units>:
8440 Update.
8441 (load_cu): Update.
8442 (dw2_do_instantiate_symtab): Adjust.
8443 (fill_in_sig_entry_from_dwo_entry): Adjust.
8444 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8445 (cutu_reader::cutu_reader): Likewise.
8446 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8447 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8448 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8449 and dwarf2_per_objfile::age_comp_units.
8450 (load_partial_comp_unit): Update.
8451 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8452 (process_queue): Likewise.
8453 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8454 backlink.
8455 (dwarf2_read_addr_index): Likewise.
8456 (follow_die_offset): Likewise.
8457 (dwarf2_fetch_die_loc_sect_off): Likewise.
8458 (dwarf2_fetch_constant_bytes): Likewise.
8459 (dwarf2_fetch_die_type_sect_off): Likewise.
8460 (follow_die_sig_1): Likewise.
8461 (load_full_type_unit): Likewise.
8462 (read_signatured_type): Likewise.
8463 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8464 (dwarf2_cu::~dwarf2_cu): Remove.
8465 (dwarf2_per_objfile::get_cu): New.
8466 (dwarf2_per_objfile::set_cu): New.
8467 (age_cached_comp_units): Rename to...
8468 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8469 to std::unordered_map.
8470 (free_one_cached_comp_unit): Rename to...
8471 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8472 to std::unordered_map.
8473 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8474 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8475 a dwarf2_per_objfile in data.
8476 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8477 (dwarf2_clear_marks): Remove.
8478
2e671100
SM
84792020-05-27 Simon Marchi <simon.marchi@efficios.com>
8480
8481 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8482 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8483 (init_tu_and_read_dwo_dies): Likewise.
8484 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8485 (cutu_reader::cutu_reader): Likewise.
8486 (load_partial_comp_unit): Likewise.
8487 (process_psymtab_comp_unit): Update.
8488 (build_type_psymtabs_1): Update.
8489 (process_skeletonless_type_unit): Update.
8490 (load_full_comp_unit): Update.
8491 (find_partial_die): Update.
8492 (dwarf2_read_addr_index): Update.
8493 (read_signatured_type): Update.
8494
2e6a9f79
SM
84952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8496
8497 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8498 m_header_read_in>: New fields.
8499 <get_header>: New method.
8500 * dwarf2/read.c (per_cu_header_read_in): Remove.
8501 (dwarf2_per_cu_data::get_header): New.
8502 (dwarf2_per_cu_data::addr_size): Update.
8503 (dwarf2_per_cu_data::offset_size): Update.
8504 (dwarf2_per_cu_data::ref_addr_size): Update.
8505
1b555f17
SM
85062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8507
8508 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8509 (dw2_do_instantiate_symtab): Update.
8510 (queue_and_load_all_dwo_tus): Change parameter from
8511 dwarf2_per_cu_data to dwarf2_cu.
8512 (dwarf2_fetch_die_loc_sect_off): Update.
8513 (dwarf2_fetch_constant_bytes): Update.
8514 (dwarf2_fetch_die_type_sect_off): Update.
8515
8fc0b21d
SM
85162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8517
8518 * dwarf2/read.c (process_full_comp_unit,
8519 process_full_type_unit): Remove per_cu, per_objfile paramters.
8520 Add dwarf2_cu parameter.
8521 (process_queue): Update.
8522
168c9250
SM
85232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8524
8525 * dwarf2/read.c (create_cu_from_index_list): Replace
8526 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8527 (create_cus_from_index_list): Likewise.
8528 (create_cus_from_index): Likewise.
8529 (create_signatured_type_table_from_index): Likewise.
8530 (create_cus_from_debug_names_list): Likewise.
8531 (create_cus_from_debug_names): Likewise.
8532 (dwarf2_read_gdb_index): Update.
8533 (dwarf2_read_debug_names): Update.
8534
e286671b
TT
85352020-05-27 Tom Tromey <tom@tromey.com>
8536 Simon Marchi <simon.marchi@efficios.com>
8537
8538 * dwarf2/read.h (struct dwarf2_per_objfile)
8539 <get_type_for_signatured_type, set_type_for_signatured_type>:
8540 New methods.
8541 <m_type_map>: New member.
8542 (struct signatured_type) <type>: Remove.
8543 * dwarf2/read.c
8544 (dwarf2_per_objfile::get_type_for_signatured_type,
8545 dwarf2_per_objfile::set_type_for_signatured_type): New.
8546 (get_signatured_type): Use new methods.
8547
8adb8487
TT
85482020-05-27 Tom Tromey <tom@tromey.com>
8549 Simon Marchi <simon.marchi@efficios.com>
8550
8551 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8552 (struct dwarf2_per_objfile) <type_units>: New member.
8553 <get_type_unit_group_unshareable>: New method.
8554 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8555 num_symtabs, symtabs>: Remove; move to
8556 type_unit_group_unshareable.
8557 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8558 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8559 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8560
127bbf4b
SM
85612020-05-27 Simon Marchi <simon.marchi@efficios.com>
8562
8563 * dwarf2/read.h (struct dwarf2_per_cu_data):
8564 <dwarf2_per_objfile>: Remove.
8565 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8566 dwarf2_per_objfile.
8567 (create_signatured_type_table_from_index): Likewise.
8568 (create_signatured_type_table_from_debug_names): Likewise.
8569 (create_debug_type_hash_table): Likewise.
8570 (fill_in_sig_entry_from_dwo_entry): Likewise.
8571 (create_type_unit_group): Likewise.
8572 (read_comp_units_from_section): Likewise.
8573 (create_cus_hash_table): Likewise.
8574
f6e649dd
SM
85752020-05-27 Simon Marchi <simon.marchi@efficios.com>
8576
8577 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8578 dwarf2_per_cu_data::dwarf2_per_objfile.
8579 (compute_compunit_symtab_includes): Likewise.
8580 (dwarf2_cu::start_symtab): Likewise.
8581
aa66c379
SM
85822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8583
8584 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8585 parameter.
8586 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8587 (read_namespace_alias): Update.
8588 (lookup_die_type): Update.
8589 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8590 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8591 Update.
8592 (disassemble_dwarf_expression): Update.
8593
120ce1b5
SM
85942020-05-27 Simon Marchi <simon.marchi@efficios.com>
8595
8596 * dwarf2/read.h (struct dwarf2_queue_item): Add
8597 dwarf2_per_objfile parameter, assign new parameter.
8598 <per_objfile>: New field.
8599 * dwarf2/read.c (free_one_cached_comp_unit): Add
8600 dwarf2_per_objfile parameter.
8601 (queue_comp_unit): Likewise.
8602 (dw2_do_instantiate_symtab): Update.
8603 (process_psymtab_comp_unit): Update.
8604 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8605 (process_imported_unit_die): Update.
8606 (queue_and_load_dwo_tu): Update.
8607 (follow_die_offset): Update.
8608 (follow_die_sig_1): Update.
8609
9f47c707
SM
86102020-05-27 Simon Marchi <simon.marchi@efficios.com>
8611
8612 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8613 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8614 (read_call_site_scope): Assign per_objfile.
8615 (dwarf2_per_cu_data::objfile): Remove.
8616 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8617 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8618 dwarf2_per_objfile parameter.
8619 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8620 dwarf2_per_objfile parameter.
8621 (dwarf_expr_reg_to_entry_parameter): Add output
8622 dwarf2_per_objfile parameter.
8623 (locexpr_get_frame_base): Update.
8624 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8625 <push_dwarf_reg_entry_value>: Update.
8626 <call_site_to_target_addr>: Update.
8627 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8628 parameter.
8629 (value_of_dwarf_reg_entry): Update.
8630 (rw_pieced_value): Update.
8631 (indirect_synthetic_pointer): Update.
8632 (dwarf2_evaluate_property): Update.
8633 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8634 parameter.
8635 (locexpr_read_variable): Update.
8636 (locexpr_get_symbol_read_needs): Update.
8637 (loclist_read_variable): Update.
8638
14095eb3
SM
86392020-05-27 Simon Marchi <simon.marchi@efficios.com>
8640
8641 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8642 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8643 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8644 parameter.
8645 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8646 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8647 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8648 parameter.
8649 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8650 sect_variable_value): Add dwarf2_per_objfile parameter.
8651 (class dwarf_evaluate_loc_desc) <dwarf_call,
8652 dwarf_variable_value>: Update.
8653 (fetch_const_value_from_synthetic_pointer): Add
8654 dwarf2_per_objfile parameter.
8655 (fetch_const_value_from_synthetic_pointer): Update.
8656 (coerced_pieced_ref): Update.
8657 (class symbol_needs_eval_context) <dwarf_call,
8658 dwarf_variable_value>: Update.
8659 (dwarf2_compile_expr_to_ax): Update.
8660
3c3cd3d4
SM
86612020-05-27 Simon Marchi <simon.marchi@efficios.com>
8662
8663 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8664 parameter.
8665 (dwarf2_evaluate_loc_desc_full): Update.
8666
82ca3f51
SM
86672020-05-27 Simon Marchi <simon.marchi@efficios.com>
8668
8669 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8670 parameter.
8671 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8672 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8673 dwarf2_per_objfile parameter.
8674 (decode_debug_loc_dwo_addresses): Likewise.
8675 (dwarf2_find_location_expression): Update.
8676 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8677 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8678 parameter.
8679 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8680 parameter.
8681 (locexpr_describe_location_1): Likewise.
8682 (locexpr_describe_location): Update.
8683
4b167ea1
SM
86842020-05-27 Simon Marchi <simon.marchi@efficios.com>
8685
8686 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8687 Remove.
8688 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8689 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8690 (dwarf2_compile_property_to_c): Update.
8691 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8692 use text offset from objfile.
8693 (locexpr_tracepoint_var_ref): Update.
8694 (locexpr_generate_c_location): Update.
8695 (loclist_describe_location): Update.
8696 (loclist_tracepoint_var_ref): Update.
8697 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8698 dwarf2_per_objfile parameter.
8699 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8700 use text offset from objfile.
8701 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8702
89b07335
SM
87032020-05-27 Simon Marchi <simon.marchi@efficios.com>
8704
8705 * dwarf2/expr.h (struct dwarf_expr_context)
8706 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8707 <offset>: Remove.
8708 <per_objfile>: New member.
8709 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8710 dwarf2_per_objfile parameter. Don't set offset, set
8711 per_objfile.
8712 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8713 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8714 a dwarf2_per_objfile object instead of an offset.
8715 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8716 constructor.
8717 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8718 to dwarf2_expr_executor constructor. Don't set offset.
8719 (dwarf2_fetch_cfa_info): Update.
8720 (struct dwarf2_frame_cache) <text_offset>: Remove.
8721 <per_objfile>: New field.
8722 (dwarf2_frame_cache): Update.
8723 (dwarf2_frame_prev_register): Update.
8724 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8725 <dwarf_evaluate_loc_desc>: Add constructor.
8726 (dwarf2_evaluate_loc_desc_full): Update.
8727 (dwarf2_locexpr_baton_eval): Update.
8728 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8729 Add constructor.
8730 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8731
293e7e51
SM
87322020-05-27 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8735 addr_sized_int_type>: Move to dwarf2_cu.
8736 <int_type>: Move to dwarf2_per_objfile.
8737 (struct dwarf2_per_objfile) <int_type>: Move here.
8738 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8739 addr_sized_int_type>: Move here.
8740 (read_func_scope): Update.
8741 (read_array_type): Update.
8742 (read_tag_string_type): Update.
8743 (attr_to_dynamic_prop): Update.
8744 (dwarf2_per_cu_data::int_type): Rename to...
8745 (dwarf2_per_objfile::int_type): ... this.
8746 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8747 (dwarf2_cu::addr_sized_int_type): ... this.
8748 (read_subrange_type): Update.
8749 (dwarf2_per_cu_data::addr_type): Rename to...
8750 (dwarf2_cu::addr_type): ... this.
8751 (set_die_type): Update.
8752
64874a40
SM
87532020-05-27 Simon Marchi <simon.marchi@efficios.com>
8754
8755 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8756 data through per_cu->cu.
8757
4ab09049
SM
87582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8759
8760 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8761 dwarf2_per_cu_data parameter fo dwarf2_cu.
8762 (lookup_dwo_type_unit): Likewise.
8763 (read_cutu_die_from_dwo): Likewise.
8764 (lookup_dwo_unit): Likewise.
8765 (open_and_init_dwo_file): Likewise.
8766 (lookup_dwo_cutu): Likewise.
8767 (lookup_dwo_comp_unit): Likewise.
8768 (lookup_dwo_type_unit): Likewise.
8769 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8770 (cutu_reader::cutu_reader): Update.
8771
47b14e86
SM
87722020-05-27 Simon Marchi <simon.marchi@efficios.com>
8773
8774 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8775 parameter.
8776 (process_full_type_unit): Likewise.
8777 (process_queue): Update.
8778
43182c09
SM
87792020-05-27 Simon Marchi <simon.marchi@efficios.com>
8780
8781 * dwarf2/read.c (recursively_compute_inclusions): Add
8782 dwarf2_per_objfile parameter.
8783 (compute_compunit_symtab_includes): Likewise.
8784 (process_cu_includes): Update.
8785
7aa104c4
SM
87862020-05-27 Simon Marchi <simon.marchi@efficios.com>
8787
8788 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8789 parameter.
8790 (create_type_unit_group): Update.
8791 (process_psymtab_comp_unit_reader): Update.
8792 (build_type_psymtabs_reader): Update.
8793
e3beb21d
SM
87942020-05-27 Simon Marchi <simon.marchi@efficios.com>
8795
8796 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8797 object through m_this_cu->cu.
8798
d460f660
SM
87992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8800
8801 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8802 the info parameter.
8803 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8804
ab432490
SM
88052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8806
8807 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8808 per_objfile parameter.
8809 (load_full_type_unit): Add per_objfile parameter.
8810 (read_signatured_type): Likewise.
8811 (load_full_comp_unit): Likewise.
8812 (load_cu): Likewise.
8813 (dw2_do_instantiate_symtab): Likewise.
8814 (dw2_get_file_names): Likewise.
8815 (dw2_map_symtabs_matching_filename): Update.
8816 (dw_expand_symtabs_matching_file_matcher): Update.
8817 (dw2_map_symbol_filenames): Update.
8818 (process_psymtab_comp_unit): Add per_objfile parameter.
8819 (build_type_psymtabs_1): Update.
8820 (process_skeletonless_type_unit): Update.
8821 (dwarf2_build_psymtabs_hard): Update.
8822 (load_partial_comp_unit): Add per_objfile parameter.
8823 (scan_partial_symbols): Update.
8824 (load_full_comp_unit): Add per_objfile parameter.
8825 (process_imported_unit_die): Update.
8826 (create_cus_hash_table): Update.
8827 (find_partial_die): Update.
8828 (dwarf2_read_addr_index): Update.
8829 (follow_die_offset): Update.
8830 (dwarf2_fetch_die_loc_sect_off): Update.
8831 (dwarf2_fetch_constant_bytes): Update.
8832 (dwarf2_fetch_die_type_sect_off): Update.
8833 (follow_die_sig_1): Update.
8834 (load_full_type_unit): Add per_objfile parameter.
8835 (read_signatured_type): Likewise.
8836
313bad1b
SM
88372020-05-27 Simon Marchi <simon.marchi@efficios.com>
8838
8839 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8840 of objfile_name.
8841
c3699833
SM
88422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8843
8844 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8845 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8846 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8847 field.
8848 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8849 (create_cus_from_index): Update.
8850 (dwarf2_read_gdb_index): Update.
8851 (create_cus_from_debug_names): Update.
8852 (dwarf2_read_debug_names): Update.
8853 (get_abbrev_section_for_cu): Update.
8854 (create_all_comp_units): Update.
8855 (read_attribute_value): Update.
8856 (get_debug_line_section): Update.
8857 * dwarf2/index-cache.c (index_cache::store): Update.
8858 * dwarf2/index-write.c (save_gdb_index_command): Update.
8859 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8860
1859c670
SM
88612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8862
8863 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8864 member.
8865 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8866 dwarf2_per_cu_data::per_bfd.
8867 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8868 (create_type_unit_group): Likewise.
8869 (queue_comp_unit): Remove reference to
8870 per_cu->dwarf2_per_objfile.
8871 (maybe_queue_comp_unit): Likewise.
8872 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8873 (create_cus_hash_table): Assign new field.
8874
5e22e966
SM
88752020-05-27 Simon Marchi <simon.marchi@efficios.com>
8876
8877 * dwarf2/read.c: Replace
8878 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8879 dwarf2_cu->per_objfile throughout.
8880
97a1449a
SM
88812020-05-27 Simon Marchi <simon.marchi@efficios.com>
8882
8883 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8884 parameter, don't use per_cu->dwarf2_per_objfile.
8885 (dw2_instantiate_symtab): Likewise.
8886 (dw2_find_last_source_symtab): Update.
8887 (dw2_map_expand_apply): Update.
8888 (dw2_lookup_symbol): Update.
8889 (dw2_expand_symtabs_for_function): Update.
8890 (dw2_expand_all_symtabs): Update.
8891 (dw2_expand_symtabs_with_fullname): Update.
8892 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8893 don't use per_cu->dwarf2_per_objfile.
8894 (dw2_expand_marked_cus): Update.
8895 (dw2_find_pc_sect_compunit_symtab): Update.
8896 (dw2_debug_names_lookup_symbol): Update.
8897 (dw2_debug_names_expand_symtabs_for_function): Update.
8898 (dw2_debug_names_map_matching_symbols): Update.
8899 (dwarf2_psymtab::expand_psymtab): Update.
8900
9e021579
SM
89012020-05-27 Simon Marchi <simon.marchi@efficios.com>
8902
8903 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8904 <per_objfile>: New member.
8905 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8906 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8907 call to dwarf2_cu.
8908 (cutu_reader::cutu_reader): Update.
8909 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8910
ae090bdb
SM
89112020-05-27 Simon Marchi <simon.marchi@efficios.com>
8912
8913 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8914 struct dwarf2_per_objfile.
8915 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8916 dwarf2_per_bfd.
8917 * dwarf2/read.c (set_die_type): Update.
8918 (get_die_type_at_offset): Update.
8919
af758d11
SM
89202020-05-27 Tom Tromey <tom@tromey.com>
8921 Simon Marchi <simon.marchi@efficios.com>
8922
8923 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8924 method.
8925 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8926 get_symtab, set_symtab>: New methods.
8927 <m_symtabs>: New field.
8928 (struct dwarf2_psymtab): Derive from partial_symtab.
8929 <readin_p, get_compunit_symtab>: Declare methods.
8930 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8931 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8932 New methods.
8933 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8934 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8935 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8936 (dw2_symtab_iter_next, dw2_print_stats)
8937 (dw2_expand_symtabs_with_fullname)
8938 (dw2_expand_symtabs_matching_one)
8939 (dw_expand_symtabs_matching_file_matcher)
8940 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8941 (dw2_debug_names_iterator::next)
8942 (dw2_debug_names_map_matching_symbols)
8943 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8944 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8945 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8946 New methods.
8947 (get_compunit_symtab, process_full_comp_unit)
8948 (process_full_type_unit): Update.
8949 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8950
5989a64e
SM
89512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8952
8953 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8954 then introduce a new dwarf2_per_objfile type.
8955 <read_line_string>: Move to the new dwarf2_per_objfile type.
8956 <objfile>: Likewise.
8957 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8958 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8959 dwarf2_per_objfile->per_bfd.
8960 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8961 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8962 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8963 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8964 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8965 (dwarf2_per_objfile::locate_sections): Rename to...
8966 (dwarf2_per_bfd::locate_sections): ... this.
8967 (dwarf2_per_objfile::get_cutu): Rename to...
8968 (dwarf2_per_bfd::get_cutu): ... this.
8969 (dwarf2_per_objfile::get_cu): Rename to...
8970 (dwarf2_per_bfd::get_cu): ... this.
8971 (dwarf2_per_objfile::get_tu): Rename to...
8972 (dwarf2_per_bfd::get_tu): ... this.
8973 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8974 (dwarf2_per_bfd::allocate_per_cu): ... this.
8975 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8976 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8977 (get_gdb_index_contents_ftype): Change parameter from
8978 dwarf2_per_objfile to dwarf2_per_bfd.
8979 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8980 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8981
a50264ba
TT
89822020-05-27 Tom Tromey <tom@tromey.com>
8983 Simon Marchi <simon.marchi@efficios.com>
8984
8985 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8986 (allocate_piece_closure): Set "per_objfile" member.
8987 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8988 (locexpr_describe_location, loclist_describe_location): Use new
8989 member.
8990 * dwarf2/read.c (read_call_site_scope)
8991 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8992 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8993 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8994 handle_data_member_location): Set per_objfile member.
8995 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8996 member.
8997 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8998
d3473f0c
TT
89992020-05-27 Tom Tromey <tom@tromey.com>
9000
9001 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9002 allocate_signatured_type>: Declare new methods.
9003 <m_num_psymtabs>: New member.
9004 (struct dwarf2_per_cu_data) <index>: New member.
9005 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9006 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9007 (create_cu_from_index_list): Use allocate_per_cu.
9008 (create_signatured_type_table_from_index)
9009 (create_signatured_type_table_from_debug_names)
9010 (create_debug_type_hash_table, add_type_unit)
9011 (read_comp_units_from_section): Use allocate_signatured_type.
9012
5717c425
TT
90132020-05-27 Tom Tromey <tom@tromey.com>
9014
9015 * psymtab.c (partial_map_expand_apply)
9016 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9017 (psym_lookup_global_symbol_language)
9018 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9019 (psym_print_stats, psym_expand_symtabs_for_function)
9020 (psym_map_symbol_filenames, psym_map_matching_symbols)
9021 (psym_expand_symtabs_matching)
9022 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9023 (maintenance_check_psymtabs): Update.
9024 * psympriv.h (struct partial_symtab) <readin_p,
9025 get_compunit_symtab>: Add objfile parameter.
9026 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9027 Likewise.
9028 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9029 get_compunit_symtab>: Likewise.
9030 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9031
45940949
TT
90322020-05-27 Tom Tromey <tom@tromey.com>
9033
9034 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9035 member.
9036 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9037 (create_cu_from_index_list)
9038 (create_signatured_type_table_from_index)
9039 (create_signatured_type_table_from_debug_names)
9040 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9041 (dwarf2_create_include_psymtab)
9042 (create_debug_type_hash_table, add_type_unit)
9043 (create_type_unit_group, read_comp_units_from_section)
9044 (dwarf2_compute_name, create_cus_hash_table)
9045 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9046 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9047 obstack.
9048 (dw2_get_real_path): Likewise. Change argument to
9049 dwarf2_per_objfile.
9050
f8c6d152
LM
90512020-05-27 Luis Machado <luis.machado@linaro.org>
9052
9053 PR tdep/26000
9054 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9055 for ldrd (immediate).
9056
e98d2e6d
PW
90572020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9058
9059 * command.h: Add comment giving the name of class_tui.
9060 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9061 create the fake command for the help for class_tui.
9062
53a47a3e
TT
90632020-05-26 Tom Tromey <tromey@adacore.com>
9064
9065 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9066 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9067 (val_atr): New function.
9068 (value_val_atr): Use it.
9069 * ada-valprint.c (print_optional_low_bound): Change low bound
9070 handling for enums.
9071 (val_print_packed_array_elements): Don't call discrete_position.
9072 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9073 discrete_position for enum types.
9074 * language.c (default_print_array_index): Change type.
9075 * language.h (struct language_defn) <la_print_array_index>: Add
9076 index_type parameter, change type of index_value.
9077 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9078 (default_print_array_index): Update.
9079 * valprint.c (maybe_print_array_index): Don't call
9080 value_from_longest. Update.
9081 (value_print_array_elements): Don't call discrete_position.
9082
0bc2354b
TT
90832020-05-26 Tom Tromey <tromey@adacore.com>
9084
9085 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9086 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9087
1218a4bf
CDA
90882020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9089
9090 PR gdb/13519
9091 * avr-tdep.c (avr_integer_to_address): Return data or code
9092 address accordingly to the second 'type' argument of the
9093 function.
9094
92651b1d
MW
90952020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9096
9097 * infcmd.c, inferior.h: (construct_inferior_arguments):
9098 Moved function from here to gdbsupport/common-inferior.{h,cc}
9099
0a4f5f8c
TT
91002020-05-23 Tom Tromey <tom@tromey.com>
9101
9102 Revert commit eca1f90c:
9103 * NEWS: Remove entry for completion styling.
9104 * completer.c (_rl_completion_prefix_display_length): Move
9105 declaration later.
9106 (gdb_fnprint): Revert.
9107 (gdb_display_match_list_1): Likewise.
9108 * cli/cli-style.c (completion_prefix_style)
9109 (completion_difference_style, completion_suffix_style): Remove.
9110 (_initialize_cli_style): Revert.
9111 * cli/cli-style.h (completion_prefix_style)
9112 (completion_difference_style, completion_suffix_style): Don't
9113 declare.
9114
e08bd6c5
PA
91152020-05-24 Pedro Alves <palves@redhat.com>
9116
9117 * symtab.c (completion_list_add_name): Return boolean indication
9118 of whether the symbol matched.
9119 (completion_list_add_symbol): Don't try to remove C++ aliases if
9120 the symbol didn't match in the first place.
9121 * symtab.h (completion_list_add_name): Return bool.
9122
ceacbf6e
SM
91232020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9124
9125 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9126 type::field.
9127
26f16254
JB
91282020-05-23 Joel Brobecker <brobecker@adacore.com>
9129
9130 GDB 9.2 released.
9131
eca1f90c
TT
91322020-05-23 Tom Tromey <tom@tromey.com>
9133
9134 * NEWS: Add entry for completion styling.
9135 * completer.c (_rl_completion_prefix_display_length): Move
9136 declaration earlier.
9137 (gdb_fnprint): Use completion_style.
9138 (gdb_display_match_list_1): Likewise.
9139 * cli/cli-style.c (completion_prefix_style)
9140 (completion_difference_style, completion_suffix_style): New
9141 globals.
9142 (_initialize_cli_style): Register new globals.
9143 * cli/cli-style.h (completion_prefix_style)
9144 (completion_difference_style, completion_suffix_style): Declare.
9145
51e2cfa2
PA
91462020-05-23 Pedro Alves <palves@redhat.com>
9147
9148 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9149 (parse_escape): Use ISDIGIT instead of isdigit.
9150 (puts_debug): Use gdb_isprint instead of isprint.
9151 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9152 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9153 ISSPACE instead of isspace.
9154 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9155 instead of isspace.
9156 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9157 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9158 instead of isxdigit and ISDIGIT instead of isdigit.
9159
80fc5e77
SM
91602020-05-22 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * gdbtypes.h (struct type) <field>: New method.
9163 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9164 or type::field.
9165
3cabb6b0
SM
91662020-05-22 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9169 (TYPE_FIELDS): Use type::fields. Change all call sites that
9170 modify the propery to use type::set_fields instead.
9171
1f704f76
SM
91722020-05-22 Simon Marchi <simon.marchi@efficios.com>
9173
9174 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9175 type::num_fields instead.
9176
5e33d5f4
SM
91772020-05-22 Simon Marchi <simon.marchi@efficios.com>
9178
9179 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9180 methods.
9181 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9182 that modify the number of fields to use type::set_num_fields
9183 instead.
9184
9392ebb3
TT
91852020-05-22 Tom Tromey <tromey@adacore.com>
9186
9187 * compile/compile-object-load.h (munmap_list_free): Don't
9188 declare.
9189
7c13f4e8
AB
91902020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9191
9192 * annotate.c (annotate_source_line): Update return type, add call
9193 to update current symtab and line.
9194 * annotate.h (annotate_source_line): Update return type, and
9195 extend header comment.
9196 * source.c (info_line_command): Check annotation_level before
9197 calling annotate_source_line.
9198 * stack.c (print_frame_info): If calling annotate_source_line
9199 returns true, then don't print any other source line information.
9200
aa370940
SM
92012020-05-21 Simon Marchi <simon.marchi@efficios.com>
9202
9203 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9204
84d53fa9
SM
92052020-05-21 Simon Marchi <simon.marchi@efficios.com>
9206
9207 * coffread.c (patch_type): Remove NULL check before xfree.
9208 * corefile.c (set_gnutarget): Likewise.
9209 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9210 * exec.c (build_section_table): Likewise.
9211 * remote.c (remote_target::pass_signals): Likewise.
9212 * utils.c (n_spaces): Likewise.
9213 * cli/cli-script.c (document_command): Likewise.
9214 * i386-windows-tdep.c (core_process_module_section): Likewise.
9215 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9216
9d428aae
SM
92172020-05-20 Simon Marchi <simon.marchi@efficios.com>
9218
9219 * symfile.c (reread_symbols): Clear objfile's section_offsets
9220 vector and section indices, re-compute them by calling
9221 sym_offsets.
9222
250106a7
TT
92232020-05-20 Tom Tromey <tromey@adacore.com>
9224
9225 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9226 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9227
9a0bacfb
TV
92282020-05-20 Tom de Vries <tdevries@suse.de>
9229
9230 PR symtab/25833
9231 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9232
7b958a48
AM
92332020-05-20 Alan Modra <amodra@gmail.com>
9234
9235 PR 25993
9236 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9237 bfd_set_filename.
9238 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9239 passed to bfd_set_filename.
9240 * symfile-mem.c (add_vsyscall_page): Likewise for string
9241 passed to symbol_file_add_from_memory.
9242 (symbol_file_add_from_memory): Make name param a const char* and
9243 don't strdup.
9244
c7e97679
AM
92452020-05-20 Alan Modra <amodra@gmail.com>
9246
9247 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9248 rather than accessing bfd->filename directly.
9249 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9250 and use bfd_section_name.
9251 * dwarf2/frame.c (decode_frame_entry): Likewise.
9252 * exec.c (exec_set_section_address): Likewise.
9253 * solib-aix.c (solib_aix_bfd_open): Likewise.
9254 * stap-probe.c (get_stap_base_address): Likewise.
9255 * symfile.c (reread_symbols): Likewise.
9256
563c591b
TT
92572020-05-19 Tom Tromey <tromey@adacore.com>
9258
9259 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9260
f408d82c
SM
92612020-05-19 Simon Marchi <simon.marchi@efficios.com>
9262
9263 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9264
98c59b52
PA
92652020-05-19 Pedro Alves <palves@redhat.com>
9266
9267 * NEWS (set exec-file-mismatch): Adjust entry.
9268 * exec.c: Include "build-id.h".
9269 (validate_exec_file): Try to match build IDs instead of filenames.
9270 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9271 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9272 and pass down 'warn_if_slow'.
9273 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9274 gdb_bfd_open_closure to pass it down.
9275 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9276
4111f652
PA
92772020-05-19 Pedro Alves <palves@redhat.com>
9278
9279 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9280 * target.c (target_fileio_open_1): Rename to target_fileio_open
9281 and make extern. Use bool.
9282 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9283 (target_fileio_read_alloc_1): Adjust.
9284 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9285 (target_fileio_open_warn_if_slow): Delete declaration.
9286
ad80db5b
PA
92872020-05-19 Pedro Alves <palves@redhat.com>
9288
9289 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9290 Adjust all callers.
9291
1d6ce4d3
YS
92922020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9293
9294 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9295 whether disp is negative.
9296
9005fbbb
SM
92972020-05-19 Simon Marchi <simon.marchi@efficios.com>
9298
9299 * symfile.h (struct symfile_segment_data)
9300 <~symfile_segment_data>: Remove.
9301 <segment_info>: Change to std::vector.
9302 * symfile.c (default_symfile_segments): Update.
9303 * elfread.c (elf_symfile_segments): Update.
9304
68b888ff
SM
93052020-05-19 Simon Marchi <simon.marchi@efficios.com>
9306
9307 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9308 <segments>: New.
9309 <segment_bases, segment_sizes>: Remove.
9310 * symfile.c (default_symfile_segments): Update.
9311 * elfread.c (elf_symfile_segments): Update.
9312 * remote.c (remote_target::get_offsets): Update.
9313 * solib-target.c (solib_target_relocate_section_addresses):
9314 Update.
9315
62982abd
SM
93162020-05-19 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * symfile.h (struct symfile_segment_data): Initialize fields.
9319 <~symfile_segment_data>: Add.
9320 (symfile_segment_data_up): New.
9321 (struct sym_fns) <sym_segments>: Return a
9322 symfile_segment_data_up.
9323 (default_symfile_segments): Return a symfile_segment_data_up.
9324 (free_symfile_segment_data): Remove.
9325 (get_symfile_segment_data): Return a symfile_segment_data_up.
9326 * symfile.c (default_symfile_segments): Likewise.
9327 (get_symfile_segment_data): Likewise.
9328 (free_symfile_segment_data): Remove.
9329 (symfile_find_segment_sections): Update.
9330 * elfread.c (elf_symfile_segments): Return a
9331 symfile_segment_data_up.
9332 * remote.c (remote_target::get_offsets): Update.
9333 * solib-target.c (solib_target_relocate_section_addresses):
9334 Update.
9335 * symfile-debug.c (debug_sym_segments): Return a
9336 symfile_segment_data_up.
9337
7f204339
RO
93382020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9339
e52a0f1b
RO
9340 PR build/25981
9341 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9342 Hardcode register numbers.
9343
7f204339
RO
9344 PR build/25981
9345 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9346 procfs_find_LDT_entry): Remove.
9347 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9348 procfs_find_LDT_entry): Remove.
9349 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9350 Remove.
9351
7f32a4d5
PA
93522020-05-17 Pedro Alves <palves@redhat.com>
9353 Andrew Burgess <andrew.burgess@embecosm.com>
9354 Keno Fischer <keno@juliacomputing.com>
9355
9356 PR gdb/25741
9357 * breakpoint.c (build_target_condition_list): Update comments.
9358 (build_target_command_list): Update comments and skip matching
9359 locations.
9360 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9361 a separate function. Simplify "set breakpoint auto-hw off"
9362 handling.
9363 (insert_breakpoints): Update comment.
9364 (tracepoint_locations_match): New parameter. For breakpoints,
9365 compare location types too, if the caller wants to.
9366 (handle_automatic_hardware_breakpoints): New functions.
9367 (bp_location_is_less_than): Also sort by location type and
9368 hardware breakpoint length.
9369 (update_global_location_list): Handle "set breakpoint auto-hw on"
9370 here.
9371 (update_breakpoint_locations): Ask breakpoint_locations_match to
9372 ignore location types.
9373
7d93a1e0
SM
93742020-05-16 Simon Marchi <simon.marchi@efficios.com>
9375
9376 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9377 type::name instead.
9378
d0e39ea2
SM
93792020-05-16 Simon Marchi <simon.marchi@efficios.com>
9380
9381 * gdbtypes.h (struct type) <name, set_name>: New methods.
9382 (TYPE_CODE): Use type::name. Change all call sites used to set
9383 the name to use type::set_name instead.
9384
2dab0c7b
TT
93852020-05-16 Tom Tromey <tom@tromey.com>
9386
9387 * top.c (quit_force): Update.
9388 * infrun.c (handle_no_resumed): Update.
9389 * top.h (all_uis): New function.
9390 (ALL_UIS): Remove.
9391
59f7bd8d
SM
93922020-05-16 Simon Marchi <simon.marchi@efficios.com>
9393
9394 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9395
9bf058f0
PA
93962020-05-16 Pedro Alves <palves@redhat.com>
9397
9398 * ia64-linux-nat.c
9399 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9400 Declare method.
9401 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9402
8f86ae1a
SM
94032020-05-15 Simon Marchi <simon.marchi@efficios.com>
9404
9405 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9406 (sparc64_adi_info): Likewise.
9407
d6bc0792
TT
94082020-05-15 Tom Tromey <tom@tromey.com>
9409
9410 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9411 block_objfile.
9412 (lookup_objfile_from_block): Remove.
9413 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9414 (lookup_global_symbol): Use block_objfile.
9415 * symtab.h (lookup_objfile_from_block): Don't declare.
9416 * printcmd.c (clear_dangling_display_expressions): Use
9417 block_objfile.
9418 * parse.c (operator_check_standard): Use block_objfile.
9419
8c14c3a3
TT
94202020-05-15 Tom Tromey <tom@tromey.com>
9421
9422 * language.c (language_alloc_type_symbol): Set
9423 SYMBOL_SECTION.
9424 * symtab.c (initialize_objfile_symbol): Remove.
9425 (allocate_symbol): Remove.
9426 (allocate_template_symbol): Remove.
9427 * dwarf2/read.c (fixup_go_packaging): Use "new".
9428 (new_symbol): Use "new".
9429 (read_variable): Don't call initialize_objfile_symbol. Use
9430 "new".
9431 (read_func_scope): Use "new".
9432 * xcoffread.c (process_xcoff_symbol): Don't call
9433 initialize_objfile_symbol.
9434 (SYMBOL_DUP): Remove.
9435 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9436 "new".
9437 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9438 (allocate_template_symbol): Don't declare.
9439 (struct symbol): Add copy constructor. Change defaults.
9440 * jit.c (finalize_symtab): Use "new".
9441 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9442 Use "new".
9443 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9444 (common_block_end): Use "new".
9445 * mdebugread.c (parse_symbol): Use "new".
9446 (new_symbol): Likewise.
9447
5b4a1a8d
PW
94482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9449
9450 * NEWS: Mention changes to help and apropos.
9451
57b4f16e
PW
94522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9453
9454 * command.h (enum command_class): Improve comments, document
9455 that class_alias is for user-defined aliases, give the class
9456 name for each class, remove unused class_xdb.
9457 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9458 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9459 by a precise class.
9460 * infcmd.c (_initialize_infcmd): Likewise.
9461 * reverse.c (_initialize_reverse): Likewise.
9462 * stack.c (_initialize_stack): Likewise.
9463 * symfile.c (_initialize_symfile): Likewise.
9464 * tracepoint.c (_initialize_tracepoint): Likewise.
9465
7c05caf7
PW
94662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9467
9468 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9469 when their aliased command is traversed.
9470 (help_cmd): Add fput_command_names_styled call to
9471 output command name and aliases when command has an alias.
9472
3b3aaacb
PW
94732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9474
9475 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9476 * cli/cli-decode.c (help_cmd_list): Declare as static,
9477 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9478 a command together with the command.
9479 (fput_command_name_styled, fput_command_names_styled): New functions.
9480 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9481 fput_command_name_styled.
9482 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9483 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9484
7aa1b46f
PW
94852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9486
9487 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9488 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9489 * command.h (cmd_show_list): Likewise.
9490 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9491 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9492
89bcba74
PW
94932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9494
9495 * unittests/command-def-selftests.c (traverse_command_structure):
9496 Verify all commands of a list have the same prefix command and
9497 that only the top cmdlist commands have a null prefix.
9498
3f4d92eb
PW
94992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9500
9501 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9502 as prefix, not one of its aliases.
9503 (set_cmd_prefix): Remove.
9504 (do_add_cmd): Centralize the setting of the prefix of a command, when
9505 command is defined after its full chain of prefix commands.
9506 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9507 (add_setshow_cmd_full): Likewise.
9508 (update_prefix_field_of_prefixed_commands): New function.
9509 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9510 update_prefix_field_of_prefixed_commands.
9511 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9512 addresses of remote_set_cmdlist and remote_show_cmdlist given
9513 as argument, not the address of an argument.
9514 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9515 * gdb/remote.c (_initialize_remote): Likewise.
9516
0605465f
PW
95172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9518
9519 * cli/cli-cmds.c (alias_command): Check for an existing alias
9520 using lookup_cmd_composition, as valid_command_p is too strict
9521 and forbids aliases that are the prefix of an existing alias
9522 or command.
9523 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9524 command is properly recognised as a valid command.
9525
58e6ac70
PW
95262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9527
9528 * unittests/help-doc-selftests.c: Rename to
9529 unittests/command-def-selftests.c
9530 * unittests/command-def-selftests.c (help_doc_tests): Update some
9531 comments.
9532 (command_structure_tests, traverse_command_structure): New namespace
9533 and function.
9534 (command_structure_invariants_tests): New function.
9535 (_initialize_command_def_selftests) Renamed from
9536 _initialize_help_doc_selftests, register command_structure_invariants
9537 selftest.
9538
a7b9ceb8
PW
95392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9540
9541 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9542 an alias of 'show'.
9543
b2188a06
JB
95442020-05-15 Joel Brobecker <brobecker@adacore.com>
9545
9546 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9547 ada_is_fixed_point_type. Update all callers.
9548 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9549 all callers.
9550 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9551 Update all callers.
9552 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9553 print_fixed_point_type. Update all callers.
9554 * ada-valprint.c (ada_value_print_num): Replace call to
9555 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9556
a51951c2
KB
95572020-05-14 Kevin Buettner <kevinb@redhat.com>
9558
9559 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9560 processors.
9561 (cpu_supports_bts): Add CV_AMD case.
9562
29d6859f
LM
95632020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9564 Simon Marchi <simon.marchi@efficios.com>
9565
9566 * infrun.c (stop_all_threads): Collect multiple wait events at
9567 each pass.
9568
78134374
SM
95692020-05-14 Simon Marchi <simon.marchi@efficios.com>
9570
9571 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9572 type::code instead.
9573
67607e24
SM
95742020-05-14 Simon Marchi <simon.marchi@efficios.com>
9575
9576 * gdbtypes.h (struct type) <code, set_code>: New methods.
9577 (TYPE_CODE): Use type::code. Change all call sites used to set
9578 the code to use type::set_code instead.
9579
a05575d3
TBA
95802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9581 Tom de Vries <tdevries@suse.de>
9582 Pedro Alves <palves@redhat.com>
9583
9584 PR threads/25478
9585 * infrun.c (stop_all_threads): Do NOT ignore
9586 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9587 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9588 received.
9589 (handle_no_resumed): Remove code handling a live inferior with no
9590 threads.
9591 * remote.c (has_single_non_exited_thread): New.
9592 (remote_target::update_thread_list): Do not delete a thread if is
9593 the last thread of the process.
9594 * thread.c (thread_select): Call delete_exited_threads instead of
9595 prune_threads.
9596
6ad82919
TBA
95972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9598
9599 * infrun.c (stop_all_threads): Enable/disable thread events of all
9600 targets. Move a debug message denoting the end of the function
9601 into the SCOPED_EXIT block.
9602
d890404b
TBA
96032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9604
9605 * process-stratum-target.h: Include <set>.
9606 (all_non_exited_process_targets, switch_to_target_no_thread): New
9607 function declarations.
9608 * process-stratum-target.c (all_non_exited_process_targets)
9609 (switch_to_target_no_thread): New function implementations.
9610
293b3ebc
TBA
96112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9612
9613 * infrun.c (handle_inferior_event): Extract out a piece of code
9614 into...
9615 (mark_non_executing_threads): ...this new function.
9616
7ca9b62a
TBA
96172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9618
9619 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9620 use.
9621
fc75c28b
TBA
96222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9623
9624 * regcache.c (regcache_read_pc_protected): New function
9625 implementation that returns 0 if the PC cannot read via
9626 'regcache_read_pc'.
9627 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9628 instead of 'regcache_read_pc'.
9629 (keep_going_pass_signal): Ditto.
9630
a89febbd
TT
96312020-05-13 Tom Tromey <tromey@adacore.com>
9632
9633 * ada-lang.c (align_value): Remove.
9634 (ada_template_to_fixed_record_type_1): Use align_up.
9635
f7e23710
TBA
96362020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9637
9638 * async-event.c: Update the copyright year.
9639 * async-event.h: Update the copyright year.
9640
02ff80c2
SM
96412020-05-12 Simon Marchi <simon.marchi@efficios.com>
9642
9643 * objfiles.h (is_addr_in_objfile,
9644 shared_objfile_contains_address_p): Return bool.
9645 * objfile.c (is_addr_in_objfile,
9646 shared_objfile_contains_address_p): Return bool.
9647
4fd6c7e8
TT
96482020-05-11 Tom Tromey <tromey@adacore.com>
9649
9650 * cli/cli-cmds.c (info_command): Restore.
9651 (_initialize_cli_cmds): Use add_prefix_command for "info".
9652 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9653
5eb68a39
TT
96542020-05-11 Tom Tromey <tromey@adacore.com>
9655
9656 * ada-lang.c (ada_value_primitive_field): Now public.
9657 * ada-lang.h (ada_value_primitive_field): Declare.
9658 * ada-valprint.c (print_field_values): Use
9659 ada_value_primitive_field for wrapper fields.
9660
7666722f
TV
96612020-05-11 Tom de Vries <tdevries@suse.de>
9662
9663 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9664 MODULE_DOMAIN.
9665
3ee6bb11
TV
96662020-05-11 Tom de Vries <tdevries@suse.de>
9667
9668 PR symtab/25941
9669 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9670 with length 0, if not gdb-produced.
9671 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9672
43434996
TV
96732020-05-09 Tom de Vries <tdevries@suse.de>
9674
9675 PR gdb/25955
9676 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9677 calculation.
9678
2f78cffc
TT
96792020-05-09 Tom Tromey <tom@tromey.com>
9680
9681 * top.c (server_command): Now bool.
9682 * top.h (server_command): Now bool.
9683
4f7bc5ed
TT
96842020-05-08 Tom Tromey <tromey@adacore.com>
9685
9686 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9687 already being processed.
9688
8be4b118
TT
96892020-05-08 Tom Tromey <tom@tromey.com>
9690
9691 * printcmd.c (struct display) <next>: Remove.
9692 <display>: New constructor.
9693 <exp_string>: Now a std::string.
9694 <enabled_p>: Now a bool.
9695 (display_number): Move definition earlier.
9696 (displays): Rename from display_chain. Now a std::vector.
9697 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9698 (display_command): Update.
9699 (do_one_display, disable_display)
9700 (enable_disable_display_command, do_enable_disable_display):
9701 Update.
9702 (free_display): Remove.
9703 (clear_displays): Rewrite.
9704 (delete_display): Update.
9705 (map_display_numbers): Use function_view. Remove "data"
9706 parameter. Update.
9707 (do_delete_display): Remove.
9708 (undisplay_command): Update.
9709 (do_one_display, do_displays, disable_display)
9710 (info_display_command): Update.
9711 (do_enable_disable_display): Remove.
9712 (enable_disable_display_command)
9713 (clear_dangling_display_expressions): Update.
9714
94c93c35
TT
97152020-05-08 Tom Tromey <tom@tromey.com>
9716
9717 * symtab.c (set_symbol_cache_size)
9718 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9719 (maintenance_print_symbol_cache_statistics): Update.
9720 * symmisc.c (print_symbol_bcache_statistics)
9721 (print_objfile_statistics, maintenance_print_objfiles)
9722 (maintenance_info_symtabs, maintenance_check_symtabs)
9723 (maintenance_expand_symtabs, maintenance_info_line_tables):
9724 Update.
9725 * symfile-debug.c (set_debug_symfile): Update.
9726 * source.c (forget_cached_source_info): Update.
9727 * python/python.c (gdbpy_progspaces): Update.
9728 * psymtab.c (maintenance_info_psymtabs): Update.
9729 * probe.c (parse_probes): Update.
9730 * linespec.c (iterate_over_all_matching_symtabs)
9731 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9732 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9733 * exec.c (exec_target::close): Update.
9734 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9735 * breakpoint.c (print_one_breakpoint_location)
9736 (create_longjmp_master_breakpoint)
9737 (create_std_terminate_master_breakpoint): Update.
9738 * progspace.c (program_spaces): Now a std::vector.
9739 (maybe_new_address_space): Update.
9740 (add_program_space): Remove.
9741 (program_space::program_space): Update.
9742 (remove_program_space): Update.
9743 (number_of_program_spaces): Remove.
9744 (print_program_space, update_address_spaces): Update.
9745 * progspace.h (program_spaces): Change type.
9746 (ALL_PSPACES): Remove.
9747 (number_of_program_spaces): Don't declare.
9748 (struct program_space) <next>: Remove.
9749
a1fd1ac9
TT
97502020-05-08 Tom Tromey <tom@tromey.com>
9751
9752 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9753 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9754 (enable_break): Update.
9755 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9756 (frv_fdpic_find_canonical_descriptor): Update.
9757 (frv_fetch_objfile_link_map): Update.
9758 * progspace.c (program_space::free_all_objfiles): Update.
9759 (program_space::solibs): New method.
9760 * progspace.h (struct program_space) <solibs>: New method.
9761 * solist.h (master_so_list): Don't declare.
9762 (ALL_SO_LIBS): Remove.
9763 * solib.h (so_list_head): Remove.
9764 (update_solib_list): Update comment.
9765 * solib.c (master_so_list): Remove.
9766 (solib_used, update_solib_list, solib_add)
9767 (info_sharedlibrary_command, clear_solib)
9768 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9769
38eae084
TT
97702020-05-08 Tom Tromey <tom@tromey.com>
9771
9772 * extension.c (extension_languages): Now a std::array.
9773 (ALL_EXTENSION_LANGUAGES): Remove.
9774 (get_ext_lang_defn, get_ext_lang_of_file)
9775 (eval_ext_lang_from_control_command): Update.
9776 (finish_ext_lang_initialization)
9777 (auto_load_ext_lang_scripts_for_objfile)
9778 (ext_lang_type_printers::ext_lang_type_printers)
9779 (apply_ext_lang_type_printers)
9780 (ext_lang_type_printers::~ext_lang_type_printers)
9781 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9782 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9783 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9784 (get_matching_xmethod_workers, ext_lang_colorize)
9785 (ext_lang_before_prompt): Update.
9786 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9787
596dc4ad
TT
97882020-05-08 Tom Tromey <tom@tromey.com>
9789
9790 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9791 overload.
9792 <swap_string, m_string>: Remove.
9793 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9794 Update.
9795 * stabsread.c (define_symbol, read_type): Update.
9796 * linespec.c (find_linespec_symbols): Update.
9797 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9798 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9799 * dbxread.c (read_dbx_symtab): Update.
9800 * cp-support.h (cp_canonicalize_string_full)
9801 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9802 Return unique_xmalloc_ptr.
9803 * cp-support.c (inspect_type): Update.
9804 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9805 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9806 Likewise.
9807 * c-typeprint.c (print_name_maybe_canonical): Update.
9808 * break-catch-throw.c (check_status_exception_catchpoint):
9809 Update.
9810
bf4cb9be
TV
98112020-05-08 Tom de Vries <tdevries@suse.de>
9812
9813 * infrun.c (follow_fork): Copy current_line and current_symtab to
9814 child thread.
9815
a1b68f28
SM
98162020-05-07 Simon Marchi <simon.marchi@efficios.com>
9817
9818 * async-event.c (struct async_signal_handler, struct
9819 async_event_handler): Reformat, remove typedef.
9820
98d48915
SM
98212020-05-07 Simon Marchi <simon.marchi@efficios.com>
9822
9823 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9824 access thistype->main_type->dyn_prop_list directly.
9825
7aa91313
SM
98262020-05-07 Simon Marchi <simon.marchi@efficios.com>
9827
9828 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9829 (remove_dyn_prop): Remove. Update all users to use
9830 type::remove_dyn_prop.
9831 * gdbtypes.c (remove_dyn_prop): Rename to...
9832 (type::remove_dyn_prop): ... this.
9833
5c54719c
SM
98342020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9835
9836 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9837 (add_dyn_prop): Remove. Update all users to use
9838 type::add_dyn_prop.
9839 * gdbtypes.c (add_dyn_prop): Rename to...
9840 (type::add_dyn_prop): ... this.
9841
24e99c6c
SM
98422020-05-07 Simon Marchi <simon.marchi@efficios.com>
9843
9844 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9845 (get_dyn_prop): Remove. Update all users to use
9846 type::dyn_prop.
9847 * gdbtypes.c (get_dyn_prop): Rename to...
9848 (type::dyn_prop): ... this.
9849
0d4bf016
SM
98502020-05-06 Simon Marchi <simon.marchi@efficios.com>
9851
9852 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9853
ac4a4f1c
SM
98542020-05-06 Simon Marchi <simon.marchi@efficios.com>
9855
9856 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9857 instruction, skip it if it's there.
9858
a3bbacc1
SM
98592020-05-05 Simon Marchi <simon.marchi@efficios.com>
9860
9861 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9862
c3236f84
SM
98632020-05-04 Simon Marchi <simon.marchi@efficios.com>
9864
9865 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9866 * gdbtypes.c (recursive_dump_type): Remove use of
9867 TYPE_INCOMPLETE.
9868
3b6acaee
TT
98692020-05-03 Tom Tromey <tom@tromey.com>
9870
9871 * breakpoint.c (catch_command, tcatch_command): Remove.
9872 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9873 add_show_prefix_cmd.
9874 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9875 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9876 Remove.
9877 (add_internal_problem_command): Use add_basic_prefix_cmd,
9878 add_show_prefix_cmd.
9879 * mips-tdep.c (set_mipsfpu_command): Remove.
9880 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9881 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9882 (_initialize_index_cache): Use add_basic_prefix_cmd.
9883 * memattr.c (dummy_cmd): Remove.
9884 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9885 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9886 (_initialize_tui_win): Use add_basic_prefix_cmd,
9887 add_show_prefix_cmd.
9888 * cli/cli-logging.c (set_logging_command): Remove.
9889 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9890 add_show_prefix_cmd.
9891 (show_logging_command): Remove.
9892 * target.c (target_command): Remove.
9893 (add_target): Use add_basic_prefix_cmd.
9894
a51119cd
HD
98952020-05-02 Hannes Domani <ssbssa@yahoo.de>
9896
9897 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9898
652fc23a 98992020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9900
652fc23a
PW
9901 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9902 info_command.
9903
117539e6
KR
99042020-04-30 Kamil Rytarowski <n54@gmx.com>
9905
9906 * nbsd-nat.c (nbsd_enable_proc_events)
9907 (nbsd_nat_target::post_startup_inferior): Add.
9908 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9909 (nbsd_nat_target::update_thread_list): Rewrite.
9910 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9911 "PTRACE_LWP_CREATE".
9912 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9913
102e38eb 99142020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9915
102e38eb
PW
9916 * stack.c (_initialize_stack): Remove duplicated creation
9917 of "frame" command and "f" alias.
9918
ee9d1e5f
HD
99192020-04-30 Hannes Domani <ssbssa@yahoo.de>
9920
9921 PR gdb/18706
9922 * gdbtypes.c (check_typedef): Calculate size of array of
9923 stubbed type.
9924
627c7fb8
HD
99252020-04-30 Hannes Domani <ssbssa@yahoo.de>
9926
9927 PR gdb/15559
9928 * i386-tdep.c (i386_push_dummy_call): Call
9929 i386_thiscall_push_dummy_call.
9930 (i386_thiscall_push_dummy_call): New function.
9931 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9932 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9933 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9934
ffc2844e
SM
99352020-04-29 Simon Marchi <simon.marchi@efficios.com>
9936
9937 * gdbarch.sh (do_read): Add shellcheck disable directive for
9938 warning SC2162.
9939
1207375d
SM
99402020-04-29 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9943 "referenced but not assigned" warning.
9944
9fdb2916
SM
99452020-04-29 Simon Marchi <simon.marchi@efficios.com>
9946
9947 * gdbarch.sh: Remove code that sets fallbackdefault.
9948
759cea5e
SM
99492020-04-29 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * gdbarch.sh: Use shell operators && and || instead of
9952 -a and -o.
9953
cb02ab24
SM
99542020-04-29 Simon Marchi <simon.marchi@efficios.com>
9955
9956 * gdbarch.sh: Use $(...) instead of `...`.
9957
a6fc5ffc
SM
99582020-04-29 Simon Marchi <simon.marchi@efficios.com>
9959
9960 * gdbarch.sh: Use double quotes around variables.
9961
8d113d13
SM
99622020-04-29 Simon Marchi <simon.marchi@efficios.com>
9963
9964 * gdbarch.sh: Use %s with printf, instead of variables in the
9965 format string.
9966
ed6acedd
TT
99672020-04-29 Tom Tromey <tromey@adacore.com>
9968
9969 PR ada/25875:
9970 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9971 type fields here.
9972 (read_enumeration_type): Call
9973 update_enumeration_type_from_children later. Update comments.
9974 (process_enumeration_scope): Don't create type fields.
9975
b68b1b58
KR
99762020-04-29 Kamil Rytarowski <n54@gmx.com>
9977
9978 * nbsd-tdep.c: Include "xml-syscall.h".
9979 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9980
f94b2e03
KR
99812020-04-29 Kamil Rytarowski <n54@gmx.com>
9982
9983 * nbsd-nat.c: Include "sys/wait.h".
9984 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9985 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9986 (nbsd_nat_target::remove_exec_catchpoint)
9987 (nbsd_nat_target::set_syscall_catchpoint): Add.
9988 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9989 (nbsd_nat_target::insert_exec_catchpoint)
9990 (nbsd_nat_target::remove_exec_catchpoint)
9991 (nbsd_nat_target::set_syscall_catchpoint): Add.
9992 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9993 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9994 `nbsd_get_syscall_number'.
9995
fc49bc72
TT
99962020-04-29 Tom Tromey <tom@tromey.com>
9997
9998 * stack.c (print_block_frame_labels): Remove.
9999
d642b692
HD
100002020-04-29 Hannes Domani <ssbssa@yahoo.de>
10001
10002 PR gdb/17320
10003 * ada-valprint.c (val_print_packed_array_elements): Move array
10004 end bracket to new line.
10005 (ada_val_print_string): Remove extra spaces before first array
10006 element.
10007 * c-valprint.c (c_value_print_array): Likewise.
10008 * m2-valprint.c (m2_print_array_contents): Likewise.
10009 (m2_value_print_inner): Likewise.
10010 * p-valprint.c (pascal_value_print_inner): Likewise.
10011 * valprint.c (generic_val_print_array): Likewise.
10012 (value_print_array_elements): Move first array element and array
10013 end bracket to new line.
10014
ea90f227
TV
100152020-04-29 Tom de Vries <tdevries@suse.de>
10016
10017 PR symtab/25889
10018 * linespec.c (find_method): Fix ix calculation.
10019
4498ef4f
KR
100202020-04-28 Kamil Rytarowski <n54@gmx.com>
10021
10022 * syscalls/update-netbsd.sh: New file.
10023 * syscalls/netbsd.xml: Regenerate.
10024 * data-directory/Makefile.in: Register `netbsd.xml' in
10025 `SYSCALLS_FILES'.
10026
a55e30b5
SM
100272020-04-28 Simon Marchi <simon.marchi@efficios.com>
10028
10029 * syscalls/update-freebsd.sh: Add double quotes.
10030
2b2fbab8
TT
100312020-04-28 Tom Tromey <tom@tromey.com>
10032
10033 * NEWS: Update.
10034 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10035 (cmdpy_init): Allow class_tui.
10036
a65189c9
TV
100372020-04-28 Mark Williams <mark@myosotissp.com>
10038
10039 PR gdb/24480
10040 * dwarf2read.c: Add missing assingments to list_in_scope when
10041 start_symtab was already called.
10042
1b95cdb7
SM
100432020-04-28 Simon Marchi <simon.marchi@efficios.com>
10044
10045 PR gdb/25881
10046 * dwarf2/read.c (offset_map_type): Use
10047 gdb:hash_enum<sect_offset> as hash function.
10048
15cd93d0
TV
100492020-04-28 Tom de Vries <tdevries@suse.de>
10050
10051 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10052 with DW_AT_signature.
10053
1eb39914
SM
100542020-04-27 Simon Marchi <simon.marchi@efficios.com>
10055
10056 * configure.ac: Remove check for fs_base/gs_base in
10057 user_regs_struct.
10058 * configure: Re-generate.
10059 * config.in: Re-generate.
10060 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10061 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10062 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10063
991a3e2e
LM
100642020-04-27 Luis Machado <luis.machado@linaro.org>
10065
10066 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10067 problematic inline frame unwinding situation.
10068 * frame.c (frame_id_computed_p): New function.
10069 * frame.h (frame_id_computed_p): New prototype.
10070
361ba0e8
TT
100712020-04-26 Tom Tromey <tom@tromey.com>
10072
10073 * command.h (enum command_class) <class_pseudo>: Remove.
10074
bc3609fd
PW
100752020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10076
10077 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10078 and whitespace.
10079
b9771db7
KR
100802020-04-25 Kamil Rytarowski <n54@gmx.com>
10081
ec16513e
SM
10082 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10083 `PT_GET_PROCESS_STATE' block.
b9771db7 10084
7151c1af
TT
100852020-04-24 Tom Tromey <tom@tromey.com>
10086
10087 * symtab.h (symbol_get_demangled_name): Don't declare.
10088 * symtab.c (symbol_get_demangled_name): Remove.
10089 (general_symbol_info::natural_name)
10090 (general_symbol_info::demangled_name): Update.
10091
906bb4c5
TT
100922020-04-24 Tom Tromey <tom@tromey.com>
10093
10094 PR rust/25025:
10095 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10096
bcfe6157
TT
100972020-04-24 Tom Tromey <tom@tromey.com>
10098
10099 PR symtab/12707:
10100 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10101 exists.
10102 (new_symbol): Likewise.
10103 * compile/compile-object-load.c (get_out_value_type): Use
10104 symbol_matches_search_name.
10105
f049a313
TT
101062020-04-24 Tom Tromey <tom@tromey.com>
10107
10108 * dwarf2/read.c (add_partial_symbol): Do not call
10109 compute_and_set_names.
10110
76e288d1
TT
101112020-04-24 Tom Tromey <tom@tromey.com>
10112
10113 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10114 overload.
10115
2467f4f6
TT
101162020-04-24 Tom Tromey <tom@tromey.com>
10117
10118 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10119 (add_psymbol_to_list): New overload. Make old overload call new
10120 one.
10121 * psympriv.h (add_psymbol_to_list): New overload.
10122
e61108c9
TT
101232020-04-24 Tom Tromey <tom@tromey.com>
10124
10125 * dwarf2/read.c (partial_die_info::read) <case
10126 DW_AT_linkage_name>: Use value_as_string.
10127 (dwarf2_string_attr): Use value_as_string.
10128 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10129 method.
10130 * dwarf2/attribute.c (attribute::value_as_string): New method.
10131
8c87a452
TT
101322020-04-24 Tom Tromey <tom@tromey.com>
10133
10134 * symtab.c (general_symbol_info::natural_name)
10135 (general_symbol_info::demangled_name): Check for language_rust.
10136
787de330
TT
101372020-04-24 Tom Tromey <tom@tromey.com>
10138
10139 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10140 (dwarf2_physname): ... from here.
10141 (partial_die_info::read): Add Rust "{" hack.
10142
ff985671
TT
101432020-04-24 Tom Tromey <tom@tromey.com>
10144
10145 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10146 method.
10147 (symbol_set_demangled_name): Don't declare.
10148 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10149 symbol_set_demangled_name.
10150 (general_symbol_info::set_language)
10151 (general_symbol_info::compute_and_set_names): Update.
10152 * minsyms.c (minimal_symbol_reader::install): Update.
10153 * dwarf2/read.c (new_symbol): Update.
10154
1acda803
TT
101552020-04-24 Tom Tromey <tromey@adacore.com>
10156
10157 PR python/23662:
10158 * python/py-type.c (convert_field): Handle
10159 FIELD_LOC_KIND_DWARF_BLOCK.
10160 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10161 (typy_get_dynamic): Nw function.
10162 (type_object_getset): Add "dynamic".
10163 * NEWS: Add entry.
10164
d656f129
TT
101652020-04-24 Tom Tromey <tromey@adacore.com>
10166
10167 * ada-typeprint.c (print_choices, print_variant_part)
10168 (print_record_field_types_dynamic): New functions.
10169 (print_record_field_types): Use print_record_field_types_dynamic.
10170
7d79de9a
TT
101712020-04-24 Tom Tromey <tromey@adacore.com>
10172
10173 * dwarf2/read.c (handle_data_member_location): New overload.
10174 (dwarf2_add_field): Use it.
10175 (decode_locdesc): Add "computed" parameter. Update comment.
10176 * gdbtypes.c (is_dynamic_type_internal): Also look for
10177 FIELD_LOC_KIND_DWARF_BLOCK.
10178 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10179 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10180 virtual base classes.
10181 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10182 FIELD_LOC_KIND_DWARF_BLOCK.
10183
f8e89861
TT
101842020-04-24 Tom Tromey <tromey@adacore.com>
10185
10186 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10187 * gdbtypes.c (is_dynamic_type_internal): Check
10188 TYPE_HAS_DYNAMIC_LENGTH.
10189 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10190 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10191 New macros.
10192 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10193 constant.
10194
9c6a1327
TT
101952020-04-24 Tom Tromey <tromey@adacore.com>
10196
10197 * dwarf2/read.c (struct variant_field): Rewrite.
10198 (struct variant_part_builder): New.
10199 (struct nextfield): Remove "variant" field. Add "offset".
10200 (struct field_info): Add "current_variant_part" and
10201 "variant_parts".
10202 (alloc_discriminant_info): Remove.
10203 (alloc_rust_variant): New function.
10204 (quirk_rust_enum): Update.
10205 (dwarf2_add_field): Set "offset" member. Don't handle
10206 DW_TAG_variant_part.
10207 (offset_map_type): New typedef.
10208 (convert_variant_range, create_one_variant)
10209 (create_one_variant_part, create_variant_parts)
10210 (add_variant_property): New functions.
10211 (dwarf2_attach_fields_to_type): Call add_variant_property.
10212 (read_structure_type): Don't handle DW_TAG_variant_part.
10213 (handle_variant_part, handle_variant): New functions.
10214 (handle_struct_member_die): Use them.
10215 (process_structure_scope): Don't handle variant parts.
10216 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10217 (struct discriminant_info): Remove.
10218 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10219 (struct main_type) <flag_discriminated_union>: Remove.
10220 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10221 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10222 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10223 Update.
10224 * valops.c (value_union_variant): Remove.
10225 * value.h (value_union_variant): Don't declare.
10226
b249d2c2
TT
102272020-04-24 Tom Tromey <tromey@adacore.com>
10228
10229 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10230 (ada_value_primitive_packed_val): Update.
10231 * ada-valprint.c (ada_value_print_1): Update.
10232 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10233 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10234 just an address. Use evaluate_for_locexpr_baton.
10235 (dwarf2_evaluate_property): Update.
10236 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10237 array_view.
10238 * findvar.c (default_read_var_value): Update.
10239 * gdbtypes.c (compute_variant_fields_inner)
10240 (resolve_dynamic_type_internal): Update.
10241 (resolve_dynamic_type): Change type of valaddr parameter.
10242 * gdbtypes.h (resolve_dynamic_type): Update.
10243 * valarith.c (value_subscripted_rvalue): Update.
10244 * value.c (value_from_contents_and_address): Update.
10245
61122aa9
TT
102462020-04-24 Tom Tromey <tromey@adacore.com>
10247
10248 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10249 "push_initial_value" parameter.
10250 (dwarf2_evaluate_property): Likewise.
10251 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10252
ef83a141
TT
102532020-04-24 Tom Tromey <tromey@adacore.com>
10254
10255 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10256 (variant::matches, compute_variant_fields_recurse)
10257 (compute_variant_fields_inner, compute_variant_fields): New
10258 functions.
10259 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10260 Use resolved_type after type is made.
10261 (operator==): Add new cases.
10262 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10263 (struct discriminant_range, struct variant, struct variant_part):
10264 New.
10265 (union dynamic_prop_data) <variant_parts, original_type>: New
10266 members.
10267 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10268 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10269 constants.
10270 * value.c (unpack_bits_as_long): Now public.
10271 * value.h (unpack_bits_as_long): Declare.
10272
675127ec
TT
102732020-04-24 Tom Tromey <tromey@adacore.com>
10274
10275 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10276 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10277
9852ceef
HD
102782020-04-24 Hannes Domani <ssbssa@yahoo.de>
10279
10280 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10281
7632c6ce
KR
102822020-04-24 Kamil Rytarowski <n54@gmx.com>
10283
10284 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10285 (remove_fork_catchpoint, post_startup_inferior)
10286 (post_attach): Move...
10287 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10288 (remove_fork_catchpoint, post_startup_inferior)
10289 (post_attach): ...here.
10290 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10291 (remove_fork_catchpoint, post_startup_inferior)
10292 (post_attach): Move...
10293 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10294 (remove_fork_catchpoint, post_startup_inferior)
10295 (post_attach): ...here.
10296
7be2bb4f
TT
102972020-04-24 Tom Tromey <tromey@adacore.com>
10298
10299 * nat/windows-nat.h (struct windows_thread_info)
10300 <pc_adjusted>: New member.
10301 * windows-nat.c (windows_fetch_one_register): Check
10302 pc_adjusted.
10303 (windows_nat_target::get_windows_debug_event)
10304 (windows_nat_target::wait): Set pc_adjusted.
10305
f80cb3b4
TV
103062020-04-24 Tom de Vries <tdevries@suse.de>
10307
10308 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10309 Run gdb-add-index inside temp dir.
10310
29514b87
TT
103112020-04-23 Tom Tromey <tromey@adacore.com>
10312
10313 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10314 in loop.
10315
5939967b
LM
103162020-04-23 Luis Machado <luis.machado@linaro.org>
10317
10318 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10319 get_frame_register instead of gdbarch_unwind_pc.
10320
70bc38f5
TV
103212020-04-23 Tom de Vries <tdevries@suse.de>
10322
10323 * symtab.c (lookup_global_symbol): Prefer def over decl.
10324
de82891c
TV
103252020-04-23 Tom de Vries <tdevries@suse.de>
10326
10327 PR symtab/25807
10328 * block.c (best_symbol, better_symbol): Promote to external.
10329 * block.h (best_symbol, better_symbol): Declare.
10330 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10331 decl.
10332
ecc6c606
TT
103332020-04-23 Tom Tromey <tromey@adacore.com>
10334
10335 PR ada/25837:
10336 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10337 "const char *", not a "const std::string &".
10338 <name_and_matcher::operator==>: Update.
10339 * unittests/lookup_name_info-selftests.c: Change type of
10340 "result".
10341
740480b8
TT
103422020-04-23 Tom Tromey <tom@tromey.com>
10343
10344 * inferior.h (iterate_over_inferiors): Don't declare.
10345 * inferior.c (iterate_over_inferiors): Remove.
10346 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10347 Remove.
10348 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10349 use iterate_over_inferiors.
10350 (darwin_resume_inferior_it)
10351 (struct resume_inferior_threads_param)
10352 (darwin_resume_inferior_threads_it): Remove.
10353 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10354
ae3ab1f0
TV
103552020-04-23 Tom de Vries <tdevries@suse.de>
10356
10357 * blockframe.c (find_pc_partial_function): Use
10358 find_pc_sect_compunit_symtab rather than
10359 objfile->sf->qf->find_pc_sect_compunit_symtab.
10360
317d2668
TV
103612020-04-22 Tom de Vries <tdevries@suse.de>
10362
10363 PR symtab/25764
10364 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10365 in psymtabs.
10366
eea9e357
TV
103672020-04-22 Tom de Vries <tdevries@suse.de>
10368
10369 PR symtab/25801
10370 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10371 symtabs.
10372
3d5afab3
TV
103732020-04-22 Tom de Vries <tdevries@suse.de>
10374
10375 PR symtab/25700
10376 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10377 CU if already created.
10378
d43b7a2d
TBA
103792020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10380
10381 * infrun.c (displaced_step_fixup): Switch to the event_thread
10382 before calling displaced_step_restore, not after.
10383
d89edf9b
MM
103842020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10385
10386 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10387 its inferior is not recorded by us.
10388 (record_btrace_target_open): Replace call to
10389 all_non_exited_threads () with call to current_inferior
10390 ()->non_exited_threads ().
10391 (record_btrace_target::stop_recording): Likewise.
10392 (record_btrace_target::close): Likewise.
10393 (record_btrace_target::wait): Likewise.
10394 (record_btrace_target::record_stop_replaying): Likewise.
10395
5897fd49
MM
103962020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10397
10398 * btrace.c (btrace_enable): Throw an error on double enables and
10399 when enabling recording fails.
10400 (btrace_disable): Throw an error if the thread is not recorded.
10401
1a476b6d
MM
104022020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10403
10404 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10405 request if we do not have a thread_info.
10406
4778a5f8
TV
104072020-04-21 Tom de Vries <tdevries@suse.de>
10408
10409 PR gdb/25471
10410 * thread.c
10411 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10412 exception in get_frame_id.
10413
0fa7617d
TT
104142020-04-20 Tom Tromey <tromey@adacore.com>
10415
10416 * python/python.c (struct gdbpy_event): Mark move constructor as
10417 noexcept.
10418 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10419 constructor as noexcept.
10420 * completer.h (struct completion_result): Mark move constructor as
10421 noexcept.
10422 * completer.c (completion_result::completion_result): Use
10423 initialization style. Don't call reset_match_list.
10424
ad23bda0
MS
104252020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10426
10427 * MAINTAINERS (Write After Approval): Add myself.
10428
45e1f031
TT
104292020-04-18 Tom Tromey <tom@tromey.com>
10430
10431 * windows-tdep.c (init_w32_command_list)
10432 (w32_prefix_command_valid): Restore.
10433 (_initialize_windows_tdep): Call init_w32_command_list.
10434
08feed99
TT
104352020-04-18 Tom Tromey <tom@tromey.com>
10436
10437 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10438 * value.c (value_fn_field): Update.
10439 * valops.c (find_function_in_inferior)
10440 (value_allocate_space_in_inferior): Update.
10441 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10442 Update.
10443 * tui/tui-source.c (tui_source_window::set_contents): Update.
10444 * symtab.c (lookup_global_or_static_symbol)
10445 (find_function_start_sal_1, skip_prologue_sal)
10446 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10447 * symmisc.c (dump_msymbols, dump_symtab_1)
10448 (maintenance_print_one_line_table): Update.
10449 * symfile.c (init_entry_point_info, section_is_mapped)
10450 (list_overlays_command, simple_read_overlay_table)
10451 (simple_overlay_update_1): Update.
10452 * stap-probe.c (handle_stap_probe): Update.
10453 * stabsread.c (dbx_init_float_type, define_symbol)
10454 (read_one_struct_field, read_enum_type, read_range_type): Update.
10455 * source.c (info_line_command): Update.
10456 * python/python.c (gdbpy_source_objfile_script)
10457 (gdbpy_execute_objfile_script): Update.
10458 * python/py-type.c (save_objfile_types): Update.
10459 * python/py-objfile.c (py_free_objfile): Update.
10460 * python/py-inferior.c (python_new_objfile): Update.
10461 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10462 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10463 (maintenance_check_psymtabs): Update.
10464 * printcmd.c (info_address_command): Update.
10465 * objfiles.h (struct objfile) <arch>: New method, from
10466 get_objfile_arch.
10467 (get_objfile_arch): Don't declare.
10468 * objfiles.c (get_objfile_arch): Remove.
10469 (filter_overlapping_sections): Update.
10470 * minsyms.c (msymbol_is_function): Update.
10471 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10472 (output_nondebug_symbol): Update.
10473 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10474 (mdebug_expand_psymtab): Update.
10475 * machoread.c (macho_add_oso_symfile): Update.
10476 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10477 Update.
10478 * linux-fork.c (checkpoint_command): Update.
10479 * linespec.c (convert_linespec_to_sals): Update.
10480 * jit.c (finalize_symtab): Update.
10481 * infrun.c (insert_exception_resume_from_probe): Update.
10482 * ia64-tdep.c (ia64_find_unwind_table): Update.
10483 * hppa-tdep.c (internalize_unwinds): Update.
10484 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10485 Update.
10486 * gcore.c (call_target_sbrk): Update.
10487 * elfread.c (record_minimal_symbol, elf_symtab_read)
10488 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10489 (elf_gnu_ifunc_resolve_by_got): Update.
10490 * dwarf2/read.c (create_addrmap_from_index)
10491 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10492 (read_debug_names_from_section)
10493 (process_psymtab_comp_unit_reader, add_partial_symbol)
10494 (add_partial_subprogram, process_full_comp_unit)
10495 (read_file_scope, read_func_scope, read_lexical_block_scope)
10496 (read_call_site_scope, dwarf2_ranges_read)
10497 (dwarf2_record_block_ranges, dwarf2_add_field)
10498 (mark_common_block_symbol_computed, read_tag_pointer_type)
10499 (read_tag_string_type, dwarf2_init_float_type)
10500 (dwarf2_init_complex_target_type, read_base_type)
10501 (partial_die_info::read, partial_die_info::read)
10502 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10503 (dwarf2_fetch_die_loc_sect_off): Update.
10504 * dwarf2/loc.c (dwarf2_find_location_expression)
10505 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10506 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10507 (dwarf2_loc_desc_get_symbol_read_needs)
10508 (locexpr_describe_location_piece, locexpr_describe_location_1)
10509 (loclist_describe_location): Update.
10510 * dwarf2/index-write.c (write_debug_names): Update.
10511 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10512 * dtrace-probe.c (dtrace_process_dof): Update.
10513 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10514 (process_one_symbol): Update.
10515 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10516 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10517 (coff_read_enum_type): Update.
10518 * cli/cli-cmds.c (edit_command, list_command): Update.
10519 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10520 * breakpoint.c (create_overlay_event_breakpoint)
10521 (create_longjmp_master_breakpoint)
10522 (create_std_terminate_master_breakpoint)
10523 (create_exception_master_breakpoint, get_sal_arch): Update.
10524 * block.c (block_gdbarch): Update.
10525 * annotate.c (annotate_source_line): Update.
10526
0743fc83
TT
105272020-04-17 Tom Tromey <tromey@adacore.com>
10528
10529 * auto-load.c (show_auto_load_cmd): Remove.
10530 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10531 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10532 (maintenance_print_arc_command): Remove.
10533 * tui/tui-win.c (tui_command): Remove.
10534 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10535 * tui/tui-layout.c (tui_layout_command): Remove.
10536 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10537 * python/python.c (user_set_python, user_show_python): Remove.
10538 (_initialize_python): Use add_basic_prefix_cmd,
10539 add_show_prefix_cmd.
10540 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10541 (install_gdb_commands): Use add_basic_prefix_cmd,
10542 add_show_prefix_cmd.
10543 (info_guile_command): Remove.
10544 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10545 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10546 add_show_prefix_cmd.
10547 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10548 Remove do_set and do_show parameters.
10549 * cli/cli-style.c (set_style, show_style): Remove.
10550 (_initialize_cli_style): Use add_basic_prefix_cmd,
10551 add_show_prefix_cmd.
10552 (cli_style_option::add_setshow_commands): Remove do_set and
10553 do_show parameters.
10554 (cli_style_option::add_setshow_commands): Use
10555 add_basic_prefix_cmd, add_show_prefix_cmd.
10556 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10557 (set_style_name): Remove.
10558 * cli/cli-dump.c (dump_command, append_command): Remove.
10559 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10560 (tekhex_dump_command, binary_dump_command)
10561 (binary_append_command): Remove.
10562 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10563 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10564 (init_w32_command_list): Remove; move into ...
10565 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10566 * valprint.c (set_print, show_print, set_print_raw)
10567 (show_print_raw): Remove.
10568 (_initialize_valprint): Use add_basic_prefix_cmd,
10569 add_show_prefix_cmd.
10570 * typeprint.c (set_print_type, show_print_type): Remove.
10571 (_initialize_typeprint): Use add_basic_prefix_cmd,
10572 add_show_prefix_cmd.
10573 * record.c (set_record_command, show_record_command): Remove.
10574 (_initialize_record): Use add_basic_prefix_cmd,
10575 add_show_prefix_cmd.
10576 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10577 add_show_prefix_cmd.
10578 (info_command, show_command, set_debug, show_debug): Remove.
10579 * top.h (set_history, show_history): Don't declare.
10580 * top.c (set_history, show_history): Remove.
10581 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10582 (unset_tdesc_cmd): Remove.
10583 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10584 add_show_prefix_cmd.
10585 * symtab.c (info_module_command): Remove.
10586 (_initialize_symtab): Use add_basic_prefix_cmd.
10587 * symfile.c (overlay_command): Remove.
10588 (_initialize_symfile): Use add_basic_prefix_cmd.
10589 * sparc64-tdep.c (info_adi_command): Remove.
10590 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10591 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10592 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10593 add_show_prefix_cmd.
10594 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10595 (_initialize_serial): Use add_basic_prefix_cmd,
10596 add_show_prefix_cmd.
10597 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10598 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10599 add_show_prefix_cmd.
10600 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10601 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10602 add_show_prefix_cmd.
10603 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10604 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10605 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10606 add_show_prefix_cmd.
10607 * remote.c (remote_command, set_remote_cmd): Remove.
10608 (_initialize_remote): Use add_basic_prefix_cmd.
10609 * record-full.c (set_record_full_command)
10610 (show_record_full_command): Remove.
10611 (_initialize_record_full): Use add_basic_prefix_cmd,
10612 add_show_prefix_cmd.
10613 * record-btrace.c (cmd_set_record_btrace)
10614 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10615 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10616 (cmd_show_record_btrace_pt): Remove.
10617 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10618 add_show_prefix_cmd.
10619 * ravenscar-thread.c (set_ravenscar_command)
10620 (show_ravenscar_command): Remove.
10621 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10622 add_show_prefix_cmd.
10623 * mips-tdep.c (show_mips_command, set_mips_command)
10624 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10625 add_show_prefix_cmd.
10626 * maint.c (maintenance_command, maintenance_info_command)
10627 (maintenance_check_command, maintenance_print_command)
10628 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10629 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10630 add_show_prefix_cmd.
10631 (show_per_command_cmd): Remove.
10632 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10633 Remove.
10634 (maintenance_show_test_settings_cmd): Remove.
10635 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10636 add_show_prefix_cmd.
10637 * maint-test-options.c (maintenance_test_options_command):
10638 Remove.
10639 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10640 * macrocmd.c (macro_command): Remove
10641 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10642 * language.c (set_check, show_check): Remove.
10643 (_initialize_language): Use add_basic_prefix_cmd,
10644 add_show_prefix_cmd.
10645 * infcmd.c (unset_command): Remove.
10646 (_initialize_infcmd): Use add_basic_prefix_cmd.
10647 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10648 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10649 add_show_prefix_cmd.
10650 * go32-nat.c (go32_info_dos_command): Remove.
10651 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10652 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10653 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10654 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10655 (_initialize_frame): Use add_basic_prefix_cmd,
10656 add_show_prefix_cmd.
10657 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10658 (_initialize_dcache): Use add_basic_prefix_cmd,
10659 add_show_prefix_cmd.
10660 * cp-support.c (maint_cplus_command): Remove.
10661 (_initialize_cp_support): Use add_basic_prefix_cmd.
10662 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10663 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10664 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10665 add_basic_prefix_cmd, add_show_prefix_cmd.
10666 * breakpoint.c (save_command): Remove.
10667 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10668 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10669 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10670 add_show_prefix_cmd.
10671 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10672 (set_ada_command, show_ada_command): Remove.
10673 (_initialize_ada_language): Use add_basic_prefix_cmd,
10674 add_show_prefix_cmd.
10675 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10676
3557f442
KR
106772020-04-16 Kamil Rytarowski <n54@gmx.com>
10678
10679 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10680 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10681
16197208
SM
106822020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10683
10684 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10685 warning messages.
10686
00ac85d3
SM
106872020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10688
10689 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10690 import table is not at beginning of .idata section.
10691
381ce63f
PA
106922020-04-16 Pedro Alves <palves@redhat.com>
10693
10694 * inferior.c (delete_inferior): Use delete operator directly
10695 instead of delete_program_space.
10696 * progspace.c (add_program_space): New, factored out from
10697 program_space::program_space.
10698 (remove_program_space): New, factored out from
10699 delete_program_space.
10700 (program_space::program_space): Remove intro comment. Rewrite.
10701 (program_space::~program_space): Remove intro comment. Call
10702 remove_program_space.
10703 (delete_program_space): Delete.
10704 * progspace.h (program_space::program_space): Make explicit. Move
10705 intro comment here, adjusted.
10706 (program_space::~program_space): Move intro comment here,
10707 adjusted.
10708 (delete_program_space): Remove.
10709
a010605f
TT
107102020-04-16 Tom Tromey <tromey@adacore.com>
10711
10712 * windows-nat.c (windows_nat::handle_access_violation): New
10713 function.
10714 * nat/windows-nat.h (handle_access_violation): Declare.
10715 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10716 windows-nat.c. Call handle_access_violation.
10717
efba5c23
TV
107182020-04-16 Tom de Vries <tdevries@suse.de>
10719
10720 PR symtab/25791
10721 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10722 CUs without psymtab.
10723
97ed802d
KB
107242020-04-16 Kevin Buettner <kevinb@redhat.com>
10725
10726 * python/python.c (do_start_initialization): Don't call
10727 PyEval_InitThreads for Python 3.9 and beyond.
10728
c7d64809
KR
107292020-04-15 Kamil Rytarowski <n54@gmx.com>
10730
10731 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10732 thread functions.
10733 (obsd_nat_target::wait): Likewise.
10734
ce127a96
TT
107352020-04-15 Tom Tromey <tromey@adacore.com>
10736
10737 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10738 (DEBUG_EXCEPT): Use debug_printf.
10739
99f1bc6a
AB
107402020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10741
10742 * completer.c (class completion_tracker::completion_hash_entry)
10743 <hash_name>: New member function.
10744 (completion_tracker::discard_completions): New callback to hash a
10745 completion_hash_entry, pass this to htab_create_alloc.
10746
a0e9b532
JT
107472016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10748
10749 * windows-nat.c (windows_make_so): Warn rather than stopping with
10750 an error if realpath() fails.
10751
06ca5dd4
KR
107522020-04-14 Kamil Rytarowski <n54@gmx.com>
10753
10754 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10755 (nbsd_nat_target::info_proc): Add do_status.
10756
194d088f
TV
107572020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10758 Tom de Vries <tdevries@suse.de>
10759
10760 PR symtab/25718
10761 * psympriv.h (struct partial_symtab::read_symtab)
10762 (struct partial_symtab::expand_psymtab)
10763 (struct partial_symtab::read_dependencies): Update comments.
10764 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10765 read_symtab for includer.
10766 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10767 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10768 (struct dwarf2_include_psymtab::m_readin): Remove.
10769 (struct dwarf2_include_psymtab::includer): New member function.
10770 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10771
c1a66c06
TV
107722020-04-14 Tom de Vries <tdevries@suse.de>
10773
10774 PR symtab/25720
10775 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10776 with NULL symbol_matcher and lookup_name.
10777 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10778 and lookup_name.
10779 * dwarf2/read.c (dw2_expand_symtabs_matching)
10780 (dw2_debug_names_expand_symtabs_matching): Same.
10781 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10782 Make lookup_name a pointer. Update comment.
10783 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10784 lookup_name being a pointer.
10785 * symfile.c (expand_symtabs_matching): Same.
10786 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10787 * linespec.c (iterate_over_all_matching_symtabs): Same.
10788
400b5eca
TT
107892020-04-13 Tom Tromey <tom@tromey.com>
10790
10791 * run-on-main-thread.c: Update include.
10792 * unittests/main-thread-selftests.c: Update include.
10793 * tui/tui-win.c: Update include.
10794 * tui/tui-io.c: Update include.
10795 * tui/tui-interp.c: Update include.
10796 * tui/tui-hooks.c: Update include.
10797 * top.h: Update include.
10798 * top.c: Update include.
10799 * ser-base.c: Update include.
10800 * remote.c: Update include.
10801 * remote-notif.c: Update include.
10802 * remote-fileio.c: Update include.
10803 * record-full.c: Update include.
10804 * record-btrace.c: Update include.
10805 * python/python.c: Update include.
10806 * posix-hdep.c: Update include.
10807 * mingw-hdep.c: Update include.
10808 * mi/mi-main.c: Update include.
10809 * mi/mi-interp.c: Update include.
10810 * main.c: Update include.
10811 * linux-nat.c: Update include.
10812 * interps.c: Update include.
10813 * infrun.c: Update include.
10814 * inf-loop.c: Update include.
10815 * event-top.c: Update include.
10816 * event-loop.c: Move to ../gdbsupport/.
10817 * event-loop.h: Move to ../gdbsupport/.
10818 * async-event.h: Update include.
10819 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10820
93b54c8e
TT
108212020-04-13 Tom Tromey <tom@tromey.com>
10822
10823 * tui/tui-win.c: Include async-event.h.
10824 * remote.c: Include async-event.h.
10825 * remote-notif.c: Include async-event.h.
10826 * record-full.c: Include async-event.h.
10827 * record-btrace.c: Include async-event.h.
10828 * infrun.c: Include async-event.h.
10829 * event-top.c: Include async-event.h.
10830 * event-loop.h: Move some declarations to async-event.h.
10831 * event-loop.c: Don't include ser-event.h or top.h. Move some
10832 code to async-event.c.
10833 * async-event.h: New file.
10834 * async-event.c: New file.
10835 * Makefile.in (COMMON_SFILES): Add async-event.c.
10836 (HFILES_NO_SRCDIR): Add async-event.h.
10837
c1cd3163
TT
108382020-04-13 Tom Tromey <tom@tromey.com>
10839
10840 * utils.c (flush_streams): New function.
10841 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10842
29f2bf4f
TT
108432020-04-13 Tom Tromey <tom@tromey.com>
10844
10845 * event-loop.c (handle_file_event): Use warning, not
10846 printf_unfiltered.
10847
98029d02
TT
108482020-04-13 Tom Tromey <tom@tromey.com>
10849
10850 * event-loop.c: Include <chrono>.
10851
06cc9596
TT
108522020-04-13 Tom Tromey <tom@tromey.com>
10853
10854 * gdb_select.h: Move to ../gdbsupport/.
10855 * event-loop.c: Update include path.
10856 * top.c: Update include path.
10857 * ser-base.c: Update include path.
10858 * ui-file.c: Update include path.
10859 * ser-tcp.c: Update include path.
10860 * guile/scm-ports.c: Update include path.
10861 * posix-hdep.c: Update include path.
10862 * ser-unix.c: Update include path.
10863 * gdb_usleep.c: Update include path.
10864 * mingw-hdep.c: Update include path.
10865 * inflow.c: Update include path.
10866 * infrun.c: Update include path.
10867 * event-top.c: Update include path.
10868
8ae8e197
TT
108692020-04-13 Tom Tromey <tom@tromey.com>
10870
10871 * configure: Rebuild.
10872 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10873
58cf28e8
TT
108742020-04-13 Tom Tromey <tom@tromey.com>
10875
10876 * event-loop.h (start_event_loop): Don't declare.
10877 * event-loop.c (start_event_loop): Move...
10878 * main.c (start_event_loop): ...here. Now static.
10879
b7f999ae
SDJ
108802020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10881
10882 * MAINTAINERS: Update my email address.
10883
1085dfd4
KR
108842020-04-12 Kamil Rytarowski <n54@gmx.com>
10885
10886 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10887 IP_ALL.
10888
49d1d1f5
KR
108892020-04-12 Kamil Rytarowski <n54@gmx.com>
10890
10891 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10892 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10893
b4848d2a
KR
108942020-04-12 Kamil Rytarowski <n54@gmx.com>
10895
10896 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10897 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10898
51c133d5
KR
108992020-04-12 Kamil Rytarowski <n54@gmx.com>
10900
10901 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10902
54b8cbd0
KR
109032020-04-11 Kamil Rytarowski <n54@gmx.com>
10904
10905 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10906 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10907 (nbsd_nat_target::info_proc): New functions.
10908 * nbsd-nat.c (kinfo_get_vmmap): New function.
10909 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10910 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10911 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10912 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10913 functions.
10914 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10915 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10916 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10917 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10918 (KINFO_VME_FLAG_GROWS_DOWN): New.
10919
cf83625d
AS
109202020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10921
10922 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10923 bit shift.
10924
0c4311ab
TT
109252020-04-10 Tom Tromey <tromey@adacore.com>
10926
10927 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10928
3e65b3e9
TT
109292020-04-10 Tom Tromey <tromey@adacore.com>
10930
10931 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10932 separate debug files.
10933
13302e95
HD
109342020-04-10 Hannes Domani <ssbssa@yahoo.de>
10935
10936 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10937 Move to...
10938 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10939 ... here.
10940 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10941 Check for STATUS_WX86_BREAKPOINT.
10942 (windows_nat_target::wait): Same.
10943
bdfc1e8a
TV
109442020-04-10 Tom de Vries <tdevries@suse.de>
10945
10946 PR cli/25808
10947 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10948
f4460aec
SM
109492020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10950
10951 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10952 (Write After Approval): Remove Tom de Vries.
10953
a25198bb
BE
109542020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10955
10956 revert partially:
10957 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10958
aac66a4c
SM
10959 * buildsym.c (record_line): Fix undefined behavior and preserve
10960 lines at eof.
a25198bb 10961
206c98a6
KR
109622020-04-09 Kamil Rytarowski <n54@gmx.com>
10963
10964 * auxv.h (svr4_auxv_parse): New.
10965 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10966 and generic_auxv_parse.
10967 (svr4_auxv_parse): Add.
10968 * obsd-tdep.c: Include "auxv.h".
10969 (obsd_auxv_parse): Remove.
10970 (obsd_init_abi): Remove comment.
10971 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10972 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10973 * nbsd-tdep.c: Include "auxv.h".
10974 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10975
71fbdbaf
TT
109762020-04-08 Tom Tromey <tromey@adacore.com>
10977
10978 * nat/windows-nat.h (last_wait_event): Don't declare.
10979 (wait_for_debug_event): Update comment.
10980 * nat/windows-nat.c (last_wait_event): Now static.
10981
2c1d95e8
TT
109822020-04-08 Tom Tromey <tromey@adacore.com>
10983
10984 * windows-nat.c (wait_for_debug_event): Move to
10985 nat/windows-nat.c.
10986 * nat/windows-nat.h (wait_for_debug_event): Declare.
10987 * nat/windows-nat.c (wait_for_debug_event): Move from
10988 windows-nat.c. No longer static.
10989
d2977bc4
TT
109902020-04-08 Tom Tromey <tromey@adacore.com>
10991
10992 * windows-nat.c (get_windows_debug_event): Use
10993 fetch_pending_stop.
10994 * nat/windows-nat.h (fetch_pending_stop): Declare.
10995 * nat/windows-nat.c (fetch_pending_stop): New function.
10996
e758e19c
TT
109972020-04-08 Tom Tromey <tromey@adacore.com>
10998
10999 * windows-nat.c (windows_continue): Use matching_pending_stop and
11000 continue_last_debug_event.
11001 * nat/windows-nat.h (matching_pending_stop)
11002 (continue_last_debug_event): Declare.
11003 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11004 (matching_pending_stop, continue_last_debug_event): New
11005 functions.
11006
8d30e395
TT
110072020-04-08 Tom Tromey <tromey@adacore.com>
11008
11009 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11010 (handle_exception_result): Move to nat/windows-nat.h.
11011 (DEBUG_EXCEPTION_SIMPLE): Remove.
11012 (windows_nat::handle_ms_vc_exception): New function.
11013 (handle_exception): Move to nat/windows-nat.c.
11014 (get_windows_debug_event): Update.
11015 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11016 nat/windows-nat.c.
11017 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11018 (handle_exception_result): Move from windows-nat.c.
11019 (handle_exception): Declare.
11020 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11021 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11022 windows-nat.c.
11023
29de418d
TT
110242020-04-08 Tom Tromey <tromey@adacore.com>
11025
11026 * windows-nat.c (exception_count, event_count): Remove.
11027 (handle_exception, get_windows_debug_event)
11028 (do_initial_windows_stuff): Update.
11029
a816ba18
TT
110302020-04-08 Tom Tromey <tromey@adacore.com>
11031
11032 * windows-nat.c (windows_nat::handle_load_dll)
11033 (windows_nat::handle_unload_dll): Rename. No longer static.
11034 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11035 Declare.
11036
a00caa12
TT
110372020-04-08 Tom Tromey <tromey@adacore.com>
11038
11039 * complaints.h (stop_whining): Declare at top-level.
11040 (complaint): Don't declare stop_whining.
11041
d41b524f
TT
110422020-04-08 Tom Tromey <tromey@adacore.com>
11043
11044 * windows-nat.c (windows_nat::handle_output_debug_string):
11045 Rename. No longer static.
11046 * nat/windows-nat.h (handle_output_debug_string): Declare.
11047
3c76026d
TT
110482020-04-08 Tom Tromey <tromey@adacore.com>
11049
11050 * windows-nat.c (current_process_handle, current_process_id)
11051 (main_thread_id, last_sig, current_event, last_wait_event)
11052 (current_windows_thread, desired_stop_thread_id, pending_stops)
11053 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11054 (display_selectors, fake_create_process)
11055 (get_windows_debug_event): Update.
11056 * nat/windows-nat.h (current_process_handle, current_process_id)
11057 (main_thread_id, last_sig, current_event, last_wait_event)
11058 (current_windows_thread, desired_stop_thread_id, pending_stops)
11059 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11060 * nat/windows-nat.c (current_process_handle, current_process_id)
11061 (main_thread_id, last_sig, current_event, last_wait_event)
11062 (current_windows_thread, desired_stop_thread_id, pending_stops)
11063 (siginfo_er): New globals. Move from windows-nat.c.
11064
9d8679cc
TT
110652020-04-08 Tom Tromey <tromey@adacore.com>
11066
11067 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11068 (handle_load_dll): Update.
11069 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11070
28688adf
TT
110712020-04-08 Tom Tromey <tromey@adacore.com>
11072
11073 * windows-nat.c (enum thread_disposition_type): Move to
11074 nat/windows-nat.h.
11075 (windows_nat::thread_rec): Rename from thread_rec. No longer
11076 static.
11077 (windows_add_thread, windows_nat_target::fetch_registers)
11078 (windows_nat_target::store_registers, handle_exception)
11079 (windows_nat_target::resume, get_windows_debug_event)
11080 (windows_nat_target::get_tib_address)
11081 (windows_nat_target::thread_name)
11082 (windows_nat_target::thread_alive): Update.
11083 * nat/windows-nat.h (enum thread_disposition_type): Move from
11084 windows-nat.c.
11085 (thread_rec): Declare.
11086
4834dad0
TT
110872020-04-08 Tom Tromey <tromey@adacore.com>
11088
11089 * windows-nat.c: Add "using namespace".
11090 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11091 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11092
65bafd5b
TT
110932020-04-08 Tom Tromey <tromey@adacore.com>
11094
11095 * nat/windows-nat.h (struct windows_thread_info): Declare
11096 destructor.
11097 * nat/windows-nat.c (~windows_thread_info): New.
11098
0a4afda3
TT
110992020-04-08 Tom Tromey <tromey@adacore.com>
11100
11101 PR gdb/22992
11102 * windows-nat.c (current_event): Update comment.
11103 (last_wait_event, desired_stop_thread_id): New globals.
11104 (struct pending_stop): New.
11105 (pending_stops): New global.
11106 (windows_nat_target) <stopped_by_sw_breakpoint>
11107 <supports_stopped_by_sw_breakpoint>: New methods.
11108 (windows_fetch_one_register): Add assertions. Adjust PC.
11109 (windows_continue): Handle pending stops. Suspend other threads
11110 when stepping. Use last_wait_event
11111 (wait_for_debug_event): New function.
11112 (get_windows_debug_event): Use wait_for_debug_event. Handle
11113 pending stops. Queue spurious stops.
11114 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11115 (windows_nat_target::kill): Use wait_for_debug_event.
11116 * nat/windows-nat.h (struct windows_thread_info)
11117 <stopped_at_software_breakpoint>: New field.
11118 * nat/windows-nat.c (windows_thread_info::resume): Clear
11119 stopped_at_software_breakpoint.
11120
8e61ebec
TT
111212020-04-08 Tom Tromey <tromey@adacore.com>
11122
11123 * windows-nat.c (enum thread_disposition_type): New.
11124 (thread_rec): Replace "get_context" parameter with "disposition";
11125 change type.
11126 (windows_add_thread, windows_nat_target::fetch_registers)
11127 (windows_nat_target::store_registers, handle_exception)
11128 (windows_nat_target::resume, get_windows_debug_event)
11129 (windows_nat_target::get_tib_address)
11130 (windows_nat_target::thread_name)
11131 (windows_nat_target::thread_alive): Update.
11132
98a03287
TT
111332020-04-08 Tom Tromey <tromey@adacore.com>
11134
11135 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11136 (windows_continue): Use windows_continue::resume.
11137 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11138 resume>: Declare new methods.
11139 * nat/windows-nat.c: New file.
11140 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11141
7c7411bc
TT
111422020-04-08 Tom Tromey <tromey@adacore.com>
11143
11144 * windows-nat.c (windows_add_thread, windows_delete_thread)
11145 (windows_nat_target::fetch_registers)
11146 (windows_nat_target::store_registers, fake_create_process)
11147 (windows_nat_target::resume, windows_nat_target::resume)
11148 (get_windows_debug_event, windows_nat_target::wait)
11149 (windows_nat_target::pid_to_str)
11150 (windows_nat_target::get_tib_address)
11151 (windows_nat_target::get_ada_task_ptid)
11152 (windows_nat_target::thread_name)
11153 (windows_nat_target::thread_alive): Use lwp, not tid.
11154
2950fdf7
TT
111552020-04-08 Tom Tromey <tromey@adacore.com>
11156
11157 * windows-nat.c (handle_exception)
11158 (windows_nat_target::thread_name): Update.
11159 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11160 <name>: Now unique_xmalloc_ptr.
11161
62fe396b
TT
111622020-04-08 Tom Tromey <tromey@adacore.com>
11163
11164 * windows-nat.c (thread_rec)
11165 (windows_nat_target::fetch_registers): Update.
11166 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11167 Update comment.
11168 <debug_registers_changed, reload_context>: Now bool.
11169
e9534bd2
TT
111702020-04-08 Tom Tromey <tromey@adacore.com>
11171
11172 * windows-nat.c (windows_add_thread): Use new.
11173 (windows_init_thread_list, windows_delete_thread): Use delete.
11174 (get_windows_debug_event): Update.
11175 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11176 destructor, and initializers.
11177
ae1f8880
TT
111782020-04-08 Tom Tromey <tromey@adacore.com>
11179
11180 * windows-nat.c (struct windows_thread_info): Remove.
11181 * nat/windows-nat.h: New file.
11182
55a1e039
TT
111832020-04-08 Tom Tromey <tromey@adacore.com>
11184
11185 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11186 (thread_rec, windows_add_thread, windows_delete_thread)
11187 (windows_continue): Update.
11188
93366324
TT
111892020-04-08 Tom Tromey <tromey@adacore.com>
11190
11191 * windows-nat.c (struct windows_thread_info): Remove typedef.
11192 (thread_head): Remove.
11193 (thread_list): New global.
11194 (thread_rec, windows_add_thread, windows_init_thread_list)
11195 (windows_delete_thread, windows_continue): Update.
11196
0f2265e2
SM
111972020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11198
11199 * windows-tdep.h (windows_init_abi): Add comment.
11200 (cygwin_init_abi): New declaration.
11201 * windows-tdep.c: Split signal enumeration in two, one for
11202 Windows and one for Cygwin.
11203 (windows_gdb_signal_to_target): Only deal with signal of the
11204 Windows OS ABI.
11205 (cygwin_gdb_signal_to_target): New function.
11206 (windows_init_abi): Rename to windows_init_abi_common, don't set
11207 gdb_signal_to_target gdbarch method. Add new new function with
11208 this name.
11209 (cygwin_init_abi): New function.
11210 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11211 comment. Don't call windows_init_abi.
11212 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11213 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11214 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11215 i386_windows_init_abi_common, don't call windows_init_abi. Add
11216 a new function of this name.
11217 (i386_cygwin_init_abi): New function.
11218 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11219 OS ABI Cygwin.
11220
3810f182
SM
112212020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11222
11223 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11224 parameter.c.
11225 (dwarf2_read_gdb_index): Update.
11226
063f8e80
KR
112272020-04-07 Kamil Rytarowski <n54@gmx.com>
11228
11229 * nbsd-tdep.c: Include "objfiles.h".
11230 (nbsd_skip_solib_resolver): New.
11231 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11232
85a9510c 112332020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11234
11235 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11236 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11237 with DW_LLE_base_addressx are being emitted in DWARFv5.
11238 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11239 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11240 unsigned integer.
11241
9fc3eaae 112422020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11243
11244 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11245 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11246 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11247 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11248 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11249 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11250 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11251
11252
41144253 112532020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11254
11255 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11256 (read_loclist_index): New function definition.
11257 (lookup_loclist_base): New function definition.
11258 (read_loclist_header): New function definition.
11259 (dwarf2_cu): Add loclist_base and loclist_header field.
11260 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11261 (read_full_die_1): Read the value of DW_AT_loclists_base.
11262 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11263 (read_attribute_value): Handle DW_FORM_loclistx.
11264 (skip_one_die): Handle DW_FORM_loclistx.
11265 (loclist_header): New structure declaration.
11266 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11267
9f4e76a4
SM
112682020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11269
11270 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11271 constructor. Remove `addr` parameter from other constructor and
11272 add `per_cu` parameter.
11273 * dwarf2/read.c (create_partial_symtab): Update.
11274
25c11aca
TV
112752020-04-07 Tom de Vries <tdevries@suse.de>
11276
11277 PR symtab/25796
11278 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11279 (partial_die_info::fixup): Inherit has_const_value.
11280
5707e24b
TV
112812020-04-07 Tom de Vries <tdevries@suse.de>
11282
11283 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11284 symbols without address.
11285
05f00e22
KR
112862020-04-06 Kamil Rytarowski <n54@gmx.com>
11287
11288 * nbsd-nat.h (struct thread_info): Add forward declaration.
11289 (nbsd_nat_target::thread_alive): Add.
11290 (nbsd_nat_target::thread_name): Likewise.
11291 (nbsd_nat_target::update_thread_list): Likewise.
11292 (update_thread_list::post_attach): Likewise.
11293 (post_attach::pid_to_str): Likewise.
11294 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11295 (nbsd_thread_lister): Add.
11296 (nbsd_nat_target::thread_alive): Likewise.
11297 (nbsd_nat_target::thread_name): Likewise.
11298 (nbsd_add_threads): Likewise.
11299 (update_thread_list::post_attach): Likewise.
11300 (nbsd_nat_target::update_thread_list): Likewise.
11301 (post_attach::pid_to_str): Likewise.
11302
6ee448cc
TT
113032020-04-06 Tom Tromey <tromey@adacore.com>
11304
11305 * ada-valprint.c (print_variant_part): Extract the variant field.
11306 (print_field_values): Use the field as the outer value when
11307 recursing.
11308
dea34e8c
TT
113092020-04-06 Tom Tromey <tromey@adacore.com>
11310
11311 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11312 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11313 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11314 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11315 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11316
93689ce9
TT
113172020-04-06 Tom Tromey <tromey@adacore.com>
11318
11319 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11320 TYPE_CODE_ERROR.
11321
79743962
KR
113222020-04-06 Kamil Rytarowski <n54@gmx.com>
11323
11324 * nbsd-tdep.c: Include "gdbarch.h".
11325 Define enum with NetBSD signal numbers.
11326 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11327 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11328 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11329 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11330 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11331 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11332 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11333 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11334 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11335 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11336 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11337 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11338
9e7c9a03
HD
113392020-04-03 Hannes Domani <ssbssa@yahoo.de>
11340
11341 PR gdb/25325
11342 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11343
d9e49b61
TT
113442020-04-03 Tom Tromey <tromey@adacore.com>
11345
11346 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11347 Read constant block.
11348
e0fc5c3f
SM
113492020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11350
11351 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11352 (gdb_bfd_get_full_section_contents): New declaration.
11353 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11354 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11355 gdb_bfd_get_full_section_contents.
11356
e2ff18a0
SM
113572020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11358
11359 * exec.c (build_section_table): Replace internal_error with
11360 gdb_assert.
11361 (section_table_xfer_memory_partial): Likewise.
11362 * mdebugread.c (parse_partial_symbols): Likewise.
11363 * psymtab.c (lookup_partial_symbol): Likewise.
11364 * utils.c (wrap_here): Likewise.
11365
0830d301
TT
113662020-04-02 Tom Tromey <tromey@adacore.com>
11367
11368 * f-lang.c (build_fortran_types): Use arch_type to initialize
11369 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11370
e7da7f8f
TT
113712020-04-02 Tom Tromey <tromey@adacore.com>
11372
11373 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11374 of attributes.
11375
c90d28ac
AB
113762020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11377 Bernd Edlinger <bernd.edlinger@hotmail.de>
11378 Tom Tromey <tromey@adacore.com>
11379
11380 * buildsym.c (buildsym_compunit::record_line): Remove
11381 deduplication code.
11382
1aa98955
TV
113832020-04-02 Tom de Vries <tdevries@suse.de>
11384
11385 PR ada/24671
11386 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11387
d3214198
TV
113882020-04-02 Tom de Vries <tdevries@suse.de>
11389
11390 * dwarf2/read.c (dwarf2_gdb_index_functions,
11391 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11392 NULL.
11393 * psymtab.c (psym_lookup_global_symbol_language): New function.
11394 (psym_functions): Init psym_lookup_global_symbol_language with
11395 psym_lookup_global_symbol_language.
11396 * symfile-debug.c (debug_sym_quick_functions): Init
11397 lookup_global_symbol_language with NULL.
11398 * symfile.c (set_initial_language): Remove fixme comment.
11399 * symfile.h (struct quick_symbol_functions): Add
11400 lookup_global_symbol_language.
11401 * symtab.c (find_quick_global_symbol_language): New function.
11402 (find_main_name): Use find_quick_global_symbol_language.
11403
2836752f
SM
114042020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11405
11406 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11407
64dc2d4b
BE
114082020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11409
11410 * buildsym.c (record_line): Fix undefined behavior and preserve
11411 lines at eof.
11412
bbe3dc41
BE
114132020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11414
11415 * buildsym.c (record_line): Fix the resizing condition.
11416
6b4a335b
TT
114172020-04-01 Tom Tromey <tom@tromey.com>
11418
11419 * value.h (value_literal_complex): Add comment.
11420 * valops.c (value_literal_complex): Refer to value.h.
11421
3638a098
TT
114222020-04-01 Tom Tromey <tom@tromey.com>
11423
11424 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11425 (scalar_type): New rule, from typebase.
11426 (typebase): Use scalar_type. Recognize complex types.
11427 (field_name): Handle FLOAT_KEYWORD.
11428 (ident_tokens): Add _Complex and __complex__.
11429
c34e8714
TT
114302020-04-01 Tom Tromey <tom@tromey.com>
11431
11432 PR exp/25299:
11433 * valarith.c (promotion_type, complex_binop): New functions.
11434 (scalar_binop): Handle complex numbers. Use promotion_type.
11435 (value_pos, value_neg, value_complement): Handle complex numbers.
11436
fa649bb7
TT
114372020-04-01 Tom Tromey <tom@tromey.com>
11438
11439 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11440 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11441 (parse_number): Handle complex numbers.
11442
981c08ce
TT
114432020-04-01 Tom Tromey <tom@tromey.com>
11444
11445 * c-valprint.c (c_decorations): Change complex suffix to "i".
11446
4c99290d
TT
114472020-04-01 Tom Tromey <tom@tromey.com>
11448
11449 * valprint.c (generic_value_print_complex): Use accessors.
11450 * value.h (value_real_part, value_imaginary_part): Declare.
11451 * valops.c (value_real_part, value_imaginary_part): New
11452 functions.
11453 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11454
5b930b45
TT
114552020-04-01 Tom Tromey <tom@tromey.com>
11456
11457 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11458 (read_range_type): Update.
11459 * mdebugread.c (basic_type): Update.
11460 * go-lang.c (build_go_types): Use init_complex_type.
11461 * gdbtypes.h (struct main_type) <complex_type>: New member.
11462 (init_complex_type): Update.
11463 (arch_complex_type): Don't declare.
11464 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11465 Make name if none given. Use alloc_type_copy. Look for cached
11466 complex type.
11467 (arch_complex_type): Remove.
11468 (gdbtypes_post_init): Use init_complex_type.
11469 * f-lang.c (build_fortran_types): Use init_complex_type.
11470 * dwarf2/read.c (read_base_type): Update.
11471 * d-lang.c (build_d_types): Use init_complex_type.
11472 * ctfread.c (read_base_type): Update.
11473
53cccef1
TBA
114742020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11475
11476 * infrun.c (stop_all_threads): Update assertion, plus when
11477 stopping threads, take into account that we might be trying
11478 to stop an all-stop target.
11479 (stop_waiting): Call 'stop_all_threads' if there exists a
11480 non-stop target.
11481
a0714d30
TBA
114822020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11483
11484 * target.h (exists_non_stop_target): New function declaration.
11485 * target.c (exists_non_stop_target): New function.
11486
60e22c1e
HD
114872020-04-01 Hannes Domani <ssbssa@yahoo.de>
11488
11489 PR gdb/24789
11490 * eval.c (is_integral_or_integral_reference): New function.
11491 (evaluate_subexp_standard): Allow integer references in
11492 pointer arithmetic.
11493
e139a727
TBA
114942020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11495
11496 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11497 check for no ptid in the stop reply when the target is non-stop.
11498
e0802d59
TT
114992020-04-01 Tom Tromey <tromey@adacore.com>
11500
11501 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11502 "name" parameter to rvalue reference. Initialize m_name_holder.
11503 <lookup_name_info>: New overloads.
11504 <name>: Return gdb::string_view.
11505 <c_str>: New method.
11506 <make_ignore_params>: Update.
11507 <search_name_hash>: Update.
11508 <language_lookup_name>: Return const char *.
11509 <m_name>: Change type.
11510 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11511 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11512 (lookup_name_info::match_any): Update.
11513 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11514 Update.
11515 * minsyms.c (linkage_name_str): Update.
11516 * language.c (default_symbol_name_matcher): Update.
11517 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11518 Update.
11519 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11520 (ada_lookup_name_info::ada_lookup_name_info): Update.
11521 (literal_symbol_name_matcher): Update.
11522
8c072cb6
TT
115232020-04-01 Tom Tromey <tromey@adacore.com>
11524
11525 * psymtab.c (psymtab_search_name): Remove function.
11526 (psym_lookup_symbol): Create search name and lookup name here.
11527 (lookup_partial_symbol): Remove "name" parameter; add
11528 lookup_name.
11529 (psym_expand_symtabs_for_function): Update.
11530
6f29a534
TT
115312020-03-31 Joel Jones <joelkevinjones@gmail.com>
11532
11533 PR tui/25597:
11534 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11535
af62665e
TT
115362020-03-31 Tom Tromey <tromey@adacore.com>
11537
11538 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11539 memcpy.
11540
d1a89da5
NC
115412020-03-30 Nelson Chu <nelson.chu@sifive.com>
11542
11543 * features/riscv/32bit-csr.xml: Regenerated.
11544 * features/riscv/64bit-csr.xml: Regenerated.
11545
d8af9068
TT
115462020-03-30 Tom Tromey <tromey@adacore.com>
11547
11548 * ada-valprint.c (print_variant_part): Update.
11549 * ada-lang.h (ada_which_variant_applies): Update.
11550 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11551 outer_valaddr parameters; replace with "outer" value parameter.
11552 (to_fixed_variant_branch_type): Update.
11553
227c0bf4
PFC
115542020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11555
11556 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11557 <list>. Remove inclusion of observable.h.
11558 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11559 (struct arch_lwp_info): New struct.
11560 (class ppc_linux_dreg_interface): New class.
11561 (struct ppc_linux_process_info): New struct.
11562 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11563 <low_new_clone, low_forget_process, low_prepare_to_resume>
11564 <copy_thread_dreg_state, mark_thread_stale>
11565 <mark_debug_registers_changed, register_hw_breakpoint>
11566 <clear_hw_breakpoint, register_wp, clear_wp>
11567 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11568 <num_memory_accesses, get_trigger_type>
11569 <create_watchpoint_request, hwdebug_point_cmp>
11570 <init_arch_lwp_info, get_arch_lwp_info>
11571 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11572 methods.
11573 <struct ptid_hash>: New inner struct.
11574 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11575 members.
11576 (saved_dabr_value, hwdebug_info, max_slots_number)
11577 (struct hw_break_tuple, struct thread_points, ppc_threads)
11578 (have_ptrace_hwdebug_interface)
11579 (hwdebug_find_thread_points_by_tid)
11580 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11581 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11582 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11583 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11584 use m_dreg_interface.
11585 (hwdebug_point_cmp): Change to...
11586 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11587 reference arguments instead of pointers.
11588 (ppc_linux_nat_target::ranged_break_num_registers): Use
11589 m_dreg_interface.
11590 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11591 m_dreg_interface. Call register_hw_breakpoint.
11592 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11593 m_dreg_interface. Call clear_hw_breakpoint.
11594 (get_trigger_type): Change to...
11595 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11596 comment.
11597 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11598 use m_dreg_interface. Call register_hw_breakpoint.
11599 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11600 use m_dreg_interface. Call clear_hw_breakpoint.
11601 (can_use_watchpoint_cond_accel): Change to...
11602 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11603 method. Update comment, use m_dreg_interface and
11604 m_process_info.
11605 (calculate_dvc): Change to...
11606 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11607 m_dreg_interface.
11608 (num_memory_accesses): Change to...
11609 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11610 (check_condition): Change to...
11611 (ppc_linux_nat_target::check_condition): ...this method.
11612 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11613 comment, use m_dreg_interface.
11614 (create_watchpoint_request): Change to...
11615 (ppc_linux_nat_target::create_watchpoint_request): ...this
11616 method. Use m_dreg_interface.
11617 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11618 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11619 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11620 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11621 (ppc_linux_nat_target::low_forget_process)
11622 (ppc_linux_nat_target::low_new_fork)
11623 (ppc_linux_nat_target::low_new_clone)
11624 (ppc_linux_nat_target::low_delete_thread)
11625 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11626 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11627 only call mark_thread_stale.
11628 (ppc_linux_thread_exit): Remove.
11629 (ppc_linux_nat_target::stopped_data_address): Change to...
11630 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11631 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11632 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11633 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11634 comment. Call low_stopped_data_address.
11635 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11636 m_dreg_interface.
11637 (ppc_linux_nat_target::masked_watch_num_registers): Use
11638 m_dreg_interface.
11639 (ppc_linux_nat_target::copy_thread_dreg_state)
11640 (ppc_linux_nat_target::mark_thread_stale)
11641 (ppc_linux_nat_target::mark_debug_registers_changed)
11642 (ppc_linux_nat_target::register_hw_breakpoint)
11643 (ppc_linux_nat_target::clear_hw_breakpoint)
11644 (ppc_linux_nat_target::register_wp)
11645 (ppc_linux_nat_target::clear_wp)
11646 (ppc_linux_nat_target::init_arch_lwp_info)
11647 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11648 (_initialize_ppc_linux_nat): Remove observer callback.
11649
4db10d8f
PFC
116502020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11651
11652 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11653 (ppc_linux_nat_target::auxv_parse)
11654 (ppc_linux_nat_target::read_description)
11655 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11656 Move up.
11657
1310c1b0
PFC
116582020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11659
11660 * linux-nat.h (low_new_clone): New method.
11661 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11662
69b037c3
SM
116632020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11664
11665 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11666 (dbx_expand_psymtab): ... this.
11667 (start_psymtab): Update.
11668 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11669 (mdebug_expand_psymtab): ... this.
11670 (parse_partial_symbols): Update.
11671 (new_psymtab): Update.
11672 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11673 (xcoff_expand_psymtab): ... this.
11674 (xcoff_start_psymtab): Update.
11675
48993951
SM
116762020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11677
11678 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11679 <expand_dependencies>: ... this.
11680 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11681 (partial_symtab::expand_dependencies): ... this.
11682 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11683 Update.
11684 (dwarf2_psymtab::expand_psymtab): Update.
11685 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11686 * mdebugread.c (psymtab_to_symtab_1): Update.
11687 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11688
3ad83046
SM
116892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11690
11691 * psympriv.h (discard_psymtab): Remove.
11692 * dbxread.c (dbx_end_psymtab): Update.
11693 * xcoffread.c (xcoff_end_psymtab): Update.
11694
4d1b9ab6
TT
116952020-03-28 Tom Tromey <tom@tromey.com>
11696
11697 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11698 comment.
11699
f1749218
TT
117002020-03-28 Tom Tromey <tom@tromey.com>
11701
11702 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11703
ebea7626
HD
117042020-03-27 Hannes Domani <ssbssa@yahoo.de>
11705
11706 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11707
a879b4d5
JB
117082020-03-26 John Baldwin <jhb@FreeBSD.org>
11709
11710 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11711
0826b30a
TT
117122020-03-26 Tom Tromey <tom@tromey.com>
11713
11714 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11715 (mark_common_block_symbol_computed, read_tag_string_type)
11716 (attr_to_dynamic_prop, read_subrange_type): Update.
11717 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11718 to be methods on struct attribute.
11719 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11720 (read_call_site_scope, partial_die_info::read)
11721 (partial_die_info::read, lookup_die_type, follow_die_ref):
11722 Update.
11723 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11724 from dwarf2_get_ref_die_offset.
11725 (attribute::constant_value): New method, from
11726 dwarf2_get_attr_constant_value.
11727 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11728 Declare method.
11729 <constant_value>: New method.
11730
2b2558bf
TT
117312020-03-26 Tom Tromey <tom@tromey.com>
11732
11733 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11734 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11735 (dwarf_type_encoding_name): Move to stringify.c.
11736 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11737 * dwarf2/stringify.c: New file.
11738 * dwarf2/stringify.h: New file.
11739
eeb64781
TT
117402020-03-26 Tom Tromey <tom@tromey.com>
11741
11742 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11743 Rewrite.
11744
a39fdb41
TT
117452020-03-26 Tom Tromey <tom@tromey.com>
11746
11747 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11748 methods.
11749 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11750 (lookup_ranges_base): Likewise.
11751 (read_cutu_die_from_dwo, read_full_die_1): Update.
11752
436c571c
TT
117532020-03-26 Tom Tromey <tom@tromey.com>
11754
11755 * dwarf2/read.c (read_import_statement, read_file_scope)
11756 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11757 (read_lexical_block_scope, read_call_site_scope)
11758 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11759 (handle_struct_member_die, process_structure_scope)
11760 (update_enumeration_type_from_children)
11761 (process_enumeration_scope, read_array_type, read_common_block)
11762 (read_namespace, read_module, read_subroutine_type): Update.
11763 (sibling_die): Remove.
11764
052c8bb8
TT
117652020-03-26 Tom Tromey <tom@tromey.com>
11766
11767 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11768 (build_type_psymtabs_reader, read_structure_type)
11769 (read_enumeration_type, read_full_die_1): Update.
11770 (dwarf2_attr_no_follow): Move to die.h.
11771 * dwarf2/die.h (struct die_info) <attr>: New method.
11772
2b24b6e4
TT
117732020-03-26 Tom Tromey <tom@tromey.com>
11774
11775 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11776 <base_address>: Now an optional.
11777 (dwarf2_find_base_address, dwarf2_rnglists_process)
11778 (dwarf2_ranges_process, fill_in_loclist_baton)
11779 (dwarf2_symbol_mark_computed): Update.
11780
c2d50fd0
TT
117812020-03-26 Tom Tromey <tom@tromey.com>
11782
11783 * dwarf2/read.c (struct die_info): Move to die.h.
11784 * dwarf2/die.h: New file.
11785
0df7ad3a
TT
117862020-03-26 Tom Tromey <tom@tromey.com>
11787
11788 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11789 * dwarf2/read.c
11790 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11791 Move to line-header.c.
11792 (read_checked_initial_length_and_offset, read_formatted_entries):
11793 Likewise.
11794 (dwarf_decode_line_header): Split into two.
11795 * dwarf2/line-header.c
11796 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11797 Move from read.c.
11798 (read_checked_initial_length_and_offset, read_formatted_entries):
11799 Likewise.
11800 (dwarf_decode_line_header): New function, split from read.c.
11801
86c0bb4c
TT
118022020-03-26 Tom Tromey <tom@tromey.com>
11803
11804 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11805 Declare method.
11806 * dwarf2/read.c (read_attribute_value): Update.
11807 (dwarf2_per_objfile::read_line_string): Rename from
11808 read_indirect_line_string.
11809 (read_formatted_entries): Update.
11810
2ef46c2f
TT
118112020-03-26 Tom Tromey <tom@tromey.com>
11812
11813 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11814 variable.
11815
4f9c1eda
TT
118162020-03-26 Tom Tromey <tom@tromey.com>
11817
11818 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11819 const.
11820 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11821 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11822 parameter const.
11823
5a0e026f
TT
118242020-03-26 Tom Tromey <tom@tromey.com>
11825
11826 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11827 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11828 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11829 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11830
8844c11b
TT
118312020-03-26 Tom Tromey <tom@tromey.com>
11832
11833 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11834 file_names_size, file_full_name, file_file_name>: Use const.
11835 <file_name_at, file_names>: Add const overload.
11836 * dwarf2/line-header.c (line_header::file_file_name)
11837 (line_header::file_full_name): Update.
11838
c90ec28a
TT
118392020-03-26 Tom Tromey <tom@tromey.com>
11840
11841 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11842 (macro_start_file, consume_improper_spaces)
11843 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11844 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11845 (dwarf_decode_macros): Move to macro.c.
11846 * dwarf2/macro.c: New file.
11847 * dwarf2/macro.h: New file.
11848 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11849
4f44ae6c
TT
118502020-03-26 Tom Tromey <tom@tromey.com>
11851
11852 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11853 method.
11854 * dwarf2/section.c: New method. From
11855 read_indirect_string_at_offset_from.
11856 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11857 (read_indirect_string_at_offset_from): Move to section.c.
11858 (read_indirect_string_at_offset): Rewrite.
11859 (read_indirect_line_string_at_offset): Remove.
11860 (read_indirect_string, read_indirect_line_string)
11861 (dwarf_decode_macro_bytes): Update.
11862
a0194fa8
TT
118632020-03-26 Tom Tromey <tom@tromey.com>
11864
11865 * dwarf2/section.h (struct dwarf2_section_info)
11866 <overload_complaint>: Declare.
11867 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11868 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11869 Rename from dwarf2_section_buffer_overflow_complaint.
11870 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11871 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11872
3d27bbdb
TT
118732020-03-26 Tom Tromey <tom@tromey.com>
11874
11875 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11876 Declare.
11877 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11878 Move from read.c.
11879 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11880 to section.c.
11881
9eac9650
TT
118822020-03-26 Tom Tromey <tom@tromey.com>
11883
11884 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11885
bf80d710
TT
118862020-03-26 Tom Tromey <tom@tromey.com>
11887
11888 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11889 "builder".
11890 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11891 parameter.
11892 (dwarf_decode_macros): Update.
11893
0314b390
TT
118942020-03-26 Tom Tromey <tom@tromey.com>
11895
11896 * dwarf2/read.c (read_attribute_value): Update.
11897 (read_indirect_string_from_dwz): Move to dwz.c; change into
11898 method.
11899 (dwarf_decode_macro_bytes): Update.
11900 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11901 * dwarf2/dwz.c: New file.
11902 * Makefile.in (COMMON_SFILES): Add dwz.c.
11903
9fda78b6
TT
119042020-03-26 Tom Tromey <tom@tromey.com>
11905
11906 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11907 * dwarf2/read.c: Add include.
11908 * dwarf2/index-write.c: Add include.
11909 * dwarf2/index-cache.c: Add include.
11910 * dwarf2/dwz.h: New file.
11911
33aa3c10
TT
119122020-03-25 Tom Tromey <tom@tromey.com>
11913
11914 * compile/compile-object-load.c (get_out_value_type): Mention
11915 correct symbol name in error message.
11916
d503b685
HD
119172020-03-25 Hannes Domani <ssbssa@yahoo.de>
11918
11919 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11920
7b1eff95
TV
119212020-03-25 Tom de Vries <tdevries@suse.de>
11922
11923 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11924 * symmisc.c (dump_symtab_1): Print user and includes fields.
11925 (maintenance_info_symtabs): Same.
11926
dd895392
AB
119272020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11928
11929 PR gdb/25534
11930 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11931 (riscv_regcache_cooked_write): New function.
11932 (riscv_push_dummy_call): Use new function.
11933 (riscv_return_value): Likewise.
11934
5ab2fbf1
SM
119352020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11936
11937 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11938 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11939 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11940 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11941 * infrun.c (follow_fork): Likewise.
11942 (follow_fork_inferior): Likewise.
11943 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11944 * linux-nat.h (class linux_nat_target): Likewise.
11945 * remote.c (class remote_target) <follow_fork>: Likewise.
11946 (remote_target::follow_fork): Likewise.
11947 * target-delegates.c: Re-generate.
11948 * target.c (default_follow_fork): Likewise.
11949 (target_follow_fork): Likewise.
11950 * target.h (struct target_ops) <follow_fork>: Likewise.
11951 (target_follow_fork): Likewise.
11952
a64fafb5
TV
119532020-03-24 Tom de Vries <tdevries@suse.de>
11954
11955 * psymtab.c (maintenance_info_psymtabs): Print user field.
11956
fe26d3a3
TT
119572020-03-20 Tom Tromey <tromey@adacore.com>
11958
11959 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11960 const.
11961 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11962 const.
11963
c884cc46
SM
119642020-03-20 Simon Marchi <simon.marchi@efficios.com>
11965
11966 * ptrace.m4: Don't check for ptrace declaration.
11967 * config.in: Re-generate.
11968 * configure: Re-generate.
11969 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11970 not defined.
11971
1ff700c2
KR
119722020-03-20 Kamil Rytarowski <n54@gmx.com>
11973
11974 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11975 `PTRACE_TYPE_RET'.
11976 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11977 * sparc-nat.c (gdb_ptrace): Likewise.
11978 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11979
f7d4f0b1
TT
119802020-03-20 Tom Tromey <tromey@adacore.com>
11981
11982 * c-exp.y (lex_one_token): Fix assert.
11983
f67210ff
TT
119842020-03-20 Tom Tromey <tromey@adacore.com>
11985
11986 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11987 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11988 strncpy call.
11989
1773be9e
TT
119902020-03-20 Tom Tromey <tromey@adacore.com>
11991
11992 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11993
70304be9
TT
119942020-03-20 Tom Tromey <tromey@adacore.com>
11995
11996 * ada-valprint.c (print_variant_part): Remove parameters; switch
11997 to value-based API.
11998 (print_field_values): Likewise.
11999 (ada_val_print_struct_union): Likewise.
12000 (ada_value_print_1): Update.
12001
9faa006d
KR
120022020-03-20 Kamil Rytarowski <n54@gmx.com>
12003
12004 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12005 nbsd_nat_target instead of inf_ptrace_target.
12006 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12007 nbsd_nat_target.
12008
4a90f062
KR
120092020-03-20 Kamil Rytarowski <n54@gmx.com>
12010
12011 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12012 it to the ptrace call.
12013 * (store_registers): Likewise.
12014
120152020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12016
12017 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12018 it to the ptrace call.
12019 * (store_registers): Likewise.
12020
2d07da27
LM
120212020-03-19 Luis Machado <luis.machado@linaro.org>
12022
12023 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12024 valid, fetch vg value from ptrace.
12025
f09db380
KR
120262020-03-19 Kamil Rytarowski <n54@gmx.com>
12027 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12028 * inf-ptrace.c: Likewise.
12029 * (gdb_ptrace): Add.
12030 * (inf_ptrace_target::resume): Update.
12031 * (inf_ptrace_target::xfer_partial): Likewise.
12032 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12033 * (inf_ptrace_peek_poke): Update.
12034
fcc7376e
KR
120352020-03-19 Kamil Rytarowski <n54@gmx.com>
12036
12037 * x86-bsd-nat.c (gdb_ptrace): New.
12038 * (x86bsd_dr_set): Add new argument `ptid'.
12039 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12040 x86bsd_dr_set_addr): Update.
12041
cada5fc9
AB
120422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12043
12044 * remote.c (remote_target::process_stop_reply): Handle events for
12045 all threads differently.
12046
19a2740f
AB
120472020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12048
12049 * completer.c (completion_tracker::remove_completion): Define new
12050 function.
12051 * completer.h (completion_tracker::remove_completion): Declare new
12052 function.
12053 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12054 when adding a C++ function symbol.
12055
724fd9ba
AB
120562020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12057
12058 * completer.c (completion_tracker::completion_hash_entry): Define
12059 new class.
12060 (advance_to_filename_complete_word_point): Call
12061 recompute_lowest_common_denominator.
12062 (completion_tracker::completion_tracker): Call discard_completions
12063 to setup the hash table.
12064 (completion_tracker::discard_completions): Allow for being called
12065 from the constructor, pass new equal function, and element deleter
12066 when constructing the hash table. Initialise new class member
12067 variables.
12068 (completion_tracker::maybe_add_completion): Remove use of
12069 m_entries_vec, and store more information into m_entries_hash.
12070 (completion_tracker::recompute_lcd_visitor): New function, most
12071 content taken from...
12072 (completion_tracker::recompute_lowest_common_denominator):
12073 ...here, this now just visits each item in the hash calling the
12074 above visitor.
12075 (completion_tracker::build_completion_result): Remove use of
12076 m_entries_vec, call recompute_lowest_common_denominator.
12077 * completer.h (completion_tracker::have_completions): Remove use
12078 of m_entries_vec.
12079 (completion_tracker::completion_hash_entry): Declare new class.
12080 (completion_tracker::recompute_lowest_common_denominator): Change
12081 function signature.
12082 (completion_tracker::recompute_lcd_visitor): Declare new function.
12083 (completion_tracker::m_entries_vec): Delete.
12084 (completion_tracker::m_entries_hash): Initialize to NULL.
12085 (completion_tracker::m_lowest_common_denominator_valid): New
12086 member variable.
12087 (completion_tracker::m_lowest_common_denominator_max_length): New
12088 member variable.
12089
5a82b8a1
KR
120902020-03-17 Kamil Rytarowski <n54@gmx.com>
12091
12092 * regformats/regdef.h: Put reg in gdb namespace.
12093
fb516a69
KR
120942020-03-17 Kamil Rytarowski <n54@gmx.com>
12095
12096 * i386-bsd-nat.c (gdb_ptrace): New.
12097 * (i386bsd_fetch_inferior_registers,
12098 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12099 * (i386bsd_fetch_inferior_registers,
12100 i386bsd_store_inferior_registers) Use gdb_ptrace.
12101
1c0aa1fb
KR
121022020-03-17 Kamil Rytarowski <n54@gmx.com>
12103
12104 * amd64-bsd-nat.c (gdb_ptrace): New.
12105 * (amd64bsd_fetch_inferior_registers,
12106 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12107 * (amd64bsd_fetch_inferior_registers,
12108 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12109
5ccd2fb7
KR
121102020-03-17 Kamil Rytarowski <n54@gmx.com>
12111
12112 * user-regs.c (user_reg::read): Rename to...
12113 (user_reg::xread): ...this.
12114 * (append_user_reg): Rename argument `read' to `xread'.
12115 * (user_reg_add_builtin): Likewise.
12116 * (user_reg_add): Likewise.
12117 * (value_of_user_reg): Likewise.
12118
2108a63a
KR
121192020-03-17 Kamil Rytarowski <n54@gmx.com>
12120
12121 * sparc-nat.c (gdb_ptrace): New.
12122 * sparc-nat.c (sparc_fetch_inferior_registers)
12123 (sparc_store_inferior_registers) Remove obsolete comment.
12124 * sparc-nat.c (sparc_fetch_inferior_registers)
12125 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12126 * sparc-nat.c (sparc_fetch_inferior_registers)
12127 (sparc_store_inferior_registers) Use gdb_ptrace.
12128
a225c9a8
KR
121292020-03-17 Kamil Rytarowski <n54@gmx.com>
12130
12131 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12132 it to the ptrace call.
12133 * sh-nbsd-nat.c (store_registers): Likewise.
12134
98097623
KR
121352020-03-17 Kamil Rytarowski <n54@gmx.com>
12136
12137 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12138 nbsd_nat_target instead of inf_ptrace_target.
12139 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12140 nbsd_nat_target.
12141
9e38d619
KR
121422020-03-17 Kamil Rytarowski <n54@gmx.com>
12143
12144 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12145
a2ecbe9f
KR
121462020-03-17 Kamil Rytarowski <n54@gmx.com>
12147
12148 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12149 <sys/sysctl.h>.
12150 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12151
58990295
TV
121522020-03-17 Tom de Vries <tdevries@suse.de>
12153
12154 PR gdb/23710
12155 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12156 fields.
12157 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12158 fields.
12159 (process_imported_unit_die): Skip import of c++ CUs.
12160
771dd3a8
TT
121612020-03-16 Tom Tromey <tom@tromey.com>
12162
12163 * p-valprint.c (pascal_object_print_value): Initialize
12164 base_value.
12165
817a7585
AK
121662020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12167 Shahab Vahedi <shahab@synopsys.com>
12168
12169 * Makefile.in: Add arch/arc.o
12170 * configure.tgt: Likewise.
12171 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12172 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12173 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12174 * arc-tdep.h (arc_read_description): Add proto type.
12175 * arch/arc.c: New file.
12176 * arch/arc.h: Likewise.
12177 * features/Makefile: Replace old target descriptions with new.
12178 * features/arc-arcompact.c: Remove.
12179 * features/arc-arcompact.xml: Likewise.
12180 * features/arc-v2.c: Likewise
12181 * features/arc-v2.xml: Likewise
12182 * features/arc/aux-arcompact.xml: New file.
12183 * features/arc/aux-v2.xml: Likewise.
12184 * features/arc/core-arcompact.xml: Likewise.
12185 * features/arc/core-v2.xml: Likewise.
12186 * features/arc/aux-arcompact.c: Generate.
12187 * features/arc/aux-v2.c: Likewise.
12188 * features/arc/core-arcompact.c: Likewise.
12189 * features/arc/core-v2.c: Likewise.
12190 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12191
67430cd0
TT
121922020-03-16 Tom Tromey <tromey@adacore.com>
12193
12194 PR gdb/25663:
12195 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12196 putting value into bcache.
12197
30efb6c7
SM
121982020-03-16 Simon Marchi <simon.marchi@efficios.com>
12199
12200 PR gdb/21500
12201 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12202 to...
12203 (amd64_windows_init_abi_common): ... this. Don't set size of
12204 long type.
12205 (amd64_windows_init_abi): New function.
12206 (amd64_cygwin_init_abi): New function.
12207 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12208 the Cygwin OS ABI.
12209 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12210 comment.
12211
8db52437
SM
122122020-03-16 Simon Marchi <simon.marchi@efficios.com>
12213
12214 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12215 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12216 (pe_import_directory_entry): New struct type.
12217 (is_linked_with_cygwin_dll): New function.
12218 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12219 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12220 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12221
5982a56a
SM
122222020-03-16 Simon Marchi <simon.marchi@efficios.com>
12223
12224 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12225 i386_cygwin_core_osabi_sniffer.
12226
7a1998df
SM
122272020-03-16 Simon Marchi <simon.marchi@efficios.com>
12228
12229 * i386-cygwin-tdep.c: Rename to...
12230 * i386-windows-tdep.c: ... this.
12231 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12232 i386-windows-tdep.c.
12233 * configure.tgt: Likewise.
12234
053205cc
SM
122352020-03-16 Simon Marchi <simon.marchi@efficios.com>
12236
12237 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12238 * osabi.c (gdb_osabi_names): Add "Windows".
12239 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12240 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12241 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12242 i386_cygwin_osabi_sniffer.
12243 (_initialize_i386_cygwin_tdep): Register OS ABI
12244 GDB_OSABI_WINDOWS for i386.
12245 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12246 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12247 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12248 for x86-64.
12249 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12250 when the target matches '*-*-mingw*'.
12251
fe4b2ee6
SM
122522020-03-16 Simon Marchi <simon.marchi@efficios.com>
12253
12254 * defs.h (enum gdb_osabi): Move to...
12255 * osabi.h (enum gdb_osabi): ... here.
12256 * gdbarch.sh: Include osabi.h in gdbarch.h.
12257 * gdbarch.h: Re-generate.
12258
cb9b645d
SM
122592020-03-16 Simon Marchi <simon.marchi@efficios.com>
12260
12261 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12262 function.
12263 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12264
3293bbaf
TT
122652020-03-14 Tom Tromey <tom@tromey.com>
12266
12267 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12268 for C++.
12269 (c_type_print_modifier): Likewise. Add "language" parameter.
12270 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12271 (c_type_print_base_1): Update.
12272 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12273 constants.
12274 * type-stack.c (type_stack::insert): Handle tp_atomic and
12275 tp_restrict.
12276 (type_stack::follow_type_instance_flags): Likewise.
12277 (type_stack::follow_types): Likewise. Merge type-following code.
12278 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12279 (space_identifier, cv_with_space_id)
12280 (const_or_volatile_or_space_identifier_noopt)
12281 (const_or_volatile_or_space_identifier): Remove.
12282 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12283 rules.
12284 (ptr_operator, typebase): Update.
12285 (enum token_flag) <FLAG_C>: New constant.
12286 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12287 "_Atomic".
12288 (lex_one_token): Handle FLAG_C.
12289
154151a6
KR
122902020-03-14 Kamil Rytarowski <n54@gmx.com>
12291
12292 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12293 it to the ptrace call.
12294 * m68k-bsd-nat.c (store_registers): Likewise.
12295
bc107784
KR
122962020-03-14 Kamil Rytarowski <n54@gmx.com>
12297
12298 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12299 gdb_byte *.
12300 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12301 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12302 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12303
01a80117
KR
123042020-03-14 Kamil Rytarowski <n54@gmx.com>
12305
12306 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12307 nbsd_nat_target instead of inf_ptrace_target.
12308 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12309 nbsd_nat_target.
12310
f90280ca
KR
123112020-03-14 Kamil Rytarowski <n54@gmx.com>
12312
12313 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12314 register_t.
12315
6def66f1
KR
123162020-03-14 Kamil Rytarowski <n54@gmx.com>
12317
12318 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12319 it to the ptrace call.
12320 * alpha-bsd-nat.c (store_registers): Likewise.
12321
66eaca97
KR
123222020-03-14 Kamil Rytarowski <n54@gmx.com>
12323
12324 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12325 includes.
12326 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12327 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12328 fill_fpregset): Likewise.
12329
4fed520b
KR
123302020-03-14 Kamil Rytarowski <n54@gmx.com>
12331
12332 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12333 nbsd_nat_target instead of inf_ptrace_target.
12334 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12335 nbsd_nat_target.
12336
2190cf06
KR
123372020-03-14 Kamil Rytarowski <n54@gmx.com>
12338
12339 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12340 register_t.
12341
75c56d3d
KR
123422020-03-14 Kamil Rytarowski <n54@gmx.com>
12343
12344 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12345 it to the ptrace call.
12346 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12347 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12348 * arm-nbsd-nat.c (store_register): Likewise.
12349 * arm-nbsd-nat.c (store_regs): Likewise.
12350 * arm-nbsd-nat.c (store_fp_register): Likewise.
12351 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12352
6018d381
KR
123532020-03-14 Kamil Rytarowski <n54@gmx.com>
12354
12355 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12356 nbsd_nat_target instead of inf_ptrace_target.
12357 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12358 nbsd_nat_target.
12359
013f99f0
KR
123602020-03-14 Kamil Rytarowski <n54@gmx.com>
12361
12362 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12363 it to the ptrace call.
12364 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12365
12753073
KR
123662020-03-14 Kamil Rytarowski <n54@gmx.com>
12367
6227b330
KR
12368 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12369 it to the ptrace call.
12370 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12371
123722020-03-14 Kamil Rytarowski <n54@gmx.com>
12373
12374 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12375 gdb_byte *.
12753073
KR
12376 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12377
d5be5fa4
KR
123782020-03-14 Kamil Rytarowski <n54@gmx.com>
12379
12380 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12381 instead of inf_ptrace_target.
12382 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12383 nbsd_nat_target.
12384
8110f842
KR
123852020-03-14 Kamil Rytarowski <n54@gmx.com>
12386
12387 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12388 register_t.
12389
52feded7
KR
123902020-03-14 Kamil Rytarowski <n54@gmx.com>
12391
12392 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12393 register_t.
12394
25567eee
KR
123952020-03-14 Kamil Rytarowski <n54@gmx.com>
12396
12397 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12398 register_t.
12399
426a9c18
TT
124002020-03-13 Tom Tromey <tom@tromey.com>
12401
12402 * value.h (val_print): Don't declare.
12403 * valprint.h (val_print_array_elements)
12404 (val_print_scalar_formatted, generic_val_print): Don't declare.
12405 * valprint.c (generic_val_print_array): Take a struct value.
12406 (generic_val_print_ptr, generic_val_print_memberptr)
12407 (generic_val_print_bool, generic_val_print_int)
12408 (generic_val_print_char, generic_val_print_complex)
12409 (generic_val_print): Remove.
12410 (generic_value_print): Update.
12411 (do_val_print): Remove unused parameters. Don't call
12412 la_val_print.
12413 (val_print): Remove.
12414 (common_val_print): Update. Don't call value_check_printable.
12415 (val_print_scalar_formatted, val_print_array_elements): Remove.
12416 * rust-lang.c (rust_val_print): Remove.
12417 (rust_language_defn): Update.
12418 * p-valprint.c (pascal_val_print): Remove.
12419 (pascal_value_print_inner): Update.
12420 (pascal_object_print_val_fields, pascal_object_print_val):
12421 Remove.
12422 (pascal_object_print_static_field): Update.
12423 * p-lang.h (pascal_val_print): Don't declare.
12424 * p-lang.c (pascal_language_defn): Update.
12425 * opencl-lang.c (opencl_language_defn): Update.
12426 * objc-lang.c (objc_language_defn): Update.
12427 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12428 * m2-lang.h (m2_val_print): Don't declare.
12429 * m2-lang.c (m2_language_defn): Update.
12430 * language.h (struct language_defn) <la_val_print>: Remove.
12431 * language.c (unk_lang_value_print_inner): Rename. Change
12432 argument types.
12433 (unknown_language_defn, auto_language_defn): Update.
12434 * go-valprint.c (go_val_print): Remove.
12435 * go-lang.h (go_val_print): Don't declare.
12436 * go-lang.c (go_language_defn): Update.
12437 * f-valprint.c (f_val_print): Remove.
12438 * f-lang.h (f_value_print): Don't declare.
12439 * f-lang.c (f_language_defn): Update.
12440 * d-valprint.c (d_val_print): Remove.
12441 * d-lang.h (d_value_print): Don't declare.
12442 * d-lang.c (d_language_defn): Update.
12443 * cp-valprint.c (cp_print_value_fields)
12444 (cp_print_value_fields_rtti, cp_print_value): Remove.
12445 (cp_print_static_field): Update.
12446 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12447 (c_val_print_struct, c_val_print_union, c_val_print_int)
12448 (c_val_print_memberptr, c_val_print): Remove.
12449 * c-lang.h (c_val_print_array, cp_print_value_fields)
12450 (cp_print_value_fields_rtti): Don't declare.
12451 * c-lang.c (c_language_defn, cplus_language_defn)
12452 (asm_language_defn, minimal_language_defn): Update.
12453 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12454 (ada_val_print_enum): Take a struct value.
12455 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12456 (ada_val_print): Remove.
12457 (ada_value_print_1): Update.
12458 (printable_val_type): Remove.
12459 * ada-lang.h (ada_val_print): Don't declare.
12460 * ada-lang.c (ada_language_defn): Update.
12461
42331a1e
TT
124622020-03-13 Tom Tromey <tom@tromey.com>
12463
12464 * valprint.c (do_val_print): Update.
12465 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12466 a struct value.
12467 (value_to_value_object_no_release): Declare.
12468 * python/py-value.c (value_to_value_object_no_release): New
12469 function.
12470 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12471 struct value.
12472 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12473 function.
12474 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12475 a struct value.
12476 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12477 Declare.
12478 (gdbscm_apply_val_pretty_printer): Take a struct value.
12479 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12480 value.
12481 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12482 value.
12483 * extension-priv.h (struct extension_language_ops)
12484 <apply_val_pretty_printer>: Take a struct value.
12485 * cp-valprint.c (cp_print_value): Create a struct value.
12486 (cp_print_value): Update.
12487
3a916a97
TT
124882020-03-13 Tom Tromey <tom@tromey.com>
12489
12490 * ada-valprint.c (print_field_values): Call common_val_print.
12491
b59eac37
TT
124922020-03-13 Tom Tromey <tom@tromey.com>
12493
12494 * ada-valprint.c (val_print_packed_array_elements): Remove
12495 bitoffset and val parameters. Call common_val_print.
12496 (ada_val_print_string): Remove offset, address, and original_value
12497 parameters.
12498 (ada_val_print_array): Update.
12499 (ada_value_print_array): New function.
12500 (ada_value_print_1): Call it.
12501
03371129
TT
125022020-03-13 Tom Tromey <tom@tromey.com>
12503
12504 * ada-valprint.c (ada_value_print): Use common_val_print.
12505
2e088f8b
TT
125062020-03-13 Tom Tromey <tom@tromey.com>
12507
12508 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12509
39ef85a8
TT
125102020-03-13 Tom Tromey <tom@tromey.com>
12511
12512 * ada-valprint.c (ada_value_print_num): New function.
12513 (ada_value_print_1): Use it.
12514
b9fa6e07
TT
125152020-03-13 Tom Tromey <tom@tromey.com>
12516
12517 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12518
416595d6
TT
125192020-03-13 Tom Tromey <tom@tromey.com>
12520
12521 * ada-valprint.c (ada_value_print_ptr): New function.
12522 (ada_value_print_1): Use it.
12523
5b5e15ec
TT
125242020-03-13 Tom Tromey <tom@tromey.com>
12525
12526 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12527 call common_val_print.
12528 (ada_val_print_1): Update.
12529 (ada_value_print_1): New function.
12530 (ada_value_print_inner): Rewrite.
12531
fbf54e75
TT
125322020-03-13 Tom Tromey <tom@tromey.com>
12533
12534 * cp-valprint.c (cp_print_value_fields): Update.
12535 (cp_print_value): New function.
12536
64b653ca
TT
125372020-03-13 Tom Tromey <tom@tromey.com>
12538
12539 * m2-valprint.c (m2_value_print_inner): Use
12540 cp_print_value_fields.
12541 * cp-valprint.c (cp_print_value_fields): New function.
12542 * c-valprint.c (c_value_print_struct): New function.
12543 (c_value_print_inner): Use c_value_print_struct.
12544 * c-lang.h (cp_print_value_fields): Declare.
12545
6999f067
TT
125462020-03-13 Tom Tromey <tom@tromey.com>
12547
12548 * c-valprint.c (c_value_print_array): New function.
12549 (c_value_print_inner): Use it.
12550
ce80b8bd
TT
125512020-03-13 Tom Tromey <tom@tromey.com>
12552
12553 * c-valprint.c (c_value_print_memberptr): New function.
12554 (c_value_print_inner): Use it.
12555
2faac269
TT
125562020-03-13 Tom Tromey <tom@tromey.com>
12557
12558 * c-valprint.c (c_value_print_int): New function.
12559 (c_value_print_inner): Use it.
12560
da3e2c29
TT
125612020-03-13 Tom Tromey <tom@tromey.com>
12562
12563 * c-valprint.c (c_value_print_ptr): New function.
12564 (c_value_print_inner): Use it.
12565
50836231
TT
125662020-03-13 Tom Tromey <tom@tromey.com>
12567
12568 * c-valprint.c (c_value_print_inner): Rewrite.
12569
4f412b6e
TT
125702020-03-13 Tom Tromey <tom@tromey.com>
12571
12572 * valprint.c (generic_value_print_complex): New function.
12573 (generic_value_print): Use it.
12574
f5354008
TT
125752020-03-13 Tom Tromey <tom@tromey.com>
12576
12577 * valprint.c (generic_val_print_float): Don't call
12578 val_print_scalar_formatted.
12579 (generic_val_print, generic_value_print): Update.
12580
3eec3b05
TT
125812020-03-13 Tom Tromey <tom@tromey.com>
12582
12583 * valprint.c (generic_value_print_char): New function
12584 (generic_value_print): Use it.
12585
fdddfccb
TT
125862020-03-13 Tom Tromey <tom@tromey.com>
12587
12588 * valprint.c (generic_value_print_int): New function.
12589 (generic_value_print): Use it.
12590
6dde7521
TT
125912020-03-13 Tom Tromey <tom@tromey.com>
12592
12593 * valprint.c (generic_value_print_bool): New function.
12594 (generic_value_print): Use it.
12595
4112d2e6
TT
125962020-03-13 Tom Tromey <tom@tromey.com>
12597
12598 * valprint.c (generic_val_print_func): Simplify.
12599 (generic_val_print, generic_value_print): Update.
12600
65786af6
TT
126012020-03-13 Tom Tromey <tom@tromey.com>
12602
12603 * valprint.c (generic_val_print_flags): Remove.
12604 (generic_val_print, generic_value_print): Update.
12605 (val_print_type_code_flags): Add original_value parameter.
12606
40f3ce18
TT
126072020-03-13 Tom Tromey <tom@tromey.com>
12608
12609 * valprint.c (generic_val_print): Update.
12610 (generic_value_print): Update.
12611 * valprint.c (generic_val_print_enum): Don't call
12612 val_print_scalar_formatted.
12613
2a5b130b
TT
126142020-03-13 Tom Tromey <tom@tromey.com>
12615
12616 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12617 * valprint.c (generic_value_print_ptr): New function.
12618
abc66ce9
TT
126192020-03-13 Tom Tromey <tom@tromey.com>
12620
12621 * valprint.c (generic_value_print): Rewrite.
12622
07a32858
TT
126232020-03-13 Tom Tromey <tom@tromey.com>
12624
12625 * p-valprint.c (pascal_object_print_value_fields)
12626 (pascal_object_print_value): New functions.
12627
64d64d3a
TT
126282020-03-13 Tom Tromey <tom@tromey.com>
12629
12630 * p-valprint.c (pascal_value_print_inner): Rewrite.
12631
6a95a1f5
TT
126322020-03-13 Tom Tromey <tom@tromey.com>
12633
12634 * f-valprint.c (f_value_print_innner): Rewrite.
12635
59fcdac6
TT
126362020-03-13 Tom Tromey <tom@tromey.com>
12637
12638 * m2-valprint.c (m2_print_unbounded_array): New overload.
12639 (m2_print_unbounded_array): Update.
12640 (m2_print_array_contents): Take a struct value.
12641 (m2_value_print_inner): Rewrite.
12642
d133c3e1
TT
126432020-03-13 Tom Tromey <tom@tromey.com>
12644
12645 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12646 (d_value_print_inner): New function.
12647 * d-lang.h (d_value_print_inner): Declare.
12648 * d-lang.c (d_language_defn): Use d_value_print_inner.
12649
23b0f06b
TT
126502020-03-13 Tom Tromey <tom@tromey.com>
12651
12652 * go-valprint.c (go_value_print_inner): New function.
12653 * go-lang.h (go_value_print_inner): Declare.
12654 * go-lang.c (go_language_defn): Use go_value_print_inner.
12655
5f56f7cb
TT
126562020-03-13 Tom Tromey <tom@tromey.com>
12657
12658 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12659 API.
12660 (rust_val_print): Rewrite.
12661 (rust_value_print_inner): New function, from rust_val_print.
12662 (rust_language_defn): Use rust_value_print_inner.
12663
26792ee0
TT
126642020-03-13 Tom Tromey <tom@tromey.com>
12665
12666 * ada-valprint.c (ada_value_print_inner): New function.
12667 * ada-lang.h (ada_value_print_inner): Declare.
12668 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12669
24051bbe
TT
126702020-03-13 Tom Tromey <tom@tromey.com>
12671
12672 * f-valprint.c (f_value_print_innner): New function.
12673 * f-lang.h (f_value_print_innner): Declare.
12674 * f-lang.c (f_language_defn): Use f_value_print_innner.
12675
c0941be6
TT
126762020-03-13 Tom Tromey <tom@tromey.com>
12677
12678 * p-valprint.c (pascal_value_print_inner): New function.
12679 * p-lang.h (pascal_value_print_inner): Declare.
12680 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12681
62c4663d
TT
126822020-03-13 Tom Tromey <tom@tromey.com>
12683
12684 * m2-valprint.c (m2_value_print_inner): New function.
12685 * m2-lang.h (m2_value_print_inner): Declare.
12686 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12687
62182190
TT
126882020-03-13 Tom Tromey <tom@tromey.com>
12689
12690 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12691 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12692 * c-valprint.c (c_value_print_inner): New function.
12693 * c-lang.h (c_value_print_inner): Declare.
12694 * c-lang.c (c_language_defn, cplus_language_defn)
12695 (asm_language_defn, minimal_language_defn): Use
12696 c_value_print_inner.
12697
1e592a8a
TT
126982020-03-13 Tom Tromey <tom@tromey.com>
12699
12700 * p-valprint.c (pascal_object_print_value_fields): Now static.
12701 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12702
7fe471e9
TT
127032020-03-13 Tom Tromey <tom@tromey.com>
12704
12705 * c-valprint.c (c_val_print_array): Simplify.
12706
d121c6ce
TT
127072020-03-13 Tom Tromey <tom@tromey.com>
12708
12709 * valprint.c (value_print_array_elements): New function.
12710 * valprint.h (value_print_array_elements): Declare.
12711
4dba70ee
TT
127122020-03-13 Tom Tromey <tom@tromey.com>
12713
12714 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12715 * mips-tdep.c (mips_print_register): Use
12716 value_print_scalar_formatted.
12717
4f9ae810
TT
127182020-03-13 Tom Tromey <tom@tromey.com>
12719
12720 * valprint.h (value_print_scalar_formatted): Declare.
12721 * valprint.c (value_print_scalar_formatted): New function.
12722
156bfec9
TT
127232020-03-13 Tom Tromey <tom@tromey.com>
12724
12725 * valprint.h (generic_value_print): Declare.
12726 * valprint.c (generic_value_print): New function.
12727
2b4e573d
TT
127282020-03-13 Tom Tromey <tom@tromey.com>
12729
12730 * valprint.c (do_val_print): Call la_value_print_inner, if
12731 available.
12732 * rust-lang.c (rust_language_defn): Update.
12733 * p-lang.c (pascal_language_defn): Update.
12734 * opencl-lang.c (opencl_language_defn): Update.
12735 * objc-lang.c (objc_language_defn): Update.
12736 * m2-lang.c (m2_language_defn): Update.
12737 * language.h (struct language_defn) <la_value_print_inner>: New
12738 member.
12739 * language.c (unknown_language_defn, auto_language_defn): Update.
12740 * go-lang.c (go_language_defn): Update.
12741 * f-lang.c (f_language_defn): Update.
12742 * d-lang.c (d_language_defn): Update.
12743 * c-lang.c (c_language_defn, cplus_language_defn)
12744 (asm_language_defn, minimal_language_defn): Update.
12745 * ada-lang.c (ada_language_defn): Update.
12746
a1f6a07c
TT
127472020-03-13 Tom Tromey <tom@tromey.com>
12748
12749 * c-valprint.c (c_value_print): Use common_val_print.
12750
410cf315
TT
127512020-03-13 Tom Tromey <tom@tromey.com>
12752
12753 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12754
72a45c93
TT
127552020-03-13 Tom Tromey <tom@tromey.com>
12756
12757 * f-valprint.c (f77_print_array_1, f_val_print): Use
12758 common_val_print.
12759
040f66bd
TT
127602020-03-13 Tom Tromey <tom@tromey.com>
12761
12762 * riscv-tdep.c (riscv_print_one_register_info): Use
12763 common_val_print.
12764
a6e05a6c
TT
127652020-03-13 Tom Tromey <tom@tromey.com>
12766
12767 * mi/mi-main.c (output_register): Use common_val_print.
12768
3444c526
TT
127692020-03-13 Tom Tromey <tom@tromey.com>
12770
12771 * infcmd.c (default_print_one_register_info): Use
12772 common_val_print.
12773
c2a44efe
TT
127742020-03-13 Tom Tromey <tom@tromey.com>
12775
12776 * valprint.h (common_val_print_checked): Declare.
12777 * valprint.c (common_val_print_checked): New function.
12778 * stack.c (print_frame_arg): Use common_val_print_checked.
12779
b0c26e99
TT
127802020-03-13 Tom Tromey <tom@tromey.com>
12781
12782 * valprint.c (do_val_print): New function, from val_print.
12783 (val_print): Use do_val_print.
12784 (common_val_print): Use do_val_print.
12785
ce3acbe9
TT
127862020-03-13 Tom Tromey <tom@tromey.com>
12787
12788 * valprint.c (value_print): Use scoped_value_mark.
12789
96c7f873
TV
127902020-03-13 Tom de Vries <tdevries@suse.de>
12791
12792 PR symtab/25646
12793 * psymtab.c (partial_symtab::partial_symtab): Don't set
12794 globals_offset and statics_offset. Push element onto
12795 current_global_psymbols and current_static_psymbols stacks.
12796 (concat): New function.
12797 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12798 element from current_global_psymbols and current_static_psymbols
12799 stacks. Concat popped elements to global_psymbols and
12800 static_symbols.
12801 (add_psymbol_to_list): Use current_global_psymbols and
12802 current_static_psymbols stacks.
12803 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12804 current_static_psymbols fields.
12805
6ba0a321
CB
128062020-03-12 Christian Biesinger <cbiesinger@google.com>
12807
12808 * corelow.c (sniff_core_bfd): Remove.
12809 (class core_target) <m_core_vec>: Remove.
12810 (core_target::core_target): Update.
12811 (core_file_fns): Remove.
12812 (deprecated_add_core_fns): Remove.
12813 (default_core_sniffer): Remove.
12814 (sniff_core_bfd): Remove.
12815 (default_check_format): Remove.
12816 (gdb_check_format): Remove.
12817 (core_target_open): Update.
12818 (core_target::get_core_register_section): Update.
12819 (get_core_registers_cb): Update.
12820 (core_target::fetch_registers): Update.
12821 * gdbcore.h (struct core_fns): Remove.
12822 (deprecated_add_core_fns): Remove.
12823 (default_core_sniffer): Remove.
12824 (default_check_format): Remove.
12825
227031b2
TT
128262020-03-12 Tom Tromey <tom@tromey.com>
12827
12828 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12829 CORE_ADDR.
12830 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12831
53807e9f
TT
128322020-03-12 Tom Tromey <tom@tromey.com>
12833
12834 * remote.c (remote_target::download_tracepoint)
12835 (remote_target::enable_tracepoint)
12836 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12837 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12838 sprintf_vma.
12839
64f25102
TT
128402020-03-12 Tom Tromey <tom@tromey.com>
12841
12842 * symfile-mem.c: Update CORE_ADDR size assert.
12843
272cd5a3
SM
128442020-03-12 Simon Marchi <simon.marchi@efficios.com>
12845
12846 * selftest.m4: Move to gdbsupport/.
12847 * acinclude.m4: Update path to selftest.m4.
12848
74cd3f9d
SM
128492020-03-12 Simon Marchi <simon.marchi@efficios.com>
12850
12851 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12852 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12853 gdbarch-selfselftests.c and selftest-arch.c.
12854 (SUBDIR_UNITTESTS_OBS): Rename to...
12855 (SELFTESTS_OBS): ... this.
12856 (COMMON_SFILES): Remove disasm-selftests.c and
12857 gdbarch-selftests.c.
12858 * configure.ac: Don't add selftest-arch.{c,o} to
12859 CONFIG_{SRCS,OBS}.
12860 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12861 preprocessor conditions.
12862
db6878ac
SM
128632020-03-12 Simon Marchi <simon.marchi@efficios.com>
12864
12865 * configure.ac: Don't source bfd/development.sh.
12866 * selftest.m4: Modify comment.
12867 * configure: Re-generate.
12868
4d696a5c
SM
128692020-03-12 Simon Marchi <simon.marchi@efficios.com>
12870
12871 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12872 not "true" or "false".
12873 * configure: Re-generate.
12874
8dd8e1c7
CB
128752020-03-12 Christian Biesinger <cbiesinger@google.com>
12876
12877 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12878 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12879 renamed to arm_nbsd_supply_gregset.
12880 (fetch_register): Update to call arm_nbsd_supply_gregset.
12881 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12882 (arm_netbsd_nat_target::fetch_registers): Update.
12883 (fetch_elfcore_registers): Removed.
12884 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12885 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12886 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12887 not require NetBSD system headers.
12888 (arm_nbsd_regset): New struct.
12889 (arm_nbsd_iterate_over_regset_sections): New function.
12890 (arm_netbsd_init_abi_common): Updated to call
12891 set_gdbarch_iterate_over_regset_sections.
12892 * arm-nbsd-tdep.h: New file.
12893
dd69bf7a
KB
128942020-03-11 Kevin Buettner <kevinb@redhat.com>
12895
12896 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12897 recursion.
12898
a0761e34
SM
128992020-03-11 Simon Marchi <simon.marchi@efficios.com>
12900
12901 * configure: Re-generate.
12902
e7a82140
TT
129032020-03-11 Tom Tromey <tromey@adacore.com>
12904
12905 * ada-typeprint.c (print_choices): Fix comment.
12906
dcc050c8
AB
129072020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12908
12909 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12910 previous item in the list, when the list has no items.
12911
1c33af77
TV
129122020-03-11 Tom de Vries <tdevries@suse.de>
12913
12914 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12915 PROP_LOCLIST handling code.
12916
8c95582d
AB
129172020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12918
12919 * buildsym-legacy.c (record_line): Pass extra parameter to
12920 record_line.
12921 * buildsym.c (buildsym_compunit::record_line): Take an extra
12922 parameter, reduce duplication in the line table, and record the
12923 is_stmt flag in the line table.
12924 * buildsym.h (buildsym_compunit::record_line): Add extra
12925 parameter.
12926 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12927 non-statement lines.
12928 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12929 this to the symtab builder.
12930 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12931 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12932 through to dwarf_record_line_1.
12933 * infrun.c (process_event_stop_test): When stepping, don't stop at
12934 a non-statement instruction, and only refresh the step info when
12935 we land in the middle of a line's range. Also add an extra
12936 comment.
12937 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12938 field.
12939 * record-btrace.c (btrace_find_line_range): Only record lines
12940 marked as is-statement.
12941 * stack.c (frame_show_address): Show the frame address if we are
12942 in a non-statement sal.
12943 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12944 (maintenance_print_one_line_table): Print a header for the is_stmt
12945 column, and include is_stmt information in the output.
12946 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12947 preference to non-statements.
12948 (find_pcs_for_symtab_line): Prefer is-statement entries.
12949 (find_line_common): Likewise.
12950 * symtab.h (struct linetable_entry): Add is_stmt field.
12951 (struct symtab_and_line): Likewise.
12952 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12953 arranging the line table.
12954
e4003a34
TV
129552020-03-07 Tom de Vries <tdevries@suse.de>
12956
12957 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12958 DIE.
12959
e8932576
TT
129602020-03-07 Tom Tromey <tom@tromey.com>
12961
12962 * valops.c (value_literal_complex): Remove obsolete comment.
12963 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12964 comment.
12965
29734269
SM
129662020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12967
12968 * infrun.h: Forward-declare thread_info.
12969 (set_step_info): Add thread_info parameter, add doc.
12970 * infrun.c (set_step_info): Add thread_info parameter, move doc
12971 to header.
12972 * infrun.c (process_event_stop_test): Pass thread to
12973 set_step_info call.
12974 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12975 set_step_info.
12976 (prepare_one_step): Add thread_info parameter, pass it to
12977 set_step_frame and prepare_one_step (recursive) call.
12978 (step_1): Pass thread to prepare_one_step call.
12979 (step_command_fsm::should_stop): Pass thread to
12980 prepare_one_step.
12981 (until_next_fsm): Pass thread to set_step_frame call.
12982 (finish_command): Pass thread to set_step_info call.
12983
b7d64b29
HD
129842020-03-06 Hannes Domani <ssbssa@yahoo.de>
12985
12986 * windows-tdep.c (windows_solib_create_inferior_hook):
12987 Check if inferior is running.
12988
09f2921c
TV
129892020-03-06 Tom de Vries <tdevries@suse.de>
12990
12991 * NEWS: Fix "the the".
12992 * ctfread.c: Same.
12993
fd760e79
TV
129942020-03-06 Tom de Vries <tdevries@suse.de>
12995
12996 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12997
20ea4a60
AB
129982020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12999
13000 * .dir-locals.el: Add a comment referencing the other copies of
13001 this file.
13002
0afbabf0
JB
130032020-03-05 John Baldwin <jhb@FreeBSD.org>
13004
13005 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13006 psargs.
13007
842806cb
TBA
130082020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13009
13010 * .gitattributes: New file.
13011
be1e3d3e
TT
130122020-03-04 Tom Tromey <tom@tromey.com>
13013
13014 * symmisc.c (print_symbol_bcache_statistics)
13015 (print_objfile_statistics): Update.
13016 * symfile.c (allocate_symtab): Use intern.
13017 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13018 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13019 macro_cache>: Remove.
13020 <string_cache>: New member.
13021 (struct objfile) <intern>: New methods.
13022 * elfread.c (elf_symtab_read): Use intern.
13023 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13024 (dwarf2_compute_name, dwarf2_physname)
13025 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13026 names.
13027 (guess_partial_die_structure_name): Update.
13028 (partial_die_info::fixup): Intern name.
13029 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13030 name.
13031 (dwarf2_name): Intern name. Update.
13032 * buildsym.c (buildsym_compunit::get_macro_table): Use
13033 string_cache.
13034
4e7625fd
TT
130352020-03-04 Tom Tromey <tom@tromey.com>
13036
13037 * jit.c (bfd_open_from_target_memory): Make "target" const.
13038 * corefile.c (gnutarget): Now const.
13039 * gdbcore.h (gnutarget): Now const.
13040
46f9f931
HD
130412020-03-04 Hannes Domani <ssbssa@yahoo.de>
13042
13043 * NEWS: Mention support for WOW64 processes.
13044 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13045 (amd64_windows_segment_register_p): Remove static.
13046 (_initialize_amd64_windows_nat): Update.
13047 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13048 * i386-windows-nat.c (context_offset): Update.
13049 (i386_mappings): Rename and remove static.
13050 (i386_windows_segment_register_p): Remove static.
13051 (_initialize_i386_windows_nat): Update.
13052 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13053 (STATUS_WX86_SINGLE_STEP): New macro.
13054 (EnumProcessModulesEx): New macro.
13055 (Wow64SuspendThread): New macro.
13056 (Wow64GetThreadContext): New macro.
13057 (Wow64SetThreadContext): New macro.
13058 (Wow64GetThreadSelectorEntry): New macro.
13059 (windows_set_context_register_offsets): Add static.
13060 (windows_set_segment_register_p): Likewise.
13061 (windows_add_thread): Adapt for WOW64 processes.
13062 (windows_fetch_one_register): Likewise.
13063 (windows_nat_target::fetch_registers): Likewise.
13064 (windows_store_one_register): Likewise.
13065 (display_selector): Likewise.
13066 (display_selectors): Likewise.
13067 (handle_exception): Likewise.
13068 (windows_continue): Likewise.
13069 (windows_nat_target::resume): Likewise.
13070 (windows_add_all_dlls): Likewise.
13071 (do_initial_windows_stuff): Likewise.
13072 (windows_nat_target::attach): Likewise.
13073 (windows_get_exec_module_filename): Likewise.
13074 (windows_nat_target::create_inferior): Likewise.
13075 (windows_xfer_siginfo): Likewise.
13076 (_initialize_loadable): Initialize Wow64SuspendThread,
13077 Wow64GetThreadContext, Wow64SetThreadContext,
13078 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13079 * windows-nat.h (windows_set_context_register_offsets):
13080 Remove declaration.
13081 (windows_set_segment_register_p): Likewise.
13082 (i386_windows_segment_register_p): Add declaration.
13083 (amd64_windows_segment_register_p): Likewise.
13084
440cf44e
LM
130852020-03-04 Luis Machado <luis.machado@linaro.org>
13086
13087 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13088 in "info registers" for AArch64/ARM.
13089
13090 The change caused "info registers" to not print GPR's.
13091
13092 gdb/ChangeLog:
13093
13094 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13095
13096 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13097 when reg->group is empty and reggroup is not.
13098
1009d92f
TT
130992020-03-03 Tom Tromey <tromey@adacore.com>
13100
13101 * dwarf2/frame.c (struct dwarf2_frame_cache)
13102 <checked_tailcall_bottom, entry_cfa_sp_offset,
13103 entry_cfa_sp_offset_p>: Remove members.
13104 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13105 (dwarf2_frame_prev_register): Don't call
13106 dwarf2_tailcall_sniffer_first.
13107 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13108 * frame-unwind.c (add_unwinder): New fuction.
13109 (frame_unwind_init): Use it. Add tailcall unwinder.
13110
5e5d66b6
AB
131112020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13112 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13113
13114 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13115 value should be printed as true.
13116
584cf46d
HD
131172020-03-03 Hannes Domani <ssbssa@yahoo.de>
13118
13119 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13120 (windows_init_abi): Set and use windows_so_ops.
13121
7b973adc
SDJ
131222020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13123
13124 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13125 when verifying if dealing with a convenience variable.
13126
bb7b70ab
LM
131272020-03-03 Luis Machado <luis.machado@linaro.org>
13128
13129 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13130
9822cb57
SM
131312020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13132
13133 * infrun.c (gdbarch_supports_displaced_stepping): New.
13134 (use_displaced_stepping): Break up conditions in smaller pieces.
13135 Use gdbarch_supports_displaced_stepping.
13136 (displaced_step_prepare_throw): Use
13137 gdbarch_supports_displaced_stepping.
13138
63e163f2
AB
131392020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13140
13141 * NEWS: Mention new behaviour of the history filename.
13142 * top.c (write_history_p): Add comment.
13143 (show_write_history_p): Add header comment, give a different
13144 message when history writing is on, but the history filename is
13145 empty.
13146 (history_filename): Add comment.
13147 (history_filename_empty): New function.
13148 (show_history_filename): Add header comment, give a different
13149 message when the filename is empty.
13150 (init_history): Compare history_filename against nullptr, and only
13151 read history if the filename is not empty.
13152 (set_history_filename): Add header comment, and only make
13153 non-empty filenames absolute.
13154 (init_main): Make the filename argument to 'set history filename'
13155 optional.
13156
81b86b97
CB
131572020-03-02 Christian Biesinger <cbiesinger@google.com>
13158
13159 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13160 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13161 (fetch_fp_register): Update.
13162 (fetch_fp_regs): Update.
13163 (store_fp_register): Update.
13164 (store_fp_regs): Update.
13165 (arm_netbsd_nat_target::read_description): New function.
13166 (fetch_elfcore_registers): Update.
13167
24ed6739
AB
131682020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13169
13170 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13171 general_thread if the stop reply is missing a thread-id.
13172 (remote_target::process_stop_reply): Use the first non-exited
13173 thread if the target didn't pass a thread-id.
13174 * infrun.c (do_target_wait): Move call to
13175 switch_to_inferior_no_thread to ....
13176 (do_target_wait_1): ... here.
13177
a84bb2a0
JT
131782020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13179
13180 * debuginfod-support.c: Include defs.h first.
13181
658dadf0
TV
131822020-02-28 Tom de Vries <tdevries@suse.de>
13183
13184 * symfile.c (set_initial_language): Use default language for lookup.
13185
4ebe4877
SM
131862020-02-28 Simon Marchi <simon.marchi@efficios.com>
13187
13188 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13189 reader variable, pass `this` to read_cutu_die_from_dwo.
13190
e5da1139
AM
131912020-02-27 Aaron Merey <amerey@redhat.com>
13192
13193 * source.c (open_source_file): Check for nullptr when computing
13194 srcpath.
13195
317f7127
TT
131962020-02-27 Tom Tromey <tromey@adacore.com>
13197
13198 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13199 member.
13200 (dwarf2_add_field): Don't update nfields.
13201 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13202
3104d9ee
AB
132032020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13204
13205 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13206 abs.
13207
b83470bf
TT
132082020-02-26 Tom Tromey <tom@tromey.com>
13209
13210 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13211 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13212 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13213 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13214 per_cu_data.
13215
edfe0a0c
TT
132162020-02-26 Tom Tromey <tom@tromey.com>
13217
13218 * dwarf2/index-write.c (psym_index_map): Change type.
13219 (add_address_entry_worker, write_one_signatured_type)
13220 (recursively_count_psymbols, recursively_write_psymbols)
13221 (class debug_names, psyms_seen_size, write_gdbindex)
13222 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13223
0d79cdc4
AM
132242020-02-26 Aaron Merey <amerey@redhat.com>
13225
13226 * Makefile.in: Handle optional debuginfod support.
13227 * NEWS: Update.
13228 * README: Add --with-debuginfod summary.
13229 * config.in: Regenerate.
13230 * configure: Regenerate.
13231 * configure.ac: Handle optional debuginfod support.
13232 * debuginfod-support.c: debuginfod helper functions.
13233 * debuginfod-support.h: Ditto.
13234 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13235 summary.
13236 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13237 when a dwz file cannot be found.
13238 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13239 debuginfo file cannot be found.
13240 * source.c (open_source_file): Query debuginfod servers when a
13241 source file cannot be found.
13242 * top.c (print_gdb_configuration): Include
13243 --{with,without}-debuginfod in the output.
13244
b65ce565
JG
132452020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13246
13247 * thread.c (thr_try_catch_cmd): Print thread name.
13248
d4c9a4f8
SM
132492020-02-26 Simon Marchi <simon.marchi@efficios.com>
13250
13251 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13252 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13253 dwarf2_fetch_die_type_sect_off): Move to...
13254 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13255 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13256 dwarf2_fetch_die_type_sect_off): ... here.
13257 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13258 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13259 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13260
0dce4280
TV
132612020-02-26 Tom de Vries <tdevries@suse.de>
13262
13263 PR gdb/25603
13264 * symfile.c (set_initial_language): Exit-early if
13265 language_mode == language_mode_manual.
13266
450a1bfc
SM
132672020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13268
13269 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13270 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13271 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13272
9e80cfa1
AB
132732020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13274
13275 * gdbtypes.c (create_array_type_with_stride): Handle negative
13276 array strides.
13277 * valarith.c (value_subscripted_rvalue): Likewise.
13278
09624f1f
LM
132792020-02-25 Luis Machado <luis.machado@linaro.org>
13280
13281 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13282
8cb5117c
SM
132832020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13284
13285 * loc.h (dwarf2_get_die_type): Move to...
13286 * read.h (dwarf2_get_die_type): ... here.
13287 * read.c (dwarf2_get_die_type): Move doc to header.
13288
c325c44e
JB
132892020-02-25 Joel Brobecker <brobecker@adacore.com>
13290
13291 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13292 'gnulib/Makefile.in' to the list.
13293
4ac93832
TT
132942020-02-24 Tom Tromey <tom@tromey.com>
13295
13296 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13297 Remove.
13298 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13299 XOBNEWVEC.
13300
197400e8
TT
133012020-02-24 Tom Tromey <tom@tromey.com>
13302
13303 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13304 New method.
13305 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13306 (dw2_do_instantiate_symtab, dw2_get_file_names)
13307 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13308
76935768
TT
133092020-02-24 Tom Tromey <tom@tromey.com>
13310
13311 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13312 make_scoped_restore.
13313 (dwarf2_psymtab::read_symtab): Don't clear
13314 reading_partial_symbols.
13315
a88ef40d
TV
133162020-02-24 Tom de Vries <tdevries@suse.de>
13317
13318 PR gdb/25592
13319 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13320
c9af6521
TV
133212020-02-24 Tom de Vries <tdevries@suse.de>
13322
13323 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13324 commands layout next/prev/regs.
13325
5707a07a
TT
133262020-02-22 Tom Tromey <tom@tromey.com>
13327
13328 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13329 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13330
3b0fb49e
TT
133312020-02-22 Tom Tromey <tom@tromey.com>
13332
13333 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13334
283be8bf
TT
133352020-02-22 Tom Tromey <tom@tromey.com>
13336
13337 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13338 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13339 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13340 * tui/tui.c (_initialize_tui): Add usage text.
13341
ca793b96
TT
133422020-02-22 Tom Tromey <tom@tromey.com>
13343
13344 * tui/tui-win.c (tui_set_focus_command)
13345 (tui_set_win_height_command): Use error_no_arg.
13346 (_initialize_tui_win): Update help text.
13347 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13348
432b5c40
TT
133492020-02-22 Tom Tromey <tom@tromey.com>
13350
13351 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13352 * tui/tui-disasm.h (struct tui_disasm_window)
13353 <display_start_addr>: Declare.
13354 * tui/tui-source.h (struct tui_source_window)
13355 <display_start_addr>: Declare.
13356 * tui/tui-winsource.h (struct tui_source_window_base)
13357 <show_source_line, display_start_addr>: New methods.
13358 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13359 Rename and move to protected section.
13360 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13361 (tui_source_window_base::do_erase_source_content): Update.
13362 (tui_source_window_base::show_source_line): Now a method.
13363 (tui_source_window_base::show_source_content)
13364 (tui_source_window_base::tui_source_window_base)
13365 (tui_source_window_base::rerender)
13366 (tui_source_window_base::refill)
13367 (tui_source_window_base::do_scroll_horizontal)
13368 (tui_source_window_base::set_is_exec_point_at)
13369 (tui_source_window_base::update_breakpoint_info)
13370 (tui_source_window_base::update_exec_info): Update.
13371 * tui/tui-source.c (tui_source_window::set_contents)
13372 (tui_source_window::showing_source_p)
13373 (tui_source_window::do_scroll_vertical)
13374 (tui_source_window::location_matches_p)
13375 (tui_source_window::line_is_displayed): Update.
13376 (tui_source_window::display_start_addr): New method.
13377 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13378 (tui_disasm_window::do_scroll_vertical)
13379 (tui_disasm_window::location_matches_p): Update.
13380 (tui_disasm_window::display_start_addr): New method.
13381
01b1af32
TT
133822020-02-22 Tom Tromey <tom@tromey.com>
13383
13384 * NEWS: Add entry for gdb.register_window_type.
13385 * tui/tui-layout.h (window_factory): New typedef.
13386 (tui_register_window): Declare.
13387 * tui/tui-layout.c (saved_tui_windows): New global.
13388 (tui_apply_current_layout): Use it.
13389 (tui_register_window): New function.
13390 * python/python.c (do_start_initialization): Call
13391 gdbpy_initialize_tui.
13392 (python_GdbMethods): Add "register_window_type" function.
13393 * python/python-internal.h (gdbpy_register_tui_window)
13394 (gdbpy_initialize_tui): Declare.
13395 * python/py-tui.c: New file.
13396 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13397
fc96d20b
TT
133982020-02-22 Tom Tromey <tom@tromey.com>
13399
13400 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13401
935c78c0
TT
134022020-02-22 Tom Tromey <tom@tromey.com>
13403
13404 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13405 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13406 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13407 (tui_set_win_focus_to): Move from tui-win.c.
13408
0240c8f1
TT
134092020-02-22 Tom Tromey <tom@tromey.com>
13410
13411 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13412 functions.
13413 (known_window_types): New global.
13414 (tui_get_window_by_name): Reimplement.
13415 (initialize_known_windows): New function.
13416 (validate_window_name): Rewrite.
13417 (_initialize_tui_layout): Call initialize_known_windows.
13418
fdb01f0c
TT
134192020-02-22 Tom Tromey <tom@tromey.com>
13420
13421 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13422 Remove constants.
13423 * tui/tui-winsource.h (struct tui_source_window_base)
13424 <tui_source_window_base>: Remove parameter.
13425 * tui/tui-winsource.c
13426 (tui_source_window_base::tui_source_window_base): Remove
13427 parameter.
13428 (tui_source_window_base::refill): Update.
13429 * tui/tui-stack.h (struct tui_locator_window)
13430 <tui_locator_window>: Update.
13431 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13432 Default the constructor.
13433 * tui/tui-regs.h (struct tui_data_item_window)
13434 <tui_data_item_window>: Default the constructor.
13435 (struct tui_data_window) <tui_data_window>: Likewise.
13436 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13437 Default the constructor.
13438 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13439 Default the constructor.
13440 <type>: Remove.
13441 (struct tui_win_info) <tui_win_info>: Default the constructor.
13442 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13443 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13444 Default the constructor.
13445
865a5aec
TT
134462020-02-22 Tom Tromey <tom@tromey.com>
13447
13448 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13449 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13450 * tui/tui-win.c (tui_resize_all): Don't call
13451 tui_delete_invisible_windows.
13452 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13453 done.
13454 (tui_set_layout): Update.
13455 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13456 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13457 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13458
e098d18c
TT
134592020-02-22 Tom Tromey <tom@tromey.com>
13460
13461 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13462 correctly.
13463
eb9c8874
TT
134642020-02-22 Tom Tromey <tom@tromey.com>
13465
13466 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13467
7eed1a8e
TT
134682020-02-22 Tom Tromey <tom@tromey.com>
13469
13470 * tui/tui-winsource.h (struct tui_source_window_iterator)
13471 <inner_iterator>: New etytypedef.
13472 <tui_source_window_iterator>: Take "end" parameter.
13473 <tui_source_window_iterator>: Take iterator.
13474 <operator*, advance>: Update.
13475 <m_iter>: Change type.
13476 <m_end>: New field.
13477 (struct tui_source_windows) <begin, end>: Update.
13478 * tui/tui-layout.c (tui_windows): New global.
13479 (tui_apply_current_layout): Clear tui_windows.
13480 (tui_layout_window::apply): Update tui_windows.
13481 * tui/tui-data.h (tui_windows): Declare.
13482 (all_tui_windows): Now inline function.
13483 (class tui_window_iterator, struct all_tui_windows): Remove.
13484
7c043ba6
TT
134852020-02-22 Tom Tromey <tom@tromey.com>
13486
13487 PR tui/17850:
13488 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13489 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13490 "height" argument.
13491 (class tui_layout_window) <get_sizes>: Likewise.
13492 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13493 argument.
13494 <get_sizes>: Add "height" argument.
13495 <m_vertical>: New field.
13496 * tui/tui-layout.c (tui_layout_split::clone): Update.
13497 (tui_layout_split::get_sizes): Add "height" argument.
13498 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13499 (tui_new_layout_command): Parse "-horizontal".
13500 (_initialize_tui_layout): Update help string.
13501 (tui_layout_split::specification): Add "-horizontal" when needed.
13502 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13503 argument.
13504 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13505 New methods.
13506
6bc56648
TT
135072020-02-22 Tom Tromey <tom@tromey.com>
13508
13509 * tui/tui-layout.h (enum tui_adjust_result): New.
13510 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13511 (class tui_layout_window) <adjust_size>: Return
13512 tui_adjust_result. Rewrite.
13513 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13514 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13515
c22fef7e
TT
135162020-02-22 Tom Tromey <tom@tromey.com>
13517
13518 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13519 parameter and return types.
13520 (class tui_layout_base) <specification>: Add "depth".
13521 (class tui_layout_window) <specification>: Add "depth".
13522 (class tui_layout_split) <specification>: Add "depth".
13523 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13524 and return types.
13525 (tui_new_layout_command): Parse sub-layouts.
13526 (_initialize_tui_layout): Update help string.
13527 (tui_layout_window::specification): Add "depth".
13528 (add_layout_command): Update.
13529
ee325b61
TT
135302020-02-22 Tom Tromey <tom@tromey.com>
13531
13532 * NEWS: Add "tui new-layout" item.
13533 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13534 Add new-layout command to help text.
13535 (validate_window_name): New function.
13536 (tui_new_layout_command): New function.
13537 (_initialize_tui_layout): Register "new-layout".
13538 (tui_layout_window::specification): New method.
13539 (tui_layout_window::specification): New method.
13540 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13541 method.
13542 (class tui_layout_window) <specification>: New method.
13543 (class tui_layout_split) <specification>: New method.
13544
416eb92d
TT
135452020-02-22 Tom Tromey <tom@tromey.com>
13546
13547 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13548 * tui/tui-win.c (window_name_completer): Update comment.
13549 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13550 Declare method.
13551 (class tui_layout_window) <replace_window>: Likewise.
13552 (class tui_layout_split) <replace_window>: Likewise.
13553 (tui_set_layout): Don't declare.
13554 (tui_set_initial_layout): Declare function.
13555 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13556 (asm_regs_layout): New globals.
13557 (tui_current_layout, show_layout): Remove.
13558 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13559 (find_layout, tui_apply_layout): New function.
13560 (layout_completer): Remove.
13561 (tui_next_layout): Reimplement.
13562 (tui_next_layout_command): New function.
13563 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13564 (tui_regs_layout): Reimplement.
13565 (tui_regs_layout_command): New function.
13566 (extract_display_start_addr): Rewrite.
13567 (next_layout, prev_layout): Remove.
13568 (tui_layout_window::replace_window): New method.
13569 (tui_layout_split::replace_window): New method.
13570 (destroy_layout): New function.
13571 (layout_list): New global.
13572 (add_layout_command): New function.
13573 (initialize_layouts): Update.
13574 (tui_layout_command): New function.
13575 (_initialize_tui_layout): Install "layout" commands.
13576 * tui/tui-data.h (enum tui_layout_type): Remove.
13577 (tui_current_layout): Don't declare.
13578
0dbc2fc7
TT
135792020-02-22 Tom Tromey <tom@tromey.com>
13580
13581 * tui/tui-regs.c (tui_reg_layout): Remove.
13582 (tui_reg_command): Use tui_regs_layout.
13583 * tui/tui-layout.h (tui_reg_command): Declare.
13584 * tui/tui-layout.c (tui_reg_command): New function.
13585
5afe342e
TT
135862020-02-22 Tom Tromey <tom@tromey.com>
13587
13588 * tui/tui.c (tui_rl_delete_other_windows): Call
13589 tui_remove_some_windows.
13590 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13591 Declare method.
13592 (class tui_layout_window) <remove_windows>: New method.
13593 (class tui_layout_split) <remove_windows>: Declare.
13594 (tui_remove_some_windows): Declare.
13595 * tui/tui-layout.c (tui_remove_some_windows): New function.
13596 (tui_layout_split::remove_windows): New method.
13597
427326a8
TT
135982020-02-22 Tom Tromey <tom@tromey.com>
13599
13600 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13601 * tui/tui-layout.h (tui_next_layout): Declare.
13602 * tui/tui-layout.c (tui_next_layout): New function.
13603
3fe12b6d
TT
136042020-02-22 Tom Tromey <tom@tromey.com>
13605
13606 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13607 correct coordinates.
13608
59b8b5d2
TT
136092020-02-22 Tom Tromey <tom@tromey.com>
13610
13611 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13612 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13613 DATA_WIN case.
13614
2a3d458b
TT
136152020-02-22 Tom Tromey <tom@tromey.com>
13616
13617 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13618 TUI_DISASM_WIN, not tui_win_list.
13619
3f0cbb04
TT
136202020-02-22 Tom Tromey <tom@tromey.com>
13621
13622 * valprint.c (generic_val_print_enum_1)
13623 (val_print_type_code_flags): Style member names.
13624 * rust-lang.c (val_print_struct, rust_print_enum)
13625 (rust_print_struct_def, rust_internal_print_type): Style member
13626 names.
13627 * p-valprint.c (pascal_object_print_value_fields): Style member
13628 names. Only call fprintf_symbol_filtered for static members.
13629 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13630 * f-valprint.c (f_val_print): Style member names.
13631 * f-typeprint.c (f_type_print_base): Style member names.
13632 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13633 call fprintf_symbol_filtered for static members.
13634 (cp_print_class_member): Style member names.
13635 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13636 member names.
13637 * ada-valprint.c (ada_print_scalar): Style enum names.
13638 (ada_val_print_enum): Likewise.
13639 * ada-typeprint.c (print_enum_type): Style enum names.
13640
d4d947ae
TT
136412020-02-21 Tom Tromey <tom@tromey.com>
13642
13643 * psympriv.h (struct partial_symtab): Update comment.
13644
e94e944b
TT
136452020-02-21 Tom Tromey <tromey@adacore.com>
13646
13647 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13648 type is CORE_ADDR.
13649
1eb73179
TV
136502020-02-21 Tom de Vries <tdevries@suse.de>
13651
13652 PR gdb/25534
13653 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13654 if dependencies[i]->user != NULL.
13655
4f180d53
AT
136562020-02-21 Ali Tamur <tamur@google.com>
13657
13658 * dwarf2/read.c (dwarf2_name): Add null check.
13659
22b6cd70
TT
136602020-02-20 Tom Tromey <tom@tromey.com>
13661
13662 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13663 ">=", in binary search.
13664 (dwarf2_find_containing_comp_unit): New overload.
13665 (run_test): New self-test.
13666 (_initialize_dwarf2_read): Register new test.
13667
bd0cf5a6
NC
136682020-02-20 Nelson Chu <nelson.chu@sifive.com>
13669
13670 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13671 * riscv-tdep.h: Likewise.
13672 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13673 rv32-only CSR.
13674 * features/riscv/64bit-csr.xml: Regenerated.
13675
3f702acd
SDJ
136762020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13677 Tom Tromey <tom@tromey.com>
13678
13679 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13680 of 'fputc_unfiltered'.
13681 (putchar_unfiltered): Call 'fputc_unfiltered'.
13682 (fputc_unfiltered): Call 'fputs_unfiltered'.
13683
d13c7322
AB
136842020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13685
13686 * config.in: Regenerate.
13687 * configure: Regenerate.
13688 * configure.ac: Add --with-python-libdir option.
13689 * main.c: Use WITH_PYTHON_LIBDIR.
13690
869d8950
TT
136912020-02-19 Tom Tromey <tom@tromey.com>
13692
13693 * symtab.c (general_symbol_info::compute_and_set_names): Use
13694 obstack_strndup. Simplify call to symbol_set_demangled_name.
13695
298e9637
SM
136962020-02-19 Simon Marchi <simon.marchi@efficios.com>
13697
13698 * dwarf2/read.c (allocate_signatured_type_table,
13699 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13700 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13701 Remove objfile parameter, update all callers.
13702
08410482
DE
137032020-02-19 Doug Evans <dje@google.com>
13704
13705 PR rust/25535
13706 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13707 rust_enum_variant calculation.
13708
dfdeeca1
TT
137092020-02-19 Tom Tromey <tromey@adacore.com>
13710
13711 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13712
2ef5453b
TT
137132020-02-19 Tom Tromey <tromey@adacore.com>
13714
13715 * ada-lang.c (cache_symbol): Use obstack_strdup.
13716
9f1528a1
AB
137172020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13718
13719 * configure: Regenerate.
13720
d3c22fa8
TT
137212020-02-19 Tom Tromey <tromey@adacore.com>
13722
13723 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13724 NULL check.
13725
bf84f706
MR
137262020-02-19 Maciej W. Rozycki <macro@wdc.com>
13727
13728 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13729
d1c9b20f
AB
137302020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13731
13732 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13733 if GDBSERVER is not defined.
13734 (riscv_tdesc_cache): Likewise, also store const target_desc.
13735 (STATIC_IN_GDB): Define.
13736 (riscv_create_target_description): Update declaration with
13737 STATIC_IN_GDB.
13738 (riscv_lookup_target_description): New function, only define if
13739 GDBSERVER is not defined.
13740 * arch/riscv.h (riscv_create_target_description): Declare only
13741 when GDBSERVER is defined.
13742 (riscv_lookup_target_description): New declaration when GDBSERVER
13743 is not defined.
13744 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13745 (riscv_linux_read_features): ...this, and return
13746 riscv_gdbarch_features instead of target_desc.
13747 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13748 (riscv_linux_read_description): Rename to...
13749 (riscv_linux_read_features): ...this.
13750 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13751 Update to use riscv_gdbarch_features and
13752 riscv_lookup_target_description.
13753 * riscv-tdep.c (riscv_find_default_target_description): Use
13754 riscv_lookup_target_description instead of
13755 riscv_create_target_description.
13756
373d7ac0
SM
137572020-02-18 Simon Marchi <simon.marchi@efficios.com>
13758
13759 * valprint.c (generic_val_print_enum_1): When printing a flag
13760 enum with value 0 and there is no enumerator with value 0, print
13761 just "0" instead of "(unknown: 0x0)".
13762
b29a2df0
SM
137632020-02-18 Simon Marchi <simon.marchi@efficios.com>
13764
13765 * valprint.c (generic_val_print_enum_1): Print unknown part of
13766 flag enum in hex.
13767
6740f0cc
SM
137682020-02-18 Simon Marchi <simon.marchi@efficios.com>
13769
13770 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13771 flag enums to contain duplicate enumerators.
13772 * valprint.c (generic_val_print_enum_1): Update comment.
13773
edd45eb0
SM
137742020-02-18 Simon Marchi <simon.marchi@efficios.com>
13775
13776 * dwarf2/read.c: Include "count-one-bits.h".
13777 (update_enumeration_type_from_children): If an enumerator has
13778 multiple bits set, don't treat the enumeration as a "flag enum".
13779 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13780 of flag enums have 0 or 1 bit set.
13781
6d0cf446
BE
137822020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13783
13784 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13785 conversion.
13786 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13787 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13788 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13789 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13790 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13791
7001c1b7
SM
137922020-02-18 Simon Marchi <simon.marchi@efficios.com>
13793
13794 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13795
fdb61c6c
SM
137962020-02-14 Simon Marchi <simon.marchi@efficios.com>
13797
13798 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13799 displaced_step_closure_up.
13800 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13801 (struct displaced_step_closure_up):
13802 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13803 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13804 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13805 Likewise.
13806 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13807 * gdbarch.c, gdbarch.h: Re-generate.
13808 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13809 displaced_step_closure_up.
13810 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13811 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13812 * infrun.h (displaced_step_closure_up): New type alias.
13813 (struct displaced_step_inferior_state) <step_closure>: Change
13814 type to displaced_step_closure_up.
13815 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13816 displaced_step_closure_up.
13817 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13818
a4a38eb4
TT
138192020-02-14 Tom Tromey <tom@tromey.com>
13820
13821 * minidebug.c (gnu_debug_key): New global.
13822 (find_separate_debug_file_in_section): Use it.
13823
e8217e61
SM
138242020-02-14 Simon Marchi <simon.marchi@efficios.com>
13825
13826 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13827 std::unique_ptr.
13828 * gdbarch.c: Re-generate.
13829 * gdbarch.h: Re-generate.
13830 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13831 change.
13832 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13833 type to std::unique_ptr.
13834 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13835 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13836 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13837 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13838 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13839 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13840 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13841 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13842 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13843
d8d83535
SM
138442020-02-14 Simon Marchi <simon.marchi@efficios.com>
13845
13846 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13847 std::unique_ptr.
13848 (displaced_step_clear): Rename to...
13849 (displaced_step_reset): ... this. Just call displaced->reset ().
13850 (displaced_step_clear_cleanup): Rename to...
13851 (displaced_step_reset_cleanup): ... this.
13852 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13853 (displaced_step_fixup): Likewise.
13854 (resume_1): Likewise.
13855 (handle_inferior_event): Restore child's memory before calling
13856 displaced_step_fixup on the parent.
13857 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13858 to std::unique_ptr.
13859 <step_closure>: Change type to std::unique_ptr.
13860
5f661e03
SM
138612020-02-14 Simon Marchi <simon.marchi@efficios.com>
13862
13863 * arm-tdep.c: Include count-one-bits.h.
13864 (cleanup_block_store_pc): Use count_one_bits.
13865 (cleanup_block_load_pc): Use count_one_bits.
13866 (arm_copy_block_xfer): Use count_one_bits.
13867 (thumb2_copy_block_xfer): Use count_one_bits.
13868 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13869 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13870 (thumb_get_next_pcs_raw): Use count_one_bits.
13871 (arm_get_next_pcs_raw): Use count_one_bits_l.
13872 * arch/arm.c (bitcount): Remove.
13873 * arch/arm.h (bitcount): Remove.
13874
8084e579
TT
138752020-02-14 Tom Tromey <tromey@adacore.com>
13876
13877 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13878 Update.
13879 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13880 * dwarf2/loc.c (call_site_find_chain_1): Return
13881 unique_xmalloc_ptr.
13882 (call_site_find_chain): Likewise.
13883
258bf0ee
RB
138842020-02-14 Richard Biener <rguenther@suse.de>
13885
13886 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13887 on expression with division operators.
13888
f98a8458
AKS
138892020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13890
13891 * MAINTAINERS (Write After Approval): Adding myself.
13892
d1437c0e
TT
138932020-02-12 Tom Tromey <tom@tromey.com>
13894
13895 * event-loop.c (event_data, gdb_event, event_handler_func):
13896 Remove.
13897
3d4560f7
TT
138982020-02-12 Tom Tromey <tom@tromey.com>
13899
13900 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13901 (dwarf2_frame_objfile_data): Add comment.
13902 (find_comp_unit, set_comp_unit): New functions.
13903 (dwarf2_frame_find_fde): Use find_comp_unit.
13904 (dwarf2_build_frame_info): Use set_comp_unit.
13905
21982304
TT
139062020-02-12 Tom Tromey <tom@tromey.com>
13907
13908 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13909 (comp_unit): Don't initialize objfile.
13910 (execute_cfa_program): Add text_offset parameter.
13911 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13912 (dwarf2_frame_cache): Update.
13913 (dwarf2_build_frame_info): Don't set "objfile" member.
13914
4debb237
TT
139152020-02-12 Tom Tromey <tom@tromey.com>
13916
13917 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13918 (decode_frame_entry): Likewise.
13919 (dwarf2_build_frame_info): Update.
13920
0d404d44
TT
139212020-02-12 Tom Tromey <tom@tromey.com>
13922
13923 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13924 (decode_frame_entry_1): Use the comp_unit obstack.
13925
a7a3ae5c
TT
139262020-02-12 Tom Tromey <tom@tromey.com>
13927
13928 * dwarf2/frame.c (struct comp_unit): Add initializers and
13929 constructor.
13930 (dwarf2_frame_objfile_data): Store a comp_unit.
13931 (dwarf2_frame_find_fde): Update.
13932 (dwarf2_build_frame_info): Use "new".
13933
a9d65418
TT
139342020-02-12 Tom Tromey <tom@tromey.com>
13935
13936 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13937 (dwarf2_fde_table): Typedef for std::vector.
13938 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13939 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13940 (decode_frame_entry): Update.
13941 (dwarf2_build_frame_info): Use "new".
13942
7559c217
CB
139432020-02-12 Christian Biesinger <cbiesinger@google.com>
13944
13945 * arm-tdep.c (arm_gdbarch_init): Update.
13946 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13947 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13948 have_neon, is_m>: Change to bool.
13949
aeefc73c
CB
139502020-02-12 Christian Biesinger <cbiesinger@google.com>
13951
13952 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13953
d27b8e5f
TT
139542020-02-12 Tom Tromey <tom@tromey.com>
13955
13956 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13957
cd5900f3
HD
139582020-02-12 Hannes Domani <ssbssa@yahoo.de>
13959
13960 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13961 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13962
f056b22b
TT
139632020-02-11 Tom Tromey <tom@tromey.com>
13964
13965 * psymtab.h: Update comment.
13966
f92ff6b5
TT
139672020-02-11 Tom Tromey <tom@tromey.com>
13968
13969 * gdb_obstack.h (struct auto_obstack): Use
13970 DISABLE_COPY_AND_ASSIGN.
13971
3fd6912b
TT
139722020-02-11 Tom Tromey <tom@tromey.com>
13973
13974 * dwarf2/frame.h (struct objfile): Don't forward declare.
13975
69ed9b74
CB
139762020-02-11 Christian Biesinger <cbiesinger@google.com>
13977
13978 * cris-tdep.c (cris_supply_gregset): Change signature to match
13979 what struct regset expects.
13980 (cris_regset): New struct.
13981 (fetch_core_registers): Remove.
13982 (cris_iterate_over_regset_sections): New function.
13983 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13984 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13985
bda874f6
CB
139862020-02-11 Christian Biesinger <cbiesinger@google.com>
13987
13988 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13989 registers.
13990
754e1564
CB
139912020-02-11 Christian Biesinger <cbiesinger@google.com>
13992
13993 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13994
8ddd8e0e
SM
139952020-02-11 Simon Marchi <simon.marchi@efficios.com>
13996
13997 * configure: Re-generate.
13998
898e7f60
SM
139992020-02-11 Simon Marchi <simon.marchi@efficios.com>
14000
14001 * configure: Re-generate.
14002
58df732b
SM
140032020-02-11 Simon Marchi <simon.marchi@efficios.com>
14004
14005 * acinclude: Update warning.m4 path.
14006 * warning.m4: Move to gdbsupport.
14007
da5bd37e
TT
140082020-02-11 Tom Tromey <tromey@adacore.com>
14009
14010 * remote.c (remote_console_output): Update.
14011 * printcmd.c (printf_command): Update.
14012 * event-loop.c (gdb_wait_for_event): Update.
14013 * linux-nat.c (sigchld_handler): Update.
14014 * remote-sim.c (gdb_os_write_stdout): Update.
14015 (gdb_os_flush_stdout): Update.
14016 (gdb_os_flush_stderr): Update.
14017 (gdb_os_write_stderr): Update.
14018 * exceptions.c (print_exception): Update.
14019 * remote-fileio.c (remote_fileio_func_read): Update.
14020 (remote_fileio_func_write): Update.
14021 * tui/tui.c (tui_enable): Update.
14022 * tui/tui-interp.c (tui_interp::init): Update.
14023 * utils.c (init_page_info): Update.
14024 (putchar_unfiltered, fputc_unfiltered): Update.
14025 (gdb_flush): Update.
14026 (emit_style_escape): Update.
14027 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14028 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14029 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14030 (stderr_file::write): Update.
14031 (stderr_file::puts): Update.
14032 * ui-file.h (ui_file_isatty, ui_file_write)
14033 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14034 (ui_file_puts): Don't declare.
14035
85f0dd3c
TV
140362020-02-10 Tom de Vries <tdevries@suse.de>
14037
14038 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14039 sentinel to char *.
14040
2e927613
TV
140412020-02-09 Tom de Vries <tdevries@suse.de>
14042
14043 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14044 filename if it matches "<artificial>".
14045
6bafc845
HD
140462020-02-09 Hannes Domani <ssbssa@yahoo.de>
14047
14048 * windows-tdep.c (struct enum_value_name): New struct.
14049 (create_enum): New function.
14050 (windows_get_siginfo_type): Create and use enum types.
14051
7928d571
HD
140522020-02-09 Hannes Domani <ssbssa@yahoo.de>
14053
14054 * NEWS: Mention $_siginfo support for Windows.
14055 * windows-nat.c (handle_exception): Set siginfo_er.
14056 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14057 (windows_xfer_siginfo): New function.
14058 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14059 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14060 (init_windows_gdbarch_data): New function.
14061 (get_windows_gdbarch_data): New function.
14062 (windows_get_siginfo_type): New function.
14063 (windows_init_abi): Register windows_get_siginfo_type.
14064 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14065
6751ebae
TT
140662020-02-08 Tom Tromey <tom@tromey.com>
14067
14068 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14069 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14070 <keep>: Declare method.
14071 <m_keep>: Remove member.
14072 <~cutu_reader>: Remove.
14073 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14074 (cutu_reader::cutu_reader): Update.
14075 (cutu_reader::keep): Rename from ~cutu_reader.
14076 (process_psymtab_comp_unit, build_type_psymtabs_1)
14077 (process_skeletonless_type_unit, load_partial_comp_unit)
14078 (load_full_comp_unit, dwarf2_read_addr_index)
14079 (read_signatured_type): Update.
14080
135f5437
TT
140812020-02-08 Tom Tromey <tom@tromey.com>
14082
14083 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14084 "want_partial_unit" parameter.
14085 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14086 Inline check for DW_TAG_partial_unit.
14087 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14088
9f66ff1c
TT
140892020-02-08 Tom Tromey <tom@tromey.com>
14090
14091 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14092 read.c.
14093 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14094 read.c.
14095
c8a7a66f
TT
140962020-02-08 Tom Tromey <tom@tromey.com>
14097
14098 * dwarf2/read.c (read_address): Move to comp-unit.c.
14099 (dwarf2_rnglists_process, dwarf2_ranges_process)
14100 (read_attribute_value, dwarf_decode_lines_1)
14101 (var_decode_location, decode_locdesc): Update.
14102 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14103 read.c. Remove "cu" parameter.
14104 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14105 method.
14106
8266302d
TT
141072020-02-08 Tom Tromey <tom@tromey.com>
14108
14109 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14110 (read_indirect_line_string): Update.
14111 * dwarf2/comp-unit.c (read_offset): Remove.
14112 (read_comp_unit_head): Update.
14113 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14114 method.
14115 (read_offset): Don't declare.
14116
4057dfde
TT
141172020-02-08 Tom Tromey <tom@tromey.com>
14118
14119 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14120 * dwarf2/read.c (struct comp_unit_head): Move to
14121 dwarf2/comp-unit.h.
14122 (enum class rcuh_kind): Move to comp-unit.h.
14123 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14124 (read_comp_unit_head, error_check_comp_unit_head)
14125 (read_and_check_comp_unit_head): Move to comp-unit.c.
14126 (read_offset, dwarf_unit_type_name): Likewise.
14127 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14128 (cutu_reader::cutu_reader, read_call_site_scope)
14129 (find_partial_die, follow_die_offset): Update.
14130 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14131
24aa364d
TT
141322020-02-08 Tom Tromey <tom@tromey.com>
14133
14134 * dwarf2/read.c (read_offset_1): Move to leb.c.
14135 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14136 (dwarf_decode_macro_bytes): Update.
14137 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14138 * dwarf2/leb.h (read_offset): Declare.
14139
2c7d5afc
TT
141402020-02-08 Tom Tromey <tom@tromey.com>
14141
14142 * dwarf2/read.c (dwarf2_section_size): Remove.
14143 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14144 Update.
14145 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14146
4075cb26
TT
141472020-02-08 Tom Tromey <tom@tromey.com>
14148
14149 * dwarf2/read.c (read_initial_length): Move to leb.c.
14150 * dwarf2/leb.h (read_initial_length): Declare.
14151 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14152 handle_nonstd parameter.
14153 * dwarf2/frame.c (read_initial_length): Remove.
14154 (decode_frame_entry_1): Update.
14155
09ba997f
TT
141562020-02-08 Tom Tromey <tom@tromey.com>
14157
14158 * dwarf2/loc.c (dwarf2_find_location_expression)
14159 (dwarf_evaluate_loc_desc::get_tls_address)
14160 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14161 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14162 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14163 (dwarf2_compile_property_to_c)
14164 (dwarf2_loc_desc_get_symbol_read_needs)
14165 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14166 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14167 (loclist_describe_location, loclist_tracepoint_var_ref)
14168 (loclist_generate_c_location): Update.
14169 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14170 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14171 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14172 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14173 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14174 (dwarf2_per_cu_data::addr_size)
14175 (dwarf2_per_cu_data::ref_addr_size)
14176 (dwarf2_per_cu_data::text_offset)
14177 (dwarf2_per_cu_data::addr_type): Now methods.
14178 (per_cu_header_read_in): Make per_cu "const".
14179 (dwarf2_version): Remove.
14180 (dwarf2_per_cu_data::int_type): Now a method.
14181 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14182 (set_die_type, read_array_type, read_subrange_index_type)
14183 (read_tag_string_type, read_subrange_type): Update.
14184 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14185 offset_size, ref_addr_size, text_offset, addr_type, version,
14186 objfile, int_type, addr_sized_int_type>: Declare methods.
14187
96c738c0
TT
141882020-02-08 Tom Tromey <tom@tromey.com>
14189
14190 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14191 Move earlier.
14192
8fdd972c
TT
141932020-02-08 Tom Tromey <tom@tromey.com>
14194
14195 * dwarf2/read.h (dwarf_line_debug): Declare.
14196 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14197 * dwarf2/read.c: Move line_header code to new files.
14198 (dwarf_line_debug): No longer static.
14199 * dwarf2/line-header.c: New file.
14200 * dwarf2/line-header.h: New file.
14201
03075812
TT
142022020-02-08 Tom Tromey <tom@tromey.com>
14203
14204 * dwarf2/read.c (struct line_header) <file_full_name,
14205 file_file_name>: Return unique_xmalloc_ptr.
14206 (line_header::file_file_name): Update.
14207 (line_header::file_full_name): Update.
14208 (dw2_get_file_names_reader): Update.
14209 (macro_start_file): Update.
14210
bb822404
TT
142112020-02-08 Tom Tromey <tom@tromey.com>
14212
14213 * dwarf2/read.c (struct line_header) <file_full_name,
14214 file_file_name>: Declare methods.
14215 (dw2_get_file_names_reader): Update.
14216 (file_file_name): Now a method.
14217 (file_full_name): Likewise.
14218 (macro_start_file): Update.
14219
009b64fc
TT
142202020-02-08 Tom Tromey <tom@tromey.com>
14221
14222 * dwarf2/read.c (dwarf_always_disassemble)
14223 (show_dwarf_always_disassemble): Move to loc.c.
14224 (_initialize_dwarf2_read): Move "always-disassemble" registration
14225 to loc.c.
14226 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14227 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14228 static.
14229 (show_dwarf_always_disassemble): Move from read.c.
14230 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14231
5895093f
TT
142322020-02-08 Tom Tromey <tom@tromey.com>
14233
14234 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14235 (create_quick_file_names_table): Return htab_up.
14236 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14237 Update.
14238 * dwarf2/read.h (struct dwarf2_per_objfile)
14239 <quick_file_names_table>: Now htab_up.
14240
b3b32279
TT
142412020-02-08 Tom Tromey <tom@tromey.com>
14242
14243 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14244
1d33d811
TT
142452020-02-08 Tom Tromey <tom@tromey.com>
14246
14247 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14248 Rewrite.
14249 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14250 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14251 (abbrev_table::abbrev_table): No longer inline.
14252 (ABBREV_HASH_SIZE): Remove.
14253 (abbrev_table::m_abbrevs): Now an htab_up.
14254
86de1d91
TT
142552020-02-08 Tom Tromey <tom@tromey.com>
14256
14257 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14258 (cutu_reader): Update.
14259 (build_type_psymtabs_1): Update.
14260 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14261 (abbrev_table::alloc_abbrev): Update.
14262 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14263 (abbrev_table::read): New static method, renamed from
14264 abbrev_table_read_table.
14265 (abbrev_table::alloc_abbrev)
14266 (abbrev_table::add_abbrev): Now private.
14267 (abbrev_table::abbrev_table): Now private.
14268 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14269
0335378b
TT
142702020-02-08 Tom Tromey <tom@tromey.com>
14271
14272 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14273 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14274 htab_up.
14275
48b490f2
TT
142762020-02-08 Tom Tromey <tom@tromey.com>
14277
14278 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14279 htab_up.
14280 (lookup_dwo_unit_in_dwp): Update.
14281 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14282 on obstack.
14283
bc68fb19
TT
142842020-02-08 Tom Tromey <tom@tromey.com>
14285
14286 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14287 obstack.
14288
d15acc42
TT
142892020-02-08 Tom Tromey <tom@tromey.com>
14290
14291 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14292 line_header_hash.
14293 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14294 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14295 Change type to htab_up.
14296
eaa5fa8b
TT
142972020-02-08 Tom Tromey <tom@tromey.com>
14298
14299 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14300 htab_up. Don't allocate on obstack.
14301 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14302 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14303 Change type to htab_up.
14304
b0b6a987
TT
143052020-02-08 Tom Tromey <tom@tromey.com>
14306
14307 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14308 Change type to htab_up.
14309 * dwarf2/read.c (create_signatured_type_table_from_index)
14310 (create_signatured_type_table_from_debug_names)
14311 (create_all_type_units, add_type_unit)
14312 (lookup_dwo_signatured_type, lookup_signatured_type)
14313 (process_skeletonless_type_unit): Update.
14314 (create_debug_type_hash_table, create_debug_types_hash_table):
14315 Change type of types_htab.
14316 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14317 htab_up. Don't allocate on obstack.
14318 (create_cus_hash_table): Change type of cus_htab parameter.
14319 (struct dwo_file) <cus, tus>: Now htab_up.
14320 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14321 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14322 (queue_and_load_all_dwo_tus): Update.
14323 * dwarf2/index-write.c (write_gdbindex): Update.
14324 (write_debug_names): Update.
14325
39856def
TT
143262020-02-08 Tom Tromey <tom@tromey.com>
14327
14328 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14329 dwarf2/read.c. Remove "next" member. Add constructor ntad
14330 destructor.
14331 (struct dwarf2_per_objfile) <queue>: New member.
14332 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14333 dwarf2/read.h.
14334 (dwarf2_queue, dwarf2_queue_tail): Remove.
14335 (class dwarf2_queue_guard): Add parameter to constructor. Use
14336 DISABLE_COPY_AND_ASSIGN.
14337 <m_per_objfile>: New member.
14338 <~dwarf2_queue_guard>: Rewrite.
14339 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14340 Update.
14341 (~dwarf2_queue_item): New.
14342
3e225074
TT
143432020-02-08 Tom Tromey <tom@tromey.com>
14344
14345 * dwarf2/read.c (struct die_info) <has_children>: New member.
14346 (dw2_get_file_names_reader): Remove has_children.
14347 (dw2_get_file_names): Update.
14348 (read_cutu_die_from_dwo): Remove has_children.
14349 (cutu_reader::init_tu_and_read_dwo_dies)
14350 (cutu_reader::cutu_reader): Update.
14351 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14352 Remove has_children.
14353 (build_type_psymtabs_1, process_skeletonless_type_unit)
14354 (load_partial_comp_unit, load_full_comp_unit): Update.
14355 (create_dwo_cu_reader): Remove has_children.
14356 (create_cus_hash_table, read_die_and_children): Update.
14357 (read_full_die_1,read_full_die): Remove has_children.
14358 (read_signatured_type): Update.
14359 (class cutu_reader) <has_children>: Remove.
14360
82ca8957
TT
143612020-02-08 Tom Tromey <tom@tromey.com>
14362
14363 * dwarf2/expr.c: Rename from dwarf2expr.c.
14364 * dwarf2/expr.h: Rename from dwarf2expr.h.
14365 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14366 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14367 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14368 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14369 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14370 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14371 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14372 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14373 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14374 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14375 * dwarf2/loc.c: Rename from dwarf2loc.c.
14376 * dwarf2/loc.h: Rename from dwarf2loc.h.
14377 * dwarf2/read.c: Rename from dwarf2read.c.
14378 * dwarf2/read.h: Rename from dwarf2read.h.
14379 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14380 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14381 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14382 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14383 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14384 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14385 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14386 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14387 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14388 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14389 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14390 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14391 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14392 Update.
14393 * Makefile.in (COMMON_SFILES): Update.
14394 (HFILES_NO_SRCDIR): Update.
14395
9e35d499
TT
143962020-02-08 Tom Tromey <tom@tromey.com>
14397
14398 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14399 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14400
1eba2311
TT
144012020-02-08 Tom Tromey <tom@tromey.com>
14402
14403 * dwarf2read.h (struct die_info): Don't declare.
14404
e41c2da2
TT
144052020-02-08 Tom Tromey <tom@tromey.com>
14406
14407 * dwarf2read.h (die_info_ptr): Remove typedef.
14408
4fc6c0d5
TT
144092020-02-08 Tom Tromey <tom@tromey.com>
14410
14411 * dwarf2read.c (read_call_site_scope)
14412 (handle_data_member_location, dwarf2_add_member_fn)
14413 (mark_common_block_symbol_computed, read_common_block)
14414 (attr_to_dynamic_prop, partial_die_info::read)
14415 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14416 (dwarf2_symbol_mark_computed, set_die_type): Update.
14417 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14418 method.
14419 (attr_form_is_block): Don't declare.
14420 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14421
cd6c91b4
TT
144222020-02-08 Tom Tromey <tom@tromey.com>
14423
14424 * dwarf2read.c (dwarf2_find_base_address, )
14425 (read_call_site_scope, rust_containing_type)
14426 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14427 (handle_data_member_location, dwarf2_add_member_fn)
14428 (get_alignment, read_structure_type, process_structure_scope)
14429 (mark_common_block_symbol_computed, read_common_block)
14430 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14431 (partial_die_info::read, read_attribute_value, new_symbol)
14432 (lookup_die_type, dwarf2_get_ref_die_offset)
14433 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14434 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14435 (dwarf2_symbol_mark_computed): Update.
14436 * dwarf2/attribute.h (struct attribute) <value_as_address,
14437 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14438 methods.
14439 (value_as_address, attr_form_is_section_offset)
14440 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14441 * dwarf2/attribute.c (attribute::value_as_address)
14442 (attribute::form_is_section_offset, attribute::form_is_constant)
14443 (attribute::form_is_ref): Now methods.
14444
162dce55
TT
144452020-02-08 Tom Tromey <tom@tromey.com>
14446
14447 * dwarf2read.c (struct attribute, DW_STRING)
14448 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14449 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14450 (attr_form_is_block, attr_form_is_section_offset)
14451 (attr_form_is_constant, attr_form_is_ref): Move.
14452 * dwarf2/attribute.h: New file.
14453 * dwarf2/attribute.c: New file, from dwarf2read.c.
14454 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14455
3054dd54
TT
144562020-02-08 Tom Tromey <tom@tromey.com>
14457
14458 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14459 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14460 Move.
14461 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14462 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14463 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14464 abbrev.c.
14465 * dwarf2/abbrev.h: New file.
14466 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14467 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14468
96b79293
TT
144692020-02-08 Tom Tromey <tom@tromey.com>
14470
14471 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14472 (dwarf2_section_size, dwarf2_get_section_info)
14473 (create_signatured_type_table_from_debug_names)
14474 (create_addrmap_from_aranges, read_debug_names_from_section)
14475 (get_gdb_index_contents_from_section, read_comp_unit_head)
14476 (error_check_comp_unit_head, read_abbrev_offset)
14477 (create_debug_type_hash_table, init_cu_die_reader)
14478 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14479 (read_comp_units_from_section, create_cus_hash_table)
14480 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14481 (create_dwp_v2_section, dwarf2_rnglists_process)
14482 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14483 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14484 (read_indirect_string_from_dwz, read_addr_index_1)
14485 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14486 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14487 (fill_in_loclist_baton): Update.
14488 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14489 get_containing_section, get_bfd_owner, get_bfd_section,
14490 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14491 (dwarf2_read_section, get_section_name, get_section_file_name)
14492 (get_containing_section, get_section_bfd_owner)
14493 (get_section_bfd_section, get_section_name, get_section_file_name)
14494 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14495 declare.
14496 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14497 (dwarf2_section_info::get_bfd_owner)
14498 (dwarf2_section_info::get_bfd_section)
14499 (dwarf2_section_info::get_name)
14500 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14501 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14502 (dwarf2_section_info::read): Now methods.
14503 * dwarf-index-write.c (class debug_names): Update.
14504
2c86cff9
TT
145052020-02-08 Tom Tromey <tom@tromey.com>
14506
14507 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14508 Move to dwarf2/section.h.
14509 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14510 (get_section_bfd_section, get_section_name)
14511 (get_section_file_name, get_section_id, get_section_flags)
14512 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14513 dwarf2/section.c.
14514 * dwarf2/section.h: New file.
14515 * dwarf2/section.c: New file, from dwarf2read.c.
14516 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14517
f4382c45
TT
145182020-02-08 Tom Tromey <tom@tromey.com>
14519
14520 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14521 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14522 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14523 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14524 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14525 * dwarf2/leb.h: New file, from dwarf2read.c.
14526 * dwarf2/leb.c: New file, from dwarf2read.c.
14527 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14528 Remove.
14529 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14530 (COMMON_SFILES): Add dwarf2/leb.c.
14531
01840b7a
JB
145322020-02-08 Joel Brobecker <brobecker@adacore.com>
14533
14534 GDB 9.1 released.
14535
dfcb27e4
IB
145362020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14537
14538 PR gdb/25190:
aac66a4c
SM
14539 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14540 * gdb/remote.c (remote_console_output): Update.
14541 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14542 (ui_file_puts): ...this.
14543 * gdb/ui-file.h (ui_file_puts): Add declaration.
14544 * gdb/utils.c (emit_style_escape): Update.
14545 (flush_wrap_buffer): Update.
14546 (fputs_maybe_filtered): Update.
14547 (fputs_unfiltered): Add function.
dfcb27e4 14548
faa17681
IB
145492020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14550
aac66a4c
SM
14551 * gdb/event-loop.c (gdb_wait_for_event): Update.
14552 * gdb/printcmd.c (printf_command): Update.
14553 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14554 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14555 (gdb_os_flush_stderr): Update.
14556 * gdb/remote.c (remote_console_output): Update.
14557 * gdb/ui-file.c (gdb_flush): Rename to...
14558 (ui_file_flush): ...this.
14559 (stderr_file::write): Update.
14560 (stderr_file::puts): Update.
14561 * gdb/ui-file.h (gdb_flush): Rename to...
14562 (ui_file_flush): ...this.
14563 * gdb/utils.c (gdb_flush): Add function.
14564 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14565
5abbbe1d
TT
145662020-02-07 Tom Tromey <tromey@adacore.com>
14567
14568 PR breakpoints/24915:
14569 * source.c (find_and_open_source): Do not check basenames_may_differ.
14570
919adfe8
TT
145712020-02-07 Tom Tromey <tom@tromey.com>
14572
14573 * README: Update gdbserver documentation.
14574 * gdbserver: Move to top level.
14575 * configure.tgt (build_gdbserver): Remove.
14576 * configure.ac: Remove --enable-gdbserver.
14577 * configure: Rebuild.
14578 * Makefile.in (distclean): Don't mention gdbserver.
14579
1d5d29e7
SV
145802020-02-06 Shahab Vahedi <shahab@synopsys.com>
14581
14582 * source-cache.c (source_cache::ensure): Surround
14583 get_plain_source_lines with a try/catch.
14584 (source_cache::get_line_charpos): Get rid of try/catch
14585 and only check for the return value of "ensure".
14586 * tui/tui-source.c (tui_source_window::set_contents):
14587 Simplify "nlines" calculation.
14588
6eb1129c
SV
145892020-02-06 Shahab Vahedi <shahab@synopsys.com>
14590
14591 * MAINTAINERS (Write After Approval): Add myself.
14592
c6a42d11
CB
145932020-02-05 Christian Biesinger <cbiesinger@google.com>
14594
14595 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14596 function call.
14597
c8ecdda6
CB
145982020-02-05 Christian Biesinger <cbiesinger@google.com>
14599
14600 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14601
f6480e70
MR
146022020-02-05 Maciej W. Rozycki <macro@wdc.com>
14603
14604 * nat/riscv-linux-tdesc.h: New file.
14605 * nat/riscv-linux-tdesc.c: New file, taking code from...
14606 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14607 ... here.
14608 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14609 NATDEPFILES.
14610
dcc9fbc6
AB
146112020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14612
14613 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14614 we don't set the fake simulator ptid to the null_ptid.
14615
719546c4
SM
146162020-02-03 Simon Marchi <simon.marchi@efficios.com>
14617
14618 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14619 * gdbthread.h (class thread_info) <resumed>: Likewise.
14620 * infrun.c (resume_1): Likewise.
14621 (proceed): Likewise.
14622 (infrun_thread_stop_requested): Likewise.
14623 (stop_all_threads): Likewise.
14624 (handle_inferior_event): Likewise.
14625 (restart_threads): Likewise.
14626 (finish_step_over): Likewise.
14627 (keep_going_stepped_thread): Likewise.
14628 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14629 (linux_handle_extended_wait): Likewise.
14630 * record-btrace.c (get_thread_current_frame_id): Likewise.
14631 * record-full.c (record_full_wait_1): Likewise.
14632 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14633 * target.c (target_resume): Likewise.
14634 * thread.c (set_running_thread): Likewise.
14635
e409c542
AKS
146362020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14637
14638 * f-valprint.c (f77_print_array_1): Changed datatype of index
14639 variable to LONGEST from int to enable it to contain bound
14640 values correctly.
14641
ee98c0da
MR
146422020-02-03 Maciej W. Rozycki <macro@wdc.com>
14643
14644 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14645 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14646 offsets according to FLEN determined.
14647 (riscv_linux_nat_target::read_description): Determine FLEN
14648 dynamically.
14649 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14650 according to FLEN determined.
14651 (riscv_linux_nat_target::store_registers): Likewise.
14652
aa66aac4
SV
146532020-02-01 Shahab Vahedi <shahab@synopsys.com>
14654
14655 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14656 when reg->group is empty and reggroup is not.
14657
fd9faca8
TT
146582020-01-31 Tom Tromey <tromey@adacore.com>
14659
14660 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14661 Call beneath target's mourn_inferior after unpushing.
14662
42330a68
AB
146632020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14664
14665 PR tui/9765
14666 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14667 have enough lines to fill the screen, still return the lowest
14668 address we found.
14669
7a27a45b
AB
146702020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14671
14672 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14673 '-', '<', and '>' commands.
14674
c47f70e2
PA
146752020-01-29 Pedro Alves <palves@redhat.com>
14676 Sergio Durigan Junior <sergiodj@redhat.com>
14677
14678 * infcmd.c (construct_inferior_arguments): Assert that
14679 'argc' is greater than 0.
14680
5133a315
LM
146812020-01-29 Luis Machado <luis.machado@linaro.org>
14682
14683 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14684 (BRK_INSN_MASK): Define to 0xd4200000.
14685 (aarch64_program_breakpoint_here_p): New function.
14686 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14687 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14688 breakpoint.c.
14689 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14690 breakpoint.h
14691 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14692 call gdbarch_program_breakpoint_here_p.
14693 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14694 default_program_breakpoint_here_p, changed return type to bool and
14695 simplified.
14696 * breakpoint.h (program_breakpoint_here): Moved prototype to
14697 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14698 return type to bool.
14699 * gdbarch.c: Regenerate.
14700 * gdbarch.h: Regenerate.
14701 * gdbarch.sh (program_breakpoint_here_p): New method.
14702 * infrun.c (handle_signal_stop): Call
14703 gdbarch_program_breakpoint_here_p.
14704
168f8c6b
TT
147052020-01-26 Tom Tromey <tom@tromey.com>
14706
14707 * ctfread.c (struct ctf_fp_info): Reindent.
14708 (_initialize_ctfread): Remove.
14709
128a391f
TT
147102020-01-26 Tom Tromey <tom@tromey.com>
14711
14712 * psymtab.c (partial_map_expand_apply)
14713 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14714 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14715 (psym_print_stats, psym_expand_symtabs_for_function)
14716 (psym_map_symbol_filenames, psym_map_matching_symbols)
14717 (psym_expand_symtabs_matching)
14718 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14719 (maintenance_check_psymtabs): Use new methods.
14720 * psympriv.h (struct partial_symtab) <readin_p,
14721 get_compunit_symtab>: New methods.
14722 <readin, compunit_symtab>: Remove members.
14723 (struct standard_psymtab): New.
14724 (struct legacy_psymtab): Derive from standard_psymtab.
14725 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14726 standard_psymtab.
14727 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14728
0494dbec
TT
147292020-01-26 Tom Tromey <tom@tromey.com>
14730
14731 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14732 read_dependencies. Add assert.
14733 * psymtab.c (partial_symtab::read_dependencies): New method.
14734 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14735 method.
14736 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14737 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14738 read_dependencies.
14739 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14740 Add assert.
14741
8566b89b
TT
147422020-01-26 Tom Tromey <tom@tromey.com>
14743
14744 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14745 Call expand_psymtab.
14746 (xcoff_read_symtab): Call expand_psymtab.
14747 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14748 legacy_expand_psymtab.
14749 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14750 method.
14751 (struct legacy_psymtab) <expand_psymtab>: Implement.
14752 <legacy_expand_psymtab>: New member.
14753 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14754 (parse_partial_symbols): Set legacy_expand_psymtab.
14755 (psymtab_to_symtab_1): Change argument order. Call
14756 expand_psymtab.
14757 (new_psymtab): Set legacy_expand_psymtab.
14758 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14759 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14760 expand_psymtab.
14761 (dwarf2_psymtab::expand_psymtab): Rename from
14762 psymtab_to_symtab_1. Call expand_psymtab.
14763 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14764 (dbx_end_psymtab): Likewise.
14765 (dbx_psymtab_to_symtab_1): Change argument order. Call
14766 expand_psymtab.
14767 (dbx_read_symtab): Call expand_psymtab.
14768 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14769 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14770 (ctf_psymtab::read_symtab): Call expand_psymtab.
14771
077cbab2
TT
147722020-01-26 Tom Tromey <tom@tromey.com>
14773
14774 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14775 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14776 messages.
14777 * mdebugread.c (mdebug_read_symtab): Remove prints.
14778 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14779 assert.
14780 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14781
891813be
TT
147822020-01-26 Tom Tromey <tom@tromey.com>
14783
14784 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14785 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14786 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14787 legacy_symtab.
14788 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14789 * psymtab.c (psymtab_to_symtab): Call method.
14790 (dump_psymtab): Update.
14791 * psympriv.h (struct partial_symtab): Add virtual destructor.
14792 <read_symtab>: New method.
14793 (struct legacy_symtab): New.
14794 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14795 (struct pst_map) <pst>: Now a legacy_psymtab.
14796 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14797 (new_psymtab): Use legacy_psymtab.
14798 * dwarf2read.h (struct dwarf2_psymtab): New.
14799 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14800 * dwarf2read.c (dwarf2_create_include_psymtab)
14801 (dwarf2_build_include_psymtabs, create_type_unit_group)
14802 (create_partial_symtab, process_psymtab_comp_unit_reader)
14803 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14804 (set_partial_user): Use dwarf2_psymtab.
14805 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14806 (psymtab_to_symtab_1, process_full_comp_unit)
14807 (process_full_type_unit, dwarf2_ranges_read)
14808 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14809 (dwarf_decode_lines): Use dwarf2_psymtab.
14810 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14811 (add_address_entry_worker, write_one_signatured_type)
14812 (recursively_count_psymbols, recursively_write_psymbols)
14813 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14814 (write_debug_names): Likewise.
14815 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14816 <pst>: Now a legacy_psymtab.
14817 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14818 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14819 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14820 * ctfread.c (struct ctf_psymtab): New.
14821 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14822 ctf_psymtab.
14823 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14824 (create_partial_symtab): Return a ctf_psymtab.
14825 (scan_partial_symbols): Update.
14826
c3693a1d
TT
148272020-01-26 Tom Tromey <tom@tromey.com>
14828
14829 * xcoffread.c (xcoff_start_psymtab): Use new.
14830 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14831 renamed from start_psymtab_common.
14832 * psympriv.h (struct partial_symtab): Add new constructor.
14833 (start_psymtab_common): Don't declare.
14834 * mdebugread.c (parse_partial_symbols): Use new.
14835 * dwarf2read.c (create_partial_symtab): Use new.
14836 * dbxread.c (start_psymtab): Use new.
14837 * ctfread.c (create_partial_symtab): Use new.
14838
32caafd0
TT
148392020-01-26 Tom Tromey <tom@tromey.com>
14840
14841 * xcoffread.c (xcoff_end_psymtab): Use new.
14842 * psymtab.c (start_psymtab_common): Use new.
14843 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14844 Update.
14845 * psympriv.h (struct partial_symtab): Add parameters to
14846 constructor. Don't inline.
14847 (allocate_psymtab): Don't declare.
14848 * mdebugread.c (new_psymtab): Use new.
14849 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14850 * dbxread.c (dbx_end_psymtab): Use new.
14851
abaa2f23
TT
148522020-01-26 Tom Tromey <tom@tromey.com>
14853
14854 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14855 allocate_psymtab. Update documentation.
14856 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14857 allocate_psymtab. Do not use new.
14858 (allocate_psymtab): Use new. Update.
14859
6d94535f
TT
148602020-01-26 Tom Tromey <tom@tromey.com>
14861
14862 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14863 * psymtab.c (psym_print_stats): Update.
14864 * psympriv.h (struct partial_symtab) <readin,
14865 psymtabs_addrmap_supported, anonymous>: Now bool.
14866 * mdebugread.c (psymtab_to_symtab_1): Update.
14867 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14868 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14869 (process_full_comp_unit, process_full_type_unit): Update.
14870 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14871 * ctfread.c (psymtab_to_symtab): Update.
14872
6f17252b
TT
148732020-01-26 Tom Tromey <tom@tromey.com>
14874
14875 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14876 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14877 * psymtab.c (psymtab_storage): Delete psymtabs.
14878 (psymtab_storage::allocate_psymtab): Use new.
14879 (psymtab_storage::discard_psymtab): Use delete.
14880 * psympriv.h (struct partial_symtab): Add constructor and
14881 initializers.
14882
f6f1cebc
TT
148832020-01-26 Tom Tromey <tom@tromey.com>
14884
14885 * machoread.c: Do not include psympriv.h.
14886
e47e48f6
PW
148872020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14888
14889 * NEWS: Mention the new option and the set/show commands.
14890
a2fedca9
PW
148912020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14892
14893 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14894 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14895 (validate_exec_file): New variables, enums, functions.
14896 (exec_file_locate_attach, print_section_info): Style the filenames.
14897 (_initialize_exec): Install show_exec_file_mismatch_command and
14898 set_exec_file_mismatch_command.
14899 * gdbcore.h (validate_exec_file): Declare.
14900 * infcmd.c (attach_command): Call validate_exec_file.
14901 * remote.c ( remote_target::remote_add_inferior): Likewise.
14902
7ffa82e1
AB
149032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14904
14905 * frame.c (find_frame_sal): Move call to get_next_frame into more
14906 inner scope.
14907 * inline-frame.c (inilne_state) <inline_state>: Update argument
14908 types.
14909 (inilne_state) <skipped_symbol>: Rename to...
14910 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14911 (skip_inline_frames): Build vector of skipped symbols and use this
14912 to reate the inline_state.
14913 (inline_skipped_symbol): Add a comment and some assertions, fetch
14914 skipped symbol from the list.
14915
3d92a3e3
AB
149162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14917
14918 * buildsym.c (lte_is_less_than): Delete.
14919 (buildsym_compunit::end_symtab_with_blockvector): Create local
14920 lambda function to sort line table entries, and use
14921 std::stable_sort instead of std::sort.
14922 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14923 markers when looking for a previous line.
14924
94a72be7
AB
149252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14926
14927 * dwarf2read.c (lnp_state_machine::record_line): Include
14928 end_sequence parameter in debug print out. Record the line if we
14929 are at an end_sequence marker even if it's not the start of a
14930 statement.
14931 * symmisc.c (maintenance_print_one_line_table): Print end of
14932 sequence markers with 'END' not '0'.
14933
53af73bf
PA
149342020-01-24 Pedro Alves <palves@redhat.com>
14935
14936 PR gdb/25410
14937 * thread.c (scoped_restore_current_thread::restore): Use
14938 switch_to_inferior_no_thread.
14939 * exec.c: Include "progspace-and-thread.h".
14940 (add_target_sections, remove_target_sections):
14941 scoped_restore_current_pspace_and_thread instead of
14942 scoped_restore_current_thread.
14943 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14944 and aspace to the inferior before calling clone_program_space.
14945 Remove stale comment.
14946
3050c6f4
CB
149472020-01-24 Christian Biesinger <cbiesinger@google.com>
14948
14949 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14950 (arm_netbsd_nat_target::fetch_registers): ...this.
14951 (arm_nbsd_nat_target::store_registers): Rename to...
14952 (arm_netbsd_nat_target::store_registers): ...this.
14953
73685c7e
CB
149542020-01-24 Christian Biesinger <cbiesinger@google.com>
14955
14956 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14957 register_t.
14958
89203d40
CB
149592020-01-24 Christian Biesinger <cbiesinger@google.com>
14960
14961 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14962 Update comment.
14963 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14964 Likewise.
14965 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14966 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14967 the correct replacement (iterate_over_regset_sections).
14968 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14969 Update comment.
14970
1ba1ac88
AB
149712020-01-24 Graham Markall <graham.markall@embecosm.com>
14972
14973 PR gdb/23718
14974 * gdb/python/python.c (execute_gdb_command): Call
14975 async_enable_stdin in catch block.
14976
f3364a6d
AB
149772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14978
14979 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14980 SWITCH_THRU_ALL_UIS.
14981
733d0a67
AB
149822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14983
14984 PR tui/9765
14985 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14986 comment, add extra parameter, and update to store previous symbol
14987 when appropriate.
14988 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14989 add extra parameter.
14990 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14991 remove unneeded parameter, add try/catch around gdb_print_insn,
14992 rewrite to add items to asm_lines vector.
14993 (tui_find_backward_disassembly_start_address): New function.
14994 (tui_find_disassembly_address): Updated throughout.
14995 (tui_disasm_window::set_contents): Update for changes to
14996 tui_disassemble.
14997 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14998 number of lines to scroll.
14999
b3b3bada
SM
150002020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15001
15002 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15003 (SECT_OFF_DATA): Likewise.
15004 (SECT_OFF_RODATA): Likewise.
15005 (SECT_OFF_TEXT): Likewise.
15006 (SECT_OFF_BSS): Likewise.
15007 (struct objfile) <text_section_offset, data_section_offset>: New
15008 methods.
15009 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15010 objfile::text_section_offset.
15011 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15012 * coffread.c (coff_symtab_read): Likewise.
15013 (enter_linenos): Likewise.
15014 (process_coff_symbol): Likewise.
15015 * ctfread.c (get_objfile_text_range): Likewise.
15016 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15017 Use objfile::data_section_offset.
15018 * dwarf2-frame.c (execute_cfa_program): Use
15019 objfile::text_section_offset.
15020 (dwarf2_frame_find_fde): Likewise.
15021 * dwarf2read.c (create_addrmap_from_index): Likewise.
15022 (create_addrmap_from_aranges): Likewise.
15023 (dw2_find_pc_sect_compunit_symtab): Likewise.
15024 (process_psymtab_comp_unit_reader): Likewise.
15025 (add_partial_symbol): Likewise.
15026 (add_partial_subprogram): Likewise.
15027 (process_full_comp_unit): Likewise.
15028 (read_file_scope): Likewise.
15029 (read_func_scope): Likewise.
15030 (read_lexical_block_scope): Likewise.
15031 (read_call_site_scope): Likewise.
15032 (dwarf2_rnglists_process): Likewise.
15033 (dwarf2_ranges_process): Likewise.
15034 (dwarf2_ranges_read): Likewise.
15035 (dwarf_decode_lines_1): Likewise.
15036 (new_symbol): Likewise.
15037 (dwarf2_fetch_die_loc_sect_off): Likewise.
15038 (dwarf2_per_cu_text_offset): Likewise.
15039 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15040 * hppa-tdep.c (read_unwind_info): Likewise.
15041 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15042 * psympriv.h (struct partial_symtab): Likewise.
15043 * psymtab.c (find_pc_sect_psymtab): Likewise.
15044 * solib-svr4.c (enable_break): Likewise.
15045 * stap-probe.c (relocate_address): Use
15046 objfile::data_section_offset.
15047 * xcoffread.c (enter_line_range): Use
15048 objfile::text_section_offset.
15049 (read_xcoff_symtab): Likewise.
15050
ab53f382
SM
150512020-01-23 Simon Marchi <simon.marchi@efficios.com>
15052
15053 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15054 declaration to narrower scopes.
15055
e7eee665
SM
150562020-01-23 Simon Marchi <simon.marchi@efficios.com>
15057
15058 * darwin-nat.h (struct darwin_exception_msg, enum
15059 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15060 Move up.
15061 (class darwin_nat_target) <wait_1, check_new_threads,
15062 decode_exception_message, decode_message, stop_inferior,
15063 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15064 * darwin-nat.c (darwin_check_new_threads): Rename to...
15065 (darwin_nat_target::check_new_threads): ... this.
15066 (darwin_suspend_inferior_it): Remove.
15067 (darwin_decode_exception_message): Rename to...
15068 (darwin_nat_target::decode_exception_message): ... this.
15069 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15070 (darwin_decode_message): Rename to...
15071 (darwin_nat_target::decode_message): ... this.
15072 (cancel_breakpoint): Rename to...
15073 (darwin_nat_target::cancel_breakpoint): ... this.
15074 (darwin_wait): Rename to...
15075 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15076 instead of iterate_over_inferiors.
15077 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15078 (darwin_stop_inferior): Rename to...
15079 (darwin_nat_target::stop_inferior): ... this.
15080 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15081 (darwin_init_thread_list): Rename to...
15082 (darwin_nat_target::init_thread_list): ... this.
15083 (darwin_ptrace_him): Rename to...
15084 (darwin_nat_target::ptrace_him): ... this.
15085 (darwin_nat_target::create_inferior): Pass lambda function to
15086 fork_inferior.
15087 (darwin_nat_target::detach): Call stop_inferior instead of
15088 darwin_stop_inferior.
15089 * fork-inferior.h (fork_inferior): Change init_trace_fun
15090 parameter to gdb::function_view.
15091 * fork-inferior.c (fork_inferior): Likewise.
15092
c162ed3e
HD
150932020-01-23 Hannes Domani <ssbssa@yahoo.de>
15094
15095 * i386-cygwin-tdep.c (core_process_module_section): Update.
15096 * windows-nat.c (struct lm_info_windows): Add text_offset.
15097 (windows_xfer_shared_libraries): Update.
15098 * windows-tdep.c (windows_xfer_shared_library):
15099 Add text_offset_cached argument.
15100 * windows-tdep.h (windows_xfer_shared_library): Update.
15101
a1237872
SM
151022020-01-21 Simon Marchi <simon.marchi@efficios.com>
15103
15104 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15105
b3ee6dd9
SM
151062020-01-21 Simon Marchi <simon.marchi@efficios.com>
15107
15108 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15109 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15110 replace with range-based for.
15111 (gdbsim_interrupt_inferior): Remove.
15112 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15113 with a range-based for. Inline code from
15114 gdbsim_interrupt_inferior.
15115
f9fac3c8
SM
151162020-01-21 Simon Marchi <simon.marchi@efficios.com>
15117
15118 * infrun.c (proceed): Fix indentation.
15119
f6474de9
TT
151202020-01-21 Tom Tromey <tromey@adacore.com>
15121
15122 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15123 * python/python.c (python_extension_ops): Update.
15124 (gdbpy_colorize): New function.
15125 * python/lib/gdb/__init__.py (colorize): New function.
15126 * extension.h (ext_lang_colorize): Declare.
15127 * extension.c (ext_lang_colorize): New function.
15128 * extension-priv.h (struct extension_language_ops) <colorize>: New
15129 member.
15130 * cli/cli-style.c (_initialize_cli_style): Update help text.
15131
f0c702d4
LM
151322020-01-21 Luis Machado <luis.machado@linaro.org>
15133
15134 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15135 <cond>: Change type to bool.
15136 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15137 (aarch64_displaced_step_cb): Likewise.
15138 (aarch64_displaced_step_tb): Likewise.
15139
1ab139e5
LM
151402020-01-21 Luis Machado <luis.machado@linaro.org>
15141
15142 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15143 output.
15144
0c271889
LM
151452020-01-21 Luis Machado <luis.machado@linaro.org>
15146
15147 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15148 <pc_adjust>: Adjust the documentation.
15149 (aarch64_displaced_step_fixup): Check if PC really moved before
15150 adjusting it.
15151
4d89c1c7
TT
151522020-01-19 Tom Tromey <tom@tromey.com>
15153
15154 * disasm.c (~gdb_disassembler): New destructor.
15155 (gdb_buffered_insn_length): Call disassemble_free_target.
15156 * disasm.h (class gdb_disassembler): Declare destructor. Use
15157 DISABLE_COPY_AND_ASSIGN.
15158
c0ab21c2
TT
151592020-01-19 Tom Tromey <tom@tromey.com>
15160
15161 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15162 (die_reader_func_ftype): Remove.
15163 (cutu_reader): New class.
15164 (dw2_get_file_names_reader): Remove "data" parameter.
15165 (dw2_get_file_names): Use cutu_reader.
15166 (create_debug_type_hash_table): Update.
15167 (read_cutu_die_from_dwo): Update comment.
15168 (lookup_dwo_unit): Add dwo_name parameter.
15169 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15170 die_reader_func_ftype and data parameters.
15171 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15172 Remove die_reader_func_ftype and data parameters.
15173 (~cutu_reader): New; from init_cutu_and_read_dies.
15174 (cutu_reader::cutu_reader): Rename from
15175 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15176 and data parameters.
15177 (init_cutu_and_read_dies_simple): Remove.
15178 (struct process_psymtab_comp_unit_data): Remove.
15179 (process_psymtab_comp_unit_reader): Remove data parameter; add
15180 want_partial_unit and pretend_language parameters.
15181 (process_psymtab_comp_unit): Use cutu_reader.
15182 (build_type_psymtabs_reader): Remove data parameter.
15183 (build_type_psymtabs_1): Use cutu_reader.
15184 (process_skeletonless_type_unit): Likewise.
15185 (load_partial_comp_unit_reader): Remove.
15186 (load_partial_comp_unit): Use cutu_reader.
15187 (load_full_comp_unit_reader): Remove.
15188 (load_full_comp_unit): Use cutu_reader.
15189 (struct create_dwo_cu_data): Remove.
15190 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15191 dwo_unit parameters.
15192 (create_cus_hash_table): Use cutu_reader.
15193 (struct dwarf2_read_addr_index_data): Remove.
15194 (dwarf2_read_addr_index_reader): Remove.
15195 (dwarf2_read_addr_index): Use cutu_reader.
15196 (read_signatured_type_reader): Remove.
15197 (read_signatured_type): Use cutu_reader.
15198
45bbae5c
TT
151992020-01-19 Tom Tromey <tom@tromey.com>
15200
15201 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15202 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15203 (tui_wrefresh): Declare.
15204 * tui/tui-wingeneral.c (suppress_output): New global.
15205 (tui_suppress_output, ~tui_suppress_output): New constructor and
15206 destructor.
15207 (tui_wrefresh): New function.
15208 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15209 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15210 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15211 method.
15212 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15213 tui_wrefresh.
15214 (tui_data_window::no_refresh): New method.
15215 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15216 (tui_reg_command): Use tui_suppress_output
15217 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15218 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15219 method.
15220 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15221
4f13c1c0
TT
152222020-01-19 Tom Tromey <tom@tromey.com>
15223
15224 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15225 Handle case where symtab is null.
15226
fa47e446
SM
152272020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15228
15229 * linux-fork.c (one_fork_p): Simplify.
15230
26f42329
SM
152312020-01-17 Simon Marchi <simon.marchi@efficios.com>
15232
15233 * top.c (struct qt_args): Remove.
15234 (kill_or_detach): Change return type to void, replace `void *`
15235 parameter with a proper one.
15236 (print_inferior_quit_action): Likewise.
15237 (quit_confirm): Use range-based for loop to iterate over inferiors.
15238 (quit_force): Likewise.
15239
a9ac81b1
SM
152402020-01-17 Simon Marchi <simon.marchi@efficios.com>
15241
15242 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15243 `void *` parameter with proper parameters.
15244 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15245 (print_one_inferior): Change return type to void, replace `void *`
15246 parameter with proper parameters.
15247 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15248 inferiors.
15249 (get_other_inferior): Remove.
15250 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15251 inferiors.
15252
788eca49
SM
152532020-01-17 Simon Marchi <simon.marchi@efficios.com>
15254
15255 * mi/mi-interp.c (report_initial_inferior): Remove.
15256 (mi_interp::init): Use range-based for to iterate over inferiors.
15257
d9bc85b6
SM
152582020-01-17 Simon Marchi <simon.marchi@efficios.com>
15259
15260 * python/py-inferior.c (build_inferior_list): Remove.
15261 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15262
40c94099
CB
152632020-01-16 Christian Biesinger <cbiesinger@google.com>
15264
15265 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15266 (btrace_stitch_trace): Likewise.
15267 * charset.c (intermediate_encoding): Likewise (vaild).
15268 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15269 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15270 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15271
e0cdfe3c
HD
152722020-01-16 Hannes Domani <ssbssa@yahoo.de>
15273
15274 * windows-tdep.c (windows_get_tlb_type):
15275 Add rtl_user_process_parameters type.
15276
790f1718 152772020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15278 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15279
15280 PR build/24805
15281 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15282 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15283 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15284 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15285 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15286 (ps_plog): Redeclare exported functions with default visibility.
15287
3112ed97
NA
152882020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15289
15290 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15291 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15292
8dc3273e
SM
152932020-01-15 Simon Marchi <simon.marchi@efficios.com>
15294
15295 * infcmd.c (post_create_inferior): Use get_thread_regcache
15296 instead of get_current_regcache.
15297
ff47f4f0
TT
152982020-01-14 Tom Tromey <tom@tromey.com>
15299
15300 PR symtab/12535:
15301 * python/python.c (gdbpy_decode_line): Treat empty string the same
15302 as no argument.
15303
975f45b7
TT
153042020-01-14 Tom Tromey <tom@tromey.com>
15305
15306 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15307
25e57356
TT
153082020-01-14 Tom Tromey <tom@tromey.com>
15309
15310 * nat/linux-btrace.c: Don't include <config.h>.
15311 * nat/linux-ptrace.c: Don't include <config.h>.
15312 * nat/x86-linux-dregs.c: Don't include <config.h>.
15313
05ea2a05
TT
153142020-01-14 Tom Tromey <tom@tromey.com>
15315
15316 * configure: Rebuild.
15317 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15318
01027315
TT
153192020-01-14 Tom Tromey <tom@tromey.com>
15320
15321 * nat/x86-linux-dregs.c: Include configh.h.
15322 * nat/linux-ptrace.c: Include configh.h.
15323 * nat/linux-btrace.c: Include configh.h.
15324 * defs.h: Include config.h, bfd.h.
15325 * configure.ac: Don't source common.host.
15326 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15327 * configure: Rebuild.
15328 * acinclude.m4: Update path.
15329 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15330 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15331 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15332 (CLIBS): Add LIBSUPPORT.
15333 (CDEPS): Likewise.
15334 (COMMON_SFILES): Remove gdbsupport files.
15335 (HFILES_NO_SRCDIR): Likewise.
15336 (stamp-version): Update path to create-version.sh.
15337 (ALLDEPFILES): Remove gdbsupport files.
15338
b2ceabe8
TT
153392020-01-14 Tom Tromey <tom@tromey.com>
15340
15341 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15342 USE_WIN32API when needed.
15343 * configure.ac (USE_WIN32API): Don't define.
15344 (WIN32LIBS): Use WIN32APILIBS.
15345 * configure: Rebuild.
15346
25c51f71
TT
153472020-01-14 Tom Tromey <tom@tromey.com>
15348
15349 * configure: Rebuild.
15350 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15351
717c684d
BE
153522020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15353
15354 * skip.c (skip_function_command): Make skip w/o arguments use the
15355 name of the inlined function if pc is inside any inlined function.
15356
7da6a5b9
LM
153572020-01-14 Luis Machado <luis.machado@linaro.org>
15358
15359 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15360 * infrun.c (resume_1): Likewise.
15361 (handle_inferior_event): Remove stale comment.
15362 * linux-nat.c (linux_nat_target::resume): Update comments.
15363 (save_stop_reason): Likewise.
15364 (linux_nat_filter_event): Likewise.
15365 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15366
44e4c775
AB
153672020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15368
15369 * elfread.c (record_minimal_symbol): Set section index to 0 for
15370 non-allocatable sections.
15371
18a8505e
AT
15372
153732020-01-13 Ali Tamur <tamur@google.com>
15374
15375 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15376 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15377 to gdb::optional. Update comments.
15378 (dwo_file): Update comments.
15379 (read_attribute): Update API to take an additional out parameter,
15380 need_reprocess. This is used to mark attributes that need other
15381 attributes (e.g. str_offsets_base) for correct computation which may not
15382 have been read yet.
15383 (read_attribute_reprocess): New function declaration.
15384 (read_addr_index): Likewise.
15385 (read_dwo_str_index): Likewise.
15386 (read_stub_str_index): Likewise.
15387 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15388 (lookup_addr_base): New function definition.
15389 (lookup_ranges_base): Likewise.
15390 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15391 lookup_ranges_base.
15392 (init_cutu_and_read_dies): Update comments.
15393 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15394 unit. This is used to inherit parent's str_offsets_base and addr_base.
15395 Update comments.
15396 (init_cutu_and_read_dies_simple): Reflect API changes.
15397 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15398 (create_cus_hash_table): Change API to take parent compile unit.
15399 Reflect API changes.
15400 (open_and_init_dwo_file): Reflect API changes.
15401 (dwarf2_get_pc_bounds): Update comments.
15402 (dwarf2_record_block_ranges): Likewise.
15403 (read_full_die_1): Change implementation to reprocess attributes that
15404 need str_offsets_base and addr_base.
15405 (partial_die_info::read): Likewise.
15406 (read_attribute_reprocess): New function definition.
15407 (read_attribute_value): Change API to take an additional out parameter,
15408 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15409 when a non-dwo compile unit has index based attributes.
15410 (read_attribute): Reflect API changes.
15411 (read_addr_index_1): Reflect API changes. Update comments.
15412 (dwarf2_read_addr_index_data): Reflect API changes.
15413 (dwarf2_read_addr_index): Likewise.
15414 (read_str_index): Change API and implementation. This becomes a helper
15415 to be used by the new string index related methods. Update error
15416 message and comments.
15417 (read_dwo_str_index): New function definition.
15418 (read_stub_str_index): Likewise.
15419 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15420 * symfile.h (dwarf2_debug_sections): Likewise.
15421 * xcoffread.c (dwarf2_debug_sections): Likewise.
15422
0cac9354
SM
154232020-01-13 Simon Marchi <simon.marchi@efficios.com>
15424
15425 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15426 core_reg_sect type to gdb_byte *.
15427 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15428 * cris-tdep.c (fetch_core_registers): Likewise.
15429 * corelow.c (core_target::get_core_register_section): Change
15430 type of `contents` to gdb::byte_vector.
15431
9a6d629c
AB
154322020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15433
15434 * tui/tui-wingeneral.c (box_win): Position the title in the center
15435 of the border.
15436
d8b2f9e3
SM
154372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15438
15439 * corelow.c (core_target::get_core_register_section): Use
15440 std::vector instead of alloca.
15441
bb564c58
SM
154422020-01-13 Simon Marchi <simon.marchi@efficios.com>
15443
15444 * warning.m4: Add -Wmissing-declarations to build_warnings.
15445 * configure: Re-generate.
15446
6b366111
SM
154472020-01-13 Simon Marchi <simon.marchi@efficios.com>
15448
15449 * python/python.c (init__gdb_module): Add declaration.
15450
6c265988
SM
154512020-01-13 Simon Marchi <simon.marchi@efficios.com>
15452
15453 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15454 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15455 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15456 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15457 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15458 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15459 * ada-exp.y (_initialize_ada_exp): Add declaration.
15460 * ada-lang.c (_initialize_ada_language): Add declaration.
15461 * ada-tasks.c (_initialize_tasks): Add declaration.
15462 * agent.c (_initialize_agent): Add declaration.
15463 * aix-thread.c (_initialize_aix_thread): Add declaration.
15464 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15465 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15466 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15467 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15468 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15469 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15470 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15471 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15472 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15473 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15474 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15475 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15476 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15477 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15478 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15479 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15480 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15481 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15482 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15483 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15484 * annotate.c (_initialize_annotate): Add declaration.
15485 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15486 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15487 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15488 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15489 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15490 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15491 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15492 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15493 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15494 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15495 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15496 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15497 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15498 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15499 * auto-load.c (_initialize_auto_load): Add declaration.
15500 * auxv.c (_initialize_auxv): Add declaration.
15501 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15502 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15503 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15504 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15505 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15506 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15507 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15508 * breakpoint.c (_initialize_breakpoint): Add declaration.
15509 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15510 * btrace.c (_initialize_btrace): Add declaration.
15511 * charset.c (_initialize_charset): Add declaration.
15512 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15513 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15514 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15515 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15516 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15517 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15518 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15519 * coffread.c (_initialize_coffread): Add declaration.
15520 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15521 * compile/compile.c (_initialize_compile): Add declaration.
15522 * complaints.c (_initialize_complaints): Add declaration.
15523 * completer.c (_initialize_completer): Add declaration.
15524 * copying.c (_initialize_copying): Add declaration.
15525 * corefile.c (_initialize_core): Add declaration.
15526 * corelow.c (_initialize_corelow): Add declaration.
15527 * cp-abi.c (_initialize_cp_abi): Add declaration.
15528 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15529 * cp-support.c (_initialize_cp_support): Add declaration.
15530 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15531 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15532 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15533 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15534 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15535 * ctfread.c (_initialize_ctfread): Add declaration.
15536 * d-lang.c (_initialize_d_language): Add declaration.
15537 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15538 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15539 * dbxread.c (_initialize_dbxread): Add declaration.
15540 * dcache.c (_initialize_dcache): Add declaration.
15541 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15542 * disasm.c (_initialize_disasm): Add declaration.
15543 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15544 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15545 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15546 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15547 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15548 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15549 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15550 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15551 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15552 * elfread.c (_initialize_elfread): Add declaration.
15553 * exec.c (_initialize_exec): Add declaration.
15554 * extension.c (_initialize_extension): Add declaration.
15555 * f-lang.c (_initialize_f_language): Add declaration.
15556 * f-valprint.c (_initialize_f_valprint): Add declaration.
15557 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15558 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15559 * filesystem.c (_initialize_filesystem): Add declaration.
15560 * findcmd.c (_initialize_mem_search): Add declaration.
15561 * findvar.c (_initialize_findvar): Add declaration.
15562 * fork-child.c (_initialize_fork_child): Add declaration.
15563 * frame-base.c (_initialize_frame_base): Add declaration.
15564 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15565 * frame.c (_initialize_frame): Add declaration.
15566 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15567 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15568 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15569 * gcore.c (_initialize_gcore): Add declaration.
15570 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15571 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15572 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15573 * gdbarch.c (_initialize_gdbarch): Add declaration.
15574 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15575 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15576 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15577 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15578 * go-lang.c (_initialize_go_language): Add declaration.
15579 * go32-nat.c (_initialize_go32_nat): Add declaration.
15580 * guile/guile.c (_initialize_guile): Add declaration.
15581 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15582 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15583 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15584 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15585 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15586 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15587 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15588 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15589 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15590 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15591 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15592 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15593 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15594 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15595 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15596 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15597 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15598 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15599 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15600 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15601 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15602 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15603 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15604 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15605 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15606 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15607 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15608 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15609 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15610 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15611 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15612 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15613 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15614 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15615 * infcall.c (_initialize_infcall): Add declaration.
15616 * infcmd.c (_initialize_infcmd): Add declaration.
15617 * inflow.c (_initialize_inflow): Add declaration.
15618 * infrun.c (_initialize_infrun): Add declaration.
15619 * interps.c (_initialize_interpreter): Add declaration.
15620 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15621 * jit.c (_initialize_jit): Add declaration.
15622 * language.c (_initialize_language): Add declaration.
15623 * linux-fork.c (_initialize_linux_fork): Add declaration.
15624 * linux-nat.c (_initialize_linux_nat): Add declaration.
15625 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15626 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15627 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15628 * m2-lang.c (_initialize_m2_language): Add declaration.
15629 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15630 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15631 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15632 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15633 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15634 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15635 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15636 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15637 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15638 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15639 * machoread.c (_initialize_machoread): Add declaration.
15640 * macrocmd.c (_initialize_macrocmd): Add declaration.
15641 * macroscope.c (_initialize_macroscope): Add declaration.
15642 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15643 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15644 * maint.c (_initialize_maint_cmds): Add declaration.
15645 * mdebugread.c (_initialize_mdebugread): Add declaration.
15646 * memattr.c (_initialize_mem): Add declaration.
15647 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15648 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15649 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15650 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15651 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15652 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15653 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15654 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15655 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15656 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15657 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15658 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15659 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15660 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15661 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15662 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15663 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15664 * mipsread.c (_initialize_mipsread): Add declaration.
15665 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15666 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15667 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15668 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15669 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15670 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15671 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15672 * nto-procfs.c (_initialize_procfs): Add declaration.
15673 * objc-lang.c (_initialize_objc_language): Add declaration.
15674 * observable.c (_initialize_observer): Add declaration.
15675 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15676 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15677 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15678 * osabi.c (_initialize_gdb_osabi): Add declaration.
15679 * osdata.c (_initialize_osdata): Add declaration.
15680 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15681 * parse.c (_initialize_parse): Add declaration.
15682 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15683 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15684 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15685 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15686 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15687 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15688 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15689 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15690 * printcmd.c (_initialize_printcmd): Add declaration.
15691 * probe.c (_initialize_probe): Add declaration.
15692 * proc-api.c (_initialize_proc_api): Add declaration.
15693 * proc-events.c (_initialize_proc_events): Add declaration.
15694 * proc-service.c (_initialize_proc_service): Add declaration.
15695 * procfs.c (_initialize_procfs): Add declaration.
15696 * producer.c (_initialize_producer): Add declaration.
15697 * psymtab.c (_initialize_psymtab): Add declaration.
15698 * python/python.c (_initialize_python): Add declaration.
15699 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15700 * record-btrace.c (_initialize_record_btrace): Add declaration.
15701 * record-full.c (_initialize_record_full): Add declaration.
15702 * record.c (_initialize_record): Add declaration.
15703 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15704 * regcache.c (_initialize_regcache): Add declaration.
15705 * reggroups.c (_initialize_reggroup): Add declaration.
15706 * remote-notif.c (_initialize_notif): Add declaration.
15707 * remote-sim.c (_initialize_remote_sim): Add declaration.
15708 * remote.c (_initialize_remote): Add declaration.
15709 * reverse.c (_initialize_reverse): Add declaration.
15710 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15711 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15712 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15713 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15714 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15715 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15716 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15717 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15718 Add declaration.
15719 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15720 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15721 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15722 * rust-exp.y (_initialize_rust_exp): Add declaration.
15723 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15724 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15725 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15726 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15727 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15728 * score-tdep.c (_initialize_score_tdep): Add declaration.
15729 * ser-go32.c (_initialize_ser_dos): Add declaration.
15730 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15731 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15732 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15733 * ser-uds.c (_initialize_ser_socket): Add declaration.
15734 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15735 * serial.c (_initialize_serial): Add declaration.
15736 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15737 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15738 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15739 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15740 * skip.c (_initialize_step_skip): Add declaration.
15741 * sol-thread.c (_initialize_sol_thread): Add declaration.
15742 * solib-aix.c (_initialize_solib_aix): Add declaration.
15743 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15744 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15745 * solib-frv.c (_initialize_frv_solib): Add declaration.
15746 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15747 * solib-target.c (_initialize_solib_target): Add declaration.
15748 * solib.c (_initialize_solib): Add declaration.
15749 * source-cache.c (_initialize_source_cache): Add declaration.
15750 * source.c (_initialize_source): Add declaration.
15751 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15752 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15753 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15754 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15755 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15756 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15757 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15758 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15759 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15760 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15761 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15762 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15763 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15764 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15765 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15766 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15767 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15768 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15769 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15770 * stabsread.c (_initialize_stabsread): Add declaration.
15771 * stack.c (_initialize_stack): Add declaration.
15772 * stap-probe.c (_initialize_stap_probe): Add declaration.
15773 * std-regs.c (_initialize_frame_reg): Add declaration.
15774 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15775 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15776 * symfile.c (_initialize_symfile): Add declaration.
15777 * symmisc.c (_initialize_symmisc): Add declaration.
15778 * symtab.c (_initialize_symtab): Add declaration.
15779 * target.c (_initialize_target): Add declaration.
15780 * target-connection.c (_initialize_target_connection): Add
15781 declaration.
15782 * target-dcache.c (_initialize_target_dcache): Add declaration.
15783 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15784 * thread.c (_initialize_thread): Add declaration.
15785 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15786 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15787 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15788 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15789 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15790 * tracectf.c (_initialize_ctf): Add declaration.
15791 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15792 * tracefile.c (_initialize_tracefile): Add declaration.
15793 * tracepoint.c (_initialize_tracepoint): Add declaration.
15794 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15795 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15796 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15797 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15798 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15799 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15800 * tui/tui.c (_initialize_tui): Add declaration.
15801 * typeprint.c (_initialize_typeprint): Add declaration.
15802 * ui-style.c (_initialize_ui_style): Add declaration.
15803 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15804 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15805 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15806 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15807 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15808 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15809 * unittests/filtered_iterator-selftests.c
15810 (_initialize_filtered_iterator_selftests): Add declaration.
15811 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15812 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15813 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15814 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15815 * unittests/main-thread-selftests.c
15816 (_initialize_main_thread_selftests): Add declaration.
15817 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15818 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15819 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15820 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15821 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15822 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15823 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15824 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15825 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15826 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15827 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15828 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15829 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15830 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15831 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15832 declaration.
15833 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15834 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15835 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15836 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15837 * user-regs.c (_initialize_user_regs): Add declaration.
15838 * utils.c (_initialize_utils): Add declaration.
15839 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15840 * valops.c (_initialize_valops): Add declaration.
15841 * valprint.c (_initialize_valprint): Add declaration.
15842 * value.c (_initialize_values): Add declaration.
15843 * varobj.c (_initialize_varobj): Add declaration.
15844 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15845 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15846 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15847 * windows-nat.c (_initialize_windows_nat): Add declaration.
15848 (_initialize_check_for_gdb_ini): Add declaration.
15849 (_initialize_loadable): Add declaration.
15850 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15851 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15852 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15853 * xcoffread.c (_initialize_xcoffread): Add declaration.
15854 * xml-support.c (_initialize_xml_support): Add declaration.
15855 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15856 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15857 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15858 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15859
e2de1eec
SM
158602020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15861
15862 * regformats/regdat.sh: Generate declaration for init function.
15863
e0037b4c
SM
158642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15865
15866 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15867 up.
15868 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15869 close_one_inferior>: New methods.
15870 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15871 pass down target to find_inferior_pid.
15872 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15873 Pass down target to find_inferior_ptid.
15874 (gdbsim_target::create_inferior): Pass down target to
15875 add_thread_silent.
15876 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15877 target down to find_inferior_ptid and switch_to_thread.
15878 (gdbsim_target::close): Update to call close_one_inferior.
15879 (struct resume_data): Remove.
15880 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15881 directly, rather than through a void pointer.
15882 (gdbsim_target::resume): Update to call resume_one_inferior.
15883
58920b5b
SM
158842020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15885
15886 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15887
4ec89149
PA
158882020-01-12 Pedro Alves <palves@redhat.com>
15889
15890 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15891 directly for the current inferior instead of
15892 discard_all_inferiors.
15893 (discard_all_inferiors): Delete.
15894
7c392d1d
TT
158952020-01-11 Tom Tromey <tom@tromey.com>
15896
15897 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15898 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15899 deprecated_safe_get_selected_frame.
15900
d9ebdab7
TBA
159012020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15902
15903 * inferior.c (print_inferior): Switch inferior before printing it.
15904
f3c469b9
PA
159052020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15906 Pedro Alves <palves@redhat.com>
15907
15908 * progspace-and-thread.c (switch_to_program_space_and_thread):
15909 Assert there's an inferior for PSPACE. Use
15910 switch_to_inferior_no_thread to switch the inferior too.
15911 * progspace.c (program_space::~program_space): Call
15912 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15913 (program_space::free_all_objfiles): Don't call clear_symtab_users
15914 here.
15915 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15916
65c574f6
PA
159172020-01-10 Pedro Alves <palves@redhat.com>
15918
15919 * NEWS: Mention multi-target debugging, "info connections", and
15920 "add-inferior -no-connection".
15921
2f4fcf00
PA
159222020-01-10 Pedro Alves <palves@redhat.com>
15923
15924 * infrun.c: Include "target-connection.h".
15925 (check_multi_target_resumption): New.
15926 (proceed): Call it.
15927 * target-connection.c (make_target_connection_string): Make
15928 extern.
15929 * target-connection.h (make_target_connection_string): Declare.
15930
121b3efd
PA
159312020-01-10 Pedro Alves <palves@redhat.com>
15932
15933 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15934 * inferior.c (uiout_field_connection): New function.
15935 (print_inferior): Add new "connection-id" column.
15936 (add_inferior_command): Show connection number/string of added
15937 inferior.
15938 * process-stratum-target.h
15939 (process_stratum_target::connection_string): New virtual method.
15940 (process_stratum_target::connection_number): New field.
15941 * remote.c (remote_target::connection_string): New override.
15942 * target-connection.c: New file.
15943 * target-connection.h: New file.
15944 * target.c (decref_target): Remove process_stratum targets from
15945 the connection list.
15946 (target_stack::push): Add process_stratum targets to the
15947 connection list.
15948
4f837581
PA
159492020-01-10 Pedro Alves <palves@redhat.com>
15950
15951 Revert:
15952 2016-04-12 Pedro Alves <palves@redhat.com>
15953 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15954 Remove references to name.
15955 * serial.h (struct serial) <name>: Delete.
15956
f4ec508e
PA
159572020-01-10 Pedro Alves <palves@redhat.com>
15958
15959 * gdbarch-selftests.c (register_to_value_test): Remove "target
15960 already pushed" check.
15961
5b6d1e4f
PA
159622020-01-10 Pedro Alves <palves@redhat.com>
15963 John Baldwin <jhb@FreeBSD.org>
15964
15965 * aarch64-linux-nat.c
15966 (aarch64_linux_nat_target::thread_architecture): Adjust.
15967 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15968 (task_command_1): Likewise.
15969 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15970 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15971 (aix_thread_target::store_registers)
15972 (aix_thread_target::thread_alive): Adjust.
15973 * amd64-fbsd-tdep.c: Include "inferior.h".
15974 (amd64fbsd_get_thread_local_address): Pass down target.
15975 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15976 thread's gdbarch instead of target_gdbarch.
15977 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15978 get_last_target_status.
15979 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15980 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15981 inferiors.
15982 (update_inserted_breakpoint_locations): Skip if inferiors with no
15983 execution.
15984 (update_global_location_list): When handling moribund locations,
15985 find representative inferior for location's pspace, and use thread
15986 count of its process_stratum target.
15987 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15988 * bsd-uthread.c (bsd_uthread_target::wait): Use
15989 as_process_stratum_target and adjust thread_change_ptid and
15990 add_thread calls.
15991 (bsd_uthread_target::update_thread_list): Use
15992 as_process_stratum_target and adjust find_thread_ptid,
15993 thread_change_ptid and add_thread calls.
15994 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15995 find_thread_ptid call.
15996 * corelow.c (add_to_thread_list): Adjust add_thread call.
15997 (core_target_open): Adjust add_thread_silent and thread_count
15998 calls.
15999 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16000 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16001 * event-top.c (async_disconnect): Pop targets from all inferiors.
16002 * exec.c (add_target_sections): Push exec target on all inferiors
16003 sharing the program space.
16004 (remove_target_sections): Remove the exec target from all
16005 inferiors sharing the program space.
16006 (exec_on_vfork): New.
16007 * exec.h (exec_on_vfork): Declare.
16008 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16009 Pass it down.
16010 (fbsd_nat_target::update_thread_list): Adjust.
16011 (fbsd_nat_target::resume): Adjust.
16012 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16013 down.
16014 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16015 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16016 get_thread_arch_regcache call.
16017 * fork-child.c (gdb_startup_inferior): Pass target down to
16018 startup_inferior and set_executing.
16019 * gdbthread.h (struct process_stratum_target): Forward declare.
16020 (add_thread, add_thread_silent, add_thread_with_info)
16021 (in_thread_list): Add process_stratum_target parameter.
16022 (find_thread_ptid(inferior*, ptid_t)): New overload.
16023 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16024 parameter.
16025 (all_threads()): Delete overload.
16026 (all_threads, all_non_exited_threads): Add process_stratum_target
16027 parameter.
16028 (all_threads_safe): Use brace initialization.
16029 (thread_count): Add process_stratum_target parameter.
16030 (set_resumed, set_running, set_stop_requested, set_executing)
16031 (threads_are_executing, finish_thread_state): Add
16032 process_stratum_target parameter.
16033 (switch_to_thread): Use is_current_thread.
16034 * i386-fbsd-tdep.c: Include "inferior.h".
16035 (i386fbsd_get_thread_local_address): Pass down target.
16036 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16037 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16038 have_inferiors check.
16039 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16040 (inf_ptrace_target::attach): Adjust.
16041 * infcall.c (run_inferior_call): Adjust.
16042 * infcmd.c (run_command_1): Pass target to
16043 scoped_finish_thread_state.
16044 (proceed_thread_callback): Skip inferiors with no execution.
16045 (continue_command): Rename 'all_threads' local to avoid hiding
16046 'all_threads' function. Adjust get_last_target_status call.
16047 (prepare_one_step): Adjust set_running call.
16048 (signal_command): Use user_visible_resume_target. Compare thread
16049 pointers instead of inferior_ptid.
16050 (info_program_command): Adjust to pass down target.
16051 (attach_command): Mark target's 'thread_executing' flag.
16052 (stop_current_target_threads_ns): New, factored out from ...
16053 (interrupt_target_1): ... this. Switch inferior before making
16054 target calls.
16055 * inferior-iter.h
16056 (struct all_inferiors_iterator, struct all_inferiors_range)
16057 (struct all_inferiors_safe_range)
16058 (struct all_non_exited_inferiors_range): Filter on
16059 process_stratum_target too. Remove explicit.
16060 * inferior.c (inferior::inferior): Push dummy target on target
16061 stack.
16062 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16063 Add process_stratum_target parameter, and pass it down.
16064 (have_live_inferiors): Adjust.
16065 (switch_to_inferior_and_push_target): New.
16066 (add_inferior_command, clone_inferior_command): Handle
16067 "-no-connection" parameter. Use
16068 switch_to_inferior_and_push_target.
16069 (_initialize_inferior): Mention "-no-connection" option in
16070 the help of "add-inferior" and "clone-inferior" commands.
16071 * inferior.h: Include "process-stratum-target.h".
16072 (interrupt_target_1): Use bool.
16073 (struct inferior) <push_target, unpush_target, target_is_pushed,
16074 find_target_beneath, top_target, process_target, target_at,
16075 m_stack>: New.
16076 (discard_all_inferiors): Delete.
16077 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16078 (all_inferiors, all_non_exited_inferiors): Add
16079 process_stratum_target parameter.
16080 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16081 (target_last_proc_target): New global.
16082 (follow_fork_inferior): Push target on new inferior. Pass target
16083 to add_thread_silent. Call exec_on_vfork. Handle target's
16084 reference count.
16085 (follow_fork): Adjust get_last_target_status call. Also consider
16086 target.
16087 (follow_exec): Push target on new inferior.
16088 (struct execution_control_state) <target>: New field.
16089 (user_visible_resume_target): New.
16090 (do_target_resume): Call target_async.
16091 (resume_1): Set target's threads_executing flag. Consider resume
16092 target.
16093 (commit_resume_all_targets): New.
16094 (proceed): Also consider resume target. Skip threads of inferiors
16095 with no execution. Commit resumtion in all targets.
16096 (start_remote): Pass current inferior to wait_for_inferior.
16097 (infrun_thread_stop_requested): Consider target as well. Pass
16098 thread_info pointer to clear_inline_frame_state instead of ptid.
16099 (infrun_thread_thread_exit): Consider target as well.
16100 (random_pending_event_thread): New inferior parameter. Use it.
16101 (do_target_wait): Rename to ...
16102 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16103 down.
16104 (threads_are_resumed_pending_p, do_target_wait): New.
16105 (prepare_for_detach): Adjust calls.
16106 (wait_for_inferior): New inferior parameter. Handle it. Use
16107 do_target_wait_1 instead of do_target_wait.
16108 (fetch_inferior_event): Adjust. Switch to representative
16109 inferior. Pass target down.
16110 (set_last_target_status): Add process_stratum_target parameter.
16111 Save target in global.
16112 (get_last_target_status): Add process_stratum_target parameter and
16113 handle it.
16114 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16115 (context_switch): Check inferior_ptid == null_ptid before calling
16116 inferior_thread().
16117 (get_inferior_stop_soon): Pass down target.
16118 (wait_one): Rename to ...
16119 (poll_one_curr_target): ... this.
16120 (struct wait_one_event): New.
16121 (wait_one): New.
16122 (stop_all_threads): Adjust.
16123 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16124 event's target.
16125 (switch_back_to_stepped_thread): Also consider target.
16126 (print_stop_event): Update.
16127 (normal_stop): Update. Also consider the resume target.
16128 * infrun.h (wait_for_inferior): Remove declaration.
16129 (user_visible_resume_target): New declaration.
16130 (get_last_target_status, set_last_target_status): New
16131 process_stratum_target parameter.
16132 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16133 process_stratum_target parameter, and use it.
16134 (clear_inline_frame_state (thread_info*)): New.
16135 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16136 process_stratum_target parameter.
16137 (clear_inline_frame_state (thread_info*)): Declare.
16138 * linux-fork.c (delete_checkpoint_command): Pass target down to
16139 find_thread_ptid.
16140 (checkpoint_command): Adjust.
16141 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16142 instead of just tweaking inferior_ptid.
16143 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16144 (exit_lwp): Pass target down to find_thread_ptid.
16145 (attach_proc_task_lwp_callback): Pass target down to
16146 add_thread/set_running/set_executing.
16147 (linux_nat_target::attach): Pass target down to
16148 thread_change_ptid.
16149 (get_detach_signal): Pass target down to find_thread_ptid.
16150 Consider last target status's target.
16151 (linux_resume_one_lwp_throw, resume_lwp)
16152 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16153 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16154 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16155 (linux_nat_target::async_wait_fd): New.
16156 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16157 target down.
16158 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16159 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16160 * linux-thread-db.c (struct thread_db_info::process_target): New
16161 field.
16162 (add_thread_db_info): Save target.
16163 (get_thread_db_info): New process_stratum_target parameter. Also
16164 match target.
16165 (delete_thread_db_info): New process_stratum_target parameter.
16166 Also match target.
16167 (thread_from_lwp): Adjust to pass down target.
16168 (thread_db_notice_clone): Pass down target.
16169 (check_thread_db_callback): Pass down target.
16170 (try_thread_db_load_1): Always push the thread_db target.
16171 (try_thread_db_load, record_thread): Pass target down.
16172 (thread_db_target::detach): Pass target down. Always unpush the
16173 thread_db target.
16174 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16175 target down. Always unpush the thread_db target.
16176 (find_new_threads_callback, thread_db_find_new_threads_2)
16177 (thread_db_target::update_thread_list): Pass target down.
16178 (thread_db_target::pid_to_str): Pass current inferior down.
16179 (thread_db_target::get_thread_local_address): Pass target down.
16180 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16181 target down.
16182 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16183 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16184 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16185 (procfs_init_inferior): Rename to ...
16186 (procfs_target::procfs_init_inferior): ... this and adjust.
16187 (procfs_target::create_inferior, procfs_notice_thread)
16188 (procfs_do_thread_registers): Adjust.
16189 * ppc-fbsd-tdep.c: Include "inferior.h".
16190 (ppcfbsd_get_thread_local_address): Pass down target.
16191 * proc-service.c (ps_xfer_memory): Switch current inferior and
16192 program space as well.
16193 (get_ps_regcache): Pass target down.
16194 * process-stratum-target.c
16195 (process_stratum_target::thread_address_space)
16196 (process_stratum_target::thread_architecture): Pass target down.
16197 * process-stratum-target.h
16198 (process_stratum_target::threads_executing): New field.
16199 (as_process_stratum_target): New.
16200 * ravenscar-thread.c
16201 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16202 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16203 down.
16204 * record-btrace.c (record_btrace_target::info_record): Adjust.
16205 (record_btrace_target::record_method)
16206 (record_btrace_target::record_is_replaying)
16207 (record_btrace_target::fetch_registers)
16208 (get_thread_current_frame_id, record_btrace_target::resume)
16209 (record_btrace_target::wait, record_btrace_target::stop): Pass
16210 target down.
16211 * record-full.c (record_full_wait_1): Switch to event thread.
16212 Pass target down.
16213 * regcache.c (regcache::regcache)
16214 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16215 process_stratum_target parameter and handle it.
16216 (current_thread_target): New global.
16217 (get_thread_regcache): Add process_stratum_target parameter and
16218 handle it. Switch inferior before calling target method.
16219 (get_thread_regcache): Pass target down.
16220 (get_thread_regcache_for_ptid): Pass target down.
16221 (registers_changed_ptid): Add process_stratum_target parameter and
16222 handle it.
16223 (registers_changed_thread, registers_changed): Pass target down.
16224 (test_get_thread_arch_aspace_regcache): New.
16225 (current_regcache_test): Define a couple local test_target_ops
16226 instances and use them for testing.
16227 (readwrite_regcache): Pass process_stratum_target parameter.
16228 (cooked_read_test, cooked_write_test): Pass mock_target down.
16229 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16230 (get_thread_arch_aspace_regcache): Add process_stratum_target
16231 parameter.
16232 (regcache::target): New method.
16233 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16234 (regcache::registers_changed_ptid): Add process_stratum_target
16235 parameter.
16236 (regcache::m_target): New field.
16237 (registers_changed_ptid): Add process_stratum_target parameter.
16238 * remote.c (remote_state::supports_vCont_probed): New field.
16239 (remote_target::async_wait_fd): New method.
16240 (remote_unpush_and_throw): Add remote_target parameter.
16241 (get_current_remote_target): Adjust.
16242 (remote_target::remote_add_inferior): Push target.
16243 (remote_target::remote_add_thread)
16244 (remote_target::remote_notice_new_inferior)
16245 (get_remote_thread_info): Pass target down.
16246 (remote_target::update_thread_list): Skip threads of inferiors
16247 bound to other targets. (remote_target::close): Don't discard
16248 inferiors. (remote_target::add_current_inferior_and_thread)
16249 (remote_target::process_initial_stop_replies)
16250 (remote_target::start_remote)
16251 (remote_target::remote_serial_quit_handler): Pass down target.
16252 (remote_target::remote_unpush_target): New remote_target
16253 parameter. Unpush the target from all inferiors.
16254 (remote_target::remote_unpush_and_throw): New remote_target
16255 parameter. Pass it down.
16256 (remote_target::open_1): Check whether the current inferior has
16257 execution instead of checking whether any inferior is live. Pass
16258 target down.
16259 (remote_target::remote_detach_1): Pass down target. Use
16260 remote_unpush_target.
16261 (extended_remote_target::attach): Pass down target.
16262 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16263 (remote_target::append_resumption): Pass down target.
16264 (remote_target::append_pending_thread_resumptions)
16265 (remote_target::remote_resume_with_hc, remote_target::resume)
16266 (remote_target::commit_resume): Pass down target.
16267 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16268 (remote_target::interrupt_query)
16269 (remote_target::remove_new_fork_children)
16270 (remote_target::check_pending_events_prevent_wildcard_vcont)
16271 (remote_target::remote_parse_stop_reply)
16272 (remote_target::process_stop_reply): Pass down target.
16273 (first_remote_resumed_thread): New remote_target parameter. Pass
16274 it down.
16275 (remote_target::wait_as): Pass down target.
16276 (unpush_and_perror): New remote_target parameter. Pass it down.
16277 (remote_target::readchar, remote_target::remote_serial_write)
16278 (remote_target::getpkt_or_notif_sane_1)
16279 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16280 down target.
16281 (remote_target::mourn_inferior): Pass down target. Use
16282 remote_unpush_target.
16283 (remote_target::core_of_thread)
16284 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16285 (remote_target::pid_to_exec_file)
16286 (remote_target::thread_handle_to_thread_info): Pass down target.
16287 (remote_target::async_wait_fd): New.
16288 * riscv-fbsd-tdep.c: Include "inferior.h".
16289 (riscv_fbsd_get_thread_local_address): Pass down target.
16290 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16291 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16292 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16293 Adjust.
16294 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16295 * solib-svr4.c (enable_break): Pass down target.
16296 * spu-multiarch.c (parse_spufs_run): Pass down target.
16297 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16298 * target-delegates.c: Regenerate.
16299 * target.c (g_target_stack): Delete.
16300 (current_top_target): Return the current inferior's top target.
16301 (target_has_execution_1): Refer to the passed-in inferior's top
16302 target.
16303 (target_supports_terminal_ours): Check whether the initial
16304 inferior was already created.
16305 (decref_target): New.
16306 (target_stack::push): Incref/decref the target.
16307 (push_target, push_target, unpush_target): Adjust.
16308 (target_stack::unpush): Defref target.
16309 (target_is_pushed): Return bool. Adjust to refer to the current
16310 inferior's target stack.
16311 (dispose_inferior): Delete, and inline parts ...
16312 (target_preopen): ... here. Only dispose of the current inferior.
16313 (target_detach): Hold strong target reference while detaching.
16314 Pass target down.
16315 (target_thread_name): Add assertion.
16316 (target_resume): Pass down target.
16317 (target_ops::beneath, find_target_at): Adjust to refer to the
16318 current inferior's target stack.
16319 (get_dummy_target): New.
16320 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16321 has a thread running.
16322 (initialize_targets): Rename to ...
16323 (_initialize_target): ... this.
16324 * target.h: Include "gdbsupport/refcounted-object.h".
16325 (struct target_ops): Inherit refcounted_object.
16326 (target_ops::shortname, target_ops::longname): Make const.
16327 (target_ops::async_wait_fd): New method.
16328 (decref_target): Declare.
16329 (struct target_ops_ref_policy): New.
16330 (target_ops_ref): New typedef.
16331 (get_dummy_target): Declare function.
16332 (target_is_pushed): Return bool.
16333 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16334 (all_matching_threads_iterator::all_matching_threads_iterator):
16335 Handle filter target.
16336 * thread-iter.h (struct all_matching_threads_iterator, struct
16337 all_matching_threads_range, class all_non_exited_threads_range):
16338 Filter by target too. Remove explicit.
16339 * thread.c (threads_executing): Delete.
16340 (inferior_thread): Pass down current inferior.
16341 (clear_thread_inferior_resources): Pass down thread pointer
16342 instead of ptid_t.
16343 (add_thread_silent, add_thread_with_info, add_thread): Add
16344 process_stratum_target parameter. Use it for thread and inferior
16345 searches.
16346 (is_current_thread): New.
16347 (thread_info::deletable): Use it.
16348 (find_thread_ptid, thread_count, in_thread_list)
16349 (thread_change_ptid, set_resumed, set_running): New
16350 process_stratum_target parameter. Pass it down.
16351 (set_executing): New process_stratum_target parameter. Pass it
16352 down. Adjust reference to 'threads_executing'.
16353 (threads_are_executing): New process_stratum_target parameter.
16354 Adjust reference to 'threads_executing'.
16355 (set_stop_requested, finish_thread_state): New
16356 process_stratum_target parameter. Pass it down.
16357 (switch_to_thread): Also match inferior.
16358 (switch_to_thread): New process_stratum_target parameter. Pass it
16359 down.
16360 (update_threads_executing): Reimplement.
16361 * top.c (quit_force): Pop targets from all inferior.
16362 (gdb_init): Don't call initialize_targets.
16363 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16364 Declare.
16365 (windows_add_thread, windows_delete_thread): Adjust.
16366 (get_windows_debug_event): Rename to ...
16367 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16368 * tracefile-tfile.c (tfile_target_open): Pass down target.
16369 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16370 Forward declare.
16371 (switch_to_thread): Add process_stratum_target parameter.
16372 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16373 parameter. Use it.
16374 (mi_on_resume): Pass target down.
16375 * nat/fork-inferior.c (startup_inferior): Add
16376 process_stratum_target parameter. Pass it down.
16377 * nat/fork-inferior.h (startup_inferior): Add
16378 process_stratum_target parameter.
16379 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16380
75c6c844
PA
163812020-01-10 Pedro Alves <palves@redhat.com>
16382
16383 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16384 directly. Instead find the first thread in the thread list and
16385 use switch_to_thread.
16386
78f2c40a
PA
163872020-01-10 Pedro Alves <palves@redhat.com>
16388
16389 * remote.c (remote_target::remote_add_inferior): Don't bind a
16390 process to the current inferior if the current inferior is already
16391 bound to a process.
16392
e7af6c70
TBA
163932020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16394 Pedro Alves <palves@redhat.com>
16395
16396 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16397 If no process is specified, return null_ptid instead of
16398 inferior_ptid.
16399 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16400 TARGET_WAITKIND_SIGNALLED with no pid.
16401
31ba933e
PA
164022020-01-10 Pedro Alves <palves@redhat.com>
16403
16404 * remote.c (first_remote_resumed_thread): New.
16405 (remote_target::wait_as): Use it as default event_ptid instead of
16406 inferior_ptid.
16407
735fc2ca
PA
164082020-01-10 Pedro Alves <palves@redhat.com>
16409
16410 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16411
c17e02e1
PA
164122020-01-10 Pedro Alves <palves@redhat.com>
16413
16414 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16415 not -1.
16416
ab1ddbcf
PA
164172020-01-10 Pedro Alves <palves@redhat.com>
16418
16419 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16420 ptid to get_last_target_status.
16421 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16422 ptid to get_last_target_status.
16423 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16424 get_last_target_status.
16425 (info_program_command): Don't pass a target_waitstatus to
16426 get_last_target_status.
16427 * infrun.c (init_wait_for_inferior): Use
16428 nullify_last_target_wait_ptid.
16429 (get_last_target_status): Handle nullptr arguments.
16430 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16431 (print_stop_event): Don't pass a ptid to get_last_target_status.
16432 (normal_stop): Don't pass a ptid to get_last_target_status.
16433 * infrun.h (get_last_target_status, set_last_target_status): Move
16434 comments here and update.
16435 (nullify_last_target_wait_ptid): Declare.
16436 * linux-fork.c (fork_load_infrun_state): Remove local extern
16437 declaration of nullify_last_target_wait_ptid.
16438 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16439 to get_last_target_status.
16440
f3f8ece4
PA
164412020-01-10 Pedro Alves <palves@redhat.com>
16442
16443 * gdbthread.h (scoped_restore_current_thread)
16444 <dont_restore, restore, m_dont_restore>: Declare.
16445 * thread.c (thread_alive): Add assertion. Return bool.
16446 (switch_to_thread_if_alive): New.
16447 (prune_threads): Switch inferior/thread.
16448 (print_thread_info_1): Switch thread before calling target methods.
16449 (scoped_restore_current_thread::restore): New, factored out from
16450 ...
16451 (scoped_restore_current_thread::~scoped_restore_current_thread):
16452 ... this.
16453 (scoped_restore_current_thread::scoped_restore_current_thread):
16454 Add assertion.
16455 (thread_apply_all_command, thread_select): Use
16456 switch_to_thread_if_alive.
16457 * infrun.c (proceed, restart_threads, handle_signal_stop)
16458 (switch_back_to_stepped_thread): Switch current thread before
16459 calling target methods.
16460
db2d40f7
PA
164612020-01-10 Pedro Alves <palves@redhat.com>
16462
16463 * inferior.c (switch_to_inferior_no_thread): New function,
16464 factored out from ...
16465 (inferior_command): ... here.
16466 * inferior.h (switch_to_inferior_no_thread): Declare.
16467 * mi/mi-main.c (run_one_inferior): Use
16468 switch_to_inferior_no_thread.
16469
bd420a2d
PA
164702020-01-10 Pedro Alves <palves@redhat.com>
16471
16472 * infcmd.c (kill_command): Remove dead code.
16473
ddf5db90
PA
164742020-01-10 Pedro Alves <palves@redhat.com>
16475
16476 * remote.c (remote_target::mourn_inferior): No longer check
16477 whether the target is running.
16478
5018ce90
PA
164792020-01-10 Pedro Alves <palves@redhat.com>
16480
16481 * corelow.c (core_target::has_execution): Change parameter type to
16482 inferior pointer.
16483 * inferior.c (number_of_live_inferiors): Use
16484 inferior::has_execution instead of target_has_execution_1.
16485 * inferior.h (inferior::has_execution): New.
16486 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16487 inferior::has_execution instead of target_has_execution_1.
16488 * process-stratum-target.c
16489 (process_stratum_target::has_execution): Change parameter type to
16490 inferior pointer. Check the inferior's PID instead of
16491 inferior_ptid.
16492 * process-stratum-target.h
16493 (process_stratum_target::has_execution): Change parameter type to
16494 inferior pointer.
16495 * record-full.c (record_full_core_target::has_execution): Change
16496 parameter type to inferior pointer.
16497 * target.c (target_has_execution_1): Change parameter type to
16498 inferior pointer.
16499 (target_has_execution_current): Adjust.
16500 * target.h (target_ops::has_execution): Change parameter type to
16501 inferior pointer.
16502 (target_has_execution_1): Change parameter type to inferior
16503 pointer. Change return type to bool.
16504 * tracefile.h (tracefile_target::has_execution): Change parameter
16505 type to inferior pointer.
16506
74375d18
PA
165072020-01-10 Pedro Alves <palves@redhat.com>
16508
16509 * exceptions.c (print_flush): Remove current_top_target() check.
16510
acdf84a6
PA
165112020-01-10 Pedro Alves <palves@redhat.com>
16512
16513 * remote.c (show_remote_exec_file): Show the current inferior's
16514 exec-file instead of the command variable's value.
16515
ec506636
PA
165162020-01-10 Pedro Alves <palves@redhat.com>
16517
16518 * record-full.c (record_full_resume_ptid): New global.
16519 (record_full_target::resume): Set it.
16520 (record_full_wait_1): Use record_full_resume_ptid instead of
16521 inferior_ptid.
16522
873657b9
PA
165232020-01-10 Pedro Alves <palves@redhat.com>
16524
16525 * gdbthread.h (scoped_restore_current_thread)
16526 <dont_restore, restore, m_dont_restore>: Declare.
16527 * thread.c (thread_alive): Add assertion. Return bool.
16528 (switch_to_thread_if_alive): New.
16529 (prune_threads): Switch inferior/thread.
16530 (print_thread_info_1): Switch thread before calling target methods.
16531 (scoped_restore_current_thread::restore): New, factored out from
16532 ...
16533 (scoped_restore_current_thread::~scoped_restore_current_thread):
16534 ... this.
16535 (scoped_restore_current_thread::scoped_restore_current_thread):
16536 Add assertion.
16537 (thread_apply_all_command, thread_select): Use
16538 switch_to_thread_if_alive.
16539
7f0ae84c
GB
165402020-01-10 George Barrett <bob@bob131.so>
16541
16542 * stap-probe.c (stap_modify_semaphore): Don't check for null
16543 semaphores.
16544 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16545 for null semaphores.
16546
f5a7c406
AB
165472020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16548
16549 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16550 all source windows, and maintain horizontal scroll status while
16551 doing so.
16552
9ae6bf64
TT
165532020-01-09 Tom Tromey <tom@tromey.com>
16554
16555 PR tui/18932:
16556 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16557 update_source_window, not print_source_lines.
16558
b2efe70c
AB
165592020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16560
16561 * tui/tui.c (tui_enable): Register tui hooks after calling
16562 tui_display_main.
16563
5f23a082
CB
165642020-01-09 Christian Biesinger <cbiesinger@google.com>
16565
16566 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16567
3061113b
SM
165682020-01-08 Simon Marchi <simon.marchi@efficios.com>
16569
16570 * thread.c (print_thread_info_1): Fix indentation.
16571
57d75002
CB
165722020-01-09 Christian Biesinger <cbiesinger@google.com>
16573
16574 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16575 unique_xmalloc_ptr outside the if to always free the demangled name.
16576
6a053cb1
TT
165772020-01-08 Tom Tromey <tromey@adacore.com>
16578
16579 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16580 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16581 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16582 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16583 Remove.
16584 (section_offsets): New typedef.
16585 * symtab.c (fixup_section, get_msymbol_address): Update.
16586 * symmisc.c (dump_msymbols): Update.
16587 * symfile.h (relative_addr_info_to_section_offsets)
16588 (symfile_map_offsets_to_segments): Update.
16589 * symfile.c (build_section_addr_info_from_objfile)
16590 (init_objfile_sect_indices): Update.
16591 (struct place_section_arg): Change type of "offsets".
16592 (place_section): Update.
16593 (relative_addr_info_to_section_offsets): Change type of
16594 "section_offsets". Remove "num_sections" parameter.
16595 (default_symfile_offsets, syms_from_objfile_1)
16596 (set_objfile_default_section_offset): Update.
16597 (reread_symbols): No need to preserve section offsets by hand.
16598 (symfile_map_offsets_to_segments): Change type of "offsets".
16599 * stap-probe.c (relocate_address): Update.
16600 * stabsread.h (process_one_symbol): Update.
16601 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16602 (solib_target_relocate_section_addresses): Update.
16603 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16604 Update.
16605 * solib-frv.c (frv_relocate_main_executable): Update.
16606 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16607 * solib-aix.c (solib_aix_get_section_offsets): Change return
16608 type.
16609 (solib_aix_solib_create_inferior_hook): Update.
16610 * remote.c (remote_target::get_offsets): Update.
16611 * psymtab.c (find_pc_sect_psymtab): Update.
16612 * psympriv.h (struct partial_symbol) <address, text_low,
16613 text_high>: Update.
16614 * objfiles.h (obj_section_offset): Update.
16615 (struct objfile) <section_offsets>: Change type.
16616 <num_sections>: Remove.
16617 (objfile_relocate): Update.
16618 * objfiles.c (entry_point_address_query): Update
16619 (relocate_one_symbol): Change type of "section_offsets".
16620 (objfile_relocate1, objfile_relocate1): Change type of
16621 "new_offsets".
16622 (objfile_rebase1): Update.
16623 * mipsread.c (mipscoff_symfile_read): Update.
16624 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16625 parameter.
16626 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16627 (parse_external, psymtab_to_symtab_1): Update.
16628 * machoread.c (macho_symfile_offsets): Update.
16629 * ia64-tdep.c (ia64_find_unwind_table): Update.
16630 * hppa-tdep.c (read_unwind_info): Update.
16631 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16632 * dwarf2read.c (create_addrmap_from_index)
16633 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16634 (process_psymtab_comp_unit_reader, add_partial_symbol)
16635 (add_partial_subprogram, process_full_comp_unit)
16636 (read_file_scope, read_func_scope, read_lexical_block_scope)
16637 (read_call_site_scope, dwarf2_rnglists_process)
16638 (dwarf2_ranges_process, dwarf2_ranges_read)
16639 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16640 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16641 Update.
16642 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16643 Update.
16644 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16645 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16646 (process_one_symbol): Change type of "section_offsets".
16647 * ctfread.c (get_objfile_text_range): Update.
16648 * coffread.c (coff_symtab_read, enter_linenos)
16649 (process_coff_symbol): Update.
16650 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16651 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16652
456e800a
TT
166532020-01-08 Tom Tromey <tromey@adacore.com>
16654
16655 * dwarf2read.c (parse_macro_definition): Use std::string.
16656 (parse_macro_definition): Likewise.
16657
6dfa2fc2
TT
166582020-01-08 Tom Tromey <tromey@adacore.com>
16659
16660 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16661 (ATTR_ALLOC_CHUNK): Remove.
16662
421d1616
TT
166632020-01-08 Tom Tromey <tromey@adacore.com>
16664
16665 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16666
43816ebc
TT
166672020-01-08 Tom Tromey <tromey@adacore.com>
16668
16669 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16670 (dwarf2_compute_name, open_dwo_file): Likewise.
16671 (process_enumeration_scope): Use std::vector.
16672 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16673 (partial_die_info::fixup, dwarf2_start_subfile)
16674 (guess_full_die_structure_name, dwarf2_name): Likewise.
16675 (determine_prefix): Update.
16676 (guess_full_die_structure_name): Make return type const.
16677 (partial_die_full_name): Return unique_xmalloc_ptr.
16678 (DW_FIELD_ALLOC_CHUNK): Remove.
16679
4212d509
TT
166802020-01-07 Tom Tromey <tromey@adacore.com>
16681
16682 PR build/24937:
16683 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16684
06a6207a
JT
166852020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16686
16687 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16688
153d79c4
AB
166892020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16690
16691 * stack.c (print_frame_info): Move disassemble_next_line code
16692 inside source_print block.
16693
66182876
EZ
166942020-01-06 Eli Zaretskii <eliz@gnu.org>
16695
16696 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16697 gdb/signals.h, as we are now using native signal symbols.
16698
cbfa8581
SV
166992020-01-06 Shahab Vahedi <shahab@synopsys.com>
16700
16701 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16702 overflow by an early check of content vs threshold.
aac66a4c 16703 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16704 Likewise.
16705
3f602821
EZ
167062020-01-06 Eli Zaretskii <eliz@gnu.org>
16707
16708 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16709
a08c904d
JT
167102020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16711
16712 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16713 export table if no section contains it's RVA.
16714
89a65580
EZ
167152020-01-06 Eli Zaretskii <eliz@gnu.org>
16716
16717 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16718
8b7fcda2
HD
167192020-01-06 Hannes Domani <ssbssa@yahoo.de>
16720
16721 * source.c (print_source_lines_base): Set last_line_listed.
16722
a61b4f69
SV
167232020-01-06 Shahab Vahedi <shahab@synopsys.com>
16724
16725 * tui/tui-disasm.c: Remove trailing spaces.
16726
559e7e50
EZ
167272020-01-06 Eli Zaretskii <eliz@gnu.org>
16728 Pedro Alves <palves@redhat.com>
16729
16730 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16731 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16732 (windows_gdb_signal_to_target): New function, uses the above
16733 enumeration to convert GDB internal signal codes to equivalent
16734 Windows codes.
16735 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16736 * windows-nat.c: Include "gdb_wait.h".
16737 (get_windows_debug_event): Extract the fatal exception from the
16738 exit status and convert to the equivalent Posix signal number.
16739 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16740 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16741 * gdbsupport/gdb_wait.c: New file, implements
16742 windows_status_to_termsig.
16743 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16744 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16745
f2302a34
AB
167462020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16747
16748 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16749 show_layout.
16750
6a5206eb
LM
167512020-01-05 Luis Machado <luis.machado@linaro.org>
16752
16753 * aarch64-linux-nat.c
16754 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16755 and bfd_mach_aarch64.
16756
6ec1d75e
PW
167572020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16758
16759 * ui-file.c (stdio_file::can_emit_style_escape)
16760 (tee_file::can_emit_style_escape): Ensure style is used also on
16761 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16762 to gdb_stdout.
16763 * main.c (set_gdb_data_directory): Use file style to output the
16764 warning that the given pathname is not a directory.
16765 * top.c (show_history_filename, gdb_safe_append_history)
16766 (show_gdb_datadir): Use file style.
16767
44f81a76
HD
167682020-01-03 Hannes Domani <ssbssa@yahoo.de>
16769
16770 * solib-target.c (struct lm_info_target):
16771 Change offsets to be a unique_xmalloc_ptr.
16772 (solib_target_relocate_section_addresses): Update.
16773
25057eb0
HD
167742020-01-03 Hannes Domani <ssbssa@yahoo.de>
16775
16776 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16777
6e2118f5
BE
167782020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16779
16780 * MAINTAINERS (Write After Approval): Add myself.
16781
8133c7dc
LM
167822020-01-02 Luis Machado <luis.machado@linaro.org>
16783
16784 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16785 Cell BE architecture.
16786 * target.h (struct target_ops) <thread_architecture>: Likewise.
16787
48189bec
HD
167882020-01-01 Hannes Domani <ssbssa@yahoo.de>
16789
16790 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16791
ead1063b
HD
167922020-01-01 Hannes Domani <ssbssa@yahoo.de>
16793
16794 * MAINTAINERS (Write After Approval): Add myself.
16795
e5d78223
JB
167962020-01-01 Joel Brobecker <brobecker@adacore.com>
16797
16798 * gdbarch.sh: Update copyright year range of generated files.
16799
b811d2c2
JB
168002020-01-01 Joel Brobecker <brobecker@adacore.com>
16801
16802 Update copyright year range in all GDB files.
16803
5f4def5c
JB
168042020-01-01 Joel Brobecker <brobecker@adacore.com>
16805
16806 * copyright.py: Convert to Python 3.
16807
51fd4002
JB
168082020-01-01 Joel Brobecker <brobecker@adacore.com>
16809
16810 * copyright.py: Adapt after move of gnulib directory from gdb
16811 directory to toplevel directory.
16812
5fb651f2
JB
168132020-01-01 Joel Brobecker <brobecker@adacore.com>
16814
16815 * copyright.py (main): Exit if run from the wrong directory.
16816
5dd8bf88
JB
168172020-01-01 Joel Brobecker <brobecker@adacore.com>
16818
16819 * top.c (print_gdb_version): Change copyright year to 2020.
16820
9f71dacb 168212020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16822
9f71dacb 16823 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16824
9f71dacb 16825For older changes see ChangeLog-2019.
c906108c
SS
16826\f
16827Local Variables:
16828mode: change-log
16829left-margin: 8
16830fill-column: 74
16831version-control: never
57da7796 16832coding: utf-8
c906108c 16833End: