Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
25f4c262
KS
12020-11-13 Keith Seitz <keiths@redhat.com>
2
3 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
4 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
5 outside of ELF segments" warning for debugin
6
9d3ab915
KS
72020-11-13 Keith Seitz <keiths@redhat.com>
8
9 PR gdb/23034
10 * elfread.c (elf_symfile_segments): Output a BFD file name
11 for the "Loadable section ... outside of ELF segments" warning.
12
9ecab40c
SM
132020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
14
15 PR gdb/26835
16 * arm-tdep.c (class arm_instruction_reader): New.
17 (target_arm_instruction_reader): New.
18 (arm_analyze_prologue): Add instruction reader parameter and use
19 it. Use arm_expand_immediate.
20 (class target_arm_instruction_reader): Adjust.
21 (arm_skip_prologue): Adjust.
22 (arm_expand_immediate): New.
23 (arm_scan_prologue): Adjust.
24 (arm_analyze_prologue_test): New.
25 (class test_arm_instruction_reader): New.
26
5a7cf527
AB
272020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
28
29 * f-lang.c (fortran_argument_convert): Add declaration. Add
30 header comment, taken from f-lang.h. Make static.
31 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
32 (fortran_argument_convert): Delete declaration.
33
7bea47f0
AB
342020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * ada-exp.y (find_primitive_type): Make parameter const.
37 * ada-lang.c (enum ada_primitive_types): Delete.
38 (ada_language::language_arch_info): Update.
39 * c-lang.c (enum c_primitive_types): Delete.
40 (c_language_arch_info): Update.
41 (enum cplus_primitive_types): Delete.
42 (cplus_language::language_arch_info): Update.
43 * d-lang.c (enum d_primitive_types): Delete.
44 (d_language::language_arch_info): Update.
45 * f-lang.c (enum f_primitive_types): Delete.
46 (f_language::language_arch_info): Update.
47 * go-lang.c (enum go_primitive_types): Delete.
48 (go_language::language_arch_info): Update.
49 * language.c (auto_or_unknown_language::language_arch_info):
50 Update.
51 (language_gdbarch_post_init): Use obstack_new, use array indexing.
52 (language_string_char_type): Add header comment, call function in
53 language_arch_info.
54 (language_bool_type): Likewise
55 (language_arch_info::bool_type): Define.
56 (language_lookup_primitive_type_1): Delete.
57 (language_lookup_primitive_type): Rewrite as a templated function
58 to call function in language_arch_info, then instantiate twice.
59 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
60 (language_arch_info::lookup_primitive_type_and_symbol): Define.
61 (language_arch_info::lookup_primitive_type): Define twice with
62 different signatures.
63 (language_arch_info::lookup_primitive_type_as_symbol): Define.
64 (language_lookup_primitive_type_as_symbol): Rewrite to call a
65 member function in language_arch_info.
66 * language.h (language_arch_info): Complete rewrite.
67 (language_lookup_primitive_type): Make templated.
68 * m2-lang.c (enum m2_primitive_types): Delete.
69 (m2_language::language_arch_info): Update.
70 * opencl-lang.c (OCL_P_TYPE): Delete.
71 (enum opencl_primitive_types): Delete.
72 (opencl_type_data): Delete.
73 (builtin_opencl_type): Delete.
74 (lookup_opencl_vector_type): Update.
75 (opencl_language::language_arch_info): Update, lots of content
76 moved from...
77 (build_opencl_types): ...here. This function is now deleted.
78 (_initialize_opencl_language): Delete.
79 * p-lang.c (enum pascal_primitive_types): Delete.
80 (pascal_language::language_arch_info): Update.
81 * rust-lang.c (enum rust_primitive_types): Delete.
82 (rust_language::language_arch_info): Update.
83
bf6e5d01
SM
842020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
85
86 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
87 dwarf2_queue_guard.
88
1350c3b4
SM
892020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
90
91 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
92 comment.
93
6f738b01
SM
942020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * dwarf2/read.c (dwarf_read_debug_printf,
97 dwarf_read_debug_printf_v): New macros, use throughout the file.
98
10c19fad
SV
992020-11-12 Shahab Vahedi <shahab@synopsys.com>
100
101 * arc-linux-tdep.c (collect_register): Populate "eret" by
102 "pc" value from the regcache when asked for "pc" value.
103
1f2624a3
TT
1042020-11-12 Tom Tromey <tom@tromey.com>
105
106 PR rust/26799:
107 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
108 exist.
109
ab33b152
AB
1102020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 * features/Makefile (XMLTOC): Add rx.xml.
113 (FEATURE_XMLFILES): Remove rx.xml.
114 (FEATURE_CFILES rule): Pass '-single-feature' flag.
115 * features/rx.c: Regenerate.
116 * features/rx.xml: Wrap in `target` tags, and reindent.
117 * target-descriptions.c (struct maint_print_c_tdesc_options): New
118 structure.
119 (maint_print_c_tdesc_opt_def): New typedef.
120 (maint_print_c_tdesc_opt_defs): New static global.
121 (make_maint_print_c_tdesc_options_def_group): New function.
122 (maint_print_c_tdesc_cmd): Make use of command line flags, only
123 print single feature C file for target descriptions containing a
124 single feature.
125 (maint_print_c_tdesc_cmd_completer): New function.
126 (_initialize_target_descriptions): Update call to register command
127 completer, and include command line flag in help text.
128
550820e1
AB
1292020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
130
131 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
132 numbers.
133 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
134 enum values.
135
baf20f76
TT
1362020-11-10 Tom Tromey <tom@tromey.com>
137
138 * value.h (internalvar_name): Update.
139 * value.c (internalvar_name): Make return type const.
140
caaece0e
TT
1412020-11-10 Tom Tromey <tom@tromey.com>
142
143 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
144 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
145 const.
146
8e20b4be
TT
1472020-11-10 Tom Tromey <tom@tromey.com>
148
149 * objc-lang.h (value_nsstring): Update.
150 * objc-lang.c (value_nsstring): Make "ptr" const.
151
86775fab
AB
1522020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * expprint.c (print_subexp_funcall): Increment expression position
155 after reading argument count.
156 * f-lang.c (print_subexp_f): Skip over opcode before calling
157 common function.
158 (dump_subexp_body_f): Likewise.
159
3fed4c0b
RG
1602020-11-06 Romain Geissler <romain.geissler@amadeus.com>
161
162 PR python/26832
163 * configure: Regenerate.
164 * configure.ac: Check for python modules ctypes instead of
165 itertools.
166
ac3d4064
PA
1672020-11-06 Pedro Alves <pedro@palves.net>
168
169 * macroexp.c (struct macro_buffer): Split in two classes. Add
170 uses adjusted.
171 (struct shared_macro_buffer): New, factored out from struct
172 macro_buffer.
173 (struct growable_macro_buffer): New, factored out from struct
174 macro_buffer.
175 (set_token, get_comment, get_identifier, get_pp_number)
176 (get_character_constant, get_string_literal, get_punctuator)
177 (get_next_token_for_substitution): Constify parameters.
178 (substitute_args): Constify locals.
179
606decb2
TT
1802020-11-05 Tom Tromey <tom@tromey.com>
181
182 * dwarf2/read.c (read_cutu_die_from_dwo)
183 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
184 (build_type_psymtabs_1): Update.
185 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
186 parameter.
187 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
188 Don't read section. Add assert.
189
9c91c725
TT
1902020-11-04 Tom Tromey <tromey@adacore.com>
191
192 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
193
8d9fd3a1
TT
1942020-11-04 Tom Tromey <tromey@adacore.com>
195
196 * ada-typeprint.c (ada_print_type): Handle __T types.
197
d8f62e84
TT
1982020-11-04 Tom Tromey <tromey@adacore.com>
199
200 * dwarf2/read.c (add_partial_symbol, process_die):
201 Handle DW_TAG_array_type.
202 (is_type_tag_for_partial): Add "lang" parameter.
203 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
204
7ff5b937
TT
2052020-11-04 Tom Tromey <tromey@adacore.com>
206
207 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
208
10f6a3ad
TT
2092020-11-04 Tom Tromey <tromey@adacore.com>
210
211 * dwarf2/read.c (read_array_type): Only apply stride to innermost
212 array.
213
b72795a8
TT
2142020-11-04 Tom Tromey <tromey@adacore.com>
215
216 * gdbtypes.c (update_static_array_size): Handle bit stride.
217
24aa1b02
TT
2182020-11-04 Tom Tromey <tromey@adacore.com>
219
220 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
221
c9a28cbe
TT
2222020-11-04 Tom Tromey <tromey@adacore.com>
223
224 * ada-lang.c (ada_is_any_packed_array_type): New function.
225 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
226
57567375
TT
2272020-11-04 Tom Tromey <tromey@adacore.com>
228
229 * dwarf2/read.c (recognize_bound_expression)
230 (quirk_ada_thick_pointer): New functions.
231 (read_array_type): Call quirk_ada_thick_pointer.
232 (set_die_type): Add "skip_data_location" parameter.
233 (quirk_ada_thick_pointer): New function.
234 (process_structure_scope): Call quirk_ada_thick_pointer.
235 * ada-lang.c (ada_is_unconstrained_packed_array_type)
236 (decode_packed_array_bitsize): Handle thick pointers without
237 parallel types.
238 (ada_is_gnat_encoded_packed_array_type): Rename from
239 ada_is_packed_array_type.
240 (ada_is_constrained_packed_array_type): Update.
241 * ada-valprint.c (ada_val_print_gnat_array): Remove.
242 (ada_value_print_1): Use ada_get_decoded_value.
243
a7400e44
TT
2442020-11-04 Tom Tromey <tromey@adacore.com>
245
246 * ada-lang.c (recursively_update_array_bitsize): New function.
247 (decode_constrained_packed_array_type): Call it.
248
75fd6a26
TT
2492020-11-04 Tom Tromey <tromey@adacore.com>
250
251 * ada-lang.c (to_fixed_array_type): Error if
252 decode_constrained_packed_array_type returns NULL.
253
93f9561e
TT
2542020-11-04 Tom Tromey <tromey@adacore.com>
255
256 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
257
257e02d8
TT
2582020-11-02 Tom Tromey <tromey@adacore.com>
259
260 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
261 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
262 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
263 * amd64-ravenscar-thread.c: New file.
264 * amd64-ravenscar-thread.h: New file.
265 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
266 * configure.tgt (amd64_tobjs): Add ravenscar objects.
267
74d877e5
AB
2682020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
269
270 * main.c (execute_cmdargs): New function.
271 (captured_main_1): Make use of execute_cmdargs.
272
64aaad63
AB
2732020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * NEWS: Mention changes to config file search path.
276 * main.c
277
5b3d3560
TT
2782020-11-02 Tom Tromey <tromey@adacore.com>
279
280 * python/python.c: Consolidate two HAVE_PYTHON blocks.
281 (python_GdbModuleDef): Move earlier. Now static.
282 (do_start_initialization): Consolidate some IS_PY3K blocks.
283
dda83cd7
SM
2842020-11-02 Simon Marchi <simon.marchi@efficios.com>
285
286 * aarch64-linux-tdep.c: Fix indentation.
287 * aarch64-ravenscar-thread.c: Fix indentation.
288 * aarch64-tdep.c: Fix indentation.
289 * aarch64-tdep.h: Fix indentation.
290 * ada-lang.c: Fix indentation.
291 * ada-lang.h: Fix indentation.
292 * ada-tasks.c: Fix indentation.
293 * ada-typeprint.c: Fix indentation.
294 * ada-valprint.c: Fix indentation.
295 * ada-varobj.c: Fix indentation.
296 * addrmap.c: Fix indentation.
297 * addrmap.h: Fix indentation.
298 * agent.c: Fix indentation.
299 * aix-thread.c: Fix indentation.
300 * alpha-bsd-nat.c: Fix indentation.
301 * alpha-linux-tdep.c: Fix indentation.
302 * alpha-mdebug-tdep.c: Fix indentation.
303 * alpha-nbsd-tdep.c: Fix indentation.
304 * alpha-obsd-tdep.c: Fix indentation.
305 * alpha-tdep.c: Fix indentation.
306 * amd64-bsd-nat.c: Fix indentation.
307 * amd64-darwin-tdep.c: Fix indentation.
308 * amd64-linux-nat.c: Fix indentation.
309 * amd64-linux-tdep.c: Fix indentation.
310 * amd64-nat.c: Fix indentation.
311 * amd64-obsd-tdep.c: Fix indentation.
312 * amd64-tdep.c: Fix indentation.
313 * amd64-windows-tdep.c: Fix indentation.
314 * annotate.c: Fix indentation.
315 * arc-tdep.c: Fix indentation.
316 * arch-utils.c: Fix indentation.
317 * arch/arm-get-next-pcs.c: Fix indentation.
318 * arch/arm.c: Fix indentation.
319 * arm-linux-nat.c: Fix indentation.
320 * arm-linux-tdep.c: Fix indentation.
321 * arm-nbsd-tdep.c: Fix indentation.
322 * arm-pikeos-tdep.c: Fix indentation.
323 * arm-tdep.c: Fix indentation.
324 * arm-tdep.h: Fix indentation.
325 * arm-wince-tdep.c: Fix indentation.
326 * auto-load.c: Fix indentation.
327 * auxv.c: Fix indentation.
328 * avr-tdep.c: Fix indentation.
329 * ax-gdb.c: Fix indentation.
330 * ax-general.c: Fix indentation.
331 * bfin-linux-tdep.c: Fix indentation.
332 * block.c: Fix indentation.
333 * block.h: Fix indentation.
334 * blockframe.c: Fix indentation.
335 * bpf-tdep.c: Fix indentation.
336 * break-catch-sig.c: Fix indentation.
337 * break-catch-syscall.c: Fix indentation.
338 * break-catch-throw.c: Fix indentation.
339 * breakpoint.c: Fix indentation.
340 * breakpoint.h: Fix indentation.
341 * bsd-uthread.c: Fix indentation.
342 * btrace.c: Fix indentation.
343 * build-id.c: Fix indentation.
344 * buildsym-legacy.h: Fix indentation.
345 * buildsym.c: Fix indentation.
346 * c-typeprint.c: Fix indentation.
347 * c-valprint.c: Fix indentation.
348 * c-varobj.c: Fix indentation.
349 * charset.c: Fix indentation.
350 * cli/cli-cmds.c: Fix indentation.
351 * cli/cli-decode.c: Fix indentation.
352 * cli/cli-decode.h: Fix indentation.
353 * cli/cli-script.c: Fix indentation.
354 * cli/cli-setshow.c: Fix indentation.
355 * coff-pe-read.c: Fix indentation.
356 * coffread.c: Fix indentation.
357 * compile/compile-cplus-types.c: Fix indentation.
358 * compile/compile-object-load.c: Fix indentation.
359 * compile/compile-object-run.c: Fix indentation.
360 * completer.c: Fix indentation.
361 * corefile.c: Fix indentation.
362 * corelow.c: Fix indentation.
363 * cp-abi.h: Fix indentation.
364 * cp-namespace.c: Fix indentation.
365 * cp-support.c: Fix indentation.
366 * cp-valprint.c: Fix indentation.
367 * cris-linux-tdep.c: Fix indentation.
368 * cris-tdep.c: Fix indentation.
369 * darwin-nat-info.c: Fix indentation.
370 * darwin-nat.c: Fix indentation.
371 * darwin-nat.h: Fix indentation.
372 * dbxread.c: Fix indentation.
373 * dcache.c: Fix indentation.
374 * disasm.c: Fix indentation.
375 * dtrace-probe.c: Fix indentation.
376 * dwarf2/abbrev.c: Fix indentation.
377 * dwarf2/attribute.c: Fix indentation.
378 * dwarf2/expr.c: Fix indentation.
379 * dwarf2/frame.c: Fix indentation.
380 * dwarf2/index-cache.c: Fix indentation.
381 * dwarf2/index-write.c: Fix indentation.
382 * dwarf2/line-header.c: Fix indentation.
383 * dwarf2/loc.c: Fix indentation.
384 * dwarf2/macro.c: Fix indentation.
385 * dwarf2/read.c: Fix indentation.
386 * dwarf2/read.h: Fix indentation.
387 * elfread.c: Fix indentation.
388 * eval.c: Fix indentation.
389 * event-top.c: Fix indentation.
390 * exec.c: Fix indentation.
391 * exec.h: Fix indentation.
392 * expprint.c: Fix indentation.
393 * f-lang.c: Fix indentation.
394 * f-typeprint.c: Fix indentation.
395 * f-valprint.c: Fix indentation.
396 * fbsd-nat.c: Fix indentation.
397 * fbsd-tdep.c: Fix indentation.
398 * findvar.c: Fix indentation.
399 * fork-child.c: Fix indentation.
400 * frame-unwind.c: Fix indentation.
401 * frame-unwind.h: Fix indentation.
402 * frame.c: Fix indentation.
403 * frv-linux-tdep.c: Fix indentation.
404 * frv-tdep.c: Fix indentation.
405 * frv-tdep.h: Fix indentation.
406 * ft32-tdep.c: Fix indentation.
407 * gcore.c: Fix indentation.
408 * gdb_bfd.c: Fix indentation.
409 * gdbarch.sh: Fix indentation.
410 * gdbarch.c: Re-generate
411 * gdbarch.h: Re-generate.
412 * gdbcore.h: Fix indentation.
413 * gdbthread.h: Fix indentation.
414 * gdbtypes.c: Fix indentation.
415 * gdbtypes.h: Fix indentation.
416 * glibc-tdep.c: Fix indentation.
417 * gnu-nat.c: Fix indentation.
418 * gnu-nat.h: Fix indentation.
419 * gnu-v2-abi.c: Fix indentation.
420 * gnu-v3-abi.c: Fix indentation.
421 * go32-nat.c: Fix indentation.
422 * guile/guile-internal.h: Fix indentation.
423 * guile/scm-cmd.c: Fix indentation.
424 * guile/scm-frame.c: Fix indentation.
425 * guile/scm-iterator.c: Fix indentation.
426 * guile/scm-math.c: Fix indentation.
427 * guile/scm-ports.c: Fix indentation.
428 * guile/scm-pretty-print.c: Fix indentation.
429 * guile/scm-value.c: Fix indentation.
430 * h8300-tdep.c: Fix indentation.
431 * hppa-linux-nat.c: Fix indentation.
432 * hppa-linux-tdep.c: Fix indentation.
433 * hppa-nbsd-nat.c: Fix indentation.
434 * hppa-nbsd-tdep.c: Fix indentation.
435 * hppa-obsd-nat.c: Fix indentation.
436 * hppa-tdep.c: Fix indentation.
437 * hppa-tdep.h: Fix indentation.
438 * i386-bsd-nat.c: Fix indentation.
439 * i386-darwin-nat.c: Fix indentation.
440 * i386-darwin-tdep.c: Fix indentation.
441 * i386-dicos-tdep.c: Fix indentation.
442 * i386-gnu-nat.c: Fix indentation.
443 * i386-linux-nat.c: Fix indentation.
444 * i386-linux-tdep.c: Fix indentation.
445 * i386-nto-tdep.c: Fix indentation.
446 * i386-obsd-tdep.c: Fix indentation.
447 * i386-sol2-nat.c: Fix indentation.
448 * i386-tdep.c: Fix indentation.
449 * i386-tdep.h: Fix indentation.
450 * i386-windows-tdep.c: Fix indentation.
451 * i387-tdep.c: Fix indentation.
452 * i387-tdep.h: Fix indentation.
453 * ia64-libunwind-tdep.c: Fix indentation.
454 * ia64-libunwind-tdep.h: Fix indentation.
455 * ia64-linux-nat.c: Fix indentation.
456 * ia64-linux-tdep.c: Fix indentation.
457 * ia64-tdep.c: Fix indentation.
458 * ia64-tdep.h: Fix indentation.
459 * ia64-vms-tdep.c: Fix indentation.
460 * infcall.c: Fix indentation.
461 * infcmd.c: Fix indentation.
462 * inferior.c: Fix indentation.
463 * infrun.c: Fix indentation.
464 * iq2000-tdep.c: Fix indentation.
465 * language.c: Fix indentation.
466 * linespec.c: Fix indentation.
467 * linux-fork.c: Fix indentation.
468 * linux-nat.c: Fix indentation.
469 * linux-tdep.c: Fix indentation.
470 * linux-thread-db.c: Fix indentation.
471 * lm32-tdep.c: Fix indentation.
472 * m2-lang.c: Fix indentation.
473 * m2-typeprint.c: Fix indentation.
474 * m2-valprint.c: Fix indentation.
475 * m32c-tdep.c: Fix indentation.
476 * m32r-linux-tdep.c: Fix indentation.
477 * m32r-tdep.c: Fix indentation.
478 * m68hc11-tdep.c: Fix indentation.
479 * m68k-bsd-nat.c: Fix indentation.
480 * m68k-linux-nat.c: Fix indentation.
481 * m68k-linux-tdep.c: Fix indentation.
482 * m68k-tdep.c: Fix indentation.
483 * machoread.c: Fix indentation.
484 * macrocmd.c: Fix indentation.
485 * macroexp.c: Fix indentation.
486 * macroscope.c: Fix indentation.
487 * macrotab.c: Fix indentation.
488 * macrotab.h: Fix indentation.
489 * main.c: Fix indentation.
490 * mdebugread.c: Fix indentation.
491 * mep-tdep.c: Fix indentation.
492 * mi/mi-cmd-catch.c: Fix indentation.
493 * mi/mi-cmd-disas.c: Fix indentation.
494 * mi/mi-cmd-env.c: Fix indentation.
495 * mi/mi-cmd-stack.c: Fix indentation.
496 * mi/mi-cmd-var.c: Fix indentation.
497 * mi/mi-cmds.c: Fix indentation.
498 * mi/mi-main.c: Fix indentation.
499 * mi/mi-parse.c: Fix indentation.
500 * microblaze-tdep.c: Fix indentation.
501 * minidebug.c: Fix indentation.
502 * minsyms.c: Fix indentation.
503 * mips-linux-nat.c: Fix indentation.
504 * mips-linux-tdep.c: Fix indentation.
505 * mips-nbsd-tdep.c: Fix indentation.
506 * mips-tdep.c: Fix indentation.
507 * mn10300-linux-tdep.c: Fix indentation.
508 * mn10300-tdep.c: Fix indentation.
509 * moxie-tdep.c: Fix indentation.
510 * msp430-tdep.c: Fix indentation.
511 * namespace.h: Fix indentation.
512 * nat/fork-inferior.c: Fix indentation.
513 * nat/gdb_ptrace.h: Fix indentation.
514 * nat/linux-namespaces.c: Fix indentation.
515 * nat/linux-osdata.c: Fix indentation.
516 * nat/netbsd-nat.c: Fix indentation.
517 * nat/x86-dregs.c: Fix indentation.
518 * nbsd-nat.c: Fix indentation.
519 * nbsd-tdep.c: Fix indentation.
520 * nios2-linux-tdep.c: Fix indentation.
521 * nios2-tdep.c: Fix indentation.
522 * nto-procfs.c: Fix indentation.
523 * nto-tdep.c: Fix indentation.
524 * objfiles.c: Fix indentation.
525 * objfiles.h: Fix indentation.
526 * opencl-lang.c: Fix indentation.
527 * or1k-tdep.c: Fix indentation.
528 * osabi.c: Fix indentation.
529 * osabi.h: Fix indentation.
530 * osdata.c: Fix indentation.
531 * p-lang.c: Fix indentation.
532 * p-typeprint.c: Fix indentation.
533 * p-valprint.c: Fix indentation.
534 * parse.c: Fix indentation.
535 * ppc-linux-nat.c: Fix indentation.
536 * ppc-linux-tdep.c: Fix indentation.
537 * ppc-nbsd-nat.c: Fix indentation.
538 * ppc-nbsd-tdep.c: Fix indentation.
539 * ppc-obsd-nat.c: Fix indentation.
540 * ppc-ravenscar-thread.c: Fix indentation.
541 * ppc-sysv-tdep.c: Fix indentation.
542 * ppc64-tdep.c: Fix indentation.
543 * printcmd.c: Fix indentation.
544 * proc-api.c: Fix indentation.
545 * producer.c: Fix indentation.
546 * producer.h: Fix indentation.
547 * prologue-value.c: Fix indentation.
548 * prologue-value.h: Fix indentation.
549 * psymtab.c: Fix indentation.
550 * python/py-arch.c: Fix indentation.
551 * python/py-bpevent.c: Fix indentation.
552 * python/py-event.c: Fix indentation.
553 * python/py-event.h: Fix indentation.
554 * python/py-finishbreakpoint.c: Fix indentation.
555 * python/py-frame.c: Fix indentation.
556 * python/py-framefilter.c: Fix indentation.
557 * python/py-inferior.c: Fix indentation.
558 * python/py-infthread.c: Fix indentation.
559 * python/py-objfile.c: Fix indentation.
560 * python/py-prettyprint.c: Fix indentation.
561 * python/py-registers.c: Fix indentation.
562 * python/py-signalevent.c: Fix indentation.
563 * python/py-stopevent.c: Fix indentation.
564 * python/py-stopevent.h: Fix indentation.
565 * python/py-threadevent.c: Fix indentation.
566 * python/py-tui.c: Fix indentation.
567 * python/py-unwind.c: Fix indentation.
568 * python/py-value.c: Fix indentation.
569 * python/py-xmethods.c: Fix indentation.
570 * python/python-internal.h: Fix indentation.
571 * python/python.c: Fix indentation.
572 * ravenscar-thread.c: Fix indentation.
573 * record-btrace.c: Fix indentation.
574 * record-full.c: Fix indentation.
575 * record.c: Fix indentation.
576 * reggroups.c: Fix indentation.
577 * regset.h: Fix indentation.
578 * remote-fileio.c: Fix indentation.
579 * remote.c: Fix indentation.
580 * reverse.c: Fix indentation.
581 * riscv-linux-tdep.c: Fix indentation.
582 * riscv-ravenscar-thread.c: Fix indentation.
583 * riscv-tdep.c: Fix indentation.
584 * rl78-tdep.c: Fix indentation.
585 * rs6000-aix-tdep.c: Fix indentation.
586 * rs6000-lynx178-tdep.c: Fix indentation.
587 * rs6000-nat.c: Fix indentation.
588 * rs6000-tdep.c: Fix indentation.
589 * rust-lang.c: Fix indentation.
590 * rx-tdep.c: Fix indentation.
591 * s12z-tdep.c: Fix indentation.
592 * s390-linux-tdep.c: Fix indentation.
593 * score-tdep.c: Fix indentation.
594 * ser-base.c: Fix indentation.
595 * ser-mingw.c: Fix indentation.
596 * ser-uds.c: Fix indentation.
597 * ser-unix.c: Fix indentation.
598 * serial.c: Fix indentation.
599 * sh-linux-tdep.c: Fix indentation.
600 * sh-nbsd-tdep.c: Fix indentation.
601 * sh-tdep.c: Fix indentation.
602 * skip.c: Fix indentation.
603 * sol-thread.c: Fix indentation.
604 * solib-aix.c: Fix indentation.
605 * solib-darwin.c: Fix indentation.
606 * solib-frv.c: Fix indentation.
607 * solib-svr4.c: Fix indentation.
608 * solib.c: Fix indentation.
609 * source.c: Fix indentation.
610 * sparc-linux-tdep.c: Fix indentation.
611 * sparc-nbsd-tdep.c: Fix indentation.
612 * sparc-obsd-tdep.c: Fix indentation.
613 * sparc-ravenscar-thread.c: Fix indentation.
614 * sparc-tdep.c: Fix indentation.
615 * sparc64-linux-tdep.c: Fix indentation.
616 * sparc64-nbsd-tdep.c: Fix indentation.
617 * sparc64-obsd-tdep.c: Fix indentation.
618 * sparc64-tdep.c: Fix indentation.
619 * stabsread.c: Fix indentation.
620 * stack.c: Fix indentation.
621 * stap-probe.c: Fix indentation.
622 * stubs/ia64vms-stub.c: Fix indentation.
623 * stubs/m32r-stub.c: Fix indentation.
624 * stubs/m68k-stub.c: Fix indentation.
625 * stubs/sh-stub.c: Fix indentation.
626 * stubs/sparc-stub.c: Fix indentation.
627 * symfile-mem.c: Fix indentation.
628 * symfile.c: Fix indentation.
629 * symfile.h: Fix indentation.
630 * symmisc.c: Fix indentation.
631 * symtab.c: Fix indentation.
632 * symtab.h: Fix indentation.
633 * target-float.c: Fix indentation.
634 * target.c: Fix indentation.
635 * target.h: Fix indentation.
636 * tic6x-tdep.c: Fix indentation.
637 * tilegx-linux-tdep.c: Fix indentation.
638 * tilegx-tdep.c: Fix indentation.
639 * top.c: Fix indentation.
640 * tracefile-tfile.c: Fix indentation.
641 * tracepoint.c: Fix indentation.
642 * tui/tui-disasm.c: Fix indentation.
643 * tui/tui-io.c: Fix indentation.
644 * tui/tui-regs.c: Fix indentation.
645 * tui/tui-stack.c: Fix indentation.
646 * tui/tui-win.c: Fix indentation.
647 * tui/tui-winsource.c: Fix indentation.
648 * tui/tui.c: Fix indentation.
649 * typeprint.c: Fix indentation.
650 * ui-out.h: Fix indentation.
651 * unittests/copy_bitwise-selftests.c: Fix indentation.
652 * unittests/memory-map-selftests.c: Fix indentation.
653 * utils.c: Fix indentation.
654 * v850-tdep.c: Fix indentation.
655 * valarith.c: Fix indentation.
656 * valops.c: Fix indentation.
657 * valprint.c: Fix indentation.
658 * valprint.h: Fix indentation.
659 * value.c: Fix indentation.
660 * value.h: Fix indentation.
661 * varobj.c: Fix indentation.
662 * vax-tdep.c: Fix indentation.
663 * windows-nat.c: Fix indentation.
664 * windows-tdep.c: Fix indentation.
665 * xcoffread.c: Fix indentation.
666 * xml-syscall.c: Fix indentation.
667 * xml-tdesc.c: Fix indentation.
668 * xstormy16-tdep.c: Fix indentation.
669 * xtensa-config.c: Fix indentation.
670 * xtensa-linux-nat.c: Fix indentation.
671 * xtensa-linux-tdep.c: Fix indentation.
672 * xtensa-tdep.c: Fix indentation.
673
e1f57067
AB
6742020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
675 Craig Blackmore <craig.blackmore@embecosm.com>
676
677 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
678 as an unsigned value.
679
ae7754b2
TT
6802020-11-01 Tom Tromey <tom@tromey.com>
681
682 * dbxread.c (dbx_end_psymtab): Update.
683 * dwarf2/read.c (process_psymtab_comp_unit_reader)
684 (build_type_psymtabs_reader): Update.
685 * xcoffread.c (xcoff_end_psymtab): Update.
686 * ctfread.c (scan_partial_symbols): Update.
687 * psymtab.c (sort_pst_symbols): Remove.
688 (partial_symtab::end): Rename from end_psymtab_common. Inline
689 sort_pst_symbols.
690 * psympriv.h (struct partial_symtab) <end>: New method.
691 (end_psymtab_common): Don't declare.
692
0684bb51
TT
6932020-11-01 Tom Tromey <tom@tromey.com>
694
695 * symmisc.c (count_psyms): New function.
696 (print_objfile_statistics): Use it.
697 * psymtab.c (append_psymbol_to_list): Remove.
698 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
699 * objfiles.h (struct objstats) <n_psyms>: Remove.
700
089002bb
TT
7012020-11-01 Tom Tromey <tom@tromey.com>
702
703 * dbxread.c (dbx_end_psymtab): Update.
704 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
705 (build_type_psymtabs_reader): Update.
706 * xcoffread.c (xcoff_end_psymtab): Update.
707 * ctfread.c (scan_partial_symbols): Update.
708 * psympriv.h (end_psymtab_common): Update.
709 * psymtab.c (end_psymtab_common): Remove objfile parameter.
710 (sort_pst_symbols): Likewise.
711
525454d6
TT
7122020-11-01 Tom Tromey <tom@tromey.com>
713
714 * dbxread.c (dbx_symfile_read): Update.
715 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
716 * xcoffread.c (xcoff_initial_scan): Update.
717 * psympriv.h (init_psymbol_list): Don't declare.
718 * psymtab.c (init_psymbol_list): Remove.
719
60bd1d53
JB
7202020-11-01 Joel Brobecker <brobecker@adacore.com>
721
722 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
723 gnat_encoded_fixed_type_info. Update all callers.
724
db99d0d0
JB
7252020-11-01 Joel Brobecker <brobecker@adacore.com>
726
727 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
728 line too long.
729
75f24e86
JB
7302020-11-01 Joel Brobecker <brobecker@adacore.com>
731
732 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
733 cast_from_fixed. Update all callers.
734 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
735 Update all callers.
736 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
737 Update all callers.
738 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
739 ada_scaling_factor.
740 * ada-typeprint.c: Replace call to ada_scaling_factor by call
741 to print_gnat_encoded_fixed_point_type.
742 * ada-valprint.c: Likewise.
743
4f0469cd
AB
7442020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
745
746 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
747 (debug_prefixed_printf): Add check of debug_displaced flag.
748 * linux-nat.c (linux_nat_debug_printf): Add check of
749 debug_linux_nat flag.
750
17417fb0
SM
7512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
752
753 * infrun.c (infrun_debug_printf_1): Remove.
754 (displaced_debug_printf_1): Remove.
755 (stop_all_threads): Use debug_prefixed_printf.
756 * infrun.h (infrun_debug_printf_1): Remove.
757 (infrun_debug_printf): Use debug_prefixed_printf.
758 (displaced_debug_printf_1): Remove.
759 (displaced_debug_printf): Use debug_prefixed_printf.
760 * linux-nat.c (linux_nat_debug_printf_1): Remove.
761 (linux_nat_debug_printf): Use debug_prefixed_printf.
762
ad6dba1c
SM
7632020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
764
765 * configure: Re-generate.
766 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
767 AC_LANG_PROGRAM.
768
b6fb30ed
SM
7692020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * configure: Re-generate.
772
5164c117
SM
7732020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
774
775 * configure: Re-generate.
776
864ca435
SM
7772020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
778
779 * configure: Re-generate.
780
b9442ec1
SM
7812020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
782
783 * configure: Re-generate.
784
294f2697
SM
7852020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
786
787 * acinclude.m4: Modernize.
788 * configure: Re-generate.
789
5593a99a
SM
7902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
791
792 * configure.ac: Modernize.
793 * configure: Re-generate.
794
e41fda1d
SM
7952020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
796
797 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
798 * configure: Re-generate.
799 * configure.ac: Remove AM_PROG_CC_STDC.
800
91e1a0ed
SM
8012020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
804 AC_CANONICAL_SYSTEM.
805 * configure: Re-generate.
806
136821d9
SM
8072020-10-30 Simon Marchi <simon.marchi@efficios.com>
808
809 * infrun.h (displaced_debug_printf): New macro. Replace
810 displaced debug prints throughout to use it.
811 (displaced_debug_printf_1): New declaration.
812 (displaced_step_dump_bytes): Return string, remove ui_file
813 parameter, update all callers.
814 * infrun.c (displaced_debug_printf_1): New function.
815 (displaced_step_dump_bytes): Return string, remove ui_file
816 parameter
817
aa2045e7
SM
8182020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
819
820 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
821
b1ec2735
TT
8222020-10-30 Tom Tromey <tromey@adacore.com>
823
824 * Makefile.in (stamp-init): Depend on config.status.
825
b78b3a29
TBA
8262020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
827
828 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
829
d70bdd3c
PA
8302020-10-30 Pedro Alves <pedro@palves.net>
831
832 * thread.c (lookup_selected_frame): Move ...
833 * frame.c (lookup_selected_frame): ... here.
834
79952e69
PA
8352020-10-30 Pedro Alves <pedro@palves.net>
836
837 * blockframe.c (block_innermost_frame): Use get_selected_frame.
838 * frame.c
839 (scoped_restore_selected_frame::scoped_restore_selected_frame):
840 Use save_selected_frame. Save language as well.
841 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
842 Use restore_selected_frame, and restore language as well.
843 (selected_frame_id, selected_frame_level): New.
844 (selected_frame): Update comments.
845 (save_selected_frame, restore_selected_frame): New.
846 (get_selected_frame): Use lookup_selected_frame.
847 (get_selected_frame_if_set): Delete.
848 (select_frame): Record selected_frame_level and selected_frame_id.
849 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
850 fields.
851 (get_selected_frame): Make 'message' parameter optional.
852 (get_selected_frame_if_set): Delete declaration.
853 (select_frame): Update comments.
854 (save_selected_frame, restore_selected_frame)
855 (lookup_selected_frame): Declare.
856 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
857 * infrun.c (struct infcall_control_state) <selected_frame_level>:
858 New field.
859 (save_infcall_control_state): Use save_selected_frame.
860 (restore_selected_frame): Delete.
861 (restore_infcall_control_state): Use restore_selected_frame.
862 * stack.c (select_frame_command_core, frame_command_core): Use
863 get_selected_frame.
864 * thread.c (restore_selected_frame): Rename to ...
865 (lookup_selected_frame): ... this and make extern. Select the
866 current frame if the frame level is -1.
867 (scoped_restore_current_thread::restore): Also restore the
868 language.
869 (scoped_restore_current_thread::~scoped_restore_current_thread):
870 Don't try/catch.
871 (scoped_restore_current_thread::scoped_restore_current_thread):
872 Save the language as well. Use save_selected_frame.
873
58103c33
SM
8742020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
875
876 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
877 documentation.
878 * gdbarch.h: Re-generate.
879
40a53766
SM
8802020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
881
882 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
883 parameter.
884 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
885 Likewise.
886 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
887 Likewise.
888 * arch-utils.c (default_displaced_step_hw_singlestep):
889 Likewise.
890 * arch-utils.h (default_displaced_step_hw_singlestep):
891 Likewise.
892 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
893 Likewise.
894 * s390-tdep.c (s390_displaced_step_hw_singlestep):
895 Likewise.
896 * gdbarch.c: Re-generate.
897 * gdbarch.h: Re-generate.
898 * infrun.c (resume_1): Adjust.
899
8407f91b
TT
9002020-10-29 Tom Tromey <tom@tromey.com>
901
902 * progspace.c (program_space::~program_space): Don't call
903 exec_close.
904
5008b3b2
TT
9052020-10-29 Tom Tromey <tom@tromey.com>
906
907 * exec.c (exec_target::close): Don't change current program
908 space.
909
d9eebde0
TT
9102020-10-29 Tom Tromey <tom@tromey.com>
911
912 * symfile.c (add_symbol_file_command): Update.
913 * exec.c (program_space::add_target_sections): Rename.
914 * symfile-mem.c (symbol_file_add_from_memory): Update.
915 * progspace.h (struct program_space) <add_target_sections>:
916 Declare new overload.
917 * exec.h (add_target_sections_of_objfile): Don't declare.
918
3769e227
TT
9192020-10-29 Tom Tromey <tom@tromey.com>
920
921 * solib.c (solib_map_sections): Update.
922 * exec.c (program_space::add_target_sections): Now a method.
923 (exec_file_attach): Update.
924 * exec.h (add_target_sections): Don't declare.
925 * progspace.h (struct program_space) <add_target_sections>:
926 Declare.
927
2a3f84af
TT
9282020-10-29 Tom Tromey <tom@tromey.com>
929
930 * progspace.h (struct program_space) <remove_target_sections>:
931 Declare.
932 * exec.c (program_space::remove_target_sections): Now a method.
933 * exec.h (remove_target_sections): Don't declare.
934
004eecfd
TT
9352020-10-29 Tom Tromey <tom@tromey.com>
936
937 * inferior.c (delete_inferior): Update.
938 * progspace.c (program_space::empty): Rename from
939 program_space_empty_p. Return bool.
940 * progspace.h (struct program_space) <empty>: New method.
941 (program_space_empty_p): Don't declare.
942
e39fb971
TT
9432020-10-29 Tom Tromey <tom@tromey.com>
944
945 * progspace.c (program_space::~program_space): Don't call
946 clear_program_space_solib_cache.
947 (program_space::clear_solib_cache): Rename from
948 clear_solib_cache.
949 * solib.c (handle_solib_event): Update.
950 * progspace.h (struct program_space) <clear_solib_cache>: New
951 method.
952 (clear_program_space_solib_cache): Don't declare.
953
a42d7dd8
TT
9542020-10-29 Tom Tromey <tom@tromey.com>
955
956 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
957 * target.c (info_target_command): Update.
958 * symfile.c (syms_from_objfile_1, finish_new_objfile)
959 (symbol_file_clear, reread_symbols): Update.
960 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
961 * stabsread.c (scan_file_globals): Update.
962 * solib.c (update_solib_list): Update.
963 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
964 (svr4_fetch_objfile_link_map, enable_break)
965 (svr4_relocate_main_executable)
966 (svr4_iterate_over_objfiles_in_search_order): Update.
967 * solib-frv.c (lm_base, enable_break)
968 (frv_relocate_main_executable): Update.
969 (main_got, frv_fdpic_find_canonical_descriptor): Update.
970 (frv_fetch_objfile_link_map): Update.
971 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
972 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
973 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
974 * remote.c (remote_target::get_offsets): Update.
975 (remote_target::start_remote)
976 (extended_remote_target::post_attach): Update.
977 * objfiles.c (entry_point_address_query): Update.
978 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
979 * minsyms.c (get_symbol_leading_char): Update.
980 * frame.c (inside_main_func): Update.
981 * progspace.h (symfile_objfile): Remove macro.
982
19f6550e
TT
9832020-10-29 Tom Tromey <tom@tromey.com>
984
985 * exec.c (exec_file_attach): Update.
986 * progspace.c (program_space::exec_close): Update.
987 * progspace.h (struct program_space) <ebfd>: Now a
988 gdb_bfd_ref_ptr.
989 <set_exec_bfd>: Change argument type.
990 <exec_bfd>: Update.
991
7e10abd1
TT
9922020-10-29 Tom Tromey <tom@tromey.com>
993
994 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
995 * symfile.c (reread_symbols): Update.
996 * symfile-mem.c (add_symbol_file_from_memory_command)
997 (add_vsyscall_page): Update.
998 * source-cache.c (source_cache::get_plain_source_lines): Update.
999 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1000 (svr4_current_sos_direct, svr4_exec_displacement)
1001 (svr4_relocate_main_executable): Update.
1002 (svr4_iterate_over_objfiles_in_search_order): Update.
1003 * solib-frv.c (enable_break2, enable_break): Update.
1004 * solib-dsbt.c (lm_base, enable_break): Update.
1005 * solib-darwin.c (find_program_interpreter)
1006 (darwin_solib_create_inferior_hook): Update.
1007 * sol-thread.c (rw_common, ps_pdmodel): Update.
1008 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1009 * remote.c (compare_sections_command)
1010 (remote_target::trace_set_readonly_regions): Update.
1011 * remote-sim.c (get_sim_inferior_data)
1012 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1013 (gdbsim_target_open, gdbsim_target::files_info): Update.
1014 * exec.h (exec_bfd): Remove macro.
1015 * progspace.c (initialize_progspace): Update.
1016 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1017 Update.
1018 * nto-procfs.c (nto_procfs_target::post_attach)
1019 (nto_procfs_target::create_inferior): Update.
1020 * maint.c (maintenance_info_sections): Update.
1021 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1022 Update.
1023 * infcmd.c (post_create_inferior): Update.
1024 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1025 (objfile_find_memory_regions): Update.
1026 * exec.c (validate_exec_file, exec_file_attach)
1027 (exec_read_partial_read_only, print_section_info): Update.
1028 * corelow.c (core_target_open): Update.
1029 * corefile.c (reopen_exec_file, validate_files): Update.
1030 * arm-tdep.c (gdb_print_insn_arm): Update.
1031 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1032 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1033 methods.
1034
b55221ab
TT
10352020-10-29 Tom Tromey <tom@tromey.com>
1036
1037 * progspace.h (current_target_sections): Remove macro.
1038 * solib-svr4.c (scan_dyntag): Update.
1039 * solib-dsbt.c (scan_dyntag): Update.
1040 * exec.c (exec_target::close): Update.
1041 (add_target_sections, add_target_sections_of_objfile)
1042 (remove_target_sections, exec_target::get_section_table)
1043 (exec_target::files_info, set_section_command)
1044 (exec_set_section_address, exec_target::has_memory)
1045 (exec_target::has_memory): Update.
1046
5a36e715
TT
10472020-10-29 Tom Tromey <tom@tromey.com>
1048
1049 * source-cache.c (source_cache::get_plain_source_lines): Use
1050 current_program_space.
1051 * corefile.c (reopen_exec_file): Use current_program_space.
1052 * exec.c (exec_file_attach): Use current_program_space.
1053 * exec.h (exec_bfd_mtime): Remove.
1054
784c8592
TT
10552020-10-29 Tom Tromey <tom@tromey.com>
1056
1057 * gcore.c (default_gcore_mach): Remove.
1058 (create_gcore_bfd): Update.
1059
8a4f1402
TT
10602020-10-29 Tom Tromey <tom@tromey.com>
1061
1062 * progspace.c (program_space::exec_close): New method, from
1063 exec_close in exec.c.
1064 * exec.c (exec_close): Move to progspace.c.
1065 (exec_target::close, exec_file_attach): Update.
1066 * progspace.h (struct program_space) <exec_close>: Declare
1067 method.
1068
c20cb686
TT
10692020-10-29 Tom Tromey <tom@tromey.com>
1070
1071 * progspace.h (struct program_space) <exec_filename>: Rename from
1072 pspace_exec_filename. Now a unique_xmalloc_ptr.
1073 * inferior.c (print_selected_inferior): Update.
1074 (print_inferior): Update.
1075 * mi/mi-main.c (print_one_inferior): Update.
1076 * exec.h (exec_filename): Remove macro.
1077 * corefile.c (get_exec_file): Update.
1078 * exec.c (exec_close): Update.
1079 (exec_file_attach): Update.
1080 * progspace.c (clone_program_space): Update.
1081 (print_program_space): Update.
1082
6be2a9ab
TT
10832020-10-29 Tom Tromey <tom@tromey.com>
1084
1085 * target-section.h (struct target_section): Add constructor.
1086 * exec.c (build_section_table, add_target_sections_of_objfile):
1087 Update.
1088 * corelow.c (core_target::build_file_mappings): Update.
1089
cfaa8f76
TBA
10902020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1091
1092 PR gdb/19318
1093 * inferior.c (detach_inferior_command): Restore the current thread.
1094 (kill_inferior_command): Ditto.
1095
1b00ef06
TV
10962020-10-28 Tom de Vries <tdevries@suse.de>
1097
1098 PR symtab/26772
1099 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1100 map, check it in the "best match" loop.
1101
7f40ce1a
SM
11022020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1103
1104 * m32c-tdep.c: Remove unused includes.
1105
5eb9e3f5
SM
11062020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1107
1108 * xtensa-tdep.c: Remove includes.
1109
b1d4d8d1
TBA
11102020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1111
1112 * breakpoint.c (struct condition_command_opts): New struct.
1113 (condition_command_option_defs): New static global.
1114 (make_condition_command_options_def_group): New function.
1115 (condition_completer): Update to consider the '-force' flag.
1116 (condition_command): Use gdb::option for the '-force' flag.
1117
bd24c5d6
TV
11182020-10-27 Tom de Vries <tdevries@suse.de>
1119
1120 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1121 symbols in section check.
1122
61eb46a4
TV
11232020-10-27 Tom de Vries <tdevries@suse.de>
1124
1125 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1126
733d554a
TBA
11272020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1128
1129 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1130 * breakpoint.c: Update the help text of the 'condition' and 'break'
1131 commands.
1132 (set_breakpoint_condition): Take a new bool parameter
1133 to control whether condition definition should be forced even when
1134 the condition expression is invalid in all of the current locations.
1135 (condition_command): Update the call to 'set_breakpoint_condition'.
1136 (find_condition_and_thread): Take the "-force-condition" flag into
1137 account.
1138 * linespec.c (linespec_keywords): Add "-force-condition" as an
1139 element.
1140 (FORCE_KEYWORD_INDEX): New #define.
1141 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1142 as a keyword.
1143 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1144 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1145 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1146 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1147
b5fa468f
TBA
11482020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1149
1150 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1151 * breakpoint.c (set_breakpoint_location_condition): New function.
1152 (set_breakpoint_condition): Disable a breakpoint location if parsing
1153 the condition string gives an error.
1154 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1155 (build_target_condition_list): Ditto.
1156 (build_target_command_list): Ditto.
1157 (build_bpstat_chain): Ditto.
1158 (print_one_breakpoint_location): Ditto.
1159 (print_one_breakpoint): Ditto.
1160 (breakpoint_1): Ditto.
1161 (bp_location::bp_location): Ditto.
1162 (locations_are_equal): Ditto.
1163 (update_breakpoint_locations): Ditto.
1164 (enable_disable_bp_num_loc): Ditto.
1165 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1166 (find_condition_and_thread_for_sals): New static function.
1167 (create_breakpoint): Call find_condition_and_thread_for_sals.
1168 (location_to_sals): Call find_condition_and_thread_for_sals instead
1169 of find_condition_and_thread.
1170
1c47ec3e
TV
11712020-10-26 Tom de Vries <tdevries@suse.de>
1172
1173 * dwarf2/read.c (process_full_comp_unit): Call
1174 dwarf2_find_base_address.
1175
6390859c
TT
11762020-10-26 Tom Tromey <tromey@adacore.com>
1177
1178 * gdbtypes.c (create_range_type): Revert previous patch. Add
1179 comment.
1180
d744f0f9
PA
11812020-10-26 Pedro Alves <pedro@palves.net>
1182
1183 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1184 (my_waitpid): Use gdb::handle_eintr.
1185
006811bc
SM
11862020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1187
1188 * acinclude.m4: Update ptrace.m4 path.
1189 * ptrace.m4: Moved to gdbsupport.
1190
c75e31a1
SM
11912020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1192
1193 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1194 instead of target_gdbarch.
1195
32495661
SM
11962020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1197
1198 * jit.c (jit_reader_load_command): Pass current inferior.
1199 (jit_inferior_init): Change parameter type to inferior, use it.
1200 (jit_inferior_created): Remove.
1201 (jit_inferior_created_hook): Pass inferior parameter down.
1202 (_initialize_jit): Use jit_inferior_created_hook instead of
1203 jit_inferior_created.
1204 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1205 * infrun.c (follow_exec): Pass inferior to
1206 jit_inferior_created_hook.
1207
3f66685e
SM
12082020-10-24 Simon Marchi <simon.marchi@efficios.com>
1209
1210 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1211 parameter and use it.
1212 (thread_db_inferior_created): Pass inferior argument.
1213
a0ff652f
SM
12142020-10-24 Simon Marchi <simon.marchi@efficios.com>
1215
1216 * aix-thread.c (aix_thread_inferior_created): Add inferior
1217 parameter.
1218 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1219 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1220 * jit.c (jit_inferior_created): Likewise.
1221 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1222 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1223 * observable.h (inferior_created): Likewise.
1224 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1225 * symfile-mem.c (add_vsyscall_page): Likewise.
1226 * infcmd.c (post_create_inferior): Pass inferior argument.
1227
3c67532c
JB
12282020-10-24 Joel Brobecker <brobecker@adacore.com>
1229
1230 GDB 10.1 released.
1231
8747316e
JB
12322020-10-23 Joel Brobecker <brobecker@adacore.com>
1233
1234 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1235 to ada_check_typedef.
1236
1a0ea399
AB
12372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 * f-exp.y (f_parse): Rename to...
1240 (f_language::parser): ...this.
1241 * f-lang.c (f_get_encoding): Rename to...
1242 (f_language::get_encoding): ...this.
1243 (f_op_print_tab): Rename to...
1244 (f_language::op_print_tab): ...this.
1245 (exp_descriptor_f): Rename to...
1246 (f_language::exp_descriptor_tab): ...this.
1247 (class f_language): Moved to f-lang.h.
1248 (f_language::language_arch_info): New function, moved out of class
1249 declaration.
1250 (f_language::search_name_hash): Likewise.
1251 (f_language::lookup_symbol_nonlocal): Likewise.
1252 (f_language::get_symbol_name_matcher_inner): Likewise.
1253 * f-lang.h: Add 'valprint.h' include.
1254 (class f_language): Moved here from f-lang.c.
1255 * f-typeprint.c (f_type_print_args): Delete commented out
1256 declaration.
1257 (f_print_typedef): Rename to...
1258 (f_language::print_typedef): ...this.
1259 (f_print_type): Rename to...
1260 (f_language::print_type): ...this.
1261 (f_type_print_varspec_prefix): Delete declaration and rename to...
1262 (f_language::f_type_print_varspec_prefix): ...this.
1263 (f_type_print_varspec_suffix): Delete declaration and rename to...
1264 (f_language::f_type_print_varspec_suffix): ...this.
1265 (f_type_print_base): Delete declaration and rename to...
1266 (f_language::f_type_print_base): ...this.
1267 * f-valprint.c (f_value_print_inner): Rename to...
1268 (f_language::value_print_inner): ...this.
1269 * parse.c: Delete 'f-lang.h' include.
1270
88cefd9b
AB
12712020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * language.h (language_defn::print_type): Add variable names in
1274 declaration, and update header comment.
1275
5399db93
AB
12762020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * ada-lang.c (ada_language::demangle): Rename to...
1279 (ada_language::demangle_symbol): ...this.
1280 * c-lang.c (cplus_language::demangle): Rename to...
1281 (cplus_language::demangle_symbol): ...this.
1282 * d-lang.c (d_language::demangle): Rename to...
1283 (d_language::demangle_symbol): ...this.
1284 * f-lang.c (f_language::demangle): Rename to...
1285 (f_language::demangle_symbol): ...this.
1286 * go-lang.c (go_language::demangle): Rename to...
1287 (go_language::demangle_symbol): ...this.
1288 * language.c (language_demangle): Update call to demangle_symbol.
1289 (auto_or_unknown_language::demangle): Rename to...
1290 (auto_or_unknown_language::demangle_symbol): ...this.
1291 * language.h (language_defn::demangle): Rename to...
1292 (language_defn::demangle_symbol): ...this.
1293 * objc-lang.c (objc_language::demangle): Rename to...
1294 (objc_language::demangle_symbol): ...this.
1295 * rust-lang.c (rust_language::demangle): Rename to...
1296 (rust_language::demangle_symbol): ...this.
1297
4b2f86ef
AB
12982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1301 (iterate_over_file_blocks): Replace use of macro with the macros
1302 definition.
1303
e74b39de
AB
13042020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1307 * valprint.c (maybe_print_array_index): Replace use of macro with
1308 the macros definition.
1309
00c696a6
AB
13102020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * ada-lang.c (ada_language::print_array_index): Call value_print
1313 directly.
1314 * language.c (language_defn::print_array_index): Likewise.
1315 * language.h (LA_VALUE_PRINT): Delete.
1316 * valprint.c (value_print): Call value_print on the
1317 current_language directly.
1318
d3b67c56
AB
13192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * language.h (LA_PRINT_TYPEDEF): Delete.
1322 * typeprint.c (typedef_print): Call print_typedef directly on the
1323 current_language object.
1324
790e2a12
AB
13252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * m2-exp.y (m2_parse): Rename to...
1328 (m2_language::parser): ...this. Update function signature.
1329 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1330 (m2_op_print): Rename to...
1331 (m2_language::op_print_tab): ...this, and make const.
1332 (exp_descriptor_modula2): Rename to...
1333 (m2_language::exp_descriptor_modula2): ...this.
1334 (class m2_language): Move to m2-lang.h.
1335 (m2_language::language_arch_info): New function, moved out of
1336 class declaration.
1337 (m2_language::printchar): New function, body from m2_printchar.
1338 (m2_language::printstr): New function, moved out of class
1339 declaration.
1340 (m2_language::emitchar): Likewise.
1341 * m2-lang.h (m2_parse): Delete declaration.
1342 (m2_print_typedef): Delete declaration.
1343 (m2_value_print_inner): Delete declaration.
1344 (class m2_language): Class declaration moved from m2-lang.c,
1345 larger functions are left in m2-lang.c.
1346 * m2-typeprint.c (m2_print_typedef): Rename to...
1347 (m2_language::print_typedef): ...this, and update function
1348 signature.
1349 * m2-valprint.c (m2_value_print_inner): Rename to...
1350 (m2_language::value_print_inner): ...this, replace use of
1351 LA_PRINT_STRING with a direct call to printstr member function,
1352 and update recursive call.
1353
b01175fc
AB
13542020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1355
1356 * language.c (default_is_string_type_p): Delete, implementation
1357 moved into auto_or_unknown_language::is_string_type_p.
1358 (unk_op_print_tab): Moved into
1359 auto_or_unknown_language::opcode_print_table.
1360 (unknown_language_arch_info): Delete, implementation moved into
1361 auto_or_unknown_language::language_arch_info.
1362 (class auto_or_unknown_language): New class, member functions
1363 copied from unknown_language class, with some updates.
1364 (class unknown_language): Most member functions moved into
1365 auto_or_unknown_language class. Inherit from
1366 auto_or_unknown_language class.
1367 (class auto_language): Inherit from auto_or_unknown_language.
1368 Delete most member functions.
1369
1a97fe8c
HD
13702020-10-22 Hannes Domani <ssbssa@yahoo.de>
1371
1372 * stabsread.c (read_member_functions): Remove gdb_assert.
1373
6b9d0dfd
HD
13742020-10-22 Hannes Domani <ssbssa@yahoo.de>
1375
1376 * gdbtypes.c (init_complex_type): Check target type name.
1377
4b4bb603
SM
13782020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1379
1380 * target-debug.h (target_debug_print_struct_target_ops_p):
1381 Remove.
1382 (target_debug_print_async_callback_ftype_p): Remove.
1383 (target_debug_print_struct_trace_state_variable_p): Remove.
1384 (target_debug_print_struct_traceframe_info_p): Remove.
1385 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1386 (target_debug_print_enum_btrace_format): Remove.
1387 (target_debug_print_enum_info_proc_what): Remove.
1388 (target_debug_print_thread_info_pp): Remove.
1389
24f5300a
SM
13902020-10-22 Simon Marchi <simon.marchi@efficios.com>
1391
1392 * target.h (struct target_ops) <make_corefile_notes>:
1393 Change return type to unique pointer.
1394 * target.c (dummy_make_corefile_notes): Likewise.
1395 * exec.c (struct exec_target) <make_corefile_notes>:
1396 Likewise.
1397 (exec_target::make_corefile_notes): Likewise.
1398 * procfs.c (class procfs_target) <make_corefile_notes>:
1399 Likewise.
1400 (procfs_do_thread_registers): Adjust to unique pointer.
1401 (struct procfs_corefile_thread_data): Add constructor.
1402 <note_data>: Change type to unique pointer.
1403 (procfs_corefile_thread_callback): Adjust to unique pointer.
1404 (procfs_target::make_corefile_notes): Change return type to
1405 unique pointer.
1406 * target-delegates.c: Re-generate.
1407 * gcore.c (write_gcore_file_1): Adjust.
1408 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1409 New.
1410
5fb4027f
TV
14112020-10-22 Tom de Vries <tdevries@suse.de>
1412
1413 * block.c (find_block_in_blockvector): Make sure the returned block
1414 contains pc.
1415
4a636814
SM
14162020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 PR gdb/26693
1419 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1420 parameter.
1421 (load_cu): Pass existing CU.
1422 (process_imported_unit_die): Likewise.
1423 (follow_die_offset): Likewise.
1424
1bd57575
LM
14252020-10-22 Luis Machado <luis.machado@linaro.org>
1426
1427 * corelow.c (core_target::xfer_partial): Also check for an empty
1428 m_core_unavailable_mappings vector.
1429
6b4c676c
AB
14302020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1433 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1434 * f-exp.y (arglist): Allow for a series of subranges.
1435 (subrange): Add cases for subranges with strides.
1436 * f-lang.c (value_f90_subarray): Catch use of array strides and
1437 throw an error.
1438 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1439
f2d8e4c5
AB
14402020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * expprint.c (print_subexp_standard): Change enum range_type to
1443 range_flag and rename variables to match.
1444 (dump_subexp_body_standard): Likewise.
1445 * expression.h (enum range_type): Rename to...
1446 (enum range_flag): ...this.
1447 (range_types): Rename to...
1448 (range_flags): ...this.
1449 * f-lang.c (value_f90_subarray): Change enum range_type to
1450 range_flag and rename variables to match.
1451 * parse.c (operator_length_standard): Likewise.
1452 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1453 range_type to range_flag.
1454 * rust-lang.c (rust_evaluate_funcall): Likewise.
1455 (rust_range): Likewise.
1456 (rust_compute_range): Likewise.
1457 (rust_subscript): Likewise.
1458
2f1b18db
AB
14592020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * expprint.c (print_subexp_standard): Update to reflect changes to
1462 enum range_type.
1463 (dump_subexp_body_standard): Likewise.
1464 * expression.h (enum range_type): Convert to a bit field enum, and
1465 make the enum unsigned.
1466 * f-exp.y (subrange): Update to reflect changes to enum
1467 range_type.
1468 * f-lang.c (value_f90_subarray): Likewise.
1469 * parse.c (operator_length_standard): Likewise.
1470 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1471 * rust-lang.c (rust_range): Likewise.
1472 (rust_compute_range): Likewise.
1473 (rust_subscript): Likewise.
1474
a46d1843
SM
14752020-10-21 Simon Marchi <simon.marchi@efficios.com>
1476
1477 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1478 (displaced_step_in_progress): Fix comment.
1479
c21f37a8
SM
14802020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1481
1482 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1483 * gdbarch.c: Re-generate.
1484 * gdbarch.h: Re-generate.
1485 * gcore.c (write_gcore_file_1): Adjust.
1486 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1487 constructor.
1488 <note_data>: Change type to unique pointer.
1489 <abort_iteration>: Change type to bool.
1490 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1491 (fbsd_collect_thread_registers): Return void, adjust.
1492 (struct fbsd_corefile_thread_data): Add construtor.
1493 <note_data>: Change type to unique pointer.
1494 (fbsd_corefile_thread): Adjust.
1495 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1496 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1497 to unique pointer, adjust.
1498 (struct linux_collect_regset_section_cb_data): Add constructor.
1499 <note_data>: Change type to unique pointer.
1500 <abort_iteration>: Change type to bool.
1501 (linux_collect_thread_registers): Return void, adjust.
1502 (struct linux_corefile_thread_data): Add constructor.
1503 <note_data>: Change type to unique pointer.
1504 (linux_corefile_thread): Adjust.
1505 (linux_make_corefile_notes): Return unique pointer, adjust.
1506
07fbbd01
SM
15072020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1510 * gdbarch.c: Re-generate.
1511 * gdbarch.h: Re-generate.
1512 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1513 bool.
1514 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1515 Likewise.
1516 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1517 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1518 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1519 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1520
39535193
SM
15212020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1522
1523 * gdbarch.sh: Make generated predicates return bool.
1524 * gdbarch.c: Re-generate.
1525 * gdbarch.h: Re-generate.
1526
ad523d01
TT
15272020-10-20 Tom Tromey <tom@tromey.com>
1528
1529 * varobj-iter.h (struct varobj_item): Remove typedef.
1530
c4464ade
SM
15312020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1532
1533 * infrun.c (currently_stepping): Change int to bool
1534 (maybe_software_singlestep): Likewise.
1535 (show_stop_on_solib_events): Likewise.
1536 (stepping_past_nonsteppable_watchpoint): Likewise.
1537 (displaced_step_in_progress_any_inferior): Likewise.
1538 (displaced_step_in_progress_thread): Likewise.
1539 (keep_going_stepped_thread): Likewise.
1540 (thread_still_needs_step_over): Likewise.
1541 (start_step_over): Likewise.
1542 (do_target_resume): Likewise.
1543 (resume_1): Likewise.
1544 (clear_proceed_status): Likewise.
1545 (thread_still_needs_step_over_bp): Likewise.
1546 (proceed): Likewise.
1547 (switch_back_to_stepped_thread): Likewise.
1548 (adjust_pc_after_break): Likewise.
1549 (stepped_in_from): Likewise.
1550 (handle_stop_requested): Likewise.
1551 (handle_syscall_event): Likewise.
1552 (handle_no_resumed): Likewise.
1553 (handle_inferior_event): Likewise.
1554 (finish_step_over): Likewise.
1555 (handle_signal_stop): Likewise.
1556 (process_event_stop_test): Likewise.
1557
2eb20436
SM
15582020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1559
1560 * infrun.c (get_displaced_stepping_state): Fix comment.
1561
e0c45ded
AS
15622020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1563
1564 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1565
22cc388e
TT
15662020-10-19 Tom Tromey <tromey@adacore.com>
1567
1568 PR tui/26719
1569 * tui/tui-winsource.h (struct tui_source_window_base)
1570 <refresh_window>: Rename from refresh_pad.
1571 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1572 Rename from refresh_pad.
1573 (tui_source_window_base::show_source_content)
1574 (tui_source_window_base::do_scroll_horizontal): Update.
1575
3c6eb4d4
TBA
15762020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1577
1578 * thread.c (_initialize_thread): Fine-tune the help text of
1579 'info threads'.
1580
26703721
TBA
15812020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1582
1583 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1584
61c26be8
MS
15852020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1586
1587 * breakpoint.c (handle_jit_event): Add an argument, change how
1588 `jit_event_handler` is called.
1589
932539d7
TT
15902020-10-17 Tom Tromey <tom@tromey.com>
1591
1592 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1593 (scan_xcoff_symtab): Update.
1594 * psymtab.h (class psymtab_storage) <global_psymbols,
1595 static_psymbols, current_global_psymbols,
1596 current_static_psymbols>: Remove.
1597 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1598 (match_partial_symbol, lookup_partial_symbol): Update.
1599 (print_partial_symbols): Change parameters.
1600 (dump_psymtab, recursively_search_psymtabs)
1601 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1602 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1603 (concat): Remove.
1604 (end_psymtab_common): Simplify.
1605 (append_psymbol_to_list): Change parameters.
1606 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1607 (init_psymbol_list): Simplify.
1608 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1609 * psympriv.h (struct partial_symtab) <empty>: New method.
1610 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1611 Remove.
1612 <global_psymbols, static_psymbols>: New members.
1613 <add_psymbol>: New methods.
1614 (add_psymbol_to_list): Don't declare.
1615 (psymbol_placement): Move earlier.
1616 * mdebugread.c (parse_partial_symbols): Update.
1617 (handle_psymbol_enumerators): Change parameters.
1618 (mdebug_expand_psymtab): Update.
1619 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1620 (add_partial_symbol): Update.
1621 * dwarf2/index-write.c (write_psymbols): Change parameters.
1622 (write_one_signatured_type): Update.
1623 (recursively_count_psymbols): Update.
1624 (recursively_write_psymbols): Update.
1625 (class debug_names) <recursively_write_psymbols>: Update.
1626 <write_psymbols>: Change parameters.
1627 <write_one_signatured_type>: Update.
1628 * dbxread.c (read_dbx_symtab): Update.
1629 (dbx_end_psymtab): Use partial_symtab::empty.
1630 * ctfread.c (struct ctf_context) <pst>: New member.
1631 (create_partial_symtab): Set it.
1632 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1633 (scan_partial_symbols): Use the psymtab's context. Update.
1634
cfabbd35
TT
16352020-10-17 Tom Tromey <tom@tromey.com>
1636
1637 * valprint.c (generic_value_print): Remove comment.
1638 * m2-valprint.c (m2_value_print_inner): Remove comment.
1639 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1640 type.
1641
520596f2
TV
16422020-10-17 Tom de Vries <tdevries@suse.de>
1643
1644 PR symtab/26317
1645 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1646 symbol main.
1647
76547ab3
TV
16482020-10-14 Tom de Vries <tdevries@suse.de>
1649
1650 PR gdb/26733
1651 * solib.c (solib_contains_address_p): Handle
1652 'solib->sections == nullptr'.
1653
d3a07122
SM
16542020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1655
1656 PR gdb/26642
1657 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1658 target can't do async.
1659 * target.c (target_wait): Assert that we don't pass
1660 TARGET_WNOHANG to a target that can't async.
1661
1b71cfcf
KR
16622020-10-13 Kamil Rytarowski <n54@gmx.com>
1663
1664 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1665 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1666 * alpha-bsd-nat.c: Adjust include.
1667 * alpha-bsd-tdep.h: Adjust comment.
1668 * alpha-nbsd-tdep.c: Rename to ...
1669 * alpha-netbsd-tdep.c: ... this, adjust include.
1670 * amd64-nbsd-nat.c: Rename to ...
1671 * amd64-netbsd-nat.c: ... this, adjust include.
1672 * amd64-nbsd-tdep.c: Rename to ...
1673 * amd64-netbsd-tdep.c: ... this, adjust include.
1674 * amd64-tdep.h: Adjust include.
1675 * arm-nbsd-nat.c: Rename to ...
1676 * arm-netbsd-nat.c: ... this, adjust include.
1677 * arm-nbsd-tdep.c: Rename to ...
1678 * arm-netbsd-tdep.c: ... this, adjust include.
1679 * arm-nbsd-tdep.h: Rename to ...
1680 * arm-netbsd-tdep.h: ... this, adjust include.
1681 * configure.nat: Adjust file lists.
1682 * configure.tgt: Likewise.
1683 * hppa-nbsd-nat.c: Rename to ...
1684 * hppa-netbsd-nat.c: ... this, adjust include.
1685 * hppa-nbsd-tdep.c: Rename to ...
1686 * hppa-netbsd-tdep.c: ... this, adjust include.
1687 * i386-nbsd-nat.c: Rename to ...
1688 * i386-netbsd-nat.c: ... this, adjust include.
1689 * i386-nbsd-tdep.c: Rename to ...
1690 * i386-netbsd-tdep.c: ... this, adjust include.
1691 * m68k-bsd-nat.c: Adjust include.
1692 * mips-nbsd-nat.c: Rename to ...
1693 * mips-netbsd-nat.c: ... this, adjust include.
1694 * mips-nbsd-tdep.c: Rename to ...
1695 * mips-netbsd-tdep.c: ... this, adjust include.
1696 * mips-nbsd-tdep.h: Rename to ...
1697 * mips-netbsd-tdep.h: ... this.
1698 * nbsd-nat.c: Rename to ...
1699 * netbsd-nat.c: ... this, adjust include.
1700 * nbsd-nat.h: Rename to ...
1701 * netbsd-nat.h: ... this, adjust include.
1702 * nbsd-tdep.c: Rename to ...
1703 * netbsd-tdep.c: ... this, adjust include.
1704 * nbsd-tdep.h: Rename to ...
1705 * netbsd-tdep.h: ... this.
1706 * ppc-nbsd-nat.c: Rename to ...
1707 * ppc-netbsd-nat.c: ... this, adjust include.
1708 * ppc-nbsd-tdep.c: Rename to ...
1709 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1710 * ppc-nbsd-tdep.h: Rename to ...
1711 * ppc-netbsd-tdep.h: ... this.
1712 * sh-nbsd-nat.c: Rename to ...
1713 * sh-netbsd-nat.c: ... this, adjust include.
1714 * sh-nbsd-tdep.c: Rename to ...
1715 * sh-netbsd-tdep.c: ... this, adjust include.
1716 * sparc-nbsd-nat.c: Rename to ...
1717 * sparc-netbsd-nat.c: ... this.
1718 * sparc-nbsd-tdep.c: Rename to ...
1719 * sparc-netbsd-tdep.c: ... this, adjust include.
1720 * sparc64-nbsd-nat.c: Rename to ...
1721 * sparc64-netbsd-nat.c: ... this.
1722 * sparc64-nbsd-tdep.c: Rename to ...
1723 * sparc64-netbsd-tdep.c: ... this, adjust include.
1724 * sparc64-tdep.h: Adjust comment.
1725 * vax-bsd-nat.c: Adjust include.
1726 * vax-nbsd-tdep.c: Rename to ...
1727 * vax-netbsd-tdep.c: ... this, adjust include.
1728
d7a78e5c
TT
17292020-10-12 Tom Tromey <tom@tromey.com>
1730
1731 * target.h (struct target_ops) <get_section_table>: Update.
1732 (target_get_section_table): Update.
1733 * target.c (target_get_section_table, target_section_by_addr)
1734 (memory_xfer_partial_1): Update.
1735 * target-section.h (target_section_table): Now an alias.
1736 * target-delegates.c: Rebuild.
1737 * target-debug.h (target_debug_print_target_section_table_p):
1738 Rename from target_debug_print_struct_target_section_table_p.
1739 * symfile.c (build_section_addr_info_from_section_table): Update.
1740 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1741 * solib-svr4.c (scan_dyntag): Update.
1742 * solib-dsbt.c (scan_dyntag): Update.
1743 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1744 Update.
1745 * record-full.c (record_full_core_target::xfer_partial): Update.
1746 * progspace.h (struct program_space) <target_sections>: Update.
1747 * exec.h (print_section_info): Update.
1748 * exec.c (exec_target::close, build_section_table)
1749 (add_target_sections, add_target_sections_of_objfile)
1750 (remove_target_sections, exec_on_vfork)
1751 (section_table_available_memory)
1752 (section_table_xfer_memory_partial)
1753 (exec_target::get_section_table, exec_target::xfer_partial)
1754 (print_section_info, set_section_command)
1755 (exec_set_section_address, exec_target::has_memory): Update.
1756 * corelow.c (core_target::build_file_mappings)
1757 (core_target::xfer_partial, core_target::info_proc_mappings)
1758 (core_target::info_proc_mappings): Update.
1759 * bfd-target.c (class target_bfd): Update
1760
eda214ce
TT
17612020-10-12 Tom Tromey <tom@tromey.com>
1762
1763 * progspace.c (program_space::~program_space): Don't call
1764 clear_section_table.
1765 * exec.h (clear_section_table): Don't declare.
1766 * exec.c (exec_target::close): Update.
1767 (clear_section_table): Remove.
1768
91840ee3
TT
17692020-10-12 Tom Tromey <tom@tromey.com>
1770
1771 * exec.c (add_target_sections_of_objfile): Simplify.
1772
2d128614
TT
17732020-10-12 Tom Tromey <tom@tromey.com>
1774
1775 * solib.c (solib_map_sections): Update.
1776 * record-full.c (record_full_core_open_1): Update.
1777 * exec.h (build_section_table): Return a target_section_table.
1778 * exec.c (exec_file_attach): Update.
1779 (build_section_table): Return a target_section_table.
1780 * corelow.c (core_target::core_target): Update.
1781 * bfd-target.c (target_bfd::target_bfd): Update.
1782
bb2a6777
TT
17832020-10-12 Tom Tromey <tom@tromey.com>
1784
1785 * target.c (target_section_by_addr, memory_xfer_partial_1):
1786 Update.
1787 * target-section.h (struct target_section_table): Use
1788 std::vector.
1789 * symfile.h (build_section_addr_info_from_section_table): Take a
1790 target_section_table.
1791 * symfile.c (build_section_addr_info_from_section_table): Take a
1792 target_section_table.
1793 * solist.h (struct so_list) <sections>: Change type.
1794 <sections_end>: Remove.
1795 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1796 (solib_contains_address_p): Update.
1797 * solib-svr4.c (scan_dyntag): Update.
1798 * solib-dsbt.c (scan_dyntag): Update.
1799 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1800 Update.
1801 * record-full.c (record_full_core_start, record_full_core_end):
1802 Remove.
1803 (record_full_core_sections): New global.
1804 (record_full_core_open_1, record_full_core_target::xfer_partial):
1805 Update.
1806 * exec.h (build_section_table, section_table_xfer_memory_partial)
1807 (add_target_sections): Take a target_section_table.
1808 * exec.c (exec_file_attach, clear_section_table): Update.
1809 (resize_section_table): Remove.
1810 (build_section_table, add_target_sections): Take a
1811 target_section_table.
1812 (add_target_sections_of_objfile, remove_target_sections)
1813 (exec_on_vfork): Update.
1814 (section_table_available_memory): Take a target_section_table.
1815 (section_table_read_available_memory): Update.
1816 (section_table_xfer_memory_partial): Take a target_section_table.
1817 (print_section_info, set_section_command)
1818 (exec_set_section_address, exec_target::has_memory): Update.
1819 * corelow.c (class core_target) <m_core_section_table,
1820 m_core_file_mappings>: Remove braces.
1821 <~core_target>: Remove.
1822 (core_target::core_target): Update.
1823 (core_target::~core_target): Remove.
1824 (core_target::build_file_mappings)
1825 (core_target::xfer_memory_via_mappings)
1826 (core_target::xfer_partial, core_target::info_proc_mappings):
1827 Update.
1828 * bfd-target.c (target_bfd::xfer_partial): Update.
1829 (target_bfd::target_bfd): Update.
1830 (target_bfd::~target_bfd): Remove.
1831
7b466b10
TT
18322020-10-12 Tom Tromey <tom@tromey.com>
1833
1834 * target.h (struct target_section, struct target_section_table):
1835 Move to target-section.h.
1836 * target-section.h: New file.
1837
87a37e5e
PA
18382020-10-12 Pedro Alves <pedro@palves.net>
1839
1840 PR exp/26602
1841 * valops.c (struct struct_field_searcher): New.
1842 (update_search_result): Rename to ...
1843 (struct_field_searcher::update_result): ... this. Simplify
1844 prototype. Record all found fields.
1845 (do_search_struct_field): Rename to ...
1846 (struct_field_searcher::search): ... this. Simplify prototype.
1847 Maintain stack of visited baseclass path. Call update_result for
1848 fields too. Keep searching fields in baseclasses instead of
1849 stopping at the first found field.
1850 (search_struct_field): Use struct_field_searcher. When looking
1851 for fields, report ambiguous access attempts.
1852
9370fd51
AB
18532020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1854
1855 * frame.c (inside_main_func): Check full symbols as well as
1856 minimal symbols.
1857
59c8a30b
JB
18582020-10-09 Joel Brobecker <brobecker@adacore.com>
1859
1860 * ada-lang.c (advance_wild_match): Rewrite the function's
1861 description. Change the type of target0, t0 and t1 to char.
1862
7c184d33
TT
18632020-10-09 Tom Tromey <tromey@adacore.com>
1864
1865 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1866
5c4258f4
TT
18672020-10-09 Tom Tromey <tromey@adacore.com>
1868
1869 * ada-lang.h (ada_encode): Return std::string.
1870 * ada-lang.c (ada_encode_1): Return std::string.
1871 (ada_encode): Likewise.
1872 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1873 Update.
1874 * ada-exp.y (block_lookup, write_var_or_type): Update.
1875
3d87245c
HD
18762020-10-09 Hannes Domani <ssbssa@yahoo.de>
1877
1878 PR exp/26714
1879 * printcmd.c (print_formatted): Handle void results as
1880 unformatted prints.
1881
bbb826f5
AB
18822020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * arch/aarch32.c (aarch32_create_target_description): Release the
1885 target_desc_up as late as possible.
1886 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1887 * arch/amd64.c (amd64_create_target_description): Likewise.
1888 * arch/arc.c (arc_create_target_description): Return a
1889 target_desc_up, don't release it.
1890 * arch/arc.h (arc_create_target_description): Update declaration.
1891 (arc_lookup_target_description): Move target_desc_up into the
1892 cache, and return a borrowed pointer.
1893 * arch/arm.c (arm_create_target_description): Release the
1894 target_desc_up as late as possible.
1895 * arch/i386.c (i386_create_target_description): Likewise.
1896 * arch/riscv.h (riscv_create_target_description): Update
1897 declaration to match definition.
1898 * arch/tic6x.c (tic6x_create_target_description): Release the
1899 target_desc_up as late as possible.
1900
361cb219
AB
19012020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1902
1903 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1904 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1905
f5c4b229
JV
19062020-10-09 Jan Vrany <jan.vrany@labware.com>
1907
1908 * source.c (directory_command): Notify observers that "directories"
1909 parameter has changed.
1910
b2701685
TT
19112020-10-08 Tom Tromey <tom@tromey.com>
1912
1913 * cli/cli-cmds.c (print_disassembly): Style function name and
1914 addresses. Add _() wrappers.
1915
ada508b6
SV
19162020-10-08 Shahab Vahedi <shahab@synopsys.com>
1917
1918 * NEWS: Mention ARC support in GDBserver.
1919
51a948fd
AB
19202020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1921
1922 * arch/aarch32.c (aarch32_create_target_description): Release
1923 unique_ptr returned from allocate_target_description.
1924 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1925 * arch/amd64.c (amd64_create_target_description): Likewise.
1926 * arch/arc.c (arc_create_target_description): Likewise.
1927 * arch/arm.c (arm_create_target_description): Likewise.
1928 * arch/i386.c (i386_create_target_description): Likewise.
1929 * arch/riscv.c (riscv_create_target_description): Update return
1930 type. Handle allocate_target_description returning a unique_ptr.
1931 (riscv_lookup_target_description): Update to handle unique_ptr.
1932 * arch/tic6x.c (tic6x_create_target_description): Release
1933 unique_ptr returned from allocate_target_description.
1934 * features/microblaze-with-stack-protect.c: Regenerate.
1935 * features/microblaze.c: Regenerate.
1936 * features/mips-dsp-linux.c: Regenerate.
1937 * features/mips-linux.c: Regenerate.
1938 * features/mips64-dsp-linux.c: Regenerate.
1939 * features/mips64-linux.c: Regenerate.
1940 * features/nds32.c: Regenerate.
1941 * features/nios2.c: Regenerate.
1942 * features/or1k.c: Regenerate.
1943 * features/rs6000/powerpc-32.c: Regenerate.
1944 * features/rs6000/powerpc-32l.c: Regenerate.
1945 * features/rs6000/powerpc-403.c: Regenerate.
1946 * features/rs6000/powerpc-403gc.c: Regenerate.
1947 * features/rs6000/powerpc-405.c: Regenerate.
1948 * features/rs6000/powerpc-505.c: Regenerate.
1949 * features/rs6000/powerpc-601.c: Regenerate.
1950 * features/rs6000/powerpc-602.c: Regenerate.
1951 * features/rs6000/powerpc-603.c: Regenerate.
1952 * features/rs6000/powerpc-604.c: Regenerate.
1953 * features/rs6000/powerpc-64.c: Regenerate.
1954 * features/rs6000/powerpc-64l.c: Regenerate.
1955 * features/rs6000/powerpc-7400.c: Regenerate.
1956 * features/rs6000/powerpc-750.c: Regenerate.
1957 * features/rs6000/powerpc-860.c: Regenerate.
1958 * features/rs6000/powerpc-altivec32.c: Regenerate.
1959 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1960 * features/rs6000/powerpc-altivec64.c: Regenerate.
1961 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1962 * features/rs6000/powerpc-e500.c: Regenerate.
1963 * features/rs6000/powerpc-e500l.c: Regenerate.
1964 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1965 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1966 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1967 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1968 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1969 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1970 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1971 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1972 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1973 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1974 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1975 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1976 * features/rs6000/powerpc-vsx32.c: Regenerate.
1977 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1978 * features/rs6000/powerpc-vsx64.c: Regenerate.
1979 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1980 * features/rs6000/rs6000.c: Regenerate.
1981 * features/rx.c: Regenerate.
1982 * features/s390-gs-linux64.c: Regenerate.
1983 * features/s390-linux32.c: Regenerate.
1984 * features/s390-linux32v1.c: Regenerate.
1985 * features/s390-linux32v2.c: Regenerate.
1986 * features/s390-linux64.c: Regenerate.
1987 * features/s390-linux64v1.c: Regenerate.
1988 * features/s390-linux64v2.c: Regenerate.
1989 * features/s390-te-linux64.c: Regenerate.
1990 * features/s390-tevx-linux64.c: Regenerate.
1991 * features/s390-vx-linux64.c: Regenerate.
1992 * features/s390x-gs-linux64.c: Regenerate.
1993 * features/s390x-linux64.c: Regenerate.
1994 * features/s390x-linux64v1.c: Regenerate.
1995 * features/s390x-linux64v2.c: Regenerate.
1996 * features/s390x-te-linux64.c: Regenerate.
1997 * features/s390x-tevx-linux64.c: Regenerate.
1998 * features/s390x-vx-linux64.c: Regenerate.
1999 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2000 from allocate_target_description.
2001 * target-descriptions.c (allocate_target_description): Update
2002 return type.
2003 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2004 allocate_target_description.
2005
485c47e5
TT
20062020-10-07 Tom Tromey <tromey@adacore.com>
2007
2008 * unittests/search-memory-selftests.c: New file.
2009 * Makefile.in (SELFTESTS_SRCS): Add
2010 unittests/search-memory-selftests.c.
2011
3a135a91
TT
20122020-10-07 Tom Tromey <tromey@adacore.com>
2013
2014 PR gdb/16930:
2015 * findcmd.c (_initialize_mem_search): Mention that the range is
2016 inclusive.
2017
4a72de73
TT
20182020-10-07 Tom Tromey <tromey@adacore.com>
2019
2020 * target.h (simple_search_memory): Don't declare.
2021 * target.c (simple_search_memory): Move to gdbsupport.
2022 (default_search_memory): Update.
2023 * remote.c (remote_target::search_memory): Update.
2024
a038ffd8
SM
20252020-10-07 Simon Marchi <simon.marchi@efficios.com>
2026
2027 * Makefile.in (COMPILE): Add CXXFLAGS.
2028 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2029 (check-headers): Add CXXFLAGS.
2030
cc463201
AK
20312020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2032
2033 * arc-linux-tdep.h: New file.
2034 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2035 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2036 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2037 arc_linux_gregset, arc_linux_v2_regset,
2038 arc_linux_iterate_over_regset_sections,
2039 arc_linux_core_read_description): Implement.
2040 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2041 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2042 (arc_gdbarch_features_create): Add.
2043 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2044
e4bd363f
SV
20452020-10-07 Shahab Vahedi <shahab@synopsys.com>
2046
2047 * arch/arc.h: Rename "arc_gdbarch_features" to
2048 "arc_arch_features".
2049 * arc-tdep.h: Likewise.
2050 * arc-tdep.c: Likewise.
2051
b68bef99
TBA
20522020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2053
2054 * infcmd.c (attach_command): Remove the redundant call to
2055 `clear_proceed_status`.
2056
4641551a
KR
20572020-10-07 Kamil Rytarowski <n54@gmx.com>
2058
2059 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2060
91e5e8db
KR
20612020-10-07 Kamil Rytarowski <n54@gmx.com>
2062
2063 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2064 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2065 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2066
64c03bdb
SM
20672020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2068
2069 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2070 (_initialize_break_catch_sig): Don't allocate array.
2071
31a8f60f
AB
20722020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * symtab.c (find_pc_line): Return unmapped addresses when the
2075 requested address is also unmapped.
2076
9e6dbd8b
SM
20772020-10-05 Simon Marchi <simon.marchi@efficios.com>
2078
2079 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2080 tui/tui-out.h.
2081
a1d217e8
SM
20822020-10-05 Simon Marchi <simon.marchi@efficios.com>
2083
2084 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2085 type::is_vector instead of TYPE_VECTOR.
2086
7d144117
SM
20872020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2088
2089 * auto-load.c (auto_load_objfile_script_1): Don't use
2090 debugfile_holder as temporary variable when stripping drive
2091 letter.
2092
cd096ec8
HD
20932020-10-05 Hannes Domani <ssbssa@yahoo.de>
2094
2095 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2096 Add TYPE_CODE_COMPLEX.
2097 (amd64_windows_return_value): Fix types returned via XMM0.
2098
b58e7f72
AH
20992020-10-05 Alan Hayward <alan.hayward@arm.com>
2100
2101 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2102 AArch64/ARM maintainers.
2103
8d378f27
SM
21042020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2105
2106 * NEWS: Mention set/show debug event-loop.
2107
d5519913
TT
21082020-10-02 Tom Tromey <tromey@adacore.com>
2109
2110 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2111 REG_EXTENDED.
2112
18b67edc
SM
21132020-10-02 Simon Marchi <simon.marchi@efficios.com>
2114
2115 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2116 * procfs.c (procfs_inferior_created): Remove.
2117 (_initialize_procfs): Don't register procfs_inferior_created.
2118
6b01403b
SM
21192020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2120
2121 * async-event.c (invoke_async_signal_handlers): Add debug
2122 print.
2123 (check_async_event_handlers): Likewise.
2124 * event-top.c (show_debug_event_loop): New function.
2125 (_initialize_event_top): Register "set debug event-loop"
2126 setting.
2127
ba988419
SM
21282020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2129
2130 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2131 * debug.h: Remove.
2132 * infrun.c: Include gdbsupport/common-debug.h.
2133 * linux-nat.c: Likewise.
2134
db20ebdf
SM
21352020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2136
2137 * async-event.h (create_async_signal_handler): Add name
2138 parameter.
2139 (create_async_event_handler): Likewise.
2140 * async-event.c (struct async_signal_handler) <name>: New field.
2141 (struct async_event_handler) <name>: New field.
2142 (create_async_signal_handler): Assign name.
2143 (create_async_event_handler): Assign name.
2144 * event-top.c (async_init_signals): Pass name when creating
2145 handler.
2146 * infrun.c (_initialize_infrun): Likewise.
2147 * record-btrace.c (record_btrace_push_target): Likewise.
2148 * record-full.c (record_full_open): Likewise.
2149 * remote-notif.c (remote_notif_state_allocate): Likewise.
2150 * remote.c (remote_target::open_1): Likewise.
2151 * tui/tui-win.c (tui_initialize_win): Likewise.
2152
2554f6f5
SM
21532020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2154
2155 * async-event.c (initialize_async_signal_handlers): Pass name to
2156 add_file_handler
2157 * event-top.c (ui_register_input_event_handler): Likewise.
2158 * linux-nat.c (linux_nat_target::async): Likewise.
2159 * run-on-main-thread.c (_initialize_run_on_main_thread):
2160 Likewise
2161 * ser-base.c (reschedule): Likewise.
2162 (ser_base_async): Likewise.
2163 * tui/tui-io.c: Likewise.
2164 * top.h (struct ui) <num>: New field.
2165 * top.c (highest_ui_num): New variable.
2166 (ui::ui): Initialize num.
2167
a7aba266
SM
21682020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2169
2170 * observable.h <inferior_created>: Remove parameters. Update all
2171 listeners.
2172 * inferior.h (post_create_inferior): Remove target parameter.
2173 Update all callers.
2174
048fde1e 21752020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2176
2177 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2178 and DW_MACRO_undef_strx.
2179 (dwarf_decode_macros): Likewise
2180 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2181 which is the value of DW_AT_str_offsets_base.
2182 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2183 str_offsets_base.
2184
064280be
KR
21852020-10-01 Kamil Rytarowski <n54@gmx.com>
2186
2187 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2188
6ff33035
KR
21892020-10-01 Kamil Rytarowski <n54@gmx.com>
2190
2191 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2192 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2193
1eb6eb79
KR
21942020-10-01 Kamil Rytarowski <n54@gmx.com>
2195
2196 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2197
95eb9e54
TV
21982020-09-30 Tom de Vries <tdevries@suse.de>
2199
2200 PR symtab/26683
2201 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2202
cae21f8e
TT
22032020-09-30 Tom Tromey <tromey@adacore.com>
2204
2205 * dwarf2/read.c (handle_variant): Use constant_value.
2206
529908cb
TT
22072020-09-29 Tom Tromey <tom@tromey.com>
2208
2209 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2210 (read_file_scope, dwarf2_get_pc_bounds)
2211 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2212 (read_structure_type, handle_struct_member_die)
2213 (read_enumeration_type, read_array_type, read_set_type)
2214 (read_tag_pointer_type, read_tag_reference_type)
2215 (read_subroutine_type, read_base_type, read_subrange_type)
2216 (read_full_die_1, partial_die_info::read)
2217 (partial_die_info::read, by, new_symbol)
2218 (dwarf2_const_value_data, dwarf2_const_value_attr)
2219 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2220 (prepare_one_comp_unit): Update.
2221 * dwarf2/attribute.h (DW_UNSND): Remove.
2222
c45bc3f8
TT
22232020-09-29 Tom Tromey <tom@tromey.com>
2224
2225 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2226 (read_subroutine_type, partial_die_info::read)
2227 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2228 (dwarf2_add_member_fn): Update.
2229 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2230 * dwarf2/attribute.c (attribute::as_boolean): New method.
2231
23dca5c3
TT
22322020-09-29 Tom Tromey <tom@tromey.com>
2233
2234 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2235 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2236 method.
2237 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2238
52c14d11
TT
22392020-09-29 Tom Tromey <tom@tromey.com>
2240
2241 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2242 the attribute's form.
2243
e8e5c158
TT
22442020-09-29 Tom Tromey <tom@tromey.com>
2245
2246 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2247 (dwarf2_add_member_fn): Update.
2248 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2249 * dwarf2/attribute.c (attribute::defaulted): New method, from
2250 is_valid_DW_AT_defaulted.
2251
d4df075e
TT
22522020-09-29 Tom Tromey <tom@tromey.com>
2253
2254 * dwarf2/read.c (dw2_get_file_names_reader)
2255 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2256 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2257 (dwarf2_symbol_mark_computed): Use as_unsigned.
2258 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2259 method.
2260 <form_is_section_offset>: Update comment.
2261
bf23a268
TT
22622020-09-29 Tom Tromey <tom@tromey.com>
2263
2264 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2265 dwarf2_default_access_attribute. Look up attribute.
2266 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2267 Update.
2268
7a5f294d
TT
22692020-09-29 Tom Tromey <tom@tromey.com>
2270
2271 * dwarf2/read.c (skip_one_die): Update.
2272 (read_full_die_1): Change how reprocessing is done.
2273 (partial_die_info::read): Update.
2274 (read_attribute_value): Remove need_reprocess parameter.
2275 (read_attribute): Likewise.
2276 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2277 New method.
2278
36d378cf
TT
22792020-09-29 Tom Tromey <tom@tromey.com>
2280
2281 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2282 (dwarf2_const_value_attr, dump_die_shallow)
2283 (dwarf2_fetch_constant_bytes): Update.
2284 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2285 comment.
2286 <set_address>: New method.
2287 (DW_ADDR): Remove.
2288 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2289 (attribute::as_string, attribute::as_address): Add assert.
2290
fe56917a
TT
22912020-09-29 Tom Tromey <tom@tromey.com>
2292
2293 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2294 (read_attribute_reprocess, read_attribute_value): Update.
2295 (read_attribute): Clear requires_reprocessing.
2296 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2297 form_requires_reprocessing>: New methods.
2298 <string_init>: Clear requires_reprocessing.
2299 <set_unsigned_reprocess>: New method.
2300 <name>: Shrink by one bit.
2301 <requires_reprocessing>: New member.
2302 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2303 method.
2304
414ad644
TT
23052020-09-29 Tom Tromey <tom@tromey.com>
2306
2307 * dwarf2/read.c (read_attribute_value): Update.
2308 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2309 set_unsigned>: New methods.
2310 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2311
1bc397c5
TT
23122020-09-29 Tom Tromey <tom@tromey.com>
2313
2314 * dwarf2/read.c (get_alignment, read_array_order)
2315 (read_attribute_value, dwarf2_const_value_attr)
2316 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2317 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2318 New methods.
2319 (DW_SND): Remove.
2320
630ed6b9
TT
23212020-09-29 Tom Tromey <tom@tromey.com>
2322
2323 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2324 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2325 Update.
2326 * dwarf2/attribute.h (struct attribute) <as_signature,
2327 set_signature>: New methods.
2328 (DW_SIGNATURE): Remove.
2329
9d2246fc
TT
23302020-09-29 Tom Tromey <tom@tromey.com>
2331
2332 * dwarf2/read.c (read_call_site_scope)
2333 (handle_data_member_location, dwarf2_add_member_fn)
2334 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2335 (partial_die_info::read, read_attribute_value)
2336 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2337 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2338 (dwarf2_symbol_mark_computed): Update.
2339 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2340 methods.
2341 (DW_BLOCK): Remove.
2342 * dwarf2/attribute.c (attribute::form_is_block): Add
2343 DW_FORM_data16.
2344
c6481205
TT
23452020-09-29 Tom Tromey <tom@tromey.com>
2346
2347 * dwarf2/read.c (read_cutu_die_from_dwo)
2348 (read_attribute_reprocess, read_attribute_value, read_attribute)
2349 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2350 (dwarf2_fetch_constant_bytes): Update.
2351 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2352 <set_string_noncanonical, set_string_canonical>: New methods.
2353 <string_is_canonical>: Update comment.
2354 <canonical_string_p>: Add assert.
2355 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2356 * dwarf2/attribute.c (attribute::form_is_string): New method.
2357 (attribute::string): Use it.
2358
3b64bf15
TT
23592020-09-29 Tom Tromey <tom@tromey.com>
2360
2361 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2362 (dump_die_shallow): Use canonical_string_p.
2363 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2364 method.
2365
2c830f54
TT
23662020-09-29 Tom Tromey <tom@tromey.com>
2367
2368 * dwarf2/read.c (partial_die_info::read)
2369 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2370 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2371 attribute::as_string.
2372
6c412691
TT
23732020-09-29 Tom Tromey <tom@tromey.com>
2374
2375 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2376 DW_ADDR.
2377 (attribute::string): Don't use DW_STRING.
2378 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2379 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2380
95f982e5
TT
23812020-09-29 Tom Tromey <tom@tromey.com>
2382
2383 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2384 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2385 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2386 * dwarf2/attribute.h (struct attribute): Rename methods.
2387 * dwarf2/attribute.c (attribute::as_address): Rename from
2388 value_as_address.
2389 (attribute::as_string): Rename from value_as_string.
2390
f800b00e
TT
23912020-09-29 Tom Tromey <tom@tromey.com>
2392
2393 * dwarf2/read.c (partial_die_info::read) <case
2394 DW_AT_linkage_name>: Use value_as_string.
2395 (dwarf2_string_attr): Use value_as_string.
2396 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2397 method.
2398 * dwarf2/attribute.c (attribute::value_as_string): New method.
2399
de38d64a
PA
24002020-09-29 Pedro Alves <pedro@palves.net>
2401
2402 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2403 defined before using '#pragma GCC diagnostic' instead of checking
2404 __clang__.
2405
9aed480c
TT
24062020-09-28 Tom Tromey <tom@tromey.com>
2407
2408 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2409 (handle_signal_stop): Update.
2410 * procfs.c (procfs_target::insert_watchpoint): Update.
2411 * target.h (target_have_steppable_watchpoint): Now a function.
2412
8a3ecb79
TT
24132020-09-28 Tom Tromey <tom@tromey.com>
2414
2415 * infrun.c (set_schedlock_func): Update.
2416 * target.h (target_can_lock_scheduler): Now a function.
2417
55f6301a
TT
24182020-09-28 Tom Tromey <tom@tromey.com>
2419
2420 * inferior.h (class inferior) <has_execution>: Update.
2421 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2422 * valops.c (find_function_in_inferior)
2423 (value_allocate_space_in_inferior): Update.
2424 * top.c (kill_or_detach): Update.
2425 * target.c (target_preopen, set_target_permissions): Update.
2426 (target_has_execution_current): Remove.
2427 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2428 Update.
2429 * solib.c (update_solib_list, reload_shared_libraries): Update.
2430 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2431 * solib-dsbt.c (enable_break): Update.
2432 * score-tdep.c (score7_fetch_inst): Update.
2433 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2434 Update.
2435 * remote.c (remote_target::start_remote)
2436 (remote_target::remote_check_symbols, remote_target::open_1)
2437 (remote_target::remote_detach_1, remote_target::verify_memory)
2438 (remote_target::xfer_partial, remote_target::read_description)
2439 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2440 * record-full.c (record_full_open_1): Update.
2441 * record-btrace.c (record_btrace_target_open): Update.
2442 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2443 (value_nsstring): Update.
2444 * linux-thread-db.c (add_thread_db_info)
2445 (thread_db_find_new_threads_silently, check_thread_db_callback)
2446 (try_thread_db_load_1, record_thread): Update.
2447 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2448 Update.
2449 * linux-fork.c (checkpoint_command): Update.
2450 * infrun.c (set_non_stop, set_observer_mode)
2451 (check_multi_target_resumption, for_each_just_stopped_thread)
2452 (maybe_remove_breakpoints, normal_stop)
2453 (class infcall_suspend_state): Update.
2454 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2455 (info_program_command, attach_command): Update.
2456 * infcall.c (call_function_by_hand_dummy): Update.
2457 * inf-loop.c (inferior_event_handler): Update.
2458 * gcore.c (gcore_command, derive_heap_segment): Update.
2459 * exec.c (exec_file_command): Update.
2460 * eval.c (evaluate_subexp): Update.
2461 * compile/compile.c (compile_to_object): Update.
2462 * cli/cli-dump.c (restore_command): Update.
2463 * breakpoint.c (update_watchpoint)
2464 (update_inserted_breakpoint_locations)
2465 (insert_breakpoint_locations, get_bpstat_thread): Update.
2466 * target.h (target_has_execution): Remove macro.
2467 (target_has_execution_current): Don't declare.
2468 (target_has_execution): Rename from target_has_execution_1. Add
2469 argument default.
2470
05374cfd
TT
24712020-09-28 Tom Tromey <tom@tromey.com>
2472
2473 * mi/mi-main.c (exec_reverse_continue)
2474 (mi_cmd_list_target_features): Update.
2475 * infrun.c (set_exec_direction_func): Update.
2476 * target.c (default_execution_direction): Update.
2477 * reverse.c (exec_reverse_once): Update.
2478 * target.h (target_can_execute_reverse): Now a function.
2479
9dccd06e
TT
24802020-09-28 Tom Tromey <tom@tromey.com>
2481
2482 * tui/tui-regs.c (tui_get_register)
2483 (tui_data_window::show_registers): Update.
2484 * thread.c (scoped_restore_current_thread::restore)
2485 (scoped_restore_current_thread::scoped_restore_current_thread):
2486 Update.
2487 * regcache-dump.c (regcache_print): Update.
2488 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2489 Update.
2490 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2491 * mep-tdep.c (current_me_module, current_options): Update.
2492 * linux-thread-db.c (thread_db_load): Update.
2493 * infcmd.c (registers_info, info_vector_command)
2494 (info_float_command): Update.
2495 * ia64-tdep.c (ia64_frame_prev_register)
2496 (ia64_sigtramp_frame_prev_register): Update.
2497 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2498 * gcore.c (derive_stack_segment): Update.
2499 * frame.c (get_current_frame, has_stack_frames): Update.
2500 * findvar.c (language_defn::read_var_value): Update.
2501 * arm-tdep.c (arm_pc_is_thumb): Update.
2502 * target.c (target_has_registers): Rename from
2503 target_has_registers_1.
2504 * target.h (target_has_registers): Remove macro.
2505 (target_has_registers): Rename from target_has_registers_1.
2506
841de120
TT
25072020-09-28 Tom Tromey <tom@tromey.com>
2508
2509 * windows-tdep.c (tlb_make_value): Update.
2510 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2511 * thread.c (scoped_restore_current_thread::restore)
2512 (scoped_restore_current_thread::scoped_restore_current_thread)
2513 (thread_command): Update.
2514 * stack.c (backtrace_command_1, frame_apply_level_command)
2515 (frame_apply_all_command, frame_apply_command): Update.
2516 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2517 Update.
2518 * gcore.c (derive_stack_segment): Update.
2519 * frame.c (get_current_frame, has_stack_frames): Update.
2520 * auxv.c (info_auxv_command): Update.
2521 * ada-tasks.c (ada_build_task_list): Update.
2522 * target.c (target_has_stack): Rename from target_has_stack_1.
2523 * target.h (target_has_stack): Remove macro.
2524 (target_has_stack): Rename from target_has_stack_1.
2525
a739972c
TT
25262020-09-28 Tom Tromey <tom@tromey.com>
2527
2528 * target.c (target_has_memory): Rename from target_has_memory_1.
2529 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2530 * thread.c (scoped_restore_current_thread::restore)
2531 (scoped_restore_current_thread::scoped_restore_current_thread):
2532 Update.
2533 * frame.c (get_current_frame, has_stack_frames): Update.
2534 * target.h (target_has_memory): Remove macro.
2535 (target_has_memory): Rename from target_has_memory_1.
2536
5b8a4776
TT
25372020-09-28 Tom Tromey <tom@tromey.com>
2538
2539 * target.c (target_has_all_memory_1): Remove.
2540 * target.h (target_has_all_memory): Remove define.
2541 (target_has_all_memory_1): Don't declare.
2542
bd356ec6
SM
25432020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2544
2545 * ser-base.c: Adjust comments formatting.
2546
2c72d5e5
TT
25472020-09-27 Tom Tromey <tom@tromey.com>
2548
2549 PR tui/25342:
2550 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2551
35a98237
TT
25522020-09-27 Tom Tromey <tom@tromey.com>
2553
2554 PR tui/25342:
2555 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2556
9e820dec
TT
25572020-09-27 Tom Tromey <tom@tromey.com>
2558
2559 * unittests/tui-selftests.c: Update.
2560 * tui/tui-winsource.h (struct tui_source_window_base)
2561 <extra_margin, show_line_number, refresh_pad>: New methods.
2562 <m_max_length, m_pad>: New members.
2563 (tui_copy_source_line): Update.
2564 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2565 first_col, line_width, ndigits parameters. Add length.
2566 (tui_source_window_base::show_source_line): Write to pad. Line
2567 number now 0-based.
2568 (tui_source_window_base::refresh_pad): New method.
2569 (tui_source_window_base::show_source_content): Write to pad. Call
2570 refresh_pad.
2571 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2572 not refill.
2573 (tui_source_window_base::update_exec_info): Call
2574 show_line_number.
2575 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2576 method.
2577 <m_digits>: New member.
2578 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2579 and m_max_length.
2580 (tui_source_window::show_line_number): New method.
2581 * tui/tui-io.h (tui_puts): Fix comment.
2582 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2583 m_max_length.
2584
c15c15c8
TT
25852020-09-27 Tom Tromey <tom@tromey.com>
2586
2587 * tui/tui-winsource.c
2588 (tui_source_window_base::set_is_exec_point_at): Don't call
2589 show_source_line.
2590
149830c1
TT
25912020-09-27 Tom Tromey <tom@tromey.com>
2592
2593 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2594 method.
2595 <erase>: Update.
2596 <cursor_x, cursor_y>: Remove.
2597 <m_inner_window>: New member.
2598 (tui_py_window::rerender): Create inner window.
2599 (tui_py_window::output): Write to inner window.
2600
8f9929bb
GR
26012020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2602
2603 PR python/26586
2604 * cli/cli-script.c (execute_control_commands): don't set
2605 instream to nullptr here as this breaks the from_tty argument
2606 to gdb.execute in Python.
2607 (execute_user_command): set instream to nullptr here instead.
2608
956bdb59
SM
26092020-09-25 Simon Marchi <simon.marchi@efficios.com>
2610
2611 * infrun.h (infrun_debug_printf): Fix formatting.
2612 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2613
3b93626b
SJ
26142020-09-25 Saagar Jha <saagar@saagarjha.com>
2615
2616 * compile/compile-object-load.h (struct munmap_list): Add
2617 explicitly-defined move constructor.
2618
b551a89f
TT
26192020-09-24 Tom Tromey <tromey@adacore.com>
2620
2621 PR tui/26638:
2622 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2623 method.
2624 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2625 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2626 (tui_prev_win): Rewrite.
2627
99bb393f
HD
26282020-09-23 Hannes Domani <ssbssa@yahoo.de>
2629
2630 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2631 in WOW64 processes as SIGINT.
2632 * nat/windows-nat.h: Make wow64_process a shared variable.
2633 * windows-nat.c: Remove static wow64_process variable.
2634
20a5fcbd
TT
26352020-09-23 Tom Tromey <tom@tromey.com>
2636
2637 PR symtab/25470:
2638 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2639 offset and bit size.
2640 * printcmd.c (print_scalar_formatted): Handle zero-length
2641 integer.
2642 (print_scalar_formatted): Use bit_size_differs_p.
2643 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2644 constant.
2645 (union type_specific): <int_stuff>: New member.
2646 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2647 methods.
2648 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2649 TYPE_SPECIFIC_FIELD.
2650 (recursive_dump_type, copy_type_recursive): Update.
2651 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2652 DW_AT_data_bit_offset.
2653
bac51ab7
TT
26542020-09-23 Tom Tromey <tom@tromey.com>
2655
2656 * utils.h (class gdb_argv): Add move operators.
2657 <append>: New methods.
2658 * compile/compile.c (build_argc_argv): Remove.
2659 (compile_args_argc): Remove.
2660 (compile_args_argv): Change type.
2661 (set_compile_args): Simplify.
2662 (append_args): Remove.
2663 (filter_args): Remove argcp parameter.
2664 (get_args): Return gdb_argv. Simplify.
2665 (compile_to_object): Update.
2666
92677124
TT
26672020-09-23 Tom Tromey <tom@tromey.com>
2668
2669 * compile/compile-object-run.c (do_module_cleanup)
2670 <~do_module_cleanup> :Remove.
2671 (do_module_cleanup): Update.
2672 * compile/compile-object-load.h (struct munmap_list): Add move
2673 assignment operator.
2674 <source_file>: Now a std::string.
2675 <munmap_list>: Rename. No longer a pointer.
2676 * compile/compile-object-load.c (struct setup_sections_data): Add
2677 constructor.
2678 <setup_one_section>: Declare.
2679 <munmap_list>: Move earlier.
2680 <m_bfd>: New member.
2681 <m_last_size, m_last_section_first, m_last_prot,
2682 m_last_max_alignment>: Rename, add initializers where needed.
2683 (setup_sections_data::setup_one_section): Rename from
2684 setup_sections. Update.
2685 (compile_object_load): Update. Don't use bfd_map_over_sections.
2686
e616f60a
TT
26872020-09-23 Tom Tromey <tom@tromey.com>
2688
2689 * compile/compile-object-run.c (struct do_module_cleanup): Add
2690 parameters to constructor. Update destructor.
2691 <source_file, scope, scope_data, out_value_type, out_value_addr,
2692 munmap_list_head, objfile_name_string>: Remove.
2693 <module>: New member.
2694 (do_module_cleanup): Update.
2695 (compile_object_run): Update.
2696
e947a848
TT
26972020-09-23 Tom Tromey <tom@tromey.com>
2698
2699 * compile/compile.c (eval_compile_command): Update.
2700 * compile/compile-object-run.h (compile_object_run): Take a
2701 compile_module_up.
2702 * compile/compile-object-run.c (compile_object_run): Take a
2703 compile_module_up.
2704 * compile/compile-object-load.h (struct compile_module): Add
2705 constructor, destructor.
2706 (compile_module_up): New typedef.
2707 (compile_object_load): Return compile_object_up.
2708 * compile/compile-object-load.c (compile_object_load): Return
2709 compile_module_up.
2710
0dbf6ee6
TT
27112020-09-23 Tom Tromey <tom@tromey.com>
2712
2713 * compile/compile-object-run.c (struct do_module_cleanup): Add
2714 constructor, destructor.
2715 <objfile_name_string>: Don't use struct hack.
2716 (do_module_cleanup): Use delete.
2717 (compile_object_run): Use new.
2718
ebe824f5
TT
27192020-09-23 Tom Tromey <tom@tromey.com>
2720
2721 * compile/compile-cplus-types.c
2722 (compile_cplus_convert_struct_or_union): Use std::vector.
2723 (compile_cplus_convert_func): Likewise.
2724 * compile/compile-c-types.c (convert_func): Use std::vector.
2725
5dd918d9
TT
27262020-09-21 Tom Tromey <tromey@adacore.com>
2727
2728 * sparc-tdep.c (sparc32_skip_prologue): Use
2729 skip_prologue_using_sal.
2730
5486c517
TT
27312020-09-19 Tom Tromey <tom@tromey.com>
2732
2733 * symfile.c (add_section_size_callback): Remove.
2734 (load_one_section): Rename from load_section_callback. Change
2735 parameters.
2736 (generic_load): Use foreach.
2737
8a6bb1d1
TT
27382020-09-19 Tom Tromey <tom@tromey.com>
2739
2740 * exec.c (add_to_section_table): Remove.
2741 (build_section_table): Use foreach.
2742
08f93a1a
TT
27432020-09-19 Tom Tromey <tom@tromey.com>
2744
2745 * elfread.c (elf_locate_sections): Change parameters.
2746 (elf_symfile_read): Use foreach.
2747
03cd72b8
TT
27482020-09-19 Tom Tromey <tom@tromey.com>
2749
2750 * cli/cli-dump.c (struct callback_data): Remove.
2751 (restore_one_section): Rename from restore_section_callback.
2752 Change parameters.
2753 (restore_binary_file): Change parameters.
2754 (restore_command): Use foreach.
2755
f4f2b85f
TT
27562020-09-19 Tom Tromey <tom@tromey.com>
2757
2758 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2759 (gcore_copy_callback): Likewise.
2760 (gcore_memory_sections): Use foreach.
2761
b35c1d1c
TT
27622020-09-19 Tom Tromey <tom@tromey.com>
2763
2764 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2765 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2766 parameters.
2767 (generic_elf_osabi_sniffer): Use foreach.
2768 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2769 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2770
5bb6e9dd
TT
27712020-09-19 Tom Tromey <tom@tromey.com>
2772
2773 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2774 (dwarf2_get_dwz_file): Use foreach.
2775 (dwarf2_locate_dwo_sections): Change parameters.
2776 (open_and_init_dwo_file): Use foreach.
2777 (dwarf2_locate_common_dwp_sections): Change parameters.
2778 (open_and_init_dwp_file): Use foreach.
2779
ad7277da
TT
27802020-09-19 Tom Tromey <tom@tromey.com>
2781
2782 * symfile.h: (find_lowest_section): Don't declare.
2783 * symfile.c (find_lowest_section): Now static. Change
2784 parameters.
2785 (struct place_section_arg): Remove.
2786 (place_section): Change parameters.
2787 (addr_info_make_relative): Use foreach.
2788 (symfile_dummy_outputs): Remove.
2789 (default_symfile_relocate): Use foreach.
2790
cb814f2e
TT
27912020-09-19 Tom Tromey <tom@tromey.com>
2792
2793 * objfiles.c (add_to_objfile_sections): Rename from
2794 add_to_objfile_sections_full.
2795 (add_to_objfile_sections): Remove.
2796 (build_objfile_section_table): Use foreach.
2797
3cabfd26
TT
27982020-09-19 Tom Tromey <tom@tromey.com>
2799
2800 * stap-probe.c (get_stap_base_address_1): Remove.
2801 (get_stap_base_address): Use foreach.
2802
1ce51eb5
TT
28032020-09-19 Tom Tromey <tom@tromey.com>
2804
2805 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2806 parameters.
2807 (gdb_bfd_close_or_warn): Use foreach.
2808
a190fabb
TT
28092020-09-19 Tom Tromey <tom@tromey.com>
2810
2811 * corelow.c (add_to_thread_list): Change parameters.
2812 (core_target_open): Use foreach.
2813
cafb0d81
TT
28142020-09-19 Tom Tromey <tom@tromey.com>
2815
2816 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2817 existing function.
2818
c8d5abea
AB
28192020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2820
2821 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2822 for arrays.
2823
6d816919
AB
28242020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2825
2826 * eval.c: Remove 'f-lang.h' include.
2827 (value_f90_subarray): Moved to f-lang.c.
2828 (eval_call): Renamed to...
2829 (evaluate_subexp_do_call): ...this, is no longer static, header
2830 comment moved into header file.
2831 (evaluate_funcall): Update call to eval_call.
2832 (skip_undetermined_arglist): Moved to f-lang.c.
2833 (fortran_value_subarray): Likewise.
2834 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2835 moved to evaluate_subexp_f.
2836 (calc_f77_array_dims): Moved to f-lang.c
2837 * expprint.c (print_subexp_funcall): New function.
2838 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2839 moved to print_subexp_f, OP_FUNCALL uses new function.
2840 (dump_subexp_body_funcall): New function.
2841 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2842 moved to dump_subexp_f, OP_FUNCALL uses new function.
2843 * expression.h (evaluate_subexp_do_call): Declare.
2844 * f-lang.c (value_f90_subarray): Moved from eval.c.
2845 (skip_undetermined_arglist): Likewise.
2846 (calc_f77_array_dims): Likewise.
2847 (fortran_value_subarray): Likewise.
2848 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2849 (operator_length_f): Likewise.
2850 (print_subexp_f): Likewise.
2851 (dump_subexp_body_f): Likewise.
2852 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2853 declaration of this operation to here.
2854 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2855 support moved to operator_length_f.
2856 * parser-defs.h (dump_subexp_body_funcall): Declare.
2857 (print_subexp_funcall): Declare.
2858 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2859 fortran-operator.def.
2860
8c37706a
AB
28612020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * eval.c (fortran_value_subarray): New function, content is taken
2864 from...
2865 (evaluate_subexp_standard): ...here, in two places. Now arrays
2866 and strings both call the new function.
2867 (calc_f77_array_dims): Add header comment, handle strings.
2868
14f9473c
VC
28692020-09-18 Victor Collod <vcollod@nvidia.com>
2870
2871 PR gdb/26635
2872 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2873 (i386_analyze_prologue): Call i386_skip_endbr.
2874
b60cea74
TT
28752020-09-18 Tom Tromey <tromey@adacore.com>
2876
2877 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2878 (windows_nat_target::wait): Update.
2879 * target/wait.h (enum target_wait_flag): New. Use
2880 DEF_ENUM_FLAGS_TYPE.
2881 * target/target.h (target_wait): Change type of options.
2882 * target.h (target_options_to_string, default_target_wait):
2883 Update.
2884 (struct target_ops) <wait>: Change type of options.
2885 * target.c (target_wait, default_target_wait, do_option): Change
2886 type of "options".
2887 (target_options_to_string): Likewise.
2888 * target-delegates.c: Rebuild.
2889 * target-debug.h (target_debug_print_target_wait_flags): Rename
2890 from target_debug_print_options.
2891 * sol-thread.c (class sol_thread_target) <wait>: Update.
2892 (sol_thread_target::wait): Update.
2893 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2894 (rs6000_nat_target::wait): Update.
2895 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2896 Update.
2897 (remote_target::wait_ns, remote_target::wait_as): Change type of
2898 "options".
2899 (remote_target::wait): Update.
2900 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2901 (gdbsim_target::wait): Update.
2902 * record-full.c (class record_full_base_target) <wait>: Update.
2903 (record_full_wait_1): Change type of "options".
2904 (record_full_base_target::wait): Update.
2905 * record-btrace.c (class record_btrace_target) <wait>: Update.
2906 (record_btrace_target::wait): Update.
2907 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2908 Update.
2909 (ravenscar_thread_target::wait): Update.
2910 * procfs.c (class procfs_target) <wait>: Update.
2911 (procfs_target::wait): Update.
2912 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2913 * obsd-nat.c (obsd_nat_target::wait): Update.
2914 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2915 (nto_procfs_target::wait): Update.
2916 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2917 * nbsd-nat.c (nbsd_wait): Change type of "options".
2918 (nbsd_nat_target::wait): Update.
2919 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2920 (thread_db_target::wait): Update.
2921 * linux-nat.h (class linux_nat_target) <wait>: Update.
2922 * linux-nat.c (linux_nat_target::wait): Update.
2923 (linux_nat_wait_1): Update.
2924 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2925 "options".
2926 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2927 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2928 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2929 (go32_nat_target::wait): Update.
2930 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2931 * gnu-nat.c (gnu_nat_target::wait): Update.
2932 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2933 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2934 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2935 * darwin-nat.c (darwin_nat_target::wait): Update.
2936 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2937 (bsd_uthread_target::wait): Update.
2938 * aix-thread.c (class aix_thread_target) <wait>: Update.
2939 (aix_thread_target::wait): Update.
2940
0295dde6
AB
29412020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2942
2943 * compile/compile-object-run.c (create_copied_type_recursive): New
2944 function.
2945 (compile_object_run): Use new function.
2946
d3483b43
JT
29472020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2948
2949 * NEWS: Mention x86_64 Cygwin core file support.
2950
e7d612ad
JT
29512020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2952
2953 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2954 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2955
aff9d387
JT
29562020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2957
62a5151b
JT
2958 * windows-tdep.h: Add prototypes.
2959 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2960 (i386_windows_core_pid_to_str): Move and rename ...
2961 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2962 (windows_core_pid_to_str): ... and here.
2963 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2964
29652020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2966 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2967 (amd64_windows_init_abi_common): ... and register.
2968
7d155da3
JT
29692020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2970
2971 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2972 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2973
e8ef12b9
PA
29742020-09-18 Pedro Alves <pedro@palves.net>
2975
2976 PR gdb/26631
2977 * thread.c (thread_find_command): Switch inferior before calling
2978 target methods.
2979
c1e1314d
TT
29802020-09-17 Tom Tromey <tromey@adacore.com>
2981
2982 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2983 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2984 (tdesc_arch_data_up): New typedef.
2985 (tdesc_use_registers, tdesc_data_alloc): Update.
2986 (tdesc_data_cleanup): Don't declare.
2987 * target-descriptions.c (tdesc_data_alloc): Return a
2988 tdesc_arch_data_up.
2989 (tdesc_arch_data_deleter::operator()): Rename from
2990 tdesc_data_cleanup. Change argument type.
2991 (tdesc_use_registers): Change early_data to an rvalue reference.
2992 (tdesc_use_registers): Don't use delete.
2993 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2994 * s390-tdep.c (s390_gdbarch_init): Update.
2995 * rx-tdep.c (rx_gdbarch_init): Update.
2996 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2997 * riscv-tdep.c (riscv_gdbarch_init): Update.
2998 * or1k-tdep.c (or1k_gdbarch_init): Update.
2999 * nios2-tdep.c (nios2_gdbarch_init): Update.
3000 * nds32-tdep.c (nds32_gdbarch_init): Update.
3001 * mips-tdep.c (mips_gdbarch_init): Update.
3002 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3003 * m68k-tdep.c (m68k_gdbarch_init): Update.
3004 * i386-tdep.c (i386_gdbarch_init): Update.
3005 * arm-tdep.c (arm_gdbarch_init): Update.
3006 * arc-tdep.c (arc_tdesc_init): Update.
3007 (arc_gdbarch_init): Update.
3008 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3009
0363df3d
HD
30102020-09-17 Hannes Domani <ssbssa@yahoo.de>
3011
3012 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3013 for WOW64 processes.
3014
280a9412
TT
30152020-09-17 Tom Tromey <tom@tromey.com>
3016
3017 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3018
6108fd18
TT
30192020-09-17 Tom Tromey <tom@tromey.com>
3020
3021 * value.c (preserve_values): Update.
3022 * python/py-type.c (save_objfile_types): Update.
3023 * guile/scm-type.c (save_objfile_types): Update.
3024 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3025 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3026 * compile/compile-object-run.c (compile_object_run): Update.
3027
fa9b1164
TT
30282020-09-17 Tom Tromey <tom@tromey.com>
3029
3030 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3031 Remove.
3032 <m_table>: Now htab_up.
3033 * typeprint.c (typedef_hash_table::recursively_update)
3034 (typedef_hash_table::add_template_parameters)
3035 (typedef_hash_table::typedef_hash_table): Update.
3036 (typedef_hash_table::~typedef_hash_table): Remove.
3037 (typedef_hash_table::typedef_hash_table)
3038 (typedef_hash_table::find_global_typedef)
3039 (typedef_hash_table::find_typedef): Update.
3040
eb53f105
TT
30412020-09-17 Tom Tromey <tom@tromey.com>
3042
3043 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3044
7a8a5d47
TT
30452020-09-17 Tom Tromey <tom@tromey.com>
3046
3047 * linespec.c (class decode_compound_collector)
3048 <~decode_compound_collector>: Remove.
3049 <m_unique_syms>: Now htab_up.
3050 (decode_compound_collector::operator ()): Update.
3051 (class symtab_collector) <~symtab_collector>: Remove.
3052 <m_symtab_table>: Now htab_up.
3053 (symtab_collector::operator ()): Update.
3054
99032cfc
TT
30552020-09-17 Tom Tromey <tom@tromey.com>
3056
3057 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3058 (filename_seen_cache::clear): Update.
3059 (~filename_seen_cache): Remove.
3060 (filename_seen_cache::seen): Update.
3061 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3062 htab_up.
3063 <~filename_seen_cache>: Remove.
3064 <traverse>: Update.
3065
32580f6d
TT
30662020-09-17 Tom Tromey <tom@tromey.com>
3067
3068 * completer.c (completion_tracker::discard_completions)
3069 (completion_tracker::~completion_tracker)
3070 (completion_tracker::maybe_add_completion)
3071 (completion_tracker::remove_completion)
3072 (completion_tracker::recompute_lowest_common_denominator)
3073 (completion_tracker::build_completion_result): Update.
3074 * completer.h (class completion_tracker) <have_completions>:
3075 Update.
3076 <m_entries_hash>: Now htab_up.
3077
c1fb9836
TT
30782020-09-17 Tom Tromey <tom@tromey.com>
3079
3080 * breakpoint.c (ambiguous_names_p): Use htab_up.
3081
88f07206
TT
30822020-09-17 Tom Tromey <tom@tromey.com>
3083
3084 * auto-load.c (struct auto_load_pspace_info)
3085 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3086 <loaded_script_files, loaded_script_texts>: Change type to
3087 htab_up.
3088 (~auto_load_pspace_info) Remove.
3089 (init_loaded_scripts_info, maybe_add_script_file)
3090 (maybe_add_script_text, auto_load_info_scripts): Update.
3091
9519b2ee
TT
30922020-09-17 Tom Tromey <tromey@adacore.com>
3093
3094 * c-exp.y (name_obstack): Now static.
3095
d2cd4113
CC
30962020-09-17 Chungyi Chi <demonic@csie.io>
3097
3098 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3099
b650a282
SM
31002020-09-16 Simon Marchi <simon.marchi@efficios.com>
3101
3102 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3103 (add_solib_catchpoint): Likewise.
3104 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3105 to bool.
3106 (add_solib_catchpoint): Change int parameter/variable to bool.
3107 (catch_load_or_unload): Likewise.
3108 (init_catchpoint): Likewise.
3109 (create_fork_vfork_event_catchpoint): Likewise.
3110 (catch_fork_command_1): Likewise.
3111 (catch_exec_command_1): Likewise.
3112
4d0bcfcf
SM
31132020-09-16 Simon Marchi <simon.marchi@efficios.com>
3114
3115 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3116 Change instance_flags to m_instance_flags.
3117
fe830662
TT
31182020-09-16 Tom Tromey <tromey@adacore.com>
3119
3120 PR gdb/26598:
3121 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3122
fe5ddfc3
JB
31232020-09-16 John Baldwin <jhb@FreeBSD.org>
3124
3125 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3126 PL_FLAG_EXEC.
3127 (fbsd_nat_target::insert_exec_catchpoint)
3128 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3129 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3130 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3131
e911c666
JB
31322020-09-16 John Baldwin <jhb@FreeBSD.org>
3133
3134 * configure.ac: Remove check for kinfo_getvmmap().
3135 * configure, config.in: Regenerate.
3136 * fbsd-nat.c (fbsd_read_mapping): Remove
3137 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3138 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3139 kinfo_get_vmmap() are always present.
3140
1f17d372
JB
31412020-09-16 John Baldwin <jhb@FreeBSD.org>
3142
3143 * fbsd-nat.c: Always include support for
3144 TARGET_OBJECT_SIGNAL_INFO.
3145
bcb1da7f
JB
31462020-09-16 John Baldwin <jhb@FreeBSD.org>
3147
3148 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3149 sysctl and remove procfs fallback.
3150
5515f729
JB
31512020-09-16 John Baldwin <jhb@FreeBSD.org>
3152
3153 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3154 * fbsd-nat.h: Likewise.
3155
da1df1db
TBA
31562020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3157
3158 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3159 argument.
3160
0e25e767
AB
31612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3162
3163 * ada-lang.c (ada_language_data): Delete.
3164 (ada_language): Remove references to ada_language_data.
3165 * c-lang.c (c_language_data): Delete.
3166 (c_language): Remove references to c_language_data.
3167 (cplus_language_data): Delete.
3168 (cplus_language): Remove references to cplus_language_data.
3169 (asm_language_data): Delete.
3170 (asm_language): Remove references to asm_language_data.
3171 (minimal_language_data): Delete.
3172 (minimal_language): Remove references to minimal_language_data.
3173 * d-lang.c (d_language_data): Delete.
3174 (d_language): Remove references to d_language_data.
3175 * f-lang.c (f_language_data): Delete.
3176 (f_language): Remove references to f_language_data.
3177 * go-lang.c (go_language_data): Delete.
3178 (go_language): Remove references to go_language_data.
3179 * language.c (unknown_language_data): Delete.
3180 (unknown_language): Remove references to unknown_language_data.
3181 (auto_language_data): Delete.
3182 (auto_language): Remove references to auto_language_data.
3183 * language.h (language_data): Delete struct.
3184 (language_defn): No longer inherit from language_data.
3185 * m2-lang.c (m2_language_data): Delete.
3186 (m2_language): Remove references to m2_language_data.
3187 * objc-lang.c (objc_language_data): Delete.
3188 (objc_language): Remove references to objc_language_data.
3189 * opencl-lang.c (opencl_language_data): Delete.
3190 (opencl_language): Remove references to opencl_language_data.
3191 * p-lang.c (pascal_language_data): Delete.
3192 (pascal_language): Remove references to pascal_language_data.
3193 * rust-lang.c (rust_language_data): Delete.
3194 (rust_language): Remove references to rust_language_data.
3195
b7c6e27d
AB
31962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3197
3198 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3199 initializer.
3200 (ada_language::opcode_print_table): New member function.
3201 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3202 (c_language::opcode_print_table): New member function.
3203 (cplus_language_data): Remove la_op_print_tab initializer.
3204 (cplus_language::opcode_print_table): New member function.
3205 (asm_language_data): Remove la_op_print_tab initializer.
3206 (asm_language::opcode_print_table): New member function.
3207 (minimal_language_data): Remove la_op_print_tab initializer.
3208 (minimal_language::opcode_print_table): New member function.
3209 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3210 (d_language::opcode_print_table): New member function.
3211 * expprint.c (print_subexp_standard): Update call to
3212 opcode_print_table.
3213 (op_string): Likewise.
3214 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3215 (f_language::opcode_print_table): New member function.
3216 * go-lang.c (go_language_data): Remove la_op_print_tab
3217 initializer.
3218 (go_language::opcode_print_table): New member function.
3219 * language.c (unknown_language_data): Remove la_op_print_tab
3220 initializer.
3221 (unknown_language::opcode_print_table): New member function.
3222 (auto_language_data): Remove la_op_print_tab initializer.
3223 (auto_language::opcode_print_table): New member function.
3224 * language.h (language_data): Remove la_op_print_tab field.
3225 (language_defn::opcode_print_table): Declare new member function.
3226 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3227 initializer.
3228 (m2_language::opcode_print_table): New member function.
3229 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3230 initializer.
3231 (objc_language::opcode_print_table): New member function.
3232 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3233 initializer.
3234 (opencl_language::opcode_print_table): New member function.
3235 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3236 initializer.
3237 (pascal_language::opcode_print_table): New member function.
3238 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3239 initializer.
3240 (rust_language::opcode_print_table): New member function.
3241
5aba6ebe
AB
32422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3243
3244 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3245 (ada_language::expression_ops): New member function.
3246 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3247 (c_language::expression_ops): New member function.
3248 (cplus_language_data): Remove la_exp_desc initializer.
3249 (cplus_language::expression_ops): New member function.
3250 (asm_language_data): Remove la_exp_desc initializer.
3251 (asm_language::expression_ops): New member function.
3252 (minimal_language_data): Remove la_exp_desc initializer.
3253 (minimal_language::expression_ops): New member function.
3254 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3255 (d_language::expression_ops): New member function.
3256 * eval.c (evaluate_subexp): Update call to expression_ops.
3257 * expprint.c (print_subexp): Likewise.
3258 (op_name): Likewise.
3259 (dump_subexp_body): Likewise.
3260 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3261 (f_language::expression_ops): New member function.
3262 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3263 (go_language::expression_ops): New member function.
3264 * language.c (language_defn::expression_ops): New function.
3265 (unknown_language_data): Remove la_exp_desc initializer.
3266 (auto_language_data): Likewise.
3267 * language.h (language_data): Remove la_exp_desc field.
3268 (language_defn::expression_ops): Declare new member function.
3269 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3270 (m2_language::expression_ops): New member function.
3271 * objc-lang.c (objc_language_data): Remove la_exp_desc
3272 initializer.
3273 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3274 initializer.
3275 (opencl_language::expression_ops): New member function.
3276 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3277 * parse.c (operator_length): Update call to expression_ops.
3278 (exp_iterate): Likewise.
3279 * rust-lang.c (rust_language_data): Remove la_exp_desc
3280 initializer.
3281 (ruse_language::expression_ops): New member function.
3282
b63a3f3f
AB
32832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3284
3285 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3286 initializer.
3287 (ada_language::varobj_ops): New member function.
3288 * c-lang.c (c_language_data): Remove la_varobj_ops
3289 initializer.
3290 (cplus_language_data): Likewise.
3291 (cplus_language::varobj_ops): New member function.
3292 (asm_language_data): Remove la_varobj_ops initializer.
3293 (minimal_language_data): Likewise.
3294 * d-lang.c (d_language_data): Likewise.
3295 * f-lang.c (f_language_data): Likewise.
3296 * go-lang.c (go_language_data): Likewise.
3297 * language.c (language_defn::varobj_ops): New function.
3298 (unknown_language_data): Remove la_varobj_ops
3299 initializer.
3300 (auto_language_data): Likewise.
3301 * language.h (language_data): Remove la_varobj_ops field.
3302 (language_defn::varobj_ops): Declare new member function.
3303 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3304 * objc-lang.c (objc_language_data): Likewise.
3305 * opencl-lang.c (opencl_language_data): Likewise.
3306 * p-lang.c (pascal_language_data): Likewise.
3307 * rust-lang.c (rust_language_data): Likewise.
3308 * varobj.c (varobj_create): Update call to varobj_ops.
3309 * varobj.h (default_varobj_ops): Delete define.
3310
1ac14a04
AB
33112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3312
3313 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3314 initializer.
3315 * c-lang.c (c_language_data): Likewise.
3316 (c_language::macro_expansion): New member function.
3317 (cplus_language_data): Likewise.
3318 (cplus_language::macro_expansion): New member function.
3319 (asm_language_data): Likewise.
3320 (asm_language::macro_expansion): New member function.
3321 (minimal_language_data): Likewise.
3322 (minimal_language::macro_expansion): New member function.
3323 * d-lang.c (d_language_data): Remove la_macro_expansion
3324 initializer.
3325 * f-lang.c (f_language_data): Likewise.
3326 * go-lang.c (go_language_data): Likewise.
3327 * language.c (unknown_language_data): Likewise.
3328 (auto_language_data): Likewise.
3329 * language.h (language_data): Remove la_macro_expansion field.
3330 (language_defn::macro_expansion): New member function.
3331 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3332 initializer.
3333 * objc-lang.c (objc_language_data): Likewise.
3334 (objc_language::macro_expansion): New member function.
3335 * opencl-lang.c (opencl_language_data): Likewise.
3336 (opencl_language::macro_expansion): New member function.
3337 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3338 initializer.
3339 * rust-lang.c (rust_language_data): Likewise.
3340 * symtab.c (default_collect_symbol_completion_matches_break_on):
3341 Update call to macro_expansion.
3342
3a3440fb
AB
33432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3344
3345 * ada-lang.c (ada_language_data): Remove la_array_ordering
3346 initializer.
3347 * c-lang.c (c_language_data): Likewise.
3348 (cplus_language_data): Likewise.
3349 (asm_language_data): Likewise.
3350 (minimal_language_data): Likewise.
3351 * d-lang.c (d_language_data): Likewise.
3352 * dwarf2/read.c (read_array_order): Update for call to
3353 array_ordering.
3354 * f-lang.c (f_language_data): Remove la_array_ordering
3355 initializer.
3356 (f_language::array_ordering): New member function.
3357 * go-lang.c (go_language_data): Remove la_array_ordering
3358 initializer.
3359 * language.c (unknown_language_data): Likewise.
3360 (auto_language_data): Likewise.
3361 * language.h (language_data): Delete la_array_ordering field.
3362 (language_defn::array_ordering): New member function.
3363 * m2-lang.c (m2_language_data): Remove la_array_ordering
3364 initializer.
3365 * objc-lang.c (objc_language_data): Likewise.
3366 * opencl-lang.c (opencl_language_data): Likewise.
3367 * p-lang.c (pascal_language_data): Likewise.
3368 * rust-lang.c (rust_language_data): Likewise.
3369
0d201fa4
AB
33702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3371
3372 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3373 initializer.
3374 * c-lang.c (c_language_data): Likewise.
3375 (cplus_language_data): Likewise.
3376 (asm_language_data): Likewise.
3377 (minimal_language_data): Likewise.
3378 * d-lang.c (d_language_data): Likewise.
3379 * f-lang.c (f_language_data): Likewise.
3380 (f_language::case_sensitivity): New member function.
3381 * go-lang.c (go_language_data): Remove la_case_sensitivity
3382 initializer.
3383 * language.c (enum case_mode): Moved here from language.h.
3384 (case_mode): Make static.
3385 (show_case_command): Update for case_sensitivity being a method.
3386 (set_case_command): Likewise.
3387 (set_range_case): Likewise.
3388 (unknown_language_data): Remove la_case_sensitivity initializer.
3389 (auto_language_data): Likewise.
3390 * language.h (case_mode): Delete, move enum declaration to
3391 language.c.
3392 (language_data): Delete la_case_sensitivity field.
3393 (language_defn::case_sensitivity): New member function.
3394 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3395 initializer.
3396 * objc-lang.c (objc_language_data): Likewise.
3397 * opencl-lang.c (opencl_language_data): Likewise.
3398 * p-lang.c (pascal_language_data): Likewise.
3399 * rust-lang.c (rust_language_data): Likewise.
3400
efdf6a73
AB
34012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3402
3403 * ada-lang.c (ada_language_data): Remove la_range_check
3404 initializer.
3405 * c-lang.c (c_language_data): Likewise.
3406 (cplus_language_data): Likewise.
3407 (asm_language_data): Likewise.
3408 (minimal_language_data): Likewise.
3409 * d-lang.c (d_language_data): Likewise.
3410 * f-lang.c (f_language_data): Likewise.
3411 (f_language::range_checking_on_by_default): New member function.
3412 * go-lang.c (go_language_data): Remove la_range_check initializer.
3413 * language.c (enum range_mode): Moved here from language.h.
3414 (range_mode): Made static.
3415 (show_range_command): Update to use
3416 range_checking_on_by_default.
3417 (set_range_command): Likewise.
3418 (set_range_case): Likewise.
3419 (unknown_language_data): Remove la_range_check initializer.
3420 (auto_language_data): Likewise.
3421 * language.h (range_mode): Delete. Enum definition moved to
3422 language.c.
3423 (language_data): Remove la_range_check field.
3424 (language_defn::range_checking_on_by_default): New member
3425 function.
3426 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3427 (m2_language::range_checking_on_by_default): New member function.
3428 * objc-lang.c (objc_language_data): Remove la_range_check
3429 initializer.
3430 * opencl-lang.c (opencl_language_data): Likewise.
3431 * p-lang.c (pascal_language_data): Likewise.
3432 (pascal_language::range_checking_on_by_default): New member
3433 function.
3434 * rust-lang.c (rust_language_data): Remove la_range_check
3435 initializer.
3436 (rust_language::range_checking_on_by_default): New member
3437 function.
3438
bf92aec5
AB
34392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3440
3441 * dwarf2/read.c (dwarf2_physname): Remove special case for
3442 language_go.
3443 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3444 member function.
3445
d3355e4d
AB
34462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3447
3448 * ada-lang.c (ada_language_data): Remove
3449 la_store_sym_names_in_linkage_form_p initializer.
3450 (ada_language::store_sym_names_in_linkage_form_p): New member
3451 function.
3452 * c-lang.c (c_language_data): Remove
3453 la_store_sym_names_in_linkage_form_p initializer.
3454 (c_language::store_sym_names_in_linkage_form_p): New member
3455 function.
3456 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3457 initializer.
3458 (asm_language_data): Likewise.
3459 (asm_language::store_sym_names_in_linkage_form_p): New member
3460 function.
3461 (minimal_language_data): Remove
3462 la_store_sym_names_in_linkage_form_p initializer.
3463 (minimal_language::store_sym_names_in_linkage_form_p): New member
3464 function.
3465 * d-lang.c (d_language_data): Remove
3466 la_store_sym_names_in_linkage_form_p initializer.
3467 * dwarf2/read.c (dwarf2_physname): Update call to
3468 store_sym_names_in_linkage_form_p.
3469 * f-lang.c (f_language_data): Remove
3470 la_store_sym_names_in_linkage_form_p initializer.
3471 * go-lang.c (go_language_data): Remove
3472 la_store_sym_names_in_linkage_form_p initializer.
3473 * language.c (unknown_language_data): Remove
3474 la_store_sym_names_in_linkage_form_p initializer.
3475 (unknown_language::store_sym_names_in_linkage_form_p): New member
3476 function.
3477 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3478 initializer.
3479 (auto_language::store_sym_names_in_linkage_form_p): New member
3480 function.
3481 * language.h (language_data): Remove
3482 la_store_sym_names_in_linkage_form_p member variable.
3483 (language_defn::store_sym_names_in_linkage_form_p): New member
3484 function.
3485 * m2-lang.c (m2_language_data): Remove
3486 la_store_sym_names_in_linkage_form_p initializer.
3487 * objc-lang.c (objc_language_data): Likewise.
3488 * opencl-lang.c (opencl_language_data): Likewise.
3489 * p-lang.c (pascal_language_data): Likewise.
3490 * rust-lang.c (rust_language_data): Likewise.
3491
22c12a6c
AB
34922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3493
3494 * ada-lang.c (ada_language_data): Remove string_lower_bound
3495 initializer.
3496 * c-lang.c (c_language_data): Likewise.
3497 (cplus_language_data): Likewise.
3498 (asm_language_data): Likewise.
3499 (minimal_language_data): Likewise.
3500 * d-lang.c (d_language_data): Likewise.
3501 * f-lang.c (f_language_data): Likewise.
3502 * go-lang.c (go_language_data): Likewise.
3503 * language.c (unknown_language_data): Likewise.
3504 (auto_language_data): Likewise.
3505 * language.h (language_data): Remove string_lower_bound field.
3506 (language_defn::string_lower_bound): New member function.
3507 * m2-lang.c (m2_language_data): Remove string_lower_bound
3508 initializer.
3509 (m2_language::string_lower_bound): New member function.
3510 * objc-lang.c (objc_language_data): Remove string_lower_bound
3511 initializer.
3512 * opencl-lang.c (opencl_language_data): Likewise.
3513 * p-lang.c (pascal_language_data): Likewise.
3514 * rust-lang.c (rust_language_data): Likewise.
3515 * valops.c (value_cstring): Update call to string_lower_bound.
3516 (value_string): Likewise.
3517 * value.c (allocate_repeated_value): Likewise.
3518
1c236ddd
AB
35192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3520
3521 * valops.c (value_repeat): Fix incorrect argument name in comment.
3522
67bd3fd5
AB
35232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3524
3525 * ada-lang.c (ada_language_data): Remove c_style_arrays
3526 initializer.
3527 (ada_language::c_style_arrays_p): New member fuction.
3528 * c-lang.c (c_language_data): Remove c_style_arrays
3529 initializer.
3530 (cplus_language_data): Likewise.
3531 (asm_language_data): Likewise.
3532 (minimal_language_data): Likewise.
3533 * d-lang.c (d_language_data): Likewise.
3534 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3535 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3536 (f_language::c_style_arrays_p): New member function.
3537 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3538 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3539 * language.c (unknown_language_data): Remove c_style_arrays
3540 initializer.
3541 (auto_language_data): Likewise.
3542 * language.h (language_data): Remove c_style_arrays field.
3543 (language_defn::c_style_arrays_p): New member function.
3544 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3545 (m2_language::c_style_arrays_p): New member function.
3546 * objc-lang.c (objc_language_data): Remove c_style_arrays
3547 initializer.
3548 * opencl-lang.c (opencl_language_data): Likewise.
3549 * p-lang.c (pascal_language_data): Likewise.
3550 * rust-lang.c (rust_language_data): Likewise.
3551 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3552 and update local variable to a bool.
3553 * valops.c (value_cast): Update call to c_style_arrays_p.
3554 (value_array): Likewise.
3555 * value.c (coerce_array): Likewise.
3556
85967615
AB
35572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3558
3559 * ada-lang.c (ada_language_data): Remove la_language initializer.
3560 * c-lang.c (c_language_data): Likewise.
3561 (cplus_language_data): Likewise.
3562 (asm_language_data): Likewise.
3563 (minimal_language_data): Likewise.
3564 * d-lang.c (d_language_data): Likewise.
3565 * f-lang.c (f_language_data): Likewise.
3566 * go-lang.c (go_language_data): Likewise.
3567 * language.c (unknown_language_data): Likewise.
3568 (auto_language_data): Likewise.
3569 * language.h (language_data): Remove la_language field.
3570 (language_defn::language_defn): Initialise la_language field.
3571 (language_defn::la_language): New member variable.
3572 * m2-lang.c (m2_language_data): Remove la_language field.
3573 * objc-lang.c (objc_language_data): Likewise.
3574 * opencl-lang.c (opencl_language_data): Likewise.
3575 * p-lang.c (pascal_language_data): Likewise.
3576 * rust-lang.c (rust_language_data): Likewise.
3577
e171d6f1
AB
35782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3579
3580 * ada-lang.c (ada_extensions): Delete, moved into
3581 ada_language::filename_extensions.
3582 (ada_language_data): Remove la_filename_extensions initializer.
3583 (ada_language::filename_extensions): New member function.
3584 * c-lang.c (c_extensions): Delete, moved into
3585 c_language::filename_extensions.
3586 (c_language_data): Remove la_filename_extensions initializer.
3587 (c_language::filename_extensions): New member function.
3588 (cplus_extensions): Delete, moved into
3589 cplus_language::filename_extensions.
3590 (cplus_language_data): Remove la_filename_extensions initializer.
3591 (cplus_language::filename_extensions): New member function.
3592 (asm_extensions): Delete, moved into
3593 asm_language::filename_extensions.
3594 (asm_language_data): Remove la_filename_extensions initializer.
3595 (asm_language::filename_extensions): New member function.
3596 (minimal_language_data): Remove la_filename_extensions
3597 initializer.
3598 * d-lang.c (d_extensions): Delete, moved into
3599 d_language::filename_extensions.
3600 (d_language_data): Remove la_filename_extensions initializer.
3601 (d_language::filename_extensions): New member function.
3602 * f-lang.c (f_extensions): Delete, moved into
3603 f_language::filename_extensions.
3604 (f_language_data): Remove la_filename_extensions initializer.
3605 (f_language::filename_extensions): New member function.
3606 * go-lang.c (go_language_data): Remove la_filename_extensions
3607 initializer.
3608 * language.c (add_set_language_command): Update now that
3609 filename_extensions returns a vector.
3610 (unknown_language_data): Remove la_filename_extensions
3611 initializer.
3612 (auto_language_data): Likewise.
3613 * language.h (language_data): Remove la_filename_extensions field.
3614 (language_defn::filename_extensions): New member function.
3615 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3616 initializer.
3617 * objc-lang.c (objc_extensions): Delete, moved into
3618 objc_language::filename_extensions.
3619 (objc_language_data): Remove la_filename_extensions initializer.
3620 (objc_language::filename_extensions): New member function.
3621 * opencl-lang.c (opencl_language_data): Remove
3622 la_filename_extensions initializer.
3623 * p-lang.c (pascal_extensions): Delete, moved into
3624 pascal_language::filename_extensions.
3625 (pascal_language_data): Remove la_filename_extensions initializer.
3626 (pascal_language::filename_extensions): New member function.
3627 * rust-lang.c (rust_extensions): Delete, moved into
3628 rust_language::filename_extensions.
3629 (rust_language_data): Remove la_filename_extensions initializer.
3630 (rust_language::filename_extensions): New member function.
3631 * symfile.c (add_filename_language): Add new assert.
3632
6f7664a9
AB
36332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3634
3635 * ada-lang.c (ada_language_data): Remove la_name and
3636 la_natural_name initializers.
3637 (ada_language::name): New member function.
3638 (ada_language::natural_name): New member function.
3639 * c-lang.c (c_language_data): Remove la_name and
3640 la_natural_name initializers.
3641 (c_language::name): New member function.
3642 (c_language::natural_name): New member function.
3643 (cplus_language_data): Remove la_name and
3644 la_natural_name initializers.
3645 (cplus_language::name): New member function.
3646 (cplus_language::natural_name): New member function.
3647 (asm_language_data): Remove la_name and
3648 la_natural_name initializers.
3649 (asm_language::name): New member function.
3650 (asm_language::natural_name): New member function.
3651 (minimal_language_data): Remove la_name and
3652 la_natural_name initializers.
3653 (minimal_language::name): New member function.
3654 (minimal_language::natural_name): New member function.
3655 * compile/compile.c (compile_to_object): Update call to
3656 lanugage_defn::name.
3657 * d-lang.c (d_language_data): Remove la_name and
3658 la_natural_name initializers.
3659 (d_language::name): New member function.
3660 (d_language::natural_name): New member function.
3661 * expprint.c (print_subexp_standard): Update call to
3662 language_defn::name.
3663 (dump_raw_expression): Likewise
3664 (dump_prefix_expression): Likewise.
3665 * f-lang.c (f_language_data): Remove la_name and
3666 la_natural_name initializers.
3667 (f_language::name): New member function.
3668 (f_language::natural_name): New member function.
3669 * go-lang.c (go_language_data): Remove la_name and
3670 la_natural_name initializers.
3671 (go_language::name): New member function.
3672 (go_language::natural_name): New member function.
3673 * language.c (show_language_command): Update call to
3674 language_defn::name.
3675 (set_language_command): Likewise.
3676 (language_enum): Likewise.
3677 (language_str): Likewise.
3678 (add_set_language_command): Likewise, use
3679 language_defn::natural_name in the doc string.
3680 (unknown_language_data): Remove la_name and
3681 la_natural_name initializers.
3682 (unknown_language::name): New member function.
3683 (unknown_language::natural_name): New member function.
3684 (auto_language_data): Remove la_name and
3685 la_natural_name initializers.
3686 (auto_language::name): New member function.
3687 (auto_language::natural_name): New member function.
3688 (language_lookup_primitive_type_as_symbol): Update call to
3689 language_defn::name.
3690 * language.h (language_data): Remove la_name and la_natural_name
3691 member variables.
3692 (language_defn::name): New member function.
3693 (language_defn::natural_name): New member function.
3694 * m2-lang.c (m2_language_data): Remove la_name and
3695 la_natural_name initializers.
3696 (m2_language::name): New member function.
3697 (m2_language::natural_name): New member function.
3698 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3699 language_defn::natural_name.
3700 * objc-lang.c (objc_language_data): Remove la_name and
3701 la_natural_name initializers.
3702 (objc_language::name): New member function.
3703 (objc_language::natural_name): New member function.
3704 * opencl-lang.c (opencl_language_data): Remove la_name and
3705 la_natural_name initializers.
3706 (opencl_language::name): New member function.
3707 (opencl_language::natural_name): New member function.
3708 * p-lang.c (pascal_language_data): Remove la_name and
3709 la_natural_name initializers.
3710 (pascal_language::name): New member function.
3711 (pascal_language::natural_name): New member function.
3712 * rust-lang.c (rust_language_data): Remove la_name and
3713 la_natural_name initializers.
3714 (rust_language::name): New member function.
3715 (rust_language::natural_name): New member function.
3716 * symtab.c (lookup_language_this): Update call to
3717 language_defn::name.
3718
5bae7c4e
AB
37192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3720
3721 * ada-lang.c (ada_language_data): Remove la_name_of_this
3722 initializer.
3723 * ax-gdb.c (gen_expr): Update call to name_of_this.
3724 * c-exp.y (classify_name): Likewise.
3725 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3726 (cplus_language_data): Likewise.
3727 (cplus_language::name_of_this): New member function.
3728 (asm_language_data): Remove la_name_of_this initializer.
3729 (minimal_language_data): Likewise.
3730 * d-lang.c (d_language_data): Likewise.
3731 (d_language::name_of_this): New member function.
3732 * expprint.c (print_subexp_standard): Update call to name_of_this.
3733 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3734 * go-lang.c (go_language_data): Likewise.
3735 * language.c (unknown_language_data): Likewise.
3736 (unknown_language::name_of_this): New member function.
3737 (auto_language_data): Remove la_name_of_this initializer.
3738 (auto_language::name_of_this): New member function.
3739 * language.h (language_data): Delete la_name_of_this member
3740 variable.
3741 (language_defn::name_of_this): New member function.
3742 * m2-lang.c (m2_language_data): Remove la_name_of_this
3743 initializer.
3744 * objc-lang.c (objc_language_data): Likewise.
3745 (objc_language::name_of_this): New member function.
3746 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3747 initializer.
3748 * p-lang.c (pascal_language_data): Likewise.
3749 (pascal_language::name_of_this): New member function.
3750 * rust-lang.c (rust_language_data): Remove la_name_of_this
3751 initializer.
3752 * symtab.c (lookup_language_this): Update call to name_of_this.
3753 (lookup_symbol_aux): Likewise.
3754 * valops.c (value_of_this): Likewise.
3755
22e3f3ed
AB
37562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3757
3758 * ada-lang.c (ada_language_data): Remove
3759 la_struct_too_deep_ellipsis initializer.
3760 (ada_language::struct_too_deep_ellipsis): New member function.
3761 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3762 initializer.
3763 (cplus_language_data): Likewise.
3764 (asm_language_data): Likewise.
3765 (minimal_language_data): Likewise.
3766 * cp-valprint.c (cp_print_value): Update call to
3767 struct_too_deep_ellipsis.
3768 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3769 initializer.
3770 * f-lang.c (f_language_data): Likewise.
3771 (f_language::struct_too_deep_ellipsis): New member function.
3772 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3773 initializer.
3774 * language.c (unknown_language_data): Likewise.
3775 (auto_language_data): Likewise.
3776 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3777 member variable.
3778 (language_defn::struct_too_deep_ellipsis): New member function.
3779 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3780 initializer.Q
3781 * objc-lang.c (objc_language_data): Likewise.
3782 * opencl-lang.c (opencl_language_data): Likewise.
3783 * p-lang.c (pascal_language_data): Likewise.
3784 * rust-lang.c (rust_language_data): Likewise.
3785 * valprint.c (val_print_check_max_depth): Update call to
3786 struct_too_deep_ellipsis.
3787
ed29e1c7
FW
37882020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3789
3790 * MAINTAINERS (Write After Approval): Add myself.
3791
12d8f940
TT
37922020-09-15 Tom Tromey <tom@tromey.com>
3793
3794 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3795 Remove.
3796
6b5a7bc7
TT
37972020-09-15 Tom Tromey <tom@tromey.com>
3798
3799 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3800 and TYPE_CODE_METHODPTR cases.
3801 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3802 (c_value_print_inner): Update.
3803 * valprint.c (generic_value_print_memberptr): New function, from
3804 c_value_print_memberptr.
3805 (generic_value_print): Use it. Call cplus_print_method_ptr.
3806
47f0e2ff
TT
38072020-09-15 Tom Tromey <tromey@adacore.com>
3808
3809 * python/python-internal.h (PyInt_FromLong): Remove define.
3810 * python/py-value.c (convert_value_from_python): Use
3811 gdb_py_object_from_longest.
3812 * python/py-type.c (typy_get_code): Use
3813 gdb_py_object_from_longest.
3814 * python/py-symtab.c (salpy_get_line): Use
3815 gdb_py_object_from_longest.
3816 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3817 gdb_py_object_from_longest.
3818 * python/py-record.c (recpy_gap_reason_code): Use
3819 gdb_py_object_from_longest.
3820 * python/py-record-btrace.c (recpy_bt_insn_size)
3821 (recpy_bt_func_level, btpy_list_count): Use
3822 gdb_py_object_from_longest.
3823 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3824 gdb_py_object_from_longest. Fix error handling.
3825 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3826 gdb_py_object_from_longest.
3827 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3828 gdb_py_object_from_longest.
3829 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3830 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3831 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3832
512116ce
TT
38332020-09-15 Tom Tromey <tromey@adacore.com>
3834
3835 * python/python.c (gdbpy_parameter_value): Use
3836 gdb_py_object_from_ulongest.
3837
4ab1029c
TT
38382020-09-15 Tom Tromey <tromey@adacore.com>
3839
3840 * python/py-infevents.c (create_register_changed_event_object):
3841 Use gdb_py_object_from_longest.
3842 * python/py-exitedevent.c (create_exited_event_object): Use
3843 gdb_py_object_from_longest.
3844
062534d4
TT
38452020-09-15 Tom Tromey <tromey@adacore.com>
3846
3847 * python/python.c (gdbpy_parameter_value): Use
3848 gdb_py_object_from_longest.
3849 * python/py-type.c (convert_field, typy_range): Use
3850 gdb_py_object_from_longest.
3851 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3852 gdb_py_object_from_longest.
3853 * python/py-lazy-string.c (stpy_get_length): Use
3854 gdb_py_object_from_longest.
3855 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3856 gdb_py_object_from_longest.
3857 * python/py-infevents.c (create_memory_changed_event_object): Use
3858 gdb_py_object_from_longest.
3859 * python/py-inferior.c (infpy_get_num): Use
3860 gdb_py_object_from_longest.
3861 (infpy_get_pid): Likewise.
3862
d1cab987
TT
38632020-09-15 Tom Tromey <tromey@adacore.com>
3864
3865 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3866 defines.
3867 * python/py-value.c (valpy_long): Use
3868 gdb_py_object_from_ulongest.
3869 * python/py-symtab.c (salpy_get_pc): Use
3870 gdb_py_object_from_ulongest.
3871 (salpy_get_last): Likewise.
3872 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3873 gdb_py_object_from_ulongest.
3874 * python/py-lazy-string.c (stpy_get_address): Use
3875 gdb_py_object_from_ulongest.
3876 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3877 * python/py-arch.c (archpy_disassemble): Use
3878 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3879 error handling.
3880
4bde49dc
TT
38812020-09-15 Tom Tromey <tromey@adacore.com>
3882
3883 * python/python-internal.h (gdb_py_long_from_longest): Remove
3884 defines.
3885 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3886 * python/py-type.c (convert_field, typy_get_sizeof): Use
3887 gdb_py_object_from_longest.
3888 * python/py-record-btrace.c (btpy_list_index): Use
3889 gdb_py_object_from_longest.
3890
37431074
TT
38912020-09-15 Tom Tromey <tromey@adacore.com>
3892
3893 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3894 * python/py-record.c (recpy_element_number): Use
3895 gdb_py_object_from_longest.
3896 (recpy_gap_number): Likewise.
3897
cbe25684
TT
38982020-09-15 Tom Tromey <tromey@adacore.com>
3899
3900 * top.c (ui::ui): Update.
3901 (highest_ui_num): Remove.
3902 * top.h (struct ui) <num>: Remove.
3903
db92ac45
TT
39042020-09-15 Tom Tromey <tromey@adacore.com>
3905
3906 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3907 * ui-style.c (ansi_regex_text): Now array.
3908 * rust-exp.y (number_regex_text): Now array.
3909 * linespec.c (linespec_quote_characters): Now array.
3910 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3911 Now arrays.
3912
d2b31b67
SM
39132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3914
3915 * debuginfod-support.c (debuginfod_client_deleter): New.
3916 (debuginfod_client_up): New.
3917 (debuginfod_init): Return debuginfod_client_up.
3918 (debuginfod_source_query): Adjust.
3919 (debuginfod_debuginfo_query): Adjust.
3920
3246bd8e
SM
39212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3922
3923 * debuginfod-support.c (debuginfod_source_query): Use
3924 make_unique_xstrdup.
3925
10242f36
SM
39262020-09-14 Simon Marchi <simon.marchi@efficios.com>
3927
3928 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3929 with `type::instance_flags`.
3930
e1044e6a
MM
39312020-09-14 Michael Mullin <masmullin@gmail.com>
3932
3933 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3934 Remove baton parameter.
3935
04902b09
PA
39362020-09-14 Pedro Alves <pedro@palves.net>
3937
3938 * Makefile.in (SELFTESTS_SRCS): Add
3939 unittests/enum-flags-selftests.c.
3940 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3941 btrace_function_flags instead of enum btrace_function_flag.
3942 * compile/compile-c-types.c (convert_qualified): Use
3943 enum_flags::raw.
3944 * compile/compile-cplus-symbols.c (convert_one_symbol)
3945 (convert_symbol_bmsym):
3946 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3947 (compile_cplus_convert_struct_or_union_methods)
3948 (compile_cplus_instance::convert_qualified_base):
3949 * go-exp.y (parse_string_or_char): Add cast to int.
3950 * unittests/enum-flags-selftests.c: New file.
3951 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3952 type to btrace_thread_flags from btrace_thread_flag.
3953 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3954 local's type to btrace_thread_flags from btrace_thread_flag. Add
3955 cast in DEBUG call.
3956
69896a2c
PA
39572020-09-14 Pedro Alves <pedro@palves.net>
3958
3959 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3960 * gdbtypes.c (address_space_name_to_int): Rename to ...
3961 (address_space_name_to_type_instance_flags): ... this.
3962 (address_space_int_to_name): Rename to ...
3963 (address_space_type_instance_flags_to_name): ... this.
3964 * gdbtypes.h (address_space_name_to_int): Rename to ...
3965 (address_space_name_to_type_instance_flags): ... this.
3966 (address_space_int_to_name): Rename to ...
3967 (address_space_type_instance_flags_to_name): ... this.
3968 * type-stack.c (type_stack::insert): Adjust to rename.
3969 * type-stack.h (type_stack::insert): Likewise.
3970
314ad88d
PA
39712020-09-14 Pedro Alves <pedro@palves.net>
3972 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * avr-tdep.c (avr_address_class_type_flags): Return
3975 type_instance_flags.
3976 (avr_address_class_type_flags_to_name): Take a
3977 type_instance_flags.
3978 (avr_address_class_name_to_type_flags): Return bool and take a
3979 type_instance_flags.
3980 * d-lang.c (build_d_types): Use type::set_instance_flags.
3981 * ft32-tdep.c (ft32_address_class_type_flags): Return
3982 type_instance_flags.
3983 (ft32_address_class_type_flags_to_name): Take a
3984 type_instance_flags.
3985 (ft32_address_class_name_to_type_flags): Return bool and take a
3986 type_instance_flags.
3987 (ft32_gdbarch_init): Use type::set_instance_flags.
3988 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3989 * gdbarch.h, gdbarch.c: Regenerate.
3990 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3991 (address_class_name_to_type_flags): Use type_instance_flags and
3992 bool.
3993 * gdbtypes.c (address_space_name_to_int)
3994 (address_space_int_to_name, make_qualified_type): Use
3995 type_instance_flags.
3996 (make_qualified_type): Use type_instance_flags and
3997 type::set_instance_flags.
3998 (make_type_with_address_space, make_cv_type, make_vector_type)
3999 (check_typedef): Use type_instance_flags.
4000 (recursive_dump_type): Cast type_instance_flags to unsigned for
4001 printing.
4002 (copy_type_recursive): Use type::set_instance_flags.
4003 (gdbtypes_post_init): Use type::set_instance_flags.
4004 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4005 <m_instance_flags>: ... this.
4006 <instance_flags, set_instance_flags>: New methods.
4007 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4008 (SET_TYPE_INSTANCE_FLAGS): New.
4009 (address_space_name_to_int, address_space_int_to_name)
4010 (make_type_with_address_space): Pass flags using
4011 type_instance_flags instead of int.
4012 * stabsread.c (cleanup_undefined_types_noname): Use
4013 type::set_instance_flags.
4014 * s390-tdep.c (s390_address_class_type_flags): Return
4015 type_instance_flags.
4016 (s390_address_class_type_flags_to_name): Take a
4017 type_instance_flags.
4018 (s390_address_class_name_to_type_flags): Return bool and take a
4019 type_instance_flags.
4020 * type-stack.c (type_stack::follow_types): Use
4021 type_instance_flags.
4022 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4023
27087b7f
TT
40242020-09-14 Tom Tromey <tromey@adacore.com>
4025
4026 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4027 * x86-tdep.c (x86_is_thunk_register_name)
4028 (x86_in_indirect_branch_thunk): Update.
4029 * sparc64-tdep.c (sparc64_fpu_register_names)
4030 (sparc64_cp0_register_names, sparc64_register_names)
4031 (sparc64_pseudo_register_names): Now const.
4032 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4033 cp0_registers_num>: Now const.
4034 * sparc-tdep.c (sparc_core_register_names)
4035 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4036 (sparc32_pseudo_register_names): Now const.
4037 (validate_tdesc_registers): Update.
4038 * rust-lang.c (rust_extensions): Now const.
4039 * p-lang.c (p_extensions): Now const.
4040 * objc-lang.c (objc_extensions): Now const.
4041 * nto-tdep.c (nto_thread_state_str): Now const.
4042 * moxie-tdep.c (moxie_register_names): Now const.
4043 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4044 Now const.
4045 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4046 (mips_linux_reg_names): Now const.
4047 (mips_gdbarch_init): Update.
4048 * microblaze-tdep.c (microblaze_register_names): Now const.
4049 * m68k-tdep.c (m68k_register_names): Now const.
4050 * m32r-tdep.c (m32r_register_names): Now const.
4051 * ia64-tdep.c (ia64_register_names): Now const.
4052 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4053 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4054 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4055 ymm_avx512_register_names, pkeys_register_names>: Now const.
4056 * i386-tdep.c (i386_register_names, i386_zmm_names)
4057 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4058 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4059 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4060 * f-lang.c (f_extensions): Now const.
4061 * d-lang.c (d_extensions): Now const.
4062 * csky-tdep.c (csky_register_names): Now const.
4063 * charset.c (default_charset_names, charset_enum): Now const.
4064 (_initialize_charset): Update.
4065 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4066 const.
4067 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4068 (bsd_uthread_solib_loaded): Update.
4069 (bsd_uthread_state): Now const.
4070 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4071 (amd64_ymm_avx512_names, amd64_ymmh_names)
4072 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4073 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4074 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4075 (amd64_dword_names): Now const.
4076 * agent.c (can_use_agent_enum): Now const.
4077 * ada-tasks.c (task_states, long_task_states): Now const.
4078 * ada-lang.c (known_runtime_file_name_patterns)
4079 (known_auxiliary_function_name_patterns, attribute_names)
4080 (standard_exc, ada_extensions): Now const.
4081
89806626
SM
40822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4083
4084 * bcache.h (struct bcache) <bcache>: Remove constructor.
4085 <m_hash_function, m_compare_function>: Remove.
4086 <~bcache>: Make virtual.
4087 <compare>: Remove static method, introduce virtual method.
4088 <default_hash>: Remove.
4089 <hash>: New virtual method.
4090 * bcache.c (bcache::expand_hash_table): Update.
4091 (bcache::insert): Update.
4092 (bcache::hash): New.
4093 (bcache::compare): Update comment and parameter names.
4094 * gdbtypes.c (types_deeply_equal): Update.
4095 * psymtab.h (struct psymbol_bcache): New struct.
4096 (class psymtab_storage) <psymtab_storage>: Make default.
4097 <psymbol_cache>: Change type to psymbol_bcache.
4098 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4099 (psymbol_hash): Change to...
4100 (psymbol_bcache::hash): ... this.
4101 (psymbol_compare): Change to...
4102 (psymbol_bcache::compare): ... this.
4103
677c92fe
SM
41042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4105
4106 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4107 checking for initial lwp.
4108
3eba3a01
TT
41092020-09-14 Tom Tromey <tromey@adacore.com>
4110
4111 * m68k-tdep.c (m68k_extract_return_value): Use
4112 pointer_result_regnum.
4113 (m68k_store_return_value): Likewise.
4114 (m68k_reg_struct_return_p): Handle vectors and arrays.
4115 (m68k_return_value): Handle arrays.
4116 (m68k_svr4_return_value): Fix single-element aggregate handling.
4117 Handle long double. Adjust for embedded ABI.
4118 (m68k_svr4_init_abi): Set pointer_result_regnum.
4119 (m68k_embedded_init_abi): New function.
4120 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4121 (m68k_osabi_sniffer): New function.
4122 (_initialize_m68k_tdep): Register osabi sniffer.
4123 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4124 member.
4125
33f4dd48
SM
41262020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4127
4128 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4129 with gdb::unique_xmalloc_ptr<char>.
4130
8400a90d
SM
41312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4132
4133 * xml-support.h (xml_fetch_another): Change type to be a
4134 function_view.
4135 (xml_process_xincludes): Remove baton parameter.
4136 (xml_fetch_content_from_file): Change baton parameter to
4137 dirname.
4138 * xml-support.c (struct xinclude_parsing_data)
4139 <xinclude_parsing_data>: Remove baton parameter.
4140 <fetcher_baton>: Remove.
4141 (xinclude_start_include): Adjust.
4142 (xml_process_xincludes): Adjust.
4143 (xml_fetch_content_from_file): Replace baton parameter with
4144 dirname.
4145 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4146 (xml_init_syscalls_info): Use a lambda.
4147 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4148 (file_read_description_xml): Use a lambda.
4149 (fetch_available_features_from_target): Change baton parameter
4150 to target_ops.
4151 (target_read_description_xml): Use a lambda.
4152 (target_fetch_description_xml): Use a lambda.
4153 (string_read_description_xml): Update.
4154
04f5bab2
SM
41552020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4156
4157 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4158 uses with type::endianity_is_not_default.
4159
db558e34
SM
41602020-09-14 Simon Marchi <simon.marchi@efficios.com>
4161
4162 * gdbtypes.h (struct type) <endianity_is_not_default,
4163 set_endianity_is_not_default>: New methods.
4164 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4165 type::endianity_is_not_default, change all write call sites to
4166 use type::set_endianity_is_not_default.
4167
22c4c60c
SM
41682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4169
4170 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4171 uses with type::is_fixed_instance.
4172
9cdd0d12
SM
41732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * gdbtypes.h (struct type) <is_fixed_instance,
4176 set_is_fixed_instance>: New methods.
4177 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4178 write call sites to use type::set_is_fixed_instance.
4179
0becda7a
SM
41802020-09-14 Simon Marchi <simon.marchi@efficios.com>
4181
4182 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4183 uses with type::is_gnu_ifunc.
4184
03cc7249
SM
41852020-09-14 Simon Marchi <simon.marchi@efficios.com>
4186
4187 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4188 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4189 use type::set_is_gnu_ifunc.
4190
3f46044c
SM
41912020-09-14 Simon Marchi <simon.marchi@efficios.com>
4192
4193 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4194 uses with type::stub_is_supported.
4195
9baccff6
SM
41962020-09-14 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4199 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4200 use type::set_stub_is_supported.
4201
bd63c870
SM
42022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4205 uses with type::is_vector.
4206
2062087b
SM
42072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4210 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4211 use type::set_is_vector.
4212
a409645d
SM
42132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4214
4215 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4216 uses with type::has_varargs.
4217
1d6286ed
SM
42182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4221 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4222 use type::set_has_varargs.
4223
7f9f399b
SM
42242020-09-14 Simon Marchi <simon.marchi@efficios.com>
4225
4226 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4227 uses with type::is_prototyped.
4228
27e69b7a
SM
42292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4232 New methods.
4233 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4234 call sites to use type::set_is_prototyped.
4235
d2183968
SM
42362020-09-14 Simon Marchi <simon.marchi@efficios.com>
4237
4238 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4239 uses with type::target_is_stub.
4240
8f53807e
SM
42412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4242
4243 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4244 New methods.
4245 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4246 sites to use type::set_target_is_stub.
4247
e46d3488
SM
42482020-09-14 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * gdbtypes.h (TYPE_STUB): Remove, replace all
4251 uses with type::is_stub.
4252
b4b73759
SM
42532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4256 (TYPE_STUB): Use type::is_stub, change all write call sites to
4257 use type::set_is_stub.
4258
20ce4123
SM
42592020-09-14 Simon Marchi <simon.marchi@efficios.com>
4260
4261 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4262 type::has_no_signedness.
4263
15152a54
SM
42642020-09-14 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * gdbtypes.h (struct type) <has_no_signedness,
4267 set_has_no_signedness>: New methods.
4268 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4269 call sites to use type::set_has_no_signedness.
4270
c6d940a9
SM
42712020-09-14 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4274 type::is_unsigned.
4275
653223d3
SM
42762020-09-14 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4279 methods.
4280 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4281 sites to use type::set_is_unsigned.
4282
55ea94da 42832020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4284 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4285
e851246a
SM
4286 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4287 pointer and stack frame offset when unwinding.
55ea94da 4288
6791b117
PA
42892020-09-13 Pedro Alves <pedro@palves.net>
4290
4291 * NEWS: Document "-break-insert --qualified".
4292 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4293
77f2120b
PA
42942020-09-13 Pedro Alves <pedro@palves.net>
4295
4296 * linespec.c (classify_mtype, compare_msyms): Delete.
4297 (search_minsyms_for_name): Remove classification logic. Instead
4298 filter out trampoline symbols if we also found an external
4299 function of the same name.
4300
ed6a896c
JB
43012020-09-13 Joel Brobecker <brobecker@adacore.com>
4302
4303 * NEWS: Create a new section for the next release branch.
4304 Rename the section of the current branch, now that it has
4305 been cut.
4306
32aea73e
JB
43072020-09-13 Joel Brobecker <brobecker@adacore.com>
4308
4309 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4310 * version.in: Bump version to 11.0.50.DATE-git.
4311
8087c3fa
JB
43122020-09-12 Joel Brobecker <brobecker@adacore.com>
4313
4314 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4315
2a67f09d
FW
43162020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4317 Felix Willgerodt <Felix.Willgerodt@intel.com>
4318
4319 * gdbarch.sh: Added bfloat16 type.
4320 * gdbarch.c: Regenerated.
4321 * gdbarch.h: Regenerated.
4322 * gdbtypes.c (floatformats_bfloat16): New struct.
4323 (gdbtypes_post_init): Add builtin_bfloat16.
4324 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4325 (floatformats_bfloat16): New struct.
4326 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4327 (i386_ymm_type): Add field "v16_bfloat16"
4328 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4329 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4330 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4331 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4332 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4333 * features/i386/64bit-avx512.c: Regenerated.
4334 * features/i386/64bit-sse.xml: Add bfloat16 type.
4335 * features/i386/64bit-sse.c: Regenerated.
4336
1347d111
FW
43372020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4338
4339 * i386-tdep.c (i386_zmm_type): Fix field names.
4340 (i386_ymm_type): Fix field names.
4341
7a4e8e7d
TBA
43422020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4343
4344 * breakpoint.c: Fix typo in the help message of the
4345 "set breakpoint condition-evaluation" command.
4346
cf4ac4be
KR
43472020-09-10 Kamil Rytarowski <n54@gmx.com>
4348
4349 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4350 * (nbsd_nat_target::pid_to_exec_file)
4351 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4352 (nbsd_nat_target::post_startup_inferior)
4353 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4354 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4355 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4356 * (nbsd_thread_lister): Remove.
4357
f404573e
KR
43582020-09-10 Kamil Rytarowski <n54@gmx.com>
4359
4360 * fork-inferior.c (startup_inferior): Avoid double free.
4361
1ccb2c17
KR
43622020-09-10 Kamil Rytarowski <n54@gmx.com>
4363
4364 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4365 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4366
feedfcc7
KR
43672020-09-10 Kamil Rytarowski <n54@gmx.com>
4368
4369 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4370 * netbsd-nat.c: Include <sys/ptrace.h>.
4371 * (netbsd_nat::enable_proc_events): Add.
4372
c489f8c6
KR
43732020-09-10 Kamil Rytarowski <n54@gmx.com>
4374
4375 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4376 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4377 (netbsd_nat::for_each_thread): Add.
4378 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4379 "gdbsupport/common-debug.h".
4380 * (netbsd_nat::netbsd_thread_lister)
4381 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4382 (netbsd_nat::for_each_thread): Add.
4383
330662f6
KR
43842020-09-10 Kamil Rytarowski <n54@gmx.com>
4385
4386 * netbsd-nat.h: Include <unistd.h>.
4387 * (netbsd_nat::pid_to_exec_file): Add.
4388 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4389 * (netbsd_nat::pid_to_exec_file) Add.
4390
70b67307
KR
43912020-09-10 Kamil Rytarowski <n54@gmx.com>
4392
4393 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4394
99cf6da6
KR
43952020-09-10 Kamil Rytarowski <n54@gmx.com>
4396
4397 * netbsd-nat.h: New file.
4398 * netbsd-nat.c: Likewise.
4399
1b788fb6
TT
44002020-09-09 Tom Tromey <tromey@adacore.com>
4401
4402 * ada-lang.c (remove_extra_symbols): Do not increment when
4403 removing an element
4404
03b0a45f
TT
44052020-09-08 Tom Tromey <tromey@adacore.com>
4406
4407 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4408
3cae4447
TT
44092020-09-08 Tom Tromey <tromey@adacore.com>
4410
4411 PR win32/25302:
4412 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4413 (gdb_bfd_init_data): New function.
4414 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4415
7f08fd51
TBA
44162020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4417
4418 * infrun.c (fetch_inferior_event): Use
4419 `switch_to_target_no_thread` to switch the target.
4420
3e6ff933
TT
44212020-09-06 Tom Tromey <tom@tromey.com>
4422
4423 * symfile.h (dwarf2_free_objfile): Don't declare.
4424
e56798df
AKS
44252020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4426
4427 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4428 to match 16 byte real/complex type generated by Flang compiler.
4429
8f5c6526
TV
44302020-09-03 Tom de Vries <tdevries@suse.de>
4431
4432 PR breakpoint/26546
4433 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4434 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4435
c5065df0
SM
44362020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4437
4438 * maint.c (index_digits): New function.
4439 (struct maint_print_section_data): Remove.
4440 (print_bfd_section_info): Remove print_data parameter, add arg
4441 and index_digits.
4442 (print_objfile_section_info): Likewise.
4443 (print_bfd_section_info_maybe_relocated): Likewise (plus
4444 objfile).
4445 (maintenance_info_sections): Adjust calls.
4446
02c6f3f1
TT
44472020-09-02 Tom Tromey <tromey@adacore.com>
4448
4449 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4450 for null pointers.
4451 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4452
ef5e5b0b
SM
44532020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4454
4455 * bcache.h (struct bcache) <insert>: Change type of `added` to
4456 pointer to bool.
4457 * bcache.c (bcache::insert): Likewise.
4458 * gdbtypes.c (check_types_worklist): Adjust.
4459 * psymtab.c (add_psymbol_to_bcache): Adjust.
4460
973695d6
KB
44612020-08-31 Kevin Buettner <kevinb@redhat.com>
4462
4463 * corelow.c (unordered_set): Include.
4464 (class core_target): Add field 'm_core_unavailable_mappings'.
4465 (core_target::build_file_mappings): Print only one warning
4466 per inaccessible file. Add unavailable/broken mappings
4467 to m_core_unavailable_mappings.
4468 (core_target::xfer_partial): Call...
4469 (core_target::xfer_memory_via_mappings): New method.
4470
264fc0e2
SM
44712020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4472
4473 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4474 type to bool.
4475
2de01bdb
SM
44762020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4477
4478 * dwarf2/read.c (struct field_info): Fix indentation.
4479
f3bd50f1
SM
44802020-08-31 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4483 ordering in comment.
4484 * frame.c (frame_id_eq): Fix indentation.
4485
22b9b4b0
SL
44862020-08-31 Scott Linder <scott@scottlinder.com>
4487 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4490 inline frame ids in outer frame.
4491
84154d16
SM
44922020-08-31 Simon Marchi <simon.marchi@efficios.com>
4493
4494 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4495 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4496 (outer_frame_id): Use FID_STACK_OUTER instead of
4497 FID_STACK_INVALID.
4498 (frame_id_p): Don't check for outer_frame_id.
4499
8efaf6b3
SM
45002020-08-31 Simon Marchi <simon.marchi@efficios.com>
4501
4502 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4503 regnum/frame in value. Call allocate_value_lazy.
4504 * frame.c (frame_unwind_register_value): Use
4505 val_print_not_saved.
4506
fe1fe7ea
SM
45072020-08-31 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4510
f7c7700d
PA
45112020-08-29 Pedro Alves <pedro@palves.net>
4512
4513 * progspace.c (print_program_space): Use all_inferiors. Switch to
4514 the inferior before calling target_pid_to_str.
4515
e0814aae
TT
45162020-08-28 Tom Tromey <tom@tromey.com>
4517
4518 * xcoffread.c (xcoff_end_psymtab): Update comment.
4519 * dbxread.c (dbx_end_psymtab): Update comment.
4520
626d2320
TV
45212020-08-28 Tom de Vries <tdevries@suse.de>
4522
4523 PR breakpoint/26544
4524 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4525 event_location.
4526 (create_breakpoint): Same.
4527 (base_breakpoint_decode_location): Same.
4528 (bkpt_create_sals_from_location): Same.
4529 (bkpt_decode_location): Same.
4530 (bkpt_probe_create_sals_from_location): Same.
4531 (bkpt_probe_decode_location): Same.
4532 (tracepoint_create_sals_from_location): Same.
4533 (tracepoint_decode_location): Same.
4534 (tracepoint_probe_decode_location): Same.
4535 (strace_marker_create_sals_from_location): Same.
4536 (strace_marker_decode_location): Same.
4537 (create_sals_from_location_default): Same.
4538 (decode_location_default): Same.
4539 * breakpoint.h (struct breakpoint_ops): Same.
4540 (create_breakpoint): Same.
4541 * linespec.h (decode_line_full): Same.
4542 * linespec.c (decode_line_full): Same. Throw error if
4543 result.size () == 0.
4544
df631783
PA
45452020-08-27 Pedro Alves <pedro@palves.net>
4546
4547 PR gdb/26524
4548 * breakpoint.c (until_break_fsm) <location_breakpoint,
4549 caller_breakpoint>: Delete fields.
4550 <breakpoints>: New field.
4551 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4552 two individual breakpoints.
4553 (until_break_fsm::should_stop): Loop over breakpoints in the
4554 breakpoint vector.
4555 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4556 vector.
4557 (until_break_command): Handle location expanding into multiple
4558 sals.
4559
b2b38aa4
PA
45602020-08-27 Pedro Alves <pedro@palves.net>
4561
4562 PR gdb/26523
4563 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4564 bp_until breakpoints user-specified locations. Update intro
4565 comment.
4566
b886559f
SM
45672020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4568
4569 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4570 gdb_bfd_sections): New.
4571 * maint.c (print_bfd_section_info): Change param type to
4572 maint_print_section_data.
4573 (print_objfile_section_info): Likewise.
4574 (print_bfd_section_info_maybe_relocated): Likewise.
4575 (maintenance_info_sections): Use gdb_bfd_sections.
4576
4c6e63bf
SV
45772020-08-25 Shahab Vahedi <shahab@synopsys.com>
4578
4579 * MAINTAINERS: Add ARC target and maintainer.
4580
8d7f0635
AK
45812020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4582
4583 * configure.tgt: ARC support for GNU/Linux.
4584 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4585 * arc-linux-tdep.c: New file.
4586 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4587 * arc-tdep.c (arc_write_pc): Use it.
4588
fdd8731b
SV
45892020-08-25 Shahab Vahedi <shahab@synopsys.com>
4590
4591 * arc-tdep.c (arc_check_for_hardware_loop): New.
4592 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4593
22459524
SV
45942020-08-25 Shahab Vahedi <shahab@synopsys.com>
4595
4596 * arc-tdep.h: Include "gdbarch.h".
4597
995d3a19
SV
45982020-08-25 Shahab Vahedi <shahab@synopsys.com>
4599
4600 * arch/arc.h
4601 (arc_gdbarch_features): New class to stir the selection of target XML.
4602 (arc_create_target_description): Use FEATURES to choose XML target.
4603 (arc_lookup_target_description): Use arc_create_target_description
4604 to create _new_ target descriptions or return the already created
4605 ones if the FEATURES is the same.
4606 * arch/arc.c: Implementation of prototypes described above.
4607 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4608 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4609 * arc-tdep.c (*_feature_name): Make feature names consistent.
4610 (arc_register_feature): A new struct to hold information about
4611 registers of a particular target/feature.
4612 (arc_check_tdesc_feature): Check if XML provides registers in
4613 compliance with ARC_REGISTER_FEATURE structs.
4614 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4615 (determine_*_reg_feature_set): Which feature name to look for.
4616 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4617 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4618 to expected ISA enums to be used in arc_gdbarch_features structs.
4619 * features/Makefile (FEATURE_XMLFILES): Add new files.
4620 * gdb/features/arc/v1-aux.c: New file.
4621 * gdb/features/arc/v1-aux.xml: Likewise.
4622 * gdb/features/arc/v1-core.c: Likewise.
4623 * gdb/features/arc/v1-core.xml: Likewise.
4624 * gdb/features/arc/v2-aux.c: Likewise.
4625 * gdb/features/arc/v2-aux.xml: Likewise.
4626 * gdb/features/arc/v2-core.c: Likewise.
4627 * gdb/features/arc/v2-core.xml: Likewise.
4628 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4629
3945d2d7
GM
46302020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4631 Andrew Burgess <andrew.burgess@embecosm.com>
4632
4633 PR m2/26372
fc5d6901 4634 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4635 an assert. Remove single element array indexing pattern as the
4636 MULTI_SUBSCRIPT support will handle this case too.
4637
2677f2d3
SM
46382020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4639
4640 * value.h (valprint_check_validity): Move declaration from
4641 here...
4642 * valprint.h (valprint_check_validity): ... to here.
4643
c426fddb
SM
46442020-08-24 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * debug.h: New file.
4647 * debug.c (debug_prefixed_vprintf): New function.
4648 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4649 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4650
1eb8556f
SM
46512020-08-24 Simon Marchi <simon.marchi@efficios.com>
4652
4653 * infrun.h (infrun_debug_printf_1): New function declaration.
4654 (infrun_debug_printf): New macro.
4655 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4656 throughout.
4657 (infrun_debug_printf): New function.
4658 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4659 (handle_jit_event): Likewise.
4660
b8fff44e
MW
46612020-08-21 Mark Wielaard <mark@klomp.org>
4662
4663 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4664
d19c3068
SM
46652020-08-22 Simon Marchi <simon.marchi@efficios.com>
4666
4667 * frame.c (enum class frame_id_status): New.
4668 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4669 (fprintf_frame): Update.
4670 (compute_frame_id): Set frame id status to "computing" on entry.
4671 Set it back to "not_computed" on failure and to "computed" on
4672 success.
4673 (get_frame_id): Assert the frame id is not being computed.
4674 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4675 (create_new_frame): Likewise.
4676 (frame_cleanup_after_sniffer): Update assert.
4677
b70e516e
SM
46782020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4679
4680 * regcache.c (pid_ptid_regcache_map): New type.
4681 (target_ptid_regcache_map): Remove.
4682 (target_pid_ptid_regcache_map): New type.
4683 (regcaches): Change type to target_pid_ptid_regcache_map.
4684 (get_thread_arch_aspace_regcache): Update.
4685 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4686 case.
4687 (regcaches_size): Update.
4688 (regcache_count): Update.
4689 (registers_changed_ptid_target_pid_test): New.
4690 (_initialize_regcache): Register new test.
4691
cdd9148a
SM
46922020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4693
4694 * regcache.c (regcache_count): New.
4695 (struct regcache_test_data): New.
4696 (regcache_test_data_up): New.
4697 (populate_regcaches_for_test): New.
4698 (regcaches_test): Remove.
4699 (get_thread_arch_aspace_regcache_test): New.
4700 (registers_changed_ptid_all_test): New.
4701 (registers_changed_ptid_target_test): New.
4702 (registers_changed_ptid_target_ptid_test): New.
4703 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4704 (_initialize_regcache): Register new tests.
4705
dd125343
SM
47062020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4707
4708 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4709 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4710 gdbarch and aspace parameter. Use current inferior's aspace.
4711 Validate regcache's arch value.
4712 (regcaches_test): Update.
4713
3ee93972
SM
47142020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4715
4716 * regcache.c (regcaches_test): Call registers_changed.
4717
33bf4c5c
TBA
47182020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4719
4720 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4721
c2fd7fae
AKS
47222020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4723
4724 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4725 to find the end of prologue for flang compiled binaries.
4726 * arm-tdep.c (arm_skip_prologue): Likewise.
4727 * i386-tdep.c (i386_skip_prologue): Likewise.
4728 * producer.c (producer_is_llvm): New function.
4729 (producer_parsing_tests): Added new tests for clang/flang.
4730 * producer.h (producer_is_llvm): New declaration.
4731
9327494e
SM
47322020-08-18 Simon Marchi <simon.marchi@efficios.com>
4733
4734 * linux-nat.c (linux_nat_debug_printf): New function.
4735 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4736
d138725a
AM
47372020-08-18 Aaron Merey <amerey@redhat.com>
4738
4739 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4740 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4741 (CLIBS): Add DEBUGINFOD_LIBS.
4742
f9b11e6b
ST
47432020-08-17 Sergei Trofimovich <siarheit@google.com>
4744
4745 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4746 'gdbarch_num_regs'.
4747
3ae7ab99
TT
47482020-08-17 Tom Tromey <tromey@adacore.com>
4749
4750 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4751 ada_get_decoded_value returns NULL.
4752
b017825f
TT
47532020-08-17 Tom Tromey <tromey@adacore.com>
4754
4755 * python/py-inferior.c (infpy_search_memory): Use
4756 gdb_py_object_from_ulongest.
4757 * python/py-infevents.c (create_inferior_call_event_object)
4758 (create_memory_changed_event_object): Use
4759 gdb_py_object_from_ulongest.
4760 * python/py-linetable.c (ltpy_entry_get_pc): Use
4761 gdb_py_object_from_ulongest.
4762
7635cf79
SM
47632020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4764
4765 * loc.c (class symbol_needs_eval_context): Fix indentation.
4766
f54be24b
SM
47672020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4768
4769 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4770 bool.
4771
53d5a2a5
TV
47722020-08-17 Tom de Vries <tdevries@suse.de>
4773
4774 PR gdb/26393
4775 * gdbtypes.c (dump_dynamic_prop): New function.
4776 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4777
547ce8f0
TV
47782020-08-15 Tom de Vries <tdevries@suse.de>
4779
4780 PR backtrace/26390
4781 * stack.c (print_frame_args): Temporarily set the selected
4782 frame to FRAME while printing the frame's arguments.
4783
6ea815e7
PFC
47842020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4785
4786 PR breakpoints/26385
4787 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4788 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4789
6e562fa3
PFC
47902020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4791
4792 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4793 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4794 and >= to check return value instead of == -1 and != -1.
4795
d369b608
SM
47962020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4797
4798 * utils.h (class gdb_argv) <as_array_view>: New method.
4799 * utils.c (gdb_argv_as_array_view_test): New.
4800 (_initialize_utils): Register selftest.
4801 * maint.c (maintenance_selftest): Use the new method.
4802
b31488a3
KR
48032020-08-13 Kamil Rytarowski <n54@gmx.com>
4804
4805 * target.h (supports_dumpcore, dumpcore): New
4806 function declarations.
4807 * target.c (supports_dumpcore, dumpcore): New
4808 functions.
4809 * target-delegates.c: Rebuild.
4810 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4811 and target_dumpcore ().
4812
002a3166
AM
48132020-08-13 Aaron Merey <amerey@redhat.com>
4814
4815 * debuginfod-support.c: Replace global variables with user_data.
4816
ece5bc8a
SM
48172020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4818
4819 * maint.c (maintenance_selftest): Split args and pass array_view
4820 to run_tests.
4821
6d8a0a5e
LM
48222020-08-12 Luis Machado <luis.machado@linaro.org>
4823
4824 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4825 type's length.
4826 Use %s and pulongest to print the length.
4827
7cf663a9
PA
48282020-08-12 Pedro Alves <palves@redhat.com>
4829
4830 * NEWS: Move "Multi-target debugging support" item to the
4831 "Changes since GDB 9" section.
4832
27c7b875
PA
48332020-08-12 Pedro Alves <palves@redhat.com>
4834
4835 PR gdb/26336
4836 * progspace.c (program_space::remove_objfile): Invalidate the
4837 frame cache.
4838
1796a2a1
TV
48392020-08-11 Tom de Vries <tdevries@suse.de>
4840
4841 * MAINTAINERS: Mark ms1 as deleted.
4842
f8e3fe0d
LM
48432020-08-10 Luis Machado <luis.machado@linaro.org>
4844
4845 PR gdb/26310
4846
4847 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4848 act accordingly.
4849 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4850 movz/str/stur/stp skipping behavior.
4851
cc308722
LM
48522020-08-10 Luis Machado <luis.machado@linaro.org>
4853
4854 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4855 struct user_sve_header instead of struct sve_context.
4856
041d9819
SM
48572020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4858
4859 * read.h (dwarf2_fetch_die_loc_sect_off,
4860 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4861 `void *` parameter with function_view.
4862 * read.c (dwarf2_fetch_die_loc_sect_off,
4863 dwarf2_fetch_die_loc_cu_off): Likewise.
4864 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4865 (per_cu_dwarf_call): Adjust.
4866 (get_frame_address_in_block_wrapper): Remove.
4867 (indirect_synthetic_pointer): Adjust.
4868 (get_ax_pc): Remove.
4869 (dwarf2_compile_expr_to_ax): Adjust.
4870
38f8aa06
TV
48712020-08-08 Tom de Vries <tdevries@suse.de>
4872
4873 PR build/26344
4874 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4875 constructor.
4876 * regcache.c (get_thread_arch_aspace_regcache): Same.
4877
a52b3ae2
TT
48782020-08-07 Tom Tromey <tromey@adacore.com>
4879
4880 * ravenscar-thread.c
4881 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4882 New method.
4883 (ravenscar_thread_target::wait): Check
4884 runtime_initialized.
4885 (ravenscar_thread_target::prepare_to_store)
4886 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4887 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4888 (ravenscar_thread_target::stopped_by_watchpoint)
4889 (ravenscar_thread_target::stopped_data_address)
4890 (ravenscar_thread_target::core_of_thread): Use
4891 scoped_restore_current_thread and
4892 set_base_thread_from_ravenscar_task.
4893
0e29517d
TT
48942020-08-07 Tom Tromey <tromey@adacore.com>
4895
4896 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4897
592f9bd7
TT
48982020-08-07 Tom Tromey <tromey@adacore.com>
4899
4900 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4901 update_inferior_ptid before update_thread_list.
4902 (temporarily_change_regcache_ptid): New class.
4903 (ravenscar_thread_target::fetch_registers)
4904 (ravenscar_thread_target::store_registers)
4905 (ravenscar_thread_target::prepare_to_store): Use base thread when
4906 forwarding operation.
4907
39e2018a
TT
49082020-08-07 Tom Tromey <tromey@adacore.com>
4909
4910 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4911 "is_pid" case.
4912
2080266b
TT
49132020-08-07 Tom Tromey <tromey@adacore.com>
4914
4915 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4916 New methods.
4917 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4918 first.
4919 (ravenscar_thread_target::add_thread): Rename from
4920 ravenscar_add_thread.
4921 (ravenscar_thread_target::update_thread_list): Use a lambda.
4922 (ravenscar_thread_target::xfer_partial): New method.
4923
78c02f21
TT
49242020-08-07 Tom Tromey <tromey@adacore.com>
4925
4926 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4927 gdb::function_view.
4928 (iterate_over_live_ada_tasks): Change type of argument.
4929 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4930 of argument.
4931
d5d833af
TT
49322020-08-07 Tom Tromey <tromey@adacore.com>
4933
4934 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4935 Remove.
4936 (ravenscar_thread_target::extra_thread_info): Remove.
4937 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4938 defer to target beneath for non-Ravenscar threads.
4939
a8ac85bb
TT
49402020-08-07 Tom Tromey <tromey@adacore.com>
4941
4942 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4943 get_base_thread_from_ravenscar_task>: Now methods.
4944 <m_cpu_map>: New member.
4945 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4946 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4947 (ravenscar_thread_target::task_is_currently_active): Update.
4948 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4949 Now a method.
4950 (ravenscar_thread_target::add_active_thread): Put initial thread
4951 into the m_cpu_map.
4952
550ab58d
TT
49532020-08-07 Tom Tromey <tromey@adacore.com>
4954
4955 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4956 event_ptid.
4957
e9546579
TT
49582020-08-07 Tom Tromey <tromey@adacore.com>
4959
4960 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4961 runtime_initialized.
4962
3d4470e5
TT
49632020-08-07 Tom Tromey <tromey@adacore.com>
4964
4965 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4966 add_active_thread.
4967 (ravenscar_thread_target::add_active_thread): Now public.
4968 (ravenscar_inferior_created): Call add_active_thread after pushing
4969 the target.
4970
888bdb2b
SM
49712020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4972
4973 * regcache.c (ptid_regcache_map): New type.
4974 (target_ptid_regcache_map): New type.
4975 (regcaches): Change type to target_ptid_regcache_map.
4976 (get_thread_arch_aspace_regcache): Update to regcaches' new
4977 type.
4978 (regcache_thread_ptid_changed): Likewise.
4979 (registers_changed_ptid): Likewise.
4980 (regcaches_size): Likewise.
4981 (regcaches_test): Update.
4982 (regcache_thread_ptid_changed): Update.
4983 * regcache.h (regcache_up): New type.
4984 * gdbsupport/ptid.h (hash_ptid): New struct.
4985
b161a60d
SM
49862020-08-07 Simon Marchi <simon.marchi@efficios.com>
4987
4988 * observable.h (thread_ptid_changed): Add parameter
4989 `process_stratum_target *`.
4990 * infrun.c (infrun_thread_ptid_changed): Add parameter
4991 `process_stratum_target *` and use it.
4992 (selftests): New namespace.
4993 (infrun_thread_ptid_changed): New function.
4994 (_initialize_infrun): Register selftest.
4995 * regcache.c (regcache_thread_ptid_changed): Add parameter
4996 `process_stratum_target *` and use it.
4997 (regcache_thread_ptid_changed): New function.
4998 (_initialize_regcache): Register selftest.
4999 * thread.c (thread_change_ptid): Pass target to
5000 thread_ptid_changed observable.
5001
d2854d8d
CT
50022020-08-06 Caroline Tice <cmtice@google.com>
5003
fe4c3d43
SM
5004 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5005 (struct dwp_sections): Update field comments. Add loclists and
5006 rnglists fields.
5007 (struct virtual_v2_dwo_sections): Rename struct to
5008 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5009 size & offset fields for loclists and rnglists.
5010 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5011 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5012 skipping dummy type units.
5013 (create_dwp_hash_table): Update the large comment above the function to
5014 discuss Version 5 DWP files as well, with references. Update all the
5015 version checks in the function to check for version 5 as well. Add new
5016 section at the end to create dwp hash table for version 5.
5017 (create_dwp_v2_section): Rename function to
5018 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5019 Add V5 to error message text.
5020 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5021 into calls to create_dwp_v2_or_v5_section.
5022 (create_dwo_unit_in_dwp_v5): New function.
5023 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5024 check for version2; add else clause to handle version 5.
5025 (open_and_init_dwo_file): Add code to check dwarf version & only call
5026 create_debug_types_hash_table (with sections.types) if version is not 5;
5027 else call create_debug_type_hash_table, with sections.info.
5028 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5029 version 5.
5030 (dwarf2_locate_v5_dwp_sections): New function.
5031 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5032 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5033
159ed7d9
SM
50342020-08-06 Simon Marchi <simon.marchi@efficios.com>
5035
5036 * regcache.h (class regcache): Remove friend
5037 registers_changed_ptid.
5038 <regcache_thread_ptid_changed>: Remove.
5039 <regcaches>: Remove.
5040 * regcache.c (regcache::regcaches): Rename to...
5041 (regcaches): ... this. Make static.
5042 (get_thread_arch_aspace_regcache): Update.
5043 (regcache::regcache_thread_ptid_changed): Rename to...
5044 (regcache_thread_ptid_changed): ... this. Update.
5045 (class regcache_access): Remove.
5046 (regcaches_test): Update.
5047 (_initialize_regcache): Update.
5048 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5049 <forward_list>.
5050
174981ae
SM
50512020-08-06 Simon Marchi <simon.marchi@efficios.com>
5052
5053 * regcache.h (class regcache) <current_regcache>: Rename to...
5054 <regcaches>: ... this. Move doc here.
5055 * regcache.c (regcache::current_regcache) Rename to...
5056 (regcache::regcaches): ... this. Move doc to header.
5057 (get_thread_arch_aspace_regcache): Update.
5058 (regcache::regcache_thread_ptid_changed): Update.
5059 (registers_changed_ptid): Update.
5060 (class regcache_access) <current_regcache_size>: Rename to...
5061 <regcaches_size>: ... this.
5062 (current_regcache_test): Rename to...
5063 (regcaches_test): ... this.
5064 (_initialize_regcache): Update.
5065
ed908db6
VC
50662020-08-06 Victor Collod <vcollod@nvidia.com>
5067
5068 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5069
b5582ab7
KB
50702020-08-05 Kevin Buettner <kevinb@redhat.com>
5071
5072 * corelow.c (core_target::build_file_mappings): Don't output
5073 null pathname in warning.
5074
ea946b86
SM
50752020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5076
5077 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5078 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5079 gdb.dwarf2/dw2-single-line-discriminators.exp,
5080 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5081
57d02173
TT
50822020-08-05 Tom Tromey <tromey@adacore.com>
5083
5084 PR rust/26197:
5085 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5086 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5087 Fix off-by-one and type size errors in ordinary case.
5088
5555c86d
TV
50892020-08-05 Tom de Vries <tdevries@suse.de>
5090
5091 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5092 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5093
97916bfe
SM
50942020-08-04 Simon Marchi <simon.marchi@efficios.com>
5095
5096 * frame.h (frame_id_p): Return bool.
5097 (frame_id_artificial_p): Return bool.
5098 (frame_id_eq): Return bool.
5099 (has_stack_frames): Return bool.
5100 (get_selected_frame): Fix typo in comment.
5101 (get_frame_pc_if_available): Return bool.
5102 (get_frame_address_in_block_if_available): Return bool.
5103 (get_frame_func_if_available): Return bool.
5104 (read_frame_register_unsigned): Return bool.
5105 (get_frame_register_bytes): Return bool.
5106 (safe_frame_unwind_memory): Return bool.
5107 (deprecated_frame_register_read): Return bool.
5108 (frame_unwinder_is): Return bool.
5109 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5110 bool.
5111 <this_id::p>: Likewise.
5112 <prev_p>: Likewise.
5113 (frame_stash_add): Return bool.
5114 (get_frame_id): Use bool.
5115 (frame_id_build_special) Use bool.
5116 (frame_id_build_unavailable_stack): Use bool.
5117 (frame_id_build): Use bool.
5118 (frame_id_p): Return bool, use true/false instead of 1/0.
5119 (frame_id_artificial_p): Likewise.
5120 (frame_id_eq): Likewise.
5121 (frame_id_inner): Likewise.
5122 (get_frame_func_if_available): Likewise.
5123 (read_frame_register_unsigned): Likewise.
5124 (deprecated_frame_register_read): Likewise.
5125 (get_frame_register_bytes): Likewise.
5126 (has_stack_frames): Likewise.
5127 (inside_main_func): Likewise.
5128 (inside_entry_func): Likewise.
5129 (get_frame_pc_if_available): Likewise.
5130 (get_frame_address_in_block_if_available): Likewise.
5131 (frame_unwinder_is): Likewise.
5132 (safe_frame_unwind_memory): Likewise.
5133 (frame_unwind_arch): Likewise.
5134
fedfee88
SM
51352020-08-04 Simon Marchi <simon.marchi@efficios.com>
5136
5137 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5138 type to cached_copy_status.
5139 (fprintf_frame): Adjust.
5140 (get_frame_func_if_available): Adjust.
5141 (frame_cleanup_after_sniffer): Adjust.
5142
6cfa9b59
MW
51432020-08-04 Mark Wielaard <mark@klomp.org>
5144
5145 * MAINTAINERS (Write After Approval): Update email address.
5146
66d6346b
SM
51472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5148
5149 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5150 dynamic_prop::const_val.
5151
8a6d5e35
SM
51522020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5153
5154 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5155 dynamic_prop::kind.
5156
51d6067d
SM
51572020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5158
5159 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5160
b26e2ae7
JM
51612020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5162
5163 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5164
39791af2
JM
51652020-08-04 Weimin Pan <weimin.pan@oracle.com>
5166 Jose E. Marchesi <jose.marchesi@oracle.com>
5167
5168 * configure.tgt: Add entry for bpf-*-*.
5169 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5170 (ALLDEPFILES): Add bpf-tdep.c.
5171 * bpf-tdep.c: New file.
5172 * MAINTAINERS: Add bpf target and maintainer.
5173 * NEWS: Mention the support for the new target.
5174
521894aa
TV
51752020-08-04 Tom de Vries <tdevries@suse.de>
5176
5177 PR symtab/23270
5178 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5179 Error.
5180
5d6356e9
JB
51812020-08-03 John Baldwin <jhb@FreeBSD.org>
5182
5183 * syscalls/freebsd.xml: Regenerate.
5184
0cf82b81
JB
51852020-08-03 John Baldwin <jhb@FreeBSD.org>
5186
5187 * syscalls/update-freebsd.sh: Fix usage and year range.
5188
8f34b746
TV
51892020-08-03 Tom de Vries <tdevries@suse.de>
5190
5191 PR symtab/26333
5192 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5193 DW_LNE_lo_user/DW_LNE_hi_user range.
5194
5e500d33
SM
51952020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5196
5197 PR ada/26318
5198 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5199 kind.
5200
78319c15
TBA
52012020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5202
5203 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5204
4c55e970
TBA
52052020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5206
5207 * breakpoint.c (set_breakpoint_condition): Update the condition
5208 expressions after checking that the input condition string parses
5209 successfully and does not contain junk at the end.
5210
1e620590
TBA
52112020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5212
5213 * breakpoint.c (set_breakpoint_condition): Update the
5214 condition string after parsing the new condition successfully.
5215
c8693053
RO
52162020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5217
5218 * proc-api.c (_STRUCTURED_PROC): Don't define.
5219 * proc-events.c: Likewise.
5220 * proc-flags.c: Likewise.
5221 * proc-why.c: Likewise.
5222 * procfs.c: Likewise.
5223
5224 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5225 * configure, config.in: Regenerate.
5226
5a99adb8
TV
52272020-07-30 Tom de Vries <tdevries@suse.de>
5228
5229 PR build/26320
5230 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5231 m_red/m_green/m_blue in a union.
5232
8ba83e91
TV
52332020-07-29 Tom de Vries <tdevries@suse.de>
5234
5235 PR tdep/26280
5236 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5237
f75a0693
AB
52382020-07-28 Tom Tromey <tromey@adacore.com>
5239
5240 PR symtab/26270:
5241 * symtab.h (find_pc_partial_function_sym): Declare.
5242 * cli/cli-cmds.c (disassemble_command): Use
5243 find_pc_partial_function_sym. Check asm_demangle.
5244 * blockframe.c (cache_pc_function_sym): New global.
5245 (cache_pc_function_name): Remove.
5246 (clear_pc_function_cache): Update.
5247 (find_pc_partial_function_sym): New function, from
5248 find_pc_partial_function.
5249 (find_pc_partial_function): Rewrite using
5250 find_pc_partial_function_sym.
5251
16f3242c
TT
52522020-07-28 Tom Tromey <tromey@adacore.com>
5253
5254 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5255 help. Add usage.
5256
4888741a
TT
52572020-07-28 Tom Tromey <tromey@adacore.com>
5258
5259 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5260 <DW_OP_GNU_variable_value>: Cast to address type.
5261
4d46f402
KR
52622020-07-28 Kamil Rytarowski <n54@gmx.com>
5263
5264 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5265 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5266 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5267 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5268 (nbsd_get_siginfo_type): New.
5269 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5270 (_initialize_nbsd_tdep): New.
5271
d70f978b
L
52722020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5273
5274 PR binutils/26301
5275 * configure: Regenerated.
5276
377170fa
L
52772020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5278
5279 PR binutils/26301
5280 * configure: Regenerated.
5281
43d5901d
AB
52822020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5283
5284 * python/py-frame.c: Remove 'user-regs.h' include.
5285 (frapy_read_register): Rewrite to make use of
5286 gdbpy_parse_register_id.
5287 * python/py-registers.c (gdbpy_parse_register_id): New function,
5288 moved here from python/py-unwind.c. Updated the return type, and
5289 also accepts register descriptor objects.
5290 * python/py-unwind.c: Remove 'user-regs.h' include.
5291 (pyuw_parse_register_id): Moved to python/py-registers.c.
5292 (unwind_infopy_add_saved_register): Update to use
5293 gdbpy_parse_register_id.
5294 (pending_framepy_read_register): Likewise.
5295 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5296
14fa8fb3
AB
52972020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5298
5299 * python/py-registers.c: Add 'user-regs.h' include.
5300 (register_descriptor_iter_find): New function.
5301 (register_descriptor_iterator_object_methods): New static global
5302 methods array.
5303 (register_descriptor_iterator_object_type): Add pointer to methods
5304 array.
5305
ddce1758
JB
53062020-07-27 John Baldwin <jhb@FreeBSD.org>
5307
5308 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5309 for all architectures on FreeBSD 11.3 and later.
5310
a4089f52
TT
53112020-07-27 Tom Tromey <tromey@adacore.com>
5312
5313 * gcore.h (load_corefile): Don't declare.
5314
95420d30
TV
53152020-07-27 Tom de Vries <tdevries@suse.de>
5316
5317 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5318 * config.in: Regenerate.
5319 * configure: Regenerate.
5320
05a6b8c2
EZ
53212020-07-26 Eli Zaretskii <eliz@gnu.org>
5322
5323 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5324 ws2tcpip.h. When checking whether socklen_t type is defined, use
5325 ws2tcpip.h if it is available and sys/socket.h isn't.
5326 * configure: Regenerate.
5327 * config.in: Regenerate.
5328
e79eb02f
AB
53292020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5330
5331 PR fortran/23051
5332 PR fortran/26139
5333 * valops.c (value_ind): Pass address to
5334 readjust_indirect_value_type.
5335 * value.c (readjust_indirect_value_type): Make parameter
5336 non-const, and add extra address parameter. Resolve original type
5337 before using it.
5338 * value.h (readjust_indirect_value_type): Update function
5339 signature and comment.
5340
876518dd
TV
53412020-07-25 Tom de Vries <tdevries@suse.de>
5342
5343 PR symtab/26243
5344 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5345 entries.
5346
f6720b1c
AM
53472020-07-24 Aaron Merey <amerey@redhat.com>
5348
5349 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5350 * configure: Rebuild.
5351
513487e1
KB
53522020-07-23 Kevin Buettner <kevinb@redhat.com>
5353
5354 PR corefiles/26294
5355 * corelow.c (_initialize_corelow): Add period to help text
5356 for "maintenance print core-file-backed-mappings".
5357
e7bc9db8
PA
53582020-07-23 Pedro Alves <pedro@palves.net>
5359
5360 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5361 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5362 meanwhile.
5363 * frame.c (frame_cache_generation, get_frame_cache_generation):
5364 New.
5365 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5366 (get_prev_frame_if_no_cycle): On exception, don't touch
5367 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5368 * frame.h (get_frame_cache_generation): Declare.
5369
90fcc466
TV
53702020-07-23 Tom de Vries <tdevries@suse.de>
5371
5372 PR tui/26282
5373 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5374 New default constructor.
5375
78344df7
AB
53762020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5377
5378 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5379 exclude non-statement entries.
5380
b089853a
KB
53812020-07-22 Kevin Buettner <kevinb@redhat.com>
5382
5383 * NEWS (New commands): Mention new command
5384 "maintenance print core-file-backed-mappings".
5385
09c2f5d4
KB
53862020-07-22 Kevin Buettner <kevinb@redhat.com>
5387
5388 * corelow.c (gdbcmd.h): Include.
5389 (core_target::info_proc_mappings): New method.
5390 (get_current_core_target): New function.
5391 (maintenance_print_core_file_backed_mappings): New function.
5392 (_initialize_corelow): Add core-file-backed-mappings to
5393 "maint print" commands.
5394
9c5ec5c2 53952020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5396
9c5ec5c2
KB
5397 * linux-tdep.c (dump_note_entry_p): New function.
5398 (linux_dump_mapping_p_ftype): New typedef.
5399 (linux_find_memory_regions_full): Add new parameter,
5400 should_dump_mapping_p.
5401 (linux_find_memory_regions): Adjust call to
5402 linux_find_memory_regions_full.
5403 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5404 call to linux_find_memory_regions_full.
5405
db082f59
KB
54062020-07-22 Kevin Buettner <kevinb@redhat.com>
5407
5408 * corelow.c (solist.h, unordered_map): Include.
5409 (class core_target): Add field m_core_file_mappings and
5410 method build_file_mappings.
5411 (core_target::core_target): Call build_file_mappings.
5412 (core_target::~core_target): Free memory associated with
5413 m_core_file_mappings.
5414 (core_target::build_file_mappings): New method.
5415 (core_target::xfer_partial): Use m_core_file_mappings
5416 for memory transfers.
5417 * linux-tdep.c (linux_read_core_file_mappings): New
5418 function.
5419 (linux_core_info_proc_mappings): Rewrite to use
5420 linux_read_core_file_mappings.
5421 (linux_init_abi): Register linux_read_core_file_mappings.
5422
7e183d27
KB
54232020-07-22 Kevin Buettner <kevinb@redhat.com>
5424
5425 * arch-utils.c (default_read_core_file_mappings): New function.
5426 * arch-utils.c (default_read_core_file_mappings): Declare.
5427 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5428 * gdbarch.h, gdbarch.c: Regenerate.
5429
2735d421
KB
54302020-07-22 Kevin Buettner <kevinb@redhat.com>
5431
5432 PR corefiles/25631
5433 * corelow.c (core_target:xfer_partial): Revise
5434 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5435 case after first checking the stratum beneath the core
5436 target.
5437 (has_all_memory): Return true.
5438 * target.c (raw_memory_xfer_partial): Revise comment
5439 regarding use of has_all_memory.
5440
e56cb451
KB
54412020-07-22 Kevin Buettner <kevinb@redhat.com>
5442
5443 * exec.h (section_table_xfer_memory): Revise declaration,
5444 replacing section name parameter with an optional callback
5445 predicate.
5446 * exec.c (section_table_xfer_memory): Likewise.
5447 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5448 of section_table_xfer_memory.
5449
32fa152e
TT
54502020-07-22 Tom Tromey <tromey@adacore.com>
5451
5452 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5453 lookup_symbol_search_name.
5454
a67a1c41
AB
54552020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5456
5457 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5458 redundant local variable.
5459 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5460 reference, not pointer, update code accordingly.
5461
a7b4ff4f
SM
54622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5463 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5464
5465 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5466 * jit.c (jit_breakpoint_re_set_internal): Use the
5467 `skip_jit_symbol_lookup` field.
5468
2340e834
SM
54692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5470 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5471
5472 * jit.c (jit_read_descriptor): Define the descriptor address once,
5473 use twice.
5474 (jit_breakpoint_deleted): Move the declaration of the loop variable
5475 `iter` into the loop header.
5476 (jit_breakpoint_re_set_internal): Move the declaration of the local
5477 variable `objf_data` to the first point of definition.
5478 (jit_event_handler): Move the declaration of local variables
5479 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5480 Rename `objf` to `jited`.
5481
c1072906
SM
54822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5483
5484 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5485 Remove.
5486 * jit.c (get_jiter_objfile_data): Update.
5487
c8474dc3
TBA
54882020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5489 Simon Marchi <simon.marchi@polymtl.ca>
5490
5491 * jit.c (struct jit_program_space_data): Remove.
5492 (jit_program_space_key): Remove.
5493 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5494 stuff.
5495 (get_jit_program_space_data): Remove.
5496 (jit_breakpoint_deleted): Iterate on all of the program space's
5497 objfiles.
5498 (jit_inferior_init): Likewise.
5499 (jit_breakpoint_re_set_internal): Likewise. Also change return
5500 type to void.
5501 (jit_breakpoint_re_set): Pass current_program_space to
5502 jit_breakpoint_re_set_internal.
5503
77208eb7
SM
55042020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5505
5506 * jit.h (struct jiter_objfile_data) <cached_code_address,
5507 jit_breakpoint>: Move to here from ...
5508 * jit.c (jit_program_space_data): ... here.
5509 (jiter_objfile_data::~jiter_objfile_data): Update.
5510 (jit_breakpoint_deleted): Update.
5511 (jit_breakpoint_re_set_internal): Update.
5512
8c1c720f
SM
55132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5514
5515 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5516 checks.
5517 (jit_read_descriptor): Remove NULL check.
5518 (jit_event_handler): Add an assertion.
5519
0e74a041
SM
55202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5521
5522 * jit.h (struct jit_objfile_data): Split into...
5523 (struct jiter_objfile_data): ... this ...
5524 (struct jited_objfile_data): ... and this.
5525 * objfiles.h (struct objfile) <jit_data>: Remove.
5526 <jiter_data, jited_data>: New fields.
5527 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5528 (jiter_objfile_data::~jiter_objfile_data): ... this.
5529 (get_jit_objfile_data): Rename to ...
5530 (get_jiter_objfile_data): ... this.
5531 (add_objfile_entry): Update.
5532 (jit_read_descriptor): Use get_jiter_objfile_data.
5533 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5534 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5535 (jit_inferior_exit_hook): Use objfile's jited_data field.
5536
238b5c9f
SM
55372020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5538
5539 * jit.h: Forward-declare `struct minimal_symbol`.
5540 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5541 constructor, destructor, and an objfile* field.
5542 * jit.c (jit_objfile_data): Remove.
5543 (struct jit_objfile_data): Migrate from here to jit.h.
5544 (jit_objfile_data::~jit_objfile_data): New destructor
5545 implementation with code moved from free_objfile_data.
5546 (free_objfile_data): Delete.
5547 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5548 (jit_find_objf_with_entry_addr): Ditto.
5549 (jit_inferior_exit_hook): Ditto.
5550 (_initialize_jit): Remove the call to
5551 register_objfile_data_with_cleanup.
5552 * objfiles.h (struct objfile) <jit_data>: New field.
5553
fe053b9e
TBA
55542020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5555
5556 * jit.h: Forward-declare `struct objfile`.
5557 (jit_event_handler): Add a second parameter, the JITer objfile.
5558 * jit.c (jit_read_descriptor): Change the signature to take the
5559 JITer objfile as an argument instead of the jit_program_space_data.
5560 (jit_inferior_init): Update the call to jit_read_descriptor.
5561 (jit_event_handler): Use the new JITer objfile argument when calling
5562 jit_read_descriptor.
5563 * breakpoint.c (handle_jit_event): Update the call to
5564 jit_event_handler to pass the JITer objfile.
5565
4cec0c66
JB
55662020-07-21 John Baldwin <jhb@FreeBSD.org>
5567
5568 * gdbarch.c: Regenerate.
5569 * gdbarch.h: Regenerate.
5570 * gdbarch.sh (handle_segmentation_fault): Remove method.
5571 * infrun.c (handle_segmentation_fault): Remove.
5572 (print_signal_received_reason): Remove call to
5573 handle_segmentation_fault.
5574
0e42f66a
JB
55752020-07-21 John Baldwin <jhb@FreeBSD.org>
5576
5577 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5578 Rename to sparc64_linux_report_signal_info and add siggnal
5579 argument.
5580 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5581 instead of sparc64_linux_handle_segmentation_fault.
5582
77bdfeb2
JB
55832020-07-21 John Baldwin <jhb@FreeBSD.org>
5584
5585 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5586 i386_linux_report_signal_info instead of
5587 i386_linux_handle_segmentation_fault.
5588 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5589 to i386_linux_report_signal_info and add siggnal argument.
5590 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5591 of i386_linux_handle_segmentation_fault.
5592 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5593 to i386_linux_report_signal_info and add siggnal argument.
5594
ad97bfc5
JB
55952020-07-21 John Baldwin <jhb@FreeBSD.org>
5596
5597 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5598 hook if present.
5599
272bb05c
JB
56002020-07-21 John Baldwin <jhb@FreeBSD.org>
5601
5602 * gdbarch.c: Regenerate.
5603 * gdbarch.h: Regenerate.
5604 * gdbarch.sh (report_signal_info): New method.
5605 * infrun.c (print_signal_received_reason): Invoke gdbarch
5606 report_signal_info hook if present.
5607
baf8791e
AB
56082020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5609
5610 * python/py-registers.c : Add 'unordered_map' include.
5611 (gdbpy_new_reggroup): Renamed to...
5612 (gdbpy_get_reggroup): ...this. Update to only create register
5613 group descriptors when needed.
5614 (gdbpy_reggroup_iter_next): Update.
5615
f7306dac
AB
56162020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5617
5618 * python/py-registers.c (gdbpy_register_object_data): New static
5619 global.
5620 (gdbpy_register_object_data_init): New function.
5621 (gdbpy_new_register_descriptor): Renamed to...
5622 (gdbpy_get_register_descriptor): ...this, and update to reuse
5623 existing register descriptors where possible.
5624 (gdbpy_register_descriptor_iter_next): Update.
5625 (gdbpy_initialize_registers): Register new gdbarch data.
5626
05c309a8
SM
56272020-07-21 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * linux-nat.c (stopped_pids): Make static.
5630
d1fd641e
SM
56312020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5632
5633 PR ada/26235
5634 * gdbtypes.c (ada_discrete_type_low_bound,
5635 ada_discrete_type_high_bound): Handle undefined bounds.
5636
1de14d77
KR
56372020-07-21 Kamil Rytarowski <n54@gmx.com>
5638
5639 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5640 declaration.
5641 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5642 function.
5643
ed810cc7
JB
56442020-07-20 John Baldwin <jhb@FreeBSD.org>
5645
5646 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5647 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5648 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5649 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5650 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5651 method.
5652
ae5369e7
LC
56532020-07-20 Ludovic Courtès <ludo@gnu.org>
5654
5655 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5656 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5657 which are deprecated in Guile 3.0.
5658 * configure.ac (try_guile_versions): Add "guile-3.0".
5659 * configure (try_guile_versions): Regenerate.
5660 * NEWS: Update entry.
5661
68cf161c
LC
56622020-07-20 Ludovic Courtès <ludo@gnu.org>
5663 Doug Evans <dje@google.com>
5664
5665 PR gdb/21104
5666 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5667 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5668 USING_GUILE_BEFORE_2_2.
5669 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5670 Change type to 'scm_t_port_type *'.
5671 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5672 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5673 parameter and honor it. Update callers.
5674 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5675 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5676 functions.
5677 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5678 USING_GUILE_BEFORE_2_2.
5679 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5680 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5681 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5682 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5683 and 'SCM_PORT_TYPE'.
5684 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5685 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5686 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5687 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5688 [!USING_GUILE_BEFORE_2_2]: New functions.
5689 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5690 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5691 'gdbscm_memory_port_read'.
5692 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5693 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5694 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5695 function.
5696 (ioscm_init_memory_port): Remove.
5697 (ioscm_init_memory_port_stream): New function
5698 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5699 function.
5700 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5701 Return scm_from_uint (0).
5702 (gdbscm_set_memory_port_read_buffer_size_x)
5703 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5704 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5705 Return scm_from_uint (0).
5706 (gdbscm_set_memory_port_write_buffer_size_x)
5707 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5708 * configure.ac (try_guile_versions): Add "guile-2.2".
5709 * configure: Regenerate.
5710 * NEWS: Add entry.
5711
aee91db3
TT
57122020-07-18 Tom Tromey <tom@tromey.com>
5713
5714 * linux-nat.c (linux_multi_process): Remove.
5715 (linux_nat_target::supports_multi_process): Return true.
5716
0e267416
AB
57172020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5718
5719 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5720 (riscv_lookup_target_description): Return pointer out of
5721 unique_ptr.
5722 * target-descriptions.c (allocate_target_description): Add
5723 comment.
5724 (target_desc_deleter::operator()): Likewise.
5725 * target-descriptions.h (struct target_desc_deleter): Moved to
5726 gdbsupport/tdesc.h.
5727 (target_desc_up): Likewise.
5728
f80c8ec4
TT
57292020-07-17 Tom Tromey <tromey@adacore.com>
5730
5731 * linux-nat.c (linux_nat_target::supports_non_stop)
5732 (linux_nat_target::always_non_stop_p): Use "true".
5733 (linux_nat_target::supports_disable_randomization): Use "true" and
5734 "false".
5735
d0ce17d8
CT
57362020-07-16 Caroline Tice <cmtice@google.com>
5737
5738 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5739 (RNGLIST_HEADER_SIZE64): New constant definition.
5740 (struct dwop_section_names): Add rnglists_dwo.
5741 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5742 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5743 (struct dwo_sections): Add rnglists field.
5744 (read_attribut_reprocess): Add tag parameter.
5745 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5746 (cu_debug_rnglists_section): New function (decl & definition).
5747 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5748 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5749 die whose range is being checked; get rnglist section from
5750 cu_debug_rnglists_section, to get from either objfile or dwo file as
5751 appropriate. Add cases for DW_RLE_base_addressx,
5752 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5753 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5754 test inside if-condition and updating complaint message.
5755 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5756 dwarf2_rnglists_process.
5757 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5758 dwarf2_ranges_process.
5759 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5760 need_ranges_base and update comment appropriately. Also pass die tag
5761 to dwarf2_ranges_read.
5762 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5763 need_ranges_base and update comment appropriately. Also pass die tag
5764 to dwarf2_ranges_process.
5765 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5766 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5767 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5768 need_ranges_base and update comment appropriately. Also pass die tag
5769 to read_attribute_reprocess and dwarf2_ranges_read.
5770 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5771 and update function comment appropriately.
5772 (read_loclist_index): Call read_loclists_rnglists_header instead of
5773 read_loclist_header.
5774 (read_rnglist_index): New function.
5775 (read_attribute_reprocess): Add tag parameter. Add code for
5776 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5777 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5778
3dcc261c
AB
57792020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5780
5781 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5782 being resolved.
5783
ccb9eba6
AB
57842020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5785
5786 * arch-utils.c (show_architecture): Update formatting of messages.
5787
cf88be68
SM
57882020-07-12 Simon Marchi <simon.marchi@efficios.com>
5789
5790 * gdbtypes.h (struct type) <bounds>: Handle array and string
5791 types.
5792 * ada-lang.c (assign_aggregate): Use type::bounds on
5793 array/string type.
5794 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5795 * c-varobj.c (c_number_of_children): Likewise.
5796 (c_describe_child): Likewise.
5797 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5798 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5799 (f_type_print_base): Likewise.
5800 * f-valprint.c (f77_array_offset_tbl): Likewise.
5801 (f77_get_upperbound): Likewise.
5802 (f77_print_array_1): Likewise.
5803 * guile/scm-type.c (gdbscm_type_range): Likewise.
5804 * m2-typeprint.c (m2_array): Likewise.
5805 (m2_is_long_set_of_type): Likewise.
5806 * m2-valprint.c (get_long_set_bounds): Likewise.
5807 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5808 * python/py-type.c (typy_range): Likewise.
5809 * rust-lang.c (rust_internal_print_type): Likewise.
5810 * type-stack.c (type_stack::follow_types): Likewise.
5811 * valarith.c (value_subscripted_rvalue): Likewise.
5812 * valops.c (value_cast): Likewise.
5813
509971ae
SM
58142020-07-12 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5817 callers to use the equivalent accessor methods.
5818
107406b7
SM
58192020-07-12 Simon Marchi <simon.marchi@efficios.com>
5820
5821 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5822 (struct type) <bit_stride>: New method.
5823 (TYPE_BIT_STRIDE): Remove.
5824 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5825
bb789949
SM
58262020-07-12 Simon Marchi <simon.marchi@efficios.com>
5827
5828 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5829 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5830 callers to use the equivalent accessor methods instead.
5831
39498edb
SM
58322020-07-12 Simon Marchi <simon.marchi@efficios.com>
5833
5834 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5835 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5836 callers to use the equivalent accessor methods instead.
5837
3b606f38
SM
58382020-07-12 Simon Marchi <simon.marchi@efficios.com>
5839
5840 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5841 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5842 to use dynamic_prop::kind.
5843
064d9cb9
SM
58442020-07-12 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5847 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5848 to get the bound property's kind and check against
5849 PROP_UNDEFINED.
5850
5537ddd0
SM
58512020-07-12 Simon Marchi <simon.marchi@efficios.com>
5852
5853 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5854 all callers to use type::range_bounds followed by
5855 dynamic_prop::{low,high}.
5856
8c2e4e06
SM
58572020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5858
5859 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5860 const_val, set_const_val, baton, set_locexpr, set_loclist,
5861 set_addr_offset, variant_parts, set_variant_parts,
5862 original_type, set_original_type>: New methods.
5863 <kind>: Rename to...
5864 <m_kind>: ... this. Update all users to use the new methods
5865 instead.
5866 <data>: Rename to...
5867 <m_data>: ... this. Update all users to use the new methods
5868 instead.
5869
7c6f2712
SM
58702020-07-12 Simon Marchi <simon.marchi@efficios.com>
5871
5872 * gdbtypes.c (get_discrete_bounds): Return failure if
5873 the range type's bounds are not both defined and constant
5874 values.
5875 (get_array_bounds): Update comment. Remove undefined bound check.
5876
599088e3
SM
58772020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5878
5879 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5880 the type::bounds method directly.
5881
c4dfcb36
SM
58822020-07-12 Simon Marchi <simon.marchi@efficios.com>
5883
5884 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5885 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5886 are used to set the range type's bounds to use set_bounds.
5887
0a278aa7
PW
58882020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5889
5890 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5891
cce20f10
PA
58922020-07-10 Pedro Alves <pedro@palves.net>
5893
5894 * gdbthread.h (inferior_ref): Define.
5895 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5896 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5897 * thread.c
5898 (scoped_restore_current_thread::restore):
5899 Adjust to gdb::ref_ptr.
5900 (scoped_restore_current_thread::~scoped_restore_current_thread):
5901 Remove manual decref handling.
5902 (scoped_restore_current_thread::scoped_restore_current_thread):
5903 Adjust to use
5904 inferior_ref::new_reference/thread_info_ref::new_reference.
5905 Incref the thread before calling get_frame_id instead of after.
5906 Let TARGET_CLOSE_ERROR propagate.
5907
6d7aa592
PA
59082020-07-10 Pedro Alves <pedro@palves.net>
5909
5910 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5911 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5912 NOT_AVAILABLE_ERROR.
5913 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5914 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5915
b3e3a4c1
SM
59162020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5917 Pedro Alves <pedro@palves.net>
5918
5919 PR gdb/26199
5920 * infrun.c (threads_are_resumed_pending_p): Delete.
5921 (do_target_wait): Remove threads_are_executing and
5922 threads_are_resumed_pending_p checks from the inferior_matches
5923 lambda. Update comments.
5924
d6cc5d98
PA
59252020-07-10 Pedro Alves <pedro@palves.net>
5926
5927 PR gdb/26199
5928 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5929 executing threads.
5930
7d3badc6
PA
59312020-07-10 Pedro Alves <pedro@palves.net>
5932
5933 PR gdb/26199
5934 * infrun.c (handle_no_resumed): Handle multiple targets.
5935
42bd97a6
PA
59362020-07-10 Pedro Alves <pedro@palves.net>
5937
5938 PR gdb/26199
5939 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5940 target_is_async_p.
5941
43667cc6
PA
59422020-07-10 Pedro Alves <pedro@palves.net>
5943
5944 PR gdb/26199
5945 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5946 threads, not all threads.
5947
96118d11
PA
59482020-07-10 Pedro Alves <pedro@palves.net>
5949
5950 PR gdb/26199
5951 * remote.c (remote_target::open_1): Pass remote target pointer as
5952 data to create_async_event_handler.
5953 (remote_async_inferior_event_handler): Mark async event handler
5954 before returning if the remote target still has either pending
5955 events or unacknowledged notifications.
5956
54904d81
JB
59572020-07-10 John Baldwin <jhb@FreeBSD.org>
5958
5959 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5960 declaration.
5961 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5962 function.
5963
f37e5866
JB
59642020-07-09 John Baldwin <jhb@FreeBSD.org>
5965
5966 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5967 inferior_ptid.
5968
fc238d4a
JB
59692020-07-09 John Baldwin <jhb@FreeBSD.org>
5970
5971 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5972 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5973 AT_FREEBSD_PS_STRINGS.
5974
6e2469ff
HD
59752020-07-08 Hannes Domani <ssbssa@yahoo.de>
5976
5977 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5978 of debugfile path on Windows.
5979
d1076c41
JB
59802020-07-08 John Baldwin <jhb@FreeBSD.org>
5981
5982 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5983 argument to 'data'.
5984
15f3b077
TT
59852020-07-08 Tom Tromey <tromey@adacore.com>
5986
5987 * ada-lang.c (ada_exception_message_1): Use read_memory.
5988
9fc501fd
AB
59892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5990
5991 PR python/22748
5992 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5993 special handling for inline frames.
5994 * findvar.c (value_of_register_lazy): Skip inline frames when
5995 creating lazy register values.
5996 * frame.c (frame_id_computed_p): Delete definition.
5997 * frame.h (frame_id_computed_p): Delete declaration.
5998
64cb3757
AB
59992020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6000
6001 * NEWS: Mention additions to Python API.
6002 * python/py-arch.c (archpy_register_groups): New function.
6003 (arch_object_methods): Add 'register_groups' method.
6004 * python/py-registers.c (reggroup_iterator_object): New struct.
6005 (reggroup_object): New struct.
6006 (gdbpy_new_reggroup): New function.
6007 (gdbpy_reggroup_to_string): New function.
6008 (gdbpy_reggroup_name): New function.
6009 (gdbpy_reggroup_iter): New function.
6010 (gdbpy_reggroup_iter_next): New function.
6011 (gdbpy_new_reggroup_iterator): New function
6012 (gdbpy_initialize_registers): Register new types.
6013 (reggroup_iterator_object_type): Define new Python type.
6014 (gdbpy_reggroup_getset): New static global.
6015 (reggroup_object_type): Define new Python type.
6016 * python/python-internal.h
6017
0f767f94
AB
60182020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6019
6020 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6021 * python/py-arch.c (archpy_registers): New function.
6022 (arch_object_methods): Add 'registers' method.
6023 * python/py-registers.c: New file.
6024 * python/python-internal.h
6025 (gdbpy_new_register_descriptor_iterator): Declare.
6026 (gdbpy_initialize_registers): Declare.
6027 * python/python.c (do_start_initialization): Call
6028 gdbpy_initialize_registers.
6029 * NEWS: Mention additions to the Python API.
6030
87dbc774
AB
60312020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6032
6033 * NEWS: Mention new Python API method.
6034 * python/py-unwind.c (pending_framepy_architecture): New function.
6035 (pending_frame_object_methods): Add architecture method.
6036
3bc98c0c
AB
60372020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6038
6039 * gdbarch.c: Regenerate.
6040 * gdbarch.h: Regenerate.
6041 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6042 (gdbarch_data): Use internal_error for the case where
6043 deprecated_set_gdbarch_data was originally needed.
6044 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6045 and use passed in obstack.
6046 (libunwind_frame_set_descr): Should no longer get back NULL from
6047 gdbarch_data.
6048 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6049 type.
6050 * user-regs.c (user_regs_init): Update parameters, and use passed
6051 in obstack.
6052 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6053 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6054
d8cc8af6
TV
60552020-07-06 Tom de Vries <tdevries@suse.de>
6056
6057 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6058 End-Of-Sequence in lte_is_less_than.
6059 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6060 "gdb: Don't reorder line table entries too much when sorting".
6061
947f7597
TV
60622020-07-06 Tom de Vries <tdevries@suse.de>
6063
6064 PR tui/26205
6065 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6066
1e7c1b22
TV
60672020-07-05 Tom de Vries <tdevries@suse.de>
6068
6069 PR build/26187
6070 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6071 std::uncaught_exceptions instead of deprecated
6072 std::uncaught_exception.
6073
a36158ec
SM
60742020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6075
6076 * macroexp.h (macro_stringify): Return
6077 gdb::unique_xmalloc_ptr<char>.
6078 * macroexp.c (macro_stringify): Likewise.
6079 * macrotab.c (fixup_definition): Update.
6080
14d960c8
SM
60812020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6082
6083 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6084 (lex_one_token): Update.
6085 * macroexp.c (struct macro_buffer) <release>: Return
6086 gdb::unique_xmalloc_ptr<char>.
6087 (macro_stringify): Update.
6088 (macro_expand): Update.
6089 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6090 * macroexp.h (macro_expand_next): Likewise.
6091
211d5b1c
SM
60922020-07-02 Simon Marchi <simon.marchi@efficios.com>
6093
6094 * macroexp.h (macro_lookup_ftype): Remove.
6095 (macro_expand, macro_expand_once, macro_expand_next): Remove
6096 lookup function parameters, add scope parameter.
6097 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6098 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6099 * macroscope.h (standard_macro_lookup): Change parameter type
6100 to macro_scope.
6101 * macroscope.c (standard_macro_lookup): Likewise.
6102 * c-exp.y (lex_one_token): Update.
6103 * macrocmd.c (macro_expand_command): Likewise.
6104 (macro_expand_once_command): Likewise.
6105
b1a35af2
SM
61062020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6107
6108 * inf-loop.c (inferior_event_handler): Remove client_data param.
6109 * inf-loop.h (inferior_event_handler): Likewise.
6110 * infcmd.c (step_1): Adjust.
6111 * infrun.c (proceed): Adjust.
6112 (fetch_inferior_event): Remove client_data param.
6113 (infrun_async_inferior_event_handler): Adjust.
6114 * infrun.h (fetch_inferior_event): Remove `void *` param.
6115 * linux-nat.c (handle_target_event): Adjust.
6116 * record-btrace.c (record_btrace_handle_async_inferior_event):
6117 Adjust.
6118 * record-full.c (record_full_async_inferior_event_handler):
6119 Adjust.
6120 * remote.c (remote_async_inferior_event_handler): Adjust.
6121
1cdf9e33
TT
61222020-07-01 Tom Tromey <tom@tromey.com>
6123
6124 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6125 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6126
32c1e210
TT
61272020-07-01 Tom Tromey <tom@tromey.com>
6128
6129 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6130 tui_gen_win_info.
6131 (tui_win_info::make_window): Merge with
6132 tui_gen_win_info::make_window.
6133 (tui_win_info::make_visible): Move from tui_gen_win_info.
6134 * tui/tui-win.c (tui_win_info::max_width): Move from
6135 tui_gen_win_info.
6136 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6137 type.
6138 <window_factory>: Likewise.
6139 * tui/tui-layout.c (tui_win_info::resize): Move from
6140 tui_gen_win_info.
6141 (make_standard_window): Change return type.
6142 (get_locator_window, tui_get_window_by_name): Likewise.
6143 (tui_layout_window::apply): Remove a cast.
6144 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6145 (struct tui_win_info): Merge with tui_gen_win_info.
6146 (struct tui_gen_win_info): Remove.
6147
a30cb6da
TT
61482020-07-01 Tom Tromey <tom@tromey.com>
6149
6150 * tui/tui-stack.h (struct tui_locator_window): Derive from
6151 tui_win_info.
6152 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6153 <can_box>: New method.
6154
1eb2161f
TT
61552020-07-01 Tom Tromey <tom@tromey.com>
6156
6157 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6158
7134f2eb
TT
61592020-07-01 Tom Tromey <tom@tromey.com>
6160
6161 * tui/tui-regs.c (tui_data_window::display_registers_from)
6162 (tui_data_window::display_registers_from)
6163 (tui_data_window::first_data_item_displayed)
6164 (tui_data_window::delete_data_content_windows): Update.
6165 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6166 Remove.
6167 (tui_data_window::check_register_values): Update.
6168 (tui_data_item_window::rerender): Add parameters. Update.
6169 (tui_data_item_window::refresh_window): Remove.
6170 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6171 virtual.
6172 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6173 tui_gen_win_info.
6174 <refresh_window, max_height, min_height>: Remove.
6175 <rerender>: Add parameters.
6176 <x, y, visible>: New members.
6177 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6178 <m_item_width>: New member.
6179
22b7b041
TT
61802020-07-01 Tom Tromey <tom@tromey.com>
6181
6182 * tui/tui-regs.c (tui_data_window::show_register_group)
6183 (tui_data_window::check_register_values): Update.
6184 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6185 from item_no.
6186
c9753adb
TT
61872020-07-01 Tom Tromey <tom@tromey.com>
6188
6189 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6190 useless "if".
6191
9ab26b4a
TT
61922020-07-01 Tom Tromey <tom@tromey.com>
6193
6194 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6195 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6196
e555083f
TT
61972020-07-01 Tom Tromey <tom@tromey.com>
6198
6199 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6200 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6201 (struct tui_line_or_address): Move from tui-data.h.
6202 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6203 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6204 (tui_cmd_window, tui_source_window_base, tui_source_window)
6205 (tui_disasm_window): Don't declare.
6206 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6207 to tui-winsource.h.
6208 (SINGLE_KEY): Move to tui-stack.c.
6209
7a02bab7
TT
62102020-07-01 Tom Tromey <tom@tromey.com>
6211
6212 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6213 std::string.
6214 * tui/tui-regs.c (class tab_expansion_file): New.
6215 (tab_expansion_file::write): New method.
6216 (tui_register_format): Change return type. Use
6217 tab_expansion_file.
6218 (tui_get_register, tui_data_window::display_registers_from)
6219 (tui_data_item_window::rerender): Update.
6220 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6221 * tui/tui-io.c (tui_expand_tabs): Remove.
6222
ea68593b
TT
62232020-07-01 Tom Tromey <tom@tromey.com>
6224
6225 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6226
a8caed5d
FS
62272020-07-01 Fangrui Song <maskray@google.com>
6228
6229 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6230
9cdf9820
AKS
62312020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6232
6233 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6234 forms for DW_AT_associated and DW_AT_allocated attributes,
6235 which is already checked in function attr_to_dynamic_prop.
6236
a1520ad8
TT
62372020-06-30 Tom Tromey <tromey@adacore.com>
6238
6239 * dwarf2/read.c (quirk_rust_enum): Correctly call
6240 alloc_rust_variant for default-less enum.
6241
5ac58899
TT
62422020-06-30 Tom Tromey <tromey@adacore.com>
6243
6244 PR build/26183:
6245 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6246 gdb::to_string.
6247
19b187a9
SM
62482020-06-29 Simon Marchi <simon.marchi@efficios.com>
6249
6250 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6251 * gdbarch.h: Re-generate.
6252
cd4c4c07
TT
62532020-06-28 Tom Tromey <tom@tromey.com>
6254
6255 * command.h (cmd_types): Remove.
6256 (cmd_type): Don't declare.
6257 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6258 typedef.
6259 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6260 * cli/cli-decode.c (cmd_type): Remove.
6261
05779d57
PA
62622020-06-27 Pedro Alves <palves@redhat.com>
6263
6264 * fork-child.c (prefork_hook): Adjust.
6265 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6266 Delete.
6267 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6268 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6269 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6270 Remove declarations.
6271 (struct inferior) <set_tty, tty>: New methods.
6272 (struct inferior) <terminal>: Rename to ...
6273 (struct inferior) <m_terminal>: ... this and make private.
6274 * main.c (captured_main_1): Adjust.
6275 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6276 (mi_cmd_inferior_tty_show): Adjust.
6277 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6278 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6279
1776e3e5
NA
62802020-06-26 Nick Alcock <nick.alcock@oracle.com>
6281
6282 * configure.ac: Add --enable-libctf: handle --disable-static
6283 properly.
6284 * acinclude.m4: sinclude ../config/enable.m4.
6285 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6286 (LIBCTF): Substitute in.
6287 (CTF_DEPS): New, likewise.
6288 (CLIBS): libctf needs symbols from libbfd: move earlier.
6289 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6290 flags.
6291 * ctfread.c: Surround in ENABLE_LIBCTF.
6292 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6293 * configure: Regenerate.
6294 * config.in: Likewise.
6295
58373b80
SM
62962020-06-25 Simon Marchi <simon.marchi@efficios.com>
6297
6298 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6299
277474ee
SM
63002020-06-25 Simon Marchi <simon.marchi@efficios.com>
6301
6302 * inferior.h (struct inferior) <terminal>: Change type to
6303 gdb::unique_xmalloc_ptr<char>.
6304 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6305 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6306 field, adjust to unique pointer.
6307 (get_inferior_io_terminal): Adjust to unique pointer.
6308
6d74da72
AB
63092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6310
6311 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6312 registers, not just the known core set of registers.
6313
2e52d038
AB
63142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6315
6316 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6317 fflags, frm, and fcsr registers.
6318 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6319 restore groups.
6320 (riscv_tdesc_unknown_reg): New function.
6321 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6322 tdesc_use_registers.
6323 * riscv-tdep.h (struct gdbarch_tdep): Add
6324 unknown_csrs_first_regnum, unknown_csrs_count,
6325 duplicate_fflags_regnum, duplicate_frm_regnum, and
6326 duplicate_fcsr_regnum fields.
6327
be64fd07
AB
63282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6329
6330 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6331 callback, use the callback (when not null) to help number unknown
6332 registers.
6333 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6334 (tdesc_use_registers): Add extra parameter to declaration.
6335
3b9fce96
AB
63362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6337
6338 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6339 in the file.
6340 (class riscv_pending_register_alias): Likewise.
6341 (riscv_register_feature::register_info): Change 'required_p' field
6342 to 'required', and change its type. Add 'check' member function.
6343 (riscv_register_feature::register_info::check): Define new member
6344 function.
6345 (riscv_xreg_feature): Change initialisation of 'required' field.
6346 (riscv_freg_feature): Likewise.
6347 (riscv_virtual_feature): Likewise.
6348 (riscv_csr_feature): Likewise.
6349 (riscv_check_tdesc_feature): Take extra parameter, the csr
6350 tdesc_feature, rewrite the function to use the new
6351 riscv_register_feature::register_info::check function.
6352 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6353
865bad26
AB
63542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6355
6356 * features/Makefile: Remove all references to the deleted files
6357 below.
6358 * features/riscv/32bit-csr.c: Deleted.
6359 * features/riscv/32bit-csr.xml: Deleted.
6360 * features/riscv/64bit-csr.c: Deleted.
6361 * features/riscv/64bit-csr.xml: Deleted.
6362 * features/riscv/rebuild-csr-xml.sh: Deleted.
6363
ed69cbc8
AB
63642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6365
6366 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6367 whitespace error for declaration of names member variable.
6368 (struct riscv_register_feature): Add new prefer_first_name member
6369 variable, and fix whitespace error in declaration of registers.
6370 (riscv_xreg_feature): Initialize prefer_first_name field.
6371 (riscv_freg_feature): Likewise.
6372 (riscv_virtual_feature): Likewise.
6373 (riscv_csr_feature): Likewise.
6374 (riscv_register_name): Expand on comments. Remove register name
6375 modifications for CSR and virtual registers.
6376
4445e8f5
AB
63772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6378
6379 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6380 errors.
6381
767a879e
AB
63822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6383
6384 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6385 riscv-opc.h.
6386 (class riscv_pending_register_alias): New class.
6387 (riscv_check_tdesc_feature): Take vector of pending aliases and
6388 populate it as appropriate.
6389 (riscv_setup_register_aliases): Delete.
6390 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6391 to riscv_check_tdesc_feature in all cases. Use the vector to
6392 create the register aliases.
6393
bb6e55f3
RO
63942020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6395
6396 * sol2-tdep.c (sol2_static_transform_name): Remove.
6397 (sol2_init_abi): Don't register it.
6398 * gdbarch.sh (static_transform_name): Remove.
6399 * gdbarch.c, gdbarch.h: Regenerate.
6400
6401 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6402 gdbarch_static_transform_name.
6403 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6404 * stabsread.c (define_symbol) <'X'>: Remove.
6405 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6406 handling.
6407 <'V'>: Likewise.
6408 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6409 <'S'>: Remove call to gdbarch_static_transform_name.
6410
c6d36836
RO
64112020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6412
6413 * procfs.c (procfs_pre_trace): New function.
6414 (procfs_target::create_inferior): Pass it to fork_inferior.
6415
a7e6196b
RO
64162020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6417
6418 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6419 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6420 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6421 sol2-tdep.o, sparc-sol2-tdep.o.
6422 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6423 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6424 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6425 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6426
d412e696
RO
64272020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6428
6429 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6430 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6431 Call sol2_init_abi.
6432 Remove calls to set_gdbarch_skip_solib_resolver,
6433 set_gdbarch_core_pid_to_str.
6434 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6435 (i386_sol2_static_transform_name): Remove.
6436 (i386_sol2_init_abi): Call sol2_init_abi.
6437 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6438 set_gdbarch_static_transform_name,
6439 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6440 Use sol2_sigtramp_p.
6441 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6442 (sol2_sigtramp_p): New function.
6443 (sol2_static_transform_name): New function.
6444 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6445 (sol2_init_abi): New function.
6446 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6447 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6448 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6449 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6450 (sparc_sol2_static_transform_name): Remove.
6451 (sparc32_sol2_init_abi): Call sol2_init_abi.
6452 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6453 set_gdbarch_static_transform_name,
6454 set_gdbarch_skip_solib_resolver,
6455 set_gdbarch_core_pid_to_str.
6456 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6457 (sparc_sol2_static_transform_name): Remove
6458 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6459 call sol2_sigtramp_p.
6460 (sparc64_sol2_init_abi): Call sol2_init_abi.
6461 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6462 set_gdbarch_static_transform_name,
6463 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6464
a8654e7d
PW
64652020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6466
6467 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6468 * exec.c (validate_exec_file): If from_tty, set both
6469 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6470 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6471 and from_tty, unconditionally ask a confirmation.
6472
caa7fd04
AB
64732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6474
6475 * target-descriptions.c (tdesc_architecture_name): Protect against
6476 NULL pointer dereference.
6477 (maint_print_xml_tdesc_cmd): New function.
6478 (_initialize_target_descriptions): Register new 'maint print
6479 xml-tdesc' command and give it the filename completer.
6480 * NEWS: Mention new 'maint print xml-tdesc' command.
6481
fbf42f4e
AB
64822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6483
6484 * target-descriptions.c (class tdesc_compatible_info): New class.
6485 (struct target_desc): Change type of compatible vector.
6486 (tdesc_compatible_p): Update for change in type of
6487 target_desc::compatible.
6488 (tdesc_compatible_info_list): New function.
6489 (tdesc_compatible_info_arch_name): New function.
6490 (tdesc_add_compatible): Update for change in type of
6491 target_desc::compatible.
6492 (print_c_tdesc::visit_pre): Likewise.
6493
20821f4e
AB
64942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6495
6496 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6497 whitespace to underscore.
6498 (maint_print_c_tdesc_cmd): Use fake filename for target
6499 descriptions that came from the target.
6500 (_initialize_target_descriptions): Add filename command completion
6501 for 'maint print c-tdesc'.
6502
1fb5ee62
SM
65032020-06-23 Simon Marchi <simon.marchi@efficios.com>
6504
6505 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6506 lines.
6507
fc3ecb3e
SM
65082020-06-23 Simon Marchi <simon.marchi@efficios.com>
6509
6510 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6511 lines.
6512 (dwarf2_find_location_expression): Likewise.
6513 (call_site_parameter_matches): Likewise.
6514 (dwarf2_compile_expr_to_ax): Likewise.
6515 (disassemble_dwarf_expression): Likewise.
6516 (loclist_describe_location): Likewise.
6517
236ef034
PA
65182020-06-23 Pedro Alves <palves@redhat.com>
6519
6520 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6521 progspace-and-thread.h. Include scoped-mock-context.h instead.
6522 (register_to_value_test): Use scoped_mock_context.
6523 * regcache.c: Include "scoped-mock-context.h".
6524 (cooked_read_test): Don't error out if a target is already pushed.
6525 Use scoped_mock_context. Adjust.
6526 * scoped-mock-context.h: New file.
6527
39e7ecca
AB
65282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6529
6530 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6531 initializer.
6532 (ada_language::is_string_type_p): New member function.
6533 * c-lang.c (c_language_data): Delete la_is_string_type_p
6534 initializer.
6535 (cplus_language_data): Likewise.
6536 (asm_language_data): Likewise.
6537 (minimal_language_data): Likewise.
6538 * d-lang.c (d_language_data): Likewise.
6539 * f-lang.c (f_is_string_type_p): Delete function, implementation
6540 moved to f_language::is_string_type_p.
6541 (f_language_data): Delete la_is_string_type_p initializer.
6542 (f_language::is_string_type_p): New member function,
6543 implementation from f_is_string_type_p.
6544 * go-lang.c (go_is_string_type_p): Delete function, implementation
6545 moved to go_language::is_string_type_p.
6546 (go_language_data): Delete la_is_string_type_p initializer.
6547 (go_language::is_string_type_p): New member function,
6548 implementation from go_is_string_type_p.
6549 * language.c (language_defn::is_string_type_p): Define new member
6550 function.
6551 (default_is_string_type_p): Make static, add comment copied from
6552 header file.
6553 (unknown_language_data): Delete la_is_string_type_p initializer.
6554 (unknown_language::is_string_type_p): New member function.
6555 (auto_language_data): Delete la_is_string_type_p initializer.
6556 (auto_language::is_string_type_p): New member function.
6557 * language.h (language_data): Delete la_is_string_type_p field.
6558 (language_defn::is_string_type_p): Declare new function.
6559 (default_is_string_type_p): Delete desclaration, move comment to
6560 definition.
6561 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6562 moved to m2_language::is_string_type_p.
6563 (m2_language_data): Delete la_is_string_type_p initializer.
6564 (m2_language::is_string_type_p): New member function,
6565 implementation from m2_is_string_type_p.
6566 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6567 initializer.
6568 * opencl-lang.c (opencl_language_data): Likewise.
6569 * p-lang.c (pascal_is_string_type_p): Delete function,
6570 implementation moved to pascal_language::is_string_type_p.
6571 (pascal_language_data): Delete la_is_string_type_p initializer.
6572 (pascal_language::is_string_type_p): New member function,
6573 implementation from pascal_is_string_type_p.
6574 * rust-lang.c (rust_is_string_type_p): Delete function,
6575 implementation moved to rust_language::is_string_type_p.
6576 (rust_language_data): Delete la_is_string_type_p initializer.
6577 (rust_language::is_string_type_p): New member function,
6578 implementation from rust_is_string_type_p.
6579 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6580 is_string_type_p.
6581
4ffc13fb
AB
65822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6583
6584 * ada-lang.c (ada_language_data): Delete la_print_typedef
6585 initializer.
6586 (ada_language::print_typedef): New member function.
6587 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6588 (cplus_language_data): Likewise.
6589 (asm_language_data): Likewise.
6590 (minimal_language_data): Likewise.
6591 * d-lang.c (d_language_data): Likewise.
6592 * f-lang.c (f_language_data): Likewise.
6593 (f_language::print_typedef): New member function.
6594 * go-lang.c (go_language_data): Delete la_print_typedef
6595 initializer.
6596 * language.c (language_defn::print_typedef): Define member
6597 function.
6598 (unknown_language_data): Delete la_print_typedef initializer.
6599 (unknown_language::print_typedef): New member function.
6600 (auto_language_data): Delete la_print_typedef initializer.
6601 (auto_language::print_typedef): New member function.
6602 * language.h (language_data): Delete la_print_typedef field.
6603 (language_defn::print_typedef): Declare new member function.
6604 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6605 (default_print_typedef): Delete declaration.
6606 * m2-lang.c (m2_language_data): Delete la_print_typedef
6607 initializer.
6608 (m2_language::print_typedef): New member function.
6609 * objc-lang.c (objc_language_data): Delete la_print_typedef
6610 initializer.
6611 * opencl-lang.c (opencl_language_data): Likewise.
6612 * p-lang.c (pascal_language_data): Likewise.
6613 (pascal_language::print_typedef): New member function.
6614 * rust-lang.c (rust_print_typedef): Delete function,
6615 implementation moved to rust_language::print_typedef.
6616 (rust_language): Delete la_print_typedef initializer.
6617 (rust_language::print_typedef): New member function,
6618 implementation from rust_print_typedef.
6619 * typeprint.c (default_print_typedef): Delete.
6620
d711ee67
AB
66212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6622
6623 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6624 (ada_language::printstr): New member function.
6625 * c-lang.c (c_language_data): Delete la_printstr initializer.
6626 (cplus_language_data): Likewise.
6627 (asm_language_data): Likewise.
6628 (minimal_language_data): Likewise.
6629 * d-lang.c (d_language_data): Likewise.
6630 * f-lang.c (f_printstr): Rename to f_language::printstr.
6631 (f_language_data): Delete la_printstr initializer.
6632 (f_language::printstr): New member function, implementation from
6633 f_printstr.
6634 * go-lang.c (go_language_data): Delete la_printstr initializer.
6635 * language.c (language_defn::printstr): Define new member
6636 function.
6637 (unk_lang_printstr): Delete.
6638 (unknown_language_data): Delete la_printstr initializer.
6639 (unknown_language::printstr): New member function.
6640 (auto_language_data): Delete la_printstr initializer.
6641 (auto_language::printstr): New member function.
6642 * language.h (language_data): Delete la_printstr field.
6643 (language_defn::printstr): Declare new member function.
6644 (LA_PRINT_STRING): Update call to printstr.
6645 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6646 (m2_language_data): Delete la_printstr initializer.
6647 (m2_language::printstr): New member function, implementation from
6648 m2_printstr.
6649 * objc-lang.c (objc_language_data): Delete la_printstr
6650 initializer.
6651 * opencl-lang.c (opencl_language_data): Likewise.
6652 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6653 (pascal_language_data): Delete la_printstr initializer.
6654 (pascal_language::printstr): New member function, implementation
6655 from pascal_printstr.
6656 * p-lang.h (pascal_printstr): Delete declaration.
6657 * rust-lang.c (rust_printstr): Update header comment.
6658 (rust_language_data): Delete la_printstr initializer.
6659 (rust_language::printstr): New member function.
6660
52b50f2c
AB
66612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6662
6663 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6664 (ada_language::printchar): New member function.
6665 * c-lang.c (c_language_data): Delete la_printchar initializer.
6666 (cplus_language_data): Likewise.
6667 (asm_language_data): Likewise.
6668 (minimal_language_data): Likewise.
6669 * d-lang.c (d_language_data): Likewise.
6670 * f-lang.c (f_printchar): Rename to f_language::printchar.
6671 (f_language_data): Delete la_printchar initializer.
6672 (f_language::printchar): New member function, implementation from
6673 f_printchar.
6674 * go-lang.c (go_language_data): Delete la_printchar initializer.
6675 * language.c (unk_lang_printchar): Delete.
6676 (language_defn::printchar): Define new member function.
6677 (unknown_language_data): Delete la_printchar initializer.
6678 (unknown_language::printchar): New member function.
6679 (auto_language_data): Delete la_printchar initializer.
6680 (auto_language::printchar): New member function.
6681 * language.h (language_data): Delete la_printchar field.
6682 (language_defn::printchar): Declare new member function.
6683 (LA_PRINT_CHAR): Update call to printchar.
6684 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6685 (m2_language::printchar): New member function.
6686 * objc-lang.c (objc_language_data): Delete la_printchar
6687 initializer.
6688 * opencl-lang.c (opencl_language_data): Likewise.
6689 * p-lang.c (pascal_language_data): Delete la_printchar
6690 initializer.
6691 (pascal_language::printchar): New member function.
6692 * rust-lang.c (rust_printchar): Rename to
6693 rust_language::printchar.
6694 (rust_language_data): Delete la_printchar initializer.
6695 (rust_language::printchar): New member function, implementation
6696 from rust_printchar.
6697
ec8cec5b
AB
66982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6699
6700 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6701 (ada_language_data): Delete la_emitchar initializer.
6702 (ada_language::emitchar): New member function, implementation from
6703 emit_char.
6704 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6705 (cplus_language_data): Likewise.
6706 (asm_language_data): Likewise.
6707 (minimal_language_data): Likewise.
6708 * d-lang.c (d_language_data): Likewise.
6709 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6710 (f_language_data): Delete la_emitchar initializer.
6711 (f_language::emitchar): New member function, implementation from
6712 f_emit_char.
6713 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6714 * language.c (unk_lang_emit_char): Delete.
6715 (language_defn::emitchar): New member function definition.
6716 (unknown_language_data): Delete la_emitchar initializer.
6717 (unknown_language::emitchar): New member function.
6718 (auto_language_data): Delete la_emitchar initializer.
6719 (auto_language::emitchar): New member function.
6720 * language.h (language_data): Delete la_emitchar field.
6721 (language_defn::emitchar): New member field declaration.
6722 (LA_EMIT_CHAR): Update call to emitchar.
6723 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6724 (m2_language_data): Delete la_emitchar initializer.
6725 (m2_language::emitchar): New member function, implementation from
6726 m2_emit_char.
6727 * objc-lang.c (objc_language_data): Delete la_emitchar
6728 initializer.
6729 * opencl-lang.c (opencl_language_data): Likewise.
6730 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6731 (pascal_language_data): Delete la_emitchar initializer.
6732 (pascal_language::emitchar): New member function, implementation
6733 from pascal_emit_char.
6734 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6735 (rust_language_data): Delete la_emitchar initializer.
6736 (rust_language::emitchar): New member function, implementation
6737 from rust_emitchar.
6738
1bf9c363
AB
67392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6740
6741 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6742 (ada_language_data): Delete la_post_parser initializer.
6743 (ada_language::post_parser): New member function.
6744 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6745 (cplus_language_data): Likewise.
6746 (asm_language_data): Likewise.
6747 (minimal_language_data): Likewise.
6748 * d-lang.c (d_language_data): Likewise.
6749 * f-lang.c (f_language_data): Likewise.
6750 * go-lang.c (go_language_data): Likewise.
6751 * language.c (unknown_language_data): Likewise.
6752 (auto_language_data): Likewise.
6753 * language.h (language_data): Delete la_post_parser field.
6754 (language_defn::post_parser): New member function.
6755 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6756 * objc-lang.c (objc_language_data): Likewise.
6757 * opencl-lang.c (opencl_language_data): Likewise.
6758 * p-lang.c (pascal_language_data): Likewise.
6759 * parse.c (parse_exp_in_context): Update call to post_parser.
6760 (null_post_parser): Delete definition.
6761 * parser-defs.h (null_post_parser): Delete declaration.
6762 * rust-lang.c (rust_language_data): Delete la_post_parser
6763 initializer.
6764
87afa652
AB
67652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6766
6767 * ada-lang.c (parse): Rename to ada_language::parser.
6768 (ada_language_data): Delete la_parser initializer.
6769 (ada_language::parser): New member function, implementation from
6770 parse.
6771 * c-lang.c (c_language_data): Delete la_parser initializer.
6772 (cplus_language_data): Likewise.
6773 (asm_language_data): Likewise.
6774 (minimal_language_data): Likewise.
6775 * d-lang.c (d_language_data): Likewise.
6776 (d_language::parser): New member function.
6777 * f-lang.c (f_language_data): Delete la_parser initializer.
6778 (f_language::parser): New member function.
6779 * go-lang.c (go_language_data): Delete la_parser initializer.
6780 (go_language::parser): New member function.
6781 * language.c (unk_lang_parser): Delete.
6782 (language_defn::parser): Define new member function.
6783 (unknown_language_data): Delete la_parser initializer.
6784 (unknown_language::parser): New member function.
6785 (auto_language_data): Delete la_parser initializer.
6786 (auto_language::parser): New member function.
6787 * language.h (language_data): Delete la_parser field.
6788 (language_defn::parser): Declare new member function.
6789 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6790 (m2_language::parser): New member function.
6791 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6792 * opencl-lang.c (opencl_language_data): Likewise.
6793 * p-lang.c (pascal_language_data): Likewise.
6794 (pascal_language::parser): New member function.
6795 * parse.c (parse_exp_in_context): Update call to parser.
6796 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6797 (rust_language::parser): New member function.
6798
37825800
AB
67992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6800
6801 * top.c (print_gdb_configuration): Print --with-python-libdir
6802 configuration value.
6803
5b860c93
PW
68042020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6805
6806 * NEWS: Mention change to the alias command.
6807
cf00cd6f
PW
68082020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6809
6810 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6811 (alias_command_completer)
6812 (make_alias_options_def_group): New functions.
6813 (alias_opts, alias_option_defs): New struct and array.
6814 (alias_usage_error): Update usage.
6815 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6816 Use option framework.
6817 (_initialize_cli_cmds): Update alias command help.
6818 Update aliases command help.
6819 (show_user):
6820 Add NULL for new default_args lookup_cmd argument.
6821 (valid_command_p): Rename to validate_aliased_command.
6822 Add NULL for new default_args lookup_cmd argument. Verify that the
6823 aliased_command has no default args.
6824 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6825 (lookup_cmd_1, lookup_cmd): New argument default_args.
6826 (add_alias_cmd):
6827 Add NULL for new default_args lookup_cmd argument.
6828 (print_help_for_command): Show default args under the layout
6829 alias some_alias = some_aliased_cmd some_alias_default_arg.
6830 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6831 xfree default_args in destructor.
6832 * cli/cli-script.c (process_next_line, do_define_command):
6833 Add NULL for new default_args lookup_cmd argument.
6834 * command.h: Declare new default_args argument in lookup_cmd
6835 and lookup_cmd_1.
6836 * completer.c (complete_line_internal_1):
6837 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6838 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6839 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6840 Likewise.
6841 * infcmd.c (_initialize_infcmd): Likewise.
6842 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6843 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6844 * python/py-param.c (add_setshow_generic): Likewise.
6845 * remote.c (_initialize_remote): Likewise.
6846 * top.c (execute_command): Prepend default_args if command has some.
6847 (set_verbose):
6848 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6849 * tracepoint.c (validate_actionline, encode_actions_1):
6850 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6851
bd920864
TBA
68522020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6853
6854 * jit.c (jit_read_descriptor): Use bool as the return type.
6855 (jit_breakpoint_re_set_internal): Use bool as the return type.
6856 Invert the return value logic; return true if the jit breakpoint
6857 has been successfully initialized.
6858 (jit_inferior_init): Update the call to
6859 jit_breakpoint_re_set_internal.
6860
f8098322
PA
68612020-06-22 Pedro Alves <palves@redhat.com>
6862
6863 PR gdb/25939
6864 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6865 Use the current inferior instead. Don't return
6866 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6867 wait again.
6868 * sol-thread.c (sol_thread_target::wait): Don't reference
6869 inferior_ptid.
6870 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6871 (sol_update_thread_list_callback): Use the current inferior's pid
6872 instead of inferior_ptid.
6873
196535a6
RO
68742020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6875
6876 * procfs.c: Cleanup many comments.
6877
6878 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6879 (AFTER_WATCHFLAG): Replace by value.
6880
6881 (MAIN_PROC_NAME_FORMAT): Inline ...
6882 (create_procinfo): ... here.
6883
6884 (procfs_debug_inferior): Remove SYS_exec handling.
6885 (syscall_is_exec): Likewise.
6886 (procfs_set_exec_trap): Likewise.
6887
6888 (syscall_is_lwp_exit): Inline in callers.
6889 (syscall_is_exit): Likewise.
6890 (syscall_is_exec): Likewise.
6891 (syscall_is_lwp_create): Likewise.
6892
6893 (invalidate_cache): Remove #if 0 code.
6894
6895 (make_signal_thread_runnable): Remove.
6896 (procfs_target::resume): Remove #if 0 code.
6897
cf6f3e86
RO
68982020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6899
6900 PR gdb/25939
6901 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6902 call ...
6903 (procfs_target::create_inferior): ... here.
6904
48e9cc84
PW
69052020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6906
6907 * exec.c (validate_exec_file): Ensure the build-id is up to
6908 date by calling reopen_exec_file (that checks file timestamp
6909 to decide to re-read the file).
6910
3922b302
PA
69112020-06-18 Pedro Alves <palves@redhat.com>
6912
6913 PR gdb/25412
6914 * gdbthread.h (delete_thread, delete_thread_silent)
6915 (find_thread_ptid): Update comments.
6916 * thread.c (current_thread_): New global.
6917 (is_current_thread): Move higher, and reimplement.
6918 (inferior_thread): Reimplement.
6919 (set_thread_exited): Use bool. Add assertions.
6920 (add_thread_silent): Simplify thread-reuse handling by always
6921 calling delete_thread.
6922 (delete_thread): Remove intro comment.
6923 (find_thread_ptid): Skip exited threads.
6924 (switch_to_thread_no_regs): Write to current_thread_.
6925 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6926 INFERIOR_PTID. Clear current_thread_.
6927
6dbdab44
PA
69282020-06-18 Pedro Alves <palves@redhat.com>
6929
6930 * aix-thread.c (pd_update): Use switch_to_thread.
6931
2da4b788
PA
69322020-06-18 Pedro Alves <palves@redhat.com>
6933
6934 * ravenscar-thread.c (ravenscar_thread_target): Update.
6935 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6936 (ravenscar_thread_target::add_active_thread): ... this. Don't
6937 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6938 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6939
50838d1b
PA
69402020-06-18 Pedro Alves <palves@redhat.com>
6941
6942 * nat/windows-nat.c (current_windows_thread): Remove.
6943 * nat/windows-nat.h (current_windows_thread): Remove.
6944 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6945 Adjust.
6946 (display_selectors): Adjust to fetch the current
6947 windows_thread_info based on inferior_ptid.
6948 (fake_create_process): No longer write to current_windows_thread.
6949 (windows_nat_target::get_windows_debug_event):
6950 Don't set inferior_ptid or current_windows_thread.
6951 (windows_nat_target::wait): Adjust to not rely on
6952 current_windows_thread.
6953 (do_initial_windows_stuff): Now a method of windows_nat_target.
6954 Switch to the last_ptid thread.
6955 (windows_nat_target::attach): Adjust.
6956 (windows_nat_target::detach): Use switch_to_no_thread instead of
6957 writing to inferior_ptid directly.
6958 (windows_nat_target::create_inferior): Adjust.
6959
31ce04e9
PA
69602020-06-18 Pedro Alves <palves@redhat.com>
6961
6962 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6963
1ee1a363
PA
69642020-06-18 Pedro Alves <palves@redhat.com>
6965
6966 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6967 after creating it, instead of writing to inferior_ptid. Don't
6968 write to inferior_ptid.
6969
6d350754
PA
69702020-06-18 Pedro Alves <palves@redhat.com>
6971
6972 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6973
5d971d48
PA
69742020-06-18 Pedro Alves <palves@redhat.com>
6975
6976 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6977 it, instead of writing to inferior_ptid.
6978
86e57d1b
PA
69792020-06-18 Pedro Alves <palves@redhat.com>
6980
6981 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6982 to inferior_ptid.
6983
f2e1c129
PA
69842020-06-18 Pedro Alves <palves@redhat.com>
6985
6986 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6987 instead of writing to inferior_ptid directly.
6988
60db1b85
PA
69892020-06-18 Pedro Alves <palves@redhat.com>
6990
6991 * corelow.c (core_target::close): Use switch_to_no_thread instead
6992 of writing to inferior_ptid directly.
6993 (add_to_thread_list, core_target_open): Use switch_to_thread
6994 instead of writing to inferior_ptid directly.
6995
fe7d6a8d
PA
69962020-06-18 Pedro Alves <palves@redhat.com>
6997
6998 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6999 inferior_ptid.
7000 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7001 inferior_ptid.
7002 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7003 inferior_ptid directly.
7004 (darwin_nat_target::init_thread_list): Switch to thread, instead
7005 of writing to inferior_ptid.
7006 (darwin_nat_target::attach): Don't write to inferior_ptid.
7007 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7008
975f8708
PA
70092020-06-18 Pedro Alves <palves@redhat.com>
7010
7011 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7012 thread.
7013 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7014 Instead use switch_to_thread.
7015 (gnu_nat_target::detach): Use switch_to_no_thread
7016 instead of writing to inferior_ptid directly. Used passed-in
7017 inferior instead of looking up the inferior by pid.
7018
1a204730
PA
70192020-06-18 Pedro Alves <palves@redhat.com>
7020
7021 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7022 inferior_ptid.
7023
ebe84f23
PA
70242020-06-18 Pedro Alves <palves@redhat.com>
7025
7026 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7027 inferior_ptid.
7028 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7029 thread.
7030 (nto_procfs_target::detach): Avoid referencing
7031 inferior_ptid. Use switch_to_no_thread instead of writing to
7032 inferior_ptid directly.
7033 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7034 instead of writing to inferior_ptid directly.
7035 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7036 to thread.
7037
191f02e5
PA
70382020-06-18 Pedro Alves <palves@redhat.com>
7039
7040 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7041 after creating it, instead of writing to inferior_ptid.
7042 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7043 to inferior_ptid directly.
7044 (gdbsim_target::wait): Don't write to inferior_ptid.
7045
0ac55310
PA
70462020-06-18 Pedro Alves <palves@redhat.com>
7047
7048 * remote.c (remote_target::remote_notice_new_inferior): Use
7049 switch_to_thread instead of writing to inferior_ptid directly.
7050 (remote_target::add_current_inferior_and_thread): Use
7051 switch_to_no_thread instead of writing to inferior_ptid directly.
7052 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7053 and switch_to_thread instead of using set_current_inferior or
7054 writing to inferior_ptid directly.
7055
5233f39b
PA
70562020-06-18 Pedro Alves <palves@redhat.com>
7057
7058 * tracectf.c (ctf_target_open): Switch to added thread instead of
7059 writing to inferior_ptid directly.
7060 (ctf_target::close): Use switch_to_no_thread instead of writing to
7061 inferior_ptid directly.
7062
087e161b
PA
70632020-06-18 Pedro Alves <palves@redhat.com>
7064
7065 * tracefile-tfile.c (tfile_target_open): Don't write to
7066 inferior_ptid directly, instead switch to added thread.
7067 (tfile_target::close): Use switch_to_no_thread instead of writing
7068 to inferior_ptid directly.
7069
7fb43e53
PA
70702020-06-18 Pedro Alves <palves@redhat.com>
7071
7072 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7073 (procfs_target::detach): Use switch_to_no_thread
7074 instead of writing to inferior_ptid directly.
7075 (do_attach): Change return type to void. Switch to the added
7076 thread.
7077 (procfs_target::create_inferior): Switch to the added thread.
7078 (procfs_do_thread_registers): Don't write to inferior_ptid.
7079
18493a00
PA
70802020-06-18 Pedro Alves <palves@redhat.com>
7081
7082 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7083 of writing to inferior_ptid.
7084 (scoped_restore_exited_inferior): Delete.
7085 (handle_vfork_child_exec_or_exit): Simplify using
7086 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7087 instead of writing to inferior_ptid.
7088 (THREAD_STOPPED_BY): Delete.
7089 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7090 (thread_stopped_by_hw_breakpoint): Delete.
7091 (save_waitstatus): Use
7092 scoped_restore_current_thread+switch_to_thread, and call
7093 target_stopped_by_watchpoint instead of
7094 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7095 instead of thread_stopped_by_sw_breakpoint, and
7096 target_stopped_by_hw_breakpoint instead of
7097 thread_stopped_by_hw_breakpoint.
7098 (handle_inferior_event)
7099 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7100 inferior_ptid directly, nor
7101 set_current_inferior/set_current_program_space. Use
7102 switch_to_thread / switch_to_inferior_no_thread instead.
7103
a0776b13
PA
71042020-06-18 Pedro Alves <palves@redhat.com>
7105
7106 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7107 instead of writing to inferior_ptid.
7108
6155c136
PA
71092020-06-18 Pedro Alves <palves@redhat.com>
7110
7111 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7112 added thread.
7113 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7114 to the added thread.
7115 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7116 instead of writing to inferior_ptid.
7117
c5316fc6
PA
71182020-06-18 Pedro Alves <palves@redhat.com>
7119
7120 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7121 (register_to_value_test): Mock a program_space too. Heap-allocate
7122 the address space. Don't write to inferior_ptid. Use
7123 switch_to_thread instead.
7124
8df01799
PA
71252020-06-18 Pedro Alves <palves@redhat.com>
7126
7127 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7128 Delete.
7129 (find_signalled_thread()): New, factored out from
7130 linux_make_corefile_notes and adjusted to handle exited threads.
7131 (linux_make_corefile_notes): Adjust to use the new
7132 find_signalled_thread.
7133
41792d68
PA
71342020-06-18 Pedro Alves <palves@redhat.com>
7135
7136 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7137 of saving/restoring inferior_ptid.
7138
612f258a
TT
71392020-06-17 Tom Tromey <tom@tromey.com>
7140
7141 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7142 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7143 declare.
7144 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7145
efb763a5
SM
71462020-06-15 Simon Marchi <simon.marchi@efficios.com>
7147
7148 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7149 of partial symtabs.
7150
2951f6c0
SM
71512020-06-17 Simon Marchi <simon.marchi@efficios.com>
7152
7153 * regformats/reg-arm.dat: Remove.
7154 * regformats/reg-bfin.dat: Remove.
7155 * regformats/reg-cris.dat: Remove.
7156 * regformats/reg-crisv32.dat: Remove.
7157 * regformats/reg-m32r.dat: Remove.
7158 * regformats/reg-tilegx.dat: Remove.
7159 * regformats/reg-tilegx32.dat: Remove.
7160
7d458ea5
SM
71612020-06-17 Simon Marchi <simon.marchi@efficios.com>
7162
7163 * features/Makefile (WHICH): Remove arm files.
7164 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7165 * regformats/arm/arm-with-neon.dat: Remove.
7166 * regformats/arm/arm-with-vfpv2.dat: Remove.
7167 * regformats/arm/arm-with-vfpv3.dat: Remove.
7168
3af96c0d
SM
71692020-06-17 Simon Marchi <simon.marchi@efficios.com>
7170
7171 * features/Makefile (XMLTOC): Remove rx.xml.
7172
b25e22fd
PA
71732020-06-17 Pedro Alves <palves@redhat.com>
7174
7175 * gdbthread.h (thread_control_state) <trap_expected> Update
7176 comments.
7177
a78a19b1
AB
71782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7179
7180 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7181 ada_language::lookup_symbol_nonlocal.
7182 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7183 (ada_language::lookup_symbol_nonlocal): New member function,
7184 implementation from ada_lookup_symbol_nonlocal.
7185 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7186 initializer.
7187 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7188 initializer.
7189 (cplus_language::lookup_symbol_nonlocal): New member function.
7190 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7191 (minimal_language_data) Likewise.
7192 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7193 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7194 initializer.
7195 (d_language::lookup_symbol_nonlocal): New member function.
7196 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7197 initializer.
7198 (f_language::lookup_symbol_nonlocal): New member function.
7199 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7200 initializer.
7201 * language.c (unknown_language_data): Likewise.
7202 (auto_language_data): Likewise.
7203 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7204 field.
7205 (language_defn::lookup_symbol_nonlocal): New member function.
7206 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7207 initializer.
7208 * objc-lang.c (objc_language_data): Likewise.
7209 * opencl-lang.c (opencl_language_data): Likewise.
7210 * p-lang.c (pascal_language_data): Likewise.
7211 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7212 rust_language::lookup_symbol_nonlocal.
7213 (rust_language_data): Delete la_lookup_symbol_nonlocal
7214 initializer.
7215 (rust_language::lookup_symbol_nonlocal): New member function,
7216 implementation from rust_lookup_symbol_nonlocal.
7217 * symtab.c (lookup_symbol_aux): Update call to
7218 lookup_symbol_nonlocal.
7219 (basic_lookup_symbol_nonlocal): Rename to...
7220 (language_defn::lookup_symbol_nonlocal): ...this, and update
7221 header comment. Remove language_defn parameter, and replace with
7222 uses of `this'.
7223 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7224
ebe2334e
AB
72252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7226
7227 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7228 initializer.
7229 (ada_language::value_print_inner): New member function.
7230 * c-lang.c (c_language_data): Delete la_value_print_inner
7231 initializer.
7232 (cplus_language_data): Likewise.
7233 (asm_language_data): Likewise.
7234 (minimal_language_data): Likewise.
7235 * d-lang.c (d_language_data): Likewise.
7236 (d_language::value_print_inner): New member function.
7237 * f-lang.c (f_language_data): Delete la_value_print_inner
7238 initializer.
7239 (f_language::value_print_inner): New member function.
7240 * f-lang.h (f_value_print_innner): Rename to...
7241 (f_value_print_inner): ...this (note spelling of 'inner').
7242 * f-valprint.c (f_value_print_innner): Rename to...
7243 (f_value_print_inner): ...this (note spelling of 'inner').
7244 * go-lang.c (go_language_data): Delete la_value_print_inner
7245 initializer.
7246 (go_language::value_print_inner): New member function.
7247 * language.c (language_defn::value_print_inner): Define new member
7248 function.
7249 (unk_lang_value_print_inner): Delete.
7250 (unknown_language_data): Delete la_value_print_inner initializer.
7251 (unknown_language::value_print_inner): New member function.
7252 (auto_language_data): Delete la_value_print_inner initializer.
7253 (auto_language::value_print_inner): New member function.
7254 * language.h (language_data): Delete la_value_print_inner field.
7255 (language_defn::value_print_inner): Delcare new member function.
7256 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7257 initializer.
7258 (m2_language::value_print_inner): New member function.
7259 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7260 initializer.
7261 * opencl-lang.c (opencl_language_data): Likewise.
7262 * p-lang.c (pascal_language_data): Likewise.
7263 (pascal_language::value_print_inner): New member function.
7264 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7265 initializer.
7266 (rust_language::value_print_inner): New member function.
7267 * valprint.c (do_val_print): Update call to value_print_inner.
7268
a1d1fa3e
AB
72692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7270
7271 * ada-lang.c (ada_language_data): Delete la_value_print
7272 initializer.
7273 (ada_language::value_print): New member function.
7274 * c-lang.c (c_language_data): Delete la_value_print initializer.
7275 (cplus_language_data): Likewise.
7276 (asm_language_data): Likewise.
7277 (minimal_language_data): Likewise.
7278 * d-lang.c (d_language_data): Likewise.
7279 * f-lang.c (f_language_data): Likewise.
7280 * go-lang.c (go_language_data): Likewise.
7281 * language.c (unk_lang_value_print): Delete.
7282 (language_defn::value_print): Define new member function.
7283 (unknown_language_data): Delete la_value_print initializer.
7284 (unknown_language::value_print): New member function.
7285 (auto_language_data): Delete la_value_print initializer.
7286 (auto_language::value_print): New member function.
7287 * language.h (language_data): Delete la_value_print field.
7288 (language_defn::value_print): Declare new member function.
7289 (LA_VALUE_PRINT): Update call to value_print.
7290 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7291 * objc-lang.c (objc_language_data): Likewise.
7292 * opencl-lang.c (opencl_language_data): Likewise.
7293 * p-lang.c (pascal_language_data): Likewise.
7294 (pascal_language::value_print): New member function.
7295 * rust-lang.c (rust_language_data): Delete la_value_print
7296 initializer.
7297
f16a9f57
AB
72982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7299
7300 * ada-lang.c (ada_watch_location_expression): Rename to
7301 ada_language::watch_location_expression.
7302 (ada_language_data): Delete la_watch_location_expression
7303 initializer.
7304 (ada_language::watch_location_expression): New member function,
7305 implementation from ada_watch_location_expression.
7306 * breakpoint.c (watch_command_1): Update call to
7307 watch_location_expression.
7308 * c-lang.c (c_watch_location_expression): Rename to
7309 language_defn::watch_location_expression.
7310 (c_language_data): Delete la_watch_location_expression
7311 initializer.
7312 (cplus_language_data): Likewise.
7313 (asm_language_data): Likewise.
7314 (minimal_language_data): Likewise.
7315 * c-lang.h (c_watch_location_expression): Delete declaration.
7316 * d-lang.c (d_language_data): Delete la_watch_location_expression
7317 initializer.
7318 * f-lang.c (f_language_data): Likewise.
7319 * go-lang.c (go_language_data): Likewise.
7320 * language.c (language_defn::watch_location_expression): Member
7321 function implementation from c_watch_location_expression.
7322 (unknown_language_data): Delete la_watch_location_expression
7323 initializer.
7324 (auto_language_data): Likewise.
7325 * language.h (language_data): Delete la_watch_location_expression
7326 field.
7327 (language_defn::watch_location_expression): Declare new member
7328 function.
7329 * m2-lang.c (m2_language_data): Delete
7330 la_watch_location_expression initializer.
7331 * objc-lang.c (objc_language_data): Likewise.
7332 * opencl-lang.c (opencl_language_data): Likewise.
7333 * p-lang.c (pascal_language_data): Likewise.
7334 * rust-lang.c (rust_watch_location_expression): Rename to
7335 rust_language::watch_location_expression.
7336 (rust_language_data): Delete la_watch_location_expression
7337 initializer.
7338 (rust_language::watch_location_expression): New member function,
7339 implementation from rust_watch_location_expression.
7340
7e56227d
AB
73412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7342
7343 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7344 ada_language::collect_symbol_completion_matches.
7345 (ada_language_data): Delete la_collect_symbol_completion_matches
7346 initializer.
7347 (ada_language::collect_symbol_completion_matches): New member
7348 function, implementation from
7349 ada_collect_symbol_completion_matches.
7350 * c-lang.c (c_language_data): Delete
7351 la_collect_symbol_completion_matches initializer.
7352 (cplus_language_data): Likewise.
7353 (asm_language_data): Likewise.
7354 (minimal_language_data): Likewise.
7355 * d-lang.c (d_language_data): Likewise.
7356 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7357 f_language::collect_symbol_completion_matches.
7358 (f_language_data): Delete la_collect_symbol_completion_matches
7359 initializer.
7360 (f_language::collect_symbol_completion_matches) New member
7361 function, implementation from f_collect_symbol_completion_matches.
7362 * go-lang.c (go_language_data): Delete
7363 la_collect_symbol_completion_matches initializer.
7364 * language.c (unknown_language_data): Likewise.
7365 (auto_language_data): Likewise.
7366 * language.h (language_data): Delete
7367 la_collect_symbol_completion_matches field.
7368 (language_defn::collect_symbol_completion_matches): New member
7369 function.
7370 * m2-lang.c (m2_language_data): Delete
7371 la_collect_symbol_completion_matches initializer.
7372 * objc-lang.c (objc_language_data): Likewise.
7373 * opencl-lang.c (opencl_language_data): Likewise.
7374 * p-lang.c (pascal_language_data): Likewise.
7375 * rust-lang.c (rust_language_data): Likewise.
7376 * symtab.c (default_collect_symbol_completion_matches): Delete.
7377 (collect_symbol_completion_matches): Update call to
7378 collect_symbol_completion_matches.
7379 (collect_symbol_completion_matches_type): Likewise.
7380 * symtab.h (default_collect_symbol_completion_matches): Delete
7381 declaration.
7382
53fc67f8
AB
73832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7384
7385 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7386 (ada_language_data): Delete la_word_break_characters initializer.
7387 (ada_language::word_break_characters): New member function.
7388 * c-lang.c (c_language_data): Delete la_word_break_characters
7389 initializer.
7390 (cplus_language_data): Likewise.
7391 (asm_language_data): Likewise.
7392 (minimal_language_data): Likewise.
7393 * completer.c: Update global comment.
7394 (advance_to_expression_complete_word_point): Update call to
7395 word_break_characters.
7396 (complete_files_symbols): Likewise.
7397 (complete_line_internal_1): Likewise.
7398 (default_completer_handle_brkchars): Likewise.
7399 (skip_quoted_chars): Likewise.
7400 * d-lang.c (d_language_data): Delete la_word_break_characters
7401 initializer.
7402 * f-lang.c (f_word_break_characters): Delete.
7403 (f_language_data): Delete la_word_break_characters initializer.
7404 (f_language::word_break_characters): New member function.
7405 * go-lang.c (go_language_data): Delete la_word_break_characters
7406 initializer.
7407 * language.c (unknown_language_data): Likewise.
7408 (auto_language_data): Likewise.
7409 * language.h (default_word_break_characters): Move declaration to
7410 earlier in the file.
7411 (language_data): Delete la_word_break_characters field.
7412 (language_defn::word_break_characters): New member function.
7413 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7414 initializer.
7415 * objc-lang.c (objc_language_data): Likewise.
7416 * opencl-lang.c (opencl_language_data): Likewise.
7417 * p-lang.c (pascal_language_data): Likewise.
7418 * rust-lang.c (rust_language_data): Likewise.
7419
c9debfb9
AB
74202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7421
7422 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7423 (ada_language_data): Delete la_get_symbol_name_matcher
7424 initializer.
7425 (language_defn::get_symbol_name_matcher_inner): New member
7426 function.
7427 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7428 initializer.
7429 (cplus_language_data): Likewise.
7430 (cplus_language::get_symbol_name_matcher_inner): New member
7431 function.
7432 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7433 (minimal_language_data): Likewise.
7434 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7435 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7436 initializer.
7437 * dictionary.c (iter_match_first_hashed): Update call to
7438 get_symbol_name_matcher.
7439 (iter_match_next_hashed): Likewise.
7440 (iter_match_next_linear): Likewise.
7441 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7442 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7443 initializer.
7444 (f_language::get_symbol_name_matcher_inner): New member function.
7445 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7446 initializer.
7447 * language.c (default_symbol_name_matcher): Update header comment,
7448 make static.
7449 (language_defn::get_symbol_name_matcher): New definition.
7450 (language_defn::get_symbol_name_matcher_inner): Likewise.
7451 (get_symbol_name_matcher): Delete.
7452 (unknown_language_data): Delete la_get_symbol_name_matcher
7453 initializer.
7454 (auto_language_data): Likewise.
7455 * language.h (language_data): Delete la_get_symbol_name_matcher
7456 field.
7457 (language_defn::get_symbol_name_matcher): New member function.
7458 (language_defn::get_symbol_name_matcher_inner): Likewise.
7459 (default_symbol_name_matcher): Delete declaration.
7460 * linespec.c (find_methods): Update call to
7461 get_symbol_name_matcher.
7462 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7463 initializer.
7464 * minsyms.c (lookup_minimal_symbol): Update call to
7465 get_symbol_name_matcher.
7466 (iterate_over_minimal_symbols): Likewise.
7467 * objc-lang.c (objc_language_data): Delete
7468 la_get_symbol_name_matcher initializer.
7469 * opencl-lang.c (opencl_language_data): Likewise.
7470 * p-lang.c (pascal_language_data): Likewise.
7471 * psymtab.c (psymbol_name_matches): Update call to
7472 get_symbol_name_matcher.
7473 * rust-lang.c (rust_language_data): Delete
7474 la_get_symbol_name_matcher initializer.
7475 * symtab.c (symbol_matches_search_name): Update call to
7476 get_symbol_name_matcher.
7477 (compare_symbol_name): Likewise.
7478
9a49ad8c
AB
74792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7480
7481 * ada-lang.c (ada_language_data): Delete la_compute_program
7482 initializer.
7483 * c-lang.c (c_language_data): Likewise.
7484 (c_language::compute_program): New member function.
7485 (cplus_language_data): Delete la_compute_program initializer.
7486 (cplus_language::compute_program): New member function.
7487 (asm_language_data): Delete la_compute_program initializer.
7488 (minimal_language_data): Likewise.
7489 * c-lang.h (c_compute_program): Update comment.
7490 (cplus_compute_program): Likewise.
7491 * compile/compile-c-support.c (c_compute_program): Likewise.
7492 (cplus_compute_program): Likewise.
7493 * compile/compile.c (compile_to_object): Update call to
7494 la_compute_program.
7495 * d-lang.c (d_language_data): Delete la_compute_program
7496 initializer.
7497 * f-lang.c (f_language_data): Likewise.
7498 * go-lang.c (go_language_data): Likewise.
7499 * language.c (unknown_language_data): Likewise.
7500 (auto_language_data): Likewise.
7501 * language.h (language_data): Delete la_compute_program field.
7502 (language_defn::compute_program): New member function.
7503 * m2-lang.c (m2_language_data): Delete la_compute_program
7504 initializer.
7505 * objc-lang.c (objc_language_data): Likewise.
7506 * opencl-lang.c (opencl_language_data): Likewise.
7507 * p-lang.c (pascal_language_data): Likewise.
7508 * rust-lang.c (rust_language_data): Likewise.
7509
eff93b4d
AB
75102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7511
7512 * ada-lang.c (ada_language_data) Delete
7513 la_class_name_from_physname initializer.
7514 * c-lang.c (c_language_data): Likewise.
7515 (cplus_language_data): Likewise.
7516 (cplus_language::class_name_from_physname): New member function.
7517 (asm_language_data): Delete la_class_name_from_physname
7518 initializer.
7519 (minimal_language_data): Likewise.
7520 * d-lang.c (d_language_data): Likewise.
7521 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7522 method on language_defn class.
7523 (guess_full_die_structure_name): Likewise.
7524 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7525 initializer.
7526 * go-lang.c (go_language_data): Likewise.
7527 * language.c (language_class_name_from_physname): Delete.
7528 (unk_lang_class_name): Delete.
7529 (unknown_language_data): Delete la_class_name_from_physname
7530 initializer.
7531 (auto_language_data): Likewise.
7532 * language.h (language_data): Delete la_class_name_from_physname
7533 field.
7534 (language_defn::class_name_from_physname): New function.
7535 (language_class_name_from_physname): Delete declaration.
7536 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7537 initializer.
7538 * objc-lang.c (objc_language_data): Likewise.
7539 * opencl-lang.c (opencl_language_data): Likewise.
7540 * p-lang.c (pascal_language_data): Likewise.
7541 * rust-lang.c (rust_language_data): Likewise.
7542
de543742
TT
75432020-06-16 Tom Tromey <tom@tromey.com>
7544
7545 * tui/tui-data.h (STATUS_NAME): New macro.
7546 * tui/tui-layout.c (tui_remove_some_windows)
7547 (initialize_known_windows, tui_register_window)
7548 (tui_layout_split::remove_windows, initialize_layouts)
7549 (tui_new_layout_command): Don't use hard-coded window names.
7550
a350efd4
TT
75512020-06-16 Tom Tromey <tom@tromey.com>
7552
7553 PR tui/25348:
7554 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7555 tui_initialize_readline. Only run once. Call rl_initialize.
7556 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7557 tui_initialize_readline.
7558 * tui/tui-io.c (tui_setup_io): Call
7559 tui_ensure_readline_initialized.
7560 * tui/tui-interp.c (tui_interp::init): Update.
7561
39ec0490
TT
75622020-06-16 Tom Tromey <tom@tromey.com>
7563
7564 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7565 Also preserve the status window.
7566
d2d1ea20
TT
75672020-06-16 Tom Tromey <tom@tromey.com>
7568
7569 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7570 where m_window==nullptr.
7571
66920317
TT
75722020-06-15 Tom Tromey <tromey@adacore.com>
7573
7574 * windows-nat.c (windows_nat::handle_output_debug_string):
7575 Update.
7576 (windows_nat::handle_ms_vc_exception): Update.
7577 * target.h (target_read_string): Change API.
7578 * target.c (target_read_string): Change API.
7579 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7580 Update.
7581 * solib-frv.c (frv_current_sos): Update.
7582 * solib-dsbt.c (dsbt_current_sos): Update.
7583 * solib-darwin.c (darwin_current_sos): Update.
7584 * linux-thread-db.c (inferior_has_bug): Update.
7585 * expprint.c (print_subexp_standard): Update.
7586 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7587 (ada_exception_message_1): Update.
7588
a5d871dd
TT
75892020-06-15 Tom Tromey <tromey@adacore.com>
7590
7591 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7592
670e35fa
TT
75932020-06-15 Tom Tromey <tromey@adacore.com>
7594
7595 * valprint.c (read_string): Update comment.
7596 * target.c (MIN): Remove.
7597 (target_read_string): Rewrite.
7598
f5272a3b
TT
75992020-06-15 Tom Tromey <tromey@adacore.com>
7600
7601 * corefile.c (read_memory_string): Remove.
7602 * ada-valprint.c (ada_value_print_ptr): Update.
7603 * ada-lang.h (ada_tag_name): Change return type.
7604 * ada-lang.c (type_from_tag): Update.
7605 (ada_tag_name_from_tsd): Change return type. Use
7606 target_read_string.
7607 (ada_tag_name): Likewise.
7608 * gdbcore.h (read_memory_string): Don't declare.
7609
2c074f49
HD
76102020-06-14 Hannes Domani <ssbssa@yahoo.de>
7611
7612 * symtab.c (rbreak_command): Ignore Windows drive colon.
7613
6a17d503
SM
76142020-06-12 Simon Marchi <simon.marchi@efficios.com>
7615
7616 * NEWS: Mention removed GDBserver host support.
7617
453c733f
NC
76182020-06-12 Nelson Chu <nelson.chu@sifive.com>
7619
7620 * features/riscv/rebuild-csr-xml.sh: Updated.
7621
2b4e6a3f
TT
76222020-06-11 Tom Tromey <tom@tromey.com>
7623
7624 PR gdb/18318:
7625 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7626
4412332f
JG
76272020-06-09 Jonny Grant <jg@jguk.org>
76282020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7629
7630 * main.c (captured_main_1): Don't print new line after help.
7631 (print_gdb_help): add mailing list and IRC channel information
7632 to --help. Add new lines between items in the footer. Remove
7633 quotes around bug url.
7634
2f33032a
KS
76352020-06-11 Keith Seitz <keiths@redhat.com>
7636
7637 PR gdb/21356
7638 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7639 Resolve typedefs for type length calculations.
7640
7ab96794
TV
76412020-06-10 Tom de Vries <tdevries@suse.de>
7642
7643 PR ada/24713
7644 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7645 (write_psymbols): Enable .gdb_index for ada.
7646 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7647 ada.
7648
e5f3ece2
TV
76492020-06-10 Tom de Vries <tdevries@suse.de>
7650
7651 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7652 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7653 namei" instead of "const char *name" argument.
7654 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7655 dw2_symtab_iter_init.
7656
940da03e
SM
76572020-06-08 Simon Marchi <simon.marchi@efficios.com>
7658
7659 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7660 to use type::field and field::type instead.
7661
b6cdac4b
SM
76622020-06-08 Simon Marchi <simon.marchi@efficios.com>
7663
7664 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7665 to use field::type instead.
7666
5d14b6e5
SM
76672020-06-08 Simon Marchi <simon.marchi@efficios.com>
7668
7669 * gdbtypes.h (struct field) <type, set_type>: New methods.
7670 Rename `type` field to...
7671 <m_type>: ... this. Change references throughout to use type or
7672 set_type methods.
7673 (FIELD_TYPE): Use field::type. Change call sites that modify
7674 the field's type to use field::set_type instead.
7675
3d967001
SM
76762020-06-08 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7679 to use type::index_type instead.
7680
262abc0d
SM
76812020-06-08 Simon Marchi <simon.marchi@efficios.com>
7682
7683 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7684 methods.
7685 (TYPE_INDEX_TYPE): Use type::index_type.
7686 * gdbtypes.c (create_array_type_with_stride): Likewise.
7687
82836c92
TT
76882020-06-07 Tom Tromey <tom@tromey.com>
7689
7690 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7691 parameter.
7692 (generic_value_print): Update.
7693
940dace9
AB
76942020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7695
7696 Revert commit 982a38f60b0.
7697 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7698
982a38f6
AB
76992020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7700
7701 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7702 avoid use after free.
7703
82f06518
TV
77042020-06-05 Tom de Vries <tdevries@suse.de>
7705
7706 * NEWS: Fix typos.
7707
f8c41851
SM
77082020-06-04 Simon Marchi <simon.marchi@efficios.com>
7709
7710 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7711 the per_bfd object.
7712 (dwarf2_read_debug_names): Likewise.
7713 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7714 object when re-using a per_bfd object with an index.
7715
f9b5d5ea
TV
77162020-06-03 Tom de Vries <tdevries@suse.de>
7717
7718 PR symtab/26046
7719 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7720 children for C++.
7721 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7722 DW_TAG_subprogram.
7723
f6eee2d0
AB
77242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7725
7726 * ada-lang.c (ada_language_data): Delete skip_trampoline
7727 initializer.
7728 * c-lang.c (c_language_data): Likewise.
7729 (cplus_language_data): Likewise.
7730 (cplus_language::skip_trampoline): New member function.
7731 (asm_language_data): Delete skip_trampoline initializer.
7732 (minimal_language_data): Likewise.
7733 * d-lang.c (d_language_data): Likewise.
7734 * f-lang.c (f_language_data): Likewise.
7735 * go-lang.c (go_language_data): Likewise.
7736 * language.c (unk_lang_trampoline): Delete function.
7737 (skip_language_trampoline): Update.
7738 (unknown_language_data): Delete skip_trampoline initializer.
7739 (auto_language_data): Likewise.
7740 * language.h (language_data): Delete skip_trampoline field.
7741 (language_defn::skip_trampoline): New function.
7742 * m2-lang.c (m2_language_data): Delete skip_trampoline
7743 initializer.
7744 * objc-lang.c (objc_skip_trampoline): Delete function, move
7745 implementation to objc_language::skip_trampoline.
7746 (objc_language_data): Delete skip_trampoline initializer.
7747 (objc_language::skip_trampoline): New member function with
7748 implementation from objc_skip_trampoline.
7749 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7750 initializer.
7751 * p-lang.c (pascal_language_data): Likewise.
7752 * rust-lang.c (rust_language_data): Likewise.
7753
0a50df5d
AB
77542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7755
7756 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7757 (ada_language::demangle): New member function.
7758 * c-lang.c (c_language_data): Delete la_demangle initializer.
7759 (cplus_language_data): Delete la_demangle initializer.
7760 (cplus_language::demangle): New member function.
7761 (asm_language_data): Delete la_demangle initializer.
7762 (minimal_language_data): Delete la_demangle initializer.
7763 * d-lang.c (d_language_data): Delete la_demangle initializer.
7764 (d_language::demangle): New member function.
7765 * f-lang.c (f_language_data): Delete la_demangle initializer.
7766 (f_language::demangle): New member function.
7767 * go-lang.c (go_language_data): Delete la_demangle initializer.
7768 (go_language::demangle): New member function.
7769 * language.c (language_demangle): Update.
7770 (unk_lang_demangle): Delete.
7771 (unknown_language_data): Delete la_demangle initializer.
7772 (unknown_language::demangle): New member function.
7773 (auto_language_data): Delete la_demangle initializer.
7774 (auto_language::demangle): New member function.
7775 * language.h (language_data): Delete la_demangle field.
7776 (language_defn::demangle): New function.
7777 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7778 * objc-lang.c (objc_language_data): Delete la_demangle
7779 initializer.
7780 (objc_language::demangle): New member function.
7781 * opencl-lang.c (opencl_language_data): Delete la_demangle
7782 initializer.
7783 * p-lang.c (pascal_language_data): Likewise.
7784 * rust-lang.c (rust_language_data): Likewise.
7785 (rust_language::demangle): New member function.
7786
fbfb0a46
AB
77872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7788
7789 * ada-lang.c (ada_language_data): Delete la_print_type
7790 initializer.
7791 (ada_language::print_type): New member function.
7792 * c-lang.c (c_language_data): Delete la_print_type initializer.
7793 (c_language::print_type): New member function.
7794 (cplus_language_data): Delete la_print_type initializer.
7795 (cplus_language::print_type): New member function.
7796 (asm_language_data): Delete la_print_type initializer.
7797 (asm_language::print_type): New member function.
7798 (minimal_language_data): Delete la_print_type initializer.
7799 (minimal_language::print_type): New member function.
7800 * d-lang.c (d_language_data): Delete la_print_type initializer.
7801 (d_language::print_type): New member function.
7802 * f-lang.c (f_language_data): Delete la_print_type initializer.
7803 (f_language::print_type): New member function.
7804 * go-lang.c (go_language_data): Delete la_print_type initializer.
7805 (go_language::print_type): New member function.
7806 * language.c (unk_lang_print_type): Delete.
7807 (unknown_language_data): Delete la_print_type initializer.
7808 (unknown_language::print_type): New member function.
7809 (auto_language_data): Delete la_print_type initializer.
7810 (auto_language::print_type): New member function.
7811 * language.h (language_data): Delete la_print_type field.
7812 (language_defn::print_type): New function.
7813 (LA_PRINT_TYPE): Update.
7814 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7815 (m2_language::print_type): New member function.
7816 * objc-lang.c (objc_language_data): Delete la_print_type
7817 initializer.
7818 (objc_language::print_type): New member function.
7819 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7820 to opencl_language::print_type.
7821 (opencl_language_data): Delete la_print_type initializer.
7822 (opencl_language::print_type): New member function, implementation
7823 from opencl_print_type.
7824 * p-lang.c (pascal_language_data): Delete la_print_type
7825 initializer.
7826 (pascal_language::print_type): New member function.
7827 * rust-lang.c (rust_print_type): Delete, implementation moved to
7828 rust_language::print_type.
7829 (rust_language_data): Delete la_print_type initializer.
7830 (rust_language::print_type): New member function, implementation
7831 from rust_print_type.
7832
6f827019
AB
78332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7834
7835 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7836 implementation moves to...
7837 (ada_language::sniff_from_mangled_name): ...here. Update return
7838 type.
7839 (ada_language_data): Delete la_sniff_from_mangled_name
7840 initializer.
7841 * c-lang.c (c_language_data): Likewise.
7842 (cplus_language_data): Likewise.
7843 (cplus_language::sniff_from_mangled_name): New member function,
7844 implementation taken from gdb_sniff_from_mangled_name.
7845 (asm_language_data): Delete la_sniff_from_mangled_name
7846 initializer.
7847 (minimal_language_data): Likewise.
7848 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7849 implementation moves to cplus_language::sniff_from_mangled_name.
7850 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7851 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7852 moves to...
7853 (d_language::sniff_from_mangled_name): ...here.
7854 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7855 * f-lang.c (f_language_data): Likewise.
7856 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7857 moves to...
7858 (go_language::sniff_from_mangled_name): ...here.
7859 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7860 * language.c (language_sniff_from_mangled_name): Delete.
7861 (unknown_language_data): Delete la_sniff_from_mangled_name
7862 initializer.
7863 (auto_language_data): Likewise.
7864 * language.h (language_data): Delete la_sniff_from_mangled_name
7865 field.
7866 (language_defn::sniff_from_mangled_name): New function.
7867 (language_sniff_from_mangled_name): Delete declaration.
7868 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7869 field.
7870 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7871 implementation moves to...
7872 (objc_language::sniff_from_mangled_name): ...here.
7873 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7874 * opencl-lang.c (opencl_language_data): Likewise.
7875 * p-lang.c (pascal_language_data): Likewise.
7876 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7877 implementation moves to...
7878 (rust_language::sniff_from_mangled_name): ...here.
7879 (rust_language_data): Delete la_sniff_from_mangled_name
7880 initializer.
7881 * symtab.c (symbol_find_demangled_name): Call
7882 sniff_from_mangled_name member function.
7883
fb8006fd
AB
78842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7885
7886 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7887 initializer.
7888 * c-lang.c (c_language_data): Likewise.
7889 (cplus_language_data): Likewise.
7890 (cplus_language::search_name_hash): New member function.
7891 (asm_language_data): Delete la_search_name_hash initializer.
7892 (minimal_language_data): Likewise.
7893 * d-lang.c (d_language_data): Likewise.
7894 * dictionary.c (default_search_name_hash): Rename to...
7895 (language_defn::search_name_hash): ...this.
7896 * f-lang.c (f_language_data): Likewise.
7897 (f_language::search_name_hash): New member function.
7898 * go-lang.c (go_language_data): Delete la_search_name_hash
7899 initializer.
7900 * language.c (unknown_language_data): Likewise.
7901 (auto_language_data): Likewise.
7902 * language.h (struct language_data): Delete la_search_name_hash
7903 field.
7904 (language_defn::search_name_hash): Declare new member function.
7905 (default_search_name_hash): Delete declaration.
7906 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7907 initializer.
7908 * objc-lang.c (objc_language_data): Likewise.
7909 * opencl-lang.c (opencl_language_data): Likewise.
7910 * p-lang.c (pascal_language_data): Likewise.
7911 * rust-lang.c (rust_language_data): Likewise.
7912 * symtab.c (search_name_hash): Update call.
7913
8e25bafe
AB
79142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7917 initializer.
7918 * c-lang.c (class compile_instance): Declare.
7919 (c_language_data): Delete la_get_compile_instance initializer.
7920 (c_language::get_compile_instance): New member function.
7921 (cplus_language_data): Delete la_get_compile_instance initializer.
7922 (cplus_language::get_compile_instance): New member function.
7923 (asm_language_data): Delete la_get_compile_instance initializer.
7924 (minimal_language_data): Likewise.
7925 * c-lang.h (c_get_compile_context): Update comment.
7926 (cplus_get_compile_context): Update comment.
7927 * compile/compile.c (compile_to_object): Update calls, don't rely
7928 on function pointer being NULL.
7929 * d-lang.c (d_language_data): Delete la_get_compile_instance
7930 initializer.
7931 * f-lang.c (f_language_data): Likewise.
7932 * go-lang.c (go_language_data): Likewise.
7933 * language.c (unknown_language_data): Likewise.
7934 (auto_language_data): Likewise.
7935 * language.h (language_data): Delete la_get_compile_instance field.
7936 (language_defn::get_compile_instance): New member function.
7937 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7938 initializer.
7939 * objc-lang.c (objc_language_data): Likewise.
7940 * opencl-lang.c (opencl_language_data): Likewise.
7941 * p-lang.c (pascal_language_data): Likewise.
7942 * rust-lang.c (rust_language_data): Likewise.
7943
4009ee92
AB
79442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7945
7946 * ada-lang.c (ada_add_all_symbols): Update comment.
7947 (ada_iterate_over_symbols): Delete, move implementation to...
7948 (ada_language::iterate_over_symbols): ...here, a new member
7949 function, rewrite to use range based for loop.
7950 (ada_language_data): Delete la_iterate_over_symbols initializer.
7951 * c-lang.c (c_language_data): Likewise.
7952 (cplus_language_data): Likewise.
7953 (asm_language_data): Likewise.
7954 (minimal_language_data): Likewise.
7955 * d-lang.c (d_language_data): Likewise.
7956 * f-lang.c (f_language_data): Likewise.
7957 * go-lang.c (go_language_data): Likewise.
7958 * language.c (unknown_language_data): Likewise.
7959 (auto_language_data): Likewise.
7960 * language.h (language_data): Delete la_iterate_over_symbols field.
7961 (language_defn::iterate_over_symbols): New member function.
7962 (LA_ITERATE_OVER_SYMBOLS): Update.
7963 * linespec.c (iterate_over_all_matching_symtabs): Update.
7964 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7965 initializer.
7966 * objc-lang.c (objc_language_data): Likewise.
7967 * opencl-lang.c (opencl_language_data): Likewise.
7968 * p-lang.c (pascal_language_data): Likewise.
7969 * rust-lang.c (rust_language_data): Likewise.
7970
54f4ca46
AB
79712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7972
7973 * ada-lang.c (ada_language_data): Delete
7974 la_lookup_transparent_type initializer.
7975 * c-lang.c (c_language_data): Likewise.
7976 (cplus_language_data): Likewise.
7977 (cplus_language::lookup_transparent_type): New member function.
7978 (asm_language_data): Delete la_lookup_transparent_type
7979 initializer.
7980 (minimal_language_data): Likewise.
7981 * d-lang.c (d_language_data): Likewise.
7982 * f-lang.c (f_language_data): Likewise.
7983 * go-lang.c (go_language_data): Likewise.
7984 * language.c (unknown_language_data): Likewise.
7985 (auto_language_data): Likewise.
7986 * language.h (struct language_data): Delete
7987 la_lookup_transparent_type field.
7988 (language_defn::lookup_transparent_type): New member function.
7989 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7990 initializer.
7991 * objc-lang.c (objc_language_data): Likewise.
7992 * opencl-lang.c (opencl_language_data): Likewise.
7993 * p-lang.c (pascal_language_data): Likewise.
7994 * rust-lang.c (rust_language_data): Likewise.
7995 * symtab.c (symbol_matches_domain): Update call.
7996
1fb314aa
AB
79972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7998
7999 * ada-lang.c (ada_language_arch_info): Delete function, move
8000 implementation to...
8001 (ada_language::language_arch_info): ...here, a new member
8002 function.
8003 (ada_language_data): Delete la_language_arch_info.
8004 * c-lang.c (c_language_data): Likewise.
8005 (c_language::language_arch_info): New member function.
8006 (cplus_language_arch_info): Delete function, move
8007 implementation to...
8008 (cplus_language::language_arch_info): ...here, a new member
8009 function.
8010 (cplus_language_data): Delete la_language_arch_info.
8011 (asm_language_data): Likewise.
8012 (asm_language::language_arch_info): New member function.
8013 (minimal_language_data): Delete la_language_arch_info.
8014 (minimal_language::language_arch_info): New member function.
8015 * d-lang.c (d_language_arch_info): Delete function, move
8016 implementation to...
8017 (d_language::language_arch_info): ...here, a new member
8018 function.
8019 (d_language_data): Delete la_language_arch_info.
8020 * f-lang.c (f_language_arch_info): Delete function, move
8021 implementation to...
8022 (f_language::language_arch_info): ...here, a new member
8023 function.
8024 (f_language_data): Delete la_language_arch_info.
8025 * go-lang.c (go_language_arch_info): Delete function, move
8026 implementation to...
8027 (go_language::language_arch_info): ...here, a new member
8028 function.
8029 (go_language_data): Delete la_language_arch_info.
8030 * language.c (unknown_language_data): Likewise.
8031 (unknown_language::language_arch_info): New member function.
8032 (auto_language_data): Delete la_language_arch_info.
8033 (auto_language::language_arch_info): New member function.
8034 (language_gdbarch_post_init): Update call to
8035 la_language_arch_info.
8036 * language.h (language_data): Delete la_language_arch_info
8037 function pointer.
8038 (language_defn::language_arch_info): New function.
8039 * m2-lang.c (m2_language_arch_info): Delete function, move
8040 implementation to...
8041 (m2_language::language_arch_info): ...here, a new member
8042 function.
8043 (m2_language_data): Delete la_language_arch_info.
8044 * objc-lang.c (objc_language_arch_info): Delete function, move
8045 implementation to...
8046 (objc_language::language_arch_info): ...here, a new member
8047 function.
8048 (objc_language_data): Delete la_language_arch_info.
8049 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8050 implementation to...
8051 (opencl_language::language_arch_info): ...here, a new member
8052 function.
8053 (opencl_language_data): Delete la_language_arch_info.
8054 * p-lang.c (pascal_language_arch_info): Delete function, move
8055 implementation to...
8056 (pascal_language::language_arch_info): ...here, a new member
8057 function.
8058 (pascal_language_data): Delete la_language_arch_info.
8059 * rust-lang.c (rust_language_arch_info): Delete function, move
8060 implementation to...
8061 (rust_language::language_arch_info): ...here, a new member
8062 function.
8063 (rust_language_data): Delete la_language_arch_info.
8064
48448202
AB
80652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8066
8067 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8068 initializer.
8069 * c-lang.c (c_language_data): Likewise.
8070 (cplus_language_data): Likewise.
8071 (cplus_language::pass_by_reference_info): New method.
8072 (asm_language_data): Delete la_pass_by_reference initializer.
8073 (minimal_language_data): Likewise.
8074 * cp-abi.c (cp_pass_by_reference): Remove use of
8075 default_pass_by_reference.
8076 * d-lang.c (d_language_data): Likewise.
8077 * f-lang.c (f_language_data): Likewise.
8078 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8079 default_pass_by_reference.
8080 * go-lang.c (go_language_data): Likewise.
8081 * language.c (language_pass_by_reference): Update.
8082 (default_pass_by_reference): Delete.
8083 (unknown_language_data): Delete la_pass_by_reference
8084 initializer.
8085 (auto_language_data): Likewise.
8086 * language.h (struct language_data): Delete la_pass_by_reference
8087 field.
8088 (language_defn::pass_by_reference_info): New member function.
8089 (default_pass_by_reference): Delete declaration.
8090 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8091 initializer.
8092 * objc-lang.c (objc_language_data): Likewise.
8093 * opencl-lang.c (opencl_language_data): Likewise.
8094 * p-lang.c (pascal_language_data): Likewise.
8095 * rust-lang.c (rust_language_data): Likewise.
8096
15e5fd35
AB
80972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8098
8099 * ada-lang.c (ada_read_var_value): Delete function, move
8100 implementation to...
8101 (ada_language::read_var_value): ...here.
8102 (ada_language_data): Delete la_read_var_value initializer.
8103 * c-lang.c (c_language_data): Likewise.
8104 (cplus_language_data): Likewise.
8105 (minimal_language_data): Likewise.
8106 * d-lang.c (d_language_data): Likewise.
8107 * f-lang.c (f_language_data): Likewise.
8108 * findvar.c (default_read_var_value): Rename to...
8109 (language_defn::read_var_value): ...this.
8110 * findvar.c (read_var_value): Update header comment, and change to
8111 call member function instead of function pointer.
8112 * go-lang.c (go_language_data): Likewise.
8113 * language.c (unknown_language_data): Delete la_read_var_value
8114 initializer.
8115 (auto_language_data): Likewise.
8116 * language.h (struct language_data): Delete la_read_var_value
8117 field.
8118 (language_defn::read_var_value): New member function.
8119 (default_read_var_value): Delete declaration.
8120 * m2-lang.c (m2_language_data): Delete la_read_var_value
8121 initializer.
8122 * objc-lang.c (objc_language_data): Likewise.
8123 * opencl-lang.c (opencl_language_data): Likewise.
8124 * p-lang.c (pascal_language_data): Likewise.
8125 * rust-lang.c (rust_language_data): Likewise.
8126 * value.h (default_read_var_value): Delete declaration.
8127
5bd40f2a
AB
81282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8129
8130 * ada-lang.c (ada_print_array_index): Delete function, move
8131 implementation to...
8132 (ada_language::print_array_index): ...here.
8133 (ada_language_data): Delete la_print_array_index initializer.
8134 * c-lang.c (c_language_data): Likewise.
8135 (cplus_language_data): Likewise.
8136 (minimal_language_data): Likewise.
8137 * d-lang.c (d_language_data): Likewise.
8138 * f-lang.c (f_language_data): Likewise.
8139 * go-lang.c (go_language_data): Likewise.
8140 * language.c (default_print_array_index): Delete function, move
8141 implementation to...
8142 (language_defn::print_array_index): ...here.
8143 (unknown_language_data): Delete la_print_array_index initializer.
8144 (auto_language_data): Likewise.
8145 * language.h (struct language_data): Delete la_print_array_index
8146 field.
8147 (language_defn::print_array_index): New member function.
8148 (LA_PRINT_ARRAY_INDEX): Update.
8149 (default_print_array_index): Delete declaration.
8150 * m2-lang.c (m2_language_data): Delete la_print_array_index
8151 initializer.
8152 * objc-lang.c (objc_language_data): Likewise.
8153 * opencl-lang.c (opencl_language_data): Likewise.
8154 * p-lang.c (pascal_language_data): Likewise.
8155 * rust-lang.c (rust_language_data): Likewise.
8156
0874fd07
AB
81572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * gdb/ada-lang.c (ada_language_defn): Convert to...
8160 (ada_language_data): ...this.
8161 (class ada_language): New class.
8162 (ada_language_defn): New static global.
8163 * gdb/c-lang.c (c_language_defn): Convert to...
8164 (c_language_data): ...this.
8165 (class c_language): New class.
8166 (c_language_defn): New static global.
8167 (cplus_language_defn): Convert to...
8168 (cplus_language_data): ...this.
8169 (class cplus_language): New class.
8170 (cplus_language_defn): New static global.
8171 (asm_language_defn): Convert to...
8172 (asm_language_data): ...this.
8173 (class asm_language): New class.
8174 (asm_language_defn): New static global.
8175 (minimal_language_defn): Convert to...
8176 (minimal_language_data): ...this.
8177 (class minimal_language): New class.
8178 (minimal_language_defn): New static global.
8179 * gdb/d-lang.c (d_language_defn): Convert to...
8180 (d_language_data): ...this.
8181 (class d_language): New class.
8182 (d_language_defn): New static global.
8183 * gdb/f-lang.c (f_language_defn): Convert to...
8184 (f_language_data): ...this.
8185 (class f_language): New class.
8186 (f_language_defn): New static global.
8187 * gdb/go-lang.c (go_language_defn): Convert to...
8188 (go_language_data): ...this.
8189 (class go_language): New class.
8190 (go_language_defn): New static global.
8191 * gdb/language.c (unknown_language_defn): Remove declaration.
8192 (current_language): Initialize to nullptr, real initialization is
8193 moved to _initialize_language.
8194 (languages): Delete global.
8195 (language_defn::languages): Define.
8196 (set_language_command): Use language_defn::languages.
8197 (set_language): Likewise.
8198 (range_error): Likewise.
8199 (language_enum): Likewise.
8200 (language_def): Likewise.
8201 (add_set_language_command): Use language_def::languages for the
8202 language list, and language_def to lookup language pointers.
8203 (skip_language_trampoline): Use language_defn::languages.
8204 (unknown_language_defn): Convert to...
8205 (unknown_language_data): ...this.
8206 (class unknown_language): New class.
8207 (unknown_language_defn): New static global.
8208 (auto_language_defn): Convert to...
8209 (auto_language_data): ...this.
8210 (class auto_language): New class.
8211 (auto_language_defn): New static global.
8212 (language_gdbarch_post_init): Use language_defn::languages.
8213 (_initialize_language): Initialize current_language.
8214 * gdb/language.h (struct language_defn): Rename to...
8215 (struct language_data): ...this.
8216 (struct language_defn): New.
8217 (auto_language_defn): Delete.
8218 (unknown_language_defn): Delete.
8219 (minimal_language_defn): Delete.
8220 (ada_language_defn): Delete.
8221 (asm_language_defn): Delete.
8222 (c_language_defn): Delete.
8223 (cplus_language_defn): Delete.
8224 (d_language_defn): Delete.
8225 (f_language_defn): Delete.
8226 (go_language_defn): Delete.
8227 (m2_language_defn): Delete.
8228 (objc_language_defn): Delete.
8229 (opencl_language_defn): Delete.
8230 (pascal_language_defn): Delete.
8231 (rust_language_defn): Delete.
8232 * gdb/m2-lang.c (m2_language_defn): Convert to...
8233 (m2_language_data): ...this.
8234 (class m2_language): New class.
8235 (m2_language_defn): New static global.
8236 * gdb/objc-lang.c (objc_language_defn): Convert to...
8237 (objc_language_data): ...this.
8238 (class objc_language): New class.
8239 (objc_language_defn): New static global.
8240 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8241 (opencl_language_data): ...this.
8242 (class opencl_language): New class.
8243 (opencl_language_defn): New static global.
8244 * gdb/p-lang.c (pascal_language_defn): Convert to...
8245 (pascal_language_data): ...this.
8246 (class pascal_language): New class.
8247 (pascal_language_defn): New static global.
8248 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8249 language pointer, update comment format.
8250 * gdb/rust-lang.c (rust_language_defn): Convert to...
8251 (rust_language_data): ...this.
8252 (class rust_language): New class.
8253 (rust_language_defn): New static global.
8254
1313c56e
AB
82552020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8256
8257 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8258 member variable.
8259 <m_stmt_at_address>: New member variable.
8260 (lnp_state_machine::record_line): Don't record some lines, update
8261 tracking of is_stmt at the same address.
8262 (lnp_state_machine::lnp_state_machine): Initialise new member
8263 variables.
8264
b7ed9f3d
ST
82652020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8266
8267 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8268 "-include gnu-nat-mig.h".
8269 * gnu-nat-mig.h: New file.
8270 * gnu-nat.c: Include "gnu-nat-mig.h".
8271 (exc_server, msg_reply_server, notify_server,
8272 process_reply_server): Remove declarations.
8273
14a8ad62
ST
82742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8275
8276 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8277 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8278 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8279 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8280 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8281 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8282 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8283 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8284 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8285 to gnu_nat_target class.
8286 * gnu-nat.c: Likewise.
8287 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8288 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8289 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8290 object.
8291 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8292 instead of `gnu_target'.
8293
0af5e106
ST
82942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8295
8296 * i386-gnu-tdep.c: Include "gdbcore.h"
8297 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8298 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8299 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8300 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8301 i386_gnu_sigcontext_addr): New functions
8302 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8303 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8304 tdep.
8305
078f2fc9
ST
83062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8307
8308 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8309 before fork_inferior call. Avoid calling it if target_is_pushed returns
8310 true.
8311
53dff92c
ST
83122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8313
8314 * gnu-nat.h (gnu_target): New variable declaration.
8315 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8316 gnu_target.
8317 * gnu-nat.c (gnu_target): New variable.
8318 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8319 add_thread_silent, and add_thread calls.
8320 (gnu_nat_target::create_inferior): Pass gnu_target to
8321 add_thread_silent, thread_change_ptid call.
8322 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8323 call.
8324
5a8b8627
ST
83252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8326
8327 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8328 (gnu_nat_target::find_memory_regions): Remove unused
8329 `old_address' variable.
8330
366f550a
ST
83312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8332
8333 * gnu-nat.c: Include "gdbarch.h".
8334
f14871bf
ST
83352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8336
8337 * reply_mig_hack.awk (Error return): Cast function through
8338 void *, to bypass compiler function call check.
8339
c6887cfb
ST
83402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8341
8342 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8343 $(srcdir)/reply_mig_hack.awk.
8344
6930bffe
ST
83452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8346
8347 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8348
112c22ed
JG
83492020-05-30 Jonny Grant <jg@jguk.org>
8350
8351 * configure.ac (ACX_BUGURL): change bug URL to https.
8352
f68f85b5
PA
83532020-05-30 Pedro Alves <palves@redhat.com>
8354
8355 * cp-support.c (replace_typedefs_template): New.
8356 (replace_typedefs_qualified_name): Handle
8357 DEMANGLE_COMPONENT_TEMPLATE.
8358
976ca316
SM
83592020-05-29 Simon Marchi <simon.marchi@efficios.com>
8360
8361 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8362 dwarf2/index-cache.h, dwarf2/index-write.c,
8363 dwarf2/index-write.h, dwarf2/line-header.c,
8364 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8365 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8366 variables and fields from `dwarf2_per_objfile` to just
8367 `per_objfile` throughout.
8368
989ade05
SM
83692020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8370
8371 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8372 <push_dwarf_reg_entry_value>: Add comment.
8373
c47bae85
KB
83742020-05-28 Kevin Buettner <kevinb@redhat.com>
8375 Keith Seitz <keiths@redhat.com>
8376
8377 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8378 instead of PyEval_ReleaseLock.
8379 (class gdbpy_gil): Move to earlier in file.
8380 (finalize_python): Set gdb_python_initialized.
8381 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8382 when not initialized.
8383
44486dcf
SM
83842020-05-28 Simon Marchi <simon.marchi@efficios.com>
8385
8386 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8387 <push_dwarf_reg_entry_value>: Remove assert. Override
8388 per_objfile with caller_per_objfile.
8389
f030440d
TV
83902020-05-28 Tom de Vries <tdevries@suse.de>
8391
8392 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8393 PR gold/15646 workaround to symbol kind "type".
8394
f0fbb768
TT
83952020-05-27 Tom Tromey <tromey@adacore.com>
8396
8397 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8398
af0b2a3e
TT
83992020-05-27 Tom Tromey <tromey@adacore.com>
8400
8401 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8402 Use htab_find_with_hash.
8403 <add_abbrev>: Remove "abbrev_number" parameter.
8404 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8405 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8406 (hash_abbrev): Add comment.
8407 (abbrev_table::lookup_abbrev): Move to header file.
8408 (abbrev_table::read): Update.
8409
7d00ffec
TT
84102020-05-27 Tom Tromey <tromey@adacore.com>
8411
8412 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8413 method.
8414 <canonical_name>: New member.
8415 <raw_name>: Rename from "name".
8416 (partial_die_info): Initialize canonical_name.
8417 (scan_partial_symbols): Check raw_name.
8418 (partial_die_parent_scope, partial_die_full_name)
8419 (add_partial_symbol, add_partial_subprogram)
8420 (add_partial_enumeration, load_partial_dies): Use "name" method.
8421 (partial_die_info::name): New method.
8422 (partial_die_info::read, guess_partial_die_structure_name)
8423 (partial_die_info::fixup): Update.
8424
697bba18
TT
84252020-05-27 Tom Tromey <tromey@adacore.com>
8426
8427 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8428 <get_ref_die_offset>: Inline.
8429 <get_ref_die_offset_complaint>: New method.
8430 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8431 (attribute::get_ref_die_offset_complaint): Rename from
8432 get_ref_die_offset. Just issue complaint.
8433
c17ace43
HD
84342020-05-27 Hannes Domani <ssbssa@yahoo.de>
8435
8436 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8437
96445f0b
HD
84382020-05-27 Hannes Domani <ssbssa@yahoo.de>
8439
8440 * exec.c (exec_file_attach): Use errno value of first openp failure.
8441
ac637ec3
HD
84422020-05-27 Hannes Domani <ssbssa@yahoo.de>
8443
8444 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8445 Don't close thread handle.
8446
17ee85fc
TT
84472020-05-27 Tom Tromey <tom@tromey.com>
8448 Simon Marchi <simon.marchi@efficios.com>
8449
8450 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8451 shared_ptr.
8452 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8453 member.
8454 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8455 dwarf2_per_bfd_objfile_data_key>: New globals.
8456 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8457 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8458 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8459 shared.
8460 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8461 short-circuit when sharing.
8462 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8463 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8464
39b16f87
SM
84652020-05-27 Simon Marchi <simon.marchi@efficios.com>
8466
8467 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8468 to...
8469 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8470 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8471
fcf23d5b
SM
84722020-05-27 Simon Marchi <simon.marchi@efficios.com>
8473
8474 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8475 build_name_components, find_name_components_bounds>:
8476 Add per_objfile parameter.
8477 (struct mapped_index) <symbol_name_at>: Likewise.
8478 (struct mapped_debug_names): Remove constructor.
8479 <dwarf2_per_objfile>: Remove field.
8480 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8481 (mapped_index_base::find_name_components_bounds,
8482 mapped_index_base::build_name_components,
8483 dw2_expand_symtabs_matching_symbol): Likewise.
8484 (class mock_mapped_index) <symbol_name_at>: Likewise.
8485 (check_match): Likewise.
8486 (check_find_bounds_finds): Likewise.
8487 (test_mapped_index_find_name_component_bounds): Update.
8488 (CHECK_MATCH): Update.
8489 (dw2_expand_symtabs_matching): Update.
8490 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8491 per_objfile parameter.
8492 <find_vec_in_debug_names>: Likewise.
8493 <m_per_objfile>: New field.
8494 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8495 parameter.
8496 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8497 (dw2_debug_names_iterator::next): Update.
8498 (dw2_debug_names_lookup_symbol): Update.
8499 (dw2_debug_names_expand_symtabs_for_function): Update.
8500 (dw2_debug_names_map_matching_symbols): Update.
8501 (dw2_debug_names_expand_symtabs_matching): Update.
8502 (dwarf2_read_debug_names): Update.
8503
7188ed02
SM
85042020-05-27 Simon Marchi <simon.marchi@efficios.com>
8505
8506 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8507 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8508 move to dwarf2_per_objfile.
8509 <read_in_chain>: Remove.
8510 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8511 remove_all_cus, age_comp_units>: New methods.
8512 <m_dwarf2_cus>: New member.
8513 (struct dwarf2_per_cu_data) <cu>: Remove.
8514 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8515 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8516 moved to methods of dwarf2_per_objfile.
8517 (dwarf2_clear_marks): Remove.
8518 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8519 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8520 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8521 (dwarf2_per_objfile::remove_all_cus): New.
8522 (class free_cached_comp_units) <~free_cached_comp_units>:
8523 Update.
8524 (load_cu): Update.
8525 (dw2_do_instantiate_symtab): Adjust.
8526 (fill_in_sig_entry_from_dwo_entry): Adjust.
8527 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8528 (cutu_reader::cutu_reader): Likewise.
8529 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8530 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8531 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8532 and dwarf2_per_objfile::age_comp_units.
8533 (load_partial_comp_unit): Update.
8534 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8535 (process_queue): Likewise.
8536 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8537 backlink.
8538 (dwarf2_read_addr_index): Likewise.
8539 (follow_die_offset): Likewise.
8540 (dwarf2_fetch_die_loc_sect_off): Likewise.
8541 (dwarf2_fetch_constant_bytes): Likewise.
8542 (dwarf2_fetch_die_type_sect_off): Likewise.
8543 (follow_die_sig_1): Likewise.
8544 (load_full_type_unit): Likewise.
8545 (read_signatured_type): Likewise.
8546 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8547 (dwarf2_cu::~dwarf2_cu): Remove.
8548 (dwarf2_per_objfile::get_cu): New.
8549 (dwarf2_per_objfile::set_cu): New.
8550 (age_cached_comp_units): Rename to...
8551 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8552 to std::unordered_map.
8553 (free_one_cached_comp_unit): Rename to...
8554 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8555 to std::unordered_map.
8556 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8557 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8558 a dwarf2_per_objfile in data.
8559 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8560 (dwarf2_clear_marks): Remove.
8561
2e671100
SM
85622020-05-27 Simon Marchi <simon.marchi@efficios.com>
8563
8564 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8565 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8566 (init_tu_and_read_dwo_dies): Likewise.
8567 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8568 (cutu_reader::cutu_reader): Likewise.
8569 (load_partial_comp_unit): Likewise.
8570 (process_psymtab_comp_unit): Update.
8571 (build_type_psymtabs_1): Update.
8572 (process_skeletonless_type_unit): Update.
8573 (load_full_comp_unit): Update.
8574 (find_partial_die): Update.
8575 (dwarf2_read_addr_index): Update.
8576 (read_signatured_type): Update.
8577
2e6a9f79
SM
85782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8579
8580 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8581 m_header_read_in>: New fields.
8582 <get_header>: New method.
8583 * dwarf2/read.c (per_cu_header_read_in): Remove.
8584 (dwarf2_per_cu_data::get_header): New.
8585 (dwarf2_per_cu_data::addr_size): Update.
8586 (dwarf2_per_cu_data::offset_size): Update.
8587 (dwarf2_per_cu_data::ref_addr_size): Update.
8588
1b555f17
SM
85892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8590
8591 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8592 (dw2_do_instantiate_symtab): Update.
8593 (queue_and_load_all_dwo_tus): Change parameter from
8594 dwarf2_per_cu_data to dwarf2_cu.
8595 (dwarf2_fetch_die_loc_sect_off): Update.
8596 (dwarf2_fetch_constant_bytes): Update.
8597 (dwarf2_fetch_die_type_sect_off): Update.
8598
8fc0b21d
SM
85992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8600
8601 * dwarf2/read.c (process_full_comp_unit,
8602 process_full_type_unit): Remove per_cu, per_objfile paramters.
8603 Add dwarf2_cu parameter.
8604 (process_queue): Update.
8605
168c9250
SM
86062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8607
8608 * dwarf2/read.c (create_cu_from_index_list): Replace
8609 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8610 (create_cus_from_index_list): Likewise.
8611 (create_cus_from_index): Likewise.
8612 (create_signatured_type_table_from_index): Likewise.
8613 (create_cus_from_debug_names_list): Likewise.
8614 (create_cus_from_debug_names): Likewise.
8615 (dwarf2_read_gdb_index): Update.
8616 (dwarf2_read_debug_names): Update.
8617
e286671b
TT
86182020-05-27 Tom Tromey <tom@tromey.com>
8619 Simon Marchi <simon.marchi@efficios.com>
8620
8621 * dwarf2/read.h (struct dwarf2_per_objfile)
8622 <get_type_for_signatured_type, set_type_for_signatured_type>:
8623 New methods.
8624 <m_type_map>: New member.
8625 (struct signatured_type) <type>: Remove.
8626 * dwarf2/read.c
8627 (dwarf2_per_objfile::get_type_for_signatured_type,
8628 dwarf2_per_objfile::set_type_for_signatured_type): New.
8629 (get_signatured_type): Use new methods.
8630
8adb8487
TT
86312020-05-27 Tom Tromey <tom@tromey.com>
8632 Simon Marchi <simon.marchi@efficios.com>
8633
8634 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8635 (struct dwarf2_per_objfile) <type_units>: New member.
8636 <get_type_unit_group_unshareable>: New method.
8637 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8638 num_symtabs, symtabs>: Remove; move to
8639 type_unit_group_unshareable.
8640 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8641 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8642 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8643
127bbf4b
SM
86442020-05-27 Simon Marchi <simon.marchi@efficios.com>
8645
8646 * dwarf2/read.h (struct dwarf2_per_cu_data):
8647 <dwarf2_per_objfile>: Remove.
8648 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8649 dwarf2_per_objfile.
8650 (create_signatured_type_table_from_index): Likewise.
8651 (create_signatured_type_table_from_debug_names): Likewise.
8652 (create_debug_type_hash_table): Likewise.
8653 (fill_in_sig_entry_from_dwo_entry): Likewise.
8654 (create_type_unit_group): Likewise.
8655 (read_comp_units_from_section): Likewise.
8656 (create_cus_hash_table): Likewise.
8657
f6e649dd
SM
86582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8659
8660 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8661 dwarf2_per_cu_data::dwarf2_per_objfile.
8662 (compute_compunit_symtab_includes): Likewise.
8663 (dwarf2_cu::start_symtab): Likewise.
8664
aa66c379
SM
86652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8666
8667 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8668 parameter.
8669 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8670 (read_namespace_alias): Update.
8671 (lookup_die_type): Update.
8672 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8673 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8674 Update.
8675 (disassemble_dwarf_expression): Update.
8676
120ce1b5
SM
86772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8678
8679 * dwarf2/read.h (struct dwarf2_queue_item): Add
8680 dwarf2_per_objfile parameter, assign new parameter.
8681 <per_objfile>: New field.
8682 * dwarf2/read.c (free_one_cached_comp_unit): Add
8683 dwarf2_per_objfile parameter.
8684 (queue_comp_unit): Likewise.
8685 (dw2_do_instantiate_symtab): Update.
8686 (process_psymtab_comp_unit): Update.
8687 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8688 (process_imported_unit_die): Update.
8689 (queue_and_load_dwo_tu): Update.
8690 (follow_die_offset): Update.
8691 (follow_die_sig_1): Update.
8692
9f47c707
SM
86932020-05-27 Simon Marchi <simon.marchi@efficios.com>
8694
8695 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8696 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8697 (read_call_site_scope): Assign per_objfile.
8698 (dwarf2_per_cu_data::objfile): Remove.
8699 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8700 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8701 dwarf2_per_objfile parameter.
8702 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8703 dwarf2_per_objfile parameter.
8704 (dwarf_expr_reg_to_entry_parameter): Add output
8705 dwarf2_per_objfile parameter.
8706 (locexpr_get_frame_base): Update.
8707 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8708 <push_dwarf_reg_entry_value>: Update.
8709 <call_site_to_target_addr>: Update.
8710 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8711 parameter.
8712 (value_of_dwarf_reg_entry): Update.
8713 (rw_pieced_value): Update.
8714 (indirect_synthetic_pointer): Update.
8715 (dwarf2_evaluate_property): Update.
8716 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8717 parameter.
8718 (locexpr_read_variable): Update.
8719 (locexpr_get_symbol_read_needs): Update.
8720 (loclist_read_variable): Update.
8721
14095eb3
SM
87222020-05-27 Simon Marchi <simon.marchi@efficios.com>
8723
8724 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8725 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8726 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8727 parameter.
8728 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8729 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8730 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8731 parameter.
8732 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8733 sect_variable_value): Add dwarf2_per_objfile parameter.
8734 (class dwarf_evaluate_loc_desc) <dwarf_call,
8735 dwarf_variable_value>: Update.
8736 (fetch_const_value_from_synthetic_pointer): Add
8737 dwarf2_per_objfile parameter.
8738 (fetch_const_value_from_synthetic_pointer): Update.
8739 (coerced_pieced_ref): Update.
8740 (class symbol_needs_eval_context) <dwarf_call,
8741 dwarf_variable_value>: Update.
8742 (dwarf2_compile_expr_to_ax): Update.
8743
3c3cd3d4
SM
87442020-05-27 Simon Marchi <simon.marchi@efficios.com>
8745
8746 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8747 parameter.
8748 (dwarf2_evaluate_loc_desc_full): Update.
8749
82ca3f51
SM
87502020-05-27 Simon Marchi <simon.marchi@efficios.com>
8751
8752 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8753 parameter.
8754 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8755 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8756 dwarf2_per_objfile parameter.
8757 (decode_debug_loc_dwo_addresses): Likewise.
8758 (dwarf2_find_location_expression): Update.
8759 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8760 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8761 parameter.
8762 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8763 parameter.
8764 (locexpr_describe_location_1): Likewise.
8765 (locexpr_describe_location): Update.
8766
4b167ea1
SM
87672020-05-27 Simon Marchi <simon.marchi@efficios.com>
8768
8769 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8770 Remove.
8771 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8772 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8773 (dwarf2_compile_property_to_c): Update.
8774 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8775 use text offset from objfile.
8776 (locexpr_tracepoint_var_ref): Update.
8777 (locexpr_generate_c_location): Update.
8778 (loclist_describe_location): Update.
8779 (loclist_tracepoint_var_ref): Update.
8780 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8781 dwarf2_per_objfile parameter.
8782 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8783 use text offset from objfile.
8784 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8785
89b07335
SM
87862020-05-27 Simon Marchi <simon.marchi@efficios.com>
8787
8788 * dwarf2/expr.h (struct dwarf_expr_context)
8789 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8790 <offset>: Remove.
8791 <per_objfile>: New member.
8792 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8793 dwarf2_per_objfile parameter. Don't set offset, set
8794 per_objfile.
8795 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8796 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8797 a dwarf2_per_objfile object instead of an offset.
8798 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8799 constructor.
8800 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8801 to dwarf2_expr_executor constructor. Don't set offset.
8802 (dwarf2_fetch_cfa_info): Update.
8803 (struct dwarf2_frame_cache) <text_offset>: Remove.
8804 <per_objfile>: New field.
8805 (dwarf2_frame_cache): Update.
8806 (dwarf2_frame_prev_register): Update.
8807 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8808 <dwarf_evaluate_loc_desc>: Add constructor.
8809 (dwarf2_evaluate_loc_desc_full): Update.
8810 (dwarf2_locexpr_baton_eval): Update.
8811 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8812 Add constructor.
8813 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8814
293e7e51
SM
88152020-05-27 Simon Marchi <simon.marchi@efficios.com>
8816
8817 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8818 addr_sized_int_type>: Move to dwarf2_cu.
8819 <int_type>: Move to dwarf2_per_objfile.
8820 (struct dwarf2_per_objfile) <int_type>: Move here.
8821 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8822 addr_sized_int_type>: Move here.
8823 (read_func_scope): Update.
8824 (read_array_type): Update.
8825 (read_tag_string_type): Update.
8826 (attr_to_dynamic_prop): Update.
8827 (dwarf2_per_cu_data::int_type): Rename to...
8828 (dwarf2_per_objfile::int_type): ... this.
8829 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8830 (dwarf2_cu::addr_sized_int_type): ... this.
8831 (read_subrange_type): Update.
8832 (dwarf2_per_cu_data::addr_type): Rename to...
8833 (dwarf2_cu::addr_type): ... this.
8834 (set_die_type): Update.
8835
64874a40
SM
88362020-05-27 Simon Marchi <simon.marchi@efficios.com>
8837
8838 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8839 data through per_cu->cu.
8840
4ab09049
SM
88412020-05-27 Simon Marchi <simon.marchi@efficios.com>
8842
8843 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8844 dwarf2_per_cu_data parameter fo dwarf2_cu.
8845 (lookup_dwo_type_unit): Likewise.
8846 (read_cutu_die_from_dwo): Likewise.
8847 (lookup_dwo_unit): Likewise.
8848 (open_and_init_dwo_file): Likewise.
8849 (lookup_dwo_cutu): Likewise.
8850 (lookup_dwo_comp_unit): Likewise.
8851 (lookup_dwo_type_unit): Likewise.
8852 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8853 (cutu_reader::cutu_reader): Update.
8854
47b14e86
SM
88552020-05-27 Simon Marchi <simon.marchi@efficios.com>
8856
8857 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8858 parameter.
8859 (process_full_type_unit): Likewise.
8860 (process_queue): Update.
8861
43182c09
SM
88622020-05-27 Simon Marchi <simon.marchi@efficios.com>
8863
8864 * dwarf2/read.c (recursively_compute_inclusions): Add
8865 dwarf2_per_objfile parameter.
8866 (compute_compunit_symtab_includes): Likewise.
8867 (process_cu_includes): Update.
8868
7aa104c4
SM
88692020-05-27 Simon Marchi <simon.marchi@efficios.com>
8870
8871 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8872 parameter.
8873 (create_type_unit_group): Update.
8874 (process_psymtab_comp_unit_reader): Update.
8875 (build_type_psymtabs_reader): Update.
8876
e3beb21d
SM
88772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8878
8879 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8880 object through m_this_cu->cu.
8881
d460f660
SM
88822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8883
8884 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8885 the info parameter.
8886 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8887
ab432490
SM
88882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8889
8890 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8891 per_objfile parameter.
8892 (load_full_type_unit): Add per_objfile parameter.
8893 (read_signatured_type): Likewise.
8894 (load_full_comp_unit): Likewise.
8895 (load_cu): Likewise.
8896 (dw2_do_instantiate_symtab): Likewise.
8897 (dw2_get_file_names): Likewise.
8898 (dw2_map_symtabs_matching_filename): Update.
8899 (dw_expand_symtabs_matching_file_matcher): Update.
8900 (dw2_map_symbol_filenames): Update.
8901 (process_psymtab_comp_unit): Add per_objfile parameter.
8902 (build_type_psymtabs_1): Update.
8903 (process_skeletonless_type_unit): Update.
8904 (dwarf2_build_psymtabs_hard): Update.
8905 (load_partial_comp_unit): Add per_objfile parameter.
8906 (scan_partial_symbols): Update.
8907 (load_full_comp_unit): Add per_objfile parameter.
8908 (process_imported_unit_die): Update.
8909 (create_cus_hash_table): Update.
8910 (find_partial_die): Update.
8911 (dwarf2_read_addr_index): Update.
8912 (follow_die_offset): Update.
8913 (dwarf2_fetch_die_loc_sect_off): Update.
8914 (dwarf2_fetch_constant_bytes): Update.
8915 (dwarf2_fetch_die_type_sect_off): Update.
8916 (follow_die_sig_1): Update.
8917 (load_full_type_unit): Add per_objfile parameter.
8918 (read_signatured_type): Likewise.
8919
313bad1b
SM
89202020-05-27 Simon Marchi <simon.marchi@efficios.com>
8921
8922 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8923 of objfile_name.
8924
c3699833
SM
89252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8926
8927 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8928 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8929 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8930 field.
8931 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8932 (create_cus_from_index): Update.
8933 (dwarf2_read_gdb_index): Update.
8934 (create_cus_from_debug_names): Update.
8935 (dwarf2_read_debug_names): Update.
8936 (get_abbrev_section_for_cu): Update.
8937 (create_all_comp_units): Update.
8938 (read_attribute_value): Update.
8939 (get_debug_line_section): Update.
8940 * dwarf2/index-cache.c (index_cache::store): Update.
8941 * dwarf2/index-write.c (save_gdb_index_command): Update.
8942 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8943
1859c670
SM
89442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8945
8946 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8947 member.
8948 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8949 dwarf2_per_cu_data::per_bfd.
8950 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8951 (create_type_unit_group): Likewise.
8952 (queue_comp_unit): Remove reference to
8953 per_cu->dwarf2_per_objfile.
8954 (maybe_queue_comp_unit): Likewise.
8955 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8956 (create_cus_hash_table): Assign new field.
8957
5e22e966
SM
89582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8959
8960 * dwarf2/read.c: Replace
8961 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8962 dwarf2_cu->per_objfile throughout.
8963
97a1449a
SM
89642020-05-27 Simon Marchi <simon.marchi@efficios.com>
8965
8966 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8967 parameter, don't use per_cu->dwarf2_per_objfile.
8968 (dw2_instantiate_symtab): Likewise.
8969 (dw2_find_last_source_symtab): Update.
8970 (dw2_map_expand_apply): Update.
8971 (dw2_lookup_symbol): Update.
8972 (dw2_expand_symtabs_for_function): Update.
8973 (dw2_expand_all_symtabs): Update.
8974 (dw2_expand_symtabs_with_fullname): Update.
8975 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8976 don't use per_cu->dwarf2_per_objfile.
8977 (dw2_expand_marked_cus): Update.
8978 (dw2_find_pc_sect_compunit_symtab): Update.
8979 (dw2_debug_names_lookup_symbol): Update.
8980 (dw2_debug_names_expand_symtabs_for_function): Update.
8981 (dw2_debug_names_map_matching_symbols): Update.
8982 (dwarf2_psymtab::expand_psymtab): Update.
8983
9e021579
SM
89842020-05-27 Simon Marchi <simon.marchi@efficios.com>
8985
8986 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8987 <per_objfile>: New member.
8988 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8989 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8990 call to dwarf2_cu.
8991 (cutu_reader::cutu_reader): Update.
8992 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8993
ae090bdb
SM
89942020-05-27 Simon Marchi <simon.marchi@efficios.com>
8995
8996 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8997 struct dwarf2_per_objfile.
8998 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8999 dwarf2_per_bfd.
9000 * dwarf2/read.c (set_die_type): Update.
9001 (get_die_type_at_offset): Update.
9002
af758d11
SM
90032020-05-27 Tom Tromey <tom@tromey.com>
9004 Simon Marchi <simon.marchi@efficios.com>
9005
9006 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9007 method.
9008 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9009 get_symtab, set_symtab>: New methods.
9010 <m_symtabs>: New field.
9011 (struct dwarf2_psymtab): Derive from partial_symtab.
9012 <readin_p, get_compunit_symtab>: Declare methods.
9013 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9014 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9015 New methods.
9016 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9017 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9018 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9019 (dw2_symtab_iter_next, dw2_print_stats)
9020 (dw2_expand_symtabs_with_fullname)
9021 (dw2_expand_symtabs_matching_one)
9022 (dw_expand_symtabs_matching_file_matcher)
9023 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9024 (dw2_debug_names_iterator::next)
9025 (dw2_debug_names_map_matching_symbols)
9026 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9027 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9028 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9029 New methods.
9030 (get_compunit_symtab, process_full_comp_unit)
9031 (process_full_type_unit): Update.
9032 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9033
5989a64e
SM
90342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9035
9036 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9037 then introduce a new dwarf2_per_objfile type.
9038 <read_line_string>: Move to the new dwarf2_per_objfile type.
9039 <objfile>: Likewise.
9040 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9041 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9042 dwarf2_per_objfile->per_bfd.
9043 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9044 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9045 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9046 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9047 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9048 (dwarf2_per_objfile::locate_sections): Rename to...
9049 (dwarf2_per_bfd::locate_sections): ... this.
9050 (dwarf2_per_objfile::get_cutu): Rename to...
9051 (dwarf2_per_bfd::get_cutu): ... this.
9052 (dwarf2_per_objfile::get_cu): Rename to...
9053 (dwarf2_per_bfd::get_cu): ... this.
9054 (dwarf2_per_objfile::get_tu): Rename to...
9055 (dwarf2_per_bfd::get_tu): ... this.
9056 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9057 (dwarf2_per_bfd::allocate_per_cu): ... this.
9058 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9059 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9060 (get_gdb_index_contents_ftype): Change parameter from
9061 dwarf2_per_objfile to dwarf2_per_bfd.
9062 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9063 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9064
a50264ba
TT
90652020-05-27 Tom Tromey <tom@tromey.com>
9066 Simon Marchi <simon.marchi@efficios.com>
9067
9068 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9069 (allocate_piece_closure): Set "per_objfile" member.
9070 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9071 (locexpr_describe_location, loclist_describe_location): Use new
9072 member.
9073 * dwarf2/read.c (read_call_site_scope)
9074 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9075 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9076 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9077 handle_data_member_location): Set per_objfile member.
9078 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9079 member.
9080 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9081
d3473f0c
TT
90822020-05-27 Tom Tromey <tom@tromey.com>
9083
9084 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9085 allocate_signatured_type>: Declare new methods.
9086 <m_num_psymtabs>: New member.
9087 (struct dwarf2_per_cu_data) <index>: New member.
9088 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9089 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9090 (create_cu_from_index_list): Use allocate_per_cu.
9091 (create_signatured_type_table_from_index)
9092 (create_signatured_type_table_from_debug_names)
9093 (create_debug_type_hash_table, add_type_unit)
9094 (read_comp_units_from_section): Use allocate_signatured_type.
9095
5717c425
TT
90962020-05-27 Tom Tromey <tom@tromey.com>
9097
9098 * psymtab.c (partial_map_expand_apply)
9099 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9100 (psym_lookup_global_symbol_language)
9101 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9102 (psym_print_stats, psym_expand_symtabs_for_function)
9103 (psym_map_symbol_filenames, psym_map_matching_symbols)
9104 (psym_expand_symtabs_matching)
9105 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9106 (maintenance_check_psymtabs): Update.
9107 * psympriv.h (struct partial_symtab) <readin_p,
9108 get_compunit_symtab>: Add objfile parameter.
9109 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9110 Likewise.
9111 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9112 get_compunit_symtab>: Likewise.
9113 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9114
45940949
TT
91152020-05-27 Tom Tromey <tom@tromey.com>
9116
9117 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9118 member.
9119 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9120 (create_cu_from_index_list)
9121 (create_signatured_type_table_from_index)
9122 (create_signatured_type_table_from_debug_names)
9123 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9124 (dwarf2_create_include_psymtab)
9125 (create_debug_type_hash_table, add_type_unit)
9126 (create_type_unit_group, read_comp_units_from_section)
9127 (dwarf2_compute_name, create_cus_hash_table)
9128 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9129 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9130 obstack.
9131 (dw2_get_real_path): Likewise. Change argument to
9132 dwarf2_per_objfile.
9133
f8c6d152
LM
91342020-05-27 Luis Machado <luis.machado@linaro.org>
9135
9136 PR tdep/26000
9137 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9138 for ldrd (immediate).
9139
e98d2e6d
PW
91402020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9141
9142 * command.h: Add comment giving the name of class_tui.
9143 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9144 create the fake command for the help for class_tui.
9145
53a47a3e
TT
91462020-05-26 Tom Tromey <tromey@adacore.com>
9147
9148 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9149 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9150 (val_atr): New function.
9151 (value_val_atr): Use it.
9152 * ada-valprint.c (print_optional_low_bound): Change low bound
9153 handling for enums.
9154 (val_print_packed_array_elements): Don't call discrete_position.
9155 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9156 discrete_position for enum types.
9157 * language.c (default_print_array_index): Change type.
9158 * language.h (struct language_defn) <la_print_array_index>: Add
9159 index_type parameter, change type of index_value.
9160 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9161 (default_print_array_index): Update.
9162 * valprint.c (maybe_print_array_index): Don't call
9163 value_from_longest. Update.
9164 (value_print_array_elements): Don't call discrete_position.
9165
0bc2354b
TT
91662020-05-26 Tom Tromey <tromey@adacore.com>
9167
9168 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9169 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9170
1218a4bf
CDA
91712020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9172
9173 PR gdb/13519
9174 * avr-tdep.c (avr_integer_to_address): Return data or code
9175 address accordingly to the second 'type' argument of the
9176 function.
9177
92651b1d
MW
91782020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9179
9180 * infcmd.c, inferior.h: (construct_inferior_arguments):
9181 Moved function from here to gdbsupport/common-inferior.{h,cc}
9182
0a4f5f8c
TT
91832020-05-23 Tom Tromey <tom@tromey.com>
9184
9185 Revert commit eca1f90c:
9186 * NEWS: Remove entry for completion styling.
9187 * completer.c (_rl_completion_prefix_display_length): Move
9188 declaration later.
9189 (gdb_fnprint): Revert.
9190 (gdb_display_match_list_1): Likewise.
9191 * cli/cli-style.c (completion_prefix_style)
9192 (completion_difference_style, completion_suffix_style): Remove.
9193 (_initialize_cli_style): Revert.
9194 * cli/cli-style.h (completion_prefix_style)
9195 (completion_difference_style, completion_suffix_style): Don't
9196 declare.
9197
e08bd6c5
PA
91982020-05-24 Pedro Alves <palves@redhat.com>
9199
9200 * symtab.c (completion_list_add_name): Return boolean indication
9201 of whether the symbol matched.
9202 (completion_list_add_symbol): Don't try to remove C++ aliases if
9203 the symbol didn't match in the first place.
9204 * symtab.h (completion_list_add_name): Return bool.
9205
ceacbf6e
SM
92062020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9207
9208 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9209 type::field.
9210
26f16254
JB
92112020-05-23 Joel Brobecker <brobecker@adacore.com>
9212
9213 GDB 9.2 released.
9214
eca1f90c
TT
92152020-05-23 Tom Tromey <tom@tromey.com>
9216
9217 * NEWS: Add entry for completion styling.
9218 * completer.c (_rl_completion_prefix_display_length): Move
9219 declaration earlier.
9220 (gdb_fnprint): Use completion_style.
9221 (gdb_display_match_list_1): Likewise.
9222 * cli/cli-style.c (completion_prefix_style)
9223 (completion_difference_style, completion_suffix_style): New
9224 globals.
9225 (_initialize_cli_style): Register new globals.
9226 * cli/cli-style.h (completion_prefix_style)
9227 (completion_difference_style, completion_suffix_style): Declare.
9228
51e2cfa2
PA
92292020-05-23 Pedro Alves <palves@redhat.com>
9230
9231 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9232 (parse_escape): Use ISDIGIT instead of isdigit.
9233 (puts_debug): Use gdb_isprint instead of isprint.
9234 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9235 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9236 ISSPACE instead of isspace.
9237 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9238 instead of isspace.
9239 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9240 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9241 instead of isxdigit and ISDIGIT instead of isdigit.
9242
80fc5e77
SM
92432020-05-22 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * gdbtypes.h (struct type) <field>: New method.
9246 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9247 or type::field.
9248
3cabb6b0
SM
92492020-05-22 Simon Marchi <simon.marchi@efficios.com>
9250
9251 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9252 (TYPE_FIELDS): Use type::fields. Change all call sites that
9253 modify the propery to use type::set_fields instead.
9254
1f704f76
SM
92552020-05-22 Simon Marchi <simon.marchi@efficios.com>
9256
9257 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9258 type::num_fields instead.
9259
5e33d5f4
SM
92602020-05-22 Simon Marchi <simon.marchi@efficios.com>
9261
9262 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9263 methods.
9264 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9265 that modify the number of fields to use type::set_num_fields
9266 instead.
9267
9392ebb3
TT
92682020-05-22 Tom Tromey <tromey@adacore.com>
9269
9270 * compile/compile-object-load.h (munmap_list_free): Don't
9271 declare.
9272
7c13f4e8
AB
92732020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9274
9275 * annotate.c (annotate_source_line): Update return type, add call
9276 to update current symtab and line.
9277 * annotate.h (annotate_source_line): Update return type, and
9278 extend header comment.
9279 * source.c (info_line_command): Check annotation_level before
9280 calling annotate_source_line.
9281 * stack.c (print_frame_info): If calling annotate_source_line
9282 returns true, then don't print any other source line information.
9283
aa370940
SM
92842020-05-21 Simon Marchi <simon.marchi@efficios.com>
9285
9286 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9287
84d53fa9
SM
92882020-05-21 Simon Marchi <simon.marchi@efficios.com>
9289
9290 * coffread.c (patch_type): Remove NULL check before xfree.
9291 * corefile.c (set_gnutarget): Likewise.
9292 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9293 * exec.c (build_section_table): Likewise.
9294 * remote.c (remote_target::pass_signals): Likewise.
9295 * utils.c (n_spaces): Likewise.
9296 * cli/cli-script.c (document_command): Likewise.
9297 * i386-windows-tdep.c (core_process_module_section): Likewise.
9298 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9299
9d428aae
SM
93002020-05-20 Simon Marchi <simon.marchi@efficios.com>
9301
9302 * symfile.c (reread_symbols): Clear objfile's section_offsets
9303 vector and section indices, re-compute them by calling
9304 sym_offsets.
9305
250106a7
TT
93062020-05-20 Tom Tromey <tromey@adacore.com>
9307
9308 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9309 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9310
9a0bacfb
TV
93112020-05-20 Tom de Vries <tdevries@suse.de>
9312
9313 PR symtab/25833
9314 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9315
7b958a48
AM
93162020-05-20 Alan Modra <amodra@gmail.com>
9317
9318 PR 25993
9319 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9320 bfd_set_filename.
9321 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9322 passed to bfd_set_filename.
9323 * symfile-mem.c (add_vsyscall_page): Likewise for string
9324 passed to symbol_file_add_from_memory.
9325 (symbol_file_add_from_memory): Make name param a const char* and
9326 don't strdup.
9327
c7e97679
AM
93282020-05-20 Alan Modra <amodra@gmail.com>
9329
9330 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9331 rather than accessing bfd->filename directly.
9332 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9333 and use bfd_section_name.
9334 * dwarf2/frame.c (decode_frame_entry): Likewise.
9335 * exec.c (exec_set_section_address): Likewise.
9336 * solib-aix.c (solib_aix_bfd_open): Likewise.
9337 * stap-probe.c (get_stap_base_address): Likewise.
9338 * symfile.c (reread_symbols): Likewise.
9339
563c591b
TT
93402020-05-19 Tom Tromey <tromey@adacore.com>
9341
9342 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9343
f408d82c
SM
93442020-05-19 Simon Marchi <simon.marchi@efficios.com>
9345
9346 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9347
98c59b52
PA
93482020-05-19 Pedro Alves <palves@redhat.com>
9349
9350 * NEWS (set exec-file-mismatch): Adjust entry.
9351 * exec.c: Include "build-id.h".
9352 (validate_exec_file): Try to match build IDs instead of filenames.
9353 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9354 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9355 and pass down 'warn_if_slow'.
9356 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9357 gdb_bfd_open_closure to pass it down.
9358 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9359
4111f652
PA
93602020-05-19 Pedro Alves <palves@redhat.com>
9361
9362 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9363 * target.c (target_fileio_open_1): Rename to target_fileio_open
9364 and make extern. Use bool.
9365 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9366 (target_fileio_read_alloc_1): Adjust.
9367 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9368 (target_fileio_open_warn_if_slow): Delete declaration.
9369
ad80db5b
PA
93702020-05-19 Pedro Alves <palves@redhat.com>
9371
9372 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9373 Adjust all callers.
9374
1d6ce4d3
YS
93752020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9376
9377 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9378 whether disp is negative.
9379
9005fbbb
SM
93802020-05-19 Simon Marchi <simon.marchi@efficios.com>
9381
9382 * symfile.h (struct symfile_segment_data)
9383 <~symfile_segment_data>: Remove.
9384 <segment_info>: Change to std::vector.
9385 * symfile.c (default_symfile_segments): Update.
9386 * elfread.c (elf_symfile_segments): Update.
9387
68b888ff
SM
93882020-05-19 Simon Marchi <simon.marchi@efficios.com>
9389
9390 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9391 <segments>: New.
9392 <segment_bases, segment_sizes>: Remove.
9393 * symfile.c (default_symfile_segments): Update.
9394 * elfread.c (elf_symfile_segments): Update.
9395 * remote.c (remote_target::get_offsets): Update.
9396 * solib-target.c (solib_target_relocate_section_addresses):
9397 Update.
9398
62982abd
SM
93992020-05-19 Simon Marchi <simon.marchi@efficios.com>
9400
9401 * symfile.h (struct symfile_segment_data): Initialize fields.
9402 <~symfile_segment_data>: Add.
9403 (symfile_segment_data_up): New.
9404 (struct sym_fns) <sym_segments>: Return a
9405 symfile_segment_data_up.
9406 (default_symfile_segments): Return a symfile_segment_data_up.
9407 (free_symfile_segment_data): Remove.
9408 (get_symfile_segment_data): Return a symfile_segment_data_up.
9409 * symfile.c (default_symfile_segments): Likewise.
9410 (get_symfile_segment_data): Likewise.
9411 (free_symfile_segment_data): Remove.
9412 (symfile_find_segment_sections): Update.
9413 * elfread.c (elf_symfile_segments): Return a
9414 symfile_segment_data_up.
9415 * remote.c (remote_target::get_offsets): Update.
9416 * solib-target.c (solib_target_relocate_section_addresses):
9417 Update.
9418 * symfile-debug.c (debug_sym_segments): Return a
9419 symfile_segment_data_up.
9420
7f204339
RO
94212020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9422
e52a0f1b
RO
9423 PR build/25981
9424 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9425 Hardcode register numbers.
9426
7f204339
RO
9427 PR build/25981
9428 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9429 procfs_find_LDT_entry): Remove.
9430 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9431 procfs_find_LDT_entry): Remove.
9432 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9433 Remove.
9434
7f32a4d5
PA
94352020-05-17 Pedro Alves <palves@redhat.com>
9436 Andrew Burgess <andrew.burgess@embecosm.com>
9437 Keno Fischer <keno@juliacomputing.com>
9438
9439 PR gdb/25741
9440 * breakpoint.c (build_target_condition_list): Update comments.
9441 (build_target_command_list): Update comments and skip matching
9442 locations.
9443 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9444 a separate function. Simplify "set breakpoint auto-hw off"
9445 handling.
9446 (insert_breakpoints): Update comment.
9447 (tracepoint_locations_match): New parameter. For breakpoints,
9448 compare location types too, if the caller wants to.
9449 (handle_automatic_hardware_breakpoints): New functions.
9450 (bp_location_is_less_than): Also sort by location type and
9451 hardware breakpoint length.
9452 (update_global_location_list): Handle "set breakpoint auto-hw on"
9453 here.
9454 (update_breakpoint_locations): Ask breakpoint_locations_match to
9455 ignore location types.
9456
7d93a1e0
SM
94572020-05-16 Simon Marchi <simon.marchi@efficios.com>
9458
9459 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9460 type::name instead.
9461
d0e39ea2
SM
94622020-05-16 Simon Marchi <simon.marchi@efficios.com>
9463
9464 * gdbtypes.h (struct type) <name, set_name>: New methods.
9465 (TYPE_CODE): Use type::name. Change all call sites used to set
9466 the name to use type::set_name instead.
9467
2dab0c7b
TT
94682020-05-16 Tom Tromey <tom@tromey.com>
9469
9470 * top.c (quit_force): Update.
9471 * infrun.c (handle_no_resumed): Update.
9472 * top.h (all_uis): New function.
9473 (ALL_UIS): Remove.
9474
59f7bd8d
SM
94752020-05-16 Simon Marchi <simon.marchi@efficios.com>
9476
9477 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9478
9bf058f0
PA
94792020-05-16 Pedro Alves <palves@redhat.com>
9480
9481 * ia64-linux-nat.c
9482 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9483 Declare method.
9484 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9485
8f86ae1a
SM
94862020-05-15 Simon Marchi <simon.marchi@efficios.com>
9487
9488 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9489 (sparc64_adi_info): Likewise.
9490
d6bc0792
TT
94912020-05-15 Tom Tromey <tom@tromey.com>
9492
9493 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9494 block_objfile.
9495 (lookup_objfile_from_block): Remove.
9496 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9497 (lookup_global_symbol): Use block_objfile.
9498 * symtab.h (lookup_objfile_from_block): Don't declare.
9499 * printcmd.c (clear_dangling_display_expressions): Use
9500 block_objfile.
9501 * parse.c (operator_check_standard): Use block_objfile.
9502
8c14c3a3
TT
95032020-05-15 Tom Tromey <tom@tromey.com>
9504
9505 * language.c (language_alloc_type_symbol): Set
9506 SYMBOL_SECTION.
9507 * symtab.c (initialize_objfile_symbol): Remove.
9508 (allocate_symbol): Remove.
9509 (allocate_template_symbol): Remove.
9510 * dwarf2/read.c (fixup_go_packaging): Use "new".
9511 (new_symbol): Use "new".
9512 (read_variable): Don't call initialize_objfile_symbol. Use
9513 "new".
9514 (read_func_scope): Use "new".
9515 * xcoffread.c (process_xcoff_symbol): Don't call
9516 initialize_objfile_symbol.
9517 (SYMBOL_DUP): Remove.
9518 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9519 "new".
9520 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9521 (allocate_template_symbol): Don't declare.
9522 (struct symbol): Add copy constructor. Change defaults.
9523 * jit.c (finalize_symtab): Use "new".
9524 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9525 Use "new".
9526 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9527 (common_block_end): Use "new".
9528 * mdebugread.c (parse_symbol): Use "new".
9529 (new_symbol): Likewise.
9530
5b4a1a8d
PW
95312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9532
9533 * NEWS: Mention changes to help and apropos.
9534
57b4f16e
PW
95352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9536
9537 * command.h (enum command_class): Improve comments, document
9538 that class_alias is for user-defined aliases, give the class
9539 name for each class, remove unused class_xdb.
9540 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9541 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9542 by a precise class.
9543 * infcmd.c (_initialize_infcmd): Likewise.
9544 * reverse.c (_initialize_reverse): Likewise.
9545 * stack.c (_initialize_stack): Likewise.
9546 * symfile.c (_initialize_symfile): Likewise.
9547 * tracepoint.c (_initialize_tracepoint): Likewise.
9548
7c05caf7
PW
95492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9550
9551 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9552 when their aliased command is traversed.
9553 (help_cmd): Add fput_command_names_styled call to
9554 output command name and aliases when command has an alias.
9555
3b3aaacb
PW
95562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9557
9558 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9559 * cli/cli-decode.c (help_cmd_list): Declare as static,
9560 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9561 a command together with the command.
9562 (fput_command_name_styled, fput_command_names_styled): New functions.
9563 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9564 fput_command_name_styled.
9565 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9566 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9567
7aa1b46f
PW
95682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9569
9570 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9571 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9572 * command.h (cmd_show_list): Likewise.
9573 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9574 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9575
89bcba74
PW
95762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9577
9578 * unittests/command-def-selftests.c (traverse_command_structure):
9579 Verify all commands of a list have the same prefix command and
9580 that only the top cmdlist commands have a null prefix.
9581
3f4d92eb
PW
95822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9583
9584 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9585 as prefix, not one of its aliases.
9586 (set_cmd_prefix): Remove.
9587 (do_add_cmd): Centralize the setting of the prefix of a command, when
9588 command is defined after its full chain of prefix commands.
9589 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9590 (add_setshow_cmd_full): Likewise.
9591 (update_prefix_field_of_prefixed_commands): New function.
9592 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9593 update_prefix_field_of_prefixed_commands.
9594 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9595 addresses of remote_set_cmdlist and remote_show_cmdlist given
9596 as argument, not the address of an argument.
9597 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9598 * gdb/remote.c (_initialize_remote): Likewise.
9599
0605465f
PW
96002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9601
9602 * cli/cli-cmds.c (alias_command): Check for an existing alias
9603 using lookup_cmd_composition, as valid_command_p is too strict
9604 and forbids aliases that are the prefix of an existing alias
9605 or command.
9606 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9607 command is properly recognised as a valid command.
9608
58e6ac70
PW
96092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9610
9611 * unittests/help-doc-selftests.c: Rename to
9612 unittests/command-def-selftests.c
9613 * unittests/command-def-selftests.c (help_doc_tests): Update some
9614 comments.
9615 (command_structure_tests, traverse_command_structure): New namespace
9616 and function.
9617 (command_structure_invariants_tests): New function.
9618 (_initialize_command_def_selftests) Renamed from
9619 _initialize_help_doc_selftests, register command_structure_invariants
9620 selftest.
9621
a7b9ceb8
PW
96222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9623
9624 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9625 an alias of 'show'.
9626
b2188a06
JB
96272020-05-15 Joel Brobecker <brobecker@adacore.com>
9628
9629 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9630 ada_is_fixed_point_type. Update all callers.
9631 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9632 all callers.
9633 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9634 Update all callers.
9635 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9636 print_fixed_point_type. Update all callers.
9637 * ada-valprint.c (ada_value_print_num): Replace call to
9638 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9639
a51951c2
KB
96402020-05-14 Kevin Buettner <kevinb@redhat.com>
9641
9642 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9643 processors.
9644 (cpu_supports_bts): Add CV_AMD case.
9645
29d6859f
LM
96462020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9647 Simon Marchi <simon.marchi@efficios.com>
9648
9649 * infrun.c (stop_all_threads): Collect multiple wait events at
9650 each pass.
9651
78134374
SM
96522020-05-14 Simon Marchi <simon.marchi@efficios.com>
9653
9654 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9655 type::code instead.
9656
67607e24
SM
96572020-05-14 Simon Marchi <simon.marchi@efficios.com>
9658
9659 * gdbtypes.h (struct type) <code, set_code>: New methods.
9660 (TYPE_CODE): Use type::code. Change all call sites used to set
9661 the code to use type::set_code instead.
9662
a05575d3
TBA
96632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9664 Tom de Vries <tdevries@suse.de>
9665 Pedro Alves <palves@redhat.com>
9666
9667 PR threads/25478
9668 * infrun.c (stop_all_threads): Do NOT ignore
9669 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9670 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9671 received.
9672 (handle_no_resumed): Remove code handling a live inferior with no
9673 threads.
9674 * remote.c (has_single_non_exited_thread): New.
9675 (remote_target::update_thread_list): Do not delete a thread if is
9676 the last thread of the process.
9677 * thread.c (thread_select): Call delete_exited_threads instead of
9678 prune_threads.
9679
6ad82919
TBA
96802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9681
9682 * infrun.c (stop_all_threads): Enable/disable thread events of all
9683 targets. Move a debug message denoting the end of the function
9684 into the SCOPED_EXIT block.
9685
d890404b
TBA
96862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9687
9688 * process-stratum-target.h: Include <set>.
9689 (all_non_exited_process_targets, switch_to_target_no_thread): New
9690 function declarations.
9691 * process-stratum-target.c (all_non_exited_process_targets)
9692 (switch_to_target_no_thread): New function implementations.
9693
293b3ebc
TBA
96942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9695
9696 * infrun.c (handle_inferior_event): Extract out a piece of code
9697 into...
9698 (mark_non_executing_threads): ...this new function.
9699
7ca9b62a
TBA
97002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9701
9702 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9703 use.
9704
fc75c28b
TBA
97052020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9706
9707 * regcache.c (regcache_read_pc_protected): New function
9708 implementation that returns 0 if the PC cannot read via
9709 'regcache_read_pc'.
9710 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9711 instead of 'regcache_read_pc'.
9712 (keep_going_pass_signal): Ditto.
9713
a89febbd
TT
97142020-05-13 Tom Tromey <tromey@adacore.com>
9715
9716 * ada-lang.c (align_value): Remove.
9717 (ada_template_to_fixed_record_type_1): Use align_up.
9718
f7e23710
TBA
97192020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9720
9721 * async-event.c: Update the copyright year.
9722 * async-event.h: Update the copyright year.
9723
02ff80c2
SM
97242020-05-12 Simon Marchi <simon.marchi@efficios.com>
9725
9726 * objfiles.h (is_addr_in_objfile,
9727 shared_objfile_contains_address_p): Return bool.
9728 * objfile.c (is_addr_in_objfile,
9729 shared_objfile_contains_address_p): Return bool.
9730
4fd6c7e8
TT
97312020-05-11 Tom Tromey <tromey@adacore.com>
9732
9733 * cli/cli-cmds.c (info_command): Restore.
9734 (_initialize_cli_cmds): Use add_prefix_command for "info".
9735 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9736
5eb68a39
TT
97372020-05-11 Tom Tromey <tromey@adacore.com>
9738
9739 * ada-lang.c (ada_value_primitive_field): Now public.
9740 * ada-lang.h (ada_value_primitive_field): Declare.
9741 * ada-valprint.c (print_field_values): Use
9742 ada_value_primitive_field for wrapper fields.
9743
7666722f
TV
97442020-05-11 Tom de Vries <tdevries@suse.de>
9745
9746 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9747 MODULE_DOMAIN.
9748
3ee6bb11
TV
97492020-05-11 Tom de Vries <tdevries@suse.de>
9750
9751 PR symtab/25941
9752 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9753 with length 0, if not gdb-produced.
9754 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9755
43434996
TV
97562020-05-09 Tom de Vries <tdevries@suse.de>
9757
9758 PR gdb/25955
9759 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9760 calculation.
9761
2f78cffc
TT
97622020-05-09 Tom Tromey <tom@tromey.com>
9763
9764 * top.c (server_command): Now bool.
9765 * top.h (server_command): Now bool.
9766
4f7bc5ed
TT
97672020-05-08 Tom Tromey <tromey@adacore.com>
9768
9769 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9770 already being processed.
9771
8be4b118
TT
97722020-05-08 Tom Tromey <tom@tromey.com>
9773
9774 * printcmd.c (struct display) <next>: Remove.
9775 <display>: New constructor.
9776 <exp_string>: Now a std::string.
9777 <enabled_p>: Now a bool.
9778 (display_number): Move definition earlier.
9779 (displays): Rename from display_chain. Now a std::vector.
9780 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9781 (display_command): Update.
9782 (do_one_display, disable_display)
9783 (enable_disable_display_command, do_enable_disable_display):
9784 Update.
9785 (free_display): Remove.
9786 (clear_displays): Rewrite.
9787 (delete_display): Update.
9788 (map_display_numbers): Use function_view. Remove "data"
9789 parameter. Update.
9790 (do_delete_display): Remove.
9791 (undisplay_command): Update.
9792 (do_one_display, do_displays, disable_display)
9793 (info_display_command): Update.
9794 (do_enable_disable_display): Remove.
9795 (enable_disable_display_command)
9796 (clear_dangling_display_expressions): Update.
9797
94c93c35
TT
97982020-05-08 Tom Tromey <tom@tromey.com>
9799
9800 * symtab.c (set_symbol_cache_size)
9801 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9802 (maintenance_print_symbol_cache_statistics): Update.
9803 * symmisc.c (print_symbol_bcache_statistics)
9804 (print_objfile_statistics, maintenance_print_objfiles)
9805 (maintenance_info_symtabs, maintenance_check_symtabs)
9806 (maintenance_expand_symtabs, maintenance_info_line_tables):
9807 Update.
9808 * symfile-debug.c (set_debug_symfile): Update.
9809 * source.c (forget_cached_source_info): Update.
9810 * python/python.c (gdbpy_progspaces): Update.
9811 * psymtab.c (maintenance_info_psymtabs): Update.
9812 * probe.c (parse_probes): Update.
9813 * linespec.c (iterate_over_all_matching_symtabs)
9814 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9815 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9816 * exec.c (exec_target::close): Update.
9817 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9818 * breakpoint.c (print_one_breakpoint_location)
9819 (create_longjmp_master_breakpoint)
9820 (create_std_terminate_master_breakpoint): Update.
9821 * progspace.c (program_spaces): Now a std::vector.
9822 (maybe_new_address_space): Update.
9823 (add_program_space): Remove.
9824 (program_space::program_space): Update.
9825 (remove_program_space): Update.
9826 (number_of_program_spaces): Remove.
9827 (print_program_space, update_address_spaces): Update.
9828 * progspace.h (program_spaces): Change type.
9829 (ALL_PSPACES): Remove.
9830 (number_of_program_spaces): Don't declare.
9831 (struct program_space) <next>: Remove.
9832
a1fd1ac9
TT
98332020-05-08 Tom Tromey <tom@tromey.com>
9834
9835 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9836 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9837 (enable_break): Update.
9838 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9839 (frv_fdpic_find_canonical_descriptor): Update.
9840 (frv_fetch_objfile_link_map): Update.
9841 * progspace.c (program_space::free_all_objfiles): Update.
9842 (program_space::solibs): New method.
9843 * progspace.h (struct program_space) <solibs>: New method.
9844 * solist.h (master_so_list): Don't declare.
9845 (ALL_SO_LIBS): Remove.
9846 * solib.h (so_list_head): Remove.
9847 (update_solib_list): Update comment.
9848 * solib.c (master_so_list): Remove.
9849 (solib_used, update_solib_list, solib_add)
9850 (info_sharedlibrary_command, clear_solib)
9851 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9852
38eae084
TT
98532020-05-08 Tom Tromey <tom@tromey.com>
9854
9855 * extension.c (extension_languages): Now a std::array.
9856 (ALL_EXTENSION_LANGUAGES): Remove.
9857 (get_ext_lang_defn, get_ext_lang_of_file)
9858 (eval_ext_lang_from_control_command): Update.
9859 (finish_ext_lang_initialization)
9860 (auto_load_ext_lang_scripts_for_objfile)
9861 (ext_lang_type_printers::ext_lang_type_printers)
9862 (apply_ext_lang_type_printers)
9863 (ext_lang_type_printers::~ext_lang_type_printers)
9864 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9865 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9866 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9867 (get_matching_xmethod_workers, ext_lang_colorize)
9868 (ext_lang_before_prompt): Update.
9869 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9870
596dc4ad
TT
98712020-05-08 Tom Tromey <tom@tromey.com>
9872
9873 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9874 overload.
9875 <swap_string, m_string>: Remove.
9876 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9877 Update.
9878 * stabsread.c (define_symbol, read_type): Update.
9879 * linespec.c (find_linespec_symbols): Update.
9880 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9881 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9882 * dbxread.c (read_dbx_symtab): Update.
9883 * cp-support.h (cp_canonicalize_string_full)
9884 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9885 Return unique_xmalloc_ptr.
9886 * cp-support.c (inspect_type): Update.
9887 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9888 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9889 Likewise.
9890 * c-typeprint.c (print_name_maybe_canonical): Update.
9891 * break-catch-throw.c (check_status_exception_catchpoint):
9892 Update.
9893
bf4cb9be
TV
98942020-05-08 Tom de Vries <tdevries@suse.de>
9895
9896 * infrun.c (follow_fork): Copy current_line and current_symtab to
9897 child thread.
9898
a1b68f28
SM
98992020-05-07 Simon Marchi <simon.marchi@efficios.com>
9900
9901 * async-event.c (struct async_signal_handler, struct
9902 async_event_handler): Reformat, remove typedef.
9903
98d48915
SM
99042020-05-07 Simon Marchi <simon.marchi@efficios.com>
9905
9906 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9907 access thistype->main_type->dyn_prop_list directly.
9908
7aa91313
SM
99092020-05-07 Simon Marchi <simon.marchi@efficios.com>
9910
9911 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9912 (remove_dyn_prop): Remove. Update all users to use
9913 type::remove_dyn_prop.
9914 * gdbtypes.c (remove_dyn_prop): Rename to...
9915 (type::remove_dyn_prop): ... this.
9916
5c54719c
SM
99172020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9918
9919 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9920 (add_dyn_prop): Remove. Update all users to use
9921 type::add_dyn_prop.
9922 * gdbtypes.c (add_dyn_prop): Rename to...
9923 (type::add_dyn_prop): ... this.
9924
24e99c6c
SM
99252020-05-07 Simon Marchi <simon.marchi@efficios.com>
9926
9927 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9928 (get_dyn_prop): Remove. Update all users to use
9929 type::dyn_prop.
9930 * gdbtypes.c (get_dyn_prop): Rename to...
9931 (type::dyn_prop): ... this.
9932
0d4bf016
SM
99332020-05-06 Simon Marchi <simon.marchi@efficios.com>
9934
9935 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9936
ac4a4f1c
SM
99372020-05-06 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9940 instruction, skip it if it's there.
9941
a3bbacc1
SM
99422020-05-05 Simon Marchi <simon.marchi@efficios.com>
9943
9944 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9945
c3236f84
SM
99462020-05-04 Simon Marchi <simon.marchi@efficios.com>
9947
9948 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9949 * gdbtypes.c (recursive_dump_type): Remove use of
9950 TYPE_INCOMPLETE.
9951
3b6acaee
TT
99522020-05-03 Tom Tromey <tom@tromey.com>
9953
9954 * breakpoint.c (catch_command, tcatch_command): Remove.
9955 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9956 add_show_prefix_cmd.
9957 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9958 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9959 Remove.
9960 (add_internal_problem_command): Use add_basic_prefix_cmd,
9961 add_show_prefix_cmd.
9962 * mips-tdep.c (set_mipsfpu_command): Remove.
9963 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9964 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9965 (_initialize_index_cache): Use add_basic_prefix_cmd.
9966 * memattr.c (dummy_cmd): Remove.
9967 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9968 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9969 (_initialize_tui_win): Use add_basic_prefix_cmd,
9970 add_show_prefix_cmd.
9971 * cli/cli-logging.c (set_logging_command): Remove.
9972 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9973 add_show_prefix_cmd.
9974 (show_logging_command): Remove.
9975 * target.c (target_command): Remove.
9976 (add_target): Use add_basic_prefix_cmd.
9977
a51119cd
HD
99782020-05-02 Hannes Domani <ssbssa@yahoo.de>
9979
9980 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9981
652fc23a 99822020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9983
652fc23a
PW
9984 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9985 info_command.
9986
117539e6
KR
99872020-04-30 Kamil Rytarowski <n54@gmx.com>
9988
9989 * nbsd-nat.c (nbsd_enable_proc_events)
9990 (nbsd_nat_target::post_startup_inferior): Add.
9991 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9992 (nbsd_nat_target::update_thread_list): Rewrite.
9993 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9994 "PTRACE_LWP_CREATE".
9995 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9996
102e38eb 99972020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9998
102e38eb
PW
9999 * stack.c (_initialize_stack): Remove duplicated creation
10000 of "frame" command and "f" alias.
10001
ee9d1e5f
HD
100022020-04-30 Hannes Domani <ssbssa@yahoo.de>
10003
10004 PR gdb/18706
10005 * gdbtypes.c (check_typedef): Calculate size of array of
10006 stubbed type.
10007
627c7fb8
HD
100082020-04-30 Hannes Domani <ssbssa@yahoo.de>
10009
10010 PR gdb/15559
10011 * i386-tdep.c (i386_push_dummy_call): Call
10012 i386_thiscall_push_dummy_call.
10013 (i386_thiscall_push_dummy_call): New function.
10014 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10015 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10016 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10017
ffc2844e
SM
100182020-04-29 Simon Marchi <simon.marchi@efficios.com>
10019
10020 * gdbarch.sh (do_read): Add shellcheck disable directive for
10021 warning SC2162.
10022
1207375d
SM
100232020-04-29 Simon Marchi <simon.marchi@efficios.com>
10024
10025 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10026 "referenced but not assigned" warning.
10027
9fdb2916
SM
100282020-04-29 Simon Marchi <simon.marchi@efficios.com>
10029
10030 * gdbarch.sh: Remove code that sets fallbackdefault.
10031
759cea5e
SM
100322020-04-29 Simon Marchi <simon.marchi@efficios.com>
10033
10034 * gdbarch.sh: Use shell operators && and || instead of
10035 -a and -o.
10036
cb02ab24
SM
100372020-04-29 Simon Marchi <simon.marchi@efficios.com>
10038
10039 * gdbarch.sh: Use $(...) instead of `...`.
10040
a6fc5ffc
SM
100412020-04-29 Simon Marchi <simon.marchi@efficios.com>
10042
10043 * gdbarch.sh: Use double quotes around variables.
10044
8d113d13
SM
100452020-04-29 Simon Marchi <simon.marchi@efficios.com>
10046
10047 * gdbarch.sh: Use %s with printf, instead of variables in the
10048 format string.
10049
ed6acedd
TT
100502020-04-29 Tom Tromey <tromey@adacore.com>
10051
10052 PR ada/25875:
10053 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10054 type fields here.
10055 (read_enumeration_type): Call
10056 update_enumeration_type_from_children later. Update comments.
10057 (process_enumeration_scope): Don't create type fields.
10058
b68b1b58
KR
100592020-04-29 Kamil Rytarowski <n54@gmx.com>
10060
10061 * nbsd-tdep.c: Include "xml-syscall.h".
10062 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10063
f94b2e03
KR
100642020-04-29 Kamil Rytarowski <n54@gmx.com>
10065
10066 * nbsd-nat.c: Include "sys/wait.h".
10067 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10068 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10069 (nbsd_nat_target::remove_exec_catchpoint)
10070 (nbsd_nat_target::set_syscall_catchpoint): Add.
10071 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10072 (nbsd_nat_target::insert_exec_catchpoint)
10073 (nbsd_nat_target::remove_exec_catchpoint)
10074 (nbsd_nat_target::set_syscall_catchpoint): Add.
10075 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10076 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10077 `nbsd_get_syscall_number'.
10078
fc49bc72
TT
100792020-04-29 Tom Tromey <tom@tromey.com>
10080
10081 * stack.c (print_block_frame_labels): Remove.
10082
d642b692
HD
100832020-04-29 Hannes Domani <ssbssa@yahoo.de>
10084
10085 PR gdb/17320
10086 * ada-valprint.c (val_print_packed_array_elements): Move array
10087 end bracket to new line.
10088 (ada_val_print_string): Remove extra spaces before first array
10089 element.
10090 * c-valprint.c (c_value_print_array): Likewise.
10091 * m2-valprint.c (m2_print_array_contents): Likewise.
10092 (m2_value_print_inner): Likewise.
10093 * p-valprint.c (pascal_value_print_inner): Likewise.
10094 * valprint.c (generic_val_print_array): Likewise.
10095 (value_print_array_elements): Move first array element and array
10096 end bracket to new line.
10097
ea90f227
TV
100982020-04-29 Tom de Vries <tdevries@suse.de>
10099
10100 PR symtab/25889
10101 * linespec.c (find_method): Fix ix calculation.
10102
4498ef4f
KR
101032020-04-28 Kamil Rytarowski <n54@gmx.com>
10104
10105 * syscalls/update-netbsd.sh: New file.
10106 * syscalls/netbsd.xml: Regenerate.
10107 * data-directory/Makefile.in: Register `netbsd.xml' in
10108 `SYSCALLS_FILES'.
10109
a55e30b5
SM
101102020-04-28 Simon Marchi <simon.marchi@efficios.com>
10111
10112 * syscalls/update-freebsd.sh: Add double quotes.
10113
2b2fbab8
TT
101142020-04-28 Tom Tromey <tom@tromey.com>
10115
10116 * NEWS: Update.
10117 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10118 (cmdpy_init): Allow class_tui.
10119
a65189c9
TV
101202020-04-28 Mark Williams <mark@myosotissp.com>
10121
10122 PR gdb/24480
10123 * dwarf2read.c: Add missing assingments to list_in_scope when
10124 start_symtab was already called.
10125
1b95cdb7
SM
101262020-04-28 Simon Marchi <simon.marchi@efficios.com>
10127
10128 PR gdb/25881
10129 * dwarf2/read.c (offset_map_type): Use
10130 gdb:hash_enum<sect_offset> as hash function.
10131
15cd93d0
TV
101322020-04-28 Tom de Vries <tdevries@suse.de>
10133
10134 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10135 with DW_AT_signature.
10136
1eb39914
SM
101372020-04-27 Simon Marchi <simon.marchi@efficios.com>
10138
10139 * configure.ac: Remove check for fs_base/gs_base in
10140 user_regs_struct.
10141 * configure: Re-generate.
10142 * config.in: Re-generate.
10143 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10144 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10145 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10146
991a3e2e
LM
101472020-04-27 Luis Machado <luis.machado@linaro.org>
10148
10149 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10150 problematic inline frame unwinding situation.
10151 * frame.c (frame_id_computed_p): New function.
10152 * frame.h (frame_id_computed_p): New prototype.
10153
361ba0e8
TT
101542020-04-26 Tom Tromey <tom@tromey.com>
10155
10156 * command.h (enum command_class) <class_pseudo>: Remove.
10157
bc3609fd
PW
101582020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10159
10160 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10161 and whitespace.
10162
b9771db7
KR
101632020-04-25 Kamil Rytarowski <n54@gmx.com>
10164
ec16513e
SM
10165 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10166 `PT_GET_PROCESS_STATE' block.
b9771db7 10167
7151c1af
TT
101682020-04-24 Tom Tromey <tom@tromey.com>
10169
10170 * symtab.h (symbol_get_demangled_name): Don't declare.
10171 * symtab.c (symbol_get_demangled_name): Remove.
10172 (general_symbol_info::natural_name)
10173 (general_symbol_info::demangled_name): Update.
10174
906bb4c5
TT
101752020-04-24 Tom Tromey <tom@tromey.com>
10176
10177 PR rust/25025:
10178 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10179
bcfe6157
TT
101802020-04-24 Tom Tromey <tom@tromey.com>
10181
10182 PR symtab/12707:
10183 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10184 exists.
10185 (new_symbol): Likewise.
10186 * compile/compile-object-load.c (get_out_value_type): Use
10187 symbol_matches_search_name.
10188
f049a313
TT
101892020-04-24 Tom Tromey <tom@tromey.com>
10190
10191 * dwarf2/read.c (add_partial_symbol): Do not call
10192 compute_and_set_names.
10193
76e288d1
TT
101942020-04-24 Tom Tromey <tom@tromey.com>
10195
10196 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10197 overload.
10198
2467f4f6
TT
101992020-04-24 Tom Tromey <tom@tromey.com>
10200
10201 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10202 (add_psymbol_to_list): New overload. Make old overload call new
10203 one.
10204 * psympriv.h (add_psymbol_to_list): New overload.
10205
e61108c9
TT
102062020-04-24 Tom Tromey <tom@tromey.com>
10207
10208 * dwarf2/read.c (partial_die_info::read) <case
10209 DW_AT_linkage_name>: Use value_as_string.
10210 (dwarf2_string_attr): Use value_as_string.
10211 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10212 method.
10213 * dwarf2/attribute.c (attribute::value_as_string): New method.
10214
8c87a452
TT
102152020-04-24 Tom Tromey <tom@tromey.com>
10216
10217 * symtab.c (general_symbol_info::natural_name)
10218 (general_symbol_info::demangled_name): Check for language_rust.
10219
787de330
TT
102202020-04-24 Tom Tromey <tom@tromey.com>
10221
10222 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10223 (dwarf2_physname): ... from here.
10224 (partial_die_info::read): Add Rust "{" hack.
10225
ff985671
TT
102262020-04-24 Tom Tromey <tom@tromey.com>
10227
10228 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10229 method.
10230 (symbol_set_demangled_name): Don't declare.
10231 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10232 symbol_set_demangled_name.
10233 (general_symbol_info::set_language)
10234 (general_symbol_info::compute_and_set_names): Update.
10235 * minsyms.c (minimal_symbol_reader::install): Update.
10236 * dwarf2/read.c (new_symbol): Update.
10237
1acda803
TT
102382020-04-24 Tom Tromey <tromey@adacore.com>
10239
10240 PR python/23662:
10241 * python/py-type.c (convert_field): Handle
10242 FIELD_LOC_KIND_DWARF_BLOCK.
10243 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10244 (typy_get_dynamic): Nw function.
10245 (type_object_getset): Add "dynamic".
10246 * NEWS: Add entry.
10247
d656f129
TT
102482020-04-24 Tom Tromey <tromey@adacore.com>
10249
10250 * ada-typeprint.c (print_choices, print_variant_part)
10251 (print_record_field_types_dynamic): New functions.
10252 (print_record_field_types): Use print_record_field_types_dynamic.
10253
7d79de9a
TT
102542020-04-24 Tom Tromey <tromey@adacore.com>
10255
10256 * dwarf2/read.c (handle_data_member_location): New overload.
10257 (dwarf2_add_field): Use it.
10258 (decode_locdesc): Add "computed" parameter. Update comment.
10259 * gdbtypes.c (is_dynamic_type_internal): Also look for
10260 FIELD_LOC_KIND_DWARF_BLOCK.
10261 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10262 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10263 virtual base classes.
10264 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10265 FIELD_LOC_KIND_DWARF_BLOCK.
10266
f8e89861
TT
102672020-04-24 Tom Tromey <tromey@adacore.com>
10268
10269 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10270 * gdbtypes.c (is_dynamic_type_internal): Check
10271 TYPE_HAS_DYNAMIC_LENGTH.
10272 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10273 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10274 New macros.
10275 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10276 constant.
10277
9c6a1327
TT
102782020-04-24 Tom Tromey <tromey@adacore.com>
10279
10280 * dwarf2/read.c (struct variant_field): Rewrite.
10281 (struct variant_part_builder): New.
10282 (struct nextfield): Remove "variant" field. Add "offset".
10283 (struct field_info): Add "current_variant_part" and
10284 "variant_parts".
10285 (alloc_discriminant_info): Remove.
10286 (alloc_rust_variant): New function.
10287 (quirk_rust_enum): Update.
10288 (dwarf2_add_field): Set "offset" member. Don't handle
10289 DW_TAG_variant_part.
10290 (offset_map_type): New typedef.
10291 (convert_variant_range, create_one_variant)
10292 (create_one_variant_part, create_variant_parts)
10293 (add_variant_property): New functions.
10294 (dwarf2_attach_fields_to_type): Call add_variant_property.
10295 (read_structure_type): Don't handle DW_TAG_variant_part.
10296 (handle_variant_part, handle_variant): New functions.
10297 (handle_struct_member_die): Use them.
10298 (process_structure_scope): Don't handle variant parts.
10299 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10300 (struct discriminant_info): Remove.
10301 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10302 (struct main_type) <flag_discriminated_union>: Remove.
10303 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10304 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10305 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10306 Update.
10307 * valops.c (value_union_variant): Remove.
10308 * value.h (value_union_variant): Don't declare.
10309
b249d2c2
TT
103102020-04-24 Tom Tromey <tromey@adacore.com>
10311
10312 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10313 (ada_value_primitive_packed_val): Update.
10314 * ada-valprint.c (ada_value_print_1): Update.
10315 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10316 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10317 just an address. Use evaluate_for_locexpr_baton.
10318 (dwarf2_evaluate_property): Update.
10319 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10320 array_view.
10321 * findvar.c (default_read_var_value): Update.
10322 * gdbtypes.c (compute_variant_fields_inner)
10323 (resolve_dynamic_type_internal): Update.
10324 (resolve_dynamic_type): Change type of valaddr parameter.
10325 * gdbtypes.h (resolve_dynamic_type): Update.
10326 * valarith.c (value_subscripted_rvalue): Update.
10327 * value.c (value_from_contents_and_address): Update.
10328
61122aa9
TT
103292020-04-24 Tom Tromey <tromey@adacore.com>
10330
10331 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10332 "push_initial_value" parameter.
10333 (dwarf2_evaluate_property): Likewise.
10334 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10335
ef83a141
TT
103362020-04-24 Tom Tromey <tromey@adacore.com>
10337
10338 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10339 (variant::matches, compute_variant_fields_recurse)
10340 (compute_variant_fields_inner, compute_variant_fields): New
10341 functions.
10342 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10343 Use resolved_type after type is made.
10344 (operator==): Add new cases.
10345 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10346 (struct discriminant_range, struct variant, struct variant_part):
10347 New.
10348 (union dynamic_prop_data) <variant_parts, original_type>: New
10349 members.
10350 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10351 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10352 constants.
10353 * value.c (unpack_bits_as_long): Now public.
10354 * value.h (unpack_bits_as_long): Declare.
10355
675127ec
TT
103562020-04-24 Tom Tromey <tromey@adacore.com>
10357
10358 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10359 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10360
9852ceef
HD
103612020-04-24 Hannes Domani <ssbssa@yahoo.de>
10362
10363 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10364
7632c6ce
KR
103652020-04-24 Kamil Rytarowski <n54@gmx.com>
10366
10367 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10368 (remove_fork_catchpoint, post_startup_inferior)
10369 (post_attach): Move...
10370 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10371 (remove_fork_catchpoint, post_startup_inferior)
10372 (post_attach): ...here.
10373 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10374 (remove_fork_catchpoint, post_startup_inferior)
10375 (post_attach): Move...
10376 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10377 (remove_fork_catchpoint, post_startup_inferior)
10378 (post_attach): ...here.
10379
7be2bb4f
TT
103802020-04-24 Tom Tromey <tromey@adacore.com>
10381
10382 * nat/windows-nat.h (struct windows_thread_info)
10383 <pc_adjusted>: New member.
10384 * windows-nat.c (windows_fetch_one_register): Check
10385 pc_adjusted.
10386 (windows_nat_target::get_windows_debug_event)
10387 (windows_nat_target::wait): Set pc_adjusted.
10388
f80cb3b4
TV
103892020-04-24 Tom de Vries <tdevries@suse.de>
10390
10391 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10392 Run gdb-add-index inside temp dir.
10393
29514b87
TT
103942020-04-23 Tom Tromey <tromey@adacore.com>
10395
10396 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10397 in loop.
10398
5939967b
LM
103992020-04-23 Luis Machado <luis.machado@linaro.org>
10400
10401 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10402 get_frame_register instead of gdbarch_unwind_pc.
10403
70bc38f5
TV
104042020-04-23 Tom de Vries <tdevries@suse.de>
10405
10406 * symtab.c (lookup_global_symbol): Prefer def over decl.
10407
de82891c
TV
104082020-04-23 Tom de Vries <tdevries@suse.de>
10409
10410 PR symtab/25807
10411 * block.c (best_symbol, better_symbol): Promote to external.
10412 * block.h (best_symbol, better_symbol): Declare.
10413 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10414 decl.
10415
ecc6c606
TT
104162020-04-23 Tom Tromey <tromey@adacore.com>
10417
10418 PR ada/25837:
10419 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10420 "const char *", not a "const std::string &".
10421 <name_and_matcher::operator==>: Update.
10422 * unittests/lookup_name_info-selftests.c: Change type of
10423 "result".
10424
740480b8
TT
104252020-04-23 Tom Tromey <tom@tromey.com>
10426
10427 * inferior.h (iterate_over_inferiors): Don't declare.
10428 * inferior.c (iterate_over_inferiors): Remove.
10429 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10430 Remove.
10431 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10432 use iterate_over_inferiors.
10433 (darwin_resume_inferior_it)
10434 (struct resume_inferior_threads_param)
10435 (darwin_resume_inferior_threads_it): Remove.
10436 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10437
ae3ab1f0
TV
104382020-04-23 Tom de Vries <tdevries@suse.de>
10439
10440 * blockframe.c (find_pc_partial_function): Use
10441 find_pc_sect_compunit_symtab rather than
10442 objfile->sf->qf->find_pc_sect_compunit_symtab.
10443
317d2668
TV
104442020-04-22 Tom de Vries <tdevries@suse.de>
10445
10446 PR symtab/25764
10447 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10448 in psymtabs.
10449
eea9e357
TV
104502020-04-22 Tom de Vries <tdevries@suse.de>
10451
10452 PR symtab/25801
10453 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10454 symtabs.
10455
3d5afab3
TV
104562020-04-22 Tom de Vries <tdevries@suse.de>
10457
10458 PR symtab/25700
10459 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10460 CU if already created.
10461
d43b7a2d
TBA
104622020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10463
10464 * infrun.c (displaced_step_fixup): Switch to the event_thread
10465 before calling displaced_step_restore, not after.
10466
d89edf9b
MM
104672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10468
10469 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10470 its inferior is not recorded by us.
10471 (record_btrace_target_open): Replace call to
10472 all_non_exited_threads () with call to current_inferior
10473 ()->non_exited_threads ().
10474 (record_btrace_target::stop_recording): Likewise.
10475 (record_btrace_target::close): Likewise.
10476 (record_btrace_target::wait): Likewise.
10477 (record_btrace_target::record_stop_replaying): Likewise.
10478
5897fd49
MM
104792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10480
10481 * btrace.c (btrace_enable): Throw an error on double enables and
10482 when enabling recording fails.
10483 (btrace_disable): Throw an error if the thread is not recorded.
10484
1a476b6d
MM
104852020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10486
10487 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10488 request if we do not have a thread_info.
10489
4778a5f8
TV
104902020-04-21 Tom de Vries <tdevries@suse.de>
10491
10492 PR gdb/25471
10493 * thread.c
10494 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10495 exception in get_frame_id.
10496
0fa7617d
TT
104972020-04-20 Tom Tromey <tromey@adacore.com>
10498
10499 * python/python.c (struct gdbpy_event): Mark move constructor as
10500 noexcept.
10501 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10502 constructor as noexcept.
10503 * completer.h (struct completion_result): Mark move constructor as
10504 noexcept.
10505 * completer.c (completion_result::completion_result): Use
10506 initialization style. Don't call reset_match_list.
10507
ad23bda0
MS
105082020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10509
10510 * MAINTAINERS (Write After Approval): Add myself.
10511
45e1f031
TT
105122020-04-18 Tom Tromey <tom@tromey.com>
10513
10514 * windows-tdep.c (init_w32_command_list)
10515 (w32_prefix_command_valid): Restore.
10516 (_initialize_windows_tdep): Call init_w32_command_list.
10517
08feed99
TT
105182020-04-18 Tom Tromey <tom@tromey.com>
10519
10520 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10521 * value.c (value_fn_field): Update.
10522 * valops.c (find_function_in_inferior)
10523 (value_allocate_space_in_inferior): Update.
10524 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10525 Update.
10526 * tui/tui-source.c (tui_source_window::set_contents): Update.
10527 * symtab.c (lookup_global_or_static_symbol)
10528 (find_function_start_sal_1, skip_prologue_sal)
10529 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10530 * symmisc.c (dump_msymbols, dump_symtab_1)
10531 (maintenance_print_one_line_table): Update.
10532 * symfile.c (init_entry_point_info, section_is_mapped)
10533 (list_overlays_command, simple_read_overlay_table)
10534 (simple_overlay_update_1): Update.
10535 * stap-probe.c (handle_stap_probe): Update.
10536 * stabsread.c (dbx_init_float_type, define_symbol)
10537 (read_one_struct_field, read_enum_type, read_range_type): Update.
10538 * source.c (info_line_command): Update.
10539 * python/python.c (gdbpy_source_objfile_script)
10540 (gdbpy_execute_objfile_script): Update.
10541 * python/py-type.c (save_objfile_types): Update.
10542 * python/py-objfile.c (py_free_objfile): Update.
10543 * python/py-inferior.c (python_new_objfile): Update.
10544 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10545 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10546 (maintenance_check_psymtabs): Update.
10547 * printcmd.c (info_address_command): Update.
10548 * objfiles.h (struct objfile) <arch>: New method, from
10549 get_objfile_arch.
10550 (get_objfile_arch): Don't declare.
10551 * objfiles.c (get_objfile_arch): Remove.
10552 (filter_overlapping_sections): Update.
10553 * minsyms.c (msymbol_is_function): Update.
10554 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10555 (output_nondebug_symbol): Update.
10556 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10557 (mdebug_expand_psymtab): Update.
10558 * machoread.c (macho_add_oso_symfile): Update.
10559 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10560 Update.
10561 * linux-fork.c (checkpoint_command): Update.
10562 * linespec.c (convert_linespec_to_sals): Update.
10563 * jit.c (finalize_symtab): Update.
10564 * infrun.c (insert_exception_resume_from_probe): Update.
10565 * ia64-tdep.c (ia64_find_unwind_table): Update.
10566 * hppa-tdep.c (internalize_unwinds): Update.
10567 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10568 Update.
10569 * gcore.c (call_target_sbrk): Update.
10570 * elfread.c (record_minimal_symbol, elf_symtab_read)
10571 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10572 (elf_gnu_ifunc_resolve_by_got): Update.
10573 * dwarf2/read.c (create_addrmap_from_index)
10574 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10575 (read_debug_names_from_section)
10576 (process_psymtab_comp_unit_reader, add_partial_symbol)
10577 (add_partial_subprogram, process_full_comp_unit)
10578 (read_file_scope, read_func_scope, read_lexical_block_scope)
10579 (read_call_site_scope, dwarf2_ranges_read)
10580 (dwarf2_record_block_ranges, dwarf2_add_field)
10581 (mark_common_block_symbol_computed, read_tag_pointer_type)
10582 (read_tag_string_type, dwarf2_init_float_type)
10583 (dwarf2_init_complex_target_type, read_base_type)
10584 (partial_die_info::read, partial_die_info::read)
10585 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10586 (dwarf2_fetch_die_loc_sect_off): Update.
10587 * dwarf2/loc.c (dwarf2_find_location_expression)
10588 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10589 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10590 (dwarf2_loc_desc_get_symbol_read_needs)
10591 (locexpr_describe_location_piece, locexpr_describe_location_1)
10592 (loclist_describe_location): Update.
10593 * dwarf2/index-write.c (write_debug_names): Update.
10594 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10595 * dtrace-probe.c (dtrace_process_dof): Update.
10596 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10597 (process_one_symbol): Update.
10598 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10599 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10600 (coff_read_enum_type): Update.
10601 * cli/cli-cmds.c (edit_command, list_command): Update.
10602 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10603 * breakpoint.c (create_overlay_event_breakpoint)
10604 (create_longjmp_master_breakpoint)
10605 (create_std_terminate_master_breakpoint)
10606 (create_exception_master_breakpoint, get_sal_arch): Update.
10607 * block.c (block_gdbarch): Update.
10608 * annotate.c (annotate_source_line): Update.
10609
0743fc83
TT
106102020-04-17 Tom Tromey <tromey@adacore.com>
10611
10612 * auto-load.c (show_auto_load_cmd): Remove.
10613 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10614 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10615 (maintenance_print_arc_command): Remove.
10616 * tui/tui-win.c (tui_command): Remove.
10617 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10618 * tui/tui-layout.c (tui_layout_command): Remove.
10619 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10620 * python/python.c (user_set_python, user_show_python): Remove.
10621 (_initialize_python): Use add_basic_prefix_cmd,
10622 add_show_prefix_cmd.
10623 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10624 (install_gdb_commands): Use add_basic_prefix_cmd,
10625 add_show_prefix_cmd.
10626 (info_guile_command): Remove.
10627 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10628 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10629 add_show_prefix_cmd.
10630 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10631 Remove do_set and do_show parameters.
10632 * cli/cli-style.c (set_style, show_style): Remove.
10633 (_initialize_cli_style): Use add_basic_prefix_cmd,
10634 add_show_prefix_cmd.
10635 (cli_style_option::add_setshow_commands): Remove do_set and
10636 do_show parameters.
10637 (cli_style_option::add_setshow_commands): Use
10638 add_basic_prefix_cmd, add_show_prefix_cmd.
10639 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10640 (set_style_name): Remove.
10641 * cli/cli-dump.c (dump_command, append_command): Remove.
10642 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10643 (tekhex_dump_command, binary_dump_command)
10644 (binary_append_command): Remove.
10645 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10646 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10647 (init_w32_command_list): Remove; move into ...
10648 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10649 * valprint.c (set_print, show_print, set_print_raw)
10650 (show_print_raw): Remove.
10651 (_initialize_valprint): Use add_basic_prefix_cmd,
10652 add_show_prefix_cmd.
10653 * typeprint.c (set_print_type, show_print_type): Remove.
10654 (_initialize_typeprint): Use add_basic_prefix_cmd,
10655 add_show_prefix_cmd.
10656 * record.c (set_record_command, show_record_command): Remove.
10657 (_initialize_record): Use add_basic_prefix_cmd,
10658 add_show_prefix_cmd.
10659 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10660 add_show_prefix_cmd.
10661 (info_command, show_command, set_debug, show_debug): Remove.
10662 * top.h (set_history, show_history): Don't declare.
10663 * top.c (set_history, show_history): Remove.
10664 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10665 (unset_tdesc_cmd): Remove.
10666 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10667 add_show_prefix_cmd.
10668 * symtab.c (info_module_command): Remove.
10669 (_initialize_symtab): Use add_basic_prefix_cmd.
10670 * symfile.c (overlay_command): Remove.
10671 (_initialize_symfile): Use add_basic_prefix_cmd.
10672 * sparc64-tdep.c (info_adi_command): Remove.
10673 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10674 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10675 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10676 add_show_prefix_cmd.
10677 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10678 (_initialize_serial): Use add_basic_prefix_cmd,
10679 add_show_prefix_cmd.
10680 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10681 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10682 add_show_prefix_cmd.
10683 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10684 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10685 add_show_prefix_cmd.
10686 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10687 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10688 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10689 add_show_prefix_cmd.
10690 * remote.c (remote_command, set_remote_cmd): Remove.
10691 (_initialize_remote): Use add_basic_prefix_cmd.
10692 * record-full.c (set_record_full_command)
10693 (show_record_full_command): Remove.
10694 (_initialize_record_full): Use add_basic_prefix_cmd,
10695 add_show_prefix_cmd.
10696 * record-btrace.c (cmd_set_record_btrace)
10697 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10698 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10699 (cmd_show_record_btrace_pt): Remove.
10700 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10701 add_show_prefix_cmd.
10702 * ravenscar-thread.c (set_ravenscar_command)
10703 (show_ravenscar_command): Remove.
10704 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10705 add_show_prefix_cmd.
10706 * mips-tdep.c (show_mips_command, set_mips_command)
10707 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10708 add_show_prefix_cmd.
10709 * maint.c (maintenance_command, maintenance_info_command)
10710 (maintenance_check_command, maintenance_print_command)
10711 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10712 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10713 add_show_prefix_cmd.
10714 (show_per_command_cmd): Remove.
10715 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10716 Remove.
10717 (maintenance_show_test_settings_cmd): Remove.
10718 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10719 add_show_prefix_cmd.
10720 * maint-test-options.c (maintenance_test_options_command):
10721 Remove.
10722 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10723 * macrocmd.c (macro_command): Remove
10724 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10725 * language.c (set_check, show_check): Remove.
10726 (_initialize_language): Use add_basic_prefix_cmd,
10727 add_show_prefix_cmd.
10728 * infcmd.c (unset_command): Remove.
10729 (_initialize_infcmd): Use add_basic_prefix_cmd.
10730 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10731 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10732 add_show_prefix_cmd.
10733 * go32-nat.c (go32_info_dos_command): Remove.
10734 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10735 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10736 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10737 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10738 (_initialize_frame): Use add_basic_prefix_cmd,
10739 add_show_prefix_cmd.
10740 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10741 (_initialize_dcache): Use add_basic_prefix_cmd,
10742 add_show_prefix_cmd.
10743 * cp-support.c (maint_cplus_command): Remove.
10744 (_initialize_cp_support): Use add_basic_prefix_cmd.
10745 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10746 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10747 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10748 add_basic_prefix_cmd, add_show_prefix_cmd.
10749 * breakpoint.c (save_command): Remove.
10750 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10751 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10752 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10753 add_show_prefix_cmd.
10754 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10755 (set_ada_command, show_ada_command): Remove.
10756 (_initialize_ada_language): Use add_basic_prefix_cmd,
10757 add_show_prefix_cmd.
10758 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10759
3557f442
KR
107602020-04-16 Kamil Rytarowski <n54@gmx.com>
10761
10762 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10763 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10764
16197208
SM
107652020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10766
10767 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10768 warning messages.
10769
00ac85d3
SM
107702020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10771
10772 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10773 import table is not at beginning of .idata section.
10774
381ce63f
PA
107752020-04-16 Pedro Alves <palves@redhat.com>
10776
10777 * inferior.c (delete_inferior): Use delete operator directly
10778 instead of delete_program_space.
10779 * progspace.c (add_program_space): New, factored out from
10780 program_space::program_space.
10781 (remove_program_space): New, factored out from
10782 delete_program_space.
10783 (program_space::program_space): Remove intro comment. Rewrite.
10784 (program_space::~program_space): Remove intro comment. Call
10785 remove_program_space.
10786 (delete_program_space): Delete.
10787 * progspace.h (program_space::program_space): Make explicit. Move
10788 intro comment here, adjusted.
10789 (program_space::~program_space): Move intro comment here,
10790 adjusted.
10791 (delete_program_space): Remove.
10792
a010605f
TT
107932020-04-16 Tom Tromey <tromey@adacore.com>
10794
10795 * windows-nat.c (windows_nat::handle_access_violation): New
10796 function.
10797 * nat/windows-nat.h (handle_access_violation): Declare.
10798 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10799 windows-nat.c. Call handle_access_violation.
10800
efba5c23
TV
108012020-04-16 Tom de Vries <tdevries@suse.de>
10802
10803 PR symtab/25791
10804 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10805 CUs without psymtab.
10806
97ed802d
KB
108072020-04-16 Kevin Buettner <kevinb@redhat.com>
10808
10809 * python/python.c (do_start_initialization): Don't call
10810 PyEval_InitThreads for Python 3.9 and beyond.
10811
c7d64809
KR
108122020-04-15 Kamil Rytarowski <n54@gmx.com>
10813
10814 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10815 thread functions.
10816 (obsd_nat_target::wait): Likewise.
10817
ce127a96
TT
108182020-04-15 Tom Tromey <tromey@adacore.com>
10819
10820 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10821 (DEBUG_EXCEPT): Use debug_printf.
10822
99f1bc6a
AB
108232020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10824
10825 * completer.c (class completion_tracker::completion_hash_entry)
10826 <hash_name>: New member function.
10827 (completion_tracker::discard_completions): New callback to hash a
10828 completion_hash_entry, pass this to htab_create_alloc.
10829
a0e9b532
JT
108302016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10831
10832 * windows-nat.c (windows_make_so): Warn rather than stopping with
10833 an error if realpath() fails.
10834
06ca5dd4
KR
108352020-04-14 Kamil Rytarowski <n54@gmx.com>
10836
10837 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10838 (nbsd_nat_target::info_proc): Add do_status.
10839
194d088f
TV
108402020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10841 Tom de Vries <tdevries@suse.de>
10842
10843 PR symtab/25718
10844 * psympriv.h (struct partial_symtab::read_symtab)
10845 (struct partial_symtab::expand_psymtab)
10846 (struct partial_symtab::read_dependencies): Update comments.
10847 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10848 read_symtab for includer.
10849 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10850 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10851 (struct dwarf2_include_psymtab::m_readin): Remove.
10852 (struct dwarf2_include_psymtab::includer): New member function.
10853 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10854
c1a66c06
TV
108552020-04-14 Tom de Vries <tdevries@suse.de>
10856
10857 PR symtab/25720
10858 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10859 with NULL symbol_matcher and lookup_name.
10860 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10861 and lookup_name.
10862 * dwarf2/read.c (dw2_expand_symtabs_matching)
10863 (dw2_debug_names_expand_symtabs_matching): Same.
10864 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10865 Make lookup_name a pointer. Update comment.
10866 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10867 lookup_name being a pointer.
10868 * symfile.c (expand_symtabs_matching): Same.
10869 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10870 * linespec.c (iterate_over_all_matching_symtabs): Same.
10871
400b5eca
TT
108722020-04-13 Tom Tromey <tom@tromey.com>
10873
10874 * run-on-main-thread.c: Update include.
10875 * unittests/main-thread-selftests.c: Update include.
10876 * tui/tui-win.c: Update include.
10877 * tui/tui-io.c: Update include.
10878 * tui/tui-interp.c: Update include.
10879 * tui/tui-hooks.c: Update include.
10880 * top.h: Update include.
10881 * top.c: Update include.
10882 * ser-base.c: Update include.
10883 * remote.c: Update include.
10884 * remote-notif.c: Update include.
10885 * remote-fileio.c: Update include.
10886 * record-full.c: Update include.
10887 * record-btrace.c: Update include.
10888 * python/python.c: Update include.
10889 * posix-hdep.c: Update include.
10890 * mingw-hdep.c: Update include.
10891 * mi/mi-main.c: Update include.
10892 * mi/mi-interp.c: Update include.
10893 * main.c: Update include.
10894 * linux-nat.c: Update include.
10895 * interps.c: Update include.
10896 * infrun.c: Update include.
10897 * inf-loop.c: Update include.
10898 * event-top.c: Update include.
10899 * event-loop.c: Move to ../gdbsupport/.
10900 * event-loop.h: Move to ../gdbsupport/.
10901 * async-event.h: Update include.
10902 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10903
93b54c8e
TT
109042020-04-13 Tom Tromey <tom@tromey.com>
10905
10906 * tui/tui-win.c: Include async-event.h.
10907 * remote.c: Include async-event.h.
10908 * remote-notif.c: Include async-event.h.
10909 * record-full.c: Include async-event.h.
10910 * record-btrace.c: Include async-event.h.
10911 * infrun.c: Include async-event.h.
10912 * event-top.c: Include async-event.h.
10913 * event-loop.h: Move some declarations to async-event.h.
10914 * event-loop.c: Don't include ser-event.h or top.h. Move some
10915 code to async-event.c.
10916 * async-event.h: New file.
10917 * async-event.c: New file.
10918 * Makefile.in (COMMON_SFILES): Add async-event.c.
10919 (HFILES_NO_SRCDIR): Add async-event.h.
10920
c1cd3163
TT
109212020-04-13 Tom Tromey <tom@tromey.com>
10922
10923 * utils.c (flush_streams): New function.
10924 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10925
29f2bf4f
TT
109262020-04-13 Tom Tromey <tom@tromey.com>
10927
10928 * event-loop.c (handle_file_event): Use warning, not
10929 printf_unfiltered.
10930
98029d02
TT
109312020-04-13 Tom Tromey <tom@tromey.com>
10932
10933 * event-loop.c: Include <chrono>.
10934
06cc9596
TT
109352020-04-13 Tom Tromey <tom@tromey.com>
10936
10937 * gdb_select.h: Move to ../gdbsupport/.
10938 * event-loop.c: Update include path.
10939 * top.c: Update include path.
10940 * ser-base.c: Update include path.
10941 * ui-file.c: Update include path.
10942 * ser-tcp.c: Update include path.
10943 * guile/scm-ports.c: Update include path.
10944 * posix-hdep.c: Update include path.
10945 * ser-unix.c: Update include path.
10946 * gdb_usleep.c: Update include path.
10947 * mingw-hdep.c: Update include path.
10948 * inflow.c: Update include path.
10949 * infrun.c: Update include path.
10950 * event-top.c: Update include path.
10951
8ae8e197
TT
109522020-04-13 Tom Tromey <tom@tromey.com>
10953
10954 * configure: Rebuild.
10955 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10956
58cf28e8
TT
109572020-04-13 Tom Tromey <tom@tromey.com>
10958
10959 * event-loop.h (start_event_loop): Don't declare.
10960 * event-loop.c (start_event_loop): Move...
10961 * main.c (start_event_loop): ...here. Now static.
10962
b7f999ae
SDJ
109632020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10964
10965 * MAINTAINERS: Update my email address.
10966
1085dfd4
KR
109672020-04-12 Kamil Rytarowski <n54@gmx.com>
10968
10969 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10970 IP_ALL.
10971
49d1d1f5
KR
109722020-04-12 Kamil Rytarowski <n54@gmx.com>
10973
10974 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10975 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10976
b4848d2a
KR
109772020-04-12 Kamil Rytarowski <n54@gmx.com>
10978
10979 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10980 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10981
51c133d5
KR
109822020-04-12 Kamil Rytarowski <n54@gmx.com>
10983
10984 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10985
54b8cbd0
KR
109862020-04-11 Kamil Rytarowski <n54@gmx.com>
10987
10988 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10989 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10990 (nbsd_nat_target::info_proc): New functions.
10991 * nbsd-nat.c (kinfo_get_vmmap): New function.
10992 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10993 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10994 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10995 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10996 functions.
10997 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10998 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10999 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11000 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11001 (KINFO_VME_FLAG_GROWS_DOWN): New.
11002
cf83625d
AS
110032020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11004
11005 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11006 bit shift.
11007
0c4311ab
TT
110082020-04-10 Tom Tromey <tromey@adacore.com>
11009
11010 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11011
3e65b3e9
TT
110122020-04-10 Tom Tromey <tromey@adacore.com>
11013
11014 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11015 separate debug files.
11016
13302e95
HD
110172020-04-10 Hannes Domani <ssbssa@yahoo.de>
11018
11019 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11020 Move to...
11021 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11022 ... here.
11023 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11024 Check for STATUS_WX86_BREAKPOINT.
11025 (windows_nat_target::wait): Same.
11026
bdfc1e8a
TV
110272020-04-10 Tom de Vries <tdevries@suse.de>
11028
11029 PR cli/25808
11030 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11031
f4460aec
SM
110322020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11033
11034 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11035 (Write After Approval): Remove Tom de Vries.
11036
a25198bb
BE
110372020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11038
11039 revert partially:
11040 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11041
aac66a4c
SM
11042 * buildsym.c (record_line): Fix undefined behavior and preserve
11043 lines at eof.
a25198bb 11044
206c98a6
KR
110452020-04-09 Kamil Rytarowski <n54@gmx.com>
11046
11047 * auxv.h (svr4_auxv_parse): New.
11048 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11049 and generic_auxv_parse.
11050 (svr4_auxv_parse): Add.
11051 * obsd-tdep.c: Include "auxv.h".
11052 (obsd_auxv_parse): Remove.
11053 (obsd_init_abi): Remove comment.
11054 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11055 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11056 * nbsd-tdep.c: Include "auxv.h".
11057 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11058
71fbdbaf
TT
110592020-04-08 Tom Tromey <tromey@adacore.com>
11060
11061 * nat/windows-nat.h (last_wait_event): Don't declare.
11062 (wait_for_debug_event): Update comment.
11063 * nat/windows-nat.c (last_wait_event): Now static.
11064
2c1d95e8
TT
110652020-04-08 Tom Tromey <tromey@adacore.com>
11066
11067 * windows-nat.c (wait_for_debug_event): Move to
11068 nat/windows-nat.c.
11069 * nat/windows-nat.h (wait_for_debug_event): Declare.
11070 * nat/windows-nat.c (wait_for_debug_event): Move from
11071 windows-nat.c. No longer static.
11072
d2977bc4
TT
110732020-04-08 Tom Tromey <tromey@adacore.com>
11074
11075 * windows-nat.c (get_windows_debug_event): Use
11076 fetch_pending_stop.
11077 * nat/windows-nat.h (fetch_pending_stop): Declare.
11078 * nat/windows-nat.c (fetch_pending_stop): New function.
11079
e758e19c
TT
110802020-04-08 Tom Tromey <tromey@adacore.com>
11081
11082 * windows-nat.c (windows_continue): Use matching_pending_stop and
11083 continue_last_debug_event.
11084 * nat/windows-nat.h (matching_pending_stop)
11085 (continue_last_debug_event): Declare.
11086 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11087 (matching_pending_stop, continue_last_debug_event): New
11088 functions.
11089
8d30e395
TT
110902020-04-08 Tom Tromey <tromey@adacore.com>
11091
11092 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11093 (handle_exception_result): Move to nat/windows-nat.h.
11094 (DEBUG_EXCEPTION_SIMPLE): Remove.
11095 (windows_nat::handle_ms_vc_exception): New function.
11096 (handle_exception): Move to nat/windows-nat.c.
11097 (get_windows_debug_event): Update.
11098 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11099 nat/windows-nat.c.
11100 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11101 (handle_exception_result): Move from windows-nat.c.
11102 (handle_exception): Declare.
11103 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11104 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11105 windows-nat.c.
11106
29de418d
TT
111072020-04-08 Tom Tromey <tromey@adacore.com>
11108
11109 * windows-nat.c (exception_count, event_count): Remove.
11110 (handle_exception, get_windows_debug_event)
11111 (do_initial_windows_stuff): Update.
11112
a816ba18
TT
111132020-04-08 Tom Tromey <tromey@adacore.com>
11114
11115 * windows-nat.c (windows_nat::handle_load_dll)
11116 (windows_nat::handle_unload_dll): Rename. No longer static.
11117 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11118 Declare.
11119
a00caa12
TT
111202020-04-08 Tom Tromey <tromey@adacore.com>
11121
11122 * complaints.h (stop_whining): Declare at top-level.
11123 (complaint): Don't declare stop_whining.
11124
d41b524f
TT
111252020-04-08 Tom Tromey <tromey@adacore.com>
11126
11127 * windows-nat.c (windows_nat::handle_output_debug_string):
11128 Rename. No longer static.
11129 * nat/windows-nat.h (handle_output_debug_string): Declare.
11130
3c76026d
TT
111312020-04-08 Tom Tromey <tromey@adacore.com>
11132
11133 * windows-nat.c (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 to nat/windows-nat.c.
11137 (display_selectors, fake_create_process)
11138 (get_windows_debug_event): Update.
11139 * nat/windows-nat.h (current_process_handle, current_process_id)
11140 (main_thread_id, last_sig, current_event, last_wait_event)
11141 (current_windows_thread, desired_stop_thread_id, pending_stops)
11142 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11143 * nat/windows-nat.c (current_process_handle, current_process_id)
11144 (main_thread_id, last_sig, current_event, last_wait_event)
11145 (current_windows_thread, desired_stop_thread_id, pending_stops)
11146 (siginfo_er): New globals. Move from windows-nat.c.
11147
9d8679cc
TT
111482020-04-08 Tom Tromey <tromey@adacore.com>
11149
11150 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11151 (handle_load_dll): Update.
11152 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11153
28688adf
TT
111542020-04-08 Tom Tromey <tromey@adacore.com>
11155
11156 * windows-nat.c (enum thread_disposition_type): Move to
11157 nat/windows-nat.h.
11158 (windows_nat::thread_rec): Rename from thread_rec. No longer
11159 static.
11160 (windows_add_thread, windows_nat_target::fetch_registers)
11161 (windows_nat_target::store_registers, handle_exception)
11162 (windows_nat_target::resume, get_windows_debug_event)
11163 (windows_nat_target::get_tib_address)
11164 (windows_nat_target::thread_name)
11165 (windows_nat_target::thread_alive): Update.
11166 * nat/windows-nat.h (enum thread_disposition_type): Move from
11167 windows-nat.c.
11168 (thread_rec): Declare.
11169
4834dad0
TT
111702020-04-08 Tom Tromey <tromey@adacore.com>
11171
11172 * windows-nat.c: Add "using namespace".
11173 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11174 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11175
65bafd5b
TT
111762020-04-08 Tom Tromey <tromey@adacore.com>
11177
11178 * nat/windows-nat.h (struct windows_thread_info): Declare
11179 destructor.
11180 * nat/windows-nat.c (~windows_thread_info): New.
11181
0a4afda3
TT
111822020-04-08 Tom Tromey <tromey@adacore.com>
11183
11184 PR gdb/22992
11185 * windows-nat.c (current_event): Update comment.
11186 (last_wait_event, desired_stop_thread_id): New globals.
11187 (struct pending_stop): New.
11188 (pending_stops): New global.
11189 (windows_nat_target) <stopped_by_sw_breakpoint>
11190 <supports_stopped_by_sw_breakpoint>: New methods.
11191 (windows_fetch_one_register): Add assertions. Adjust PC.
11192 (windows_continue): Handle pending stops. Suspend other threads
11193 when stepping. Use last_wait_event
11194 (wait_for_debug_event): New function.
11195 (get_windows_debug_event): Use wait_for_debug_event. Handle
11196 pending stops. Queue spurious stops.
11197 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11198 (windows_nat_target::kill): Use wait_for_debug_event.
11199 * nat/windows-nat.h (struct windows_thread_info)
11200 <stopped_at_software_breakpoint>: New field.
11201 * nat/windows-nat.c (windows_thread_info::resume): Clear
11202 stopped_at_software_breakpoint.
11203
8e61ebec
TT
112042020-04-08 Tom Tromey <tromey@adacore.com>
11205
11206 * windows-nat.c (enum thread_disposition_type): New.
11207 (thread_rec): Replace "get_context" parameter with "disposition";
11208 change type.
11209 (windows_add_thread, windows_nat_target::fetch_registers)
11210 (windows_nat_target::store_registers, handle_exception)
11211 (windows_nat_target::resume, get_windows_debug_event)
11212 (windows_nat_target::get_tib_address)
11213 (windows_nat_target::thread_name)
11214 (windows_nat_target::thread_alive): Update.
11215
98a03287
TT
112162020-04-08 Tom Tromey <tromey@adacore.com>
11217
11218 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11219 (windows_continue): Use windows_continue::resume.
11220 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11221 resume>: Declare new methods.
11222 * nat/windows-nat.c: New file.
11223 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11224
7c7411bc
TT
112252020-04-08 Tom Tromey <tromey@adacore.com>
11226
11227 * windows-nat.c (windows_add_thread, windows_delete_thread)
11228 (windows_nat_target::fetch_registers)
11229 (windows_nat_target::store_registers, fake_create_process)
11230 (windows_nat_target::resume, windows_nat_target::resume)
11231 (get_windows_debug_event, windows_nat_target::wait)
11232 (windows_nat_target::pid_to_str)
11233 (windows_nat_target::get_tib_address)
11234 (windows_nat_target::get_ada_task_ptid)
11235 (windows_nat_target::thread_name)
11236 (windows_nat_target::thread_alive): Use lwp, not tid.
11237
2950fdf7
TT
112382020-04-08 Tom Tromey <tromey@adacore.com>
11239
11240 * windows-nat.c (handle_exception)
11241 (windows_nat_target::thread_name): Update.
11242 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11243 <name>: Now unique_xmalloc_ptr.
11244
62fe396b
TT
112452020-04-08 Tom Tromey <tromey@adacore.com>
11246
11247 * windows-nat.c (thread_rec)
11248 (windows_nat_target::fetch_registers): Update.
11249 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11250 Update comment.
11251 <debug_registers_changed, reload_context>: Now bool.
11252
e9534bd2
TT
112532020-04-08 Tom Tromey <tromey@adacore.com>
11254
11255 * windows-nat.c (windows_add_thread): Use new.
11256 (windows_init_thread_list, windows_delete_thread): Use delete.
11257 (get_windows_debug_event): Update.
11258 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11259 destructor, and initializers.
11260
ae1f8880
TT
112612020-04-08 Tom Tromey <tromey@adacore.com>
11262
11263 * windows-nat.c (struct windows_thread_info): Remove.
11264 * nat/windows-nat.h: New file.
11265
55a1e039
TT
112662020-04-08 Tom Tromey <tromey@adacore.com>
11267
11268 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11269 (thread_rec, windows_add_thread, windows_delete_thread)
11270 (windows_continue): Update.
11271
93366324
TT
112722020-04-08 Tom Tromey <tromey@adacore.com>
11273
11274 * windows-nat.c (struct windows_thread_info): Remove typedef.
11275 (thread_head): Remove.
11276 (thread_list): New global.
11277 (thread_rec, windows_add_thread, windows_init_thread_list)
11278 (windows_delete_thread, windows_continue): Update.
11279
0f2265e2
SM
112802020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11281
11282 * windows-tdep.h (windows_init_abi): Add comment.
11283 (cygwin_init_abi): New declaration.
11284 * windows-tdep.c: Split signal enumeration in two, one for
11285 Windows and one for Cygwin.
11286 (windows_gdb_signal_to_target): Only deal with signal of the
11287 Windows OS ABI.
11288 (cygwin_gdb_signal_to_target): New function.
11289 (windows_init_abi): Rename to windows_init_abi_common, don't set
11290 gdb_signal_to_target gdbarch method. Add new new function with
11291 this name.
11292 (cygwin_init_abi): New function.
11293 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11294 comment. Don't call windows_init_abi.
11295 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11296 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11297 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11298 i386_windows_init_abi_common, don't call windows_init_abi. Add
11299 a new function of this name.
11300 (i386_cygwin_init_abi): New function.
11301 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11302 OS ABI Cygwin.
11303
3810f182
SM
113042020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11305
11306 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11307 parameter.c.
11308 (dwarf2_read_gdb_index): Update.
11309
063f8e80
KR
113102020-04-07 Kamil Rytarowski <n54@gmx.com>
11311
11312 * nbsd-tdep.c: Include "objfiles.h".
11313 (nbsd_skip_solib_resolver): New.
11314 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11315
85a9510c 113162020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11317
11318 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11319 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11320 with DW_LLE_base_addressx are being emitted in DWARFv5.
11321 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11322 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11323 unsigned integer.
11324
9fc3eaae 113252020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11326
11327 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11328 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11329 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11330 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11331 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11332 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11333 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11334
11335
41144253 113362020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11337
11338 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11339 (read_loclist_index): New function definition.
11340 (lookup_loclist_base): New function definition.
11341 (read_loclist_header): New function definition.
11342 (dwarf2_cu): Add loclist_base and loclist_header field.
11343 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11344 (read_full_die_1): Read the value of DW_AT_loclists_base.
11345 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11346 (read_attribute_value): Handle DW_FORM_loclistx.
11347 (skip_one_die): Handle DW_FORM_loclistx.
11348 (loclist_header): New structure declaration.
11349 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11350
9f4e76a4
SM
113512020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11352
11353 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11354 constructor. Remove `addr` parameter from other constructor and
11355 add `per_cu` parameter.
11356 * dwarf2/read.c (create_partial_symtab): Update.
11357
25c11aca
TV
113582020-04-07 Tom de Vries <tdevries@suse.de>
11359
11360 PR symtab/25796
11361 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11362 (partial_die_info::fixup): Inherit has_const_value.
11363
5707e24b
TV
113642020-04-07 Tom de Vries <tdevries@suse.de>
11365
11366 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11367 symbols without address.
11368
05f00e22
KR
113692020-04-06 Kamil Rytarowski <n54@gmx.com>
11370
11371 * nbsd-nat.h (struct thread_info): Add forward declaration.
11372 (nbsd_nat_target::thread_alive): Add.
11373 (nbsd_nat_target::thread_name): Likewise.
11374 (nbsd_nat_target::update_thread_list): Likewise.
11375 (update_thread_list::post_attach): Likewise.
11376 (post_attach::pid_to_str): Likewise.
11377 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11378 (nbsd_thread_lister): Add.
11379 (nbsd_nat_target::thread_alive): Likewise.
11380 (nbsd_nat_target::thread_name): Likewise.
11381 (nbsd_add_threads): Likewise.
11382 (update_thread_list::post_attach): Likewise.
11383 (nbsd_nat_target::update_thread_list): Likewise.
11384 (post_attach::pid_to_str): Likewise.
11385
6ee448cc
TT
113862020-04-06 Tom Tromey <tromey@adacore.com>
11387
11388 * ada-valprint.c (print_variant_part): Extract the variant field.
11389 (print_field_values): Use the field as the outer value when
11390 recursing.
11391
dea34e8c
TT
113922020-04-06 Tom Tromey <tromey@adacore.com>
11393
11394 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11395 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11396 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11397 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11398 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11399
93689ce9
TT
114002020-04-06 Tom Tromey <tromey@adacore.com>
11401
11402 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11403 TYPE_CODE_ERROR.
11404
79743962
KR
114052020-04-06 Kamil Rytarowski <n54@gmx.com>
11406
11407 * nbsd-tdep.c: Include "gdbarch.h".
11408 Define enum with NetBSD signal numbers.
11409 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11410 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11411 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11412 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11413 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11414 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11415 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11416 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11417 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11418 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11419 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11420 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11421
9e7c9a03
HD
114222020-04-03 Hannes Domani <ssbssa@yahoo.de>
11423
11424 PR gdb/25325
11425 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11426
d9e49b61
TT
114272020-04-03 Tom Tromey <tromey@adacore.com>
11428
11429 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11430 Read constant block.
11431
e0fc5c3f
SM
114322020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11433
11434 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11435 (gdb_bfd_get_full_section_contents): New declaration.
11436 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11437 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11438 gdb_bfd_get_full_section_contents.
11439
e2ff18a0
SM
114402020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11441
11442 * exec.c (build_section_table): Replace internal_error with
11443 gdb_assert.
11444 (section_table_xfer_memory_partial): Likewise.
11445 * mdebugread.c (parse_partial_symbols): Likewise.
11446 * psymtab.c (lookup_partial_symbol): Likewise.
11447 * utils.c (wrap_here): Likewise.
11448
0830d301
TT
114492020-04-02 Tom Tromey <tromey@adacore.com>
11450
11451 * f-lang.c (build_fortran_types): Use arch_type to initialize
11452 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11453
e7da7f8f
TT
114542020-04-02 Tom Tromey <tromey@adacore.com>
11455
11456 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11457 of attributes.
11458
c90d28ac
AB
114592020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11460 Bernd Edlinger <bernd.edlinger@hotmail.de>
11461 Tom Tromey <tromey@adacore.com>
11462
11463 * buildsym.c (buildsym_compunit::record_line): Remove
11464 deduplication code.
11465
1aa98955
TV
114662020-04-02 Tom de Vries <tdevries@suse.de>
11467
11468 PR ada/24671
11469 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11470
d3214198
TV
114712020-04-02 Tom de Vries <tdevries@suse.de>
11472
11473 * dwarf2/read.c (dwarf2_gdb_index_functions,
11474 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11475 NULL.
11476 * psymtab.c (psym_lookup_global_symbol_language): New function.
11477 (psym_functions): Init psym_lookup_global_symbol_language with
11478 psym_lookup_global_symbol_language.
11479 * symfile-debug.c (debug_sym_quick_functions): Init
11480 lookup_global_symbol_language with NULL.
11481 * symfile.c (set_initial_language): Remove fixme comment.
11482 * symfile.h (struct quick_symbol_functions): Add
11483 lookup_global_symbol_language.
11484 * symtab.c (find_quick_global_symbol_language): New function.
11485 (find_main_name): Use find_quick_global_symbol_language.
11486
2836752f
SM
114872020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11488
11489 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11490
64dc2d4b
BE
114912020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11492
11493 * buildsym.c (record_line): Fix undefined behavior and preserve
11494 lines at eof.
11495
bbe3dc41
BE
114962020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11497
11498 * buildsym.c (record_line): Fix the resizing condition.
11499
6b4a335b
TT
115002020-04-01 Tom Tromey <tom@tromey.com>
11501
11502 * value.h (value_literal_complex): Add comment.
11503 * valops.c (value_literal_complex): Refer to value.h.
11504
3638a098
TT
115052020-04-01 Tom Tromey <tom@tromey.com>
11506
11507 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11508 (scalar_type): New rule, from typebase.
11509 (typebase): Use scalar_type. Recognize complex types.
11510 (field_name): Handle FLOAT_KEYWORD.
11511 (ident_tokens): Add _Complex and __complex__.
11512
c34e8714
TT
115132020-04-01 Tom Tromey <tom@tromey.com>
11514
11515 PR exp/25299:
11516 * valarith.c (promotion_type, complex_binop): New functions.
11517 (scalar_binop): Handle complex numbers. Use promotion_type.
11518 (value_pos, value_neg, value_complement): Handle complex numbers.
11519
fa649bb7
TT
115202020-04-01 Tom Tromey <tom@tromey.com>
11521
11522 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11523 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11524 (parse_number): Handle complex numbers.
11525
981c08ce
TT
115262020-04-01 Tom Tromey <tom@tromey.com>
11527
11528 * c-valprint.c (c_decorations): Change complex suffix to "i".
11529
4c99290d
TT
115302020-04-01 Tom Tromey <tom@tromey.com>
11531
11532 * valprint.c (generic_value_print_complex): Use accessors.
11533 * value.h (value_real_part, value_imaginary_part): Declare.
11534 * valops.c (value_real_part, value_imaginary_part): New
11535 functions.
11536 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11537
5b930b45
TT
115382020-04-01 Tom Tromey <tom@tromey.com>
11539
11540 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11541 (read_range_type): Update.
11542 * mdebugread.c (basic_type): Update.
11543 * go-lang.c (build_go_types): Use init_complex_type.
11544 * gdbtypes.h (struct main_type) <complex_type>: New member.
11545 (init_complex_type): Update.
11546 (arch_complex_type): Don't declare.
11547 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11548 Make name if none given. Use alloc_type_copy. Look for cached
11549 complex type.
11550 (arch_complex_type): Remove.
11551 (gdbtypes_post_init): Use init_complex_type.
11552 * f-lang.c (build_fortran_types): Use init_complex_type.
11553 * dwarf2/read.c (read_base_type): Update.
11554 * d-lang.c (build_d_types): Use init_complex_type.
11555 * ctfread.c (read_base_type): Update.
11556
53cccef1
TBA
115572020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11558
11559 * infrun.c (stop_all_threads): Update assertion, plus when
11560 stopping threads, take into account that we might be trying
11561 to stop an all-stop target.
11562 (stop_waiting): Call 'stop_all_threads' if there exists a
11563 non-stop target.
11564
a0714d30
TBA
115652020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11566
11567 * target.h (exists_non_stop_target): New function declaration.
11568 * target.c (exists_non_stop_target): New function.
11569
60e22c1e
HD
115702020-04-01 Hannes Domani <ssbssa@yahoo.de>
11571
11572 PR gdb/24789
11573 * eval.c (is_integral_or_integral_reference): New function.
11574 (evaluate_subexp_standard): Allow integer references in
11575 pointer arithmetic.
11576
e139a727
TBA
115772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11578
11579 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11580 check for no ptid in the stop reply when the target is non-stop.
11581
e0802d59
TT
115822020-04-01 Tom Tromey <tromey@adacore.com>
11583
11584 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11585 "name" parameter to rvalue reference. Initialize m_name_holder.
11586 <lookup_name_info>: New overloads.
11587 <name>: Return gdb::string_view.
11588 <c_str>: New method.
11589 <make_ignore_params>: Update.
11590 <search_name_hash>: Update.
11591 <language_lookup_name>: Return const char *.
11592 <m_name>: Change type.
11593 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11594 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11595 (lookup_name_info::match_any): Update.
11596 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11597 Update.
11598 * minsyms.c (linkage_name_str): Update.
11599 * language.c (default_symbol_name_matcher): Update.
11600 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11601 Update.
11602 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11603 (ada_lookup_name_info::ada_lookup_name_info): Update.
11604 (literal_symbol_name_matcher): Update.
11605
8c072cb6
TT
116062020-04-01 Tom Tromey <tromey@adacore.com>
11607
11608 * psymtab.c (psymtab_search_name): Remove function.
11609 (psym_lookup_symbol): Create search name and lookup name here.
11610 (lookup_partial_symbol): Remove "name" parameter; add
11611 lookup_name.
11612 (psym_expand_symtabs_for_function): Update.
11613
6f29a534
TT
116142020-03-31 Joel Jones <joelkevinjones@gmail.com>
11615
11616 PR tui/25597:
11617 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11618
af62665e
TT
116192020-03-31 Tom Tromey <tromey@adacore.com>
11620
11621 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11622 memcpy.
11623
d1a89da5
NC
116242020-03-30 Nelson Chu <nelson.chu@sifive.com>
11625
11626 * features/riscv/32bit-csr.xml: Regenerated.
11627 * features/riscv/64bit-csr.xml: Regenerated.
11628
d8af9068
TT
116292020-03-30 Tom Tromey <tromey@adacore.com>
11630
11631 * ada-valprint.c (print_variant_part): Update.
11632 * ada-lang.h (ada_which_variant_applies): Update.
11633 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11634 outer_valaddr parameters; replace with "outer" value parameter.
11635 (to_fixed_variant_branch_type): Update.
11636
227c0bf4
PFC
116372020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11638
11639 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11640 <list>. Remove inclusion of observable.h.
11641 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11642 (struct arch_lwp_info): New struct.
11643 (class ppc_linux_dreg_interface): New class.
11644 (struct ppc_linux_process_info): New struct.
11645 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11646 <low_new_clone, low_forget_process, low_prepare_to_resume>
11647 <copy_thread_dreg_state, mark_thread_stale>
11648 <mark_debug_registers_changed, register_hw_breakpoint>
11649 <clear_hw_breakpoint, register_wp, clear_wp>
11650 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11651 <num_memory_accesses, get_trigger_type>
11652 <create_watchpoint_request, hwdebug_point_cmp>
11653 <init_arch_lwp_info, get_arch_lwp_info>
11654 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11655 methods.
11656 <struct ptid_hash>: New inner struct.
11657 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11658 members.
11659 (saved_dabr_value, hwdebug_info, max_slots_number)
11660 (struct hw_break_tuple, struct thread_points, ppc_threads)
11661 (have_ptrace_hwdebug_interface)
11662 (hwdebug_find_thread_points_by_tid)
11663 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11664 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11665 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11666 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11667 use m_dreg_interface.
11668 (hwdebug_point_cmp): Change to...
11669 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11670 reference arguments instead of pointers.
11671 (ppc_linux_nat_target::ranged_break_num_registers): Use
11672 m_dreg_interface.
11673 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11674 m_dreg_interface. Call register_hw_breakpoint.
11675 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11676 m_dreg_interface. Call clear_hw_breakpoint.
11677 (get_trigger_type): Change to...
11678 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11679 comment.
11680 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11681 use m_dreg_interface. Call register_hw_breakpoint.
11682 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11683 use m_dreg_interface. Call clear_hw_breakpoint.
11684 (can_use_watchpoint_cond_accel): Change to...
11685 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11686 method. Update comment, use m_dreg_interface and
11687 m_process_info.
11688 (calculate_dvc): Change to...
11689 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11690 m_dreg_interface.
11691 (num_memory_accesses): Change to...
11692 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11693 (check_condition): Change to...
11694 (ppc_linux_nat_target::check_condition): ...this method.
11695 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11696 comment, use m_dreg_interface.
11697 (create_watchpoint_request): Change to...
11698 (ppc_linux_nat_target::create_watchpoint_request): ...this
11699 method. Use m_dreg_interface.
11700 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11701 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11702 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11703 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11704 (ppc_linux_nat_target::low_forget_process)
11705 (ppc_linux_nat_target::low_new_fork)
11706 (ppc_linux_nat_target::low_new_clone)
11707 (ppc_linux_nat_target::low_delete_thread)
11708 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11709 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11710 only call mark_thread_stale.
11711 (ppc_linux_thread_exit): Remove.
11712 (ppc_linux_nat_target::stopped_data_address): Change to...
11713 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11714 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11715 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11716 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11717 comment. Call low_stopped_data_address.
11718 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11719 m_dreg_interface.
11720 (ppc_linux_nat_target::masked_watch_num_registers): Use
11721 m_dreg_interface.
11722 (ppc_linux_nat_target::copy_thread_dreg_state)
11723 (ppc_linux_nat_target::mark_thread_stale)
11724 (ppc_linux_nat_target::mark_debug_registers_changed)
11725 (ppc_linux_nat_target::register_hw_breakpoint)
11726 (ppc_linux_nat_target::clear_hw_breakpoint)
11727 (ppc_linux_nat_target::register_wp)
11728 (ppc_linux_nat_target::clear_wp)
11729 (ppc_linux_nat_target::init_arch_lwp_info)
11730 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11731 (_initialize_ppc_linux_nat): Remove observer callback.
11732
4db10d8f
PFC
117332020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11734
11735 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11736 (ppc_linux_nat_target::auxv_parse)
11737 (ppc_linux_nat_target::read_description)
11738 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11739 Move up.
11740
1310c1b0
PFC
117412020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11742
11743 * linux-nat.h (low_new_clone): New method.
11744 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11745
69b037c3
SM
117462020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11747
11748 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11749 (dbx_expand_psymtab): ... this.
11750 (start_psymtab): Update.
11751 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11752 (mdebug_expand_psymtab): ... this.
11753 (parse_partial_symbols): Update.
11754 (new_psymtab): Update.
11755 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11756 (xcoff_expand_psymtab): ... this.
11757 (xcoff_start_psymtab): Update.
11758
48993951
SM
117592020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11760
11761 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11762 <expand_dependencies>: ... this.
11763 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11764 (partial_symtab::expand_dependencies): ... this.
11765 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11766 Update.
11767 (dwarf2_psymtab::expand_psymtab): Update.
11768 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11769 * mdebugread.c (psymtab_to_symtab_1): Update.
11770 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11771
3ad83046
SM
117722020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11773
11774 * psympriv.h (discard_psymtab): Remove.
11775 * dbxread.c (dbx_end_psymtab): Update.
11776 * xcoffread.c (xcoff_end_psymtab): Update.
11777
4d1b9ab6
TT
117782020-03-28 Tom Tromey <tom@tromey.com>
11779
11780 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11781 comment.
11782
f1749218
TT
117832020-03-28 Tom Tromey <tom@tromey.com>
11784
11785 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11786
ebea7626
HD
117872020-03-27 Hannes Domani <ssbssa@yahoo.de>
11788
11789 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11790
a879b4d5
JB
117912020-03-26 John Baldwin <jhb@FreeBSD.org>
11792
11793 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11794
0826b30a
TT
117952020-03-26 Tom Tromey <tom@tromey.com>
11796
11797 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11798 (mark_common_block_symbol_computed, read_tag_string_type)
11799 (attr_to_dynamic_prop, read_subrange_type): Update.
11800 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11801 to be methods on struct attribute.
11802 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11803 (read_call_site_scope, partial_die_info::read)
11804 (partial_die_info::read, lookup_die_type, follow_die_ref):
11805 Update.
11806 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11807 from dwarf2_get_ref_die_offset.
11808 (attribute::constant_value): New method, from
11809 dwarf2_get_attr_constant_value.
11810 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11811 Declare method.
11812 <constant_value>: New method.
11813
2b2558bf
TT
118142020-03-26 Tom Tromey <tom@tromey.com>
11815
11816 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11817 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11818 (dwarf_type_encoding_name): Move to stringify.c.
11819 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11820 * dwarf2/stringify.c: New file.
11821 * dwarf2/stringify.h: New file.
11822
eeb64781
TT
118232020-03-26 Tom Tromey <tom@tromey.com>
11824
11825 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11826 Rewrite.
11827
a39fdb41
TT
118282020-03-26 Tom Tromey <tom@tromey.com>
11829
11830 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11831 methods.
11832 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11833 (lookup_ranges_base): Likewise.
11834 (read_cutu_die_from_dwo, read_full_die_1): Update.
11835
436c571c
TT
118362020-03-26 Tom Tromey <tom@tromey.com>
11837
11838 * dwarf2/read.c (read_import_statement, read_file_scope)
11839 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11840 (read_lexical_block_scope, read_call_site_scope)
11841 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11842 (handle_struct_member_die, process_structure_scope)
11843 (update_enumeration_type_from_children)
11844 (process_enumeration_scope, read_array_type, read_common_block)
11845 (read_namespace, read_module, read_subroutine_type): Update.
11846 (sibling_die): Remove.
11847
052c8bb8
TT
118482020-03-26 Tom Tromey <tom@tromey.com>
11849
11850 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11851 (build_type_psymtabs_reader, read_structure_type)
11852 (read_enumeration_type, read_full_die_1): Update.
11853 (dwarf2_attr_no_follow): Move to die.h.
11854 * dwarf2/die.h (struct die_info) <attr>: New method.
11855
2b24b6e4
TT
118562020-03-26 Tom Tromey <tom@tromey.com>
11857
11858 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11859 <base_address>: Now an optional.
11860 (dwarf2_find_base_address, dwarf2_rnglists_process)
11861 (dwarf2_ranges_process, fill_in_loclist_baton)
11862 (dwarf2_symbol_mark_computed): Update.
11863
c2d50fd0
TT
118642020-03-26 Tom Tromey <tom@tromey.com>
11865
11866 * dwarf2/read.c (struct die_info): Move to die.h.
11867 * dwarf2/die.h: New file.
11868
0df7ad3a
TT
118692020-03-26 Tom Tromey <tom@tromey.com>
11870
11871 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11872 * dwarf2/read.c
11873 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11874 Move to line-header.c.
11875 (read_checked_initial_length_and_offset, read_formatted_entries):
11876 Likewise.
11877 (dwarf_decode_line_header): Split into two.
11878 * dwarf2/line-header.c
11879 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11880 Move from read.c.
11881 (read_checked_initial_length_and_offset, read_formatted_entries):
11882 Likewise.
11883 (dwarf_decode_line_header): New function, split from read.c.
11884
86c0bb4c
TT
118852020-03-26 Tom Tromey <tom@tromey.com>
11886
11887 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11888 Declare method.
11889 * dwarf2/read.c (read_attribute_value): Update.
11890 (dwarf2_per_objfile::read_line_string): Rename from
11891 read_indirect_line_string.
11892 (read_formatted_entries): Update.
11893
2ef46c2f
TT
118942020-03-26 Tom Tromey <tom@tromey.com>
11895
11896 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11897 variable.
11898
4f9c1eda
TT
118992020-03-26 Tom Tromey <tom@tromey.com>
11900
11901 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11902 const.
11903 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11904 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11905 parameter const.
11906
5a0e026f
TT
119072020-03-26 Tom Tromey <tom@tromey.com>
11908
11909 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11910 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11911 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11912 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11913
8844c11b
TT
119142020-03-26 Tom Tromey <tom@tromey.com>
11915
11916 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11917 file_names_size, file_full_name, file_file_name>: Use const.
11918 <file_name_at, file_names>: Add const overload.
11919 * dwarf2/line-header.c (line_header::file_file_name)
11920 (line_header::file_full_name): Update.
11921
c90ec28a
TT
119222020-03-26 Tom Tromey <tom@tromey.com>
11923
11924 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11925 (macro_start_file, consume_improper_spaces)
11926 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11927 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11928 (dwarf_decode_macros): Move to macro.c.
11929 * dwarf2/macro.c: New file.
11930 * dwarf2/macro.h: New file.
11931 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11932
4f44ae6c
TT
119332020-03-26 Tom Tromey <tom@tromey.com>
11934
11935 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11936 method.
11937 * dwarf2/section.c: New method. From
11938 read_indirect_string_at_offset_from.
11939 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11940 (read_indirect_string_at_offset_from): Move to section.c.
11941 (read_indirect_string_at_offset): Rewrite.
11942 (read_indirect_line_string_at_offset): Remove.
11943 (read_indirect_string, read_indirect_line_string)
11944 (dwarf_decode_macro_bytes): Update.
11945
a0194fa8
TT
119462020-03-26 Tom Tromey <tom@tromey.com>
11947
11948 * dwarf2/section.h (struct dwarf2_section_info)
11949 <overload_complaint>: Declare.
11950 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11951 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11952 Rename from dwarf2_section_buffer_overflow_complaint.
11953 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11954 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11955
3d27bbdb
TT
119562020-03-26 Tom Tromey <tom@tromey.com>
11957
11958 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11959 Declare.
11960 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11961 Move from read.c.
11962 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11963 to section.c.
11964
9eac9650
TT
119652020-03-26 Tom Tromey <tom@tromey.com>
11966
11967 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11968
bf80d710
TT
119692020-03-26 Tom Tromey <tom@tromey.com>
11970
11971 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11972 "builder".
11973 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11974 parameter.
11975 (dwarf_decode_macros): Update.
11976
0314b390
TT
119772020-03-26 Tom Tromey <tom@tromey.com>
11978
11979 * dwarf2/read.c (read_attribute_value): Update.
11980 (read_indirect_string_from_dwz): Move to dwz.c; change into
11981 method.
11982 (dwarf_decode_macro_bytes): Update.
11983 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11984 * dwarf2/dwz.c: New file.
11985 * Makefile.in (COMMON_SFILES): Add dwz.c.
11986
9fda78b6
TT
119872020-03-26 Tom Tromey <tom@tromey.com>
11988
11989 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11990 * dwarf2/read.c: Add include.
11991 * dwarf2/index-write.c: Add include.
11992 * dwarf2/index-cache.c: Add include.
11993 * dwarf2/dwz.h: New file.
11994
33aa3c10
TT
119952020-03-25 Tom Tromey <tom@tromey.com>
11996
11997 * compile/compile-object-load.c (get_out_value_type): Mention
11998 correct symbol name in error message.
11999
d503b685
HD
120002020-03-25 Hannes Domani <ssbssa@yahoo.de>
12001
12002 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12003
7b1eff95
TV
120042020-03-25 Tom de Vries <tdevries@suse.de>
12005
12006 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12007 * symmisc.c (dump_symtab_1): Print user and includes fields.
12008 (maintenance_info_symtabs): Same.
12009
dd895392
AB
120102020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12011
12012 PR gdb/25534
12013 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12014 (riscv_regcache_cooked_write): New function.
12015 (riscv_push_dummy_call): Use new function.
12016 (riscv_return_value): Likewise.
12017
5ab2fbf1
SM
120182020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12019
12020 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12021 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12022 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12023 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12024 * infrun.c (follow_fork): Likewise.
12025 (follow_fork_inferior): Likewise.
12026 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12027 * linux-nat.h (class linux_nat_target): Likewise.
12028 * remote.c (class remote_target) <follow_fork>: Likewise.
12029 (remote_target::follow_fork): Likewise.
12030 * target-delegates.c: Re-generate.
12031 * target.c (default_follow_fork): Likewise.
12032 (target_follow_fork): Likewise.
12033 * target.h (struct target_ops) <follow_fork>: Likewise.
12034 (target_follow_fork): Likewise.
12035
a64fafb5
TV
120362020-03-24 Tom de Vries <tdevries@suse.de>
12037
12038 * psymtab.c (maintenance_info_psymtabs): Print user field.
12039
fe26d3a3
TT
120402020-03-20 Tom Tromey <tromey@adacore.com>
12041
12042 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12043 const.
12044 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12045 const.
12046
c884cc46
SM
120472020-03-20 Simon Marchi <simon.marchi@efficios.com>
12048
12049 * ptrace.m4: Don't check for ptrace declaration.
12050 * config.in: Re-generate.
12051 * configure: Re-generate.
12052 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12053 not defined.
12054
1ff700c2
KR
120552020-03-20 Kamil Rytarowski <n54@gmx.com>
12056
12057 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12058 `PTRACE_TYPE_RET'.
12059 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12060 * sparc-nat.c (gdb_ptrace): Likewise.
12061 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12062
f7d4f0b1
TT
120632020-03-20 Tom Tromey <tromey@adacore.com>
12064
12065 * c-exp.y (lex_one_token): Fix assert.
12066
f67210ff
TT
120672020-03-20 Tom Tromey <tromey@adacore.com>
12068
12069 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12070 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12071 strncpy call.
12072
1773be9e
TT
120732020-03-20 Tom Tromey <tromey@adacore.com>
12074
12075 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12076
70304be9
TT
120772020-03-20 Tom Tromey <tromey@adacore.com>
12078
12079 * ada-valprint.c (print_variant_part): Remove parameters; switch
12080 to value-based API.
12081 (print_field_values): Likewise.
12082 (ada_val_print_struct_union): Likewise.
12083 (ada_value_print_1): Update.
12084
9faa006d
KR
120852020-03-20 Kamil Rytarowski <n54@gmx.com>
12086
12087 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12088 nbsd_nat_target instead of inf_ptrace_target.
12089 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12090 nbsd_nat_target.
12091
4a90f062
KR
120922020-03-20 Kamil Rytarowski <n54@gmx.com>
12093
12094 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12095 it to the ptrace call.
12096 * (store_registers): Likewise.
12097
120982020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12099
12100 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12101 it to the ptrace call.
12102 * (store_registers): Likewise.
12103
2d07da27
LM
121042020-03-19 Luis Machado <luis.machado@linaro.org>
12105
12106 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12107 valid, fetch vg value from ptrace.
12108
f09db380
KR
121092020-03-19 Kamil Rytarowski <n54@gmx.com>
12110 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12111 * inf-ptrace.c: Likewise.
12112 * (gdb_ptrace): Add.
12113 * (inf_ptrace_target::resume): Update.
12114 * (inf_ptrace_target::xfer_partial): Likewise.
12115 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12116 * (inf_ptrace_peek_poke): Update.
12117
fcc7376e
KR
121182020-03-19 Kamil Rytarowski <n54@gmx.com>
12119
12120 * x86-bsd-nat.c (gdb_ptrace): New.
12121 * (x86bsd_dr_set): Add new argument `ptid'.
12122 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12123 x86bsd_dr_set_addr): Update.
12124
cada5fc9
AB
121252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12126
12127 * remote.c (remote_target::process_stop_reply): Handle events for
12128 all threads differently.
12129
19a2740f
AB
121302020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12131
12132 * completer.c (completion_tracker::remove_completion): Define new
12133 function.
12134 * completer.h (completion_tracker::remove_completion): Declare new
12135 function.
12136 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12137 when adding a C++ function symbol.
12138
724fd9ba
AB
121392020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12140
12141 * completer.c (completion_tracker::completion_hash_entry): Define
12142 new class.
12143 (advance_to_filename_complete_word_point): Call
12144 recompute_lowest_common_denominator.
12145 (completion_tracker::completion_tracker): Call discard_completions
12146 to setup the hash table.
12147 (completion_tracker::discard_completions): Allow for being called
12148 from the constructor, pass new equal function, and element deleter
12149 when constructing the hash table. Initialise new class member
12150 variables.
12151 (completion_tracker::maybe_add_completion): Remove use of
12152 m_entries_vec, and store more information into m_entries_hash.
12153 (completion_tracker::recompute_lcd_visitor): New function, most
12154 content taken from...
12155 (completion_tracker::recompute_lowest_common_denominator):
12156 ...here, this now just visits each item in the hash calling the
12157 above visitor.
12158 (completion_tracker::build_completion_result): Remove use of
12159 m_entries_vec, call recompute_lowest_common_denominator.
12160 * completer.h (completion_tracker::have_completions): Remove use
12161 of m_entries_vec.
12162 (completion_tracker::completion_hash_entry): Declare new class.
12163 (completion_tracker::recompute_lowest_common_denominator): Change
12164 function signature.
12165 (completion_tracker::recompute_lcd_visitor): Declare new function.
12166 (completion_tracker::m_entries_vec): Delete.
12167 (completion_tracker::m_entries_hash): Initialize to NULL.
12168 (completion_tracker::m_lowest_common_denominator_valid): New
12169 member variable.
12170 (completion_tracker::m_lowest_common_denominator_max_length): New
12171 member variable.
12172
5a82b8a1
KR
121732020-03-17 Kamil Rytarowski <n54@gmx.com>
12174
12175 * regformats/regdef.h: Put reg in gdb namespace.
12176
fb516a69
KR
121772020-03-17 Kamil Rytarowski <n54@gmx.com>
12178
12179 * i386-bsd-nat.c (gdb_ptrace): New.
12180 * (i386bsd_fetch_inferior_registers,
12181 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12182 * (i386bsd_fetch_inferior_registers,
12183 i386bsd_store_inferior_registers) Use gdb_ptrace.
12184
1c0aa1fb
KR
121852020-03-17 Kamil Rytarowski <n54@gmx.com>
12186
12187 * amd64-bsd-nat.c (gdb_ptrace): New.
12188 * (amd64bsd_fetch_inferior_registers,
12189 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12190 * (amd64bsd_fetch_inferior_registers,
12191 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12192
5ccd2fb7
KR
121932020-03-17 Kamil Rytarowski <n54@gmx.com>
12194
12195 * user-regs.c (user_reg::read): Rename to...
12196 (user_reg::xread): ...this.
12197 * (append_user_reg): Rename argument `read' to `xread'.
12198 * (user_reg_add_builtin): Likewise.
12199 * (user_reg_add): Likewise.
12200 * (value_of_user_reg): Likewise.
12201
2108a63a
KR
122022020-03-17 Kamil Rytarowski <n54@gmx.com>
12203
12204 * sparc-nat.c (gdb_ptrace): New.
12205 * sparc-nat.c (sparc_fetch_inferior_registers)
12206 (sparc_store_inferior_registers) Remove obsolete comment.
12207 * sparc-nat.c (sparc_fetch_inferior_registers)
12208 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12209 * sparc-nat.c (sparc_fetch_inferior_registers)
12210 (sparc_store_inferior_registers) Use gdb_ptrace.
12211
a225c9a8
KR
122122020-03-17 Kamil Rytarowski <n54@gmx.com>
12213
12214 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12215 it to the ptrace call.
12216 * sh-nbsd-nat.c (store_registers): Likewise.
12217
98097623
KR
122182020-03-17 Kamil Rytarowski <n54@gmx.com>
12219
12220 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12221 nbsd_nat_target instead of inf_ptrace_target.
12222 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12223 nbsd_nat_target.
12224
9e38d619
KR
122252020-03-17 Kamil Rytarowski <n54@gmx.com>
12226
12227 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12228
a2ecbe9f
KR
122292020-03-17 Kamil Rytarowski <n54@gmx.com>
12230
12231 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12232 <sys/sysctl.h>.
12233 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12234
58990295
TV
122352020-03-17 Tom de Vries <tdevries@suse.de>
12236
12237 PR gdb/23710
12238 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12239 fields.
12240 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12241 fields.
12242 (process_imported_unit_die): Skip import of c++ CUs.
12243
771dd3a8
TT
122442020-03-16 Tom Tromey <tom@tromey.com>
12245
12246 * p-valprint.c (pascal_object_print_value): Initialize
12247 base_value.
12248
817a7585
AK
122492020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12250 Shahab Vahedi <shahab@synopsys.com>
12251
12252 * Makefile.in: Add arch/arc.o
12253 * configure.tgt: Likewise.
12254 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12255 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12256 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12257 * arc-tdep.h (arc_read_description): Add proto type.
12258 * arch/arc.c: New file.
12259 * arch/arc.h: Likewise.
12260 * features/Makefile: Replace old target descriptions with new.
12261 * features/arc-arcompact.c: Remove.
12262 * features/arc-arcompact.xml: Likewise.
12263 * features/arc-v2.c: Likewise
12264 * features/arc-v2.xml: Likewise
12265 * features/arc/aux-arcompact.xml: New file.
12266 * features/arc/aux-v2.xml: Likewise.
12267 * features/arc/core-arcompact.xml: Likewise.
12268 * features/arc/core-v2.xml: Likewise.
12269 * features/arc/aux-arcompact.c: Generate.
12270 * features/arc/aux-v2.c: Likewise.
12271 * features/arc/core-arcompact.c: Likewise.
12272 * features/arc/core-v2.c: Likewise.
12273 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12274
67430cd0
TT
122752020-03-16 Tom Tromey <tromey@adacore.com>
12276
12277 PR gdb/25663:
12278 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12279 putting value into bcache.
12280
30efb6c7
SM
122812020-03-16 Simon Marchi <simon.marchi@efficios.com>
12282
12283 PR gdb/21500
12284 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12285 to...
12286 (amd64_windows_init_abi_common): ... this. Don't set size of
12287 long type.
12288 (amd64_windows_init_abi): New function.
12289 (amd64_cygwin_init_abi): New function.
12290 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12291 the Cygwin OS ABI.
12292 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12293 comment.
12294
8db52437
SM
122952020-03-16 Simon Marchi <simon.marchi@efficios.com>
12296
12297 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12298 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12299 (pe_import_directory_entry): New struct type.
12300 (is_linked_with_cygwin_dll): New function.
12301 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12302 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12303 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12304
5982a56a
SM
123052020-03-16 Simon Marchi <simon.marchi@efficios.com>
12306
12307 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12308 i386_cygwin_core_osabi_sniffer.
12309
7a1998df
SM
123102020-03-16 Simon Marchi <simon.marchi@efficios.com>
12311
12312 * i386-cygwin-tdep.c: Rename to...
12313 * i386-windows-tdep.c: ... this.
12314 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12315 i386-windows-tdep.c.
12316 * configure.tgt: Likewise.
12317
053205cc
SM
123182020-03-16 Simon Marchi <simon.marchi@efficios.com>
12319
12320 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12321 * osabi.c (gdb_osabi_names): Add "Windows".
12322 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12323 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12324 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12325 i386_cygwin_osabi_sniffer.
12326 (_initialize_i386_cygwin_tdep): Register OS ABI
12327 GDB_OSABI_WINDOWS for i386.
12328 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12329 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12330 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12331 for x86-64.
12332 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12333 when the target matches '*-*-mingw*'.
12334
fe4b2ee6
SM
123352020-03-16 Simon Marchi <simon.marchi@efficios.com>
12336
12337 * defs.h (enum gdb_osabi): Move to...
12338 * osabi.h (enum gdb_osabi): ... here.
12339 * gdbarch.sh: Include osabi.h in gdbarch.h.
12340 * gdbarch.h: Re-generate.
12341
cb9b645d
SM
123422020-03-16 Simon Marchi <simon.marchi@efficios.com>
12343
12344 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12345 function.
12346 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12347
3293bbaf
TT
123482020-03-14 Tom Tromey <tom@tromey.com>
12349
12350 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12351 for C++.
12352 (c_type_print_modifier): Likewise. Add "language" parameter.
12353 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12354 (c_type_print_base_1): Update.
12355 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12356 constants.
12357 * type-stack.c (type_stack::insert): Handle tp_atomic and
12358 tp_restrict.
12359 (type_stack::follow_type_instance_flags): Likewise.
12360 (type_stack::follow_types): Likewise. Merge type-following code.
12361 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12362 (space_identifier, cv_with_space_id)
12363 (const_or_volatile_or_space_identifier_noopt)
12364 (const_or_volatile_or_space_identifier): Remove.
12365 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12366 rules.
12367 (ptr_operator, typebase): Update.
12368 (enum token_flag) <FLAG_C>: New constant.
12369 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12370 "_Atomic".
12371 (lex_one_token): Handle FLAG_C.
12372
154151a6
KR
123732020-03-14 Kamil Rytarowski <n54@gmx.com>
12374
12375 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12376 it to the ptrace call.
12377 * m68k-bsd-nat.c (store_registers): Likewise.
12378
bc107784
KR
123792020-03-14 Kamil Rytarowski <n54@gmx.com>
12380
12381 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12382 gdb_byte *.
12383 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12384 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12385 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12386
01a80117
KR
123872020-03-14 Kamil Rytarowski <n54@gmx.com>
12388
12389 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12390 nbsd_nat_target instead of inf_ptrace_target.
12391 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12392 nbsd_nat_target.
12393
f90280ca
KR
123942020-03-14 Kamil Rytarowski <n54@gmx.com>
12395
12396 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12397 register_t.
12398
6def66f1
KR
123992020-03-14 Kamil Rytarowski <n54@gmx.com>
12400
12401 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12402 it to the ptrace call.
12403 * alpha-bsd-nat.c (store_registers): Likewise.
12404
66eaca97
KR
124052020-03-14 Kamil Rytarowski <n54@gmx.com>
12406
12407 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12408 includes.
12409 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12410 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12411 fill_fpregset): Likewise.
12412
4fed520b
KR
124132020-03-14 Kamil Rytarowski <n54@gmx.com>
12414
12415 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12416 nbsd_nat_target instead of inf_ptrace_target.
12417 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12418 nbsd_nat_target.
12419
2190cf06
KR
124202020-03-14 Kamil Rytarowski <n54@gmx.com>
12421
12422 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12423 register_t.
12424
75c56d3d
KR
124252020-03-14 Kamil Rytarowski <n54@gmx.com>
12426
12427 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12428 it to the ptrace call.
12429 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12430 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12431 * arm-nbsd-nat.c (store_register): Likewise.
12432 * arm-nbsd-nat.c (store_regs): Likewise.
12433 * arm-nbsd-nat.c (store_fp_register): Likewise.
12434 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12435
6018d381
KR
124362020-03-14 Kamil Rytarowski <n54@gmx.com>
12437
12438 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12439 nbsd_nat_target instead of inf_ptrace_target.
12440 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12441 nbsd_nat_target.
12442
013f99f0
KR
124432020-03-14 Kamil Rytarowski <n54@gmx.com>
12444
12445 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12446 it to the ptrace call.
12447 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12448
12753073
KR
124492020-03-14 Kamil Rytarowski <n54@gmx.com>
12450
6227b330
KR
12451 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12452 it to the ptrace call.
12453 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12454
124552020-03-14 Kamil Rytarowski <n54@gmx.com>
12456
12457 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12458 gdb_byte *.
12753073
KR
12459 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12460
d5be5fa4
KR
124612020-03-14 Kamil Rytarowski <n54@gmx.com>
12462
12463 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12464 instead of inf_ptrace_target.
12465 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12466 nbsd_nat_target.
12467
8110f842
KR
124682020-03-14 Kamil Rytarowski <n54@gmx.com>
12469
12470 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12471 register_t.
12472
52feded7
KR
124732020-03-14 Kamil Rytarowski <n54@gmx.com>
12474
12475 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12476 register_t.
12477
25567eee
KR
124782020-03-14 Kamil Rytarowski <n54@gmx.com>
12479
12480 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12481 register_t.
12482
426a9c18
TT
124832020-03-13 Tom Tromey <tom@tromey.com>
12484
12485 * value.h (val_print): Don't declare.
12486 * valprint.h (val_print_array_elements)
12487 (val_print_scalar_formatted, generic_val_print): Don't declare.
12488 * valprint.c (generic_val_print_array): Take a struct value.
12489 (generic_val_print_ptr, generic_val_print_memberptr)
12490 (generic_val_print_bool, generic_val_print_int)
12491 (generic_val_print_char, generic_val_print_complex)
12492 (generic_val_print): Remove.
12493 (generic_value_print): Update.
12494 (do_val_print): Remove unused parameters. Don't call
12495 la_val_print.
12496 (val_print): Remove.
12497 (common_val_print): Update. Don't call value_check_printable.
12498 (val_print_scalar_formatted, val_print_array_elements): Remove.
12499 * rust-lang.c (rust_val_print): Remove.
12500 (rust_language_defn): Update.
12501 * p-valprint.c (pascal_val_print): Remove.
12502 (pascal_value_print_inner): Update.
12503 (pascal_object_print_val_fields, pascal_object_print_val):
12504 Remove.
12505 (pascal_object_print_static_field): Update.
12506 * p-lang.h (pascal_val_print): Don't declare.
12507 * p-lang.c (pascal_language_defn): Update.
12508 * opencl-lang.c (opencl_language_defn): Update.
12509 * objc-lang.c (objc_language_defn): Update.
12510 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12511 * m2-lang.h (m2_val_print): Don't declare.
12512 * m2-lang.c (m2_language_defn): Update.
12513 * language.h (struct language_defn) <la_val_print>: Remove.
12514 * language.c (unk_lang_value_print_inner): Rename. Change
12515 argument types.
12516 (unknown_language_defn, auto_language_defn): Update.
12517 * go-valprint.c (go_val_print): Remove.
12518 * go-lang.h (go_val_print): Don't declare.
12519 * go-lang.c (go_language_defn): Update.
12520 * f-valprint.c (f_val_print): Remove.
12521 * f-lang.h (f_value_print): Don't declare.
12522 * f-lang.c (f_language_defn): Update.
12523 * d-valprint.c (d_val_print): Remove.
12524 * d-lang.h (d_value_print): Don't declare.
12525 * d-lang.c (d_language_defn): Update.
12526 * cp-valprint.c (cp_print_value_fields)
12527 (cp_print_value_fields_rtti, cp_print_value): Remove.
12528 (cp_print_static_field): Update.
12529 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12530 (c_val_print_struct, c_val_print_union, c_val_print_int)
12531 (c_val_print_memberptr, c_val_print): Remove.
12532 * c-lang.h (c_val_print_array, cp_print_value_fields)
12533 (cp_print_value_fields_rtti): Don't declare.
12534 * c-lang.c (c_language_defn, cplus_language_defn)
12535 (asm_language_defn, minimal_language_defn): Update.
12536 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12537 (ada_val_print_enum): Take a struct value.
12538 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12539 (ada_val_print): Remove.
12540 (ada_value_print_1): Update.
12541 (printable_val_type): Remove.
12542 * ada-lang.h (ada_val_print): Don't declare.
12543 * ada-lang.c (ada_language_defn): Update.
12544
42331a1e
TT
125452020-03-13 Tom Tromey <tom@tromey.com>
12546
12547 * valprint.c (do_val_print): Update.
12548 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12549 a struct value.
12550 (value_to_value_object_no_release): Declare.
12551 * python/py-value.c (value_to_value_object_no_release): New
12552 function.
12553 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12554 struct value.
12555 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12556 function.
12557 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12558 a struct value.
12559 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12560 Declare.
12561 (gdbscm_apply_val_pretty_printer): Take a struct value.
12562 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12563 value.
12564 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12565 value.
12566 * extension-priv.h (struct extension_language_ops)
12567 <apply_val_pretty_printer>: Take a struct value.
12568 * cp-valprint.c (cp_print_value): Create a struct value.
12569 (cp_print_value): Update.
12570
3a916a97
TT
125712020-03-13 Tom Tromey <tom@tromey.com>
12572
12573 * ada-valprint.c (print_field_values): Call common_val_print.
12574
b59eac37
TT
125752020-03-13 Tom Tromey <tom@tromey.com>
12576
12577 * ada-valprint.c (val_print_packed_array_elements): Remove
12578 bitoffset and val parameters. Call common_val_print.
12579 (ada_val_print_string): Remove offset, address, and original_value
12580 parameters.
12581 (ada_val_print_array): Update.
12582 (ada_value_print_array): New function.
12583 (ada_value_print_1): Call it.
12584
03371129
TT
125852020-03-13 Tom Tromey <tom@tromey.com>
12586
12587 * ada-valprint.c (ada_value_print): Use common_val_print.
12588
2e088f8b
TT
125892020-03-13 Tom Tromey <tom@tromey.com>
12590
12591 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12592
39ef85a8
TT
125932020-03-13 Tom Tromey <tom@tromey.com>
12594
12595 * ada-valprint.c (ada_value_print_num): New function.
12596 (ada_value_print_1): Use it.
12597
b9fa6e07
TT
125982020-03-13 Tom Tromey <tom@tromey.com>
12599
12600 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12601
416595d6
TT
126022020-03-13 Tom Tromey <tom@tromey.com>
12603
12604 * ada-valprint.c (ada_value_print_ptr): New function.
12605 (ada_value_print_1): Use it.
12606
5b5e15ec
TT
126072020-03-13 Tom Tromey <tom@tromey.com>
12608
12609 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12610 call common_val_print.
12611 (ada_val_print_1): Update.
12612 (ada_value_print_1): New function.
12613 (ada_value_print_inner): Rewrite.
12614
fbf54e75
TT
126152020-03-13 Tom Tromey <tom@tromey.com>
12616
12617 * cp-valprint.c (cp_print_value_fields): Update.
12618 (cp_print_value): New function.
12619
64b653ca
TT
126202020-03-13 Tom Tromey <tom@tromey.com>
12621
12622 * m2-valprint.c (m2_value_print_inner): Use
12623 cp_print_value_fields.
12624 * cp-valprint.c (cp_print_value_fields): New function.
12625 * c-valprint.c (c_value_print_struct): New function.
12626 (c_value_print_inner): Use c_value_print_struct.
12627 * c-lang.h (cp_print_value_fields): Declare.
12628
6999f067
TT
126292020-03-13 Tom Tromey <tom@tromey.com>
12630
12631 * c-valprint.c (c_value_print_array): New function.
12632 (c_value_print_inner): Use it.
12633
ce80b8bd
TT
126342020-03-13 Tom Tromey <tom@tromey.com>
12635
12636 * c-valprint.c (c_value_print_memberptr): New function.
12637 (c_value_print_inner): Use it.
12638
2faac269
TT
126392020-03-13 Tom Tromey <tom@tromey.com>
12640
12641 * c-valprint.c (c_value_print_int): New function.
12642 (c_value_print_inner): Use it.
12643
da3e2c29
TT
126442020-03-13 Tom Tromey <tom@tromey.com>
12645
12646 * c-valprint.c (c_value_print_ptr): New function.
12647 (c_value_print_inner): Use it.
12648
50836231
TT
126492020-03-13 Tom Tromey <tom@tromey.com>
12650
12651 * c-valprint.c (c_value_print_inner): Rewrite.
12652
4f412b6e
TT
126532020-03-13 Tom Tromey <tom@tromey.com>
12654
12655 * valprint.c (generic_value_print_complex): New function.
12656 (generic_value_print): Use it.
12657
f5354008
TT
126582020-03-13 Tom Tromey <tom@tromey.com>
12659
12660 * valprint.c (generic_val_print_float): Don't call
12661 val_print_scalar_formatted.
12662 (generic_val_print, generic_value_print): Update.
12663
3eec3b05
TT
126642020-03-13 Tom Tromey <tom@tromey.com>
12665
12666 * valprint.c (generic_value_print_char): New function
12667 (generic_value_print): Use it.
12668
fdddfccb
TT
126692020-03-13 Tom Tromey <tom@tromey.com>
12670
12671 * valprint.c (generic_value_print_int): New function.
12672 (generic_value_print): Use it.
12673
6dde7521
TT
126742020-03-13 Tom Tromey <tom@tromey.com>
12675
12676 * valprint.c (generic_value_print_bool): New function.
12677 (generic_value_print): Use it.
12678
4112d2e6
TT
126792020-03-13 Tom Tromey <tom@tromey.com>
12680
12681 * valprint.c (generic_val_print_func): Simplify.
12682 (generic_val_print, generic_value_print): Update.
12683
65786af6
TT
126842020-03-13 Tom Tromey <tom@tromey.com>
12685
12686 * valprint.c (generic_val_print_flags): Remove.
12687 (generic_val_print, generic_value_print): Update.
12688 (val_print_type_code_flags): Add original_value parameter.
12689
40f3ce18
TT
126902020-03-13 Tom Tromey <tom@tromey.com>
12691
12692 * valprint.c (generic_val_print): Update.
12693 (generic_value_print): Update.
12694 * valprint.c (generic_val_print_enum): Don't call
12695 val_print_scalar_formatted.
12696
2a5b130b
TT
126972020-03-13 Tom Tromey <tom@tromey.com>
12698
12699 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12700 * valprint.c (generic_value_print_ptr): New function.
12701
abc66ce9
TT
127022020-03-13 Tom Tromey <tom@tromey.com>
12703
12704 * valprint.c (generic_value_print): Rewrite.
12705
07a32858
TT
127062020-03-13 Tom Tromey <tom@tromey.com>
12707
12708 * p-valprint.c (pascal_object_print_value_fields)
12709 (pascal_object_print_value): New functions.
12710
64d64d3a
TT
127112020-03-13 Tom Tromey <tom@tromey.com>
12712
12713 * p-valprint.c (pascal_value_print_inner): Rewrite.
12714
6a95a1f5
TT
127152020-03-13 Tom Tromey <tom@tromey.com>
12716
12717 * f-valprint.c (f_value_print_innner): Rewrite.
12718
59fcdac6
TT
127192020-03-13 Tom Tromey <tom@tromey.com>
12720
12721 * m2-valprint.c (m2_print_unbounded_array): New overload.
12722 (m2_print_unbounded_array): Update.
12723 (m2_print_array_contents): Take a struct value.
12724 (m2_value_print_inner): Rewrite.
12725
d133c3e1
TT
127262020-03-13 Tom Tromey <tom@tromey.com>
12727
12728 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12729 (d_value_print_inner): New function.
12730 * d-lang.h (d_value_print_inner): Declare.
12731 * d-lang.c (d_language_defn): Use d_value_print_inner.
12732
23b0f06b
TT
127332020-03-13 Tom Tromey <tom@tromey.com>
12734
12735 * go-valprint.c (go_value_print_inner): New function.
12736 * go-lang.h (go_value_print_inner): Declare.
12737 * go-lang.c (go_language_defn): Use go_value_print_inner.
12738
5f56f7cb
TT
127392020-03-13 Tom Tromey <tom@tromey.com>
12740
12741 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12742 API.
12743 (rust_val_print): Rewrite.
12744 (rust_value_print_inner): New function, from rust_val_print.
12745 (rust_language_defn): Use rust_value_print_inner.
12746
26792ee0
TT
127472020-03-13 Tom Tromey <tom@tromey.com>
12748
12749 * ada-valprint.c (ada_value_print_inner): New function.
12750 * ada-lang.h (ada_value_print_inner): Declare.
12751 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12752
24051bbe
TT
127532020-03-13 Tom Tromey <tom@tromey.com>
12754
12755 * f-valprint.c (f_value_print_innner): New function.
12756 * f-lang.h (f_value_print_innner): Declare.
12757 * f-lang.c (f_language_defn): Use f_value_print_innner.
12758
c0941be6
TT
127592020-03-13 Tom Tromey <tom@tromey.com>
12760
12761 * p-valprint.c (pascal_value_print_inner): New function.
12762 * p-lang.h (pascal_value_print_inner): Declare.
12763 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12764
62c4663d
TT
127652020-03-13 Tom Tromey <tom@tromey.com>
12766
12767 * m2-valprint.c (m2_value_print_inner): New function.
12768 * m2-lang.h (m2_value_print_inner): Declare.
12769 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12770
62182190
TT
127712020-03-13 Tom Tromey <tom@tromey.com>
12772
12773 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12774 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12775 * c-valprint.c (c_value_print_inner): New function.
12776 * c-lang.h (c_value_print_inner): Declare.
12777 * c-lang.c (c_language_defn, cplus_language_defn)
12778 (asm_language_defn, minimal_language_defn): Use
12779 c_value_print_inner.
12780
1e592a8a
TT
127812020-03-13 Tom Tromey <tom@tromey.com>
12782
12783 * p-valprint.c (pascal_object_print_value_fields): Now static.
12784 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12785
7fe471e9
TT
127862020-03-13 Tom Tromey <tom@tromey.com>
12787
12788 * c-valprint.c (c_val_print_array): Simplify.
12789
d121c6ce
TT
127902020-03-13 Tom Tromey <tom@tromey.com>
12791
12792 * valprint.c (value_print_array_elements): New function.
12793 * valprint.h (value_print_array_elements): Declare.
12794
4dba70ee
TT
127952020-03-13 Tom Tromey <tom@tromey.com>
12796
12797 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12798 * mips-tdep.c (mips_print_register): Use
12799 value_print_scalar_formatted.
12800
4f9ae810
TT
128012020-03-13 Tom Tromey <tom@tromey.com>
12802
12803 * valprint.h (value_print_scalar_formatted): Declare.
12804 * valprint.c (value_print_scalar_formatted): New function.
12805
156bfec9
TT
128062020-03-13 Tom Tromey <tom@tromey.com>
12807
12808 * valprint.h (generic_value_print): Declare.
12809 * valprint.c (generic_value_print): New function.
12810
2b4e573d
TT
128112020-03-13 Tom Tromey <tom@tromey.com>
12812
12813 * valprint.c (do_val_print): Call la_value_print_inner, if
12814 available.
12815 * rust-lang.c (rust_language_defn): Update.
12816 * p-lang.c (pascal_language_defn): Update.
12817 * opencl-lang.c (opencl_language_defn): Update.
12818 * objc-lang.c (objc_language_defn): Update.
12819 * m2-lang.c (m2_language_defn): Update.
12820 * language.h (struct language_defn) <la_value_print_inner>: New
12821 member.
12822 * language.c (unknown_language_defn, auto_language_defn): Update.
12823 * go-lang.c (go_language_defn): Update.
12824 * f-lang.c (f_language_defn): Update.
12825 * d-lang.c (d_language_defn): Update.
12826 * c-lang.c (c_language_defn, cplus_language_defn)
12827 (asm_language_defn, minimal_language_defn): Update.
12828 * ada-lang.c (ada_language_defn): Update.
12829
a1f6a07c
TT
128302020-03-13 Tom Tromey <tom@tromey.com>
12831
12832 * c-valprint.c (c_value_print): Use common_val_print.
12833
410cf315
TT
128342020-03-13 Tom Tromey <tom@tromey.com>
12835
12836 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12837
72a45c93
TT
128382020-03-13 Tom Tromey <tom@tromey.com>
12839
12840 * f-valprint.c (f77_print_array_1, f_val_print): Use
12841 common_val_print.
12842
040f66bd
TT
128432020-03-13 Tom Tromey <tom@tromey.com>
12844
12845 * riscv-tdep.c (riscv_print_one_register_info): Use
12846 common_val_print.
12847
a6e05a6c
TT
128482020-03-13 Tom Tromey <tom@tromey.com>
12849
12850 * mi/mi-main.c (output_register): Use common_val_print.
12851
3444c526
TT
128522020-03-13 Tom Tromey <tom@tromey.com>
12853
12854 * infcmd.c (default_print_one_register_info): Use
12855 common_val_print.
12856
c2a44efe
TT
128572020-03-13 Tom Tromey <tom@tromey.com>
12858
12859 * valprint.h (common_val_print_checked): Declare.
12860 * valprint.c (common_val_print_checked): New function.
12861 * stack.c (print_frame_arg): Use common_val_print_checked.
12862
b0c26e99
TT
128632020-03-13 Tom Tromey <tom@tromey.com>
12864
12865 * valprint.c (do_val_print): New function, from val_print.
12866 (val_print): Use do_val_print.
12867 (common_val_print): Use do_val_print.
12868
ce3acbe9
TT
128692020-03-13 Tom Tromey <tom@tromey.com>
12870
12871 * valprint.c (value_print): Use scoped_value_mark.
12872
96c7f873
TV
128732020-03-13 Tom de Vries <tdevries@suse.de>
12874
12875 PR symtab/25646
12876 * psymtab.c (partial_symtab::partial_symtab): Don't set
12877 globals_offset and statics_offset. Push element onto
12878 current_global_psymbols and current_static_psymbols stacks.
12879 (concat): New function.
12880 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12881 element from current_global_psymbols and current_static_psymbols
12882 stacks. Concat popped elements to global_psymbols and
12883 static_symbols.
12884 (add_psymbol_to_list): Use current_global_psymbols and
12885 current_static_psymbols stacks.
12886 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12887 current_static_psymbols fields.
12888
6ba0a321
CB
128892020-03-12 Christian Biesinger <cbiesinger@google.com>
12890
12891 * corelow.c (sniff_core_bfd): Remove.
12892 (class core_target) <m_core_vec>: Remove.
12893 (core_target::core_target): Update.
12894 (core_file_fns): Remove.
12895 (deprecated_add_core_fns): Remove.
12896 (default_core_sniffer): Remove.
12897 (sniff_core_bfd): Remove.
12898 (default_check_format): Remove.
12899 (gdb_check_format): Remove.
12900 (core_target_open): Update.
12901 (core_target::get_core_register_section): Update.
12902 (get_core_registers_cb): Update.
12903 (core_target::fetch_registers): Update.
12904 * gdbcore.h (struct core_fns): Remove.
12905 (deprecated_add_core_fns): Remove.
12906 (default_core_sniffer): Remove.
12907 (default_check_format): Remove.
12908
227031b2
TT
129092020-03-12 Tom Tromey <tom@tromey.com>
12910
12911 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12912 CORE_ADDR.
12913 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12914
53807e9f
TT
129152020-03-12 Tom Tromey <tom@tromey.com>
12916
12917 * remote.c (remote_target::download_tracepoint)
12918 (remote_target::enable_tracepoint)
12919 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12920 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12921 sprintf_vma.
12922
64f25102
TT
129232020-03-12 Tom Tromey <tom@tromey.com>
12924
12925 * symfile-mem.c: Update CORE_ADDR size assert.
12926
272cd5a3
SM
129272020-03-12 Simon Marchi <simon.marchi@efficios.com>
12928
12929 * selftest.m4: Move to gdbsupport/.
12930 * acinclude.m4: Update path to selftest.m4.
12931
74cd3f9d
SM
129322020-03-12 Simon Marchi <simon.marchi@efficios.com>
12933
12934 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12935 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12936 gdbarch-selfselftests.c and selftest-arch.c.
12937 (SUBDIR_UNITTESTS_OBS): Rename to...
12938 (SELFTESTS_OBS): ... this.
12939 (COMMON_SFILES): Remove disasm-selftests.c and
12940 gdbarch-selftests.c.
12941 * configure.ac: Don't add selftest-arch.{c,o} to
12942 CONFIG_{SRCS,OBS}.
12943 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12944 preprocessor conditions.
12945
db6878ac
SM
129462020-03-12 Simon Marchi <simon.marchi@efficios.com>
12947
12948 * configure.ac: Don't source bfd/development.sh.
12949 * selftest.m4: Modify comment.
12950 * configure: Re-generate.
12951
4d696a5c
SM
129522020-03-12 Simon Marchi <simon.marchi@efficios.com>
12953
12954 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12955 not "true" or "false".
12956 * configure: Re-generate.
12957
8dd8e1c7
CB
129582020-03-12 Christian Biesinger <cbiesinger@google.com>
12959
12960 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12961 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12962 renamed to arm_nbsd_supply_gregset.
12963 (fetch_register): Update to call arm_nbsd_supply_gregset.
12964 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12965 (arm_netbsd_nat_target::fetch_registers): Update.
12966 (fetch_elfcore_registers): Removed.
12967 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12968 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12969 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12970 not require NetBSD system headers.
12971 (arm_nbsd_regset): New struct.
12972 (arm_nbsd_iterate_over_regset_sections): New function.
12973 (arm_netbsd_init_abi_common): Updated to call
12974 set_gdbarch_iterate_over_regset_sections.
12975 * arm-nbsd-tdep.h: New file.
12976
dd69bf7a
KB
129772020-03-11 Kevin Buettner <kevinb@redhat.com>
12978
12979 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12980 recursion.
12981
a0761e34
SM
129822020-03-11 Simon Marchi <simon.marchi@efficios.com>
12983
12984 * configure: Re-generate.
12985
e7a82140
TT
129862020-03-11 Tom Tromey <tromey@adacore.com>
12987
12988 * ada-typeprint.c (print_choices): Fix comment.
12989
dcc050c8
AB
129902020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12991
12992 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12993 previous item in the list, when the list has no items.
12994
1c33af77
TV
129952020-03-11 Tom de Vries <tdevries@suse.de>
12996
12997 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12998 PROP_LOCLIST handling code.
12999
8c95582d
AB
130002020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13001
13002 * buildsym-legacy.c (record_line): Pass extra parameter to
13003 record_line.
13004 * buildsym.c (buildsym_compunit::record_line): Take an extra
13005 parameter, reduce duplication in the line table, and record the
13006 is_stmt flag in the line table.
13007 * buildsym.h (buildsym_compunit::record_line): Add extra
13008 parameter.
13009 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13010 non-statement lines.
13011 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13012 this to the symtab builder.
13013 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13014 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13015 through to dwarf_record_line_1.
13016 * infrun.c (process_event_stop_test): When stepping, don't stop at
13017 a non-statement instruction, and only refresh the step info when
13018 we land in the middle of a line's range. Also add an extra
13019 comment.
13020 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13021 field.
13022 * record-btrace.c (btrace_find_line_range): Only record lines
13023 marked as is-statement.
13024 * stack.c (frame_show_address): Show the frame address if we are
13025 in a non-statement sal.
13026 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13027 (maintenance_print_one_line_table): Print a header for the is_stmt
13028 column, and include is_stmt information in the output.
13029 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13030 preference to non-statements.
13031 (find_pcs_for_symtab_line): Prefer is-statement entries.
13032 (find_line_common): Likewise.
13033 * symtab.h (struct linetable_entry): Add is_stmt field.
13034 (struct symtab_and_line): Likewise.
13035 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13036 arranging the line table.
13037
e4003a34
TV
130382020-03-07 Tom de Vries <tdevries@suse.de>
13039
13040 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13041 DIE.
13042
e8932576
TT
130432020-03-07 Tom Tromey <tom@tromey.com>
13044
13045 * valops.c (value_literal_complex): Remove obsolete comment.
13046 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13047 comment.
13048
29734269
SM
130492020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13050
13051 * infrun.h: Forward-declare thread_info.
13052 (set_step_info): Add thread_info parameter, add doc.
13053 * infrun.c (set_step_info): Add thread_info parameter, move doc
13054 to header.
13055 * infrun.c (process_event_stop_test): Pass thread to
13056 set_step_info call.
13057 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13058 set_step_info.
13059 (prepare_one_step): Add thread_info parameter, pass it to
13060 set_step_frame and prepare_one_step (recursive) call.
13061 (step_1): Pass thread to prepare_one_step call.
13062 (step_command_fsm::should_stop): Pass thread to
13063 prepare_one_step.
13064 (until_next_fsm): Pass thread to set_step_frame call.
13065 (finish_command): Pass thread to set_step_info call.
13066
b7d64b29
HD
130672020-03-06 Hannes Domani <ssbssa@yahoo.de>
13068
13069 * windows-tdep.c (windows_solib_create_inferior_hook):
13070 Check if inferior is running.
13071
09f2921c
TV
130722020-03-06 Tom de Vries <tdevries@suse.de>
13073
13074 * NEWS: Fix "the the".
13075 * ctfread.c: Same.
13076
fd760e79
TV
130772020-03-06 Tom de Vries <tdevries@suse.de>
13078
13079 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13080
20ea4a60
AB
130812020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13082
13083 * .dir-locals.el: Add a comment referencing the other copies of
13084 this file.
13085
0afbabf0
JB
130862020-03-05 John Baldwin <jhb@FreeBSD.org>
13087
13088 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13089 psargs.
13090
842806cb
TBA
130912020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13092
13093 * .gitattributes: New file.
13094
be1e3d3e
TT
130952020-03-04 Tom Tromey <tom@tromey.com>
13096
13097 * symmisc.c (print_symbol_bcache_statistics)
13098 (print_objfile_statistics): Update.
13099 * symfile.c (allocate_symtab): Use intern.
13100 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13101 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13102 macro_cache>: Remove.
13103 <string_cache>: New member.
13104 (struct objfile) <intern>: New methods.
13105 * elfread.c (elf_symtab_read): Use intern.
13106 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13107 (dwarf2_compute_name, dwarf2_physname)
13108 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13109 names.
13110 (guess_partial_die_structure_name): Update.
13111 (partial_die_info::fixup): Intern name.
13112 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13113 name.
13114 (dwarf2_name): Intern name. Update.
13115 * buildsym.c (buildsym_compunit::get_macro_table): Use
13116 string_cache.
13117
4e7625fd
TT
131182020-03-04 Tom Tromey <tom@tromey.com>
13119
13120 * jit.c (bfd_open_from_target_memory): Make "target" const.
13121 * corefile.c (gnutarget): Now const.
13122 * gdbcore.h (gnutarget): Now const.
13123
46f9f931
HD
131242020-03-04 Hannes Domani <ssbssa@yahoo.de>
13125
13126 * NEWS: Mention support for WOW64 processes.
13127 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13128 (amd64_windows_segment_register_p): Remove static.
13129 (_initialize_amd64_windows_nat): Update.
13130 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13131 * i386-windows-nat.c (context_offset): Update.
13132 (i386_mappings): Rename and remove static.
13133 (i386_windows_segment_register_p): Remove static.
13134 (_initialize_i386_windows_nat): Update.
13135 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13136 (STATUS_WX86_SINGLE_STEP): New macro.
13137 (EnumProcessModulesEx): New macro.
13138 (Wow64SuspendThread): New macro.
13139 (Wow64GetThreadContext): New macro.
13140 (Wow64SetThreadContext): New macro.
13141 (Wow64GetThreadSelectorEntry): New macro.
13142 (windows_set_context_register_offsets): Add static.
13143 (windows_set_segment_register_p): Likewise.
13144 (windows_add_thread): Adapt for WOW64 processes.
13145 (windows_fetch_one_register): Likewise.
13146 (windows_nat_target::fetch_registers): Likewise.
13147 (windows_store_one_register): Likewise.
13148 (display_selector): Likewise.
13149 (display_selectors): Likewise.
13150 (handle_exception): Likewise.
13151 (windows_continue): Likewise.
13152 (windows_nat_target::resume): Likewise.
13153 (windows_add_all_dlls): Likewise.
13154 (do_initial_windows_stuff): Likewise.
13155 (windows_nat_target::attach): Likewise.
13156 (windows_get_exec_module_filename): Likewise.
13157 (windows_nat_target::create_inferior): Likewise.
13158 (windows_xfer_siginfo): Likewise.
13159 (_initialize_loadable): Initialize Wow64SuspendThread,
13160 Wow64GetThreadContext, Wow64SetThreadContext,
13161 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13162 * windows-nat.h (windows_set_context_register_offsets):
13163 Remove declaration.
13164 (windows_set_segment_register_p): Likewise.
13165 (i386_windows_segment_register_p): Add declaration.
13166 (amd64_windows_segment_register_p): Likewise.
13167
440cf44e
LM
131682020-03-04 Luis Machado <luis.machado@linaro.org>
13169
13170 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13171 in "info registers" for AArch64/ARM.
13172
13173 The change caused "info registers" to not print GPR's.
13174
13175 gdb/ChangeLog:
13176
13177 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13178
13179 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13180 when reg->group is empty and reggroup is not.
13181
1009d92f
TT
131822020-03-03 Tom Tromey <tromey@adacore.com>
13183
13184 * dwarf2/frame.c (struct dwarf2_frame_cache)
13185 <checked_tailcall_bottom, entry_cfa_sp_offset,
13186 entry_cfa_sp_offset_p>: Remove members.
13187 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13188 (dwarf2_frame_prev_register): Don't call
13189 dwarf2_tailcall_sniffer_first.
13190 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13191 * frame-unwind.c (add_unwinder): New fuction.
13192 (frame_unwind_init): Use it. Add tailcall unwinder.
13193
5e5d66b6
AB
131942020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13195 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13196
13197 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13198 value should be printed as true.
13199
584cf46d
HD
132002020-03-03 Hannes Domani <ssbssa@yahoo.de>
13201
13202 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13203 (windows_init_abi): Set and use windows_so_ops.
13204
7b973adc
SDJ
132052020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13206
13207 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13208 when verifying if dealing with a convenience variable.
13209
bb7b70ab
LM
132102020-03-03 Luis Machado <luis.machado@linaro.org>
13211
13212 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13213
9822cb57
SM
132142020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13215
13216 * infrun.c (gdbarch_supports_displaced_stepping): New.
13217 (use_displaced_stepping): Break up conditions in smaller pieces.
13218 Use gdbarch_supports_displaced_stepping.
13219 (displaced_step_prepare_throw): Use
13220 gdbarch_supports_displaced_stepping.
13221
63e163f2
AB
132222020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13223
13224 * NEWS: Mention new behaviour of the history filename.
13225 * top.c (write_history_p): Add comment.
13226 (show_write_history_p): Add header comment, give a different
13227 message when history writing is on, but the history filename is
13228 empty.
13229 (history_filename): Add comment.
13230 (history_filename_empty): New function.
13231 (show_history_filename): Add header comment, give a different
13232 message when the filename is empty.
13233 (init_history): Compare history_filename against nullptr, and only
13234 read history if the filename is not empty.
13235 (set_history_filename): Add header comment, and only make
13236 non-empty filenames absolute.
13237 (init_main): Make the filename argument to 'set history filename'
13238 optional.
13239
81b86b97
CB
132402020-03-02 Christian Biesinger <cbiesinger@google.com>
13241
13242 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13243 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13244 (fetch_fp_register): Update.
13245 (fetch_fp_regs): Update.
13246 (store_fp_register): Update.
13247 (store_fp_regs): Update.
13248 (arm_netbsd_nat_target::read_description): New function.
13249 (fetch_elfcore_registers): Update.
13250
24ed6739
AB
132512020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13252
13253 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13254 general_thread if the stop reply is missing a thread-id.
13255 (remote_target::process_stop_reply): Use the first non-exited
13256 thread if the target didn't pass a thread-id.
13257 * infrun.c (do_target_wait): Move call to
13258 switch_to_inferior_no_thread to ....
13259 (do_target_wait_1): ... here.
13260
a84bb2a0
JT
132612020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13262
13263 * debuginfod-support.c: Include defs.h first.
13264
658dadf0
TV
132652020-02-28 Tom de Vries <tdevries@suse.de>
13266
13267 * symfile.c (set_initial_language): Use default language for lookup.
13268
4ebe4877
SM
132692020-02-28 Simon Marchi <simon.marchi@efficios.com>
13270
13271 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13272 reader variable, pass `this` to read_cutu_die_from_dwo.
13273
e5da1139
AM
132742020-02-27 Aaron Merey <amerey@redhat.com>
13275
13276 * source.c (open_source_file): Check for nullptr when computing
13277 srcpath.
13278
317f7127
TT
132792020-02-27 Tom Tromey <tromey@adacore.com>
13280
13281 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13282 member.
13283 (dwarf2_add_field): Don't update nfields.
13284 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13285
3104d9ee
AB
132862020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13287
13288 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13289 abs.
13290
b83470bf
TT
132912020-02-26 Tom Tromey <tom@tromey.com>
13292
13293 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13294 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13295 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13296 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13297 per_cu_data.
13298
edfe0a0c
TT
132992020-02-26 Tom Tromey <tom@tromey.com>
13300
13301 * dwarf2/index-write.c (psym_index_map): Change type.
13302 (add_address_entry_worker, write_one_signatured_type)
13303 (recursively_count_psymbols, recursively_write_psymbols)
13304 (class debug_names, psyms_seen_size, write_gdbindex)
13305 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13306
0d79cdc4
AM
133072020-02-26 Aaron Merey <amerey@redhat.com>
13308
13309 * Makefile.in: Handle optional debuginfod support.
13310 * NEWS: Update.
13311 * README: Add --with-debuginfod summary.
13312 * config.in: Regenerate.
13313 * configure: Regenerate.
13314 * configure.ac: Handle optional debuginfod support.
13315 * debuginfod-support.c: debuginfod helper functions.
13316 * debuginfod-support.h: Ditto.
13317 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13318 summary.
13319 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13320 when a dwz file cannot be found.
13321 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13322 debuginfo file cannot be found.
13323 * source.c (open_source_file): Query debuginfod servers when a
13324 source file cannot be found.
13325 * top.c (print_gdb_configuration): Include
13326 --{with,without}-debuginfod in the output.
13327
b65ce565
JG
133282020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13329
13330 * thread.c (thr_try_catch_cmd): Print thread name.
13331
d4c9a4f8
SM
133322020-02-26 Simon Marchi <simon.marchi@efficios.com>
13333
13334 * dwarf2/loc.h (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 to...
13337 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13338 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13339 dwarf2_fetch_die_type_sect_off): ... here.
13340 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13341 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13342 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13343
0dce4280
TV
133442020-02-26 Tom de Vries <tdevries@suse.de>
13345
13346 PR gdb/25603
13347 * symfile.c (set_initial_language): Exit-early if
13348 language_mode == language_mode_manual.
13349
450a1bfc
SM
133502020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13351
13352 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13353 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13354 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13355
9e80cfa1
AB
133562020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13357
13358 * gdbtypes.c (create_array_type_with_stride): Handle negative
13359 array strides.
13360 * valarith.c (value_subscripted_rvalue): Likewise.
13361
09624f1f
LM
133622020-02-25 Luis Machado <luis.machado@linaro.org>
13363
13364 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13365
8cb5117c
SM
133662020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13367
13368 * loc.h (dwarf2_get_die_type): Move to...
13369 * read.h (dwarf2_get_die_type): ... here.
13370 * read.c (dwarf2_get_die_type): Move doc to header.
13371
c325c44e
JB
133722020-02-25 Joel Brobecker <brobecker@adacore.com>
13373
13374 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13375 'gnulib/Makefile.in' to the list.
13376
4ac93832
TT
133772020-02-24 Tom Tromey <tom@tromey.com>
13378
13379 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13380 Remove.
13381 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13382 XOBNEWVEC.
13383
197400e8
TT
133842020-02-24 Tom Tromey <tom@tromey.com>
13385
13386 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13387 New method.
13388 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13389 (dw2_do_instantiate_symtab, dw2_get_file_names)
13390 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13391
76935768
TT
133922020-02-24 Tom Tromey <tom@tromey.com>
13393
13394 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13395 make_scoped_restore.
13396 (dwarf2_psymtab::read_symtab): Don't clear
13397 reading_partial_symbols.
13398
a88ef40d
TV
133992020-02-24 Tom de Vries <tdevries@suse.de>
13400
13401 PR gdb/25592
13402 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13403
c9af6521
TV
134042020-02-24 Tom de Vries <tdevries@suse.de>
13405
13406 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13407 commands layout next/prev/regs.
13408
5707a07a
TT
134092020-02-22 Tom Tromey <tom@tromey.com>
13410
13411 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13412 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13413
3b0fb49e
TT
134142020-02-22 Tom Tromey <tom@tromey.com>
13415
13416 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13417
283be8bf
TT
134182020-02-22 Tom Tromey <tom@tromey.com>
13419
13420 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13421 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13422 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13423 * tui/tui.c (_initialize_tui): Add usage text.
13424
ca793b96
TT
134252020-02-22 Tom Tromey <tom@tromey.com>
13426
13427 * tui/tui-win.c (tui_set_focus_command)
13428 (tui_set_win_height_command): Use error_no_arg.
13429 (_initialize_tui_win): Update help text.
13430 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13431
432b5c40
TT
134322020-02-22 Tom Tromey <tom@tromey.com>
13433
13434 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13435 * tui/tui-disasm.h (struct tui_disasm_window)
13436 <display_start_addr>: Declare.
13437 * tui/tui-source.h (struct tui_source_window)
13438 <display_start_addr>: Declare.
13439 * tui/tui-winsource.h (struct tui_source_window_base)
13440 <show_source_line, display_start_addr>: New methods.
13441 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13442 Rename and move to protected section.
13443 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13444 (tui_source_window_base::do_erase_source_content): Update.
13445 (tui_source_window_base::show_source_line): Now a method.
13446 (tui_source_window_base::show_source_content)
13447 (tui_source_window_base::tui_source_window_base)
13448 (tui_source_window_base::rerender)
13449 (tui_source_window_base::refill)
13450 (tui_source_window_base::do_scroll_horizontal)
13451 (tui_source_window_base::set_is_exec_point_at)
13452 (tui_source_window_base::update_breakpoint_info)
13453 (tui_source_window_base::update_exec_info): Update.
13454 * tui/tui-source.c (tui_source_window::set_contents)
13455 (tui_source_window::showing_source_p)
13456 (tui_source_window::do_scroll_vertical)
13457 (tui_source_window::location_matches_p)
13458 (tui_source_window::line_is_displayed): Update.
13459 (tui_source_window::display_start_addr): New method.
13460 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13461 (tui_disasm_window::do_scroll_vertical)
13462 (tui_disasm_window::location_matches_p): Update.
13463 (tui_disasm_window::display_start_addr): New method.
13464
01b1af32
TT
134652020-02-22 Tom Tromey <tom@tromey.com>
13466
13467 * NEWS: Add entry for gdb.register_window_type.
13468 * tui/tui-layout.h (window_factory): New typedef.
13469 (tui_register_window): Declare.
13470 * tui/tui-layout.c (saved_tui_windows): New global.
13471 (tui_apply_current_layout): Use it.
13472 (tui_register_window): New function.
13473 * python/python.c (do_start_initialization): Call
13474 gdbpy_initialize_tui.
13475 (python_GdbMethods): Add "register_window_type" function.
13476 * python/python-internal.h (gdbpy_register_tui_window)
13477 (gdbpy_initialize_tui): Declare.
13478 * python/py-tui.c: New file.
13479 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13480
fc96d20b
TT
134812020-02-22 Tom Tromey <tom@tromey.com>
13482
13483 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13484
935c78c0
TT
134852020-02-22 Tom Tromey <tom@tromey.com>
13486
13487 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13488 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13489 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13490 (tui_set_win_focus_to): Move from tui-win.c.
13491
0240c8f1
TT
134922020-02-22 Tom Tromey <tom@tromey.com>
13493
13494 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13495 functions.
13496 (known_window_types): New global.
13497 (tui_get_window_by_name): Reimplement.
13498 (initialize_known_windows): New function.
13499 (validate_window_name): Rewrite.
13500 (_initialize_tui_layout): Call initialize_known_windows.
13501
fdb01f0c
TT
135022020-02-22 Tom Tromey <tom@tromey.com>
13503
13504 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13505 Remove constants.
13506 * tui/tui-winsource.h (struct tui_source_window_base)
13507 <tui_source_window_base>: Remove parameter.
13508 * tui/tui-winsource.c
13509 (tui_source_window_base::tui_source_window_base): Remove
13510 parameter.
13511 (tui_source_window_base::refill): Update.
13512 * tui/tui-stack.h (struct tui_locator_window)
13513 <tui_locator_window>: Update.
13514 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13515 Default the constructor.
13516 * tui/tui-regs.h (struct tui_data_item_window)
13517 <tui_data_item_window>: Default the constructor.
13518 (struct tui_data_window) <tui_data_window>: Likewise.
13519 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13520 Default the constructor.
13521 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13522 Default the constructor.
13523 <type>: Remove.
13524 (struct tui_win_info) <tui_win_info>: Default the constructor.
13525 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13526 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13527 Default the constructor.
13528
865a5aec
TT
135292020-02-22 Tom Tromey <tom@tromey.com>
13530
13531 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13532 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13533 * tui/tui-win.c (tui_resize_all): Don't call
13534 tui_delete_invisible_windows.
13535 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13536 done.
13537 (tui_set_layout): Update.
13538 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13539 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13540 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13541
e098d18c
TT
135422020-02-22 Tom Tromey <tom@tromey.com>
13543
13544 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13545 correctly.
13546
eb9c8874
TT
135472020-02-22 Tom Tromey <tom@tromey.com>
13548
13549 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13550
7eed1a8e
TT
135512020-02-22 Tom Tromey <tom@tromey.com>
13552
13553 * tui/tui-winsource.h (struct tui_source_window_iterator)
13554 <inner_iterator>: New etytypedef.
13555 <tui_source_window_iterator>: Take "end" parameter.
13556 <tui_source_window_iterator>: Take iterator.
13557 <operator*, advance>: Update.
13558 <m_iter>: Change type.
13559 <m_end>: New field.
13560 (struct tui_source_windows) <begin, end>: Update.
13561 * tui/tui-layout.c (tui_windows): New global.
13562 (tui_apply_current_layout): Clear tui_windows.
13563 (tui_layout_window::apply): Update tui_windows.
13564 * tui/tui-data.h (tui_windows): Declare.
13565 (all_tui_windows): Now inline function.
13566 (class tui_window_iterator, struct all_tui_windows): Remove.
13567
7c043ba6
TT
135682020-02-22 Tom Tromey <tom@tromey.com>
13569
13570 PR tui/17850:
13571 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13572 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13573 "height" argument.
13574 (class tui_layout_window) <get_sizes>: Likewise.
13575 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13576 argument.
13577 <get_sizes>: Add "height" argument.
13578 <m_vertical>: New field.
13579 * tui/tui-layout.c (tui_layout_split::clone): Update.
13580 (tui_layout_split::get_sizes): Add "height" argument.
13581 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13582 (tui_new_layout_command): Parse "-horizontal".
13583 (_initialize_tui_layout): Update help string.
13584 (tui_layout_split::specification): Add "-horizontal" when needed.
13585 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13586 argument.
13587 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13588 New methods.
13589
6bc56648
TT
135902020-02-22 Tom Tromey <tom@tromey.com>
13591
13592 * tui/tui-layout.h (enum tui_adjust_result): New.
13593 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13594 (class tui_layout_window) <adjust_size>: Return
13595 tui_adjust_result. Rewrite.
13596 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13597 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13598
c22fef7e
TT
135992020-02-22 Tom Tromey <tom@tromey.com>
13600
13601 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13602 parameter and return types.
13603 (class tui_layout_base) <specification>: Add "depth".
13604 (class tui_layout_window) <specification>: Add "depth".
13605 (class tui_layout_split) <specification>: Add "depth".
13606 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13607 and return types.
13608 (tui_new_layout_command): Parse sub-layouts.
13609 (_initialize_tui_layout): Update help string.
13610 (tui_layout_window::specification): Add "depth".
13611 (add_layout_command): Update.
13612
ee325b61
TT
136132020-02-22 Tom Tromey <tom@tromey.com>
13614
13615 * NEWS: Add "tui new-layout" item.
13616 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13617 Add new-layout command to help text.
13618 (validate_window_name): New function.
13619 (tui_new_layout_command): New function.
13620 (_initialize_tui_layout): Register "new-layout".
13621 (tui_layout_window::specification): New method.
13622 (tui_layout_window::specification): New method.
13623 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13624 method.
13625 (class tui_layout_window) <specification>: New method.
13626 (class tui_layout_split) <specification>: New method.
13627
416eb92d
TT
136282020-02-22 Tom Tromey <tom@tromey.com>
13629
13630 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13631 * tui/tui-win.c (window_name_completer): Update comment.
13632 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13633 Declare method.
13634 (class tui_layout_window) <replace_window>: Likewise.
13635 (class tui_layout_split) <replace_window>: Likewise.
13636 (tui_set_layout): Don't declare.
13637 (tui_set_initial_layout): Declare function.
13638 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13639 (asm_regs_layout): New globals.
13640 (tui_current_layout, show_layout): Remove.
13641 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13642 (find_layout, tui_apply_layout): New function.
13643 (layout_completer): Remove.
13644 (tui_next_layout): Reimplement.
13645 (tui_next_layout_command): New function.
13646 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13647 (tui_regs_layout): Reimplement.
13648 (tui_regs_layout_command): New function.
13649 (extract_display_start_addr): Rewrite.
13650 (next_layout, prev_layout): Remove.
13651 (tui_layout_window::replace_window): New method.
13652 (tui_layout_split::replace_window): New method.
13653 (destroy_layout): New function.
13654 (layout_list): New global.
13655 (add_layout_command): New function.
13656 (initialize_layouts): Update.
13657 (tui_layout_command): New function.
13658 (_initialize_tui_layout): Install "layout" commands.
13659 * tui/tui-data.h (enum tui_layout_type): Remove.
13660 (tui_current_layout): Don't declare.
13661
0dbc2fc7
TT
136622020-02-22 Tom Tromey <tom@tromey.com>
13663
13664 * tui/tui-regs.c (tui_reg_layout): Remove.
13665 (tui_reg_command): Use tui_regs_layout.
13666 * tui/tui-layout.h (tui_reg_command): Declare.
13667 * tui/tui-layout.c (tui_reg_command): New function.
13668
5afe342e
TT
136692020-02-22 Tom Tromey <tom@tromey.com>
13670
13671 * tui/tui.c (tui_rl_delete_other_windows): Call
13672 tui_remove_some_windows.
13673 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13674 Declare method.
13675 (class tui_layout_window) <remove_windows>: New method.
13676 (class tui_layout_split) <remove_windows>: Declare.
13677 (tui_remove_some_windows): Declare.
13678 * tui/tui-layout.c (tui_remove_some_windows): New function.
13679 (tui_layout_split::remove_windows): New method.
13680
427326a8
TT
136812020-02-22 Tom Tromey <tom@tromey.com>
13682
13683 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13684 * tui/tui-layout.h (tui_next_layout): Declare.
13685 * tui/tui-layout.c (tui_next_layout): New function.
13686
3fe12b6d
TT
136872020-02-22 Tom Tromey <tom@tromey.com>
13688
13689 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13690 correct coordinates.
13691
59b8b5d2
TT
136922020-02-22 Tom Tromey <tom@tromey.com>
13693
13694 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13695 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13696 DATA_WIN case.
13697
2a3d458b
TT
136982020-02-22 Tom Tromey <tom@tromey.com>
13699
13700 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13701 TUI_DISASM_WIN, not tui_win_list.
13702
3f0cbb04
TT
137032020-02-22 Tom Tromey <tom@tromey.com>
13704
13705 * valprint.c (generic_val_print_enum_1)
13706 (val_print_type_code_flags): Style member names.
13707 * rust-lang.c (val_print_struct, rust_print_enum)
13708 (rust_print_struct_def, rust_internal_print_type): Style member
13709 names.
13710 * p-valprint.c (pascal_object_print_value_fields): Style member
13711 names. Only call fprintf_symbol_filtered for static members.
13712 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13713 * f-valprint.c (f_val_print): Style member names.
13714 * f-typeprint.c (f_type_print_base): Style member names.
13715 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13716 call fprintf_symbol_filtered for static members.
13717 (cp_print_class_member): Style member names.
13718 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13719 member names.
13720 * ada-valprint.c (ada_print_scalar): Style enum names.
13721 (ada_val_print_enum): Likewise.
13722 * ada-typeprint.c (print_enum_type): Style enum names.
13723
d4d947ae
TT
137242020-02-21 Tom Tromey <tom@tromey.com>
13725
13726 * psympriv.h (struct partial_symtab): Update comment.
13727
e94e944b
TT
137282020-02-21 Tom Tromey <tromey@adacore.com>
13729
13730 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13731 type is CORE_ADDR.
13732
1eb73179
TV
137332020-02-21 Tom de Vries <tdevries@suse.de>
13734
13735 PR gdb/25534
13736 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13737 if dependencies[i]->user != NULL.
13738
4f180d53
AT
137392020-02-21 Ali Tamur <tamur@google.com>
13740
13741 * dwarf2/read.c (dwarf2_name): Add null check.
13742
22b6cd70
TT
137432020-02-20 Tom Tromey <tom@tromey.com>
13744
13745 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13746 ">=", in binary search.
13747 (dwarf2_find_containing_comp_unit): New overload.
13748 (run_test): New self-test.
13749 (_initialize_dwarf2_read): Register new test.
13750
bd0cf5a6
NC
137512020-02-20 Nelson Chu <nelson.chu@sifive.com>
13752
13753 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13754 * riscv-tdep.h: Likewise.
13755 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13756 rv32-only CSR.
13757 * features/riscv/64bit-csr.xml: Regenerated.
13758
3f702acd
SDJ
137592020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13760 Tom Tromey <tom@tromey.com>
13761
13762 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13763 of 'fputc_unfiltered'.
13764 (putchar_unfiltered): Call 'fputc_unfiltered'.
13765 (fputc_unfiltered): Call 'fputs_unfiltered'.
13766
d13c7322
AB
137672020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13768
13769 * config.in: Regenerate.
13770 * configure: Regenerate.
13771 * configure.ac: Add --with-python-libdir option.
13772 * main.c: Use WITH_PYTHON_LIBDIR.
13773
869d8950
TT
137742020-02-19 Tom Tromey <tom@tromey.com>
13775
13776 * symtab.c (general_symbol_info::compute_and_set_names): Use
13777 obstack_strndup. Simplify call to symbol_set_demangled_name.
13778
298e9637
SM
137792020-02-19 Simon Marchi <simon.marchi@efficios.com>
13780
13781 * dwarf2/read.c (allocate_signatured_type_table,
13782 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13783 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13784 Remove objfile parameter, update all callers.
13785
08410482
DE
137862020-02-19 Doug Evans <dje@google.com>
13787
13788 PR rust/25535
13789 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13790 rust_enum_variant calculation.
13791
dfdeeca1
TT
137922020-02-19 Tom Tromey <tromey@adacore.com>
13793
13794 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13795
2ef5453b
TT
137962020-02-19 Tom Tromey <tromey@adacore.com>
13797
13798 * ada-lang.c (cache_symbol): Use obstack_strdup.
13799
9f1528a1
AB
138002020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13801
13802 * configure: Regenerate.
13803
d3c22fa8
TT
138042020-02-19 Tom Tromey <tromey@adacore.com>
13805
13806 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13807 NULL check.
13808
bf84f706
MR
138092020-02-19 Maciej W. Rozycki <macro@wdc.com>
13810
13811 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13812
d1c9b20f
AB
138132020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13814
13815 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13816 if GDBSERVER is not defined.
13817 (riscv_tdesc_cache): Likewise, also store const target_desc.
13818 (STATIC_IN_GDB): Define.
13819 (riscv_create_target_description): Update declaration with
13820 STATIC_IN_GDB.
13821 (riscv_lookup_target_description): New function, only define if
13822 GDBSERVER is not defined.
13823 * arch/riscv.h (riscv_create_target_description): Declare only
13824 when GDBSERVER is defined.
13825 (riscv_lookup_target_description): New declaration when GDBSERVER
13826 is not defined.
13827 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13828 (riscv_linux_read_features): ...this, and return
13829 riscv_gdbarch_features instead of target_desc.
13830 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13831 (riscv_linux_read_description): Rename to...
13832 (riscv_linux_read_features): ...this.
13833 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13834 Update to use riscv_gdbarch_features and
13835 riscv_lookup_target_description.
13836 * riscv-tdep.c (riscv_find_default_target_description): Use
13837 riscv_lookup_target_description instead of
13838 riscv_create_target_description.
13839
373d7ac0
SM
138402020-02-18 Simon Marchi <simon.marchi@efficios.com>
13841
13842 * valprint.c (generic_val_print_enum_1): When printing a flag
13843 enum with value 0 and there is no enumerator with value 0, print
13844 just "0" instead of "(unknown: 0x0)".
13845
b29a2df0
SM
138462020-02-18 Simon Marchi <simon.marchi@efficios.com>
13847
13848 * valprint.c (generic_val_print_enum_1): Print unknown part of
13849 flag enum in hex.
13850
6740f0cc
SM
138512020-02-18 Simon Marchi <simon.marchi@efficios.com>
13852
13853 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13854 flag enums to contain duplicate enumerators.
13855 * valprint.c (generic_val_print_enum_1): Update comment.
13856
edd45eb0
SM
138572020-02-18 Simon Marchi <simon.marchi@efficios.com>
13858
13859 * dwarf2/read.c: Include "count-one-bits.h".
13860 (update_enumeration_type_from_children): If an enumerator has
13861 multiple bits set, don't treat the enumeration as a "flag enum".
13862 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13863 of flag enums have 0 or 1 bit set.
13864
6d0cf446
BE
138652020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13866
13867 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13868 conversion.
13869 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13870 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13871 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13872 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13873 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13874
7001c1b7
SM
138752020-02-18 Simon Marchi <simon.marchi@efficios.com>
13876
13877 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13878
fdb61c6c
SM
138792020-02-14 Simon Marchi <simon.marchi@efficios.com>
13880
13881 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13882 displaced_step_closure_up.
13883 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13884 (struct displaced_step_closure_up):
13885 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13886 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13887 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13888 Likewise.
13889 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13890 * gdbarch.c, gdbarch.h: Re-generate.
13891 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13892 displaced_step_closure_up.
13893 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13894 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13895 * infrun.h (displaced_step_closure_up): New type alias.
13896 (struct displaced_step_inferior_state) <step_closure>: Change
13897 type to displaced_step_closure_up.
13898 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13899 displaced_step_closure_up.
13900 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13901
a4a38eb4
TT
139022020-02-14 Tom Tromey <tom@tromey.com>
13903
13904 * minidebug.c (gnu_debug_key): New global.
13905 (find_separate_debug_file_in_section): Use it.
13906
e8217e61
SM
139072020-02-14 Simon Marchi <simon.marchi@efficios.com>
13908
13909 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13910 std::unique_ptr.
13911 * gdbarch.c: Re-generate.
13912 * gdbarch.h: Re-generate.
13913 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13914 change.
13915 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13916 type to std::unique_ptr.
13917 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13918 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13919 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13920 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13921 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13922 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13923 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13924 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13925 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13926
d8d83535
SM
139272020-02-14 Simon Marchi <simon.marchi@efficios.com>
13928
13929 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13930 std::unique_ptr.
13931 (displaced_step_clear): Rename to...
13932 (displaced_step_reset): ... this. Just call displaced->reset ().
13933 (displaced_step_clear_cleanup): Rename to...
13934 (displaced_step_reset_cleanup): ... this.
13935 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13936 (displaced_step_fixup): Likewise.
13937 (resume_1): Likewise.
13938 (handle_inferior_event): Restore child's memory before calling
13939 displaced_step_fixup on the parent.
13940 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13941 to std::unique_ptr.
13942 <step_closure>: Change type to std::unique_ptr.
13943
5f661e03
SM
139442020-02-14 Simon Marchi <simon.marchi@efficios.com>
13945
13946 * arm-tdep.c: Include count-one-bits.h.
13947 (cleanup_block_store_pc): Use count_one_bits.
13948 (cleanup_block_load_pc): Use count_one_bits.
13949 (arm_copy_block_xfer): Use count_one_bits.
13950 (thumb2_copy_block_xfer): Use count_one_bits.
13951 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13952 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13953 (thumb_get_next_pcs_raw): Use count_one_bits.
13954 (arm_get_next_pcs_raw): Use count_one_bits_l.
13955 * arch/arm.c (bitcount): Remove.
13956 * arch/arm.h (bitcount): Remove.
13957
8084e579
TT
139582020-02-14 Tom Tromey <tromey@adacore.com>
13959
13960 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13961 Update.
13962 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13963 * dwarf2/loc.c (call_site_find_chain_1): Return
13964 unique_xmalloc_ptr.
13965 (call_site_find_chain): Likewise.
13966
258bf0ee
RB
139672020-02-14 Richard Biener <rguenther@suse.de>
13968
13969 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13970 on expression with division operators.
13971
f98a8458
AKS
139722020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13973
13974 * MAINTAINERS (Write After Approval): Adding myself.
13975
d1437c0e
TT
139762020-02-12 Tom Tromey <tom@tromey.com>
13977
13978 * event-loop.c (event_data, gdb_event, event_handler_func):
13979 Remove.
13980
3d4560f7
TT
139812020-02-12 Tom Tromey <tom@tromey.com>
13982
13983 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13984 (dwarf2_frame_objfile_data): Add comment.
13985 (find_comp_unit, set_comp_unit): New functions.
13986 (dwarf2_frame_find_fde): Use find_comp_unit.
13987 (dwarf2_build_frame_info): Use set_comp_unit.
13988
21982304
TT
139892020-02-12 Tom Tromey <tom@tromey.com>
13990
13991 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13992 (comp_unit): Don't initialize objfile.
13993 (execute_cfa_program): Add text_offset parameter.
13994 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13995 (dwarf2_frame_cache): Update.
13996 (dwarf2_build_frame_info): Don't set "objfile" member.
13997
4debb237
TT
139982020-02-12 Tom Tromey <tom@tromey.com>
13999
14000 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14001 (decode_frame_entry): Likewise.
14002 (dwarf2_build_frame_info): Update.
14003
0d404d44
TT
140042020-02-12 Tom Tromey <tom@tromey.com>
14005
14006 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14007 (decode_frame_entry_1): Use the comp_unit obstack.
14008
a7a3ae5c
TT
140092020-02-12 Tom Tromey <tom@tromey.com>
14010
14011 * dwarf2/frame.c (struct comp_unit): Add initializers and
14012 constructor.
14013 (dwarf2_frame_objfile_data): Store a comp_unit.
14014 (dwarf2_frame_find_fde): Update.
14015 (dwarf2_build_frame_info): Use "new".
14016
a9d65418
TT
140172020-02-12 Tom Tromey <tom@tromey.com>
14018
14019 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14020 (dwarf2_fde_table): Typedef for std::vector.
14021 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14022 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14023 (decode_frame_entry): Update.
14024 (dwarf2_build_frame_info): Use "new".
14025
7559c217
CB
140262020-02-12 Christian Biesinger <cbiesinger@google.com>
14027
14028 * arm-tdep.c (arm_gdbarch_init): Update.
14029 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14030 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14031 have_neon, is_m>: Change to bool.
14032
aeefc73c
CB
140332020-02-12 Christian Biesinger <cbiesinger@google.com>
14034
14035 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14036
d27b8e5f
TT
140372020-02-12 Tom Tromey <tom@tromey.com>
14038
14039 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14040
cd5900f3
HD
140412020-02-12 Hannes Domani <ssbssa@yahoo.de>
14042
14043 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14044 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14045
f056b22b
TT
140462020-02-11 Tom Tromey <tom@tromey.com>
14047
14048 * psymtab.h: Update comment.
14049
f92ff6b5
TT
140502020-02-11 Tom Tromey <tom@tromey.com>
14051
14052 * gdb_obstack.h (struct auto_obstack): Use
14053 DISABLE_COPY_AND_ASSIGN.
14054
3fd6912b
TT
140552020-02-11 Tom Tromey <tom@tromey.com>
14056
14057 * dwarf2/frame.h (struct objfile): Don't forward declare.
14058
69ed9b74
CB
140592020-02-11 Christian Biesinger <cbiesinger@google.com>
14060
14061 * cris-tdep.c (cris_supply_gregset): Change signature to match
14062 what struct regset expects.
14063 (cris_regset): New struct.
14064 (fetch_core_registers): Remove.
14065 (cris_iterate_over_regset_sections): New function.
14066 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14067 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14068
bda874f6
CB
140692020-02-11 Christian Biesinger <cbiesinger@google.com>
14070
14071 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14072 registers.
14073
754e1564
CB
140742020-02-11 Christian Biesinger <cbiesinger@google.com>
14075
14076 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14077
8ddd8e0e
SM
140782020-02-11 Simon Marchi <simon.marchi@efficios.com>
14079
14080 * configure: Re-generate.
14081
898e7f60
SM
140822020-02-11 Simon Marchi <simon.marchi@efficios.com>
14083
14084 * configure: Re-generate.
14085
58df732b
SM
140862020-02-11 Simon Marchi <simon.marchi@efficios.com>
14087
14088 * acinclude: Update warning.m4 path.
14089 * warning.m4: Move to gdbsupport.
14090
da5bd37e
TT
140912020-02-11 Tom Tromey <tromey@adacore.com>
14092
14093 * remote.c (remote_console_output): Update.
14094 * printcmd.c (printf_command): Update.
14095 * event-loop.c (gdb_wait_for_event): Update.
14096 * linux-nat.c (sigchld_handler): Update.
14097 * remote-sim.c (gdb_os_write_stdout): Update.
14098 (gdb_os_flush_stdout): Update.
14099 (gdb_os_flush_stderr): Update.
14100 (gdb_os_write_stderr): Update.
14101 * exceptions.c (print_exception): Update.
14102 * remote-fileio.c (remote_fileio_func_read): Update.
14103 (remote_fileio_func_write): Update.
14104 * tui/tui.c (tui_enable): Update.
14105 * tui/tui-interp.c (tui_interp::init): Update.
14106 * utils.c (init_page_info): Update.
14107 (putchar_unfiltered, fputc_unfiltered): Update.
14108 (gdb_flush): Update.
14109 (emit_style_escape): Update.
14110 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14111 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14112 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14113 (stderr_file::write): Update.
14114 (stderr_file::puts): Update.
14115 * ui-file.h (ui_file_isatty, ui_file_write)
14116 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14117 (ui_file_puts): Don't declare.
14118
85f0dd3c
TV
141192020-02-10 Tom de Vries <tdevries@suse.de>
14120
14121 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14122 sentinel to char *.
14123
2e927613
TV
141242020-02-09 Tom de Vries <tdevries@suse.de>
14125
14126 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14127 filename if it matches "<artificial>".
14128
6bafc845
HD
141292020-02-09 Hannes Domani <ssbssa@yahoo.de>
14130
14131 * windows-tdep.c (struct enum_value_name): New struct.
14132 (create_enum): New function.
14133 (windows_get_siginfo_type): Create and use enum types.
14134
7928d571
HD
141352020-02-09 Hannes Domani <ssbssa@yahoo.de>
14136
14137 * NEWS: Mention $_siginfo support for Windows.
14138 * windows-nat.c (handle_exception): Set siginfo_er.
14139 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14140 (windows_xfer_siginfo): New function.
14141 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14142 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14143 (init_windows_gdbarch_data): New function.
14144 (get_windows_gdbarch_data): New function.
14145 (windows_get_siginfo_type): New function.
14146 (windows_init_abi): Register windows_get_siginfo_type.
14147 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14148
6751ebae
TT
141492020-02-08 Tom Tromey <tom@tromey.com>
14150
14151 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14152 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14153 <keep>: Declare method.
14154 <m_keep>: Remove member.
14155 <~cutu_reader>: Remove.
14156 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14157 (cutu_reader::cutu_reader): Update.
14158 (cutu_reader::keep): Rename from ~cutu_reader.
14159 (process_psymtab_comp_unit, build_type_psymtabs_1)
14160 (process_skeletonless_type_unit, load_partial_comp_unit)
14161 (load_full_comp_unit, dwarf2_read_addr_index)
14162 (read_signatured_type): Update.
14163
135f5437
TT
141642020-02-08 Tom Tromey <tom@tromey.com>
14165
14166 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14167 "want_partial_unit" parameter.
14168 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14169 Inline check for DW_TAG_partial_unit.
14170 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14171
9f66ff1c
TT
141722020-02-08 Tom Tromey <tom@tromey.com>
14173
14174 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14175 read.c.
14176 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14177 read.c.
14178
c8a7a66f
TT
141792020-02-08 Tom Tromey <tom@tromey.com>
14180
14181 * dwarf2/read.c (read_address): Move to comp-unit.c.
14182 (dwarf2_rnglists_process, dwarf2_ranges_process)
14183 (read_attribute_value, dwarf_decode_lines_1)
14184 (var_decode_location, decode_locdesc): Update.
14185 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14186 read.c. Remove "cu" parameter.
14187 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14188 method.
14189
8266302d
TT
141902020-02-08 Tom Tromey <tom@tromey.com>
14191
14192 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14193 (read_indirect_line_string): Update.
14194 * dwarf2/comp-unit.c (read_offset): Remove.
14195 (read_comp_unit_head): Update.
14196 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14197 method.
14198 (read_offset): Don't declare.
14199
4057dfde
TT
142002020-02-08 Tom Tromey <tom@tromey.com>
14201
14202 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14203 * dwarf2/read.c (struct comp_unit_head): Move to
14204 dwarf2/comp-unit.h.
14205 (enum class rcuh_kind): Move to comp-unit.h.
14206 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14207 (read_comp_unit_head, error_check_comp_unit_head)
14208 (read_and_check_comp_unit_head): Move to comp-unit.c.
14209 (read_offset, dwarf_unit_type_name): Likewise.
14210 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14211 (cutu_reader::cutu_reader, read_call_site_scope)
14212 (find_partial_die, follow_die_offset): Update.
14213 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14214
24aa364d
TT
142152020-02-08 Tom Tromey <tom@tromey.com>
14216
14217 * dwarf2/read.c (read_offset_1): Move to leb.c.
14218 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14219 (dwarf_decode_macro_bytes): Update.
14220 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14221 * dwarf2/leb.h (read_offset): Declare.
14222
2c7d5afc
TT
142232020-02-08 Tom Tromey <tom@tromey.com>
14224
14225 * dwarf2/read.c (dwarf2_section_size): Remove.
14226 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14227 Update.
14228 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14229
4075cb26
TT
142302020-02-08 Tom Tromey <tom@tromey.com>
14231
14232 * dwarf2/read.c (read_initial_length): Move to leb.c.
14233 * dwarf2/leb.h (read_initial_length): Declare.
14234 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14235 handle_nonstd parameter.
14236 * dwarf2/frame.c (read_initial_length): Remove.
14237 (decode_frame_entry_1): Update.
14238
09ba997f
TT
142392020-02-08 Tom Tromey <tom@tromey.com>
14240
14241 * dwarf2/loc.c (dwarf2_find_location_expression)
14242 (dwarf_evaluate_loc_desc::get_tls_address)
14243 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14244 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14245 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14246 (dwarf2_compile_property_to_c)
14247 (dwarf2_loc_desc_get_symbol_read_needs)
14248 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14249 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14250 (loclist_describe_location, loclist_tracepoint_var_ref)
14251 (loclist_generate_c_location): Update.
14252 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14253 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14254 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14255 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14256 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14257 (dwarf2_per_cu_data::addr_size)
14258 (dwarf2_per_cu_data::ref_addr_size)
14259 (dwarf2_per_cu_data::text_offset)
14260 (dwarf2_per_cu_data::addr_type): Now methods.
14261 (per_cu_header_read_in): Make per_cu "const".
14262 (dwarf2_version): Remove.
14263 (dwarf2_per_cu_data::int_type): Now a method.
14264 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14265 (set_die_type, read_array_type, read_subrange_index_type)
14266 (read_tag_string_type, read_subrange_type): Update.
14267 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14268 offset_size, ref_addr_size, text_offset, addr_type, version,
14269 objfile, int_type, addr_sized_int_type>: Declare methods.
14270
96c738c0
TT
142712020-02-08 Tom Tromey <tom@tromey.com>
14272
14273 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14274 Move earlier.
14275
8fdd972c
TT
142762020-02-08 Tom Tromey <tom@tromey.com>
14277
14278 * dwarf2/read.h (dwarf_line_debug): Declare.
14279 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14280 * dwarf2/read.c: Move line_header code to new files.
14281 (dwarf_line_debug): No longer static.
14282 * dwarf2/line-header.c: New file.
14283 * dwarf2/line-header.h: New file.
14284
03075812
TT
142852020-02-08 Tom Tromey <tom@tromey.com>
14286
14287 * dwarf2/read.c (struct line_header) <file_full_name,
14288 file_file_name>: Return unique_xmalloc_ptr.
14289 (line_header::file_file_name): Update.
14290 (line_header::file_full_name): Update.
14291 (dw2_get_file_names_reader): Update.
14292 (macro_start_file): Update.
14293
bb822404
TT
142942020-02-08 Tom Tromey <tom@tromey.com>
14295
14296 * dwarf2/read.c (struct line_header) <file_full_name,
14297 file_file_name>: Declare methods.
14298 (dw2_get_file_names_reader): Update.
14299 (file_file_name): Now a method.
14300 (file_full_name): Likewise.
14301 (macro_start_file): Update.
14302
009b64fc
TT
143032020-02-08 Tom Tromey <tom@tromey.com>
14304
14305 * dwarf2/read.c (dwarf_always_disassemble)
14306 (show_dwarf_always_disassemble): Move to loc.c.
14307 (_initialize_dwarf2_read): Move "always-disassemble" registration
14308 to loc.c.
14309 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14310 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14311 static.
14312 (show_dwarf_always_disassemble): Move from read.c.
14313 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14314
5895093f
TT
143152020-02-08 Tom Tromey <tom@tromey.com>
14316
14317 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14318 (create_quick_file_names_table): Return htab_up.
14319 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14320 Update.
14321 * dwarf2/read.h (struct dwarf2_per_objfile)
14322 <quick_file_names_table>: Now htab_up.
14323
b3b32279
TT
143242020-02-08 Tom Tromey <tom@tromey.com>
14325
14326 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14327
1d33d811
TT
143282020-02-08 Tom Tromey <tom@tromey.com>
14329
14330 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14331 Rewrite.
14332 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14333 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14334 (abbrev_table::abbrev_table): No longer inline.
14335 (ABBREV_HASH_SIZE): Remove.
14336 (abbrev_table::m_abbrevs): Now an htab_up.
14337
86de1d91
TT
143382020-02-08 Tom Tromey <tom@tromey.com>
14339
14340 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14341 (cutu_reader): Update.
14342 (build_type_psymtabs_1): Update.
14343 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14344 (abbrev_table::alloc_abbrev): Update.
14345 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14346 (abbrev_table::read): New static method, renamed from
14347 abbrev_table_read_table.
14348 (abbrev_table::alloc_abbrev)
14349 (abbrev_table::add_abbrev): Now private.
14350 (abbrev_table::abbrev_table): Now private.
14351 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14352
0335378b
TT
143532020-02-08 Tom Tromey <tom@tromey.com>
14354
14355 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14356 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14357 htab_up.
14358
48b490f2
TT
143592020-02-08 Tom Tromey <tom@tromey.com>
14360
14361 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14362 htab_up.
14363 (lookup_dwo_unit_in_dwp): Update.
14364 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14365 on obstack.
14366
bc68fb19
TT
143672020-02-08 Tom Tromey <tom@tromey.com>
14368
14369 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14370 obstack.
14371
d15acc42
TT
143722020-02-08 Tom Tromey <tom@tromey.com>
14373
14374 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14375 line_header_hash.
14376 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14377 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14378 Change type to htab_up.
14379
eaa5fa8b
TT
143802020-02-08 Tom Tromey <tom@tromey.com>
14381
14382 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14383 htab_up. Don't allocate on obstack.
14384 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14385 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14386 Change type to htab_up.
14387
b0b6a987
TT
143882020-02-08 Tom Tromey <tom@tromey.com>
14389
14390 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14391 Change type to htab_up.
14392 * dwarf2/read.c (create_signatured_type_table_from_index)
14393 (create_signatured_type_table_from_debug_names)
14394 (create_all_type_units, add_type_unit)
14395 (lookup_dwo_signatured_type, lookup_signatured_type)
14396 (process_skeletonless_type_unit): Update.
14397 (create_debug_type_hash_table, create_debug_types_hash_table):
14398 Change type of types_htab.
14399 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14400 htab_up. Don't allocate on obstack.
14401 (create_cus_hash_table): Change type of cus_htab parameter.
14402 (struct dwo_file) <cus, tus>: Now htab_up.
14403 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14404 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14405 (queue_and_load_all_dwo_tus): Update.
14406 * dwarf2/index-write.c (write_gdbindex): Update.
14407 (write_debug_names): Update.
14408
39856def
TT
144092020-02-08 Tom Tromey <tom@tromey.com>
14410
14411 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14412 dwarf2/read.c. Remove "next" member. Add constructor ntad
14413 destructor.
14414 (struct dwarf2_per_objfile) <queue>: New member.
14415 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14416 dwarf2/read.h.
14417 (dwarf2_queue, dwarf2_queue_tail): Remove.
14418 (class dwarf2_queue_guard): Add parameter to constructor. Use
14419 DISABLE_COPY_AND_ASSIGN.
14420 <m_per_objfile>: New member.
14421 <~dwarf2_queue_guard>: Rewrite.
14422 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14423 Update.
14424 (~dwarf2_queue_item): New.
14425
3e225074
TT
144262020-02-08 Tom Tromey <tom@tromey.com>
14427
14428 * dwarf2/read.c (struct die_info) <has_children>: New member.
14429 (dw2_get_file_names_reader): Remove has_children.
14430 (dw2_get_file_names): Update.
14431 (read_cutu_die_from_dwo): Remove has_children.
14432 (cutu_reader::init_tu_and_read_dwo_dies)
14433 (cutu_reader::cutu_reader): Update.
14434 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14435 Remove has_children.
14436 (build_type_psymtabs_1, process_skeletonless_type_unit)
14437 (load_partial_comp_unit, load_full_comp_unit): Update.
14438 (create_dwo_cu_reader): Remove has_children.
14439 (create_cus_hash_table, read_die_and_children): Update.
14440 (read_full_die_1,read_full_die): Remove has_children.
14441 (read_signatured_type): Update.
14442 (class cutu_reader) <has_children>: Remove.
14443
82ca8957
TT
144442020-02-08 Tom Tromey <tom@tromey.com>
14445
14446 * dwarf2/expr.c: Rename from dwarf2expr.c.
14447 * dwarf2/expr.h: Rename from dwarf2expr.h.
14448 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14449 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14450 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14451 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14452 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14453 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14454 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14455 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14456 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14457 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14458 * dwarf2/loc.c: Rename from dwarf2loc.c.
14459 * dwarf2/loc.h: Rename from dwarf2loc.h.
14460 * dwarf2/read.c: Rename from dwarf2read.c.
14461 * dwarf2/read.h: Rename from dwarf2read.h.
14462 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14463 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14464 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14465 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14466 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14467 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14468 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14469 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14470 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14471 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14472 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14473 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14474 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14475 Update.
14476 * Makefile.in (COMMON_SFILES): Update.
14477 (HFILES_NO_SRCDIR): Update.
14478
9e35d499
TT
144792020-02-08 Tom Tromey <tom@tromey.com>
14480
14481 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14482 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14483
1eba2311
TT
144842020-02-08 Tom Tromey <tom@tromey.com>
14485
14486 * dwarf2read.h (struct die_info): Don't declare.
14487
e41c2da2
TT
144882020-02-08 Tom Tromey <tom@tromey.com>
14489
14490 * dwarf2read.h (die_info_ptr): Remove typedef.
14491
4fc6c0d5
TT
144922020-02-08 Tom Tromey <tom@tromey.com>
14493
14494 * dwarf2read.c (read_call_site_scope)
14495 (handle_data_member_location, dwarf2_add_member_fn)
14496 (mark_common_block_symbol_computed, read_common_block)
14497 (attr_to_dynamic_prop, partial_die_info::read)
14498 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14499 (dwarf2_symbol_mark_computed, set_die_type): Update.
14500 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14501 method.
14502 (attr_form_is_block): Don't declare.
14503 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14504
cd6c91b4
TT
145052020-02-08 Tom Tromey <tom@tromey.com>
14506
14507 * dwarf2read.c (dwarf2_find_base_address, )
14508 (read_call_site_scope, rust_containing_type)
14509 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14510 (handle_data_member_location, dwarf2_add_member_fn)
14511 (get_alignment, read_structure_type, process_structure_scope)
14512 (mark_common_block_symbol_computed, read_common_block)
14513 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14514 (partial_die_info::read, read_attribute_value, new_symbol)
14515 (lookup_die_type, dwarf2_get_ref_die_offset)
14516 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14517 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14518 (dwarf2_symbol_mark_computed): Update.
14519 * dwarf2/attribute.h (struct attribute) <value_as_address,
14520 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14521 methods.
14522 (value_as_address, attr_form_is_section_offset)
14523 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14524 * dwarf2/attribute.c (attribute::value_as_address)
14525 (attribute::form_is_section_offset, attribute::form_is_constant)
14526 (attribute::form_is_ref): Now methods.
14527
162dce55
TT
145282020-02-08 Tom Tromey <tom@tromey.com>
14529
14530 * dwarf2read.c (struct attribute, DW_STRING)
14531 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14532 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14533 (attr_form_is_block, attr_form_is_section_offset)
14534 (attr_form_is_constant, attr_form_is_ref): Move.
14535 * dwarf2/attribute.h: New file.
14536 * dwarf2/attribute.c: New file, from dwarf2read.c.
14537 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14538
3054dd54
TT
145392020-02-08 Tom Tromey <tom@tromey.com>
14540
14541 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14542 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14543 Move.
14544 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14545 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14546 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14547 abbrev.c.
14548 * dwarf2/abbrev.h: New file.
14549 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14550 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14551
96b79293
TT
145522020-02-08 Tom Tromey <tom@tromey.com>
14553
14554 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14555 (dwarf2_section_size, dwarf2_get_section_info)
14556 (create_signatured_type_table_from_debug_names)
14557 (create_addrmap_from_aranges, read_debug_names_from_section)
14558 (get_gdb_index_contents_from_section, read_comp_unit_head)
14559 (error_check_comp_unit_head, read_abbrev_offset)
14560 (create_debug_type_hash_table, init_cu_die_reader)
14561 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14562 (read_comp_units_from_section, create_cus_hash_table)
14563 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14564 (create_dwp_v2_section, dwarf2_rnglists_process)
14565 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14566 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14567 (read_indirect_string_from_dwz, read_addr_index_1)
14568 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14569 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14570 (fill_in_loclist_baton): Update.
14571 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14572 get_containing_section, get_bfd_owner, get_bfd_section,
14573 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14574 (dwarf2_read_section, get_section_name, get_section_file_name)
14575 (get_containing_section, get_section_bfd_owner)
14576 (get_section_bfd_section, get_section_name, get_section_file_name)
14577 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14578 declare.
14579 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14580 (dwarf2_section_info::get_bfd_owner)
14581 (dwarf2_section_info::get_bfd_section)
14582 (dwarf2_section_info::get_name)
14583 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14584 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14585 (dwarf2_section_info::read): Now methods.
14586 * dwarf-index-write.c (class debug_names): Update.
14587
2c86cff9
TT
145882020-02-08 Tom Tromey <tom@tromey.com>
14589
14590 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14591 Move to dwarf2/section.h.
14592 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14593 (get_section_bfd_section, get_section_name)
14594 (get_section_file_name, get_section_id, get_section_flags)
14595 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14596 dwarf2/section.c.
14597 * dwarf2/section.h: New file.
14598 * dwarf2/section.c: New file, from dwarf2read.c.
14599 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14600
f4382c45
TT
146012020-02-08 Tom Tromey <tom@tromey.com>
14602
14603 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14604 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14605 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14606 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14607 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14608 * dwarf2/leb.h: New file, from dwarf2read.c.
14609 * dwarf2/leb.c: New file, from dwarf2read.c.
14610 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14611 Remove.
14612 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14613 (COMMON_SFILES): Add dwarf2/leb.c.
14614
01840b7a
JB
146152020-02-08 Joel Brobecker <brobecker@adacore.com>
14616
14617 GDB 9.1 released.
14618
dfcb27e4
IB
146192020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14620
14621 PR gdb/25190:
aac66a4c
SM
14622 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14623 * gdb/remote.c (remote_console_output): Update.
14624 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14625 (ui_file_puts): ...this.
14626 * gdb/ui-file.h (ui_file_puts): Add declaration.
14627 * gdb/utils.c (emit_style_escape): Update.
14628 (flush_wrap_buffer): Update.
14629 (fputs_maybe_filtered): Update.
14630 (fputs_unfiltered): Add function.
dfcb27e4 14631
faa17681
IB
146322020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14633
aac66a4c
SM
14634 * gdb/event-loop.c (gdb_wait_for_event): Update.
14635 * gdb/printcmd.c (printf_command): Update.
14636 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14637 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14638 (gdb_os_flush_stderr): Update.
14639 * gdb/remote.c (remote_console_output): Update.
14640 * gdb/ui-file.c (gdb_flush): Rename to...
14641 (ui_file_flush): ...this.
14642 (stderr_file::write): Update.
14643 (stderr_file::puts): Update.
14644 * gdb/ui-file.h (gdb_flush): Rename to...
14645 (ui_file_flush): ...this.
14646 * gdb/utils.c (gdb_flush): Add function.
14647 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14648
5abbbe1d
TT
146492020-02-07 Tom Tromey <tromey@adacore.com>
14650
14651 PR breakpoints/24915:
14652 * source.c (find_and_open_source): Do not check basenames_may_differ.
14653
919adfe8
TT
146542020-02-07 Tom Tromey <tom@tromey.com>
14655
14656 * README: Update gdbserver documentation.
14657 * gdbserver: Move to top level.
14658 * configure.tgt (build_gdbserver): Remove.
14659 * configure.ac: Remove --enable-gdbserver.
14660 * configure: Rebuild.
14661 * Makefile.in (distclean): Don't mention gdbserver.
14662
1d5d29e7
SV
146632020-02-06 Shahab Vahedi <shahab@synopsys.com>
14664
14665 * source-cache.c (source_cache::ensure): Surround
14666 get_plain_source_lines with a try/catch.
14667 (source_cache::get_line_charpos): Get rid of try/catch
14668 and only check for the return value of "ensure".
14669 * tui/tui-source.c (tui_source_window::set_contents):
14670 Simplify "nlines" calculation.
14671
6eb1129c
SV
146722020-02-06 Shahab Vahedi <shahab@synopsys.com>
14673
14674 * MAINTAINERS (Write After Approval): Add myself.
14675
c6a42d11
CB
146762020-02-05 Christian Biesinger <cbiesinger@google.com>
14677
14678 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14679 function call.
14680
c8ecdda6
CB
146812020-02-05 Christian Biesinger <cbiesinger@google.com>
14682
14683 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14684
f6480e70
MR
146852020-02-05 Maciej W. Rozycki <macro@wdc.com>
14686
14687 * nat/riscv-linux-tdesc.h: New file.
14688 * nat/riscv-linux-tdesc.c: New file, taking code from...
14689 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14690 ... here.
14691 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14692 NATDEPFILES.
14693
dcc9fbc6
AB
146942020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14695
14696 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14697 we don't set the fake simulator ptid to the null_ptid.
14698
719546c4
SM
146992020-02-03 Simon Marchi <simon.marchi@efficios.com>
14700
14701 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14702 * gdbthread.h (class thread_info) <resumed>: Likewise.
14703 * infrun.c (resume_1): Likewise.
14704 (proceed): Likewise.
14705 (infrun_thread_stop_requested): Likewise.
14706 (stop_all_threads): Likewise.
14707 (handle_inferior_event): Likewise.
14708 (restart_threads): Likewise.
14709 (finish_step_over): Likewise.
14710 (keep_going_stepped_thread): Likewise.
14711 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14712 (linux_handle_extended_wait): Likewise.
14713 * record-btrace.c (get_thread_current_frame_id): Likewise.
14714 * record-full.c (record_full_wait_1): Likewise.
14715 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14716 * target.c (target_resume): Likewise.
14717 * thread.c (set_running_thread): Likewise.
14718
e409c542
AKS
147192020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14720
14721 * f-valprint.c (f77_print_array_1): Changed datatype of index
14722 variable to LONGEST from int to enable it to contain bound
14723 values correctly.
14724
ee98c0da
MR
147252020-02-03 Maciej W. Rozycki <macro@wdc.com>
14726
14727 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14728 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14729 offsets according to FLEN determined.
14730 (riscv_linux_nat_target::read_description): Determine FLEN
14731 dynamically.
14732 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14733 according to FLEN determined.
14734 (riscv_linux_nat_target::store_registers): Likewise.
14735
aa66aac4
SV
147362020-02-01 Shahab Vahedi <shahab@synopsys.com>
14737
14738 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14739 when reg->group is empty and reggroup is not.
14740
fd9faca8
TT
147412020-01-31 Tom Tromey <tromey@adacore.com>
14742
14743 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14744 Call beneath target's mourn_inferior after unpushing.
14745
42330a68
AB
147462020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14747
14748 PR tui/9765
14749 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14750 have enough lines to fill the screen, still return the lowest
14751 address we found.
14752
7a27a45b
AB
147532020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14754
14755 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14756 '-', '<', and '>' commands.
14757
c47f70e2
PA
147582020-01-29 Pedro Alves <palves@redhat.com>
14759 Sergio Durigan Junior <sergiodj@redhat.com>
14760
14761 * infcmd.c (construct_inferior_arguments): Assert that
14762 'argc' is greater than 0.
14763
5133a315
LM
147642020-01-29 Luis Machado <luis.machado@linaro.org>
14765
14766 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14767 (BRK_INSN_MASK): Define to 0xd4200000.
14768 (aarch64_program_breakpoint_here_p): New function.
14769 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14770 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14771 breakpoint.c.
14772 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14773 breakpoint.h
14774 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14775 call gdbarch_program_breakpoint_here_p.
14776 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14777 default_program_breakpoint_here_p, changed return type to bool and
14778 simplified.
14779 * breakpoint.h (program_breakpoint_here): Moved prototype to
14780 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14781 return type to bool.
14782 * gdbarch.c: Regenerate.
14783 * gdbarch.h: Regenerate.
14784 * gdbarch.sh (program_breakpoint_here_p): New method.
14785 * infrun.c (handle_signal_stop): Call
14786 gdbarch_program_breakpoint_here_p.
14787
168f8c6b
TT
147882020-01-26 Tom Tromey <tom@tromey.com>
14789
14790 * ctfread.c (struct ctf_fp_info): Reindent.
14791 (_initialize_ctfread): Remove.
14792
128a391f
TT
147932020-01-26 Tom Tromey <tom@tromey.com>
14794
14795 * psymtab.c (partial_map_expand_apply)
14796 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14797 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14798 (psym_print_stats, psym_expand_symtabs_for_function)
14799 (psym_map_symbol_filenames, psym_map_matching_symbols)
14800 (psym_expand_symtabs_matching)
14801 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14802 (maintenance_check_psymtabs): Use new methods.
14803 * psympriv.h (struct partial_symtab) <readin_p,
14804 get_compunit_symtab>: New methods.
14805 <readin, compunit_symtab>: Remove members.
14806 (struct standard_psymtab): New.
14807 (struct legacy_psymtab): Derive from standard_psymtab.
14808 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14809 standard_psymtab.
14810 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14811
0494dbec
TT
148122020-01-26 Tom Tromey <tom@tromey.com>
14813
14814 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14815 read_dependencies. Add assert.
14816 * psymtab.c (partial_symtab::read_dependencies): New method.
14817 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14818 method.
14819 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14820 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14821 read_dependencies.
14822 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14823 Add assert.
14824
8566b89b
TT
148252020-01-26 Tom Tromey <tom@tromey.com>
14826
14827 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14828 Call expand_psymtab.
14829 (xcoff_read_symtab): Call expand_psymtab.
14830 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14831 legacy_expand_psymtab.
14832 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14833 method.
14834 (struct legacy_psymtab) <expand_psymtab>: Implement.
14835 <legacy_expand_psymtab>: New member.
14836 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14837 (parse_partial_symbols): Set legacy_expand_psymtab.
14838 (psymtab_to_symtab_1): Change argument order. Call
14839 expand_psymtab.
14840 (new_psymtab): Set legacy_expand_psymtab.
14841 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14842 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14843 expand_psymtab.
14844 (dwarf2_psymtab::expand_psymtab): Rename from
14845 psymtab_to_symtab_1. Call expand_psymtab.
14846 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14847 (dbx_end_psymtab): Likewise.
14848 (dbx_psymtab_to_symtab_1): Change argument order. Call
14849 expand_psymtab.
14850 (dbx_read_symtab): Call expand_psymtab.
14851 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14852 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14853 (ctf_psymtab::read_symtab): Call expand_psymtab.
14854
077cbab2
TT
148552020-01-26 Tom Tromey <tom@tromey.com>
14856
14857 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14858 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14859 messages.
14860 * mdebugread.c (mdebug_read_symtab): Remove prints.
14861 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14862 assert.
14863 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14864
891813be
TT
148652020-01-26 Tom Tromey <tom@tromey.com>
14866
14867 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14868 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14869 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14870 legacy_symtab.
14871 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14872 * psymtab.c (psymtab_to_symtab): Call method.
14873 (dump_psymtab): Update.
14874 * psympriv.h (struct partial_symtab): Add virtual destructor.
14875 <read_symtab>: New method.
14876 (struct legacy_symtab): New.
14877 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14878 (struct pst_map) <pst>: Now a legacy_psymtab.
14879 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14880 (new_psymtab): Use legacy_psymtab.
14881 * dwarf2read.h (struct dwarf2_psymtab): New.
14882 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14883 * dwarf2read.c (dwarf2_create_include_psymtab)
14884 (dwarf2_build_include_psymtabs, create_type_unit_group)
14885 (create_partial_symtab, process_psymtab_comp_unit_reader)
14886 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14887 (set_partial_user): Use dwarf2_psymtab.
14888 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14889 (psymtab_to_symtab_1, process_full_comp_unit)
14890 (process_full_type_unit, dwarf2_ranges_read)
14891 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14892 (dwarf_decode_lines): Use dwarf2_psymtab.
14893 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14894 (add_address_entry_worker, write_one_signatured_type)
14895 (recursively_count_psymbols, recursively_write_psymbols)
14896 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14897 (write_debug_names): Likewise.
14898 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14899 <pst>: Now a legacy_psymtab.
14900 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14901 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14902 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14903 * ctfread.c (struct ctf_psymtab): New.
14904 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14905 ctf_psymtab.
14906 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14907 (create_partial_symtab): Return a ctf_psymtab.
14908 (scan_partial_symbols): Update.
14909
c3693a1d
TT
149102020-01-26 Tom Tromey <tom@tromey.com>
14911
14912 * xcoffread.c (xcoff_start_psymtab): Use new.
14913 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14914 renamed from start_psymtab_common.
14915 * psympriv.h (struct partial_symtab): Add new constructor.
14916 (start_psymtab_common): Don't declare.
14917 * mdebugread.c (parse_partial_symbols): Use new.
14918 * dwarf2read.c (create_partial_symtab): Use new.
14919 * dbxread.c (start_psymtab): Use new.
14920 * ctfread.c (create_partial_symtab): Use new.
14921
32caafd0
TT
149222020-01-26 Tom Tromey <tom@tromey.com>
14923
14924 * xcoffread.c (xcoff_end_psymtab): Use new.
14925 * psymtab.c (start_psymtab_common): Use new.
14926 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14927 Update.
14928 * psympriv.h (struct partial_symtab): Add parameters to
14929 constructor. Don't inline.
14930 (allocate_psymtab): Don't declare.
14931 * mdebugread.c (new_psymtab): Use new.
14932 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14933 * dbxread.c (dbx_end_psymtab): Use new.
14934
abaa2f23
TT
149352020-01-26 Tom Tromey <tom@tromey.com>
14936
14937 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14938 allocate_psymtab. Update documentation.
14939 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14940 allocate_psymtab. Do not use new.
14941 (allocate_psymtab): Use new. Update.
14942
6d94535f
TT
149432020-01-26 Tom Tromey <tom@tromey.com>
14944
14945 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14946 * psymtab.c (psym_print_stats): Update.
14947 * psympriv.h (struct partial_symtab) <readin,
14948 psymtabs_addrmap_supported, anonymous>: Now bool.
14949 * mdebugread.c (psymtab_to_symtab_1): Update.
14950 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14951 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14952 (process_full_comp_unit, process_full_type_unit): Update.
14953 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14954 * ctfread.c (psymtab_to_symtab): Update.
14955
6f17252b
TT
149562020-01-26 Tom Tromey <tom@tromey.com>
14957
14958 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14959 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14960 * psymtab.c (psymtab_storage): Delete psymtabs.
14961 (psymtab_storage::allocate_psymtab): Use new.
14962 (psymtab_storage::discard_psymtab): Use delete.
14963 * psympriv.h (struct partial_symtab): Add constructor and
14964 initializers.
14965
f6f1cebc
TT
149662020-01-26 Tom Tromey <tom@tromey.com>
14967
14968 * machoread.c: Do not include psympriv.h.
14969
e47e48f6
PW
149702020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14971
14972 * NEWS: Mention the new option and the set/show commands.
14973
a2fedca9
PW
149742020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14975
14976 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14977 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14978 (validate_exec_file): New variables, enums, functions.
14979 (exec_file_locate_attach, print_section_info): Style the filenames.
14980 (_initialize_exec): Install show_exec_file_mismatch_command and
14981 set_exec_file_mismatch_command.
14982 * gdbcore.h (validate_exec_file): Declare.
14983 * infcmd.c (attach_command): Call validate_exec_file.
14984 * remote.c ( remote_target::remote_add_inferior): Likewise.
14985
7ffa82e1
AB
149862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14987
14988 * frame.c (find_frame_sal): Move call to get_next_frame into more
14989 inner scope.
14990 * inline-frame.c (inilne_state) <inline_state>: Update argument
14991 types.
14992 (inilne_state) <skipped_symbol>: Rename to...
14993 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14994 (skip_inline_frames): Build vector of skipped symbols and use this
14995 to reate the inline_state.
14996 (inline_skipped_symbol): Add a comment and some assertions, fetch
14997 skipped symbol from the list.
14998
3d92a3e3
AB
149992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15000
15001 * buildsym.c (lte_is_less_than): Delete.
15002 (buildsym_compunit::end_symtab_with_blockvector): Create local
15003 lambda function to sort line table entries, and use
15004 std::stable_sort instead of std::sort.
15005 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15006 markers when looking for a previous line.
15007
94a72be7
AB
150082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15009
15010 * dwarf2read.c (lnp_state_machine::record_line): Include
15011 end_sequence parameter in debug print out. Record the line if we
15012 are at an end_sequence marker even if it's not the start of a
15013 statement.
15014 * symmisc.c (maintenance_print_one_line_table): Print end of
15015 sequence markers with 'END' not '0'.
15016
53af73bf
PA
150172020-01-24 Pedro Alves <palves@redhat.com>
15018
15019 PR gdb/25410
15020 * thread.c (scoped_restore_current_thread::restore): Use
15021 switch_to_inferior_no_thread.
15022 * exec.c: Include "progspace-and-thread.h".
15023 (add_target_sections, remove_target_sections):
15024 scoped_restore_current_pspace_and_thread instead of
15025 scoped_restore_current_thread.
15026 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15027 and aspace to the inferior before calling clone_program_space.
15028 Remove stale comment.
15029
3050c6f4
CB
150302020-01-24 Christian Biesinger <cbiesinger@google.com>
15031
15032 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15033 (arm_netbsd_nat_target::fetch_registers): ...this.
15034 (arm_nbsd_nat_target::store_registers): Rename to...
15035 (arm_netbsd_nat_target::store_registers): ...this.
15036
73685c7e
CB
150372020-01-24 Christian Biesinger <cbiesinger@google.com>
15038
15039 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15040 register_t.
15041
89203d40
CB
150422020-01-24 Christian Biesinger <cbiesinger@google.com>
15043
15044 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15045 Update comment.
15046 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15047 Likewise.
15048 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15049 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15050 the correct replacement (iterate_over_regset_sections).
15051 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15052 Update comment.
15053
1ba1ac88
AB
150542020-01-24 Graham Markall <graham.markall@embecosm.com>
15055
15056 PR gdb/23718
15057 * gdb/python/python.c (execute_gdb_command): Call
15058 async_enable_stdin in catch block.
15059
f3364a6d
AB
150602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15061
15062 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15063 SWITCH_THRU_ALL_UIS.
15064
733d0a67
AB
150652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15066
15067 PR tui/9765
15068 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15069 comment, add extra parameter, and update to store previous symbol
15070 when appropriate.
15071 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15072 add extra parameter.
15073 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15074 remove unneeded parameter, add try/catch around gdb_print_insn,
15075 rewrite to add items to asm_lines vector.
15076 (tui_find_backward_disassembly_start_address): New function.
15077 (tui_find_disassembly_address): Updated throughout.
15078 (tui_disasm_window::set_contents): Update for changes to
15079 tui_disassemble.
15080 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15081 number of lines to scroll.
15082
b3b3bada
SM
150832020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15084
15085 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15086 (SECT_OFF_DATA): Likewise.
15087 (SECT_OFF_RODATA): Likewise.
15088 (SECT_OFF_TEXT): Likewise.
15089 (SECT_OFF_BSS): Likewise.
15090 (struct objfile) <text_section_offset, data_section_offset>: New
15091 methods.
15092 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15093 objfile::text_section_offset.
15094 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15095 * coffread.c (coff_symtab_read): Likewise.
15096 (enter_linenos): Likewise.
15097 (process_coff_symbol): Likewise.
15098 * ctfread.c (get_objfile_text_range): Likewise.
15099 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15100 Use objfile::data_section_offset.
15101 * dwarf2-frame.c (execute_cfa_program): Use
15102 objfile::text_section_offset.
15103 (dwarf2_frame_find_fde): Likewise.
15104 * dwarf2read.c (create_addrmap_from_index): Likewise.
15105 (create_addrmap_from_aranges): Likewise.
15106 (dw2_find_pc_sect_compunit_symtab): Likewise.
15107 (process_psymtab_comp_unit_reader): Likewise.
15108 (add_partial_symbol): Likewise.
15109 (add_partial_subprogram): Likewise.
15110 (process_full_comp_unit): Likewise.
15111 (read_file_scope): Likewise.
15112 (read_func_scope): Likewise.
15113 (read_lexical_block_scope): Likewise.
15114 (read_call_site_scope): Likewise.
15115 (dwarf2_rnglists_process): Likewise.
15116 (dwarf2_ranges_process): Likewise.
15117 (dwarf2_ranges_read): Likewise.
15118 (dwarf_decode_lines_1): Likewise.
15119 (new_symbol): Likewise.
15120 (dwarf2_fetch_die_loc_sect_off): Likewise.
15121 (dwarf2_per_cu_text_offset): Likewise.
15122 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15123 * hppa-tdep.c (read_unwind_info): Likewise.
15124 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15125 * psympriv.h (struct partial_symtab): Likewise.
15126 * psymtab.c (find_pc_sect_psymtab): Likewise.
15127 * solib-svr4.c (enable_break): Likewise.
15128 * stap-probe.c (relocate_address): Use
15129 objfile::data_section_offset.
15130 * xcoffread.c (enter_line_range): Use
15131 objfile::text_section_offset.
15132 (read_xcoff_symtab): Likewise.
15133
ab53f382
SM
151342020-01-23 Simon Marchi <simon.marchi@efficios.com>
15135
15136 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15137 declaration to narrower scopes.
15138
e7eee665
SM
151392020-01-23 Simon Marchi <simon.marchi@efficios.com>
15140
15141 * darwin-nat.h (struct darwin_exception_msg, enum
15142 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15143 Move up.
15144 (class darwin_nat_target) <wait_1, check_new_threads,
15145 decode_exception_message, decode_message, stop_inferior,
15146 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15147 * darwin-nat.c (darwin_check_new_threads): Rename to...
15148 (darwin_nat_target::check_new_threads): ... this.
15149 (darwin_suspend_inferior_it): Remove.
15150 (darwin_decode_exception_message): Rename to...
15151 (darwin_nat_target::decode_exception_message): ... this.
15152 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15153 (darwin_decode_message): Rename to...
15154 (darwin_nat_target::decode_message): ... this.
15155 (cancel_breakpoint): Rename to...
15156 (darwin_nat_target::cancel_breakpoint): ... this.
15157 (darwin_wait): Rename to...
15158 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15159 instead of iterate_over_inferiors.
15160 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15161 (darwin_stop_inferior): Rename to...
15162 (darwin_nat_target::stop_inferior): ... this.
15163 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15164 (darwin_init_thread_list): Rename to...
15165 (darwin_nat_target::init_thread_list): ... this.
15166 (darwin_ptrace_him): Rename to...
15167 (darwin_nat_target::ptrace_him): ... this.
15168 (darwin_nat_target::create_inferior): Pass lambda function to
15169 fork_inferior.
15170 (darwin_nat_target::detach): Call stop_inferior instead of
15171 darwin_stop_inferior.
15172 * fork-inferior.h (fork_inferior): Change init_trace_fun
15173 parameter to gdb::function_view.
15174 * fork-inferior.c (fork_inferior): Likewise.
15175
c162ed3e
HD
151762020-01-23 Hannes Domani <ssbssa@yahoo.de>
15177
15178 * i386-cygwin-tdep.c (core_process_module_section): Update.
15179 * windows-nat.c (struct lm_info_windows): Add text_offset.
15180 (windows_xfer_shared_libraries): Update.
15181 * windows-tdep.c (windows_xfer_shared_library):
15182 Add text_offset_cached argument.
15183 * windows-tdep.h (windows_xfer_shared_library): Update.
15184
a1237872
SM
151852020-01-21 Simon Marchi <simon.marchi@efficios.com>
15186
15187 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15188
b3ee6dd9
SM
151892020-01-21 Simon Marchi <simon.marchi@efficios.com>
15190
15191 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15192 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15193 replace with range-based for.
15194 (gdbsim_interrupt_inferior): Remove.
15195 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15196 with a range-based for. Inline code from
15197 gdbsim_interrupt_inferior.
15198
f9fac3c8
SM
151992020-01-21 Simon Marchi <simon.marchi@efficios.com>
15200
15201 * infrun.c (proceed): Fix indentation.
15202
f6474de9
TT
152032020-01-21 Tom Tromey <tromey@adacore.com>
15204
15205 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15206 * python/python.c (python_extension_ops): Update.
15207 (gdbpy_colorize): New function.
15208 * python/lib/gdb/__init__.py (colorize): New function.
15209 * extension.h (ext_lang_colorize): Declare.
15210 * extension.c (ext_lang_colorize): New function.
15211 * extension-priv.h (struct extension_language_ops) <colorize>: New
15212 member.
15213 * cli/cli-style.c (_initialize_cli_style): Update help text.
15214
f0c702d4
LM
152152020-01-21 Luis Machado <luis.machado@linaro.org>
15216
15217 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15218 <cond>: Change type to bool.
15219 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15220 (aarch64_displaced_step_cb): Likewise.
15221 (aarch64_displaced_step_tb): Likewise.
15222
1ab139e5
LM
152232020-01-21 Luis Machado <luis.machado@linaro.org>
15224
15225 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15226 output.
15227
0c271889
LM
152282020-01-21 Luis Machado <luis.machado@linaro.org>
15229
15230 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15231 <pc_adjust>: Adjust the documentation.
15232 (aarch64_displaced_step_fixup): Check if PC really moved before
15233 adjusting it.
15234
4d89c1c7
TT
152352020-01-19 Tom Tromey <tom@tromey.com>
15236
15237 * disasm.c (~gdb_disassembler): New destructor.
15238 (gdb_buffered_insn_length): Call disassemble_free_target.
15239 * disasm.h (class gdb_disassembler): Declare destructor. Use
15240 DISABLE_COPY_AND_ASSIGN.
15241
c0ab21c2
TT
152422020-01-19 Tom Tromey <tom@tromey.com>
15243
15244 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15245 (die_reader_func_ftype): Remove.
15246 (cutu_reader): New class.
15247 (dw2_get_file_names_reader): Remove "data" parameter.
15248 (dw2_get_file_names): Use cutu_reader.
15249 (create_debug_type_hash_table): Update.
15250 (read_cutu_die_from_dwo): Update comment.
15251 (lookup_dwo_unit): Add dwo_name parameter.
15252 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15253 die_reader_func_ftype and data parameters.
15254 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15255 Remove die_reader_func_ftype and data parameters.
15256 (~cutu_reader): New; from init_cutu_and_read_dies.
15257 (cutu_reader::cutu_reader): Rename from
15258 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15259 and data parameters.
15260 (init_cutu_and_read_dies_simple): Remove.
15261 (struct process_psymtab_comp_unit_data): Remove.
15262 (process_psymtab_comp_unit_reader): Remove data parameter; add
15263 want_partial_unit and pretend_language parameters.
15264 (process_psymtab_comp_unit): Use cutu_reader.
15265 (build_type_psymtabs_reader): Remove data parameter.
15266 (build_type_psymtabs_1): Use cutu_reader.
15267 (process_skeletonless_type_unit): Likewise.
15268 (load_partial_comp_unit_reader): Remove.
15269 (load_partial_comp_unit): Use cutu_reader.
15270 (load_full_comp_unit_reader): Remove.
15271 (load_full_comp_unit): Use cutu_reader.
15272 (struct create_dwo_cu_data): Remove.
15273 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15274 dwo_unit parameters.
15275 (create_cus_hash_table): Use cutu_reader.
15276 (struct dwarf2_read_addr_index_data): Remove.
15277 (dwarf2_read_addr_index_reader): Remove.
15278 (dwarf2_read_addr_index): Use cutu_reader.
15279 (read_signatured_type_reader): Remove.
15280 (read_signatured_type): Use cutu_reader.
15281
45bbae5c
TT
152822020-01-19 Tom Tromey <tom@tromey.com>
15283
15284 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15285 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15286 (tui_wrefresh): Declare.
15287 * tui/tui-wingeneral.c (suppress_output): New global.
15288 (tui_suppress_output, ~tui_suppress_output): New constructor and
15289 destructor.
15290 (tui_wrefresh): New function.
15291 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15292 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15293 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15294 method.
15295 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15296 tui_wrefresh.
15297 (tui_data_window::no_refresh): New method.
15298 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15299 (tui_reg_command): Use tui_suppress_output
15300 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15301 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15302 method.
15303 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15304
4f13c1c0
TT
153052020-01-19 Tom Tromey <tom@tromey.com>
15306
15307 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15308 Handle case where symtab is null.
15309
fa47e446
SM
153102020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15311
15312 * linux-fork.c (one_fork_p): Simplify.
15313
26f42329
SM
153142020-01-17 Simon Marchi <simon.marchi@efficios.com>
15315
15316 * top.c (struct qt_args): Remove.
15317 (kill_or_detach): Change return type to void, replace `void *`
15318 parameter with a proper one.
15319 (print_inferior_quit_action): Likewise.
15320 (quit_confirm): Use range-based for loop to iterate over inferiors.
15321 (quit_force): Likewise.
15322
a9ac81b1
SM
153232020-01-17 Simon Marchi <simon.marchi@efficios.com>
15324
15325 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15326 `void *` parameter with proper parameters.
15327 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15328 (print_one_inferior): Change return type to void, replace `void *`
15329 parameter with proper parameters.
15330 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15331 inferiors.
15332 (get_other_inferior): Remove.
15333 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15334 inferiors.
15335
788eca49
SM
153362020-01-17 Simon Marchi <simon.marchi@efficios.com>
15337
15338 * mi/mi-interp.c (report_initial_inferior): Remove.
15339 (mi_interp::init): Use range-based for to iterate over inferiors.
15340
d9bc85b6
SM
153412020-01-17 Simon Marchi <simon.marchi@efficios.com>
15342
15343 * python/py-inferior.c (build_inferior_list): Remove.
15344 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15345
40c94099
CB
153462020-01-16 Christian Biesinger <cbiesinger@google.com>
15347
15348 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15349 (btrace_stitch_trace): Likewise.
15350 * charset.c (intermediate_encoding): Likewise (vaild).
15351 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15352 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15353 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15354
e0cdfe3c
HD
153552020-01-16 Hannes Domani <ssbssa@yahoo.de>
15356
15357 * windows-tdep.c (windows_get_tlb_type):
15358 Add rtl_user_process_parameters type.
15359
790f1718 153602020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15361 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15362
15363 PR build/24805
15364 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15365 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15366 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15367 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15368 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15369 (ps_plog): Redeclare exported functions with default visibility.
15370
3112ed97
NA
153712020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15372
15373 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15374 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15375
8dc3273e
SM
153762020-01-15 Simon Marchi <simon.marchi@efficios.com>
15377
15378 * infcmd.c (post_create_inferior): Use get_thread_regcache
15379 instead of get_current_regcache.
15380
ff47f4f0
TT
153812020-01-14 Tom Tromey <tom@tromey.com>
15382
15383 PR symtab/12535:
15384 * python/python.c (gdbpy_decode_line): Treat empty string the same
15385 as no argument.
15386
975f45b7
TT
153872020-01-14 Tom Tromey <tom@tromey.com>
15388
15389 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15390
25e57356
TT
153912020-01-14 Tom Tromey <tom@tromey.com>
15392
15393 * nat/linux-btrace.c: Don't include <config.h>.
15394 * nat/linux-ptrace.c: Don't include <config.h>.
15395 * nat/x86-linux-dregs.c: Don't include <config.h>.
15396
05ea2a05
TT
153972020-01-14 Tom Tromey <tom@tromey.com>
15398
15399 * configure: Rebuild.
15400 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15401
01027315
TT
154022020-01-14 Tom Tromey <tom@tromey.com>
15403
15404 * nat/x86-linux-dregs.c: Include configh.h.
15405 * nat/linux-ptrace.c: Include configh.h.
15406 * nat/linux-btrace.c: Include configh.h.
15407 * defs.h: Include config.h, bfd.h.
15408 * configure.ac: Don't source common.host.
15409 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15410 * configure: Rebuild.
15411 * acinclude.m4: Update path.
15412 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15413 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15414 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15415 (CLIBS): Add LIBSUPPORT.
15416 (CDEPS): Likewise.
15417 (COMMON_SFILES): Remove gdbsupport files.
15418 (HFILES_NO_SRCDIR): Likewise.
15419 (stamp-version): Update path to create-version.sh.
15420 (ALLDEPFILES): Remove gdbsupport files.
15421
b2ceabe8
TT
154222020-01-14 Tom Tromey <tom@tromey.com>
15423
15424 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15425 USE_WIN32API when needed.
15426 * configure.ac (USE_WIN32API): Don't define.
15427 (WIN32LIBS): Use WIN32APILIBS.
15428 * configure: Rebuild.
15429
25c51f71
TT
154302020-01-14 Tom Tromey <tom@tromey.com>
15431
15432 * configure: Rebuild.
15433 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15434
717c684d
BE
154352020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15436
15437 * skip.c (skip_function_command): Make skip w/o arguments use the
15438 name of the inlined function if pc is inside any inlined function.
15439
7da6a5b9
LM
154402020-01-14 Luis Machado <luis.machado@linaro.org>
15441
15442 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15443 * infrun.c (resume_1): Likewise.
15444 (handle_inferior_event): Remove stale comment.
15445 * linux-nat.c (linux_nat_target::resume): Update comments.
15446 (save_stop_reason): Likewise.
15447 (linux_nat_filter_event): Likewise.
15448 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15449
44e4c775
AB
154502020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15451
15452 * elfread.c (record_minimal_symbol): Set section index to 0 for
15453 non-allocatable sections.
15454
18a8505e
AT
15455
154562020-01-13 Ali Tamur <tamur@google.com>
15457
15458 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15459 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15460 to gdb::optional. Update comments.
15461 (dwo_file): Update comments.
15462 (read_attribute): Update API to take an additional out parameter,
15463 need_reprocess. This is used to mark attributes that need other
15464 attributes (e.g. str_offsets_base) for correct computation which may not
15465 have been read yet.
15466 (read_attribute_reprocess): New function declaration.
15467 (read_addr_index): Likewise.
15468 (read_dwo_str_index): Likewise.
15469 (read_stub_str_index): Likewise.
15470 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15471 (lookup_addr_base): New function definition.
15472 (lookup_ranges_base): Likewise.
15473 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15474 lookup_ranges_base.
15475 (init_cutu_and_read_dies): Update comments.
15476 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15477 unit. This is used to inherit parent's str_offsets_base and addr_base.
15478 Update comments.
15479 (init_cutu_and_read_dies_simple): Reflect API changes.
15480 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15481 (create_cus_hash_table): Change API to take parent compile unit.
15482 Reflect API changes.
15483 (open_and_init_dwo_file): Reflect API changes.
15484 (dwarf2_get_pc_bounds): Update comments.
15485 (dwarf2_record_block_ranges): Likewise.
15486 (read_full_die_1): Change implementation to reprocess attributes that
15487 need str_offsets_base and addr_base.
15488 (partial_die_info::read): Likewise.
15489 (read_attribute_reprocess): New function definition.
15490 (read_attribute_value): Change API to take an additional out parameter,
15491 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15492 when a non-dwo compile unit has index based attributes.
15493 (read_attribute): Reflect API changes.
15494 (read_addr_index_1): Reflect API changes. Update comments.
15495 (dwarf2_read_addr_index_data): Reflect API changes.
15496 (dwarf2_read_addr_index): Likewise.
15497 (read_str_index): Change API and implementation. This becomes a helper
15498 to be used by the new string index related methods. Update error
15499 message and comments.
15500 (read_dwo_str_index): New function definition.
15501 (read_stub_str_index): Likewise.
15502 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15503 * symfile.h (dwarf2_debug_sections): Likewise.
15504 * xcoffread.c (dwarf2_debug_sections): Likewise.
15505
0cac9354
SM
155062020-01-13 Simon Marchi <simon.marchi@efficios.com>
15507
15508 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15509 core_reg_sect type to gdb_byte *.
15510 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15511 * cris-tdep.c (fetch_core_registers): Likewise.
15512 * corelow.c (core_target::get_core_register_section): Change
15513 type of `contents` to gdb::byte_vector.
15514
9a6d629c
AB
155152020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15516
15517 * tui/tui-wingeneral.c (box_win): Position the title in the center
15518 of the border.
15519
d8b2f9e3
SM
155202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15521
15522 * corelow.c (core_target::get_core_register_section): Use
15523 std::vector instead of alloca.
15524
bb564c58
SM
155252020-01-13 Simon Marchi <simon.marchi@efficios.com>
15526
15527 * warning.m4: Add -Wmissing-declarations to build_warnings.
15528 * configure: Re-generate.
15529
6b366111
SM
155302020-01-13 Simon Marchi <simon.marchi@efficios.com>
15531
15532 * python/python.c (init__gdb_module): Add declaration.
15533
6c265988
SM
155342020-01-13 Simon Marchi <simon.marchi@efficios.com>
15535
15536 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15537 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15538 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15539 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15540 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15541 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15542 * ada-exp.y (_initialize_ada_exp): Add declaration.
15543 * ada-lang.c (_initialize_ada_language): Add declaration.
15544 * ada-tasks.c (_initialize_tasks): Add declaration.
15545 * agent.c (_initialize_agent): Add declaration.
15546 * aix-thread.c (_initialize_aix_thread): Add declaration.
15547 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15548 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15549 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15550 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15551 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15552 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15553 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15554 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15555 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15556 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15557 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15558 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15559 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15560 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15561 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15562 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15563 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15564 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15565 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15566 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15567 * annotate.c (_initialize_annotate): Add declaration.
15568 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15569 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15570 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15571 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15572 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15573 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15574 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15575 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15576 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15577 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15578 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15579 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15580 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15581 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15582 * auto-load.c (_initialize_auto_load): Add declaration.
15583 * auxv.c (_initialize_auxv): Add declaration.
15584 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15585 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15586 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15587 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15588 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15589 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15590 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15591 * breakpoint.c (_initialize_breakpoint): Add declaration.
15592 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15593 * btrace.c (_initialize_btrace): Add declaration.
15594 * charset.c (_initialize_charset): Add declaration.
15595 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15596 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15597 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15598 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15599 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15600 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15601 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15602 * coffread.c (_initialize_coffread): Add declaration.
15603 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15604 * compile/compile.c (_initialize_compile): Add declaration.
15605 * complaints.c (_initialize_complaints): Add declaration.
15606 * completer.c (_initialize_completer): Add declaration.
15607 * copying.c (_initialize_copying): Add declaration.
15608 * corefile.c (_initialize_core): Add declaration.
15609 * corelow.c (_initialize_corelow): Add declaration.
15610 * cp-abi.c (_initialize_cp_abi): Add declaration.
15611 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15612 * cp-support.c (_initialize_cp_support): Add declaration.
15613 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15614 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15615 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15616 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15617 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15618 * ctfread.c (_initialize_ctfread): Add declaration.
15619 * d-lang.c (_initialize_d_language): Add declaration.
15620 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15621 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15622 * dbxread.c (_initialize_dbxread): Add declaration.
15623 * dcache.c (_initialize_dcache): Add declaration.
15624 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15625 * disasm.c (_initialize_disasm): Add declaration.
15626 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15627 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15628 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15629 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15630 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15631 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15632 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15633 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15634 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15635 * elfread.c (_initialize_elfread): Add declaration.
15636 * exec.c (_initialize_exec): Add declaration.
15637 * extension.c (_initialize_extension): Add declaration.
15638 * f-lang.c (_initialize_f_language): Add declaration.
15639 * f-valprint.c (_initialize_f_valprint): Add declaration.
15640 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15641 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15642 * filesystem.c (_initialize_filesystem): Add declaration.
15643 * findcmd.c (_initialize_mem_search): Add declaration.
15644 * findvar.c (_initialize_findvar): Add declaration.
15645 * fork-child.c (_initialize_fork_child): Add declaration.
15646 * frame-base.c (_initialize_frame_base): Add declaration.
15647 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15648 * frame.c (_initialize_frame): Add declaration.
15649 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15650 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15651 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15652 * gcore.c (_initialize_gcore): Add declaration.
15653 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15654 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15655 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15656 * gdbarch.c (_initialize_gdbarch): Add declaration.
15657 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15658 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15659 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15660 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15661 * go-lang.c (_initialize_go_language): Add declaration.
15662 * go32-nat.c (_initialize_go32_nat): Add declaration.
15663 * guile/guile.c (_initialize_guile): Add declaration.
15664 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15665 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15666 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15667 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15668 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15669 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15670 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15671 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15672 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15673 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15674 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15675 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15676 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15677 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15678 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15679 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15680 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15681 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15682 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15683 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15684 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15685 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15686 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15687 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15688 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15689 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15690 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15691 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15692 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15693 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15694 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15695 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15696 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15697 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15698 * infcall.c (_initialize_infcall): Add declaration.
15699 * infcmd.c (_initialize_infcmd): Add declaration.
15700 * inflow.c (_initialize_inflow): Add declaration.
15701 * infrun.c (_initialize_infrun): Add declaration.
15702 * interps.c (_initialize_interpreter): Add declaration.
15703 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15704 * jit.c (_initialize_jit): Add declaration.
15705 * language.c (_initialize_language): Add declaration.
15706 * linux-fork.c (_initialize_linux_fork): Add declaration.
15707 * linux-nat.c (_initialize_linux_nat): Add declaration.
15708 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15709 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15710 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15711 * m2-lang.c (_initialize_m2_language): Add declaration.
15712 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15713 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15714 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15715 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15716 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15717 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15718 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15719 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15720 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15721 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15722 * machoread.c (_initialize_machoread): Add declaration.
15723 * macrocmd.c (_initialize_macrocmd): Add declaration.
15724 * macroscope.c (_initialize_macroscope): Add declaration.
15725 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15726 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15727 * maint.c (_initialize_maint_cmds): Add declaration.
15728 * mdebugread.c (_initialize_mdebugread): Add declaration.
15729 * memattr.c (_initialize_mem): Add declaration.
15730 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15731 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15732 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15733 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15734 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15735 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15736 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15737 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15738 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15739 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15740 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15741 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15742 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15743 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15744 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15745 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15746 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15747 * mipsread.c (_initialize_mipsread): Add declaration.
15748 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15749 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15750 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15751 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15752 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15753 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15754 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15755 * nto-procfs.c (_initialize_procfs): Add declaration.
15756 * objc-lang.c (_initialize_objc_language): Add declaration.
15757 * observable.c (_initialize_observer): Add declaration.
15758 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15759 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15760 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15761 * osabi.c (_initialize_gdb_osabi): Add declaration.
15762 * osdata.c (_initialize_osdata): Add declaration.
15763 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15764 * parse.c (_initialize_parse): Add declaration.
15765 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15766 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15767 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15768 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15769 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15770 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15771 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15772 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15773 * printcmd.c (_initialize_printcmd): Add declaration.
15774 * probe.c (_initialize_probe): Add declaration.
15775 * proc-api.c (_initialize_proc_api): Add declaration.
15776 * proc-events.c (_initialize_proc_events): Add declaration.
15777 * proc-service.c (_initialize_proc_service): Add declaration.
15778 * procfs.c (_initialize_procfs): Add declaration.
15779 * producer.c (_initialize_producer): Add declaration.
15780 * psymtab.c (_initialize_psymtab): Add declaration.
15781 * python/python.c (_initialize_python): Add declaration.
15782 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15783 * record-btrace.c (_initialize_record_btrace): Add declaration.
15784 * record-full.c (_initialize_record_full): Add declaration.
15785 * record.c (_initialize_record): Add declaration.
15786 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15787 * regcache.c (_initialize_regcache): Add declaration.
15788 * reggroups.c (_initialize_reggroup): Add declaration.
15789 * remote-notif.c (_initialize_notif): Add declaration.
15790 * remote-sim.c (_initialize_remote_sim): Add declaration.
15791 * remote.c (_initialize_remote): Add declaration.
15792 * reverse.c (_initialize_reverse): Add declaration.
15793 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15794 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15795 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15796 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15797 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15798 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15799 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15800 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15801 Add declaration.
15802 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15803 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15804 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15805 * rust-exp.y (_initialize_rust_exp): Add declaration.
15806 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15807 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15808 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15809 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15810 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15811 * score-tdep.c (_initialize_score_tdep): Add declaration.
15812 * ser-go32.c (_initialize_ser_dos): Add declaration.
15813 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15814 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15815 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15816 * ser-uds.c (_initialize_ser_socket): Add declaration.
15817 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15818 * serial.c (_initialize_serial): Add declaration.
15819 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15820 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15821 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15822 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15823 * skip.c (_initialize_step_skip): Add declaration.
15824 * sol-thread.c (_initialize_sol_thread): Add declaration.
15825 * solib-aix.c (_initialize_solib_aix): Add declaration.
15826 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15827 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15828 * solib-frv.c (_initialize_frv_solib): Add declaration.
15829 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15830 * solib-target.c (_initialize_solib_target): Add declaration.
15831 * solib.c (_initialize_solib): Add declaration.
15832 * source-cache.c (_initialize_source_cache): Add declaration.
15833 * source.c (_initialize_source): Add declaration.
15834 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15835 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15836 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15837 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15838 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15839 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15840 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15841 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15842 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15843 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15844 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15845 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15846 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15847 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15848 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15849 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15850 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15851 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15852 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15853 * stabsread.c (_initialize_stabsread): Add declaration.
15854 * stack.c (_initialize_stack): Add declaration.
15855 * stap-probe.c (_initialize_stap_probe): Add declaration.
15856 * std-regs.c (_initialize_frame_reg): Add declaration.
15857 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15858 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15859 * symfile.c (_initialize_symfile): Add declaration.
15860 * symmisc.c (_initialize_symmisc): Add declaration.
15861 * symtab.c (_initialize_symtab): Add declaration.
15862 * target.c (_initialize_target): Add declaration.
15863 * target-connection.c (_initialize_target_connection): Add
15864 declaration.
15865 * target-dcache.c (_initialize_target_dcache): Add declaration.
15866 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15867 * thread.c (_initialize_thread): Add declaration.
15868 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15869 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15870 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15871 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15872 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15873 * tracectf.c (_initialize_ctf): Add declaration.
15874 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15875 * tracefile.c (_initialize_tracefile): Add declaration.
15876 * tracepoint.c (_initialize_tracepoint): Add declaration.
15877 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15878 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15879 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15880 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15881 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15882 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15883 * tui/tui.c (_initialize_tui): Add declaration.
15884 * typeprint.c (_initialize_typeprint): Add declaration.
15885 * ui-style.c (_initialize_ui_style): Add declaration.
15886 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15887 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15888 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15889 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15890 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15891 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15892 * unittests/filtered_iterator-selftests.c
15893 (_initialize_filtered_iterator_selftests): Add declaration.
15894 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15895 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15896 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15897 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15898 * unittests/main-thread-selftests.c
15899 (_initialize_main_thread_selftests): Add declaration.
15900 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15901 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15902 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15903 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15904 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15905 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15906 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15907 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15908 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15909 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15910 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15911 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15912 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15913 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15914 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15915 declaration.
15916 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15917 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15918 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15919 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15920 * user-regs.c (_initialize_user_regs): Add declaration.
15921 * utils.c (_initialize_utils): Add declaration.
15922 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15923 * valops.c (_initialize_valops): Add declaration.
15924 * valprint.c (_initialize_valprint): Add declaration.
15925 * value.c (_initialize_values): Add declaration.
15926 * varobj.c (_initialize_varobj): Add declaration.
15927 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15928 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15929 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15930 * windows-nat.c (_initialize_windows_nat): Add declaration.
15931 (_initialize_check_for_gdb_ini): Add declaration.
15932 (_initialize_loadable): Add declaration.
15933 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15934 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15935 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15936 * xcoffread.c (_initialize_xcoffread): Add declaration.
15937 * xml-support.c (_initialize_xml_support): Add declaration.
15938 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15939 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15940 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15941 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15942
e2de1eec
SM
159432020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15944
15945 * regformats/regdat.sh: Generate declaration for init function.
15946
e0037b4c
SM
159472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15948
15949 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15950 up.
15951 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15952 close_one_inferior>: New methods.
15953 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15954 pass down target to find_inferior_pid.
15955 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15956 Pass down target to find_inferior_ptid.
15957 (gdbsim_target::create_inferior): Pass down target to
15958 add_thread_silent.
15959 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15960 target down to find_inferior_ptid and switch_to_thread.
15961 (gdbsim_target::close): Update to call close_one_inferior.
15962 (struct resume_data): Remove.
15963 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15964 directly, rather than through a void pointer.
15965 (gdbsim_target::resume): Update to call resume_one_inferior.
15966
58920b5b
SM
159672020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15968
15969 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15970
4ec89149
PA
159712020-01-12 Pedro Alves <palves@redhat.com>
15972
15973 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15974 directly for the current inferior instead of
15975 discard_all_inferiors.
15976 (discard_all_inferiors): Delete.
15977
7c392d1d
TT
159782020-01-11 Tom Tromey <tom@tromey.com>
15979
15980 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15981 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15982 deprecated_safe_get_selected_frame.
15983
d9ebdab7
TBA
159842020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15985
15986 * inferior.c (print_inferior): Switch inferior before printing it.
15987
f3c469b9
PA
159882020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15989 Pedro Alves <palves@redhat.com>
15990
15991 * progspace-and-thread.c (switch_to_program_space_and_thread):
15992 Assert there's an inferior for PSPACE. Use
15993 switch_to_inferior_no_thread to switch the inferior too.
15994 * progspace.c (program_space::~program_space): Call
15995 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15996 (program_space::free_all_objfiles): Don't call clear_symtab_users
15997 here.
15998 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15999
65c574f6
PA
160002020-01-10 Pedro Alves <palves@redhat.com>
16001
16002 * NEWS: Mention multi-target debugging, "info connections", and
16003 "add-inferior -no-connection".
16004
2f4fcf00
PA
160052020-01-10 Pedro Alves <palves@redhat.com>
16006
16007 * infrun.c: Include "target-connection.h".
16008 (check_multi_target_resumption): New.
16009 (proceed): Call it.
16010 * target-connection.c (make_target_connection_string): Make
16011 extern.
16012 * target-connection.h (make_target_connection_string): Declare.
16013
121b3efd
PA
160142020-01-10 Pedro Alves <palves@redhat.com>
16015
16016 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16017 * inferior.c (uiout_field_connection): New function.
16018 (print_inferior): Add new "connection-id" column.
16019 (add_inferior_command): Show connection number/string of added
16020 inferior.
16021 * process-stratum-target.h
16022 (process_stratum_target::connection_string): New virtual method.
16023 (process_stratum_target::connection_number): New field.
16024 * remote.c (remote_target::connection_string): New override.
16025 * target-connection.c: New file.
16026 * target-connection.h: New file.
16027 * target.c (decref_target): Remove process_stratum targets from
16028 the connection list.
16029 (target_stack::push): Add process_stratum targets to the
16030 connection list.
16031
4f837581
PA
160322020-01-10 Pedro Alves <palves@redhat.com>
16033
16034 Revert:
16035 2016-04-12 Pedro Alves <palves@redhat.com>
16036 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16037 Remove references to name.
16038 * serial.h (struct serial) <name>: Delete.
16039
f4ec508e
PA
160402020-01-10 Pedro Alves <palves@redhat.com>
16041
16042 * gdbarch-selftests.c (register_to_value_test): Remove "target
16043 already pushed" check.
16044
5b6d1e4f
PA
160452020-01-10 Pedro Alves <palves@redhat.com>
16046 John Baldwin <jhb@FreeBSD.org>
16047
16048 * aarch64-linux-nat.c
16049 (aarch64_linux_nat_target::thread_architecture): Adjust.
16050 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16051 (task_command_1): Likewise.
16052 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16053 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16054 (aix_thread_target::store_registers)
16055 (aix_thread_target::thread_alive): Adjust.
16056 * amd64-fbsd-tdep.c: Include "inferior.h".
16057 (amd64fbsd_get_thread_local_address): Pass down target.
16058 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16059 thread's gdbarch instead of target_gdbarch.
16060 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16061 get_last_target_status.
16062 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16063 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16064 inferiors.
16065 (update_inserted_breakpoint_locations): Skip if inferiors with no
16066 execution.
16067 (update_global_location_list): When handling moribund locations,
16068 find representative inferior for location's pspace, and use thread
16069 count of its process_stratum target.
16070 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16071 * bsd-uthread.c (bsd_uthread_target::wait): Use
16072 as_process_stratum_target and adjust thread_change_ptid and
16073 add_thread calls.
16074 (bsd_uthread_target::update_thread_list): Use
16075 as_process_stratum_target and adjust find_thread_ptid,
16076 thread_change_ptid and add_thread calls.
16077 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16078 find_thread_ptid call.
16079 * corelow.c (add_to_thread_list): Adjust add_thread call.
16080 (core_target_open): Adjust add_thread_silent and thread_count
16081 calls.
16082 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16083 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16084 * event-top.c (async_disconnect): Pop targets from all inferiors.
16085 * exec.c (add_target_sections): Push exec target on all inferiors
16086 sharing the program space.
16087 (remove_target_sections): Remove the exec target from all
16088 inferiors sharing the program space.
16089 (exec_on_vfork): New.
16090 * exec.h (exec_on_vfork): Declare.
16091 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16092 Pass it down.
16093 (fbsd_nat_target::update_thread_list): Adjust.
16094 (fbsd_nat_target::resume): Adjust.
16095 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16096 down.
16097 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16098 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16099 get_thread_arch_regcache call.
16100 * fork-child.c (gdb_startup_inferior): Pass target down to
16101 startup_inferior and set_executing.
16102 * gdbthread.h (struct process_stratum_target): Forward declare.
16103 (add_thread, add_thread_silent, add_thread_with_info)
16104 (in_thread_list): Add process_stratum_target parameter.
16105 (find_thread_ptid(inferior*, ptid_t)): New overload.
16106 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16107 parameter.
16108 (all_threads()): Delete overload.
16109 (all_threads, all_non_exited_threads): Add process_stratum_target
16110 parameter.
16111 (all_threads_safe): Use brace initialization.
16112 (thread_count): Add process_stratum_target parameter.
16113 (set_resumed, set_running, set_stop_requested, set_executing)
16114 (threads_are_executing, finish_thread_state): Add
16115 process_stratum_target parameter.
16116 (switch_to_thread): Use is_current_thread.
16117 * i386-fbsd-tdep.c: Include "inferior.h".
16118 (i386fbsd_get_thread_local_address): Pass down target.
16119 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16120 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16121 have_inferiors check.
16122 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16123 (inf_ptrace_target::attach): Adjust.
16124 * infcall.c (run_inferior_call): Adjust.
16125 * infcmd.c (run_command_1): Pass target to
16126 scoped_finish_thread_state.
16127 (proceed_thread_callback): Skip inferiors with no execution.
16128 (continue_command): Rename 'all_threads' local to avoid hiding
16129 'all_threads' function. Adjust get_last_target_status call.
16130 (prepare_one_step): Adjust set_running call.
16131 (signal_command): Use user_visible_resume_target. Compare thread
16132 pointers instead of inferior_ptid.
16133 (info_program_command): Adjust to pass down target.
16134 (attach_command): Mark target's 'thread_executing' flag.
16135 (stop_current_target_threads_ns): New, factored out from ...
16136 (interrupt_target_1): ... this. Switch inferior before making
16137 target calls.
16138 * inferior-iter.h
16139 (struct all_inferiors_iterator, struct all_inferiors_range)
16140 (struct all_inferiors_safe_range)
16141 (struct all_non_exited_inferiors_range): Filter on
16142 process_stratum_target too. Remove explicit.
16143 * inferior.c (inferior::inferior): Push dummy target on target
16144 stack.
16145 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16146 Add process_stratum_target parameter, and pass it down.
16147 (have_live_inferiors): Adjust.
16148 (switch_to_inferior_and_push_target): New.
16149 (add_inferior_command, clone_inferior_command): Handle
16150 "-no-connection" parameter. Use
16151 switch_to_inferior_and_push_target.
16152 (_initialize_inferior): Mention "-no-connection" option in
16153 the help of "add-inferior" and "clone-inferior" commands.
16154 * inferior.h: Include "process-stratum-target.h".
16155 (interrupt_target_1): Use bool.
16156 (struct inferior) <push_target, unpush_target, target_is_pushed,
16157 find_target_beneath, top_target, process_target, target_at,
16158 m_stack>: New.
16159 (discard_all_inferiors): Delete.
16160 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16161 (all_inferiors, all_non_exited_inferiors): Add
16162 process_stratum_target parameter.
16163 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16164 (target_last_proc_target): New global.
16165 (follow_fork_inferior): Push target on new inferior. Pass target
16166 to add_thread_silent. Call exec_on_vfork. Handle target's
16167 reference count.
16168 (follow_fork): Adjust get_last_target_status call. Also consider
16169 target.
16170 (follow_exec): Push target on new inferior.
16171 (struct execution_control_state) <target>: New field.
16172 (user_visible_resume_target): New.
16173 (do_target_resume): Call target_async.
16174 (resume_1): Set target's threads_executing flag. Consider resume
16175 target.
16176 (commit_resume_all_targets): New.
16177 (proceed): Also consider resume target. Skip threads of inferiors
16178 with no execution. Commit resumtion in all targets.
16179 (start_remote): Pass current inferior to wait_for_inferior.
16180 (infrun_thread_stop_requested): Consider target as well. Pass
16181 thread_info pointer to clear_inline_frame_state instead of ptid.
16182 (infrun_thread_thread_exit): Consider target as well.
16183 (random_pending_event_thread): New inferior parameter. Use it.
16184 (do_target_wait): Rename to ...
16185 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16186 down.
16187 (threads_are_resumed_pending_p, do_target_wait): New.
16188 (prepare_for_detach): Adjust calls.
16189 (wait_for_inferior): New inferior parameter. Handle it. Use
16190 do_target_wait_1 instead of do_target_wait.
16191 (fetch_inferior_event): Adjust. Switch to representative
16192 inferior. Pass target down.
16193 (set_last_target_status): Add process_stratum_target parameter.
16194 Save target in global.
16195 (get_last_target_status): Add process_stratum_target parameter and
16196 handle it.
16197 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16198 (context_switch): Check inferior_ptid == null_ptid before calling
16199 inferior_thread().
16200 (get_inferior_stop_soon): Pass down target.
16201 (wait_one): Rename to ...
16202 (poll_one_curr_target): ... this.
16203 (struct wait_one_event): New.
16204 (wait_one): New.
16205 (stop_all_threads): Adjust.
16206 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16207 event's target.
16208 (switch_back_to_stepped_thread): Also consider target.
16209 (print_stop_event): Update.
16210 (normal_stop): Update. Also consider the resume target.
16211 * infrun.h (wait_for_inferior): Remove declaration.
16212 (user_visible_resume_target): New declaration.
16213 (get_last_target_status, set_last_target_status): New
16214 process_stratum_target parameter.
16215 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16216 process_stratum_target parameter, and use it.
16217 (clear_inline_frame_state (thread_info*)): New.
16218 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16219 process_stratum_target parameter.
16220 (clear_inline_frame_state (thread_info*)): Declare.
16221 * linux-fork.c (delete_checkpoint_command): Pass target down to
16222 find_thread_ptid.
16223 (checkpoint_command): Adjust.
16224 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16225 instead of just tweaking inferior_ptid.
16226 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16227 (exit_lwp): Pass target down to find_thread_ptid.
16228 (attach_proc_task_lwp_callback): Pass target down to
16229 add_thread/set_running/set_executing.
16230 (linux_nat_target::attach): Pass target down to
16231 thread_change_ptid.
16232 (get_detach_signal): Pass target down to find_thread_ptid.
16233 Consider last target status's target.
16234 (linux_resume_one_lwp_throw, resume_lwp)
16235 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16236 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16237 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16238 (linux_nat_target::async_wait_fd): New.
16239 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16240 target down.
16241 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16242 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16243 * linux-thread-db.c (struct thread_db_info::process_target): New
16244 field.
16245 (add_thread_db_info): Save target.
16246 (get_thread_db_info): New process_stratum_target parameter. Also
16247 match target.
16248 (delete_thread_db_info): New process_stratum_target parameter.
16249 Also match target.
16250 (thread_from_lwp): Adjust to pass down target.
16251 (thread_db_notice_clone): Pass down target.
16252 (check_thread_db_callback): Pass down target.
16253 (try_thread_db_load_1): Always push the thread_db target.
16254 (try_thread_db_load, record_thread): Pass target down.
16255 (thread_db_target::detach): Pass target down. Always unpush the
16256 thread_db target.
16257 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16258 target down. Always unpush the thread_db target.
16259 (find_new_threads_callback, thread_db_find_new_threads_2)
16260 (thread_db_target::update_thread_list): Pass target down.
16261 (thread_db_target::pid_to_str): Pass current inferior down.
16262 (thread_db_target::get_thread_local_address): Pass target down.
16263 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16264 target down.
16265 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16266 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16267 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16268 (procfs_init_inferior): Rename to ...
16269 (procfs_target::procfs_init_inferior): ... this and adjust.
16270 (procfs_target::create_inferior, procfs_notice_thread)
16271 (procfs_do_thread_registers): Adjust.
16272 * ppc-fbsd-tdep.c: Include "inferior.h".
16273 (ppcfbsd_get_thread_local_address): Pass down target.
16274 * proc-service.c (ps_xfer_memory): Switch current inferior and
16275 program space as well.
16276 (get_ps_regcache): Pass target down.
16277 * process-stratum-target.c
16278 (process_stratum_target::thread_address_space)
16279 (process_stratum_target::thread_architecture): Pass target down.
16280 * process-stratum-target.h
16281 (process_stratum_target::threads_executing): New field.
16282 (as_process_stratum_target): New.
16283 * ravenscar-thread.c
16284 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16285 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16286 down.
16287 * record-btrace.c (record_btrace_target::info_record): Adjust.
16288 (record_btrace_target::record_method)
16289 (record_btrace_target::record_is_replaying)
16290 (record_btrace_target::fetch_registers)
16291 (get_thread_current_frame_id, record_btrace_target::resume)
16292 (record_btrace_target::wait, record_btrace_target::stop): Pass
16293 target down.
16294 * record-full.c (record_full_wait_1): Switch to event thread.
16295 Pass target down.
16296 * regcache.c (regcache::regcache)
16297 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16298 process_stratum_target parameter and handle it.
16299 (current_thread_target): New global.
16300 (get_thread_regcache): Add process_stratum_target parameter and
16301 handle it. Switch inferior before calling target method.
16302 (get_thread_regcache): Pass target down.
16303 (get_thread_regcache_for_ptid): Pass target down.
16304 (registers_changed_ptid): Add process_stratum_target parameter and
16305 handle it.
16306 (registers_changed_thread, registers_changed): Pass target down.
16307 (test_get_thread_arch_aspace_regcache): New.
16308 (current_regcache_test): Define a couple local test_target_ops
16309 instances and use them for testing.
16310 (readwrite_regcache): Pass process_stratum_target parameter.
16311 (cooked_read_test, cooked_write_test): Pass mock_target down.
16312 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16313 (get_thread_arch_aspace_regcache): Add process_stratum_target
16314 parameter.
16315 (regcache::target): New method.
16316 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16317 (regcache::registers_changed_ptid): Add process_stratum_target
16318 parameter.
16319 (regcache::m_target): New field.
16320 (registers_changed_ptid): Add process_stratum_target parameter.
16321 * remote.c (remote_state::supports_vCont_probed): New field.
16322 (remote_target::async_wait_fd): New method.
16323 (remote_unpush_and_throw): Add remote_target parameter.
16324 (get_current_remote_target): Adjust.
16325 (remote_target::remote_add_inferior): Push target.
16326 (remote_target::remote_add_thread)
16327 (remote_target::remote_notice_new_inferior)
16328 (get_remote_thread_info): Pass target down.
16329 (remote_target::update_thread_list): Skip threads of inferiors
16330 bound to other targets. (remote_target::close): Don't discard
16331 inferiors. (remote_target::add_current_inferior_and_thread)
16332 (remote_target::process_initial_stop_replies)
16333 (remote_target::start_remote)
16334 (remote_target::remote_serial_quit_handler): Pass down target.
16335 (remote_target::remote_unpush_target): New remote_target
16336 parameter. Unpush the target from all inferiors.
16337 (remote_target::remote_unpush_and_throw): New remote_target
16338 parameter. Pass it down.
16339 (remote_target::open_1): Check whether the current inferior has
16340 execution instead of checking whether any inferior is live. Pass
16341 target down.
16342 (remote_target::remote_detach_1): Pass down target. Use
16343 remote_unpush_target.
16344 (extended_remote_target::attach): Pass down target.
16345 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16346 (remote_target::append_resumption): Pass down target.
16347 (remote_target::append_pending_thread_resumptions)
16348 (remote_target::remote_resume_with_hc, remote_target::resume)
16349 (remote_target::commit_resume): Pass down target.
16350 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16351 (remote_target::interrupt_query)
16352 (remote_target::remove_new_fork_children)
16353 (remote_target::check_pending_events_prevent_wildcard_vcont)
16354 (remote_target::remote_parse_stop_reply)
16355 (remote_target::process_stop_reply): Pass down target.
16356 (first_remote_resumed_thread): New remote_target parameter. Pass
16357 it down.
16358 (remote_target::wait_as): Pass down target.
16359 (unpush_and_perror): New remote_target parameter. Pass it down.
16360 (remote_target::readchar, remote_target::remote_serial_write)
16361 (remote_target::getpkt_or_notif_sane_1)
16362 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16363 down target.
16364 (remote_target::mourn_inferior): Pass down target. Use
16365 remote_unpush_target.
16366 (remote_target::core_of_thread)
16367 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16368 (remote_target::pid_to_exec_file)
16369 (remote_target::thread_handle_to_thread_info): Pass down target.
16370 (remote_target::async_wait_fd): New.
16371 * riscv-fbsd-tdep.c: Include "inferior.h".
16372 (riscv_fbsd_get_thread_local_address): Pass down target.
16373 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16374 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16375 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16376 Adjust.
16377 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16378 * solib-svr4.c (enable_break): Pass down target.
16379 * spu-multiarch.c (parse_spufs_run): Pass down target.
16380 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16381 * target-delegates.c: Regenerate.
16382 * target.c (g_target_stack): Delete.
16383 (current_top_target): Return the current inferior's top target.
16384 (target_has_execution_1): Refer to the passed-in inferior's top
16385 target.
16386 (target_supports_terminal_ours): Check whether the initial
16387 inferior was already created.
16388 (decref_target): New.
16389 (target_stack::push): Incref/decref the target.
16390 (push_target, push_target, unpush_target): Adjust.
16391 (target_stack::unpush): Defref target.
16392 (target_is_pushed): Return bool. Adjust to refer to the current
16393 inferior's target stack.
16394 (dispose_inferior): Delete, and inline parts ...
16395 (target_preopen): ... here. Only dispose of the current inferior.
16396 (target_detach): Hold strong target reference while detaching.
16397 Pass target down.
16398 (target_thread_name): Add assertion.
16399 (target_resume): Pass down target.
16400 (target_ops::beneath, find_target_at): Adjust to refer to the
16401 current inferior's target stack.
16402 (get_dummy_target): New.
16403 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16404 has a thread running.
16405 (initialize_targets): Rename to ...
16406 (_initialize_target): ... this.
16407 * target.h: Include "gdbsupport/refcounted-object.h".
16408 (struct target_ops): Inherit refcounted_object.
16409 (target_ops::shortname, target_ops::longname): Make const.
16410 (target_ops::async_wait_fd): New method.
16411 (decref_target): Declare.
16412 (struct target_ops_ref_policy): New.
16413 (target_ops_ref): New typedef.
16414 (get_dummy_target): Declare function.
16415 (target_is_pushed): Return bool.
16416 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16417 (all_matching_threads_iterator::all_matching_threads_iterator):
16418 Handle filter target.
16419 * thread-iter.h (struct all_matching_threads_iterator, struct
16420 all_matching_threads_range, class all_non_exited_threads_range):
16421 Filter by target too. Remove explicit.
16422 * thread.c (threads_executing): Delete.
16423 (inferior_thread): Pass down current inferior.
16424 (clear_thread_inferior_resources): Pass down thread pointer
16425 instead of ptid_t.
16426 (add_thread_silent, add_thread_with_info, add_thread): Add
16427 process_stratum_target parameter. Use it for thread and inferior
16428 searches.
16429 (is_current_thread): New.
16430 (thread_info::deletable): Use it.
16431 (find_thread_ptid, thread_count, in_thread_list)
16432 (thread_change_ptid, set_resumed, set_running): New
16433 process_stratum_target parameter. Pass it down.
16434 (set_executing): New process_stratum_target parameter. Pass it
16435 down. Adjust reference to 'threads_executing'.
16436 (threads_are_executing): New process_stratum_target parameter.
16437 Adjust reference to 'threads_executing'.
16438 (set_stop_requested, finish_thread_state): New
16439 process_stratum_target parameter. Pass it down.
16440 (switch_to_thread): Also match inferior.
16441 (switch_to_thread): New process_stratum_target parameter. Pass it
16442 down.
16443 (update_threads_executing): Reimplement.
16444 * top.c (quit_force): Pop targets from all inferior.
16445 (gdb_init): Don't call initialize_targets.
16446 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16447 Declare.
16448 (windows_add_thread, windows_delete_thread): Adjust.
16449 (get_windows_debug_event): Rename to ...
16450 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16451 * tracefile-tfile.c (tfile_target_open): Pass down target.
16452 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16453 Forward declare.
16454 (switch_to_thread): Add process_stratum_target parameter.
16455 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16456 parameter. Use it.
16457 (mi_on_resume): Pass target down.
16458 * nat/fork-inferior.c (startup_inferior): Add
16459 process_stratum_target parameter. Pass it down.
16460 * nat/fork-inferior.h (startup_inferior): Add
16461 process_stratum_target parameter.
16462 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16463
75c6c844
PA
164642020-01-10 Pedro Alves <palves@redhat.com>
16465
16466 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16467 directly. Instead find the first thread in the thread list and
16468 use switch_to_thread.
16469
78f2c40a
PA
164702020-01-10 Pedro Alves <palves@redhat.com>
16471
16472 * remote.c (remote_target::remote_add_inferior): Don't bind a
16473 process to the current inferior if the current inferior is already
16474 bound to a process.
16475
e7af6c70
TBA
164762020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16477 Pedro Alves <palves@redhat.com>
16478
16479 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16480 If no process is specified, return null_ptid instead of
16481 inferior_ptid.
16482 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16483 TARGET_WAITKIND_SIGNALLED with no pid.
16484
31ba933e
PA
164852020-01-10 Pedro Alves <palves@redhat.com>
16486
16487 * remote.c (first_remote_resumed_thread): New.
16488 (remote_target::wait_as): Use it as default event_ptid instead of
16489 inferior_ptid.
16490
735fc2ca
PA
164912020-01-10 Pedro Alves <palves@redhat.com>
16492
16493 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16494
c17e02e1
PA
164952020-01-10 Pedro Alves <palves@redhat.com>
16496
16497 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16498 not -1.
16499
ab1ddbcf
PA
165002020-01-10 Pedro Alves <palves@redhat.com>
16501
16502 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16503 ptid to get_last_target_status.
16504 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16505 ptid to get_last_target_status.
16506 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16507 get_last_target_status.
16508 (info_program_command): Don't pass a target_waitstatus to
16509 get_last_target_status.
16510 * infrun.c (init_wait_for_inferior): Use
16511 nullify_last_target_wait_ptid.
16512 (get_last_target_status): Handle nullptr arguments.
16513 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16514 (print_stop_event): Don't pass a ptid to get_last_target_status.
16515 (normal_stop): Don't pass a ptid to get_last_target_status.
16516 * infrun.h (get_last_target_status, set_last_target_status): Move
16517 comments here and update.
16518 (nullify_last_target_wait_ptid): Declare.
16519 * linux-fork.c (fork_load_infrun_state): Remove local extern
16520 declaration of nullify_last_target_wait_ptid.
16521 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16522 to get_last_target_status.
16523
f3f8ece4
PA
165242020-01-10 Pedro Alves <palves@redhat.com>
16525
16526 * gdbthread.h (scoped_restore_current_thread)
16527 <dont_restore, restore, m_dont_restore>: Declare.
16528 * thread.c (thread_alive): Add assertion. Return bool.
16529 (switch_to_thread_if_alive): New.
16530 (prune_threads): Switch inferior/thread.
16531 (print_thread_info_1): Switch thread before calling target methods.
16532 (scoped_restore_current_thread::restore): New, factored out from
16533 ...
16534 (scoped_restore_current_thread::~scoped_restore_current_thread):
16535 ... this.
16536 (scoped_restore_current_thread::scoped_restore_current_thread):
16537 Add assertion.
16538 (thread_apply_all_command, thread_select): Use
16539 switch_to_thread_if_alive.
16540 * infrun.c (proceed, restart_threads, handle_signal_stop)
16541 (switch_back_to_stepped_thread): Switch current thread before
16542 calling target methods.
16543
db2d40f7
PA
165442020-01-10 Pedro Alves <palves@redhat.com>
16545
16546 * inferior.c (switch_to_inferior_no_thread): New function,
16547 factored out from ...
16548 (inferior_command): ... here.
16549 * inferior.h (switch_to_inferior_no_thread): Declare.
16550 * mi/mi-main.c (run_one_inferior): Use
16551 switch_to_inferior_no_thread.
16552
bd420a2d
PA
165532020-01-10 Pedro Alves <palves@redhat.com>
16554
16555 * infcmd.c (kill_command): Remove dead code.
16556
ddf5db90
PA
165572020-01-10 Pedro Alves <palves@redhat.com>
16558
16559 * remote.c (remote_target::mourn_inferior): No longer check
16560 whether the target is running.
16561
5018ce90
PA
165622020-01-10 Pedro Alves <palves@redhat.com>
16563
16564 * corelow.c (core_target::has_execution): Change parameter type to
16565 inferior pointer.
16566 * inferior.c (number_of_live_inferiors): Use
16567 inferior::has_execution instead of target_has_execution_1.
16568 * inferior.h (inferior::has_execution): New.
16569 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16570 inferior::has_execution instead of target_has_execution_1.
16571 * process-stratum-target.c
16572 (process_stratum_target::has_execution): Change parameter type to
16573 inferior pointer. Check the inferior's PID instead of
16574 inferior_ptid.
16575 * process-stratum-target.h
16576 (process_stratum_target::has_execution): Change parameter type to
16577 inferior pointer.
16578 * record-full.c (record_full_core_target::has_execution): Change
16579 parameter type to inferior pointer.
16580 * target.c (target_has_execution_1): Change parameter type to
16581 inferior pointer.
16582 (target_has_execution_current): Adjust.
16583 * target.h (target_ops::has_execution): Change parameter type to
16584 inferior pointer.
16585 (target_has_execution_1): Change parameter type to inferior
16586 pointer. Change return type to bool.
16587 * tracefile.h (tracefile_target::has_execution): Change parameter
16588 type to inferior pointer.
16589
74375d18
PA
165902020-01-10 Pedro Alves <palves@redhat.com>
16591
16592 * exceptions.c (print_flush): Remove current_top_target() check.
16593
acdf84a6
PA
165942020-01-10 Pedro Alves <palves@redhat.com>
16595
16596 * remote.c (show_remote_exec_file): Show the current inferior's
16597 exec-file instead of the command variable's value.
16598
ec506636
PA
165992020-01-10 Pedro Alves <palves@redhat.com>
16600
16601 * record-full.c (record_full_resume_ptid): New global.
16602 (record_full_target::resume): Set it.
16603 (record_full_wait_1): Use record_full_resume_ptid instead of
16604 inferior_ptid.
16605
873657b9
PA
166062020-01-10 Pedro Alves <palves@redhat.com>
16607
16608 * gdbthread.h (scoped_restore_current_thread)
16609 <dont_restore, restore, m_dont_restore>: Declare.
16610 * thread.c (thread_alive): Add assertion. Return bool.
16611 (switch_to_thread_if_alive): New.
16612 (prune_threads): Switch inferior/thread.
16613 (print_thread_info_1): Switch thread before calling target methods.
16614 (scoped_restore_current_thread::restore): New, factored out from
16615 ...
16616 (scoped_restore_current_thread::~scoped_restore_current_thread):
16617 ... this.
16618 (scoped_restore_current_thread::scoped_restore_current_thread):
16619 Add assertion.
16620 (thread_apply_all_command, thread_select): Use
16621 switch_to_thread_if_alive.
16622
7f0ae84c
GB
166232020-01-10 George Barrett <bob@bob131.so>
16624
16625 * stap-probe.c (stap_modify_semaphore): Don't check for null
16626 semaphores.
16627 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16628 for null semaphores.
16629
f5a7c406
AB
166302020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16631
16632 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16633 all source windows, and maintain horizontal scroll status while
16634 doing so.
16635
9ae6bf64
TT
166362020-01-09 Tom Tromey <tom@tromey.com>
16637
16638 PR tui/18932:
16639 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16640 update_source_window, not print_source_lines.
16641
b2efe70c
AB
166422020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16643
16644 * tui/tui.c (tui_enable): Register tui hooks after calling
16645 tui_display_main.
16646
5f23a082
CB
166472020-01-09 Christian Biesinger <cbiesinger@google.com>
16648
16649 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16650
3061113b
SM
166512020-01-08 Simon Marchi <simon.marchi@efficios.com>
16652
16653 * thread.c (print_thread_info_1): Fix indentation.
16654
57d75002
CB
166552020-01-09 Christian Biesinger <cbiesinger@google.com>
16656
16657 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16658 unique_xmalloc_ptr outside the if to always free the demangled name.
16659
6a053cb1
TT
166602020-01-08 Tom Tromey <tromey@adacore.com>
16661
16662 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16663 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16664 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16665 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16666 Remove.
16667 (section_offsets): New typedef.
16668 * symtab.c (fixup_section, get_msymbol_address): Update.
16669 * symmisc.c (dump_msymbols): Update.
16670 * symfile.h (relative_addr_info_to_section_offsets)
16671 (symfile_map_offsets_to_segments): Update.
16672 * symfile.c (build_section_addr_info_from_objfile)
16673 (init_objfile_sect_indices): Update.
16674 (struct place_section_arg): Change type of "offsets".
16675 (place_section): Update.
16676 (relative_addr_info_to_section_offsets): Change type of
16677 "section_offsets". Remove "num_sections" parameter.
16678 (default_symfile_offsets, syms_from_objfile_1)
16679 (set_objfile_default_section_offset): Update.
16680 (reread_symbols): No need to preserve section offsets by hand.
16681 (symfile_map_offsets_to_segments): Change type of "offsets".
16682 * stap-probe.c (relocate_address): Update.
16683 * stabsread.h (process_one_symbol): Update.
16684 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16685 (solib_target_relocate_section_addresses): Update.
16686 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16687 Update.
16688 * solib-frv.c (frv_relocate_main_executable): Update.
16689 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16690 * solib-aix.c (solib_aix_get_section_offsets): Change return
16691 type.
16692 (solib_aix_solib_create_inferior_hook): Update.
16693 * remote.c (remote_target::get_offsets): Update.
16694 * psymtab.c (find_pc_sect_psymtab): Update.
16695 * psympriv.h (struct partial_symbol) <address, text_low,
16696 text_high>: Update.
16697 * objfiles.h (obj_section_offset): Update.
16698 (struct objfile) <section_offsets>: Change type.
16699 <num_sections>: Remove.
16700 (objfile_relocate): Update.
16701 * objfiles.c (entry_point_address_query): Update
16702 (relocate_one_symbol): Change type of "section_offsets".
16703 (objfile_relocate1, objfile_relocate1): Change type of
16704 "new_offsets".
16705 (objfile_rebase1): Update.
16706 * mipsread.c (mipscoff_symfile_read): Update.
16707 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16708 parameter.
16709 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16710 (parse_external, psymtab_to_symtab_1): Update.
16711 * machoread.c (macho_symfile_offsets): Update.
16712 * ia64-tdep.c (ia64_find_unwind_table): Update.
16713 * hppa-tdep.c (read_unwind_info): Update.
16714 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16715 * dwarf2read.c (create_addrmap_from_index)
16716 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16717 (process_psymtab_comp_unit_reader, add_partial_symbol)
16718 (add_partial_subprogram, process_full_comp_unit)
16719 (read_file_scope, read_func_scope, read_lexical_block_scope)
16720 (read_call_site_scope, dwarf2_rnglists_process)
16721 (dwarf2_ranges_process, dwarf2_ranges_read)
16722 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16723 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16724 Update.
16725 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16726 Update.
16727 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16728 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16729 (process_one_symbol): Change type of "section_offsets".
16730 * ctfread.c (get_objfile_text_range): Update.
16731 * coffread.c (coff_symtab_read, enter_linenos)
16732 (process_coff_symbol): Update.
16733 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16734 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16735
456e800a
TT
167362020-01-08 Tom Tromey <tromey@adacore.com>
16737
16738 * dwarf2read.c (parse_macro_definition): Use std::string.
16739 (parse_macro_definition): Likewise.
16740
6dfa2fc2
TT
167412020-01-08 Tom Tromey <tromey@adacore.com>
16742
16743 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16744 (ATTR_ALLOC_CHUNK): Remove.
16745
421d1616
TT
167462020-01-08 Tom Tromey <tromey@adacore.com>
16747
16748 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16749
43816ebc
TT
167502020-01-08 Tom Tromey <tromey@adacore.com>
16751
16752 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16753 (dwarf2_compute_name, open_dwo_file): Likewise.
16754 (process_enumeration_scope): Use std::vector.
16755 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16756 (partial_die_info::fixup, dwarf2_start_subfile)
16757 (guess_full_die_structure_name, dwarf2_name): Likewise.
16758 (determine_prefix): Update.
16759 (guess_full_die_structure_name): Make return type const.
16760 (partial_die_full_name): Return unique_xmalloc_ptr.
16761 (DW_FIELD_ALLOC_CHUNK): Remove.
16762
4212d509
TT
167632020-01-07 Tom Tromey <tromey@adacore.com>
16764
16765 PR build/24937:
16766 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16767
06a6207a
JT
167682020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16769
16770 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16771
153d79c4
AB
167722020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16773
16774 * stack.c (print_frame_info): Move disassemble_next_line code
16775 inside source_print block.
16776
66182876
EZ
167772020-01-06 Eli Zaretskii <eliz@gnu.org>
16778
16779 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16780 gdb/signals.h, as we are now using native signal symbols.
16781
cbfa8581
SV
167822020-01-06 Shahab Vahedi <shahab@synopsys.com>
16783
16784 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16785 overflow by an early check of content vs threshold.
aac66a4c 16786 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16787 Likewise.
16788
3f602821
EZ
167892020-01-06 Eli Zaretskii <eliz@gnu.org>
16790
16791 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16792
a08c904d
JT
167932020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16794
16795 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16796 export table if no section contains it's RVA.
16797
89a65580
EZ
167982020-01-06 Eli Zaretskii <eliz@gnu.org>
16799
16800 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16801
8b7fcda2
HD
168022020-01-06 Hannes Domani <ssbssa@yahoo.de>
16803
16804 * source.c (print_source_lines_base): Set last_line_listed.
16805
a61b4f69
SV
168062020-01-06 Shahab Vahedi <shahab@synopsys.com>
16807
16808 * tui/tui-disasm.c: Remove trailing spaces.
16809
559e7e50
EZ
168102020-01-06 Eli Zaretskii <eliz@gnu.org>
16811 Pedro Alves <palves@redhat.com>
16812
16813 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16814 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16815 (windows_gdb_signal_to_target): New function, uses the above
16816 enumeration to convert GDB internal signal codes to equivalent
16817 Windows codes.
16818 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16819 * windows-nat.c: Include "gdb_wait.h".
16820 (get_windows_debug_event): Extract the fatal exception from the
16821 exit status and convert to the equivalent Posix signal number.
16822 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16823 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16824 * gdbsupport/gdb_wait.c: New file, implements
16825 windows_status_to_termsig.
16826 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16827 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16828
f2302a34
AB
168292020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16830
16831 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16832 show_layout.
16833
6a5206eb
LM
168342020-01-05 Luis Machado <luis.machado@linaro.org>
16835
16836 * aarch64-linux-nat.c
16837 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16838 and bfd_mach_aarch64.
16839
6ec1d75e
PW
168402020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16841
16842 * ui-file.c (stdio_file::can_emit_style_escape)
16843 (tee_file::can_emit_style_escape): Ensure style is used also on
16844 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16845 to gdb_stdout.
16846 * main.c (set_gdb_data_directory): Use file style to output the
16847 warning that the given pathname is not a directory.
16848 * top.c (show_history_filename, gdb_safe_append_history)
16849 (show_gdb_datadir): Use file style.
16850
44f81a76
HD
168512020-01-03 Hannes Domani <ssbssa@yahoo.de>
16852
16853 * solib-target.c (struct lm_info_target):
16854 Change offsets to be a unique_xmalloc_ptr.
16855 (solib_target_relocate_section_addresses): Update.
16856
25057eb0
HD
168572020-01-03 Hannes Domani <ssbssa@yahoo.de>
16858
16859 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16860
6e2118f5
BE
168612020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16862
16863 * MAINTAINERS (Write After Approval): Add myself.
16864
8133c7dc
LM
168652020-01-02 Luis Machado <luis.machado@linaro.org>
16866
16867 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16868 Cell BE architecture.
16869 * target.h (struct target_ops) <thread_architecture>: Likewise.
16870
48189bec
HD
168712020-01-01 Hannes Domani <ssbssa@yahoo.de>
16872
16873 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16874
ead1063b
HD
168752020-01-01 Hannes Domani <ssbssa@yahoo.de>
16876
16877 * MAINTAINERS (Write After Approval): Add myself.
16878
e5d78223
JB
168792020-01-01 Joel Brobecker <brobecker@adacore.com>
16880
16881 * gdbarch.sh: Update copyright year range of generated files.
16882
b811d2c2
JB
168832020-01-01 Joel Brobecker <brobecker@adacore.com>
16884
16885 Update copyright year range in all GDB files.
16886
5f4def5c
JB
168872020-01-01 Joel Brobecker <brobecker@adacore.com>
16888
16889 * copyright.py: Convert to Python 3.
16890
51fd4002
JB
168912020-01-01 Joel Brobecker <brobecker@adacore.com>
16892
16893 * copyright.py: Adapt after move of gnulib directory from gdb
16894 directory to toplevel directory.
16895
5fb651f2
JB
168962020-01-01 Joel Brobecker <brobecker@adacore.com>
16897
16898 * copyright.py (main): Exit if run from the wrong directory.
16899
5dd8bf88
JB
169002020-01-01 Joel Brobecker <brobecker@adacore.com>
16901
16902 * top.c (print_gdb_version): Change copyright year to 2020.
16903
9f71dacb 169042020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16905
9f71dacb 16906 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16907
9f71dacb 16908For older changes see ChangeLog-2019.
c906108c
SS
16909\f
16910Local Variables:
16911mode: change-log
16912left-margin: 8
16913fill-column: 74
16914version-control: never
57da7796 16915coding: utf-8
c906108c 16916End:
This page took 3.113337 seconds and 4 git commands to generate.