Add file name to "Loadable section ... outside of ELF segments" warning
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9d3ab915
KS
12020-11-13 Keith Seitz <keiths@redhat.com>
2
3 PR gdb/23034
4 * elfread.c (elf_symfile_segments): Output a BFD file name
5 for the "Loadable section ... outside of ELF segments" warning.
6
9ecab40c
SM
72020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
8
9 PR gdb/26835
10 * arm-tdep.c (class arm_instruction_reader): New.
11 (target_arm_instruction_reader): New.
12 (arm_analyze_prologue): Add instruction reader parameter and use
13 it. Use arm_expand_immediate.
14 (class target_arm_instruction_reader): Adjust.
15 (arm_skip_prologue): Adjust.
16 (arm_expand_immediate): New.
17 (arm_scan_prologue): Adjust.
18 (arm_analyze_prologue_test): New.
19 (class test_arm_instruction_reader): New.
20
5a7cf527
AB
212020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
22
23 * f-lang.c (fortran_argument_convert): Add declaration. Add
24 header comment, taken from f-lang.h. Make static.
25 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
26 (fortran_argument_convert): Delete declaration.
27
7bea47f0
AB
282020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * ada-exp.y (find_primitive_type): Make parameter const.
31 * ada-lang.c (enum ada_primitive_types): Delete.
32 (ada_language::language_arch_info): Update.
33 * c-lang.c (enum c_primitive_types): Delete.
34 (c_language_arch_info): Update.
35 (enum cplus_primitive_types): Delete.
36 (cplus_language::language_arch_info): Update.
37 * d-lang.c (enum d_primitive_types): Delete.
38 (d_language::language_arch_info): Update.
39 * f-lang.c (enum f_primitive_types): Delete.
40 (f_language::language_arch_info): Update.
41 * go-lang.c (enum go_primitive_types): Delete.
42 (go_language::language_arch_info): Update.
43 * language.c (auto_or_unknown_language::language_arch_info):
44 Update.
45 (language_gdbarch_post_init): Use obstack_new, use array indexing.
46 (language_string_char_type): Add header comment, call function in
47 language_arch_info.
48 (language_bool_type): Likewise
49 (language_arch_info::bool_type): Define.
50 (language_lookup_primitive_type_1): Delete.
51 (language_lookup_primitive_type): Rewrite as a templated function
52 to call function in language_arch_info, then instantiate twice.
53 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
54 (language_arch_info::lookup_primitive_type_and_symbol): Define.
55 (language_arch_info::lookup_primitive_type): Define twice with
56 different signatures.
57 (language_arch_info::lookup_primitive_type_as_symbol): Define.
58 (language_lookup_primitive_type_as_symbol): Rewrite to call a
59 member function in language_arch_info.
60 * language.h (language_arch_info): Complete rewrite.
61 (language_lookup_primitive_type): Make templated.
62 * m2-lang.c (enum m2_primitive_types): Delete.
63 (m2_language::language_arch_info): Update.
64 * opencl-lang.c (OCL_P_TYPE): Delete.
65 (enum opencl_primitive_types): Delete.
66 (opencl_type_data): Delete.
67 (builtin_opencl_type): Delete.
68 (lookup_opencl_vector_type): Update.
69 (opencl_language::language_arch_info): Update, lots of content
70 moved from...
71 (build_opencl_types): ...here. This function is now deleted.
72 (_initialize_opencl_language): Delete.
73 * p-lang.c (enum pascal_primitive_types): Delete.
74 (pascal_language::language_arch_info): Update.
75 * rust-lang.c (enum rust_primitive_types): Delete.
76 (rust_language::language_arch_info): Update.
77
bf6e5d01
SM
782020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
79
80 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
81 dwarf2_queue_guard.
82
1350c3b4
SM
832020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
86 comment.
87
6f738b01
SM
882020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
89
90 * dwarf2/read.c (dwarf_read_debug_printf,
91 dwarf_read_debug_printf_v): New macros, use throughout the file.
92
10c19fad
SV
932020-11-12 Shahab Vahedi <shahab@synopsys.com>
94
95 * arc-linux-tdep.c (collect_register): Populate "eret" by
96 "pc" value from the regcache when asked for "pc" value.
97
1f2624a3
TT
982020-11-12 Tom Tromey <tom@tromey.com>
99
100 PR rust/26799:
101 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
102 exist.
103
ab33b152
AB
1042020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
105
106 * features/Makefile (XMLTOC): Add rx.xml.
107 (FEATURE_XMLFILES): Remove rx.xml.
108 (FEATURE_CFILES rule): Pass '-single-feature' flag.
109 * features/rx.c: Regenerate.
110 * features/rx.xml: Wrap in `target` tags, and reindent.
111 * target-descriptions.c (struct maint_print_c_tdesc_options): New
112 structure.
113 (maint_print_c_tdesc_opt_def): New typedef.
114 (maint_print_c_tdesc_opt_defs): New static global.
115 (make_maint_print_c_tdesc_options_def_group): New function.
116 (maint_print_c_tdesc_cmd): Make use of command line flags, only
117 print single feature C file for target descriptions containing a
118 single feature.
119 (maint_print_c_tdesc_cmd_completer): New function.
120 (_initialize_target_descriptions): Update call to register command
121 completer, and include command line flag in help text.
122
550820e1
AB
1232020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
126 numbers.
127 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
128 enum values.
129
baf20f76
TT
1302020-11-10 Tom Tromey <tom@tromey.com>
131
132 * value.h (internalvar_name): Update.
133 * value.c (internalvar_name): Make return type const.
134
caaece0e
TT
1352020-11-10 Tom Tromey <tom@tromey.com>
136
137 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
138 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
139 const.
140
8e20b4be
TT
1412020-11-10 Tom Tromey <tom@tromey.com>
142
143 * objc-lang.h (value_nsstring): Update.
144 * objc-lang.c (value_nsstring): Make "ptr" const.
145
86775fab
AB
1462020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
147
148 * expprint.c (print_subexp_funcall): Increment expression position
149 after reading argument count.
150 * f-lang.c (print_subexp_f): Skip over opcode before calling
151 common function.
152 (dump_subexp_body_f): Likewise.
153
3fed4c0b
RG
1542020-11-06 Romain Geissler <romain.geissler@amadeus.com>
155
156 PR python/26832
157 * configure: Regenerate.
158 * configure.ac: Check for python modules ctypes instead of
159 itertools.
160
ac3d4064
PA
1612020-11-06 Pedro Alves <pedro@palves.net>
162
163 * macroexp.c (struct macro_buffer): Split in two classes. Add
164 uses adjusted.
165 (struct shared_macro_buffer): New, factored out from struct
166 macro_buffer.
167 (struct growable_macro_buffer): New, factored out from struct
168 macro_buffer.
169 (set_token, get_comment, get_identifier, get_pp_number)
170 (get_character_constant, get_string_literal, get_punctuator)
171 (get_next_token_for_substitution): Constify parameters.
172 (substitute_args): Constify locals.
173
606decb2
TT
1742020-11-05 Tom Tromey <tom@tromey.com>
175
176 * dwarf2/read.c (read_cutu_die_from_dwo)
177 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
178 (build_type_psymtabs_1): Update.
179 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
180 parameter.
181 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
182 Don't read section. Add assert.
183
9c91c725
TT
1842020-11-04 Tom Tromey <tromey@adacore.com>
185
186 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
187
8d9fd3a1
TT
1882020-11-04 Tom Tromey <tromey@adacore.com>
189
190 * ada-typeprint.c (ada_print_type): Handle __T types.
191
d8f62e84
TT
1922020-11-04 Tom Tromey <tromey@adacore.com>
193
194 * dwarf2/read.c (add_partial_symbol, process_die):
195 Handle DW_TAG_array_type.
196 (is_type_tag_for_partial): Add "lang" parameter.
197 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
198
7ff5b937
TT
1992020-11-04 Tom Tromey <tromey@adacore.com>
200
201 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
202
10f6a3ad
TT
2032020-11-04 Tom Tromey <tromey@adacore.com>
204
205 * dwarf2/read.c (read_array_type): Only apply stride to innermost
206 array.
207
b72795a8
TT
2082020-11-04 Tom Tromey <tromey@adacore.com>
209
210 * gdbtypes.c (update_static_array_size): Handle bit stride.
211
24aa1b02
TT
2122020-11-04 Tom Tromey <tromey@adacore.com>
213
214 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
215
c9a28cbe
TT
2162020-11-04 Tom Tromey <tromey@adacore.com>
217
218 * ada-lang.c (ada_is_any_packed_array_type): New function.
219 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
220
57567375
TT
2212020-11-04 Tom Tromey <tromey@adacore.com>
222
223 * dwarf2/read.c (recognize_bound_expression)
224 (quirk_ada_thick_pointer): New functions.
225 (read_array_type): Call quirk_ada_thick_pointer.
226 (set_die_type): Add "skip_data_location" parameter.
227 (quirk_ada_thick_pointer): New function.
228 (process_structure_scope): Call quirk_ada_thick_pointer.
229 * ada-lang.c (ada_is_unconstrained_packed_array_type)
230 (decode_packed_array_bitsize): Handle thick pointers without
231 parallel types.
232 (ada_is_gnat_encoded_packed_array_type): Rename from
233 ada_is_packed_array_type.
234 (ada_is_constrained_packed_array_type): Update.
235 * ada-valprint.c (ada_val_print_gnat_array): Remove.
236 (ada_value_print_1): Use ada_get_decoded_value.
237
a7400e44
TT
2382020-11-04 Tom Tromey <tromey@adacore.com>
239
240 * ada-lang.c (recursively_update_array_bitsize): New function.
241 (decode_constrained_packed_array_type): Call it.
242
75fd6a26
TT
2432020-11-04 Tom Tromey <tromey@adacore.com>
244
245 * ada-lang.c (to_fixed_array_type): Error if
246 decode_constrained_packed_array_type returns NULL.
247
93f9561e
TT
2482020-11-04 Tom Tromey <tromey@adacore.com>
249
250 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
251
257e02d8
TT
2522020-11-02 Tom Tromey <tromey@adacore.com>
253
254 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
255 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
256 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
257 * amd64-ravenscar-thread.c: New file.
258 * amd64-ravenscar-thread.h: New file.
259 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
260 * configure.tgt (amd64_tobjs): Add ravenscar objects.
261
74d877e5
AB
2622020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 * main.c (execute_cmdargs): New function.
265 (captured_main_1): Make use of execute_cmdargs.
266
64aaad63
AB
2672020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * NEWS: Mention changes to config file search path.
270 * main.c
271
5b3d3560
TT
2722020-11-02 Tom Tromey <tromey@adacore.com>
273
274 * python/python.c: Consolidate two HAVE_PYTHON blocks.
275 (python_GdbModuleDef): Move earlier. Now static.
276 (do_start_initialization): Consolidate some IS_PY3K blocks.
277
dda83cd7
SM
2782020-11-02 Simon Marchi <simon.marchi@efficios.com>
279
280 * aarch64-linux-tdep.c: Fix indentation.
281 * aarch64-ravenscar-thread.c: Fix indentation.
282 * aarch64-tdep.c: Fix indentation.
283 * aarch64-tdep.h: Fix indentation.
284 * ada-lang.c: Fix indentation.
285 * ada-lang.h: Fix indentation.
286 * ada-tasks.c: Fix indentation.
287 * ada-typeprint.c: Fix indentation.
288 * ada-valprint.c: Fix indentation.
289 * ada-varobj.c: Fix indentation.
290 * addrmap.c: Fix indentation.
291 * addrmap.h: Fix indentation.
292 * agent.c: Fix indentation.
293 * aix-thread.c: Fix indentation.
294 * alpha-bsd-nat.c: Fix indentation.
295 * alpha-linux-tdep.c: Fix indentation.
296 * alpha-mdebug-tdep.c: Fix indentation.
297 * alpha-nbsd-tdep.c: Fix indentation.
298 * alpha-obsd-tdep.c: Fix indentation.
299 * alpha-tdep.c: Fix indentation.
300 * amd64-bsd-nat.c: Fix indentation.
301 * amd64-darwin-tdep.c: Fix indentation.
302 * amd64-linux-nat.c: Fix indentation.
303 * amd64-linux-tdep.c: Fix indentation.
304 * amd64-nat.c: Fix indentation.
305 * amd64-obsd-tdep.c: Fix indentation.
306 * amd64-tdep.c: Fix indentation.
307 * amd64-windows-tdep.c: Fix indentation.
308 * annotate.c: Fix indentation.
309 * arc-tdep.c: Fix indentation.
310 * arch-utils.c: Fix indentation.
311 * arch/arm-get-next-pcs.c: Fix indentation.
312 * arch/arm.c: Fix indentation.
313 * arm-linux-nat.c: Fix indentation.
314 * arm-linux-tdep.c: Fix indentation.
315 * arm-nbsd-tdep.c: Fix indentation.
316 * arm-pikeos-tdep.c: Fix indentation.
317 * arm-tdep.c: Fix indentation.
318 * arm-tdep.h: Fix indentation.
319 * arm-wince-tdep.c: Fix indentation.
320 * auto-load.c: Fix indentation.
321 * auxv.c: Fix indentation.
322 * avr-tdep.c: Fix indentation.
323 * ax-gdb.c: Fix indentation.
324 * ax-general.c: Fix indentation.
325 * bfin-linux-tdep.c: Fix indentation.
326 * block.c: Fix indentation.
327 * block.h: Fix indentation.
328 * blockframe.c: Fix indentation.
329 * bpf-tdep.c: Fix indentation.
330 * break-catch-sig.c: Fix indentation.
331 * break-catch-syscall.c: Fix indentation.
332 * break-catch-throw.c: Fix indentation.
333 * breakpoint.c: Fix indentation.
334 * breakpoint.h: Fix indentation.
335 * bsd-uthread.c: Fix indentation.
336 * btrace.c: Fix indentation.
337 * build-id.c: Fix indentation.
338 * buildsym-legacy.h: Fix indentation.
339 * buildsym.c: Fix indentation.
340 * c-typeprint.c: Fix indentation.
341 * c-valprint.c: Fix indentation.
342 * c-varobj.c: Fix indentation.
343 * charset.c: Fix indentation.
344 * cli/cli-cmds.c: Fix indentation.
345 * cli/cli-decode.c: Fix indentation.
346 * cli/cli-decode.h: Fix indentation.
347 * cli/cli-script.c: Fix indentation.
348 * cli/cli-setshow.c: Fix indentation.
349 * coff-pe-read.c: Fix indentation.
350 * coffread.c: Fix indentation.
351 * compile/compile-cplus-types.c: Fix indentation.
352 * compile/compile-object-load.c: Fix indentation.
353 * compile/compile-object-run.c: Fix indentation.
354 * completer.c: Fix indentation.
355 * corefile.c: Fix indentation.
356 * corelow.c: Fix indentation.
357 * cp-abi.h: Fix indentation.
358 * cp-namespace.c: Fix indentation.
359 * cp-support.c: Fix indentation.
360 * cp-valprint.c: Fix indentation.
361 * cris-linux-tdep.c: Fix indentation.
362 * cris-tdep.c: Fix indentation.
363 * darwin-nat-info.c: Fix indentation.
364 * darwin-nat.c: Fix indentation.
365 * darwin-nat.h: Fix indentation.
366 * dbxread.c: Fix indentation.
367 * dcache.c: Fix indentation.
368 * disasm.c: Fix indentation.
369 * dtrace-probe.c: Fix indentation.
370 * dwarf2/abbrev.c: Fix indentation.
371 * dwarf2/attribute.c: Fix indentation.
372 * dwarf2/expr.c: Fix indentation.
373 * dwarf2/frame.c: Fix indentation.
374 * dwarf2/index-cache.c: Fix indentation.
375 * dwarf2/index-write.c: Fix indentation.
376 * dwarf2/line-header.c: Fix indentation.
377 * dwarf2/loc.c: Fix indentation.
378 * dwarf2/macro.c: Fix indentation.
379 * dwarf2/read.c: Fix indentation.
380 * dwarf2/read.h: Fix indentation.
381 * elfread.c: Fix indentation.
382 * eval.c: Fix indentation.
383 * event-top.c: Fix indentation.
384 * exec.c: Fix indentation.
385 * exec.h: Fix indentation.
386 * expprint.c: Fix indentation.
387 * f-lang.c: Fix indentation.
388 * f-typeprint.c: Fix indentation.
389 * f-valprint.c: Fix indentation.
390 * fbsd-nat.c: Fix indentation.
391 * fbsd-tdep.c: Fix indentation.
392 * findvar.c: Fix indentation.
393 * fork-child.c: Fix indentation.
394 * frame-unwind.c: Fix indentation.
395 * frame-unwind.h: Fix indentation.
396 * frame.c: Fix indentation.
397 * frv-linux-tdep.c: Fix indentation.
398 * frv-tdep.c: Fix indentation.
399 * frv-tdep.h: Fix indentation.
400 * ft32-tdep.c: Fix indentation.
401 * gcore.c: Fix indentation.
402 * gdb_bfd.c: Fix indentation.
403 * gdbarch.sh: Fix indentation.
404 * gdbarch.c: Re-generate
405 * gdbarch.h: Re-generate.
406 * gdbcore.h: Fix indentation.
407 * gdbthread.h: Fix indentation.
408 * gdbtypes.c: Fix indentation.
409 * gdbtypes.h: Fix indentation.
410 * glibc-tdep.c: Fix indentation.
411 * gnu-nat.c: Fix indentation.
412 * gnu-nat.h: Fix indentation.
413 * gnu-v2-abi.c: Fix indentation.
414 * gnu-v3-abi.c: Fix indentation.
415 * go32-nat.c: Fix indentation.
416 * guile/guile-internal.h: Fix indentation.
417 * guile/scm-cmd.c: Fix indentation.
418 * guile/scm-frame.c: Fix indentation.
419 * guile/scm-iterator.c: Fix indentation.
420 * guile/scm-math.c: Fix indentation.
421 * guile/scm-ports.c: Fix indentation.
422 * guile/scm-pretty-print.c: Fix indentation.
423 * guile/scm-value.c: Fix indentation.
424 * h8300-tdep.c: Fix indentation.
425 * hppa-linux-nat.c: Fix indentation.
426 * hppa-linux-tdep.c: Fix indentation.
427 * hppa-nbsd-nat.c: Fix indentation.
428 * hppa-nbsd-tdep.c: Fix indentation.
429 * hppa-obsd-nat.c: Fix indentation.
430 * hppa-tdep.c: Fix indentation.
431 * hppa-tdep.h: Fix indentation.
432 * i386-bsd-nat.c: Fix indentation.
433 * i386-darwin-nat.c: Fix indentation.
434 * i386-darwin-tdep.c: Fix indentation.
435 * i386-dicos-tdep.c: Fix indentation.
436 * i386-gnu-nat.c: Fix indentation.
437 * i386-linux-nat.c: Fix indentation.
438 * i386-linux-tdep.c: Fix indentation.
439 * i386-nto-tdep.c: Fix indentation.
440 * i386-obsd-tdep.c: Fix indentation.
441 * i386-sol2-nat.c: Fix indentation.
442 * i386-tdep.c: Fix indentation.
443 * i386-tdep.h: Fix indentation.
444 * i386-windows-tdep.c: Fix indentation.
445 * i387-tdep.c: Fix indentation.
446 * i387-tdep.h: Fix indentation.
447 * ia64-libunwind-tdep.c: Fix indentation.
448 * ia64-libunwind-tdep.h: Fix indentation.
449 * ia64-linux-nat.c: Fix indentation.
450 * ia64-linux-tdep.c: Fix indentation.
451 * ia64-tdep.c: Fix indentation.
452 * ia64-tdep.h: Fix indentation.
453 * ia64-vms-tdep.c: Fix indentation.
454 * infcall.c: Fix indentation.
455 * infcmd.c: Fix indentation.
456 * inferior.c: Fix indentation.
457 * infrun.c: Fix indentation.
458 * iq2000-tdep.c: Fix indentation.
459 * language.c: Fix indentation.
460 * linespec.c: Fix indentation.
461 * linux-fork.c: Fix indentation.
462 * linux-nat.c: Fix indentation.
463 * linux-tdep.c: Fix indentation.
464 * linux-thread-db.c: Fix indentation.
465 * lm32-tdep.c: Fix indentation.
466 * m2-lang.c: Fix indentation.
467 * m2-typeprint.c: Fix indentation.
468 * m2-valprint.c: Fix indentation.
469 * m32c-tdep.c: Fix indentation.
470 * m32r-linux-tdep.c: Fix indentation.
471 * m32r-tdep.c: Fix indentation.
472 * m68hc11-tdep.c: Fix indentation.
473 * m68k-bsd-nat.c: Fix indentation.
474 * m68k-linux-nat.c: Fix indentation.
475 * m68k-linux-tdep.c: Fix indentation.
476 * m68k-tdep.c: Fix indentation.
477 * machoread.c: Fix indentation.
478 * macrocmd.c: Fix indentation.
479 * macroexp.c: Fix indentation.
480 * macroscope.c: Fix indentation.
481 * macrotab.c: Fix indentation.
482 * macrotab.h: Fix indentation.
483 * main.c: Fix indentation.
484 * mdebugread.c: Fix indentation.
485 * mep-tdep.c: Fix indentation.
486 * mi/mi-cmd-catch.c: Fix indentation.
487 * mi/mi-cmd-disas.c: Fix indentation.
488 * mi/mi-cmd-env.c: Fix indentation.
489 * mi/mi-cmd-stack.c: Fix indentation.
490 * mi/mi-cmd-var.c: Fix indentation.
491 * mi/mi-cmds.c: Fix indentation.
492 * mi/mi-main.c: Fix indentation.
493 * mi/mi-parse.c: Fix indentation.
494 * microblaze-tdep.c: Fix indentation.
495 * minidebug.c: Fix indentation.
496 * minsyms.c: Fix indentation.
497 * mips-linux-nat.c: Fix indentation.
498 * mips-linux-tdep.c: Fix indentation.
499 * mips-nbsd-tdep.c: Fix indentation.
500 * mips-tdep.c: Fix indentation.
501 * mn10300-linux-tdep.c: Fix indentation.
502 * mn10300-tdep.c: Fix indentation.
503 * moxie-tdep.c: Fix indentation.
504 * msp430-tdep.c: Fix indentation.
505 * namespace.h: Fix indentation.
506 * nat/fork-inferior.c: Fix indentation.
507 * nat/gdb_ptrace.h: Fix indentation.
508 * nat/linux-namespaces.c: Fix indentation.
509 * nat/linux-osdata.c: Fix indentation.
510 * nat/netbsd-nat.c: Fix indentation.
511 * nat/x86-dregs.c: Fix indentation.
512 * nbsd-nat.c: Fix indentation.
513 * nbsd-tdep.c: Fix indentation.
514 * nios2-linux-tdep.c: Fix indentation.
515 * nios2-tdep.c: Fix indentation.
516 * nto-procfs.c: Fix indentation.
517 * nto-tdep.c: Fix indentation.
518 * objfiles.c: Fix indentation.
519 * objfiles.h: Fix indentation.
520 * opencl-lang.c: Fix indentation.
521 * or1k-tdep.c: Fix indentation.
522 * osabi.c: Fix indentation.
523 * osabi.h: Fix indentation.
524 * osdata.c: Fix indentation.
525 * p-lang.c: Fix indentation.
526 * p-typeprint.c: Fix indentation.
527 * p-valprint.c: Fix indentation.
528 * parse.c: Fix indentation.
529 * ppc-linux-nat.c: Fix indentation.
530 * ppc-linux-tdep.c: Fix indentation.
531 * ppc-nbsd-nat.c: Fix indentation.
532 * ppc-nbsd-tdep.c: Fix indentation.
533 * ppc-obsd-nat.c: Fix indentation.
534 * ppc-ravenscar-thread.c: Fix indentation.
535 * ppc-sysv-tdep.c: Fix indentation.
536 * ppc64-tdep.c: Fix indentation.
537 * printcmd.c: Fix indentation.
538 * proc-api.c: Fix indentation.
539 * producer.c: Fix indentation.
540 * producer.h: Fix indentation.
541 * prologue-value.c: Fix indentation.
542 * prologue-value.h: Fix indentation.
543 * psymtab.c: Fix indentation.
544 * python/py-arch.c: Fix indentation.
545 * python/py-bpevent.c: Fix indentation.
546 * python/py-event.c: Fix indentation.
547 * python/py-event.h: Fix indentation.
548 * python/py-finishbreakpoint.c: Fix indentation.
549 * python/py-frame.c: Fix indentation.
550 * python/py-framefilter.c: Fix indentation.
551 * python/py-inferior.c: Fix indentation.
552 * python/py-infthread.c: Fix indentation.
553 * python/py-objfile.c: Fix indentation.
554 * python/py-prettyprint.c: Fix indentation.
555 * python/py-registers.c: Fix indentation.
556 * python/py-signalevent.c: Fix indentation.
557 * python/py-stopevent.c: Fix indentation.
558 * python/py-stopevent.h: Fix indentation.
559 * python/py-threadevent.c: Fix indentation.
560 * python/py-tui.c: Fix indentation.
561 * python/py-unwind.c: Fix indentation.
562 * python/py-value.c: Fix indentation.
563 * python/py-xmethods.c: Fix indentation.
564 * python/python-internal.h: Fix indentation.
565 * python/python.c: Fix indentation.
566 * ravenscar-thread.c: Fix indentation.
567 * record-btrace.c: Fix indentation.
568 * record-full.c: Fix indentation.
569 * record.c: Fix indentation.
570 * reggroups.c: Fix indentation.
571 * regset.h: Fix indentation.
572 * remote-fileio.c: Fix indentation.
573 * remote.c: Fix indentation.
574 * reverse.c: Fix indentation.
575 * riscv-linux-tdep.c: Fix indentation.
576 * riscv-ravenscar-thread.c: Fix indentation.
577 * riscv-tdep.c: Fix indentation.
578 * rl78-tdep.c: Fix indentation.
579 * rs6000-aix-tdep.c: Fix indentation.
580 * rs6000-lynx178-tdep.c: Fix indentation.
581 * rs6000-nat.c: Fix indentation.
582 * rs6000-tdep.c: Fix indentation.
583 * rust-lang.c: Fix indentation.
584 * rx-tdep.c: Fix indentation.
585 * s12z-tdep.c: Fix indentation.
586 * s390-linux-tdep.c: Fix indentation.
587 * score-tdep.c: Fix indentation.
588 * ser-base.c: Fix indentation.
589 * ser-mingw.c: Fix indentation.
590 * ser-uds.c: Fix indentation.
591 * ser-unix.c: Fix indentation.
592 * serial.c: Fix indentation.
593 * sh-linux-tdep.c: Fix indentation.
594 * sh-nbsd-tdep.c: Fix indentation.
595 * sh-tdep.c: Fix indentation.
596 * skip.c: Fix indentation.
597 * sol-thread.c: Fix indentation.
598 * solib-aix.c: Fix indentation.
599 * solib-darwin.c: Fix indentation.
600 * solib-frv.c: Fix indentation.
601 * solib-svr4.c: Fix indentation.
602 * solib.c: Fix indentation.
603 * source.c: Fix indentation.
604 * sparc-linux-tdep.c: Fix indentation.
605 * sparc-nbsd-tdep.c: Fix indentation.
606 * sparc-obsd-tdep.c: Fix indentation.
607 * sparc-ravenscar-thread.c: Fix indentation.
608 * sparc-tdep.c: Fix indentation.
609 * sparc64-linux-tdep.c: Fix indentation.
610 * sparc64-nbsd-tdep.c: Fix indentation.
611 * sparc64-obsd-tdep.c: Fix indentation.
612 * sparc64-tdep.c: Fix indentation.
613 * stabsread.c: Fix indentation.
614 * stack.c: Fix indentation.
615 * stap-probe.c: Fix indentation.
616 * stubs/ia64vms-stub.c: Fix indentation.
617 * stubs/m32r-stub.c: Fix indentation.
618 * stubs/m68k-stub.c: Fix indentation.
619 * stubs/sh-stub.c: Fix indentation.
620 * stubs/sparc-stub.c: Fix indentation.
621 * symfile-mem.c: Fix indentation.
622 * symfile.c: Fix indentation.
623 * symfile.h: Fix indentation.
624 * symmisc.c: Fix indentation.
625 * symtab.c: Fix indentation.
626 * symtab.h: Fix indentation.
627 * target-float.c: Fix indentation.
628 * target.c: Fix indentation.
629 * target.h: Fix indentation.
630 * tic6x-tdep.c: Fix indentation.
631 * tilegx-linux-tdep.c: Fix indentation.
632 * tilegx-tdep.c: Fix indentation.
633 * top.c: Fix indentation.
634 * tracefile-tfile.c: Fix indentation.
635 * tracepoint.c: Fix indentation.
636 * tui/tui-disasm.c: Fix indentation.
637 * tui/tui-io.c: Fix indentation.
638 * tui/tui-regs.c: Fix indentation.
639 * tui/tui-stack.c: Fix indentation.
640 * tui/tui-win.c: Fix indentation.
641 * tui/tui-winsource.c: Fix indentation.
642 * tui/tui.c: Fix indentation.
643 * typeprint.c: Fix indentation.
644 * ui-out.h: Fix indentation.
645 * unittests/copy_bitwise-selftests.c: Fix indentation.
646 * unittests/memory-map-selftests.c: Fix indentation.
647 * utils.c: Fix indentation.
648 * v850-tdep.c: Fix indentation.
649 * valarith.c: Fix indentation.
650 * valops.c: Fix indentation.
651 * valprint.c: Fix indentation.
652 * valprint.h: Fix indentation.
653 * value.c: Fix indentation.
654 * value.h: Fix indentation.
655 * varobj.c: Fix indentation.
656 * vax-tdep.c: Fix indentation.
657 * windows-nat.c: Fix indentation.
658 * windows-tdep.c: Fix indentation.
659 * xcoffread.c: Fix indentation.
660 * xml-syscall.c: Fix indentation.
661 * xml-tdesc.c: Fix indentation.
662 * xstormy16-tdep.c: Fix indentation.
663 * xtensa-config.c: Fix indentation.
664 * xtensa-linux-nat.c: Fix indentation.
665 * xtensa-linux-tdep.c: Fix indentation.
666 * xtensa-tdep.c: Fix indentation.
667
e1f57067
AB
6682020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
669 Craig Blackmore <craig.blackmore@embecosm.com>
670
671 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
672 as an unsigned value.
673
ae7754b2
TT
6742020-11-01 Tom Tromey <tom@tromey.com>
675
676 * dbxread.c (dbx_end_psymtab): Update.
677 * dwarf2/read.c (process_psymtab_comp_unit_reader)
678 (build_type_psymtabs_reader): Update.
679 * xcoffread.c (xcoff_end_psymtab): Update.
680 * ctfread.c (scan_partial_symbols): Update.
681 * psymtab.c (sort_pst_symbols): Remove.
682 (partial_symtab::end): Rename from end_psymtab_common. Inline
683 sort_pst_symbols.
684 * psympriv.h (struct partial_symtab) <end>: New method.
685 (end_psymtab_common): Don't declare.
686
0684bb51
TT
6872020-11-01 Tom Tromey <tom@tromey.com>
688
689 * symmisc.c (count_psyms): New function.
690 (print_objfile_statistics): Use it.
691 * psymtab.c (append_psymbol_to_list): Remove.
692 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
693 * objfiles.h (struct objstats) <n_psyms>: Remove.
694
089002bb
TT
6952020-11-01 Tom Tromey <tom@tromey.com>
696
697 * dbxread.c (dbx_end_psymtab): Update.
698 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
699 (build_type_psymtabs_reader): Update.
700 * xcoffread.c (xcoff_end_psymtab): Update.
701 * ctfread.c (scan_partial_symbols): Update.
702 * psympriv.h (end_psymtab_common): Update.
703 * psymtab.c (end_psymtab_common): Remove objfile parameter.
704 (sort_pst_symbols): Likewise.
705
525454d6
TT
7062020-11-01 Tom Tromey <tom@tromey.com>
707
708 * dbxread.c (dbx_symfile_read): Update.
709 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
710 * xcoffread.c (xcoff_initial_scan): Update.
711 * psympriv.h (init_psymbol_list): Don't declare.
712 * psymtab.c (init_psymbol_list): Remove.
713
60bd1d53
JB
7142020-11-01 Joel Brobecker <brobecker@adacore.com>
715
716 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
717 gnat_encoded_fixed_type_info. Update all callers.
718
db99d0d0
JB
7192020-11-01 Joel Brobecker <brobecker@adacore.com>
720
721 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
722 line too long.
723
75f24e86
JB
7242020-11-01 Joel Brobecker <brobecker@adacore.com>
725
726 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
727 cast_from_fixed. Update all callers.
728 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
729 Update all callers.
730 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
731 Update all callers.
732 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
733 ada_scaling_factor.
734 * ada-typeprint.c: Replace call to ada_scaling_factor by call
735 to print_gnat_encoded_fixed_point_type.
736 * ada-valprint.c: Likewise.
737
4f0469cd
AB
7382020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
741 (debug_prefixed_printf): Add check of debug_displaced flag.
742 * linux-nat.c (linux_nat_debug_printf): Add check of
743 debug_linux_nat flag.
744
17417fb0
SM
7452020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
746
747 * infrun.c (infrun_debug_printf_1): Remove.
748 (displaced_debug_printf_1): Remove.
749 (stop_all_threads): Use debug_prefixed_printf.
750 * infrun.h (infrun_debug_printf_1): Remove.
751 (infrun_debug_printf): Use debug_prefixed_printf.
752 (displaced_debug_printf_1): Remove.
753 (displaced_debug_printf): Use debug_prefixed_printf.
754 * linux-nat.c (linux_nat_debug_printf_1): Remove.
755 (linux_nat_debug_printf): Use debug_prefixed_printf.
756
ad6dba1c
SM
7572020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
758
759 * configure: Re-generate.
760 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
761 AC_LANG_PROGRAM.
762
b6fb30ed
SM
7632020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
764
765 * configure: Re-generate.
766
5164c117
SM
7672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
768
769 * configure: Re-generate.
770
864ca435
SM
7712020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * configure: Re-generate.
774
b9442ec1
SM
7752020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
776
777 * configure: Re-generate.
778
294f2697
SM
7792020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
780
781 * acinclude.m4: Modernize.
782 * configure: Re-generate.
783
5593a99a
SM
7842020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
785
786 * configure.ac: Modernize.
787 * configure: Re-generate.
788
e41fda1d
SM
7892020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
790
791 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
792 * configure: Re-generate.
793 * configure.ac: Remove AM_PROG_CC_STDC.
794
91e1a0ed
SM
7952020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
796
797 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
798 AC_CANONICAL_SYSTEM.
799 * configure: Re-generate.
800
136821d9
SM
8012020-10-30 Simon Marchi <simon.marchi@efficios.com>
802
803 * infrun.h (displaced_debug_printf): New macro. Replace
804 displaced debug prints throughout to use it.
805 (displaced_debug_printf_1): New declaration.
806 (displaced_step_dump_bytes): Return string, remove ui_file
807 parameter, update all callers.
808 * infrun.c (displaced_debug_printf_1): New function.
809 (displaced_step_dump_bytes): Return string, remove ui_file
810 parameter
811
aa2045e7
SM
8122020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
815
b1ec2735
TT
8162020-10-30 Tom Tromey <tromey@adacore.com>
817
818 * Makefile.in (stamp-init): Depend on config.status.
819
b78b3a29
TBA
8202020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
821
822 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
823
d70bdd3c
PA
8242020-10-30 Pedro Alves <pedro@palves.net>
825
826 * thread.c (lookup_selected_frame): Move ...
827 * frame.c (lookup_selected_frame): ... here.
828
79952e69
PA
8292020-10-30 Pedro Alves <pedro@palves.net>
830
831 * blockframe.c (block_innermost_frame): Use get_selected_frame.
832 * frame.c
833 (scoped_restore_selected_frame::scoped_restore_selected_frame):
834 Use save_selected_frame. Save language as well.
835 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
836 Use restore_selected_frame, and restore language as well.
837 (selected_frame_id, selected_frame_level): New.
838 (selected_frame): Update comments.
839 (save_selected_frame, restore_selected_frame): New.
840 (get_selected_frame): Use lookup_selected_frame.
841 (get_selected_frame_if_set): Delete.
842 (select_frame): Record selected_frame_level and selected_frame_id.
843 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
844 fields.
845 (get_selected_frame): Make 'message' parameter optional.
846 (get_selected_frame_if_set): Delete declaration.
847 (select_frame): Update comments.
848 (save_selected_frame, restore_selected_frame)
849 (lookup_selected_frame): Declare.
850 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
851 * infrun.c (struct infcall_control_state) <selected_frame_level>:
852 New field.
853 (save_infcall_control_state): Use save_selected_frame.
854 (restore_selected_frame): Delete.
855 (restore_infcall_control_state): Use restore_selected_frame.
856 * stack.c (select_frame_command_core, frame_command_core): Use
857 get_selected_frame.
858 * thread.c (restore_selected_frame): Rename to ...
859 (lookup_selected_frame): ... this and make extern. Select the
860 current frame if the frame level is -1.
861 (scoped_restore_current_thread::restore): Also restore the
862 language.
863 (scoped_restore_current_thread::~scoped_restore_current_thread):
864 Don't try/catch.
865 (scoped_restore_current_thread::scoped_restore_current_thread):
866 Save the language as well. Use save_selected_frame.
867
58103c33
SM
8682020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
869
870 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
871 documentation.
872 * gdbarch.h: Re-generate.
873
40a53766
SM
8742020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
875
876 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
877 parameter.
878 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
879 Likewise.
880 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
881 Likewise.
882 * arch-utils.c (default_displaced_step_hw_singlestep):
883 Likewise.
884 * arch-utils.h (default_displaced_step_hw_singlestep):
885 Likewise.
886 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
887 Likewise.
888 * s390-tdep.c (s390_displaced_step_hw_singlestep):
889 Likewise.
890 * gdbarch.c: Re-generate.
891 * gdbarch.h: Re-generate.
892 * infrun.c (resume_1): Adjust.
893
8407f91b
TT
8942020-10-29 Tom Tromey <tom@tromey.com>
895
896 * progspace.c (program_space::~program_space): Don't call
897 exec_close.
898
5008b3b2
TT
8992020-10-29 Tom Tromey <tom@tromey.com>
900
901 * exec.c (exec_target::close): Don't change current program
902 space.
903
d9eebde0
TT
9042020-10-29 Tom Tromey <tom@tromey.com>
905
906 * symfile.c (add_symbol_file_command): Update.
907 * exec.c (program_space::add_target_sections): Rename.
908 * symfile-mem.c (symbol_file_add_from_memory): Update.
909 * progspace.h (struct program_space) <add_target_sections>:
910 Declare new overload.
911 * exec.h (add_target_sections_of_objfile): Don't declare.
912
3769e227
TT
9132020-10-29 Tom Tromey <tom@tromey.com>
914
915 * solib.c (solib_map_sections): Update.
916 * exec.c (program_space::add_target_sections): Now a method.
917 (exec_file_attach): Update.
918 * exec.h (add_target_sections): Don't declare.
919 * progspace.h (struct program_space) <add_target_sections>:
920 Declare.
921
2a3f84af
TT
9222020-10-29 Tom Tromey <tom@tromey.com>
923
924 * progspace.h (struct program_space) <remove_target_sections>:
925 Declare.
926 * exec.c (program_space::remove_target_sections): Now a method.
927 * exec.h (remove_target_sections): Don't declare.
928
004eecfd
TT
9292020-10-29 Tom Tromey <tom@tromey.com>
930
931 * inferior.c (delete_inferior): Update.
932 * progspace.c (program_space::empty): Rename from
933 program_space_empty_p. Return bool.
934 * progspace.h (struct program_space) <empty>: New method.
935 (program_space_empty_p): Don't declare.
936
e39fb971
TT
9372020-10-29 Tom Tromey <tom@tromey.com>
938
939 * progspace.c (program_space::~program_space): Don't call
940 clear_program_space_solib_cache.
941 (program_space::clear_solib_cache): Rename from
942 clear_solib_cache.
943 * solib.c (handle_solib_event): Update.
944 * progspace.h (struct program_space) <clear_solib_cache>: New
945 method.
946 (clear_program_space_solib_cache): Don't declare.
947
a42d7dd8
TT
9482020-10-29 Tom Tromey <tom@tromey.com>
949
950 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
951 * target.c (info_target_command): Update.
952 * symfile.c (syms_from_objfile_1, finish_new_objfile)
953 (symbol_file_clear, reread_symbols): Update.
954 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
955 * stabsread.c (scan_file_globals): Update.
956 * solib.c (update_solib_list): Update.
957 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
958 (svr4_fetch_objfile_link_map, enable_break)
959 (svr4_relocate_main_executable)
960 (svr4_iterate_over_objfiles_in_search_order): Update.
961 * solib-frv.c (lm_base, enable_break)
962 (frv_relocate_main_executable): Update.
963 (main_got, frv_fdpic_find_canonical_descriptor): Update.
964 (frv_fetch_objfile_link_map): Update.
965 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
966 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
967 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
968 * remote.c (remote_target::get_offsets): Update.
969 (remote_target::start_remote)
970 (extended_remote_target::post_attach): Update.
971 * objfiles.c (entry_point_address_query): Update.
972 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
973 * minsyms.c (get_symbol_leading_char): Update.
974 * frame.c (inside_main_func): Update.
975 * progspace.h (symfile_objfile): Remove macro.
976
19f6550e
TT
9772020-10-29 Tom Tromey <tom@tromey.com>
978
979 * exec.c (exec_file_attach): Update.
980 * progspace.c (program_space::exec_close): Update.
981 * progspace.h (struct program_space) <ebfd>: Now a
982 gdb_bfd_ref_ptr.
983 <set_exec_bfd>: Change argument type.
984 <exec_bfd>: Update.
985
7e10abd1
TT
9862020-10-29 Tom Tromey <tom@tromey.com>
987
988 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
989 * symfile.c (reread_symbols): Update.
990 * symfile-mem.c (add_symbol_file_from_memory_command)
991 (add_vsyscall_page): Update.
992 * source-cache.c (source_cache::get_plain_source_lines): Update.
993 * solib-svr4.c (find_program_interpreter, elf_locate_base)
994 (svr4_current_sos_direct, svr4_exec_displacement)
995 (svr4_relocate_main_executable): Update.
996 (svr4_iterate_over_objfiles_in_search_order): Update.
997 * solib-frv.c (enable_break2, enable_break): Update.
998 * solib-dsbt.c (lm_base, enable_break): Update.
999 * solib-darwin.c (find_program_interpreter)
1000 (darwin_solib_create_inferior_hook): Update.
1001 * sol-thread.c (rw_common, ps_pdmodel): Update.
1002 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1003 * remote.c (compare_sections_command)
1004 (remote_target::trace_set_readonly_regions): Update.
1005 * remote-sim.c (get_sim_inferior_data)
1006 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1007 (gdbsim_target_open, gdbsim_target::files_info): Update.
1008 * exec.h (exec_bfd): Remove macro.
1009 * progspace.c (initialize_progspace): Update.
1010 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1011 Update.
1012 * nto-procfs.c (nto_procfs_target::post_attach)
1013 (nto_procfs_target::create_inferior): Update.
1014 * maint.c (maintenance_info_sections): Update.
1015 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1016 Update.
1017 * infcmd.c (post_create_inferior): Update.
1018 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1019 (objfile_find_memory_regions): Update.
1020 * exec.c (validate_exec_file, exec_file_attach)
1021 (exec_read_partial_read_only, print_section_info): Update.
1022 * corelow.c (core_target_open): Update.
1023 * corefile.c (reopen_exec_file, validate_files): Update.
1024 * arm-tdep.c (gdb_print_insn_arm): Update.
1025 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1026 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1027 methods.
1028
b55221ab
TT
10292020-10-29 Tom Tromey <tom@tromey.com>
1030
1031 * progspace.h (current_target_sections): Remove macro.
1032 * solib-svr4.c (scan_dyntag): Update.
1033 * solib-dsbt.c (scan_dyntag): Update.
1034 * exec.c (exec_target::close): Update.
1035 (add_target_sections, add_target_sections_of_objfile)
1036 (remove_target_sections, exec_target::get_section_table)
1037 (exec_target::files_info, set_section_command)
1038 (exec_set_section_address, exec_target::has_memory)
1039 (exec_target::has_memory): Update.
1040
5a36e715
TT
10412020-10-29 Tom Tromey <tom@tromey.com>
1042
1043 * source-cache.c (source_cache::get_plain_source_lines): Use
1044 current_program_space.
1045 * corefile.c (reopen_exec_file): Use current_program_space.
1046 * exec.c (exec_file_attach): Use current_program_space.
1047 * exec.h (exec_bfd_mtime): Remove.
1048
784c8592
TT
10492020-10-29 Tom Tromey <tom@tromey.com>
1050
1051 * gcore.c (default_gcore_mach): Remove.
1052 (create_gcore_bfd): Update.
1053
8a4f1402
TT
10542020-10-29 Tom Tromey <tom@tromey.com>
1055
1056 * progspace.c (program_space::exec_close): New method, from
1057 exec_close in exec.c.
1058 * exec.c (exec_close): Move to progspace.c.
1059 (exec_target::close, exec_file_attach): Update.
1060 * progspace.h (struct program_space) <exec_close>: Declare
1061 method.
1062
c20cb686
TT
10632020-10-29 Tom Tromey <tom@tromey.com>
1064
1065 * progspace.h (struct program_space) <exec_filename>: Rename from
1066 pspace_exec_filename. Now a unique_xmalloc_ptr.
1067 * inferior.c (print_selected_inferior): Update.
1068 (print_inferior): Update.
1069 * mi/mi-main.c (print_one_inferior): Update.
1070 * exec.h (exec_filename): Remove macro.
1071 * corefile.c (get_exec_file): Update.
1072 * exec.c (exec_close): Update.
1073 (exec_file_attach): Update.
1074 * progspace.c (clone_program_space): Update.
1075 (print_program_space): Update.
1076
6be2a9ab
TT
10772020-10-29 Tom Tromey <tom@tromey.com>
1078
1079 * target-section.h (struct target_section): Add constructor.
1080 * exec.c (build_section_table, add_target_sections_of_objfile):
1081 Update.
1082 * corelow.c (core_target::build_file_mappings): Update.
1083
cfaa8f76
TBA
10842020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1085
1086 PR gdb/19318
1087 * inferior.c (detach_inferior_command): Restore the current thread.
1088 (kill_inferior_command): Ditto.
1089
1b00ef06
TV
10902020-10-28 Tom de Vries <tdevries@suse.de>
1091
1092 PR symtab/26772
1093 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1094 map, check it in the "best match" loop.
1095
7f40ce1a
SM
10962020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1097
1098 * m32c-tdep.c: Remove unused includes.
1099
5eb9e3f5
SM
11002020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1101
1102 * xtensa-tdep.c: Remove includes.
1103
b1d4d8d1
TBA
11042020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1105
1106 * breakpoint.c (struct condition_command_opts): New struct.
1107 (condition_command_option_defs): New static global.
1108 (make_condition_command_options_def_group): New function.
1109 (condition_completer): Update to consider the '-force' flag.
1110 (condition_command): Use gdb::option for the '-force' flag.
1111
bd24c5d6
TV
11122020-10-27 Tom de Vries <tdevries@suse.de>
1113
1114 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1115 symbols in section check.
1116
61eb46a4
TV
11172020-10-27 Tom de Vries <tdevries@suse.de>
1118
1119 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1120
733d554a
TBA
11212020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1122
1123 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1124 * breakpoint.c: Update the help text of the 'condition' and 'break'
1125 commands.
1126 (set_breakpoint_condition): Take a new bool parameter
1127 to control whether condition definition should be forced even when
1128 the condition expression is invalid in all of the current locations.
1129 (condition_command): Update the call to 'set_breakpoint_condition'.
1130 (find_condition_and_thread): Take the "-force-condition" flag into
1131 account.
1132 * linespec.c (linespec_keywords): Add "-force-condition" as an
1133 element.
1134 (FORCE_KEYWORD_INDEX): New #define.
1135 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1136 as a keyword.
1137 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1138 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1139 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1140 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1141
b5fa468f
TBA
11422020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1143
1144 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1145 * breakpoint.c (set_breakpoint_location_condition): New function.
1146 (set_breakpoint_condition): Disable a breakpoint location if parsing
1147 the condition string gives an error.
1148 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1149 (build_target_condition_list): Ditto.
1150 (build_target_command_list): Ditto.
1151 (build_bpstat_chain): Ditto.
1152 (print_one_breakpoint_location): Ditto.
1153 (print_one_breakpoint): Ditto.
1154 (breakpoint_1): Ditto.
1155 (bp_location::bp_location): Ditto.
1156 (locations_are_equal): Ditto.
1157 (update_breakpoint_locations): Ditto.
1158 (enable_disable_bp_num_loc): Ditto.
1159 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1160 (find_condition_and_thread_for_sals): New static function.
1161 (create_breakpoint): Call find_condition_and_thread_for_sals.
1162 (location_to_sals): Call find_condition_and_thread_for_sals instead
1163 of find_condition_and_thread.
1164
1c47ec3e
TV
11652020-10-26 Tom de Vries <tdevries@suse.de>
1166
1167 * dwarf2/read.c (process_full_comp_unit): Call
1168 dwarf2_find_base_address.
1169
6390859c
TT
11702020-10-26 Tom Tromey <tromey@adacore.com>
1171
1172 * gdbtypes.c (create_range_type): Revert previous patch. Add
1173 comment.
1174
d744f0f9
PA
11752020-10-26 Pedro Alves <pedro@palves.net>
1176
1177 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1178 (my_waitpid): Use gdb::handle_eintr.
1179
006811bc
SM
11802020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1181
1182 * acinclude.m4: Update ptrace.m4 path.
1183 * ptrace.m4: Moved to gdbsupport.
1184
c75e31a1
SM
11852020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1186
1187 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1188 instead of target_gdbarch.
1189
32495661
SM
11902020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1191
1192 * jit.c (jit_reader_load_command): Pass current inferior.
1193 (jit_inferior_init): Change parameter type to inferior, use it.
1194 (jit_inferior_created): Remove.
1195 (jit_inferior_created_hook): Pass inferior parameter down.
1196 (_initialize_jit): Use jit_inferior_created_hook instead of
1197 jit_inferior_created.
1198 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1199 * infrun.c (follow_exec): Pass inferior to
1200 jit_inferior_created_hook.
1201
3f66685e
SM
12022020-10-24 Simon Marchi <simon.marchi@efficios.com>
1203
1204 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1205 parameter and use it.
1206 (thread_db_inferior_created): Pass inferior argument.
1207
a0ff652f
SM
12082020-10-24 Simon Marchi <simon.marchi@efficios.com>
1209
1210 * aix-thread.c (aix_thread_inferior_created): Add inferior
1211 parameter.
1212 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1213 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1214 * jit.c (jit_inferior_created): Likewise.
1215 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1216 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1217 * observable.h (inferior_created): Likewise.
1218 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1219 * symfile-mem.c (add_vsyscall_page): Likewise.
1220 * infcmd.c (post_create_inferior): Pass inferior argument.
1221
3c67532c
JB
12222020-10-24 Joel Brobecker <brobecker@adacore.com>
1223
1224 GDB 10.1 released.
1225
8747316e
JB
12262020-10-23 Joel Brobecker <brobecker@adacore.com>
1227
1228 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1229 to ada_check_typedef.
1230
1a0ea399
AB
12312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * f-exp.y (f_parse): Rename to...
1234 (f_language::parser): ...this.
1235 * f-lang.c (f_get_encoding): Rename to...
1236 (f_language::get_encoding): ...this.
1237 (f_op_print_tab): Rename to...
1238 (f_language::op_print_tab): ...this.
1239 (exp_descriptor_f): Rename to...
1240 (f_language::exp_descriptor_tab): ...this.
1241 (class f_language): Moved to f-lang.h.
1242 (f_language::language_arch_info): New function, moved out of class
1243 declaration.
1244 (f_language::search_name_hash): Likewise.
1245 (f_language::lookup_symbol_nonlocal): Likewise.
1246 (f_language::get_symbol_name_matcher_inner): Likewise.
1247 * f-lang.h: Add 'valprint.h' include.
1248 (class f_language): Moved here from f-lang.c.
1249 * f-typeprint.c (f_type_print_args): Delete commented out
1250 declaration.
1251 (f_print_typedef): Rename to...
1252 (f_language::print_typedef): ...this.
1253 (f_print_type): Rename to...
1254 (f_language::print_type): ...this.
1255 (f_type_print_varspec_prefix): Delete declaration and rename to...
1256 (f_language::f_type_print_varspec_prefix): ...this.
1257 (f_type_print_varspec_suffix): Delete declaration and rename to...
1258 (f_language::f_type_print_varspec_suffix): ...this.
1259 (f_type_print_base): Delete declaration and rename to...
1260 (f_language::f_type_print_base): ...this.
1261 * f-valprint.c (f_value_print_inner): Rename to...
1262 (f_language::value_print_inner): ...this.
1263 * parse.c: Delete 'f-lang.h' include.
1264
88cefd9b
AB
12652020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1266
1267 * language.h (language_defn::print_type): Add variable names in
1268 declaration, and update header comment.
1269
5399db93
AB
12702020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1271
1272 * ada-lang.c (ada_language::demangle): Rename to...
1273 (ada_language::demangle_symbol): ...this.
1274 * c-lang.c (cplus_language::demangle): Rename to...
1275 (cplus_language::demangle_symbol): ...this.
1276 * d-lang.c (d_language::demangle): Rename to...
1277 (d_language::demangle_symbol): ...this.
1278 * f-lang.c (f_language::demangle): Rename to...
1279 (f_language::demangle_symbol): ...this.
1280 * go-lang.c (go_language::demangle): Rename to...
1281 (go_language::demangle_symbol): ...this.
1282 * language.c (language_demangle): Update call to demangle_symbol.
1283 (auto_or_unknown_language::demangle): Rename to...
1284 (auto_or_unknown_language::demangle_symbol): ...this.
1285 * language.h (language_defn::demangle): Rename to...
1286 (language_defn::demangle_symbol): ...this.
1287 * objc-lang.c (objc_language::demangle): Rename to...
1288 (objc_language::demangle_symbol): ...this.
1289 * rust-lang.c (rust_language::demangle): Rename to...
1290 (rust_language::demangle_symbol): ...this.
1291
4b2f86ef
AB
12922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1295 (iterate_over_file_blocks): Replace use of macro with the macros
1296 definition.
1297
e74b39de
AB
12982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1301 * valprint.c (maybe_print_array_index): Replace use of macro with
1302 the macros definition.
1303
00c696a6
AB
13042020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * ada-lang.c (ada_language::print_array_index): Call value_print
1307 directly.
1308 * language.c (language_defn::print_array_index): Likewise.
1309 * language.h (LA_VALUE_PRINT): Delete.
1310 * valprint.c (value_print): Call value_print on the
1311 current_language directly.
1312
d3b67c56
AB
13132020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * language.h (LA_PRINT_TYPEDEF): Delete.
1316 * typeprint.c (typedef_print): Call print_typedef directly on the
1317 current_language object.
1318
790e2a12
AB
13192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * m2-exp.y (m2_parse): Rename to...
1322 (m2_language::parser): ...this. Update function signature.
1323 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1324 (m2_op_print): Rename to...
1325 (m2_language::op_print_tab): ...this, and make const.
1326 (exp_descriptor_modula2): Rename to...
1327 (m2_language::exp_descriptor_modula2): ...this.
1328 (class m2_language): Move to m2-lang.h.
1329 (m2_language::language_arch_info): New function, moved out of
1330 class declaration.
1331 (m2_language::printchar): New function, body from m2_printchar.
1332 (m2_language::printstr): New function, moved out of class
1333 declaration.
1334 (m2_language::emitchar): Likewise.
1335 * m2-lang.h (m2_parse): Delete declaration.
1336 (m2_print_typedef): Delete declaration.
1337 (m2_value_print_inner): Delete declaration.
1338 (class m2_language): Class declaration moved from m2-lang.c,
1339 larger functions are left in m2-lang.c.
1340 * m2-typeprint.c (m2_print_typedef): Rename to...
1341 (m2_language::print_typedef): ...this, and update function
1342 signature.
1343 * m2-valprint.c (m2_value_print_inner): Rename to...
1344 (m2_language::value_print_inner): ...this, replace use of
1345 LA_PRINT_STRING with a direct call to printstr member function,
1346 and update recursive call.
1347
b01175fc
AB
13482020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1349
1350 * language.c (default_is_string_type_p): Delete, implementation
1351 moved into auto_or_unknown_language::is_string_type_p.
1352 (unk_op_print_tab): Moved into
1353 auto_or_unknown_language::opcode_print_table.
1354 (unknown_language_arch_info): Delete, implementation moved into
1355 auto_or_unknown_language::language_arch_info.
1356 (class auto_or_unknown_language): New class, member functions
1357 copied from unknown_language class, with some updates.
1358 (class unknown_language): Most member functions moved into
1359 auto_or_unknown_language class. Inherit from
1360 auto_or_unknown_language class.
1361 (class auto_language): Inherit from auto_or_unknown_language.
1362 Delete most member functions.
1363
1a97fe8c
HD
13642020-10-22 Hannes Domani <ssbssa@yahoo.de>
1365
1366 * stabsread.c (read_member_functions): Remove gdb_assert.
1367
6b9d0dfd
HD
13682020-10-22 Hannes Domani <ssbssa@yahoo.de>
1369
1370 * gdbtypes.c (init_complex_type): Check target type name.
1371
4b4bb603
SM
13722020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1373
1374 * target-debug.h (target_debug_print_struct_target_ops_p):
1375 Remove.
1376 (target_debug_print_async_callback_ftype_p): Remove.
1377 (target_debug_print_struct_trace_state_variable_p): Remove.
1378 (target_debug_print_struct_traceframe_info_p): Remove.
1379 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1380 (target_debug_print_enum_btrace_format): Remove.
1381 (target_debug_print_enum_info_proc_what): Remove.
1382 (target_debug_print_thread_info_pp): Remove.
1383
24f5300a
SM
13842020-10-22 Simon Marchi <simon.marchi@efficios.com>
1385
1386 * target.h (struct target_ops) <make_corefile_notes>:
1387 Change return type to unique pointer.
1388 * target.c (dummy_make_corefile_notes): Likewise.
1389 * exec.c (struct exec_target) <make_corefile_notes>:
1390 Likewise.
1391 (exec_target::make_corefile_notes): Likewise.
1392 * procfs.c (class procfs_target) <make_corefile_notes>:
1393 Likewise.
1394 (procfs_do_thread_registers): Adjust to unique pointer.
1395 (struct procfs_corefile_thread_data): Add constructor.
1396 <note_data>: Change type to unique pointer.
1397 (procfs_corefile_thread_callback): Adjust to unique pointer.
1398 (procfs_target::make_corefile_notes): Change return type to
1399 unique pointer.
1400 * target-delegates.c: Re-generate.
1401 * gcore.c (write_gcore_file_1): Adjust.
1402 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1403 New.
1404
5fb4027f
TV
14052020-10-22 Tom de Vries <tdevries@suse.de>
1406
1407 * block.c (find_block_in_blockvector): Make sure the returned block
1408 contains pc.
1409
4a636814
SM
14102020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1411
1412 PR gdb/26693
1413 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1414 parameter.
1415 (load_cu): Pass existing CU.
1416 (process_imported_unit_die): Likewise.
1417 (follow_die_offset): Likewise.
1418
1bd57575
LM
14192020-10-22 Luis Machado <luis.machado@linaro.org>
1420
1421 * corelow.c (core_target::xfer_partial): Also check for an empty
1422 m_core_unavailable_mappings vector.
1423
6b4c676c
AB
14242020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1427 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1428 * f-exp.y (arglist): Allow for a series of subranges.
1429 (subrange): Add cases for subranges with strides.
1430 * f-lang.c (value_f90_subarray): Catch use of array strides and
1431 throw an error.
1432 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1433
f2d8e4c5
AB
14342020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1435
1436 * expprint.c (print_subexp_standard): Change enum range_type to
1437 range_flag and rename variables to match.
1438 (dump_subexp_body_standard): Likewise.
1439 * expression.h (enum range_type): Rename to...
1440 (enum range_flag): ...this.
1441 (range_types): Rename to...
1442 (range_flags): ...this.
1443 * f-lang.c (value_f90_subarray): Change enum range_type to
1444 range_flag and rename variables to match.
1445 * parse.c (operator_length_standard): Likewise.
1446 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1447 range_type to range_flag.
1448 * rust-lang.c (rust_evaluate_funcall): Likewise.
1449 (rust_range): Likewise.
1450 (rust_compute_range): Likewise.
1451 (rust_subscript): Likewise.
1452
2f1b18db
AB
14532020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * expprint.c (print_subexp_standard): Update to reflect changes to
1456 enum range_type.
1457 (dump_subexp_body_standard): Likewise.
1458 * expression.h (enum range_type): Convert to a bit field enum, and
1459 make the enum unsigned.
1460 * f-exp.y (subrange): Update to reflect changes to enum
1461 range_type.
1462 * f-lang.c (value_f90_subarray): Likewise.
1463 * parse.c (operator_length_standard): Likewise.
1464 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1465 * rust-lang.c (rust_range): Likewise.
1466 (rust_compute_range): Likewise.
1467 (rust_subscript): Likewise.
1468
a46d1843
SM
14692020-10-21 Simon Marchi <simon.marchi@efficios.com>
1470
1471 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1472 (displaced_step_in_progress): Fix comment.
1473
c21f37a8
SM
14742020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1475
1476 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1477 * gdbarch.c: Re-generate.
1478 * gdbarch.h: Re-generate.
1479 * gcore.c (write_gcore_file_1): Adjust.
1480 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1481 constructor.
1482 <note_data>: Change type to unique pointer.
1483 <abort_iteration>: Change type to bool.
1484 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1485 (fbsd_collect_thread_registers): Return void, adjust.
1486 (struct fbsd_corefile_thread_data): Add construtor.
1487 <note_data>: Change type to unique pointer.
1488 (fbsd_corefile_thread): Adjust.
1489 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1490 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1491 to unique pointer, adjust.
1492 (struct linux_collect_regset_section_cb_data): Add constructor.
1493 <note_data>: Change type to unique pointer.
1494 <abort_iteration>: Change type to bool.
1495 (linux_collect_thread_registers): Return void, adjust.
1496 (struct linux_corefile_thread_data): Add constructor.
1497 <note_data>: Change type to unique pointer.
1498 (linux_corefile_thread): Adjust.
1499 (linux_make_corefile_notes): Return unique pointer, adjust.
1500
07fbbd01
SM
15012020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1502
1503 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1504 * gdbarch.c: Re-generate.
1505 * gdbarch.h: Re-generate.
1506 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1507 bool.
1508 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1509 Likewise.
1510 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1511 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1512 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1513 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1514
39535193
SM
15152020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1516
1517 * gdbarch.sh: Make generated predicates return bool.
1518 * gdbarch.c: Re-generate.
1519 * gdbarch.h: Re-generate.
1520
ad523d01
TT
15212020-10-20 Tom Tromey <tom@tromey.com>
1522
1523 * varobj-iter.h (struct varobj_item): Remove typedef.
1524
c4464ade
SM
15252020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1526
1527 * infrun.c (currently_stepping): Change int to bool
1528 (maybe_software_singlestep): Likewise.
1529 (show_stop_on_solib_events): Likewise.
1530 (stepping_past_nonsteppable_watchpoint): Likewise.
1531 (displaced_step_in_progress_any_inferior): Likewise.
1532 (displaced_step_in_progress_thread): Likewise.
1533 (keep_going_stepped_thread): Likewise.
1534 (thread_still_needs_step_over): Likewise.
1535 (start_step_over): Likewise.
1536 (do_target_resume): Likewise.
1537 (resume_1): Likewise.
1538 (clear_proceed_status): Likewise.
1539 (thread_still_needs_step_over_bp): Likewise.
1540 (proceed): Likewise.
1541 (switch_back_to_stepped_thread): Likewise.
1542 (adjust_pc_after_break): Likewise.
1543 (stepped_in_from): Likewise.
1544 (handle_stop_requested): Likewise.
1545 (handle_syscall_event): Likewise.
1546 (handle_no_resumed): Likewise.
1547 (handle_inferior_event): Likewise.
1548 (finish_step_over): Likewise.
1549 (handle_signal_stop): Likewise.
1550 (process_event_stop_test): Likewise.
1551
2eb20436
SM
15522020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1553
1554 * infrun.c (get_displaced_stepping_state): Fix comment.
1555
e0c45ded
AS
15562020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1557
1558 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1559
22cc388e
TT
15602020-10-19 Tom Tromey <tromey@adacore.com>
1561
1562 PR tui/26719
1563 * tui/tui-winsource.h (struct tui_source_window_base)
1564 <refresh_window>: Rename from refresh_pad.
1565 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1566 Rename from refresh_pad.
1567 (tui_source_window_base::show_source_content)
1568 (tui_source_window_base::do_scroll_horizontal): Update.
1569
3c6eb4d4
TBA
15702020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1571
1572 * thread.c (_initialize_thread): Fine-tune the help text of
1573 'info threads'.
1574
26703721
TBA
15752020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1576
1577 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1578
61c26be8
MS
15792020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1580
1581 * breakpoint.c (handle_jit_event): Add an argument, change how
1582 `jit_event_handler` is called.
1583
932539d7
TT
15842020-10-17 Tom Tromey <tom@tromey.com>
1585
1586 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1587 (scan_xcoff_symtab): Update.
1588 * psymtab.h (class psymtab_storage) <global_psymbols,
1589 static_psymbols, current_global_psymbols,
1590 current_static_psymbols>: Remove.
1591 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1592 (match_partial_symbol, lookup_partial_symbol): Update.
1593 (print_partial_symbols): Change parameters.
1594 (dump_psymtab, recursively_search_psymtabs)
1595 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1596 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1597 (concat): Remove.
1598 (end_psymtab_common): Simplify.
1599 (append_psymbol_to_list): Change parameters.
1600 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1601 (init_psymbol_list): Simplify.
1602 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1603 * psympriv.h (struct partial_symtab) <empty>: New method.
1604 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1605 Remove.
1606 <global_psymbols, static_psymbols>: New members.
1607 <add_psymbol>: New methods.
1608 (add_psymbol_to_list): Don't declare.
1609 (psymbol_placement): Move earlier.
1610 * mdebugread.c (parse_partial_symbols): Update.
1611 (handle_psymbol_enumerators): Change parameters.
1612 (mdebug_expand_psymtab): Update.
1613 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1614 (add_partial_symbol): Update.
1615 * dwarf2/index-write.c (write_psymbols): Change parameters.
1616 (write_one_signatured_type): Update.
1617 (recursively_count_psymbols): Update.
1618 (recursively_write_psymbols): Update.
1619 (class debug_names) <recursively_write_psymbols>: Update.
1620 <write_psymbols>: Change parameters.
1621 <write_one_signatured_type>: Update.
1622 * dbxread.c (read_dbx_symtab): Update.
1623 (dbx_end_psymtab): Use partial_symtab::empty.
1624 * ctfread.c (struct ctf_context) <pst>: New member.
1625 (create_partial_symtab): Set it.
1626 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1627 (scan_partial_symbols): Use the psymtab's context. Update.
1628
cfabbd35
TT
16292020-10-17 Tom Tromey <tom@tromey.com>
1630
1631 * valprint.c (generic_value_print): Remove comment.
1632 * m2-valprint.c (m2_value_print_inner): Remove comment.
1633 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1634 type.
1635
520596f2
TV
16362020-10-17 Tom de Vries <tdevries@suse.de>
1637
1638 PR symtab/26317
1639 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1640 symbol main.
1641
76547ab3
TV
16422020-10-14 Tom de Vries <tdevries@suse.de>
1643
1644 PR gdb/26733
1645 * solib.c (solib_contains_address_p): Handle
1646 'solib->sections == nullptr'.
1647
d3a07122
SM
16482020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1649
1650 PR gdb/26642
1651 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1652 target can't do async.
1653 * target.c (target_wait): Assert that we don't pass
1654 TARGET_WNOHANG to a target that can't async.
1655
1b71cfcf
KR
16562020-10-13 Kamil Rytarowski <n54@gmx.com>
1657
1658 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1659 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1660 * alpha-bsd-nat.c: Adjust include.
1661 * alpha-bsd-tdep.h: Adjust comment.
1662 * alpha-nbsd-tdep.c: Rename to ...
1663 * alpha-netbsd-tdep.c: ... this, adjust include.
1664 * amd64-nbsd-nat.c: Rename to ...
1665 * amd64-netbsd-nat.c: ... this, adjust include.
1666 * amd64-nbsd-tdep.c: Rename to ...
1667 * amd64-netbsd-tdep.c: ... this, adjust include.
1668 * amd64-tdep.h: Adjust include.
1669 * arm-nbsd-nat.c: Rename to ...
1670 * arm-netbsd-nat.c: ... this, adjust include.
1671 * arm-nbsd-tdep.c: Rename to ...
1672 * arm-netbsd-tdep.c: ... this, adjust include.
1673 * arm-nbsd-tdep.h: Rename to ...
1674 * arm-netbsd-tdep.h: ... this, adjust include.
1675 * configure.nat: Adjust file lists.
1676 * configure.tgt: Likewise.
1677 * hppa-nbsd-nat.c: Rename to ...
1678 * hppa-netbsd-nat.c: ... this, adjust include.
1679 * hppa-nbsd-tdep.c: Rename to ...
1680 * hppa-netbsd-tdep.c: ... this, adjust include.
1681 * i386-nbsd-nat.c: Rename to ...
1682 * i386-netbsd-nat.c: ... this, adjust include.
1683 * i386-nbsd-tdep.c: Rename to ...
1684 * i386-netbsd-tdep.c: ... this, adjust include.
1685 * m68k-bsd-nat.c: Adjust include.
1686 * mips-nbsd-nat.c: Rename to ...
1687 * mips-netbsd-nat.c: ... this, adjust include.
1688 * mips-nbsd-tdep.c: Rename to ...
1689 * mips-netbsd-tdep.c: ... this, adjust include.
1690 * mips-nbsd-tdep.h: Rename to ...
1691 * mips-netbsd-tdep.h: ... this.
1692 * nbsd-nat.c: Rename to ...
1693 * netbsd-nat.c: ... this, adjust include.
1694 * nbsd-nat.h: Rename to ...
1695 * netbsd-nat.h: ... this, adjust include.
1696 * nbsd-tdep.c: Rename to ...
1697 * netbsd-tdep.c: ... this, adjust include.
1698 * nbsd-tdep.h: Rename to ...
1699 * netbsd-tdep.h: ... this.
1700 * ppc-nbsd-nat.c: Rename to ...
1701 * ppc-netbsd-nat.c: ... this, adjust include.
1702 * ppc-nbsd-tdep.c: Rename to ...
1703 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1704 * ppc-nbsd-tdep.h: Rename to ...
1705 * ppc-netbsd-tdep.h: ... this.
1706 * sh-nbsd-nat.c: Rename to ...
1707 * sh-netbsd-nat.c: ... this, adjust include.
1708 * sh-nbsd-tdep.c: Rename to ...
1709 * sh-netbsd-tdep.c: ... this, adjust include.
1710 * sparc-nbsd-nat.c: Rename to ...
1711 * sparc-netbsd-nat.c: ... this.
1712 * sparc-nbsd-tdep.c: Rename to ...
1713 * sparc-netbsd-tdep.c: ... this, adjust include.
1714 * sparc64-nbsd-nat.c: Rename to ...
1715 * sparc64-netbsd-nat.c: ... this.
1716 * sparc64-nbsd-tdep.c: Rename to ...
1717 * sparc64-netbsd-tdep.c: ... this, adjust include.
1718 * sparc64-tdep.h: Adjust comment.
1719 * vax-bsd-nat.c: Adjust include.
1720 * vax-nbsd-tdep.c: Rename to ...
1721 * vax-netbsd-tdep.c: ... this, adjust include.
1722
d7a78e5c
TT
17232020-10-12 Tom Tromey <tom@tromey.com>
1724
1725 * target.h (struct target_ops) <get_section_table>: Update.
1726 (target_get_section_table): Update.
1727 * target.c (target_get_section_table, target_section_by_addr)
1728 (memory_xfer_partial_1): Update.
1729 * target-section.h (target_section_table): Now an alias.
1730 * target-delegates.c: Rebuild.
1731 * target-debug.h (target_debug_print_target_section_table_p):
1732 Rename from target_debug_print_struct_target_section_table_p.
1733 * symfile.c (build_section_addr_info_from_section_table): Update.
1734 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1735 * solib-svr4.c (scan_dyntag): Update.
1736 * solib-dsbt.c (scan_dyntag): Update.
1737 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1738 Update.
1739 * record-full.c (record_full_core_target::xfer_partial): Update.
1740 * progspace.h (struct program_space) <target_sections>: Update.
1741 * exec.h (print_section_info): Update.
1742 * exec.c (exec_target::close, build_section_table)
1743 (add_target_sections, add_target_sections_of_objfile)
1744 (remove_target_sections, exec_on_vfork)
1745 (section_table_available_memory)
1746 (section_table_xfer_memory_partial)
1747 (exec_target::get_section_table, exec_target::xfer_partial)
1748 (print_section_info, set_section_command)
1749 (exec_set_section_address, exec_target::has_memory): Update.
1750 * corelow.c (core_target::build_file_mappings)
1751 (core_target::xfer_partial, core_target::info_proc_mappings)
1752 (core_target::info_proc_mappings): Update.
1753 * bfd-target.c (class target_bfd): Update
1754
eda214ce
TT
17552020-10-12 Tom Tromey <tom@tromey.com>
1756
1757 * progspace.c (program_space::~program_space): Don't call
1758 clear_section_table.
1759 * exec.h (clear_section_table): Don't declare.
1760 * exec.c (exec_target::close): Update.
1761 (clear_section_table): Remove.
1762
91840ee3
TT
17632020-10-12 Tom Tromey <tom@tromey.com>
1764
1765 * exec.c (add_target_sections_of_objfile): Simplify.
1766
2d128614
TT
17672020-10-12 Tom Tromey <tom@tromey.com>
1768
1769 * solib.c (solib_map_sections): Update.
1770 * record-full.c (record_full_core_open_1): Update.
1771 * exec.h (build_section_table): Return a target_section_table.
1772 * exec.c (exec_file_attach): Update.
1773 (build_section_table): Return a target_section_table.
1774 * corelow.c (core_target::core_target): Update.
1775 * bfd-target.c (target_bfd::target_bfd): Update.
1776
bb2a6777
TT
17772020-10-12 Tom Tromey <tom@tromey.com>
1778
1779 * target.c (target_section_by_addr, memory_xfer_partial_1):
1780 Update.
1781 * target-section.h (struct target_section_table): Use
1782 std::vector.
1783 * symfile.h (build_section_addr_info_from_section_table): Take a
1784 target_section_table.
1785 * symfile.c (build_section_addr_info_from_section_table): Take a
1786 target_section_table.
1787 * solist.h (struct so_list) <sections>: Change type.
1788 <sections_end>: Remove.
1789 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1790 (solib_contains_address_p): Update.
1791 * solib-svr4.c (scan_dyntag): Update.
1792 * solib-dsbt.c (scan_dyntag): Update.
1793 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1794 Update.
1795 * record-full.c (record_full_core_start, record_full_core_end):
1796 Remove.
1797 (record_full_core_sections): New global.
1798 (record_full_core_open_1, record_full_core_target::xfer_partial):
1799 Update.
1800 * exec.h (build_section_table, section_table_xfer_memory_partial)
1801 (add_target_sections): Take a target_section_table.
1802 * exec.c (exec_file_attach, clear_section_table): Update.
1803 (resize_section_table): Remove.
1804 (build_section_table, add_target_sections): Take a
1805 target_section_table.
1806 (add_target_sections_of_objfile, remove_target_sections)
1807 (exec_on_vfork): Update.
1808 (section_table_available_memory): Take a target_section_table.
1809 (section_table_read_available_memory): Update.
1810 (section_table_xfer_memory_partial): Take a target_section_table.
1811 (print_section_info, set_section_command)
1812 (exec_set_section_address, exec_target::has_memory): Update.
1813 * corelow.c (class core_target) <m_core_section_table,
1814 m_core_file_mappings>: Remove braces.
1815 <~core_target>: Remove.
1816 (core_target::core_target): Update.
1817 (core_target::~core_target): Remove.
1818 (core_target::build_file_mappings)
1819 (core_target::xfer_memory_via_mappings)
1820 (core_target::xfer_partial, core_target::info_proc_mappings):
1821 Update.
1822 * bfd-target.c (target_bfd::xfer_partial): Update.
1823 (target_bfd::target_bfd): Update.
1824 (target_bfd::~target_bfd): Remove.
1825
7b466b10
TT
18262020-10-12 Tom Tromey <tom@tromey.com>
1827
1828 * target.h (struct target_section, struct target_section_table):
1829 Move to target-section.h.
1830 * target-section.h: New file.
1831
87a37e5e
PA
18322020-10-12 Pedro Alves <pedro@palves.net>
1833
1834 PR exp/26602
1835 * valops.c (struct struct_field_searcher): New.
1836 (update_search_result): Rename to ...
1837 (struct_field_searcher::update_result): ... this. Simplify
1838 prototype. Record all found fields.
1839 (do_search_struct_field): Rename to ...
1840 (struct_field_searcher::search): ... this. Simplify prototype.
1841 Maintain stack of visited baseclass path. Call update_result for
1842 fields too. Keep searching fields in baseclasses instead of
1843 stopping at the first found field.
1844 (search_struct_field): Use struct_field_searcher. When looking
1845 for fields, report ambiguous access attempts.
1846
9370fd51
AB
18472020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1848
1849 * frame.c (inside_main_func): Check full symbols as well as
1850 minimal symbols.
1851
59c8a30b
JB
18522020-10-09 Joel Brobecker <brobecker@adacore.com>
1853
1854 * ada-lang.c (advance_wild_match): Rewrite the function's
1855 description. Change the type of target0, t0 and t1 to char.
1856
7c184d33
TT
18572020-10-09 Tom Tromey <tromey@adacore.com>
1858
1859 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1860
5c4258f4
TT
18612020-10-09 Tom Tromey <tromey@adacore.com>
1862
1863 * ada-lang.h (ada_encode): Return std::string.
1864 * ada-lang.c (ada_encode_1): Return std::string.
1865 (ada_encode): Likewise.
1866 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1867 Update.
1868 * ada-exp.y (block_lookup, write_var_or_type): Update.
1869
3d87245c
HD
18702020-10-09 Hannes Domani <ssbssa@yahoo.de>
1871
1872 PR exp/26714
1873 * printcmd.c (print_formatted): Handle void results as
1874 unformatted prints.
1875
bbb826f5
AB
18762020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1877
1878 * arch/aarch32.c (aarch32_create_target_description): Release the
1879 target_desc_up as late as possible.
1880 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1881 * arch/amd64.c (amd64_create_target_description): Likewise.
1882 * arch/arc.c (arc_create_target_description): Return a
1883 target_desc_up, don't release it.
1884 * arch/arc.h (arc_create_target_description): Update declaration.
1885 (arc_lookup_target_description): Move target_desc_up into the
1886 cache, and return a borrowed pointer.
1887 * arch/arm.c (arm_create_target_description): Release the
1888 target_desc_up as late as possible.
1889 * arch/i386.c (i386_create_target_description): Likewise.
1890 * arch/riscv.h (riscv_create_target_description): Update
1891 declaration to match definition.
1892 * arch/tic6x.c (tic6x_create_target_description): Release the
1893 target_desc_up as late as possible.
1894
361cb219
AB
18952020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1896
1897 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1898 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1899
f5c4b229
JV
19002020-10-09 Jan Vrany <jan.vrany@labware.com>
1901
1902 * source.c (directory_command): Notify observers that "directories"
1903 parameter has changed.
1904
b2701685
TT
19052020-10-08 Tom Tromey <tom@tromey.com>
1906
1907 * cli/cli-cmds.c (print_disassembly): Style function name and
1908 addresses. Add _() wrappers.
1909
ada508b6
SV
19102020-10-08 Shahab Vahedi <shahab@synopsys.com>
1911
1912 * NEWS: Mention ARC support in GDBserver.
1913
51a948fd
AB
19142020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1915
1916 * arch/aarch32.c (aarch32_create_target_description): Release
1917 unique_ptr returned from allocate_target_description.
1918 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1919 * arch/amd64.c (amd64_create_target_description): Likewise.
1920 * arch/arc.c (arc_create_target_description): Likewise.
1921 * arch/arm.c (arm_create_target_description): Likewise.
1922 * arch/i386.c (i386_create_target_description): Likewise.
1923 * arch/riscv.c (riscv_create_target_description): Update return
1924 type. Handle allocate_target_description returning a unique_ptr.
1925 (riscv_lookup_target_description): Update to handle unique_ptr.
1926 * arch/tic6x.c (tic6x_create_target_description): Release
1927 unique_ptr returned from allocate_target_description.
1928 * features/microblaze-with-stack-protect.c: Regenerate.
1929 * features/microblaze.c: Regenerate.
1930 * features/mips-dsp-linux.c: Regenerate.
1931 * features/mips-linux.c: Regenerate.
1932 * features/mips64-dsp-linux.c: Regenerate.
1933 * features/mips64-linux.c: Regenerate.
1934 * features/nds32.c: Regenerate.
1935 * features/nios2.c: Regenerate.
1936 * features/or1k.c: Regenerate.
1937 * features/rs6000/powerpc-32.c: Regenerate.
1938 * features/rs6000/powerpc-32l.c: Regenerate.
1939 * features/rs6000/powerpc-403.c: Regenerate.
1940 * features/rs6000/powerpc-403gc.c: Regenerate.
1941 * features/rs6000/powerpc-405.c: Regenerate.
1942 * features/rs6000/powerpc-505.c: Regenerate.
1943 * features/rs6000/powerpc-601.c: Regenerate.
1944 * features/rs6000/powerpc-602.c: Regenerate.
1945 * features/rs6000/powerpc-603.c: Regenerate.
1946 * features/rs6000/powerpc-604.c: Regenerate.
1947 * features/rs6000/powerpc-64.c: Regenerate.
1948 * features/rs6000/powerpc-64l.c: Regenerate.
1949 * features/rs6000/powerpc-7400.c: Regenerate.
1950 * features/rs6000/powerpc-750.c: Regenerate.
1951 * features/rs6000/powerpc-860.c: Regenerate.
1952 * features/rs6000/powerpc-altivec32.c: Regenerate.
1953 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1954 * features/rs6000/powerpc-altivec64.c: Regenerate.
1955 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1956 * features/rs6000/powerpc-e500.c: Regenerate.
1957 * features/rs6000/powerpc-e500l.c: Regenerate.
1958 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1959 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1960 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1961 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1962 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1963 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1964 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1965 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1966 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1967 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1968 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1969 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1970 * features/rs6000/powerpc-vsx32.c: Regenerate.
1971 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1972 * features/rs6000/powerpc-vsx64.c: Regenerate.
1973 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1974 * features/rs6000/rs6000.c: Regenerate.
1975 * features/rx.c: Regenerate.
1976 * features/s390-gs-linux64.c: Regenerate.
1977 * features/s390-linux32.c: Regenerate.
1978 * features/s390-linux32v1.c: Regenerate.
1979 * features/s390-linux32v2.c: Regenerate.
1980 * features/s390-linux64.c: Regenerate.
1981 * features/s390-linux64v1.c: Regenerate.
1982 * features/s390-linux64v2.c: Regenerate.
1983 * features/s390-te-linux64.c: Regenerate.
1984 * features/s390-tevx-linux64.c: Regenerate.
1985 * features/s390-vx-linux64.c: Regenerate.
1986 * features/s390x-gs-linux64.c: Regenerate.
1987 * features/s390x-linux64.c: Regenerate.
1988 * features/s390x-linux64v1.c: Regenerate.
1989 * features/s390x-linux64v2.c: Regenerate.
1990 * features/s390x-te-linux64.c: Regenerate.
1991 * features/s390x-tevx-linux64.c: Regenerate.
1992 * features/s390x-vx-linux64.c: Regenerate.
1993 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1994 from allocate_target_description.
1995 * target-descriptions.c (allocate_target_description): Update
1996 return type.
1997 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1998 allocate_target_description.
1999
485c47e5
TT
20002020-10-07 Tom Tromey <tromey@adacore.com>
2001
2002 * unittests/search-memory-selftests.c: New file.
2003 * Makefile.in (SELFTESTS_SRCS): Add
2004 unittests/search-memory-selftests.c.
2005
3a135a91
TT
20062020-10-07 Tom Tromey <tromey@adacore.com>
2007
2008 PR gdb/16930:
2009 * findcmd.c (_initialize_mem_search): Mention that the range is
2010 inclusive.
2011
4a72de73
TT
20122020-10-07 Tom Tromey <tromey@adacore.com>
2013
2014 * target.h (simple_search_memory): Don't declare.
2015 * target.c (simple_search_memory): Move to gdbsupport.
2016 (default_search_memory): Update.
2017 * remote.c (remote_target::search_memory): Update.
2018
a038ffd8
SM
20192020-10-07 Simon Marchi <simon.marchi@efficios.com>
2020
2021 * Makefile.in (COMPILE): Add CXXFLAGS.
2022 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2023 (check-headers): Add CXXFLAGS.
2024
cc463201
AK
20252020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2026
2027 * arc-linux-tdep.h: New file.
2028 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2029 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2030 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2031 arc_linux_gregset, arc_linux_v2_regset,
2032 arc_linux_iterate_over_regset_sections,
2033 arc_linux_core_read_description): Implement.
2034 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2035 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2036 (arc_gdbarch_features_create): Add.
2037 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2038
e4bd363f
SV
20392020-10-07 Shahab Vahedi <shahab@synopsys.com>
2040
2041 * arch/arc.h: Rename "arc_gdbarch_features" to
2042 "arc_arch_features".
2043 * arc-tdep.h: Likewise.
2044 * arc-tdep.c: Likewise.
2045
b68bef99
TBA
20462020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2047
2048 * infcmd.c (attach_command): Remove the redundant call to
2049 `clear_proceed_status`.
2050
4641551a
KR
20512020-10-07 Kamil Rytarowski <n54@gmx.com>
2052
2053 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2054
91e5e8db
KR
20552020-10-07 Kamil Rytarowski <n54@gmx.com>
2056
2057 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2058 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2059 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2060
64c03bdb
SM
20612020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2064 (_initialize_break_catch_sig): Don't allocate array.
2065
31a8f60f
AB
20662020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 * symtab.c (find_pc_line): Return unmapped addresses when the
2069 requested address is also unmapped.
2070
9e6dbd8b
SM
20712020-10-05 Simon Marchi <simon.marchi@efficios.com>
2072
2073 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2074 tui/tui-out.h.
2075
a1d217e8
SM
20762020-10-05 Simon Marchi <simon.marchi@efficios.com>
2077
2078 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2079 type::is_vector instead of TYPE_VECTOR.
2080
7d144117
SM
20812020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2082
2083 * auto-load.c (auto_load_objfile_script_1): Don't use
2084 debugfile_holder as temporary variable when stripping drive
2085 letter.
2086
cd096ec8
HD
20872020-10-05 Hannes Domani <ssbssa@yahoo.de>
2088
2089 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2090 Add TYPE_CODE_COMPLEX.
2091 (amd64_windows_return_value): Fix types returned via XMM0.
2092
b58e7f72
AH
20932020-10-05 Alan Hayward <alan.hayward@arm.com>
2094
2095 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2096 AArch64/ARM maintainers.
2097
8d378f27
SM
20982020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2099
2100 * NEWS: Mention set/show debug event-loop.
2101
d5519913
TT
21022020-10-02 Tom Tromey <tromey@adacore.com>
2103
2104 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2105 REG_EXTENDED.
2106
18b67edc
SM
21072020-10-02 Simon Marchi <simon.marchi@efficios.com>
2108
2109 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2110 * procfs.c (procfs_inferior_created): Remove.
2111 (_initialize_procfs): Don't register procfs_inferior_created.
2112
6b01403b
SM
21132020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2114
2115 * async-event.c (invoke_async_signal_handlers): Add debug
2116 print.
2117 (check_async_event_handlers): Likewise.
2118 * event-top.c (show_debug_event_loop): New function.
2119 (_initialize_event_top): Register "set debug event-loop"
2120 setting.
2121
ba988419
SM
21222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2123
2124 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2125 * debug.h: Remove.
2126 * infrun.c: Include gdbsupport/common-debug.h.
2127 * linux-nat.c: Likewise.
2128
db20ebdf
SM
21292020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2130
2131 * async-event.h (create_async_signal_handler): Add name
2132 parameter.
2133 (create_async_event_handler): Likewise.
2134 * async-event.c (struct async_signal_handler) <name>: New field.
2135 (struct async_event_handler) <name>: New field.
2136 (create_async_signal_handler): Assign name.
2137 (create_async_event_handler): Assign name.
2138 * event-top.c (async_init_signals): Pass name when creating
2139 handler.
2140 * infrun.c (_initialize_infrun): Likewise.
2141 * record-btrace.c (record_btrace_push_target): Likewise.
2142 * record-full.c (record_full_open): Likewise.
2143 * remote-notif.c (remote_notif_state_allocate): Likewise.
2144 * remote.c (remote_target::open_1): Likewise.
2145 * tui/tui-win.c (tui_initialize_win): Likewise.
2146
2554f6f5
SM
21472020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2148
2149 * async-event.c (initialize_async_signal_handlers): Pass name to
2150 add_file_handler
2151 * event-top.c (ui_register_input_event_handler): Likewise.
2152 * linux-nat.c (linux_nat_target::async): Likewise.
2153 * run-on-main-thread.c (_initialize_run_on_main_thread):
2154 Likewise
2155 * ser-base.c (reschedule): Likewise.
2156 (ser_base_async): Likewise.
2157 * tui/tui-io.c: Likewise.
2158 * top.h (struct ui) <num>: New field.
2159 * top.c (highest_ui_num): New variable.
2160 (ui::ui): Initialize num.
2161
a7aba266
SM
21622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2163
2164 * observable.h <inferior_created>: Remove parameters. Update all
2165 listeners.
2166 * inferior.h (post_create_inferior): Remove target parameter.
2167 Update all callers.
2168
048fde1e 21692020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2170
2171 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2172 and DW_MACRO_undef_strx.
2173 (dwarf_decode_macros): Likewise
2174 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2175 which is the value of DW_AT_str_offsets_base.
2176 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2177 str_offsets_base.
2178
064280be
KR
21792020-10-01 Kamil Rytarowski <n54@gmx.com>
2180
2181 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2182
6ff33035
KR
21832020-10-01 Kamil Rytarowski <n54@gmx.com>
2184
2185 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2186 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2187
1eb6eb79
KR
21882020-10-01 Kamil Rytarowski <n54@gmx.com>
2189
2190 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2191
95eb9e54
TV
21922020-09-30 Tom de Vries <tdevries@suse.de>
2193
2194 PR symtab/26683
2195 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2196
cae21f8e
TT
21972020-09-30 Tom Tromey <tromey@adacore.com>
2198
2199 * dwarf2/read.c (handle_variant): Use constant_value.
2200
529908cb
TT
22012020-09-29 Tom Tromey <tom@tromey.com>
2202
2203 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2204 (read_file_scope, dwarf2_get_pc_bounds)
2205 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2206 (read_structure_type, handle_struct_member_die)
2207 (read_enumeration_type, read_array_type, read_set_type)
2208 (read_tag_pointer_type, read_tag_reference_type)
2209 (read_subroutine_type, read_base_type, read_subrange_type)
2210 (read_full_die_1, partial_die_info::read)
2211 (partial_die_info::read, by, new_symbol)
2212 (dwarf2_const_value_data, dwarf2_const_value_attr)
2213 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2214 (prepare_one_comp_unit): Update.
2215 * dwarf2/attribute.h (DW_UNSND): Remove.
2216
c45bc3f8
TT
22172020-09-29 Tom Tromey <tom@tromey.com>
2218
2219 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2220 (read_subroutine_type, partial_die_info::read)
2221 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2222 (dwarf2_add_member_fn): Update.
2223 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2224 * dwarf2/attribute.c (attribute::as_boolean): New method.
2225
23dca5c3
TT
22262020-09-29 Tom Tromey <tom@tromey.com>
2227
2228 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2229 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2230 method.
2231 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2232
52c14d11
TT
22332020-09-29 Tom Tromey <tom@tromey.com>
2234
2235 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2236 the attribute's form.
2237
e8e5c158
TT
22382020-09-29 Tom Tromey <tom@tromey.com>
2239
2240 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2241 (dwarf2_add_member_fn): Update.
2242 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2243 * dwarf2/attribute.c (attribute::defaulted): New method, from
2244 is_valid_DW_AT_defaulted.
2245
d4df075e
TT
22462020-09-29 Tom Tromey <tom@tromey.com>
2247
2248 * dwarf2/read.c (dw2_get_file_names_reader)
2249 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2250 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2251 (dwarf2_symbol_mark_computed): Use as_unsigned.
2252 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2253 method.
2254 <form_is_section_offset>: Update comment.
2255
bf23a268
TT
22562020-09-29 Tom Tromey <tom@tromey.com>
2257
2258 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2259 dwarf2_default_access_attribute. Look up attribute.
2260 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2261 Update.
2262
7a5f294d
TT
22632020-09-29 Tom Tromey <tom@tromey.com>
2264
2265 * dwarf2/read.c (skip_one_die): Update.
2266 (read_full_die_1): Change how reprocessing is done.
2267 (partial_die_info::read): Update.
2268 (read_attribute_value): Remove need_reprocess parameter.
2269 (read_attribute): Likewise.
2270 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2271 New method.
2272
36d378cf
TT
22732020-09-29 Tom Tromey <tom@tromey.com>
2274
2275 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2276 (dwarf2_const_value_attr, dump_die_shallow)
2277 (dwarf2_fetch_constant_bytes): Update.
2278 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2279 comment.
2280 <set_address>: New method.
2281 (DW_ADDR): Remove.
2282 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2283 (attribute::as_string, attribute::as_address): Add assert.
2284
fe56917a
TT
22852020-09-29 Tom Tromey <tom@tromey.com>
2286
2287 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2288 (read_attribute_reprocess, read_attribute_value): Update.
2289 (read_attribute): Clear requires_reprocessing.
2290 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2291 form_requires_reprocessing>: New methods.
2292 <string_init>: Clear requires_reprocessing.
2293 <set_unsigned_reprocess>: New method.
2294 <name>: Shrink by one bit.
2295 <requires_reprocessing>: New member.
2296 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2297 method.
2298
414ad644
TT
22992020-09-29 Tom Tromey <tom@tromey.com>
2300
2301 * dwarf2/read.c (read_attribute_value): Update.
2302 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2303 set_unsigned>: New methods.
2304 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2305
1bc397c5
TT
23062020-09-29 Tom Tromey <tom@tromey.com>
2307
2308 * dwarf2/read.c (get_alignment, read_array_order)
2309 (read_attribute_value, dwarf2_const_value_attr)
2310 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2311 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2312 New methods.
2313 (DW_SND): Remove.
2314
630ed6b9
TT
23152020-09-29 Tom Tromey <tom@tromey.com>
2316
2317 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2318 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2319 Update.
2320 * dwarf2/attribute.h (struct attribute) <as_signature,
2321 set_signature>: New methods.
2322 (DW_SIGNATURE): Remove.
2323
9d2246fc
TT
23242020-09-29 Tom Tromey <tom@tromey.com>
2325
2326 * dwarf2/read.c (read_call_site_scope)
2327 (handle_data_member_location, dwarf2_add_member_fn)
2328 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2329 (partial_die_info::read, read_attribute_value)
2330 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2331 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2332 (dwarf2_symbol_mark_computed): Update.
2333 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2334 methods.
2335 (DW_BLOCK): Remove.
2336 * dwarf2/attribute.c (attribute::form_is_block): Add
2337 DW_FORM_data16.
2338
c6481205
TT
23392020-09-29 Tom Tromey <tom@tromey.com>
2340
2341 * dwarf2/read.c (read_cutu_die_from_dwo)
2342 (read_attribute_reprocess, read_attribute_value, read_attribute)
2343 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2344 (dwarf2_fetch_constant_bytes): Update.
2345 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2346 <set_string_noncanonical, set_string_canonical>: New methods.
2347 <string_is_canonical>: Update comment.
2348 <canonical_string_p>: Add assert.
2349 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2350 * dwarf2/attribute.c (attribute::form_is_string): New method.
2351 (attribute::string): Use it.
2352
3b64bf15
TT
23532020-09-29 Tom Tromey <tom@tromey.com>
2354
2355 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2356 (dump_die_shallow): Use canonical_string_p.
2357 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2358 method.
2359
2c830f54
TT
23602020-09-29 Tom Tromey <tom@tromey.com>
2361
2362 * dwarf2/read.c (partial_die_info::read)
2363 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2364 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2365 attribute::as_string.
2366
6c412691
TT
23672020-09-29 Tom Tromey <tom@tromey.com>
2368
2369 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2370 DW_ADDR.
2371 (attribute::string): Don't use DW_STRING.
2372 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2373 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2374
95f982e5
TT
23752020-09-29 Tom Tromey <tom@tromey.com>
2376
2377 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2378 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2379 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2380 * dwarf2/attribute.h (struct attribute): Rename methods.
2381 * dwarf2/attribute.c (attribute::as_address): Rename from
2382 value_as_address.
2383 (attribute::as_string): Rename from value_as_string.
2384
f800b00e
TT
23852020-09-29 Tom Tromey <tom@tromey.com>
2386
2387 * dwarf2/read.c (partial_die_info::read) <case
2388 DW_AT_linkage_name>: Use value_as_string.
2389 (dwarf2_string_attr): Use value_as_string.
2390 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2391 method.
2392 * dwarf2/attribute.c (attribute::value_as_string): New method.
2393
de38d64a
PA
23942020-09-29 Pedro Alves <pedro@palves.net>
2395
2396 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2397 defined before using '#pragma GCC diagnostic' instead of checking
2398 __clang__.
2399
9aed480c
TT
24002020-09-28 Tom Tromey <tom@tromey.com>
2401
2402 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2403 (handle_signal_stop): Update.
2404 * procfs.c (procfs_target::insert_watchpoint): Update.
2405 * target.h (target_have_steppable_watchpoint): Now a function.
2406
8a3ecb79
TT
24072020-09-28 Tom Tromey <tom@tromey.com>
2408
2409 * infrun.c (set_schedlock_func): Update.
2410 * target.h (target_can_lock_scheduler): Now a function.
2411
55f6301a
TT
24122020-09-28 Tom Tromey <tom@tromey.com>
2413
2414 * inferior.h (class inferior) <has_execution>: Update.
2415 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2416 * valops.c (find_function_in_inferior)
2417 (value_allocate_space_in_inferior): Update.
2418 * top.c (kill_or_detach): Update.
2419 * target.c (target_preopen, set_target_permissions): Update.
2420 (target_has_execution_current): Remove.
2421 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2422 Update.
2423 * solib.c (update_solib_list, reload_shared_libraries): Update.
2424 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2425 * solib-dsbt.c (enable_break): Update.
2426 * score-tdep.c (score7_fetch_inst): Update.
2427 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2428 Update.
2429 * remote.c (remote_target::start_remote)
2430 (remote_target::remote_check_symbols, remote_target::open_1)
2431 (remote_target::remote_detach_1, remote_target::verify_memory)
2432 (remote_target::xfer_partial, remote_target::read_description)
2433 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2434 * record-full.c (record_full_open_1): Update.
2435 * record-btrace.c (record_btrace_target_open): Update.
2436 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2437 (value_nsstring): Update.
2438 * linux-thread-db.c (add_thread_db_info)
2439 (thread_db_find_new_threads_silently, check_thread_db_callback)
2440 (try_thread_db_load_1, record_thread): Update.
2441 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2442 Update.
2443 * linux-fork.c (checkpoint_command): Update.
2444 * infrun.c (set_non_stop, set_observer_mode)
2445 (check_multi_target_resumption, for_each_just_stopped_thread)
2446 (maybe_remove_breakpoints, normal_stop)
2447 (class infcall_suspend_state): Update.
2448 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2449 (info_program_command, attach_command): Update.
2450 * infcall.c (call_function_by_hand_dummy): Update.
2451 * inf-loop.c (inferior_event_handler): Update.
2452 * gcore.c (gcore_command, derive_heap_segment): Update.
2453 * exec.c (exec_file_command): Update.
2454 * eval.c (evaluate_subexp): Update.
2455 * compile/compile.c (compile_to_object): Update.
2456 * cli/cli-dump.c (restore_command): Update.
2457 * breakpoint.c (update_watchpoint)
2458 (update_inserted_breakpoint_locations)
2459 (insert_breakpoint_locations, get_bpstat_thread): Update.
2460 * target.h (target_has_execution): Remove macro.
2461 (target_has_execution_current): Don't declare.
2462 (target_has_execution): Rename from target_has_execution_1. Add
2463 argument default.
2464
05374cfd
TT
24652020-09-28 Tom Tromey <tom@tromey.com>
2466
2467 * mi/mi-main.c (exec_reverse_continue)
2468 (mi_cmd_list_target_features): Update.
2469 * infrun.c (set_exec_direction_func): Update.
2470 * target.c (default_execution_direction): Update.
2471 * reverse.c (exec_reverse_once): Update.
2472 * target.h (target_can_execute_reverse): Now a function.
2473
9dccd06e
TT
24742020-09-28 Tom Tromey <tom@tromey.com>
2475
2476 * tui/tui-regs.c (tui_get_register)
2477 (tui_data_window::show_registers): Update.
2478 * thread.c (scoped_restore_current_thread::restore)
2479 (scoped_restore_current_thread::scoped_restore_current_thread):
2480 Update.
2481 * regcache-dump.c (regcache_print): Update.
2482 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2483 Update.
2484 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2485 * mep-tdep.c (current_me_module, current_options): Update.
2486 * linux-thread-db.c (thread_db_load): Update.
2487 * infcmd.c (registers_info, info_vector_command)
2488 (info_float_command): Update.
2489 * ia64-tdep.c (ia64_frame_prev_register)
2490 (ia64_sigtramp_frame_prev_register): Update.
2491 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2492 * gcore.c (derive_stack_segment): Update.
2493 * frame.c (get_current_frame, has_stack_frames): Update.
2494 * findvar.c (language_defn::read_var_value): Update.
2495 * arm-tdep.c (arm_pc_is_thumb): Update.
2496 * target.c (target_has_registers): Rename from
2497 target_has_registers_1.
2498 * target.h (target_has_registers): Remove macro.
2499 (target_has_registers): Rename from target_has_registers_1.
2500
841de120
TT
25012020-09-28 Tom Tromey <tom@tromey.com>
2502
2503 * windows-tdep.c (tlb_make_value): Update.
2504 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2505 * thread.c (scoped_restore_current_thread::restore)
2506 (scoped_restore_current_thread::scoped_restore_current_thread)
2507 (thread_command): Update.
2508 * stack.c (backtrace_command_1, frame_apply_level_command)
2509 (frame_apply_all_command, frame_apply_command): Update.
2510 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2511 Update.
2512 * gcore.c (derive_stack_segment): Update.
2513 * frame.c (get_current_frame, has_stack_frames): Update.
2514 * auxv.c (info_auxv_command): Update.
2515 * ada-tasks.c (ada_build_task_list): Update.
2516 * target.c (target_has_stack): Rename from target_has_stack_1.
2517 * target.h (target_has_stack): Remove macro.
2518 (target_has_stack): Rename from target_has_stack_1.
2519
a739972c
TT
25202020-09-28 Tom Tromey <tom@tromey.com>
2521
2522 * target.c (target_has_memory): Rename from target_has_memory_1.
2523 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2524 * thread.c (scoped_restore_current_thread::restore)
2525 (scoped_restore_current_thread::scoped_restore_current_thread):
2526 Update.
2527 * frame.c (get_current_frame, has_stack_frames): Update.
2528 * target.h (target_has_memory): Remove macro.
2529 (target_has_memory): Rename from target_has_memory_1.
2530
5b8a4776
TT
25312020-09-28 Tom Tromey <tom@tromey.com>
2532
2533 * target.c (target_has_all_memory_1): Remove.
2534 * target.h (target_has_all_memory): Remove define.
2535 (target_has_all_memory_1): Don't declare.
2536
bd356ec6
SM
25372020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2538
2539 * ser-base.c: Adjust comments formatting.
2540
2c72d5e5
TT
25412020-09-27 Tom Tromey <tom@tromey.com>
2542
2543 PR tui/25342:
2544 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2545
35a98237
TT
25462020-09-27 Tom Tromey <tom@tromey.com>
2547
2548 PR tui/25342:
2549 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2550
9e820dec
TT
25512020-09-27 Tom Tromey <tom@tromey.com>
2552
2553 * unittests/tui-selftests.c: Update.
2554 * tui/tui-winsource.h (struct tui_source_window_base)
2555 <extra_margin, show_line_number, refresh_pad>: New methods.
2556 <m_max_length, m_pad>: New members.
2557 (tui_copy_source_line): Update.
2558 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2559 first_col, line_width, ndigits parameters. Add length.
2560 (tui_source_window_base::show_source_line): Write to pad. Line
2561 number now 0-based.
2562 (tui_source_window_base::refresh_pad): New method.
2563 (tui_source_window_base::show_source_content): Write to pad. Call
2564 refresh_pad.
2565 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2566 not refill.
2567 (tui_source_window_base::update_exec_info): Call
2568 show_line_number.
2569 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2570 method.
2571 <m_digits>: New member.
2572 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2573 and m_max_length.
2574 (tui_source_window::show_line_number): New method.
2575 * tui/tui-io.h (tui_puts): Fix comment.
2576 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2577 m_max_length.
2578
c15c15c8
TT
25792020-09-27 Tom Tromey <tom@tromey.com>
2580
2581 * tui/tui-winsource.c
2582 (tui_source_window_base::set_is_exec_point_at): Don't call
2583 show_source_line.
2584
149830c1
TT
25852020-09-27 Tom Tromey <tom@tromey.com>
2586
2587 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2588 method.
2589 <erase>: Update.
2590 <cursor_x, cursor_y>: Remove.
2591 <m_inner_window>: New member.
2592 (tui_py_window::rerender): Create inner window.
2593 (tui_py_window::output): Write to inner window.
2594
8f9929bb
GR
25952020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2596
2597 PR python/26586
2598 * cli/cli-script.c (execute_control_commands): don't set
2599 instream to nullptr here as this breaks the from_tty argument
2600 to gdb.execute in Python.
2601 (execute_user_command): set instream to nullptr here instead.
2602
956bdb59
SM
26032020-09-25 Simon Marchi <simon.marchi@efficios.com>
2604
2605 * infrun.h (infrun_debug_printf): Fix formatting.
2606 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2607
3b93626b
SJ
26082020-09-25 Saagar Jha <saagar@saagarjha.com>
2609
2610 * compile/compile-object-load.h (struct munmap_list): Add
2611 explicitly-defined move constructor.
2612
b551a89f
TT
26132020-09-24 Tom Tromey <tromey@adacore.com>
2614
2615 PR tui/26638:
2616 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2617 method.
2618 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2619 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2620 (tui_prev_win): Rewrite.
2621
99bb393f
HD
26222020-09-23 Hannes Domani <ssbssa@yahoo.de>
2623
2624 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2625 in WOW64 processes as SIGINT.
2626 * nat/windows-nat.h: Make wow64_process a shared variable.
2627 * windows-nat.c: Remove static wow64_process variable.
2628
20a5fcbd
TT
26292020-09-23 Tom Tromey <tom@tromey.com>
2630
2631 PR symtab/25470:
2632 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2633 offset and bit size.
2634 * printcmd.c (print_scalar_formatted): Handle zero-length
2635 integer.
2636 (print_scalar_formatted): Use bit_size_differs_p.
2637 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2638 constant.
2639 (union type_specific): <int_stuff>: New member.
2640 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2641 methods.
2642 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2643 TYPE_SPECIFIC_FIELD.
2644 (recursive_dump_type, copy_type_recursive): Update.
2645 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2646 DW_AT_data_bit_offset.
2647
bac51ab7
TT
26482020-09-23 Tom Tromey <tom@tromey.com>
2649
2650 * utils.h (class gdb_argv): Add move operators.
2651 <append>: New methods.
2652 * compile/compile.c (build_argc_argv): Remove.
2653 (compile_args_argc): Remove.
2654 (compile_args_argv): Change type.
2655 (set_compile_args): Simplify.
2656 (append_args): Remove.
2657 (filter_args): Remove argcp parameter.
2658 (get_args): Return gdb_argv. Simplify.
2659 (compile_to_object): Update.
2660
92677124
TT
26612020-09-23 Tom Tromey <tom@tromey.com>
2662
2663 * compile/compile-object-run.c (do_module_cleanup)
2664 <~do_module_cleanup> :Remove.
2665 (do_module_cleanup): Update.
2666 * compile/compile-object-load.h (struct munmap_list): Add move
2667 assignment operator.
2668 <source_file>: Now a std::string.
2669 <munmap_list>: Rename. No longer a pointer.
2670 * compile/compile-object-load.c (struct setup_sections_data): Add
2671 constructor.
2672 <setup_one_section>: Declare.
2673 <munmap_list>: Move earlier.
2674 <m_bfd>: New member.
2675 <m_last_size, m_last_section_first, m_last_prot,
2676 m_last_max_alignment>: Rename, add initializers where needed.
2677 (setup_sections_data::setup_one_section): Rename from
2678 setup_sections. Update.
2679 (compile_object_load): Update. Don't use bfd_map_over_sections.
2680
e616f60a
TT
26812020-09-23 Tom Tromey <tom@tromey.com>
2682
2683 * compile/compile-object-run.c (struct do_module_cleanup): Add
2684 parameters to constructor. Update destructor.
2685 <source_file, scope, scope_data, out_value_type, out_value_addr,
2686 munmap_list_head, objfile_name_string>: Remove.
2687 <module>: New member.
2688 (do_module_cleanup): Update.
2689 (compile_object_run): Update.
2690
e947a848
TT
26912020-09-23 Tom Tromey <tom@tromey.com>
2692
2693 * compile/compile.c (eval_compile_command): Update.
2694 * compile/compile-object-run.h (compile_object_run): Take a
2695 compile_module_up.
2696 * compile/compile-object-run.c (compile_object_run): Take a
2697 compile_module_up.
2698 * compile/compile-object-load.h (struct compile_module): Add
2699 constructor, destructor.
2700 (compile_module_up): New typedef.
2701 (compile_object_load): Return compile_object_up.
2702 * compile/compile-object-load.c (compile_object_load): Return
2703 compile_module_up.
2704
0dbf6ee6
TT
27052020-09-23 Tom Tromey <tom@tromey.com>
2706
2707 * compile/compile-object-run.c (struct do_module_cleanup): Add
2708 constructor, destructor.
2709 <objfile_name_string>: Don't use struct hack.
2710 (do_module_cleanup): Use delete.
2711 (compile_object_run): Use new.
2712
ebe824f5
TT
27132020-09-23 Tom Tromey <tom@tromey.com>
2714
2715 * compile/compile-cplus-types.c
2716 (compile_cplus_convert_struct_or_union): Use std::vector.
2717 (compile_cplus_convert_func): Likewise.
2718 * compile/compile-c-types.c (convert_func): Use std::vector.
2719
5dd918d9
TT
27202020-09-21 Tom Tromey <tromey@adacore.com>
2721
2722 * sparc-tdep.c (sparc32_skip_prologue): Use
2723 skip_prologue_using_sal.
2724
5486c517
TT
27252020-09-19 Tom Tromey <tom@tromey.com>
2726
2727 * symfile.c (add_section_size_callback): Remove.
2728 (load_one_section): Rename from load_section_callback. Change
2729 parameters.
2730 (generic_load): Use foreach.
2731
8a6bb1d1
TT
27322020-09-19 Tom Tromey <tom@tromey.com>
2733
2734 * exec.c (add_to_section_table): Remove.
2735 (build_section_table): Use foreach.
2736
08f93a1a
TT
27372020-09-19 Tom Tromey <tom@tromey.com>
2738
2739 * elfread.c (elf_locate_sections): Change parameters.
2740 (elf_symfile_read): Use foreach.
2741
03cd72b8
TT
27422020-09-19 Tom Tromey <tom@tromey.com>
2743
2744 * cli/cli-dump.c (struct callback_data): Remove.
2745 (restore_one_section): Rename from restore_section_callback.
2746 Change parameters.
2747 (restore_binary_file): Change parameters.
2748 (restore_command): Use foreach.
2749
f4f2b85f
TT
27502020-09-19 Tom Tromey <tom@tromey.com>
2751
2752 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2753 (gcore_copy_callback): Likewise.
2754 (gcore_memory_sections): Use foreach.
2755
b35c1d1c
TT
27562020-09-19 Tom Tromey <tom@tromey.com>
2757
2758 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2759 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2760 parameters.
2761 (generic_elf_osabi_sniffer): Use foreach.
2762 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2763 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2764
5bb6e9dd
TT
27652020-09-19 Tom Tromey <tom@tromey.com>
2766
2767 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2768 (dwarf2_get_dwz_file): Use foreach.
2769 (dwarf2_locate_dwo_sections): Change parameters.
2770 (open_and_init_dwo_file): Use foreach.
2771 (dwarf2_locate_common_dwp_sections): Change parameters.
2772 (open_and_init_dwp_file): Use foreach.
2773
ad7277da
TT
27742020-09-19 Tom Tromey <tom@tromey.com>
2775
2776 * symfile.h: (find_lowest_section): Don't declare.
2777 * symfile.c (find_lowest_section): Now static. Change
2778 parameters.
2779 (struct place_section_arg): Remove.
2780 (place_section): Change parameters.
2781 (addr_info_make_relative): Use foreach.
2782 (symfile_dummy_outputs): Remove.
2783 (default_symfile_relocate): Use foreach.
2784
cb814f2e
TT
27852020-09-19 Tom Tromey <tom@tromey.com>
2786
2787 * objfiles.c (add_to_objfile_sections): Rename from
2788 add_to_objfile_sections_full.
2789 (add_to_objfile_sections): Remove.
2790 (build_objfile_section_table): Use foreach.
2791
3cabfd26
TT
27922020-09-19 Tom Tromey <tom@tromey.com>
2793
2794 * stap-probe.c (get_stap_base_address_1): Remove.
2795 (get_stap_base_address): Use foreach.
2796
1ce51eb5
TT
27972020-09-19 Tom Tromey <tom@tromey.com>
2798
2799 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2800 parameters.
2801 (gdb_bfd_close_or_warn): Use foreach.
2802
a190fabb
TT
28032020-09-19 Tom Tromey <tom@tromey.com>
2804
2805 * corelow.c (add_to_thread_list): Change parameters.
2806 (core_target_open): Use foreach.
2807
cafb0d81
TT
28082020-09-19 Tom Tromey <tom@tromey.com>
2809
2810 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2811 existing function.
2812
c8d5abea
AB
28132020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2814
2815 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2816 for arrays.
2817
6d816919
AB
28182020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2819
2820 * eval.c: Remove 'f-lang.h' include.
2821 (value_f90_subarray): Moved to f-lang.c.
2822 (eval_call): Renamed to...
2823 (evaluate_subexp_do_call): ...this, is no longer static, header
2824 comment moved into header file.
2825 (evaluate_funcall): Update call to eval_call.
2826 (skip_undetermined_arglist): Moved to f-lang.c.
2827 (fortran_value_subarray): Likewise.
2828 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2829 moved to evaluate_subexp_f.
2830 (calc_f77_array_dims): Moved to f-lang.c
2831 * expprint.c (print_subexp_funcall): New function.
2832 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2833 moved to print_subexp_f, OP_FUNCALL uses new function.
2834 (dump_subexp_body_funcall): New function.
2835 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2836 moved to dump_subexp_f, OP_FUNCALL uses new function.
2837 * expression.h (evaluate_subexp_do_call): Declare.
2838 * f-lang.c (value_f90_subarray): Moved from eval.c.
2839 (skip_undetermined_arglist): Likewise.
2840 (calc_f77_array_dims): Likewise.
2841 (fortran_value_subarray): Likewise.
2842 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2843 (operator_length_f): Likewise.
2844 (print_subexp_f): Likewise.
2845 (dump_subexp_body_f): Likewise.
2846 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2847 declaration of this operation to here.
2848 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2849 support moved to operator_length_f.
2850 * parser-defs.h (dump_subexp_body_funcall): Declare.
2851 (print_subexp_funcall): Declare.
2852 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2853 fortran-operator.def.
2854
8c37706a
AB
28552020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2856
2857 * eval.c (fortran_value_subarray): New function, content is taken
2858 from...
2859 (evaluate_subexp_standard): ...here, in two places. Now arrays
2860 and strings both call the new function.
2861 (calc_f77_array_dims): Add header comment, handle strings.
2862
14f9473c
VC
28632020-09-18 Victor Collod <vcollod@nvidia.com>
2864
2865 PR gdb/26635
2866 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2867 (i386_analyze_prologue): Call i386_skip_endbr.
2868
b60cea74
TT
28692020-09-18 Tom Tromey <tromey@adacore.com>
2870
2871 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2872 (windows_nat_target::wait): Update.
2873 * target/wait.h (enum target_wait_flag): New. Use
2874 DEF_ENUM_FLAGS_TYPE.
2875 * target/target.h (target_wait): Change type of options.
2876 * target.h (target_options_to_string, default_target_wait):
2877 Update.
2878 (struct target_ops) <wait>: Change type of options.
2879 * target.c (target_wait, default_target_wait, do_option): Change
2880 type of "options".
2881 (target_options_to_string): Likewise.
2882 * target-delegates.c: Rebuild.
2883 * target-debug.h (target_debug_print_target_wait_flags): Rename
2884 from target_debug_print_options.
2885 * sol-thread.c (class sol_thread_target) <wait>: Update.
2886 (sol_thread_target::wait): Update.
2887 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2888 (rs6000_nat_target::wait): Update.
2889 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2890 Update.
2891 (remote_target::wait_ns, remote_target::wait_as): Change type of
2892 "options".
2893 (remote_target::wait): Update.
2894 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2895 (gdbsim_target::wait): Update.
2896 * record-full.c (class record_full_base_target) <wait>: Update.
2897 (record_full_wait_1): Change type of "options".
2898 (record_full_base_target::wait): Update.
2899 * record-btrace.c (class record_btrace_target) <wait>: Update.
2900 (record_btrace_target::wait): Update.
2901 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2902 Update.
2903 (ravenscar_thread_target::wait): Update.
2904 * procfs.c (class procfs_target) <wait>: Update.
2905 (procfs_target::wait): Update.
2906 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2907 * obsd-nat.c (obsd_nat_target::wait): Update.
2908 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2909 (nto_procfs_target::wait): Update.
2910 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2911 * nbsd-nat.c (nbsd_wait): Change type of "options".
2912 (nbsd_nat_target::wait): Update.
2913 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2914 (thread_db_target::wait): Update.
2915 * linux-nat.h (class linux_nat_target) <wait>: Update.
2916 * linux-nat.c (linux_nat_target::wait): Update.
2917 (linux_nat_wait_1): Update.
2918 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2919 "options".
2920 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2921 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2922 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2923 (go32_nat_target::wait): Update.
2924 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2925 * gnu-nat.c (gnu_nat_target::wait): Update.
2926 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2927 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2928 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2929 * darwin-nat.c (darwin_nat_target::wait): Update.
2930 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2931 (bsd_uthread_target::wait): Update.
2932 * aix-thread.c (class aix_thread_target) <wait>: Update.
2933 (aix_thread_target::wait): Update.
2934
0295dde6
AB
29352020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2936
2937 * compile/compile-object-run.c (create_copied_type_recursive): New
2938 function.
2939 (compile_object_run): Use new function.
2940
d3483b43
JT
29412020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2942
2943 * NEWS: Mention x86_64 Cygwin core file support.
2944
e7d612ad
JT
29452020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2946
2947 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2948 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2949
aff9d387
JT
29502020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2951
62a5151b
JT
2952 * windows-tdep.h: Add prototypes.
2953 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2954 (i386_windows_core_pid_to_str): Move and rename ...
2955 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2956 (windows_core_pid_to_str): ... and here.
2957 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2958
29592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2960 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2961 (amd64_windows_init_abi_common): ... and register.
2962
7d155da3
JT
29632020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2964
2965 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2966 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2967
e8ef12b9
PA
29682020-09-18 Pedro Alves <pedro@palves.net>
2969
2970 PR gdb/26631
2971 * thread.c (thread_find_command): Switch inferior before calling
2972 target methods.
2973
c1e1314d
TT
29742020-09-17 Tom Tromey <tromey@adacore.com>
2975
2976 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2977 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2978 (tdesc_arch_data_up): New typedef.
2979 (tdesc_use_registers, tdesc_data_alloc): Update.
2980 (tdesc_data_cleanup): Don't declare.
2981 * target-descriptions.c (tdesc_data_alloc): Return a
2982 tdesc_arch_data_up.
2983 (tdesc_arch_data_deleter::operator()): Rename from
2984 tdesc_data_cleanup. Change argument type.
2985 (tdesc_use_registers): Change early_data to an rvalue reference.
2986 (tdesc_use_registers): Don't use delete.
2987 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2988 * s390-tdep.c (s390_gdbarch_init): Update.
2989 * rx-tdep.c (rx_gdbarch_init): Update.
2990 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2991 * riscv-tdep.c (riscv_gdbarch_init): Update.
2992 * or1k-tdep.c (or1k_gdbarch_init): Update.
2993 * nios2-tdep.c (nios2_gdbarch_init): Update.
2994 * nds32-tdep.c (nds32_gdbarch_init): Update.
2995 * mips-tdep.c (mips_gdbarch_init): Update.
2996 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2997 * m68k-tdep.c (m68k_gdbarch_init): Update.
2998 * i386-tdep.c (i386_gdbarch_init): Update.
2999 * arm-tdep.c (arm_gdbarch_init): Update.
3000 * arc-tdep.c (arc_tdesc_init): Update.
3001 (arc_gdbarch_init): Update.
3002 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3003
0363df3d
HD
30042020-09-17 Hannes Domani <ssbssa@yahoo.de>
3005
3006 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3007 for WOW64 processes.
3008
280a9412
TT
30092020-09-17 Tom Tromey <tom@tromey.com>
3010
3011 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3012
6108fd18
TT
30132020-09-17 Tom Tromey <tom@tromey.com>
3014
3015 * value.c (preserve_values): Update.
3016 * python/py-type.c (save_objfile_types): Update.
3017 * guile/scm-type.c (save_objfile_types): Update.
3018 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3019 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3020 * compile/compile-object-run.c (compile_object_run): Update.
3021
fa9b1164
TT
30222020-09-17 Tom Tromey <tom@tromey.com>
3023
3024 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3025 Remove.
3026 <m_table>: Now htab_up.
3027 * typeprint.c (typedef_hash_table::recursively_update)
3028 (typedef_hash_table::add_template_parameters)
3029 (typedef_hash_table::typedef_hash_table): Update.
3030 (typedef_hash_table::~typedef_hash_table): Remove.
3031 (typedef_hash_table::typedef_hash_table)
3032 (typedef_hash_table::find_global_typedef)
3033 (typedef_hash_table::find_typedef): Update.
3034
eb53f105
TT
30352020-09-17 Tom Tromey <tom@tromey.com>
3036
3037 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3038
7a8a5d47
TT
30392020-09-17 Tom Tromey <tom@tromey.com>
3040
3041 * linespec.c (class decode_compound_collector)
3042 <~decode_compound_collector>: Remove.
3043 <m_unique_syms>: Now htab_up.
3044 (decode_compound_collector::operator ()): Update.
3045 (class symtab_collector) <~symtab_collector>: Remove.
3046 <m_symtab_table>: Now htab_up.
3047 (symtab_collector::operator ()): Update.
3048
99032cfc
TT
30492020-09-17 Tom Tromey <tom@tromey.com>
3050
3051 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3052 (filename_seen_cache::clear): Update.
3053 (~filename_seen_cache): Remove.
3054 (filename_seen_cache::seen): Update.
3055 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3056 htab_up.
3057 <~filename_seen_cache>: Remove.
3058 <traverse>: Update.
3059
32580f6d
TT
30602020-09-17 Tom Tromey <tom@tromey.com>
3061
3062 * completer.c (completion_tracker::discard_completions)
3063 (completion_tracker::~completion_tracker)
3064 (completion_tracker::maybe_add_completion)
3065 (completion_tracker::remove_completion)
3066 (completion_tracker::recompute_lowest_common_denominator)
3067 (completion_tracker::build_completion_result): Update.
3068 * completer.h (class completion_tracker) <have_completions>:
3069 Update.
3070 <m_entries_hash>: Now htab_up.
3071
c1fb9836
TT
30722020-09-17 Tom Tromey <tom@tromey.com>
3073
3074 * breakpoint.c (ambiguous_names_p): Use htab_up.
3075
88f07206
TT
30762020-09-17 Tom Tromey <tom@tromey.com>
3077
3078 * auto-load.c (struct auto_load_pspace_info)
3079 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3080 <loaded_script_files, loaded_script_texts>: Change type to
3081 htab_up.
3082 (~auto_load_pspace_info) Remove.
3083 (init_loaded_scripts_info, maybe_add_script_file)
3084 (maybe_add_script_text, auto_load_info_scripts): Update.
3085
9519b2ee
TT
30862020-09-17 Tom Tromey <tromey@adacore.com>
3087
3088 * c-exp.y (name_obstack): Now static.
3089
d2cd4113
CC
30902020-09-17 Chungyi Chi <demonic@csie.io>
3091
3092 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3093
b650a282
SM
30942020-09-16 Simon Marchi <simon.marchi@efficios.com>
3095
3096 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3097 (add_solib_catchpoint): Likewise.
3098 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3099 to bool.
3100 (add_solib_catchpoint): Change int parameter/variable to bool.
3101 (catch_load_or_unload): Likewise.
3102 (init_catchpoint): Likewise.
3103 (create_fork_vfork_event_catchpoint): Likewise.
3104 (catch_fork_command_1): Likewise.
3105 (catch_exec_command_1): Likewise.
3106
4d0bcfcf
SM
31072020-09-16 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3110 Change instance_flags to m_instance_flags.
3111
fe830662
TT
31122020-09-16 Tom Tromey <tromey@adacore.com>
3113
3114 PR gdb/26598:
3115 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3116
fe5ddfc3
JB
31172020-09-16 John Baldwin <jhb@FreeBSD.org>
3118
3119 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3120 PL_FLAG_EXEC.
3121 (fbsd_nat_target::insert_exec_catchpoint)
3122 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3123 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3124 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3125
e911c666
JB
31262020-09-16 John Baldwin <jhb@FreeBSD.org>
3127
3128 * configure.ac: Remove check for kinfo_getvmmap().
3129 * configure, config.in: Regenerate.
3130 * fbsd-nat.c (fbsd_read_mapping): Remove
3131 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3132 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3133 kinfo_get_vmmap() are always present.
3134
1f17d372
JB
31352020-09-16 John Baldwin <jhb@FreeBSD.org>
3136
3137 * fbsd-nat.c: Always include support for
3138 TARGET_OBJECT_SIGNAL_INFO.
3139
bcb1da7f
JB
31402020-09-16 John Baldwin <jhb@FreeBSD.org>
3141
3142 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3143 sysctl and remove procfs fallback.
3144
5515f729
JB
31452020-09-16 John Baldwin <jhb@FreeBSD.org>
3146
3147 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3148 * fbsd-nat.h: Likewise.
3149
da1df1db
TBA
31502020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3151
3152 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3153 argument.
3154
0e25e767
AB
31552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3156
3157 * ada-lang.c (ada_language_data): Delete.
3158 (ada_language): Remove references to ada_language_data.
3159 * c-lang.c (c_language_data): Delete.
3160 (c_language): Remove references to c_language_data.
3161 (cplus_language_data): Delete.
3162 (cplus_language): Remove references to cplus_language_data.
3163 (asm_language_data): Delete.
3164 (asm_language): Remove references to asm_language_data.
3165 (minimal_language_data): Delete.
3166 (minimal_language): Remove references to minimal_language_data.
3167 * d-lang.c (d_language_data): Delete.
3168 (d_language): Remove references to d_language_data.
3169 * f-lang.c (f_language_data): Delete.
3170 (f_language): Remove references to f_language_data.
3171 * go-lang.c (go_language_data): Delete.
3172 (go_language): Remove references to go_language_data.
3173 * language.c (unknown_language_data): Delete.
3174 (unknown_language): Remove references to unknown_language_data.
3175 (auto_language_data): Delete.
3176 (auto_language): Remove references to auto_language_data.
3177 * language.h (language_data): Delete struct.
3178 (language_defn): No longer inherit from language_data.
3179 * m2-lang.c (m2_language_data): Delete.
3180 (m2_language): Remove references to m2_language_data.
3181 * objc-lang.c (objc_language_data): Delete.
3182 (objc_language): Remove references to objc_language_data.
3183 * opencl-lang.c (opencl_language_data): Delete.
3184 (opencl_language): Remove references to opencl_language_data.
3185 * p-lang.c (pascal_language_data): Delete.
3186 (pascal_language): Remove references to pascal_language_data.
3187 * rust-lang.c (rust_language_data): Delete.
3188 (rust_language): Remove references to rust_language_data.
3189
b7c6e27d
AB
31902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3191
3192 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3193 initializer.
3194 (ada_language::opcode_print_table): New member function.
3195 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3196 (c_language::opcode_print_table): New member function.
3197 (cplus_language_data): Remove la_op_print_tab initializer.
3198 (cplus_language::opcode_print_table): New member function.
3199 (asm_language_data): Remove la_op_print_tab initializer.
3200 (asm_language::opcode_print_table): New member function.
3201 (minimal_language_data): Remove la_op_print_tab initializer.
3202 (minimal_language::opcode_print_table): New member function.
3203 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3204 (d_language::opcode_print_table): New member function.
3205 * expprint.c (print_subexp_standard): Update call to
3206 opcode_print_table.
3207 (op_string): Likewise.
3208 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3209 (f_language::opcode_print_table): New member function.
3210 * go-lang.c (go_language_data): Remove la_op_print_tab
3211 initializer.
3212 (go_language::opcode_print_table): New member function.
3213 * language.c (unknown_language_data): Remove la_op_print_tab
3214 initializer.
3215 (unknown_language::opcode_print_table): New member function.
3216 (auto_language_data): Remove la_op_print_tab initializer.
3217 (auto_language::opcode_print_table): New member function.
3218 * language.h (language_data): Remove la_op_print_tab field.
3219 (language_defn::opcode_print_table): Declare new member function.
3220 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3221 initializer.
3222 (m2_language::opcode_print_table): New member function.
3223 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3224 initializer.
3225 (objc_language::opcode_print_table): New member function.
3226 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3227 initializer.
3228 (opencl_language::opcode_print_table): New member function.
3229 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3230 initializer.
3231 (pascal_language::opcode_print_table): New member function.
3232 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3233 initializer.
3234 (rust_language::opcode_print_table): New member function.
3235
5aba6ebe
AB
32362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3237
3238 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3239 (ada_language::expression_ops): New member function.
3240 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3241 (c_language::expression_ops): New member function.
3242 (cplus_language_data): Remove la_exp_desc initializer.
3243 (cplus_language::expression_ops): New member function.
3244 (asm_language_data): Remove la_exp_desc initializer.
3245 (asm_language::expression_ops): New member function.
3246 (minimal_language_data): Remove la_exp_desc initializer.
3247 (minimal_language::expression_ops): New member function.
3248 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3249 (d_language::expression_ops): New member function.
3250 * eval.c (evaluate_subexp): Update call to expression_ops.
3251 * expprint.c (print_subexp): Likewise.
3252 (op_name): Likewise.
3253 (dump_subexp_body): Likewise.
3254 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3255 (f_language::expression_ops): New member function.
3256 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3257 (go_language::expression_ops): New member function.
3258 * language.c (language_defn::expression_ops): New function.
3259 (unknown_language_data): Remove la_exp_desc initializer.
3260 (auto_language_data): Likewise.
3261 * language.h (language_data): Remove la_exp_desc field.
3262 (language_defn::expression_ops): Declare new member function.
3263 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3264 (m2_language::expression_ops): New member function.
3265 * objc-lang.c (objc_language_data): Remove la_exp_desc
3266 initializer.
3267 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3268 initializer.
3269 (opencl_language::expression_ops): New member function.
3270 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3271 * parse.c (operator_length): Update call to expression_ops.
3272 (exp_iterate): Likewise.
3273 * rust-lang.c (rust_language_data): Remove la_exp_desc
3274 initializer.
3275 (ruse_language::expression_ops): New member function.
3276
b63a3f3f
AB
32772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3278
3279 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3280 initializer.
3281 (ada_language::varobj_ops): New member function.
3282 * c-lang.c (c_language_data): Remove la_varobj_ops
3283 initializer.
3284 (cplus_language_data): Likewise.
3285 (cplus_language::varobj_ops): New member function.
3286 (asm_language_data): Remove la_varobj_ops initializer.
3287 (minimal_language_data): Likewise.
3288 * d-lang.c (d_language_data): Likewise.
3289 * f-lang.c (f_language_data): Likewise.
3290 * go-lang.c (go_language_data): Likewise.
3291 * language.c (language_defn::varobj_ops): New function.
3292 (unknown_language_data): Remove la_varobj_ops
3293 initializer.
3294 (auto_language_data): Likewise.
3295 * language.h (language_data): Remove la_varobj_ops field.
3296 (language_defn::varobj_ops): Declare new member function.
3297 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3298 * objc-lang.c (objc_language_data): Likewise.
3299 * opencl-lang.c (opencl_language_data): Likewise.
3300 * p-lang.c (pascal_language_data): Likewise.
3301 * rust-lang.c (rust_language_data): Likewise.
3302 * varobj.c (varobj_create): Update call to varobj_ops.
3303 * varobj.h (default_varobj_ops): Delete define.
3304
1ac14a04
AB
33052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3306
3307 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3308 initializer.
3309 * c-lang.c (c_language_data): Likewise.
3310 (c_language::macro_expansion): New member function.
3311 (cplus_language_data): Likewise.
3312 (cplus_language::macro_expansion): New member function.
3313 (asm_language_data): Likewise.
3314 (asm_language::macro_expansion): New member function.
3315 (minimal_language_data): Likewise.
3316 (minimal_language::macro_expansion): New member function.
3317 * d-lang.c (d_language_data): Remove la_macro_expansion
3318 initializer.
3319 * f-lang.c (f_language_data): Likewise.
3320 * go-lang.c (go_language_data): Likewise.
3321 * language.c (unknown_language_data): Likewise.
3322 (auto_language_data): Likewise.
3323 * language.h (language_data): Remove la_macro_expansion field.
3324 (language_defn::macro_expansion): New member function.
3325 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3326 initializer.
3327 * objc-lang.c (objc_language_data): Likewise.
3328 (objc_language::macro_expansion): New member function.
3329 * opencl-lang.c (opencl_language_data): Likewise.
3330 (opencl_language::macro_expansion): New member function.
3331 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3332 initializer.
3333 * rust-lang.c (rust_language_data): Likewise.
3334 * symtab.c (default_collect_symbol_completion_matches_break_on):
3335 Update call to macro_expansion.
3336
3a3440fb
AB
33372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3338
3339 * ada-lang.c (ada_language_data): Remove la_array_ordering
3340 initializer.
3341 * c-lang.c (c_language_data): Likewise.
3342 (cplus_language_data): Likewise.
3343 (asm_language_data): Likewise.
3344 (minimal_language_data): Likewise.
3345 * d-lang.c (d_language_data): Likewise.
3346 * dwarf2/read.c (read_array_order): Update for call to
3347 array_ordering.
3348 * f-lang.c (f_language_data): Remove la_array_ordering
3349 initializer.
3350 (f_language::array_ordering): New member function.
3351 * go-lang.c (go_language_data): Remove la_array_ordering
3352 initializer.
3353 * language.c (unknown_language_data): Likewise.
3354 (auto_language_data): Likewise.
3355 * language.h (language_data): Delete la_array_ordering field.
3356 (language_defn::array_ordering): New member function.
3357 * m2-lang.c (m2_language_data): Remove la_array_ordering
3358 initializer.
3359 * objc-lang.c (objc_language_data): Likewise.
3360 * opencl-lang.c (opencl_language_data): Likewise.
3361 * p-lang.c (pascal_language_data): Likewise.
3362 * rust-lang.c (rust_language_data): Likewise.
3363
0d201fa4
AB
33642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3365
3366 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3367 initializer.
3368 * c-lang.c (c_language_data): Likewise.
3369 (cplus_language_data): Likewise.
3370 (asm_language_data): Likewise.
3371 (minimal_language_data): Likewise.
3372 * d-lang.c (d_language_data): Likewise.
3373 * f-lang.c (f_language_data): Likewise.
3374 (f_language::case_sensitivity): New member function.
3375 * go-lang.c (go_language_data): Remove la_case_sensitivity
3376 initializer.
3377 * language.c (enum case_mode): Moved here from language.h.
3378 (case_mode): Make static.
3379 (show_case_command): Update for case_sensitivity being a method.
3380 (set_case_command): Likewise.
3381 (set_range_case): Likewise.
3382 (unknown_language_data): Remove la_case_sensitivity initializer.
3383 (auto_language_data): Likewise.
3384 * language.h (case_mode): Delete, move enum declaration to
3385 language.c.
3386 (language_data): Delete la_case_sensitivity field.
3387 (language_defn::case_sensitivity): New member function.
3388 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3389 initializer.
3390 * objc-lang.c (objc_language_data): Likewise.
3391 * opencl-lang.c (opencl_language_data): Likewise.
3392 * p-lang.c (pascal_language_data): Likewise.
3393 * rust-lang.c (rust_language_data): Likewise.
3394
efdf6a73
AB
33952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * ada-lang.c (ada_language_data): Remove la_range_check
3398 initializer.
3399 * c-lang.c (c_language_data): Likewise.
3400 (cplus_language_data): Likewise.
3401 (asm_language_data): Likewise.
3402 (minimal_language_data): Likewise.
3403 * d-lang.c (d_language_data): Likewise.
3404 * f-lang.c (f_language_data): Likewise.
3405 (f_language::range_checking_on_by_default): New member function.
3406 * go-lang.c (go_language_data): Remove la_range_check initializer.
3407 * language.c (enum range_mode): Moved here from language.h.
3408 (range_mode): Made static.
3409 (show_range_command): Update to use
3410 range_checking_on_by_default.
3411 (set_range_command): Likewise.
3412 (set_range_case): Likewise.
3413 (unknown_language_data): Remove la_range_check initializer.
3414 (auto_language_data): Likewise.
3415 * language.h (range_mode): Delete. Enum definition moved to
3416 language.c.
3417 (language_data): Remove la_range_check field.
3418 (language_defn::range_checking_on_by_default): New member
3419 function.
3420 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3421 (m2_language::range_checking_on_by_default): New member function.
3422 * objc-lang.c (objc_language_data): Remove la_range_check
3423 initializer.
3424 * opencl-lang.c (opencl_language_data): Likewise.
3425 * p-lang.c (pascal_language_data): Likewise.
3426 (pascal_language::range_checking_on_by_default): New member
3427 function.
3428 * rust-lang.c (rust_language_data): Remove la_range_check
3429 initializer.
3430 (rust_language::range_checking_on_by_default): New member
3431 function.
3432
bf92aec5
AB
34332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3434
3435 * dwarf2/read.c (dwarf2_physname): Remove special case for
3436 language_go.
3437 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3438 member function.
3439
d3355e4d
AB
34402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3441
3442 * ada-lang.c (ada_language_data): Remove
3443 la_store_sym_names_in_linkage_form_p initializer.
3444 (ada_language::store_sym_names_in_linkage_form_p): New member
3445 function.
3446 * c-lang.c (c_language_data): Remove
3447 la_store_sym_names_in_linkage_form_p initializer.
3448 (c_language::store_sym_names_in_linkage_form_p): New member
3449 function.
3450 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3451 initializer.
3452 (asm_language_data): Likewise.
3453 (asm_language::store_sym_names_in_linkage_form_p): New member
3454 function.
3455 (minimal_language_data): Remove
3456 la_store_sym_names_in_linkage_form_p initializer.
3457 (minimal_language::store_sym_names_in_linkage_form_p): New member
3458 function.
3459 * d-lang.c (d_language_data): Remove
3460 la_store_sym_names_in_linkage_form_p initializer.
3461 * dwarf2/read.c (dwarf2_physname): Update call to
3462 store_sym_names_in_linkage_form_p.
3463 * f-lang.c (f_language_data): Remove
3464 la_store_sym_names_in_linkage_form_p initializer.
3465 * go-lang.c (go_language_data): Remove
3466 la_store_sym_names_in_linkage_form_p initializer.
3467 * language.c (unknown_language_data): Remove
3468 la_store_sym_names_in_linkage_form_p initializer.
3469 (unknown_language::store_sym_names_in_linkage_form_p): New member
3470 function.
3471 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3472 initializer.
3473 (auto_language::store_sym_names_in_linkage_form_p): New member
3474 function.
3475 * language.h (language_data): Remove
3476 la_store_sym_names_in_linkage_form_p member variable.
3477 (language_defn::store_sym_names_in_linkage_form_p): New member
3478 function.
3479 * m2-lang.c (m2_language_data): Remove
3480 la_store_sym_names_in_linkage_form_p initializer.
3481 * objc-lang.c (objc_language_data): Likewise.
3482 * opencl-lang.c (opencl_language_data): Likewise.
3483 * p-lang.c (pascal_language_data): Likewise.
3484 * rust-lang.c (rust_language_data): Likewise.
3485
22c12a6c
AB
34862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3487
3488 * ada-lang.c (ada_language_data): Remove string_lower_bound
3489 initializer.
3490 * c-lang.c (c_language_data): Likewise.
3491 (cplus_language_data): Likewise.
3492 (asm_language_data): Likewise.
3493 (minimal_language_data): Likewise.
3494 * d-lang.c (d_language_data): Likewise.
3495 * f-lang.c (f_language_data): Likewise.
3496 * go-lang.c (go_language_data): Likewise.
3497 * language.c (unknown_language_data): Likewise.
3498 (auto_language_data): Likewise.
3499 * language.h (language_data): Remove string_lower_bound field.
3500 (language_defn::string_lower_bound): New member function.
3501 * m2-lang.c (m2_language_data): Remove string_lower_bound
3502 initializer.
3503 (m2_language::string_lower_bound): New member function.
3504 * objc-lang.c (objc_language_data): Remove string_lower_bound
3505 initializer.
3506 * opencl-lang.c (opencl_language_data): Likewise.
3507 * p-lang.c (pascal_language_data): Likewise.
3508 * rust-lang.c (rust_language_data): Likewise.
3509 * valops.c (value_cstring): Update call to string_lower_bound.
3510 (value_string): Likewise.
3511 * value.c (allocate_repeated_value): Likewise.
3512
1c236ddd
AB
35132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3514
3515 * valops.c (value_repeat): Fix incorrect argument name in comment.
3516
67bd3fd5
AB
35172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3518
3519 * ada-lang.c (ada_language_data): Remove c_style_arrays
3520 initializer.
3521 (ada_language::c_style_arrays_p): New member fuction.
3522 * c-lang.c (c_language_data): Remove c_style_arrays
3523 initializer.
3524 (cplus_language_data): Likewise.
3525 (asm_language_data): Likewise.
3526 (minimal_language_data): Likewise.
3527 * d-lang.c (d_language_data): Likewise.
3528 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3529 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3530 (f_language::c_style_arrays_p): New member function.
3531 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3532 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3533 * language.c (unknown_language_data): Remove c_style_arrays
3534 initializer.
3535 (auto_language_data): Likewise.
3536 * language.h (language_data): Remove c_style_arrays field.
3537 (language_defn::c_style_arrays_p): New member function.
3538 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3539 (m2_language::c_style_arrays_p): New member function.
3540 * objc-lang.c (objc_language_data): Remove c_style_arrays
3541 initializer.
3542 * opencl-lang.c (opencl_language_data): Likewise.
3543 * p-lang.c (pascal_language_data): Likewise.
3544 * rust-lang.c (rust_language_data): Likewise.
3545 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3546 and update local variable to a bool.
3547 * valops.c (value_cast): Update call to c_style_arrays_p.
3548 (value_array): Likewise.
3549 * value.c (coerce_array): Likewise.
3550
85967615
AB
35512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3552
3553 * ada-lang.c (ada_language_data): Remove la_language initializer.
3554 * c-lang.c (c_language_data): Likewise.
3555 (cplus_language_data): Likewise.
3556 (asm_language_data): Likewise.
3557 (minimal_language_data): Likewise.
3558 * d-lang.c (d_language_data): Likewise.
3559 * f-lang.c (f_language_data): Likewise.
3560 * go-lang.c (go_language_data): Likewise.
3561 * language.c (unknown_language_data): Likewise.
3562 (auto_language_data): Likewise.
3563 * language.h (language_data): Remove la_language field.
3564 (language_defn::language_defn): Initialise la_language field.
3565 (language_defn::la_language): New member variable.
3566 * m2-lang.c (m2_language_data): Remove la_language field.
3567 * objc-lang.c (objc_language_data): Likewise.
3568 * opencl-lang.c (opencl_language_data): Likewise.
3569 * p-lang.c (pascal_language_data): Likewise.
3570 * rust-lang.c (rust_language_data): Likewise.
3571
e171d6f1
AB
35722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3573
3574 * ada-lang.c (ada_extensions): Delete, moved into
3575 ada_language::filename_extensions.
3576 (ada_language_data): Remove la_filename_extensions initializer.
3577 (ada_language::filename_extensions): New member function.
3578 * c-lang.c (c_extensions): Delete, moved into
3579 c_language::filename_extensions.
3580 (c_language_data): Remove la_filename_extensions initializer.
3581 (c_language::filename_extensions): New member function.
3582 (cplus_extensions): Delete, moved into
3583 cplus_language::filename_extensions.
3584 (cplus_language_data): Remove la_filename_extensions initializer.
3585 (cplus_language::filename_extensions): New member function.
3586 (asm_extensions): Delete, moved into
3587 asm_language::filename_extensions.
3588 (asm_language_data): Remove la_filename_extensions initializer.
3589 (asm_language::filename_extensions): New member function.
3590 (minimal_language_data): Remove la_filename_extensions
3591 initializer.
3592 * d-lang.c (d_extensions): Delete, moved into
3593 d_language::filename_extensions.
3594 (d_language_data): Remove la_filename_extensions initializer.
3595 (d_language::filename_extensions): New member function.
3596 * f-lang.c (f_extensions): Delete, moved into
3597 f_language::filename_extensions.
3598 (f_language_data): Remove la_filename_extensions initializer.
3599 (f_language::filename_extensions): New member function.
3600 * go-lang.c (go_language_data): Remove la_filename_extensions
3601 initializer.
3602 * language.c (add_set_language_command): Update now that
3603 filename_extensions returns a vector.
3604 (unknown_language_data): Remove la_filename_extensions
3605 initializer.
3606 (auto_language_data): Likewise.
3607 * language.h (language_data): Remove la_filename_extensions field.
3608 (language_defn::filename_extensions): New member function.
3609 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3610 initializer.
3611 * objc-lang.c (objc_extensions): Delete, moved into
3612 objc_language::filename_extensions.
3613 (objc_language_data): Remove la_filename_extensions initializer.
3614 (objc_language::filename_extensions): New member function.
3615 * opencl-lang.c (opencl_language_data): Remove
3616 la_filename_extensions initializer.
3617 * p-lang.c (pascal_extensions): Delete, moved into
3618 pascal_language::filename_extensions.
3619 (pascal_language_data): Remove la_filename_extensions initializer.
3620 (pascal_language::filename_extensions): New member function.
3621 * rust-lang.c (rust_extensions): Delete, moved into
3622 rust_language::filename_extensions.
3623 (rust_language_data): Remove la_filename_extensions initializer.
3624 (rust_language::filename_extensions): New member function.
3625 * symfile.c (add_filename_language): Add new assert.
3626
6f7664a9
AB
36272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3628
3629 * ada-lang.c (ada_language_data): Remove la_name and
3630 la_natural_name initializers.
3631 (ada_language::name): New member function.
3632 (ada_language::natural_name): New member function.
3633 * c-lang.c (c_language_data): Remove la_name and
3634 la_natural_name initializers.
3635 (c_language::name): New member function.
3636 (c_language::natural_name): New member function.
3637 (cplus_language_data): Remove la_name and
3638 la_natural_name initializers.
3639 (cplus_language::name): New member function.
3640 (cplus_language::natural_name): New member function.
3641 (asm_language_data): Remove la_name and
3642 la_natural_name initializers.
3643 (asm_language::name): New member function.
3644 (asm_language::natural_name): New member function.
3645 (minimal_language_data): Remove la_name and
3646 la_natural_name initializers.
3647 (minimal_language::name): New member function.
3648 (minimal_language::natural_name): New member function.
3649 * compile/compile.c (compile_to_object): Update call to
3650 lanugage_defn::name.
3651 * d-lang.c (d_language_data): Remove la_name and
3652 la_natural_name initializers.
3653 (d_language::name): New member function.
3654 (d_language::natural_name): New member function.
3655 * expprint.c (print_subexp_standard): Update call to
3656 language_defn::name.
3657 (dump_raw_expression): Likewise
3658 (dump_prefix_expression): Likewise.
3659 * f-lang.c (f_language_data): Remove la_name and
3660 la_natural_name initializers.
3661 (f_language::name): New member function.
3662 (f_language::natural_name): New member function.
3663 * go-lang.c (go_language_data): Remove la_name and
3664 la_natural_name initializers.
3665 (go_language::name): New member function.
3666 (go_language::natural_name): New member function.
3667 * language.c (show_language_command): Update call to
3668 language_defn::name.
3669 (set_language_command): Likewise.
3670 (language_enum): Likewise.
3671 (language_str): Likewise.
3672 (add_set_language_command): Likewise, use
3673 language_defn::natural_name in the doc string.
3674 (unknown_language_data): Remove la_name and
3675 la_natural_name initializers.
3676 (unknown_language::name): New member function.
3677 (unknown_language::natural_name): New member function.
3678 (auto_language_data): Remove la_name and
3679 la_natural_name initializers.
3680 (auto_language::name): New member function.
3681 (auto_language::natural_name): New member function.
3682 (language_lookup_primitive_type_as_symbol): Update call to
3683 language_defn::name.
3684 * language.h (language_data): Remove la_name and la_natural_name
3685 member variables.
3686 (language_defn::name): New member function.
3687 (language_defn::natural_name): New member function.
3688 * m2-lang.c (m2_language_data): Remove la_name and
3689 la_natural_name initializers.
3690 (m2_language::name): New member function.
3691 (m2_language::natural_name): New member function.
3692 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3693 language_defn::natural_name.
3694 * objc-lang.c (objc_language_data): Remove la_name and
3695 la_natural_name initializers.
3696 (objc_language::name): New member function.
3697 (objc_language::natural_name): New member function.
3698 * opencl-lang.c (opencl_language_data): Remove la_name and
3699 la_natural_name initializers.
3700 (opencl_language::name): New member function.
3701 (opencl_language::natural_name): New member function.
3702 * p-lang.c (pascal_language_data): Remove la_name and
3703 la_natural_name initializers.
3704 (pascal_language::name): New member function.
3705 (pascal_language::natural_name): New member function.
3706 * rust-lang.c (rust_language_data): Remove la_name and
3707 la_natural_name initializers.
3708 (rust_language::name): New member function.
3709 (rust_language::natural_name): New member function.
3710 * symtab.c (lookup_language_this): Update call to
3711 language_defn::name.
3712
5bae7c4e
AB
37132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3714
3715 * ada-lang.c (ada_language_data): Remove la_name_of_this
3716 initializer.
3717 * ax-gdb.c (gen_expr): Update call to name_of_this.
3718 * c-exp.y (classify_name): Likewise.
3719 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3720 (cplus_language_data): Likewise.
3721 (cplus_language::name_of_this): New member function.
3722 (asm_language_data): Remove la_name_of_this initializer.
3723 (minimal_language_data): Likewise.
3724 * d-lang.c (d_language_data): Likewise.
3725 (d_language::name_of_this): New member function.
3726 * expprint.c (print_subexp_standard): Update call to name_of_this.
3727 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3728 * go-lang.c (go_language_data): Likewise.
3729 * language.c (unknown_language_data): Likewise.
3730 (unknown_language::name_of_this): New member function.
3731 (auto_language_data): Remove la_name_of_this initializer.
3732 (auto_language::name_of_this): New member function.
3733 * language.h (language_data): Delete la_name_of_this member
3734 variable.
3735 (language_defn::name_of_this): New member function.
3736 * m2-lang.c (m2_language_data): Remove la_name_of_this
3737 initializer.
3738 * objc-lang.c (objc_language_data): Likewise.
3739 (objc_language::name_of_this): New member function.
3740 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3741 initializer.
3742 * p-lang.c (pascal_language_data): Likewise.
3743 (pascal_language::name_of_this): New member function.
3744 * rust-lang.c (rust_language_data): Remove la_name_of_this
3745 initializer.
3746 * symtab.c (lookup_language_this): Update call to name_of_this.
3747 (lookup_symbol_aux): Likewise.
3748 * valops.c (value_of_this): Likewise.
3749
22e3f3ed
AB
37502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3751
3752 * ada-lang.c (ada_language_data): Remove
3753 la_struct_too_deep_ellipsis initializer.
3754 (ada_language::struct_too_deep_ellipsis): New member function.
3755 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3756 initializer.
3757 (cplus_language_data): Likewise.
3758 (asm_language_data): Likewise.
3759 (minimal_language_data): Likewise.
3760 * cp-valprint.c (cp_print_value): Update call to
3761 struct_too_deep_ellipsis.
3762 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3763 initializer.
3764 * f-lang.c (f_language_data): Likewise.
3765 (f_language::struct_too_deep_ellipsis): New member function.
3766 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3767 initializer.
3768 * language.c (unknown_language_data): Likewise.
3769 (auto_language_data): Likewise.
3770 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3771 member variable.
3772 (language_defn::struct_too_deep_ellipsis): New member function.
3773 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3774 initializer.Q
3775 * objc-lang.c (objc_language_data): Likewise.
3776 * opencl-lang.c (opencl_language_data): Likewise.
3777 * p-lang.c (pascal_language_data): Likewise.
3778 * rust-lang.c (rust_language_data): Likewise.
3779 * valprint.c (val_print_check_max_depth): Update call to
3780 struct_too_deep_ellipsis.
3781
ed29e1c7
FW
37822020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3783
3784 * MAINTAINERS (Write After Approval): Add myself.
3785
12d8f940
TT
37862020-09-15 Tom Tromey <tom@tromey.com>
3787
3788 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3789 Remove.
3790
6b5a7bc7
TT
37912020-09-15 Tom Tromey <tom@tromey.com>
3792
3793 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3794 and TYPE_CODE_METHODPTR cases.
3795 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3796 (c_value_print_inner): Update.
3797 * valprint.c (generic_value_print_memberptr): New function, from
3798 c_value_print_memberptr.
3799 (generic_value_print): Use it. Call cplus_print_method_ptr.
3800
47f0e2ff
TT
38012020-09-15 Tom Tromey <tromey@adacore.com>
3802
3803 * python/python-internal.h (PyInt_FromLong): Remove define.
3804 * python/py-value.c (convert_value_from_python): Use
3805 gdb_py_object_from_longest.
3806 * python/py-type.c (typy_get_code): Use
3807 gdb_py_object_from_longest.
3808 * python/py-symtab.c (salpy_get_line): Use
3809 gdb_py_object_from_longest.
3810 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3811 gdb_py_object_from_longest.
3812 * python/py-record.c (recpy_gap_reason_code): Use
3813 gdb_py_object_from_longest.
3814 * python/py-record-btrace.c (recpy_bt_insn_size)
3815 (recpy_bt_func_level, btpy_list_count): Use
3816 gdb_py_object_from_longest.
3817 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3818 gdb_py_object_from_longest. Fix error handling.
3819 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3820 gdb_py_object_from_longest.
3821 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3822 gdb_py_object_from_longest.
3823 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3824 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3825 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3826
512116ce
TT
38272020-09-15 Tom Tromey <tromey@adacore.com>
3828
3829 * python/python.c (gdbpy_parameter_value): Use
3830 gdb_py_object_from_ulongest.
3831
4ab1029c
TT
38322020-09-15 Tom Tromey <tromey@adacore.com>
3833
3834 * python/py-infevents.c (create_register_changed_event_object):
3835 Use gdb_py_object_from_longest.
3836 * python/py-exitedevent.c (create_exited_event_object): Use
3837 gdb_py_object_from_longest.
3838
062534d4
TT
38392020-09-15 Tom Tromey <tromey@adacore.com>
3840
3841 * python/python.c (gdbpy_parameter_value): Use
3842 gdb_py_object_from_longest.
3843 * python/py-type.c (convert_field, typy_range): Use
3844 gdb_py_object_from_longest.
3845 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3846 gdb_py_object_from_longest.
3847 * python/py-lazy-string.c (stpy_get_length): Use
3848 gdb_py_object_from_longest.
3849 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3850 gdb_py_object_from_longest.
3851 * python/py-infevents.c (create_memory_changed_event_object): Use
3852 gdb_py_object_from_longest.
3853 * python/py-inferior.c (infpy_get_num): Use
3854 gdb_py_object_from_longest.
3855 (infpy_get_pid): Likewise.
3856
d1cab987
TT
38572020-09-15 Tom Tromey <tromey@adacore.com>
3858
3859 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3860 defines.
3861 * python/py-value.c (valpy_long): Use
3862 gdb_py_object_from_ulongest.
3863 * python/py-symtab.c (salpy_get_pc): Use
3864 gdb_py_object_from_ulongest.
3865 (salpy_get_last): Likewise.
3866 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3867 gdb_py_object_from_ulongest.
3868 * python/py-lazy-string.c (stpy_get_address): Use
3869 gdb_py_object_from_ulongest.
3870 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3871 * python/py-arch.c (archpy_disassemble): Use
3872 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3873 error handling.
3874
4bde49dc
TT
38752020-09-15 Tom Tromey <tromey@adacore.com>
3876
3877 * python/python-internal.h (gdb_py_long_from_longest): Remove
3878 defines.
3879 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3880 * python/py-type.c (convert_field, typy_get_sizeof): Use
3881 gdb_py_object_from_longest.
3882 * python/py-record-btrace.c (btpy_list_index): Use
3883 gdb_py_object_from_longest.
3884
37431074
TT
38852020-09-15 Tom Tromey <tromey@adacore.com>
3886
3887 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3888 * python/py-record.c (recpy_element_number): Use
3889 gdb_py_object_from_longest.
3890 (recpy_gap_number): Likewise.
3891
cbe25684
TT
38922020-09-15 Tom Tromey <tromey@adacore.com>
3893
3894 * top.c (ui::ui): Update.
3895 (highest_ui_num): Remove.
3896 * top.h (struct ui) <num>: Remove.
3897
db92ac45
TT
38982020-09-15 Tom Tromey <tromey@adacore.com>
3899
3900 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3901 * ui-style.c (ansi_regex_text): Now array.
3902 * rust-exp.y (number_regex_text): Now array.
3903 * linespec.c (linespec_quote_characters): Now array.
3904 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3905 Now arrays.
3906
d2b31b67
SM
39072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3908
3909 * debuginfod-support.c (debuginfod_client_deleter): New.
3910 (debuginfod_client_up): New.
3911 (debuginfod_init): Return debuginfod_client_up.
3912 (debuginfod_source_query): Adjust.
3913 (debuginfod_debuginfo_query): Adjust.
3914
3246bd8e
SM
39152020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3916
3917 * debuginfod-support.c (debuginfod_source_query): Use
3918 make_unique_xstrdup.
3919
10242f36
SM
39202020-09-14 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3923 with `type::instance_flags`.
3924
e1044e6a
MM
39252020-09-14 Michael Mullin <masmullin@gmail.com>
3926
3927 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3928 Remove baton parameter.
3929
04902b09
PA
39302020-09-14 Pedro Alves <pedro@palves.net>
3931
3932 * Makefile.in (SELFTESTS_SRCS): Add
3933 unittests/enum-flags-selftests.c.
3934 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3935 btrace_function_flags instead of enum btrace_function_flag.
3936 * compile/compile-c-types.c (convert_qualified): Use
3937 enum_flags::raw.
3938 * compile/compile-cplus-symbols.c (convert_one_symbol)
3939 (convert_symbol_bmsym):
3940 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3941 (compile_cplus_convert_struct_or_union_methods)
3942 (compile_cplus_instance::convert_qualified_base):
3943 * go-exp.y (parse_string_or_char): Add cast to int.
3944 * unittests/enum-flags-selftests.c: New file.
3945 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3946 type to btrace_thread_flags from btrace_thread_flag.
3947 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3948 local's type to btrace_thread_flags from btrace_thread_flag. Add
3949 cast in DEBUG call.
3950
69896a2c
PA
39512020-09-14 Pedro Alves <pedro@palves.net>
3952
3953 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3954 * gdbtypes.c (address_space_name_to_int): Rename to ...
3955 (address_space_name_to_type_instance_flags): ... this.
3956 (address_space_int_to_name): Rename to ...
3957 (address_space_type_instance_flags_to_name): ... this.
3958 * gdbtypes.h (address_space_name_to_int): Rename to ...
3959 (address_space_name_to_type_instance_flags): ... this.
3960 (address_space_int_to_name): Rename to ...
3961 (address_space_type_instance_flags_to_name): ... this.
3962 * type-stack.c (type_stack::insert): Adjust to rename.
3963 * type-stack.h (type_stack::insert): Likewise.
3964
314ad88d
PA
39652020-09-14 Pedro Alves <pedro@palves.net>
3966 Andrew Burgess <andrew.burgess@embecosm.com>
3967
3968 * avr-tdep.c (avr_address_class_type_flags): Return
3969 type_instance_flags.
3970 (avr_address_class_type_flags_to_name): Take a
3971 type_instance_flags.
3972 (avr_address_class_name_to_type_flags): Return bool and take a
3973 type_instance_flags.
3974 * d-lang.c (build_d_types): Use type::set_instance_flags.
3975 * ft32-tdep.c (ft32_address_class_type_flags): Return
3976 type_instance_flags.
3977 (ft32_address_class_type_flags_to_name): Take a
3978 type_instance_flags.
3979 (ft32_address_class_name_to_type_flags): Return bool and take a
3980 type_instance_flags.
3981 (ft32_gdbarch_init): Use type::set_instance_flags.
3982 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3983 * gdbarch.h, gdbarch.c: Regenerate.
3984 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3985 (address_class_name_to_type_flags): Use type_instance_flags and
3986 bool.
3987 * gdbtypes.c (address_space_name_to_int)
3988 (address_space_int_to_name, make_qualified_type): Use
3989 type_instance_flags.
3990 (make_qualified_type): Use type_instance_flags and
3991 type::set_instance_flags.
3992 (make_type_with_address_space, make_cv_type, make_vector_type)
3993 (check_typedef): Use type_instance_flags.
3994 (recursive_dump_type): Cast type_instance_flags to unsigned for
3995 printing.
3996 (copy_type_recursive): Use type::set_instance_flags.
3997 (gdbtypes_post_init): Use type::set_instance_flags.
3998 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3999 <m_instance_flags>: ... this.
4000 <instance_flags, set_instance_flags>: New methods.
4001 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4002 (SET_TYPE_INSTANCE_FLAGS): New.
4003 (address_space_name_to_int, address_space_int_to_name)
4004 (make_type_with_address_space): Pass flags using
4005 type_instance_flags instead of int.
4006 * stabsread.c (cleanup_undefined_types_noname): Use
4007 type::set_instance_flags.
4008 * s390-tdep.c (s390_address_class_type_flags): Return
4009 type_instance_flags.
4010 (s390_address_class_type_flags_to_name): Take a
4011 type_instance_flags.
4012 (s390_address_class_name_to_type_flags): Return bool and take a
4013 type_instance_flags.
4014 * type-stack.c (type_stack::follow_types): Use
4015 type_instance_flags.
4016 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4017
27087b7f
TT
40182020-09-14 Tom Tromey <tromey@adacore.com>
4019
4020 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4021 * x86-tdep.c (x86_is_thunk_register_name)
4022 (x86_in_indirect_branch_thunk): Update.
4023 * sparc64-tdep.c (sparc64_fpu_register_names)
4024 (sparc64_cp0_register_names, sparc64_register_names)
4025 (sparc64_pseudo_register_names): Now const.
4026 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4027 cp0_registers_num>: Now const.
4028 * sparc-tdep.c (sparc_core_register_names)
4029 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4030 (sparc32_pseudo_register_names): Now const.
4031 (validate_tdesc_registers): Update.
4032 * rust-lang.c (rust_extensions): Now const.
4033 * p-lang.c (p_extensions): Now const.
4034 * objc-lang.c (objc_extensions): Now const.
4035 * nto-tdep.c (nto_thread_state_str): Now const.
4036 * moxie-tdep.c (moxie_register_names): Now const.
4037 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4038 Now const.
4039 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4040 (mips_linux_reg_names): Now const.
4041 (mips_gdbarch_init): Update.
4042 * microblaze-tdep.c (microblaze_register_names): Now const.
4043 * m68k-tdep.c (m68k_register_names): Now const.
4044 * m32r-tdep.c (m32r_register_names): Now const.
4045 * ia64-tdep.c (ia64_register_names): Now const.
4046 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4047 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4048 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4049 ymm_avx512_register_names, pkeys_register_names>: Now const.
4050 * i386-tdep.c (i386_register_names, i386_zmm_names)
4051 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4052 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4053 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4054 * f-lang.c (f_extensions): Now const.
4055 * d-lang.c (d_extensions): Now const.
4056 * csky-tdep.c (csky_register_names): Now const.
4057 * charset.c (default_charset_names, charset_enum): Now const.
4058 (_initialize_charset): Update.
4059 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4060 const.
4061 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4062 (bsd_uthread_solib_loaded): Update.
4063 (bsd_uthread_state): Now const.
4064 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4065 (amd64_ymm_avx512_names, amd64_ymmh_names)
4066 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4067 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4068 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4069 (amd64_dword_names): Now const.
4070 * agent.c (can_use_agent_enum): Now const.
4071 * ada-tasks.c (task_states, long_task_states): Now const.
4072 * ada-lang.c (known_runtime_file_name_patterns)
4073 (known_auxiliary_function_name_patterns, attribute_names)
4074 (standard_exc, ada_extensions): Now const.
4075
89806626
SM
40762020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4077
4078 * bcache.h (struct bcache) <bcache>: Remove constructor.
4079 <m_hash_function, m_compare_function>: Remove.
4080 <~bcache>: Make virtual.
4081 <compare>: Remove static method, introduce virtual method.
4082 <default_hash>: Remove.
4083 <hash>: New virtual method.
4084 * bcache.c (bcache::expand_hash_table): Update.
4085 (bcache::insert): Update.
4086 (bcache::hash): New.
4087 (bcache::compare): Update comment and parameter names.
4088 * gdbtypes.c (types_deeply_equal): Update.
4089 * psymtab.h (struct psymbol_bcache): New struct.
4090 (class psymtab_storage) <psymtab_storage>: Make default.
4091 <psymbol_cache>: Change type to psymbol_bcache.
4092 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4093 (psymbol_hash): Change to...
4094 (psymbol_bcache::hash): ... this.
4095 (psymbol_compare): Change to...
4096 (psymbol_bcache::compare): ... this.
4097
677c92fe
SM
40982020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4099
4100 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4101 checking for initial lwp.
4102
3eba3a01
TT
41032020-09-14 Tom Tromey <tromey@adacore.com>
4104
4105 * m68k-tdep.c (m68k_extract_return_value): Use
4106 pointer_result_regnum.
4107 (m68k_store_return_value): Likewise.
4108 (m68k_reg_struct_return_p): Handle vectors and arrays.
4109 (m68k_return_value): Handle arrays.
4110 (m68k_svr4_return_value): Fix single-element aggregate handling.
4111 Handle long double. Adjust for embedded ABI.
4112 (m68k_svr4_init_abi): Set pointer_result_regnum.
4113 (m68k_embedded_init_abi): New function.
4114 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4115 (m68k_osabi_sniffer): New function.
4116 (_initialize_m68k_tdep): Register osabi sniffer.
4117 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4118 member.
4119
33f4dd48
SM
41202020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4121
4122 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4123 with gdb::unique_xmalloc_ptr<char>.
4124
8400a90d
SM
41252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4126
4127 * xml-support.h (xml_fetch_another): Change type to be a
4128 function_view.
4129 (xml_process_xincludes): Remove baton parameter.
4130 (xml_fetch_content_from_file): Change baton parameter to
4131 dirname.
4132 * xml-support.c (struct xinclude_parsing_data)
4133 <xinclude_parsing_data>: Remove baton parameter.
4134 <fetcher_baton>: Remove.
4135 (xinclude_start_include): Adjust.
4136 (xml_process_xincludes): Adjust.
4137 (xml_fetch_content_from_file): Replace baton parameter with
4138 dirname.
4139 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4140 (xml_init_syscalls_info): Use a lambda.
4141 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4142 (file_read_description_xml): Use a lambda.
4143 (fetch_available_features_from_target): Change baton parameter
4144 to target_ops.
4145 (target_read_description_xml): Use a lambda.
4146 (target_fetch_description_xml): Use a lambda.
4147 (string_read_description_xml): Update.
4148
04f5bab2
SM
41492020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4150
4151 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4152 uses with type::endianity_is_not_default.
4153
db558e34
SM
41542020-09-14 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * gdbtypes.h (struct type) <endianity_is_not_default,
4157 set_endianity_is_not_default>: New methods.
4158 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4159 type::endianity_is_not_default, change all write call sites to
4160 use type::set_endianity_is_not_default.
4161
22c4c60c
SM
41622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4165 uses with type::is_fixed_instance.
4166
9cdd0d12
SM
41672020-09-14 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * gdbtypes.h (struct type) <is_fixed_instance,
4170 set_is_fixed_instance>: New methods.
4171 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4172 write call sites to use type::set_is_fixed_instance.
4173
0becda7a
SM
41742020-09-14 Simon Marchi <simon.marchi@efficios.com>
4175
4176 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4177 uses with type::is_gnu_ifunc.
4178
03cc7249
SM
41792020-09-14 Simon Marchi <simon.marchi@efficios.com>
4180
4181 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4182 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4183 use type::set_is_gnu_ifunc.
4184
3f46044c
SM
41852020-09-14 Simon Marchi <simon.marchi@efficios.com>
4186
4187 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4188 uses with type::stub_is_supported.
4189
9baccff6
SM
41902020-09-14 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4193 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4194 use type::set_stub_is_supported.
4195
bd63c870
SM
41962020-09-14 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4199 uses with type::is_vector.
4200
2062087b
SM
42012020-09-14 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4204 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4205 use type::set_is_vector.
4206
a409645d
SM
42072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4210 uses with type::has_varargs.
4211
1d6286ed
SM
42122020-09-14 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4215 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4216 use type::set_has_varargs.
4217
7f9f399b
SM
42182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4221 uses with type::is_prototyped.
4222
27e69b7a
SM
42232020-09-14 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4226 New methods.
4227 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4228 call sites to use type::set_is_prototyped.
4229
d2183968
SM
42302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4231
4232 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4233 uses with type::target_is_stub.
4234
8f53807e
SM
42352020-09-14 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4238 New methods.
4239 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4240 sites to use type::set_target_is_stub.
4241
e46d3488
SM
42422020-09-14 Simon Marchi <simon.marchi@efficios.com>
4243
4244 * gdbtypes.h (TYPE_STUB): Remove, replace all
4245 uses with type::is_stub.
4246
b4b73759
SM
42472020-09-14 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4250 (TYPE_STUB): Use type::is_stub, change all write call sites to
4251 use type::set_is_stub.
4252
20ce4123
SM
42532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4256 type::has_no_signedness.
4257
15152a54
SM
42582020-09-14 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * gdbtypes.h (struct type) <has_no_signedness,
4261 set_has_no_signedness>: New methods.
4262 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4263 call sites to use type::set_has_no_signedness.
4264
c6d940a9
SM
42652020-09-14 Simon Marchi <simon.marchi@efficios.com>
4266
4267 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4268 type::is_unsigned.
4269
653223d3
SM
42702020-09-14 Simon Marchi <simon.marchi@efficios.com>
4271
4272 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4273 methods.
4274 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4275 sites to use type::set_is_unsigned.
4276
55ea94da 42772020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4278 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4279
e851246a
SM
4280 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4281 pointer and stack frame offset when unwinding.
55ea94da 4282
6791b117
PA
42832020-09-13 Pedro Alves <pedro@palves.net>
4284
4285 * NEWS: Document "-break-insert --qualified".
4286 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4287
77f2120b
PA
42882020-09-13 Pedro Alves <pedro@palves.net>
4289
4290 * linespec.c (classify_mtype, compare_msyms): Delete.
4291 (search_minsyms_for_name): Remove classification logic. Instead
4292 filter out trampoline symbols if we also found an external
4293 function of the same name.
4294
ed6a896c
JB
42952020-09-13 Joel Brobecker <brobecker@adacore.com>
4296
4297 * NEWS: Create a new section for the next release branch.
4298 Rename the section of the current branch, now that it has
4299 been cut.
4300
32aea73e
JB
43012020-09-13 Joel Brobecker <brobecker@adacore.com>
4302
4303 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4304 * version.in: Bump version to 11.0.50.DATE-git.
4305
8087c3fa
JB
43062020-09-12 Joel Brobecker <brobecker@adacore.com>
4307
4308 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4309
2a67f09d
FW
43102020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4311 Felix Willgerodt <Felix.Willgerodt@intel.com>
4312
4313 * gdbarch.sh: Added bfloat16 type.
4314 * gdbarch.c: Regenerated.
4315 * gdbarch.h: Regenerated.
4316 * gdbtypes.c (floatformats_bfloat16): New struct.
4317 (gdbtypes_post_init): Add builtin_bfloat16.
4318 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4319 (floatformats_bfloat16): New struct.
4320 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4321 (i386_ymm_type): Add field "v16_bfloat16"
4322 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4323 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4324 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4325 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4326 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4327 * features/i386/64bit-avx512.c: Regenerated.
4328 * features/i386/64bit-sse.xml: Add bfloat16 type.
4329 * features/i386/64bit-sse.c: Regenerated.
4330
1347d111
FW
43312020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4332
4333 * i386-tdep.c (i386_zmm_type): Fix field names.
4334 (i386_ymm_type): Fix field names.
4335
7a4e8e7d
TBA
43362020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4337
4338 * breakpoint.c: Fix typo in the help message of the
4339 "set breakpoint condition-evaluation" command.
4340
cf4ac4be
KR
43412020-09-10 Kamil Rytarowski <n54@gmx.com>
4342
4343 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4344 * (nbsd_nat_target::pid_to_exec_file)
4345 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4346 (nbsd_nat_target::post_startup_inferior)
4347 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4348 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4349 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4350 * (nbsd_thread_lister): Remove.
4351
f404573e
KR
43522020-09-10 Kamil Rytarowski <n54@gmx.com>
4353
4354 * fork-inferior.c (startup_inferior): Avoid double free.
4355
1ccb2c17
KR
43562020-09-10 Kamil Rytarowski <n54@gmx.com>
4357
4358 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4359 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4360
feedfcc7
KR
43612020-09-10 Kamil Rytarowski <n54@gmx.com>
4362
4363 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4364 * netbsd-nat.c: Include <sys/ptrace.h>.
4365 * (netbsd_nat::enable_proc_events): Add.
4366
c489f8c6
KR
43672020-09-10 Kamil Rytarowski <n54@gmx.com>
4368
4369 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4370 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4371 (netbsd_nat::for_each_thread): Add.
4372 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4373 "gdbsupport/common-debug.h".
4374 * (netbsd_nat::netbsd_thread_lister)
4375 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4376 (netbsd_nat::for_each_thread): Add.
4377
330662f6
KR
43782020-09-10 Kamil Rytarowski <n54@gmx.com>
4379
4380 * netbsd-nat.h: Include <unistd.h>.
4381 * (netbsd_nat::pid_to_exec_file): Add.
4382 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4383 * (netbsd_nat::pid_to_exec_file) Add.
4384
70b67307
KR
43852020-09-10 Kamil Rytarowski <n54@gmx.com>
4386
4387 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4388
99cf6da6
KR
43892020-09-10 Kamil Rytarowski <n54@gmx.com>
4390
4391 * netbsd-nat.h: New file.
4392 * netbsd-nat.c: Likewise.
4393
1b788fb6
TT
43942020-09-09 Tom Tromey <tromey@adacore.com>
4395
4396 * ada-lang.c (remove_extra_symbols): Do not increment when
4397 removing an element
4398
03b0a45f
TT
43992020-09-08 Tom Tromey <tromey@adacore.com>
4400
4401 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4402
3cae4447
TT
44032020-09-08 Tom Tromey <tromey@adacore.com>
4404
4405 PR win32/25302:
4406 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4407 (gdb_bfd_init_data): New function.
4408 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4409
7f08fd51
TBA
44102020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4411
4412 * infrun.c (fetch_inferior_event): Use
4413 `switch_to_target_no_thread` to switch the target.
4414
3e6ff933
TT
44152020-09-06 Tom Tromey <tom@tromey.com>
4416
4417 * symfile.h (dwarf2_free_objfile): Don't declare.
4418
e56798df
AKS
44192020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4420
4421 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4422 to match 16 byte real/complex type generated by Flang compiler.
4423
8f5c6526
TV
44242020-09-03 Tom de Vries <tdevries@suse.de>
4425
4426 PR breakpoint/26546
4427 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4428 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4429
c5065df0
SM
44302020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4431
4432 * maint.c (index_digits): New function.
4433 (struct maint_print_section_data): Remove.
4434 (print_bfd_section_info): Remove print_data parameter, add arg
4435 and index_digits.
4436 (print_objfile_section_info): Likewise.
4437 (print_bfd_section_info_maybe_relocated): Likewise (plus
4438 objfile).
4439 (maintenance_info_sections): Adjust calls.
4440
02c6f3f1
TT
44412020-09-02 Tom Tromey <tromey@adacore.com>
4442
4443 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4444 for null pointers.
4445 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4446
ef5e5b0b
SM
44472020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4448
4449 * bcache.h (struct bcache) <insert>: Change type of `added` to
4450 pointer to bool.
4451 * bcache.c (bcache::insert): Likewise.
4452 * gdbtypes.c (check_types_worklist): Adjust.
4453 * psymtab.c (add_psymbol_to_bcache): Adjust.
4454
973695d6
KB
44552020-08-31 Kevin Buettner <kevinb@redhat.com>
4456
4457 * corelow.c (unordered_set): Include.
4458 (class core_target): Add field 'm_core_unavailable_mappings'.
4459 (core_target::build_file_mappings): Print only one warning
4460 per inaccessible file. Add unavailable/broken mappings
4461 to m_core_unavailable_mappings.
4462 (core_target::xfer_partial): Call...
4463 (core_target::xfer_memory_via_mappings): New method.
4464
264fc0e2
SM
44652020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4466
4467 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4468 type to bool.
4469
2de01bdb
SM
44702020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4471
4472 * dwarf2/read.c (struct field_info): Fix indentation.
4473
f3bd50f1
SM
44742020-08-31 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4477 ordering in comment.
4478 * frame.c (frame_id_eq): Fix indentation.
4479
22b9b4b0
SL
44802020-08-31 Scott Linder <scott@scottlinder.com>
4481 Simon Marchi <simon.marchi@efficios.com>
4482
4483 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4484 inline frame ids in outer frame.
4485
84154d16
SM
44862020-08-31 Simon Marchi <simon.marchi@efficios.com>
4487
4488 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4489 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4490 (outer_frame_id): Use FID_STACK_OUTER instead of
4491 FID_STACK_INVALID.
4492 (frame_id_p): Don't check for outer_frame_id.
4493
8efaf6b3
SM
44942020-08-31 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4497 regnum/frame in value. Call allocate_value_lazy.
4498 * frame.c (frame_unwind_register_value): Use
4499 val_print_not_saved.
4500
fe1fe7ea
SM
45012020-08-31 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4504
f7c7700d
PA
45052020-08-29 Pedro Alves <pedro@palves.net>
4506
4507 * progspace.c (print_program_space): Use all_inferiors. Switch to
4508 the inferior before calling target_pid_to_str.
4509
e0814aae
TT
45102020-08-28 Tom Tromey <tom@tromey.com>
4511
4512 * xcoffread.c (xcoff_end_psymtab): Update comment.
4513 * dbxread.c (dbx_end_psymtab): Update comment.
4514
626d2320
TV
45152020-08-28 Tom de Vries <tdevries@suse.de>
4516
4517 PR breakpoint/26544
4518 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4519 event_location.
4520 (create_breakpoint): Same.
4521 (base_breakpoint_decode_location): Same.
4522 (bkpt_create_sals_from_location): Same.
4523 (bkpt_decode_location): Same.
4524 (bkpt_probe_create_sals_from_location): Same.
4525 (bkpt_probe_decode_location): Same.
4526 (tracepoint_create_sals_from_location): Same.
4527 (tracepoint_decode_location): Same.
4528 (tracepoint_probe_decode_location): Same.
4529 (strace_marker_create_sals_from_location): Same.
4530 (strace_marker_decode_location): Same.
4531 (create_sals_from_location_default): Same.
4532 (decode_location_default): Same.
4533 * breakpoint.h (struct breakpoint_ops): Same.
4534 (create_breakpoint): Same.
4535 * linespec.h (decode_line_full): Same.
4536 * linespec.c (decode_line_full): Same. Throw error if
4537 result.size () == 0.
4538
df631783
PA
45392020-08-27 Pedro Alves <pedro@palves.net>
4540
4541 PR gdb/26524
4542 * breakpoint.c (until_break_fsm) <location_breakpoint,
4543 caller_breakpoint>: Delete fields.
4544 <breakpoints>: New field.
4545 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4546 two individual breakpoints.
4547 (until_break_fsm::should_stop): Loop over breakpoints in the
4548 breakpoint vector.
4549 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4550 vector.
4551 (until_break_command): Handle location expanding into multiple
4552 sals.
4553
b2b38aa4
PA
45542020-08-27 Pedro Alves <pedro@palves.net>
4555
4556 PR gdb/26523
4557 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4558 bp_until breakpoints user-specified locations. Update intro
4559 comment.
4560
b886559f
SM
45612020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4562
4563 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4564 gdb_bfd_sections): New.
4565 * maint.c (print_bfd_section_info): Change param type to
4566 maint_print_section_data.
4567 (print_objfile_section_info): Likewise.
4568 (print_bfd_section_info_maybe_relocated): Likewise.
4569 (maintenance_info_sections): Use gdb_bfd_sections.
4570
4c6e63bf
SV
45712020-08-25 Shahab Vahedi <shahab@synopsys.com>
4572
4573 * MAINTAINERS: Add ARC target and maintainer.
4574
8d7f0635
AK
45752020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4576
4577 * configure.tgt: ARC support for GNU/Linux.
4578 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4579 * arc-linux-tdep.c: New file.
4580 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4581 * arc-tdep.c (arc_write_pc): Use it.
4582
fdd8731b
SV
45832020-08-25 Shahab Vahedi <shahab@synopsys.com>
4584
4585 * arc-tdep.c (arc_check_for_hardware_loop): New.
4586 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4587
22459524
SV
45882020-08-25 Shahab Vahedi <shahab@synopsys.com>
4589
4590 * arc-tdep.h: Include "gdbarch.h".
4591
995d3a19
SV
45922020-08-25 Shahab Vahedi <shahab@synopsys.com>
4593
4594 * arch/arc.h
4595 (arc_gdbarch_features): New class to stir the selection of target XML.
4596 (arc_create_target_description): Use FEATURES to choose XML target.
4597 (arc_lookup_target_description): Use arc_create_target_description
4598 to create _new_ target descriptions or return the already created
4599 ones if the FEATURES is the same.
4600 * arch/arc.c: Implementation of prototypes described above.
4601 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4602 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4603 * arc-tdep.c (*_feature_name): Make feature names consistent.
4604 (arc_register_feature): A new struct to hold information about
4605 registers of a particular target/feature.
4606 (arc_check_tdesc_feature): Check if XML provides registers in
4607 compliance with ARC_REGISTER_FEATURE structs.
4608 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4609 (determine_*_reg_feature_set): Which feature name to look for.
4610 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4611 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4612 to expected ISA enums to be used in arc_gdbarch_features structs.
4613 * features/Makefile (FEATURE_XMLFILES): Add new files.
4614 * gdb/features/arc/v1-aux.c: New file.
4615 * gdb/features/arc/v1-aux.xml: Likewise.
4616 * gdb/features/arc/v1-core.c: Likewise.
4617 * gdb/features/arc/v1-core.xml: Likewise.
4618 * gdb/features/arc/v2-aux.c: Likewise.
4619 * gdb/features/arc/v2-aux.xml: Likewise.
4620 * gdb/features/arc/v2-core.c: Likewise.
4621 * gdb/features/arc/v2-core.xml: Likewise.
4622 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4623
3945d2d7
GM
46242020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4625 Andrew Burgess <andrew.burgess@embecosm.com>
4626
4627 PR m2/26372
fc5d6901 4628 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4629 an assert. Remove single element array indexing pattern as the
4630 MULTI_SUBSCRIPT support will handle this case too.
4631
2677f2d3
SM
46322020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4633
4634 * value.h (valprint_check_validity): Move declaration from
4635 here...
4636 * valprint.h (valprint_check_validity): ... to here.
4637
c426fddb
SM
46382020-08-24 Simon Marchi <simon.marchi@efficios.com>
4639
4640 * debug.h: New file.
4641 * debug.c (debug_prefixed_vprintf): New function.
4642 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4643 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4644
1eb8556f
SM
46452020-08-24 Simon Marchi <simon.marchi@efficios.com>
4646
4647 * infrun.h (infrun_debug_printf_1): New function declaration.
4648 (infrun_debug_printf): New macro.
4649 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4650 throughout.
4651 (infrun_debug_printf): New function.
4652 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4653 (handle_jit_event): Likewise.
4654
b8fff44e
MW
46552020-08-21 Mark Wielaard <mark@klomp.org>
4656
4657 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4658
d19c3068
SM
46592020-08-22 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * frame.c (enum class frame_id_status): New.
4662 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4663 (fprintf_frame): Update.
4664 (compute_frame_id): Set frame id status to "computing" on entry.
4665 Set it back to "not_computed" on failure and to "computed" on
4666 success.
4667 (get_frame_id): Assert the frame id is not being computed.
4668 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4669 (create_new_frame): Likewise.
4670 (frame_cleanup_after_sniffer): Update assert.
4671
b70e516e
SM
46722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4673
4674 * regcache.c (pid_ptid_regcache_map): New type.
4675 (target_ptid_regcache_map): Remove.
4676 (target_pid_ptid_regcache_map): New type.
4677 (regcaches): Change type to target_pid_ptid_regcache_map.
4678 (get_thread_arch_aspace_regcache): Update.
4679 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4680 case.
4681 (regcaches_size): Update.
4682 (regcache_count): Update.
4683 (registers_changed_ptid_target_pid_test): New.
4684 (_initialize_regcache): Register new test.
4685
cdd9148a
SM
46862020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4687
4688 * regcache.c (regcache_count): New.
4689 (struct regcache_test_data): New.
4690 (regcache_test_data_up): New.
4691 (populate_regcaches_for_test): New.
4692 (regcaches_test): Remove.
4693 (get_thread_arch_aspace_regcache_test): New.
4694 (registers_changed_ptid_all_test): New.
4695 (registers_changed_ptid_target_test): New.
4696 (registers_changed_ptid_target_ptid_test): New.
4697 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4698 (_initialize_regcache): Register new tests.
4699
dd125343
SM
47002020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4701
4702 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4703 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4704 gdbarch and aspace parameter. Use current inferior's aspace.
4705 Validate regcache's arch value.
4706 (regcaches_test): Update.
4707
3ee93972
SM
47082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4709
4710 * regcache.c (regcaches_test): Call registers_changed.
4711
33bf4c5c
TBA
47122020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4713
4714 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4715
c2fd7fae
AKS
47162020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4717
4718 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4719 to find the end of prologue for flang compiled binaries.
4720 * arm-tdep.c (arm_skip_prologue): Likewise.
4721 * i386-tdep.c (i386_skip_prologue): Likewise.
4722 * producer.c (producer_is_llvm): New function.
4723 (producer_parsing_tests): Added new tests for clang/flang.
4724 * producer.h (producer_is_llvm): New declaration.
4725
9327494e
SM
47262020-08-18 Simon Marchi <simon.marchi@efficios.com>
4727
4728 * linux-nat.c (linux_nat_debug_printf): New function.
4729 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4730
d138725a
AM
47312020-08-18 Aaron Merey <amerey@redhat.com>
4732
4733 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4734 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4735 (CLIBS): Add DEBUGINFOD_LIBS.
4736
f9b11e6b
ST
47372020-08-17 Sergei Trofimovich <siarheit@google.com>
4738
4739 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4740 'gdbarch_num_regs'.
4741
3ae7ab99
TT
47422020-08-17 Tom Tromey <tromey@adacore.com>
4743
4744 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4745 ada_get_decoded_value returns NULL.
4746
b017825f
TT
47472020-08-17 Tom Tromey <tromey@adacore.com>
4748
4749 * python/py-inferior.c (infpy_search_memory): Use
4750 gdb_py_object_from_ulongest.
4751 * python/py-infevents.c (create_inferior_call_event_object)
4752 (create_memory_changed_event_object): Use
4753 gdb_py_object_from_ulongest.
4754 * python/py-linetable.c (ltpy_entry_get_pc): Use
4755 gdb_py_object_from_ulongest.
4756
7635cf79
SM
47572020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4758
4759 * loc.c (class symbol_needs_eval_context): Fix indentation.
4760
f54be24b
SM
47612020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4762
4763 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4764 bool.
4765
53d5a2a5
TV
47662020-08-17 Tom de Vries <tdevries@suse.de>
4767
4768 PR gdb/26393
4769 * gdbtypes.c (dump_dynamic_prop): New function.
4770 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4771
547ce8f0
TV
47722020-08-15 Tom de Vries <tdevries@suse.de>
4773
4774 PR backtrace/26390
4775 * stack.c (print_frame_args): Temporarily set the selected
4776 frame to FRAME while printing the frame's arguments.
4777
6ea815e7
PFC
47782020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4779
4780 PR breakpoints/26385
4781 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4782 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4783
6e562fa3
PFC
47842020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4785
4786 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4787 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4788 and >= to check return value instead of == -1 and != -1.
4789
d369b608
SM
47902020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4791
4792 * utils.h (class gdb_argv) <as_array_view>: New method.
4793 * utils.c (gdb_argv_as_array_view_test): New.
4794 (_initialize_utils): Register selftest.
4795 * maint.c (maintenance_selftest): Use the new method.
4796
b31488a3
KR
47972020-08-13 Kamil Rytarowski <n54@gmx.com>
4798
4799 * target.h (supports_dumpcore, dumpcore): New
4800 function declarations.
4801 * target.c (supports_dumpcore, dumpcore): New
4802 functions.
4803 * target-delegates.c: Rebuild.
4804 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4805 and target_dumpcore ().
4806
002a3166
AM
48072020-08-13 Aaron Merey <amerey@redhat.com>
4808
4809 * debuginfod-support.c: Replace global variables with user_data.
4810
ece5bc8a
SM
48112020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4812
4813 * maint.c (maintenance_selftest): Split args and pass array_view
4814 to run_tests.
4815
6d8a0a5e
LM
48162020-08-12 Luis Machado <luis.machado@linaro.org>
4817
4818 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4819 type's length.
4820 Use %s and pulongest to print the length.
4821
7cf663a9
PA
48222020-08-12 Pedro Alves <palves@redhat.com>
4823
4824 * NEWS: Move "Multi-target debugging support" item to the
4825 "Changes since GDB 9" section.
4826
27c7b875
PA
48272020-08-12 Pedro Alves <palves@redhat.com>
4828
4829 PR gdb/26336
4830 * progspace.c (program_space::remove_objfile): Invalidate the
4831 frame cache.
4832
1796a2a1
TV
48332020-08-11 Tom de Vries <tdevries@suse.de>
4834
4835 * MAINTAINERS: Mark ms1 as deleted.
4836
f8e3fe0d
LM
48372020-08-10 Luis Machado <luis.machado@linaro.org>
4838
4839 PR gdb/26310
4840
4841 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4842 act accordingly.
4843 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4844 movz/str/stur/stp skipping behavior.
4845
cc308722
LM
48462020-08-10 Luis Machado <luis.machado@linaro.org>
4847
4848 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4849 struct user_sve_header instead of struct sve_context.
4850
041d9819
SM
48512020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4852
4853 * read.h (dwarf2_fetch_die_loc_sect_off,
4854 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4855 `void *` parameter with function_view.
4856 * read.c (dwarf2_fetch_die_loc_sect_off,
4857 dwarf2_fetch_die_loc_cu_off): Likewise.
4858 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4859 (per_cu_dwarf_call): Adjust.
4860 (get_frame_address_in_block_wrapper): Remove.
4861 (indirect_synthetic_pointer): Adjust.
4862 (get_ax_pc): Remove.
4863 (dwarf2_compile_expr_to_ax): Adjust.
4864
38f8aa06
TV
48652020-08-08 Tom de Vries <tdevries@suse.de>
4866
4867 PR build/26344
4868 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4869 constructor.
4870 * regcache.c (get_thread_arch_aspace_regcache): Same.
4871
a52b3ae2
TT
48722020-08-07 Tom Tromey <tromey@adacore.com>
4873
4874 * ravenscar-thread.c
4875 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4876 New method.
4877 (ravenscar_thread_target::wait): Check
4878 runtime_initialized.
4879 (ravenscar_thread_target::prepare_to_store)
4880 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4881 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4882 (ravenscar_thread_target::stopped_by_watchpoint)
4883 (ravenscar_thread_target::stopped_data_address)
4884 (ravenscar_thread_target::core_of_thread): Use
4885 scoped_restore_current_thread and
4886 set_base_thread_from_ravenscar_task.
4887
0e29517d
TT
48882020-08-07 Tom Tromey <tromey@adacore.com>
4889
4890 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4891
592f9bd7
TT
48922020-08-07 Tom Tromey <tromey@adacore.com>
4893
4894 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4895 update_inferior_ptid before update_thread_list.
4896 (temporarily_change_regcache_ptid): New class.
4897 (ravenscar_thread_target::fetch_registers)
4898 (ravenscar_thread_target::store_registers)
4899 (ravenscar_thread_target::prepare_to_store): Use base thread when
4900 forwarding operation.
4901
39e2018a
TT
49022020-08-07 Tom Tromey <tromey@adacore.com>
4903
4904 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4905 "is_pid" case.
4906
2080266b
TT
49072020-08-07 Tom Tromey <tromey@adacore.com>
4908
4909 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4910 New methods.
4911 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4912 first.
4913 (ravenscar_thread_target::add_thread): Rename from
4914 ravenscar_add_thread.
4915 (ravenscar_thread_target::update_thread_list): Use a lambda.
4916 (ravenscar_thread_target::xfer_partial): New method.
4917
78c02f21
TT
49182020-08-07 Tom Tromey <tromey@adacore.com>
4919
4920 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4921 gdb::function_view.
4922 (iterate_over_live_ada_tasks): Change type of argument.
4923 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4924 of argument.
4925
d5d833af
TT
49262020-08-07 Tom Tromey <tromey@adacore.com>
4927
4928 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4929 Remove.
4930 (ravenscar_thread_target::extra_thread_info): Remove.
4931 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4932 defer to target beneath for non-Ravenscar threads.
4933
a8ac85bb
TT
49342020-08-07 Tom Tromey <tromey@adacore.com>
4935
4936 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4937 get_base_thread_from_ravenscar_task>: Now methods.
4938 <m_cpu_map>: New member.
4939 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4940 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4941 (ravenscar_thread_target::task_is_currently_active): Update.
4942 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4943 Now a method.
4944 (ravenscar_thread_target::add_active_thread): Put initial thread
4945 into the m_cpu_map.
4946
550ab58d
TT
49472020-08-07 Tom Tromey <tromey@adacore.com>
4948
4949 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4950 event_ptid.
4951
e9546579
TT
49522020-08-07 Tom Tromey <tromey@adacore.com>
4953
4954 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4955 runtime_initialized.
4956
3d4470e5
TT
49572020-08-07 Tom Tromey <tromey@adacore.com>
4958
4959 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4960 add_active_thread.
4961 (ravenscar_thread_target::add_active_thread): Now public.
4962 (ravenscar_inferior_created): Call add_active_thread after pushing
4963 the target.
4964
888bdb2b
SM
49652020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4966
4967 * regcache.c (ptid_regcache_map): New type.
4968 (target_ptid_regcache_map): New type.
4969 (regcaches): Change type to target_ptid_regcache_map.
4970 (get_thread_arch_aspace_regcache): Update to regcaches' new
4971 type.
4972 (regcache_thread_ptid_changed): Likewise.
4973 (registers_changed_ptid): Likewise.
4974 (regcaches_size): Likewise.
4975 (regcaches_test): Update.
4976 (regcache_thread_ptid_changed): Update.
4977 * regcache.h (regcache_up): New type.
4978 * gdbsupport/ptid.h (hash_ptid): New struct.
4979
b161a60d
SM
49802020-08-07 Simon Marchi <simon.marchi@efficios.com>
4981
4982 * observable.h (thread_ptid_changed): Add parameter
4983 `process_stratum_target *`.
4984 * infrun.c (infrun_thread_ptid_changed): Add parameter
4985 `process_stratum_target *` and use it.
4986 (selftests): New namespace.
4987 (infrun_thread_ptid_changed): New function.
4988 (_initialize_infrun): Register selftest.
4989 * regcache.c (regcache_thread_ptid_changed): Add parameter
4990 `process_stratum_target *` and use it.
4991 (regcache_thread_ptid_changed): New function.
4992 (_initialize_regcache): Register selftest.
4993 * thread.c (thread_change_ptid): Pass target to
4994 thread_ptid_changed observable.
4995
d2854d8d
CT
49962020-08-06 Caroline Tice <cmtice@google.com>
4997
fe4c3d43
SM
4998 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4999 (struct dwp_sections): Update field comments. Add loclists and
5000 rnglists fields.
5001 (struct virtual_v2_dwo_sections): Rename struct to
5002 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5003 size & offset fields for loclists and rnglists.
5004 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5005 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5006 skipping dummy type units.
5007 (create_dwp_hash_table): Update the large comment above the function to
5008 discuss Version 5 DWP files as well, with references. Update all the
5009 version checks in the function to check for version 5 as well. Add new
5010 section at the end to create dwp hash table for version 5.
5011 (create_dwp_v2_section): Rename function to
5012 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5013 Add V5 to error message text.
5014 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5015 into calls to create_dwp_v2_or_v5_section.
5016 (create_dwo_unit_in_dwp_v5): New function.
5017 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5018 check for version2; add else clause to handle version 5.
5019 (open_and_init_dwo_file): Add code to check dwarf version & only call
5020 create_debug_types_hash_table (with sections.types) if version is not 5;
5021 else call create_debug_type_hash_table, with sections.info.
5022 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5023 version 5.
5024 (dwarf2_locate_v5_dwp_sections): New function.
5025 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5026 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5027
159ed7d9
SM
50282020-08-06 Simon Marchi <simon.marchi@efficios.com>
5029
5030 * regcache.h (class regcache): Remove friend
5031 registers_changed_ptid.
5032 <regcache_thread_ptid_changed>: Remove.
5033 <regcaches>: Remove.
5034 * regcache.c (regcache::regcaches): Rename to...
5035 (regcaches): ... this. Make static.
5036 (get_thread_arch_aspace_regcache): Update.
5037 (regcache::regcache_thread_ptid_changed): Rename to...
5038 (regcache_thread_ptid_changed): ... this. Update.
5039 (class regcache_access): Remove.
5040 (regcaches_test): Update.
5041 (_initialize_regcache): Update.
5042 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5043 <forward_list>.
5044
174981ae
SM
50452020-08-06 Simon Marchi <simon.marchi@efficios.com>
5046
5047 * regcache.h (class regcache) <current_regcache>: Rename to...
5048 <regcaches>: ... this. Move doc here.
5049 * regcache.c (regcache::current_regcache) Rename to...
5050 (regcache::regcaches): ... this. Move doc to header.
5051 (get_thread_arch_aspace_regcache): Update.
5052 (regcache::regcache_thread_ptid_changed): Update.
5053 (registers_changed_ptid): Update.
5054 (class regcache_access) <current_regcache_size>: Rename to...
5055 <regcaches_size>: ... this.
5056 (current_regcache_test): Rename to...
5057 (regcaches_test): ... this.
5058 (_initialize_regcache): Update.
5059
ed908db6
VC
50602020-08-06 Victor Collod <vcollod@nvidia.com>
5061
5062 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5063
b5582ab7
KB
50642020-08-05 Kevin Buettner <kevinb@redhat.com>
5065
5066 * corelow.c (core_target::build_file_mappings): Don't output
5067 null pathname in warning.
5068
ea946b86
SM
50692020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5070
5071 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5072 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5073 gdb.dwarf2/dw2-single-line-discriminators.exp,
5074 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5075
57d02173
TT
50762020-08-05 Tom Tromey <tromey@adacore.com>
5077
5078 PR rust/26197:
5079 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5080 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5081 Fix off-by-one and type size errors in ordinary case.
5082
5555c86d
TV
50832020-08-05 Tom de Vries <tdevries@suse.de>
5084
5085 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5086 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5087
97916bfe
SM
50882020-08-04 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * frame.h (frame_id_p): Return bool.
5091 (frame_id_artificial_p): Return bool.
5092 (frame_id_eq): Return bool.
5093 (has_stack_frames): Return bool.
5094 (get_selected_frame): Fix typo in comment.
5095 (get_frame_pc_if_available): Return bool.
5096 (get_frame_address_in_block_if_available): Return bool.
5097 (get_frame_func_if_available): Return bool.
5098 (read_frame_register_unsigned): Return bool.
5099 (get_frame_register_bytes): Return bool.
5100 (safe_frame_unwind_memory): Return bool.
5101 (deprecated_frame_register_read): Return bool.
5102 (frame_unwinder_is): Return bool.
5103 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5104 bool.
5105 <this_id::p>: Likewise.
5106 <prev_p>: Likewise.
5107 (frame_stash_add): Return bool.
5108 (get_frame_id): Use bool.
5109 (frame_id_build_special) Use bool.
5110 (frame_id_build_unavailable_stack): Use bool.
5111 (frame_id_build): Use bool.
5112 (frame_id_p): Return bool, use true/false instead of 1/0.
5113 (frame_id_artificial_p): Likewise.
5114 (frame_id_eq): Likewise.
5115 (frame_id_inner): Likewise.
5116 (get_frame_func_if_available): Likewise.
5117 (read_frame_register_unsigned): Likewise.
5118 (deprecated_frame_register_read): Likewise.
5119 (get_frame_register_bytes): Likewise.
5120 (has_stack_frames): Likewise.
5121 (inside_main_func): Likewise.
5122 (inside_entry_func): Likewise.
5123 (get_frame_pc_if_available): Likewise.
5124 (get_frame_address_in_block_if_available): Likewise.
5125 (frame_unwinder_is): Likewise.
5126 (safe_frame_unwind_memory): Likewise.
5127 (frame_unwind_arch): Likewise.
5128
fedfee88
SM
51292020-08-04 Simon Marchi <simon.marchi@efficios.com>
5130
5131 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5132 type to cached_copy_status.
5133 (fprintf_frame): Adjust.
5134 (get_frame_func_if_available): Adjust.
5135 (frame_cleanup_after_sniffer): Adjust.
5136
6cfa9b59
MW
51372020-08-04 Mark Wielaard <mark@klomp.org>
5138
5139 * MAINTAINERS (Write After Approval): Update email address.
5140
66d6346b
SM
51412020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5142
5143 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5144 dynamic_prop::const_val.
5145
8a6d5e35
SM
51462020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5147
5148 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5149 dynamic_prop::kind.
5150
51d6067d
SM
51512020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5152
5153 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5154
b26e2ae7
JM
51552020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5156
5157 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5158
39791af2
JM
51592020-08-04 Weimin Pan <weimin.pan@oracle.com>
5160 Jose E. Marchesi <jose.marchesi@oracle.com>
5161
5162 * configure.tgt: Add entry for bpf-*-*.
5163 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5164 (ALLDEPFILES): Add bpf-tdep.c.
5165 * bpf-tdep.c: New file.
5166 * MAINTAINERS: Add bpf target and maintainer.
5167 * NEWS: Mention the support for the new target.
5168
521894aa
TV
51692020-08-04 Tom de Vries <tdevries@suse.de>
5170
5171 PR symtab/23270
5172 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5173 Error.
5174
5d6356e9
JB
51752020-08-03 John Baldwin <jhb@FreeBSD.org>
5176
5177 * syscalls/freebsd.xml: Regenerate.
5178
0cf82b81
JB
51792020-08-03 John Baldwin <jhb@FreeBSD.org>
5180
5181 * syscalls/update-freebsd.sh: Fix usage and year range.
5182
8f34b746
TV
51832020-08-03 Tom de Vries <tdevries@suse.de>
5184
5185 PR symtab/26333
5186 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5187 DW_LNE_lo_user/DW_LNE_hi_user range.
5188
5e500d33
SM
51892020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5190
5191 PR ada/26318
5192 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5193 kind.
5194
78319c15
TBA
51952020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5196
5197 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5198
4c55e970
TBA
51992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5200
5201 * breakpoint.c (set_breakpoint_condition): Update the condition
5202 expressions after checking that the input condition string parses
5203 successfully and does not contain junk at the end.
5204
1e620590
TBA
52052020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5206
5207 * breakpoint.c (set_breakpoint_condition): Update the
5208 condition string after parsing the new condition successfully.
5209
c8693053
RO
52102020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5211
5212 * proc-api.c (_STRUCTURED_PROC): Don't define.
5213 * proc-events.c: Likewise.
5214 * proc-flags.c: Likewise.
5215 * proc-why.c: Likewise.
5216 * procfs.c: Likewise.
5217
5218 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5219 * configure, config.in: Regenerate.
5220
5a99adb8
TV
52212020-07-30 Tom de Vries <tdevries@suse.de>
5222
5223 PR build/26320
5224 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5225 m_red/m_green/m_blue in a union.
5226
8ba83e91
TV
52272020-07-29 Tom de Vries <tdevries@suse.de>
5228
5229 PR tdep/26280
5230 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5231
f75a0693
AB
52322020-07-28 Tom Tromey <tromey@adacore.com>
5233
5234 PR symtab/26270:
5235 * symtab.h (find_pc_partial_function_sym): Declare.
5236 * cli/cli-cmds.c (disassemble_command): Use
5237 find_pc_partial_function_sym. Check asm_demangle.
5238 * blockframe.c (cache_pc_function_sym): New global.
5239 (cache_pc_function_name): Remove.
5240 (clear_pc_function_cache): Update.
5241 (find_pc_partial_function_sym): New function, from
5242 find_pc_partial_function.
5243 (find_pc_partial_function): Rewrite using
5244 find_pc_partial_function_sym.
5245
16f3242c
TT
52462020-07-28 Tom Tromey <tromey@adacore.com>
5247
5248 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5249 help. Add usage.
5250
4888741a
TT
52512020-07-28 Tom Tromey <tromey@adacore.com>
5252
5253 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5254 <DW_OP_GNU_variable_value>: Cast to address type.
5255
4d46f402
KR
52562020-07-28 Kamil Rytarowski <n54@gmx.com>
5257
5258 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5259 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5260 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5261 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5262 (nbsd_get_siginfo_type): New.
5263 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5264 (_initialize_nbsd_tdep): New.
5265
d70f978b
L
52662020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5267
5268 PR binutils/26301
5269 * configure: Regenerated.
5270
377170fa
L
52712020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5272
5273 PR binutils/26301
5274 * configure: Regenerated.
5275
43d5901d
AB
52762020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5277
5278 * python/py-frame.c: Remove 'user-regs.h' include.
5279 (frapy_read_register): Rewrite to make use of
5280 gdbpy_parse_register_id.
5281 * python/py-registers.c (gdbpy_parse_register_id): New function,
5282 moved here from python/py-unwind.c. Updated the return type, and
5283 also accepts register descriptor objects.
5284 * python/py-unwind.c: Remove 'user-regs.h' include.
5285 (pyuw_parse_register_id): Moved to python/py-registers.c.
5286 (unwind_infopy_add_saved_register): Update to use
5287 gdbpy_parse_register_id.
5288 (pending_framepy_read_register): Likewise.
5289 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5290
14fa8fb3
AB
52912020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5292
5293 * python/py-registers.c: Add 'user-regs.h' include.
5294 (register_descriptor_iter_find): New function.
5295 (register_descriptor_iterator_object_methods): New static global
5296 methods array.
5297 (register_descriptor_iterator_object_type): Add pointer to methods
5298 array.
5299
ddce1758
JB
53002020-07-27 John Baldwin <jhb@FreeBSD.org>
5301
5302 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5303 for all architectures on FreeBSD 11.3 and later.
5304
a4089f52
TT
53052020-07-27 Tom Tromey <tromey@adacore.com>
5306
5307 * gcore.h (load_corefile): Don't declare.
5308
95420d30
TV
53092020-07-27 Tom de Vries <tdevries@suse.de>
5310
5311 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5312 * config.in: Regenerate.
5313 * configure: Regenerate.
5314
05a6b8c2
EZ
53152020-07-26 Eli Zaretskii <eliz@gnu.org>
5316
5317 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5318 ws2tcpip.h. When checking whether socklen_t type is defined, use
5319 ws2tcpip.h if it is available and sys/socket.h isn't.
5320 * configure: Regenerate.
5321 * config.in: Regenerate.
5322
e79eb02f
AB
53232020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5324
5325 PR fortran/23051
5326 PR fortran/26139
5327 * valops.c (value_ind): Pass address to
5328 readjust_indirect_value_type.
5329 * value.c (readjust_indirect_value_type): Make parameter
5330 non-const, and add extra address parameter. Resolve original type
5331 before using it.
5332 * value.h (readjust_indirect_value_type): Update function
5333 signature and comment.
5334
876518dd
TV
53352020-07-25 Tom de Vries <tdevries@suse.de>
5336
5337 PR symtab/26243
5338 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5339 entries.
5340
f6720b1c
AM
53412020-07-24 Aaron Merey <amerey@redhat.com>
5342
5343 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5344 * configure: Rebuild.
5345
513487e1
KB
53462020-07-23 Kevin Buettner <kevinb@redhat.com>
5347
5348 PR corefiles/26294
5349 * corelow.c (_initialize_corelow): Add period to help text
5350 for "maintenance print core-file-backed-mappings".
5351
e7bc9db8
PA
53522020-07-23 Pedro Alves <pedro@palves.net>
5353
5354 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5355 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5356 meanwhile.
5357 * frame.c (frame_cache_generation, get_frame_cache_generation):
5358 New.
5359 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5360 (get_prev_frame_if_no_cycle): On exception, don't touch
5361 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5362 * frame.h (get_frame_cache_generation): Declare.
5363
90fcc466
TV
53642020-07-23 Tom de Vries <tdevries@suse.de>
5365
5366 PR tui/26282
5367 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5368 New default constructor.
5369
78344df7
AB
53702020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5371
5372 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5373 exclude non-statement entries.
5374
b089853a
KB
53752020-07-22 Kevin Buettner <kevinb@redhat.com>
5376
5377 * NEWS (New commands): Mention new command
5378 "maintenance print core-file-backed-mappings".
5379
09c2f5d4
KB
53802020-07-22 Kevin Buettner <kevinb@redhat.com>
5381
5382 * corelow.c (gdbcmd.h): Include.
5383 (core_target::info_proc_mappings): New method.
5384 (get_current_core_target): New function.
5385 (maintenance_print_core_file_backed_mappings): New function.
5386 (_initialize_corelow): Add core-file-backed-mappings to
5387 "maint print" commands.
5388
9c5ec5c2 53892020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5390
9c5ec5c2
KB
5391 * linux-tdep.c (dump_note_entry_p): New function.
5392 (linux_dump_mapping_p_ftype): New typedef.
5393 (linux_find_memory_regions_full): Add new parameter,
5394 should_dump_mapping_p.
5395 (linux_find_memory_regions): Adjust call to
5396 linux_find_memory_regions_full.
5397 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5398 call to linux_find_memory_regions_full.
5399
db082f59
KB
54002020-07-22 Kevin Buettner <kevinb@redhat.com>
5401
5402 * corelow.c (solist.h, unordered_map): Include.
5403 (class core_target): Add field m_core_file_mappings and
5404 method build_file_mappings.
5405 (core_target::core_target): Call build_file_mappings.
5406 (core_target::~core_target): Free memory associated with
5407 m_core_file_mappings.
5408 (core_target::build_file_mappings): New method.
5409 (core_target::xfer_partial): Use m_core_file_mappings
5410 for memory transfers.
5411 * linux-tdep.c (linux_read_core_file_mappings): New
5412 function.
5413 (linux_core_info_proc_mappings): Rewrite to use
5414 linux_read_core_file_mappings.
5415 (linux_init_abi): Register linux_read_core_file_mappings.
5416
7e183d27
KB
54172020-07-22 Kevin Buettner <kevinb@redhat.com>
5418
5419 * arch-utils.c (default_read_core_file_mappings): New function.
5420 * arch-utils.c (default_read_core_file_mappings): Declare.
5421 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5422 * gdbarch.h, gdbarch.c: Regenerate.
5423
2735d421
KB
54242020-07-22 Kevin Buettner <kevinb@redhat.com>
5425
5426 PR corefiles/25631
5427 * corelow.c (core_target:xfer_partial): Revise
5428 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5429 case after first checking the stratum beneath the core
5430 target.
5431 (has_all_memory): Return true.
5432 * target.c (raw_memory_xfer_partial): Revise comment
5433 regarding use of has_all_memory.
5434
e56cb451
KB
54352020-07-22 Kevin Buettner <kevinb@redhat.com>
5436
5437 * exec.h (section_table_xfer_memory): Revise declaration,
5438 replacing section name parameter with an optional callback
5439 predicate.
5440 * exec.c (section_table_xfer_memory): Likewise.
5441 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5442 of section_table_xfer_memory.
5443
32fa152e
TT
54442020-07-22 Tom Tromey <tromey@adacore.com>
5445
5446 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5447 lookup_symbol_search_name.
5448
a67a1c41
AB
54492020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5450
5451 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5452 redundant local variable.
5453 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5454 reference, not pointer, update code accordingly.
5455
a7b4ff4f
SM
54562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5457 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5458
5459 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5460 * jit.c (jit_breakpoint_re_set_internal): Use the
5461 `skip_jit_symbol_lookup` field.
5462
2340e834
SM
54632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5464 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5465
5466 * jit.c (jit_read_descriptor): Define the descriptor address once,
5467 use twice.
5468 (jit_breakpoint_deleted): Move the declaration of the loop variable
5469 `iter` into the loop header.
5470 (jit_breakpoint_re_set_internal): Move the declaration of the local
5471 variable `objf_data` to the first point of definition.
5472 (jit_event_handler): Move the declaration of local variables
5473 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5474 Rename `objf` to `jited`.
5475
c1072906
SM
54762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5477
5478 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5479 Remove.
5480 * jit.c (get_jiter_objfile_data): Update.
5481
c8474dc3
TBA
54822020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5483 Simon Marchi <simon.marchi@polymtl.ca>
5484
5485 * jit.c (struct jit_program_space_data): Remove.
5486 (jit_program_space_key): Remove.
5487 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5488 stuff.
5489 (get_jit_program_space_data): Remove.
5490 (jit_breakpoint_deleted): Iterate on all of the program space's
5491 objfiles.
5492 (jit_inferior_init): Likewise.
5493 (jit_breakpoint_re_set_internal): Likewise. Also change return
5494 type to void.
5495 (jit_breakpoint_re_set): Pass current_program_space to
5496 jit_breakpoint_re_set_internal.
5497
77208eb7
SM
54982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5499
5500 * jit.h (struct jiter_objfile_data) <cached_code_address,
5501 jit_breakpoint>: Move to here from ...
5502 * jit.c (jit_program_space_data): ... here.
5503 (jiter_objfile_data::~jiter_objfile_data): Update.
5504 (jit_breakpoint_deleted): Update.
5505 (jit_breakpoint_re_set_internal): Update.
5506
8c1c720f
SM
55072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5508
5509 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5510 checks.
5511 (jit_read_descriptor): Remove NULL check.
5512 (jit_event_handler): Add an assertion.
5513
0e74a041
SM
55142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5515
5516 * jit.h (struct jit_objfile_data): Split into...
5517 (struct jiter_objfile_data): ... this ...
5518 (struct jited_objfile_data): ... and this.
5519 * objfiles.h (struct objfile) <jit_data>: Remove.
5520 <jiter_data, jited_data>: New fields.
5521 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5522 (jiter_objfile_data::~jiter_objfile_data): ... this.
5523 (get_jit_objfile_data): Rename to ...
5524 (get_jiter_objfile_data): ... this.
5525 (add_objfile_entry): Update.
5526 (jit_read_descriptor): Use get_jiter_objfile_data.
5527 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5528 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5529 (jit_inferior_exit_hook): Use objfile's jited_data field.
5530
238b5c9f
SM
55312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5532
5533 * jit.h: Forward-declare `struct minimal_symbol`.
5534 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5535 constructor, destructor, and an objfile* field.
5536 * jit.c (jit_objfile_data): Remove.
5537 (struct jit_objfile_data): Migrate from here to jit.h.
5538 (jit_objfile_data::~jit_objfile_data): New destructor
5539 implementation with code moved from free_objfile_data.
5540 (free_objfile_data): Delete.
5541 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5542 (jit_find_objf_with_entry_addr): Ditto.
5543 (jit_inferior_exit_hook): Ditto.
5544 (_initialize_jit): Remove the call to
5545 register_objfile_data_with_cleanup.
5546 * objfiles.h (struct objfile) <jit_data>: New field.
5547
fe053b9e
TBA
55482020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5549
5550 * jit.h: Forward-declare `struct objfile`.
5551 (jit_event_handler): Add a second parameter, the JITer objfile.
5552 * jit.c (jit_read_descriptor): Change the signature to take the
5553 JITer objfile as an argument instead of the jit_program_space_data.
5554 (jit_inferior_init): Update the call to jit_read_descriptor.
5555 (jit_event_handler): Use the new JITer objfile argument when calling
5556 jit_read_descriptor.
5557 * breakpoint.c (handle_jit_event): Update the call to
5558 jit_event_handler to pass the JITer objfile.
5559
4cec0c66
JB
55602020-07-21 John Baldwin <jhb@FreeBSD.org>
5561
5562 * gdbarch.c: Regenerate.
5563 * gdbarch.h: Regenerate.
5564 * gdbarch.sh (handle_segmentation_fault): Remove method.
5565 * infrun.c (handle_segmentation_fault): Remove.
5566 (print_signal_received_reason): Remove call to
5567 handle_segmentation_fault.
5568
0e42f66a
JB
55692020-07-21 John Baldwin <jhb@FreeBSD.org>
5570
5571 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5572 Rename to sparc64_linux_report_signal_info and add siggnal
5573 argument.
5574 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5575 instead of sparc64_linux_handle_segmentation_fault.
5576
77bdfeb2
JB
55772020-07-21 John Baldwin <jhb@FreeBSD.org>
5578
5579 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5580 i386_linux_report_signal_info instead of
5581 i386_linux_handle_segmentation_fault.
5582 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5583 to i386_linux_report_signal_info and add siggnal argument.
5584 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5585 of i386_linux_handle_segmentation_fault.
5586 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5587 to i386_linux_report_signal_info and add siggnal argument.
5588
ad97bfc5
JB
55892020-07-21 John Baldwin <jhb@FreeBSD.org>
5590
5591 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5592 hook if present.
5593
272bb05c
JB
55942020-07-21 John Baldwin <jhb@FreeBSD.org>
5595
5596 * gdbarch.c: Regenerate.
5597 * gdbarch.h: Regenerate.
5598 * gdbarch.sh (report_signal_info): New method.
5599 * infrun.c (print_signal_received_reason): Invoke gdbarch
5600 report_signal_info hook if present.
5601
baf8791e
AB
56022020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5603
5604 * python/py-registers.c : Add 'unordered_map' include.
5605 (gdbpy_new_reggroup): Renamed to...
5606 (gdbpy_get_reggroup): ...this. Update to only create register
5607 group descriptors when needed.
5608 (gdbpy_reggroup_iter_next): Update.
5609
f7306dac
AB
56102020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5611
5612 * python/py-registers.c (gdbpy_register_object_data): New static
5613 global.
5614 (gdbpy_register_object_data_init): New function.
5615 (gdbpy_new_register_descriptor): Renamed to...
5616 (gdbpy_get_register_descriptor): ...this, and update to reuse
5617 existing register descriptors where possible.
5618 (gdbpy_register_descriptor_iter_next): Update.
5619 (gdbpy_initialize_registers): Register new gdbarch data.
5620
05c309a8
SM
56212020-07-21 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * linux-nat.c (stopped_pids): Make static.
5624
d1fd641e
SM
56252020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5626
5627 PR ada/26235
5628 * gdbtypes.c (ada_discrete_type_low_bound,
5629 ada_discrete_type_high_bound): Handle undefined bounds.
5630
1de14d77
KR
56312020-07-21 Kamil Rytarowski <n54@gmx.com>
5632
5633 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5634 declaration.
5635 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5636 function.
5637
ed810cc7
JB
56382020-07-20 John Baldwin <jhb@FreeBSD.org>
5639
5640 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5641 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5642 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5643 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5644 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5645 method.
5646
ae5369e7
LC
56472020-07-20 Ludovic Courtès <ludo@gnu.org>
5648
5649 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5650 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5651 which are deprecated in Guile 3.0.
5652 * configure.ac (try_guile_versions): Add "guile-3.0".
5653 * configure (try_guile_versions): Regenerate.
5654 * NEWS: Update entry.
5655
68cf161c
LC
56562020-07-20 Ludovic Courtès <ludo@gnu.org>
5657 Doug Evans <dje@google.com>
5658
5659 PR gdb/21104
5660 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5661 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5662 USING_GUILE_BEFORE_2_2.
5663 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5664 Change type to 'scm_t_port_type *'.
5665 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5666 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5667 parameter and honor it. Update callers.
5668 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5669 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5670 functions.
5671 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5672 USING_GUILE_BEFORE_2_2.
5673 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5674 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5675 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5676 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5677 and 'SCM_PORT_TYPE'.
5678 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5679 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5680 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5681 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5682 [!USING_GUILE_BEFORE_2_2]: New functions.
5683 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5684 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5685 'gdbscm_memory_port_read'.
5686 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5687 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5688 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5689 function.
5690 (ioscm_init_memory_port): Remove.
5691 (ioscm_init_memory_port_stream): New function
5692 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5693 function.
5694 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5695 Return scm_from_uint (0).
5696 (gdbscm_set_memory_port_read_buffer_size_x)
5697 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5698 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5699 Return scm_from_uint (0).
5700 (gdbscm_set_memory_port_write_buffer_size_x)
5701 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5702 * configure.ac (try_guile_versions): Add "guile-2.2".
5703 * configure: Regenerate.
5704 * NEWS: Add entry.
5705
aee91db3
TT
57062020-07-18 Tom Tromey <tom@tromey.com>
5707
5708 * linux-nat.c (linux_multi_process): Remove.
5709 (linux_nat_target::supports_multi_process): Return true.
5710
0e267416
AB
57112020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5712
5713 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5714 (riscv_lookup_target_description): Return pointer out of
5715 unique_ptr.
5716 * target-descriptions.c (allocate_target_description): Add
5717 comment.
5718 (target_desc_deleter::operator()): Likewise.
5719 * target-descriptions.h (struct target_desc_deleter): Moved to
5720 gdbsupport/tdesc.h.
5721 (target_desc_up): Likewise.
5722
f80c8ec4
TT
57232020-07-17 Tom Tromey <tromey@adacore.com>
5724
5725 * linux-nat.c (linux_nat_target::supports_non_stop)
5726 (linux_nat_target::always_non_stop_p): Use "true".
5727 (linux_nat_target::supports_disable_randomization): Use "true" and
5728 "false".
5729
d0ce17d8
CT
57302020-07-16 Caroline Tice <cmtice@google.com>
5731
5732 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5733 (RNGLIST_HEADER_SIZE64): New constant definition.
5734 (struct dwop_section_names): Add rnglists_dwo.
5735 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5736 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5737 (struct dwo_sections): Add rnglists field.
5738 (read_attribut_reprocess): Add tag parameter.
5739 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5740 (cu_debug_rnglists_section): New function (decl & definition).
5741 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5742 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5743 die whose range is being checked; get rnglist section from
5744 cu_debug_rnglists_section, to get from either objfile or dwo file as
5745 appropriate. Add cases for DW_RLE_base_addressx,
5746 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5747 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5748 test inside if-condition and updating complaint message.
5749 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5750 dwarf2_rnglists_process.
5751 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5752 dwarf2_ranges_process.
5753 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5754 need_ranges_base and update comment appropriately. Also pass die tag
5755 to dwarf2_ranges_read.
5756 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5757 need_ranges_base and update comment appropriately. Also pass die tag
5758 to dwarf2_ranges_process.
5759 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5760 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5761 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5762 need_ranges_base and update comment appropriately. Also pass die tag
5763 to read_attribute_reprocess and dwarf2_ranges_read.
5764 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5765 and update function comment appropriately.
5766 (read_loclist_index): Call read_loclists_rnglists_header instead of
5767 read_loclist_header.
5768 (read_rnglist_index): New function.
5769 (read_attribute_reprocess): Add tag parameter. Add code for
5770 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5771 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5772
3dcc261c
AB
57732020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5774
5775 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5776 being resolved.
5777
ccb9eba6
AB
57782020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5779
5780 * arch-utils.c (show_architecture): Update formatting of messages.
5781
cf88be68
SM
57822020-07-12 Simon Marchi <simon.marchi@efficios.com>
5783
5784 * gdbtypes.h (struct type) <bounds>: Handle array and string
5785 types.
5786 * ada-lang.c (assign_aggregate): Use type::bounds on
5787 array/string type.
5788 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5789 * c-varobj.c (c_number_of_children): Likewise.
5790 (c_describe_child): Likewise.
5791 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5792 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5793 (f_type_print_base): Likewise.
5794 * f-valprint.c (f77_array_offset_tbl): Likewise.
5795 (f77_get_upperbound): Likewise.
5796 (f77_print_array_1): Likewise.
5797 * guile/scm-type.c (gdbscm_type_range): Likewise.
5798 * m2-typeprint.c (m2_array): Likewise.
5799 (m2_is_long_set_of_type): Likewise.
5800 * m2-valprint.c (get_long_set_bounds): Likewise.
5801 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5802 * python/py-type.c (typy_range): Likewise.
5803 * rust-lang.c (rust_internal_print_type): Likewise.
5804 * type-stack.c (type_stack::follow_types): Likewise.
5805 * valarith.c (value_subscripted_rvalue): Likewise.
5806 * valops.c (value_cast): Likewise.
5807
509971ae
SM
58082020-07-12 Simon Marchi <simon.marchi@efficios.com>
5809
5810 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5811 callers to use the equivalent accessor methods.
5812
107406b7
SM
58132020-07-12 Simon Marchi <simon.marchi@efficios.com>
5814
5815 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5816 (struct type) <bit_stride>: New method.
5817 (TYPE_BIT_STRIDE): Remove.
5818 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5819
bb789949
SM
58202020-07-12 Simon Marchi <simon.marchi@efficios.com>
5821
5822 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5823 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5824 callers to use the equivalent accessor methods instead.
5825
39498edb
SM
58262020-07-12 Simon Marchi <simon.marchi@efficios.com>
5827
5828 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5829 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5830 callers to use the equivalent accessor methods instead.
5831
3b606f38
SM
58322020-07-12 Simon Marchi <simon.marchi@efficios.com>
5833
5834 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5835 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5836 to use dynamic_prop::kind.
5837
064d9cb9
SM
58382020-07-12 Simon Marchi <simon.marchi@efficios.com>
5839
5840 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5841 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5842 to get the bound property's kind and check against
5843 PROP_UNDEFINED.
5844
5537ddd0
SM
58452020-07-12 Simon Marchi <simon.marchi@efficios.com>
5846
5847 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5848 all callers to use type::range_bounds followed by
5849 dynamic_prop::{low,high}.
5850
8c2e4e06
SM
58512020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5852
5853 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5854 const_val, set_const_val, baton, set_locexpr, set_loclist,
5855 set_addr_offset, variant_parts, set_variant_parts,
5856 original_type, set_original_type>: New methods.
5857 <kind>: Rename to...
5858 <m_kind>: ... this. Update all users to use the new methods
5859 instead.
5860 <data>: Rename to...
5861 <m_data>: ... this. Update all users to use the new methods
5862 instead.
5863
7c6f2712
SM
58642020-07-12 Simon Marchi <simon.marchi@efficios.com>
5865
5866 * gdbtypes.c (get_discrete_bounds): Return failure if
5867 the range type's bounds are not both defined and constant
5868 values.
5869 (get_array_bounds): Update comment. Remove undefined bound check.
5870
599088e3
SM
58712020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5872
5873 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5874 the type::bounds method directly.
5875
c4dfcb36
SM
58762020-07-12 Simon Marchi <simon.marchi@efficios.com>
5877
5878 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5879 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5880 are used to set the range type's bounds to use set_bounds.
5881
0a278aa7
PW
58822020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5883
5884 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5885
cce20f10
PA
58862020-07-10 Pedro Alves <pedro@palves.net>
5887
5888 * gdbthread.h (inferior_ref): Define.
5889 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5890 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5891 * thread.c
5892 (scoped_restore_current_thread::restore):
5893 Adjust to gdb::ref_ptr.
5894 (scoped_restore_current_thread::~scoped_restore_current_thread):
5895 Remove manual decref handling.
5896 (scoped_restore_current_thread::scoped_restore_current_thread):
5897 Adjust to use
5898 inferior_ref::new_reference/thread_info_ref::new_reference.
5899 Incref the thread before calling get_frame_id instead of after.
5900 Let TARGET_CLOSE_ERROR propagate.
5901
6d7aa592
PA
59022020-07-10 Pedro Alves <pedro@palves.net>
5903
5904 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5905 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5906 NOT_AVAILABLE_ERROR.
5907 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5908 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5909
b3e3a4c1
SM
59102020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5911 Pedro Alves <pedro@palves.net>
5912
5913 PR gdb/26199
5914 * infrun.c (threads_are_resumed_pending_p): Delete.
5915 (do_target_wait): Remove threads_are_executing and
5916 threads_are_resumed_pending_p checks from the inferior_matches
5917 lambda. Update comments.
5918
d6cc5d98
PA
59192020-07-10 Pedro Alves <pedro@palves.net>
5920
5921 PR gdb/26199
5922 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5923 executing threads.
5924
7d3badc6
PA
59252020-07-10 Pedro Alves <pedro@palves.net>
5926
5927 PR gdb/26199
5928 * infrun.c (handle_no_resumed): Handle multiple targets.
5929
42bd97a6
PA
59302020-07-10 Pedro Alves <pedro@palves.net>
5931
5932 PR gdb/26199
5933 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5934 target_is_async_p.
5935
43667cc6
PA
59362020-07-10 Pedro Alves <pedro@palves.net>
5937
5938 PR gdb/26199
5939 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5940 threads, not all threads.
5941
96118d11
PA
59422020-07-10 Pedro Alves <pedro@palves.net>
5943
5944 PR gdb/26199
5945 * remote.c (remote_target::open_1): Pass remote target pointer as
5946 data to create_async_event_handler.
5947 (remote_async_inferior_event_handler): Mark async event handler
5948 before returning if the remote target still has either pending
5949 events or unacknowledged notifications.
5950
54904d81
JB
59512020-07-10 John Baldwin <jhb@FreeBSD.org>
5952
5953 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5954 declaration.
5955 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5956 function.
5957
f37e5866
JB
59582020-07-09 John Baldwin <jhb@FreeBSD.org>
5959
5960 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5961 inferior_ptid.
5962
fc238d4a
JB
59632020-07-09 John Baldwin <jhb@FreeBSD.org>
5964
5965 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5966 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5967 AT_FREEBSD_PS_STRINGS.
5968
6e2469ff
HD
59692020-07-08 Hannes Domani <ssbssa@yahoo.de>
5970
5971 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5972 of debugfile path on Windows.
5973
d1076c41
JB
59742020-07-08 John Baldwin <jhb@FreeBSD.org>
5975
5976 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5977 argument to 'data'.
5978
15f3b077
TT
59792020-07-08 Tom Tromey <tromey@adacore.com>
5980
5981 * ada-lang.c (ada_exception_message_1): Use read_memory.
5982
9fc501fd
AB
59832020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5984
5985 PR python/22748
5986 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5987 special handling for inline frames.
5988 * findvar.c (value_of_register_lazy): Skip inline frames when
5989 creating lazy register values.
5990 * frame.c (frame_id_computed_p): Delete definition.
5991 * frame.h (frame_id_computed_p): Delete declaration.
5992
64cb3757
AB
59932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5994
5995 * NEWS: Mention additions to Python API.
5996 * python/py-arch.c (archpy_register_groups): New function.
5997 (arch_object_methods): Add 'register_groups' method.
5998 * python/py-registers.c (reggroup_iterator_object): New struct.
5999 (reggroup_object): New struct.
6000 (gdbpy_new_reggroup): New function.
6001 (gdbpy_reggroup_to_string): New function.
6002 (gdbpy_reggroup_name): New function.
6003 (gdbpy_reggroup_iter): New function.
6004 (gdbpy_reggroup_iter_next): New function.
6005 (gdbpy_new_reggroup_iterator): New function
6006 (gdbpy_initialize_registers): Register new types.
6007 (reggroup_iterator_object_type): Define new Python type.
6008 (gdbpy_reggroup_getset): New static global.
6009 (reggroup_object_type): Define new Python type.
6010 * python/python-internal.h
6011
0f767f94
AB
60122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6013
6014 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6015 * python/py-arch.c (archpy_registers): New function.
6016 (arch_object_methods): Add 'registers' method.
6017 * python/py-registers.c: New file.
6018 * python/python-internal.h
6019 (gdbpy_new_register_descriptor_iterator): Declare.
6020 (gdbpy_initialize_registers): Declare.
6021 * python/python.c (do_start_initialization): Call
6022 gdbpy_initialize_registers.
6023 * NEWS: Mention additions to the Python API.
6024
87dbc774
AB
60252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6026
6027 * NEWS: Mention new Python API method.
6028 * python/py-unwind.c (pending_framepy_architecture): New function.
6029 (pending_frame_object_methods): Add architecture method.
6030
3bc98c0c
AB
60312020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6032
6033 * gdbarch.c: Regenerate.
6034 * gdbarch.h: Regenerate.
6035 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6036 (gdbarch_data): Use internal_error for the case where
6037 deprecated_set_gdbarch_data was originally needed.
6038 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6039 and use passed in obstack.
6040 (libunwind_frame_set_descr): Should no longer get back NULL from
6041 gdbarch_data.
6042 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6043 type.
6044 * user-regs.c (user_regs_init): Update parameters, and use passed
6045 in obstack.
6046 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6047 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6048
d8cc8af6
TV
60492020-07-06 Tom de Vries <tdevries@suse.de>
6050
6051 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6052 End-Of-Sequence in lte_is_less_than.
6053 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6054 "gdb: Don't reorder line table entries too much when sorting".
6055
947f7597
TV
60562020-07-06 Tom de Vries <tdevries@suse.de>
6057
6058 PR tui/26205
6059 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6060
1e7c1b22
TV
60612020-07-05 Tom de Vries <tdevries@suse.de>
6062
6063 PR build/26187
6064 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6065 std::uncaught_exceptions instead of deprecated
6066 std::uncaught_exception.
6067
a36158ec
SM
60682020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6069
6070 * macroexp.h (macro_stringify): Return
6071 gdb::unique_xmalloc_ptr<char>.
6072 * macroexp.c (macro_stringify): Likewise.
6073 * macrotab.c (fixup_definition): Update.
6074
14d960c8
SM
60752020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6076
6077 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6078 (lex_one_token): Update.
6079 * macroexp.c (struct macro_buffer) <release>: Return
6080 gdb::unique_xmalloc_ptr<char>.
6081 (macro_stringify): Update.
6082 (macro_expand): Update.
6083 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6084 * macroexp.h (macro_expand_next): Likewise.
6085
211d5b1c
SM
60862020-07-02 Simon Marchi <simon.marchi@efficios.com>
6087
6088 * macroexp.h (macro_lookup_ftype): Remove.
6089 (macro_expand, macro_expand_once, macro_expand_next): Remove
6090 lookup function parameters, add scope parameter.
6091 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6092 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6093 * macroscope.h (standard_macro_lookup): Change parameter type
6094 to macro_scope.
6095 * macroscope.c (standard_macro_lookup): Likewise.
6096 * c-exp.y (lex_one_token): Update.
6097 * macrocmd.c (macro_expand_command): Likewise.
6098 (macro_expand_once_command): Likewise.
6099
b1a35af2
SM
61002020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6101
6102 * inf-loop.c (inferior_event_handler): Remove client_data param.
6103 * inf-loop.h (inferior_event_handler): Likewise.
6104 * infcmd.c (step_1): Adjust.
6105 * infrun.c (proceed): Adjust.
6106 (fetch_inferior_event): Remove client_data param.
6107 (infrun_async_inferior_event_handler): Adjust.
6108 * infrun.h (fetch_inferior_event): Remove `void *` param.
6109 * linux-nat.c (handle_target_event): Adjust.
6110 * record-btrace.c (record_btrace_handle_async_inferior_event):
6111 Adjust.
6112 * record-full.c (record_full_async_inferior_event_handler):
6113 Adjust.
6114 * remote.c (remote_async_inferior_event_handler): Adjust.
6115
1cdf9e33
TT
61162020-07-01 Tom Tromey <tom@tromey.com>
6117
6118 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6119 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6120
32c1e210
TT
61212020-07-01 Tom Tromey <tom@tromey.com>
6122
6123 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6124 tui_gen_win_info.
6125 (tui_win_info::make_window): Merge with
6126 tui_gen_win_info::make_window.
6127 (tui_win_info::make_visible): Move from tui_gen_win_info.
6128 * tui/tui-win.c (tui_win_info::max_width): Move from
6129 tui_gen_win_info.
6130 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6131 type.
6132 <window_factory>: Likewise.
6133 * tui/tui-layout.c (tui_win_info::resize): Move from
6134 tui_gen_win_info.
6135 (make_standard_window): Change return type.
6136 (get_locator_window, tui_get_window_by_name): Likewise.
6137 (tui_layout_window::apply): Remove a cast.
6138 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6139 (struct tui_win_info): Merge with tui_gen_win_info.
6140 (struct tui_gen_win_info): Remove.
6141
a30cb6da
TT
61422020-07-01 Tom Tromey <tom@tromey.com>
6143
6144 * tui/tui-stack.h (struct tui_locator_window): Derive from
6145 tui_win_info.
6146 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6147 <can_box>: New method.
6148
1eb2161f
TT
61492020-07-01 Tom Tromey <tom@tromey.com>
6150
6151 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6152
7134f2eb
TT
61532020-07-01 Tom Tromey <tom@tromey.com>
6154
6155 * tui/tui-regs.c (tui_data_window::display_registers_from)
6156 (tui_data_window::display_registers_from)
6157 (tui_data_window::first_data_item_displayed)
6158 (tui_data_window::delete_data_content_windows): Update.
6159 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6160 Remove.
6161 (tui_data_window::check_register_values): Update.
6162 (tui_data_item_window::rerender): Add parameters. Update.
6163 (tui_data_item_window::refresh_window): Remove.
6164 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6165 virtual.
6166 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6167 tui_gen_win_info.
6168 <refresh_window, max_height, min_height>: Remove.
6169 <rerender>: Add parameters.
6170 <x, y, visible>: New members.
6171 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6172 <m_item_width>: New member.
6173
22b7b041
TT
61742020-07-01 Tom Tromey <tom@tromey.com>
6175
6176 * tui/tui-regs.c (tui_data_window::show_register_group)
6177 (tui_data_window::check_register_values): Update.
6178 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6179 from item_no.
6180
c9753adb
TT
61812020-07-01 Tom Tromey <tom@tromey.com>
6182
6183 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6184 useless "if".
6185
9ab26b4a
TT
61862020-07-01 Tom Tromey <tom@tromey.com>
6187
6188 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6189 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6190
e555083f
TT
61912020-07-01 Tom Tromey <tom@tromey.com>
6192
6193 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6194 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6195 (struct tui_line_or_address): Move from tui-data.h.
6196 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6197 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6198 (tui_cmd_window, tui_source_window_base, tui_source_window)
6199 (tui_disasm_window): Don't declare.
6200 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6201 to tui-winsource.h.
6202 (SINGLE_KEY): Move to tui-stack.c.
6203
7a02bab7
TT
62042020-07-01 Tom Tromey <tom@tromey.com>
6205
6206 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6207 std::string.
6208 * tui/tui-regs.c (class tab_expansion_file): New.
6209 (tab_expansion_file::write): New method.
6210 (tui_register_format): Change return type. Use
6211 tab_expansion_file.
6212 (tui_get_register, tui_data_window::display_registers_from)
6213 (tui_data_item_window::rerender): Update.
6214 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6215 * tui/tui-io.c (tui_expand_tabs): Remove.
6216
ea68593b
TT
62172020-07-01 Tom Tromey <tom@tromey.com>
6218
6219 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6220
a8caed5d
FS
62212020-07-01 Fangrui Song <maskray@google.com>
6222
6223 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6224
9cdf9820
AKS
62252020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6226
6227 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6228 forms for DW_AT_associated and DW_AT_allocated attributes,
6229 which is already checked in function attr_to_dynamic_prop.
6230
a1520ad8
TT
62312020-06-30 Tom Tromey <tromey@adacore.com>
6232
6233 * dwarf2/read.c (quirk_rust_enum): Correctly call
6234 alloc_rust_variant for default-less enum.
6235
5ac58899
TT
62362020-06-30 Tom Tromey <tromey@adacore.com>
6237
6238 PR build/26183:
6239 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6240 gdb::to_string.
6241
19b187a9
SM
62422020-06-29 Simon Marchi <simon.marchi@efficios.com>
6243
6244 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6245 * gdbarch.h: Re-generate.
6246
cd4c4c07
TT
62472020-06-28 Tom Tromey <tom@tromey.com>
6248
6249 * command.h (cmd_types): Remove.
6250 (cmd_type): Don't declare.
6251 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6252 typedef.
6253 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6254 * cli/cli-decode.c (cmd_type): Remove.
6255
05779d57
PA
62562020-06-27 Pedro Alves <palves@redhat.com>
6257
6258 * fork-child.c (prefork_hook): Adjust.
6259 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6260 Delete.
6261 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6262 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6263 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6264 Remove declarations.
6265 (struct inferior) <set_tty, tty>: New methods.
6266 (struct inferior) <terminal>: Rename to ...
6267 (struct inferior) <m_terminal>: ... this and make private.
6268 * main.c (captured_main_1): Adjust.
6269 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6270 (mi_cmd_inferior_tty_show): Adjust.
6271 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6272 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6273
1776e3e5
NA
62742020-06-26 Nick Alcock <nick.alcock@oracle.com>
6275
6276 * configure.ac: Add --enable-libctf: handle --disable-static
6277 properly.
6278 * acinclude.m4: sinclude ../config/enable.m4.
6279 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6280 (LIBCTF): Substitute in.
6281 (CTF_DEPS): New, likewise.
6282 (CLIBS): libctf needs symbols from libbfd: move earlier.
6283 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6284 flags.
6285 * ctfread.c: Surround in ENABLE_LIBCTF.
6286 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6287 * configure: Regenerate.
6288 * config.in: Likewise.
6289
58373b80
SM
62902020-06-25 Simon Marchi <simon.marchi@efficios.com>
6291
6292 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6293
277474ee
SM
62942020-06-25 Simon Marchi <simon.marchi@efficios.com>
6295
6296 * inferior.h (struct inferior) <terminal>: Change type to
6297 gdb::unique_xmalloc_ptr<char>.
6298 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6299 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6300 field, adjust to unique pointer.
6301 (get_inferior_io_terminal): Adjust to unique pointer.
6302
6d74da72
AB
63032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6304
6305 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6306 registers, not just the known core set of registers.
6307
2e52d038
AB
63082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6309
6310 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6311 fflags, frm, and fcsr registers.
6312 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6313 restore groups.
6314 (riscv_tdesc_unknown_reg): New function.
6315 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6316 tdesc_use_registers.
6317 * riscv-tdep.h (struct gdbarch_tdep): Add
6318 unknown_csrs_first_regnum, unknown_csrs_count,
6319 duplicate_fflags_regnum, duplicate_frm_regnum, and
6320 duplicate_fcsr_regnum fields.
6321
be64fd07
AB
63222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6323
6324 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6325 callback, use the callback (when not null) to help number unknown
6326 registers.
6327 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6328 (tdesc_use_registers): Add extra parameter to declaration.
6329
3b9fce96
AB
63302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6331
6332 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6333 in the file.
6334 (class riscv_pending_register_alias): Likewise.
6335 (riscv_register_feature::register_info): Change 'required_p' field
6336 to 'required', and change its type. Add 'check' member function.
6337 (riscv_register_feature::register_info::check): Define new member
6338 function.
6339 (riscv_xreg_feature): Change initialisation of 'required' field.
6340 (riscv_freg_feature): Likewise.
6341 (riscv_virtual_feature): Likewise.
6342 (riscv_csr_feature): Likewise.
6343 (riscv_check_tdesc_feature): Take extra parameter, the csr
6344 tdesc_feature, rewrite the function to use the new
6345 riscv_register_feature::register_info::check function.
6346 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6347
865bad26
AB
63482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6349
6350 * features/Makefile: Remove all references to the deleted files
6351 below.
6352 * features/riscv/32bit-csr.c: Deleted.
6353 * features/riscv/32bit-csr.xml: Deleted.
6354 * features/riscv/64bit-csr.c: Deleted.
6355 * features/riscv/64bit-csr.xml: Deleted.
6356 * features/riscv/rebuild-csr-xml.sh: Deleted.
6357
ed69cbc8
AB
63582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6359
6360 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6361 whitespace error for declaration of names member variable.
6362 (struct riscv_register_feature): Add new prefer_first_name member
6363 variable, and fix whitespace error in declaration of registers.
6364 (riscv_xreg_feature): Initialize prefer_first_name field.
6365 (riscv_freg_feature): Likewise.
6366 (riscv_virtual_feature): Likewise.
6367 (riscv_csr_feature): Likewise.
6368 (riscv_register_name): Expand on comments. Remove register name
6369 modifications for CSR and virtual registers.
6370
4445e8f5
AB
63712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6372
6373 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6374 errors.
6375
767a879e
AB
63762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6377
6378 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6379 riscv-opc.h.
6380 (class riscv_pending_register_alias): New class.
6381 (riscv_check_tdesc_feature): Take vector of pending aliases and
6382 populate it as appropriate.
6383 (riscv_setup_register_aliases): Delete.
6384 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6385 to riscv_check_tdesc_feature in all cases. Use the vector to
6386 create the register aliases.
6387
bb6e55f3
RO
63882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6389
6390 * sol2-tdep.c (sol2_static_transform_name): Remove.
6391 (sol2_init_abi): Don't register it.
6392 * gdbarch.sh (static_transform_name): Remove.
6393 * gdbarch.c, gdbarch.h: Regenerate.
6394
6395 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6396 gdbarch_static_transform_name.
6397 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6398 * stabsread.c (define_symbol) <'X'>: Remove.
6399 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6400 handling.
6401 <'V'>: Likewise.
6402 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6403 <'S'>: Remove call to gdbarch_static_transform_name.
6404
c6d36836
RO
64052020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6406
6407 * procfs.c (procfs_pre_trace): New function.
6408 (procfs_target::create_inferior): Pass it to fork_inferior.
6409
a7e6196b
RO
64102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6411
6412 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6413 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6414 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6415 sol2-tdep.o, sparc-sol2-tdep.o.
6416 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6417 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6418 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6419 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6420
d412e696
RO
64212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6422
6423 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6424 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6425 Call sol2_init_abi.
6426 Remove calls to set_gdbarch_skip_solib_resolver,
6427 set_gdbarch_core_pid_to_str.
6428 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6429 (i386_sol2_static_transform_name): Remove.
6430 (i386_sol2_init_abi): Call sol2_init_abi.
6431 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6432 set_gdbarch_static_transform_name,
6433 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6434 Use sol2_sigtramp_p.
6435 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6436 (sol2_sigtramp_p): New function.
6437 (sol2_static_transform_name): New function.
6438 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6439 (sol2_init_abi): New function.
6440 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6441 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6442 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6443 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6444 (sparc_sol2_static_transform_name): Remove.
6445 (sparc32_sol2_init_abi): Call sol2_init_abi.
6446 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6447 set_gdbarch_static_transform_name,
6448 set_gdbarch_skip_solib_resolver,
6449 set_gdbarch_core_pid_to_str.
6450 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6451 (sparc_sol2_static_transform_name): Remove
6452 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6453 call sol2_sigtramp_p.
6454 (sparc64_sol2_init_abi): Call sol2_init_abi.
6455 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6456 set_gdbarch_static_transform_name,
6457 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6458
a8654e7d
PW
64592020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6460
6461 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6462 * exec.c (validate_exec_file): If from_tty, set both
6463 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6464 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6465 and from_tty, unconditionally ask a confirmation.
6466
caa7fd04
AB
64672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6468
6469 * target-descriptions.c (tdesc_architecture_name): Protect against
6470 NULL pointer dereference.
6471 (maint_print_xml_tdesc_cmd): New function.
6472 (_initialize_target_descriptions): Register new 'maint print
6473 xml-tdesc' command and give it the filename completer.
6474 * NEWS: Mention new 'maint print xml-tdesc' command.
6475
fbf42f4e
AB
64762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6477
6478 * target-descriptions.c (class tdesc_compatible_info): New class.
6479 (struct target_desc): Change type of compatible vector.
6480 (tdesc_compatible_p): Update for change in type of
6481 target_desc::compatible.
6482 (tdesc_compatible_info_list): New function.
6483 (tdesc_compatible_info_arch_name): New function.
6484 (tdesc_add_compatible): Update for change in type of
6485 target_desc::compatible.
6486 (print_c_tdesc::visit_pre): Likewise.
6487
20821f4e
AB
64882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6489
6490 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6491 whitespace to underscore.
6492 (maint_print_c_tdesc_cmd): Use fake filename for target
6493 descriptions that came from the target.
6494 (_initialize_target_descriptions): Add filename command completion
6495 for 'maint print c-tdesc'.
6496
1fb5ee62
SM
64972020-06-23 Simon Marchi <simon.marchi@efficios.com>
6498
6499 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6500 lines.
6501
fc3ecb3e
SM
65022020-06-23 Simon Marchi <simon.marchi@efficios.com>
6503
6504 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6505 lines.
6506 (dwarf2_find_location_expression): Likewise.
6507 (call_site_parameter_matches): Likewise.
6508 (dwarf2_compile_expr_to_ax): Likewise.
6509 (disassemble_dwarf_expression): Likewise.
6510 (loclist_describe_location): Likewise.
6511
236ef034
PA
65122020-06-23 Pedro Alves <palves@redhat.com>
6513
6514 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6515 progspace-and-thread.h. Include scoped-mock-context.h instead.
6516 (register_to_value_test): Use scoped_mock_context.
6517 * regcache.c: Include "scoped-mock-context.h".
6518 (cooked_read_test): Don't error out if a target is already pushed.
6519 Use scoped_mock_context. Adjust.
6520 * scoped-mock-context.h: New file.
6521
39e7ecca
AB
65222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6523
6524 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6525 initializer.
6526 (ada_language::is_string_type_p): New member function.
6527 * c-lang.c (c_language_data): Delete la_is_string_type_p
6528 initializer.
6529 (cplus_language_data): Likewise.
6530 (asm_language_data): Likewise.
6531 (minimal_language_data): Likewise.
6532 * d-lang.c (d_language_data): Likewise.
6533 * f-lang.c (f_is_string_type_p): Delete function, implementation
6534 moved to f_language::is_string_type_p.
6535 (f_language_data): Delete la_is_string_type_p initializer.
6536 (f_language::is_string_type_p): New member function,
6537 implementation from f_is_string_type_p.
6538 * go-lang.c (go_is_string_type_p): Delete function, implementation
6539 moved to go_language::is_string_type_p.
6540 (go_language_data): Delete la_is_string_type_p initializer.
6541 (go_language::is_string_type_p): New member function,
6542 implementation from go_is_string_type_p.
6543 * language.c (language_defn::is_string_type_p): Define new member
6544 function.
6545 (default_is_string_type_p): Make static, add comment copied from
6546 header file.
6547 (unknown_language_data): Delete la_is_string_type_p initializer.
6548 (unknown_language::is_string_type_p): New member function.
6549 (auto_language_data): Delete la_is_string_type_p initializer.
6550 (auto_language::is_string_type_p): New member function.
6551 * language.h (language_data): Delete la_is_string_type_p field.
6552 (language_defn::is_string_type_p): Declare new function.
6553 (default_is_string_type_p): Delete desclaration, move comment to
6554 definition.
6555 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6556 moved to m2_language::is_string_type_p.
6557 (m2_language_data): Delete la_is_string_type_p initializer.
6558 (m2_language::is_string_type_p): New member function,
6559 implementation from m2_is_string_type_p.
6560 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6561 initializer.
6562 * opencl-lang.c (opencl_language_data): Likewise.
6563 * p-lang.c (pascal_is_string_type_p): Delete function,
6564 implementation moved to pascal_language::is_string_type_p.
6565 (pascal_language_data): Delete la_is_string_type_p initializer.
6566 (pascal_language::is_string_type_p): New member function,
6567 implementation from pascal_is_string_type_p.
6568 * rust-lang.c (rust_is_string_type_p): Delete function,
6569 implementation moved to rust_language::is_string_type_p.
6570 (rust_language_data): Delete la_is_string_type_p initializer.
6571 (rust_language::is_string_type_p): New member function,
6572 implementation from rust_is_string_type_p.
6573 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6574 is_string_type_p.
6575
4ffc13fb
AB
65762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6577
6578 * ada-lang.c (ada_language_data): Delete la_print_typedef
6579 initializer.
6580 (ada_language::print_typedef): New member function.
6581 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6582 (cplus_language_data): Likewise.
6583 (asm_language_data): Likewise.
6584 (minimal_language_data): Likewise.
6585 * d-lang.c (d_language_data): Likewise.
6586 * f-lang.c (f_language_data): Likewise.
6587 (f_language::print_typedef): New member function.
6588 * go-lang.c (go_language_data): Delete la_print_typedef
6589 initializer.
6590 * language.c (language_defn::print_typedef): Define member
6591 function.
6592 (unknown_language_data): Delete la_print_typedef initializer.
6593 (unknown_language::print_typedef): New member function.
6594 (auto_language_data): Delete la_print_typedef initializer.
6595 (auto_language::print_typedef): New member function.
6596 * language.h (language_data): Delete la_print_typedef field.
6597 (language_defn::print_typedef): Declare new member function.
6598 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6599 (default_print_typedef): Delete declaration.
6600 * m2-lang.c (m2_language_data): Delete la_print_typedef
6601 initializer.
6602 (m2_language::print_typedef): New member function.
6603 * objc-lang.c (objc_language_data): Delete la_print_typedef
6604 initializer.
6605 * opencl-lang.c (opencl_language_data): Likewise.
6606 * p-lang.c (pascal_language_data): Likewise.
6607 (pascal_language::print_typedef): New member function.
6608 * rust-lang.c (rust_print_typedef): Delete function,
6609 implementation moved to rust_language::print_typedef.
6610 (rust_language): Delete la_print_typedef initializer.
6611 (rust_language::print_typedef): New member function,
6612 implementation from rust_print_typedef.
6613 * typeprint.c (default_print_typedef): Delete.
6614
d711ee67
AB
66152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6616
6617 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6618 (ada_language::printstr): New member function.
6619 * c-lang.c (c_language_data): Delete la_printstr initializer.
6620 (cplus_language_data): Likewise.
6621 (asm_language_data): Likewise.
6622 (minimal_language_data): Likewise.
6623 * d-lang.c (d_language_data): Likewise.
6624 * f-lang.c (f_printstr): Rename to f_language::printstr.
6625 (f_language_data): Delete la_printstr initializer.
6626 (f_language::printstr): New member function, implementation from
6627 f_printstr.
6628 * go-lang.c (go_language_data): Delete la_printstr initializer.
6629 * language.c (language_defn::printstr): Define new member
6630 function.
6631 (unk_lang_printstr): Delete.
6632 (unknown_language_data): Delete la_printstr initializer.
6633 (unknown_language::printstr): New member function.
6634 (auto_language_data): Delete la_printstr initializer.
6635 (auto_language::printstr): New member function.
6636 * language.h (language_data): Delete la_printstr field.
6637 (language_defn::printstr): Declare new member function.
6638 (LA_PRINT_STRING): Update call to printstr.
6639 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6640 (m2_language_data): Delete la_printstr initializer.
6641 (m2_language::printstr): New member function, implementation from
6642 m2_printstr.
6643 * objc-lang.c (objc_language_data): Delete la_printstr
6644 initializer.
6645 * opencl-lang.c (opencl_language_data): Likewise.
6646 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6647 (pascal_language_data): Delete la_printstr initializer.
6648 (pascal_language::printstr): New member function, implementation
6649 from pascal_printstr.
6650 * p-lang.h (pascal_printstr): Delete declaration.
6651 * rust-lang.c (rust_printstr): Update header comment.
6652 (rust_language_data): Delete la_printstr initializer.
6653 (rust_language::printstr): New member function.
6654
52b50f2c
AB
66552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6656
6657 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6658 (ada_language::printchar): New member function.
6659 * c-lang.c (c_language_data): Delete la_printchar initializer.
6660 (cplus_language_data): Likewise.
6661 (asm_language_data): Likewise.
6662 (minimal_language_data): Likewise.
6663 * d-lang.c (d_language_data): Likewise.
6664 * f-lang.c (f_printchar): Rename to f_language::printchar.
6665 (f_language_data): Delete la_printchar initializer.
6666 (f_language::printchar): New member function, implementation from
6667 f_printchar.
6668 * go-lang.c (go_language_data): Delete la_printchar initializer.
6669 * language.c (unk_lang_printchar): Delete.
6670 (language_defn::printchar): Define new member function.
6671 (unknown_language_data): Delete la_printchar initializer.
6672 (unknown_language::printchar): New member function.
6673 (auto_language_data): Delete la_printchar initializer.
6674 (auto_language::printchar): New member function.
6675 * language.h (language_data): Delete la_printchar field.
6676 (language_defn::printchar): Declare new member function.
6677 (LA_PRINT_CHAR): Update call to printchar.
6678 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6679 (m2_language::printchar): New member function.
6680 * objc-lang.c (objc_language_data): Delete la_printchar
6681 initializer.
6682 * opencl-lang.c (opencl_language_data): Likewise.
6683 * p-lang.c (pascal_language_data): Delete la_printchar
6684 initializer.
6685 (pascal_language::printchar): New member function.
6686 * rust-lang.c (rust_printchar): Rename to
6687 rust_language::printchar.
6688 (rust_language_data): Delete la_printchar initializer.
6689 (rust_language::printchar): New member function, implementation
6690 from rust_printchar.
6691
ec8cec5b
AB
66922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6693
6694 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6695 (ada_language_data): Delete la_emitchar initializer.
6696 (ada_language::emitchar): New member function, implementation from
6697 emit_char.
6698 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6699 (cplus_language_data): Likewise.
6700 (asm_language_data): Likewise.
6701 (minimal_language_data): Likewise.
6702 * d-lang.c (d_language_data): Likewise.
6703 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6704 (f_language_data): Delete la_emitchar initializer.
6705 (f_language::emitchar): New member function, implementation from
6706 f_emit_char.
6707 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6708 * language.c (unk_lang_emit_char): Delete.
6709 (language_defn::emitchar): New member function definition.
6710 (unknown_language_data): Delete la_emitchar initializer.
6711 (unknown_language::emitchar): New member function.
6712 (auto_language_data): Delete la_emitchar initializer.
6713 (auto_language::emitchar): New member function.
6714 * language.h (language_data): Delete la_emitchar field.
6715 (language_defn::emitchar): New member field declaration.
6716 (LA_EMIT_CHAR): Update call to emitchar.
6717 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6718 (m2_language_data): Delete la_emitchar initializer.
6719 (m2_language::emitchar): New member function, implementation from
6720 m2_emit_char.
6721 * objc-lang.c (objc_language_data): Delete la_emitchar
6722 initializer.
6723 * opencl-lang.c (opencl_language_data): Likewise.
6724 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6725 (pascal_language_data): Delete la_emitchar initializer.
6726 (pascal_language::emitchar): New member function, implementation
6727 from pascal_emit_char.
6728 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6729 (rust_language_data): Delete la_emitchar initializer.
6730 (rust_language::emitchar): New member function, implementation
6731 from rust_emitchar.
6732
1bf9c363
AB
67332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6734
6735 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6736 (ada_language_data): Delete la_post_parser initializer.
6737 (ada_language::post_parser): New member function.
6738 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6739 (cplus_language_data): Likewise.
6740 (asm_language_data): Likewise.
6741 (minimal_language_data): Likewise.
6742 * d-lang.c (d_language_data): Likewise.
6743 * f-lang.c (f_language_data): Likewise.
6744 * go-lang.c (go_language_data): Likewise.
6745 * language.c (unknown_language_data): Likewise.
6746 (auto_language_data): Likewise.
6747 * language.h (language_data): Delete la_post_parser field.
6748 (language_defn::post_parser): New member function.
6749 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6750 * objc-lang.c (objc_language_data): Likewise.
6751 * opencl-lang.c (opencl_language_data): Likewise.
6752 * p-lang.c (pascal_language_data): Likewise.
6753 * parse.c (parse_exp_in_context): Update call to post_parser.
6754 (null_post_parser): Delete definition.
6755 * parser-defs.h (null_post_parser): Delete declaration.
6756 * rust-lang.c (rust_language_data): Delete la_post_parser
6757 initializer.
6758
87afa652
AB
67592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6760
6761 * ada-lang.c (parse): Rename to ada_language::parser.
6762 (ada_language_data): Delete la_parser initializer.
6763 (ada_language::parser): New member function, implementation from
6764 parse.
6765 * c-lang.c (c_language_data): Delete la_parser initializer.
6766 (cplus_language_data): Likewise.
6767 (asm_language_data): Likewise.
6768 (minimal_language_data): Likewise.
6769 * d-lang.c (d_language_data): Likewise.
6770 (d_language::parser): New member function.
6771 * f-lang.c (f_language_data): Delete la_parser initializer.
6772 (f_language::parser): New member function.
6773 * go-lang.c (go_language_data): Delete la_parser initializer.
6774 (go_language::parser): New member function.
6775 * language.c (unk_lang_parser): Delete.
6776 (language_defn::parser): Define new member function.
6777 (unknown_language_data): Delete la_parser initializer.
6778 (unknown_language::parser): New member function.
6779 (auto_language_data): Delete la_parser initializer.
6780 (auto_language::parser): New member function.
6781 * language.h (language_data): Delete la_parser field.
6782 (language_defn::parser): Declare new member function.
6783 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6784 (m2_language::parser): New member function.
6785 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6786 * opencl-lang.c (opencl_language_data): Likewise.
6787 * p-lang.c (pascal_language_data): Likewise.
6788 (pascal_language::parser): New member function.
6789 * parse.c (parse_exp_in_context): Update call to parser.
6790 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6791 (rust_language::parser): New member function.
6792
37825800
AB
67932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6794
6795 * top.c (print_gdb_configuration): Print --with-python-libdir
6796 configuration value.
6797
5b860c93
PW
67982020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6799
6800 * NEWS: Mention change to the alias command.
6801
cf00cd6f
PW
68022020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6803
6804 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6805 (alias_command_completer)
6806 (make_alias_options_def_group): New functions.
6807 (alias_opts, alias_option_defs): New struct and array.
6808 (alias_usage_error): Update usage.
6809 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6810 Use option framework.
6811 (_initialize_cli_cmds): Update alias command help.
6812 Update aliases command help.
6813 (show_user):
6814 Add NULL for new default_args lookup_cmd argument.
6815 (valid_command_p): Rename to validate_aliased_command.
6816 Add NULL for new default_args lookup_cmd argument. Verify that the
6817 aliased_command has no default args.
6818 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6819 (lookup_cmd_1, lookup_cmd): New argument default_args.
6820 (add_alias_cmd):
6821 Add NULL for new default_args lookup_cmd argument.
6822 (print_help_for_command): Show default args under the layout
6823 alias some_alias = some_aliased_cmd some_alias_default_arg.
6824 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6825 xfree default_args in destructor.
6826 * cli/cli-script.c (process_next_line, do_define_command):
6827 Add NULL for new default_args lookup_cmd argument.
6828 * command.h: Declare new default_args argument in lookup_cmd
6829 and lookup_cmd_1.
6830 * completer.c (complete_line_internal_1):
6831 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6832 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6833 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6834 Likewise.
6835 * infcmd.c (_initialize_infcmd): Likewise.
6836 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6837 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6838 * python/py-param.c (add_setshow_generic): Likewise.
6839 * remote.c (_initialize_remote): Likewise.
6840 * top.c (execute_command): Prepend default_args if command has some.
6841 (set_verbose):
6842 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6843 * tracepoint.c (validate_actionline, encode_actions_1):
6844 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6845
bd920864
TBA
68462020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6847
6848 * jit.c (jit_read_descriptor): Use bool as the return type.
6849 (jit_breakpoint_re_set_internal): Use bool as the return type.
6850 Invert the return value logic; return true if the jit breakpoint
6851 has been successfully initialized.
6852 (jit_inferior_init): Update the call to
6853 jit_breakpoint_re_set_internal.
6854
f8098322
PA
68552020-06-22 Pedro Alves <palves@redhat.com>
6856
6857 PR gdb/25939
6858 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6859 Use the current inferior instead. Don't return
6860 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6861 wait again.
6862 * sol-thread.c (sol_thread_target::wait): Don't reference
6863 inferior_ptid.
6864 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6865 (sol_update_thread_list_callback): Use the current inferior's pid
6866 instead of inferior_ptid.
6867
196535a6
RO
68682020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6869
6870 * procfs.c: Cleanup many comments.
6871
6872 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6873 (AFTER_WATCHFLAG): Replace by value.
6874
6875 (MAIN_PROC_NAME_FORMAT): Inline ...
6876 (create_procinfo): ... here.
6877
6878 (procfs_debug_inferior): Remove SYS_exec handling.
6879 (syscall_is_exec): Likewise.
6880 (procfs_set_exec_trap): Likewise.
6881
6882 (syscall_is_lwp_exit): Inline in callers.
6883 (syscall_is_exit): Likewise.
6884 (syscall_is_exec): Likewise.
6885 (syscall_is_lwp_create): Likewise.
6886
6887 (invalidate_cache): Remove #if 0 code.
6888
6889 (make_signal_thread_runnable): Remove.
6890 (procfs_target::resume): Remove #if 0 code.
6891
cf6f3e86
RO
68922020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6893
6894 PR gdb/25939
6895 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6896 call ...
6897 (procfs_target::create_inferior): ... here.
6898
48e9cc84
PW
68992020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6900
6901 * exec.c (validate_exec_file): Ensure the build-id is up to
6902 date by calling reopen_exec_file (that checks file timestamp
6903 to decide to re-read the file).
6904
3922b302
PA
69052020-06-18 Pedro Alves <palves@redhat.com>
6906
6907 PR gdb/25412
6908 * gdbthread.h (delete_thread, delete_thread_silent)
6909 (find_thread_ptid): Update comments.
6910 * thread.c (current_thread_): New global.
6911 (is_current_thread): Move higher, and reimplement.
6912 (inferior_thread): Reimplement.
6913 (set_thread_exited): Use bool. Add assertions.
6914 (add_thread_silent): Simplify thread-reuse handling by always
6915 calling delete_thread.
6916 (delete_thread): Remove intro comment.
6917 (find_thread_ptid): Skip exited threads.
6918 (switch_to_thread_no_regs): Write to current_thread_.
6919 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6920 INFERIOR_PTID. Clear current_thread_.
6921
6dbdab44
PA
69222020-06-18 Pedro Alves <palves@redhat.com>
6923
6924 * aix-thread.c (pd_update): Use switch_to_thread.
6925
2da4b788
PA
69262020-06-18 Pedro Alves <palves@redhat.com>
6927
6928 * ravenscar-thread.c (ravenscar_thread_target): Update.
6929 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6930 (ravenscar_thread_target::add_active_thread): ... this. Don't
6931 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6932 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6933
50838d1b
PA
69342020-06-18 Pedro Alves <palves@redhat.com>
6935
6936 * nat/windows-nat.c (current_windows_thread): Remove.
6937 * nat/windows-nat.h (current_windows_thread): Remove.
6938 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6939 Adjust.
6940 (display_selectors): Adjust to fetch the current
6941 windows_thread_info based on inferior_ptid.
6942 (fake_create_process): No longer write to current_windows_thread.
6943 (windows_nat_target::get_windows_debug_event):
6944 Don't set inferior_ptid or current_windows_thread.
6945 (windows_nat_target::wait): Adjust to not rely on
6946 current_windows_thread.
6947 (do_initial_windows_stuff): Now a method of windows_nat_target.
6948 Switch to the last_ptid thread.
6949 (windows_nat_target::attach): Adjust.
6950 (windows_nat_target::detach): Use switch_to_no_thread instead of
6951 writing to inferior_ptid directly.
6952 (windows_nat_target::create_inferior): Adjust.
6953
31ce04e9
PA
69542020-06-18 Pedro Alves <palves@redhat.com>
6955
6956 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6957
1ee1a363
PA
69582020-06-18 Pedro Alves <palves@redhat.com>
6959
6960 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6961 after creating it, instead of writing to inferior_ptid. Don't
6962 write to inferior_ptid.
6963
6d350754
PA
69642020-06-18 Pedro Alves <palves@redhat.com>
6965
6966 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6967
5d971d48
PA
69682020-06-18 Pedro Alves <palves@redhat.com>
6969
6970 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6971 it, instead of writing to inferior_ptid.
6972
86e57d1b
PA
69732020-06-18 Pedro Alves <palves@redhat.com>
6974
6975 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6976 to inferior_ptid.
6977
f2e1c129
PA
69782020-06-18 Pedro Alves <palves@redhat.com>
6979
6980 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6981 instead of writing to inferior_ptid directly.
6982
60db1b85
PA
69832020-06-18 Pedro Alves <palves@redhat.com>
6984
6985 * corelow.c (core_target::close): Use switch_to_no_thread instead
6986 of writing to inferior_ptid directly.
6987 (add_to_thread_list, core_target_open): Use switch_to_thread
6988 instead of writing to inferior_ptid directly.
6989
fe7d6a8d
PA
69902020-06-18 Pedro Alves <palves@redhat.com>
6991
6992 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6993 inferior_ptid.
6994 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6995 inferior_ptid.
6996 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6997 inferior_ptid directly.
6998 (darwin_nat_target::init_thread_list): Switch to thread, instead
6999 of writing to inferior_ptid.
7000 (darwin_nat_target::attach): Don't write to inferior_ptid.
7001 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7002
975f8708
PA
70032020-06-18 Pedro Alves <palves@redhat.com>
7004
7005 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7006 thread.
7007 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7008 Instead use switch_to_thread.
7009 (gnu_nat_target::detach): Use switch_to_no_thread
7010 instead of writing to inferior_ptid directly. Used passed-in
7011 inferior instead of looking up the inferior by pid.
7012
1a204730
PA
70132020-06-18 Pedro Alves <palves@redhat.com>
7014
7015 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7016 inferior_ptid.
7017
ebe84f23
PA
70182020-06-18 Pedro Alves <palves@redhat.com>
7019
7020 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7021 inferior_ptid.
7022 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7023 thread.
7024 (nto_procfs_target::detach): Avoid referencing
7025 inferior_ptid. Use switch_to_no_thread instead of writing to
7026 inferior_ptid directly.
7027 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7028 instead of writing to inferior_ptid directly.
7029 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7030 to thread.
7031
191f02e5
PA
70322020-06-18 Pedro Alves <palves@redhat.com>
7033
7034 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7035 after creating it, instead of writing to inferior_ptid.
7036 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7037 to inferior_ptid directly.
7038 (gdbsim_target::wait): Don't write to inferior_ptid.
7039
0ac55310
PA
70402020-06-18 Pedro Alves <palves@redhat.com>
7041
7042 * remote.c (remote_target::remote_notice_new_inferior): Use
7043 switch_to_thread instead of writing to inferior_ptid directly.
7044 (remote_target::add_current_inferior_and_thread): Use
7045 switch_to_no_thread instead of writing to inferior_ptid directly.
7046 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7047 and switch_to_thread instead of using set_current_inferior or
7048 writing to inferior_ptid directly.
7049
5233f39b
PA
70502020-06-18 Pedro Alves <palves@redhat.com>
7051
7052 * tracectf.c (ctf_target_open): Switch to added thread instead of
7053 writing to inferior_ptid directly.
7054 (ctf_target::close): Use switch_to_no_thread instead of writing to
7055 inferior_ptid directly.
7056
087e161b
PA
70572020-06-18 Pedro Alves <palves@redhat.com>
7058
7059 * tracefile-tfile.c (tfile_target_open): Don't write to
7060 inferior_ptid directly, instead switch to added thread.
7061 (tfile_target::close): Use switch_to_no_thread instead of writing
7062 to inferior_ptid directly.
7063
7fb43e53
PA
70642020-06-18 Pedro Alves <palves@redhat.com>
7065
7066 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7067 (procfs_target::detach): Use switch_to_no_thread
7068 instead of writing to inferior_ptid directly.
7069 (do_attach): Change return type to void. Switch to the added
7070 thread.
7071 (procfs_target::create_inferior): Switch to the added thread.
7072 (procfs_do_thread_registers): Don't write to inferior_ptid.
7073
18493a00
PA
70742020-06-18 Pedro Alves <palves@redhat.com>
7075
7076 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7077 of writing to inferior_ptid.
7078 (scoped_restore_exited_inferior): Delete.
7079 (handle_vfork_child_exec_or_exit): Simplify using
7080 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7081 instead of writing to inferior_ptid.
7082 (THREAD_STOPPED_BY): Delete.
7083 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7084 (thread_stopped_by_hw_breakpoint): Delete.
7085 (save_waitstatus): Use
7086 scoped_restore_current_thread+switch_to_thread, and call
7087 target_stopped_by_watchpoint instead of
7088 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7089 instead of thread_stopped_by_sw_breakpoint, and
7090 target_stopped_by_hw_breakpoint instead of
7091 thread_stopped_by_hw_breakpoint.
7092 (handle_inferior_event)
7093 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7094 inferior_ptid directly, nor
7095 set_current_inferior/set_current_program_space. Use
7096 switch_to_thread / switch_to_inferior_no_thread instead.
7097
a0776b13
PA
70982020-06-18 Pedro Alves <palves@redhat.com>
7099
7100 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7101 instead of writing to inferior_ptid.
7102
6155c136
PA
71032020-06-18 Pedro Alves <palves@redhat.com>
7104
7105 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7106 added thread.
7107 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7108 to the added thread.
7109 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7110 instead of writing to inferior_ptid.
7111
c5316fc6
PA
71122020-06-18 Pedro Alves <palves@redhat.com>
7113
7114 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7115 (register_to_value_test): Mock a program_space too. Heap-allocate
7116 the address space. Don't write to inferior_ptid. Use
7117 switch_to_thread instead.
7118
8df01799
PA
71192020-06-18 Pedro Alves <palves@redhat.com>
7120
7121 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7122 Delete.
7123 (find_signalled_thread()): New, factored out from
7124 linux_make_corefile_notes and adjusted to handle exited threads.
7125 (linux_make_corefile_notes): Adjust to use the new
7126 find_signalled_thread.
7127
41792d68
PA
71282020-06-18 Pedro Alves <palves@redhat.com>
7129
7130 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7131 of saving/restoring inferior_ptid.
7132
612f258a
TT
71332020-06-17 Tom Tromey <tom@tromey.com>
7134
7135 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7136 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7137 declare.
7138 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7139
efb763a5
SM
71402020-06-15 Simon Marchi <simon.marchi@efficios.com>
7141
7142 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7143 of partial symtabs.
7144
2951f6c0
SM
71452020-06-17 Simon Marchi <simon.marchi@efficios.com>
7146
7147 * regformats/reg-arm.dat: Remove.
7148 * regformats/reg-bfin.dat: Remove.
7149 * regformats/reg-cris.dat: Remove.
7150 * regformats/reg-crisv32.dat: Remove.
7151 * regformats/reg-m32r.dat: Remove.
7152 * regformats/reg-tilegx.dat: Remove.
7153 * regformats/reg-tilegx32.dat: Remove.
7154
7d458ea5
SM
71552020-06-17 Simon Marchi <simon.marchi@efficios.com>
7156
7157 * features/Makefile (WHICH): Remove arm files.
7158 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7159 * regformats/arm/arm-with-neon.dat: Remove.
7160 * regformats/arm/arm-with-vfpv2.dat: Remove.
7161 * regformats/arm/arm-with-vfpv3.dat: Remove.
7162
3af96c0d
SM
71632020-06-17 Simon Marchi <simon.marchi@efficios.com>
7164
7165 * features/Makefile (XMLTOC): Remove rx.xml.
7166
b25e22fd
PA
71672020-06-17 Pedro Alves <palves@redhat.com>
7168
7169 * gdbthread.h (thread_control_state) <trap_expected> Update
7170 comments.
7171
a78a19b1
AB
71722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7173
7174 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7175 ada_language::lookup_symbol_nonlocal.
7176 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7177 (ada_language::lookup_symbol_nonlocal): New member function,
7178 implementation from ada_lookup_symbol_nonlocal.
7179 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7180 initializer.
7181 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7182 initializer.
7183 (cplus_language::lookup_symbol_nonlocal): New member function.
7184 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7185 (minimal_language_data) Likewise.
7186 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7187 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7188 initializer.
7189 (d_language::lookup_symbol_nonlocal): New member function.
7190 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7191 initializer.
7192 (f_language::lookup_symbol_nonlocal): New member function.
7193 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7194 initializer.
7195 * language.c (unknown_language_data): Likewise.
7196 (auto_language_data): Likewise.
7197 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7198 field.
7199 (language_defn::lookup_symbol_nonlocal): New member function.
7200 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7201 initializer.
7202 * objc-lang.c (objc_language_data): Likewise.
7203 * opencl-lang.c (opencl_language_data): Likewise.
7204 * p-lang.c (pascal_language_data): Likewise.
7205 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7206 rust_language::lookup_symbol_nonlocal.
7207 (rust_language_data): Delete la_lookup_symbol_nonlocal
7208 initializer.
7209 (rust_language::lookup_symbol_nonlocal): New member function,
7210 implementation from rust_lookup_symbol_nonlocal.
7211 * symtab.c (lookup_symbol_aux): Update call to
7212 lookup_symbol_nonlocal.
7213 (basic_lookup_symbol_nonlocal): Rename to...
7214 (language_defn::lookup_symbol_nonlocal): ...this, and update
7215 header comment. Remove language_defn parameter, and replace with
7216 uses of `this'.
7217 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7218
ebe2334e
AB
72192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7220
7221 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7222 initializer.
7223 (ada_language::value_print_inner): New member function.
7224 * c-lang.c (c_language_data): Delete la_value_print_inner
7225 initializer.
7226 (cplus_language_data): Likewise.
7227 (asm_language_data): Likewise.
7228 (minimal_language_data): Likewise.
7229 * d-lang.c (d_language_data): Likewise.
7230 (d_language::value_print_inner): New member function.
7231 * f-lang.c (f_language_data): Delete la_value_print_inner
7232 initializer.
7233 (f_language::value_print_inner): New member function.
7234 * f-lang.h (f_value_print_innner): Rename to...
7235 (f_value_print_inner): ...this (note spelling of 'inner').
7236 * f-valprint.c (f_value_print_innner): Rename to...
7237 (f_value_print_inner): ...this (note spelling of 'inner').
7238 * go-lang.c (go_language_data): Delete la_value_print_inner
7239 initializer.
7240 (go_language::value_print_inner): New member function.
7241 * language.c (language_defn::value_print_inner): Define new member
7242 function.
7243 (unk_lang_value_print_inner): Delete.
7244 (unknown_language_data): Delete la_value_print_inner initializer.
7245 (unknown_language::value_print_inner): New member function.
7246 (auto_language_data): Delete la_value_print_inner initializer.
7247 (auto_language::value_print_inner): New member function.
7248 * language.h (language_data): Delete la_value_print_inner field.
7249 (language_defn::value_print_inner): Delcare new member function.
7250 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7251 initializer.
7252 (m2_language::value_print_inner): New member function.
7253 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7254 initializer.
7255 * opencl-lang.c (opencl_language_data): Likewise.
7256 * p-lang.c (pascal_language_data): Likewise.
7257 (pascal_language::value_print_inner): New member function.
7258 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7259 initializer.
7260 (rust_language::value_print_inner): New member function.
7261 * valprint.c (do_val_print): Update call to value_print_inner.
7262
a1d1fa3e
AB
72632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7264
7265 * ada-lang.c (ada_language_data): Delete la_value_print
7266 initializer.
7267 (ada_language::value_print): New member function.
7268 * c-lang.c (c_language_data): Delete la_value_print 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_language_data): Likewise.
7274 * go-lang.c (go_language_data): Likewise.
7275 * language.c (unk_lang_value_print): Delete.
7276 (language_defn::value_print): Define new member function.
7277 (unknown_language_data): Delete la_value_print initializer.
7278 (unknown_language::value_print): New member function.
7279 (auto_language_data): Delete la_value_print initializer.
7280 (auto_language::value_print): New member function.
7281 * language.h (language_data): Delete la_value_print field.
7282 (language_defn::value_print): Declare new member function.
7283 (LA_VALUE_PRINT): Update call to value_print.
7284 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7285 * objc-lang.c (objc_language_data): Likewise.
7286 * opencl-lang.c (opencl_language_data): Likewise.
7287 * p-lang.c (pascal_language_data): Likewise.
7288 (pascal_language::value_print): New member function.
7289 * rust-lang.c (rust_language_data): Delete la_value_print
7290 initializer.
7291
f16a9f57
AB
72922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7293
7294 * ada-lang.c (ada_watch_location_expression): Rename to
7295 ada_language::watch_location_expression.
7296 (ada_language_data): Delete la_watch_location_expression
7297 initializer.
7298 (ada_language::watch_location_expression): New member function,
7299 implementation from ada_watch_location_expression.
7300 * breakpoint.c (watch_command_1): Update call to
7301 watch_location_expression.
7302 * c-lang.c (c_watch_location_expression): Rename to
7303 language_defn::watch_location_expression.
7304 (c_language_data): Delete la_watch_location_expression
7305 initializer.
7306 (cplus_language_data): Likewise.
7307 (asm_language_data): Likewise.
7308 (minimal_language_data): Likewise.
7309 * c-lang.h (c_watch_location_expression): Delete declaration.
7310 * d-lang.c (d_language_data): Delete la_watch_location_expression
7311 initializer.
7312 * f-lang.c (f_language_data): Likewise.
7313 * go-lang.c (go_language_data): Likewise.
7314 * language.c (language_defn::watch_location_expression): Member
7315 function implementation from c_watch_location_expression.
7316 (unknown_language_data): Delete la_watch_location_expression
7317 initializer.
7318 (auto_language_data): Likewise.
7319 * language.h (language_data): Delete la_watch_location_expression
7320 field.
7321 (language_defn::watch_location_expression): Declare new member
7322 function.
7323 * m2-lang.c (m2_language_data): Delete
7324 la_watch_location_expression initializer.
7325 * objc-lang.c (objc_language_data): Likewise.
7326 * opencl-lang.c (opencl_language_data): Likewise.
7327 * p-lang.c (pascal_language_data): Likewise.
7328 * rust-lang.c (rust_watch_location_expression): Rename to
7329 rust_language::watch_location_expression.
7330 (rust_language_data): Delete la_watch_location_expression
7331 initializer.
7332 (rust_language::watch_location_expression): New member function,
7333 implementation from rust_watch_location_expression.
7334
7e56227d
AB
73352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7336
7337 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7338 ada_language::collect_symbol_completion_matches.
7339 (ada_language_data): Delete la_collect_symbol_completion_matches
7340 initializer.
7341 (ada_language::collect_symbol_completion_matches): New member
7342 function, implementation from
7343 ada_collect_symbol_completion_matches.
7344 * c-lang.c (c_language_data): Delete
7345 la_collect_symbol_completion_matches initializer.
7346 (cplus_language_data): Likewise.
7347 (asm_language_data): Likewise.
7348 (minimal_language_data): Likewise.
7349 * d-lang.c (d_language_data): Likewise.
7350 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7351 f_language::collect_symbol_completion_matches.
7352 (f_language_data): Delete la_collect_symbol_completion_matches
7353 initializer.
7354 (f_language::collect_symbol_completion_matches) New member
7355 function, implementation from f_collect_symbol_completion_matches.
7356 * go-lang.c (go_language_data): Delete
7357 la_collect_symbol_completion_matches initializer.
7358 * language.c (unknown_language_data): Likewise.
7359 (auto_language_data): Likewise.
7360 * language.h (language_data): Delete
7361 la_collect_symbol_completion_matches field.
7362 (language_defn::collect_symbol_completion_matches): New member
7363 function.
7364 * m2-lang.c (m2_language_data): Delete
7365 la_collect_symbol_completion_matches initializer.
7366 * objc-lang.c (objc_language_data): Likewise.
7367 * opencl-lang.c (opencl_language_data): Likewise.
7368 * p-lang.c (pascal_language_data): Likewise.
7369 * rust-lang.c (rust_language_data): Likewise.
7370 * symtab.c (default_collect_symbol_completion_matches): Delete.
7371 (collect_symbol_completion_matches): Update call to
7372 collect_symbol_completion_matches.
7373 (collect_symbol_completion_matches_type): Likewise.
7374 * symtab.h (default_collect_symbol_completion_matches): Delete
7375 declaration.
7376
53fc67f8
AB
73772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7378
7379 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7380 (ada_language_data): Delete la_word_break_characters initializer.
7381 (ada_language::word_break_characters): New member function.
7382 * c-lang.c (c_language_data): Delete la_word_break_characters
7383 initializer.
7384 (cplus_language_data): Likewise.
7385 (asm_language_data): Likewise.
7386 (minimal_language_data): Likewise.
7387 * completer.c: Update global comment.
7388 (advance_to_expression_complete_word_point): Update call to
7389 word_break_characters.
7390 (complete_files_symbols): Likewise.
7391 (complete_line_internal_1): Likewise.
7392 (default_completer_handle_brkchars): Likewise.
7393 (skip_quoted_chars): Likewise.
7394 * d-lang.c (d_language_data): Delete la_word_break_characters
7395 initializer.
7396 * f-lang.c (f_word_break_characters): Delete.
7397 (f_language_data): Delete la_word_break_characters initializer.
7398 (f_language::word_break_characters): New member function.
7399 * go-lang.c (go_language_data): Delete la_word_break_characters
7400 initializer.
7401 * language.c (unknown_language_data): Likewise.
7402 (auto_language_data): Likewise.
7403 * language.h (default_word_break_characters): Move declaration to
7404 earlier in the file.
7405 (language_data): Delete la_word_break_characters field.
7406 (language_defn::word_break_characters): New member function.
7407 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7408 initializer.
7409 * objc-lang.c (objc_language_data): Likewise.
7410 * opencl-lang.c (opencl_language_data): Likewise.
7411 * p-lang.c (pascal_language_data): Likewise.
7412 * rust-lang.c (rust_language_data): Likewise.
7413
c9debfb9
AB
74142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7415
7416 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7417 (ada_language_data): Delete la_get_symbol_name_matcher
7418 initializer.
7419 (language_defn::get_symbol_name_matcher_inner): New member
7420 function.
7421 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7422 initializer.
7423 (cplus_language_data): Likewise.
7424 (cplus_language::get_symbol_name_matcher_inner): New member
7425 function.
7426 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7427 (minimal_language_data): Likewise.
7428 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7429 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7430 initializer.
7431 * dictionary.c (iter_match_first_hashed): Update call to
7432 get_symbol_name_matcher.
7433 (iter_match_next_hashed): Likewise.
7434 (iter_match_next_linear): Likewise.
7435 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7436 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7437 initializer.
7438 (f_language::get_symbol_name_matcher_inner): New member function.
7439 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7440 initializer.
7441 * language.c (default_symbol_name_matcher): Update header comment,
7442 make static.
7443 (language_defn::get_symbol_name_matcher): New definition.
7444 (language_defn::get_symbol_name_matcher_inner): Likewise.
7445 (get_symbol_name_matcher): Delete.
7446 (unknown_language_data): Delete la_get_symbol_name_matcher
7447 initializer.
7448 (auto_language_data): Likewise.
7449 * language.h (language_data): Delete la_get_symbol_name_matcher
7450 field.
7451 (language_defn::get_symbol_name_matcher): New member function.
7452 (language_defn::get_symbol_name_matcher_inner): Likewise.
7453 (default_symbol_name_matcher): Delete declaration.
7454 * linespec.c (find_methods): Update call to
7455 get_symbol_name_matcher.
7456 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7457 initializer.
7458 * minsyms.c (lookup_minimal_symbol): Update call to
7459 get_symbol_name_matcher.
7460 (iterate_over_minimal_symbols): Likewise.
7461 * objc-lang.c (objc_language_data): Delete
7462 la_get_symbol_name_matcher initializer.
7463 * opencl-lang.c (opencl_language_data): Likewise.
7464 * p-lang.c (pascal_language_data): Likewise.
7465 * psymtab.c (psymbol_name_matches): Update call to
7466 get_symbol_name_matcher.
7467 * rust-lang.c (rust_language_data): Delete
7468 la_get_symbol_name_matcher initializer.
7469 * symtab.c (symbol_matches_search_name): Update call to
7470 get_symbol_name_matcher.
7471 (compare_symbol_name): Likewise.
7472
9a49ad8c
AB
74732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7474
7475 * ada-lang.c (ada_language_data): Delete la_compute_program
7476 initializer.
7477 * c-lang.c (c_language_data): Likewise.
7478 (c_language::compute_program): New member function.
7479 (cplus_language_data): Delete la_compute_program initializer.
7480 (cplus_language::compute_program): New member function.
7481 (asm_language_data): Delete la_compute_program initializer.
7482 (minimal_language_data): Likewise.
7483 * c-lang.h (c_compute_program): Update comment.
7484 (cplus_compute_program): Likewise.
7485 * compile/compile-c-support.c (c_compute_program): Likewise.
7486 (cplus_compute_program): Likewise.
7487 * compile/compile.c (compile_to_object): Update call to
7488 la_compute_program.
7489 * d-lang.c (d_language_data): Delete la_compute_program
7490 initializer.
7491 * f-lang.c (f_language_data): Likewise.
7492 * go-lang.c (go_language_data): Likewise.
7493 * language.c (unknown_language_data): Likewise.
7494 (auto_language_data): Likewise.
7495 * language.h (language_data): Delete la_compute_program field.
7496 (language_defn::compute_program): New member function.
7497 * m2-lang.c (m2_language_data): Delete la_compute_program
7498 initializer.
7499 * objc-lang.c (objc_language_data): Likewise.
7500 * opencl-lang.c (opencl_language_data): Likewise.
7501 * p-lang.c (pascal_language_data): Likewise.
7502 * rust-lang.c (rust_language_data): Likewise.
7503
eff93b4d
AB
75042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7505
7506 * ada-lang.c (ada_language_data) Delete
7507 la_class_name_from_physname initializer.
7508 * c-lang.c (c_language_data): Likewise.
7509 (cplus_language_data): Likewise.
7510 (cplus_language::class_name_from_physname): New member function.
7511 (asm_language_data): Delete la_class_name_from_physname
7512 initializer.
7513 (minimal_language_data): Likewise.
7514 * d-lang.c (d_language_data): Likewise.
7515 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7516 method on language_defn class.
7517 (guess_full_die_structure_name): Likewise.
7518 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7519 initializer.
7520 * go-lang.c (go_language_data): Likewise.
7521 * language.c (language_class_name_from_physname): Delete.
7522 (unk_lang_class_name): Delete.
7523 (unknown_language_data): Delete la_class_name_from_physname
7524 initializer.
7525 (auto_language_data): Likewise.
7526 * language.h (language_data): Delete la_class_name_from_physname
7527 field.
7528 (language_defn::class_name_from_physname): New function.
7529 (language_class_name_from_physname): Delete declaration.
7530 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7531 initializer.
7532 * objc-lang.c (objc_language_data): Likewise.
7533 * opencl-lang.c (opencl_language_data): Likewise.
7534 * p-lang.c (pascal_language_data): Likewise.
7535 * rust-lang.c (rust_language_data): Likewise.
7536
de543742
TT
75372020-06-16 Tom Tromey <tom@tromey.com>
7538
7539 * tui/tui-data.h (STATUS_NAME): New macro.
7540 * tui/tui-layout.c (tui_remove_some_windows)
7541 (initialize_known_windows, tui_register_window)
7542 (tui_layout_split::remove_windows, initialize_layouts)
7543 (tui_new_layout_command): Don't use hard-coded window names.
7544
a350efd4
TT
75452020-06-16 Tom Tromey <tom@tromey.com>
7546
7547 PR tui/25348:
7548 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7549 tui_initialize_readline. Only run once. Call rl_initialize.
7550 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7551 tui_initialize_readline.
7552 * tui/tui-io.c (tui_setup_io): Call
7553 tui_ensure_readline_initialized.
7554 * tui/tui-interp.c (tui_interp::init): Update.
7555
39ec0490
TT
75562020-06-16 Tom Tromey <tom@tromey.com>
7557
7558 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7559 Also preserve the status window.
7560
d2d1ea20
TT
75612020-06-16 Tom Tromey <tom@tromey.com>
7562
7563 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7564 where m_window==nullptr.
7565
66920317
TT
75662020-06-15 Tom Tromey <tromey@adacore.com>
7567
7568 * windows-nat.c (windows_nat::handle_output_debug_string):
7569 Update.
7570 (windows_nat::handle_ms_vc_exception): Update.
7571 * target.h (target_read_string): Change API.
7572 * target.c (target_read_string): Change API.
7573 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7574 Update.
7575 * solib-frv.c (frv_current_sos): Update.
7576 * solib-dsbt.c (dsbt_current_sos): Update.
7577 * solib-darwin.c (darwin_current_sos): Update.
7578 * linux-thread-db.c (inferior_has_bug): Update.
7579 * expprint.c (print_subexp_standard): Update.
7580 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7581 (ada_exception_message_1): Update.
7582
a5d871dd
TT
75832020-06-15 Tom Tromey <tromey@adacore.com>
7584
7585 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7586
670e35fa
TT
75872020-06-15 Tom Tromey <tromey@adacore.com>
7588
7589 * valprint.c (read_string): Update comment.
7590 * target.c (MIN): Remove.
7591 (target_read_string): Rewrite.
7592
f5272a3b
TT
75932020-06-15 Tom Tromey <tromey@adacore.com>
7594
7595 * corefile.c (read_memory_string): Remove.
7596 * ada-valprint.c (ada_value_print_ptr): Update.
7597 * ada-lang.h (ada_tag_name): Change return type.
7598 * ada-lang.c (type_from_tag): Update.
7599 (ada_tag_name_from_tsd): Change return type. Use
7600 target_read_string.
7601 (ada_tag_name): Likewise.
7602 * gdbcore.h (read_memory_string): Don't declare.
7603
2c074f49
HD
76042020-06-14 Hannes Domani <ssbssa@yahoo.de>
7605
7606 * symtab.c (rbreak_command): Ignore Windows drive colon.
7607
6a17d503
SM
76082020-06-12 Simon Marchi <simon.marchi@efficios.com>
7609
7610 * NEWS: Mention removed GDBserver host support.
7611
453c733f
NC
76122020-06-12 Nelson Chu <nelson.chu@sifive.com>
7613
7614 * features/riscv/rebuild-csr-xml.sh: Updated.
7615
2b4e6a3f
TT
76162020-06-11 Tom Tromey <tom@tromey.com>
7617
7618 PR gdb/18318:
7619 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7620
4412332f
JG
76212020-06-09 Jonny Grant <jg@jguk.org>
76222020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7623
7624 * main.c (captured_main_1): Don't print new line after help.
7625 (print_gdb_help): add mailing list and IRC channel information
7626 to --help. Add new lines between items in the footer. Remove
7627 quotes around bug url.
7628
2f33032a
KS
76292020-06-11 Keith Seitz <keiths@redhat.com>
7630
7631 PR gdb/21356
7632 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7633 Resolve typedefs for type length calculations.
7634
7ab96794
TV
76352020-06-10 Tom de Vries <tdevries@suse.de>
7636
7637 PR ada/24713
7638 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7639 (write_psymbols): Enable .gdb_index for ada.
7640 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7641 ada.
7642
e5f3ece2
TV
76432020-06-10 Tom de Vries <tdevries@suse.de>
7644
7645 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7646 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7647 namei" instead of "const char *name" argument.
7648 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7649 dw2_symtab_iter_init.
7650
940da03e
SM
76512020-06-08 Simon Marchi <simon.marchi@efficios.com>
7652
7653 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7654 to use type::field and field::type instead.
7655
b6cdac4b
SM
76562020-06-08 Simon Marchi <simon.marchi@efficios.com>
7657
7658 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7659 to use field::type instead.
7660
5d14b6e5
SM
76612020-06-08 Simon Marchi <simon.marchi@efficios.com>
7662
7663 * gdbtypes.h (struct field) <type, set_type>: New methods.
7664 Rename `type` field to...
7665 <m_type>: ... this. Change references throughout to use type or
7666 set_type methods.
7667 (FIELD_TYPE): Use field::type. Change call sites that modify
7668 the field's type to use field::set_type instead.
7669
3d967001
SM
76702020-06-08 Simon Marchi <simon.marchi@efficios.com>
7671
7672 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7673 to use type::index_type instead.
7674
262abc0d
SM
76752020-06-08 Simon Marchi <simon.marchi@efficios.com>
7676
7677 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7678 methods.
7679 (TYPE_INDEX_TYPE): Use type::index_type.
7680 * gdbtypes.c (create_array_type_with_stride): Likewise.
7681
82836c92
TT
76822020-06-07 Tom Tromey <tom@tromey.com>
7683
7684 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7685 parameter.
7686 (generic_value_print): Update.
7687
940dace9
AB
76882020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7689
7690 Revert commit 982a38f60b0.
7691 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7692
982a38f6
AB
76932020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7694
7695 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7696 avoid use after free.
7697
82f06518
TV
76982020-06-05 Tom de Vries <tdevries@suse.de>
7699
7700 * NEWS: Fix typos.
7701
f8c41851
SM
77022020-06-04 Simon Marchi <simon.marchi@efficios.com>
7703
7704 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7705 the per_bfd object.
7706 (dwarf2_read_debug_names): Likewise.
7707 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7708 object when re-using a per_bfd object with an index.
7709
f9b5d5ea
TV
77102020-06-03 Tom de Vries <tdevries@suse.de>
7711
7712 PR symtab/26046
7713 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7714 children for C++.
7715 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7716 DW_TAG_subprogram.
7717
f6eee2d0
AB
77182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7719
7720 * ada-lang.c (ada_language_data): Delete skip_trampoline
7721 initializer.
7722 * c-lang.c (c_language_data): Likewise.
7723 (cplus_language_data): Likewise.
7724 (cplus_language::skip_trampoline): New member function.
7725 (asm_language_data): Delete skip_trampoline initializer.
7726 (minimal_language_data): Likewise.
7727 * d-lang.c (d_language_data): Likewise.
7728 * f-lang.c (f_language_data): Likewise.
7729 * go-lang.c (go_language_data): Likewise.
7730 * language.c (unk_lang_trampoline): Delete function.
7731 (skip_language_trampoline): Update.
7732 (unknown_language_data): Delete skip_trampoline initializer.
7733 (auto_language_data): Likewise.
7734 * language.h (language_data): Delete skip_trampoline field.
7735 (language_defn::skip_trampoline): New function.
7736 * m2-lang.c (m2_language_data): Delete skip_trampoline
7737 initializer.
7738 * objc-lang.c (objc_skip_trampoline): Delete function, move
7739 implementation to objc_language::skip_trampoline.
7740 (objc_language_data): Delete skip_trampoline initializer.
7741 (objc_language::skip_trampoline): New member function with
7742 implementation from objc_skip_trampoline.
7743 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7744 initializer.
7745 * p-lang.c (pascal_language_data): Likewise.
7746 * rust-lang.c (rust_language_data): Likewise.
7747
0a50df5d
AB
77482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7749
7750 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7751 (ada_language::demangle): New member function.
7752 * c-lang.c (c_language_data): Delete la_demangle initializer.
7753 (cplus_language_data): Delete la_demangle initializer.
7754 (cplus_language::demangle): New member function.
7755 (asm_language_data): Delete la_demangle initializer.
7756 (minimal_language_data): Delete la_demangle initializer.
7757 * d-lang.c (d_language_data): Delete la_demangle initializer.
7758 (d_language::demangle): New member function.
7759 * f-lang.c (f_language_data): Delete la_demangle initializer.
7760 (f_language::demangle): New member function.
7761 * go-lang.c (go_language_data): Delete la_demangle initializer.
7762 (go_language::demangle): New member function.
7763 * language.c (language_demangle): Update.
7764 (unk_lang_demangle): Delete.
7765 (unknown_language_data): Delete la_demangle initializer.
7766 (unknown_language::demangle): New member function.
7767 (auto_language_data): Delete la_demangle initializer.
7768 (auto_language::demangle): New member function.
7769 * language.h (language_data): Delete la_demangle field.
7770 (language_defn::demangle): New function.
7771 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7772 * objc-lang.c (objc_language_data): Delete la_demangle
7773 initializer.
7774 (objc_language::demangle): New member function.
7775 * opencl-lang.c (opencl_language_data): Delete la_demangle
7776 initializer.
7777 * p-lang.c (pascal_language_data): Likewise.
7778 * rust-lang.c (rust_language_data): Likewise.
7779 (rust_language::demangle): New member function.
7780
fbfb0a46
AB
77812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7782
7783 * ada-lang.c (ada_language_data): Delete la_print_type
7784 initializer.
7785 (ada_language::print_type): New member function.
7786 * c-lang.c (c_language_data): Delete la_print_type initializer.
7787 (c_language::print_type): New member function.
7788 (cplus_language_data): Delete la_print_type initializer.
7789 (cplus_language::print_type): New member function.
7790 (asm_language_data): Delete la_print_type initializer.
7791 (asm_language::print_type): New member function.
7792 (minimal_language_data): Delete la_print_type initializer.
7793 (minimal_language::print_type): New member function.
7794 * d-lang.c (d_language_data): Delete la_print_type initializer.
7795 (d_language::print_type): New member function.
7796 * f-lang.c (f_language_data): Delete la_print_type initializer.
7797 (f_language::print_type): New member function.
7798 * go-lang.c (go_language_data): Delete la_print_type initializer.
7799 (go_language::print_type): New member function.
7800 * language.c (unk_lang_print_type): Delete.
7801 (unknown_language_data): Delete la_print_type initializer.
7802 (unknown_language::print_type): New member function.
7803 (auto_language_data): Delete la_print_type initializer.
7804 (auto_language::print_type): New member function.
7805 * language.h (language_data): Delete la_print_type field.
7806 (language_defn::print_type): New function.
7807 (LA_PRINT_TYPE): Update.
7808 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7809 (m2_language::print_type): New member function.
7810 * objc-lang.c (objc_language_data): Delete la_print_type
7811 initializer.
7812 (objc_language::print_type): New member function.
7813 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7814 to opencl_language::print_type.
7815 (opencl_language_data): Delete la_print_type initializer.
7816 (opencl_language::print_type): New member function, implementation
7817 from opencl_print_type.
7818 * p-lang.c (pascal_language_data): Delete la_print_type
7819 initializer.
7820 (pascal_language::print_type): New member function.
7821 * rust-lang.c (rust_print_type): Delete, implementation moved to
7822 rust_language::print_type.
7823 (rust_language_data): Delete la_print_type initializer.
7824 (rust_language::print_type): New member function, implementation
7825 from rust_print_type.
7826
6f827019
AB
78272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7828
7829 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7830 implementation moves to...
7831 (ada_language::sniff_from_mangled_name): ...here. Update return
7832 type.
7833 (ada_language_data): Delete la_sniff_from_mangled_name
7834 initializer.
7835 * c-lang.c (c_language_data): Likewise.
7836 (cplus_language_data): Likewise.
7837 (cplus_language::sniff_from_mangled_name): New member function,
7838 implementation taken from gdb_sniff_from_mangled_name.
7839 (asm_language_data): Delete la_sniff_from_mangled_name
7840 initializer.
7841 (minimal_language_data): Likewise.
7842 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7843 implementation moves to cplus_language::sniff_from_mangled_name.
7844 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7845 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7846 moves to...
7847 (d_language::sniff_from_mangled_name): ...here.
7848 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7849 * f-lang.c (f_language_data): Likewise.
7850 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7851 moves to...
7852 (go_language::sniff_from_mangled_name): ...here.
7853 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7854 * language.c (language_sniff_from_mangled_name): Delete.
7855 (unknown_language_data): Delete la_sniff_from_mangled_name
7856 initializer.
7857 (auto_language_data): Likewise.
7858 * language.h (language_data): Delete la_sniff_from_mangled_name
7859 field.
7860 (language_defn::sniff_from_mangled_name): New function.
7861 (language_sniff_from_mangled_name): Delete declaration.
7862 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7863 field.
7864 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7865 implementation moves to...
7866 (objc_language::sniff_from_mangled_name): ...here.
7867 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7868 * opencl-lang.c (opencl_language_data): Likewise.
7869 * p-lang.c (pascal_language_data): Likewise.
7870 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7871 implementation moves to...
7872 (rust_language::sniff_from_mangled_name): ...here.
7873 (rust_language_data): Delete la_sniff_from_mangled_name
7874 initializer.
7875 * symtab.c (symbol_find_demangled_name): Call
7876 sniff_from_mangled_name member function.
7877
fb8006fd
AB
78782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7879
7880 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7881 initializer.
7882 * c-lang.c (c_language_data): Likewise.
7883 (cplus_language_data): Likewise.
7884 (cplus_language::search_name_hash): New member function.
7885 (asm_language_data): Delete la_search_name_hash initializer.
7886 (minimal_language_data): Likewise.
7887 * d-lang.c (d_language_data): Likewise.
7888 * dictionary.c (default_search_name_hash): Rename to...
7889 (language_defn::search_name_hash): ...this.
7890 * f-lang.c (f_language_data): Likewise.
7891 (f_language::search_name_hash): New member function.
7892 * go-lang.c (go_language_data): Delete la_search_name_hash
7893 initializer.
7894 * language.c (unknown_language_data): Likewise.
7895 (auto_language_data): Likewise.
7896 * language.h (struct language_data): Delete la_search_name_hash
7897 field.
7898 (language_defn::search_name_hash): Declare new member function.
7899 (default_search_name_hash): Delete declaration.
7900 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7901 initializer.
7902 * objc-lang.c (objc_language_data): Likewise.
7903 * opencl-lang.c (opencl_language_data): Likewise.
7904 * p-lang.c (pascal_language_data): Likewise.
7905 * rust-lang.c (rust_language_data): Likewise.
7906 * symtab.c (search_name_hash): Update call.
7907
8e25bafe
AB
79082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7909
7910 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7911 initializer.
7912 * c-lang.c (class compile_instance): Declare.
7913 (c_language_data): Delete la_get_compile_instance initializer.
7914 (c_language::get_compile_instance): New member function.
7915 (cplus_language_data): Delete la_get_compile_instance initializer.
7916 (cplus_language::get_compile_instance): New member function.
7917 (asm_language_data): Delete la_get_compile_instance initializer.
7918 (minimal_language_data): Likewise.
7919 * c-lang.h (c_get_compile_context): Update comment.
7920 (cplus_get_compile_context): Update comment.
7921 * compile/compile.c (compile_to_object): Update calls, don't rely
7922 on function pointer being NULL.
7923 * d-lang.c (d_language_data): Delete la_get_compile_instance
7924 initializer.
7925 * f-lang.c (f_language_data): Likewise.
7926 * go-lang.c (go_language_data): Likewise.
7927 * language.c (unknown_language_data): Likewise.
7928 (auto_language_data): Likewise.
7929 * language.h (language_data): Delete la_get_compile_instance field.
7930 (language_defn::get_compile_instance): New member function.
7931 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7932 initializer.
7933 * objc-lang.c (objc_language_data): Likewise.
7934 * opencl-lang.c (opencl_language_data): Likewise.
7935 * p-lang.c (pascal_language_data): Likewise.
7936 * rust-lang.c (rust_language_data): Likewise.
7937
4009ee92
AB
79382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7939
7940 * ada-lang.c (ada_add_all_symbols): Update comment.
7941 (ada_iterate_over_symbols): Delete, move implementation to...
7942 (ada_language::iterate_over_symbols): ...here, a new member
7943 function, rewrite to use range based for loop.
7944 (ada_language_data): Delete la_iterate_over_symbols initializer.
7945 * c-lang.c (c_language_data): Likewise.
7946 (cplus_language_data): Likewise.
7947 (asm_language_data): Likewise.
7948 (minimal_language_data): Likewise.
7949 * d-lang.c (d_language_data): Likewise.
7950 * f-lang.c (f_language_data): Likewise.
7951 * go-lang.c (go_language_data): Likewise.
7952 * language.c (unknown_language_data): Likewise.
7953 (auto_language_data): Likewise.
7954 * language.h (language_data): Delete la_iterate_over_symbols field.
7955 (language_defn::iterate_over_symbols): New member function.
7956 (LA_ITERATE_OVER_SYMBOLS): Update.
7957 * linespec.c (iterate_over_all_matching_symtabs): Update.
7958 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7959 initializer.
7960 * objc-lang.c (objc_language_data): Likewise.
7961 * opencl-lang.c (opencl_language_data): Likewise.
7962 * p-lang.c (pascal_language_data): Likewise.
7963 * rust-lang.c (rust_language_data): Likewise.
7964
54f4ca46
AB
79652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7966
7967 * ada-lang.c (ada_language_data): Delete
7968 la_lookup_transparent_type initializer.
7969 * c-lang.c (c_language_data): Likewise.
7970 (cplus_language_data): Likewise.
7971 (cplus_language::lookup_transparent_type): New member function.
7972 (asm_language_data): Delete la_lookup_transparent_type
7973 initializer.
7974 (minimal_language_data): Likewise.
7975 * d-lang.c (d_language_data): Likewise.
7976 * f-lang.c (f_language_data): Likewise.
7977 * go-lang.c (go_language_data): Likewise.
7978 * language.c (unknown_language_data): Likewise.
7979 (auto_language_data): Likewise.
7980 * language.h (struct language_data): Delete
7981 la_lookup_transparent_type field.
7982 (language_defn::lookup_transparent_type): New member function.
7983 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7984 initializer.
7985 * objc-lang.c (objc_language_data): Likewise.
7986 * opencl-lang.c (opencl_language_data): Likewise.
7987 * p-lang.c (pascal_language_data): Likewise.
7988 * rust-lang.c (rust_language_data): Likewise.
7989 * symtab.c (symbol_matches_domain): Update call.
7990
1fb314aa
AB
79912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7992
7993 * ada-lang.c (ada_language_arch_info): Delete function, move
7994 implementation to...
7995 (ada_language::language_arch_info): ...here, a new member
7996 function.
7997 (ada_language_data): Delete la_language_arch_info.
7998 * c-lang.c (c_language_data): Likewise.
7999 (c_language::language_arch_info): New member function.
8000 (cplus_language_arch_info): Delete function, move
8001 implementation to...
8002 (cplus_language::language_arch_info): ...here, a new member
8003 function.
8004 (cplus_language_data): Delete la_language_arch_info.
8005 (asm_language_data): Likewise.
8006 (asm_language::language_arch_info): New member function.
8007 (minimal_language_data): Delete la_language_arch_info.
8008 (minimal_language::language_arch_info): New member function.
8009 * d-lang.c (d_language_arch_info): Delete function, move
8010 implementation to...
8011 (d_language::language_arch_info): ...here, a new member
8012 function.
8013 (d_language_data): Delete la_language_arch_info.
8014 * f-lang.c (f_language_arch_info): Delete function, move
8015 implementation to...
8016 (f_language::language_arch_info): ...here, a new member
8017 function.
8018 (f_language_data): Delete la_language_arch_info.
8019 * go-lang.c (go_language_arch_info): Delete function, move
8020 implementation to...
8021 (go_language::language_arch_info): ...here, a new member
8022 function.
8023 (go_language_data): Delete la_language_arch_info.
8024 * language.c (unknown_language_data): Likewise.
8025 (unknown_language::language_arch_info): New member function.
8026 (auto_language_data): Delete la_language_arch_info.
8027 (auto_language::language_arch_info): New member function.
8028 (language_gdbarch_post_init): Update call to
8029 la_language_arch_info.
8030 * language.h (language_data): Delete la_language_arch_info
8031 function pointer.
8032 (language_defn::language_arch_info): New function.
8033 * m2-lang.c (m2_language_arch_info): Delete function, move
8034 implementation to...
8035 (m2_language::language_arch_info): ...here, a new member
8036 function.
8037 (m2_language_data): Delete la_language_arch_info.
8038 * objc-lang.c (objc_language_arch_info): Delete function, move
8039 implementation to...
8040 (objc_language::language_arch_info): ...here, a new member
8041 function.
8042 (objc_language_data): Delete la_language_arch_info.
8043 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8044 implementation to...
8045 (opencl_language::language_arch_info): ...here, a new member
8046 function.
8047 (opencl_language_data): Delete la_language_arch_info.
8048 * p-lang.c (pascal_language_arch_info): Delete function, move
8049 implementation to...
8050 (pascal_language::language_arch_info): ...here, a new member
8051 function.
8052 (pascal_language_data): Delete la_language_arch_info.
8053 * rust-lang.c (rust_language_arch_info): Delete function, move
8054 implementation to...
8055 (rust_language::language_arch_info): ...here, a new member
8056 function.
8057 (rust_language_data): Delete la_language_arch_info.
8058
48448202
AB
80592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8060
8061 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8062 initializer.
8063 * c-lang.c (c_language_data): Likewise.
8064 (cplus_language_data): Likewise.
8065 (cplus_language::pass_by_reference_info): New method.
8066 (asm_language_data): Delete la_pass_by_reference initializer.
8067 (minimal_language_data): Likewise.
8068 * cp-abi.c (cp_pass_by_reference): Remove use of
8069 default_pass_by_reference.
8070 * d-lang.c (d_language_data): Likewise.
8071 * f-lang.c (f_language_data): Likewise.
8072 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8073 default_pass_by_reference.
8074 * go-lang.c (go_language_data): Likewise.
8075 * language.c (language_pass_by_reference): Update.
8076 (default_pass_by_reference): Delete.
8077 (unknown_language_data): Delete la_pass_by_reference
8078 initializer.
8079 (auto_language_data): Likewise.
8080 * language.h (struct language_data): Delete la_pass_by_reference
8081 field.
8082 (language_defn::pass_by_reference_info): New member function.
8083 (default_pass_by_reference): Delete declaration.
8084 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8085 initializer.
8086 * objc-lang.c (objc_language_data): Likewise.
8087 * opencl-lang.c (opencl_language_data): Likewise.
8088 * p-lang.c (pascal_language_data): Likewise.
8089 * rust-lang.c (rust_language_data): Likewise.
8090
15e5fd35
AB
80912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8092
8093 * ada-lang.c (ada_read_var_value): Delete function, move
8094 implementation to...
8095 (ada_language::read_var_value): ...here.
8096 (ada_language_data): Delete la_read_var_value initializer.
8097 * c-lang.c (c_language_data): Likewise.
8098 (cplus_language_data): Likewise.
8099 (minimal_language_data): Likewise.
8100 * d-lang.c (d_language_data): Likewise.
8101 * f-lang.c (f_language_data): Likewise.
8102 * findvar.c (default_read_var_value): Rename to...
8103 (language_defn::read_var_value): ...this.
8104 * findvar.c (read_var_value): Update header comment, and change to
8105 call member function instead of function pointer.
8106 * go-lang.c (go_language_data): Likewise.
8107 * language.c (unknown_language_data): Delete la_read_var_value
8108 initializer.
8109 (auto_language_data): Likewise.
8110 * language.h (struct language_data): Delete la_read_var_value
8111 field.
8112 (language_defn::read_var_value): New member function.
8113 (default_read_var_value): Delete declaration.
8114 * m2-lang.c (m2_language_data): Delete la_read_var_value
8115 initializer.
8116 * objc-lang.c (objc_language_data): Likewise.
8117 * opencl-lang.c (opencl_language_data): Likewise.
8118 * p-lang.c (pascal_language_data): Likewise.
8119 * rust-lang.c (rust_language_data): Likewise.
8120 * value.h (default_read_var_value): Delete declaration.
8121
5bd40f2a
AB
81222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8123
8124 * ada-lang.c (ada_print_array_index): Delete function, move
8125 implementation to...
8126 (ada_language::print_array_index): ...here.
8127 (ada_language_data): Delete la_print_array_index initializer.
8128 * c-lang.c (c_language_data): Likewise.
8129 (cplus_language_data): Likewise.
8130 (minimal_language_data): Likewise.
8131 * d-lang.c (d_language_data): Likewise.
8132 * f-lang.c (f_language_data): Likewise.
8133 * go-lang.c (go_language_data): Likewise.
8134 * language.c (default_print_array_index): Delete function, move
8135 implementation to...
8136 (language_defn::print_array_index): ...here.
8137 (unknown_language_data): Delete la_print_array_index initializer.
8138 (auto_language_data): Likewise.
8139 * language.h (struct language_data): Delete la_print_array_index
8140 field.
8141 (language_defn::print_array_index): New member function.
8142 (LA_PRINT_ARRAY_INDEX): Update.
8143 (default_print_array_index): Delete declaration.
8144 * m2-lang.c (m2_language_data): Delete la_print_array_index
8145 initializer.
8146 * objc-lang.c (objc_language_data): Likewise.
8147 * opencl-lang.c (opencl_language_data): Likewise.
8148 * p-lang.c (pascal_language_data): Likewise.
8149 * rust-lang.c (rust_language_data): Likewise.
8150
0874fd07
AB
81512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8152
8153 * gdb/ada-lang.c (ada_language_defn): Convert to...
8154 (ada_language_data): ...this.
8155 (class ada_language): New class.
8156 (ada_language_defn): New static global.
8157 * gdb/c-lang.c (c_language_defn): Convert to...
8158 (c_language_data): ...this.
8159 (class c_language): New class.
8160 (c_language_defn): New static global.
8161 (cplus_language_defn): Convert to...
8162 (cplus_language_data): ...this.
8163 (class cplus_language): New class.
8164 (cplus_language_defn): New static global.
8165 (asm_language_defn): Convert to...
8166 (asm_language_data): ...this.
8167 (class asm_language): New class.
8168 (asm_language_defn): New static global.
8169 (minimal_language_defn): Convert to...
8170 (minimal_language_data): ...this.
8171 (class minimal_language): New class.
8172 (minimal_language_defn): New static global.
8173 * gdb/d-lang.c (d_language_defn): Convert to...
8174 (d_language_data): ...this.
8175 (class d_language): New class.
8176 (d_language_defn): New static global.
8177 * gdb/f-lang.c (f_language_defn): Convert to...
8178 (f_language_data): ...this.
8179 (class f_language): New class.
8180 (f_language_defn): New static global.
8181 * gdb/go-lang.c (go_language_defn): Convert to...
8182 (go_language_data): ...this.
8183 (class go_language): New class.
8184 (go_language_defn): New static global.
8185 * gdb/language.c (unknown_language_defn): Remove declaration.
8186 (current_language): Initialize to nullptr, real initialization is
8187 moved to _initialize_language.
8188 (languages): Delete global.
8189 (language_defn::languages): Define.
8190 (set_language_command): Use language_defn::languages.
8191 (set_language): Likewise.
8192 (range_error): Likewise.
8193 (language_enum): Likewise.
8194 (language_def): Likewise.
8195 (add_set_language_command): Use language_def::languages for the
8196 language list, and language_def to lookup language pointers.
8197 (skip_language_trampoline): Use language_defn::languages.
8198 (unknown_language_defn): Convert to...
8199 (unknown_language_data): ...this.
8200 (class unknown_language): New class.
8201 (unknown_language_defn): New static global.
8202 (auto_language_defn): Convert to...
8203 (auto_language_data): ...this.
8204 (class auto_language): New class.
8205 (auto_language_defn): New static global.
8206 (language_gdbarch_post_init): Use language_defn::languages.
8207 (_initialize_language): Initialize current_language.
8208 * gdb/language.h (struct language_defn): Rename to...
8209 (struct language_data): ...this.
8210 (struct language_defn): New.
8211 (auto_language_defn): Delete.
8212 (unknown_language_defn): Delete.
8213 (minimal_language_defn): Delete.
8214 (ada_language_defn): Delete.
8215 (asm_language_defn): Delete.
8216 (c_language_defn): Delete.
8217 (cplus_language_defn): Delete.
8218 (d_language_defn): Delete.
8219 (f_language_defn): Delete.
8220 (go_language_defn): Delete.
8221 (m2_language_defn): Delete.
8222 (objc_language_defn): Delete.
8223 (opencl_language_defn): Delete.
8224 (pascal_language_defn): Delete.
8225 (rust_language_defn): Delete.
8226 * gdb/m2-lang.c (m2_language_defn): Convert to...
8227 (m2_language_data): ...this.
8228 (class m2_language): New class.
8229 (m2_language_defn): New static global.
8230 * gdb/objc-lang.c (objc_language_defn): Convert to...
8231 (objc_language_data): ...this.
8232 (class objc_language): New class.
8233 (objc_language_defn): New static global.
8234 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8235 (opencl_language_data): ...this.
8236 (class opencl_language): New class.
8237 (opencl_language_defn): New static global.
8238 * gdb/p-lang.c (pascal_language_defn): Convert to...
8239 (pascal_language_data): ...this.
8240 (class pascal_language): New class.
8241 (pascal_language_defn): New static global.
8242 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8243 language pointer, update comment format.
8244 * gdb/rust-lang.c (rust_language_defn): Convert to...
8245 (rust_language_data): ...this.
8246 (class rust_language): New class.
8247 (rust_language_defn): New static global.
8248
1313c56e
AB
82492020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8250
8251 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8252 member variable.
8253 <m_stmt_at_address>: New member variable.
8254 (lnp_state_machine::record_line): Don't record some lines, update
8255 tracking of is_stmt at the same address.
8256 (lnp_state_machine::lnp_state_machine): Initialise new member
8257 variables.
8258
b7ed9f3d
ST
82592020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8260
8261 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8262 "-include gnu-nat-mig.h".
8263 * gnu-nat-mig.h: New file.
8264 * gnu-nat.c: Include "gnu-nat-mig.h".
8265 (exc_server, msg_reply_server, notify_server,
8266 process_reply_server): Remove declarations.
8267
14a8ad62
ST
82682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8269
8270 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8271 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8272 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8273 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8274 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8275 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8276 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8277 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8278 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8279 to gnu_nat_target class.
8280 * gnu-nat.c: Likewise.
8281 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8282 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8283 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8284 object.
8285 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8286 instead of `gnu_target'.
8287
0af5e106
ST
82882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8289
8290 * i386-gnu-tdep.c: Include "gdbcore.h"
8291 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8292 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8293 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8294 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8295 i386_gnu_sigcontext_addr): New functions
8296 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8297 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8298 tdep.
8299
078f2fc9
ST
83002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8301
8302 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8303 before fork_inferior call. Avoid calling it if target_is_pushed returns
8304 true.
8305
53dff92c
ST
83062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8307
8308 * gnu-nat.h (gnu_target): New variable declaration.
8309 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8310 gnu_target.
8311 * gnu-nat.c (gnu_target): New variable.
8312 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8313 add_thread_silent, and add_thread calls.
8314 (gnu_nat_target::create_inferior): Pass gnu_target to
8315 add_thread_silent, thread_change_ptid call.
8316 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8317 call.
8318
5a8b8627
ST
83192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8320
8321 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8322 (gnu_nat_target::find_memory_regions): Remove unused
8323 `old_address' variable.
8324
366f550a
ST
83252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8326
8327 * gnu-nat.c: Include "gdbarch.h".
8328
f14871bf
ST
83292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8330
8331 * reply_mig_hack.awk (Error return): Cast function through
8332 void *, to bypass compiler function call check.
8333
c6887cfb
ST
83342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8335
8336 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8337 $(srcdir)/reply_mig_hack.awk.
8338
6930bffe
ST
83392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8340
8341 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8342
112c22ed
JG
83432020-05-30 Jonny Grant <jg@jguk.org>
8344
8345 * configure.ac (ACX_BUGURL): change bug URL to https.
8346
f68f85b5
PA
83472020-05-30 Pedro Alves <palves@redhat.com>
8348
8349 * cp-support.c (replace_typedefs_template): New.
8350 (replace_typedefs_qualified_name): Handle
8351 DEMANGLE_COMPONENT_TEMPLATE.
8352
976ca316
SM
83532020-05-29 Simon Marchi <simon.marchi@efficios.com>
8354
8355 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8356 dwarf2/index-cache.h, dwarf2/index-write.c,
8357 dwarf2/index-write.h, dwarf2/line-header.c,
8358 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8359 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8360 variables and fields from `dwarf2_per_objfile` to just
8361 `per_objfile` throughout.
8362
989ade05
SM
83632020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8364
8365 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8366 <push_dwarf_reg_entry_value>: Add comment.
8367
c47bae85
KB
83682020-05-28 Kevin Buettner <kevinb@redhat.com>
8369 Keith Seitz <keiths@redhat.com>
8370
8371 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8372 instead of PyEval_ReleaseLock.
8373 (class gdbpy_gil): Move to earlier in file.
8374 (finalize_python): Set gdb_python_initialized.
8375 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8376 when not initialized.
8377
44486dcf
SM
83782020-05-28 Simon Marchi <simon.marchi@efficios.com>
8379
8380 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8381 <push_dwarf_reg_entry_value>: Remove assert. Override
8382 per_objfile with caller_per_objfile.
8383
f030440d
TV
83842020-05-28 Tom de Vries <tdevries@suse.de>
8385
8386 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8387 PR gold/15646 workaround to symbol kind "type".
8388
f0fbb768
TT
83892020-05-27 Tom Tromey <tromey@adacore.com>
8390
8391 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8392
af0b2a3e
TT
83932020-05-27 Tom Tromey <tromey@adacore.com>
8394
8395 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8396 Use htab_find_with_hash.
8397 <add_abbrev>: Remove "abbrev_number" parameter.
8398 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8399 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8400 (hash_abbrev): Add comment.
8401 (abbrev_table::lookup_abbrev): Move to header file.
8402 (abbrev_table::read): Update.
8403
7d00ffec
TT
84042020-05-27 Tom Tromey <tromey@adacore.com>
8405
8406 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8407 method.
8408 <canonical_name>: New member.
8409 <raw_name>: Rename from "name".
8410 (partial_die_info): Initialize canonical_name.
8411 (scan_partial_symbols): Check raw_name.
8412 (partial_die_parent_scope, partial_die_full_name)
8413 (add_partial_symbol, add_partial_subprogram)
8414 (add_partial_enumeration, load_partial_dies): Use "name" method.
8415 (partial_die_info::name): New method.
8416 (partial_die_info::read, guess_partial_die_structure_name)
8417 (partial_die_info::fixup): Update.
8418
697bba18
TT
84192020-05-27 Tom Tromey <tromey@adacore.com>
8420
8421 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8422 <get_ref_die_offset>: Inline.
8423 <get_ref_die_offset_complaint>: New method.
8424 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8425 (attribute::get_ref_die_offset_complaint): Rename from
8426 get_ref_die_offset. Just issue complaint.
8427
c17ace43
HD
84282020-05-27 Hannes Domani <ssbssa@yahoo.de>
8429
8430 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8431
96445f0b
HD
84322020-05-27 Hannes Domani <ssbssa@yahoo.de>
8433
8434 * exec.c (exec_file_attach): Use errno value of first openp failure.
8435
ac637ec3
HD
84362020-05-27 Hannes Domani <ssbssa@yahoo.de>
8437
8438 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8439 Don't close thread handle.
8440
17ee85fc
TT
84412020-05-27 Tom Tromey <tom@tromey.com>
8442 Simon Marchi <simon.marchi@efficios.com>
8443
8444 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8445 shared_ptr.
8446 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8447 member.
8448 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8449 dwarf2_per_bfd_objfile_data_key>: New globals.
8450 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8451 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8452 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8453 shared.
8454 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8455 short-circuit when sharing.
8456 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8457 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8458
39b16f87
SM
84592020-05-27 Simon Marchi <simon.marchi@efficios.com>
8460
8461 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8462 to...
8463 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8464 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8465
fcf23d5b
SM
84662020-05-27 Simon Marchi <simon.marchi@efficios.com>
8467
8468 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8469 build_name_components, find_name_components_bounds>:
8470 Add per_objfile parameter.
8471 (struct mapped_index) <symbol_name_at>: Likewise.
8472 (struct mapped_debug_names): Remove constructor.
8473 <dwarf2_per_objfile>: Remove field.
8474 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8475 (mapped_index_base::find_name_components_bounds,
8476 mapped_index_base::build_name_components,
8477 dw2_expand_symtabs_matching_symbol): Likewise.
8478 (class mock_mapped_index) <symbol_name_at>: Likewise.
8479 (check_match): Likewise.
8480 (check_find_bounds_finds): Likewise.
8481 (test_mapped_index_find_name_component_bounds): Update.
8482 (CHECK_MATCH): Update.
8483 (dw2_expand_symtabs_matching): Update.
8484 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8485 per_objfile parameter.
8486 <find_vec_in_debug_names>: Likewise.
8487 <m_per_objfile>: New field.
8488 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8489 parameter.
8490 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8491 (dw2_debug_names_iterator::next): Update.
8492 (dw2_debug_names_lookup_symbol): Update.
8493 (dw2_debug_names_expand_symtabs_for_function): Update.
8494 (dw2_debug_names_map_matching_symbols): Update.
8495 (dw2_debug_names_expand_symtabs_matching): Update.
8496 (dwarf2_read_debug_names): Update.
8497
7188ed02
SM
84982020-05-27 Simon Marchi <simon.marchi@efficios.com>
8499
8500 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8501 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8502 move to dwarf2_per_objfile.
8503 <read_in_chain>: Remove.
8504 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8505 remove_all_cus, age_comp_units>: New methods.
8506 <m_dwarf2_cus>: New member.
8507 (struct dwarf2_per_cu_data) <cu>: Remove.
8508 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8509 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8510 moved to methods of dwarf2_per_objfile.
8511 (dwarf2_clear_marks): Remove.
8512 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8513 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8514 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8515 (dwarf2_per_objfile::remove_all_cus): New.
8516 (class free_cached_comp_units) <~free_cached_comp_units>:
8517 Update.
8518 (load_cu): Update.
8519 (dw2_do_instantiate_symtab): Adjust.
8520 (fill_in_sig_entry_from_dwo_entry): Adjust.
8521 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8522 (cutu_reader::cutu_reader): Likewise.
8523 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8524 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8525 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8526 and dwarf2_per_objfile::age_comp_units.
8527 (load_partial_comp_unit): Update.
8528 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8529 (process_queue): Likewise.
8530 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8531 backlink.
8532 (dwarf2_read_addr_index): Likewise.
8533 (follow_die_offset): Likewise.
8534 (dwarf2_fetch_die_loc_sect_off): Likewise.
8535 (dwarf2_fetch_constant_bytes): Likewise.
8536 (dwarf2_fetch_die_type_sect_off): Likewise.
8537 (follow_die_sig_1): Likewise.
8538 (load_full_type_unit): Likewise.
8539 (read_signatured_type): Likewise.
8540 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8541 (dwarf2_cu::~dwarf2_cu): Remove.
8542 (dwarf2_per_objfile::get_cu): New.
8543 (dwarf2_per_objfile::set_cu): New.
8544 (age_cached_comp_units): Rename to...
8545 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8546 to std::unordered_map.
8547 (free_one_cached_comp_unit): Rename to...
8548 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8549 to std::unordered_map.
8550 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8551 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8552 a dwarf2_per_objfile in data.
8553 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8554 (dwarf2_clear_marks): Remove.
8555
2e671100
SM
85562020-05-27 Simon Marchi <simon.marchi@efficios.com>
8557
8558 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8559 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8560 (init_tu_and_read_dwo_dies): Likewise.
8561 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8562 (cutu_reader::cutu_reader): Likewise.
8563 (load_partial_comp_unit): Likewise.
8564 (process_psymtab_comp_unit): Update.
8565 (build_type_psymtabs_1): Update.
8566 (process_skeletonless_type_unit): Update.
8567 (load_full_comp_unit): Update.
8568 (find_partial_die): Update.
8569 (dwarf2_read_addr_index): Update.
8570 (read_signatured_type): Update.
8571
2e6a9f79
SM
85722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8573
8574 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8575 m_header_read_in>: New fields.
8576 <get_header>: New method.
8577 * dwarf2/read.c (per_cu_header_read_in): Remove.
8578 (dwarf2_per_cu_data::get_header): New.
8579 (dwarf2_per_cu_data::addr_size): Update.
8580 (dwarf2_per_cu_data::offset_size): Update.
8581 (dwarf2_per_cu_data::ref_addr_size): Update.
8582
1b555f17
SM
85832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8584
8585 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8586 (dw2_do_instantiate_symtab): Update.
8587 (queue_and_load_all_dwo_tus): Change parameter from
8588 dwarf2_per_cu_data to dwarf2_cu.
8589 (dwarf2_fetch_die_loc_sect_off): Update.
8590 (dwarf2_fetch_constant_bytes): Update.
8591 (dwarf2_fetch_die_type_sect_off): Update.
8592
8fc0b21d
SM
85932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8594
8595 * dwarf2/read.c (process_full_comp_unit,
8596 process_full_type_unit): Remove per_cu, per_objfile paramters.
8597 Add dwarf2_cu parameter.
8598 (process_queue): Update.
8599
168c9250
SM
86002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8601
8602 * dwarf2/read.c (create_cu_from_index_list): Replace
8603 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8604 (create_cus_from_index_list): Likewise.
8605 (create_cus_from_index): Likewise.
8606 (create_signatured_type_table_from_index): Likewise.
8607 (create_cus_from_debug_names_list): Likewise.
8608 (create_cus_from_debug_names): Likewise.
8609 (dwarf2_read_gdb_index): Update.
8610 (dwarf2_read_debug_names): Update.
8611
e286671b
TT
86122020-05-27 Tom Tromey <tom@tromey.com>
8613 Simon Marchi <simon.marchi@efficios.com>
8614
8615 * dwarf2/read.h (struct dwarf2_per_objfile)
8616 <get_type_for_signatured_type, set_type_for_signatured_type>:
8617 New methods.
8618 <m_type_map>: New member.
8619 (struct signatured_type) <type>: Remove.
8620 * dwarf2/read.c
8621 (dwarf2_per_objfile::get_type_for_signatured_type,
8622 dwarf2_per_objfile::set_type_for_signatured_type): New.
8623 (get_signatured_type): Use new methods.
8624
8adb8487
TT
86252020-05-27 Tom Tromey <tom@tromey.com>
8626 Simon Marchi <simon.marchi@efficios.com>
8627
8628 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8629 (struct dwarf2_per_objfile) <type_units>: New member.
8630 <get_type_unit_group_unshareable>: New method.
8631 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8632 num_symtabs, symtabs>: Remove; move to
8633 type_unit_group_unshareable.
8634 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8635 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8636 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8637
127bbf4b
SM
86382020-05-27 Simon Marchi <simon.marchi@efficios.com>
8639
8640 * dwarf2/read.h (struct dwarf2_per_cu_data):
8641 <dwarf2_per_objfile>: Remove.
8642 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8643 dwarf2_per_objfile.
8644 (create_signatured_type_table_from_index): Likewise.
8645 (create_signatured_type_table_from_debug_names): Likewise.
8646 (create_debug_type_hash_table): Likewise.
8647 (fill_in_sig_entry_from_dwo_entry): Likewise.
8648 (create_type_unit_group): Likewise.
8649 (read_comp_units_from_section): Likewise.
8650 (create_cus_hash_table): Likewise.
8651
f6e649dd
SM
86522020-05-27 Simon Marchi <simon.marchi@efficios.com>
8653
8654 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8655 dwarf2_per_cu_data::dwarf2_per_objfile.
8656 (compute_compunit_symtab_includes): Likewise.
8657 (dwarf2_cu::start_symtab): Likewise.
8658
aa66c379
SM
86592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8660
8661 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8662 parameter.
8663 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8664 (read_namespace_alias): Update.
8665 (lookup_die_type): Update.
8666 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8667 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8668 Update.
8669 (disassemble_dwarf_expression): Update.
8670
120ce1b5
SM
86712020-05-27 Simon Marchi <simon.marchi@efficios.com>
8672
8673 * dwarf2/read.h (struct dwarf2_queue_item): Add
8674 dwarf2_per_objfile parameter, assign new parameter.
8675 <per_objfile>: New field.
8676 * dwarf2/read.c (free_one_cached_comp_unit): Add
8677 dwarf2_per_objfile parameter.
8678 (queue_comp_unit): Likewise.
8679 (dw2_do_instantiate_symtab): Update.
8680 (process_psymtab_comp_unit): Update.
8681 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8682 (process_imported_unit_die): Update.
8683 (queue_and_load_dwo_tu): Update.
8684 (follow_die_offset): Update.
8685 (follow_die_sig_1): Update.
8686
9f47c707
SM
86872020-05-27 Simon Marchi <simon.marchi@efficios.com>
8688
8689 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8690 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8691 (read_call_site_scope): Assign per_objfile.
8692 (dwarf2_per_cu_data::objfile): Remove.
8693 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8694 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8695 dwarf2_per_objfile parameter.
8696 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8697 dwarf2_per_objfile parameter.
8698 (dwarf_expr_reg_to_entry_parameter): Add output
8699 dwarf2_per_objfile parameter.
8700 (locexpr_get_frame_base): Update.
8701 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8702 <push_dwarf_reg_entry_value>: Update.
8703 <call_site_to_target_addr>: Update.
8704 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8705 parameter.
8706 (value_of_dwarf_reg_entry): Update.
8707 (rw_pieced_value): Update.
8708 (indirect_synthetic_pointer): Update.
8709 (dwarf2_evaluate_property): Update.
8710 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8711 parameter.
8712 (locexpr_read_variable): Update.
8713 (locexpr_get_symbol_read_needs): Update.
8714 (loclist_read_variable): Update.
8715
14095eb3
SM
87162020-05-27 Simon Marchi <simon.marchi@efficios.com>
8717
8718 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8719 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8720 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8721 parameter.
8722 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8723 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8724 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8725 parameter.
8726 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8727 sect_variable_value): Add dwarf2_per_objfile parameter.
8728 (class dwarf_evaluate_loc_desc) <dwarf_call,
8729 dwarf_variable_value>: Update.
8730 (fetch_const_value_from_synthetic_pointer): Add
8731 dwarf2_per_objfile parameter.
8732 (fetch_const_value_from_synthetic_pointer): Update.
8733 (coerced_pieced_ref): Update.
8734 (class symbol_needs_eval_context) <dwarf_call,
8735 dwarf_variable_value>: Update.
8736 (dwarf2_compile_expr_to_ax): Update.
8737
3c3cd3d4
SM
87382020-05-27 Simon Marchi <simon.marchi@efficios.com>
8739
8740 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8741 parameter.
8742 (dwarf2_evaluate_loc_desc_full): Update.
8743
82ca3f51
SM
87442020-05-27 Simon Marchi <simon.marchi@efficios.com>
8745
8746 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8747 parameter.
8748 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8749 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8750 dwarf2_per_objfile parameter.
8751 (decode_debug_loc_dwo_addresses): Likewise.
8752 (dwarf2_find_location_expression): Update.
8753 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8754 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8755 parameter.
8756 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8757 parameter.
8758 (locexpr_describe_location_1): Likewise.
8759 (locexpr_describe_location): Update.
8760
4b167ea1
SM
87612020-05-27 Simon Marchi <simon.marchi@efficios.com>
8762
8763 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8764 Remove.
8765 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8766 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8767 (dwarf2_compile_property_to_c): Update.
8768 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8769 use text offset from objfile.
8770 (locexpr_tracepoint_var_ref): Update.
8771 (locexpr_generate_c_location): Update.
8772 (loclist_describe_location): Update.
8773 (loclist_tracepoint_var_ref): Update.
8774 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8775 dwarf2_per_objfile parameter.
8776 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8777 use text offset from objfile.
8778 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8779
89b07335
SM
87802020-05-27 Simon Marchi <simon.marchi@efficios.com>
8781
8782 * dwarf2/expr.h (struct dwarf_expr_context)
8783 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8784 <offset>: Remove.
8785 <per_objfile>: New member.
8786 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8787 dwarf2_per_objfile parameter. Don't set offset, set
8788 per_objfile.
8789 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8790 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8791 a dwarf2_per_objfile object instead of an offset.
8792 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8793 constructor.
8794 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8795 to dwarf2_expr_executor constructor. Don't set offset.
8796 (dwarf2_fetch_cfa_info): Update.
8797 (struct dwarf2_frame_cache) <text_offset>: Remove.
8798 <per_objfile>: New field.
8799 (dwarf2_frame_cache): Update.
8800 (dwarf2_frame_prev_register): Update.
8801 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8802 <dwarf_evaluate_loc_desc>: Add constructor.
8803 (dwarf2_evaluate_loc_desc_full): Update.
8804 (dwarf2_locexpr_baton_eval): Update.
8805 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8806 Add constructor.
8807 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8808
293e7e51
SM
88092020-05-27 Simon Marchi <simon.marchi@efficios.com>
8810
8811 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8812 addr_sized_int_type>: Move to dwarf2_cu.
8813 <int_type>: Move to dwarf2_per_objfile.
8814 (struct dwarf2_per_objfile) <int_type>: Move here.
8815 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8816 addr_sized_int_type>: Move here.
8817 (read_func_scope): Update.
8818 (read_array_type): Update.
8819 (read_tag_string_type): Update.
8820 (attr_to_dynamic_prop): Update.
8821 (dwarf2_per_cu_data::int_type): Rename to...
8822 (dwarf2_per_objfile::int_type): ... this.
8823 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8824 (dwarf2_cu::addr_sized_int_type): ... this.
8825 (read_subrange_type): Update.
8826 (dwarf2_per_cu_data::addr_type): Rename to...
8827 (dwarf2_cu::addr_type): ... this.
8828 (set_die_type): Update.
8829
64874a40
SM
88302020-05-27 Simon Marchi <simon.marchi@efficios.com>
8831
8832 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8833 data through per_cu->cu.
8834
4ab09049
SM
88352020-05-27 Simon Marchi <simon.marchi@efficios.com>
8836
8837 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8838 dwarf2_per_cu_data parameter fo dwarf2_cu.
8839 (lookup_dwo_type_unit): Likewise.
8840 (read_cutu_die_from_dwo): Likewise.
8841 (lookup_dwo_unit): Likewise.
8842 (open_and_init_dwo_file): Likewise.
8843 (lookup_dwo_cutu): Likewise.
8844 (lookup_dwo_comp_unit): Likewise.
8845 (lookup_dwo_type_unit): Likewise.
8846 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8847 (cutu_reader::cutu_reader): Update.
8848
47b14e86
SM
88492020-05-27 Simon Marchi <simon.marchi@efficios.com>
8850
8851 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8852 parameter.
8853 (process_full_type_unit): Likewise.
8854 (process_queue): Update.
8855
43182c09
SM
88562020-05-27 Simon Marchi <simon.marchi@efficios.com>
8857
8858 * dwarf2/read.c (recursively_compute_inclusions): Add
8859 dwarf2_per_objfile parameter.
8860 (compute_compunit_symtab_includes): Likewise.
8861 (process_cu_includes): Update.
8862
7aa104c4
SM
88632020-05-27 Simon Marchi <simon.marchi@efficios.com>
8864
8865 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8866 parameter.
8867 (create_type_unit_group): Update.
8868 (process_psymtab_comp_unit_reader): Update.
8869 (build_type_psymtabs_reader): Update.
8870
e3beb21d
SM
88712020-05-27 Simon Marchi <simon.marchi@efficios.com>
8872
8873 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8874 object through m_this_cu->cu.
8875
d460f660
SM
88762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8877
8878 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8879 the info parameter.
8880 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8881
ab432490
SM
88822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8883
8884 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8885 per_objfile parameter.
8886 (load_full_type_unit): Add per_objfile parameter.
8887 (read_signatured_type): Likewise.
8888 (load_full_comp_unit): Likewise.
8889 (load_cu): Likewise.
8890 (dw2_do_instantiate_symtab): Likewise.
8891 (dw2_get_file_names): Likewise.
8892 (dw2_map_symtabs_matching_filename): Update.
8893 (dw_expand_symtabs_matching_file_matcher): Update.
8894 (dw2_map_symbol_filenames): Update.
8895 (process_psymtab_comp_unit): Add per_objfile parameter.
8896 (build_type_psymtabs_1): Update.
8897 (process_skeletonless_type_unit): Update.
8898 (dwarf2_build_psymtabs_hard): Update.
8899 (load_partial_comp_unit): Add per_objfile parameter.
8900 (scan_partial_symbols): Update.
8901 (load_full_comp_unit): Add per_objfile parameter.
8902 (process_imported_unit_die): Update.
8903 (create_cus_hash_table): Update.
8904 (find_partial_die): Update.
8905 (dwarf2_read_addr_index): Update.
8906 (follow_die_offset): Update.
8907 (dwarf2_fetch_die_loc_sect_off): Update.
8908 (dwarf2_fetch_constant_bytes): Update.
8909 (dwarf2_fetch_die_type_sect_off): Update.
8910 (follow_die_sig_1): Update.
8911 (load_full_type_unit): Add per_objfile parameter.
8912 (read_signatured_type): Likewise.
8913
313bad1b
SM
89142020-05-27 Simon Marchi <simon.marchi@efficios.com>
8915
8916 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8917 of objfile_name.
8918
c3699833
SM
89192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8920
8921 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8922 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8923 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8924 field.
8925 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8926 (create_cus_from_index): Update.
8927 (dwarf2_read_gdb_index): Update.
8928 (create_cus_from_debug_names): Update.
8929 (dwarf2_read_debug_names): Update.
8930 (get_abbrev_section_for_cu): Update.
8931 (create_all_comp_units): Update.
8932 (read_attribute_value): Update.
8933 (get_debug_line_section): Update.
8934 * dwarf2/index-cache.c (index_cache::store): Update.
8935 * dwarf2/index-write.c (save_gdb_index_command): Update.
8936 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8937
1859c670
SM
89382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8939
8940 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8941 member.
8942 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8943 dwarf2_per_cu_data::per_bfd.
8944 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8945 (create_type_unit_group): Likewise.
8946 (queue_comp_unit): Remove reference to
8947 per_cu->dwarf2_per_objfile.
8948 (maybe_queue_comp_unit): Likewise.
8949 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8950 (create_cus_hash_table): Assign new field.
8951
5e22e966
SM
89522020-05-27 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * dwarf2/read.c: Replace
8955 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8956 dwarf2_cu->per_objfile throughout.
8957
97a1449a
SM
89582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8959
8960 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8961 parameter, don't use per_cu->dwarf2_per_objfile.
8962 (dw2_instantiate_symtab): Likewise.
8963 (dw2_find_last_source_symtab): Update.
8964 (dw2_map_expand_apply): Update.
8965 (dw2_lookup_symbol): Update.
8966 (dw2_expand_symtabs_for_function): Update.
8967 (dw2_expand_all_symtabs): Update.
8968 (dw2_expand_symtabs_with_fullname): Update.
8969 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8970 don't use per_cu->dwarf2_per_objfile.
8971 (dw2_expand_marked_cus): Update.
8972 (dw2_find_pc_sect_compunit_symtab): Update.
8973 (dw2_debug_names_lookup_symbol): Update.
8974 (dw2_debug_names_expand_symtabs_for_function): Update.
8975 (dw2_debug_names_map_matching_symbols): Update.
8976 (dwarf2_psymtab::expand_psymtab): Update.
8977
9e021579
SM
89782020-05-27 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8981 <per_objfile>: New member.
8982 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8983 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8984 call to dwarf2_cu.
8985 (cutu_reader::cutu_reader): Update.
8986 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8987
ae090bdb
SM
89882020-05-27 Simon Marchi <simon.marchi@efficios.com>
8989
8990 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8991 struct dwarf2_per_objfile.
8992 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8993 dwarf2_per_bfd.
8994 * dwarf2/read.c (set_die_type): Update.
8995 (get_die_type_at_offset): Update.
8996
af758d11
SM
89972020-05-27 Tom Tromey <tom@tromey.com>
8998 Simon Marchi <simon.marchi@efficios.com>
8999
9000 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9001 method.
9002 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9003 get_symtab, set_symtab>: New methods.
9004 <m_symtabs>: New field.
9005 (struct dwarf2_psymtab): Derive from partial_symtab.
9006 <readin_p, get_compunit_symtab>: Declare methods.
9007 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9008 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9009 New methods.
9010 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9011 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9012 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9013 (dw2_symtab_iter_next, dw2_print_stats)
9014 (dw2_expand_symtabs_with_fullname)
9015 (dw2_expand_symtabs_matching_one)
9016 (dw_expand_symtabs_matching_file_matcher)
9017 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9018 (dw2_debug_names_iterator::next)
9019 (dw2_debug_names_map_matching_symbols)
9020 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9021 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9022 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9023 New methods.
9024 (get_compunit_symtab, process_full_comp_unit)
9025 (process_full_type_unit): Update.
9026 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9027
5989a64e
SM
90282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9029
9030 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9031 then introduce a new dwarf2_per_objfile type.
9032 <read_line_string>: Move to the new dwarf2_per_objfile type.
9033 <objfile>: Likewise.
9034 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9035 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9036 dwarf2_per_objfile->per_bfd.
9037 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9038 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9039 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9040 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9041 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9042 (dwarf2_per_objfile::locate_sections): Rename to...
9043 (dwarf2_per_bfd::locate_sections): ... this.
9044 (dwarf2_per_objfile::get_cutu): Rename to...
9045 (dwarf2_per_bfd::get_cutu): ... this.
9046 (dwarf2_per_objfile::get_cu): Rename to...
9047 (dwarf2_per_bfd::get_cu): ... this.
9048 (dwarf2_per_objfile::get_tu): Rename to...
9049 (dwarf2_per_bfd::get_tu): ... this.
9050 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9051 (dwarf2_per_bfd::allocate_per_cu): ... this.
9052 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9053 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9054 (get_gdb_index_contents_ftype): Change parameter from
9055 dwarf2_per_objfile to dwarf2_per_bfd.
9056 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9057 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9058
a50264ba
TT
90592020-05-27 Tom Tromey <tom@tromey.com>
9060 Simon Marchi <simon.marchi@efficios.com>
9061
9062 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9063 (allocate_piece_closure): Set "per_objfile" member.
9064 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9065 (locexpr_describe_location, loclist_describe_location): Use new
9066 member.
9067 * dwarf2/read.c (read_call_site_scope)
9068 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9069 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9070 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9071 handle_data_member_location): Set per_objfile member.
9072 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9073 member.
9074 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9075
d3473f0c
TT
90762020-05-27 Tom Tromey <tom@tromey.com>
9077
9078 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9079 allocate_signatured_type>: Declare new methods.
9080 <m_num_psymtabs>: New member.
9081 (struct dwarf2_per_cu_data) <index>: New member.
9082 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9083 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9084 (create_cu_from_index_list): Use allocate_per_cu.
9085 (create_signatured_type_table_from_index)
9086 (create_signatured_type_table_from_debug_names)
9087 (create_debug_type_hash_table, add_type_unit)
9088 (read_comp_units_from_section): Use allocate_signatured_type.
9089
5717c425
TT
90902020-05-27 Tom Tromey <tom@tromey.com>
9091
9092 * psymtab.c (partial_map_expand_apply)
9093 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9094 (psym_lookup_global_symbol_language)
9095 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9096 (psym_print_stats, psym_expand_symtabs_for_function)
9097 (psym_map_symbol_filenames, psym_map_matching_symbols)
9098 (psym_expand_symtabs_matching)
9099 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9100 (maintenance_check_psymtabs): Update.
9101 * psympriv.h (struct partial_symtab) <readin_p,
9102 get_compunit_symtab>: Add objfile parameter.
9103 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9104 Likewise.
9105 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9106 get_compunit_symtab>: Likewise.
9107 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9108
45940949
TT
91092020-05-27 Tom Tromey <tom@tromey.com>
9110
9111 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9112 member.
9113 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9114 (create_cu_from_index_list)
9115 (create_signatured_type_table_from_index)
9116 (create_signatured_type_table_from_debug_names)
9117 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9118 (dwarf2_create_include_psymtab)
9119 (create_debug_type_hash_table, add_type_unit)
9120 (create_type_unit_group, read_comp_units_from_section)
9121 (dwarf2_compute_name, create_cus_hash_table)
9122 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9123 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9124 obstack.
9125 (dw2_get_real_path): Likewise. Change argument to
9126 dwarf2_per_objfile.
9127
f8c6d152
LM
91282020-05-27 Luis Machado <luis.machado@linaro.org>
9129
9130 PR tdep/26000
9131 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9132 for ldrd (immediate).
9133
e98d2e6d
PW
91342020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9135
9136 * command.h: Add comment giving the name of class_tui.
9137 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9138 create the fake command for the help for class_tui.
9139
53a47a3e
TT
91402020-05-26 Tom Tromey <tromey@adacore.com>
9141
9142 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9143 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9144 (val_atr): New function.
9145 (value_val_atr): Use it.
9146 * ada-valprint.c (print_optional_low_bound): Change low bound
9147 handling for enums.
9148 (val_print_packed_array_elements): Don't call discrete_position.
9149 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9150 discrete_position for enum types.
9151 * language.c (default_print_array_index): Change type.
9152 * language.h (struct language_defn) <la_print_array_index>: Add
9153 index_type parameter, change type of index_value.
9154 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9155 (default_print_array_index): Update.
9156 * valprint.c (maybe_print_array_index): Don't call
9157 value_from_longest. Update.
9158 (value_print_array_elements): Don't call discrete_position.
9159
0bc2354b
TT
91602020-05-26 Tom Tromey <tromey@adacore.com>
9161
9162 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9163 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9164
1218a4bf
CDA
91652020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9166
9167 PR gdb/13519
9168 * avr-tdep.c (avr_integer_to_address): Return data or code
9169 address accordingly to the second 'type' argument of the
9170 function.
9171
92651b1d
MW
91722020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9173
9174 * infcmd.c, inferior.h: (construct_inferior_arguments):
9175 Moved function from here to gdbsupport/common-inferior.{h,cc}
9176
0a4f5f8c
TT
91772020-05-23 Tom Tromey <tom@tromey.com>
9178
9179 Revert commit eca1f90c:
9180 * NEWS: Remove entry for completion styling.
9181 * completer.c (_rl_completion_prefix_display_length): Move
9182 declaration later.
9183 (gdb_fnprint): Revert.
9184 (gdb_display_match_list_1): Likewise.
9185 * cli/cli-style.c (completion_prefix_style)
9186 (completion_difference_style, completion_suffix_style): Remove.
9187 (_initialize_cli_style): Revert.
9188 * cli/cli-style.h (completion_prefix_style)
9189 (completion_difference_style, completion_suffix_style): Don't
9190 declare.
9191
e08bd6c5
PA
91922020-05-24 Pedro Alves <palves@redhat.com>
9193
9194 * symtab.c (completion_list_add_name): Return boolean indication
9195 of whether the symbol matched.
9196 (completion_list_add_symbol): Don't try to remove C++ aliases if
9197 the symbol didn't match in the first place.
9198 * symtab.h (completion_list_add_name): Return bool.
9199
ceacbf6e
SM
92002020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9201
9202 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9203 type::field.
9204
26f16254
JB
92052020-05-23 Joel Brobecker <brobecker@adacore.com>
9206
9207 GDB 9.2 released.
9208
eca1f90c
TT
92092020-05-23 Tom Tromey <tom@tromey.com>
9210
9211 * NEWS: Add entry for completion styling.
9212 * completer.c (_rl_completion_prefix_display_length): Move
9213 declaration earlier.
9214 (gdb_fnprint): Use completion_style.
9215 (gdb_display_match_list_1): Likewise.
9216 * cli/cli-style.c (completion_prefix_style)
9217 (completion_difference_style, completion_suffix_style): New
9218 globals.
9219 (_initialize_cli_style): Register new globals.
9220 * cli/cli-style.h (completion_prefix_style)
9221 (completion_difference_style, completion_suffix_style): Declare.
9222
51e2cfa2
PA
92232020-05-23 Pedro Alves <palves@redhat.com>
9224
9225 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9226 (parse_escape): Use ISDIGIT instead of isdigit.
9227 (puts_debug): Use gdb_isprint instead of isprint.
9228 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9229 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9230 ISSPACE instead of isspace.
9231 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9232 instead of isspace.
9233 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9234 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9235 instead of isxdigit and ISDIGIT instead of isdigit.
9236
80fc5e77
SM
92372020-05-22 Simon Marchi <simon.marchi@efficios.com>
9238
9239 * gdbtypes.h (struct type) <field>: New method.
9240 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9241 or type::field.
9242
3cabb6b0
SM
92432020-05-22 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9246 (TYPE_FIELDS): Use type::fields. Change all call sites that
9247 modify the propery to use type::set_fields instead.
9248
1f704f76
SM
92492020-05-22 Simon Marchi <simon.marchi@efficios.com>
9250
9251 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9252 type::num_fields instead.
9253
5e33d5f4
SM
92542020-05-22 Simon Marchi <simon.marchi@efficios.com>
9255
9256 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9257 methods.
9258 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9259 that modify the number of fields to use type::set_num_fields
9260 instead.
9261
9392ebb3
TT
92622020-05-22 Tom Tromey <tromey@adacore.com>
9263
9264 * compile/compile-object-load.h (munmap_list_free): Don't
9265 declare.
9266
7c13f4e8
AB
92672020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9268
9269 * annotate.c (annotate_source_line): Update return type, add call
9270 to update current symtab and line.
9271 * annotate.h (annotate_source_line): Update return type, and
9272 extend header comment.
9273 * source.c (info_line_command): Check annotation_level before
9274 calling annotate_source_line.
9275 * stack.c (print_frame_info): If calling annotate_source_line
9276 returns true, then don't print any other source line information.
9277
aa370940
SM
92782020-05-21 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9281
84d53fa9
SM
92822020-05-21 Simon Marchi <simon.marchi@efficios.com>
9283
9284 * coffread.c (patch_type): Remove NULL check before xfree.
9285 * corefile.c (set_gnutarget): Likewise.
9286 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9287 * exec.c (build_section_table): Likewise.
9288 * remote.c (remote_target::pass_signals): Likewise.
9289 * utils.c (n_spaces): Likewise.
9290 * cli/cli-script.c (document_command): Likewise.
9291 * i386-windows-tdep.c (core_process_module_section): Likewise.
9292 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9293
9d428aae
SM
92942020-05-20 Simon Marchi <simon.marchi@efficios.com>
9295
9296 * symfile.c (reread_symbols): Clear objfile's section_offsets
9297 vector and section indices, re-compute them by calling
9298 sym_offsets.
9299
250106a7
TT
93002020-05-20 Tom Tromey <tromey@adacore.com>
9301
9302 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9303 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9304
9a0bacfb
TV
93052020-05-20 Tom de Vries <tdevries@suse.de>
9306
9307 PR symtab/25833
9308 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9309
7b958a48
AM
93102020-05-20 Alan Modra <amodra@gmail.com>
9311
9312 PR 25993
9313 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9314 bfd_set_filename.
9315 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9316 passed to bfd_set_filename.
9317 * symfile-mem.c (add_vsyscall_page): Likewise for string
9318 passed to symbol_file_add_from_memory.
9319 (symbol_file_add_from_memory): Make name param a const char* and
9320 don't strdup.
9321
c7e97679
AM
93222020-05-20 Alan Modra <amodra@gmail.com>
9323
9324 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9325 rather than accessing bfd->filename directly.
9326 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9327 and use bfd_section_name.
9328 * dwarf2/frame.c (decode_frame_entry): Likewise.
9329 * exec.c (exec_set_section_address): Likewise.
9330 * solib-aix.c (solib_aix_bfd_open): Likewise.
9331 * stap-probe.c (get_stap_base_address): Likewise.
9332 * symfile.c (reread_symbols): Likewise.
9333
563c591b
TT
93342020-05-19 Tom Tromey <tromey@adacore.com>
9335
9336 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9337
f408d82c
SM
93382020-05-19 Simon Marchi <simon.marchi@efficios.com>
9339
9340 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9341
98c59b52
PA
93422020-05-19 Pedro Alves <palves@redhat.com>
9343
9344 * NEWS (set exec-file-mismatch): Adjust entry.
9345 * exec.c: Include "build-id.h".
9346 (validate_exec_file): Try to match build IDs instead of filenames.
9347 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9348 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9349 and pass down 'warn_if_slow'.
9350 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9351 gdb_bfd_open_closure to pass it down.
9352 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9353
4111f652
PA
93542020-05-19 Pedro Alves <palves@redhat.com>
9355
9356 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9357 * target.c (target_fileio_open_1): Rename to target_fileio_open
9358 and make extern. Use bool.
9359 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9360 (target_fileio_read_alloc_1): Adjust.
9361 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9362 (target_fileio_open_warn_if_slow): Delete declaration.
9363
ad80db5b
PA
93642020-05-19 Pedro Alves <palves@redhat.com>
9365
9366 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9367 Adjust all callers.
9368
1d6ce4d3
YS
93692020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9370
9371 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9372 whether disp is negative.
9373
9005fbbb
SM
93742020-05-19 Simon Marchi <simon.marchi@efficios.com>
9375
9376 * symfile.h (struct symfile_segment_data)
9377 <~symfile_segment_data>: Remove.
9378 <segment_info>: Change to std::vector.
9379 * symfile.c (default_symfile_segments): Update.
9380 * elfread.c (elf_symfile_segments): Update.
9381
68b888ff
SM
93822020-05-19 Simon Marchi <simon.marchi@efficios.com>
9383
9384 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9385 <segments>: New.
9386 <segment_bases, segment_sizes>: Remove.
9387 * symfile.c (default_symfile_segments): Update.
9388 * elfread.c (elf_symfile_segments): Update.
9389 * remote.c (remote_target::get_offsets): Update.
9390 * solib-target.c (solib_target_relocate_section_addresses):
9391 Update.
9392
62982abd
SM
93932020-05-19 Simon Marchi <simon.marchi@efficios.com>
9394
9395 * symfile.h (struct symfile_segment_data): Initialize fields.
9396 <~symfile_segment_data>: Add.
9397 (symfile_segment_data_up): New.
9398 (struct sym_fns) <sym_segments>: Return a
9399 symfile_segment_data_up.
9400 (default_symfile_segments): Return a symfile_segment_data_up.
9401 (free_symfile_segment_data): Remove.
9402 (get_symfile_segment_data): Return a symfile_segment_data_up.
9403 * symfile.c (default_symfile_segments): Likewise.
9404 (get_symfile_segment_data): Likewise.
9405 (free_symfile_segment_data): Remove.
9406 (symfile_find_segment_sections): Update.
9407 * elfread.c (elf_symfile_segments): Return a
9408 symfile_segment_data_up.
9409 * remote.c (remote_target::get_offsets): Update.
9410 * solib-target.c (solib_target_relocate_section_addresses):
9411 Update.
9412 * symfile-debug.c (debug_sym_segments): Return a
9413 symfile_segment_data_up.
9414
7f204339
RO
94152020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9416
e52a0f1b
RO
9417 PR build/25981
9418 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9419 Hardcode register numbers.
9420
7f204339
RO
9421 PR build/25981
9422 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9423 procfs_find_LDT_entry): Remove.
9424 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9425 procfs_find_LDT_entry): Remove.
9426 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9427 Remove.
9428
7f32a4d5
PA
94292020-05-17 Pedro Alves <palves@redhat.com>
9430 Andrew Burgess <andrew.burgess@embecosm.com>
9431 Keno Fischer <keno@juliacomputing.com>
9432
9433 PR gdb/25741
9434 * breakpoint.c (build_target_condition_list): Update comments.
9435 (build_target_command_list): Update comments and skip matching
9436 locations.
9437 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9438 a separate function. Simplify "set breakpoint auto-hw off"
9439 handling.
9440 (insert_breakpoints): Update comment.
9441 (tracepoint_locations_match): New parameter. For breakpoints,
9442 compare location types too, if the caller wants to.
9443 (handle_automatic_hardware_breakpoints): New functions.
9444 (bp_location_is_less_than): Also sort by location type and
9445 hardware breakpoint length.
9446 (update_global_location_list): Handle "set breakpoint auto-hw on"
9447 here.
9448 (update_breakpoint_locations): Ask breakpoint_locations_match to
9449 ignore location types.
9450
7d93a1e0
SM
94512020-05-16 Simon Marchi <simon.marchi@efficios.com>
9452
9453 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9454 type::name instead.
9455
d0e39ea2
SM
94562020-05-16 Simon Marchi <simon.marchi@efficios.com>
9457
9458 * gdbtypes.h (struct type) <name, set_name>: New methods.
9459 (TYPE_CODE): Use type::name. Change all call sites used to set
9460 the name to use type::set_name instead.
9461
2dab0c7b
TT
94622020-05-16 Tom Tromey <tom@tromey.com>
9463
9464 * top.c (quit_force): Update.
9465 * infrun.c (handle_no_resumed): Update.
9466 * top.h (all_uis): New function.
9467 (ALL_UIS): Remove.
9468
59f7bd8d
SM
94692020-05-16 Simon Marchi <simon.marchi@efficios.com>
9470
9471 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9472
9bf058f0
PA
94732020-05-16 Pedro Alves <palves@redhat.com>
9474
9475 * ia64-linux-nat.c
9476 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9477 Declare method.
9478 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9479
8f86ae1a
SM
94802020-05-15 Simon Marchi <simon.marchi@efficios.com>
9481
9482 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9483 (sparc64_adi_info): Likewise.
9484
d6bc0792
TT
94852020-05-15 Tom Tromey <tom@tromey.com>
9486
9487 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9488 block_objfile.
9489 (lookup_objfile_from_block): Remove.
9490 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9491 (lookup_global_symbol): Use block_objfile.
9492 * symtab.h (lookup_objfile_from_block): Don't declare.
9493 * printcmd.c (clear_dangling_display_expressions): Use
9494 block_objfile.
9495 * parse.c (operator_check_standard): Use block_objfile.
9496
8c14c3a3
TT
94972020-05-15 Tom Tromey <tom@tromey.com>
9498
9499 * language.c (language_alloc_type_symbol): Set
9500 SYMBOL_SECTION.
9501 * symtab.c (initialize_objfile_symbol): Remove.
9502 (allocate_symbol): Remove.
9503 (allocate_template_symbol): Remove.
9504 * dwarf2/read.c (fixup_go_packaging): Use "new".
9505 (new_symbol): Use "new".
9506 (read_variable): Don't call initialize_objfile_symbol. Use
9507 "new".
9508 (read_func_scope): Use "new".
9509 * xcoffread.c (process_xcoff_symbol): Don't call
9510 initialize_objfile_symbol.
9511 (SYMBOL_DUP): Remove.
9512 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9513 "new".
9514 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9515 (allocate_template_symbol): Don't declare.
9516 (struct symbol): Add copy constructor. Change defaults.
9517 * jit.c (finalize_symtab): Use "new".
9518 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9519 Use "new".
9520 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9521 (common_block_end): Use "new".
9522 * mdebugread.c (parse_symbol): Use "new".
9523 (new_symbol): Likewise.
9524
5b4a1a8d
PW
95252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9526
9527 * NEWS: Mention changes to help and apropos.
9528
57b4f16e
PW
95292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9530
9531 * command.h (enum command_class): Improve comments, document
9532 that class_alias is for user-defined aliases, give the class
9533 name for each class, remove unused class_xdb.
9534 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9535 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9536 by a precise class.
9537 * infcmd.c (_initialize_infcmd): Likewise.
9538 * reverse.c (_initialize_reverse): Likewise.
9539 * stack.c (_initialize_stack): Likewise.
9540 * symfile.c (_initialize_symfile): Likewise.
9541 * tracepoint.c (_initialize_tracepoint): Likewise.
9542
7c05caf7
PW
95432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9544
9545 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9546 when their aliased command is traversed.
9547 (help_cmd): Add fput_command_names_styled call to
9548 output command name and aliases when command has an alias.
9549
3b3aaacb
PW
95502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9551
9552 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9553 * cli/cli-decode.c (help_cmd_list): Declare as static,
9554 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9555 a command together with the command.
9556 (fput_command_name_styled, fput_command_names_styled): New functions.
9557 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9558 fput_command_name_styled.
9559 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9560 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9561
7aa1b46f
PW
95622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9563
9564 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9565 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9566 * command.h (cmd_show_list): Likewise.
9567 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9568 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9569
89bcba74
PW
95702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9571
9572 * unittests/command-def-selftests.c (traverse_command_structure):
9573 Verify all commands of a list have the same prefix command and
9574 that only the top cmdlist commands have a null prefix.
9575
3f4d92eb
PW
95762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9577
9578 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9579 as prefix, not one of its aliases.
9580 (set_cmd_prefix): Remove.
9581 (do_add_cmd): Centralize the setting of the prefix of a command, when
9582 command is defined after its full chain of prefix commands.
9583 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9584 (add_setshow_cmd_full): Likewise.
9585 (update_prefix_field_of_prefixed_commands): New function.
9586 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9587 update_prefix_field_of_prefixed_commands.
9588 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9589 addresses of remote_set_cmdlist and remote_show_cmdlist given
9590 as argument, not the address of an argument.
9591 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9592 * gdb/remote.c (_initialize_remote): Likewise.
9593
0605465f
PW
95942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9595
9596 * cli/cli-cmds.c (alias_command): Check for an existing alias
9597 using lookup_cmd_composition, as valid_command_p is too strict
9598 and forbids aliases that are the prefix of an existing alias
9599 or command.
9600 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9601 command is properly recognised as a valid command.
9602
58e6ac70
PW
96032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9604
9605 * unittests/help-doc-selftests.c: Rename to
9606 unittests/command-def-selftests.c
9607 * unittests/command-def-selftests.c (help_doc_tests): Update some
9608 comments.
9609 (command_structure_tests, traverse_command_structure): New namespace
9610 and function.
9611 (command_structure_invariants_tests): New function.
9612 (_initialize_command_def_selftests) Renamed from
9613 _initialize_help_doc_selftests, register command_structure_invariants
9614 selftest.
9615
a7b9ceb8
PW
96162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9617
9618 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9619 an alias of 'show'.
9620
b2188a06
JB
96212020-05-15 Joel Brobecker <brobecker@adacore.com>
9622
9623 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9624 ada_is_fixed_point_type. Update all callers.
9625 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9626 all callers.
9627 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9628 Update all callers.
9629 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9630 print_fixed_point_type. Update all callers.
9631 * ada-valprint.c (ada_value_print_num): Replace call to
9632 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9633
a51951c2
KB
96342020-05-14 Kevin Buettner <kevinb@redhat.com>
9635
9636 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9637 processors.
9638 (cpu_supports_bts): Add CV_AMD case.
9639
29d6859f
LM
96402020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9641 Simon Marchi <simon.marchi@efficios.com>
9642
9643 * infrun.c (stop_all_threads): Collect multiple wait events at
9644 each pass.
9645
78134374
SM
96462020-05-14 Simon Marchi <simon.marchi@efficios.com>
9647
9648 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9649 type::code instead.
9650
67607e24
SM
96512020-05-14 Simon Marchi <simon.marchi@efficios.com>
9652
9653 * gdbtypes.h (struct type) <code, set_code>: New methods.
9654 (TYPE_CODE): Use type::code. Change all call sites used to set
9655 the code to use type::set_code instead.
9656
a05575d3
TBA
96572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9658 Tom de Vries <tdevries@suse.de>
9659 Pedro Alves <palves@redhat.com>
9660
9661 PR threads/25478
9662 * infrun.c (stop_all_threads): Do NOT ignore
9663 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9664 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9665 received.
9666 (handle_no_resumed): Remove code handling a live inferior with no
9667 threads.
9668 * remote.c (has_single_non_exited_thread): New.
9669 (remote_target::update_thread_list): Do not delete a thread if is
9670 the last thread of the process.
9671 * thread.c (thread_select): Call delete_exited_threads instead of
9672 prune_threads.
9673
6ad82919
TBA
96742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9675
9676 * infrun.c (stop_all_threads): Enable/disable thread events of all
9677 targets. Move a debug message denoting the end of the function
9678 into the SCOPED_EXIT block.
9679
d890404b
TBA
96802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9681
9682 * process-stratum-target.h: Include <set>.
9683 (all_non_exited_process_targets, switch_to_target_no_thread): New
9684 function declarations.
9685 * process-stratum-target.c (all_non_exited_process_targets)
9686 (switch_to_target_no_thread): New function implementations.
9687
293b3ebc
TBA
96882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9689
9690 * infrun.c (handle_inferior_event): Extract out a piece of code
9691 into...
9692 (mark_non_executing_threads): ...this new function.
9693
7ca9b62a
TBA
96942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9695
9696 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9697 use.
9698
fc75c28b
TBA
96992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9700
9701 * regcache.c (regcache_read_pc_protected): New function
9702 implementation that returns 0 if the PC cannot read via
9703 'regcache_read_pc'.
9704 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9705 instead of 'regcache_read_pc'.
9706 (keep_going_pass_signal): Ditto.
9707
a89febbd
TT
97082020-05-13 Tom Tromey <tromey@adacore.com>
9709
9710 * ada-lang.c (align_value): Remove.
9711 (ada_template_to_fixed_record_type_1): Use align_up.
9712
f7e23710
TBA
97132020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9714
9715 * async-event.c: Update the copyright year.
9716 * async-event.h: Update the copyright year.
9717
02ff80c2
SM
97182020-05-12 Simon Marchi <simon.marchi@efficios.com>
9719
9720 * objfiles.h (is_addr_in_objfile,
9721 shared_objfile_contains_address_p): Return bool.
9722 * objfile.c (is_addr_in_objfile,
9723 shared_objfile_contains_address_p): Return bool.
9724
4fd6c7e8
TT
97252020-05-11 Tom Tromey <tromey@adacore.com>
9726
9727 * cli/cli-cmds.c (info_command): Restore.
9728 (_initialize_cli_cmds): Use add_prefix_command for "info".
9729 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9730
5eb68a39
TT
97312020-05-11 Tom Tromey <tromey@adacore.com>
9732
9733 * ada-lang.c (ada_value_primitive_field): Now public.
9734 * ada-lang.h (ada_value_primitive_field): Declare.
9735 * ada-valprint.c (print_field_values): Use
9736 ada_value_primitive_field for wrapper fields.
9737
7666722f
TV
97382020-05-11 Tom de Vries <tdevries@suse.de>
9739
9740 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9741 MODULE_DOMAIN.
9742
3ee6bb11
TV
97432020-05-11 Tom de Vries <tdevries@suse.de>
9744
9745 PR symtab/25941
9746 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9747 with length 0, if not gdb-produced.
9748 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9749
43434996
TV
97502020-05-09 Tom de Vries <tdevries@suse.de>
9751
9752 PR gdb/25955
9753 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9754 calculation.
9755
2f78cffc
TT
97562020-05-09 Tom Tromey <tom@tromey.com>
9757
9758 * top.c (server_command): Now bool.
9759 * top.h (server_command): Now bool.
9760
4f7bc5ed
TT
97612020-05-08 Tom Tromey <tromey@adacore.com>
9762
9763 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9764 already being processed.
9765
8be4b118
TT
97662020-05-08 Tom Tromey <tom@tromey.com>
9767
9768 * printcmd.c (struct display) <next>: Remove.
9769 <display>: New constructor.
9770 <exp_string>: Now a std::string.
9771 <enabled_p>: Now a bool.
9772 (display_number): Move definition earlier.
9773 (displays): Rename from display_chain. Now a std::vector.
9774 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9775 (display_command): Update.
9776 (do_one_display, disable_display)
9777 (enable_disable_display_command, do_enable_disable_display):
9778 Update.
9779 (free_display): Remove.
9780 (clear_displays): Rewrite.
9781 (delete_display): Update.
9782 (map_display_numbers): Use function_view. Remove "data"
9783 parameter. Update.
9784 (do_delete_display): Remove.
9785 (undisplay_command): Update.
9786 (do_one_display, do_displays, disable_display)
9787 (info_display_command): Update.
9788 (do_enable_disable_display): Remove.
9789 (enable_disable_display_command)
9790 (clear_dangling_display_expressions): Update.
9791
94c93c35
TT
97922020-05-08 Tom Tromey <tom@tromey.com>
9793
9794 * symtab.c (set_symbol_cache_size)
9795 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9796 (maintenance_print_symbol_cache_statistics): Update.
9797 * symmisc.c (print_symbol_bcache_statistics)
9798 (print_objfile_statistics, maintenance_print_objfiles)
9799 (maintenance_info_symtabs, maintenance_check_symtabs)
9800 (maintenance_expand_symtabs, maintenance_info_line_tables):
9801 Update.
9802 * symfile-debug.c (set_debug_symfile): Update.
9803 * source.c (forget_cached_source_info): Update.
9804 * python/python.c (gdbpy_progspaces): Update.
9805 * psymtab.c (maintenance_info_psymtabs): Update.
9806 * probe.c (parse_probes): Update.
9807 * linespec.c (iterate_over_all_matching_symtabs)
9808 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9809 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9810 * exec.c (exec_target::close): Update.
9811 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9812 * breakpoint.c (print_one_breakpoint_location)
9813 (create_longjmp_master_breakpoint)
9814 (create_std_terminate_master_breakpoint): Update.
9815 * progspace.c (program_spaces): Now a std::vector.
9816 (maybe_new_address_space): Update.
9817 (add_program_space): Remove.
9818 (program_space::program_space): Update.
9819 (remove_program_space): Update.
9820 (number_of_program_spaces): Remove.
9821 (print_program_space, update_address_spaces): Update.
9822 * progspace.h (program_spaces): Change type.
9823 (ALL_PSPACES): Remove.
9824 (number_of_program_spaces): Don't declare.
9825 (struct program_space) <next>: Remove.
9826
a1fd1ac9
TT
98272020-05-08 Tom Tromey <tom@tromey.com>
9828
9829 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9830 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9831 (enable_break): Update.
9832 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9833 (frv_fdpic_find_canonical_descriptor): Update.
9834 (frv_fetch_objfile_link_map): Update.
9835 * progspace.c (program_space::free_all_objfiles): Update.
9836 (program_space::solibs): New method.
9837 * progspace.h (struct program_space) <solibs>: New method.
9838 * solist.h (master_so_list): Don't declare.
9839 (ALL_SO_LIBS): Remove.
9840 * solib.h (so_list_head): Remove.
9841 (update_solib_list): Update comment.
9842 * solib.c (master_so_list): Remove.
9843 (solib_used, update_solib_list, solib_add)
9844 (info_sharedlibrary_command, clear_solib)
9845 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9846
38eae084
TT
98472020-05-08 Tom Tromey <tom@tromey.com>
9848
9849 * extension.c (extension_languages): Now a std::array.
9850 (ALL_EXTENSION_LANGUAGES): Remove.
9851 (get_ext_lang_defn, get_ext_lang_of_file)
9852 (eval_ext_lang_from_control_command): Update.
9853 (finish_ext_lang_initialization)
9854 (auto_load_ext_lang_scripts_for_objfile)
9855 (ext_lang_type_printers::ext_lang_type_printers)
9856 (apply_ext_lang_type_printers)
9857 (ext_lang_type_printers::~ext_lang_type_printers)
9858 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9859 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9860 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9861 (get_matching_xmethod_workers, ext_lang_colorize)
9862 (ext_lang_before_prompt): Update.
9863 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9864
596dc4ad
TT
98652020-05-08 Tom Tromey <tom@tromey.com>
9866
9867 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9868 overload.
9869 <swap_string, m_string>: Remove.
9870 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9871 Update.
9872 * stabsread.c (define_symbol, read_type): Update.
9873 * linespec.c (find_linespec_symbols): Update.
9874 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9875 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9876 * dbxread.c (read_dbx_symtab): Update.
9877 * cp-support.h (cp_canonicalize_string_full)
9878 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9879 Return unique_xmalloc_ptr.
9880 * cp-support.c (inspect_type): Update.
9881 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9882 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9883 Likewise.
9884 * c-typeprint.c (print_name_maybe_canonical): Update.
9885 * break-catch-throw.c (check_status_exception_catchpoint):
9886 Update.
9887
bf4cb9be
TV
98882020-05-08 Tom de Vries <tdevries@suse.de>
9889
9890 * infrun.c (follow_fork): Copy current_line and current_symtab to
9891 child thread.
9892
a1b68f28
SM
98932020-05-07 Simon Marchi <simon.marchi@efficios.com>
9894
9895 * async-event.c (struct async_signal_handler, struct
9896 async_event_handler): Reformat, remove typedef.
9897
98d48915
SM
98982020-05-07 Simon Marchi <simon.marchi@efficios.com>
9899
9900 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9901 access thistype->main_type->dyn_prop_list directly.
9902
7aa91313
SM
99032020-05-07 Simon Marchi <simon.marchi@efficios.com>
9904
9905 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9906 (remove_dyn_prop): Remove. Update all users to use
9907 type::remove_dyn_prop.
9908 * gdbtypes.c (remove_dyn_prop): Rename to...
9909 (type::remove_dyn_prop): ... this.
9910
5c54719c
SM
99112020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9912
9913 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9914 (add_dyn_prop): Remove. Update all users to use
9915 type::add_dyn_prop.
9916 * gdbtypes.c (add_dyn_prop): Rename to...
9917 (type::add_dyn_prop): ... this.
9918
24e99c6c
SM
99192020-05-07 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9922 (get_dyn_prop): Remove. Update all users to use
9923 type::dyn_prop.
9924 * gdbtypes.c (get_dyn_prop): Rename to...
9925 (type::dyn_prop): ... this.
9926
0d4bf016
SM
99272020-05-06 Simon Marchi <simon.marchi@efficios.com>
9928
9929 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9930
ac4a4f1c
SM
99312020-05-06 Simon Marchi <simon.marchi@efficios.com>
9932
9933 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9934 instruction, skip it if it's there.
9935
a3bbacc1
SM
99362020-05-05 Simon Marchi <simon.marchi@efficios.com>
9937
9938 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9939
c3236f84
SM
99402020-05-04 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9943 * gdbtypes.c (recursive_dump_type): Remove use of
9944 TYPE_INCOMPLETE.
9945
3b6acaee
TT
99462020-05-03 Tom Tromey <tom@tromey.com>
9947
9948 * breakpoint.c (catch_command, tcatch_command): Remove.
9949 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9950 add_show_prefix_cmd.
9951 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9952 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9953 Remove.
9954 (add_internal_problem_command): Use add_basic_prefix_cmd,
9955 add_show_prefix_cmd.
9956 * mips-tdep.c (set_mipsfpu_command): Remove.
9957 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9958 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9959 (_initialize_index_cache): Use add_basic_prefix_cmd.
9960 * memattr.c (dummy_cmd): Remove.
9961 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9962 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9963 (_initialize_tui_win): Use add_basic_prefix_cmd,
9964 add_show_prefix_cmd.
9965 * cli/cli-logging.c (set_logging_command): Remove.
9966 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9967 add_show_prefix_cmd.
9968 (show_logging_command): Remove.
9969 * target.c (target_command): Remove.
9970 (add_target): Use add_basic_prefix_cmd.
9971
a51119cd
HD
99722020-05-02 Hannes Domani <ssbssa@yahoo.de>
9973
9974 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9975
652fc23a 99762020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9977
652fc23a
PW
9978 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9979 info_command.
9980
117539e6
KR
99812020-04-30 Kamil Rytarowski <n54@gmx.com>
9982
9983 * nbsd-nat.c (nbsd_enable_proc_events)
9984 (nbsd_nat_target::post_startup_inferior): Add.
9985 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9986 (nbsd_nat_target::update_thread_list): Rewrite.
9987 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9988 "PTRACE_LWP_CREATE".
9989 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9990
102e38eb 99912020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9992
102e38eb
PW
9993 * stack.c (_initialize_stack): Remove duplicated creation
9994 of "frame" command and "f" alias.
9995
ee9d1e5f
HD
99962020-04-30 Hannes Domani <ssbssa@yahoo.de>
9997
9998 PR gdb/18706
9999 * gdbtypes.c (check_typedef): Calculate size of array of
10000 stubbed type.
10001
627c7fb8
HD
100022020-04-30 Hannes Domani <ssbssa@yahoo.de>
10003
10004 PR gdb/15559
10005 * i386-tdep.c (i386_push_dummy_call): Call
10006 i386_thiscall_push_dummy_call.
10007 (i386_thiscall_push_dummy_call): New function.
10008 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10009 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10010 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10011
ffc2844e
SM
100122020-04-29 Simon Marchi <simon.marchi@efficios.com>
10013
10014 * gdbarch.sh (do_read): Add shellcheck disable directive for
10015 warning SC2162.
10016
1207375d
SM
100172020-04-29 Simon Marchi <simon.marchi@efficios.com>
10018
10019 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10020 "referenced but not assigned" warning.
10021
9fdb2916
SM
100222020-04-29 Simon Marchi <simon.marchi@efficios.com>
10023
10024 * gdbarch.sh: Remove code that sets fallbackdefault.
10025
759cea5e
SM
100262020-04-29 Simon Marchi <simon.marchi@efficios.com>
10027
10028 * gdbarch.sh: Use shell operators && and || instead of
10029 -a and -o.
10030
cb02ab24
SM
100312020-04-29 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * gdbarch.sh: Use $(...) instead of `...`.
10034
a6fc5ffc
SM
100352020-04-29 Simon Marchi <simon.marchi@efficios.com>
10036
10037 * gdbarch.sh: Use double quotes around variables.
10038
8d113d13
SM
100392020-04-29 Simon Marchi <simon.marchi@efficios.com>
10040
10041 * gdbarch.sh: Use %s with printf, instead of variables in the
10042 format string.
10043
ed6acedd
TT
100442020-04-29 Tom Tromey <tromey@adacore.com>
10045
10046 PR ada/25875:
10047 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10048 type fields here.
10049 (read_enumeration_type): Call
10050 update_enumeration_type_from_children later. Update comments.
10051 (process_enumeration_scope): Don't create type fields.
10052
b68b1b58
KR
100532020-04-29 Kamil Rytarowski <n54@gmx.com>
10054
10055 * nbsd-tdep.c: Include "xml-syscall.h".
10056 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10057
f94b2e03
KR
100582020-04-29 Kamil Rytarowski <n54@gmx.com>
10059
10060 * nbsd-nat.c: Include "sys/wait.h".
10061 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10062 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10063 (nbsd_nat_target::remove_exec_catchpoint)
10064 (nbsd_nat_target::set_syscall_catchpoint): Add.
10065 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10066 (nbsd_nat_target::insert_exec_catchpoint)
10067 (nbsd_nat_target::remove_exec_catchpoint)
10068 (nbsd_nat_target::set_syscall_catchpoint): Add.
10069 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10070 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10071 `nbsd_get_syscall_number'.
10072
fc49bc72
TT
100732020-04-29 Tom Tromey <tom@tromey.com>
10074
10075 * stack.c (print_block_frame_labels): Remove.
10076
d642b692
HD
100772020-04-29 Hannes Domani <ssbssa@yahoo.de>
10078
10079 PR gdb/17320
10080 * ada-valprint.c (val_print_packed_array_elements): Move array
10081 end bracket to new line.
10082 (ada_val_print_string): Remove extra spaces before first array
10083 element.
10084 * c-valprint.c (c_value_print_array): Likewise.
10085 * m2-valprint.c (m2_print_array_contents): Likewise.
10086 (m2_value_print_inner): Likewise.
10087 * p-valprint.c (pascal_value_print_inner): Likewise.
10088 * valprint.c (generic_val_print_array): Likewise.
10089 (value_print_array_elements): Move first array element and array
10090 end bracket to new line.
10091
ea90f227
TV
100922020-04-29 Tom de Vries <tdevries@suse.de>
10093
10094 PR symtab/25889
10095 * linespec.c (find_method): Fix ix calculation.
10096
4498ef4f
KR
100972020-04-28 Kamil Rytarowski <n54@gmx.com>
10098
10099 * syscalls/update-netbsd.sh: New file.
10100 * syscalls/netbsd.xml: Regenerate.
10101 * data-directory/Makefile.in: Register `netbsd.xml' in
10102 `SYSCALLS_FILES'.
10103
a55e30b5
SM
101042020-04-28 Simon Marchi <simon.marchi@efficios.com>
10105
10106 * syscalls/update-freebsd.sh: Add double quotes.
10107
2b2fbab8
TT
101082020-04-28 Tom Tromey <tom@tromey.com>
10109
10110 * NEWS: Update.
10111 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10112 (cmdpy_init): Allow class_tui.
10113
a65189c9
TV
101142020-04-28 Mark Williams <mark@myosotissp.com>
10115
10116 PR gdb/24480
10117 * dwarf2read.c: Add missing assingments to list_in_scope when
10118 start_symtab was already called.
10119
1b95cdb7
SM
101202020-04-28 Simon Marchi <simon.marchi@efficios.com>
10121
10122 PR gdb/25881
10123 * dwarf2/read.c (offset_map_type): Use
10124 gdb:hash_enum<sect_offset> as hash function.
10125
15cd93d0
TV
101262020-04-28 Tom de Vries <tdevries@suse.de>
10127
10128 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10129 with DW_AT_signature.
10130
1eb39914
SM
101312020-04-27 Simon Marchi <simon.marchi@efficios.com>
10132
10133 * configure.ac: Remove check for fs_base/gs_base in
10134 user_regs_struct.
10135 * configure: Re-generate.
10136 * config.in: Re-generate.
10137 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10138 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10139 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10140
991a3e2e
LM
101412020-04-27 Luis Machado <luis.machado@linaro.org>
10142
10143 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10144 problematic inline frame unwinding situation.
10145 * frame.c (frame_id_computed_p): New function.
10146 * frame.h (frame_id_computed_p): New prototype.
10147
361ba0e8
TT
101482020-04-26 Tom Tromey <tom@tromey.com>
10149
10150 * command.h (enum command_class) <class_pseudo>: Remove.
10151
bc3609fd
PW
101522020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10153
10154 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10155 and whitespace.
10156
b9771db7
KR
101572020-04-25 Kamil Rytarowski <n54@gmx.com>
10158
ec16513e
SM
10159 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10160 `PT_GET_PROCESS_STATE' block.
b9771db7 10161
7151c1af
TT
101622020-04-24 Tom Tromey <tom@tromey.com>
10163
10164 * symtab.h (symbol_get_demangled_name): Don't declare.
10165 * symtab.c (symbol_get_demangled_name): Remove.
10166 (general_symbol_info::natural_name)
10167 (general_symbol_info::demangled_name): Update.
10168
906bb4c5
TT
101692020-04-24 Tom Tromey <tom@tromey.com>
10170
10171 PR rust/25025:
10172 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10173
bcfe6157
TT
101742020-04-24 Tom Tromey <tom@tromey.com>
10175
10176 PR symtab/12707:
10177 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10178 exists.
10179 (new_symbol): Likewise.
10180 * compile/compile-object-load.c (get_out_value_type): Use
10181 symbol_matches_search_name.
10182
f049a313
TT
101832020-04-24 Tom Tromey <tom@tromey.com>
10184
10185 * dwarf2/read.c (add_partial_symbol): Do not call
10186 compute_and_set_names.
10187
76e288d1
TT
101882020-04-24 Tom Tromey <tom@tromey.com>
10189
10190 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10191 overload.
10192
2467f4f6
TT
101932020-04-24 Tom Tromey <tom@tromey.com>
10194
10195 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10196 (add_psymbol_to_list): New overload. Make old overload call new
10197 one.
10198 * psympriv.h (add_psymbol_to_list): New overload.
10199
e61108c9
TT
102002020-04-24 Tom Tromey <tom@tromey.com>
10201
10202 * dwarf2/read.c (partial_die_info::read) <case
10203 DW_AT_linkage_name>: Use value_as_string.
10204 (dwarf2_string_attr): Use value_as_string.
10205 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10206 method.
10207 * dwarf2/attribute.c (attribute::value_as_string): New method.
10208
8c87a452
TT
102092020-04-24 Tom Tromey <tom@tromey.com>
10210
10211 * symtab.c (general_symbol_info::natural_name)
10212 (general_symbol_info::demangled_name): Check for language_rust.
10213
787de330
TT
102142020-04-24 Tom Tromey <tom@tromey.com>
10215
10216 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10217 (dwarf2_physname): ... from here.
10218 (partial_die_info::read): Add Rust "{" hack.
10219
ff985671
TT
102202020-04-24 Tom Tromey <tom@tromey.com>
10221
10222 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10223 method.
10224 (symbol_set_demangled_name): Don't declare.
10225 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10226 symbol_set_demangled_name.
10227 (general_symbol_info::set_language)
10228 (general_symbol_info::compute_and_set_names): Update.
10229 * minsyms.c (minimal_symbol_reader::install): Update.
10230 * dwarf2/read.c (new_symbol): Update.
10231
1acda803
TT
102322020-04-24 Tom Tromey <tromey@adacore.com>
10233
10234 PR python/23662:
10235 * python/py-type.c (convert_field): Handle
10236 FIELD_LOC_KIND_DWARF_BLOCK.
10237 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10238 (typy_get_dynamic): Nw function.
10239 (type_object_getset): Add "dynamic".
10240 * NEWS: Add entry.
10241
d656f129
TT
102422020-04-24 Tom Tromey <tromey@adacore.com>
10243
10244 * ada-typeprint.c (print_choices, print_variant_part)
10245 (print_record_field_types_dynamic): New functions.
10246 (print_record_field_types): Use print_record_field_types_dynamic.
10247
7d79de9a
TT
102482020-04-24 Tom Tromey <tromey@adacore.com>
10249
10250 * dwarf2/read.c (handle_data_member_location): New overload.
10251 (dwarf2_add_field): Use it.
10252 (decode_locdesc): Add "computed" parameter. Update comment.
10253 * gdbtypes.c (is_dynamic_type_internal): Also look for
10254 FIELD_LOC_KIND_DWARF_BLOCK.
10255 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10256 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10257 virtual base classes.
10258 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10259 FIELD_LOC_KIND_DWARF_BLOCK.
10260
f8e89861
TT
102612020-04-24 Tom Tromey <tromey@adacore.com>
10262
10263 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10264 * gdbtypes.c (is_dynamic_type_internal): Check
10265 TYPE_HAS_DYNAMIC_LENGTH.
10266 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10267 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10268 New macros.
10269 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10270 constant.
10271
9c6a1327
TT
102722020-04-24 Tom Tromey <tromey@adacore.com>
10273
10274 * dwarf2/read.c (struct variant_field): Rewrite.
10275 (struct variant_part_builder): New.
10276 (struct nextfield): Remove "variant" field. Add "offset".
10277 (struct field_info): Add "current_variant_part" and
10278 "variant_parts".
10279 (alloc_discriminant_info): Remove.
10280 (alloc_rust_variant): New function.
10281 (quirk_rust_enum): Update.
10282 (dwarf2_add_field): Set "offset" member. Don't handle
10283 DW_TAG_variant_part.
10284 (offset_map_type): New typedef.
10285 (convert_variant_range, create_one_variant)
10286 (create_one_variant_part, create_variant_parts)
10287 (add_variant_property): New functions.
10288 (dwarf2_attach_fields_to_type): Call add_variant_property.
10289 (read_structure_type): Don't handle DW_TAG_variant_part.
10290 (handle_variant_part, handle_variant): New functions.
10291 (handle_struct_member_die): Use them.
10292 (process_structure_scope): Don't handle variant parts.
10293 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10294 (struct discriminant_info): Remove.
10295 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10296 (struct main_type) <flag_discriminated_union>: Remove.
10297 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10298 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10299 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10300 Update.
10301 * valops.c (value_union_variant): Remove.
10302 * value.h (value_union_variant): Don't declare.
10303
b249d2c2
TT
103042020-04-24 Tom Tromey <tromey@adacore.com>
10305
10306 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10307 (ada_value_primitive_packed_val): Update.
10308 * ada-valprint.c (ada_value_print_1): Update.
10309 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10310 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10311 just an address. Use evaluate_for_locexpr_baton.
10312 (dwarf2_evaluate_property): Update.
10313 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10314 array_view.
10315 * findvar.c (default_read_var_value): Update.
10316 * gdbtypes.c (compute_variant_fields_inner)
10317 (resolve_dynamic_type_internal): Update.
10318 (resolve_dynamic_type): Change type of valaddr parameter.
10319 * gdbtypes.h (resolve_dynamic_type): Update.
10320 * valarith.c (value_subscripted_rvalue): Update.
10321 * value.c (value_from_contents_and_address): Update.
10322
61122aa9
TT
103232020-04-24 Tom Tromey <tromey@adacore.com>
10324
10325 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10326 "push_initial_value" parameter.
10327 (dwarf2_evaluate_property): Likewise.
10328 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10329
ef83a141
TT
103302020-04-24 Tom Tromey <tromey@adacore.com>
10331
10332 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10333 (variant::matches, compute_variant_fields_recurse)
10334 (compute_variant_fields_inner, compute_variant_fields): New
10335 functions.
10336 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10337 Use resolved_type after type is made.
10338 (operator==): Add new cases.
10339 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10340 (struct discriminant_range, struct variant, struct variant_part):
10341 New.
10342 (union dynamic_prop_data) <variant_parts, original_type>: New
10343 members.
10344 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10345 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10346 constants.
10347 * value.c (unpack_bits_as_long): Now public.
10348 * value.h (unpack_bits_as_long): Declare.
10349
675127ec
TT
103502020-04-24 Tom Tromey <tromey@adacore.com>
10351
10352 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10353 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10354
9852ceef
HD
103552020-04-24 Hannes Domani <ssbssa@yahoo.de>
10356
10357 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10358
7632c6ce
KR
103592020-04-24 Kamil Rytarowski <n54@gmx.com>
10360
10361 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10362 (remove_fork_catchpoint, post_startup_inferior)
10363 (post_attach): Move...
10364 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10365 (remove_fork_catchpoint, post_startup_inferior)
10366 (post_attach): ...here.
10367 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10368 (remove_fork_catchpoint, post_startup_inferior)
10369 (post_attach): Move...
10370 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10371 (remove_fork_catchpoint, post_startup_inferior)
10372 (post_attach): ...here.
10373
7be2bb4f
TT
103742020-04-24 Tom Tromey <tromey@adacore.com>
10375
10376 * nat/windows-nat.h (struct windows_thread_info)
10377 <pc_adjusted>: New member.
10378 * windows-nat.c (windows_fetch_one_register): Check
10379 pc_adjusted.
10380 (windows_nat_target::get_windows_debug_event)
10381 (windows_nat_target::wait): Set pc_adjusted.
10382
f80cb3b4
TV
103832020-04-24 Tom de Vries <tdevries@suse.de>
10384
10385 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10386 Run gdb-add-index inside temp dir.
10387
29514b87
TT
103882020-04-23 Tom Tromey <tromey@adacore.com>
10389
10390 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10391 in loop.
10392
5939967b
LM
103932020-04-23 Luis Machado <luis.machado@linaro.org>
10394
10395 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10396 get_frame_register instead of gdbarch_unwind_pc.
10397
70bc38f5
TV
103982020-04-23 Tom de Vries <tdevries@suse.de>
10399
10400 * symtab.c (lookup_global_symbol): Prefer def over decl.
10401
de82891c
TV
104022020-04-23 Tom de Vries <tdevries@suse.de>
10403
10404 PR symtab/25807
10405 * block.c (best_symbol, better_symbol): Promote to external.
10406 * block.h (best_symbol, better_symbol): Declare.
10407 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10408 decl.
10409
ecc6c606
TT
104102020-04-23 Tom Tromey <tromey@adacore.com>
10411
10412 PR ada/25837:
10413 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10414 "const char *", not a "const std::string &".
10415 <name_and_matcher::operator==>: Update.
10416 * unittests/lookup_name_info-selftests.c: Change type of
10417 "result".
10418
740480b8
TT
104192020-04-23 Tom Tromey <tom@tromey.com>
10420
10421 * inferior.h (iterate_over_inferiors): Don't declare.
10422 * inferior.c (iterate_over_inferiors): Remove.
10423 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10424 Remove.
10425 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10426 use iterate_over_inferiors.
10427 (darwin_resume_inferior_it)
10428 (struct resume_inferior_threads_param)
10429 (darwin_resume_inferior_threads_it): Remove.
10430 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10431
ae3ab1f0
TV
104322020-04-23 Tom de Vries <tdevries@suse.de>
10433
10434 * blockframe.c (find_pc_partial_function): Use
10435 find_pc_sect_compunit_symtab rather than
10436 objfile->sf->qf->find_pc_sect_compunit_symtab.
10437
317d2668
TV
104382020-04-22 Tom de Vries <tdevries@suse.de>
10439
10440 PR symtab/25764
10441 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10442 in psymtabs.
10443
eea9e357
TV
104442020-04-22 Tom de Vries <tdevries@suse.de>
10445
10446 PR symtab/25801
10447 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10448 symtabs.
10449
3d5afab3
TV
104502020-04-22 Tom de Vries <tdevries@suse.de>
10451
10452 PR symtab/25700
10453 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10454 CU if already created.
10455
d43b7a2d
TBA
104562020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10457
10458 * infrun.c (displaced_step_fixup): Switch to the event_thread
10459 before calling displaced_step_restore, not after.
10460
d89edf9b
MM
104612020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10462
10463 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10464 its inferior is not recorded by us.
10465 (record_btrace_target_open): Replace call to
10466 all_non_exited_threads () with call to current_inferior
10467 ()->non_exited_threads ().
10468 (record_btrace_target::stop_recording): Likewise.
10469 (record_btrace_target::close): Likewise.
10470 (record_btrace_target::wait): Likewise.
10471 (record_btrace_target::record_stop_replaying): Likewise.
10472
5897fd49
MM
104732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10474
10475 * btrace.c (btrace_enable): Throw an error on double enables and
10476 when enabling recording fails.
10477 (btrace_disable): Throw an error if the thread is not recorded.
10478
1a476b6d
MM
104792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10480
10481 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10482 request if we do not have a thread_info.
10483
4778a5f8
TV
104842020-04-21 Tom de Vries <tdevries@suse.de>
10485
10486 PR gdb/25471
10487 * thread.c
10488 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10489 exception in get_frame_id.
10490
0fa7617d
TT
104912020-04-20 Tom Tromey <tromey@adacore.com>
10492
10493 * python/python.c (struct gdbpy_event): Mark move constructor as
10494 noexcept.
10495 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10496 constructor as noexcept.
10497 * completer.h (struct completion_result): Mark move constructor as
10498 noexcept.
10499 * completer.c (completion_result::completion_result): Use
10500 initialization style. Don't call reset_match_list.
10501
ad23bda0
MS
105022020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10503
10504 * MAINTAINERS (Write After Approval): Add myself.
10505
45e1f031
TT
105062020-04-18 Tom Tromey <tom@tromey.com>
10507
10508 * windows-tdep.c (init_w32_command_list)
10509 (w32_prefix_command_valid): Restore.
10510 (_initialize_windows_tdep): Call init_w32_command_list.
10511
08feed99
TT
105122020-04-18 Tom Tromey <tom@tromey.com>
10513
10514 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10515 * value.c (value_fn_field): Update.
10516 * valops.c (find_function_in_inferior)
10517 (value_allocate_space_in_inferior): Update.
10518 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10519 Update.
10520 * tui/tui-source.c (tui_source_window::set_contents): Update.
10521 * symtab.c (lookup_global_or_static_symbol)
10522 (find_function_start_sal_1, skip_prologue_sal)
10523 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10524 * symmisc.c (dump_msymbols, dump_symtab_1)
10525 (maintenance_print_one_line_table): Update.
10526 * symfile.c (init_entry_point_info, section_is_mapped)
10527 (list_overlays_command, simple_read_overlay_table)
10528 (simple_overlay_update_1): Update.
10529 * stap-probe.c (handle_stap_probe): Update.
10530 * stabsread.c (dbx_init_float_type, define_symbol)
10531 (read_one_struct_field, read_enum_type, read_range_type): Update.
10532 * source.c (info_line_command): Update.
10533 * python/python.c (gdbpy_source_objfile_script)
10534 (gdbpy_execute_objfile_script): Update.
10535 * python/py-type.c (save_objfile_types): Update.
10536 * python/py-objfile.c (py_free_objfile): Update.
10537 * python/py-inferior.c (python_new_objfile): Update.
10538 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10539 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10540 (maintenance_check_psymtabs): Update.
10541 * printcmd.c (info_address_command): Update.
10542 * objfiles.h (struct objfile) <arch>: New method, from
10543 get_objfile_arch.
10544 (get_objfile_arch): Don't declare.
10545 * objfiles.c (get_objfile_arch): Remove.
10546 (filter_overlapping_sections): Update.
10547 * minsyms.c (msymbol_is_function): Update.
10548 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10549 (output_nondebug_symbol): Update.
10550 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10551 (mdebug_expand_psymtab): Update.
10552 * machoread.c (macho_add_oso_symfile): Update.
10553 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10554 Update.
10555 * linux-fork.c (checkpoint_command): Update.
10556 * linespec.c (convert_linespec_to_sals): Update.
10557 * jit.c (finalize_symtab): Update.
10558 * infrun.c (insert_exception_resume_from_probe): Update.
10559 * ia64-tdep.c (ia64_find_unwind_table): Update.
10560 * hppa-tdep.c (internalize_unwinds): Update.
10561 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10562 Update.
10563 * gcore.c (call_target_sbrk): Update.
10564 * elfread.c (record_minimal_symbol, elf_symtab_read)
10565 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10566 (elf_gnu_ifunc_resolve_by_got): Update.
10567 * dwarf2/read.c (create_addrmap_from_index)
10568 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10569 (read_debug_names_from_section)
10570 (process_psymtab_comp_unit_reader, add_partial_symbol)
10571 (add_partial_subprogram, process_full_comp_unit)
10572 (read_file_scope, read_func_scope, read_lexical_block_scope)
10573 (read_call_site_scope, dwarf2_ranges_read)
10574 (dwarf2_record_block_ranges, dwarf2_add_field)
10575 (mark_common_block_symbol_computed, read_tag_pointer_type)
10576 (read_tag_string_type, dwarf2_init_float_type)
10577 (dwarf2_init_complex_target_type, read_base_type)
10578 (partial_die_info::read, partial_die_info::read)
10579 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10580 (dwarf2_fetch_die_loc_sect_off): Update.
10581 * dwarf2/loc.c (dwarf2_find_location_expression)
10582 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10583 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10584 (dwarf2_loc_desc_get_symbol_read_needs)
10585 (locexpr_describe_location_piece, locexpr_describe_location_1)
10586 (loclist_describe_location): Update.
10587 * dwarf2/index-write.c (write_debug_names): Update.
10588 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10589 * dtrace-probe.c (dtrace_process_dof): Update.
10590 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10591 (process_one_symbol): Update.
10592 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10593 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10594 (coff_read_enum_type): Update.
10595 * cli/cli-cmds.c (edit_command, list_command): Update.
10596 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10597 * breakpoint.c (create_overlay_event_breakpoint)
10598 (create_longjmp_master_breakpoint)
10599 (create_std_terminate_master_breakpoint)
10600 (create_exception_master_breakpoint, get_sal_arch): Update.
10601 * block.c (block_gdbarch): Update.
10602 * annotate.c (annotate_source_line): Update.
10603
0743fc83
TT
106042020-04-17 Tom Tromey <tromey@adacore.com>
10605
10606 * auto-load.c (show_auto_load_cmd): Remove.
10607 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10608 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10609 (maintenance_print_arc_command): Remove.
10610 * tui/tui-win.c (tui_command): Remove.
10611 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10612 * tui/tui-layout.c (tui_layout_command): Remove.
10613 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10614 * python/python.c (user_set_python, user_show_python): Remove.
10615 (_initialize_python): Use add_basic_prefix_cmd,
10616 add_show_prefix_cmd.
10617 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10618 (install_gdb_commands): Use add_basic_prefix_cmd,
10619 add_show_prefix_cmd.
10620 (info_guile_command): Remove.
10621 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10622 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10623 add_show_prefix_cmd.
10624 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10625 Remove do_set and do_show parameters.
10626 * cli/cli-style.c (set_style, show_style): Remove.
10627 (_initialize_cli_style): Use add_basic_prefix_cmd,
10628 add_show_prefix_cmd.
10629 (cli_style_option::add_setshow_commands): Remove do_set and
10630 do_show parameters.
10631 (cli_style_option::add_setshow_commands): Use
10632 add_basic_prefix_cmd, add_show_prefix_cmd.
10633 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10634 (set_style_name): Remove.
10635 * cli/cli-dump.c (dump_command, append_command): Remove.
10636 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10637 (tekhex_dump_command, binary_dump_command)
10638 (binary_append_command): Remove.
10639 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10640 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10641 (init_w32_command_list): Remove; move into ...
10642 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10643 * valprint.c (set_print, show_print, set_print_raw)
10644 (show_print_raw): Remove.
10645 (_initialize_valprint): Use add_basic_prefix_cmd,
10646 add_show_prefix_cmd.
10647 * typeprint.c (set_print_type, show_print_type): Remove.
10648 (_initialize_typeprint): Use add_basic_prefix_cmd,
10649 add_show_prefix_cmd.
10650 * record.c (set_record_command, show_record_command): Remove.
10651 (_initialize_record): Use add_basic_prefix_cmd,
10652 add_show_prefix_cmd.
10653 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10654 add_show_prefix_cmd.
10655 (info_command, show_command, set_debug, show_debug): Remove.
10656 * top.h (set_history, show_history): Don't declare.
10657 * top.c (set_history, show_history): Remove.
10658 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10659 (unset_tdesc_cmd): Remove.
10660 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10661 add_show_prefix_cmd.
10662 * symtab.c (info_module_command): Remove.
10663 (_initialize_symtab): Use add_basic_prefix_cmd.
10664 * symfile.c (overlay_command): Remove.
10665 (_initialize_symfile): Use add_basic_prefix_cmd.
10666 * sparc64-tdep.c (info_adi_command): Remove.
10667 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10668 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10669 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10670 add_show_prefix_cmd.
10671 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10672 (_initialize_serial): Use add_basic_prefix_cmd,
10673 add_show_prefix_cmd.
10674 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10675 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10676 add_show_prefix_cmd.
10677 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10678 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10679 add_show_prefix_cmd.
10680 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10681 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10682 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10683 add_show_prefix_cmd.
10684 * remote.c (remote_command, set_remote_cmd): Remove.
10685 (_initialize_remote): Use add_basic_prefix_cmd.
10686 * record-full.c (set_record_full_command)
10687 (show_record_full_command): Remove.
10688 (_initialize_record_full): Use add_basic_prefix_cmd,
10689 add_show_prefix_cmd.
10690 * record-btrace.c (cmd_set_record_btrace)
10691 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10692 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10693 (cmd_show_record_btrace_pt): Remove.
10694 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10695 add_show_prefix_cmd.
10696 * ravenscar-thread.c (set_ravenscar_command)
10697 (show_ravenscar_command): Remove.
10698 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10699 add_show_prefix_cmd.
10700 * mips-tdep.c (show_mips_command, set_mips_command)
10701 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10702 add_show_prefix_cmd.
10703 * maint.c (maintenance_command, maintenance_info_command)
10704 (maintenance_check_command, maintenance_print_command)
10705 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10706 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10707 add_show_prefix_cmd.
10708 (show_per_command_cmd): Remove.
10709 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10710 Remove.
10711 (maintenance_show_test_settings_cmd): Remove.
10712 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10713 add_show_prefix_cmd.
10714 * maint-test-options.c (maintenance_test_options_command):
10715 Remove.
10716 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10717 * macrocmd.c (macro_command): Remove
10718 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10719 * language.c (set_check, show_check): Remove.
10720 (_initialize_language): Use add_basic_prefix_cmd,
10721 add_show_prefix_cmd.
10722 * infcmd.c (unset_command): Remove.
10723 (_initialize_infcmd): Use add_basic_prefix_cmd.
10724 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10725 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10726 add_show_prefix_cmd.
10727 * go32-nat.c (go32_info_dos_command): Remove.
10728 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10729 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10730 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10731 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10732 (_initialize_frame): Use add_basic_prefix_cmd,
10733 add_show_prefix_cmd.
10734 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10735 (_initialize_dcache): Use add_basic_prefix_cmd,
10736 add_show_prefix_cmd.
10737 * cp-support.c (maint_cplus_command): Remove.
10738 (_initialize_cp_support): Use add_basic_prefix_cmd.
10739 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10740 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10741 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10742 add_basic_prefix_cmd, add_show_prefix_cmd.
10743 * breakpoint.c (save_command): Remove.
10744 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10745 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10746 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10747 add_show_prefix_cmd.
10748 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10749 (set_ada_command, show_ada_command): Remove.
10750 (_initialize_ada_language): Use add_basic_prefix_cmd,
10751 add_show_prefix_cmd.
10752 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10753
3557f442
KR
107542020-04-16 Kamil Rytarowski <n54@gmx.com>
10755
10756 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10757 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10758
16197208
SM
107592020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10760
10761 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10762 warning messages.
10763
00ac85d3
SM
107642020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10765
10766 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10767 import table is not at beginning of .idata section.
10768
381ce63f
PA
107692020-04-16 Pedro Alves <palves@redhat.com>
10770
10771 * inferior.c (delete_inferior): Use delete operator directly
10772 instead of delete_program_space.
10773 * progspace.c (add_program_space): New, factored out from
10774 program_space::program_space.
10775 (remove_program_space): New, factored out from
10776 delete_program_space.
10777 (program_space::program_space): Remove intro comment. Rewrite.
10778 (program_space::~program_space): Remove intro comment. Call
10779 remove_program_space.
10780 (delete_program_space): Delete.
10781 * progspace.h (program_space::program_space): Make explicit. Move
10782 intro comment here, adjusted.
10783 (program_space::~program_space): Move intro comment here,
10784 adjusted.
10785 (delete_program_space): Remove.
10786
a010605f
TT
107872020-04-16 Tom Tromey <tromey@adacore.com>
10788
10789 * windows-nat.c (windows_nat::handle_access_violation): New
10790 function.
10791 * nat/windows-nat.h (handle_access_violation): Declare.
10792 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10793 windows-nat.c. Call handle_access_violation.
10794
efba5c23
TV
107952020-04-16 Tom de Vries <tdevries@suse.de>
10796
10797 PR symtab/25791
10798 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10799 CUs without psymtab.
10800
97ed802d
KB
108012020-04-16 Kevin Buettner <kevinb@redhat.com>
10802
10803 * python/python.c (do_start_initialization): Don't call
10804 PyEval_InitThreads for Python 3.9 and beyond.
10805
c7d64809
KR
108062020-04-15 Kamil Rytarowski <n54@gmx.com>
10807
10808 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10809 thread functions.
10810 (obsd_nat_target::wait): Likewise.
10811
ce127a96
TT
108122020-04-15 Tom Tromey <tromey@adacore.com>
10813
10814 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10815 (DEBUG_EXCEPT): Use debug_printf.
10816
99f1bc6a
AB
108172020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * completer.c (class completion_tracker::completion_hash_entry)
10820 <hash_name>: New member function.
10821 (completion_tracker::discard_completions): New callback to hash a
10822 completion_hash_entry, pass this to htab_create_alloc.
10823
a0e9b532
JT
108242016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10825
10826 * windows-nat.c (windows_make_so): Warn rather than stopping with
10827 an error if realpath() fails.
10828
06ca5dd4
KR
108292020-04-14 Kamil Rytarowski <n54@gmx.com>
10830
10831 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10832 (nbsd_nat_target::info_proc): Add do_status.
10833
194d088f
TV
108342020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10835 Tom de Vries <tdevries@suse.de>
10836
10837 PR symtab/25718
10838 * psympriv.h (struct partial_symtab::read_symtab)
10839 (struct partial_symtab::expand_psymtab)
10840 (struct partial_symtab::read_dependencies): Update comments.
10841 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10842 read_symtab for includer.
10843 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10844 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10845 (struct dwarf2_include_psymtab::m_readin): Remove.
10846 (struct dwarf2_include_psymtab::includer): New member function.
10847 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10848
c1a66c06
TV
108492020-04-14 Tom de Vries <tdevries@suse.de>
10850
10851 PR symtab/25720
10852 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10853 with NULL symbol_matcher and lookup_name.
10854 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10855 and lookup_name.
10856 * dwarf2/read.c (dw2_expand_symtabs_matching)
10857 (dw2_debug_names_expand_symtabs_matching): Same.
10858 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10859 Make lookup_name a pointer. Update comment.
10860 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10861 lookup_name being a pointer.
10862 * symfile.c (expand_symtabs_matching): Same.
10863 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10864 * linespec.c (iterate_over_all_matching_symtabs): Same.
10865
400b5eca
TT
108662020-04-13 Tom Tromey <tom@tromey.com>
10867
10868 * run-on-main-thread.c: Update include.
10869 * unittests/main-thread-selftests.c: Update include.
10870 * tui/tui-win.c: Update include.
10871 * tui/tui-io.c: Update include.
10872 * tui/tui-interp.c: Update include.
10873 * tui/tui-hooks.c: Update include.
10874 * top.h: Update include.
10875 * top.c: Update include.
10876 * ser-base.c: Update include.
10877 * remote.c: Update include.
10878 * remote-notif.c: Update include.
10879 * remote-fileio.c: Update include.
10880 * record-full.c: Update include.
10881 * record-btrace.c: Update include.
10882 * python/python.c: Update include.
10883 * posix-hdep.c: Update include.
10884 * mingw-hdep.c: Update include.
10885 * mi/mi-main.c: Update include.
10886 * mi/mi-interp.c: Update include.
10887 * main.c: Update include.
10888 * linux-nat.c: Update include.
10889 * interps.c: Update include.
10890 * infrun.c: Update include.
10891 * inf-loop.c: Update include.
10892 * event-top.c: Update include.
10893 * event-loop.c: Move to ../gdbsupport/.
10894 * event-loop.h: Move to ../gdbsupport/.
10895 * async-event.h: Update include.
10896 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10897
93b54c8e
TT
108982020-04-13 Tom Tromey <tom@tromey.com>
10899
10900 * tui/tui-win.c: Include async-event.h.
10901 * remote.c: Include async-event.h.
10902 * remote-notif.c: Include async-event.h.
10903 * record-full.c: Include async-event.h.
10904 * record-btrace.c: Include async-event.h.
10905 * infrun.c: Include async-event.h.
10906 * event-top.c: Include async-event.h.
10907 * event-loop.h: Move some declarations to async-event.h.
10908 * event-loop.c: Don't include ser-event.h or top.h. Move some
10909 code to async-event.c.
10910 * async-event.h: New file.
10911 * async-event.c: New file.
10912 * Makefile.in (COMMON_SFILES): Add async-event.c.
10913 (HFILES_NO_SRCDIR): Add async-event.h.
10914
c1cd3163
TT
109152020-04-13 Tom Tromey <tom@tromey.com>
10916
10917 * utils.c (flush_streams): New function.
10918 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10919
29f2bf4f
TT
109202020-04-13 Tom Tromey <tom@tromey.com>
10921
10922 * event-loop.c (handle_file_event): Use warning, not
10923 printf_unfiltered.
10924
98029d02
TT
109252020-04-13 Tom Tromey <tom@tromey.com>
10926
10927 * event-loop.c: Include <chrono>.
10928
06cc9596
TT
109292020-04-13 Tom Tromey <tom@tromey.com>
10930
10931 * gdb_select.h: Move to ../gdbsupport/.
10932 * event-loop.c: Update include path.
10933 * top.c: Update include path.
10934 * ser-base.c: Update include path.
10935 * ui-file.c: Update include path.
10936 * ser-tcp.c: Update include path.
10937 * guile/scm-ports.c: Update include path.
10938 * posix-hdep.c: Update include path.
10939 * ser-unix.c: Update include path.
10940 * gdb_usleep.c: Update include path.
10941 * mingw-hdep.c: Update include path.
10942 * inflow.c: Update include path.
10943 * infrun.c: Update include path.
10944 * event-top.c: Update include path.
10945
8ae8e197
TT
109462020-04-13 Tom Tromey <tom@tromey.com>
10947
10948 * configure: Rebuild.
10949 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10950
58cf28e8
TT
109512020-04-13 Tom Tromey <tom@tromey.com>
10952
10953 * event-loop.h (start_event_loop): Don't declare.
10954 * event-loop.c (start_event_loop): Move...
10955 * main.c (start_event_loop): ...here. Now static.
10956
b7f999ae
SDJ
109572020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10958
10959 * MAINTAINERS: Update my email address.
10960
1085dfd4
KR
109612020-04-12 Kamil Rytarowski <n54@gmx.com>
10962
10963 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10964 IP_ALL.
10965
49d1d1f5
KR
109662020-04-12 Kamil Rytarowski <n54@gmx.com>
10967
10968 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10969 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10970
b4848d2a
KR
109712020-04-12 Kamil Rytarowski <n54@gmx.com>
10972
10973 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10974 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10975
51c133d5
KR
109762020-04-12 Kamil Rytarowski <n54@gmx.com>
10977
10978 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10979
54b8cbd0
KR
109802020-04-11 Kamil Rytarowski <n54@gmx.com>
10981
10982 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10983 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10984 (nbsd_nat_target::info_proc): New functions.
10985 * nbsd-nat.c (kinfo_get_vmmap): New function.
10986 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10987 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10988 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10989 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10990 functions.
10991 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10992 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10993 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10994 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10995 (KINFO_VME_FLAG_GROWS_DOWN): New.
10996
cf83625d
AS
109972020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10998
10999 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11000 bit shift.
11001
0c4311ab
TT
110022020-04-10 Tom Tromey <tromey@adacore.com>
11003
11004 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11005
3e65b3e9
TT
110062020-04-10 Tom Tromey <tromey@adacore.com>
11007
11008 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11009 separate debug files.
11010
13302e95
HD
110112020-04-10 Hannes Domani <ssbssa@yahoo.de>
11012
11013 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11014 Move to...
11015 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11016 ... here.
11017 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11018 Check for STATUS_WX86_BREAKPOINT.
11019 (windows_nat_target::wait): Same.
11020
bdfc1e8a
TV
110212020-04-10 Tom de Vries <tdevries@suse.de>
11022
11023 PR cli/25808
11024 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11025
f4460aec
SM
110262020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11027
11028 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11029 (Write After Approval): Remove Tom de Vries.
11030
a25198bb
BE
110312020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11032
11033 revert partially:
11034 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11035
aac66a4c
SM
11036 * buildsym.c (record_line): Fix undefined behavior and preserve
11037 lines at eof.
a25198bb 11038
206c98a6
KR
110392020-04-09 Kamil Rytarowski <n54@gmx.com>
11040
11041 * auxv.h (svr4_auxv_parse): New.
11042 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11043 and generic_auxv_parse.
11044 (svr4_auxv_parse): Add.
11045 * obsd-tdep.c: Include "auxv.h".
11046 (obsd_auxv_parse): Remove.
11047 (obsd_init_abi): Remove comment.
11048 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11049 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11050 * nbsd-tdep.c: Include "auxv.h".
11051 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11052
71fbdbaf
TT
110532020-04-08 Tom Tromey <tromey@adacore.com>
11054
11055 * nat/windows-nat.h (last_wait_event): Don't declare.
11056 (wait_for_debug_event): Update comment.
11057 * nat/windows-nat.c (last_wait_event): Now static.
11058
2c1d95e8
TT
110592020-04-08 Tom Tromey <tromey@adacore.com>
11060
11061 * windows-nat.c (wait_for_debug_event): Move to
11062 nat/windows-nat.c.
11063 * nat/windows-nat.h (wait_for_debug_event): Declare.
11064 * nat/windows-nat.c (wait_for_debug_event): Move from
11065 windows-nat.c. No longer static.
11066
d2977bc4
TT
110672020-04-08 Tom Tromey <tromey@adacore.com>
11068
11069 * windows-nat.c (get_windows_debug_event): Use
11070 fetch_pending_stop.
11071 * nat/windows-nat.h (fetch_pending_stop): Declare.
11072 * nat/windows-nat.c (fetch_pending_stop): New function.
11073
e758e19c
TT
110742020-04-08 Tom Tromey <tromey@adacore.com>
11075
11076 * windows-nat.c (windows_continue): Use matching_pending_stop and
11077 continue_last_debug_event.
11078 * nat/windows-nat.h (matching_pending_stop)
11079 (continue_last_debug_event): Declare.
11080 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11081 (matching_pending_stop, continue_last_debug_event): New
11082 functions.
11083
8d30e395
TT
110842020-04-08 Tom Tromey <tromey@adacore.com>
11085
11086 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11087 (handle_exception_result): Move to nat/windows-nat.h.
11088 (DEBUG_EXCEPTION_SIMPLE): Remove.
11089 (windows_nat::handle_ms_vc_exception): New function.
11090 (handle_exception): Move to nat/windows-nat.c.
11091 (get_windows_debug_event): Update.
11092 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11093 nat/windows-nat.c.
11094 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11095 (handle_exception_result): Move from windows-nat.c.
11096 (handle_exception): Declare.
11097 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11098 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11099 windows-nat.c.
11100
29de418d
TT
111012020-04-08 Tom Tromey <tromey@adacore.com>
11102
11103 * windows-nat.c (exception_count, event_count): Remove.
11104 (handle_exception, get_windows_debug_event)
11105 (do_initial_windows_stuff): Update.
11106
a816ba18
TT
111072020-04-08 Tom Tromey <tromey@adacore.com>
11108
11109 * windows-nat.c (windows_nat::handle_load_dll)
11110 (windows_nat::handle_unload_dll): Rename. No longer static.
11111 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11112 Declare.
11113
a00caa12
TT
111142020-04-08 Tom Tromey <tromey@adacore.com>
11115
11116 * complaints.h (stop_whining): Declare at top-level.
11117 (complaint): Don't declare stop_whining.
11118
d41b524f
TT
111192020-04-08 Tom Tromey <tromey@adacore.com>
11120
11121 * windows-nat.c (windows_nat::handle_output_debug_string):
11122 Rename. No longer static.
11123 * nat/windows-nat.h (handle_output_debug_string): Declare.
11124
3c76026d
TT
111252020-04-08 Tom Tromey <tromey@adacore.com>
11126
11127 * windows-nat.c (current_process_handle, current_process_id)
11128 (main_thread_id, last_sig, current_event, last_wait_event)
11129 (current_windows_thread, desired_stop_thread_id, pending_stops)
11130 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11131 (display_selectors, fake_create_process)
11132 (get_windows_debug_event): Update.
11133 * nat/windows-nat.h (current_process_handle, current_process_id)
11134 (main_thread_id, last_sig, current_event, last_wait_event)
11135 (current_windows_thread, desired_stop_thread_id, pending_stops)
11136 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11137 * nat/windows-nat.c (current_process_handle, current_process_id)
11138 (main_thread_id, last_sig, current_event, last_wait_event)
11139 (current_windows_thread, desired_stop_thread_id, pending_stops)
11140 (siginfo_er): New globals. Move from windows-nat.c.
11141
9d8679cc
TT
111422020-04-08 Tom Tromey <tromey@adacore.com>
11143
11144 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11145 (handle_load_dll): Update.
11146 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11147
28688adf
TT
111482020-04-08 Tom Tromey <tromey@adacore.com>
11149
11150 * windows-nat.c (enum thread_disposition_type): Move to
11151 nat/windows-nat.h.
11152 (windows_nat::thread_rec): Rename from thread_rec. No longer
11153 static.
11154 (windows_add_thread, windows_nat_target::fetch_registers)
11155 (windows_nat_target::store_registers, handle_exception)
11156 (windows_nat_target::resume, get_windows_debug_event)
11157 (windows_nat_target::get_tib_address)
11158 (windows_nat_target::thread_name)
11159 (windows_nat_target::thread_alive): Update.
11160 * nat/windows-nat.h (enum thread_disposition_type): Move from
11161 windows-nat.c.
11162 (thread_rec): Declare.
11163
4834dad0
TT
111642020-04-08 Tom Tromey <tromey@adacore.com>
11165
11166 * windows-nat.c: Add "using namespace".
11167 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11168 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11169
65bafd5b
TT
111702020-04-08 Tom Tromey <tromey@adacore.com>
11171
11172 * nat/windows-nat.h (struct windows_thread_info): Declare
11173 destructor.
11174 * nat/windows-nat.c (~windows_thread_info): New.
11175
0a4afda3
TT
111762020-04-08 Tom Tromey <tromey@adacore.com>
11177
11178 PR gdb/22992
11179 * windows-nat.c (current_event): Update comment.
11180 (last_wait_event, desired_stop_thread_id): New globals.
11181 (struct pending_stop): New.
11182 (pending_stops): New global.
11183 (windows_nat_target) <stopped_by_sw_breakpoint>
11184 <supports_stopped_by_sw_breakpoint>: New methods.
11185 (windows_fetch_one_register): Add assertions. Adjust PC.
11186 (windows_continue): Handle pending stops. Suspend other threads
11187 when stepping. Use last_wait_event
11188 (wait_for_debug_event): New function.
11189 (get_windows_debug_event): Use wait_for_debug_event. Handle
11190 pending stops. Queue spurious stops.
11191 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11192 (windows_nat_target::kill): Use wait_for_debug_event.
11193 * nat/windows-nat.h (struct windows_thread_info)
11194 <stopped_at_software_breakpoint>: New field.
11195 * nat/windows-nat.c (windows_thread_info::resume): Clear
11196 stopped_at_software_breakpoint.
11197
8e61ebec
TT
111982020-04-08 Tom Tromey <tromey@adacore.com>
11199
11200 * windows-nat.c (enum thread_disposition_type): New.
11201 (thread_rec): Replace "get_context" parameter with "disposition";
11202 change type.
11203 (windows_add_thread, windows_nat_target::fetch_registers)
11204 (windows_nat_target::store_registers, handle_exception)
11205 (windows_nat_target::resume, get_windows_debug_event)
11206 (windows_nat_target::get_tib_address)
11207 (windows_nat_target::thread_name)
11208 (windows_nat_target::thread_alive): Update.
11209
98a03287
TT
112102020-04-08 Tom Tromey <tromey@adacore.com>
11211
11212 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11213 (windows_continue): Use windows_continue::resume.
11214 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11215 resume>: Declare new methods.
11216 * nat/windows-nat.c: New file.
11217 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11218
7c7411bc
TT
112192020-04-08 Tom Tromey <tromey@adacore.com>
11220
11221 * windows-nat.c (windows_add_thread, windows_delete_thread)
11222 (windows_nat_target::fetch_registers)
11223 (windows_nat_target::store_registers, fake_create_process)
11224 (windows_nat_target::resume, windows_nat_target::resume)
11225 (get_windows_debug_event, windows_nat_target::wait)
11226 (windows_nat_target::pid_to_str)
11227 (windows_nat_target::get_tib_address)
11228 (windows_nat_target::get_ada_task_ptid)
11229 (windows_nat_target::thread_name)
11230 (windows_nat_target::thread_alive): Use lwp, not tid.
11231
2950fdf7
TT
112322020-04-08 Tom Tromey <tromey@adacore.com>
11233
11234 * windows-nat.c (handle_exception)
11235 (windows_nat_target::thread_name): Update.
11236 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11237 <name>: Now unique_xmalloc_ptr.
11238
62fe396b
TT
112392020-04-08 Tom Tromey <tromey@adacore.com>
11240
11241 * windows-nat.c (thread_rec)
11242 (windows_nat_target::fetch_registers): Update.
11243 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11244 Update comment.
11245 <debug_registers_changed, reload_context>: Now bool.
11246
e9534bd2
TT
112472020-04-08 Tom Tromey <tromey@adacore.com>
11248
11249 * windows-nat.c (windows_add_thread): Use new.
11250 (windows_init_thread_list, windows_delete_thread): Use delete.
11251 (get_windows_debug_event): Update.
11252 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11253 destructor, and initializers.
11254
ae1f8880
TT
112552020-04-08 Tom Tromey <tromey@adacore.com>
11256
11257 * windows-nat.c (struct windows_thread_info): Remove.
11258 * nat/windows-nat.h: New file.
11259
55a1e039
TT
112602020-04-08 Tom Tromey <tromey@adacore.com>
11261
11262 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11263 (thread_rec, windows_add_thread, windows_delete_thread)
11264 (windows_continue): Update.
11265
93366324
TT
112662020-04-08 Tom Tromey <tromey@adacore.com>
11267
11268 * windows-nat.c (struct windows_thread_info): Remove typedef.
11269 (thread_head): Remove.
11270 (thread_list): New global.
11271 (thread_rec, windows_add_thread, windows_init_thread_list)
11272 (windows_delete_thread, windows_continue): Update.
11273
0f2265e2
SM
112742020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11275
11276 * windows-tdep.h (windows_init_abi): Add comment.
11277 (cygwin_init_abi): New declaration.
11278 * windows-tdep.c: Split signal enumeration in two, one for
11279 Windows and one for Cygwin.
11280 (windows_gdb_signal_to_target): Only deal with signal of the
11281 Windows OS ABI.
11282 (cygwin_gdb_signal_to_target): New function.
11283 (windows_init_abi): Rename to windows_init_abi_common, don't set
11284 gdb_signal_to_target gdbarch method. Add new new function with
11285 this name.
11286 (cygwin_init_abi): New function.
11287 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11288 comment. Don't call windows_init_abi.
11289 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11290 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11291 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11292 i386_windows_init_abi_common, don't call windows_init_abi. Add
11293 a new function of this name.
11294 (i386_cygwin_init_abi): New function.
11295 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11296 OS ABI Cygwin.
11297
3810f182
SM
112982020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11299
11300 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11301 parameter.c.
11302 (dwarf2_read_gdb_index): Update.
11303
063f8e80
KR
113042020-04-07 Kamil Rytarowski <n54@gmx.com>
11305
11306 * nbsd-tdep.c: Include "objfiles.h".
11307 (nbsd_skip_solib_resolver): New.
11308 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11309
85a9510c 113102020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11311
11312 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11313 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11314 with DW_LLE_base_addressx are being emitted in DWARFv5.
11315 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11316 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11317 unsigned integer.
11318
9fc3eaae 113192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11320
11321 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11322 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11323 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11324 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11325 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11326 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11327 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11328
11329
41144253 113302020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11331
11332 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11333 (read_loclist_index): New function definition.
11334 (lookup_loclist_base): New function definition.
11335 (read_loclist_header): New function definition.
11336 (dwarf2_cu): Add loclist_base and loclist_header field.
11337 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11338 (read_full_die_1): Read the value of DW_AT_loclists_base.
11339 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11340 (read_attribute_value): Handle DW_FORM_loclistx.
11341 (skip_one_die): Handle DW_FORM_loclistx.
11342 (loclist_header): New structure declaration.
11343 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11344
9f4e76a4
SM
113452020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11346
11347 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11348 constructor. Remove `addr` parameter from other constructor and
11349 add `per_cu` parameter.
11350 * dwarf2/read.c (create_partial_symtab): Update.
11351
25c11aca
TV
113522020-04-07 Tom de Vries <tdevries@suse.de>
11353
11354 PR symtab/25796
11355 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11356 (partial_die_info::fixup): Inherit has_const_value.
11357
5707e24b
TV
113582020-04-07 Tom de Vries <tdevries@suse.de>
11359
11360 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11361 symbols without address.
11362
05f00e22
KR
113632020-04-06 Kamil Rytarowski <n54@gmx.com>
11364
11365 * nbsd-nat.h (struct thread_info): Add forward declaration.
11366 (nbsd_nat_target::thread_alive): Add.
11367 (nbsd_nat_target::thread_name): Likewise.
11368 (nbsd_nat_target::update_thread_list): Likewise.
11369 (update_thread_list::post_attach): Likewise.
11370 (post_attach::pid_to_str): Likewise.
11371 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11372 (nbsd_thread_lister): Add.
11373 (nbsd_nat_target::thread_alive): Likewise.
11374 (nbsd_nat_target::thread_name): Likewise.
11375 (nbsd_add_threads): Likewise.
11376 (update_thread_list::post_attach): Likewise.
11377 (nbsd_nat_target::update_thread_list): Likewise.
11378 (post_attach::pid_to_str): Likewise.
11379
6ee448cc
TT
113802020-04-06 Tom Tromey <tromey@adacore.com>
11381
11382 * ada-valprint.c (print_variant_part): Extract the variant field.
11383 (print_field_values): Use the field as the outer value when
11384 recursing.
11385
dea34e8c
TT
113862020-04-06 Tom Tromey <tromey@adacore.com>
11387
11388 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11389 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11390 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11391 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11392 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11393
93689ce9
TT
113942020-04-06 Tom Tromey <tromey@adacore.com>
11395
11396 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11397 TYPE_CODE_ERROR.
11398
79743962
KR
113992020-04-06 Kamil Rytarowski <n54@gmx.com>
11400
11401 * nbsd-tdep.c: Include "gdbarch.h".
11402 Define enum with NetBSD signal numbers.
11403 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11404 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11405 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11406 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11407 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11408 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11409 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11410 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11411 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11412 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11413 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11414 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11415
9e7c9a03
HD
114162020-04-03 Hannes Domani <ssbssa@yahoo.de>
11417
11418 PR gdb/25325
11419 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11420
d9e49b61
TT
114212020-04-03 Tom Tromey <tromey@adacore.com>
11422
11423 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11424 Read constant block.
11425
e0fc5c3f
SM
114262020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11427
11428 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11429 (gdb_bfd_get_full_section_contents): New declaration.
11430 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11431 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11432 gdb_bfd_get_full_section_contents.
11433
e2ff18a0
SM
114342020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11435
11436 * exec.c (build_section_table): Replace internal_error with
11437 gdb_assert.
11438 (section_table_xfer_memory_partial): Likewise.
11439 * mdebugread.c (parse_partial_symbols): Likewise.
11440 * psymtab.c (lookup_partial_symbol): Likewise.
11441 * utils.c (wrap_here): Likewise.
11442
0830d301
TT
114432020-04-02 Tom Tromey <tromey@adacore.com>
11444
11445 * f-lang.c (build_fortran_types): Use arch_type to initialize
11446 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11447
e7da7f8f
TT
114482020-04-02 Tom Tromey <tromey@adacore.com>
11449
11450 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11451 of attributes.
11452
c90d28ac
AB
114532020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11454 Bernd Edlinger <bernd.edlinger@hotmail.de>
11455 Tom Tromey <tromey@adacore.com>
11456
11457 * buildsym.c (buildsym_compunit::record_line): Remove
11458 deduplication code.
11459
1aa98955
TV
114602020-04-02 Tom de Vries <tdevries@suse.de>
11461
11462 PR ada/24671
11463 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11464
d3214198
TV
114652020-04-02 Tom de Vries <tdevries@suse.de>
11466
11467 * dwarf2/read.c (dwarf2_gdb_index_functions,
11468 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11469 NULL.
11470 * psymtab.c (psym_lookup_global_symbol_language): New function.
11471 (psym_functions): Init psym_lookup_global_symbol_language with
11472 psym_lookup_global_symbol_language.
11473 * symfile-debug.c (debug_sym_quick_functions): Init
11474 lookup_global_symbol_language with NULL.
11475 * symfile.c (set_initial_language): Remove fixme comment.
11476 * symfile.h (struct quick_symbol_functions): Add
11477 lookup_global_symbol_language.
11478 * symtab.c (find_quick_global_symbol_language): New function.
11479 (find_main_name): Use find_quick_global_symbol_language.
11480
2836752f
SM
114812020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11482
11483 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11484
64dc2d4b
BE
114852020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11486
11487 * buildsym.c (record_line): Fix undefined behavior and preserve
11488 lines at eof.
11489
bbe3dc41
BE
114902020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11491
11492 * buildsym.c (record_line): Fix the resizing condition.
11493
6b4a335b
TT
114942020-04-01 Tom Tromey <tom@tromey.com>
11495
11496 * value.h (value_literal_complex): Add comment.
11497 * valops.c (value_literal_complex): Refer to value.h.
11498
3638a098
TT
114992020-04-01 Tom Tromey <tom@tromey.com>
11500
11501 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11502 (scalar_type): New rule, from typebase.
11503 (typebase): Use scalar_type. Recognize complex types.
11504 (field_name): Handle FLOAT_KEYWORD.
11505 (ident_tokens): Add _Complex and __complex__.
11506
c34e8714
TT
115072020-04-01 Tom Tromey <tom@tromey.com>
11508
11509 PR exp/25299:
11510 * valarith.c (promotion_type, complex_binop): New functions.
11511 (scalar_binop): Handle complex numbers. Use promotion_type.
11512 (value_pos, value_neg, value_complement): Handle complex numbers.
11513
fa649bb7
TT
115142020-04-01 Tom Tromey <tom@tromey.com>
11515
11516 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11517 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11518 (parse_number): Handle complex numbers.
11519
981c08ce
TT
115202020-04-01 Tom Tromey <tom@tromey.com>
11521
11522 * c-valprint.c (c_decorations): Change complex suffix to "i".
11523
4c99290d
TT
115242020-04-01 Tom Tromey <tom@tromey.com>
11525
11526 * valprint.c (generic_value_print_complex): Use accessors.
11527 * value.h (value_real_part, value_imaginary_part): Declare.
11528 * valops.c (value_real_part, value_imaginary_part): New
11529 functions.
11530 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11531
5b930b45
TT
115322020-04-01 Tom Tromey <tom@tromey.com>
11533
11534 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11535 (read_range_type): Update.
11536 * mdebugread.c (basic_type): Update.
11537 * go-lang.c (build_go_types): Use init_complex_type.
11538 * gdbtypes.h (struct main_type) <complex_type>: New member.
11539 (init_complex_type): Update.
11540 (arch_complex_type): Don't declare.
11541 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11542 Make name if none given. Use alloc_type_copy. Look for cached
11543 complex type.
11544 (arch_complex_type): Remove.
11545 (gdbtypes_post_init): Use init_complex_type.
11546 * f-lang.c (build_fortran_types): Use init_complex_type.
11547 * dwarf2/read.c (read_base_type): Update.
11548 * d-lang.c (build_d_types): Use init_complex_type.
11549 * ctfread.c (read_base_type): Update.
11550
53cccef1
TBA
115512020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11552
11553 * infrun.c (stop_all_threads): Update assertion, plus when
11554 stopping threads, take into account that we might be trying
11555 to stop an all-stop target.
11556 (stop_waiting): Call 'stop_all_threads' if there exists a
11557 non-stop target.
11558
a0714d30
TBA
115592020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11560
11561 * target.h (exists_non_stop_target): New function declaration.
11562 * target.c (exists_non_stop_target): New function.
11563
60e22c1e
HD
115642020-04-01 Hannes Domani <ssbssa@yahoo.de>
11565
11566 PR gdb/24789
11567 * eval.c (is_integral_or_integral_reference): New function.
11568 (evaluate_subexp_standard): Allow integer references in
11569 pointer arithmetic.
11570
e139a727
TBA
115712020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11572
11573 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11574 check for no ptid in the stop reply when the target is non-stop.
11575
e0802d59
TT
115762020-04-01 Tom Tromey <tromey@adacore.com>
11577
11578 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11579 "name" parameter to rvalue reference. Initialize m_name_holder.
11580 <lookup_name_info>: New overloads.
11581 <name>: Return gdb::string_view.
11582 <c_str>: New method.
11583 <make_ignore_params>: Update.
11584 <search_name_hash>: Update.
11585 <language_lookup_name>: Return const char *.
11586 <m_name>: Change type.
11587 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11588 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11589 (lookup_name_info::match_any): Update.
11590 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11591 Update.
11592 * minsyms.c (linkage_name_str): Update.
11593 * language.c (default_symbol_name_matcher): Update.
11594 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11595 Update.
11596 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11597 (ada_lookup_name_info::ada_lookup_name_info): Update.
11598 (literal_symbol_name_matcher): Update.
11599
8c072cb6
TT
116002020-04-01 Tom Tromey <tromey@adacore.com>
11601
11602 * psymtab.c (psymtab_search_name): Remove function.
11603 (psym_lookup_symbol): Create search name and lookup name here.
11604 (lookup_partial_symbol): Remove "name" parameter; add
11605 lookup_name.
11606 (psym_expand_symtabs_for_function): Update.
11607
6f29a534
TT
116082020-03-31 Joel Jones <joelkevinjones@gmail.com>
11609
11610 PR tui/25597:
11611 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11612
af62665e
TT
116132020-03-31 Tom Tromey <tromey@adacore.com>
11614
11615 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11616 memcpy.
11617
d1a89da5
NC
116182020-03-30 Nelson Chu <nelson.chu@sifive.com>
11619
11620 * features/riscv/32bit-csr.xml: Regenerated.
11621 * features/riscv/64bit-csr.xml: Regenerated.
11622
d8af9068
TT
116232020-03-30 Tom Tromey <tromey@adacore.com>
11624
11625 * ada-valprint.c (print_variant_part): Update.
11626 * ada-lang.h (ada_which_variant_applies): Update.
11627 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11628 outer_valaddr parameters; replace with "outer" value parameter.
11629 (to_fixed_variant_branch_type): Update.
11630
227c0bf4
PFC
116312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11632
11633 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11634 <list>. Remove inclusion of observable.h.
11635 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11636 (struct arch_lwp_info): New struct.
11637 (class ppc_linux_dreg_interface): New class.
11638 (struct ppc_linux_process_info): New struct.
11639 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11640 <low_new_clone, low_forget_process, low_prepare_to_resume>
11641 <copy_thread_dreg_state, mark_thread_stale>
11642 <mark_debug_registers_changed, register_hw_breakpoint>
11643 <clear_hw_breakpoint, register_wp, clear_wp>
11644 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11645 <num_memory_accesses, get_trigger_type>
11646 <create_watchpoint_request, hwdebug_point_cmp>
11647 <init_arch_lwp_info, get_arch_lwp_info>
11648 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11649 methods.
11650 <struct ptid_hash>: New inner struct.
11651 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11652 members.
11653 (saved_dabr_value, hwdebug_info, max_slots_number)
11654 (struct hw_break_tuple, struct thread_points, ppc_threads)
11655 (have_ptrace_hwdebug_interface)
11656 (hwdebug_find_thread_points_by_tid)
11657 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11658 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11659 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11660 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11661 use m_dreg_interface.
11662 (hwdebug_point_cmp): Change to...
11663 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11664 reference arguments instead of pointers.
11665 (ppc_linux_nat_target::ranged_break_num_registers): Use
11666 m_dreg_interface.
11667 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11668 m_dreg_interface. Call register_hw_breakpoint.
11669 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11670 m_dreg_interface. Call clear_hw_breakpoint.
11671 (get_trigger_type): Change to...
11672 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11673 comment.
11674 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11675 use m_dreg_interface. Call register_hw_breakpoint.
11676 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11677 use m_dreg_interface. Call clear_hw_breakpoint.
11678 (can_use_watchpoint_cond_accel): Change to...
11679 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11680 method. Update comment, use m_dreg_interface and
11681 m_process_info.
11682 (calculate_dvc): Change to...
11683 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11684 m_dreg_interface.
11685 (num_memory_accesses): Change to...
11686 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11687 (check_condition): Change to...
11688 (ppc_linux_nat_target::check_condition): ...this method.
11689 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11690 comment, use m_dreg_interface.
11691 (create_watchpoint_request): Change to...
11692 (ppc_linux_nat_target::create_watchpoint_request): ...this
11693 method. Use m_dreg_interface.
11694 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11695 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11696 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11697 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11698 (ppc_linux_nat_target::low_forget_process)
11699 (ppc_linux_nat_target::low_new_fork)
11700 (ppc_linux_nat_target::low_new_clone)
11701 (ppc_linux_nat_target::low_delete_thread)
11702 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11703 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11704 only call mark_thread_stale.
11705 (ppc_linux_thread_exit): Remove.
11706 (ppc_linux_nat_target::stopped_data_address): Change to...
11707 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11708 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11709 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11710 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11711 comment. Call low_stopped_data_address.
11712 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11713 m_dreg_interface.
11714 (ppc_linux_nat_target::masked_watch_num_registers): Use
11715 m_dreg_interface.
11716 (ppc_linux_nat_target::copy_thread_dreg_state)
11717 (ppc_linux_nat_target::mark_thread_stale)
11718 (ppc_linux_nat_target::mark_debug_registers_changed)
11719 (ppc_linux_nat_target::register_hw_breakpoint)
11720 (ppc_linux_nat_target::clear_hw_breakpoint)
11721 (ppc_linux_nat_target::register_wp)
11722 (ppc_linux_nat_target::clear_wp)
11723 (ppc_linux_nat_target::init_arch_lwp_info)
11724 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11725 (_initialize_ppc_linux_nat): Remove observer callback.
11726
4db10d8f
PFC
117272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11728
11729 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11730 (ppc_linux_nat_target::auxv_parse)
11731 (ppc_linux_nat_target::read_description)
11732 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11733 Move up.
11734
1310c1b0
PFC
117352020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11736
11737 * linux-nat.h (low_new_clone): New method.
11738 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11739
69b037c3
SM
117402020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11741
11742 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11743 (dbx_expand_psymtab): ... this.
11744 (start_psymtab): Update.
11745 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11746 (mdebug_expand_psymtab): ... this.
11747 (parse_partial_symbols): Update.
11748 (new_psymtab): Update.
11749 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11750 (xcoff_expand_psymtab): ... this.
11751 (xcoff_start_psymtab): Update.
11752
48993951
SM
117532020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11754
11755 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11756 <expand_dependencies>: ... this.
11757 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11758 (partial_symtab::expand_dependencies): ... this.
11759 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11760 Update.
11761 (dwarf2_psymtab::expand_psymtab): Update.
11762 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11763 * mdebugread.c (psymtab_to_symtab_1): Update.
11764 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11765
3ad83046
SM
117662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11767
11768 * psympriv.h (discard_psymtab): Remove.
11769 * dbxread.c (dbx_end_psymtab): Update.
11770 * xcoffread.c (xcoff_end_psymtab): Update.
11771
4d1b9ab6
TT
117722020-03-28 Tom Tromey <tom@tromey.com>
11773
11774 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11775 comment.
11776
f1749218
TT
117772020-03-28 Tom Tromey <tom@tromey.com>
11778
11779 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11780
ebea7626
HD
117812020-03-27 Hannes Domani <ssbssa@yahoo.de>
11782
11783 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11784
a879b4d5
JB
117852020-03-26 John Baldwin <jhb@FreeBSD.org>
11786
11787 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11788
0826b30a
TT
117892020-03-26 Tom Tromey <tom@tromey.com>
11790
11791 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11792 (mark_common_block_symbol_computed, read_tag_string_type)
11793 (attr_to_dynamic_prop, read_subrange_type): Update.
11794 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11795 to be methods on struct attribute.
11796 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11797 (read_call_site_scope, partial_die_info::read)
11798 (partial_die_info::read, lookup_die_type, follow_die_ref):
11799 Update.
11800 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11801 from dwarf2_get_ref_die_offset.
11802 (attribute::constant_value): New method, from
11803 dwarf2_get_attr_constant_value.
11804 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11805 Declare method.
11806 <constant_value>: New method.
11807
2b2558bf
TT
118082020-03-26 Tom Tromey <tom@tromey.com>
11809
11810 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11811 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11812 (dwarf_type_encoding_name): Move to stringify.c.
11813 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11814 * dwarf2/stringify.c: New file.
11815 * dwarf2/stringify.h: New file.
11816
eeb64781
TT
118172020-03-26 Tom Tromey <tom@tromey.com>
11818
11819 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11820 Rewrite.
11821
a39fdb41
TT
118222020-03-26 Tom Tromey <tom@tromey.com>
11823
11824 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11825 methods.
11826 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11827 (lookup_ranges_base): Likewise.
11828 (read_cutu_die_from_dwo, read_full_die_1): Update.
11829
436c571c
TT
118302020-03-26 Tom Tromey <tom@tromey.com>
11831
11832 * dwarf2/read.c (read_import_statement, read_file_scope)
11833 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11834 (read_lexical_block_scope, read_call_site_scope)
11835 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11836 (handle_struct_member_die, process_structure_scope)
11837 (update_enumeration_type_from_children)
11838 (process_enumeration_scope, read_array_type, read_common_block)
11839 (read_namespace, read_module, read_subroutine_type): Update.
11840 (sibling_die): Remove.
11841
052c8bb8
TT
118422020-03-26 Tom Tromey <tom@tromey.com>
11843
11844 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11845 (build_type_psymtabs_reader, read_structure_type)
11846 (read_enumeration_type, read_full_die_1): Update.
11847 (dwarf2_attr_no_follow): Move to die.h.
11848 * dwarf2/die.h (struct die_info) <attr>: New method.
11849
2b24b6e4
TT
118502020-03-26 Tom Tromey <tom@tromey.com>
11851
11852 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11853 <base_address>: Now an optional.
11854 (dwarf2_find_base_address, dwarf2_rnglists_process)
11855 (dwarf2_ranges_process, fill_in_loclist_baton)
11856 (dwarf2_symbol_mark_computed): Update.
11857
c2d50fd0
TT
118582020-03-26 Tom Tromey <tom@tromey.com>
11859
11860 * dwarf2/read.c (struct die_info): Move to die.h.
11861 * dwarf2/die.h: New file.
11862
0df7ad3a
TT
118632020-03-26 Tom Tromey <tom@tromey.com>
11864
11865 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11866 * dwarf2/read.c
11867 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11868 Move to line-header.c.
11869 (read_checked_initial_length_and_offset, read_formatted_entries):
11870 Likewise.
11871 (dwarf_decode_line_header): Split into two.
11872 * dwarf2/line-header.c
11873 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11874 Move from read.c.
11875 (read_checked_initial_length_and_offset, read_formatted_entries):
11876 Likewise.
11877 (dwarf_decode_line_header): New function, split from read.c.
11878
86c0bb4c
TT
118792020-03-26 Tom Tromey <tom@tromey.com>
11880
11881 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11882 Declare method.
11883 * dwarf2/read.c (read_attribute_value): Update.
11884 (dwarf2_per_objfile::read_line_string): Rename from
11885 read_indirect_line_string.
11886 (read_formatted_entries): Update.
11887
2ef46c2f
TT
118882020-03-26 Tom Tromey <tom@tromey.com>
11889
11890 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11891 variable.
11892
4f9c1eda
TT
118932020-03-26 Tom Tromey <tom@tromey.com>
11894
11895 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11896 const.
11897 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11898 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11899 parameter const.
11900
5a0e026f
TT
119012020-03-26 Tom Tromey <tom@tromey.com>
11902
11903 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11904 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11905 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11906 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11907
8844c11b
TT
119082020-03-26 Tom Tromey <tom@tromey.com>
11909
11910 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11911 file_names_size, file_full_name, file_file_name>: Use const.
11912 <file_name_at, file_names>: Add const overload.
11913 * dwarf2/line-header.c (line_header::file_file_name)
11914 (line_header::file_full_name): Update.
11915
c90ec28a
TT
119162020-03-26 Tom Tromey <tom@tromey.com>
11917
11918 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11919 (macro_start_file, consume_improper_spaces)
11920 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11921 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11922 (dwarf_decode_macros): Move to macro.c.
11923 * dwarf2/macro.c: New file.
11924 * dwarf2/macro.h: New file.
11925 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11926
4f44ae6c
TT
119272020-03-26 Tom Tromey <tom@tromey.com>
11928
11929 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11930 method.
11931 * dwarf2/section.c: New method. From
11932 read_indirect_string_at_offset_from.
11933 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11934 (read_indirect_string_at_offset_from): Move to section.c.
11935 (read_indirect_string_at_offset): Rewrite.
11936 (read_indirect_line_string_at_offset): Remove.
11937 (read_indirect_string, read_indirect_line_string)
11938 (dwarf_decode_macro_bytes): Update.
11939
a0194fa8
TT
119402020-03-26 Tom Tromey <tom@tromey.com>
11941
11942 * dwarf2/section.h (struct dwarf2_section_info)
11943 <overload_complaint>: Declare.
11944 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11945 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11946 Rename from dwarf2_section_buffer_overflow_complaint.
11947 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11948 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11949
3d27bbdb
TT
119502020-03-26 Tom Tromey <tom@tromey.com>
11951
11952 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11953 Declare.
11954 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11955 Move from read.c.
11956 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11957 to section.c.
11958
9eac9650
TT
119592020-03-26 Tom Tromey <tom@tromey.com>
11960
11961 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11962
bf80d710
TT
119632020-03-26 Tom Tromey <tom@tromey.com>
11964
11965 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11966 "builder".
11967 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11968 parameter.
11969 (dwarf_decode_macros): Update.
11970
0314b390
TT
119712020-03-26 Tom Tromey <tom@tromey.com>
11972
11973 * dwarf2/read.c (read_attribute_value): Update.
11974 (read_indirect_string_from_dwz): Move to dwz.c; change into
11975 method.
11976 (dwarf_decode_macro_bytes): Update.
11977 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11978 * dwarf2/dwz.c: New file.
11979 * Makefile.in (COMMON_SFILES): Add dwz.c.
11980
9fda78b6
TT
119812020-03-26 Tom Tromey <tom@tromey.com>
11982
11983 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11984 * dwarf2/read.c: Add include.
11985 * dwarf2/index-write.c: Add include.
11986 * dwarf2/index-cache.c: Add include.
11987 * dwarf2/dwz.h: New file.
11988
33aa3c10
TT
119892020-03-25 Tom Tromey <tom@tromey.com>
11990
11991 * compile/compile-object-load.c (get_out_value_type): Mention
11992 correct symbol name in error message.
11993
d503b685
HD
119942020-03-25 Hannes Domani <ssbssa@yahoo.de>
11995
11996 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11997
7b1eff95
TV
119982020-03-25 Tom de Vries <tdevries@suse.de>
11999
12000 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12001 * symmisc.c (dump_symtab_1): Print user and includes fields.
12002 (maintenance_info_symtabs): Same.
12003
dd895392
AB
120042020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12005
12006 PR gdb/25534
12007 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12008 (riscv_regcache_cooked_write): New function.
12009 (riscv_push_dummy_call): Use new function.
12010 (riscv_return_value): Likewise.
12011
5ab2fbf1
SM
120122020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12013
12014 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12015 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12016 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12017 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12018 * infrun.c (follow_fork): Likewise.
12019 (follow_fork_inferior): Likewise.
12020 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12021 * linux-nat.h (class linux_nat_target): Likewise.
12022 * remote.c (class remote_target) <follow_fork>: Likewise.
12023 (remote_target::follow_fork): Likewise.
12024 * target-delegates.c: Re-generate.
12025 * target.c (default_follow_fork): Likewise.
12026 (target_follow_fork): Likewise.
12027 * target.h (struct target_ops) <follow_fork>: Likewise.
12028 (target_follow_fork): Likewise.
12029
a64fafb5
TV
120302020-03-24 Tom de Vries <tdevries@suse.de>
12031
12032 * psymtab.c (maintenance_info_psymtabs): Print user field.
12033
fe26d3a3
TT
120342020-03-20 Tom Tromey <tromey@adacore.com>
12035
12036 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12037 const.
12038 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12039 const.
12040
c884cc46
SM
120412020-03-20 Simon Marchi <simon.marchi@efficios.com>
12042
12043 * ptrace.m4: Don't check for ptrace declaration.
12044 * config.in: Re-generate.
12045 * configure: Re-generate.
12046 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12047 not defined.
12048
1ff700c2
KR
120492020-03-20 Kamil Rytarowski <n54@gmx.com>
12050
12051 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12052 `PTRACE_TYPE_RET'.
12053 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12054 * sparc-nat.c (gdb_ptrace): Likewise.
12055 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12056
f7d4f0b1
TT
120572020-03-20 Tom Tromey <tromey@adacore.com>
12058
12059 * c-exp.y (lex_one_token): Fix assert.
12060
f67210ff
TT
120612020-03-20 Tom Tromey <tromey@adacore.com>
12062
12063 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12064 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12065 strncpy call.
12066
1773be9e
TT
120672020-03-20 Tom Tromey <tromey@adacore.com>
12068
12069 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12070
70304be9
TT
120712020-03-20 Tom Tromey <tromey@adacore.com>
12072
12073 * ada-valprint.c (print_variant_part): Remove parameters; switch
12074 to value-based API.
12075 (print_field_values): Likewise.
12076 (ada_val_print_struct_union): Likewise.
12077 (ada_value_print_1): Update.
12078
9faa006d
KR
120792020-03-20 Kamil Rytarowski <n54@gmx.com>
12080
12081 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12082 nbsd_nat_target instead of inf_ptrace_target.
12083 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12084 nbsd_nat_target.
12085
4a90f062
KR
120862020-03-20 Kamil Rytarowski <n54@gmx.com>
12087
12088 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12089 it to the ptrace call.
12090 * (store_registers): Likewise.
12091
120922020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12093
12094 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12095 it to the ptrace call.
12096 * (store_registers): Likewise.
12097
2d07da27
LM
120982020-03-19 Luis Machado <luis.machado@linaro.org>
12099
12100 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12101 valid, fetch vg value from ptrace.
12102
f09db380
KR
121032020-03-19 Kamil Rytarowski <n54@gmx.com>
12104 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12105 * inf-ptrace.c: Likewise.
12106 * (gdb_ptrace): Add.
12107 * (inf_ptrace_target::resume): Update.
12108 * (inf_ptrace_target::xfer_partial): Likewise.
12109 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12110 * (inf_ptrace_peek_poke): Update.
12111
fcc7376e
KR
121122020-03-19 Kamil Rytarowski <n54@gmx.com>
12113
12114 * x86-bsd-nat.c (gdb_ptrace): New.
12115 * (x86bsd_dr_set): Add new argument `ptid'.
12116 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12117 x86bsd_dr_set_addr): Update.
12118
cada5fc9
AB
121192020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12120
12121 * remote.c (remote_target::process_stop_reply): Handle events for
12122 all threads differently.
12123
19a2740f
AB
121242020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12125
12126 * completer.c (completion_tracker::remove_completion): Define new
12127 function.
12128 * completer.h (completion_tracker::remove_completion): Declare new
12129 function.
12130 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12131 when adding a C++ function symbol.
12132
724fd9ba
AB
121332020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12134
12135 * completer.c (completion_tracker::completion_hash_entry): Define
12136 new class.
12137 (advance_to_filename_complete_word_point): Call
12138 recompute_lowest_common_denominator.
12139 (completion_tracker::completion_tracker): Call discard_completions
12140 to setup the hash table.
12141 (completion_tracker::discard_completions): Allow for being called
12142 from the constructor, pass new equal function, and element deleter
12143 when constructing the hash table. Initialise new class member
12144 variables.
12145 (completion_tracker::maybe_add_completion): Remove use of
12146 m_entries_vec, and store more information into m_entries_hash.
12147 (completion_tracker::recompute_lcd_visitor): New function, most
12148 content taken from...
12149 (completion_tracker::recompute_lowest_common_denominator):
12150 ...here, this now just visits each item in the hash calling the
12151 above visitor.
12152 (completion_tracker::build_completion_result): Remove use of
12153 m_entries_vec, call recompute_lowest_common_denominator.
12154 * completer.h (completion_tracker::have_completions): Remove use
12155 of m_entries_vec.
12156 (completion_tracker::completion_hash_entry): Declare new class.
12157 (completion_tracker::recompute_lowest_common_denominator): Change
12158 function signature.
12159 (completion_tracker::recompute_lcd_visitor): Declare new function.
12160 (completion_tracker::m_entries_vec): Delete.
12161 (completion_tracker::m_entries_hash): Initialize to NULL.
12162 (completion_tracker::m_lowest_common_denominator_valid): New
12163 member variable.
12164 (completion_tracker::m_lowest_common_denominator_max_length): New
12165 member variable.
12166
5a82b8a1
KR
121672020-03-17 Kamil Rytarowski <n54@gmx.com>
12168
12169 * regformats/regdef.h: Put reg in gdb namespace.
12170
fb516a69
KR
121712020-03-17 Kamil Rytarowski <n54@gmx.com>
12172
12173 * i386-bsd-nat.c (gdb_ptrace): New.
12174 * (i386bsd_fetch_inferior_registers,
12175 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12176 * (i386bsd_fetch_inferior_registers,
12177 i386bsd_store_inferior_registers) Use gdb_ptrace.
12178
1c0aa1fb
KR
121792020-03-17 Kamil Rytarowski <n54@gmx.com>
12180
12181 * amd64-bsd-nat.c (gdb_ptrace): New.
12182 * (amd64bsd_fetch_inferior_registers,
12183 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12184 * (amd64bsd_fetch_inferior_registers,
12185 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12186
5ccd2fb7
KR
121872020-03-17 Kamil Rytarowski <n54@gmx.com>
12188
12189 * user-regs.c (user_reg::read): Rename to...
12190 (user_reg::xread): ...this.
12191 * (append_user_reg): Rename argument `read' to `xread'.
12192 * (user_reg_add_builtin): Likewise.
12193 * (user_reg_add): Likewise.
12194 * (value_of_user_reg): Likewise.
12195
2108a63a
KR
121962020-03-17 Kamil Rytarowski <n54@gmx.com>
12197
12198 * sparc-nat.c (gdb_ptrace): New.
12199 * sparc-nat.c (sparc_fetch_inferior_registers)
12200 (sparc_store_inferior_registers) Remove obsolete comment.
12201 * sparc-nat.c (sparc_fetch_inferior_registers)
12202 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12203 * sparc-nat.c (sparc_fetch_inferior_registers)
12204 (sparc_store_inferior_registers) Use gdb_ptrace.
12205
a225c9a8
KR
122062020-03-17 Kamil Rytarowski <n54@gmx.com>
12207
12208 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12209 it to the ptrace call.
12210 * sh-nbsd-nat.c (store_registers): Likewise.
12211
98097623
KR
122122020-03-17 Kamil Rytarowski <n54@gmx.com>
12213
12214 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12215 nbsd_nat_target instead of inf_ptrace_target.
12216 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12217 nbsd_nat_target.
12218
9e38d619
KR
122192020-03-17 Kamil Rytarowski <n54@gmx.com>
12220
12221 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12222
a2ecbe9f
KR
122232020-03-17 Kamil Rytarowski <n54@gmx.com>
12224
12225 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12226 <sys/sysctl.h>.
12227 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12228
58990295
TV
122292020-03-17 Tom de Vries <tdevries@suse.de>
12230
12231 PR gdb/23710
12232 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12233 fields.
12234 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12235 fields.
12236 (process_imported_unit_die): Skip import of c++ CUs.
12237
771dd3a8
TT
122382020-03-16 Tom Tromey <tom@tromey.com>
12239
12240 * p-valprint.c (pascal_object_print_value): Initialize
12241 base_value.
12242
817a7585
AK
122432020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12244 Shahab Vahedi <shahab@synopsys.com>
12245
12246 * Makefile.in: Add arch/arc.o
12247 * configure.tgt: Likewise.
12248 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12249 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12250 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12251 * arc-tdep.h (arc_read_description): Add proto type.
12252 * arch/arc.c: New file.
12253 * arch/arc.h: Likewise.
12254 * features/Makefile: Replace old target descriptions with new.
12255 * features/arc-arcompact.c: Remove.
12256 * features/arc-arcompact.xml: Likewise.
12257 * features/arc-v2.c: Likewise
12258 * features/arc-v2.xml: Likewise
12259 * features/arc/aux-arcompact.xml: New file.
12260 * features/arc/aux-v2.xml: Likewise.
12261 * features/arc/core-arcompact.xml: Likewise.
12262 * features/arc/core-v2.xml: Likewise.
12263 * features/arc/aux-arcompact.c: Generate.
12264 * features/arc/aux-v2.c: Likewise.
12265 * features/arc/core-arcompact.c: Likewise.
12266 * features/arc/core-v2.c: Likewise.
12267 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12268
67430cd0
TT
122692020-03-16 Tom Tromey <tromey@adacore.com>
12270
12271 PR gdb/25663:
12272 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12273 putting value into bcache.
12274
30efb6c7
SM
122752020-03-16 Simon Marchi <simon.marchi@efficios.com>
12276
12277 PR gdb/21500
12278 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12279 to...
12280 (amd64_windows_init_abi_common): ... this. Don't set size of
12281 long type.
12282 (amd64_windows_init_abi): New function.
12283 (amd64_cygwin_init_abi): New function.
12284 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12285 the Cygwin OS ABI.
12286 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12287 comment.
12288
8db52437
SM
122892020-03-16 Simon Marchi <simon.marchi@efficios.com>
12290
12291 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12292 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12293 (pe_import_directory_entry): New struct type.
12294 (is_linked_with_cygwin_dll): New function.
12295 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12296 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12297 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12298
5982a56a
SM
122992020-03-16 Simon Marchi <simon.marchi@efficios.com>
12300
12301 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12302 i386_cygwin_core_osabi_sniffer.
12303
7a1998df
SM
123042020-03-16 Simon Marchi <simon.marchi@efficios.com>
12305
12306 * i386-cygwin-tdep.c: Rename to...
12307 * i386-windows-tdep.c: ... this.
12308 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12309 i386-windows-tdep.c.
12310 * configure.tgt: Likewise.
12311
053205cc
SM
123122020-03-16 Simon Marchi <simon.marchi@efficios.com>
12313
12314 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12315 * osabi.c (gdb_osabi_names): Add "Windows".
12316 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12317 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12318 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12319 i386_cygwin_osabi_sniffer.
12320 (_initialize_i386_cygwin_tdep): Register OS ABI
12321 GDB_OSABI_WINDOWS for i386.
12322 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12323 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12324 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12325 for x86-64.
12326 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12327 when the target matches '*-*-mingw*'.
12328
fe4b2ee6
SM
123292020-03-16 Simon Marchi <simon.marchi@efficios.com>
12330
12331 * defs.h (enum gdb_osabi): Move to...
12332 * osabi.h (enum gdb_osabi): ... here.
12333 * gdbarch.sh: Include osabi.h in gdbarch.h.
12334 * gdbarch.h: Re-generate.
12335
cb9b645d
SM
123362020-03-16 Simon Marchi <simon.marchi@efficios.com>
12337
12338 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12339 function.
12340 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12341
3293bbaf
TT
123422020-03-14 Tom Tromey <tom@tromey.com>
12343
12344 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12345 for C++.
12346 (c_type_print_modifier): Likewise. Add "language" parameter.
12347 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12348 (c_type_print_base_1): Update.
12349 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12350 constants.
12351 * type-stack.c (type_stack::insert): Handle tp_atomic and
12352 tp_restrict.
12353 (type_stack::follow_type_instance_flags): Likewise.
12354 (type_stack::follow_types): Likewise. Merge type-following code.
12355 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12356 (space_identifier, cv_with_space_id)
12357 (const_or_volatile_or_space_identifier_noopt)
12358 (const_or_volatile_or_space_identifier): Remove.
12359 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12360 rules.
12361 (ptr_operator, typebase): Update.
12362 (enum token_flag) <FLAG_C>: New constant.
12363 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12364 "_Atomic".
12365 (lex_one_token): Handle FLAG_C.
12366
154151a6
KR
123672020-03-14 Kamil Rytarowski <n54@gmx.com>
12368
12369 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12370 it to the ptrace call.
12371 * m68k-bsd-nat.c (store_registers): Likewise.
12372
bc107784
KR
123732020-03-14 Kamil Rytarowski <n54@gmx.com>
12374
12375 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12376 gdb_byte *.
12377 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12378 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12379 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12380
01a80117
KR
123812020-03-14 Kamil Rytarowski <n54@gmx.com>
12382
12383 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12384 nbsd_nat_target instead of inf_ptrace_target.
12385 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12386 nbsd_nat_target.
12387
f90280ca
KR
123882020-03-14 Kamil Rytarowski <n54@gmx.com>
12389
12390 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12391 register_t.
12392
6def66f1
KR
123932020-03-14 Kamil Rytarowski <n54@gmx.com>
12394
12395 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12396 it to the ptrace call.
12397 * alpha-bsd-nat.c (store_registers): Likewise.
12398
66eaca97
KR
123992020-03-14 Kamil Rytarowski <n54@gmx.com>
12400
12401 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12402 includes.
12403 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12404 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12405 fill_fpregset): Likewise.
12406
4fed520b
KR
124072020-03-14 Kamil Rytarowski <n54@gmx.com>
12408
12409 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12410 nbsd_nat_target instead of inf_ptrace_target.
12411 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12412 nbsd_nat_target.
12413
2190cf06
KR
124142020-03-14 Kamil Rytarowski <n54@gmx.com>
12415
12416 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12417 register_t.
12418
75c56d3d
KR
124192020-03-14 Kamil Rytarowski <n54@gmx.com>
12420
12421 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12422 it to the ptrace call.
12423 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12424 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12425 * arm-nbsd-nat.c (store_register): Likewise.
12426 * arm-nbsd-nat.c (store_regs): Likewise.
12427 * arm-nbsd-nat.c (store_fp_register): Likewise.
12428 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12429
6018d381
KR
124302020-03-14 Kamil Rytarowski <n54@gmx.com>
12431
12432 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12433 nbsd_nat_target instead of inf_ptrace_target.
12434 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12435 nbsd_nat_target.
12436
013f99f0
KR
124372020-03-14 Kamil Rytarowski <n54@gmx.com>
12438
12439 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12440 it to the ptrace call.
12441 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12442
12753073
KR
124432020-03-14 Kamil Rytarowski <n54@gmx.com>
12444
6227b330
KR
12445 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12446 it to the ptrace call.
12447 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12448
124492020-03-14 Kamil Rytarowski <n54@gmx.com>
12450
12451 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12452 gdb_byte *.
12753073
KR
12453 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12454
d5be5fa4
KR
124552020-03-14 Kamil Rytarowski <n54@gmx.com>
12456
12457 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12458 instead of inf_ptrace_target.
12459 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12460 nbsd_nat_target.
12461
8110f842
KR
124622020-03-14 Kamil Rytarowski <n54@gmx.com>
12463
12464 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12465 register_t.
12466
52feded7
KR
124672020-03-14 Kamil Rytarowski <n54@gmx.com>
12468
12469 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12470 register_t.
12471
25567eee
KR
124722020-03-14 Kamil Rytarowski <n54@gmx.com>
12473
12474 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12475 register_t.
12476
426a9c18
TT
124772020-03-13 Tom Tromey <tom@tromey.com>
12478
12479 * value.h (val_print): Don't declare.
12480 * valprint.h (val_print_array_elements)
12481 (val_print_scalar_formatted, generic_val_print): Don't declare.
12482 * valprint.c (generic_val_print_array): Take a struct value.
12483 (generic_val_print_ptr, generic_val_print_memberptr)
12484 (generic_val_print_bool, generic_val_print_int)
12485 (generic_val_print_char, generic_val_print_complex)
12486 (generic_val_print): Remove.
12487 (generic_value_print): Update.
12488 (do_val_print): Remove unused parameters. Don't call
12489 la_val_print.
12490 (val_print): Remove.
12491 (common_val_print): Update. Don't call value_check_printable.
12492 (val_print_scalar_formatted, val_print_array_elements): Remove.
12493 * rust-lang.c (rust_val_print): Remove.
12494 (rust_language_defn): Update.
12495 * p-valprint.c (pascal_val_print): Remove.
12496 (pascal_value_print_inner): Update.
12497 (pascal_object_print_val_fields, pascal_object_print_val):
12498 Remove.
12499 (pascal_object_print_static_field): Update.
12500 * p-lang.h (pascal_val_print): Don't declare.
12501 * p-lang.c (pascal_language_defn): Update.
12502 * opencl-lang.c (opencl_language_defn): Update.
12503 * objc-lang.c (objc_language_defn): Update.
12504 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12505 * m2-lang.h (m2_val_print): Don't declare.
12506 * m2-lang.c (m2_language_defn): Update.
12507 * language.h (struct language_defn) <la_val_print>: Remove.
12508 * language.c (unk_lang_value_print_inner): Rename. Change
12509 argument types.
12510 (unknown_language_defn, auto_language_defn): Update.
12511 * go-valprint.c (go_val_print): Remove.
12512 * go-lang.h (go_val_print): Don't declare.
12513 * go-lang.c (go_language_defn): Update.
12514 * f-valprint.c (f_val_print): Remove.
12515 * f-lang.h (f_value_print): Don't declare.
12516 * f-lang.c (f_language_defn): Update.
12517 * d-valprint.c (d_val_print): Remove.
12518 * d-lang.h (d_value_print): Don't declare.
12519 * d-lang.c (d_language_defn): Update.
12520 * cp-valprint.c (cp_print_value_fields)
12521 (cp_print_value_fields_rtti, cp_print_value): Remove.
12522 (cp_print_static_field): Update.
12523 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12524 (c_val_print_struct, c_val_print_union, c_val_print_int)
12525 (c_val_print_memberptr, c_val_print): Remove.
12526 * c-lang.h (c_val_print_array, cp_print_value_fields)
12527 (cp_print_value_fields_rtti): Don't declare.
12528 * c-lang.c (c_language_defn, cplus_language_defn)
12529 (asm_language_defn, minimal_language_defn): Update.
12530 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12531 (ada_val_print_enum): Take a struct value.
12532 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12533 (ada_val_print): Remove.
12534 (ada_value_print_1): Update.
12535 (printable_val_type): Remove.
12536 * ada-lang.h (ada_val_print): Don't declare.
12537 * ada-lang.c (ada_language_defn): Update.
12538
42331a1e
TT
125392020-03-13 Tom Tromey <tom@tromey.com>
12540
12541 * valprint.c (do_val_print): Update.
12542 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12543 a struct value.
12544 (value_to_value_object_no_release): Declare.
12545 * python/py-value.c (value_to_value_object_no_release): New
12546 function.
12547 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12548 struct value.
12549 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12550 function.
12551 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12552 a struct value.
12553 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12554 Declare.
12555 (gdbscm_apply_val_pretty_printer): Take a struct value.
12556 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12557 value.
12558 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12559 value.
12560 * extension-priv.h (struct extension_language_ops)
12561 <apply_val_pretty_printer>: Take a struct value.
12562 * cp-valprint.c (cp_print_value): Create a struct value.
12563 (cp_print_value): Update.
12564
3a916a97
TT
125652020-03-13 Tom Tromey <tom@tromey.com>
12566
12567 * ada-valprint.c (print_field_values): Call common_val_print.
12568
b59eac37
TT
125692020-03-13 Tom Tromey <tom@tromey.com>
12570
12571 * ada-valprint.c (val_print_packed_array_elements): Remove
12572 bitoffset and val parameters. Call common_val_print.
12573 (ada_val_print_string): Remove offset, address, and original_value
12574 parameters.
12575 (ada_val_print_array): Update.
12576 (ada_value_print_array): New function.
12577 (ada_value_print_1): Call it.
12578
03371129
TT
125792020-03-13 Tom Tromey <tom@tromey.com>
12580
12581 * ada-valprint.c (ada_value_print): Use common_val_print.
12582
2e088f8b
TT
125832020-03-13 Tom Tromey <tom@tromey.com>
12584
12585 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12586
39ef85a8
TT
125872020-03-13 Tom Tromey <tom@tromey.com>
12588
12589 * ada-valprint.c (ada_value_print_num): New function.
12590 (ada_value_print_1): Use it.
12591
b9fa6e07
TT
125922020-03-13 Tom Tromey <tom@tromey.com>
12593
12594 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12595
416595d6
TT
125962020-03-13 Tom Tromey <tom@tromey.com>
12597
12598 * ada-valprint.c (ada_value_print_ptr): New function.
12599 (ada_value_print_1): Use it.
12600
5b5e15ec
TT
126012020-03-13 Tom Tromey <tom@tromey.com>
12602
12603 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12604 call common_val_print.
12605 (ada_val_print_1): Update.
12606 (ada_value_print_1): New function.
12607 (ada_value_print_inner): Rewrite.
12608
fbf54e75
TT
126092020-03-13 Tom Tromey <tom@tromey.com>
12610
12611 * cp-valprint.c (cp_print_value_fields): Update.
12612 (cp_print_value): New function.
12613
64b653ca
TT
126142020-03-13 Tom Tromey <tom@tromey.com>
12615
12616 * m2-valprint.c (m2_value_print_inner): Use
12617 cp_print_value_fields.
12618 * cp-valprint.c (cp_print_value_fields): New function.
12619 * c-valprint.c (c_value_print_struct): New function.
12620 (c_value_print_inner): Use c_value_print_struct.
12621 * c-lang.h (cp_print_value_fields): Declare.
12622
6999f067
TT
126232020-03-13 Tom Tromey <tom@tromey.com>
12624
12625 * c-valprint.c (c_value_print_array): New function.
12626 (c_value_print_inner): Use it.
12627
ce80b8bd
TT
126282020-03-13 Tom Tromey <tom@tromey.com>
12629
12630 * c-valprint.c (c_value_print_memberptr): New function.
12631 (c_value_print_inner): Use it.
12632
2faac269
TT
126332020-03-13 Tom Tromey <tom@tromey.com>
12634
12635 * c-valprint.c (c_value_print_int): New function.
12636 (c_value_print_inner): Use it.
12637
da3e2c29
TT
126382020-03-13 Tom Tromey <tom@tromey.com>
12639
12640 * c-valprint.c (c_value_print_ptr): New function.
12641 (c_value_print_inner): Use it.
12642
50836231
TT
126432020-03-13 Tom Tromey <tom@tromey.com>
12644
12645 * c-valprint.c (c_value_print_inner): Rewrite.
12646
4f412b6e
TT
126472020-03-13 Tom Tromey <tom@tromey.com>
12648
12649 * valprint.c (generic_value_print_complex): New function.
12650 (generic_value_print): Use it.
12651
f5354008
TT
126522020-03-13 Tom Tromey <tom@tromey.com>
12653
12654 * valprint.c (generic_val_print_float): Don't call
12655 val_print_scalar_formatted.
12656 (generic_val_print, generic_value_print): Update.
12657
3eec3b05
TT
126582020-03-13 Tom Tromey <tom@tromey.com>
12659
12660 * valprint.c (generic_value_print_char): New function
12661 (generic_value_print): Use it.
12662
fdddfccb
TT
126632020-03-13 Tom Tromey <tom@tromey.com>
12664
12665 * valprint.c (generic_value_print_int): New function.
12666 (generic_value_print): Use it.
12667
6dde7521
TT
126682020-03-13 Tom Tromey <tom@tromey.com>
12669
12670 * valprint.c (generic_value_print_bool): New function.
12671 (generic_value_print): Use it.
12672
4112d2e6
TT
126732020-03-13 Tom Tromey <tom@tromey.com>
12674
12675 * valprint.c (generic_val_print_func): Simplify.
12676 (generic_val_print, generic_value_print): Update.
12677
65786af6
TT
126782020-03-13 Tom Tromey <tom@tromey.com>
12679
12680 * valprint.c (generic_val_print_flags): Remove.
12681 (generic_val_print, generic_value_print): Update.
12682 (val_print_type_code_flags): Add original_value parameter.
12683
40f3ce18
TT
126842020-03-13 Tom Tromey <tom@tromey.com>
12685
12686 * valprint.c (generic_val_print): Update.
12687 (generic_value_print): Update.
12688 * valprint.c (generic_val_print_enum): Don't call
12689 val_print_scalar_formatted.
12690
2a5b130b
TT
126912020-03-13 Tom Tromey <tom@tromey.com>
12692
12693 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12694 * valprint.c (generic_value_print_ptr): New function.
12695
abc66ce9
TT
126962020-03-13 Tom Tromey <tom@tromey.com>
12697
12698 * valprint.c (generic_value_print): Rewrite.
12699
07a32858
TT
127002020-03-13 Tom Tromey <tom@tromey.com>
12701
12702 * p-valprint.c (pascal_object_print_value_fields)
12703 (pascal_object_print_value): New functions.
12704
64d64d3a
TT
127052020-03-13 Tom Tromey <tom@tromey.com>
12706
12707 * p-valprint.c (pascal_value_print_inner): Rewrite.
12708
6a95a1f5
TT
127092020-03-13 Tom Tromey <tom@tromey.com>
12710
12711 * f-valprint.c (f_value_print_innner): Rewrite.
12712
59fcdac6
TT
127132020-03-13 Tom Tromey <tom@tromey.com>
12714
12715 * m2-valprint.c (m2_print_unbounded_array): New overload.
12716 (m2_print_unbounded_array): Update.
12717 (m2_print_array_contents): Take a struct value.
12718 (m2_value_print_inner): Rewrite.
12719
d133c3e1
TT
127202020-03-13 Tom Tromey <tom@tromey.com>
12721
12722 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12723 (d_value_print_inner): New function.
12724 * d-lang.h (d_value_print_inner): Declare.
12725 * d-lang.c (d_language_defn): Use d_value_print_inner.
12726
23b0f06b
TT
127272020-03-13 Tom Tromey <tom@tromey.com>
12728
12729 * go-valprint.c (go_value_print_inner): New function.
12730 * go-lang.h (go_value_print_inner): Declare.
12731 * go-lang.c (go_language_defn): Use go_value_print_inner.
12732
5f56f7cb
TT
127332020-03-13 Tom Tromey <tom@tromey.com>
12734
12735 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12736 API.
12737 (rust_val_print): Rewrite.
12738 (rust_value_print_inner): New function, from rust_val_print.
12739 (rust_language_defn): Use rust_value_print_inner.
12740
26792ee0
TT
127412020-03-13 Tom Tromey <tom@tromey.com>
12742
12743 * ada-valprint.c (ada_value_print_inner): New function.
12744 * ada-lang.h (ada_value_print_inner): Declare.
12745 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12746
24051bbe
TT
127472020-03-13 Tom Tromey <tom@tromey.com>
12748
12749 * f-valprint.c (f_value_print_innner): New function.
12750 * f-lang.h (f_value_print_innner): Declare.
12751 * f-lang.c (f_language_defn): Use f_value_print_innner.
12752
c0941be6
TT
127532020-03-13 Tom Tromey <tom@tromey.com>
12754
12755 * p-valprint.c (pascal_value_print_inner): New function.
12756 * p-lang.h (pascal_value_print_inner): Declare.
12757 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12758
62c4663d
TT
127592020-03-13 Tom Tromey <tom@tromey.com>
12760
12761 * m2-valprint.c (m2_value_print_inner): New function.
12762 * m2-lang.h (m2_value_print_inner): Declare.
12763 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12764
62182190
TT
127652020-03-13 Tom Tromey <tom@tromey.com>
12766
12767 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12768 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12769 * c-valprint.c (c_value_print_inner): New function.
12770 * c-lang.h (c_value_print_inner): Declare.
12771 * c-lang.c (c_language_defn, cplus_language_defn)
12772 (asm_language_defn, minimal_language_defn): Use
12773 c_value_print_inner.
12774
1e592a8a
TT
127752020-03-13 Tom Tromey <tom@tromey.com>
12776
12777 * p-valprint.c (pascal_object_print_value_fields): Now static.
12778 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12779
7fe471e9
TT
127802020-03-13 Tom Tromey <tom@tromey.com>
12781
12782 * c-valprint.c (c_val_print_array): Simplify.
12783
d121c6ce
TT
127842020-03-13 Tom Tromey <tom@tromey.com>
12785
12786 * valprint.c (value_print_array_elements): New function.
12787 * valprint.h (value_print_array_elements): Declare.
12788
4dba70ee
TT
127892020-03-13 Tom Tromey <tom@tromey.com>
12790
12791 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12792 * mips-tdep.c (mips_print_register): Use
12793 value_print_scalar_formatted.
12794
4f9ae810
TT
127952020-03-13 Tom Tromey <tom@tromey.com>
12796
12797 * valprint.h (value_print_scalar_formatted): Declare.
12798 * valprint.c (value_print_scalar_formatted): New function.
12799
156bfec9
TT
128002020-03-13 Tom Tromey <tom@tromey.com>
12801
12802 * valprint.h (generic_value_print): Declare.
12803 * valprint.c (generic_value_print): New function.
12804
2b4e573d
TT
128052020-03-13 Tom Tromey <tom@tromey.com>
12806
12807 * valprint.c (do_val_print): Call la_value_print_inner, if
12808 available.
12809 * rust-lang.c (rust_language_defn): Update.
12810 * p-lang.c (pascal_language_defn): Update.
12811 * opencl-lang.c (opencl_language_defn): Update.
12812 * objc-lang.c (objc_language_defn): Update.
12813 * m2-lang.c (m2_language_defn): Update.
12814 * language.h (struct language_defn) <la_value_print_inner>: New
12815 member.
12816 * language.c (unknown_language_defn, auto_language_defn): Update.
12817 * go-lang.c (go_language_defn): Update.
12818 * f-lang.c (f_language_defn): Update.
12819 * d-lang.c (d_language_defn): Update.
12820 * c-lang.c (c_language_defn, cplus_language_defn)
12821 (asm_language_defn, minimal_language_defn): Update.
12822 * ada-lang.c (ada_language_defn): Update.
12823
a1f6a07c
TT
128242020-03-13 Tom Tromey <tom@tromey.com>
12825
12826 * c-valprint.c (c_value_print): Use common_val_print.
12827
410cf315
TT
128282020-03-13 Tom Tromey <tom@tromey.com>
12829
12830 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12831
72a45c93
TT
128322020-03-13 Tom Tromey <tom@tromey.com>
12833
12834 * f-valprint.c (f77_print_array_1, f_val_print): Use
12835 common_val_print.
12836
040f66bd
TT
128372020-03-13 Tom Tromey <tom@tromey.com>
12838
12839 * riscv-tdep.c (riscv_print_one_register_info): Use
12840 common_val_print.
12841
a6e05a6c
TT
128422020-03-13 Tom Tromey <tom@tromey.com>
12843
12844 * mi/mi-main.c (output_register): Use common_val_print.
12845
3444c526
TT
128462020-03-13 Tom Tromey <tom@tromey.com>
12847
12848 * infcmd.c (default_print_one_register_info): Use
12849 common_val_print.
12850
c2a44efe
TT
128512020-03-13 Tom Tromey <tom@tromey.com>
12852
12853 * valprint.h (common_val_print_checked): Declare.
12854 * valprint.c (common_val_print_checked): New function.
12855 * stack.c (print_frame_arg): Use common_val_print_checked.
12856
b0c26e99
TT
128572020-03-13 Tom Tromey <tom@tromey.com>
12858
12859 * valprint.c (do_val_print): New function, from val_print.
12860 (val_print): Use do_val_print.
12861 (common_val_print): Use do_val_print.
12862
ce3acbe9
TT
128632020-03-13 Tom Tromey <tom@tromey.com>
12864
12865 * valprint.c (value_print): Use scoped_value_mark.
12866
96c7f873
TV
128672020-03-13 Tom de Vries <tdevries@suse.de>
12868
12869 PR symtab/25646
12870 * psymtab.c (partial_symtab::partial_symtab): Don't set
12871 globals_offset and statics_offset. Push element onto
12872 current_global_psymbols and current_static_psymbols stacks.
12873 (concat): New function.
12874 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12875 element from current_global_psymbols and current_static_psymbols
12876 stacks. Concat popped elements to global_psymbols and
12877 static_symbols.
12878 (add_psymbol_to_list): Use current_global_psymbols and
12879 current_static_psymbols stacks.
12880 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12881 current_static_psymbols fields.
12882
6ba0a321
CB
128832020-03-12 Christian Biesinger <cbiesinger@google.com>
12884
12885 * corelow.c (sniff_core_bfd): Remove.
12886 (class core_target) <m_core_vec>: Remove.
12887 (core_target::core_target): Update.
12888 (core_file_fns): Remove.
12889 (deprecated_add_core_fns): Remove.
12890 (default_core_sniffer): Remove.
12891 (sniff_core_bfd): Remove.
12892 (default_check_format): Remove.
12893 (gdb_check_format): Remove.
12894 (core_target_open): Update.
12895 (core_target::get_core_register_section): Update.
12896 (get_core_registers_cb): Update.
12897 (core_target::fetch_registers): Update.
12898 * gdbcore.h (struct core_fns): Remove.
12899 (deprecated_add_core_fns): Remove.
12900 (default_core_sniffer): Remove.
12901 (default_check_format): Remove.
12902
227031b2
TT
129032020-03-12 Tom Tromey <tom@tromey.com>
12904
12905 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12906 CORE_ADDR.
12907 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12908
53807e9f
TT
129092020-03-12 Tom Tromey <tom@tromey.com>
12910
12911 * remote.c (remote_target::download_tracepoint)
12912 (remote_target::enable_tracepoint)
12913 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12914 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12915 sprintf_vma.
12916
64f25102
TT
129172020-03-12 Tom Tromey <tom@tromey.com>
12918
12919 * symfile-mem.c: Update CORE_ADDR size assert.
12920
272cd5a3
SM
129212020-03-12 Simon Marchi <simon.marchi@efficios.com>
12922
12923 * selftest.m4: Move to gdbsupport/.
12924 * acinclude.m4: Update path to selftest.m4.
12925
74cd3f9d
SM
129262020-03-12 Simon Marchi <simon.marchi@efficios.com>
12927
12928 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12929 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12930 gdbarch-selfselftests.c and selftest-arch.c.
12931 (SUBDIR_UNITTESTS_OBS): Rename to...
12932 (SELFTESTS_OBS): ... this.
12933 (COMMON_SFILES): Remove disasm-selftests.c and
12934 gdbarch-selftests.c.
12935 * configure.ac: Don't add selftest-arch.{c,o} to
12936 CONFIG_{SRCS,OBS}.
12937 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12938 preprocessor conditions.
12939
db6878ac
SM
129402020-03-12 Simon Marchi <simon.marchi@efficios.com>
12941
12942 * configure.ac: Don't source bfd/development.sh.
12943 * selftest.m4: Modify comment.
12944 * configure: Re-generate.
12945
4d696a5c
SM
129462020-03-12 Simon Marchi <simon.marchi@efficios.com>
12947
12948 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12949 not "true" or "false".
12950 * configure: Re-generate.
12951
8dd8e1c7
CB
129522020-03-12 Christian Biesinger <cbiesinger@google.com>
12953
12954 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12955 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12956 renamed to arm_nbsd_supply_gregset.
12957 (fetch_register): Update to call arm_nbsd_supply_gregset.
12958 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12959 (arm_netbsd_nat_target::fetch_registers): Update.
12960 (fetch_elfcore_registers): Removed.
12961 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12962 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12963 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12964 not require NetBSD system headers.
12965 (arm_nbsd_regset): New struct.
12966 (arm_nbsd_iterate_over_regset_sections): New function.
12967 (arm_netbsd_init_abi_common): Updated to call
12968 set_gdbarch_iterate_over_regset_sections.
12969 * arm-nbsd-tdep.h: New file.
12970
dd69bf7a
KB
129712020-03-11 Kevin Buettner <kevinb@redhat.com>
12972
12973 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12974 recursion.
12975
a0761e34
SM
129762020-03-11 Simon Marchi <simon.marchi@efficios.com>
12977
12978 * configure: Re-generate.
12979
e7a82140
TT
129802020-03-11 Tom Tromey <tromey@adacore.com>
12981
12982 * ada-typeprint.c (print_choices): Fix comment.
12983
dcc050c8
AB
129842020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12985
12986 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12987 previous item in the list, when the list has no items.
12988
1c33af77
TV
129892020-03-11 Tom de Vries <tdevries@suse.de>
12990
12991 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12992 PROP_LOCLIST handling code.
12993
8c95582d
AB
129942020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12995
12996 * buildsym-legacy.c (record_line): Pass extra parameter to
12997 record_line.
12998 * buildsym.c (buildsym_compunit::record_line): Take an extra
12999 parameter, reduce duplication in the line table, and record the
13000 is_stmt flag in the line table.
13001 * buildsym.h (buildsym_compunit::record_line): Add extra
13002 parameter.
13003 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13004 non-statement lines.
13005 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13006 this to the symtab builder.
13007 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13008 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13009 through to dwarf_record_line_1.
13010 * infrun.c (process_event_stop_test): When stepping, don't stop at
13011 a non-statement instruction, and only refresh the step info when
13012 we land in the middle of a line's range. Also add an extra
13013 comment.
13014 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13015 field.
13016 * record-btrace.c (btrace_find_line_range): Only record lines
13017 marked as is-statement.
13018 * stack.c (frame_show_address): Show the frame address if we are
13019 in a non-statement sal.
13020 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13021 (maintenance_print_one_line_table): Print a header for the is_stmt
13022 column, and include is_stmt information in the output.
13023 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13024 preference to non-statements.
13025 (find_pcs_for_symtab_line): Prefer is-statement entries.
13026 (find_line_common): Likewise.
13027 * symtab.h (struct linetable_entry): Add is_stmt field.
13028 (struct symtab_and_line): Likewise.
13029 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13030 arranging the line table.
13031
e4003a34
TV
130322020-03-07 Tom de Vries <tdevries@suse.de>
13033
13034 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13035 DIE.
13036
e8932576
TT
130372020-03-07 Tom Tromey <tom@tromey.com>
13038
13039 * valops.c (value_literal_complex): Remove obsolete comment.
13040 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13041 comment.
13042
29734269
SM
130432020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13044
13045 * infrun.h: Forward-declare thread_info.
13046 (set_step_info): Add thread_info parameter, add doc.
13047 * infrun.c (set_step_info): Add thread_info parameter, move doc
13048 to header.
13049 * infrun.c (process_event_stop_test): Pass thread to
13050 set_step_info call.
13051 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13052 set_step_info.
13053 (prepare_one_step): Add thread_info parameter, pass it to
13054 set_step_frame and prepare_one_step (recursive) call.
13055 (step_1): Pass thread to prepare_one_step call.
13056 (step_command_fsm::should_stop): Pass thread to
13057 prepare_one_step.
13058 (until_next_fsm): Pass thread to set_step_frame call.
13059 (finish_command): Pass thread to set_step_info call.
13060
b7d64b29
HD
130612020-03-06 Hannes Domani <ssbssa@yahoo.de>
13062
13063 * windows-tdep.c (windows_solib_create_inferior_hook):
13064 Check if inferior is running.
13065
09f2921c
TV
130662020-03-06 Tom de Vries <tdevries@suse.de>
13067
13068 * NEWS: Fix "the the".
13069 * ctfread.c: Same.
13070
fd760e79
TV
130712020-03-06 Tom de Vries <tdevries@suse.de>
13072
13073 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13074
20ea4a60
AB
130752020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13076
13077 * .dir-locals.el: Add a comment referencing the other copies of
13078 this file.
13079
0afbabf0
JB
130802020-03-05 John Baldwin <jhb@FreeBSD.org>
13081
13082 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13083 psargs.
13084
842806cb
TBA
130852020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13086
13087 * .gitattributes: New file.
13088
be1e3d3e
TT
130892020-03-04 Tom Tromey <tom@tromey.com>
13090
13091 * symmisc.c (print_symbol_bcache_statistics)
13092 (print_objfile_statistics): Update.
13093 * symfile.c (allocate_symtab): Use intern.
13094 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13095 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13096 macro_cache>: Remove.
13097 <string_cache>: New member.
13098 (struct objfile) <intern>: New methods.
13099 * elfread.c (elf_symtab_read): Use intern.
13100 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13101 (dwarf2_compute_name, dwarf2_physname)
13102 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13103 names.
13104 (guess_partial_die_structure_name): Update.
13105 (partial_die_info::fixup): Intern name.
13106 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13107 name.
13108 (dwarf2_name): Intern name. Update.
13109 * buildsym.c (buildsym_compunit::get_macro_table): Use
13110 string_cache.
13111
4e7625fd
TT
131122020-03-04 Tom Tromey <tom@tromey.com>
13113
13114 * jit.c (bfd_open_from_target_memory): Make "target" const.
13115 * corefile.c (gnutarget): Now const.
13116 * gdbcore.h (gnutarget): Now const.
13117
46f9f931
HD
131182020-03-04 Hannes Domani <ssbssa@yahoo.de>
13119
13120 * NEWS: Mention support for WOW64 processes.
13121 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13122 (amd64_windows_segment_register_p): Remove static.
13123 (_initialize_amd64_windows_nat): Update.
13124 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13125 * i386-windows-nat.c (context_offset): Update.
13126 (i386_mappings): Rename and remove static.
13127 (i386_windows_segment_register_p): Remove static.
13128 (_initialize_i386_windows_nat): Update.
13129 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13130 (STATUS_WX86_SINGLE_STEP): New macro.
13131 (EnumProcessModulesEx): New macro.
13132 (Wow64SuspendThread): New macro.
13133 (Wow64GetThreadContext): New macro.
13134 (Wow64SetThreadContext): New macro.
13135 (Wow64GetThreadSelectorEntry): New macro.
13136 (windows_set_context_register_offsets): Add static.
13137 (windows_set_segment_register_p): Likewise.
13138 (windows_add_thread): Adapt for WOW64 processes.
13139 (windows_fetch_one_register): Likewise.
13140 (windows_nat_target::fetch_registers): Likewise.
13141 (windows_store_one_register): Likewise.
13142 (display_selector): Likewise.
13143 (display_selectors): Likewise.
13144 (handle_exception): Likewise.
13145 (windows_continue): Likewise.
13146 (windows_nat_target::resume): Likewise.
13147 (windows_add_all_dlls): Likewise.
13148 (do_initial_windows_stuff): Likewise.
13149 (windows_nat_target::attach): Likewise.
13150 (windows_get_exec_module_filename): Likewise.
13151 (windows_nat_target::create_inferior): Likewise.
13152 (windows_xfer_siginfo): Likewise.
13153 (_initialize_loadable): Initialize Wow64SuspendThread,
13154 Wow64GetThreadContext, Wow64SetThreadContext,
13155 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13156 * windows-nat.h (windows_set_context_register_offsets):
13157 Remove declaration.
13158 (windows_set_segment_register_p): Likewise.
13159 (i386_windows_segment_register_p): Add declaration.
13160 (amd64_windows_segment_register_p): Likewise.
13161
440cf44e
LM
131622020-03-04 Luis Machado <luis.machado@linaro.org>
13163
13164 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13165 in "info registers" for AArch64/ARM.
13166
13167 The change caused "info registers" to not print GPR's.
13168
13169 gdb/ChangeLog:
13170
13171 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13172
13173 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13174 when reg->group is empty and reggroup is not.
13175
1009d92f
TT
131762020-03-03 Tom Tromey <tromey@adacore.com>
13177
13178 * dwarf2/frame.c (struct dwarf2_frame_cache)
13179 <checked_tailcall_bottom, entry_cfa_sp_offset,
13180 entry_cfa_sp_offset_p>: Remove members.
13181 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13182 (dwarf2_frame_prev_register): Don't call
13183 dwarf2_tailcall_sniffer_first.
13184 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13185 * frame-unwind.c (add_unwinder): New fuction.
13186 (frame_unwind_init): Use it. Add tailcall unwinder.
13187
5e5d66b6
AB
131882020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13189 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13190
13191 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13192 value should be printed as true.
13193
584cf46d
HD
131942020-03-03 Hannes Domani <ssbssa@yahoo.de>
13195
13196 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13197 (windows_init_abi): Set and use windows_so_ops.
13198
7b973adc
SDJ
131992020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13200
13201 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13202 when verifying if dealing with a convenience variable.
13203
bb7b70ab
LM
132042020-03-03 Luis Machado <luis.machado@linaro.org>
13205
13206 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13207
9822cb57
SM
132082020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13209
13210 * infrun.c (gdbarch_supports_displaced_stepping): New.
13211 (use_displaced_stepping): Break up conditions in smaller pieces.
13212 Use gdbarch_supports_displaced_stepping.
13213 (displaced_step_prepare_throw): Use
13214 gdbarch_supports_displaced_stepping.
13215
63e163f2
AB
132162020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13217
13218 * NEWS: Mention new behaviour of the history filename.
13219 * top.c (write_history_p): Add comment.
13220 (show_write_history_p): Add header comment, give a different
13221 message when history writing is on, but the history filename is
13222 empty.
13223 (history_filename): Add comment.
13224 (history_filename_empty): New function.
13225 (show_history_filename): Add header comment, give a different
13226 message when the filename is empty.
13227 (init_history): Compare history_filename against nullptr, and only
13228 read history if the filename is not empty.
13229 (set_history_filename): Add header comment, and only make
13230 non-empty filenames absolute.
13231 (init_main): Make the filename argument to 'set history filename'
13232 optional.
13233
81b86b97
CB
132342020-03-02 Christian Biesinger <cbiesinger@google.com>
13235
13236 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13237 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13238 (fetch_fp_register): Update.
13239 (fetch_fp_regs): Update.
13240 (store_fp_register): Update.
13241 (store_fp_regs): Update.
13242 (arm_netbsd_nat_target::read_description): New function.
13243 (fetch_elfcore_registers): Update.
13244
24ed6739
AB
132452020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13246
13247 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13248 general_thread if the stop reply is missing a thread-id.
13249 (remote_target::process_stop_reply): Use the first non-exited
13250 thread if the target didn't pass a thread-id.
13251 * infrun.c (do_target_wait): Move call to
13252 switch_to_inferior_no_thread to ....
13253 (do_target_wait_1): ... here.
13254
a84bb2a0
JT
132552020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13256
13257 * debuginfod-support.c: Include defs.h first.
13258
658dadf0
TV
132592020-02-28 Tom de Vries <tdevries@suse.de>
13260
13261 * symfile.c (set_initial_language): Use default language for lookup.
13262
4ebe4877
SM
132632020-02-28 Simon Marchi <simon.marchi@efficios.com>
13264
13265 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13266 reader variable, pass `this` to read_cutu_die_from_dwo.
13267
e5da1139
AM
132682020-02-27 Aaron Merey <amerey@redhat.com>
13269
13270 * source.c (open_source_file): Check for nullptr when computing
13271 srcpath.
13272
317f7127
TT
132732020-02-27 Tom Tromey <tromey@adacore.com>
13274
13275 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13276 member.
13277 (dwarf2_add_field): Don't update nfields.
13278 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13279
3104d9ee
AB
132802020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13281
13282 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13283 abs.
13284
b83470bf
TT
132852020-02-26 Tom Tromey <tom@tromey.com>
13286
13287 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13288 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13289 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13290 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13291 per_cu_data.
13292
edfe0a0c
TT
132932020-02-26 Tom Tromey <tom@tromey.com>
13294
13295 * dwarf2/index-write.c (psym_index_map): Change type.
13296 (add_address_entry_worker, write_one_signatured_type)
13297 (recursively_count_psymbols, recursively_write_psymbols)
13298 (class debug_names, psyms_seen_size, write_gdbindex)
13299 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13300
0d79cdc4
AM
133012020-02-26 Aaron Merey <amerey@redhat.com>
13302
13303 * Makefile.in: Handle optional debuginfod support.
13304 * NEWS: Update.
13305 * README: Add --with-debuginfod summary.
13306 * config.in: Regenerate.
13307 * configure: Regenerate.
13308 * configure.ac: Handle optional debuginfod support.
13309 * debuginfod-support.c: debuginfod helper functions.
13310 * debuginfod-support.h: Ditto.
13311 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13312 summary.
13313 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13314 when a dwz file cannot be found.
13315 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13316 debuginfo file cannot be found.
13317 * source.c (open_source_file): Query debuginfod servers when a
13318 source file cannot be found.
13319 * top.c (print_gdb_configuration): Include
13320 --{with,without}-debuginfod in the output.
13321
b65ce565
JG
133222020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13323
13324 * thread.c (thr_try_catch_cmd): Print thread name.
13325
d4c9a4f8
SM
133262020-02-26 Simon Marchi <simon.marchi@efficios.com>
13327
13328 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13329 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13330 dwarf2_fetch_die_type_sect_off): Move to...
13331 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13332 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13333 dwarf2_fetch_die_type_sect_off): ... here.
13334 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13335 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13336 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13337
0dce4280
TV
133382020-02-26 Tom de Vries <tdevries@suse.de>
13339
13340 PR gdb/25603
13341 * symfile.c (set_initial_language): Exit-early if
13342 language_mode == language_mode_manual.
13343
450a1bfc
SM
133442020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13345
13346 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13347 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13348 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13349
9e80cfa1
AB
133502020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13351
13352 * gdbtypes.c (create_array_type_with_stride): Handle negative
13353 array strides.
13354 * valarith.c (value_subscripted_rvalue): Likewise.
13355
09624f1f
LM
133562020-02-25 Luis Machado <luis.machado@linaro.org>
13357
13358 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13359
8cb5117c
SM
133602020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13361
13362 * loc.h (dwarf2_get_die_type): Move to...
13363 * read.h (dwarf2_get_die_type): ... here.
13364 * read.c (dwarf2_get_die_type): Move doc to header.
13365
c325c44e
JB
133662020-02-25 Joel Brobecker <brobecker@adacore.com>
13367
13368 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13369 'gnulib/Makefile.in' to the list.
13370
4ac93832
TT
133712020-02-24 Tom Tromey <tom@tromey.com>
13372
13373 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13374 Remove.
13375 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13376 XOBNEWVEC.
13377
197400e8
TT
133782020-02-24 Tom Tromey <tom@tromey.com>
13379
13380 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13381 New method.
13382 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13383 (dw2_do_instantiate_symtab, dw2_get_file_names)
13384 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13385
76935768
TT
133862020-02-24 Tom Tromey <tom@tromey.com>
13387
13388 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13389 make_scoped_restore.
13390 (dwarf2_psymtab::read_symtab): Don't clear
13391 reading_partial_symbols.
13392
a88ef40d
TV
133932020-02-24 Tom de Vries <tdevries@suse.de>
13394
13395 PR gdb/25592
13396 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13397
c9af6521
TV
133982020-02-24 Tom de Vries <tdevries@suse.de>
13399
13400 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13401 commands layout next/prev/regs.
13402
5707a07a
TT
134032020-02-22 Tom Tromey <tom@tromey.com>
13404
13405 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13406 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13407
3b0fb49e
TT
134082020-02-22 Tom Tromey <tom@tromey.com>
13409
13410 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13411
283be8bf
TT
134122020-02-22 Tom Tromey <tom@tromey.com>
13413
13414 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13415 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13416 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13417 * tui/tui.c (_initialize_tui): Add usage text.
13418
ca793b96
TT
134192020-02-22 Tom Tromey <tom@tromey.com>
13420
13421 * tui/tui-win.c (tui_set_focus_command)
13422 (tui_set_win_height_command): Use error_no_arg.
13423 (_initialize_tui_win): Update help text.
13424 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13425
432b5c40
TT
134262020-02-22 Tom Tromey <tom@tromey.com>
13427
13428 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13429 * tui/tui-disasm.h (struct tui_disasm_window)
13430 <display_start_addr>: Declare.
13431 * tui/tui-source.h (struct tui_source_window)
13432 <display_start_addr>: Declare.
13433 * tui/tui-winsource.h (struct tui_source_window_base)
13434 <show_source_line, display_start_addr>: New methods.
13435 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13436 Rename and move to protected section.
13437 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13438 (tui_source_window_base::do_erase_source_content): Update.
13439 (tui_source_window_base::show_source_line): Now a method.
13440 (tui_source_window_base::show_source_content)
13441 (tui_source_window_base::tui_source_window_base)
13442 (tui_source_window_base::rerender)
13443 (tui_source_window_base::refill)
13444 (tui_source_window_base::do_scroll_horizontal)
13445 (tui_source_window_base::set_is_exec_point_at)
13446 (tui_source_window_base::update_breakpoint_info)
13447 (tui_source_window_base::update_exec_info): Update.
13448 * tui/tui-source.c (tui_source_window::set_contents)
13449 (tui_source_window::showing_source_p)
13450 (tui_source_window::do_scroll_vertical)
13451 (tui_source_window::location_matches_p)
13452 (tui_source_window::line_is_displayed): Update.
13453 (tui_source_window::display_start_addr): New method.
13454 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13455 (tui_disasm_window::do_scroll_vertical)
13456 (tui_disasm_window::location_matches_p): Update.
13457 (tui_disasm_window::display_start_addr): New method.
13458
01b1af32
TT
134592020-02-22 Tom Tromey <tom@tromey.com>
13460
13461 * NEWS: Add entry for gdb.register_window_type.
13462 * tui/tui-layout.h (window_factory): New typedef.
13463 (tui_register_window): Declare.
13464 * tui/tui-layout.c (saved_tui_windows): New global.
13465 (tui_apply_current_layout): Use it.
13466 (tui_register_window): New function.
13467 * python/python.c (do_start_initialization): Call
13468 gdbpy_initialize_tui.
13469 (python_GdbMethods): Add "register_window_type" function.
13470 * python/python-internal.h (gdbpy_register_tui_window)
13471 (gdbpy_initialize_tui): Declare.
13472 * python/py-tui.c: New file.
13473 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13474
fc96d20b
TT
134752020-02-22 Tom Tromey <tom@tromey.com>
13476
13477 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13478
935c78c0
TT
134792020-02-22 Tom Tromey <tom@tromey.com>
13480
13481 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13482 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13483 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13484 (tui_set_win_focus_to): Move from tui-win.c.
13485
0240c8f1
TT
134862020-02-22 Tom Tromey <tom@tromey.com>
13487
13488 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13489 functions.
13490 (known_window_types): New global.
13491 (tui_get_window_by_name): Reimplement.
13492 (initialize_known_windows): New function.
13493 (validate_window_name): Rewrite.
13494 (_initialize_tui_layout): Call initialize_known_windows.
13495
fdb01f0c
TT
134962020-02-22 Tom Tromey <tom@tromey.com>
13497
13498 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13499 Remove constants.
13500 * tui/tui-winsource.h (struct tui_source_window_base)
13501 <tui_source_window_base>: Remove parameter.
13502 * tui/tui-winsource.c
13503 (tui_source_window_base::tui_source_window_base): Remove
13504 parameter.
13505 (tui_source_window_base::refill): Update.
13506 * tui/tui-stack.h (struct tui_locator_window)
13507 <tui_locator_window>: Update.
13508 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13509 Default the constructor.
13510 * tui/tui-regs.h (struct tui_data_item_window)
13511 <tui_data_item_window>: Default the constructor.
13512 (struct tui_data_window) <tui_data_window>: Likewise.
13513 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13514 Default the constructor.
13515 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13516 Default the constructor.
13517 <type>: Remove.
13518 (struct tui_win_info) <tui_win_info>: Default the constructor.
13519 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13520 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13521 Default the constructor.
13522
865a5aec
TT
135232020-02-22 Tom Tromey <tom@tromey.com>
13524
13525 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13526 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13527 * tui/tui-win.c (tui_resize_all): Don't call
13528 tui_delete_invisible_windows.
13529 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13530 done.
13531 (tui_set_layout): Update.
13532 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13533 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13534 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13535
e098d18c
TT
135362020-02-22 Tom Tromey <tom@tromey.com>
13537
13538 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13539 correctly.
13540
eb9c8874
TT
135412020-02-22 Tom Tromey <tom@tromey.com>
13542
13543 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13544
7eed1a8e
TT
135452020-02-22 Tom Tromey <tom@tromey.com>
13546
13547 * tui/tui-winsource.h (struct tui_source_window_iterator)
13548 <inner_iterator>: New etytypedef.
13549 <tui_source_window_iterator>: Take "end" parameter.
13550 <tui_source_window_iterator>: Take iterator.
13551 <operator*, advance>: Update.
13552 <m_iter>: Change type.
13553 <m_end>: New field.
13554 (struct tui_source_windows) <begin, end>: Update.
13555 * tui/tui-layout.c (tui_windows): New global.
13556 (tui_apply_current_layout): Clear tui_windows.
13557 (tui_layout_window::apply): Update tui_windows.
13558 * tui/tui-data.h (tui_windows): Declare.
13559 (all_tui_windows): Now inline function.
13560 (class tui_window_iterator, struct all_tui_windows): Remove.
13561
7c043ba6
TT
135622020-02-22 Tom Tromey <tom@tromey.com>
13563
13564 PR tui/17850:
13565 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13566 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13567 "height" argument.
13568 (class tui_layout_window) <get_sizes>: Likewise.
13569 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13570 argument.
13571 <get_sizes>: Add "height" argument.
13572 <m_vertical>: New field.
13573 * tui/tui-layout.c (tui_layout_split::clone): Update.
13574 (tui_layout_split::get_sizes): Add "height" argument.
13575 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13576 (tui_new_layout_command): Parse "-horizontal".
13577 (_initialize_tui_layout): Update help string.
13578 (tui_layout_split::specification): Add "-horizontal" when needed.
13579 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13580 argument.
13581 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13582 New methods.
13583
6bc56648
TT
135842020-02-22 Tom Tromey <tom@tromey.com>
13585
13586 * tui/tui-layout.h (enum tui_adjust_result): New.
13587 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13588 (class tui_layout_window) <adjust_size>: Return
13589 tui_adjust_result. Rewrite.
13590 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13591 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13592
c22fef7e
TT
135932020-02-22 Tom Tromey <tom@tromey.com>
13594
13595 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13596 parameter and return types.
13597 (class tui_layout_base) <specification>: Add "depth".
13598 (class tui_layout_window) <specification>: Add "depth".
13599 (class tui_layout_split) <specification>: Add "depth".
13600 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13601 and return types.
13602 (tui_new_layout_command): Parse sub-layouts.
13603 (_initialize_tui_layout): Update help string.
13604 (tui_layout_window::specification): Add "depth".
13605 (add_layout_command): Update.
13606
ee325b61
TT
136072020-02-22 Tom Tromey <tom@tromey.com>
13608
13609 * NEWS: Add "tui new-layout" item.
13610 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13611 Add new-layout command to help text.
13612 (validate_window_name): New function.
13613 (tui_new_layout_command): New function.
13614 (_initialize_tui_layout): Register "new-layout".
13615 (tui_layout_window::specification): New method.
13616 (tui_layout_window::specification): New method.
13617 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13618 method.
13619 (class tui_layout_window) <specification>: New method.
13620 (class tui_layout_split) <specification>: New method.
13621
416eb92d
TT
136222020-02-22 Tom Tromey <tom@tromey.com>
13623
13624 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13625 * tui/tui-win.c (window_name_completer): Update comment.
13626 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13627 Declare method.
13628 (class tui_layout_window) <replace_window>: Likewise.
13629 (class tui_layout_split) <replace_window>: Likewise.
13630 (tui_set_layout): Don't declare.
13631 (tui_set_initial_layout): Declare function.
13632 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13633 (asm_regs_layout): New globals.
13634 (tui_current_layout, show_layout): Remove.
13635 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13636 (find_layout, tui_apply_layout): New function.
13637 (layout_completer): Remove.
13638 (tui_next_layout): Reimplement.
13639 (tui_next_layout_command): New function.
13640 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13641 (tui_regs_layout): Reimplement.
13642 (tui_regs_layout_command): New function.
13643 (extract_display_start_addr): Rewrite.
13644 (next_layout, prev_layout): Remove.
13645 (tui_layout_window::replace_window): New method.
13646 (tui_layout_split::replace_window): New method.
13647 (destroy_layout): New function.
13648 (layout_list): New global.
13649 (add_layout_command): New function.
13650 (initialize_layouts): Update.
13651 (tui_layout_command): New function.
13652 (_initialize_tui_layout): Install "layout" commands.
13653 * tui/tui-data.h (enum tui_layout_type): Remove.
13654 (tui_current_layout): Don't declare.
13655
0dbc2fc7
TT
136562020-02-22 Tom Tromey <tom@tromey.com>
13657
13658 * tui/tui-regs.c (tui_reg_layout): Remove.
13659 (tui_reg_command): Use tui_regs_layout.
13660 * tui/tui-layout.h (tui_reg_command): Declare.
13661 * tui/tui-layout.c (tui_reg_command): New function.
13662
5afe342e
TT
136632020-02-22 Tom Tromey <tom@tromey.com>
13664
13665 * tui/tui.c (tui_rl_delete_other_windows): Call
13666 tui_remove_some_windows.
13667 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13668 Declare method.
13669 (class tui_layout_window) <remove_windows>: New method.
13670 (class tui_layout_split) <remove_windows>: Declare.
13671 (tui_remove_some_windows): Declare.
13672 * tui/tui-layout.c (tui_remove_some_windows): New function.
13673 (tui_layout_split::remove_windows): New method.
13674
427326a8
TT
136752020-02-22 Tom Tromey <tom@tromey.com>
13676
13677 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13678 * tui/tui-layout.h (tui_next_layout): Declare.
13679 * tui/tui-layout.c (tui_next_layout): New function.
13680
3fe12b6d
TT
136812020-02-22 Tom Tromey <tom@tromey.com>
13682
13683 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13684 correct coordinates.
13685
59b8b5d2
TT
136862020-02-22 Tom Tromey <tom@tromey.com>
13687
13688 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13689 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13690 DATA_WIN case.
13691
2a3d458b
TT
136922020-02-22 Tom Tromey <tom@tromey.com>
13693
13694 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13695 TUI_DISASM_WIN, not tui_win_list.
13696
3f0cbb04
TT
136972020-02-22 Tom Tromey <tom@tromey.com>
13698
13699 * valprint.c (generic_val_print_enum_1)
13700 (val_print_type_code_flags): Style member names.
13701 * rust-lang.c (val_print_struct, rust_print_enum)
13702 (rust_print_struct_def, rust_internal_print_type): Style member
13703 names.
13704 * p-valprint.c (pascal_object_print_value_fields): Style member
13705 names. Only call fprintf_symbol_filtered for static members.
13706 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13707 * f-valprint.c (f_val_print): Style member names.
13708 * f-typeprint.c (f_type_print_base): Style member names.
13709 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13710 call fprintf_symbol_filtered for static members.
13711 (cp_print_class_member): Style member names.
13712 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13713 member names.
13714 * ada-valprint.c (ada_print_scalar): Style enum names.
13715 (ada_val_print_enum): Likewise.
13716 * ada-typeprint.c (print_enum_type): Style enum names.
13717
d4d947ae
TT
137182020-02-21 Tom Tromey <tom@tromey.com>
13719
13720 * psympriv.h (struct partial_symtab): Update comment.
13721
e94e944b
TT
137222020-02-21 Tom Tromey <tromey@adacore.com>
13723
13724 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13725 type is CORE_ADDR.
13726
1eb73179
TV
137272020-02-21 Tom de Vries <tdevries@suse.de>
13728
13729 PR gdb/25534
13730 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13731 if dependencies[i]->user != NULL.
13732
4f180d53
AT
137332020-02-21 Ali Tamur <tamur@google.com>
13734
13735 * dwarf2/read.c (dwarf2_name): Add null check.
13736
22b6cd70
TT
137372020-02-20 Tom Tromey <tom@tromey.com>
13738
13739 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13740 ">=", in binary search.
13741 (dwarf2_find_containing_comp_unit): New overload.
13742 (run_test): New self-test.
13743 (_initialize_dwarf2_read): Register new test.
13744
bd0cf5a6
NC
137452020-02-20 Nelson Chu <nelson.chu@sifive.com>
13746
13747 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13748 * riscv-tdep.h: Likewise.
13749 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13750 rv32-only CSR.
13751 * features/riscv/64bit-csr.xml: Regenerated.
13752
3f702acd
SDJ
137532020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13754 Tom Tromey <tom@tromey.com>
13755
13756 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13757 of 'fputc_unfiltered'.
13758 (putchar_unfiltered): Call 'fputc_unfiltered'.
13759 (fputc_unfiltered): Call 'fputs_unfiltered'.
13760
d13c7322
AB
137612020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13762
13763 * config.in: Regenerate.
13764 * configure: Regenerate.
13765 * configure.ac: Add --with-python-libdir option.
13766 * main.c: Use WITH_PYTHON_LIBDIR.
13767
869d8950
TT
137682020-02-19 Tom Tromey <tom@tromey.com>
13769
13770 * symtab.c (general_symbol_info::compute_and_set_names): Use
13771 obstack_strndup. Simplify call to symbol_set_demangled_name.
13772
298e9637
SM
137732020-02-19 Simon Marchi <simon.marchi@efficios.com>
13774
13775 * dwarf2/read.c (allocate_signatured_type_table,
13776 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13777 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13778 Remove objfile parameter, update all callers.
13779
08410482
DE
137802020-02-19 Doug Evans <dje@google.com>
13781
13782 PR rust/25535
13783 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13784 rust_enum_variant calculation.
13785
dfdeeca1
TT
137862020-02-19 Tom Tromey <tromey@adacore.com>
13787
13788 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13789
2ef5453b
TT
137902020-02-19 Tom Tromey <tromey@adacore.com>
13791
13792 * ada-lang.c (cache_symbol): Use obstack_strdup.
13793
9f1528a1
AB
137942020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13795
13796 * configure: Regenerate.
13797
d3c22fa8
TT
137982020-02-19 Tom Tromey <tromey@adacore.com>
13799
13800 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13801 NULL check.
13802
bf84f706
MR
138032020-02-19 Maciej W. Rozycki <macro@wdc.com>
13804
13805 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13806
d1c9b20f
AB
138072020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13808
13809 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13810 if GDBSERVER is not defined.
13811 (riscv_tdesc_cache): Likewise, also store const target_desc.
13812 (STATIC_IN_GDB): Define.
13813 (riscv_create_target_description): Update declaration with
13814 STATIC_IN_GDB.
13815 (riscv_lookup_target_description): New function, only define if
13816 GDBSERVER is not defined.
13817 * arch/riscv.h (riscv_create_target_description): Declare only
13818 when GDBSERVER is defined.
13819 (riscv_lookup_target_description): New declaration when GDBSERVER
13820 is not defined.
13821 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13822 (riscv_linux_read_features): ...this, and return
13823 riscv_gdbarch_features instead of target_desc.
13824 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13825 (riscv_linux_read_description): Rename to...
13826 (riscv_linux_read_features): ...this.
13827 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13828 Update to use riscv_gdbarch_features and
13829 riscv_lookup_target_description.
13830 * riscv-tdep.c (riscv_find_default_target_description): Use
13831 riscv_lookup_target_description instead of
13832 riscv_create_target_description.
13833
373d7ac0
SM
138342020-02-18 Simon Marchi <simon.marchi@efficios.com>
13835
13836 * valprint.c (generic_val_print_enum_1): When printing a flag
13837 enum with value 0 and there is no enumerator with value 0, print
13838 just "0" instead of "(unknown: 0x0)".
13839
b29a2df0
SM
138402020-02-18 Simon Marchi <simon.marchi@efficios.com>
13841
13842 * valprint.c (generic_val_print_enum_1): Print unknown part of
13843 flag enum in hex.
13844
6740f0cc
SM
138452020-02-18 Simon Marchi <simon.marchi@efficios.com>
13846
13847 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13848 flag enums to contain duplicate enumerators.
13849 * valprint.c (generic_val_print_enum_1): Update comment.
13850
edd45eb0
SM
138512020-02-18 Simon Marchi <simon.marchi@efficios.com>
13852
13853 * dwarf2/read.c: Include "count-one-bits.h".
13854 (update_enumeration_type_from_children): If an enumerator has
13855 multiple bits set, don't treat the enumeration as a "flag enum".
13856 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13857 of flag enums have 0 or 1 bit set.
13858
6d0cf446
BE
138592020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13860
13861 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13862 conversion.
13863 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13864 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13865 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13866 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13867 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13868
7001c1b7
SM
138692020-02-18 Simon Marchi <simon.marchi@efficios.com>
13870
13871 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13872
fdb61c6c
SM
138732020-02-14 Simon Marchi <simon.marchi@efficios.com>
13874
13875 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13876 displaced_step_closure_up.
13877 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13878 (struct displaced_step_closure_up):
13879 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13880 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13881 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13882 Likewise.
13883 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13884 * gdbarch.c, gdbarch.h: Re-generate.
13885 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13886 displaced_step_closure_up.
13887 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13888 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13889 * infrun.h (displaced_step_closure_up): New type alias.
13890 (struct displaced_step_inferior_state) <step_closure>: Change
13891 type to displaced_step_closure_up.
13892 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13893 displaced_step_closure_up.
13894 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13895
a4a38eb4
TT
138962020-02-14 Tom Tromey <tom@tromey.com>
13897
13898 * minidebug.c (gnu_debug_key): New global.
13899 (find_separate_debug_file_in_section): Use it.
13900
e8217e61
SM
139012020-02-14 Simon Marchi <simon.marchi@efficios.com>
13902
13903 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13904 std::unique_ptr.
13905 * gdbarch.c: Re-generate.
13906 * gdbarch.h: Re-generate.
13907 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13908 change.
13909 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13910 type to std::unique_ptr.
13911 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13912 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13913 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13914 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13915 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13916 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13917 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13918 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13919 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13920
d8d83535
SM
139212020-02-14 Simon Marchi <simon.marchi@efficios.com>
13922
13923 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13924 std::unique_ptr.
13925 (displaced_step_clear): Rename to...
13926 (displaced_step_reset): ... this. Just call displaced->reset ().
13927 (displaced_step_clear_cleanup): Rename to...
13928 (displaced_step_reset_cleanup): ... this.
13929 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13930 (displaced_step_fixup): Likewise.
13931 (resume_1): Likewise.
13932 (handle_inferior_event): Restore child's memory before calling
13933 displaced_step_fixup on the parent.
13934 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13935 to std::unique_ptr.
13936 <step_closure>: Change type to std::unique_ptr.
13937
5f661e03
SM
139382020-02-14 Simon Marchi <simon.marchi@efficios.com>
13939
13940 * arm-tdep.c: Include count-one-bits.h.
13941 (cleanup_block_store_pc): Use count_one_bits.
13942 (cleanup_block_load_pc): Use count_one_bits.
13943 (arm_copy_block_xfer): Use count_one_bits.
13944 (thumb2_copy_block_xfer): Use count_one_bits.
13945 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13946 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13947 (thumb_get_next_pcs_raw): Use count_one_bits.
13948 (arm_get_next_pcs_raw): Use count_one_bits_l.
13949 * arch/arm.c (bitcount): Remove.
13950 * arch/arm.h (bitcount): Remove.
13951
8084e579
TT
139522020-02-14 Tom Tromey <tromey@adacore.com>
13953
13954 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13955 Update.
13956 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13957 * dwarf2/loc.c (call_site_find_chain_1): Return
13958 unique_xmalloc_ptr.
13959 (call_site_find_chain): Likewise.
13960
258bf0ee
RB
139612020-02-14 Richard Biener <rguenther@suse.de>
13962
13963 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13964 on expression with division operators.
13965
f98a8458
AKS
139662020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13967
13968 * MAINTAINERS (Write After Approval): Adding myself.
13969
d1437c0e
TT
139702020-02-12 Tom Tromey <tom@tromey.com>
13971
13972 * event-loop.c (event_data, gdb_event, event_handler_func):
13973 Remove.
13974
3d4560f7
TT
139752020-02-12 Tom Tromey <tom@tromey.com>
13976
13977 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13978 (dwarf2_frame_objfile_data): Add comment.
13979 (find_comp_unit, set_comp_unit): New functions.
13980 (dwarf2_frame_find_fde): Use find_comp_unit.
13981 (dwarf2_build_frame_info): Use set_comp_unit.
13982
21982304
TT
139832020-02-12 Tom Tromey <tom@tromey.com>
13984
13985 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13986 (comp_unit): Don't initialize objfile.
13987 (execute_cfa_program): Add text_offset parameter.
13988 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13989 (dwarf2_frame_cache): Update.
13990 (dwarf2_build_frame_info): Don't set "objfile" member.
13991
4debb237
TT
139922020-02-12 Tom Tromey <tom@tromey.com>
13993
13994 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13995 (decode_frame_entry): Likewise.
13996 (dwarf2_build_frame_info): Update.
13997
0d404d44
TT
139982020-02-12 Tom Tromey <tom@tromey.com>
13999
14000 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14001 (decode_frame_entry_1): Use the comp_unit obstack.
14002
a7a3ae5c
TT
140032020-02-12 Tom Tromey <tom@tromey.com>
14004
14005 * dwarf2/frame.c (struct comp_unit): Add initializers and
14006 constructor.
14007 (dwarf2_frame_objfile_data): Store a comp_unit.
14008 (dwarf2_frame_find_fde): Update.
14009 (dwarf2_build_frame_info): Use "new".
14010
a9d65418
TT
140112020-02-12 Tom Tromey <tom@tromey.com>
14012
14013 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14014 (dwarf2_fde_table): Typedef for std::vector.
14015 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14016 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14017 (decode_frame_entry): Update.
14018 (dwarf2_build_frame_info): Use "new".
14019
7559c217
CB
140202020-02-12 Christian Biesinger <cbiesinger@google.com>
14021
14022 * arm-tdep.c (arm_gdbarch_init): Update.
14023 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14024 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14025 have_neon, is_m>: Change to bool.
14026
aeefc73c
CB
140272020-02-12 Christian Biesinger <cbiesinger@google.com>
14028
14029 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14030
d27b8e5f
TT
140312020-02-12 Tom Tromey <tom@tromey.com>
14032
14033 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14034
cd5900f3
HD
140352020-02-12 Hannes Domani <ssbssa@yahoo.de>
14036
14037 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14038 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14039
f056b22b
TT
140402020-02-11 Tom Tromey <tom@tromey.com>
14041
14042 * psymtab.h: Update comment.
14043
f92ff6b5
TT
140442020-02-11 Tom Tromey <tom@tromey.com>
14045
14046 * gdb_obstack.h (struct auto_obstack): Use
14047 DISABLE_COPY_AND_ASSIGN.
14048
3fd6912b
TT
140492020-02-11 Tom Tromey <tom@tromey.com>
14050
14051 * dwarf2/frame.h (struct objfile): Don't forward declare.
14052
69ed9b74
CB
140532020-02-11 Christian Biesinger <cbiesinger@google.com>
14054
14055 * cris-tdep.c (cris_supply_gregset): Change signature to match
14056 what struct regset expects.
14057 (cris_regset): New struct.
14058 (fetch_core_registers): Remove.
14059 (cris_iterate_over_regset_sections): New function.
14060 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14061 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14062
bda874f6
CB
140632020-02-11 Christian Biesinger <cbiesinger@google.com>
14064
14065 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14066 registers.
14067
754e1564
CB
140682020-02-11 Christian Biesinger <cbiesinger@google.com>
14069
14070 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14071
8ddd8e0e
SM
140722020-02-11 Simon Marchi <simon.marchi@efficios.com>
14073
14074 * configure: Re-generate.
14075
898e7f60
SM
140762020-02-11 Simon Marchi <simon.marchi@efficios.com>
14077
14078 * configure: Re-generate.
14079
58df732b
SM
140802020-02-11 Simon Marchi <simon.marchi@efficios.com>
14081
14082 * acinclude: Update warning.m4 path.
14083 * warning.m4: Move to gdbsupport.
14084
da5bd37e
TT
140852020-02-11 Tom Tromey <tromey@adacore.com>
14086
14087 * remote.c (remote_console_output): Update.
14088 * printcmd.c (printf_command): Update.
14089 * event-loop.c (gdb_wait_for_event): Update.
14090 * linux-nat.c (sigchld_handler): Update.
14091 * remote-sim.c (gdb_os_write_stdout): Update.
14092 (gdb_os_flush_stdout): Update.
14093 (gdb_os_flush_stderr): Update.
14094 (gdb_os_write_stderr): Update.
14095 * exceptions.c (print_exception): Update.
14096 * remote-fileio.c (remote_fileio_func_read): Update.
14097 (remote_fileio_func_write): Update.
14098 * tui/tui.c (tui_enable): Update.
14099 * tui/tui-interp.c (tui_interp::init): Update.
14100 * utils.c (init_page_info): Update.
14101 (putchar_unfiltered, fputc_unfiltered): Update.
14102 (gdb_flush): Update.
14103 (emit_style_escape): Update.
14104 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14105 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14106 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14107 (stderr_file::write): Update.
14108 (stderr_file::puts): Update.
14109 * ui-file.h (ui_file_isatty, ui_file_write)
14110 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14111 (ui_file_puts): Don't declare.
14112
85f0dd3c
TV
141132020-02-10 Tom de Vries <tdevries@suse.de>
14114
14115 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14116 sentinel to char *.
14117
2e927613
TV
141182020-02-09 Tom de Vries <tdevries@suse.de>
14119
14120 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14121 filename if it matches "<artificial>".
14122
6bafc845
HD
141232020-02-09 Hannes Domani <ssbssa@yahoo.de>
14124
14125 * windows-tdep.c (struct enum_value_name): New struct.
14126 (create_enum): New function.
14127 (windows_get_siginfo_type): Create and use enum types.
14128
7928d571
HD
141292020-02-09 Hannes Domani <ssbssa@yahoo.de>
14130
14131 * NEWS: Mention $_siginfo support for Windows.
14132 * windows-nat.c (handle_exception): Set siginfo_er.
14133 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14134 (windows_xfer_siginfo): New function.
14135 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14136 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14137 (init_windows_gdbarch_data): New function.
14138 (get_windows_gdbarch_data): New function.
14139 (windows_get_siginfo_type): New function.
14140 (windows_init_abi): Register windows_get_siginfo_type.
14141 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14142
6751ebae
TT
141432020-02-08 Tom Tromey <tom@tromey.com>
14144
14145 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14146 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14147 <keep>: Declare method.
14148 <m_keep>: Remove member.
14149 <~cutu_reader>: Remove.
14150 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14151 (cutu_reader::cutu_reader): Update.
14152 (cutu_reader::keep): Rename from ~cutu_reader.
14153 (process_psymtab_comp_unit, build_type_psymtabs_1)
14154 (process_skeletonless_type_unit, load_partial_comp_unit)
14155 (load_full_comp_unit, dwarf2_read_addr_index)
14156 (read_signatured_type): Update.
14157
135f5437
TT
141582020-02-08 Tom Tromey <tom@tromey.com>
14159
14160 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14161 "want_partial_unit" parameter.
14162 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14163 Inline check for DW_TAG_partial_unit.
14164 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14165
9f66ff1c
TT
141662020-02-08 Tom Tromey <tom@tromey.com>
14167
14168 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14169 read.c.
14170 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14171 read.c.
14172
c8a7a66f
TT
141732020-02-08 Tom Tromey <tom@tromey.com>
14174
14175 * dwarf2/read.c (read_address): Move to comp-unit.c.
14176 (dwarf2_rnglists_process, dwarf2_ranges_process)
14177 (read_attribute_value, dwarf_decode_lines_1)
14178 (var_decode_location, decode_locdesc): Update.
14179 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14180 read.c. Remove "cu" parameter.
14181 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14182 method.
14183
8266302d
TT
141842020-02-08 Tom Tromey <tom@tromey.com>
14185
14186 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14187 (read_indirect_line_string): Update.
14188 * dwarf2/comp-unit.c (read_offset): Remove.
14189 (read_comp_unit_head): Update.
14190 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14191 method.
14192 (read_offset): Don't declare.
14193
4057dfde
TT
141942020-02-08 Tom Tromey <tom@tromey.com>
14195
14196 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14197 * dwarf2/read.c (struct comp_unit_head): Move to
14198 dwarf2/comp-unit.h.
14199 (enum class rcuh_kind): Move to comp-unit.h.
14200 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14201 (read_comp_unit_head, error_check_comp_unit_head)
14202 (read_and_check_comp_unit_head): Move to comp-unit.c.
14203 (read_offset, dwarf_unit_type_name): Likewise.
14204 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14205 (cutu_reader::cutu_reader, read_call_site_scope)
14206 (find_partial_die, follow_die_offset): Update.
14207 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14208
24aa364d
TT
142092020-02-08 Tom Tromey <tom@tromey.com>
14210
14211 * dwarf2/read.c (read_offset_1): Move to leb.c.
14212 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14213 (dwarf_decode_macro_bytes): Update.
14214 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14215 * dwarf2/leb.h (read_offset): Declare.
14216
2c7d5afc
TT
142172020-02-08 Tom Tromey <tom@tromey.com>
14218
14219 * dwarf2/read.c (dwarf2_section_size): Remove.
14220 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14221 Update.
14222 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14223
4075cb26
TT
142242020-02-08 Tom Tromey <tom@tromey.com>
14225
14226 * dwarf2/read.c (read_initial_length): Move to leb.c.
14227 * dwarf2/leb.h (read_initial_length): Declare.
14228 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14229 handle_nonstd parameter.
14230 * dwarf2/frame.c (read_initial_length): Remove.
14231 (decode_frame_entry_1): Update.
14232
09ba997f
TT
142332020-02-08 Tom Tromey <tom@tromey.com>
14234
14235 * dwarf2/loc.c (dwarf2_find_location_expression)
14236 (dwarf_evaluate_loc_desc::get_tls_address)
14237 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14238 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14239 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14240 (dwarf2_compile_property_to_c)
14241 (dwarf2_loc_desc_get_symbol_read_needs)
14242 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14243 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14244 (loclist_describe_location, loclist_tracepoint_var_ref)
14245 (loclist_generate_c_location): Update.
14246 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14247 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14248 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14249 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14250 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14251 (dwarf2_per_cu_data::addr_size)
14252 (dwarf2_per_cu_data::ref_addr_size)
14253 (dwarf2_per_cu_data::text_offset)
14254 (dwarf2_per_cu_data::addr_type): Now methods.
14255 (per_cu_header_read_in): Make per_cu "const".
14256 (dwarf2_version): Remove.
14257 (dwarf2_per_cu_data::int_type): Now a method.
14258 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14259 (set_die_type, read_array_type, read_subrange_index_type)
14260 (read_tag_string_type, read_subrange_type): Update.
14261 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14262 offset_size, ref_addr_size, text_offset, addr_type, version,
14263 objfile, int_type, addr_sized_int_type>: Declare methods.
14264
96c738c0
TT
142652020-02-08 Tom Tromey <tom@tromey.com>
14266
14267 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14268 Move earlier.
14269
8fdd972c
TT
142702020-02-08 Tom Tromey <tom@tromey.com>
14271
14272 * dwarf2/read.h (dwarf_line_debug): Declare.
14273 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14274 * dwarf2/read.c: Move line_header code to new files.
14275 (dwarf_line_debug): No longer static.
14276 * dwarf2/line-header.c: New file.
14277 * dwarf2/line-header.h: New file.
14278
03075812
TT
142792020-02-08 Tom Tromey <tom@tromey.com>
14280
14281 * dwarf2/read.c (struct line_header) <file_full_name,
14282 file_file_name>: Return unique_xmalloc_ptr.
14283 (line_header::file_file_name): Update.
14284 (line_header::file_full_name): Update.
14285 (dw2_get_file_names_reader): Update.
14286 (macro_start_file): Update.
14287
bb822404
TT
142882020-02-08 Tom Tromey <tom@tromey.com>
14289
14290 * dwarf2/read.c (struct line_header) <file_full_name,
14291 file_file_name>: Declare methods.
14292 (dw2_get_file_names_reader): Update.
14293 (file_file_name): Now a method.
14294 (file_full_name): Likewise.
14295 (macro_start_file): Update.
14296
009b64fc
TT
142972020-02-08 Tom Tromey <tom@tromey.com>
14298
14299 * dwarf2/read.c (dwarf_always_disassemble)
14300 (show_dwarf_always_disassemble): Move to loc.c.
14301 (_initialize_dwarf2_read): Move "always-disassemble" registration
14302 to loc.c.
14303 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14304 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14305 static.
14306 (show_dwarf_always_disassemble): Move from read.c.
14307 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14308
5895093f
TT
143092020-02-08 Tom Tromey <tom@tromey.com>
14310
14311 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14312 (create_quick_file_names_table): Return htab_up.
14313 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14314 Update.
14315 * dwarf2/read.h (struct dwarf2_per_objfile)
14316 <quick_file_names_table>: Now htab_up.
14317
b3b32279
TT
143182020-02-08 Tom Tromey <tom@tromey.com>
14319
14320 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14321
1d33d811
TT
143222020-02-08 Tom Tromey <tom@tromey.com>
14323
14324 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14325 Rewrite.
14326 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14327 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14328 (abbrev_table::abbrev_table): No longer inline.
14329 (ABBREV_HASH_SIZE): Remove.
14330 (abbrev_table::m_abbrevs): Now an htab_up.
14331
86de1d91
TT
143322020-02-08 Tom Tromey <tom@tromey.com>
14333
14334 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14335 (cutu_reader): Update.
14336 (build_type_psymtabs_1): Update.
14337 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14338 (abbrev_table::alloc_abbrev): Update.
14339 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14340 (abbrev_table::read): New static method, renamed from
14341 abbrev_table_read_table.
14342 (abbrev_table::alloc_abbrev)
14343 (abbrev_table::add_abbrev): Now private.
14344 (abbrev_table::abbrev_table): Now private.
14345 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14346
0335378b
TT
143472020-02-08 Tom Tromey <tom@tromey.com>
14348
14349 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14350 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14351 htab_up.
14352
48b490f2
TT
143532020-02-08 Tom Tromey <tom@tromey.com>
14354
14355 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14356 htab_up.
14357 (lookup_dwo_unit_in_dwp): Update.
14358 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14359 on obstack.
14360
bc68fb19
TT
143612020-02-08 Tom Tromey <tom@tromey.com>
14362
14363 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14364 obstack.
14365
d15acc42
TT
143662020-02-08 Tom Tromey <tom@tromey.com>
14367
14368 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14369 line_header_hash.
14370 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14371 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14372 Change type to htab_up.
14373
eaa5fa8b
TT
143742020-02-08 Tom Tromey <tom@tromey.com>
14375
14376 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14377 htab_up. Don't allocate on obstack.
14378 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14379 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14380 Change type to htab_up.
14381
b0b6a987
TT
143822020-02-08 Tom Tromey <tom@tromey.com>
14383
14384 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14385 Change type to htab_up.
14386 * dwarf2/read.c (create_signatured_type_table_from_index)
14387 (create_signatured_type_table_from_debug_names)
14388 (create_all_type_units, add_type_unit)
14389 (lookup_dwo_signatured_type, lookup_signatured_type)
14390 (process_skeletonless_type_unit): Update.
14391 (create_debug_type_hash_table, create_debug_types_hash_table):
14392 Change type of types_htab.
14393 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14394 htab_up. Don't allocate on obstack.
14395 (create_cus_hash_table): Change type of cus_htab parameter.
14396 (struct dwo_file) <cus, tus>: Now htab_up.
14397 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14398 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14399 (queue_and_load_all_dwo_tus): Update.
14400 * dwarf2/index-write.c (write_gdbindex): Update.
14401 (write_debug_names): Update.
14402
39856def
TT
144032020-02-08 Tom Tromey <tom@tromey.com>
14404
14405 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14406 dwarf2/read.c. Remove "next" member. Add constructor ntad
14407 destructor.
14408 (struct dwarf2_per_objfile) <queue>: New member.
14409 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14410 dwarf2/read.h.
14411 (dwarf2_queue, dwarf2_queue_tail): Remove.
14412 (class dwarf2_queue_guard): Add parameter to constructor. Use
14413 DISABLE_COPY_AND_ASSIGN.
14414 <m_per_objfile>: New member.
14415 <~dwarf2_queue_guard>: Rewrite.
14416 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14417 Update.
14418 (~dwarf2_queue_item): New.
14419
3e225074
TT
144202020-02-08 Tom Tromey <tom@tromey.com>
14421
14422 * dwarf2/read.c (struct die_info) <has_children>: New member.
14423 (dw2_get_file_names_reader): Remove has_children.
14424 (dw2_get_file_names): Update.
14425 (read_cutu_die_from_dwo): Remove has_children.
14426 (cutu_reader::init_tu_and_read_dwo_dies)
14427 (cutu_reader::cutu_reader): Update.
14428 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14429 Remove has_children.
14430 (build_type_psymtabs_1, process_skeletonless_type_unit)
14431 (load_partial_comp_unit, load_full_comp_unit): Update.
14432 (create_dwo_cu_reader): Remove has_children.
14433 (create_cus_hash_table, read_die_and_children): Update.
14434 (read_full_die_1,read_full_die): Remove has_children.
14435 (read_signatured_type): Update.
14436 (class cutu_reader) <has_children>: Remove.
14437
82ca8957
TT
144382020-02-08 Tom Tromey <tom@tromey.com>
14439
14440 * dwarf2/expr.c: Rename from dwarf2expr.c.
14441 * dwarf2/expr.h: Rename from dwarf2expr.h.
14442 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14443 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14444 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14445 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14446 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14447 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14448 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14449 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14450 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14451 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14452 * dwarf2/loc.c: Rename from dwarf2loc.c.
14453 * dwarf2/loc.h: Rename from dwarf2loc.h.
14454 * dwarf2/read.c: Rename from dwarf2read.c.
14455 * dwarf2/read.h: Rename from dwarf2read.h.
14456 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14457 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14458 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14459 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14460 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14461 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14462 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14463 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14464 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14465 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14466 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14467 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14468 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14469 Update.
14470 * Makefile.in (COMMON_SFILES): Update.
14471 (HFILES_NO_SRCDIR): Update.
14472
9e35d499
TT
144732020-02-08 Tom Tromey <tom@tromey.com>
14474
14475 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14476 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14477
1eba2311
TT
144782020-02-08 Tom Tromey <tom@tromey.com>
14479
14480 * dwarf2read.h (struct die_info): Don't declare.
14481
e41c2da2
TT
144822020-02-08 Tom Tromey <tom@tromey.com>
14483
14484 * dwarf2read.h (die_info_ptr): Remove typedef.
14485
4fc6c0d5
TT
144862020-02-08 Tom Tromey <tom@tromey.com>
14487
14488 * dwarf2read.c (read_call_site_scope)
14489 (handle_data_member_location, dwarf2_add_member_fn)
14490 (mark_common_block_symbol_computed, read_common_block)
14491 (attr_to_dynamic_prop, partial_die_info::read)
14492 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14493 (dwarf2_symbol_mark_computed, set_die_type): Update.
14494 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14495 method.
14496 (attr_form_is_block): Don't declare.
14497 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14498
cd6c91b4
TT
144992020-02-08 Tom Tromey <tom@tromey.com>
14500
14501 * dwarf2read.c (dwarf2_find_base_address, )
14502 (read_call_site_scope, rust_containing_type)
14503 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14504 (handle_data_member_location, dwarf2_add_member_fn)
14505 (get_alignment, read_structure_type, process_structure_scope)
14506 (mark_common_block_symbol_computed, read_common_block)
14507 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14508 (partial_die_info::read, read_attribute_value, new_symbol)
14509 (lookup_die_type, dwarf2_get_ref_die_offset)
14510 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14511 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14512 (dwarf2_symbol_mark_computed): Update.
14513 * dwarf2/attribute.h (struct attribute) <value_as_address,
14514 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14515 methods.
14516 (value_as_address, attr_form_is_section_offset)
14517 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14518 * dwarf2/attribute.c (attribute::value_as_address)
14519 (attribute::form_is_section_offset, attribute::form_is_constant)
14520 (attribute::form_is_ref): Now methods.
14521
162dce55
TT
145222020-02-08 Tom Tromey <tom@tromey.com>
14523
14524 * dwarf2read.c (struct attribute, DW_STRING)
14525 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14526 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14527 (attr_form_is_block, attr_form_is_section_offset)
14528 (attr_form_is_constant, attr_form_is_ref): Move.
14529 * dwarf2/attribute.h: New file.
14530 * dwarf2/attribute.c: New file, from dwarf2read.c.
14531 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14532
3054dd54
TT
145332020-02-08 Tom Tromey <tom@tromey.com>
14534
14535 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14536 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14537 Move.
14538 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14539 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14540 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14541 abbrev.c.
14542 * dwarf2/abbrev.h: New file.
14543 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14544 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14545
96b79293
TT
145462020-02-08 Tom Tromey <tom@tromey.com>
14547
14548 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14549 (dwarf2_section_size, dwarf2_get_section_info)
14550 (create_signatured_type_table_from_debug_names)
14551 (create_addrmap_from_aranges, read_debug_names_from_section)
14552 (get_gdb_index_contents_from_section, read_comp_unit_head)
14553 (error_check_comp_unit_head, read_abbrev_offset)
14554 (create_debug_type_hash_table, init_cu_die_reader)
14555 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14556 (read_comp_units_from_section, create_cus_hash_table)
14557 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14558 (create_dwp_v2_section, dwarf2_rnglists_process)
14559 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14560 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14561 (read_indirect_string_from_dwz, read_addr_index_1)
14562 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14563 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14564 (fill_in_loclist_baton): Update.
14565 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14566 get_containing_section, get_bfd_owner, get_bfd_section,
14567 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14568 (dwarf2_read_section, get_section_name, get_section_file_name)
14569 (get_containing_section, get_section_bfd_owner)
14570 (get_section_bfd_section, get_section_name, get_section_file_name)
14571 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14572 declare.
14573 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14574 (dwarf2_section_info::get_bfd_owner)
14575 (dwarf2_section_info::get_bfd_section)
14576 (dwarf2_section_info::get_name)
14577 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14578 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14579 (dwarf2_section_info::read): Now methods.
14580 * dwarf-index-write.c (class debug_names): Update.
14581
2c86cff9
TT
145822020-02-08 Tom Tromey <tom@tromey.com>
14583
14584 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14585 Move to dwarf2/section.h.
14586 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14587 (get_section_bfd_section, get_section_name)
14588 (get_section_file_name, get_section_id, get_section_flags)
14589 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14590 dwarf2/section.c.
14591 * dwarf2/section.h: New file.
14592 * dwarf2/section.c: New file, from dwarf2read.c.
14593 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14594
f4382c45
TT
145952020-02-08 Tom Tromey <tom@tromey.com>
14596
14597 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14598 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14599 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14600 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14601 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14602 * dwarf2/leb.h: New file, from dwarf2read.c.
14603 * dwarf2/leb.c: New file, from dwarf2read.c.
14604 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14605 Remove.
14606 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14607 (COMMON_SFILES): Add dwarf2/leb.c.
14608
01840b7a
JB
146092020-02-08 Joel Brobecker <brobecker@adacore.com>
14610
14611 GDB 9.1 released.
14612
dfcb27e4
IB
146132020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14614
14615 PR gdb/25190:
aac66a4c
SM
14616 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14617 * gdb/remote.c (remote_console_output): Update.
14618 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14619 (ui_file_puts): ...this.
14620 * gdb/ui-file.h (ui_file_puts): Add declaration.
14621 * gdb/utils.c (emit_style_escape): Update.
14622 (flush_wrap_buffer): Update.
14623 (fputs_maybe_filtered): Update.
14624 (fputs_unfiltered): Add function.
dfcb27e4 14625
faa17681
IB
146262020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14627
aac66a4c
SM
14628 * gdb/event-loop.c (gdb_wait_for_event): Update.
14629 * gdb/printcmd.c (printf_command): Update.
14630 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14631 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14632 (gdb_os_flush_stderr): Update.
14633 * gdb/remote.c (remote_console_output): Update.
14634 * gdb/ui-file.c (gdb_flush): Rename to...
14635 (ui_file_flush): ...this.
14636 (stderr_file::write): Update.
14637 (stderr_file::puts): Update.
14638 * gdb/ui-file.h (gdb_flush): Rename to...
14639 (ui_file_flush): ...this.
14640 * gdb/utils.c (gdb_flush): Add function.
14641 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14642
5abbbe1d
TT
146432020-02-07 Tom Tromey <tromey@adacore.com>
14644
14645 PR breakpoints/24915:
14646 * source.c (find_and_open_source): Do not check basenames_may_differ.
14647
919adfe8
TT
146482020-02-07 Tom Tromey <tom@tromey.com>
14649
14650 * README: Update gdbserver documentation.
14651 * gdbserver: Move to top level.
14652 * configure.tgt (build_gdbserver): Remove.
14653 * configure.ac: Remove --enable-gdbserver.
14654 * configure: Rebuild.
14655 * Makefile.in (distclean): Don't mention gdbserver.
14656
1d5d29e7
SV
146572020-02-06 Shahab Vahedi <shahab@synopsys.com>
14658
14659 * source-cache.c (source_cache::ensure): Surround
14660 get_plain_source_lines with a try/catch.
14661 (source_cache::get_line_charpos): Get rid of try/catch
14662 and only check for the return value of "ensure".
14663 * tui/tui-source.c (tui_source_window::set_contents):
14664 Simplify "nlines" calculation.
14665
6eb1129c
SV
146662020-02-06 Shahab Vahedi <shahab@synopsys.com>
14667
14668 * MAINTAINERS (Write After Approval): Add myself.
14669
c6a42d11
CB
146702020-02-05 Christian Biesinger <cbiesinger@google.com>
14671
14672 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14673 function call.
14674
c8ecdda6
CB
146752020-02-05 Christian Biesinger <cbiesinger@google.com>
14676
14677 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14678
f6480e70
MR
146792020-02-05 Maciej W. Rozycki <macro@wdc.com>
14680
14681 * nat/riscv-linux-tdesc.h: New file.
14682 * nat/riscv-linux-tdesc.c: New file, taking code from...
14683 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14684 ... here.
14685 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14686 NATDEPFILES.
14687
dcc9fbc6
AB
146882020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14689
14690 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14691 we don't set the fake simulator ptid to the null_ptid.
14692
719546c4
SM
146932020-02-03 Simon Marchi <simon.marchi@efficios.com>
14694
14695 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14696 * gdbthread.h (class thread_info) <resumed>: Likewise.
14697 * infrun.c (resume_1): Likewise.
14698 (proceed): Likewise.
14699 (infrun_thread_stop_requested): Likewise.
14700 (stop_all_threads): Likewise.
14701 (handle_inferior_event): Likewise.
14702 (restart_threads): Likewise.
14703 (finish_step_over): Likewise.
14704 (keep_going_stepped_thread): Likewise.
14705 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14706 (linux_handle_extended_wait): Likewise.
14707 * record-btrace.c (get_thread_current_frame_id): Likewise.
14708 * record-full.c (record_full_wait_1): Likewise.
14709 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14710 * target.c (target_resume): Likewise.
14711 * thread.c (set_running_thread): Likewise.
14712
e409c542
AKS
147132020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14714
14715 * f-valprint.c (f77_print_array_1): Changed datatype of index
14716 variable to LONGEST from int to enable it to contain bound
14717 values correctly.
14718
ee98c0da
MR
147192020-02-03 Maciej W. Rozycki <macro@wdc.com>
14720
14721 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14722 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14723 offsets according to FLEN determined.
14724 (riscv_linux_nat_target::read_description): Determine FLEN
14725 dynamically.
14726 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14727 according to FLEN determined.
14728 (riscv_linux_nat_target::store_registers): Likewise.
14729
aa66aac4
SV
147302020-02-01 Shahab Vahedi <shahab@synopsys.com>
14731
14732 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14733 when reg->group is empty and reggroup is not.
14734
fd9faca8
TT
147352020-01-31 Tom Tromey <tromey@adacore.com>
14736
14737 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14738 Call beneath target's mourn_inferior after unpushing.
14739
42330a68
AB
147402020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14741
14742 PR tui/9765
14743 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14744 have enough lines to fill the screen, still return the lowest
14745 address we found.
14746
7a27a45b
AB
147472020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14748
14749 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14750 '-', '<', and '>' commands.
14751
c47f70e2
PA
147522020-01-29 Pedro Alves <palves@redhat.com>
14753 Sergio Durigan Junior <sergiodj@redhat.com>
14754
14755 * infcmd.c (construct_inferior_arguments): Assert that
14756 'argc' is greater than 0.
14757
5133a315
LM
147582020-01-29 Luis Machado <luis.machado@linaro.org>
14759
14760 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14761 (BRK_INSN_MASK): Define to 0xd4200000.
14762 (aarch64_program_breakpoint_here_p): New function.
14763 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14764 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14765 breakpoint.c.
14766 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14767 breakpoint.h
14768 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14769 call gdbarch_program_breakpoint_here_p.
14770 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14771 default_program_breakpoint_here_p, changed return type to bool and
14772 simplified.
14773 * breakpoint.h (program_breakpoint_here): Moved prototype to
14774 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14775 return type to bool.
14776 * gdbarch.c: Regenerate.
14777 * gdbarch.h: Regenerate.
14778 * gdbarch.sh (program_breakpoint_here_p): New method.
14779 * infrun.c (handle_signal_stop): Call
14780 gdbarch_program_breakpoint_here_p.
14781
168f8c6b
TT
147822020-01-26 Tom Tromey <tom@tromey.com>
14783
14784 * ctfread.c (struct ctf_fp_info): Reindent.
14785 (_initialize_ctfread): Remove.
14786
128a391f
TT
147872020-01-26 Tom Tromey <tom@tromey.com>
14788
14789 * psymtab.c (partial_map_expand_apply)
14790 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14791 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14792 (psym_print_stats, psym_expand_symtabs_for_function)
14793 (psym_map_symbol_filenames, psym_map_matching_symbols)
14794 (psym_expand_symtabs_matching)
14795 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14796 (maintenance_check_psymtabs): Use new methods.
14797 * psympriv.h (struct partial_symtab) <readin_p,
14798 get_compunit_symtab>: New methods.
14799 <readin, compunit_symtab>: Remove members.
14800 (struct standard_psymtab): New.
14801 (struct legacy_psymtab): Derive from standard_psymtab.
14802 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14803 standard_psymtab.
14804 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14805
0494dbec
TT
148062020-01-26 Tom Tromey <tom@tromey.com>
14807
14808 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14809 read_dependencies. Add assert.
14810 * psymtab.c (partial_symtab::read_dependencies): New method.
14811 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14812 method.
14813 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14814 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14815 read_dependencies.
14816 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14817 Add assert.
14818
8566b89b
TT
148192020-01-26 Tom Tromey <tom@tromey.com>
14820
14821 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14822 Call expand_psymtab.
14823 (xcoff_read_symtab): Call expand_psymtab.
14824 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14825 legacy_expand_psymtab.
14826 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14827 method.
14828 (struct legacy_psymtab) <expand_psymtab>: Implement.
14829 <legacy_expand_psymtab>: New member.
14830 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14831 (parse_partial_symbols): Set legacy_expand_psymtab.
14832 (psymtab_to_symtab_1): Change argument order. Call
14833 expand_psymtab.
14834 (new_psymtab): Set legacy_expand_psymtab.
14835 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14836 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14837 expand_psymtab.
14838 (dwarf2_psymtab::expand_psymtab): Rename from
14839 psymtab_to_symtab_1. Call expand_psymtab.
14840 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14841 (dbx_end_psymtab): Likewise.
14842 (dbx_psymtab_to_symtab_1): Change argument order. Call
14843 expand_psymtab.
14844 (dbx_read_symtab): Call expand_psymtab.
14845 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14846 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14847 (ctf_psymtab::read_symtab): Call expand_psymtab.
14848
077cbab2
TT
148492020-01-26 Tom Tromey <tom@tromey.com>
14850
14851 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14852 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14853 messages.
14854 * mdebugread.c (mdebug_read_symtab): Remove prints.
14855 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14856 assert.
14857 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14858
891813be
TT
148592020-01-26 Tom Tromey <tom@tromey.com>
14860
14861 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14862 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14863 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14864 legacy_symtab.
14865 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14866 * psymtab.c (psymtab_to_symtab): Call method.
14867 (dump_psymtab): Update.
14868 * psympriv.h (struct partial_symtab): Add virtual destructor.
14869 <read_symtab>: New method.
14870 (struct legacy_symtab): New.
14871 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14872 (struct pst_map) <pst>: Now a legacy_psymtab.
14873 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14874 (new_psymtab): Use legacy_psymtab.
14875 * dwarf2read.h (struct dwarf2_psymtab): New.
14876 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14877 * dwarf2read.c (dwarf2_create_include_psymtab)
14878 (dwarf2_build_include_psymtabs, create_type_unit_group)
14879 (create_partial_symtab, process_psymtab_comp_unit_reader)
14880 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14881 (set_partial_user): Use dwarf2_psymtab.
14882 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14883 (psymtab_to_symtab_1, process_full_comp_unit)
14884 (process_full_type_unit, dwarf2_ranges_read)
14885 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14886 (dwarf_decode_lines): Use dwarf2_psymtab.
14887 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14888 (add_address_entry_worker, write_one_signatured_type)
14889 (recursively_count_psymbols, recursively_write_psymbols)
14890 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14891 (write_debug_names): Likewise.
14892 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14893 <pst>: Now a legacy_psymtab.
14894 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14895 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14896 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14897 * ctfread.c (struct ctf_psymtab): New.
14898 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14899 ctf_psymtab.
14900 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14901 (create_partial_symtab): Return a ctf_psymtab.
14902 (scan_partial_symbols): Update.
14903
c3693a1d
TT
149042020-01-26 Tom Tromey <tom@tromey.com>
14905
14906 * xcoffread.c (xcoff_start_psymtab): Use new.
14907 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14908 renamed from start_psymtab_common.
14909 * psympriv.h (struct partial_symtab): Add new constructor.
14910 (start_psymtab_common): Don't declare.
14911 * mdebugread.c (parse_partial_symbols): Use new.
14912 * dwarf2read.c (create_partial_symtab): Use new.
14913 * dbxread.c (start_psymtab): Use new.
14914 * ctfread.c (create_partial_symtab): Use new.
14915
32caafd0
TT
149162020-01-26 Tom Tromey <tom@tromey.com>
14917
14918 * xcoffread.c (xcoff_end_psymtab): Use new.
14919 * psymtab.c (start_psymtab_common): Use new.
14920 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14921 Update.
14922 * psympriv.h (struct partial_symtab): Add parameters to
14923 constructor. Don't inline.
14924 (allocate_psymtab): Don't declare.
14925 * mdebugread.c (new_psymtab): Use new.
14926 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14927 * dbxread.c (dbx_end_psymtab): Use new.
14928
abaa2f23
TT
149292020-01-26 Tom Tromey <tom@tromey.com>
14930
14931 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14932 allocate_psymtab. Update documentation.
14933 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14934 allocate_psymtab. Do not use new.
14935 (allocate_psymtab): Use new. Update.
14936
6d94535f
TT
149372020-01-26 Tom Tromey <tom@tromey.com>
14938
14939 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14940 * psymtab.c (psym_print_stats): Update.
14941 * psympriv.h (struct partial_symtab) <readin,
14942 psymtabs_addrmap_supported, anonymous>: Now bool.
14943 * mdebugread.c (psymtab_to_symtab_1): Update.
14944 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14945 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14946 (process_full_comp_unit, process_full_type_unit): Update.
14947 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14948 * ctfread.c (psymtab_to_symtab): Update.
14949
6f17252b
TT
149502020-01-26 Tom Tromey <tom@tromey.com>
14951
14952 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14953 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14954 * psymtab.c (psymtab_storage): Delete psymtabs.
14955 (psymtab_storage::allocate_psymtab): Use new.
14956 (psymtab_storage::discard_psymtab): Use delete.
14957 * psympriv.h (struct partial_symtab): Add constructor and
14958 initializers.
14959
f6f1cebc
TT
149602020-01-26 Tom Tromey <tom@tromey.com>
14961
14962 * machoread.c: Do not include psympriv.h.
14963
e47e48f6
PW
149642020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14965
14966 * NEWS: Mention the new option and the set/show commands.
14967
a2fedca9
PW
149682020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14969
14970 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14971 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14972 (validate_exec_file): New variables, enums, functions.
14973 (exec_file_locate_attach, print_section_info): Style the filenames.
14974 (_initialize_exec): Install show_exec_file_mismatch_command and
14975 set_exec_file_mismatch_command.
14976 * gdbcore.h (validate_exec_file): Declare.
14977 * infcmd.c (attach_command): Call validate_exec_file.
14978 * remote.c ( remote_target::remote_add_inferior): Likewise.
14979
7ffa82e1
AB
149802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14981
14982 * frame.c (find_frame_sal): Move call to get_next_frame into more
14983 inner scope.
14984 * inline-frame.c (inilne_state) <inline_state>: Update argument
14985 types.
14986 (inilne_state) <skipped_symbol>: Rename to...
14987 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14988 (skip_inline_frames): Build vector of skipped symbols and use this
14989 to reate the inline_state.
14990 (inline_skipped_symbol): Add a comment and some assertions, fetch
14991 skipped symbol from the list.
14992
3d92a3e3
AB
149932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14994
14995 * buildsym.c (lte_is_less_than): Delete.
14996 (buildsym_compunit::end_symtab_with_blockvector): Create local
14997 lambda function to sort line table entries, and use
14998 std::stable_sort instead of std::sort.
14999 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15000 markers when looking for a previous line.
15001
94a72be7
AB
150022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15003
15004 * dwarf2read.c (lnp_state_machine::record_line): Include
15005 end_sequence parameter in debug print out. Record the line if we
15006 are at an end_sequence marker even if it's not the start of a
15007 statement.
15008 * symmisc.c (maintenance_print_one_line_table): Print end of
15009 sequence markers with 'END' not '0'.
15010
53af73bf
PA
150112020-01-24 Pedro Alves <palves@redhat.com>
15012
15013 PR gdb/25410
15014 * thread.c (scoped_restore_current_thread::restore): Use
15015 switch_to_inferior_no_thread.
15016 * exec.c: Include "progspace-and-thread.h".
15017 (add_target_sections, remove_target_sections):
15018 scoped_restore_current_pspace_and_thread instead of
15019 scoped_restore_current_thread.
15020 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15021 and aspace to the inferior before calling clone_program_space.
15022 Remove stale comment.
15023
3050c6f4
CB
150242020-01-24 Christian Biesinger <cbiesinger@google.com>
15025
15026 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15027 (arm_netbsd_nat_target::fetch_registers): ...this.
15028 (arm_nbsd_nat_target::store_registers): Rename to...
15029 (arm_netbsd_nat_target::store_registers): ...this.
15030
73685c7e
CB
150312020-01-24 Christian Biesinger <cbiesinger@google.com>
15032
15033 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15034 register_t.
15035
89203d40
CB
150362020-01-24 Christian Biesinger <cbiesinger@google.com>
15037
15038 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15039 Update comment.
15040 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15041 Likewise.
15042 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15043 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15044 the correct replacement (iterate_over_regset_sections).
15045 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15046 Update comment.
15047
1ba1ac88
AB
150482020-01-24 Graham Markall <graham.markall@embecosm.com>
15049
15050 PR gdb/23718
15051 * gdb/python/python.c (execute_gdb_command): Call
15052 async_enable_stdin in catch block.
15053
f3364a6d
AB
150542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15055
15056 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15057 SWITCH_THRU_ALL_UIS.
15058
733d0a67
AB
150592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15060
15061 PR tui/9765
15062 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15063 comment, add extra parameter, and update to store previous symbol
15064 when appropriate.
15065 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15066 add extra parameter.
15067 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15068 remove unneeded parameter, add try/catch around gdb_print_insn,
15069 rewrite to add items to asm_lines vector.
15070 (tui_find_backward_disassembly_start_address): New function.
15071 (tui_find_disassembly_address): Updated throughout.
15072 (tui_disasm_window::set_contents): Update for changes to
15073 tui_disassemble.
15074 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15075 number of lines to scroll.
15076
b3b3bada
SM
150772020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15078
15079 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15080 (SECT_OFF_DATA): Likewise.
15081 (SECT_OFF_RODATA): Likewise.
15082 (SECT_OFF_TEXT): Likewise.
15083 (SECT_OFF_BSS): Likewise.
15084 (struct objfile) <text_section_offset, data_section_offset>: New
15085 methods.
15086 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15087 objfile::text_section_offset.
15088 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15089 * coffread.c (coff_symtab_read): Likewise.
15090 (enter_linenos): Likewise.
15091 (process_coff_symbol): Likewise.
15092 * ctfread.c (get_objfile_text_range): Likewise.
15093 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15094 Use objfile::data_section_offset.
15095 * dwarf2-frame.c (execute_cfa_program): Use
15096 objfile::text_section_offset.
15097 (dwarf2_frame_find_fde): Likewise.
15098 * dwarf2read.c (create_addrmap_from_index): Likewise.
15099 (create_addrmap_from_aranges): Likewise.
15100 (dw2_find_pc_sect_compunit_symtab): Likewise.
15101 (process_psymtab_comp_unit_reader): Likewise.
15102 (add_partial_symbol): Likewise.
15103 (add_partial_subprogram): Likewise.
15104 (process_full_comp_unit): Likewise.
15105 (read_file_scope): Likewise.
15106 (read_func_scope): Likewise.
15107 (read_lexical_block_scope): Likewise.
15108 (read_call_site_scope): Likewise.
15109 (dwarf2_rnglists_process): Likewise.
15110 (dwarf2_ranges_process): Likewise.
15111 (dwarf2_ranges_read): Likewise.
15112 (dwarf_decode_lines_1): Likewise.
15113 (new_symbol): Likewise.
15114 (dwarf2_fetch_die_loc_sect_off): Likewise.
15115 (dwarf2_per_cu_text_offset): Likewise.
15116 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15117 * hppa-tdep.c (read_unwind_info): Likewise.
15118 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15119 * psympriv.h (struct partial_symtab): Likewise.
15120 * psymtab.c (find_pc_sect_psymtab): Likewise.
15121 * solib-svr4.c (enable_break): Likewise.
15122 * stap-probe.c (relocate_address): Use
15123 objfile::data_section_offset.
15124 * xcoffread.c (enter_line_range): Use
15125 objfile::text_section_offset.
15126 (read_xcoff_symtab): Likewise.
15127
ab53f382
SM
151282020-01-23 Simon Marchi <simon.marchi@efficios.com>
15129
15130 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15131 declaration to narrower scopes.
15132
e7eee665
SM
151332020-01-23 Simon Marchi <simon.marchi@efficios.com>
15134
15135 * darwin-nat.h (struct darwin_exception_msg, enum
15136 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15137 Move up.
15138 (class darwin_nat_target) <wait_1, check_new_threads,
15139 decode_exception_message, decode_message, stop_inferior,
15140 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15141 * darwin-nat.c (darwin_check_new_threads): Rename to...
15142 (darwin_nat_target::check_new_threads): ... this.
15143 (darwin_suspend_inferior_it): Remove.
15144 (darwin_decode_exception_message): Rename to...
15145 (darwin_nat_target::decode_exception_message): ... this.
15146 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15147 (darwin_decode_message): Rename to...
15148 (darwin_nat_target::decode_message): ... this.
15149 (cancel_breakpoint): Rename to...
15150 (darwin_nat_target::cancel_breakpoint): ... this.
15151 (darwin_wait): Rename to...
15152 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15153 instead of iterate_over_inferiors.
15154 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15155 (darwin_stop_inferior): Rename to...
15156 (darwin_nat_target::stop_inferior): ... this.
15157 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15158 (darwin_init_thread_list): Rename to...
15159 (darwin_nat_target::init_thread_list): ... this.
15160 (darwin_ptrace_him): Rename to...
15161 (darwin_nat_target::ptrace_him): ... this.
15162 (darwin_nat_target::create_inferior): Pass lambda function to
15163 fork_inferior.
15164 (darwin_nat_target::detach): Call stop_inferior instead of
15165 darwin_stop_inferior.
15166 * fork-inferior.h (fork_inferior): Change init_trace_fun
15167 parameter to gdb::function_view.
15168 * fork-inferior.c (fork_inferior): Likewise.
15169
c162ed3e
HD
151702020-01-23 Hannes Domani <ssbssa@yahoo.de>
15171
15172 * i386-cygwin-tdep.c (core_process_module_section): Update.
15173 * windows-nat.c (struct lm_info_windows): Add text_offset.
15174 (windows_xfer_shared_libraries): Update.
15175 * windows-tdep.c (windows_xfer_shared_library):
15176 Add text_offset_cached argument.
15177 * windows-tdep.h (windows_xfer_shared_library): Update.
15178
a1237872
SM
151792020-01-21 Simon Marchi <simon.marchi@efficios.com>
15180
15181 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15182
b3ee6dd9
SM
151832020-01-21 Simon Marchi <simon.marchi@efficios.com>
15184
15185 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15186 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15187 replace with range-based for.
15188 (gdbsim_interrupt_inferior): Remove.
15189 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15190 with a range-based for. Inline code from
15191 gdbsim_interrupt_inferior.
15192
f9fac3c8
SM
151932020-01-21 Simon Marchi <simon.marchi@efficios.com>
15194
15195 * infrun.c (proceed): Fix indentation.
15196
f6474de9
TT
151972020-01-21 Tom Tromey <tromey@adacore.com>
15198
15199 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15200 * python/python.c (python_extension_ops): Update.
15201 (gdbpy_colorize): New function.
15202 * python/lib/gdb/__init__.py (colorize): New function.
15203 * extension.h (ext_lang_colorize): Declare.
15204 * extension.c (ext_lang_colorize): New function.
15205 * extension-priv.h (struct extension_language_ops) <colorize>: New
15206 member.
15207 * cli/cli-style.c (_initialize_cli_style): Update help text.
15208
f0c702d4
LM
152092020-01-21 Luis Machado <luis.machado@linaro.org>
15210
15211 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15212 <cond>: Change type to bool.
15213 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15214 (aarch64_displaced_step_cb): Likewise.
15215 (aarch64_displaced_step_tb): Likewise.
15216
1ab139e5
LM
152172020-01-21 Luis Machado <luis.machado@linaro.org>
15218
15219 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15220 output.
15221
0c271889
LM
152222020-01-21 Luis Machado <luis.machado@linaro.org>
15223
15224 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15225 <pc_adjust>: Adjust the documentation.
15226 (aarch64_displaced_step_fixup): Check if PC really moved before
15227 adjusting it.
15228
4d89c1c7
TT
152292020-01-19 Tom Tromey <tom@tromey.com>
15230
15231 * disasm.c (~gdb_disassembler): New destructor.
15232 (gdb_buffered_insn_length): Call disassemble_free_target.
15233 * disasm.h (class gdb_disassembler): Declare destructor. Use
15234 DISABLE_COPY_AND_ASSIGN.
15235
c0ab21c2
TT
152362020-01-19 Tom Tromey <tom@tromey.com>
15237
15238 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15239 (die_reader_func_ftype): Remove.
15240 (cutu_reader): New class.
15241 (dw2_get_file_names_reader): Remove "data" parameter.
15242 (dw2_get_file_names): Use cutu_reader.
15243 (create_debug_type_hash_table): Update.
15244 (read_cutu_die_from_dwo): Update comment.
15245 (lookup_dwo_unit): Add dwo_name parameter.
15246 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15247 die_reader_func_ftype and data parameters.
15248 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15249 Remove die_reader_func_ftype and data parameters.
15250 (~cutu_reader): New; from init_cutu_and_read_dies.
15251 (cutu_reader::cutu_reader): Rename from
15252 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15253 and data parameters.
15254 (init_cutu_and_read_dies_simple): Remove.
15255 (struct process_psymtab_comp_unit_data): Remove.
15256 (process_psymtab_comp_unit_reader): Remove data parameter; add
15257 want_partial_unit and pretend_language parameters.
15258 (process_psymtab_comp_unit): Use cutu_reader.
15259 (build_type_psymtabs_reader): Remove data parameter.
15260 (build_type_psymtabs_1): Use cutu_reader.
15261 (process_skeletonless_type_unit): Likewise.
15262 (load_partial_comp_unit_reader): Remove.
15263 (load_partial_comp_unit): Use cutu_reader.
15264 (load_full_comp_unit_reader): Remove.
15265 (load_full_comp_unit): Use cutu_reader.
15266 (struct create_dwo_cu_data): Remove.
15267 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15268 dwo_unit parameters.
15269 (create_cus_hash_table): Use cutu_reader.
15270 (struct dwarf2_read_addr_index_data): Remove.
15271 (dwarf2_read_addr_index_reader): Remove.
15272 (dwarf2_read_addr_index): Use cutu_reader.
15273 (read_signatured_type_reader): Remove.
15274 (read_signatured_type): Use cutu_reader.
15275
45bbae5c
TT
152762020-01-19 Tom Tromey <tom@tromey.com>
15277
15278 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15279 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15280 (tui_wrefresh): Declare.
15281 * tui/tui-wingeneral.c (suppress_output): New global.
15282 (tui_suppress_output, ~tui_suppress_output): New constructor and
15283 destructor.
15284 (tui_wrefresh): New function.
15285 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15286 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15287 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15288 method.
15289 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15290 tui_wrefresh.
15291 (tui_data_window::no_refresh): New method.
15292 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15293 (tui_reg_command): Use tui_suppress_output
15294 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15295 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15296 method.
15297 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15298
4f13c1c0
TT
152992020-01-19 Tom Tromey <tom@tromey.com>
15300
15301 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15302 Handle case where symtab is null.
15303
fa47e446
SM
153042020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15305
15306 * linux-fork.c (one_fork_p): Simplify.
15307
26f42329
SM
153082020-01-17 Simon Marchi <simon.marchi@efficios.com>
15309
15310 * top.c (struct qt_args): Remove.
15311 (kill_or_detach): Change return type to void, replace `void *`
15312 parameter with a proper one.
15313 (print_inferior_quit_action): Likewise.
15314 (quit_confirm): Use range-based for loop to iterate over inferiors.
15315 (quit_force): Likewise.
15316
a9ac81b1
SM
153172020-01-17 Simon Marchi <simon.marchi@efficios.com>
15318
15319 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15320 `void *` parameter with proper parameters.
15321 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15322 (print_one_inferior): Change return type to void, replace `void *`
15323 parameter with proper parameters.
15324 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15325 inferiors.
15326 (get_other_inferior): Remove.
15327 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15328 inferiors.
15329
788eca49
SM
153302020-01-17 Simon Marchi <simon.marchi@efficios.com>
15331
15332 * mi/mi-interp.c (report_initial_inferior): Remove.
15333 (mi_interp::init): Use range-based for to iterate over inferiors.
15334
d9bc85b6
SM
153352020-01-17 Simon Marchi <simon.marchi@efficios.com>
15336
15337 * python/py-inferior.c (build_inferior_list): Remove.
15338 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15339
40c94099
CB
153402020-01-16 Christian Biesinger <cbiesinger@google.com>
15341
15342 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15343 (btrace_stitch_trace): Likewise.
15344 * charset.c (intermediate_encoding): Likewise (vaild).
15345 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15346 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15347 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15348
e0cdfe3c
HD
153492020-01-16 Hannes Domani <ssbssa@yahoo.de>
15350
15351 * windows-tdep.c (windows_get_tlb_type):
15352 Add rtl_user_process_parameters type.
15353
790f1718 153542020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15355 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15356
15357 PR build/24805
15358 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15359 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15360 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15361 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15362 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15363 (ps_plog): Redeclare exported functions with default visibility.
15364
3112ed97
NA
153652020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15366
15367 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15368 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15369
8dc3273e
SM
153702020-01-15 Simon Marchi <simon.marchi@efficios.com>
15371
15372 * infcmd.c (post_create_inferior): Use get_thread_regcache
15373 instead of get_current_regcache.
15374
ff47f4f0
TT
153752020-01-14 Tom Tromey <tom@tromey.com>
15376
15377 PR symtab/12535:
15378 * python/python.c (gdbpy_decode_line): Treat empty string the same
15379 as no argument.
15380
975f45b7
TT
153812020-01-14 Tom Tromey <tom@tromey.com>
15382
15383 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15384
25e57356
TT
153852020-01-14 Tom Tromey <tom@tromey.com>
15386
15387 * nat/linux-btrace.c: Don't include <config.h>.
15388 * nat/linux-ptrace.c: Don't include <config.h>.
15389 * nat/x86-linux-dregs.c: Don't include <config.h>.
15390
05ea2a05
TT
153912020-01-14 Tom Tromey <tom@tromey.com>
15392
15393 * configure: Rebuild.
15394 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15395
01027315
TT
153962020-01-14 Tom Tromey <tom@tromey.com>
15397
15398 * nat/x86-linux-dregs.c: Include configh.h.
15399 * nat/linux-ptrace.c: Include configh.h.
15400 * nat/linux-btrace.c: Include configh.h.
15401 * defs.h: Include config.h, bfd.h.
15402 * configure.ac: Don't source common.host.
15403 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15404 * configure: Rebuild.
15405 * acinclude.m4: Update path.
15406 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15407 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15408 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15409 (CLIBS): Add LIBSUPPORT.
15410 (CDEPS): Likewise.
15411 (COMMON_SFILES): Remove gdbsupport files.
15412 (HFILES_NO_SRCDIR): Likewise.
15413 (stamp-version): Update path to create-version.sh.
15414 (ALLDEPFILES): Remove gdbsupport files.
15415
b2ceabe8
TT
154162020-01-14 Tom Tromey <tom@tromey.com>
15417
15418 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15419 USE_WIN32API when needed.
15420 * configure.ac (USE_WIN32API): Don't define.
15421 (WIN32LIBS): Use WIN32APILIBS.
15422 * configure: Rebuild.
15423
25c51f71
TT
154242020-01-14 Tom Tromey <tom@tromey.com>
15425
15426 * configure: Rebuild.
15427 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15428
717c684d
BE
154292020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15430
15431 * skip.c (skip_function_command): Make skip w/o arguments use the
15432 name of the inlined function if pc is inside any inlined function.
15433
7da6a5b9
LM
154342020-01-14 Luis Machado <luis.machado@linaro.org>
15435
15436 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15437 * infrun.c (resume_1): Likewise.
15438 (handle_inferior_event): Remove stale comment.
15439 * linux-nat.c (linux_nat_target::resume): Update comments.
15440 (save_stop_reason): Likewise.
15441 (linux_nat_filter_event): Likewise.
15442 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15443
44e4c775
AB
154442020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15445
15446 * elfread.c (record_minimal_symbol): Set section index to 0 for
15447 non-allocatable sections.
15448
18a8505e
AT
15449
154502020-01-13 Ali Tamur <tamur@google.com>
15451
15452 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15453 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15454 to gdb::optional. Update comments.
15455 (dwo_file): Update comments.
15456 (read_attribute): Update API to take an additional out parameter,
15457 need_reprocess. This is used to mark attributes that need other
15458 attributes (e.g. str_offsets_base) for correct computation which may not
15459 have been read yet.
15460 (read_attribute_reprocess): New function declaration.
15461 (read_addr_index): Likewise.
15462 (read_dwo_str_index): Likewise.
15463 (read_stub_str_index): Likewise.
15464 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15465 (lookup_addr_base): New function definition.
15466 (lookup_ranges_base): Likewise.
15467 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15468 lookup_ranges_base.
15469 (init_cutu_and_read_dies): Update comments.
15470 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15471 unit. This is used to inherit parent's str_offsets_base and addr_base.
15472 Update comments.
15473 (init_cutu_and_read_dies_simple): Reflect API changes.
15474 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15475 (create_cus_hash_table): Change API to take parent compile unit.
15476 Reflect API changes.
15477 (open_and_init_dwo_file): Reflect API changes.
15478 (dwarf2_get_pc_bounds): Update comments.
15479 (dwarf2_record_block_ranges): Likewise.
15480 (read_full_die_1): Change implementation to reprocess attributes that
15481 need str_offsets_base and addr_base.
15482 (partial_die_info::read): Likewise.
15483 (read_attribute_reprocess): New function definition.
15484 (read_attribute_value): Change API to take an additional out parameter,
15485 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15486 when a non-dwo compile unit has index based attributes.
15487 (read_attribute): Reflect API changes.
15488 (read_addr_index_1): Reflect API changes. Update comments.
15489 (dwarf2_read_addr_index_data): Reflect API changes.
15490 (dwarf2_read_addr_index): Likewise.
15491 (read_str_index): Change API and implementation. This becomes a helper
15492 to be used by the new string index related methods. Update error
15493 message and comments.
15494 (read_dwo_str_index): New function definition.
15495 (read_stub_str_index): Likewise.
15496 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15497 * symfile.h (dwarf2_debug_sections): Likewise.
15498 * xcoffread.c (dwarf2_debug_sections): Likewise.
15499
0cac9354
SM
155002020-01-13 Simon Marchi <simon.marchi@efficios.com>
15501
15502 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15503 core_reg_sect type to gdb_byte *.
15504 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15505 * cris-tdep.c (fetch_core_registers): Likewise.
15506 * corelow.c (core_target::get_core_register_section): Change
15507 type of `contents` to gdb::byte_vector.
15508
9a6d629c
AB
155092020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15510
15511 * tui/tui-wingeneral.c (box_win): Position the title in the center
15512 of the border.
15513
d8b2f9e3
SM
155142020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15515
15516 * corelow.c (core_target::get_core_register_section): Use
15517 std::vector instead of alloca.
15518
bb564c58
SM
155192020-01-13 Simon Marchi <simon.marchi@efficios.com>
15520
15521 * warning.m4: Add -Wmissing-declarations to build_warnings.
15522 * configure: Re-generate.
15523
6b366111
SM
155242020-01-13 Simon Marchi <simon.marchi@efficios.com>
15525
15526 * python/python.c (init__gdb_module): Add declaration.
15527
6c265988
SM
155282020-01-13 Simon Marchi <simon.marchi@efficios.com>
15529
15530 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15531 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15532 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15533 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15534 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15535 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15536 * ada-exp.y (_initialize_ada_exp): Add declaration.
15537 * ada-lang.c (_initialize_ada_language): Add declaration.
15538 * ada-tasks.c (_initialize_tasks): Add declaration.
15539 * agent.c (_initialize_agent): Add declaration.
15540 * aix-thread.c (_initialize_aix_thread): Add declaration.
15541 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15542 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15543 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15544 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15545 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15546 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15547 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15548 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15549 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15550 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15551 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15552 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15553 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15554 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15555 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15556 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15557 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15558 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15559 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15560 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15561 * annotate.c (_initialize_annotate): Add declaration.
15562 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15563 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15564 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15565 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15566 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15567 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15568 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15569 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15570 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15571 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15572 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15573 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15574 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15575 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15576 * auto-load.c (_initialize_auto_load): Add declaration.
15577 * auxv.c (_initialize_auxv): Add declaration.
15578 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15579 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15580 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15581 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15582 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15583 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15584 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15585 * breakpoint.c (_initialize_breakpoint): Add declaration.
15586 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15587 * btrace.c (_initialize_btrace): Add declaration.
15588 * charset.c (_initialize_charset): Add declaration.
15589 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15590 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15591 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15592 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15593 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15594 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15595 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15596 * coffread.c (_initialize_coffread): Add declaration.
15597 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15598 * compile/compile.c (_initialize_compile): Add declaration.
15599 * complaints.c (_initialize_complaints): Add declaration.
15600 * completer.c (_initialize_completer): Add declaration.
15601 * copying.c (_initialize_copying): Add declaration.
15602 * corefile.c (_initialize_core): Add declaration.
15603 * corelow.c (_initialize_corelow): Add declaration.
15604 * cp-abi.c (_initialize_cp_abi): Add declaration.
15605 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15606 * cp-support.c (_initialize_cp_support): Add declaration.
15607 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15608 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15609 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15610 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15611 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15612 * ctfread.c (_initialize_ctfread): Add declaration.
15613 * d-lang.c (_initialize_d_language): Add declaration.
15614 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15615 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15616 * dbxread.c (_initialize_dbxread): Add declaration.
15617 * dcache.c (_initialize_dcache): Add declaration.
15618 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15619 * disasm.c (_initialize_disasm): Add declaration.
15620 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15621 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15622 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15623 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15624 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15625 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15626 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15627 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15628 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15629 * elfread.c (_initialize_elfread): Add declaration.
15630 * exec.c (_initialize_exec): Add declaration.
15631 * extension.c (_initialize_extension): Add declaration.
15632 * f-lang.c (_initialize_f_language): Add declaration.
15633 * f-valprint.c (_initialize_f_valprint): Add declaration.
15634 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15635 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15636 * filesystem.c (_initialize_filesystem): Add declaration.
15637 * findcmd.c (_initialize_mem_search): Add declaration.
15638 * findvar.c (_initialize_findvar): Add declaration.
15639 * fork-child.c (_initialize_fork_child): Add declaration.
15640 * frame-base.c (_initialize_frame_base): Add declaration.
15641 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15642 * frame.c (_initialize_frame): Add declaration.
15643 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15644 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15645 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15646 * gcore.c (_initialize_gcore): Add declaration.
15647 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15648 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15649 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15650 * gdbarch.c (_initialize_gdbarch): Add declaration.
15651 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15652 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15653 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15654 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15655 * go-lang.c (_initialize_go_language): Add declaration.
15656 * go32-nat.c (_initialize_go32_nat): Add declaration.
15657 * guile/guile.c (_initialize_guile): Add declaration.
15658 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15659 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15660 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15661 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15662 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15663 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15664 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15665 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15666 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15667 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15668 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15669 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15670 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15671 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15672 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15673 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15674 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15675 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15676 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15677 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15678 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15679 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15680 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15681 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15682 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15683 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15684 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15685 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15686 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15687 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15688 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15689 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15690 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15691 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15692 * infcall.c (_initialize_infcall): Add declaration.
15693 * infcmd.c (_initialize_infcmd): Add declaration.
15694 * inflow.c (_initialize_inflow): Add declaration.
15695 * infrun.c (_initialize_infrun): Add declaration.
15696 * interps.c (_initialize_interpreter): Add declaration.
15697 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15698 * jit.c (_initialize_jit): Add declaration.
15699 * language.c (_initialize_language): Add declaration.
15700 * linux-fork.c (_initialize_linux_fork): Add declaration.
15701 * linux-nat.c (_initialize_linux_nat): Add declaration.
15702 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15703 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15704 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15705 * m2-lang.c (_initialize_m2_language): Add declaration.
15706 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15707 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15708 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15709 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15710 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15711 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15712 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15713 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15714 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15715 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15716 * machoread.c (_initialize_machoread): Add declaration.
15717 * macrocmd.c (_initialize_macrocmd): Add declaration.
15718 * macroscope.c (_initialize_macroscope): Add declaration.
15719 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15720 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15721 * maint.c (_initialize_maint_cmds): Add declaration.
15722 * mdebugread.c (_initialize_mdebugread): Add declaration.
15723 * memattr.c (_initialize_mem): Add declaration.
15724 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15725 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15726 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15727 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15728 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15729 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15730 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15731 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15732 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15733 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15734 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15735 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15736 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15737 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15738 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15739 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15740 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15741 * mipsread.c (_initialize_mipsread): Add declaration.
15742 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15743 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15744 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15745 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15746 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15747 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15748 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15749 * nto-procfs.c (_initialize_procfs): Add declaration.
15750 * objc-lang.c (_initialize_objc_language): Add declaration.
15751 * observable.c (_initialize_observer): Add declaration.
15752 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15753 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15754 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15755 * osabi.c (_initialize_gdb_osabi): Add declaration.
15756 * osdata.c (_initialize_osdata): Add declaration.
15757 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15758 * parse.c (_initialize_parse): Add declaration.
15759 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15760 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15761 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15762 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15763 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15764 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15765 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15766 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15767 * printcmd.c (_initialize_printcmd): Add declaration.
15768 * probe.c (_initialize_probe): Add declaration.
15769 * proc-api.c (_initialize_proc_api): Add declaration.
15770 * proc-events.c (_initialize_proc_events): Add declaration.
15771 * proc-service.c (_initialize_proc_service): Add declaration.
15772 * procfs.c (_initialize_procfs): Add declaration.
15773 * producer.c (_initialize_producer): Add declaration.
15774 * psymtab.c (_initialize_psymtab): Add declaration.
15775 * python/python.c (_initialize_python): Add declaration.
15776 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15777 * record-btrace.c (_initialize_record_btrace): Add declaration.
15778 * record-full.c (_initialize_record_full): Add declaration.
15779 * record.c (_initialize_record): Add declaration.
15780 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15781 * regcache.c (_initialize_regcache): Add declaration.
15782 * reggroups.c (_initialize_reggroup): Add declaration.
15783 * remote-notif.c (_initialize_notif): Add declaration.
15784 * remote-sim.c (_initialize_remote_sim): Add declaration.
15785 * remote.c (_initialize_remote): Add declaration.
15786 * reverse.c (_initialize_reverse): Add declaration.
15787 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15788 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15789 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15790 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15791 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15792 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15793 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15794 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15795 Add declaration.
15796 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15797 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15798 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15799 * rust-exp.y (_initialize_rust_exp): Add declaration.
15800 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15801 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15802 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15803 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15804 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15805 * score-tdep.c (_initialize_score_tdep): Add declaration.
15806 * ser-go32.c (_initialize_ser_dos): Add declaration.
15807 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15808 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15809 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15810 * ser-uds.c (_initialize_ser_socket): Add declaration.
15811 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15812 * serial.c (_initialize_serial): Add declaration.
15813 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15814 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15815 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15816 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15817 * skip.c (_initialize_step_skip): Add declaration.
15818 * sol-thread.c (_initialize_sol_thread): Add declaration.
15819 * solib-aix.c (_initialize_solib_aix): Add declaration.
15820 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15821 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15822 * solib-frv.c (_initialize_frv_solib): Add declaration.
15823 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15824 * solib-target.c (_initialize_solib_target): Add declaration.
15825 * solib.c (_initialize_solib): Add declaration.
15826 * source-cache.c (_initialize_source_cache): Add declaration.
15827 * source.c (_initialize_source): Add declaration.
15828 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15829 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15830 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15831 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15832 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15833 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15834 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15835 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15836 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15837 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15838 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15839 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15840 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15841 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15842 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15843 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15844 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15845 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15846 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15847 * stabsread.c (_initialize_stabsread): Add declaration.
15848 * stack.c (_initialize_stack): Add declaration.
15849 * stap-probe.c (_initialize_stap_probe): Add declaration.
15850 * std-regs.c (_initialize_frame_reg): Add declaration.
15851 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15852 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15853 * symfile.c (_initialize_symfile): Add declaration.
15854 * symmisc.c (_initialize_symmisc): Add declaration.
15855 * symtab.c (_initialize_symtab): Add declaration.
15856 * target.c (_initialize_target): Add declaration.
15857 * target-connection.c (_initialize_target_connection): Add
15858 declaration.
15859 * target-dcache.c (_initialize_target_dcache): Add declaration.
15860 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15861 * thread.c (_initialize_thread): Add declaration.
15862 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15863 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15864 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15865 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15866 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15867 * tracectf.c (_initialize_ctf): Add declaration.
15868 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15869 * tracefile.c (_initialize_tracefile): Add declaration.
15870 * tracepoint.c (_initialize_tracepoint): Add declaration.
15871 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15872 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15873 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15874 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15875 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15876 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15877 * tui/tui.c (_initialize_tui): Add declaration.
15878 * typeprint.c (_initialize_typeprint): Add declaration.
15879 * ui-style.c (_initialize_ui_style): Add declaration.
15880 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15881 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15882 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15883 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15884 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15885 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15886 * unittests/filtered_iterator-selftests.c
15887 (_initialize_filtered_iterator_selftests): Add declaration.
15888 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15889 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15890 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15891 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15892 * unittests/main-thread-selftests.c
15893 (_initialize_main_thread_selftests): Add declaration.
15894 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15895 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15896 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15897 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15898 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15899 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15900 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15901 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15902 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15903 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15904 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15905 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15906 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15907 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15908 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15909 declaration.
15910 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15911 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15912 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15913 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15914 * user-regs.c (_initialize_user_regs): Add declaration.
15915 * utils.c (_initialize_utils): Add declaration.
15916 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15917 * valops.c (_initialize_valops): Add declaration.
15918 * valprint.c (_initialize_valprint): Add declaration.
15919 * value.c (_initialize_values): Add declaration.
15920 * varobj.c (_initialize_varobj): Add declaration.
15921 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15922 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15923 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15924 * windows-nat.c (_initialize_windows_nat): Add declaration.
15925 (_initialize_check_for_gdb_ini): Add declaration.
15926 (_initialize_loadable): Add declaration.
15927 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15928 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15929 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15930 * xcoffread.c (_initialize_xcoffread): Add declaration.
15931 * xml-support.c (_initialize_xml_support): Add declaration.
15932 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15933 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15934 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15935 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15936
e2de1eec
SM
159372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15938
15939 * regformats/regdat.sh: Generate declaration for init function.
15940
e0037b4c
SM
159412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15942
15943 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15944 up.
15945 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15946 close_one_inferior>: New methods.
15947 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15948 pass down target to find_inferior_pid.
15949 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15950 Pass down target to find_inferior_ptid.
15951 (gdbsim_target::create_inferior): Pass down target to
15952 add_thread_silent.
15953 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15954 target down to find_inferior_ptid and switch_to_thread.
15955 (gdbsim_target::close): Update to call close_one_inferior.
15956 (struct resume_data): Remove.
15957 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15958 directly, rather than through a void pointer.
15959 (gdbsim_target::resume): Update to call resume_one_inferior.
15960
58920b5b
SM
159612020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15962
15963 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15964
4ec89149
PA
159652020-01-12 Pedro Alves <palves@redhat.com>
15966
15967 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15968 directly for the current inferior instead of
15969 discard_all_inferiors.
15970 (discard_all_inferiors): Delete.
15971
7c392d1d
TT
159722020-01-11 Tom Tromey <tom@tromey.com>
15973
15974 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15975 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15976 deprecated_safe_get_selected_frame.
15977
d9ebdab7
TBA
159782020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15979
15980 * inferior.c (print_inferior): Switch inferior before printing it.
15981
f3c469b9
PA
159822020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15983 Pedro Alves <palves@redhat.com>
15984
15985 * progspace-and-thread.c (switch_to_program_space_and_thread):
15986 Assert there's an inferior for PSPACE. Use
15987 switch_to_inferior_no_thread to switch the inferior too.
15988 * progspace.c (program_space::~program_space): Call
15989 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15990 (program_space::free_all_objfiles): Don't call clear_symtab_users
15991 here.
15992 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15993
65c574f6
PA
159942020-01-10 Pedro Alves <palves@redhat.com>
15995
15996 * NEWS: Mention multi-target debugging, "info connections", and
15997 "add-inferior -no-connection".
15998
2f4fcf00
PA
159992020-01-10 Pedro Alves <palves@redhat.com>
16000
16001 * infrun.c: Include "target-connection.h".
16002 (check_multi_target_resumption): New.
16003 (proceed): Call it.
16004 * target-connection.c (make_target_connection_string): Make
16005 extern.
16006 * target-connection.h (make_target_connection_string): Declare.
16007
121b3efd
PA
160082020-01-10 Pedro Alves <palves@redhat.com>
16009
16010 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16011 * inferior.c (uiout_field_connection): New function.
16012 (print_inferior): Add new "connection-id" column.
16013 (add_inferior_command): Show connection number/string of added
16014 inferior.
16015 * process-stratum-target.h
16016 (process_stratum_target::connection_string): New virtual method.
16017 (process_stratum_target::connection_number): New field.
16018 * remote.c (remote_target::connection_string): New override.
16019 * target-connection.c: New file.
16020 * target-connection.h: New file.
16021 * target.c (decref_target): Remove process_stratum targets from
16022 the connection list.
16023 (target_stack::push): Add process_stratum targets to the
16024 connection list.
16025
4f837581
PA
160262020-01-10 Pedro Alves <palves@redhat.com>
16027
16028 Revert:
16029 2016-04-12 Pedro Alves <palves@redhat.com>
16030 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16031 Remove references to name.
16032 * serial.h (struct serial) <name>: Delete.
16033
f4ec508e
PA
160342020-01-10 Pedro Alves <palves@redhat.com>
16035
16036 * gdbarch-selftests.c (register_to_value_test): Remove "target
16037 already pushed" check.
16038
5b6d1e4f
PA
160392020-01-10 Pedro Alves <palves@redhat.com>
16040 John Baldwin <jhb@FreeBSD.org>
16041
16042 * aarch64-linux-nat.c
16043 (aarch64_linux_nat_target::thread_architecture): Adjust.
16044 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16045 (task_command_1): Likewise.
16046 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16047 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16048 (aix_thread_target::store_registers)
16049 (aix_thread_target::thread_alive): Adjust.
16050 * amd64-fbsd-tdep.c: Include "inferior.h".
16051 (amd64fbsd_get_thread_local_address): Pass down target.
16052 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16053 thread's gdbarch instead of target_gdbarch.
16054 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16055 get_last_target_status.
16056 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16057 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16058 inferiors.
16059 (update_inserted_breakpoint_locations): Skip if inferiors with no
16060 execution.
16061 (update_global_location_list): When handling moribund locations,
16062 find representative inferior for location's pspace, and use thread
16063 count of its process_stratum target.
16064 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16065 * bsd-uthread.c (bsd_uthread_target::wait): Use
16066 as_process_stratum_target and adjust thread_change_ptid and
16067 add_thread calls.
16068 (bsd_uthread_target::update_thread_list): Use
16069 as_process_stratum_target and adjust find_thread_ptid,
16070 thread_change_ptid and add_thread calls.
16071 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16072 find_thread_ptid call.
16073 * corelow.c (add_to_thread_list): Adjust add_thread call.
16074 (core_target_open): Adjust add_thread_silent and thread_count
16075 calls.
16076 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16077 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16078 * event-top.c (async_disconnect): Pop targets from all inferiors.
16079 * exec.c (add_target_sections): Push exec target on all inferiors
16080 sharing the program space.
16081 (remove_target_sections): Remove the exec target from all
16082 inferiors sharing the program space.
16083 (exec_on_vfork): New.
16084 * exec.h (exec_on_vfork): Declare.
16085 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16086 Pass it down.
16087 (fbsd_nat_target::update_thread_list): Adjust.
16088 (fbsd_nat_target::resume): Adjust.
16089 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16090 down.
16091 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16092 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16093 get_thread_arch_regcache call.
16094 * fork-child.c (gdb_startup_inferior): Pass target down to
16095 startup_inferior and set_executing.
16096 * gdbthread.h (struct process_stratum_target): Forward declare.
16097 (add_thread, add_thread_silent, add_thread_with_info)
16098 (in_thread_list): Add process_stratum_target parameter.
16099 (find_thread_ptid(inferior*, ptid_t)): New overload.
16100 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16101 parameter.
16102 (all_threads()): Delete overload.
16103 (all_threads, all_non_exited_threads): Add process_stratum_target
16104 parameter.
16105 (all_threads_safe): Use brace initialization.
16106 (thread_count): Add process_stratum_target parameter.
16107 (set_resumed, set_running, set_stop_requested, set_executing)
16108 (threads_are_executing, finish_thread_state): Add
16109 process_stratum_target parameter.
16110 (switch_to_thread): Use is_current_thread.
16111 * i386-fbsd-tdep.c: Include "inferior.h".
16112 (i386fbsd_get_thread_local_address): Pass down target.
16113 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16114 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16115 have_inferiors check.
16116 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16117 (inf_ptrace_target::attach): Adjust.
16118 * infcall.c (run_inferior_call): Adjust.
16119 * infcmd.c (run_command_1): Pass target to
16120 scoped_finish_thread_state.
16121 (proceed_thread_callback): Skip inferiors with no execution.
16122 (continue_command): Rename 'all_threads' local to avoid hiding
16123 'all_threads' function. Adjust get_last_target_status call.
16124 (prepare_one_step): Adjust set_running call.
16125 (signal_command): Use user_visible_resume_target. Compare thread
16126 pointers instead of inferior_ptid.
16127 (info_program_command): Adjust to pass down target.
16128 (attach_command): Mark target's 'thread_executing' flag.
16129 (stop_current_target_threads_ns): New, factored out from ...
16130 (interrupt_target_1): ... this. Switch inferior before making
16131 target calls.
16132 * inferior-iter.h
16133 (struct all_inferiors_iterator, struct all_inferiors_range)
16134 (struct all_inferiors_safe_range)
16135 (struct all_non_exited_inferiors_range): Filter on
16136 process_stratum_target too. Remove explicit.
16137 * inferior.c (inferior::inferior): Push dummy target on target
16138 stack.
16139 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16140 Add process_stratum_target parameter, and pass it down.
16141 (have_live_inferiors): Adjust.
16142 (switch_to_inferior_and_push_target): New.
16143 (add_inferior_command, clone_inferior_command): Handle
16144 "-no-connection" parameter. Use
16145 switch_to_inferior_and_push_target.
16146 (_initialize_inferior): Mention "-no-connection" option in
16147 the help of "add-inferior" and "clone-inferior" commands.
16148 * inferior.h: Include "process-stratum-target.h".
16149 (interrupt_target_1): Use bool.
16150 (struct inferior) <push_target, unpush_target, target_is_pushed,
16151 find_target_beneath, top_target, process_target, target_at,
16152 m_stack>: New.
16153 (discard_all_inferiors): Delete.
16154 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16155 (all_inferiors, all_non_exited_inferiors): Add
16156 process_stratum_target parameter.
16157 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16158 (target_last_proc_target): New global.
16159 (follow_fork_inferior): Push target on new inferior. Pass target
16160 to add_thread_silent. Call exec_on_vfork. Handle target's
16161 reference count.
16162 (follow_fork): Adjust get_last_target_status call. Also consider
16163 target.
16164 (follow_exec): Push target on new inferior.
16165 (struct execution_control_state) <target>: New field.
16166 (user_visible_resume_target): New.
16167 (do_target_resume): Call target_async.
16168 (resume_1): Set target's threads_executing flag. Consider resume
16169 target.
16170 (commit_resume_all_targets): New.
16171 (proceed): Also consider resume target. Skip threads of inferiors
16172 with no execution. Commit resumtion in all targets.
16173 (start_remote): Pass current inferior to wait_for_inferior.
16174 (infrun_thread_stop_requested): Consider target as well. Pass
16175 thread_info pointer to clear_inline_frame_state instead of ptid.
16176 (infrun_thread_thread_exit): Consider target as well.
16177 (random_pending_event_thread): New inferior parameter. Use it.
16178 (do_target_wait): Rename to ...
16179 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16180 down.
16181 (threads_are_resumed_pending_p, do_target_wait): New.
16182 (prepare_for_detach): Adjust calls.
16183 (wait_for_inferior): New inferior parameter. Handle it. Use
16184 do_target_wait_1 instead of do_target_wait.
16185 (fetch_inferior_event): Adjust. Switch to representative
16186 inferior. Pass target down.
16187 (set_last_target_status): Add process_stratum_target parameter.
16188 Save target in global.
16189 (get_last_target_status): Add process_stratum_target parameter and
16190 handle it.
16191 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16192 (context_switch): Check inferior_ptid == null_ptid before calling
16193 inferior_thread().
16194 (get_inferior_stop_soon): Pass down target.
16195 (wait_one): Rename to ...
16196 (poll_one_curr_target): ... this.
16197 (struct wait_one_event): New.
16198 (wait_one): New.
16199 (stop_all_threads): Adjust.
16200 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16201 event's target.
16202 (switch_back_to_stepped_thread): Also consider target.
16203 (print_stop_event): Update.
16204 (normal_stop): Update. Also consider the resume target.
16205 * infrun.h (wait_for_inferior): Remove declaration.
16206 (user_visible_resume_target): New declaration.
16207 (get_last_target_status, set_last_target_status): New
16208 process_stratum_target parameter.
16209 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16210 process_stratum_target parameter, and use it.
16211 (clear_inline_frame_state (thread_info*)): New.
16212 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16213 process_stratum_target parameter.
16214 (clear_inline_frame_state (thread_info*)): Declare.
16215 * linux-fork.c (delete_checkpoint_command): Pass target down to
16216 find_thread_ptid.
16217 (checkpoint_command): Adjust.
16218 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16219 instead of just tweaking inferior_ptid.
16220 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16221 (exit_lwp): Pass target down to find_thread_ptid.
16222 (attach_proc_task_lwp_callback): Pass target down to
16223 add_thread/set_running/set_executing.
16224 (linux_nat_target::attach): Pass target down to
16225 thread_change_ptid.
16226 (get_detach_signal): Pass target down to find_thread_ptid.
16227 Consider last target status's target.
16228 (linux_resume_one_lwp_throw, resume_lwp)
16229 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16230 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16231 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16232 (linux_nat_target::async_wait_fd): New.
16233 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16234 target down.
16235 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16236 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16237 * linux-thread-db.c (struct thread_db_info::process_target): New
16238 field.
16239 (add_thread_db_info): Save target.
16240 (get_thread_db_info): New process_stratum_target parameter. Also
16241 match target.
16242 (delete_thread_db_info): New process_stratum_target parameter.
16243 Also match target.
16244 (thread_from_lwp): Adjust to pass down target.
16245 (thread_db_notice_clone): Pass down target.
16246 (check_thread_db_callback): Pass down target.
16247 (try_thread_db_load_1): Always push the thread_db target.
16248 (try_thread_db_load, record_thread): Pass target down.
16249 (thread_db_target::detach): Pass target down. Always unpush the
16250 thread_db target.
16251 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16252 target down. Always unpush the thread_db target.
16253 (find_new_threads_callback, thread_db_find_new_threads_2)
16254 (thread_db_target::update_thread_list): Pass target down.
16255 (thread_db_target::pid_to_str): Pass current inferior down.
16256 (thread_db_target::get_thread_local_address): Pass target down.
16257 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16258 target down.
16259 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16260 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16261 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16262 (procfs_init_inferior): Rename to ...
16263 (procfs_target::procfs_init_inferior): ... this and adjust.
16264 (procfs_target::create_inferior, procfs_notice_thread)
16265 (procfs_do_thread_registers): Adjust.
16266 * ppc-fbsd-tdep.c: Include "inferior.h".
16267 (ppcfbsd_get_thread_local_address): Pass down target.
16268 * proc-service.c (ps_xfer_memory): Switch current inferior and
16269 program space as well.
16270 (get_ps_regcache): Pass target down.
16271 * process-stratum-target.c
16272 (process_stratum_target::thread_address_space)
16273 (process_stratum_target::thread_architecture): Pass target down.
16274 * process-stratum-target.h
16275 (process_stratum_target::threads_executing): New field.
16276 (as_process_stratum_target): New.
16277 * ravenscar-thread.c
16278 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16279 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16280 down.
16281 * record-btrace.c (record_btrace_target::info_record): Adjust.
16282 (record_btrace_target::record_method)
16283 (record_btrace_target::record_is_replaying)
16284 (record_btrace_target::fetch_registers)
16285 (get_thread_current_frame_id, record_btrace_target::resume)
16286 (record_btrace_target::wait, record_btrace_target::stop): Pass
16287 target down.
16288 * record-full.c (record_full_wait_1): Switch to event thread.
16289 Pass target down.
16290 * regcache.c (regcache::regcache)
16291 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16292 process_stratum_target parameter and handle it.
16293 (current_thread_target): New global.
16294 (get_thread_regcache): Add process_stratum_target parameter and
16295 handle it. Switch inferior before calling target method.
16296 (get_thread_regcache): Pass target down.
16297 (get_thread_regcache_for_ptid): Pass target down.
16298 (registers_changed_ptid): Add process_stratum_target parameter and
16299 handle it.
16300 (registers_changed_thread, registers_changed): Pass target down.
16301 (test_get_thread_arch_aspace_regcache): New.
16302 (current_regcache_test): Define a couple local test_target_ops
16303 instances and use them for testing.
16304 (readwrite_regcache): Pass process_stratum_target parameter.
16305 (cooked_read_test, cooked_write_test): Pass mock_target down.
16306 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16307 (get_thread_arch_aspace_regcache): Add process_stratum_target
16308 parameter.
16309 (regcache::target): New method.
16310 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16311 (regcache::registers_changed_ptid): Add process_stratum_target
16312 parameter.
16313 (regcache::m_target): New field.
16314 (registers_changed_ptid): Add process_stratum_target parameter.
16315 * remote.c (remote_state::supports_vCont_probed): New field.
16316 (remote_target::async_wait_fd): New method.
16317 (remote_unpush_and_throw): Add remote_target parameter.
16318 (get_current_remote_target): Adjust.
16319 (remote_target::remote_add_inferior): Push target.
16320 (remote_target::remote_add_thread)
16321 (remote_target::remote_notice_new_inferior)
16322 (get_remote_thread_info): Pass target down.
16323 (remote_target::update_thread_list): Skip threads of inferiors
16324 bound to other targets. (remote_target::close): Don't discard
16325 inferiors. (remote_target::add_current_inferior_and_thread)
16326 (remote_target::process_initial_stop_replies)
16327 (remote_target::start_remote)
16328 (remote_target::remote_serial_quit_handler): Pass down target.
16329 (remote_target::remote_unpush_target): New remote_target
16330 parameter. Unpush the target from all inferiors.
16331 (remote_target::remote_unpush_and_throw): New remote_target
16332 parameter. Pass it down.
16333 (remote_target::open_1): Check whether the current inferior has
16334 execution instead of checking whether any inferior is live. Pass
16335 target down.
16336 (remote_target::remote_detach_1): Pass down target. Use
16337 remote_unpush_target.
16338 (extended_remote_target::attach): Pass down target.
16339 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16340 (remote_target::append_resumption): Pass down target.
16341 (remote_target::append_pending_thread_resumptions)
16342 (remote_target::remote_resume_with_hc, remote_target::resume)
16343 (remote_target::commit_resume): Pass down target.
16344 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16345 (remote_target::interrupt_query)
16346 (remote_target::remove_new_fork_children)
16347 (remote_target::check_pending_events_prevent_wildcard_vcont)
16348 (remote_target::remote_parse_stop_reply)
16349 (remote_target::process_stop_reply): Pass down target.
16350 (first_remote_resumed_thread): New remote_target parameter. Pass
16351 it down.
16352 (remote_target::wait_as): Pass down target.
16353 (unpush_and_perror): New remote_target parameter. Pass it down.
16354 (remote_target::readchar, remote_target::remote_serial_write)
16355 (remote_target::getpkt_or_notif_sane_1)
16356 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16357 down target.
16358 (remote_target::mourn_inferior): Pass down target. Use
16359 remote_unpush_target.
16360 (remote_target::core_of_thread)
16361 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16362 (remote_target::pid_to_exec_file)
16363 (remote_target::thread_handle_to_thread_info): Pass down target.
16364 (remote_target::async_wait_fd): New.
16365 * riscv-fbsd-tdep.c: Include "inferior.h".
16366 (riscv_fbsd_get_thread_local_address): Pass down target.
16367 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16368 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16369 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16370 Adjust.
16371 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16372 * solib-svr4.c (enable_break): Pass down target.
16373 * spu-multiarch.c (parse_spufs_run): Pass down target.
16374 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16375 * target-delegates.c: Regenerate.
16376 * target.c (g_target_stack): Delete.
16377 (current_top_target): Return the current inferior's top target.
16378 (target_has_execution_1): Refer to the passed-in inferior's top
16379 target.
16380 (target_supports_terminal_ours): Check whether the initial
16381 inferior was already created.
16382 (decref_target): New.
16383 (target_stack::push): Incref/decref the target.
16384 (push_target, push_target, unpush_target): Adjust.
16385 (target_stack::unpush): Defref target.
16386 (target_is_pushed): Return bool. Adjust to refer to the current
16387 inferior's target stack.
16388 (dispose_inferior): Delete, and inline parts ...
16389 (target_preopen): ... here. Only dispose of the current inferior.
16390 (target_detach): Hold strong target reference while detaching.
16391 Pass target down.
16392 (target_thread_name): Add assertion.
16393 (target_resume): Pass down target.
16394 (target_ops::beneath, find_target_at): Adjust to refer to the
16395 current inferior's target stack.
16396 (get_dummy_target): New.
16397 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16398 has a thread running.
16399 (initialize_targets): Rename to ...
16400 (_initialize_target): ... this.
16401 * target.h: Include "gdbsupport/refcounted-object.h".
16402 (struct target_ops): Inherit refcounted_object.
16403 (target_ops::shortname, target_ops::longname): Make const.
16404 (target_ops::async_wait_fd): New method.
16405 (decref_target): Declare.
16406 (struct target_ops_ref_policy): New.
16407 (target_ops_ref): New typedef.
16408 (get_dummy_target): Declare function.
16409 (target_is_pushed): Return bool.
16410 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16411 (all_matching_threads_iterator::all_matching_threads_iterator):
16412 Handle filter target.
16413 * thread-iter.h (struct all_matching_threads_iterator, struct
16414 all_matching_threads_range, class all_non_exited_threads_range):
16415 Filter by target too. Remove explicit.
16416 * thread.c (threads_executing): Delete.
16417 (inferior_thread): Pass down current inferior.
16418 (clear_thread_inferior_resources): Pass down thread pointer
16419 instead of ptid_t.
16420 (add_thread_silent, add_thread_with_info, add_thread): Add
16421 process_stratum_target parameter. Use it for thread and inferior
16422 searches.
16423 (is_current_thread): New.
16424 (thread_info::deletable): Use it.
16425 (find_thread_ptid, thread_count, in_thread_list)
16426 (thread_change_ptid, set_resumed, set_running): New
16427 process_stratum_target parameter. Pass it down.
16428 (set_executing): New process_stratum_target parameter. Pass it
16429 down. Adjust reference to 'threads_executing'.
16430 (threads_are_executing): New process_stratum_target parameter.
16431 Adjust reference to 'threads_executing'.
16432 (set_stop_requested, finish_thread_state): New
16433 process_stratum_target parameter. Pass it down.
16434 (switch_to_thread): Also match inferior.
16435 (switch_to_thread): New process_stratum_target parameter. Pass it
16436 down.
16437 (update_threads_executing): Reimplement.
16438 * top.c (quit_force): Pop targets from all inferior.
16439 (gdb_init): Don't call initialize_targets.
16440 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16441 Declare.
16442 (windows_add_thread, windows_delete_thread): Adjust.
16443 (get_windows_debug_event): Rename to ...
16444 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16445 * tracefile-tfile.c (tfile_target_open): Pass down target.
16446 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16447 Forward declare.
16448 (switch_to_thread): Add process_stratum_target parameter.
16449 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16450 parameter. Use it.
16451 (mi_on_resume): Pass target down.
16452 * nat/fork-inferior.c (startup_inferior): Add
16453 process_stratum_target parameter. Pass it down.
16454 * nat/fork-inferior.h (startup_inferior): Add
16455 process_stratum_target parameter.
16456 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16457
75c6c844
PA
164582020-01-10 Pedro Alves <palves@redhat.com>
16459
16460 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16461 directly. Instead find the first thread in the thread list and
16462 use switch_to_thread.
16463
78f2c40a
PA
164642020-01-10 Pedro Alves <palves@redhat.com>
16465
16466 * remote.c (remote_target::remote_add_inferior): Don't bind a
16467 process to the current inferior if the current inferior is already
16468 bound to a process.
16469
e7af6c70
TBA
164702020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16471 Pedro Alves <palves@redhat.com>
16472
16473 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16474 If no process is specified, return null_ptid instead of
16475 inferior_ptid.
16476 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16477 TARGET_WAITKIND_SIGNALLED with no pid.
16478
31ba933e
PA
164792020-01-10 Pedro Alves <palves@redhat.com>
16480
16481 * remote.c (first_remote_resumed_thread): New.
16482 (remote_target::wait_as): Use it as default event_ptid instead of
16483 inferior_ptid.
16484
735fc2ca
PA
164852020-01-10 Pedro Alves <palves@redhat.com>
16486
16487 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16488
c17e02e1
PA
164892020-01-10 Pedro Alves <palves@redhat.com>
16490
16491 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16492 not -1.
16493
ab1ddbcf
PA
164942020-01-10 Pedro Alves <palves@redhat.com>
16495
16496 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16497 ptid to get_last_target_status.
16498 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16499 ptid to get_last_target_status.
16500 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16501 get_last_target_status.
16502 (info_program_command): Don't pass a target_waitstatus to
16503 get_last_target_status.
16504 * infrun.c (init_wait_for_inferior): Use
16505 nullify_last_target_wait_ptid.
16506 (get_last_target_status): Handle nullptr arguments.
16507 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16508 (print_stop_event): Don't pass a ptid to get_last_target_status.
16509 (normal_stop): Don't pass a ptid to get_last_target_status.
16510 * infrun.h (get_last_target_status, set_last_target_status): Move
16511 comments here and update.
16512 (nullify_last_target_wait_ptid): Declare.
16513 * linux-fork.c (fork_load_infrun_state): Remove local extern
16514 declaration of nullify_last_target_wait_ptid.
16515 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16516 to get_last_target_status.
16517
f3f8ece4
PA
165182020-01-10 Pedro Alves <palves@redhat.com>
16519
16520 * gdbthread.h (scoped_restore_current_thread)
16521 <dont_restore, restore, m_dont_restore>: Declare.
16522 * thread.c (thread_alive): Add assertion. Return bool.
16523 (switch_to_thread_if_alive): New.
16524 (prune_threads): Switch inferior/thread.
16525 (print_thread_info_1): Switch thread before calling target methods.
16526 (scoped_restore_current_thread::restore): New, factored out from
16527 ...
16528 (scoped_restore_current_thread::~scoped_restore_current_thread):
16529 ... this.
16530 (scoped_restore_current_thread::scoped_restore_current_thread):
16531 Add assertion.
16532 (thread_apply_all_command, thread_select): Use
16533 switch_to_thread_if_alive.
16534 * infrun.c (proceed, restart_threads, handle_signal_stop)
16535 (switch_back_to_stepped_thread): Switch current thread before
16536 calling target methods.
16537
db2d40f7
PA
165382020-01-10 Pedro Alves <palves@redhat.com>
16539
16540 * inferior.c (switch_to_inferior_no_thread): New function,
16541 factored out from ...
16542 (inferior_command): ... here.
16543 * inferior.h (switch_to_inferior_no_thread): Declare.
16544 * mi/mi-main.c (run_one_inferior): Use
16545 switch_to_inferior_no_thread.
16546
bd420a2d
PA
165472020-01-10 Pedro Alves <palves@redhat.com>
16548
16549 * infcmd.c (kill_command): Remove dead code.
16550
ddf5db90
PA
165512020-01-10 Pedro Alves <palves@redhat.com>
16552
16553 * remote.c (remote_target::mourn_inferior): No longer check
16554 whether the target is running.
16555
5018ce90
PA
165562020-01-10 Pedro Alves <palves@redhat.com>
16557
16558 * corelow.c (core_target::has_execution): Change parameter type to
16559 inferior pointer.
16560 * inferior.c (number_of_live_inferiors): Use
16561 inferior::has_execution instead of target_has_execution_1.
16562 * inferior.h (inferior::has_execution): New.
16563 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16564 inferior::has_execution instead of target_has_execution_1.
16565 * process-stratum-target.c
16566 (process_stratum_target::has_execution): Change parameter type to
16567 inferior pointer. Check the inferior's PID instead of
16568 inferior_ptid.
16569 * process-stratum-target.h
16570 (process_stratum_target::has_execution): Change parameter type to
16571 inferior pointer.
16572 * record-full.c (record_full_core_target::has_execution): Change
16573 parameter type to inferior pointer.
16574 * target.c (target_has_execution_1): Change parameter type to
16575 inferior pointer.
16576 (target_has_execution_current): Adjust.
16577 * target.h (target_ops::has_execution): Change parameter type to
16578 inferior pointer.
16579 (target_has_execution_1): Change parameter type to inferior
16580 pointer. Change return type to bool.
16581 * tracefile.h (tracefile_target::has_execution): Change parameter
16582 type to inferior pointer.
16583
74375d18
PA
165842020-01-10 Pedro Alves <palves@redhat.com>
16585
16586 * exceptions.c (print_flush): Remove current_top_target() check.
16587
acdf84a6
PA
165882020-01-10 Pedro Alves <palves@redhat.com>
16589
16590 * remote.c (show_remote_exec_file): Show the current inferior's
16591 exec-file instead of the command variable's value.
16592
ec506636
PA
165932020-01-10 Pedro Alves <palves@redhat.com>
16594
16595 * record-full.c (record_full_resume_ptid): New global.
16596 (record_full_target::resume): Set it.
16597 (record_full_wait_1): Use record_full_resume_ptid instead of
16598 inferior_ptid.
16599
873657b9
PA
166002020-01-10 Pedro Alves <palves@redhat.com>
16601
16602 * gdbthread.h (scoped_restore_current_thread)
16603 <dont_restore, restore, m_dont_restore>: Declare.
16604 * thread.c (thread_alive): Add assertion. Return bool.
16605 (switch_to_thread_if_alive): New.
16606 (prune_threads): Switch inferior/thread.
16607 (print_thread_info_1): Switch thread before calling target methods.
16608 (scoped_restore_current_thread::restore): New, factored out from
16609 ...
16610 (scoped_restore_current_thread::~scoped_restore_current_thread):
16611 ... this.
16612 (scoped_restore_current_thread::scoped_restore_current_thread):
16613 Add assertion.
16614 (thread_apply_all_command, thread_select): Use
16615 switch_to_thread_if_alive.
16616
7f0ae84c
GB
166172020-01-10 George Barrett <bob@bob131.so>
16618
16619 * stap-probe.c (stap_modify_semaphore): Don't check for null
16620 semaphores.
16621 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16622 for null semaphores.
16623
f5a7c406
AB
166242020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16625
16626 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16627 all source windows, and maintain horizontal scroll status while
16628 doing so.
16629
9ae6bf64
TT
166302020-01-09 Tom Tromey <tom@tromey.com>
16631
16632 PR tui/18932:
16633 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16634 update_source_window, not print_source_lines.
16635
b2efe70c
AB
166362020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16637
16638 * tui/tui.c (tui_enable): Register tui hooks after calling
16639 tui_display_main.
16640
5f23a082
CB
166412020-01-09 Christian Biesinger <cbiesinger@google.com>
16642
16643 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16644
3061113b
SM
166452020-01-08 Simon Marchi <simon.marchi@efficios.com>
16646
16647 * thread.c (print_thread_info_1): Fix indentation.
16648
57d75002
CB
166492020-01-09 Christian Biesinger <cbiesinger@google.com>
16650
16651 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16652 unique_xmalloc_ptr outside the if to always free the demangled name.
16653
6a053cb1
TT
166542020-01-08 Tom Tromey <tromey@adacore.com>
16655
16656 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16657 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16658 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16659 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16660 Remove.
16661 (section_offsets): New typedef.
16662 * symtab.c (fixup_section, get_msymbol_address): Update.
16663 * symmisc.c (dump_msymbols): Update.
16664 * symfile.h (relative_addr_info_to_section_offsets)
16665 (symfile_map_offsets_to_segments): Update.
16666 * symfile.c (build_section_addr_info_from_objfile)
16667 (init_objfile_sect_indices): Update.
16668 (struct place_section_arg): Change type of "offsets".
16669 (place_section): Update.
16670 (relative_addr_info_to_section_offsets): Change type of
16671 "section_offsets". Remove "num_sections" parameter.
16672 (default_symfile_offsets, syms_from_objfile_1)
16673 (set_objfile_default_section_offset): Update.
16674 (reread_symbols): No need to preserve section offsets by hand.
16675 (symfile_map_offsets_to_segments): Change type of "offsets".
16676 * stap-probe.c (relocate_address): Update.
16677 * stabsread.h (process_one_symbol): Update.
16678 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16679 (solib_target_relocate_section_addresses): Update.
16680 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16681 Update.
16682 * solib-frv.c (frv_relocate_main_executable): Update.
16683 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16684 * solib-aix.c (solib_aix_get_section_offsets): Change return
16685 type.
16686 (solib_aix_solib_create_inferior_hook): Update.
16687 * remote.c (remote_target::get_offsets): Update.
16688 * psymtab.c (find_pc_sect_psymtab): Update.
16689 * psympriv.h (struct partial_symbol) <address, text_low,
16690 text_high>: Update.
16691 * objfiles.h (obj_section_offset): Update.
16692 (struct objfile) <section_offsets>: Change type.
16693 <num_sections>: Remove.
16694 (objfile_relocate): Update.
16695 * objfiles.c (entry_point_address_query): Update
16696 (relocate_one_symbol): Change type of "section_offsets".
16697 (objfile_relocate1, objfile_relocate1): Change type of
16698 "new_offsets".
16699 (objfile_rebase1): Update.
16700 * mipsread.c (mipscoff_symfile_read): Update.
16701 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16702 parameter.
16703 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16704 (parse_external, psymtab_to_symtab_1): Update.
16705 * machoread.c (macho_symfile_offsets): Update.
16706 * ia64-tdep.c (ia64_find_unwind_table): Update.
16707 * hppa-tdep.c (read_unwind_info): Update.
16708 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16709 * dwarf2read.c (create_addrmap_from_index)
16710 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16711 (process_psymtab_comp_unit_reader, add_partial_symbol)
16712 (add_partial_subprogram, process_full_comp_unit)
16713 (read_file_scope, read_func_scope, read_lexical_block_scope)
16714 (read_call_site_scope, dwarf2_rnglists_process)
16715 (dwarf2_ranges_process, dwarf2_ranges_read)
16716 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16717 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16718 Update.
16719 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16720 Update.
16721 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16722 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16723 (process_one_symbol): Change type of "section_offsets".
16724 * ctfread.c (get_objfile_text_range): Update.
16725 * coffread.c (coff_symtab_read, enter_linenos)
16726 (process_coff_symbol): Update.
16727 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16728 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16729
456e800a
TT
167302020-01-08 Tom Tromey <tromey@adacore.com>
16731
16732 * dwarf2read.c (parse_macro_definition): Use std::string.
16733 (parse_macro_definition): Likewise.
16734
6dfa2fc2
TT
167352020-01-08 Tom Tromey <tromey@adacore.com>
16736
16737 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16738 (ATTR_ALLOC_CHUNK): Remove.
16739
421d1616
TT
167402020-01-08 Tom Tromey <tromey@adacore.com>
16741
16742 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16743
43816ebc
TT
167442020-01-08 Tom Tromey <tromey@adacore.com>
16745
16746 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16747 (dwarf2_compute_name, open_dwo_file): Likewise.
16748 (process_enumeration_scope): Use std::vector.
16749 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16750 (partial_die_info::fixup, dwarf2_start_subfile)
16751 (guess_full_die_structure_name, dwarf2_name): Likewise.
16752 (determine_prefix): Update.
16753 (guess_full_die_structure_name): Make return type const.
16754 (partial_die_full_name): Return unique_xmalloc_ptr.
16755 (DW_FIELD_ALLOC_CHUNK): Remove.
16756
4212d509
TT
167572020-01-07 Tom Tromey <tromey@adacore.com>
16758
16759 PR build/24937:
16760 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16761
06a6207a
JT
167622020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16763
16764 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16765
153d79c4
AB
167662020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16767
16768 * stack.c (print_frame_info): Move disassemble_next_line code
16769 inside source_print block.
16770
66182876
EZ
167712020-01-06 Eli Zaretskii <eliz@gnu.org>
16772
16773 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16774 gdb/signals.h, as we are now using native signal symbols.
16775
cbfa8581
SV
167762020-01-06 Shahab Vahedi <shahab@synopsys.com>
16777
16778 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16779 overflow by an early check of content vs threshold.
aac66a4c 16780 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16781 Likewise.
16782
3f602821
EZ
167832020-01-06 Eli Zaretskii <eliz@gnu.org>
16784
16785 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16786
a08c904d
JT
167872020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16788
16789 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16790 export table if no section contains it's RVA.
16791
89a65580
EZ
167922020-01-06 Eli Zaretskii <eliz@gnu.org>
16793
16794 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16795
8b7fcda2
HD
167962020-01-06 Hannes Domani <ssbssa@yahoo.de>
16797
16798 * source.c (print_source_lines_base): Set last_line_listed.
16799
a61b4f69
SV
168002020-01-06 Shahab Vahedi <shahab@synopsys.com>
16801
16802 * tui/tui-disasm.c: Remove trailing spaces.
16803
559e7e50
EZ
168042020-01-06 Eli Zaretskii <eliz@gnu.org>
16805 Pedro Alves <palves@redhat.com>
16806
16807 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16808 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16809 (windows_gdb_signal_to_target): New function, uses the above
16810 enumeration to convert GDB internal signal codes to equivalent
16811 Windows codes.
16812 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16813 * windows-nat.c: Include "gdb_wait.h".
16814 (get_windows_debug_event): Extract the fatal exception from the
16815 exit status and convert to the equivalent Posix signal number.
16816 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16817 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16818 * gdbsupport/gdb_wait.c: New file, implements
16819 windows_status_to_termsig.
16820 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16821 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16822
f2302a34
AB
168232020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16824
16825 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16826 show_layout.
16827
6a5206eb
LM
168282020-01-05 Luis Machado <luis.machado@linaro.org>
16829
16830 * aarch64-linux-nat.c
16831 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16832 and bfd_mach_aarch64.
16833
6ec1d75e
PW
168342020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16835
16836 * ui-file.c (stdio_file::can_emit_style_escape)
16837 (tee_file::can_emit_style_escape): Ensure style is used also on
16838 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16839 to gdb_stdout.
16840 * main.c (set_gdb_data_directory): Use file style to output the
16841 warning that the given pathname is not a directory.
16842 * top.c (show_history_filename, gdb_safe_append_history)
16843 (show_gdb_datadir): Use file style.
16844
44f81a76
HD
168452020-01-03 Hannes Domani <ssbssa@yahoo.de>
16846
16847 * solib-target.c (struct lm_info_target):
16848 Change offsets to be a unique_xmalloc_ptr.
16849 (solib_target_relocate_section_addresses): Update.
16850
25057eb0
HD
168512020-01-03 Hannes Domani <ssbssa@yahoo.de>
16852
16853 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16854
6e2118f5
BE
168552020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16856
16857 * MAINTAINERS (Write After Approval): Add myself.
16858
8133c7dc
LM
168592020-01-02 Luis Machado <luis.machado@linaro.org>
16860
16861 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16862 Cell BE architecture.
16863 * target.h (struct target_ops) <thread_architecture>: Likewise.
16864
48189bec
HD
168652020-01-01 Hannes Domani <ssbssa@yahoo.de>
16866
16867 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16868
ead1063b
HD
168692020-01-01 Hannes Domani <ssbssa@yahoo.de>
16870
16871 * MAINTAINERS (Write After Approval): Add myself.
16872
e5d78223
JB
168732020-01-01 Joel Brobecker <brobecker@adacore.com>
16874
16875 * gdbarch.sh: Update copyright year range of generated files.
16876
b811d2c2
JB
168772020-01-01 Joel Brobecker <brobecker@adacore.com>
16878
16879 Update copyright year range in all GDB files.
16880
5f4def5c
JB
168812020-01-01 Joel Brobecker <brobecker@adacore.com>
16882
16883 * copyright.py: Convert to Python 3.
16884
51fd4002
JB
168852020-01-01 Joel Brobecker <brobecker@adacore.com>
16886
16887 * copyright.py: Adapt after move of gnulib directory from gdb
16888 directory to toplevel directory.
16889
5fb651f2
JB
168902020-01-01 Joel Brobecker <brobecker@adacore.com>
16891
16892 * copyright.py (main): Exit if run from the wrong directory.
16893
5dd8bf88
JB
168942020-01-01 Joel Brobecker <brobecker@adacore.com>
16895
16896 * top.c (print_gdb_version): Change copyright year to 2020.
16897
9f71dacb 168982020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16899
9f71dacb 16900 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16901
9f71dacb 16902For older changes see ChangeLog-2019.
c906108c
SS
16903\f
16904Local Variables:
16905mode: change-log
16906left-margin: 8
16907fill-column: 74
16908version-control: never
57da7796 16909coding: utf-8
c906108c 16910End:
This page took 3.143325 seconds and 4 git commands to generate.