Move uinteger_pow gdb/valarith.c to gdb/utils.c and make it public
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-15 Joel Brobecker <brobecker@adacore.com>
2
3 * utils.h (uinteger_pow): Add declaration.
4 * utils.c (uinteger_pow): Moved here (without changes)...
5 * valarith.c (uinteger_pow): ... from here.
6
7 2020-11-15 Joel Brobecker <brobecker@adacore.com>
8
9 * gmp-utils.h, gmp-utils.h: New file.
10 * unittests/gmp-utils-selftests.c: New file.
11 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12 unittests/gmp-utils-selftests.c.
13 (COMMON_SFILES) Add gmp-utils.c.
14 (HFILES_NO_SRCDIR): Add gmp-utils.h.
15
16 2020-11-15 Joel Brobecker <brobecker@adacore.com>
17
18 * configure.ac: Generate an error if a usable GMP library
19 could not be found.
20 * configure: Regenerate.
21
22 2020-11-15 Joel Brobecker <brobecker@adacore.com>
23
24 * configure.ac: Add support for --with-libgmp-prefix.
25 * Makefile.in (LIBGMP): New variable.
26 (CLIBS): Include $(LIBGMP).
27 * configure, config.in: Regenerate
28
29 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
30
31 PR cli/26879
32 * f-exp.y (COMPLETE): New token.
33 (exp): Two new rules for tab-completion.
34 (saw_name_at_eof): New static global.
35 (last_was_structop): Likewise.
36 (yylex): Set new variables, and return COMPLETE token at the end
37 of the input stream in some cases.
38
39 2020-11-14 Tom Tromey <tom@tromey.com>
40
41 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
42
43 2020-11-14 Tom Tromey <tom@tromey.com>
44
45 * opencl-lang.c (opencl_component_ref): Make "comps" const.
46
47 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
50
51 2020-11-13 Tom Tromey <tom@tromey.com>
52
53 * c-lang.c (convert_ucn, convert_octal, convert_hex)
54 (convert_escape, parse_one_string): Constify.
55
56 2020-11-13 Keith Seitz <keiths@redhat.com>
57
58 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
59 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
60 outside of ELF segments" warning for debugin
61
62 2020-11-13 Keith Seitz <keiths@redhat.com>
63
64 PR gdb/23034
65 * elfread.c (elf_symfile_segments): Output a BFD file name
66 for the "Loadable section ... outside of ELF segments" warning.
67
68 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
69
70 PR gdb/26835
71 * arm-tdep.c (class arm_instruction_reader): New.
72 (target_arm_instruction_reader): New.
73 (arm_analyze_prologue): Add instruction reader parameter and use
74 it. Use arm_expand_immediate.
75 (class target_arm_instruction_reader): Adjust.
76 (arm_skip_prologue): Adjust.
77 (arm_expand_immediate): New.
78 (arm_scan_prologue): Adjust.
79 (arm_analyze_prologue_test): New.
80 (class test_arm_instruction_reader): New.
81
82 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * f-lang.c (fortran_argument_convert): Add declaration. Add
85 header comment, taken from f-lang.h. Make static.
86 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
87 (fortran_argument_convert): Delete declaration.
88
89 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
90
91 * ada-exp.y (find_primitive_type): Make parameter const.
92 * ada-lang.c (enum ada_primitive_types): Delete.
93 (ada_language::language_arch_info): Update.
94 * c-lang.c (enum c_primitive_types): Delete.
95 (c_language_arch_info): Update.
96 (enum cplus_primitive_types): Delete.
97 (cplus_language::language_arch_info): Update.
98 * d-lang.c (enum d_primitive_types): Delete.
99 (d_language::language_arch_info): Update.
100 * f-lang.c (enum f_primitive_types): Delete.
101 (f_language::language_arch_info): Update.
102 * go-lang.c (enum go_primitive_types): Delete.
103 (go_language::language_arch_info): Update.
104 * language.c (auto_or_unknown_language::language_arch_info):
105 Update.
106 (language_gdbarch_post_init): Use obstack_new, use array indexing.
107 (language_string_char_type): Add header comment, call function in
108 language_arch_info.
109 (language_bool_type): Likewise
110 (language_arch_info::bool_type): Define.
111 (language_lookup_primitive_type_1): Delete.
112 (language_lookup_primitive_type): Rewrite as a templated function
113 to call function in language_arch_info, then instantiate twice.
114 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
115 (language_arch_info::lookup_primitive_type_and_symbol): Define.
116 (language_arch_info::lookup_primitive_type): Define twice with
117 different signatures.
118 (language_arch_info::lookup_primitive_type_as_symbol): Define.
119 (language_lookup_primitive_type_as_symbol): Rewrite to call a
120 member function in language_arch_info.
121 * language.h (language_arch_info): Complete rewrite.
122 (language_lookup_primitive_type): Make templated.
123 * m2-lang.c (enum m2_primitive_types): Delete.
124 (m2_language::language_arch_info): Update.
125 * opencl-lang.c (OCL_P_TYPE): Delete.
126 (enum opencl_primitive_types): Delete.
127 (opencl_type_data): Delete.
128 (builtin_opencl_type): Delete.
129 (lookup_opencl_vector_type): Update.
130 (opencl_language::language_arch_info): Update, lots of content
131 moved from...
132 (build_opencl_types): ...here. This function is now deleted.
133 (_initialize_opencl_language): Delete.
134 * p-lang.c (enum pascal_primitive_types): Delete.
135 (pascal_language::language_arch_info): Update.
136 * rust-lang.c (enum rust_primitive_types): Delete.
137 (rust_language::language_arch_info): Update.
138
139 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
140
141 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
142 dwarf2_queue_guard.
143
144 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
145
146 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
147 comment.
148
149 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
150
151 * dwarf2/read.c (dwarf_read_debug_printf,
152 dwarf_read_debug_printf_v): New macros, use throughout the file.
153
154 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
155
156 * arc-linux-tdep.c (collect_register): Populate "eret" by
157 "pc" value from the regcache when asked for "pc" value.
158
159 2020-11-12 Tom Tromey <tom@tromey.com>
160
161 PR rust/26799:
162 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
163 exist.
164
165 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
166
167 * features/Makefile (XMLTOC): Add rx.xml.
168 (FEATURE_XMLFILES): Remove rx.xml.
169 (FEATURE_CFILES rule): Pass '-single-feature' flag.
170 * features/rx.c: Regenerate.
171 * features/rx.xml: Wrap in `target` tags, and reindent.
172 * target-descriptions.c (struct maint_print_c_tdesc_options): New
173 structure.
174 (maint_print_c_tdesc_opt_def): New typedef.
175 (maint_print_c_tdesc_opt_defs): New static global.
176 (make_maint_print_c_tdesc_options_def_group): New function.
177 (maint_print_c_tdesc_cmd): Make use of command line flags, only
178 print single feature C file for target descriptions containing a
179 single feature.
180 (maint_print_c_tdesc_cmd_completer): New function.
181 (_initialize_target_descriptions): Update call to register command
182 completer, and include command line flag in help text.
183
184 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
185
186 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
187 numbers.
188 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
189 enum values.
190
191 2020-11-10 Tom Tromey <tom@tromey.com>
192
193 * value.h (internalvar_name): Update.
194 * value.c (internalvar_name): Make return type const.
195
196 2020-11-10 Tom Tromey <tom@tromey.com>
197
198 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
199 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
200 const.
201
202 2020-11-10 Tom Tromey <tom@tromey.com>
203
204 * objc-lang.h (value_nsstring): Update.
205 * objc-lang.c (value_nsstring): Make "ptr" const.
206
207 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
208
209 * expprint.c (print_subexp_funcall): Increment expression position
210 after reading argument count.
211 * f-lang.c (print_subexp_f): Skip over opcode before calling
212 common function.
213 (dump_subexp_body_f): Likewise.
214
215 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
216
217 PR python/26832
218 * configure: Regenerate.
219 * configure.ac: Check for python modules ctypes instead of
220 itertools.
221
222 2020-11-06 Pedro Alves <pedro@palves.net>
223
224 * macroexp.c (struct macro_buffer): Split in two classes. Add
225 uses adjusted.
226 (struct shared_macro_buffer): New, factored out from struct
227 macro_buffer.
228 (struct growable_macro_buffer): New, factored out from struct
229 macro_buffer.
230 (set_token, get_comment, get_identifier, get_pp_number)
231 (get_character_constant, get_string_literal, get_punctuator)
232 (get_next_token_for_substitution): Constify parameters.
233 (substitute_args): Constify locals.
234
235 2020-11-05 Tom Tromey <tom@tromey.com>
236
237 * dwarf2/read.c (read_cutu_die_from_dwo)
238 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
239 (build_type_psymtabs_1): Update.
240 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
241 parameter.
242 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
243 Don't read section. Add assert.
244
245 2020-11-04 Tom Tromey <tromey@adacore.com>
246
247 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
248
249 2020-11-04 Tom Tromey <tromey@adacore.com>
250
251 * ada-typeprint.c (ada_print_type): Handle __T types.
252
253 2020-11-04 Tom Tromey <tromey@adacore.com>
254
255 * dwarf2/read.c (add_partial_symbol, process_die):
256 Handle DW_TAG_array_type.
257 (is_type_tag_for_partial): Add "lang" parameter.
258 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
259
260 2020-11-04 Tom Tromey <tromey@adacore.com>
261
262 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
263
264 2020-11-04 Tom Tromey <tromey@adacore.com>
265
266 * dwarf2/read.c (read_array_type): Only apply stride to innermost
267 array.
268
269 2020-11-04 Tom Tromey <tromey@adacore.com>
270
271 * gdbtypes.c (update_static_array_size): Handle bit stride.
272
273 2020-11-04 Tom Tromey <tromey@adacore.com>
274
275 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
276
277 2020-11-04 Tom Tromey <tromey@adacore.com>
278
279 * ada-lang.c (ada_is_any_packed_array_type): New function.
280 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
281
282 2020-11-04 Tom Tromey <tromey@adacore.com>
283
284 * dwarf2/read.c (recognize_bound_expression)
285 (quirk_ada_thick_pointer): New functions.
286 (read_array_type): Call quirk_ada_thick_pointer.
287 (set_die_type): Add "skip_data_location" parameter.
288 (quirk_ada_thick_pointer): New function.
289 (process_structure_scope): Call quirk_ada_thick_pointer.
290 * ada-lang.c (ada_is_unconstrained_packed_array_type)
291 (decode_packed_array_bitsize): Handle thick pointers without
292 parallel types.
293 (ada_is_gnat_encoded_packed_array_type): Rename from
294 ada_is_packed_array_type.
295 (ada_is_constrained_packed_array_type): Update.
296 * ada-valprint.c (ada_val_print_gnat_array): Remove.
297 (ada_value_print_1): Use ada_get_decoded_value.
298
299 2020-11-04 Tom Tromey <tromey@adacore.com>
300
301 * ada-lang.c (recursively_update_array_bitsize): New function.
302 (decode_constrained_packed_array_type): Call it.
303
304 2020-11-04 Tom Tromey <tromey@adacore.com>
305
306 * ada-lang.c (to_fixed_array_type): Error if
307 decode_constrained_packed_array_type returns NULL.
308
309 2020-11-04 Tom Tromey <tromey@adacore.com>
310
311 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
312
313 2020-11-02 Tom Tromey <tromey@adacore.com>
314
315 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
316 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
317 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
318 * amd64-ravenscar-thread.c: New file.
319 * amd64-ravenscar-thread.h: New file.
320 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
321 * configure.tgt (amd64_tobjs): Add ravenscar objects.
322
323 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * main.c (execute_cmdargs): New function.
326 (captured_main_1): Make use of execute_cmdargs.
327
328 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
329
330 * NEWS: Mention changes to config file search path.
331 * main.c
332
333 2020-11-02 Tom Tromey <tromey@adacore.com>
334
335 * python/python.c: Consolidate two HAVE_PYTHON blocks.
336 (python_GdbModuleDef): Move earlier. Now static.
337 (do_start_initialization): Consolidate some IS_PY3K blocks.
338
339 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
340
341 * aarch64-linux-tdep.c: Fix indentation.
342 * aarch64-ravenscar-thread.c: Fix indentation.
343 * aarch64-tdep.c: Fix indentation.
344 * aarch64-tdep.h: Fix indentation.
345 * ada-lang.c: Fix indentation.
346 * ada-lang.h: Fix indentation.
347 * ada-tasks.c: Fix indentation.
348 * ada-typeprint.c: Fix indentation.
349 * ada-valprint.c: Fix indentation.
350 * ada-varobj.c: Fix indentation.
351 * addrmap.c: Fix indentation.
352 * addrmap.h: Fix indentation.
353 * agent.c: Fix indentation.
354 * aix-thread.c: Fix indentation.
355 * alpha-bsd-nat.c: Fix indentation.
356 * alpha-linux-tdep.c: Fix indentation.
357 * alpha-mdebug-tdep.c: Fix indentation.
358 * alpha-nbsd-tdep.c: Fix indentation.
359 * alpha-obsd-tdep.c: Fix indentation.
360 * alpha-tdep.c: Fix indentation.
361 * amd64-bsd-nat.c: Fix indentation.
362 * amd64-darwin-tdep.c: Fix indentation.
363 * amd64-linux-nat.c: Fix indentation.
364 * amd64-linux-tdep.c: Fix indentation.
365 * amd64-nat.c: Fix indentation.
366 * amd64-obsd-tdep.c: Fix indentation.
367 * amd64-tdep.c: Fix indentation.
368 * amd64-windows-tdep.c: Fix indentation.
369 * annotate.c: Fix indentation.
370 * arc-tdep.c: Fix indentation.
371 * arch-utils.c: Fix indentation.
372 * arch/arm-get-next-pcs.c: Fix indentation.
373 * arch/arm.c: Fix indentation.
374 * arm-linux-nat.c: Fix indentation.
375 * arm-linux-tdep.c: Fix indentation.
376 * arm-nbsd-tdep.c: Fix indentation.
377 * arm-pikeos-tdep.c: Fix indentation.
378 * arm-tdep.c: Fix indentation.
379 * arm-tdep.h: Fix indentation.
380 * arm-wince-tdep.c: Fix indentation.
381 * auto-load.c: Fix indentation.
382 * auxv.c: Fix indentation.
383 * avr-tdep.c: Fix indentation.
384 * ax-gdb.c: Fix indentation.
385 * ax-general.c: Fix indentation.
386 * bfin-linux-tdep.c: Fix indentation.
387 * block.c: Fix indentation.
388 * block.h: Fix indentation.
389 * blockframe.c: Fix indentation.
390 * bpf-tdep.c: Fix indentation.
391 * break-catch-sig.c: Fix indentation.
392 * break-catch-syscall.c: Fix indentation.
393 * break-catch-throw.c: Fix indentation.
394 * breakpoint.c: Fix indentation.
395 * breakpoint.h: Fix indentation.
396 * bsd-uthread.c: Fix indentation.
397 * btrace.c: Fix indentation.
398 * build-id.c: Fix indentation.
399 * buildsym-legacy.h: Fix indentation.
400 * buildsym.c: Fix indentation.
401 * c-typeprint.c: Fix indentation.
402 * c-valprint.c: Fix indentation.
403 * c-varobj.c: Fix indentation.
404 * charset.c: Fix indentation.
405 * cli/cli-cmds.c: Fix indentation.
406 * cli/cli-decode.c: Fix indentation.
407 * cli/cli-decode.h: Fix indentation.
408 * cli/cli-script.c: Fix indentation.
409 * cli/cli-setshow.c: Fix indentation.
410 * coff-pe-read.c: Fix indentation.
411 * coffread.c: Fix indentation.
412 * compile/compile-cplus-types.c: Fix indentation.
413 * compile/compile-object-load.c: Fix indentation.
414 * compile/compile-object-run.c: Fix indentation.
415 * completer.c: Fix indentation.
416 * corefile.c: Fix indentation.
417 * corelow.c: Fix indentation.
418 * cp-abi.h: Fix indentation.
419 * cp-namespace.c: Fix indentation.
420 * cp-support.c: Fix indentation.
421 * cp-valprint.c: Fix indentation.
422 * cris-linux-tdep.c: Fix indentation.
423 * cris-tdep.c: Fix indentation.
424 * darwin-nat-info.c: Fix indentation.
425 * darwin-nat.c: Fix indentation.
426 * darwin-nat.h: Fix indentation.
427 * dbxread.c: Fix indentation.
428 * dcache.c: Fix indentation.
429 * disasm.c: Fix indentation.
430 * dtrace-probe.c: Fix indentation.
431 * dwarf2/abbrev.c: Fix indentation.
432 * dwarf2/attribute.c: Fix indentation.
433 * dwarf2/expr.c: Fix indentation.
434 * dwarf2/frame.c: Fix indentation.
435 * dwarf2/index-cache.c: Fix indentation.
436 * dwarf2/index-write.c: Fix indentation.
437 * dwarf2/line-header.c: Fix indentation.
438 * dwarf2/loc.c: Fix indentation.
439 * dwarf2/macro.c: Fix indentation.
440 * dwarf2/read.c: Fix indentation.
441 * dwarf2/read.h: Fix indentation.
442 * elfread.c: Fix indentation.
443 * eval.c: Fix indentation.
444 * event-top.c: Fix indentation.
445 * exec.c: Fix indentation.
446 * exec.h: Fix indentation.
447 * expprint.c: Fix indentation.
448 * f-lang.c: Fix indentation.
449 * f-typeprint.c: Fix indentation.
450 * f-valprint.c: Fix indentation.
451 * fbsd-nat.c: Fix indentation.
452 * fbsd-tdep.c: Fix indentation.
453 * findvar.c: Fix indentation.
454 * fork-child.c: Fix indentation.
455 * frame-unwind.c: Fix indentation.
456 * frame-unwind.h: Fix indentation.
457 * frame.c: Fix indentation.
458 * frv-linux-tdep.c: Fix indentation.
459 * frv-tdep.c: Fix indentation.
460 * frv-tdep.h: Fix indentation.
461 * ft32-tdep.c: Fix indentation.
462 * gcore.c: Fix indentation.
463 * gdb_bfd.c: Fix indentation.
464 * gdbarch.sh: Fix indentation.
465 * gdbarch.c: Re-generate
466 * gdbarch.h: Re-generate.
467 * gdbcore.h: Fix indentation.
468 * gdbthread.h: Fix indentation.
469 * gdbtypes.c: Fix indentation.
470 * gdbtypes.h: Fix indentation.
471 * glibc-tdep.c: Fix indentation.
472 * gnu-nat.c: Fix indentation.
473 * gnu-nat.h: Fix indentation.
474 * gnu-v2-abi.c: Fix indentation.
475 * gnu-v3-abi.c: Fix indentation.
476 * go32-nat.c: Fix indentation.
477 * guile/guile-internal.h: Fix indentation.
478 * guile/scm-cmd.c: Fix indentation.
479 * guile/scm-frame.c: Fix indentation.
480 * guile/scm-iterator.c: Fix indentation.
481 * guile/scm-math.c: Fix indentation.
482 * guile/scm-ports.c: Fix indentation.
483 * guile/scm-pretty-print.c: Fix indentation.
484 * guile/scm-value.c: Fix indentation.
485 * h8300-tdep.c: Fix indentation.
486 * hppa-linux-nat.c: Fix indentation.
487 * hppa-linux-tdep.c: Fix indentation.
488 * hppa-nbsd-nat.c: Fix indentation.
489 * hppa-nbsd-tdep.c: Fix indentation.
490 * hppa-obsd-nat.c: Fix indentation.
491 * hppa-tdep.c: Fix indentation.
492 * hppa-tdep.h: Fix indentation.
493 * i386-bsd-nat.c: Fix indentation.
494 * i386-darwin-nat.c: Fix indentation.
495 * i386-darwin-tdep.c: Fix indentation.
496 * i386-dicos-tdep.c: Fix indentation.
497 * i386-gnu-nat.c: Fix indentation.
498 * i386-linux-nat.c: Fix indentation.
499 * i386-linux-tdep.c: Fix indentation.
500 * i386-nto-tdep.c: Fix indentation.
501 * i386-obsd-tdep.c: Fix indentation.
502 * i386-sol2-nat.c: Fix indentation.
503 * i386-tdep.c: Fix indentation.
504 * i386-tdep.h: Fix indentation.
505 * i386-windows-tdep.c: Fix indentation.
506 * i387-tdep.c: Fix indentation.
507 * i387-tdep.h: Fix indentation.
508 * ia64-libunwind-tdep.c: Fix indentation.
509 * ia64-libunwind-tdep.h: Fix indentation.
510 * ia64-linux-nat.c: Fix indentation.
511 * ia64-linux-tdep.c: Fix indentation.
512 * ia64-tdep.c: Fix indentation.
513 * ia64-tdep.h: Fix indentation.
514 * ia64-vms-tdep.c: Fix indentation.
515 * infcall.c: Fix indentation.
516 * infcmd.c: Fix indentation.
517 * inferior.c: Fix indentation.
518 * infrun.c: Fix indentation.
519 * iq2000-tdep.c: Fix indentation.
520 * language.c: Fix indentation.
521 * linespec.c: Fix indentation.
522 * linux-fork.c: Fix indentation.
523 * linux-nat.c: Fix indentation.
524 * linux-tdep.c: Fix indentation.
525 * linux-thread-db.c: Fix indentation.
526 * lm32-tdep.c: Fix indentation.
527 * m2-lang.c: Fix indentation.
528 * m2-typeprint.c: Fix indentation.
529 * m2-valprint.c: Fix indentation.
530 * m32c-tdep.c: Fix indentation.
531 * m32r-linux-tdep.c: Fix indentation.
532 * m32r-tdep.c: Fix indentation.
533 * m68hc11-tdep.c: Fix indentation.
534 * m68k-bsd-nat.c: Fix indentation.
535 * m68k-linux-nat.c: Fix indentation.
536 * m68k-linux-tdep.c: Fix indentation.
537 * m68k-tdep.c: Fix indentation.
538 * machoread.c: Fix indentation.
539 * macrocmd.c: Fix indentation.
540 * macroexp.c: Fix indentation.
541 * macroscope.c: Fix indentation.
542 * macrotab.c: Fix indentation.
543 * macrotab.h: Fix indentation.
544 * main.c: Fix indentation.
545 * mdebugread.c: Fix indentation.
546 * mep-tdep.c: Fix indentation.
547 * mi/mi-cmd-catch.c: Fix indentation.
548 * mi/mi-cmd-disas.c: Fix indentation.
549 * mi/mi-cmd-env.c: Fix indentation.
550 * mi/mi-cmd-stack.c: Fix indentation.
551 * mi/mi-cmd-var.c: Fix indentation.
552 * mi/mi-cmds.c: Fix indentation.
553 * mi/mi-main.c: Fix indentation.
554 * mi/mi-parse.c: Fix indentation.
555 * microblaze-tdep.c: Fix indentation.
556 * minidebug.c: Fix indentation.
557 * minsyms.c: Fix indentation.
558 * mips-linux-nat.c: Fix indentation.
559 * mips-linux-tdep.c: Fix indentation.
560 * mips-nbsd-tdep.c: Fix indentation.
561 * mips-tdep.c: Fix indentation.
562 * mn10300-linux-tdep.c: Fix indentation.
563 * mn10300-tdep.c: Fix indentation.
564 * moxie-tdep.c: Fix indentation.
565 * msp430-tdep.c: Fix indentation.
566 * namespace.h: Fix indentation.
567 * nat/fork-inferior.c: Fix indentation.
568 * nat/gdb_ptrace.h: Fix indentation.
569 * nat/linux-namespaces.c: Fix indentation.
570 * nat/linux-osdata.c: Fix indentation.
571 * nat/netbsd-nat.c: Fix indentation.
572 * nat/x86-dregs.c: Fix indentation.
573 * nbsd-nat.c: Fix indentation.
574 * nbsd-tdep.c: Fix indentation.
575 * nios2-linux-tdep.c: Fix indentation.
576 * nios2-tdep.c: Fix indentation.
577 * nto-procfs.c: Fix indentation.
578 * nto-tdep.c: Fix indentation.
579 * objfiles.c: Fix indentation.
580 * objfiles.h: Fix indentation.
581 * opencl-lang.c: Fix indentation.
582 * or1k-tdep.c: Fix indentation.
583 * osabi.c: Fix indentation.
584 * osabi.h: Fix indentation.
585 * osdata.c: Fix indentation.
586 * p-lang.c: Fix indentation.
587 * p-typeprint.c: Fix indentation.
588 * p-valprint.c: Fix indentation.
589 * parse.c: Fix indentation.
590 * ppc-linux-nat.c: Fix indentation.
591 * ppc-linux-tdep.c: Fix indentation.
592 * ppc-nbsd-nat.c: Fix indentation.
593 * ppc-nbsd-tdep.c: Fix indentation.
594 * ppc-obsd-nat.c: Fix indentation.
595 * ppc-ravenscar-thread.c: Fix indentation.
596 * ppc-sysv-tdep.c: Fix indentation.
597 * ppc64-tdep.c: Fix indentation.
598 * printcmd.c: Fix indentation.
599 * proc-api.c: Fix indentation.
600 * producer.c: Fix indentation.
601 * producer.h: Fix indentation.
602 * prologue-value.c: Fix indentation.
603 * prologue-value.h: Fix indentation.
604 * psymtab.c: Fix indentation.
605 * python/py-arch.c: Fix indentation.
606 * python/py-bpevent.c: Fix indentation.
607 * python/py-event.c: Fix indentation.
608 * python/py-event.h: Fix indentation.
609 * python/py-finishbreakpoint.c: Fix indentation.
610 * python/py-frame.c: Fix indentation.
611 * python/py-framefilter.c: Fix indentation.
612 * python/py-inferior.c: Fix indentation.
613 * python/py-infthread.c: Fix indentation.
614 * python/py-objfile.c: Fix indentation.
615 * python/py-prettyprint.c: Fix indentation.
616 * python/py-registers.c: Fix indentation.
617 * python/py-signalevent.c: Fix indentation.
618 * python/py-stopevent.c: Fix indentation.
619 * python/py-stopevent.h: Fix indentation.
620 * python/py-threadevent.c: Fix indentation.
621 * python/py-tui.c: Fix indentation.
622 * python/py-unwind.c: Fix indentation.
623 * python/py-value.c: Fix indentation.
624 * python/py-xmethods.c: Fix indentation.
625 * python/python-internal.h: Fix indentation.
626 * python/python.c: Fix indentation.
627 * ravenscar-thread.c: Fix indentation.
628 * record-btrace.c: Fix indentation.
629 * record-full.c: Fix indentation.
630 * record.c: Fix indentation.
631 * reggroups.c: Fix indentation.
632 * regset.h: Fix indentation.
633 * remote-fileio.c: Fix indentation.
634 * remote.c: Fix indentation.
635 * reverse.c: Fix indentation.
636 * riscv-linux-tdep.c: Fix indentation.
637 * riscv-ravenscar-thread.c: Fix indentation.
638 * riscv-tdep.c: Fix indentation.
639 * rl78-tdep.c: Fix indentation.
640 * rs6000-aix-tdep.c: Fix indentation.
641 * rs6000-lynx178-tdep.c: Fix indentation.
642 * rs6000-nat.c: Fix indentation.
643 * rs6000-tdep.c: Fix indentation.
644 * rust-lang.c: Fix indentation.
645 * rx-tdep.c: Fix indentation.
646 * s12z-tdep.c: Fix indentation.
647 * s390-linux-tdep.c: Fix indentation.
648 * score-tdep.c: Fix indentation.
649 * ser-base.c: Fix indentation.
650 * ser-mingw.c: Fix indentation.
651 * ser-uds.c: Fix indentation.
652 * ser-unix.c: Fix indentation.
653 * serial.c: Fix indentation.
654 * sh-linux-tdep.c: Fix indentation.
655 * sh-nbsd-tdep.c: Fix indentation.
656 * sh-tdep.c: Fix indentation.
657 * skip.c: Fix indentation.
658 * sol-thread.c: Fix indentation.
659 * solib-aix.c: Fix indentation.
660 * solib-darwin.c: Fix indentation.
661 * solib-frv.c: Fix indentation.
662 * solib-svr4.c: Fix indentation.
663 * solib.c: Fix indentation.
664 * source.c: Fix indentation.
665 * sparc-linux-tdep.c: Fix indentation.
666 * sparc-nbsd-tdep.c: Fix indentation.
667 * sparc-obsd-tdep.c: Fix indentation.
668 * sparc-ravenscar-thread.c: Fix indentation.
669 * sparc-tdep.c: Fix indentation.
670 * sparc64-linux-tdep.c: Fix indentation.
671 * sparc64-nbsd-tdep.c: Fix indentation.
672 * sparc64-obsd-tdep.c: Fix indentation.
673 * sparc64-tdep.c: Fix indentation.
674 * stabsread.c: Fix indentation.
675 * stack.c: Fix indentation.
676 * stap-probe.c: Fix indentation.
677 * stubs/ia64vms-stub.c: Fix indentation.
678 * stubs/m32r-stub.c: Fix indentation.
679 * stubs/m68k-stub.c: Fix indentation.
680 * stubs/sh-stub.c: Fix indentation.
681 * stubs/sparc-stub.c: Fix indentation.
682 * symfile-mem.c: Fix indentation.
683 * symfile.c: Fix indentation.
684 * symfile.h: Fix indentation.
685 * symmisc.c: Fix indentation.
686 * symtab.c: Fix indentation.
687 * symtab.h: Fix indentation.
688 * target-float.c: Fix indentation.
689 * target.c: Fix indentation.
690 * target.h: Fix indentation.
691 * tic6x-tdep.c: Fix indentation.
692 * tilegx-linux-tdep.c: Fix indentation.
693 * tilegx-tdep.c: Fix indentation.
694 * top.c: Fix indentation.
695 * tracefile-tfile.c: Fix indentation.
696 * tracepoint.c: Fix indentation.
697 * tui/tui-disasm.c: Fix indentation.
698 * tui/tui-io.c: Fix indentation.
699 * tui/tui-regs.c: Fix indentation.
700 * tui/tui-stack.c: Fix indentation.
701 * tui/tui-win.c: Fix indentation.
702 * tui/tui-winsource.c: Fix indentation.
703 * tui/tui.c: Fix indentation.
704 * typeprint.c: Fix indentation.
705 * ui-out.h: Fix indentation.
706 * unittests/copy_bitwise-selftests.c: Fix indentation.
707 * unittests/memory-map-selftests.c: Fix indentation.
708 * utils.c: Fix indentation.
709 * v850-tdep.c: Fix indentation.
710 * valarith.c: Fix indentation.
711 * valops.c: Fix indentation.
712 * valprint.c: Fix indentation.
713 * valprint.h: Fix indentation.
714 * value.c: Fix indentation.
715 * value.h: Fix indentation.
716 * varobj.c: Fix indentation.
717 * vax-tdep.c: Fix indentation.
718 * windows-nat.c: Fix indentation.
719 * windows-tdep.c: Fix indentation.
720 * xcoffread.c: Fix indentation.
721 * xml-syscall.c: Fix indentation.
722 * xml-tdesc.c: Fix indentation.
723 * xstormy16-tdep.c: Fix indentation.
724 * xtensa-config.c: Fix indentation.
725 * xtensa-linux-nat.c: Fix indentation.
726 * xtensa-linux-tdep.c: Fix indentation.
727 * xtensa-tdep.c: Fix indentation.
728
729 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
730 Craig Blackmore <craig.blackmore@embecosm.com>
731
732 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
733 as an unsigned value.
734
735 2020-11-01 Tom Tromey <tom@tromey.com>
736
737 * dbxread.c (dbx_end_psymtab): Update.
738 * dwarf2/read.c (process_psymtab_comp_unit_reader)
739 (build_type_psymtabs_reader): Update.
740 * xcoffread.c (xcoff_end_psymtab): Update.
741 * ctfread.c (scan_partial_symbols): Update.
742 * psymtab.c (sort_pst_symbols): Remove.
743 (partial_symtab::end): Rename from end_psymtab_common. Inline
744 sort_pst_symbols.
745 * psympriv.h (struct partial_symtab) <end>: New method.
746 (end_psymtab_common): Don't declare.
747
748 2020-11-01 Tom Tromey <tom@tromey.com>
749
750 * symmisc.c (count_psyms): New function.
751 (print_objfile_statistics): Use it.
752 * psymtab.c (append_psymbol_to_list): Remove.
753 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
754 * objfiles.h (struct objstats) <n_psyms>: Remove.
755
756 2020-11-01 Tom Tromey <tom@tromey.com>
757
758 * dbxread.c (dbx_end_psymtab): Update.
759 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
760 (build_type_psymtabs_reader): Update.
761 * xcoffread.c (xcoff_end_psymtab): Update.
762 * ctfread.c (scan_partial_symbols): Update.
763 * psympriv.h (end_psymtab_common): Update.
764 * psymtab.c (end_psymtab_common): Remove objfile parameter.
765 (sort_pst_symbols): Likewise.
766
767 2020-11-01 Tom Tromey <tom@tromey.com>
768
769 * dbxread.c (dbx_symfile_read): Update.
770 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
771 * xcoffread.c (xcoff_initial_scan): Update.
772 * psympriv.h (init_psymbol_list): Don't declare.
773 * psymtab.c (init_psymbol_list): Remove.
774
775 2020-11-01 Joel Brobecker <brobecker@adacore.com>
776
777 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
778 gnat_encoded_fixed_type_info. Update all callers.
779
780 2020-11-01 Joel Brobecker <brobecker@adacore.com>
781
782 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
783 line too long.
784
785 2020-11-01 Joel Brobecker <brobecker@adacore.com>
786
787 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
788 cast_from_fixed. Update all callers.
789 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
790 Update all callers.
791 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
792 Update all callers.
793 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
794 ada_scaling_factor.
795 * ada-typeprint.c: Replace call to ada_scaling_factor by call
796 to print_gnat_encoded_fixed_point_type.
797 * ada-valprint.c: Likewise.
798
799 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
800
801 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
802 (debug_prefixed_printf): Add check of debug_displaced flag.
803 * linux-nat.c (linux_nat_debug_printf): Add check of
804 debug_linux_nat flag.
805
806 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
807
808 * infrun.c (infrun_debug_printf_1): Remove.
809 (displaced_debug_printf_1): Remove.
810 (stop_all_threads): Use debug_prefixed_printf.
811 * infrun.h (infrun_debug_printf_1): Remove.
812 (infrun_debug_printf): Use debug_prefixed_printf.
813 (displaced_debug_printf_1): Remove.
814 (displaced_debug_printf): Use debug_prefixed_printf.
815 * linux-nat.c (linux_nat_debug_printf_1): Remove.
816 (linux_nat_debug_printf): Use debug_prefixed_printf.
817
818 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
819
820 * configure: Re-generate.
821 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
822 AC_LANG_PROGRAM.
823
824 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
825
826 * configure: Re-generate.
827
828 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
829
830 * configure: Re-generate.
831
832 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
833
834 * configure: Re-generate.
835
836 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
837
838 * configure: Re-generate.
839
840 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
841
842 * acinclude.m4: Modernize.
843 * configure: Re-generate.
844
845 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
846
847 * configure.ac: Modernize.
848 * configure: Re-generate.
849
850 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
851
852 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
853 * configure: Re-generate.
854 * configure.ac: Remove AM_PROG_CC_STDC.
855
856 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
857
858 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
859 AC_CANONICAL_SYSTEM.
860 * configure: Re-generate.
861
862 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
863
864 * infrun.h (displaced_debug_printf): New macro. Replace
865 displaced debug prints throughout to use it.
866 (displaced_debug_printf_1): New declaration.
867 (displaced_step_dump_bytes): Return string, remove ui_file
868 parameter, update all callers.
869 * infrun.c (displaced_debug_printf_1): New function.
870 (displaced_step_dump_bytes): Return string, remove ui_file
871 parameter
872
873 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
874
875 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
876
877 2020-10-30 Tom Tromey <tromey@adacore.com>
878
879 * Makefile.in (stamp-init): Depend on config.status.
880
881 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
882
883 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
884
885 2020-10-30 Pedro Alves <pedro@palves.net>
886
887 * thread.c (lookup_selected_frame): Move ...
888 * frame.c (lookup_selected_frame): ... here.
889
890 2020-10-30 Pedro Alves <pedro@palves.net>
891
892 * blockframe.c (block_innermost_frame): Use get_selected_frame.
893 * frame.c
894 (scoped_restore_selected_frame::scoped_restore_selected_frame):
895 Use save_selected_frame. Save language as well.
896 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
897 Use restore_selected_frame, and restore language as well.
898 (selected_frame_id, selected_frame_level): New.
899 (selected_frame): Update comments.
900 (save_selected_frame, restore_selected_frame): New.
901 (get_selected_frame): Use lookup_selected_frame.
902 (get_selected_frame_if_set): Delete.
903 (select_frame): Record selected_frame_level and selected_frame_id.
904 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
905 fields.
906 (get_selected_frame): Make 'message' parameter optional.
907 (get_selected_frame_if_set): Delete declaration.
908 (select_frame): Update comments.
909 (save_selected_frame, restore_selected_frame)
910 (lookup_selected_frame): Declare.
911 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
912 * infrun.c (struct infcall_control_state) <selected_frame_level>:
913 New field.
914 (save_infcall_control_state): Use save_selected_frame.
915 (restore_selected_frame): Delete.
916 (restore_infcall_control_state): Use restore_selected_frame.
917 * stack.c (select_frame_command_core, frame_command_core): Use
918 get_selected_frame.
919 * thread.c (restore_selected_frame): Rename to ...
920 (lookup_selected_frame): ... this and make extern. Select the
921 current frame if the frame level is -1.
922 (scoped_restore_current_thread::restore): Also restore the
923 language.
924 (scoped_restore_current_thread::~scoped_restore_current_thread):
925 Don't try/catch.
926 (scoped_restore_current_thread::scoped_restore_current_thread):
927 Save the language as well. Use save_selected_frame.
928
929 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
930
931 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
932 documentation.
933 * gdbarch.h: Re-generate.
934
935 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
936
937 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
938 parameter.
939 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
940 Likewise.
941 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
942 Likewise.
943 * arch-utils.c (default_displaced_step_hw_singlestep):
944 Likewise.
945 * arch-utils.h (default_displaced_step_hw_singlestep):
946 Likewise.
947 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
948 Likewise.
949 * s390-tdep.c (s390_displaced_step_hw_singlestep):
950 Likewise.
951 * gdbarch.c: Re-generate.
952 * gdbarch.h: Re-generate.
953 * infrun.c (resume_1): Adjust.
954
955 2020-10-29 Tom Tromey <tom@tromey.com>
956
957 * progspace.c (program_space::~program_space): Don't call
958 exec_close.
959
960 2020-10-29 Tom Tromey <tom@tromey.com>
961
962 * exec.c (exec_target::close): Don't change current program
963 space.
964
965 2020-10-29 Tom Tromey <tom@tromey.com>
966
967 * symfile.c (add_symbol_file_command): Update.
968 * exec.c (program_space::add_target_sections): Rename.
969 * symfile-mem.c (symbol_file_add_from_memory): Update.
970 * progspace.h (struct program_space) <add_target_sections>:
971 Declare new overload.
972 * exec.h (add_target_sections_of_objfile): Don't declare.
973
974 2020-10-29 Tom Tromey <tom@tromey.com>
975
976 * solib.c (solib_map_sections): Update.
977 * exec.c (program_space::add_target_sections): Now a method.
978 (exec_file_attach): Update.
979 * exec.h (add_target_sections): Don't declare.
980 * progspace.h (struct program_space) <add_target_sections>:
981 Declare.
982
983 2020-10-29 Tom Tromey <tom@tromey.com>
984
985 * progspace.h (struct program_space) <remove_target_sections>:
986 Declare.
987 * exec.c (program_space::remove_target_sections): Now a method.
988 * exec.h (remove_target_sections): Don't declare.
989
990 2020-10-29 Tom Tromey <tom@tromey.com>
991
992 * inferior.c (delete_inferior): Update.
993 * progspace.c (program_space::empty): Rename from
994 program_space_empty_p. Return bool.
995 * progspace.h (struct program_space) <empty>: New method.
996 (program_space_empty_p): Don't declare.
997
998 2020-10-29 Tom Tromey <tom@tromey.com>
999
1000 * progspace.c (program_space::~program_space): Don't call
1001 clear_program_space_solib_cache.
1002 (program_space::clear_solib_cache): Rename from
1003 clear_solib_cache.
1004 * solib.c (handle_solib_event): Update.
1005 * progspace.h (struct program_space) <clear_solib_cache>: New
1006 method.
1007 (clear_program_space_solib_cache): Don't declare.
1008
1009 2020-10-29 Tom Tromey <tom@tromey.com>
1010
1011 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1012 * target.c (info_target_command): Update.
1013 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1014 (symbol_file_clear, reread_symbols): Update.
1015 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1016 * stabsread.c (scan_file_globals): Update.
1017 * solib.c (update_solib_list): Update.
1018 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1019 (svr4_fetch_objfile_link_map, enable_break)
1020 (svr4_relocate_main_executable)
1021 (svr4_iterate_over_objfiles_in_search_order): Update.
1022 * solib-frv.c (lm_base, enable_break)
1023 (frv_relocate_main_executable): Update.
1024 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1025 (frv_fetch_objfile_link_map): Update.
1026 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1027 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1028 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1029 * remote.c (remote_target::get_offsets): Update.
1030 (remote_target::start_remote)
1031 (extended_remote_target::post_attach): Update.
1032 * objfiles.c (entry_point_address_query): Update.
1033 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1034 * minsyms.c (get_symbol_leading_char): Update.
1035 * frame.c (inside_main_func): Update.
1036 * progspace.h (symfile_objfile): Remove macro.
1037
1038 2020-10-29 Tom Tromey <tom@tromey.com>
1039
1040 * exec.c (exec_file_attach): Update.
1041 * progspace.c (program_space::exec_close): Update.
1042 * progspace.h (struct program_space) <ebfd>: Now a
1043 gdb_bfd_ref_ptr.
1044 <set_exec_bfd>: Change argument type.
1045 <exec_bfd>: Update.
1046
1047 2020-10-29 Tom Tromey <tom@tromey.com>
1048
1049 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1050 * symfile.c (reread_symbols): Update.
1051 * symfile-mem.c (add_symbol_file_from_memory_command)
1052 (add_vsyscall_page): Update.
1053 * source-cache.c (source_cache::get_plain_source_lines): Update.
1054 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1055 (svr4_current_sos_direct, svr4_exec_displacement)
1056 (svr4_relocate_main_executable): Update.
1057 (svr4_iterate_over_objfiles_in_search_order): Update.
1058 * solib-frv.c (enable_break2, enable_break): Update.
1059 * solib-dsbt.c (lm_base, enable_break): Update.
1060 * solib-darwin.c (find_program_interpreter)
1061 (darwin_solib_create_inferior_hook): Update.
1062 * sol-thread.c (rw_common, ps_pdmodel): Update.
1063 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1064 * remote.c (compare_sections_command)
1065 (remote_target::trace_set_readonly_regions): Update.
1066 * remote-sim.c (get_sim_inferior_data)
1067 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1068 (gdbsim_target_open, gdbsim_target::files_info): Update.
1069 * exec.h (exec_bfd): Remove macro.
1070 * progspace.c (initialize_progspace): Update.
1071 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1072 Update.
1073 * nto-procfs.c (nto_procfs_target::post_attach)
1074 (nto_procfs_target::create_inferior): Update.
1075 * maint.c (maintenance_info_sections): Update.
1076 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1077 Update.
1078 * infcmd.c (post_create_inferior): Update.
1079 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1080 (objfile_find_memory_regions): Update.
1081 * exec.c (validate_exec_file, exec_file_attach)
1082 (exec_read_partial_read_only, print_section_info): Update.
1083 * corelow.c (core_target_open): Update.
1084 * corefile.c (reopen_exec_file, validate_files): Update.
1085 * arm-tdep.c (gdb_print_insn_arm): Update.
1086 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1087 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1088 methods.
1089
1090 2020-10-29 Tom Tromey <tom@tromey.com>
1091
1092 * progspace.h (current_target_sections): Remove macro.
1093 * solib-svr4.c (scan_dyntag): Update.
1094 * solib-dsbt.c (scan_dyntag): Update.
1095 * exec.c (exec_target::close): Update.
1096 (add_target_sections, add_target_sections_of_objfile)
1097 (remove_target_sections, exec_target::get_section_table)
1098 (exec_target::files_info, set_section_command)
1099 (exec_set_section_address, exec_target::has_memory)
1100 (exec_target::has_memory): Update.
1101
1102 2020-10-29 Tom Tromey <tom@tromey.com>
1103
1104 * source-cache.c (source_cache::get_plain_source_lines): Use
1105 current_program_space.
1106 * corefile.c (reopen_exec_file): Use current_program_space.
1107 * exec.c (exec_file_attach): Use current_program_space.
1108 * exec.h (exec_bfd_mtime): Remove.
1109
1110 2020-10-29 Tom Tromey <tom@tromey.com>
1111
1112 * gcore.c (default_gcore_mach): Remove.
1113 (create_gcore_bfd): Update.
1114
1115 2020-10-29 Tom Tromey <tom@tromey.com>
1116
1117 * progspace.c (program_space::exec_close): New method, from
1118 exec_close in exec.c.
1119 * exec.c (exec_close): Move to progspace.c.
1120 (exec_target::close, exec_file_attach): Update.
1121 * progspace.h (struct program_space) <exec_close>: Declare
1122 method.
1123
1124 2020-10-29 Tom Tromey <tom@tromey.com>
1125
1126 * progspace.h (struct program_space) <exec_filename>: Rename from
1127 pspace_exec_filename. Now a unique_xmalloc_ptr.
1128 * inferior.c (print_selected_inferior): Update.
1129 (print_inferior): Update.
1130 * mi/mi-main.c (print_one_inferior): Update.
1131 * exec.h (exec_filename): Remove macro.
1132 * corefile.c (get_exec_file): Update.
1133 * exec.c (exec_close): Update.
1134 (exec_file_attach): Update.
1135 * progspace.c (clone_program_space): Update.
1136 (print_program_space): Update.
1137
1138 2020-10-29 Tom Tromey <tom@tromey.com>
1139
1140 * target-section.h (struct target_section): Add constructor.
1141 * exec.c (build_section_table, add_target_sections_of_objfile):
1142 Update.
1143 * corelow.c (core_target::build_file_mappings): Update.
1144
1145 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1146
1147 PR gdb/19318
1148 * inferior.c (detach_inferior_command): Restore the current thread.
1149 (kill_inferior_command): Ditto.
1150
1151 2020-10-28 Tom de Vries <tdevries@suse.de>
1152
1153 PR symtab/26772
1154 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1155 map, check it in the "best match" loop.
1156
1157 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1158
1159 * m32c-tdep.c: Remove unused includes.
1160
1161 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1162
1163 * xtensa-tdep.c: Remove includes.
1164
1165 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1166
1167 * breakpoint.c (struct condition_command_opts): New struct.
1168 (condition_command_option_defs): New static global.
1169 (make_condition_command_options_def_group): New function.
1170 (condition_completer): Update to consider the '-force' flag.
1171 (condition_command): Use gdb::option for the '-force' flag.
1172
1173 2020-10-27 Tom de Vries <tdevries@suse.de>
1174
1175 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1176 symbols in section check.
1177
1178 2020-10-27 Tom de Vries <tdevries@suse.de>
1179
1180 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1181
1182 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1183
1184 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1185 * breakpoint.c: Update the help text of the 'condition' and 'break'
1186 commands.
1187 (set_breakpoint_condition): Take a new bool parameter
1188 to control whether condition definition should be forced even when
1189 the condition expression is invalid in all of the current locations.
1190 (condition_command): Update the call to 'set_breakpoint_condition'.
1191 (find_condition_and_thread): Take the "-force-condition" flag into
1192 account.
1193 * linespec.c (linespec_keywords): Add "-force-condition" as an
1194 element.
1195 (FORCE_KEYWORD_INDEX): New #define.
1196 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1197 as a keyword.
1198 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1199 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1200 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1201 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1202
1203 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1204
1205 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1206 * breakpoint.c (set_breakpoint_location_condition): New function.
1207 (set_breakpoint_condition): Disable a breakpoint location if parsing
1208 the condition string gives an error.
1209 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1210 (build_target_condition_list): Ditto.
1211 (build_target_command_list): Ditto.
1212 (build_bpstat_chain): Ditto.
1213 (print_one_breakpoint_location): Ditto.
1214 (print_one_breakpoint): Ditto.
1215 (breakpoint_1): Ditto.
1216 (bp_location::bp_location): Ditto.
1217 (locations_are_equal): Ditto.
1218 (update_breakpoint_locations): Ditto.
1219 (enable_disable_bp_num_loc): Ditto.
1220 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1221 (find_condition_and_thread_for_sals): New static function.
1222 (create_breakpoint): Call find_condition_and_thread_for_sals.
1223 (location_to_sals): Call find_condition_and_thread_for_sals instead
1224 of find_condition_and_thread.
1225
1226 2020-10-26 Tom de Vries <tdevries@suse.de>
1227
1228 * dwarf2/read.c (process_full_comp_unit): Call
1229 dwarf2_find_base_address.
1230
1231 2020-10-26 Tom Tromey <tromey@adacore.com>
1232
1233 * gdbtypes.c (create_range_type): Revert previous patch. Add
1234 comment.
1235
1236 2020-10-26 Pedro Alves <pedro@palves.net>
1237
1238 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1239 (my_waitpid): Use gdb::handle_eintr.
1240
1241 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1242
1243 * acinclude.m4: Update ptrace.m4 path.
1244 * ptrace.m4: Moved to gdbsupport.
1245
1246 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1247
1248 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1249 instead of target_gdbarch.
1250
1251 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1252
1253 * jit.c (jit_reader_load_command): Pass current inferior.
1254 (jit_inferior_init): Change parameter type to inferior, use it.
1255 (jit_inferior_created): Remove.
1256 (jit_inferior_created_hook): Pass inferior parameter down.
1257 (_initialize_jit): Use jit_inferior_created_hook instead of
1258 jit_inferior_created.
1259 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1260 * infrun.c (follow_exec): Pass inferior to
1261 jit_inferior_created_hook.
1262
1263 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1264
1265 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1266 parameter and use it.
1267 (thread_db_inferior_created): Pass inferior argument.
1268
1269 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1270
1271 * aix-thread.c (aix_thread_inferior_created): Add inferior
1272 parameter.
1273 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1274 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1275 * jit.c (jit_inferior_created): Likewise.
1276 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1277 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1278 * observable.h (inferior_created): Likewise.
1279 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1280 * symfile-mem.c (add_vsyscall_page): Likewise.
1281 * infcmd.c (post_create_inferior): Pass inferior argument.
1282
1283 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1284
1285 GDB 10.1 released.
1286
1287 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1288
1289 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1290 to ada_check_typedef.
1291
1292 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * f-exp.y (f_parse): Rename to...
1295 (f_language::parser): ...this.
1296 * f-lang.c (f_get_encoding): Rename to...
1297 (f_language::get_encoding): ...this.
1298 (f_op_print_tab): Rename to...
1299 (f_language::op_print_tab): ...this.
1300 (exp_descriptor_f): Rename to...
1301 (f_language::exp_descriptor_tab): ...this.
1302 (class f_language): Moved to f-lang.h.
1303 (f_language::language_arch_info): New function, moved out of class
1304 declaration.
1305 (f_language::search_name_hash): Likewise.
1306 (f_language::lookup_symbol_nonlocal): Likewise.
1307 (f_language::get_symbol_name_matcher_inner): Likewise.
1308 * f-lang.h: Add 'valprint.h' include.
1309 (class f_language): Moved here from f-lang.c.
1310 * f-typeprint.c (f_type_print_args): Delete commented out
1311 declaration.
1312 (f_print_typedef): Rename to...
1313 (f_language::print_typedef): ...this.
1314 (f_print_type): Rename to...
1315 (f_language::print_type): ...this.
1316 (f_type_print_varspec_prefix): Delete declaration and rename to...
1317 (f_language::f_type_print_varspec_prefix): ...this.
1318 (f_type_print_varspec_suffix): Delete declaration and rename to...
1319 (f_language::f_type_print_varspec_suffix): ...this.
1320 (f_type_print_base): Delete declaration and rename to...
1321 (f_language::f_type_print_base): ...this.
1322 * f-valprint.c (f_value_print_inner): Rename to...
1323 (f_language::value_print_inner): ...this.
1324 * parse.c: Delete 'f-lang.h' include.
1325
1326 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1327
1328 * language.h (language_defn::print_type): Add variable names in
1329 declaration, and update header comment.
1330
1331 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * ada-lang.c (ada_language::demangle): Rename to...
1334 (ada_language::demangle_symbol): ...this.
1335 * c-lang.c (cplus_language::demangle): Rename to...
1336 (cplus_language::demangle_symbol): ...this.
1337 * d-lang.c (d_language::demangle): Rename to...
1338 (d_language::demangle_symbol): ...this.
1339 * f-lang.c (f_language::demangle): Rename to...
1340 (f_language::demangle_symbol): ...this.
1341 * go-lang.c (go_language::demangle): Rename to...
1342 (go_language::demangle_symbol): ...this.
1343 * language.c (language_demangle): Update call to demangle_symbol.
1344 (auto_or_unknown_language::demangle): Rename to...
1345 (auto_or_unknown_language::demangle_symbol): ...this.
1346 * language.h (language_defn::demangle): Rename to...
1347 (language_defn::demangle_symbol): ...this.
1348 * objc-lang.c (objc_language::demangle): Rename to...
1349 (objc_language::demangle_symbol): ...this.
1350 * rust-lang.c (rust_language::demangle): Rename to...
1351 (rust_language::demangle_symbol): ...this.
1352
1353 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1354
1355 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1356 (iterate_over_file_blocks): Replace use of macro with the macros
1357 definition.
1358
1359 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1362 * valprint.c (maybe_print_array_index): Replace use of macro with
1363 the macros definition.
1364
1365 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * ada-lang.c (ada_language::print_array_index): Call value_print
1368 directly.
1369 * language.c (language_defn::print_array_index): Likewise.
1370 * language.h (LA_VALUE_PRINT): Delete.
1371 * valprint.c (value_print): Call value_print on the
1372 current_language directly.
1373
1374 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1375
1376 * language.h (LA_PRINT_TYPEDEF): Delete.
1377 * typeprint.c (typedef_print): Call print_typedef directly on the
1378 current_language object.
1379
1380 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * m2-exp.y (m2_parse): Rename to...
1383 (m2_language::parser): ...this. Update function signature.
1384 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1385 (m2_op_print): Rename to...
1386 (m2_language::op_print_tab): ...this, and make const.
1387 (exp_descriptor_modula2): Rename to...
1388 (m2_language::exp_descriptor_modula2): ...this.
1389 (class m2_language): Move to m2-lang.h.
1390 (m2_language::language_arch_info): New function, moved out of
1391 class declaration.
1392 (m2_language::printchar): New function, body from m2_printchar.
1393 (m2_language::printstr): New function, moved out of class
1394 declaration.
1395 (m2_language::emitchar): Likewise.
1396 * m2-lang.h (m2_parse): Delete declaration.
1397 (m2_print_typedef): Delete declaration.
1398 (m2_value_print_inner): Delete declaration.
1399 (class m2_language): Class declaration moved from m2-lang.c,
1400 larger functions are left in m2-lang.c.
1401 * m2-typeprint.c (m2_print_typedef): Rename to...
1402 (m2_language::print_typedef): ...this, and update function
1403 signature.
1404 * m2-valprint.c (m2_value_print_inner): Rename to...
1405 (m2_language::value_print_inner): ...this, replace use of
1406 LA_PRINT_STRING with a direct call to printstr member function,
1407 and update recursive call.
1408
1409 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1410
1411 * language.c (default_is_string_type_p): Delete, implementation
1412 moved into auto_or_unknown_language::is_string_type_p.
1413 (unk_op_print_tab): Moved into
1414 auto_or_unknown_language::opcode_print_table.
1415 (unknown_language_arch_info): Delete, implementation moved into
1416 auto_or_unknown_language::language_arch_info.
1417 (class auto_or_unknown_language): New class, member functions
1418 copied from unknown_language class, with some updates.
1419 (class unknown_language): Most member functions moved into
1420 auto_or_unknown_language class. Inherit from
1421 auto_or_unknown_language class.
1422 (class auto_language): Inherit from auto_or_unknown_language.
1423 Delete most member functions.
1424
1425 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1426
1427 * stabsread.c (read_member_functions): Remove gdb_assert.
1428
1429 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1430
1431 * gdbtypes.c (init_complex_type): Check target type name.
1432
1433 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1434
1435 * target-debug.h (target_debug_print_struct_target_ops_p):
1436 Remove.
1437 (target_debug_print_async_callback_ftype_p): Remove.
1438 (target_debug_print_struct_trace_state_variable_p): Remove.
1439 (target_debug_print_struct_traceframe_info_p): Remove.
1440 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1441 (target_debug_print_enum_btrace_format): Remove.
1442 (target_debug_print_enum_info_proc_what): Remove.
1443 (target_debug_print_thread_info_pp): Remove.
1444
1445 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1446
1447 * target.h (struct target_ops) <make_corefile_notes>:
1448 Change return type to unique pointer.
1449 * target.c (dummy_make_corefile_notes): Likewise.
1450 * exec.c (struct exec_target) <make_corefile_notes>:
1451 Likewise.
1452 (exec_target::make_corefile_notes): Likewise.
1453 * procfs.c (class procfs_target) <make_corefile_notes>:
1454 Likewise.
1455 (procfs_do_thread_registers): Adjust to unique pointer.
1456 (struct procfs_corefile_thread_data): Add constructor.
1457 <note_data>: Change type to unique pointer.
1458 (procfs_corefile_thread_callback): Adjust to unique pointer.
1459 (procfs_target::make_corefile_notes): Change return type to
1460 unique pointer.
1461 * target-delegates.c: Re-generate.
1462 * gcore.c (write_gcore_file_1): Adjust.
1463 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1464 New.
1465
1466 2020-10-22 Tom de Vries <tdevries@suse.de>
1467
1468 * block.c (find_block_in_blockvector): Make sure the returned block
1469 contains pc.
1470
1471 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1472
1473 PR gdb/26693
1474 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1475 parameter.
1476 (load_cu): Pass existing CU.
1477 (process_imported_unit_die): Likewise.
1478 (follow_die_offset): Likewise.
1479
1480 2020-10-22 Luis Machado <luis.machado@linaro.org>
1481
1482 * corelow.c (core_target::xfer_partial): Also check for an empty
1483 m_core_unavailable_mappings vector.
1484
1485 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1488 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1489 * f-exp.y (arglist): Allow for a series of subranges.
1490 (subrange): Add cases for subranges with strides.
1491 * f-lang.c (value_f90_subarray): Catch use of array strides and
1492 throw an error.
1493 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1494
1495 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1496
1497 * expprint.c (print_subexp_standard): Change enum range_type to
1498 range_flag and rename variables to match.
1499 (dump_subexp_body_standard): Likewise.
1500 * expression.h (enum range_type): Rename to...
1501 (enum range_flag): ...this.
1502 (range_types): Rename to...
1503 (range_flags): ...this.
1504 * f-lang.c (value_f90_subarray): Change enum range_type to
1505 range_flag and rename variables to match.
1506 * parse.c (operator_length_standard): Likewise.
1507 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1508 range_type to range_flag.
1509 * rust-lang.c (rust_evaluate_funcall): Likewise.
1510 (rust_range): Likewise.
1511 (rust_compute_range): Likewise.
1512 (rust_subscript): Likewise.
1513
1514 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * expprint.c (print_subexp_standard): Update to reflect changes to
1517 enum range_type.
1518 (dump_subexp_body_standard): Likewise.
1519 * expression.h (enum range_type): Convert to a bit field enum, and
1520 make the enum unsigned.
1521 * f-exp.y (subrange): Update to reflect changes to enum
1522 range_type.
1523 * f-lang.c (value_f90_subarray): Likewise.
1524 * parse.c (operator_length_standard): Likewise.
1525 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1526 * rust-lang.c (rust_range): Likewise.
1527 (rust_compute_range): Likewise.
1528 (rust_subscript): Likewise.
1529
1530 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1531
1532 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1533 (displaced_step_in_progress): Fix comment.
1534
1535 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1536
1537 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1538 * gdbarch.c: Re-generate.
1539 * gdbarch.h: Re-generate.
1540 * gcore.c (write_gcore_file_1): Adjust.
1541 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1542 constructor.
1543 <note_data>: Change type to unique pointer.
1544 <abort_iteration>: Change type to bool.
1545 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1546 (fbsd_collect_thread_registers): Return void, adjust.
1547 (struct fbsd_corefile_thread_data): Add construtor.
1548 <note_data>: Change type to unique pointer.
1549 (fbsd_corefile_thread): Adjust.
1550 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1551 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1552 to unique pointer, adjust.
1553 (struct linux_collect_regset_section_cb_data): Add constructor.
1554 <note_data>: Change type to unique pointer.
1555 <abort_iteration>: Change type to bool.
1556 (linux_collect_thread_registers): Return void, adjust.
1557 (struct linux_corefile_thread_data): Add constructor.
1558 <note_data>: Change type to unique pointer.
1559 (linux_corefile_thread): Adjust.
1560 (linux_make_corefile_notes): Return unique pointer, adjust.
1561
1562 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1563
1564 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1565 * gdbarch.c: Re-generate.
1566 * gdbarch.h: Re-generate.
1567 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1568 bool.
1569 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1570 Likewise.
1571 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1572 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1573 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1574 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1575
1576 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1577
1578 * gdbarch.sh: Make generated predicates return bool.
1579 * gdbarch.c: Re-generate.
1580 * gdbarch.h: Re-generate.
1581
1582 2020-10-20 Tom Tromey <tom@tromey.com>
1583
1584 * varobj-iter.h (struct varobj_item): Remove typedef.
1585
1586 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1587
1588 * infrun.c (currently_stepping): Change int to bool
1589 (maybe_software_singlestep): Likewise.
1590 (show_stop_on_solib_events): Likewise.
1591 (stepping_past_nonsteppable_watchpoint): Likewise.
1592 (displaced_step_in_progress_any_inferior): Likewise.
1593 (displaced_step_in_progress_thread): Likewise.
1594 (keep_going_stepped_thread): Likewise.
1595 (thread_still_needs_step_over): Likewise.
1596 (start_step_over): Likewise.
1597 (do_target_resume): Likewise.
1598 (resume_1): Likewise.
1599 (clear_proceed_status): Likewise.
1600 (thread_still_needs_step_over_bp): Likewise.
1601 (proceed): Likewise.
1602 (switch_back_to_stepped_thread): Likewise.
1603 (adjust_pc_after_break): Likewise.
1604 (stepped_in_from): Likewise.
1605 (handle_stop_requested): Likewise.
1606 (handle_syscall_event): Likewise.
1607 (handle_no_resumed): Likewise.
1608 (handle_inferior_event): Likewise.
1609 (finish_step_over): Likewise.
1610 (handle_signal_stop): Likewise.
1611 (process_event_stop_test): Likewise.
1612
1613 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1614
1615 * infrun.c (get_displaced_stepping_state): Fix comment.
1616
1617 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1618
1619 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1620
1621 2020-10-19 Tom Tromey <tromey@adacore.com>
1622
1623 PR tui/26719
1624 * tui/tui-winsource.h (struct tui_source_window_base)
1625 <refresh_window>: Rename from refresh_pad.
1626 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1627 Rename from refresh_pad.
1628 (tui_source_window_base::show_source_content)
1629 (tui_source_window_base::do_scroll_horizontal): Update.
1630
1631 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1632
1633 * thread.c (_initialize_thread): Fine-tune the help text of
1634 'info threads'.
1635
1636 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1637
1638 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1639
1640 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1641
1642 * breakpoint.c (handle_jit_event): Add an argument, change how
1643 `jit_event_handler` is called.
1644
1645 2020-10-17 Tom Tromey <tom@tromey.com>
1646
1647 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1648 (scan_xcoff_symtab): Update.
1649 * psymtab.h (class psymtab_storage) <global_psymbols,
1650 static_psymbols, current_global_psymbols,
1651 current_static_psymbols>: Remove.
1652 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1653 (match_partial_symbol, lookup_partial_symbol): Update.
1654 (print_partial_symbols): Change parameters.
1655 (dump_psymtab, recursively_search_psymtabs)
1656 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1657 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1658 (concat): Remove.
1659 (end_psymtab_common): Simplify.
1660 (append_psymbol_to_list): Change parameters.
1661 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1662 (init_psymbol_list): Simplify.
1663 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1664 * psympriv.h (struct partial_symtab) <empty>: New method.
1665 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1666 Remove.
1667 <global_psymbols, static_psymbols>: New members.
1668 <add_psymbol>: New methods.
1669 (add_psymbol_to_list): Don't declare.
1670 (psymbol_placement): Move earlier.
1671 * mdebugread.c (parse_partial_symbols): Update.
1672 (handle_psymbol_enumerators): Change parameters.
1673 (mdebug_expand_psymtab): Update.
1674 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1675 (add_partial_symbol): Update.
1676 * dwarf2/index-write.c (write_psymbols): Change parameters.
1677 (write_one_signatured_type): Update.
1678 (recursively_count_psymbols): Update.
1679 (recursively_write_psymbols): Update.
1680 (class debug_names) <recursively_write_psymbols>: Update.
1681 <write_psymbols>: Change parameters.
1682 <write_one_signatured_type>: Update.
1683 * dbxread.c (read_dbx_symtab): Update.
1684 (dbx_end_psymtab): Use partial_symtab::empty.
1685 * ctfread.c (struct ctf_context) <pst>: New member.
1686 (create_partial_symtab): Set it.
1687 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1688 (scan_partial_symbols): Use the psymtab's context. Update.
1689
1690 2020-10-17 Tom Tromey <tom@tromey.com>
1691
1692 * valprint.c (generic_value_print): Remove comment.
1693 * m2-valprint.c (m2_value_print_inner): Remove comment.
1694 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1695 type.
1696
1697 2020-10-17 Tom de Vries <tdevries@suse.de>
1698
1699 PR symtab/26317
1700 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1701 symbol main.
1702
1703 2020-10-14 Tom de Vries <tdevries@suse.de>
1704
1705 PR gdb/26733
1706 * solib.c (solib_contains_address_p): Handle
1707 'solib->sections == nullptr'.
1708
1709 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1710
1711 PR gdb/26642
1712 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1713 target can't do async.
1714 * target.c (target_wait): Assert that we don't pass
1715 TARGET_WNOHANG to a target that can't async.
1716
1717 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1718
1719 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1720 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1721 * alpha-bsd-nat.c: Adjust include.
1722 * alpha-bsd-tdep.h: Adjust comment.
1723 * alpha-nbsd-tdep.c: Rename to ...
1724 * alpha-netbsd-tdep.c: ... this, adjust include.
1725 * amd64-nbsd-nat.c: Rename to ...
1726 * amd64-netbsd-nat.c: ... this, adjust include.
1727 * amd64-nbsd-tdep.c: Rename to ...
1728 * amd64-netbsd-tdep.c: ... this, adjust include.
1729 * amd64-tdep.h: Adjust include.
1730 * arm-nbsd-nat.c: Rename to ...
1731 * arm-netbsd-nat.c: ... this, adjust include.
1732 * arm-nbsd-tdep.c: Rename to ...
1733 * arm-netbsd-tdep.c: ... this, adjust include.
1734 * arm-nbsd-tdep.h: Rename to ...
1735 * arm-netbsd-tdep.h: ... this, adjust include.
1736 * configure.nat: Adjust file lists.
1737 * configure.tgt: Likewise.
1738 * hppa-nbsd-nat.c: Rename to ...
1739 * hppa-netbsd-nat.c: ... this, adjust include.
1740 * hppa-nbsd-tdep.c: Rename to ...
1741 * hppa-netbsd-tdep.c: ... this, adjust include.
1742 * i386-nbsd-nat.c: Rename to ...
1743 * i386-netbsd-nat.c: ... this, adjust include.
1744 * i386-nbsd-tdep.c: Rename to ...
1745 * i386-netbsd-tdep.c: ... this, adjust include.
1746 * m68k-bsd-nat.c: Adjust include.
1747 * mips-nbsd-nat.c: Rename to ...
1748 * mips-netbsd-nat.c: ... this, adjust include.
1749 * mips-nbsd-tdep.c: Rename to ...
1750 * mips-netbsd-tdep.c: ... this, adjust include.
1751 * mips-nbsd-tdep.h: Rename to ...
1752 * mips-netbsd-tdep.h: ... this.
1753 * nbsd-nat.c: Rename to ...
1754 * netbsd-nat.c: ... this, adjust include.
1755 * nbsd-nat.h: Rename to ...
1756 * netbsd-nat.h: ... this, adjust include.
1757 * nbsd-tdep.c: Rename to ...
1758 * netbsd-tdep.c: ... this, adjust include.
1759 * nbsd-tdep.h: Rename to ...
1760 * netbsd-tdep.h: ... this.
1761 * ppc-nbsd-nat.c: Rename to ...
1762 * ppc-netbsd-nat.c: ... this, adjust include.
1763 * ppc-nbsd-tdep.c: Rename to ...
1764 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1765 * ppc-nbsd-tdep.h: Rename to ...
1766 * ppc-netbsd-tdep.h: ... this.
1767 * sh-nbsd-nat.c: Rename to ...
1768 * sh-netbsd-nat.c: ... this, adjust include.
1769 * sh-nbsd-tdep.c: Rename to ...
1770 * sh-netbsd-tdep.c: ... this, adjust include.
1771 * sparc-nbsd-nat.c: Rename to ...
1772 * sparc-netbsd-nat.c: ... this.
1773 * sparc-nbsd-tdep.c: Rename to ...
1774 * sparc-netbsd-tdep.c: ... this, adjust include.
1775 * sparc64-nbsd-nat.c: Rename to ...
1776 * sparc64-netbsd-nat.c: ... this.
1777 * sparc64-nbsd-tdep.c: Rename to ...
1778 * sparc64-netbsd-tdep.c: ... this, adjust include.
1779 * sparc64-tdep.h: Adjust comment.
1780 * vax-bsd-nat.c: Adjust include.
1781 * vax-nbsd-tdep.c: Rename to ...
1782 * vax-netbsd-tdep.c: ... this, adjust include.
1783
1784 2020-10-12 Tom Tromey <tom@tromey.com>
1785
1786 * target.h (struct target_ops) <get_section_table>: Update.
1787 (target_get_section_table): Update.
1788 * target.c (target_get_section_table, target_section_by_addr)
1789 (memory_xfer_partial_1): Update.
1790 * target-section.h (target_section_table): Now an alias.
1791 * target-delegates.c: Rebuild.
1792 * target-debug.h (target_debug_print_target_section_table_p):
1793 Rename from target_debug_print_struct_target_section_table_p.
1794 * symfile.c (build_section_addr_info_from_section_table): Update.
1795 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1796 * solib-svr4.c (scan_dyntag): Update.
1797 * solib-dsbt.c (scan_dyntag): Update.
1798 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1799 Update.
1800 * record-full.c (record_full_core_target::xfer_partial): Update.
1801 * progspace.h (struct program_space) <target_sections>: Update.
1802 * exec.h (print_section_info): Update.
1803 * exec.c (exec_target::close, build_section_table)
1804 (add_target_sections, add_target_sections_of_objfile)
1805 (remove_target_sections, exec_on_vfork)
1806 (section_table_available_memory)
1807 (section_table_xfer_memory_partial)
1808 (exec_target::get_section_table, exec_target::xfer_partial)
1809 (print_section_info, set_section_command)
1810 (exec_set_section_address, exec_target::has_memory): Update.
1811 * corelow.c (core_target::build_file_mappings)
1812 (core_target::xfer_partial, core_target::info_proc_mappings)
1813 (core_target::info_proc_mappings): Update.
1814 * bfd-target.c (class target_bfd): Update
1815
1816 2020-10-12 Tom Tromey <tom@tromey.com>
1817
1818 * progspace.c (program_space::~program_space): Don't call
1819 clear_section_table.
1820 * exec.h (clear_section_table): Don't declare.
1821 * exec.c (exec_target::close): Update.
1822 (clear_section_table): Remove.
1823
1824 2020-10-12 Tom Tromey <tom@tromey.com>
1825
1826 * exec.c (add_target_sections_of_objfile): Simplify.
1827
1828 2020-10-12 Tom Tromey <tom@tromey.com>
1829
1830 * solib.c (solib_map_sections): Update.
1831 * record-full.c (record_full_core_open_1): Update.
1832 * exec.h (build_section_table): Return a target_section_table.
1833 * exec.c (exec_file_attach): Update.
1834 (build_section_table): Return a target_section_table.
1835 * corelow.c (core_target::core_target): Update.
1836 * bfd-target.c (target_bfd::target_bfd): Update.
1837
1838 2020-10-12 Tom Tromey <tom@tromey.com>
1839
1840 * target.c (target_section_by_addr, memory_xfer_partial_1):
1841 Update.
1842 * target-section.h (struct target_section_table): Use
1843 std::vector.
1844 * symfile.h (build_section_addr_info_from_section_table): Take a
1845 target_section_table.
1846 * symfile.c (build_section_addr_info_from_section_table): Take a
1847 target_section_table.
1848 * solist.h (struct so_list) <sections>: Change type.
1849 <sections_end>: Remove.
1850 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1851 (solib_contains_address_p): Update.
1852 * solib-svr4.c (scan_dyntag): Update.
1853 * solib-dsbt.c (scan_dyntag): Update.
1854 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1855 Update.
1856 * record-full.c (record_full_core_start, record_full_core_end):
1857 Remove.
1858 (record_full_core_sections): New global.
1859 (record_full_core_open_1, record_full_core_target::xfer_partial):
1860 Update.
1861 * exec.h (build_section_table, section_table_xfer_memory_partial)
1862 (add_target_sections): Take a target_section_table.
1863 * exec.c (exec_file_attach, clear_section_table): Update.
1864 (resize_section_table): Remove.
1865 (build_section_table, add_target_sections): Take a
1866 target_section_table.
1867 (add_target_sections_of_objfile, remove_target_sections)
1868 (exec_on_vfork): Update.
1869 (section_table_available_memory): Take a target_section_table.
1870 (section_table_read_available_memory): Update.
1871 (section_table_xfer_memory_partial): Take a target_section_table.
1872 (print_section_info, set_section_command)
1873 (exec_set_section_address, exec_target::has_memory): Update.
1874 * corelow.c (class core_target) <m_core_section_table,
1875 m_core_file_mappings>: Remove braces.
1876 <~core_target>: Remove.
1877 (core_target::core_target): Update.
1878 (core_target::~core_target): Remove.
1879 (core_target::build_file_mappings)
1880 (core_target::xfer_memory_via_mappings)
1881 (core_target::xfer_partial, core_target::info_proc_mappings):
1882 Update.
1883 * bfd-target.c (target_bfd::xfer_partial): Update.
1884 (target_bfd::target_bfd): Update.
1885 (target_bfd::~target_bfd): Remove.
1886
1887 2020-10-12 Tom Tromey <tom@tromey.com>
1888
1889 * target.h (struct target_section, struct target_section_table):
1890 Move to target-section.h.
1891 * target-section.h: New file.
1892
1893 2020-10-12 Pedro Alves <pedro@palves.net>
1894
1895 PR exp/26602
1896 * valops.c (struct struct_field_searcher): New.
1897 (update_search_result): Rename to ...
1898 (struct_field_searcher::update_result): ... this. Simplify
1899 prototype. Record all found fields.
1900 (do_search_struct_field): Rename to ...
1901 (struct_field_searcher::search): ... this. Simplify prototype.
1902 Maintain stack of visited baseclass path. Call update_result for
1903 fields too. Keep searching fields in baseclasses instead of
1904 stopping at the first found field.
1905 (search_struct_field): Use struct_field_searcher. When looking
1906 for fields, report ambiguous access attempts.
1907
1908 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * frame.c (inside_main_func): Check full symbols as well as
1911 minimal symbols.
1912
1913 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1914
1915 * ada-lang.c (advance_wild_match): Rewrite the function's
1916 description. Change the type of target0, t0 and t1 to char.
1917
1918 2020-10-09 Tom Tromey <tromey@adacore.com>
1919
1920 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1921
1922 2020-10-09 Tom Tromey <tromey@adacore.com>
1923
1924 * ada-lang.h (ada_encode): Return std::string.
1925 * ada-lang.c (ada_encode_1): Return std::string.
1926 (ada_encode): Likewise.
1927 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1928 Update.
1929 * ada-exp.y (block_lookup, write_var_or_type): Update.
1930
1931 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1932
1933 PR exp/26714
1934 * printcmd.c (print_formatted): Handle void results as
1935 unformatted prints.
1936
1937 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * arch/aarch32.c (aarch32_create_target_description): Release the
1940 target_desc_up as late as possible.
1941 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1942 * arch/amd64.c (amd64_create_target_description): Likewise.
1943 * arch/arc.c (arc_create_target_description): Return a
1944 target_desc_up, don't release it.
1945 * arch/arc.h (arc_create_target_description): Update declaration.
1946 (arc_lookup_target_description): Move target_desc_up into the
1947 cache, and return a borrowed pointer.
1948 * arch/arm.c (arm_create_target_description): Release the
1949 target_desc_up as late as possible.
1950 * arch/i386.c (i386_create_target_description): Likewise.
1951 * arch/riscv.h (riscv_create_target_description): Update
1952 declaration to match definition.
1953 * arch/tic6x.c (tic6x_create_target_description): Release the
1954 target_desc_up as late as possible.
1955
1956 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1959 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1960
1961 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1962
1963 * source.c (directory_command): Notify observers that "directories"
1964 parameter has changed.
1965
1966 2020-10-08 Tom Tromey <tom@tromey.com>
1967
1968 * cli/cli-cmds.c (print_disassembly): Style function name and
1969 addresses. Add _() wrappers.
1970
1971 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1972
1973 * NEWS: Mention ARC support in GDBserver.
1974
1975 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1976
1977 * arch/aarch32.c (aarch32_create_target_description): Release
1978 unique_ptr returned from allocate_target_description.
1979 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1980 * arch/amd64.c (amd64_create_target_description): Likewise.
1981 * arch/arc.c (arc_create_target_description): Likewise.
1982 * arch/arm.c (arm_create_target_description): Likewise.
1983 * arch/i386.c (i386_create_target_description): Likewise.
1984 * arch/riscv.c (riscv_create_target_description): Update return
1985 type. Handle allocate_target_description returning a unique_ptr.
1986 (riscv_lookup_target_description): Update to handle unique_ptr.
1987 * arch/tic6x.c (tic6x_create_target_description): Release
1988 unique_ptr returned from allocate_target_description.
1989 * features/microblaze-with-stack-protect.c: Regenerate.
1990 * features/microblaze.c: Regenerate.
1991 * features/mips-dsp-linux.c: Regenerate.
1992 * features/mips-linux.c: Regenerate.
1993 * features/mips64-dsp-linux.c: Regenerate.
1994 * features/mips64-linux.c: Regenerate.
1995 * features/nds32.c: Regenerate.
1996 * features/nios2.c: Regenerate.
1997 * features/or1k.c: Regenerate.
1998 * features/rs6000/powerpc-32.c: Regenerate.
1999 * features/rs6000/powerpc-32l.c: Regenerate.
2000 * features/rs6000/powerpc-403.c: Regenerate.
2001 * features/rs6000/powerpc-403gc.c: Regenerate.
2002 * features/rs6000/powerpc-405.c: Regenerate.
2003 * features/rs6000/powerpc-505.c: Regenerate.
2004 * features/rs6000/powerpc-601.c: Regenerate.
2005 * features/rs6000/powerpc-602.c: Regenerate.
2006 * features/rs6000/powerpc-603.c: Regenerate.
2007 * features/rs6000/powerpc-604.c: Regenerate.
2008 * features/rs6000/powerpc-64.c: Regenerate.
2009 * features/rs6000/powerpc-64l.c: Regenerate.
2010 * features/rs6000/powerpc-7400.c: Regenerate.
2011 * features/rs6000/powerpc-750.c: Regenerate.
2012 * features/rs6000/powerpc-860.c: Regenerate.
2013 * features/rs6000/powerpc-altivec32.c: Regenerate.
2014 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2015 * features/rs6000/powerpc-altivec64.c: Regenerate.
2016 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2017 * features/rs6000/powerpc-e500.c: Regenerate.
2018 * features/rs6000/powerpc-e500l.c: Regenerate.
2019 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2020 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2021 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2022 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2023 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2024 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2025 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2026 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2027 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2028 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2029 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2030 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2031 * features/rs6000/powerpc-vsx32.c: Regenerate.
2032 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2033 * features/rs6000/powerpc-vsx64.c: Regenerate.
2034 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2035 * features/rs6000/rs6000.c: Regenerate.
2036 * features/rx.c: Regenerate.
2037 * features/s390-gs-linux64.c: Regenerate.
2038 * features/s390-linux32.c: Regenerate.
2039 * features/s390-linux32v1.c: Regenerate.
2040 * features/s390-linux32v2.c: Regenerate.
2041 * features/s390-linux64.c: Regenerate.
2042 * features/s390-linux64v1.c: Regenerate.
2043 * features/s390-linux64v2.c: Regenerate.
2044 * features/s390-te-linux64.c: Regenerate.
2045 * features/s390-tevx-linux64.c: Regenerate.
2046 * features/s390-vx-linux64.c: Regenerate.
2047 * features/s390x-gs-linux64.c: Regenerate.
2048 * features/s390x-linux64.c: Regenerate.
2049 * features/s390x-linux64v1.c: Regenerate.
2050 * features/s390x-linux64v2.c: Regenerate.
2051 * features/s390x-te-linux64.c: Regenerate.
2052 * features/s390x-tevx-linux64.c: Regenerate.
2053 * features/s390x-vx-linux64.c: Regenerate.
2054 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2055 from allocate_target_description.
2056 * target-descriptions.c (allocate_target_description): Update
2057 return type.
2058 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2059 allocate_target_description.
2060
2061 2020-10-07 Tom Tromey <tromey@adacore.com>
2062
2063 * unittests/search-memory-selftests.c: New file.
2064 * Makefile.in (SELFTESTS_SRCS): Add
2065 unittests/search-memory-selftests.c.
2066
2067 2020-10-07 Tom Tromey <tromey@adacore.com>
2068
2069 PR gdb/16930:
2070 * findcmd.c (_initialize_mem_search): Mention that the range is
2071 inclusive.
2072
2073 2020-10-07 Tom Tromey <tromey@adacore.com>
2074
2075 * target.h (simple_search_memory): Don't declare.
2076 * target.c (simple_search_memory): Move to gdbsupport.
2077 (default_search_memory): Update.
2078 * remote.c (remote_target::search_memory): Update.
2079
2080 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2081
2082 * Makefile.in (COMPILE): Add CXXFLAGS.
2083 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2084 (check-headers): Add CXXFLAGS.
2085
2086 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2087
2088 * arc-linux-tdep.h: New file.
2089 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2090 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2091 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2092 arc_linux_gregset, arc_linux_v2_regset,
2093 arc_linux_iterate_over_regset_sections,
2094 arc_linux_core_read_description): Implement.
2095 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2096 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2097 (arc_gdbarch_features_create): Add.
2098 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2099
2100 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2101
2102 * arch/arc.h: Rename "arc_gdbarch_features" to
2103 "arc_arch_features".
2104 * arc-tdep.h: Likewise.
2105 * arc-tdep.c: Likewise.
2106
2107 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2108
2109 * infcmd.c (attach_command): Remove the redundant call to
2110 `clear_proceed_status`.
2111
2112 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2113
2114 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2115
2116 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2117
2118 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2119 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2120 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2121
2122 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2123
2124 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2125 (_initialize_break_catch_sig): Don't allocate array.
2126
2127 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2128
2129 * symtab.c (find_pc_line): Return unmapped addresses when the
2130 requested address is also unmapped.
2131
2132 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2133
2134 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2135 tui/tui-out.h.
2136
2137 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2138
2139 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2140 type::is_vector instead of TYPE_VECTOR.
2141
2142 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2143
2144 * auto-load.c (auto_load_objfile_script_1): Don't use
2145 debugfile_holder as temporary variable when stripping drive
2146 letter.
2147
2148 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2149
2150 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2151 Add TYPE_CODE_COMPLEX.
2152 (amd64_windows_return_value): Fix types returned via XMM0.
2153
2154 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2155
2156 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2157 AArch64/ARM maintainers.
2158
2159 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2160
2161 * NEWS: Mention set/show debug event-loop.
2162
2163 2020-10-02 Tom Tromey <tromey@adacore.com>
2164
2165 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2166 REG_EXTENDED.
2167
2168 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2169
2170 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2171 * procfs.c (procfs_inferior_created): Remove.
2172 (_initialize_procfs): Don't register procfs_inferior_created.
2173
2174 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2175
2176 * async-event.c (invoke_async_signal_handlers): Add debug
2177 print.
2178 (check_async_event_handlers): Likewise.
2179 * event-top.c (show_debug_event_loop): New function.
2180 (_initialize_event_top): Register "set debug event-loop"
2181 setting.
2182
2183 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2186 * debug.h: Remove.
2187 * infrun.c: Include gdbsupport/common-debug.h.
2188 * linux-nat.c: Likewise.
2189
2190 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2191
2192 * async-event.h (create_async_signal_handler): Add name
2193 parameter.
2194 (create_async_event_handler): Likewise.
2195 * async-event.c (struct async_signal_handler) <name>: New field.
2196 (struct async_event_handler) <name>: New field.
2197 (create_async_signal_handler): Assign name.
2198 (create_async_event_handler): Assign name.
2199 * event-top.c (async_init_signals): Pass name when creating
2200 handler.
2201 * infrun.c (_initialize_infrun): Likewise.
2202 * record-btrace.c (record_btrace_push_target): Likewise.
2203 * record-full.c (record_full_open): Likewise.
2204 * remote-notif.c (remote_notif_state_allocate): Likewise.
2205 * remote.c (remote_target::open_1): Likewise.
2206 * tui/tui-win.c (tui_initialize_win): Likewise.
2207
2208 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2209
2210 * async-event.c (initialize_async_signal_handlers): Pass name to
2211 add_file_handler
2212 * event-top.c (ui_register_input_event_handler): Likewise.
2213 * linux-nat.c (linux_nat_target::async): Likewise.
2214 * run-on-main-thread.c (_initialize_run_on_main_thread):
2215 Likewise
2216 * ser-base.c (reschedule): Likewise.
2217 (ser_base_async): Likewise.
2218 * tui/tui-io.c: Likewise.
2219 * top.h (struct ui) <num>: New field.
2220 * top.c (highest_ui_num): New variable.
2221 (ui::ui): Initialize num.
2222
2223 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2224
2225 * observable.h <inferior_created>: Remove parameters. Update all
2226 listeners.
2227 * inferior.h (post_create_inferior): Remove target parameter.
2228 Update all callers.
2229
2230 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2231
2232 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2233 and DW_MACRO_undef_strx.
2234 (dwarf_decode_macros): Likewise
2235 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2236 which is the value of DW_AT_str_offsets_base.
2237 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2238 str_offsets_base.
2239
2240 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2241
2242 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2243
2244 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2245
2246 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2247 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2248
2249 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2250
2251 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2252
2253 2020-09-30 Tom de Vries <tdevries@suse.de>
2254
2255 PR symtab/26683
2256 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2257
2258 2020-09-30 Tom Tromey <tromey@adacore.com>
2259
2260 * dwarf2/read.c (handle_variant): Use constant_value.
2261
2262 2020-09-29 Tom Tromey <tom@tromey.com>
2263
2264 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2265 (read_file_scope, dwarf2_get_pc_bounds)
2266 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2267 (read_structure_type, handle_struct_member_die)
2268 (read_enumeration_type, read_array_type, read_set_type)
2269 (read_tag_pointer_type, read_tag_reference_type)
2270 (read_subroutine_type, read_base_type, read_subrange_type)
2271 (read_full_die_1, partial_die_info::read)
2272 (partial_die_info::read, by, new_symbol)
2273 (dwarf2_const_value_data, dwarf2_const_value_attr)
2274 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2275 (prepare_one_comp_unit): Update.
2276 * dwarf2/attribute.h (DW_UNSND): Remove.
2277
2278 2020-09-29 Tom Tromey <tom@tromey.com>
2279
2280 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2281 (read_subroutine_type, partial_die_info::read)
2282 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2283 (dwarf2_add_member_fn): Update.
2284 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2285 * dwarf2/attribute.c (attribute::as_boolean): New method.
2286
2287 2020-09-29 Tom Tromey <tom@tromey.com>
2288
2289 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2290 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2291 method.
2292 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2293
2294 2020-09-29 Tom Tromey <tom@tromey.com>
2295
2296 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2297 the attribute's form.
2298
2299 2020-09-29 Tom Tromey <tom@tromey.com>
2300
2301 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2302 (dwarf2_add_member_fn): Update.
2303 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2304 * dwarf2/attribute.c (attribute::defaulted): New method, from
2305 is_valid_DW_AT_defaulted.
2306
2307 2020-09-29 Tom Tromey <tom@tromey.com>
2308
2309 * dwarf2/read.c (dw2_get_file_names_reader)
2310 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2311 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2312 (dwarf2_symbol_mark_computed): Use as_unsigned.
2313 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2314 method.
2315 <form_is_section_offset>: Update comment.
2316
2317 2020-09-29 Tom Tromey <tom@tromey.com>
2318
2319 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2320 dwarf2_default_access_attribute. Look up attribute.
2321 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2322 Update.
2323
2324 2020-09-29 Tom Tromey <tom@tromey.com>
2325
2326 * dwarf2/read.c (skip_one_die): Update.
2327 (read_full_die_1): Change how reprocessing is done.
2328 (partial_die_info::read): Update.
2329 (read_attribute_value): Remove need_reprocess parameter.
2330 (read_attribute): Likewise.
2331 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2332 New method.
2333
2334 2020-09-29 Tom Tromey <tom@tromey.com>
2335
2336 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2337 (dwarf2_const_value_attr, dump_die_shallow)
2338 (dwarf2_fetch_constant_bytes): Update.
2339 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2340 comment.
2341 <set_address>: New method.
2342 (DW_ADDR): Remove.
2343 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2344 (attribute::as_string, attribute::as_address): Add assert.
2345
2346 2020-09-29 Tom Tromey <tom@tromey.com>
2347
2348 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2349 (read_attribute_reprocess, read_attribute_value): Update.
2350 (read_attribute): Clear requires_reprocessing.
2351 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2352 form_requires_reprocessing>: New methods.
2353 <string_init>: Clear requires_reprocessing.
2354 <set_unsigned_reprocess>: New method.
2355 <name>: Shrink by one bit.
2356 <requires_reprocessing>: New member.
2357 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2358 method.
2359
2360 2020-09-29 Tom Tromey <tom@tromey.com>
2361
2362 * dwarf2/read.c (read_attribute_value): Update.
2363 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2364 set_unsigned>: New methods.
2365 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2366
2367 2020-09-29 Tom Tromey <tom@tromey.com>
2368
2369 * dwarf2/read.c (get_alignment, read_array_order)
2370 (read_attribute_value, dwarf2_const_value_attr)
2371 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2372 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2373 New methods.
2374 (DW_SND): Remove.
2375
2376 2020-09-29 Tom Tromey <tom@tromey.com>
2377
2378 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2379 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2380 Update.
2381 * dwarf2/attribute.h (struct attribute) <as_signature,
2382 set_signature>: New methods.
2383 (DW_SIGNATURE): Remove.
2384
2385 2020-09-29 Tom Tromey <tom@tromey.com>
2386
2387 * dwarf2/read.c (read_call_site_scope)
2388 (handle_data_member_location, dwarf2_add_member_fn)
2389 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2390 (partial_die_info::read, read_attribute_value)
2391 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2392 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2393 (dwarf2_symbol_mark_computed): Update.
2394 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2395 methods.
2396 (DW_BLOCK): Remove.
2397 * dwarf2/attribute.c (attribute::form_is_block): Add
2398 DW_FORM_data16.
2399
2400 2020-09-29 Tom Tromey <tom@tromey.com>
2401
2402 * dwarf2/read.c (read_cutu_die_from_dwo)
2403 (read_attribute_reprocess, read_attribute_value, read_attribute)
2404 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2405 (dwarf2_fetch_constant_bytes): Update.
2406 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2407 <set_string_noncanonical, set_string_canonical>: New methods.
2408 <string_is_canonical>: Update comment.
2409 <canonical_string_p>: Add assert.
2410 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2411 * dwarf2/attribute.c (attribute::form_is_string): New method.
2412 (attribute::string): Use it.
2413
2414 2020-09-29 Tom Tromey <tom@tromey.com>
2415
2416 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2417 (dump_die_shallow): Use canonical_string_p.
2418 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2419 method.
2420
2421 2020-09-29 Tom Tromey <tom@tromey.com>
2422
2423 * dwarf2/read.c (partial_die_info::read)
2424 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2425 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2426 attribute::as_string.
2427
2428 2020-09-29 Tom Tromey <tom@tromey.com>
2429
2430 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2431 DW_ADDR.
2432 (attribute::string): Don't use DW_STRING.
2433 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2434 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2435
2436 2020-09-29 Tom Tromey <tom@tromey.com>
2437
2438 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2439 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2440 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2441 * dwarf2/attribute.h (struct attribute): Rename methods.
2442 * dwarf2/attribute.c (attribute::as_address): Rename from
2443 value_as_address.
2444 (attribute::as_string): Rename from value_as_string.
2445
2446 2020-09-29 Tom Tromey <tom@tromey.com>
2447
2448 * dwarf2/read.c (partial_die_info::read) <case
2449 DW_AT_linkage_name>: Use value_as_string.
2450 (dwarf2_string_attr): Use value_as_string.
2451 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2452 method.
2453 * dwarf2/attribute.c (attribute::value_as_string): New method.
2454
2455 2020-09-29 Pedro Alves <pedro@palves.net>
2456
2457 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2458 defined before using '#pragma GCC diagnostic' instead of checking
2459 __clang__.
2460
2461 2020-09-28 Tom Tromey <tom@tromey.com>
2462
2463 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2464 (handle_signal_stop): Update.
2465 * procfs.c (procfs_target::insert_watchpoint): Update.
2466 * target.h (target_have_steppable_watchpoint): Now a function.
2467
2468 2020-09-28 Tom Tromey <tom@tromey.com>
2469
2470 * infrun.c (set_schedlock_func): Update.
2471 * target.h (target_can_lock_scheduler): Now a function.
2472
2473 2020-09-28 Tom Tromey <tom@tromey.com>
2474
2475 * inferior.h (class inferior) <has_execution>: Update.
2476 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2477 * valops.c (find_function_in_inferior)
2478 (value_allocate_space_in_inferior): Update.
2479 * top.c (kill_or_detach): Update.
2480 * target.c (target_preopen, set_target_permissions): Update.
2481 (target_has_execution_current): Remove.
2482 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2483 Update.
2484 * solib.c (update_solib_list, reload_shared_libraries): Update.
2485 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2486 * solib-dsbt.c (enable_break): Update.
2487 * score-tdep.c (score7_fetch_inst): Update.
2488 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2489 Update.
2490 * remote.c (remote_target::start_remote)
2491 (remote_target::remote_check_symbols, remote_target::open_1)
2492 (remote_target::remote_detach_1, remote_target::verify_memory)
2493 (remote_target::xfer_partial, remote_target::read_description)
2494 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2495 * record-full.c (record_full_open_1): Update.
2496 * record-btrace.c (record_btrace_target_open): Update.
2497 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2498 (value_nsstring): Update.
2499 * linux-thread-db.c (add_thread_db_info)
2500 (thread_db_find_new_threads_silently, check_thread_db_callback)
2501 (try_thread_db_load_1, record_thread): Update.
2502 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2503 Update.
2504 * linux-fork.c (checkpoint_command): Update.
2505 * infrun.c (set_non_stop, set_observer_mode)
2506 (check_multi_target_resumption, for_each_just_stopped_thread)
2507 (maybe_remove_breakpoints, normal_stop)
2508 (class infcall_suspend_state): Update.
2509 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2510 (info_program_command, attach_command): Update.
2511 * infcall.c (call_function_by_hand_dummy): Update.
2512 * inf-loop.c (inferior_event_handler): Update.
2513 * gcore.c (gcore_command, derive_heap_segment): Update.
2514 * exec.c (exec_file_command): Update.
2515 * eval.c (evaluate_subexp): Update.
2516 * compile/compile.c (compile_to_object): Update.
2517 * cli/cli-dump.c (restore_command): Update.
2518 * breakpoint.c (update_watchpoint)
2519 (update_inserted_breakpoint_locations)
2520 (insert_breakpoint_locations, get_bpstat_thread): Update.
2521 * target.h (target_has_execution): Remove macro.
2522 (target_has_execution_current): Don't declare.
2523 (target_has_execution): Rename from target_has_execution_1. Add
2524 argument default.
2525
2526 2020-09-28 Tom Tromey <tom@tromey.com>
2527
2528 * mi/mi-main.c (exec_reverse_continue)
2529 (mi_cmd_list_target_features): Update.
2530 * infrun.c (set_exec_direction_func): Update.
2531 * target.c (default_execution_direction): Update.
2532 * reverse.c (exec_reverse_once): Update.
2533 * target.h (target_can_execute_reverse): Now a function.
2534
2535 2020-09-28 Tom Tromey <tom@tromey.com>
2536
2537 * tui/tui-regs.c (tui_get_register)
2538 (tui_data_window::show_registers): Update.
2539 * thread.c (scoped_restore_current_thread::restore)
2540 (scoped_restore_current_thread::scoped_restore_current_thread):
2541 Update.
2542 * regcache-dump.c (regcache_print): Update.
2543 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2544 Update.
2545 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2546 * mep-tdep.c (current_me_module, current_options): Update.
2547 * linux-thread-db.c (thread_db_load): Update.
2548 * infcmd.c (registers_info, info_vector_command)
2549 (info_float_command): Update.
2550 * ia64-tdep.c (ia64_frame_prev_register)
2551 (ia64_sigtramp_frame_prev_register): Update.
2552 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2553 * gcore.c (derive_stack_segment): Update.
2554 * frame.c (get_current_frame, has_stack_frames): Update.
2555 * findvar.c (language_defn::read_var_value): Update.
2556 * arm-tdep.c (arm_pc_is_thumb): Update.
2557 * target.c (target_has_registers): Rename from
2558 target_has_registers_1.
2559 * target.h (target_has_registers): Remove macro.
2560 (target_has_registers): Rename from target_has_registers_1.
2561
2562 2020-09-28 Tom Tromey <tom@tromey.com>
2563
2564 * windows-tdep.c (tlb_make_value): Update.
2565 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2566 * thread.c (scoped_restore_current_thread::restore)
2567 (scoped_restore_current_thread::scoped_restore_current_thread)
2568 (thread_command): Update.
2569 * stack.c (backtrace_command_1, frame_apply_level_command)
2570 (frame_apply_all_command, frame_apply_command): Update.
2571 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2572 Update.
2573 * gcore.c (derive_stack_segment): Update.
2574 * frame.c (get_current_frame, has_stack_frames): Update.
2575 * auxv.c (info_auxv_command): Update.
2576 * ada-tasks.c (ada_build_task_list): Update.
2577 * target.c (target_has_stack): Rename from target_has_stack_1.
2578 * target.h (target_has_stack): Remove macro.
2579 (target_has_stack): Rename from target_has_stack_1.
2580
2581 2020-09-28 Tom Tromey <tom@tromey.com>
2582
2583 * target.c (target_has_memory): Rename from target_has_memory_1.
2584 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2585 * thread.c (scoped_restore_current_thread::restore)
2586 (scoped_restore_current_thread::scoped_restore_current_thread):
2587 Update.
2588 * frame.c (get_current_frame, has_stack_frames): Update.
2589 * target.h (target_has_memory): Remove macro.
2590 (target_has_memory): Rename from target_has_memory_1.
2591
2592 2020-09-28 Tom Tromey <tom@tromey.com>
2593
2594 * target.c (target_has_all_memory_1): Remove.
2595 * target.h (target_has_all_memory): Remove define.
2596 (target_has_all_memory_1): Don't declare.
2597
2598 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2599
2600 * ser-base.c: Adjust comments formatting.
2601
2602 2020-09-27 Tom Tromey <tom@tromey.com>
2603
2604 PR tui/25342:
2605 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2606
2607 2020-09-27 Tom Tromey <tom@tromey.com>
2608
2609 PR tui/25342:
2610 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2611
2612 2020-09-27 Tom Tromey <tom@tromey.com>
2613
2614 * unittests/tui-selftests.c: Update.
2615 * tui/tui-winsource.h (struct tui_source_window_base)
2616 <extra_margin, show_line_number, refresh_pad>: New methods.
2617 <m_max_length, m_pad>: New members.
2618 (tui_copy_source_line): Update.
2619 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2620 first_col, line_width, ndigits parameters. Add length.
2621 (tui_source_window_base::show_source_line): Write to pad. Line
2622 number now 0-based.
2623 (tui_source_window_base::refresh_pad): New method.
2624 (tui_source_window_base::show_source_content): Write to pad. Call
2625 refresh_pad.
2626 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2627 not refill.
2628 (tui_source_window_base::update_exec_info): Call
2629 show_line_number.
2630 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2631 method.
2632 <m_digits>: New member.
2633 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2634 and m_max_length.
2635 (tui_source_window::show_line_number): New method.
2636 * tui/tui-io.h (tui_puts): Fix comment.
2637 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2638 m_max_length.
2639
2640 2020-09-27 Tom Tromey <tom@tromey.com>
2641
2642 * tui/tui-winsource.c
2643 (tui_source_window_base::set_is_exec_point_at): Don't call
2644 show_source_line.
2645
2646 2020-09-27 Tom Tromey <tom@tromey.com>
2647
2648 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2649 method.
2650 <erase>: Update.
2651 <cursor_x, cursor_y>: Remove.
2652 <m_inner_window>: New member.
2653 (tui_py_window::rerender): Create inner window.
2654 (tui_py_window::output): Write to inner window.
2655
2656 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2657
2658 PR python/26586
2659 * cli/cli-script.c (execute_control_commands): don't set
2660 instream to nullptr here as this breaks the from_tty argument
2661 to gdb.execute in Python.
2662 (execute_user_command): set instream to nullptr here instead.
2663
2664 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2665
2666 * infrun.h (infrun_debug_printf): Fix formatting.
2667 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2668
2669 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2670
2671 * compile/compile-object-load.h (struct munmap_list): Add
2672 explicitly-defined move constructor.
2673
2674 2020-09-24 Tom Tromey <tromey@adacore.com>
2675
2676 PR tui/26638:
2677 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2678 method.
2679 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2680 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2681 (tui_prev_win): Rewrite.
2682
2683 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2684
2685 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2686 in WOW64 processes as SIGINT.
2687 * nat/windows-nat.h: Make wow64_process a shared variable.
2688 * windows-nat.c: Remove static wow64_process variable.
2689
2690 2020-09-23 Tom Tromey <tom@tromey.com>
2691
2692 PR symtab/25470:
2693 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2694 offset and bit size.
2695 * printcmd.c (print_scalar_formatted): Handle zero-length
2696 integer.
2697 (print_scalar_formatted): Use bit_size_differs_p.
2698 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2699 constant.
2700 (union type_specific): <int_stuff>: New member.
2701 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2702 methods.
2703 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2704 TYPE_SPECIFIC_FIELD.
2705 (recursive_dump_type, copy_type_recursive): Update.
2706 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2707 DW_AT_data_bit_offset.
2708
2709 2020-09-23 Tom Tromey <tom@tromey.com>
2710
2711 * utils.h (class gdb_argv): Add move operators.
2712 <append>: New methods.
2713 * compile/compile.c (build_argc_argv): Remove.
2714 (compile_args_argc): Remove.
2715 (compile_args_argv): Change type.
2716 (set_compile_args): Simplify.
2717 (append_args): Remove.
2718 (filter_args): Remove argcp parameter.
2719 (get_args): Return gdb_argv. Simplify.
2720 (compile_to_object): Update.
2721
2722 2020-09-23 Tom Tromey <tom@tromey.com>
2723
2724 * compile/compile-object-run.c (do_module_cleanup)
2725 <~do_module_cleanup> :Remove.
2726 (do_module_cleanup): Update.
2727 * compile/compile-object-load.h (struct munmap_list): Add move
2728 assignment operator.
2729 <source_file>: Now a std::string.
2730 <munmap_list>: Rename. No longer a pointer.
2731 * compile/compile-object-load.c (struct setup_sections_data): Add
2732 constructor.
2733 <setup_one_section>: Declare.
2734 <munmap_list>: Move earlier.
2735 <m_bfd>: New member.
2736 <m_last_size, m_last_section_first, m_last_prot,
2737 m_last_max_alignment>: Rename, add initializers where needed.
2738 (setup_sections_data::setup_one_section): Rename from
2739 setup_sections. Update.
2740 (compile_object_load): Update. Don't use bfd_map_over_sections.
2741
2742 2020-09-23 Tom Tromey <tom@tromey.com>
2743
2744 * compile/compile-object-run.c (struct do_module_cleanup): Add
2745 parameters to constructor. Update destructor.
2746 <source_file, scope, scope_data, out_value_type, out_value_addr,
2747 munmap_list_head, objfile_name_string>: Remove.
2748 <module>: New member.
2749 (do_module_cleanup): Update.
2750 (compile_object_run): Update.
2751
2752 2020-09-23 Tom Tromey <tom@tromey.com>
2753
2754 * compile/compile.c (eval_compile_command): Update.
2755 * compile/compile-object-run.h (compile_object_run): Take a
2756 compile_module_up.
2757 * compile/compile-object-run.c (compile_object_run): Take a
2758 compile_module_up.
2759 * compile/compile-object-load.h (struct compile_module): Add
2760 constructor, destructor.
2761 (compile_module_up): New typedef.
2762 (compile_object_load): Return compile_object_up.
2763 * compile/compile-object-load.c (compile_object_load): Return
2764 compile_module_up.
2765
2766 2020-09-23 Tom Tromey <tom@tromey.com>
2767
2768 * compile/compile-object-run.c (struct do_module_cleanup): Add
2769 constructor, destructor.
2770 <objfile_name_string>: Don't use struct hack.
2771 (do_module_cleanup): Use delete.
2772 (compile_object_run): Use new.
2773
2774 2020-09-23 Tom Tromey <tom@tromey.com>
2775
2776 * compile/compile-cplus-types.c
2777 (compile_cplus_convert_struct_or_union): Use std::vector.
2778 (compile_cplus_convert_func): Likewise.
2779 * compile/compile-c-types.c (convert_func): Use std::vector.
2780
2781 2020-09-21 Tom Tromey <tromey@adacore.com>
2782
2783 * sparc-tdep.c (sparc32_skip_prologue): Use
2784 skip_prologue_using_sal.
2785
2786 2020-09-19 Tom Tromey <tom@tromey.com>
2787
2788 * symfile.c (add_section_size_callback): Remove.
2789 (load_one_section): Rename from load_section_callback. Change
2790 parameters.
2791 (generic_load): Use foreach.
2792
2793 2020-09-19 Tom Tromey <tom@tromey.com>
2794
2795 * exec.c (add_to_section_table): Remove.
2796 (build_section_table): Use foreach.
2797
2798 2020-09-19 Tom Tromey <tom@tromey.com>
2799
2800 * elfread.c (elf_locate_sections): Change parameters.
2801 (elf_symfile_read): Use foreach.
2802
2803 2020-09-19 Tom Tromey <tom@tromey.com>
2804
2805 * cli/cli-dump.c (struct callback_data): Remove.
2806 (restore_one_section): Rename from restore_section_callback.
2807 Change parameters.
2808 (restore_binary_file): Change parameters.
2809 (restore_command): Use foreach.
2810
2811 2020-09-19 Tom Tromey <tom@tromey.com>
2812
2813 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2814 (gcore_copy_callback): Likewise.
2815 (gcore_memory_sections): Use foreach.
2816
2817 2020-09-19 Tom Tromey <tom@tromey.com>
2818
2819 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2820 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2821 parameters.
2822 (generic_elf_osabi_sniffer): Use foreach.
2823 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2824 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2825
2826 2020-09-19 Tom Tromey <tom@tromey.com>
2827
2828 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2829 (dwarf2_get_dwz_file): Use foreach.
2830 (dwarf2_locate_dwo_sections): Change parameters.
2831 (open_and_init_dwo_file): Use foreach.
2832 (dwarf2_locate_common_dwp_sections): Change parameters.
2833 (open_and_init_dwp_file): Use foreach.
2834
2835 2020-09-19 Tom Tromey <tom@tromey.com>
2836
2837 * symfile.h: (find_lowest_section): Don't declare.
2838 * symfile.c (find_lowest_section): Now static. Change
2839 parameters.
2840 (struct place_section_arg): Remove.
2841 (place_section): Change parameters.
2842 (addr_info_make_relative): Use foreach.
2843 (symfile_dummy_outputs): Remove.
2844 (default_symfile_relocate): Use foreach.
2845
2846 2020-09-19 Tom Tromey <tom@tromey.com>
2847
2848 * objfiles.c (add_to_objfile_sections): Rename from
2849 add_to_objfile_sections_full.
2850 (add_to_objfile_sections): Remove.
2851 (build_objfile_section_table): Use foreach.
2852
2853 2020-09-19 Tom Tromey <tom@tromey.com>
2854
2855 * stap-probe.c (get_stap_base_address_1): Remove.
2856 (get_stap_base_address): Use foreach.
2857
2858 2020-09-19 Tom Tromey <tom@tromey.com>
2859
2860 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2861 parameters.
2862 (gdb_bfd_close_or_warn): Use foreach.
2863
2864 2020-09-19 Tom Tromey <tom@tromey.com>
2865
2866 * corelow.c (add_to_thread_list): Change parameters.
2867 (core_target_open): Use foreach.
2868
2869 2020-09-19 Tom Tromey <tom@tromey.com>
2870
2871 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2872 existing function.
2873
2874 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2875
2876 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2877 for arrays.
2878
2879 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2880
2881 * eval.c: Remove 'f-lang.h' include.
2882 (value_f90_subarray): Moved to f-lang.c.
2883 (eval_call): Renamed to...
2884 (evaluate_subexp_do_call): ...this, is no longer static, header
2885 comment moved into header file.
2886 (evaluate_funcall): Update call to eval_call.
2887 (skip_undetermined_arglist): Moved to f-lang.c.
2888 (fortran_value_subarray): Likewise.
2889 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2890 moved to evaluate_subexp_f.
2891 (calc_f77_array_dims): Moved to f-lang.c
2892 * expprint.c (print_subexp_funcall): New function.
2893 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2894 moved to print_subexp_f, OP_FUNCALL uses new function.
2895 (dump_subexp_body_funcall): New function.
2896 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2897 moved to dump_subexp_f, OP_FUNCALL uses new function.
2898 * expression.h (evaluate_subexp_do_call): Declare.
2899 * f-lang.c (value_f90_subarray): Moved from eval.c.
2900 (skip_undetermined_arglist): Likewise.
2901 (calc_f77_array_dims): Likewise.
2902 (fortran_value_subarray): Likewise.
2903 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2904 (operator_length_f): Likewise.
2905 (print_subexp_f): Likewise.
2906 (dump_subexp_body_f): Likewise.
2907 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2908 declaration of this operation to here.
2909 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2910 support moved to operator_length_f.
2911 * parser-defs.h (dump_subexp_body_funcall): Declare.
2912 (print_subexp_funcall): Declare.
2913 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2914 fortran-operator.def.
2915
2916 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2917
2918 * eval.c (fortran_value_subarray): New function, content is taken
2919 from...
2920 (evaluate_subexp_standard): ...here, in two places. Now arrays
2921 and strings both call the new function.
2922 (calc_f77_array_dims): Add header comment, handle strings.
2923
2924 2020-09-18 Victor Collod <vcollod@nvidia.com>
2925
2926 PR gdb/26635
2927 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2928 (i386_analyze_prologue): Call i386_skip_endbr.
2929
2930 2020-09-18 Tom Tromey <tromey@adacore.com>
2931
2932 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2933 (windows_nat_target::wait): Update.
2934 * target/wait.h (enum target_wait_flag): New. Use
2935 DEF_ENUM_FLAGS_TYPE.
2936 * target/target.h (target_wait): Change type of options.
2937 * target.h (target_options_to_string, default_target_wait):
2938 Update.
2939 (struct target_ops) <wait>: Change type of options.
2940 * target.c (target_wait, default_target_wait, do_option): Change
2941 type of "options".
2942 (target_options_to_string): Likewise.
2943 * target-delegates.c: Rebuild.
2944 * target-debug.h (target_debug_print_target_wait_flags): Rename
2945 from target_debug_print_options.
2946 * sol-thread.c (class sol_thread_target) <wait>: Update.
2947 (sol_thread_target::wait): Update.
2948 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2949 (rs6000_nat_target::wait): Update.
2950 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2951 Update.
2952 (remote_target::wait_ns, remote_target::wait_as): Change type of
2953 "options".
2954 (remote_target::wait): Update.
2955 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2956 (gdbsim_target::wait): Update.
2957 * record-full.c (class record_full_base_target) <wait>: Update.
2958 (record_full_wait_1): Change type of "options".
2959 (record_full_base_target::wait): Update.
2960 * record-btrace.c (class record_btrace_target) <wait>: Update.
2961 (record_btrace_target::wait): Update.
2962 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2963 Update.
2964 (ravenscar_thread_target::wait): Update.
2965 * procfs.c (class procfs_target) <wait>: Update.
2966 (procfs_target::wait): Update.
2967 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2968 * obsd-nat.c (obsd_nat_target::wait): Update.
2969 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2970 (nto_procfs_target::wait): Update.
2971 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2972 * nbsd-nat.c (nbsd_wait): Change type of "options".
2973 (nbsd_nat_target::wait): Update.
2974 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2975 (thread_db_target::wait): Update.
2976 * linux-nat.h (class linux_nat_target) <wait>: Update.
2977 * linux-nat.c (linux_nat_target::wait): Update.
2978 (linux_nat_wait_1): Update.
2979 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2980 "options".
2981 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2982 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2983 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2984 (go32_nat_target::wait): Update.
2985 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2986 * gnu-nat.c (gnu_nat_target::wait): Update.
2987 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2988 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2989 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2990 * darwin-nat.c (darwin_nat_target::wait): Update.
2991 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2992 (bsd_uthread_target::wait): Update.
2993 * aix-thread.c (class aix_thread_target) <wait>: Update.
2994 (aix_thread_target::wait): Update.
2995
2996 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2997
2998 * compile/compile-object-run.c (create_copied_type_recursive): New
2999 function.
3000 (compile_object_run): Use new function.
3001
3002 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3003
3004 * NEWS: Mention x86_64 Cygwin core file support.
3005
3006 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3007
3008 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3009 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3010
3011 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3012
3013 * windows-tdep.h: Add prototypes.
3014 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3015 (i386_windows_core_pid_to_str): Move and rename ...
3016 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3017 (windows_core_pid_to_str): ... and here.
3018 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3019
3020 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3021 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3022 (amd64_windows_init_abi_common): ... and register.
3023
3024 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3025
3026 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3027 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3028
3029 2020-09-18 Pedro Alves <pedro@palves.net>
3030
3031 PR gdb/26631
3032 * thread.c (thread_find_command): Switch inferior before calling
3033 target methods.
3034
3035 2020-09-17 Tom Tromey <tromey@adacore.com>
3036
3037 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3038 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3039 (tdesc_arch_data_up): New typedef.
3040 (tdesc_use_registers, tdesc_data_alloc): Update.
3041 (tdesc_data_cleanup): Don't declare.
3042 * target-descriptions.c (tdesc_data_alloc): Return a
3043 tdesc_arch_data_up.
3044 (tdesc_arch_data_deleter::operator()): Rename from
3045 tdesc_data_cleanup. Change argument type.
3046 (tdesc_use_registers): Change early_data to an rvalue reference.
3047 (tdesc_use_registers): Don't use delete.
3048 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3049 * s390-tdep.c (s390_gdbarch_init): Update.
3050 * rx-tdep.c (rx_gdbarch_init): Update.
3051 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3052 * riscv-tdep.c (riscv_gdbarch_init): Update.
3053 * or1k-tdep.c (or1k_gdbarch_init): Update.
3054 * nios2-tdep.c (nios2_gdbarch_init): Update.
3055 * nds32-tdep.c (nds32_gdbarch_init): Update.
3056 * mips-tdep.c (mips_gdbarch_init): Update.
3057 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3058 * m68k-tdep.c (m68k_gdbarch_init): Update.
3059 * i386-tdep.c (i386_gdbarch_init): Update.
3060 * arm-tdep.c (arm_gdbarch_init): Update.
3061 * arc-tdep.c (arc_tdesc_init): Update.
3062 (arc_gdbarch_init): Update.
3063 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3064
3065 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3066
3067 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3068 for WOW64 processes.
3069
3070 2020-09-17 Tom Tromey <tom@tromey.com>
3071
3072 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3073
3074 2020-09-17 Tom Tromey <tom@tromey.com>
3075
3076 * value.c (preserve_values): Update.
3077 * python/py-type.c (save_objfile_types): Update.
3078 * guile/scm-type.c (save_objfile_types): Update.
3079 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3080 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3081 * compile/compile-object-run.c (compile_object_run): Update.
3082
3083 2020-09-17 Tom Tromey <tom@tromey.com>
3084
3085 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3086 Remove.
3087 <m_table>: Now htab_up.
3088 * typeprint.c (typedef_hash_table::recursively_update)
3089 (typedef_hash_table::add_template_parameters)
3090 (typedef_hash_table::typedef_hash_table): Update.
3091 (typedef_hash_table::~typedef_hash_table): Remove.
3092 (typedef_hash_table::typedef_hash_table)
3093 (typedef_hash_table::find_global_typedef)
3094 (typedef_hash_table::find_typedef): Update.
3095
3096 2020-09-17 Tom Tromey <tom@tromey.com>
3097
3098 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3099
3100 2020-09-17 Tom Tromey <tom@tromey.com>
3101
3102 * linespec.c (class decode_compound_collector)
3103 <~decode_compound_collector>: Remove.
3104 <m_unique_syms>: Now htab_up.
3105 (decode_compound_collector::operator ()): Update.
3106 (class symtab_collector) <~symtab_collector>: Remove.
3107 <m_symtab_table>: Now htab_up.
3108 (symtab_collector::operator ()): Update.
3109
3110 2020-09-17 Tom Tromey <tom@tromey.com>
3111
3112 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3113 (filename_seen_cache::clear): Update.
3114 (~filename_seen_cache): Remove.
3115 (filename_seen_cache::seen): Update.
3116 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3117 htab_up.
3118 <~filename_seen_cache>: Remove.
3119 <traverse>: Update.
3120
3121 2020-09-17 Tom Tromey <tom@tromey.com>
3122
3123 * completer.c (completion_tracker::discard_completions)
3124 (completion_tracker::~completion_tracker)
3125 (completion_tracker::maybe_add_completion)
3126 (completion_tracker::remove_completion)
3127 (completion_tracker::recompute_lowest_common_denominator)
3128 (completion_tracker::build_completion_result): Update.
3129 * completer.h (class completion_tracker) <have_completions>:
3130 Update.
3131 <m_entries_hash>: Now htab_up.
3132
3133 2020-09-17 Tom Tromey <tom@tromey.com>
3134
3135 * breakpoint.c (ambiguous_names_p): Use htab_up.
3136
3137 2020-09-17 Tom Tromey <tom@tromey.com>
3138
3139 * auto-load.c (struct auto_load_pspace_info)
3140 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3141 <loaded_script_files, loaded_script_texts>: Change type to
3142 htab_up.
3143 (~auto_load_pspace_info) Remove.
3144 (init_loaded_scripts_info, maybe_add_script_file)
3145 (maybe_add_script_text, auto_load_info_scripts): Update.
3146
3147 2020-09-17 Tom Tromey <tromey@adacore.com>
3148
3149 * c-exp.y (name_obstack): Now static.
3150
3151 2020-09-17 Chungyi Chi <demonic@csie.io>
3152
3153 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3154
3155 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3156
3157 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3158 (add_solib_catchpoint): Likewise.
3159 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3160 to bool.
3161 (add_solib_catchpoint): Change int parameter/variable to bool.
3162 (catch_load_or_unload): Likewise.
3163 (init_catchpoint): Likewise.
3164 (create_fork_vfork_event_catchpoint): Likewise.
3165 (catch_fork_command_1): Likewise.
3166 (catch_exec_command_1): Likewise.
3167
3168 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3169
3170 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3171 Change instance_flags to m_instance_flags.
3172
3173 2020-09-16 Tom Tromey <tromey@adacore.com>
3174
3175 PR gdb/26598:
3176 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3177
3178 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3179
3180 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3181 PL_FLAG_EXEC.
3182 (fbsd_nat_target::insert_exec_catchpoint)
3183 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3184 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3185 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3186
3187 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3188
3189 * configure.ac: Remove check for kinfo_getvmmap().
3190 * configure, config.in: Regenerate.
3191 * fbsd-nat.c (fbsd_read_mapping): Remove
3192 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3193 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3194 kinfo_get_vmmap() are always present.
3195
3196 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3197
3198 * fbsd-nat.c: Always include support for
3199 TARGET_OBJECT_SIGNAL_INFO.
3200
3201 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3202
3203 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3204 sysctl and remove procfs fallback.
3205
3206 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3207
3208 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3209 * fbsd-nat.h: Likewise.
3210
3211 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3212
3213 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3214 argument.
3215
3216 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 * ada-lang.c (ada_language_data): Delete.
3219 (ada_language): Remove references to ada_language_data.
3220 * c-lang.c (c_language_data): Delete.
3221 (c_language): Remove references to c_language_data.
3222 (cplus_language_data): Delete.
3223 (cplus_language): Remove references to cplus_language_data.
3224 (asm_language_data): Delete.
3225 (asm_language): Remove references to asm_language_data.
3226 (minimal_language_data): Delete.
3227 (minimal_language): Remove references to minimal_language_data.
3228 * d-lang.c (d_language_data): Delete.
3229 (d_language): Remove references to d_language_data.
3230 * f-lang.c (f_language_data): Delete.
3231 (f_language): Remove references to f_language_data.
3232 * go-lang.c (go_language_data): Delete.
3233 (go_language): Remove references to go_language_data.
3234 * language.c (unknown_language_data): Delete.
3235 (unknown_language): Remove references to unknown_language_data.
3236 (auto_language_data): Delete.
3237 (auto_language): Remove references to auto_language_data.
3238 * language.h (language_data): Delete struct.
3239 (language_defn): No longer inherit from language_data.
3240 * m2-lang.c (m2_language_data): Delete.
3241 (m2_language): Remove references to m2_language_data.
3242 * objc-lang.c (objc_language_data): Delete.
3243 (objc_language): Remove references to objc_language_data.
3244 * opencl-lang.c (opencl_language_data): Delete.
3245 (opencl_language): Remove references to opencl_language_data.
3246 * p-lang.c (pascal_language_data): Delete.
3247 (pascal_language): Remove references to pascal_language_data.
3248 * rust-lang.c (rust_language_data): Delete.
3249 (rust_language): Remove references to rust_language_data.
3250
3251 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3252
3253 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3254 initializer.
3255 (ada_language::opcode_print_table): New member function.
3256 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3257 (c_language::opcode_print_table): New member function.
3258 (cplus_language_data): Remove la_op_print_tab initializer.
3259 (cplus_language::opcode_print_table): New member function.
3260 (asm_language_data): Remove la_op_print_tab initializer.
3261 (asm_language::opcode_print_table): New member function.
3262 (minimal_language_data): Remove la_op_print_tab initializer.
3263 (minimal_language::opcode_print_table): New member function.
3264 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3265 (d_language::opcode_print_table): New member function.
3266 * expprint.c (print_subexp_standard): Update call to
3267 opcode_print_table.
3268 (op_string): Likewise.
3269 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3270 (f_language::opcode_print_table): New member function.
3271 * go-lang.c (go_language_data): Remove la_op_print_tab
3272 initializer.
3273 (go_language::opcode_print_table): New member function.
3274 * language.c (unknown_language_data): Remove la_op_print_tab
3275 initializer.
3276 (unknown_language::opcode_print_table): New member function.
3277 (auto_language_data): Remove la_op_print_tab initializer.
3278 (auto_language::opcode_print_table): New member function.
3279 * language.h (language_data): Remove la_op_print_tab field.
3280 (language_defn::opcode_print_table): Declare new member function.
3281 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3282 initializer.
3283 (m2_language::opcode_print_table): New member function.
3284 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3285 initializer.
3286 (objc_language::opcode_print_table): New member function.
3287 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3288 initializer.
3289 (opencl_language::opcode_print_table): New member function.
3290 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3291 initializer.
3292 (pascal_language::opcode_print_table): New member function.
3293 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3294 initializer.
3295 (rust_language::opcode_print_table): New member function.
3296
3297 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3298
3299 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3300 (ada_language::expression_ops): New member function.
3301 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3302 (c_language::expression_ops): New member function.
3303 (cplus_language_data): Remove la_exp_desc initializer.
3304 (cplus_language::expression_ops): New member function.
3305 (asm_language_data): Remove la_exp_desc initializer.
3306 (asm_language::expression_ops): New member function.
3307 (minimal_language_data): Remove la_exp_desc initializer.
3308 (minimal_language::expression_ops): New member function.
3309 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3310 (d_language::expression_ops): New member function.
3311 * eval.c (evaluate_subexp): Update call to expression_ops.
3312 * expprint.c (print_subexp): Likewise.
3313 (op_name): Likewise.
3314 (dump_subexp_body): Likewise.
3315 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3316 (f_language::expression_ops): New member function.
3317 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3318 (go_language::expression_ops): New member function.
3319 * language.c (language_defn::expression_ops): New function.
3320 (unknown_language_data): Remove la_exp_desc initializer.
3321 (auto_language_data): Likewise.
3322 * language.h (language_data): Remove la_exp_desc field.
3323 (language_defn::expression_ops): Declare new member function.
3324 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3325 (m2_language::expression_ops): New member function.
3326 * objc-lang.c (objc_language_data): Remove la_exp_desc
3327 initializer.
3328 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3329 initializer.
3330 (opencl_language::expression_ops): New member function.
3331 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3332 * parse.c (operator_length): Update call to expression_ops.
3333 (exp_iterate): Likewise.
3334 * rust-lang.c (rust_language_data): Remove la_exp_desc
3335 initializer.
3336 (ruse_language::expression_ops): New member function.
3337
3338 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3339
3340 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3341 initializer.
3342 (ada_language::varobj_ops): New member function.
3343 * c-lang.c (c_language_data): Remove la_varobj_ops
3344 initializer.
3345 (cplus_language_data): Likewise.
3346 (cplus_language::varobj_ops): New member function.
3347 (asm_language_data): Remove la_varobj_ops initializer.
3348 (minimal_language_data): Likewise.
3349 * d-lang.c (d_language_data): Likewise.
3350 * f-lang.c (f_language_data): Likewise.
3351 * go-lang.c (go_language_data): Likewise.
3352 * language.c (language_defn::varobj_ops): New function.
3353 (unknown_language_data): Remove la_varobj_ops
3354 initializer.
3355 (auto_language_data): Likewise.
3356 * language.h (language_data): Remove la_varobj_ops field.
3357 (language_defn::varobj_ops): Declare new member function.
3358 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3359 * objc-lang.c (objc_language_data): Likewise.
3360 * opencl-lang.c (opencl_language_data): Likewise.
3361 * p-lang.c (pascal_language_data): Likewise.
3362 * rust-lang.c (rust_language_data): Likewise.
3363 * varobj.c (varobj_create): Update call to varobj_ops.
3364 * varobj.h (default_varobj_ops): Delete define.
3365
3366 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3367
3368 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3369 initializer.
3370 * c-lang.c (c_language_data): Likewise.
3371 (c_language::macro_expansion): New member function.
3372 (cplus_language_data): Likewise.
3373 (cplus_language::macro_expansion): New member function.
3374 (asm_language_data): Likewise.
3375 (asm_language::macro_expansion): New member function.
3376 (minimal_language_data): Likewise.
3377 (minimal_language::macro_expansion): New member function.
3378 * d-lang.c (d_language_data): Remove la_macro_expansion
3379 initializer.
3380 * f-lang.c (f_language_data): Likewise.
3381 * go-lang.c (go_language_data): Likewise.
3382 * language.c (unknown_language_data): Likewise.
3383 (auto_language_data): Likewise.
3384 * language.h (language_data): Remove la_macro_expansion field.
3385 (language_defn::macro_expansion): New member function.
3386 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3387 initializer.
3388 * objc-lang.c (objc_language_data): Likewise.
3389 (objc_language::macro_expansion): New member function.
3390 * opencl-lang.c (opencl_language_data): Likewise.
3391 (opencl_language::macro_expansion): New member function.
3392 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3393 initializer.
3394 * rust-lang.c (rust_language_data): Likewise.
3395 * symtab.c (default_collect_symbol_completion_matches_break_on):
3396 Update call to macro_expansion.
3397
3398 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3399
3400 * ada-lang.c (ada_language_data): Remove la_array_ordering
3401 initializer.
3402 * c-lang.c (c_language_data): Likewise.
3403 (cplus_language_data): Likewise.
3404 (asm_language_data): Likewise.
3405 (minimal_language_data): Likewise.
3406 * d-lang.c (d_language_data): Likewise.
3407 * dwarf2/read.c (read_array_order): Update for call to
3408 array_ordering.
3409 * f-lang.c (f_language_data): Remove la_array_ordering
3410 initializer.
3411 (f_language::array_ordering): New member function.
3412 * go-lang.c (go_language_data): Remove la_array_ordering
3413 initializer.
3414 * language.c (unknown_language_data): Likewise.
3415 (auto_language_data): Likewise.
3416 * language.h (language_data): Delete la_array_ordering field.
3417 (language_defn::array_ordering): New member function.
3418 * m2-lang.c (m2_language_data): Remove la_array_ordering
3419 initializer.
3420 * objc-lang.c (objc_language_data): Likewise.
3421 * opencl-lang.c (opencl_language_data): Likewise.
3422 * p-lang.c (pascal_language_data): Likewise.
3423 * rust-lang.c (rust_language_data): Likewise.
3424
3425 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3426
3427 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3428 initializer.
3429 * c-lang.c (c_language_data): Likewise.
3430 (cplus_language_data): Likewise.
3431 (asm_language_data): Likewise.
3432 (minimal_language_data): Likewise.
3433 * d-lang.c (d_language_data): Likewise.
3434 * f-lang.c (f_language_data): Likewise.
3435 (f_language::case_sensitivity): New member function.
3436 * go-lang.c (go_language_data): Remove la_case_sensitivity
3437 initializer.
3438 * language.c (enum case_mode): Moved here from language.h.
3439 (case_mode): Make static.
3440 (show_case_command): Update for case_sensitivity being a method.
3441 (set_case_command): Likewise.
3442 (set_range_case): Likewise.
3443 (unknown_language_data): Remove la_case_sensitivity initializer.
3444 (auto_language_data): Likewise.
3445 * language.h (case_mode): Delete, move enum declaration to
3446 language.c.
3447 (language_data): Delete la_case_sensitivity field.
3448 (language_defn::case_sensitivity): New member function.
3449 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3450 initializer.
3451 * objc-lang.c (objc_language_data): Likewise.
3452 * opencl-lang.c (opencl_language_data): Likewise.
3453 * p-lang.c (pascal_language_data): Likewise.
3454 * rust-lang.c (rust_language_data): Likewise.
3455
3456 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3457
3458 * ada-lang.c (ada_language_data): Remove la_range_check
3459 initializer.
3460 * c-lang.c (c_language_data): Likewise.
3461 (cplus_language_data): Likewise.
3462 (asm_language_data): Likewise.
3463 (minimal_language_data): Likewise.
3464 * d-lang.c (d_language_data): Likewise.
3465 * f-lang.c (f_language_data): Likewise.
3466 (f_language::range_checking_on_by_default): New member function.
3467 * go-lang.c (go_language_data): Remove la_range_check initializer.
3468 * language.c (enum range_mode): Moved here from language.h.
3469 (range_mode): Made static.
3470 (show_range_command): Update to use
3471 range_checking_on_by_default.
3472 (set_range_command): Likewise.
3473 (set_range_case): Likewise.
3474 (unknown_language_data): Remove la_range_check initializer.
3475 (auto_language_data): Likewise.
3476 * language.h (range_mode): Delete. Enum definition moved to
3477 language.c.
3478 (language_data): Remove la_range_check field.
3479 (language_defn::range_checking_on_by_default): New member
3480 function.
3481 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3482 (m2_language::range_checking_on_by_default): New member function.
3483 * objc-lang.c (objc_language_data): Remove la_range_check
3484 initializer.
3485 * opencl-lang.c (opencl_language_data): Likewise.
3486 * p-lang.c (pascal_language_data): Likewise.
3487 (pascal_language::range_checking_on_by_default): New member
3488 function.
3489 * rust-lang.c (rust_language_data): Remove la_range_check
3490 initializer.
3491 (rust_language::range_checking_on_by_default): New member
3492 function.
3493
3494 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3495
3496 * dwarf2/read.c (dwarf2_physname): Remove special case for
3497 language_go.
3498 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3499 member function.
3500
3501 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * ada-lang.c (ada_language_data): Remove
3504 la_store_sym_names_in_linkage_form_p initializer.
3505 (ada_language::store_sym_names_in_linkage_form_p): New member
3506 function.
3507 * c-lang.c (c_language_data): Remove
3508 la_store_sym_names_in_linkage_form_p initializer.
3509 (c_language::store_sym_names_in_linkage_form_p): New member
3510 function.
3511 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3512 initializer.
3513 (asm_language_data): Likewise.
3514 (asm_language::store_sym_names_in_linkage_form_p): New member
3515 function.
3516 (minimal_language_data): Remove
3517 la_store_sym_names_in_linkage_form_p initializer.
3518 (minimal_language::store_sym_names_in_linkage_form_p): New member
3519 function.
3520 * d-lang.c (d_language_data): Remove
3521 la_store_sym_names_in_linkage_form_p initializer.
3522 * dwarf2/read.c (dwarf2_physname): Update call to
3523 store_sym_names_in_linkage_form_p.
3524 * f-lang.c (f_language_data): Remove
3525 la_store_sym_names_in_linkage_form_p initializer.
3526 * go-lang.c (go_language_data): Remove
3527 la_store_sym_names_in_linkage_form_p initializer.
3528 * language.c (unknown_language_data): Remove
3529 la_store_sym_names_in_linkage_form_p initializer.
3530 (unknown_language::store_sym_names_in_linkage_form_p): New member
3531 function.
3532 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3533 initializer.
3534 (auto_language::store_sym_names_in_linkage_form_p): New member
3535 function.
3536 * language.h (language_data): Remove
3537 la_store_sym_names_in_linkage_form_p member variable.
3538 (language_defn::store_sym_names_in_linkage_form_p): New member
3539 function.
3540 * m2-lang.c (m2_language_data): Remove
3541 la_store_sym_names_in_linkage_form_p initializer.
3542 * objc-lang.c (objc_language_data): Likewise.
3543 * opencl-lang.c (opencl_language_data): Likewise.
3544 * p-lang.c (pascal_language_data): Likewise.
3545 * rust-lang.c (rust_language_data): Likewise.
3546
3547 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3548
3549 * ada-lang.c (ada_language_data): Remove string_lower_bound
3550 initializer.
3551 * c-lang.c (c_language_data): Likewise.
3552 (cplus_language_data): Likewise.
3553 (asm_language_data): Likewise.
3554 (minimal_language_data): Likewise.
3555 * d-lang.c (d_language_data): Likewise.
3556 * f-lang.c (f_language_data): Likewise.
3557 * go-lang.c (go_language_data): Likewise.
3558 * language.c (unknown_language_data): Likewise.
3559 (auto_language_data): Likewise.
3560 * language.h (language_data): Remove string_lower_bound field.
3561 (language_defn::string_lower_bound): New member function.
3562 * m2-lang.c (m2_language_data): Remove string_lower_bound
3563 initializer.
3564 (m2_language::string_lower_bound): New member function.
3565 * objc-lang.c (objc_language_data): Remove string_lower_bound
3566 initializer.
3567 * opencl-lang.c (opencl_language_data): Likewise.
3568 * p-lang.c (pascal_language_data): Likewise.
3569 * rust-lang.c (rust_language_data): Likewise.
3570 * valops.c (value_cstring): Update call to string_lower_bound.
3571 (value_string): Likewise.
3572 * value.c (allocate_repeated_value): Likewise.
3573
3574 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3575
3576 * valops.c (value_repeat): Fix incorrect argument name in comment.
3577
3578 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3579
3580 * ada-lang.c (ada_language_data): Remove c_style_arrays
3581 initializer.
3582 (ada_language::c_style_arrays_p): New member fuction.
3583 * c-lang.c (c_language_data): Remove c_style_arrays
3584 initializer.
3585 (cplus_language_data): Likewise.
3586 (asm_language_data): Likewise.
3587 (minimal_language_data): Likewise.
3588 * d-lang.c (d_language_data): Likewise.
3589 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3590 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3591 (f_language::c_style_arrays_p): New member function.
3592 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3593 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3594 * language.c (unknown_language_data): Remove c_style_arrays
3595 initializer.
3596 (auto_language_data): Likewise.
3597 * language.h (language_data): Remove c_style_arrays field.
3598 (language_defn::c_style_arrays_p): New member function.
3599 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3600 (m2_language::c_style_arrays_p): New member function.
3601 * objc-lang.c (objc_language_data): Remove c_style_arrays
3602 initializer.
3603 * opencl-lang.c (opencl_language_data): Likewise.
3604 * p-lang.c (pascal_language_data): Likewise.
3605 * rust-lang.c (rust_language_data): Likewise.
3606 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3607 and update local variable to a bool.
3608 * valops.c (value_cast): Update call to c_style_arrays_p.
3609 (value_array): Likewise.
3610 * value.c (coerce_array): Likewise.
3611
3612 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3613
3614 * ada-lang.c (ada_language_data): Remove la_language initializer.
3615 * c-lang.c (c_language_data): Likewise.
3616 (cplus_language_data): Likewise.
3617 (asm_language_data): Likewise.
3618 (minimal_language_data): Likewise.
3619 * d-lang.c (d_language_data): Likewise.
3620 * f-lang.c (f_language_data): Likewise.
3621 * go-lang.c (go_language_data): Likewise.
3622 * language.c (unknown_language_data): Likewise.
3623 (auto_language_data): Likewise.
3624 * language.h (language_data): Remove la_language field.
3625 (language_defn::language_defn): Initialise la_language field.
3626 (language_defn::la_language): New member variable.
3627 * m2-lang.c (m2_language_data): Remove la_language field.
3628 * objc-lang.c (objc_language_data): Likewise.
3629 * opencl-lang.c (opencl_language_data): Likewise.
3630 * p-lang.c (pascal_language_data): Likewise.
3631 * rust-lang.c (rust_language_data): Likewise.
3632
3633 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3634
3635 * ada-lang.c (ada_extensions): Delete, moved into
3636 ada_language::filename_extensions.
3637 (ada_language_data): Remove la_filename_extensions initializer.
3638 (ada_language::filename_extensions): New member function.
3639 * c-lang.c (c_extensions): Delete, moved into
3640 c_language::filename_extensions.
3641 (c_language_data): Remove la_filename_extensions initializer.
3642 (c_language::filename_extensions): New member function.
3643 (cplus_extensions): Delete, moved into
3644 cplus_language::filename_extensions.
3645 (cplus_language_data): Remove la_filename_extensions initializer.
3646 (cplus_language::filename_extensions): New member function.
3647 (asm_extensions): Delete, moved into
3648 asm_language::filename_extensions.
3649 (asm_language_data): Remove la_filename_extensions initializer.
3650 (asm_language::filename_extensions): New member function.
3651 (minimal_language_data): Remove la_filename_extensions
3652 initializer.
3653 * d-lang.c (d_extensions): Delete, moved into
3654 d_language::filename_extensions.
3655 (d_language_data): Remove la_filename_extensions initializer.
3656 (d_language::filename_extensions): New member function.
3657 * f-lang.c (f_extensions): Delete, moved into
3658 f_language::filename_extensions.
3659 (f_language_data): Remove la_filename_extensions initializer.
3660 (f_language::filename_extensions): New member function.
3661 * go-lang.c (go_language_data): Remove la_filename_extensions
3662 initializer.
3663 * language.c (add_set_language_command): Update now that
3664 filename_extensions returns a vector.
3665 (unknown_language_data): Remove la_filename_extensions
3666 initializer.
3667 (auto_language_data): Likewise.
3668 * language.h (language_data): Remove la_filename_extensions field.
3669 (language_defn::filename_extensions): New member function.
3670 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3671 initializer.
3672 * objc-lang.c (objc_extensions): Delete, moved into
3673 objc_language::filename_extensions.
3674 (objc_language_data): Remove la_filename_extensions initializer.
3675 (objc_language::filename_extensions): New member function.
3676 * opencl-lang.c (opencl_language_data): Remove
3677 la_filename_extensions initializer.
3678 * p-lang.c (pascal_extensions): Delete, moved into
3679 pascal_language::filename_extensions.
3680 (pascal_language_data): Remove la_filename_extensions initializer.
3681 (pascal_language::filename_extensions): New member function.
3682 * rust-lang.c (rust_extensions): Delete, moved into
3683 rust_language::filename_extensions.
3684 (rust_language_data): Remove la_filename_extensions initializer.
3685 (rust_language::filename_extensions): New member function.
3686 * symfile.c (add_filename_language): Add new assert.
3687
3688 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3689
3690 * ada-lang.c (ada_language_data): Remove la_name and
3691 la_natural_name initializers.
3692 (ada_language::name): New member function.
3693 (ada_language::natural_name): New member function.
3694 * c-lang.c (c_language_data): Remove la_name and
3695 la_natural_name initializers.
3696 (c_language::name): New member function.
3697 (c_language::natural_name): New member function.
3698 (cplus_language_data): Remove la_name and
3699 la_natural_name initializers.
3700 (cplus_language::name): New member function.
3701 (cplus_language::natural_name): New member function.
3702 (asm_language_data): Remove la_name and
3703 la_natural_name initializers.
3704 (asm_language::name): New member function.
3705 (asm_language::natural_name): New member function.
3706 (minimal_language_data): Remove la_name and
3707 la_natural_name initializers.
3708 (minimal_language::name): New member function.
3709 (minimal_language::natural_name): New member function.
3710 * compile/compile.c (compile_to_object): Update call to
3711 lanugage_defn::name.
3712 * d-lang.c (d_language_data): Remove la_name and
3713 la_natural_name initializers.
3714 (d_language::name): New member function.
3715 (d_language::natural_name): New member function.
3716 * expprint.c (print_subexp_standard): Update call to
3717 language_defn::name.
3718 (dump_raw_expression): Likewise
3719 (dump_prefix_expression): Likewise.
3720 * f-lang.c (f_language_data): Remove la_name and
3721 la_natural_name initializers.
3722 (f_language::name): New member function.
3723 (f_language::natural_name): New member function.
3724 * go-lang.c (go_language_data): Remove la_name and
3725 la_natural_name initializers.
3726 (go_language::name): New member function.
3727 (go_language::natural_name): New member function.
3728 * language.c (show_language_command): Update call to
3729 language_defn::name.
3730 (set_language_command): Likewise.
3731 (language_enum): Likewise.
3732 (language_str): Likewise.
3733 (add_set_language_command): Likewise, use
3734 language_defn::natural_name in the doc string.
3735 (unknown_language_data): Remove la_name and
3736 la_natural_name initializers.
3737 (unknown_language::name): New member function.
3738 (unknown_language::natural_name): New member function.
3739 (auto_language_data): Remove la_name and
3740 la_natural_name initializers.
3741 (auto_language::name): New member function.
3742 (auto_language::natural_name): New member function.
3743 (language_lookup_primitive_type_as_symbol): Update call to
3744 language_defn::name.
3745 * language.h (language_data): Remove la_name and la_natural_name
3746 member variables.
3747 (language_defn::name): New member function.
3748 (language_defn::natural_name): New member function.
3749 * m2-lang.c (m2_language_data): Remove la_name and
3750 la_natural_name initializers.
3751 (m2_language::name): New member function.
3752 (m2_language::natural_name): New member function.
3753 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3754 language_defn::natural_name.
3755 * objc-lang.c (objc_language_data): Remove la_name and
3756 la_natural_name initializers.
3757 (objc_language::name): New member function.
3758 (objc_language::natural_name): New member function.
3759 * opencl-lang.c (opencl_language_data): Remove la_name and
3760 la_natural_name initializers.
3761 (opencl_language::name): New member function.
3762 (opencl_language::natural_name): New member function.
3763 * p-lang.c (pascal_language_data): Remove la_name and
3764 la_natural_name initializers.
3765 (pascal_language::name): New member function.
3766 (pascal_language::natural_name): New member function.
3767 * rust-lang.c (rust_language_data): Remove la_name and
3768 la_natural_name initializers.
3769 (rust_language::name): New member function.
3770 (rust_language::natural_name): New member function.
3771 * symtab.c (lookup_language_this): Update call to
3772 language_defn::name.
3773
3774 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3775
3776 * ada-lang.c (ada_language_data): Remove la_name_of_this
3777 initializer.
3778 * ax-gdb.c (gen_expr): Update call to name_of_this.
3779 * c-exp.y (classify_name): Likewise.
3780 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3781 (cplus_language_data): Likewise.
3782 (cplus_language::name_of_this): New member function.
3783 (asm_language_data): Remove la_name_of_this initializer.
3784 (minimal_language_data): Likewise.
3785 * d-lang.c (d_language_data): Likewise.
3786 (d_language::name_of_this): New member function.
3787 * expprint.c (print_subexp_standard): Update call to name_of_this.
3788 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3789 * go-lang.c (go_language_data): Likewise.
3790 * language.c (unknown_language_data): Likewise.
3791 (unknown_language::name_of_this): New member function.
3792 (auto_language_data): Remove la_name_of_this initializer.
3793 (auto_language::name_of_this): New member function.
3794 * language.h (language_data): Delete la_name_of_this member
3795 variable.
3796 (language_defn::name_of_this): New member function.
3797 * m2-lang.c (m2_language_data): Remove la_name_of_this
3798 initializer.
3799 * objc-lang.c (objc_language_data): Likewise.
3800 (objc_language::name_of_this): New member function.
3801 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3802 initializer.
3803 * p-lang.c (pascal_language_data): Likewise.
3804 (pascal_language::name_of_this): New member function.
3805 * rust-lang.c (rust_language_data): Remove la_name_of_this
3806 initializer.
3807 * symtab.c (lookup_language_this): Update call to name_of_this.
3808 (lookup_symbol_aux): Likewise.
3809 * valops.c (value_of_this): Likewise.
3810
3811 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3812
3813 * ada-lang.c (ada_language_data): Remove
3814 la_struct_too_deep_ellipsis initializer.
3815 (ada_language::struct_too_deep_ellipsis): New member function.
3816 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3817 initializer.
3818 (cplus_language_data): Likewise.
3819 (asm_language_data): Likewise.
3820 (minimal_language_data): Likewise.
3821 * cp-valprint.c (cp_print_value): Update call to
3822 struct_too_deep_ellipsis.
3823 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3824 initializer.
3825 * f-lang.c (f_language_data): Likewise.
3826 (f_language::struct_too_deep_ellipsis): New member function.
3827 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3828 initializer.
3829 * language.c (unknown_language_data): Likewise.
3830 (auto_language_data): Likewise.
3831 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3832 member variable.
3833 (language_defn::struct_too_deep_ellipsis): New member function.
3834 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3835 initializer.Q
3836 * objc-lang.c (objc_language_data): Likewise.
3837 * opencl-lang.c (opencl_language_data): Likewise.
3838 * p-lang.c (pascal_language_data): Likewise.
3839 * rust-lang.c (rust_language_data): Likewise.
3840 * valprint.c (val_print_check_max_depth): Update call to
3841 struct_too_deep_ellipsis.
3842
3843 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3844
3845 * MAINTAINERS (Write After Approval): Add myself.
3846
3847 2020-09-15 Tom Tromey <tom@tromey.com>
3848
3849 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3850 Remove.
3851
3852 2020-09-15 Tom Tromey <tom@tromey.com>
3853
3854 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3855 and TYPE_CODE_METHODPTR cases.
3856 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3857 (c_value_print_inner): Update.
3858 * valprint.c (generic_value_print_memberptr): New function, from
3859 c_value_print_memberptr.
3860 (generic_value_print): Use it. Call cplus_print_method_ptr.
3861
3862 2020-09-15 Tom Tromey <tromey@adacore.com>
3863
3864 * python/python-internal.h (PyInt_FromLong): Remove define.
3865 * python/py-value.c (convert_value_from_python): Use
3866 gdb_py_object_from_longest.
3867 * python/py-type.c (typy_get_code): Use
3868 gdb_py_object_from_longest.
3869 * python/py-symtab.c (salpy_get_line): Use
3870 gdb_py_object_from_longest.
3871 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3872 gdb_py_object_from_longest.
3873 * python/py-record.c (recpy_gap_reason_code): Use
3874 gdb_py_object_from_longest.
3875 * python/py-record-btrace.c (recpy_bt_insn_size)
3876 (recpy_bt_func_level, btpy_list_count): Use
3877 gdb_py_object_from_longest.
3878 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3879 gdb_py_object_from_longest. Fix error handling.
3880 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3881 gdb_py_object_from_longest.
3882 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3883 gdb_py_object_from_longest.
3884 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3885 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3886 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3887
3888 2020-09-15 Tom Tromey <tromey@adacore.com>
3889
3890 * python/python.c (gdbpy_parameter_value): Use
3891 gdb_py_object_from_ulongest.
3892
3893 2020-09-15 Tom Tromey <tromey@adacore.com>
3894
3895 * python/py-infevents.c (create_register_changed_event_object):
3896 Use gdb_py_object_from_longest.
3897 * python/py-exitedevent.c (create_exited_event_object): Use
3898 gdb_py_object_from_longest.
3899
3900 2020-09-15 Tom Tromey <tromey@adacore.com>
3901
3902 * python/python.c (gdbpy_parameter_value): Use
3903 gdb_py_object_from_longest.
3904 * python/py-type.c (convert_field, typy_range): Use
3905 gdb_py_object_from_longest.
3906 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3907 gdb_py_object_from_longest.
3908 * python/py-lazy-string.c (stpy_get_length): Use
3909 gdb_py_object_from_longest.
3910 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3911 gdb_py_object_from_longest.
3912 * python/py-infevents.c (create_memory_changed_event_object): Use
3913 gdb_py_object_from_longest.
3914 * python/py-inferior.c (infpy_get_num): Use
3915 gdb_py_object_from_longest.
3916 (infpy_get_pid): Likewise.
3917
3918 2020-09-15 Tom Tromey <tromey@adacore.com>
3919
3920 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3921 defines.
3922 * python/py-value.c (valpy_long): Use
3923 gdb_py_object_from_ulongest.
3924 * python/py-symtab.c (salpy_get_pc): Use
3925 gdb_py_object_from_ulongest.
3926 (salpy_get_last): Likewise.
3927 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3928 gdb_py_object_from_ulongest.
3929 * python/py-lazy-string.c (stpy_get_address): Use
3930 gdb_py_object_from_ulongest.
3931 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3932 * python/py-arch.c (archpy_disassemble): Use
3933 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3934 error handling.
3935
3936 2020-09-15 Tom Tromey <tromey@adacore.com>
3937
3938 * python/python-internal.h (gdb_py_long_from_longest): Remove
3939 defines.
3940 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3941 * python/py-type.c (convert_field, typy_get_sizeof): Use
3942 gdb_py_object_from_longest.
3943 * python/py-record-btrace.c (btpy_list_index): Use
3944 gdb_py_object_from_longest.
3945
3946 2020-09-15 Tom Tromey <tromey@adacore.com>
3947
3948 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3949 * python/py-record.c (recpy_element_number): Use
3950 gdb_py_object_from_longest.
3951 (recpy_gap_number): Likewise.
3952
3953 2020-09-15 Tom Tromey <tromey@adacore.com>
3954
3955 * top.c (ui::ui): Update.
3956 (highest_ui_num): Remove.
3957 * top.h (struct ui) <num>: Remove.
3958
3959 2020-09-15 Tom Tromey <tromey@adacore.com>
3960
3961 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3962 * ui-style.c (ansi_regex_text): Now array.
3963 * rust-exp.y (number_regex_text): Now array.
3964 * linespec.c (linespec_quote_characters): Now array.
3965 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3966 Now arrays.
3967
3968 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3969
3970 * debuginfod-support.c (debuginfod_client_deleter): New.
3971 (debuginfod_client_up): New.
3972 (debuginfod_init): Return debuginfod_client_up.
3973 (debuginfod_source_query): Adjust.
3974 (debuginfod_debuginfo_query): Adjust.
3975
3976 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3977
3978 * debuginfod-support.c (debuginfod_source_query): Use
3979 make_unique_xstrdup.
3980
3981 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3982
3983 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3984 with `type::instance_flags`.
3985
3986 2020-09-14 Michael Mullin <masmullin@gmail.com>
3987
3988 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3989 Remove baton parameter.
3990
3991 2020-09-14 Pedro Alves <pedro@palves.net>
3992
3993 * Makefile.in (SELFTESTS_SRCS): Add
3994 unittests/enum-flags-selftests.c.
3995 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3996 btrace_function_flags instead of enum btrace_function_flag.
3997 * compile/compile-c-types.c (convert_qualified): Use
3998 enum_flags::raw.
3999 * compile/compile-cplus-symbols.c (convert_one_symbol)
4000 (convert_symbol_bmsym):
4001 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4002 (compile_cplus_convert_struct_or_union_methods)
4003 (compile_cplus_instance::convert_qualified_base):
4004 * go-exp.y (parse_string_or_char): Add cast to int.
4005 * unittests/enum-flags-selftests.c: New file.
4006 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4007 type to btrace_thread_flags from btrace_thread_flag.
4008 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4009 local's type to btrace_thread_flags from btrace_thread_flag. Add
4010 cast in DEBUG call.
4011
4012 2020-09-14 Pedro Alves <pedro@palves.net>
4013
4014 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4015 * gdbtypes.c (address_space_name_to_int): Rename to ...
4016 (address_space_name_to_type_instance_flags): ... this.
4017 (address_space_int_to_name): Rename to ...
4018 (address_space_type_instance_flags_to_name): ... this.
4019 * gdbtypes.h (address_space_name_to_int): Rename to ...
4020 (address_space_name_to_type_instance_flags): ... this.
4021 (address_space_int_to_name): Rename to ...
4022 (address_space_type_instance_flags_to_name): ... this.
4023 * type-stack.c (type_stack::insert): Adjust to rename.
4024 * type-stack.h (type_stack::insert): Likewise.
4025
4026 2020-09-14 Pedro Alves <pedro@palves.net>
4027 Andrew Burgess <andrew.burgess@embecosm.com>
4028
4029 * avr-tdep.c (avr_address_class_type_flags): Return
4030 type_instance_flags.
4031 (avr_address_class_type_flags_to_name): Take a
4032 type_instance_flags.
4033 (avr_address_class_name_to_type_flags): Return bool and take a
4034 type_instance_flags.
4035 * d-lang.c (build_d_types): Use type::set_instance_flags.
4036 * ft32-tdep.c (ft32_address_class_type_flags): Return
4037 type_instance_flags.
4038 (ft32_address_class_type_flags_to_name): Take a
4039 type_instance_flags.
4040 (ft32_address_class_name_to_type_flags): Return bool and take a
4041 type_instance_flags.
4042 (ft32_gdbarch_init): Use type::set_instance_flags.
4043 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4044 * gdbarch.h, gdbarch.c: Regenerate.
4045 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4046 (address_class_name_to_type_flags): Use type_instance_flags and
4047 bool.
4048 * gdbtypes.c (address_space_name_to_int)
4049 (address_space_int_to_name, make_qualified_type): Use
4050 type_instance_flags.
4051 (make_qualified_type): Use type_instance_flags and
4052 type::set_instance_flags.
4053 (make_type_with_address_space, make_cv_type, make_vector_type)
4054 (check_typedef): Use type_instance_flags.
4055 (recursive_dump_type): Cast type_instance_flags to unsigned for
4056 printing.
4057 (copy_type_recursive): Use type::set_instance_flags.
4058 (gdbtypes_post_init): Use type::set_instance_flags.
4059 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4060 <m_instance_flags>: ... this.
4061 <instance_flags, set_instance_flags>: New methods.
4062 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4063 (SET_TYPE_INSTANCE_FLAGS): New.
4064 (address_space_name_to_int, address_space_int_to_name)
4065 (make_type_with_address_space): Pass flags using
4066 type_instance_flags instead of int.
4067 * stabsread.c (cleanup_undefined_types_noname): Use
4068 type::set_instance_flags.
4069 * s390-tdep.c (s390_address_class_type_flags): Return
4070 type_instance_flags.
4071 (s390_address_class_type_flags_to_name): Take a
4072 type_instance_flags.
4073 (s390_address_class_name_to_type_flags): Return bool and take a
4074 type_instance_flags.
4075 * type-stack.c (type_stack::follow_types): Use
4076 type_instance_flags.
4077 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4078
4079 2020-09-14 Tom Tromey <tromey@adacore.com>
4080
4081 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4082 * x86-tdep.c (x86_is_thunk_register_name)
4083 (x86_in_indirect_branch_thunk): Update.
4084 * sparc64-tdep.c (sparc64_fpu_register_names)
4085 (sparc64_cp0_register_names, sparc64_register_names)
4086 (sparc64_pseudo_register_names): Now const.
4087 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4088 cp0_registers_num>: Now const.
4089 * sparc-tdep.c (sparc_core_register_names)
4090 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4091 (sparc32_pseudo_register_names): Now const.
4092 (validate_tdesc_registers): Update.
4093 * rust-lang.c (rust_extensions): Now const.
4094 * p-lang.c (p_extensions): Now const.
4095 * objc-lang.c (objc_extensions): Now const.
4096 * nto-tdep.c (nto_thread_state_str): Now const.
4097 * moxie-tdep.c (moxie_register_names): Now const.
4098 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4099 Now const.
4100 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4101 (mips_linux_reg_names): Now const.
4102 (mips_gdbarch_init): Update.
4103 * microblaze-tdep.c (microblaze_register_names): Now const.
4104 * m68k-tdep.c (m68k_register_names): Now const.
4105 * m32r-tdep.c (m32r_register_names): Now const.
4106 * ia64-tdep.c (ia64_register_names): Now const.
4107 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4108 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4109 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4110 ymm_avx512_register_names, pkeys_register_names>: Now const.
4111 * i386-tdep.c (i386_register_names, i386_zmm_names)
4112 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4113 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4114 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4115 * f-lang.c (f_extensions): Now const.
4116 * d-lang.c (d_extensions): Now const.
4117 * csky-tdep.c (csky_register_names): Now const.
4118 * charset.c (default_charset_names, charset_enum): Now const.
4119 (_initialize_charset): Update.
4120 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4121 const.
4122 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4123 (bsd_uthread_solib_loaded): Update.
4124 (bsd_uthread_state): Now const.
4125 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4126 (amd64_ymm_avx512_names, amd64_ymmh_names)
4127 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4128 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4129 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4130 (amd64_dword_names): Now const.
4131 * agent.c (can_use_agent_enum): Now const.
4132 * ada-tasks.c (task_states, long_task_states): Now const.
4133 * ada-lang.c (known_runtime_file_name_patterns)
4134 (known_auxiliary_function_name_patterns, attribute_names)
4135 (standard_exc, ada_extensions): Now const.
4136
4137 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4138
4139 * bcache.h (struct bcache) <bcache>: Remove constructor.
4140 <m_hash_function, m_compare_function>: Remove.
4141 <~bcache>: Make virtual.
4142 <compare>: Remove static method, introduce virtual method.
4143 <default_hash>: Remove.
4144 <hash>: New virtual method.
4145 * bcache.c (bcache::expand_hash_table): Update.
4146 (bcache::insert): Update.
4147 (bcache::hash): New.
4148 (bcache::compare): Update comment and parameter names.
4149 * gdbtypes.c (types_deeply_equal): Update.
4150 * psymtab.h (struct psymbol_bcache): New struct.
4151 (class psymtab_storage) <psymtab_storage>: Make default.
4152 <psymbol_cache>: Change type to psymbol_bcache.
4153 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4154 (psymbol_hash): Change to...
4155 (psymbol_bcache::hash): ... this.
4156 (psymbol_compare): Change to...
4157 (psymbol_bcache::compare): ... this.
4158
4159 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4160
4161 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4162 checking for initial lwp.
4163
4164 2020-09-14 Tom Tromey <tromey@adacore.com>
4165
4166 * m68k-tdep.c (m68k_extract_return_value): Use
4167 pointer_result_regnum.
4168 (m68k_store_return_value): Likewise.
4169 (m68k_reg_struct_return_p): Handle vectors and arrays.
4170 (m68k_return_value): Handle arrays.
4171 (m68k_svr4_return_value): Fix single-element aggregate handling.
4172 Handle long double. Adjust for embedded ABI.
4173 (m68k_svr4_init_abi): Set pointer_result_regnum.
4174 (m68k_embedded_init_abi): New function.
4175 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4176 (m68k_osabi_sniffer): New function.
4177 (_initialize_m68k_tdep): Register osabi sniffer.
4178 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4179 member.
4180
4181 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4182
4183 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4184 with gdb::unique_xmalloc_ptr<char>.
4185
4186 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4187
4188 * xml-support.h (xml_fetch_another): Change type to be a
4189 function_view.
4190 (xml_process_xincludes): Remove baton parameter.
4191 (xml_fetch_content_from_file): Change baton parameter to
4192 dirname.
4193 * xml-support.c (struct xinclude_parsing_data)
4194 <xinclude_parsing_data>: Remove baton parameter.
4195 <fetcher_baton>: Remove.
4196 (xinclude_start_include): Adjust.
4197 (xml_process_xincludes): Adjust.
4198 (xml_fetch_content_from_file): Replace baton parameter with
4199 dirname.
4200 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4201 (xml_init_syscalls_info): Use a lambda.
4202 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4203 (file_read_description_xml): Use a lambda.
4204 (fetch_available_features_from_target): Change baton parameter
4205 to target_ops.
4206 (target_read_description_xml): Use a lambda.
4207 (target_fetch_description_xml): Use a lambda.
4208 (string_read_description_xml): Update.
4209
4210 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4211
4212 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4213 uses with type::endianity_is_not_default.
4214
4215 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4216
4217 * gdbtypes.h (struct type) <endianity_is_not_default,
4218 set_endianity_is_not_default>: New methods.
4219 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4220 type::endianity_is_not_default, change all write call sites to
4221 use type::set_endianity_is_not_default.
4222
4223 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4226 uses with type::is_fixed_instance.
4227
4228 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4229
4230 * gdbtypes.h (struct type) <is_fixed_instance,
4231 set_is_fixed_instance>: New methods.
4232 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4233 write call sites to use type::set_is_fixed_instance.
4234
4235 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4238 uses with type::is_gnu_ifunc.
4239
4240 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4241
4242 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4243 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4244 use type::set_is_gnu_ifunc.
4245
4246 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4247
4248 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4249 uses with type::stub_is_supported.
4250
4251 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4252
4253 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4254 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4255 use type::set_stub_is_supported.
4256
4257 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4258
4259 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4260 uses with type::is_vector.
4261
4262 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4265 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4266 use type::set_is_vector.
4267
4268 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4269
4270 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4271 uses with type::has_varargs.
4272
4273 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4274
4275 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4276 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4277 use type::set_has_varargs.
4278
4279 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4280
4281 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4282 uses with type::is_prototyped.
4283
4284 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4285
4286 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4287 New methods.
4288 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4289 call sites to use type::set_is_prototyped.
4290
4291 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4294 uses with type::target_is_stub.
4295
4296 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4297
4298 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4299 New methods.
4300 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4301 sites to use type::set_target_is_stub.
4302
4303 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * gdbtypes.h (TYPE_STUB): Remove, replace all
4306 uses with type::is_stub.
4307
4308 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4309
4310 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4311 (TYPE_STUB): Use type::is_stub, change all write call sites to
4312 use type::set_is_stub.
4313
4314 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4315
4316 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4317 type::has_no_signedness.
4318
4319 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4320
4321 * gdbtypes.h (struct type) <has_no_signedness,
4322 set_has_no_signedness>: New methods.
4323 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4324 call sites to use type::set_has_no_signedness.
4325
4326 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4327
4328 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4329 type::is_unsigned.
4330
4331 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4332
4333 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4334 methods.
4335 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4336 sites to use type::set_is_unsigned.
4337
4338 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4339 Adam Renquinha <arenquinha@cimeq.qc.ca>
4340
4341 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4342 pointer and stack frame offset when unwinding.
4343
4344 2020-09-13 Pedro Alves <pedro@palves.net>
4345
4346 * NEWS: Document "-break-insert --qualified".
4347 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4348
4349 2020-09-13 Pedro Alves <pedro@palves.net>
4350
4351 * linespec.c (classify_mtype, compare_msyms): Delete.
4352 (search_minsyms_for_name): Remove classification logic. Instead
4353 filter out trampoline symbols if we also found an external
4354 function of the same name.
4355
4356 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4357
4358 * NEWS: Create a new section for the next release branch.
4359 Rename the section of the current branch, now that it has
4360 been cut.
4361
4362 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4363
4364 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4365 * version.in: Bump version to 11.0.50.DATE-git.
4366
4367 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4368
4369 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4370
4371 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4372 Felix Willgerodt <Felix.Willgerodt@intel.com>
4373
4374 * gdbarch.sh: Added bfloat16 type.
4375 * gdbarch.c: Regenerated.
4376 * gdbarch.h: Regenerated.
4377 * gdbtypes.c (floatformats_bfloat16): New struct.
4378 (gdbtypes_post_init): Add builtin_bfloat16.
4379 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4380 (floatformats_bfloat16): New struct.
4381 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4382 (i386_ymm_type): Add field "v16_bfloat16"
4383 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4384 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4385 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4386 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4387 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4388 * features/i386/64bit-avx512.c: Regenerated.
4389 * features/i386/64bit-sse.xml: Add bfloat16 type.
4390 * features/i386/64bit-sse.c: Regenerated.
4391
4392 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4393
4394 * i386-tdep.c (i386_zmm_type): Fix field names.
4395 (i386_ymm_type): Fix field names.
4396
4397 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4398
4399 * breakpoint.c: Fix typo in the help message of the
4400 "set breakpoint condition-evaluation" command.
4401
4402 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4403
4404 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4405 * (nbsd_nat_target::pid_to_exec_file)
4406 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4407 (nbsd_nat_target::post_startup_inferior)
4408 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4409 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4410 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4411 * (nbsd_thread_lister): Remove.
4412
4413 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4414
4415 * fork-inferior.c (startup_inferior): Avoid double free.
4416
4417 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4418
4419 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4420 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4421
4422 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4423
4424 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4425 * netbsd-nat.c: Include <sys/ptrace.h>.
4426 * (netbsd_nat::enable_proc_events): Add.
4427
4428 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4429
4430 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4431 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4432 (netbsd_nat::for_each_thread): Add.
4433 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4434 "gdbsupport/common-debug.h".
4435 * (netbsd_nat::netbsd_thread_lister)
4436 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4437 (netbsd_nat::for_each_thread): Add.
4438
4439 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4440
4441 * netbsd-nat.h: Include <unistd.h>.
4442 * (netbsd_nat::pid_to_exec_file): Add.
4443 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4444 * (netbsd_nat::pid_to_exec_file) Add.
4445
4446 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4447
4448 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4449
4450 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4451
4452 * netbsd-nat.h: New file.
4453 * netbsd-nat.c: Likewise.
4454
4455 2020-09-09 Tom Tromey <tromey@adacore.com>
4456
4457 * ada-lang.c (remove_extra_symbols): Do not increment when
4458 removing an element
4459
4460 2020-09-08 Tom Tromey <tromey@adacore.com>
4461
4462 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4463
4464 2020-09-08 Tom Tromey <tromey@adacore.com>
4465
4466 PR win32/25302:
4467 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4468 (gdb_bfd_init_data): New function.
4469 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4470
4471 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4472
4473 * infrun.c (fetch_inferior_event): Use
4474 `switch_to_target_no_thread` to switch the target.
4475
4476 2020-09-06 Tom Tromey <tom@tromey.com>
4477
4478 * symfile.h (dwarf2_free_objfile): Don't declare.
4479
4480 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4481
4482 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4483 to match 16 byte real/complex type generated by Flang compiler.
4484
4485 2020-09-03 Tom de Vries <tdevries@suse.de>
4486
4487 PR breakpoint/26546
4488 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4489 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4490
4491 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4492
4493 * maint.c (index_digits): New function.
4494 (struct maint_print_section_data): Remove.
4495 (print_bfd_section_info): Remove print_data parameter, add arg
4496 and index_digits.
4497 (print_objfile_section_info): Likewise.
4498 (print_bfd_section_info_maybe_relocated): Likewise (plus
4499 objfile).
4500 (maintenance_info_sections): Adjust calls.
4501
4502 2020-09-02 Tom Tromey <tromey@adacore.com>
4503
4504 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4505 for null pointers.
4506 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4507
4508 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4509
4510 * bcache.h (struct bcache) <insert>: Change type of `added` to
4511 pointer to bool.
4512 * bcache.c (bcache::insert): Likewise.
4513 * gdbtypes.c (check_types_worklist): Adjust.
4514 * psymtab.c (add_psymbol_to_bcache): Adjust.
4515
4516 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4517
4518 * corelow.c (unordered_set): Include.
4519 (class core_target): Add field 'm_core_unavailable_mappings'.
4520 (core_target::build_file_mappings): Print only one warning
4521 per inaccessible file. Add unavailable/broken mappings
4522 to m_core_unavailable_mappings.
4523 (core_target::xfer_partial): Call...
4524 (core_target::xfer_memory_via_mappings): New method.
4525
4526 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4527
4528 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4529 type to bool.
4530
4531 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4532
4533 * dwarf2/read.c (struct field_info): Fix indentation.
4534
4535 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4538 ordering in comment.
4539 * frame.c (frame_id_eq): Fix indentation.
4540
4541 2020-08-31 Scott Linder <scott@scottlinder.com>
4542 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4545 inline frame ids in outer frame.
4546
4547 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4548
4549 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4550 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4551 (outer_frame_id): Use FID_STACK_OUTER instead of
4552 FID_STACK_INVALID.
4553 (frame_id_p): Don't check for outer_frame_id.
4554
4555 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4558 regnum/frame in value. Call allocate_value_lazy.
4559 * frame.c (frame_unwind_register_value): Use
4560 val_print_not_saved.
4561
4562 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4565
4566 2020-08-29 Pedro Alves <pedro@palves.net>
4567
4568 * progspace.c (print_program_space): Use all_inferiors. Switch to
4569 the inferior before calling target_pid_to_str.
4570
4571 2020-08-28 Tom Tromey <tom@tromey.com>
4572
4573 * xcoffread.c (xcoff_end_psymtab): Update comment.
4574 * dbxread.c (dbx_end_psymtab): Update comment.
4575
4576 2020-08-28 Tom de Vries <tdevries@suse.de>
4577
4578 PR breakpoint/26544
4579 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4580 event_location.
4581 (create_breakpoint): Same.
4582 (base_breakpoint_decode_location): Same.
4583 (bkpt_create_sals_from_location): Same.
4584 (bkpt_decode_location): Same.
4585 (bkpt_probe_create_sals_from_location): Same.
4586 (bkpt_probe_decode_location): Same.
4587 (tracepoint_create_sals_from_location): Same.
4588 (tracepoint_decode_location): Same.
4589 (tracepoint_probe_decode_location): Same.
4590 (strace_marker_create_sals_from_location): Same.
4591 (strace_marker_decode_location): Same.
4592 (create_sals_from_location_default): Same.
4593 (decode_location_default): Same.
4594 * breakpoint.h (struct breakpoint_ops): Same.
4595 (create_breakpoint): Same.
4596 * linespec.h (decode_line_full): Same.
4597 * linespec.c (decode_line_full): Same. Throw error if
4598 result.size () == 0.
4599
4600 2020-08-27 Pedro Alves <pedro@palves.net>
4601
4602 PR gdb/26524
4603 * breakpoint.c (until_break_fsm) <location_breakpoint,
4604 caller_breakpoint>: Delete fields.
4605 <breakpoints>: New field.
4606 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4607 two individual breakpoints.
4608 (until_break_fsm::should_stop): Loop over breakpoints in the
4609 breakpoint vector.
4610 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4611 vector.
4612 (until_break_command): Handle location expanding into multiple
4613 sals.
4614
4615 2020-08-27 Pedro Alves <pedro@palves.net>
4616
4617 PR gdb/26523
4618 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4619 bp_until breakpoints user-specified locations. Update intro
4620 comment.
4621
4622 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4623
4624 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4625 gdb_bfd_sections): New.
4626 * maint.c (print_bfd_section_info): Change param type to
4627 maint_print_section_data.
4628 (print_objfile_section_info): Likewise.
4629 (print_bfd_section_info_maybe_relocated): Likewise.
4630 (maintenance_info_sections): Use gdb_bfd_sections.
4631
4632 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4633
4634 * MAINTAINERS: Add ARC target and maintainer.
4635
4636 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4637
4638 * configure.tgt: ARC support for GNU/Linux.
4639 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4640 * arc-linux-tdep.c: New file.
4641 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4642 * arc-tdep.c (arc_write_pc): Use it.
4643
4644 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4645
4646 * arc-tdep.c (arc_check_for_hardware_loop): New.
4647 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4648
4649 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4650
4651 * arc-tdep.h: Include "gdbarch.h".
4652
4653 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4654
4655 * arch/arc.h
4656 (arc_gdbarch_features): New class to stir the selection of target XML.
4657 (arc_create_target_description): Use FEATURES to choose XML target.
4658 (arc_lookup_target_description): Use arc_create_target_description
4659 to create _new_ target descriptions or return the already created
4660 ones if the FEATURES is the same.
4661 * arch/arc.c: Implementation of prototypes described above.
4662 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4663 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4664 * arc-tdep.c (*_feature_name): Make feature names consistent.
4665 (arc_register_feature): A new struct to hold information about
4666 registers of a particular target/feature.
4667 (arc_check_tdesc_feature): Check if XML provides registers in
4668 compliance with ARC_REGISTER_FEATURE structs.
4669 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4670 (determine_*_reg_feature_set): Which feature name to look for.
4671 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4672 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4673 to expected ISA enums to be used in arc_gdbarch_features structs.
4674 * features/Makefile (FEATURE_XMLFILES): Add new files.
4675 * gdb/features/arc/v1-aux.c: New file.
4676 * gdb/features/arc/v1-aux.xml: Likewise.
4677 * gdb/features/arc/v1-core.c: Likewise.
4678 * gdb/features/arc/v1-core.xml: Likewise.
4679 * gdb/features/arc/v2-aux.c: Likewise.
4680 * gdb/features/arc/v2-aux.xml: Likewise.
4681 * gdb/features/arc/v2-core.c: Likewise.
4682 * gdb/features/arc/v2-core.xml: Likewise.
4683 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4684
4685 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4686 Andrew Burgess <andrew.burgess@embecosm.com>
4687
4688 PR m2/26372
4689 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4690 an assert. Remove single element array indexing pattern as the
4691 MULTI_SUBSCRIPT support will handle this case too.
4692
4693 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4694
4695 * value.h (valprint_check_validity): Move declaration from
4696 here...
4697 * valprint.h (valprint_check_validity): ... to here.
4698
4699 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4700
4701 * debug.h: New file.
4702 * debug.c (debug_prefixed_vprintf): New function.
4703 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4704 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4705
4706 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4707
4708 * infrun.h (infrun_debug_printf_1): New function declaration.
4709 (infrun_debug_printf): New macro.
4710 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4711 throughout.
4712 (infrun_debug_printf): New function.
4713 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4714 (handle_jit_event): Likewise.
4715
4716 2020-08-21 Mark Wielaard <mark@klomp.org>
4717
4718 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4719
4720 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4721
4722 * frame.c (enum class frame_id_status): New.
4723 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4724 (fprintf_frame): Update.
4725 (compute_frame_id): Set frame id status to "computing" on entry.
4726 Set it back to "not_computed" on failure and to "computed" on
4727 success.
4728 (get_frame_id): Assert the frame id is not being computed.
4729 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4730 (create_new_frame): Likewise.
4731 (frame_cleanup_after_sniffer): Update assert.
4732
4733 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4734
4735 * regcache.c (pid_ptid_regcache_map): New type.
4736 (target_ptid_regcache_map): Remove.
4737 (target_pid_ptid_regcache_map): New type.
4738 (regcaches): Change type to target_pid_ptid_regcache_map.
4739 (get_thread_arch_aspace_regcache): Update.
4740 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4741 case.
4742 (regcaches_size): Update.
4743 (regcache_count): Update.
4744 (registers_changed_ptid_target_pid_test): New.
4745 (_initialize_regcache): Register new test.
4746
4747 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4748
4749 * regcache.c (regcache_count): New.
4750 (struct regcache_test_data): New.
4751 (regcache_test_data_up): New.
4752 (populate_regcaches_for_test): New.
4753 (regcaches_test): Remove.
4754 (get_thread_arch_aspace_regcache_test): New.
4755 (registers_changed_ptid_all_test): New.
4756 (registers_changed_ptid_target_test): New.
4757 (registers_changed_ptid_target_ptid_test): New.
4758 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4759 (_initialize_regcache): Register new tests.
4760
4761 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4762
4763 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4764 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4765 gdbarch and aspace parameter. Use current inferior's aspace.
4766 Validate regcache's arch value.
4767 (regcaches_test): Update.
4768
4769 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4770
4771 * regcache.c (regcaches_test): Call registers_changed.
4772
4773 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4774
4775 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4776
4777 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4778
4779 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4780 to find the end of prologue for flang compiled binaries.
4781 * arm-tdep.c (arm_skip_prologue): Likewise.
4782 * i386-tdep.c (i386_skip_prologue): Likewise.
4783 * producer.c (producer_is_llvm): New function.
4784 (producer_parsing_tests): Added new tests for clang/flang.
4785 * producer.h (producer_is_llvm): New declaration.
4786
4787 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4788
4789 * linux-nat.c (linux_nat_debug_printf): New function.
4790 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4791
4792 2020-08-18 Aaron Merey <amerey@redhat.com>
4793
4794 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4795 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4796 (CLIBS): Add DEBUGINFOD_LIBS.
4797
4798 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4799
4800 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4801 'gdbarch_num_regs'.
4802
4803 2020-08-17 Tom Tromey <tromey@adacore.com>
4804
4805 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4806 ada_get_decoded_value returns NULL.
4807
4808 2020-08-17 Tom Tromey <tromey@adacore.com>
4809
4810 * python/py-inferior.c (infpy_search_memory): Use
4811 gdb_py_object_from_ulongest.
4812 * python/py-infevents.c (create_inferior_call_event_object)
4813 (create_memory_changed_event_object): Use
4814 gdb_py_object_from_ulongest.
4815 * python/py-linetable.c (ltpy_entry_get_pc): Use
4816 gdb_py_object_from_ulongest.
4817
4818 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4819
4820 * loc.c (class symbol_needs_eval_context): Fix indentation.
4821
4822 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4823
4824 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4825 bool.
4826
4827 2020-08-17 Tom de Vries <tdevries@suse.de>
4828
4829 PR gdb/26393
4830 * gdbtypes.c (dump_dynamic_prop): New function.
4831 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4832
4833 2020-08-15 Tom de Vries <tdevries@suse.de>
4834
4835 PR backtrace/26390
4836 * stack.c (print_frame_args): Temporarily set the selected
4837 frame to FRAME while printing the frame's arguments.
4838
4839 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4840
4841 PR breakpoints/26385
4842 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4843 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4844
4845 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4846
4847 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4848 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4849 and >= to check return value instead of == -1 and != -1.
4850
4851 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4852
4853 * utils.h (class gdb_argv) <as_array_view>: New method.
4854 * utils.c (gdb_argv_as_array_view_test): New.
4855 (_initialize_utils): Register selftest.
4856 * maint.c (maintenance_selftest): Use the new method.
4857
4858 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4859
4860 * target.h (supports_dumpcore, dumpcore): New
4861 function declarations.
4862 * target.c (supports_dumpcore, dumpcore): New
4863 functions.
4864 * target-delegates.c: Rebuild.
4865 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4866 and target_dumpcore ().
4867
4868 2020-08-13 Aaron Merey <amerey@redhat.com>
4869
4870 * debuginfod-support.c: Replace global variables with user_data.
4871
4872 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4873
4874 * maint.c (maintenance_selftest): Split args and pass array_view
4875 to run_tests.
4876
4877 2020-08-12 Luis Machado <luis.machado@linaro.org>
4878
4879 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4880 type's length.
4881 Use %s and pulongest to print the length.
4882
4883 2020-08-12 Pedro Alves <palves@redhat.com>
4884
4885 * NEWS: Move "Multi-target debugging support" item to the
4886 "Changes since GDB 9" section.
4887
4888 2020-08-12 Pedro Alves <palves@redhat.com>
4889
4890 PR gdb/26336
4891 * progspace.c (program_space::remove_objfile): Invalidate the
4892 frame cache.
4893
4894 2020-08-11 Tom de Vries <tdevries@suse.de>
4895
4896 * MAINTAINERS: Mark ms1 as deleted.
4897
4898 2020-08-10 Luis Machado <luis.machado@linaro.org>
4899
4900 PR gdb/26310
4901
4902 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4903 act accordingly.
4904 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4905 movz/str/stur/stp skipping behavior.
4906
4907 2020-08-10 Luis Machado <luis.machado@linaro.org>
4908
4909 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4910 struct user_sve_header instead of struct sve_context.
4911
4912 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4913
4914 * read.h (dwarf2_fetch_die_loc_sect_off,
4915 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4916 `void *` parameter with function_view.
4917 * read.c (dwarf2_fetch_die_loc_sect_off,
4918 dwarf2_fetch_die_loc_cu_off): Likewise.
4919 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4920 (per_cu_dwarf_call): Adjust.
4921 (get_frame_address_in_block_wrapper): Remove.
4922 (indirect_synthetic_pointer): Adjust.
4923 (get_ax_pc): Remove.
4924 (dwarf2_compile_expr_to_ax): Adjust.
4925
4926 2020-08-08 Tom de Vries <tdevries@suse.de>
4927
4928 PR build/26344
4929 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4930 constructor.
4931 * regcache.c (get_thread_arch_aspace_regcache): Same.
4932
4933 2020-08-07 Tom Tromey <tromey@adacore.com>
4934
4935 * ravenscar-thread.c
4936 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4937 New method.
4938 (ravenscar_thread_target::wait): Check
4939 runtime_initialized.
4940 (ravenscar_thread_target::prepare_to_store)
4941 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4942 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4943 (ravenscar_thread_target::stopped_by_watchpoint)
4944 (ravenscar_thread_target::stopped_data_address)
4945 (ravenscar_thread_target::core_of_thread): Use
4946 scoped_restore_current_thread and
4947 set_base_thread_from_ravenscar_task.
4948
4949 2020-08-07 Tom Tromey <tromey@adacore.com>
4950
4951 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4952
4953 2020-08-07 Tom Tromey <tromey@adacore.com>
4954
4955 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4956 update_inferior_ptid before update_thread_list.
4957 (temporarily_change_regcache_ptid): New class.
4958 (ravenscar_thread_target::fetch_registers)
4959 (ravenscar_thread_target::store_registers)
4960 (ravenscar_thread_target::prepare_to_store): Use base thread when
4961 forwarding operation.
4962
4963 2020-08-07 Tom Tromey <tromey@adacore.com>
4964
4965 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4966 "is_pid" case.
4967
4968 2020-08-07 Tom Tromey <tromey@adacore.com>
4969
4970 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4971 New methods.
4972 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4973 first.
4974 (ravenscar_thread_target::add_thread): Rename from
4975 ravenscar_add_thread.
4976 (ravenscar_thread_target::update_thread_list): Use a lambda.
4977 (ravenscar_thread_target::xfer_partial): New method.
4978
4979 2020-08-07 Tom Tromey <tromey@adacore.com>
4980
4981 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4982 gdb::function_view.
4983 (iterate_over_live_ada_tasks): Change type of argument.
4984 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4985 of argument.
4986
4987 2020-08-07 Tom Tromey <tromey@adacore.com>
4988
4989 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4990 Remove.
4991 (ravenscar_thread_target::extra_thread_info): Remove.
4992 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4993 defer to target beneath for non-Ravenscar threads.
4994
4995 2020-08-07 Tom Tromey <tromey@adacore.com>
4996
4997 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4998 get_base_thread_from_ravenscar_task>: Now methods.
4999 <m_cpu_map>: New member.
5000 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5001 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5002 (ravenscar_thread_target::task_is_currently_active): Update.
5003 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5004 Now a method.
5005 (ravenscar_thread_target::add_active_thread): Put initial thread
5006 into the m_cpu_map.
5007
5008 2020-08-07 Tom Tromey <tromey@adacore.com>
5009
5010 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5011 event_ptid.
5012
5013 2020-08-07 Tom Tromey <tromey@adacore.com>
5014
5015 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5016 runtime_initialized.
5017
5018 2020-08-07 Tom Tromey <tromey@adacore.com>
5019
5020 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5021 add_active_thread.
5022 (ravenscar_thread_target::add_active_thread): Now public.
5023 (ravenscar_inferior_created): Call add_active_thread after pushing
5024 the target.
5025
5026 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5027
5028 * regcache.c (ptid_regcache_map): New type.
5029 (target_ptid_regcache_map): New type.
5030 (regcaches): Change type to target_ptid_regcache_map.
5031 (get_thread_arch_aspace_regcache): Update to regcaches' new
5032 type.
5033 (regcache_thread_ptid_changed): Likewise.
5034 (registers_changed_ptid): Likewise.
5035 (regcaches_size): Likewise.
5036 (regcaches_test): Update.
5037 (regcache_thread_ptid_changed): Update.
5038 * regcache.h (regcache_up): New type.
5039 * gdbsupport/ptid.h (hash_ptid): New struct.
5040
5041 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5042
5043 * observable.h (thread_ptid_changed): Add parameter
5044 `process_stratum_target *`.
5045 * infrun.c (infrun_thread_ptid_changed): Add parameter
5046 `process_stratum_target *` and use it.
5047 (selftests): New namespace.
5048 (infrun_thread_ptid_changed): New function.
5049 (_initialize_infrun): Register selftest.
5050 * regcache.c (regcache_thread_ptid_changed): Add parameter
5051 `process_stratum_target *` and use it.
5052 (regcache_thread_ptid_changed): New function.
5053 (_initialize_regcache): Register selftest.
5054 * thread.c (thread_change_ptid): Pass target to
5055 thread_ptid_changed observable.
5056
5057 2020-08-06 Caroline Tice <cmtice@google.com>
5058
5059 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5060 (struct dwp_sections): Update field comments. Add loclists and
5061 rnglists fields.
5062 (struct virtual_v2_dwo_sections): Rename struct to
5063 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5064 size & offset fields for loclists and rnglists.
5065 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5066 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5067 skipping dummy type units.
5068 (create_dwp_hash_table): Update the large comment above the function to
5069 discuss Version 5 DWP files as well, with references. Update all the
5070 version checks in the function to check for version 5 as well. Add new
5071 section at the end to create dwp hash table for version 5.
5072 (create_dwp_v2_section): Rename function to
5073 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5074 Add V5 to error message text.
5075 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5076 into calls to create_dwp_v2_or_v5_section.
5077 (create_dwo_unit_in_dwp_v5): New function.
5078 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5079 check for version2; add else clause to handle version 5.
5080 (open_and_init_dwo_file): Add code to check dwarf version & only call
5081 create_debug_types_hash_table (with sections.types) if version is not 5;
5082 else call create_debug_type_hash_table, with sections.info.
5083 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5084 version 5.
5085 (dwarf2_locate_v5_dwp_sections): New function.
5086 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5087 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5088
5089 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5090
5091 * regcache.h (class regcache): Remove friend
5092 registers_changed_ptid.
5093 <regcache_thread_ptid_changed>: Remove.
5094 <regcaches>: Remove.
5095 * regcache.c (regcache::regcaches): Rename to...
5096 (regcaches): ... this. Make static.
5097 (get_thread_arch_aspace_regcache): Update.
5098 (regcache::regcache_thread_ptid_changed): Rename to...
5099 (regcache_thread_ptid_changed): ... this. Update.
5100 (class regcache_access): Remove.
5101 (regcaches_test): Update.
5102 (_initialize_regcache): Update.
5103 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5104 <forward_list>.
5105
5106 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5107
5108 * regcache.h (class regcache) <current_regcache>: Rename to...
5109 <regcaches>: ... this. Move doc here.
5110 * regcache.c (regcache::current_regcache) Rename to...
5111 (regcache::regcaches): ... this. Move doc to header.
5112 (get_thread_arch_aspace_regcache): Update.
5113 (regcache::regcache_thread_ptid_changed): Update.
5114 (registers_changed_ptid): Update.
5115 (class regcache_access) <current_regcache_size>: Rename to...
5116 <regcaches_size>: ... this.
5117 (current_regcache_test): Rename to...
5118 (regcaches_test): ... this.
5119 (_initialize_regcache): Update.
5120
5121 2020-08-06 Victor Collod <vcollod@nvidia.com>
5122
5123 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5124
5125 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5126
5127 * corelow.c (core_target::build_file_mappings): Don't output
5128 null pathname in warning.
5129
5130 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5131
5132 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5133 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5134 gdb.dwarf2/dw2-single-line-discriminators.exp,
5135 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5136
5137 2020-08-05 Tom Tromey <tromey@adacore.com>
5138
5139 PR rust/26197:
5140 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5141 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5142 Fix off-by-one and type size errors in ordinary case.
5143
5144 2020-08-05 Tom de Vries <tdevries@suse.de>
5145
5146 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5147 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5148
5149 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5150
5151 * frame.h (frame_id_p): Return bool.
5152 (frame_id_artificial_p): Return bool.
5153 (frame_id_eq): Return bool.
5154 (has_stack_frames): Return bool.
5155 (get_selected_frame): Fix typo in comment.
5156 (get_frame_pc_if_available): Return bool.
5157 (get_frame_address_in_block_if_available): Return bool.
5158 (get_frame_func_if_available): Return bool.
5159 (read_frame_register_unsigned): Return bool.
5160 (get_frame_register_bytes): Return bool.
5161 (safe_frame_unwind_memory): Return bool.
5162 (deprecated_frame_register_read): Return bool.
5163 (frame_unwinder_is): Return bool.
5164 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5165 bool.
5166 <this_id::p>: Likewise.
5167 <prev_p>: Likewise.
5168 (frame_stash_add): Return bool.
5169 (get_frame_id): Use bool.
5170 (frame_id_build_special) Use bool.
5171 (frame_id_build_unavailable_stack): Use bool.
5172 (frame_id_build): Use bool.
5173 (frame_id_p): Return bool, use true/false instead of 1/0.
5174 (frame_id_artificial_p): Likewise.
5175 (frame_id_eq): Likewise.
5176 (frame_id_inner): Likewise.
5177 (get_frame_func_if_available): Likewise.
5178 (read_frame_register_unsigned): Likewise.
5179 (deprecated_frame_register_read): Likewise.
5180 (get_frame_register_bytes): Likewise.
5181 (has_stack_frames): Likewise.
5182 (inside_main_func): Likewise.
5183 (inside_entry_func): Likewise.
5184 (get_frame_pc_if_available): Likewise.
5185 (get_frame_address_in_block_if_available): Likewise.
5186 (frame_unwinder_is): Likewise.
5187 (safe_frame_unwind_memory): Likewise.
5188 (frame_unwind_arch): Likewise.
5189
5190 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5191
5192 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5193 type to cached_copy_status.
5194 (fprintf_frame): Adjust.
5195 (get_frame_func_if_available): Adjust.
5196 (frame_cleanup_after_sniffer): Adjust.
5197
5198 2020-08-04 Mark Wielaard <mark@klomp.org>
5199
5200 * MAINTAINERS (Write After Approval): Update email address.
5201
5202 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5203
5204 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5205 dynamic_prop::const_val.
5206
5207 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5208
5209 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5210 dynamic_prop::kind.
5211
5212 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5213
5214 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5215
5216 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5217
5218 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5219
5220 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5221 Jose E. Marchesi <jose.marchesi@oracle.com>
5222
5223 * configure.tgt: Add entry for bpf-*-*.
5224 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5225 (ALLDEPFILES): Add bpf-tdep.c.
5226 * bpf-tdep.c: New file.
5227 * MAINTAINERS: Add bpf target and maintainer.
5228 * NEWS: Mention the support for the new target.
5229
5230 2020-08-04 Tom de Vries <tdevries@suse.de>
5231
5232 PR symtab/23270
5233 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5234 Error.
5235
5236 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5237
5238 * syscalls/freebsd.xml: Regenerate.
5239
5240 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5241
5242 * syscalls/update-freebsd.sh: Fix usage and year range.
5243
5244 2020-08-03 Tom de Vries <tdevries@suse.de>
5245
5246 PR symtab/26333
5247 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5248 DW_LNE_lo_user/DW_LNE_hi_user range.
5249
5250 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5251
5252 PR ada/26318
5253 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5254 kind.
5255
5256 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5257
5258 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5259
5260 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5261
5262 * breakpoint.c (set_breakpoint_condition): Update the condition
5263 expressions after checking that the input condition string parses
5264 successfully and does not contain junk at the end.
5265
5266 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5267
5268 * breakpoint.c (set_breakpoint_condition): Update the
5269 condition string after parsing the new condition successfully.
5270
5271 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5272
5273 * proc-api.c (_STRUCTURED_PROC): Don't define.
5274 * proc-events.c: Likewise.
5275 * proc-flags.c: Likewise.
5276 * proc-why.c: Likewise.
5277 * procfs.c: Likewise.
5278
5279 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5280 * configure, config.in: Regenerate.
5281
5282 2020-07-30 Tom de Vries <tdevries@suse.de>
5283
5284 PR build/26320
5285 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5286 m_red/m_green/m_blue in a union.
5287
5288 2020-07-29 Tom de Vries <tdevries@suse.de>
5289
5290 PR tdep/26280
5291 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5292
5293 2020-07-28 Tom Tromey <tromey@adacore.com>
5294
5295 PR symtab/26270:
5296 * symtab.h (find_pc_partial_function_sym): Declare.
5297 * cli/cli-cmds.c (disassemble_command): Use
5298 find_pc_partial_function_sym. Check asm_demangle.
5299 * blockframe.c (cache_pc_function_sym): New global.
5300 (cache_pc_function_name): Remove.
5301 (clear_pc_function_cache): Update.
5302 (find_pc_partial_function_sym): New function, from
5303 find_pc_partial_function.
5304 (find_pc_partial_function): Rewrite using
5305 find_pc_partial_function_sym.
5306
5307 2020-07-28 Tom Tromey <tromey@adacore.com>
5308
5309 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5310 help. Add usage.
5311
5312 2020-07-28 Tom Tromey <tromey@adacore.com>
5313
5314 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5315 <DW_OP_GNU_variable_value>: Cast to address type.
5316
5317 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5318
5319 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5320 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5321 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5322 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5323 (nbsd_get_siginfo_type): New.
5324 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5325 (_initialize_nbsd_tdep): New.
5326
5327 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5328
5329 PR binutils/26301
5330 * configure: Regenerated.
5331
5332 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5333
5334 PR binutils/26301
5335 * configure: Regenerated.
5336
5337 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5338
5339 * python/py-frame.c: Remove 'user-regs.h' include.
5340 (frapy_read_register): Rewrite to make use of
5341 gdbpy_parse_register_id.
5342 * python/py-registers.c (gdbpy_parse_register_id): New function,
5343 moved here from python/py-unwind.c. Updated the return type, and
5344 also accepts register descriptor objects.
5345 * python/py-unwind.c: Remove 'user-regs.h' include.
5346 (pyuw_parse_register_id): Moved to python/py-registers.c.
5347 (unwind_infopy_add_saved_register): Update to use
5348 gdbpy_parse_register_id.
5349 (pending_framepy_read_register): Likewise.
5350 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5351
5352 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5353
5354 * python/py-registers.c: Add 'user-regs.h' include.
5355 (register_descriptor_iter_find): New function.
5356 (register_descriptor_iterator_object_methods): New static global
5357 methods array.
5358 (register_descriptor_iterator_object_type): Add pointer to methods
5359 array.
5360
5361 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5362
5363 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5364 for all architectures on FreeBSD 11.3 and later.
5365
5366 2020-07-27 Tom Tromey <tromey@adacore.com>
5367
5368 * gcore.h (load_corefile): Don't declare.
5369
5370 2020-07-27 Tom de Vries <tdevries@suse.de>
5371
5372 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5373 * config.in: Regenerate.
5374 * configure: Regenerate.
5375
5376 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5377
5378 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5379 ws2tcpip.h. When checking whether socklen_t type is defined, use
5380 ws2tcpip.h if it is available and sys/socket.h isn't.
5381 * configure: Regenerate.
5382 * config.in: Regenerate.
5383
5384 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5385
5386 PR fortran/23051
5387 PR fortran/26139
5388 * valops.c (value_ind): Pass address to
5389 readjust_indirect_value_type.
5390 * value.c (readjust_indirect_value_type): Make parameter
5391 non-const, and add extra address parameter. Resolve original type
5392 before using it.
5393 * value.h (readjust_indirect_value_type): Update function
5394 signature and comment.
5395
5396 2020-07-25 Tom de Vries <tdevries@suse.de>
5397
5398 PR symtab/26243
5399 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5400 entries.
5401
5402 2020-07-24 Aaron Merey <amerey@redhat.com>
5403
5404 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5405 * configure: Rebuild.
5406
5407 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5408
5409 PR corefiles/26294
5410 * corelow.c (_initialize_corelow): Add period to help text
5411 for "maintenance print core-file-backed-mappings".
5412
5413 2020-07-23 Pedro Alves <pedro@palves.net>
5414
5415 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5416 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5417 meanwhile.
5418 * frame.c (frame_cache_generation, get_frame_cache_generation):
5419 New.
5420 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5421 (get_prev_frame_if_no_cycle): On exception, don't touch
5422 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5423 * frame.h (get_frame_cache_generation): Declare.
5424
5425 2020-07-23 Tom de Vries <tdevries@suse.de>
5426
5427 PR tui/26282
5428 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5429 New default constructor.
5430
5431 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5432
5433 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5434 exclude non-statement entries.
5435
5436 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5437
5438 * NEWS (New commands): Mention new command
5439 "maintenance print core-file-backed-mappings".
5440
5441 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5442
5443 * corelow.c (gdbcmd.h): Include.
5444 (core_target::info_proc_mappings): New method.
5445 (get_current_core_target): New function.
5446 (maintenance_print_core_file_backed_mappings): New function.
5447 (_initialize_corelow): Add core-file-backed-mappings to
5448 "maint print" commands.
5449
5450 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5451
5452 * linux-tdep.c (dump_note_entry_p): New function.
5453 (linux_dump_mapping_p_ftype): New typedef.
5454 (linux_find_memory_regions_full): Add new parameter,
5455 should_dump_mapping_p.
5456 (linux_find_memory_regions): Adjust call to
5457 linux_find_memory_regions_full.
5458 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5459 call to linux_find_memory_regions_full.
5460
5461 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5462
5463 * corelow.c (solist.h, unordered_map): Include.
5464 (class core_target): Add field m_core_file_mappings and
5465 method build_file_mappings.
5466 (core_target::core_target): Call build_file_mappings.
5467 (core_target::~core_target): Free memory associated with
5468 m_core_file_mappings.
5469 (core_target::build_file_mappings): New method.
5470 (core_target::xfer_partial): Use m_core_file_mappings
5471 for memory transfers.
5472 * linux-tdep.c (linux_read_core_file_mappings): New
5473 function.
5474 (linux_core_info_proc_mappings): Rewrite to use
5475 linux_read_core_file_mappings.
5476 (linux_init_abi): Register linux_read_core_file_mappings.
5477
5478 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5479
5480 * arch-utils.c (default_read_core_file_mappings): New function.
5481 * arch-utils.c (default_read_core_file_mappings): Declare.
5482 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5483 * gdbarch.h, gdbarch.c: Regenerate.
5484
5485 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5486
5487 PR corefiles/25631
5488 * corelow.c (core_target:xfer_partial): Revise
5489 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5490 case after first checking the stratum beneath the core
5491 target.
5492 (has_all_memory): Return true.
5493 * target.c (raw_memory_xfer_partial): Revise comment
5494 regarding use of has_all_memory.
5495
5496 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5497
5498 * exec.h (section_table_xfer_memory): Revise declaration,
5499 replacing section name parameter with an optional callback
5500 predicate.
5501 * exec.c (section_table_xfer_memory): Likewise.
5502 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5503 of section_table_xfer_memory.
5504
5505 2020-07-22 Tom Tromey <tromey@adacore.com>
5506
5507 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5508 lookup_symbol_search_name.
5509
5510 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5511
5512 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5513 redundant local variable.
5514 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5515 reference, not pointer, update code accordingly.
5516
5517 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5518 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5519
5520 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5521 * jit.c (jit_breakpoint_re_set_internal): Use the
5522 `skip_jit_symbol_lookup` field.
5523
5524 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5525 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5526
5527 * jit.c (jit_read_descriptor): Define the descriptor address once,
5528 use twice.
5529 (jit_breakpoint_deleted): Move the declaration of the loop variable
5530 `iter` into the loop header.
5531 (jit_breakpoint_re_set_internal): Move the declaration of the local
5532 variable `objf_data` to the first point of definition.
5533 (jit_event_handler): Move the declaration of local variables
5534 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5535 Rename `objf` to `jited`.
5536
5537 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5538
5539 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5540 Remove.
5541 * jit.c (get_jiter_objfile_data): Update.
5542
5543 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5544 Simon Marchi <simon.marchi@polymtl.ca>
5545
5546 * jit.c (struct jit_program_space_data): Remove.
5547 (jit_program_space_key): Remove.
5548 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5549 stuff.
5550 (get_jit_program_space_data): Remove.
5551 (jit_breakpoint_deleted): Iterate on all of the program space's
5552 objfiles.
5553 (jit_inferior_init): Likewise.
5554 (jit_breakpoint_re_set_internal): Likewise. Also change return
5555 type to void.
5556 (jit_breakpoint_re_set): Pass current_program_space to
5557 jit_breakpoint_re_set_internal.
5558
5559 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5560
5561 * jit.h (struct jiter_objfile_data) <cached_code_address,
5562 jit_breakpoint>: Move to here from ...
5563 * jit.c (jit_program_space_data): ... here.
5564 (jiter_objfile_data::~jiter_objfile_data): Update.
5565 (jit_breakpoint_deleted): Update.
5566 (jit_breakpoint_re_set_internal): Update.
5567
5568 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5569
5570 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5571 checks.
5572 (jit_read_descriptor): Remove NULL check.
5573 (jit_event_handler): Add an assertion.
5574
5575 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5576
5577 * jit.h (struct jit_objfile_data): Split into...
5578 (struct jiter_objfile_data): ... this ...
5579 (struct jited_objfile_data): ... and this.
5580 * objfiles.h (struct objfile) <jit_data>: Remove.
5581 <jiter_data, jited_data>: New fields.
5582 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5583 (jiter_objfile_data::~jiter_objfile_data): ... this.
5584 (get_jit_objfile_data): Rename to ...
5585 (get_jiter_objfile_data): ... this.
5586 (add_objfile_entry): Update.
5587 (jit_read_descriptor): Use get_jiter_objfile_data.
5588 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5589 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5590 (jit_inferior_exit_hook): Use objfile's jited_data field.
5591
5592 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5593
5594 * jit.h: Forward-declare `struct minimal_symbol`.
5595 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5596 constructor, destructor, and an objfile* field.
5597 * jit.c (jit_objfile_data): Remove.
5598 (struct jit_objfile_data): Migrate from here to jit.h.
5599 (jit_objfile_data::~jit_objfile_data): New destructor
5600 implementation with code moved from free_objfile_data.
5601 (free_objfile_data): Delete.
5602 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5603 (jit_find_objf_with_entry_addr): Ditto.
5604 (jit_inferior_exit_hook): Ditto.
5605 (_initialize_jit): Remove the call to
5606 register_objfile_data_with_cleanup.
5607 * objfiles.h (struct objfile) <jit_data>: New field.
5608
5609 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5610
5611 * jit.h: Forward-declare `struct objfile`.
5612 (jit_event_handler): Add a second parameter, the JITer objfile.
5613 * jit.c (jit_read_descriptor): Change the signature to take the
5614 JITer objfile as an argument instead of the jit_program_space_data.
5615 (jit_inferior_init): Update the call to jit_read_descriptor.
5616 (jit_event_handler): Use the new JITer objfile argument when calling
5617 jit_read_descriptor.
5618 * breakpoint.c (handle_jit_event): Update the call to
5619 jit_event_handler to pass the JITer objfile.
5620
5621 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5622
5623 * gdbarch.c: Regenerate.
5624 * gdbarch.h: Regenerate.
5625 * gdbarch.sh (handle_segmentation_fault): Remove method.
5626 * infrun.c (handle_segmentation_fault): Remove.
5627 (print_signal_received_reason): Remove call to
5628 handle_segmentation_fault.
5629
5630 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5631
5632 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5633 Rename to sparc64_linux_report_signal_info and add siggnal
5634 argument.
5635 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5636 instead of sparc64_linux_handle_segmentation_fault.
5637
5638 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5639
5640 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5641 i386_linux_report_signal_info instead of
5642 i386_linux_handle_segmentation_fault.
5643 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5644 to i386_linux_report_signal_info and add siggnal argument.
5645 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5646 of i386_linux_handle_segmentation_fault.
5647 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5648 to i386_linux_report_signal_info and add siggnal argument.
5649
5650 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5651
5652 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5653 hook if present.
5654
5655 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5656
5657 * gdbarch.c: Regenerate.
5658 * gdbarch.h: Regenerate.
5659 * gdbarch.sh (report_signal_info): New method.
5660 * infrun.c (print_signal_received_reason): Invoke gdbarch
5661 report_signal_info hook if present.
5662
5663 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5664
5665 * python/py-registers.c : Add 'unordered_map' include.
5666 (gdbpy_new_reggroup): Renamed to...
5667 (gdbpy_get_reggroup): ...this. Update to only create register
5668 group descriptors when needed.
5669 (gdbpy_reggroup_iter_next): Update.
5670
5671 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5672
5673 * python/py-registers.c (gdbpy_register_object_data): New static
5674 global.
5675 (gdbpy_register_object_data_init): New function.
5676 (gdbpy_new_register_descriptor): Renamed to...
5677 (gdbpy_get_register_descriptor): ...this, and update to reuse
5678 existing register descriptors where possible.
5679 (gdbpy_register_descriptor_iter_next): Update.
5680 (gdbpy_initialize_registers): Register new gdbarch data.
5681
5682 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5683
5684 * linux-nat.c (stopped_pids): Make static.
5685
5686 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5687
5688 PR ada/26235
5689 * gdbtypes.c (ada_discrete_type_low_bound,
5690 ada_discrete_type_high_bound): Handle undefined bounds.
5691
5692 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5693
5694 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5695 declaration.
5696 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5697 function.
5698
5699 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5700
5701 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5702 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5703 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5704 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5705 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5706 method.
5707
5708 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5709
5710 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5711 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5712 which are deprecated in Guile 3.0.
5713 * configure.ac (try_guile_versions): Add "guile-3.0".
5714 * configure (try_guile_versions): Regenerate.
5715 * NEWS: Update entry.
5716
5717 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5718 Doug Evans <dje@google.com>
5719
5720 PR gdb/21104
5721 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5722 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5723 USING_GUILE_BEFORE_2_2.
5724 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5725 Change type to 'scm_t_port_type *'.
5726 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5727 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5728 parameter and honor it. Update callers.
5729 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5730 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5731 functions.
5732 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5733 USING_GUILE_BEFORE_2_2.
5734 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5735 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5736 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5737 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5738 and 'SCM_PORT_TYPE'.
5739 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5740 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5741 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5742 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5743 [!USING_GUILE_BEFORE_2_2]: New functions.
5744 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5745 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5746 'gdbscm_memory_port_read'.
5747 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5748 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5749 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5750 function.
5751 (ioscm_init_memory_port): Remove.
5752 (ioscm_init_memory_port_stream): New function
5753 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5754 function.
5755 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5756 Return scm_from_uint (0).
5757 (gdbscm_set_memory_port_read_buffer_size_x)
5758 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5759 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5760 Return scm_from_uint (0).
5761 (gdbscm_set_memory_port_write_buffer_size_x)
5762 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5763 * configure.ac (try_guile_versions): Add "guile-2.2".
5764 * configure: Regenerate.
5765 * NEWS: Add entry.
5766
5767 2020-07-18 Tom Tromey <tom@tromey.com>
5768
5769 * linux-nat.c (linux_multi_process): Remove.
5770 (linux_nat_target::supports_multi_process): Return true.
5771
5772 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5773
5774 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5775 (riscv_lookup_target_description): Return pointer out of
5776 unique_ptr.
5777 * target-descriptions.c (allocate_target_description): Add
5778 comment.
5779 (target_desc_deleter::operator()): Likewise.
5780 * target-descriptions.h (struct target_desc_deleter): Moved to
5781 gdbsupport/tdesc.h.
5782 (target_desc_up): Likewise.
5783
5784 2020-07-17 Tom Tromey <tromey@adacore.com>
5785
5786 * linux-nat.c (linux_nat_target::supports_non_stop)
5787 (linux_nat_target::always_non_stop_p): Use "true".
5788 (linux_nat_target::supports_disable_randomization): Use "true" and
5789 "false".
5790
5791 2020-07-16 Caroline Tice <cmtice@google.com>
5792
5793 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5794 (RNGLIST_HEADER_SIZE64): New constant definition.
5795 (struct dwop_section_names): Add rnglists_dwo.
5796 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5797 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5798 (struct dwo_sections): Add rnglists field.
5799 (read_attribut_reprocess): Add tag parameter.
5800 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5801 (cu_debug_rnglists_section): New function (decl & definition).
5802 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5803 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5804 die whose range is being checked; get rnglist section from
5805 cu_debug_rnglists_section, to get from either objfile or dwo file as
5806 appropriate. Add cases for DW_RLE_base_addressx,
5807 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5808 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5809 test inside if-condition and updating complaint message.
5810 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5811 dwarf2_rnglists_process.
5812 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5813 dwarf2_ranges_process.
5814 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5815 need_ranges_base and update comment appropriately. Also pass die tag
5816 to dwarf2_ranges_read.
5817 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5818 need_ranges_base and update comment appropriately. Also pass die tag
5819 to dwarf2_ranges_process.
5820 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5821 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5822 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5823 need_ranges_base and update comment appropriately. Also pass die tag
5824 to read_attribute_reprocess and dwarf2_ranges_read.
5825 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5826 and update function comment appropriately.
5827 (read_loclist_index): Call read_loclists_rnglists_header instead of
5828 read_loclist_header.
5829 (read_rnglist_index): New function.
5830 (read_attribute_reprocess): Add tag parameter. Add code for
5831 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5832 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5833
5834 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5835
5836 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5837 being resolved.
5838
5839 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5840
5841 * arch-utils.c (show_architecture): Update formatting of messages.
5842
5843 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5844
5845 * gdbtypes.h (struct type) <bounds>: Handle array and string
5846 types.
5847 * ada-lang.c (assign_aggregate): Use type::bounds on
5848 array/string type.
5849 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5850 * c-varobj.c (c_number_of_children): Likewise.
5851 (c_describe_child): Likewise.
5852 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5853 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5854 (f_type_print_base): Likewise.
5855 * f-valprint.c (f77_array_offset_tbl): Likewise.
5856 (f77_get_upperbound): Likewise.
5857 (f77_print_array_1): Likewise.
5858 * guile/scm-type.c (gdbscm_type_range): Likewise.
5859 * m2-typeprint.c (m2_array): Likewise.
5860 (m2_is_long_set_of_type): Likewise.
5861 * m2-valprint.c (get_long_set_bounds): Likewise.
5862 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5863 * python/py-type.c (typy_range): Likewise.
5864 * rust-lang.c (rust_internal_print_type): Likewise.
5865 * type-stack.c (type_stack::follow_types): Likewise.
5866 * valarith.c (value_subscripted_rvalue): Likewise.
5867 * valops.c (value_cast): Likewise.
5868
5869 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5870
5871 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5872 callers to use the equivalent accessor methods.
5873
5874 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5875
5876 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5877 (struct type) <bit_stride>: New method.
5878 (TYPE_BIT_STRIDE): Remove.
5879 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5880
5881 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5882
5883 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5884 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5885 callers to use the equivalent accessor methods instead.
5886
5887 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5888
5889 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5890 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5891 callers to use the equivalent accessor methods instead.
5892
5893 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5896 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5897 to use dynamic_prop::kind.
5898
5899 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5900
5901 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5902 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5903 to get the bound property's kind and check against
5904 PROP_UNDEFINED.
5905
5906 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5907
5908 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5909 all callers to use type::range_bounds followed by
5910 dynamic_prop::{low,high}.
5911
5912 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5913
5914 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5915 const_val, set_const_val, baton, set_locexpr, set_loclist,
5916 set_addr_offset, variant_parts, set_variant_parts,
5917 original_type, set_original_type>: New methods.
5918 <kind>: Rename to...
5919 <m_kind>: ... this. Update all users to use the new methods
5920 instead.
5921 <data>: Rename to...
5922 <m_data>: ... this. Update all users to use the new methods
5923 instead.
5924
5925 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5926
5927 * gdbtypes.c (get_discrete_bounds): Return failure if
5928 the range type's bounds are not both defined and constant
5929 values.
5930 (get_array_bounds): Update comment. Remove undefined bound check.
5931
5932 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5933
5934 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5935 the type::bounds method directly.
5936
5937 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5938
5939 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5940 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5941 are used to set the range type's bounds to use set_bounds.
5942
5943 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5944
5945 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5946
5947 2020-07-10 Pedro Alves <pedro@palves.net>
5948
5949 * gdbthread.h (inferior_ref): Define.
5950 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5951 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5952 * thread.c
5953 (scoped_restore_current_thread::restore):
5954 Adjust to gdb::ref_ptr.
5955 (scoped_restore_current_thread::~scoped_restore_current_thread):
5956 Remove manual decref handling.
5957 (scoped_restore_current_thread::scoped_restore_current_thread):
5958 Adjust to use
5959 inferior_ref::new_reference/thread_info_ref::new_reference.
5960 Incref the thread before calling get_frame_id instead of after.
5961 Let TARGET_CLOSE_ERROR propagate.
5962
5963 2020-07-10 Pedro Alves <pedro@palves.net>
5964
5965 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5966 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5967 NOT_AVAILABLE_ERROR.
5968 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5969 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5970
5971 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5972 Pedro Alves <pedro@palves.net>
5973
5974 PR gdb/26199
5975 * infrun.c (threads_are_resumed_pending_p): Delete.
5976 (do_target_wait): Remove threads_are_executing and
5977 threads_are_resumed_pending_p checks from the inferior_matches
5978 lambda. Update comments.
5979
5980 2020-07-10 Pedro Alves <pedro@palves.net>
5981
5982 PR gdb/26199
5983 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5984 executing threads.
5985
5986 2020-07-10 Pedro Alves <pedro@palves.net>
5987
5988 PR gdb/26199
5989 * infrun.c (handle_no_resumed): Handle multiple targets.
5990
5991 2020-07-10 Pedro Alves <pedro@palves.net>
5992
5993 PR gdb/26199
5994 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5995 target_is_async_p.
5996
5997 2020-07-10 Pedro Alves <pedro@palves.net>
5998
5999 PR gdb/26199
6000 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6001 threads, not all threads.
6002
6003 2020-07-10 Pedro Alves <pedro@palves.net>
6004
6005 PR gdb/26199
6006 * remote.c (remote_target::open_1): Pass remote target pointer as
6007 data to create_async_event_handler.
6008 (remote_async_inferior_event_handler): Mark async event handler
6009 before returning if the remote target still has either pending
6010 events or unacknowledged notifications.
6011
6012 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6013
6014 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6015 declaration.
6016 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6017 function.
6018
6019 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6020
6021 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6022 inferior_ptid.
6023
6024 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6025
6026 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6027 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6028 AT_FREEBSD_PS_STRINGS.
6029
6030 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6031
6032 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6033 of debugfile path on Windows.
6034
6035 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6036
6037 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6038 argument to 'data'.
6039
6040 2020-07-08 Tom Tromey <tromey@adacore.com>
6041
6042 * ada-lang.c (ada_exception_message_1): Use read_memory.
6043
6044 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6045
6046 PR python/22748
6047 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6048 special handling for inline frames.
6049 * findvar.c (value_of_register_lazy): Skip inline frames when
6050 creating lazy register values.
6051 * frame.c (frame_id_computed_p): Delete definition.
6052 * frame.h (frame_id_computed_p): Delete declaration.
6053
6054 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6055
6056 * NEWS: Mention additions to Python API.
6057 * python/py-arch.c (archpy_register_groups): New function.
6058 (arch_object_methods): Add 'register_groups' method.
6059 * python/py-registers.c (reggroup_iterator_object): New struct.
6060 (reggroup_object): New struct.
6061 (gdbpy_new_reggroup): New function.
6062 (gdbpy_reggroup_to_string): New function.
6063 (gdbpy_reggroup_name): New function.
6064 (gdbpy_reggroup_iter): New function.
6065 (gdbpy_reggroup_iter_next): New function.
6066 (gdbpy_new_reggroup_iterator): New function
6067 (gdbpy_initialize_registers): Register new types.
6068 (reggroup_iterator_object_type): Define new Python type.
6069 (gdbpy_reggroup_getset): New static global.
6070 (reggroup_object_type): Define new Python type.
6071 * python/python-internal.h
6072
6073 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6074
6075 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6076 * python/py-arch.c (archpy_registers): New function.
6077 (arch_object_methods): Add 'registers' method.
6078 * python/py-registers.c: New file.
6079 * python/python-internal.h
6080 (gdbpy_new_register_descriptor_iterator): Declare.
6081 (gdbpy_initialize_registers): Declare.
6082 * python/python.c (do_start_initialization): Call
6083 gdbpy_initialize_registers.
6084 * NEWS: Mention additions to the Python API.
6085
6086 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6087
6088 * NEWS: Mention new Python API method.
6089 * python/py-unwind.c (pending_framepy_architecture): New function.
6090 (pending_frame_object_methods): Add architecture method.
6091
6092 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6093
6094 * gdbarch.c: Regenerate.
6095 * gdbarch.h: Regenerate.
6096 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6097 (gdbarch_data): Use internal_error for the case where
6098 deprecated_set_gdbarch_data was originally needed.
6099 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6100 and use passed in obstack.
6101 (libunwind_frame_set_descr): Should no longer get back NULL from
6102 gdbarch_data.
6103 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6104 type.
6105 * user-regs.c (user_regs_init): Update parameters, and use passed
6106 in obstack.
6107 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6108 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6109
6110 2020-07-06 Tom de Vries <tdevries@suse.de>
6111
6112 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6113 End-Of-Sequence in lte_is_less_than.
6114 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6115 "gdb: Don't reorder line table entries too much when sorting".
6116
6117 2020-07-06 Tom de Vries <tdevries@suse.de>
6118
6119 PR tui/26205
6120 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6121
6122 2020-07-05 Tom de Vries <tdevries@suse.de>
6123
6124 PR build/26187
6125 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6126 std::uncaught_exceptions instead of deprecated
6127 std::uncaught_exception.
6128
6129 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6130
6131 * macroexp.h (macro_stringify): Return
6132 gdb::unique_xmalloc_ptr<char>.
6133 * macroexp.c (macro_stringify): Likewise.
6134 * macrotab.c (fixup_definition): Update.
6135
6136 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6137
6138 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6139 (lex_one_token): Update.
6140 * macroexp.c (struct macro_buffer) <release>: Return
6141 gdb::unique_xmalloc_ptr<char>.
6142 (macro_stringify): Update.
6143 (macro_expand): Update.
6144 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6145 * macroexp.h (macro_expand_next): Likewise.
6146
6147 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6148
6149 * macroexp.h (macro_lookup_ftype): Remove.
6150 (macro_expand, macro_expand_once, macro_expand_next): Remove
6151 lookup function parameters, add scope parameter.
6152 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6153 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6154 * macroscope.h (standard_macro_lookup): Change parameter type
6155 to macro_scope.
6156 * macroscope.c (standard_macro_lookup): Likewise.
6157 * c-exp.y (lex_one_token): Update.
6158 * macrocmd.c (macro_expand_command): Likewise.
6159 (macro_expand_once_command): Likewise.
6160
6161 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6162
6163 * inf-loop.c (inferior_event_handler): Remove client_data param.
6164 * inf-loop.h (inferior_event_handler): Likewise.
6165 * infcmd.c (step_1): Adjust.
6166 * infrun.c (proceed): Adjust.
6167 (fetch_inferior_event): Remove client_data param.
6168 (infrun_async_inferior_event_handler): Adjust.
6169 * infrun.h (fetch_inferior_event): Remove `void *` param.
6170 * linux-nat.c (handle_target_event): Adjust.
6171 * record-btrace.c (record_btrace_handle_async_inferior_event):
6172 Adjust.
6173 * record-full.c (record_full_async_inferior_event_handler):
6174 Adjust.
6175 * remote.c (remote_async_inferior_event_handler): Adjust.
6176
6177 2020-07-01 Tom Tromey <tom@tromey.com>
6178
6179 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6180 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6181
6182 2020-07-01 Tom Tromey <tom@tromey.com>
6183
6184 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6185 tui_gen_win_info.
6186 (tui_win_info::make_window): Merge with
6187 tui_gen_win_info::make_window.
6188 (tui_win_info::make_visible): Move from tui_gen_win_info.
6189 * tui/tui-win.c (tui_win_info::max_width): Move from
6190 tui_gen_win_info.
6191 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6192 type.
6193 <window_factory>: Likewise.
6194 * tui/tui-layout.c (tui_win_info::resize): Move from
6195 tui_gen_win_info.
6196 (make_standard_window): Change return type.
6197 (get_locator_window, tui_get_window_by_name): Likewise.
6198 (tui_layout_window::apply): Remove a cast.
6199 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6200 (struct tui_win_info): Merge with tui_gen_win_info.
6201 (struct tui_gen_win_info): Remove.
6202
6203 2020-07-01 Tom Tromey <tom@tromey.com>
6204
6205 * tui/tui-stack.h (struct tui_locator_window): Derive from
6206 tui_win_info.
6207 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6208 <can_box>: New method.
6209
6210 2020-07-01 Tom Tromey <tom@tromey.com>
6211
6212 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6213
6214 2020-07-01 Tom Tromey <tom@tromey.com>
6215
6216 * tui/tui-regs.c (tui_data_window::display_registers_from)
6217 (tui_data_window::display_registers_from)
6218 (tui_data_window::first_data_item_displayed)
6219 (tui_data_window::delete_data_content_windows): Update.
6220 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6221 Remove.
6222 (tui_data_window::check_register_values): Update.
6223 (tui_data_item_window::rerender): Add parameters. Update.
6224 (tui_data_item_window::refresh_window): Remove.
6225 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6226 virtual.
6227 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6228 tui_gen_win_info.
6229 <refresh_window, max_height, min_height>: Remove.
6230 <rerender>: Add parameters.
6231 <x, y, visible>: New members.
6232 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6233 <m_item_width>: New member.
6234
6235 2020-07-01 Tom Tromey <tom@tromey.com>
6236
6237 * tui/tui-regs.c (tui_data_window::show_register_group)
6238 (tui_data_window::check_register_values): Update.
6239 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6240 from item_no.
6241
6242 2020-07-01 Tom Tromey <tom@tromey.com>
6243
6244 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6245 useless "if".
6246
6247 2020-07-01 Tom Tromey <tom@tromey.com>
6248
6249 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6250 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6251
6252 2020-07-01 Tom Tromey <tom@tromey.com>
6253
6254 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6255 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6256 (struct tui_line_or_address): Move from tui-data.h.
6257 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6258 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6259 (tui_cmd_window, tui_source_window_base, tui_source_window)
6260 (tui_disasm_window): Don't declare.
6261 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6262 to tui-winsource.h.
6263 (SINGLE_KEY): Move to tui-stack.c.
6264
6265 2020-07-01 Tom Tromey <tom@tromey.com>
6266
6267 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6268 std::string.
6269 * tui/tui-regs.c (class tab_expansion_file): New.
6270 (tab_expansion_file::write): New method.
6271 (tui_register_format): Change return type. Use
6272 tab_expansion_file.
6273 (tui_get_register, tui_data_window::display_registers_from)
6274 (tui_data_item_window::rerender): Update.
6275 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6276 * tui/tui-io.c (tui_expand_tabs): Remove.
6277
6278 2020-07-01 Tom Tromey <tom@tromey.com>
6279
6280 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6281
6282 2020-07-01 Fangrui Song <maskray@google.com>
6283
6284 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6285
6286 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6287
6288 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6289 forms for DW_AT_associated and DW_AT_allocated attributes,
6290 which is already checked in function attr_to_dynamic_prop.
6291
6292 2020-06-30 Tom Tromey <tromey@adacore.com>
6293
6294 * dwarf2/read.c (quirk_rust_enum): Correctly call
6295 alloc_rust_variant for default-less enum.
6296
6297 2020-06-30 Tom Tromey <tromey@adacore.com>
6298
6299 PR build/26183:
6300 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6301 gdb::to_string.
6302
6303 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6304
6305 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6306 * gdbarch.h: Re-generate.
6307
6308 2020-06-28 Tom Tromey <tom@tromey.com>
6309
6310 * command.h (cmd_types): Remove.
6311 (cmd_type): Don't declare.
6312 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6313 typedef.
6314 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6315 * cli/cli-decode.c (cmd_type): Remove.
6316
6317 2020-06-27 Pedro Alves <palves@redhat.com>
6318
6319 * fork-child.c (prefork_hook): Adjust.
6320 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6321 Delete.
6322 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6323 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6324 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6325 Remove declarations.
6326 (struct inferior) <set_tty, tty>: New methods.
6327 (struct inferior) <terminal>: Rename to ...
6328 (struct inferior) <m_terminal>: ... this and make private.
6329 * main.c (captured_main_1): Adjust.
6330 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6331 (mi_cmd_inferior_tty_show): Adjust.
6332 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6333 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6334
6335 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6336
6337 * configure.ac: Add --enable-libctf: handle --disable-static
6338 properly.
6339 * acinclude.m4: sinclude ../config/enable.m4.
6340 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6341 (LIBCTF): Substitute in.
6342 (CTF_DEPS): New, likewise.
6343 (CLIBS): libctf needs symbols from libbfd: move earlier.
6344 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6345 flags.
6346 * ctfread.c: Surround in ENABLE_LIBCTF.
6347 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6348 * configure: Regenerate.
6349 * config.in: Likewise.
6350
6351 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6352
6353 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6354
6355 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6356
6357 * inferior.h (struct inferior) <terminal>: Change type to
6358 gdb::unique_xmalloc_ptr<char>.
6359 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6360 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6361 field, adjust to unique pointer.
6362 (get_inferior_io_terminal): Adjust to unique pointer.
6363
6364 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6365
6366 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6367 registers, not just the known core set of registers.
6368
6369 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6370
6371 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6372 fflags, frm, and fcsr registers.
6373 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6374 restore groups.
6375 (riscv_tdesc_unknown_reg): New function.
6376 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6377 tdesc_use_registers.
6378 * riscv-tdep.h (struct gdbarch_tdep): Add
6379 unknown_csrs_first_regnum, unknown_csrs_count,
6380 duplicate_fflags_regnum, duplicate_frm_regnum, and
6381 duplicate_fcsr_regnum fields.
6382
6383 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6384
6385 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6386 callback, use the callback (when not null) to help number unknown
6387 registers.
6388 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6389 (tdesc_use_registers): Add extra parameter to declaration.
6390
6391 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6392
6393 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6394 in the file.
6395 (class riscv_pending_register_alias): Likewise.
6396 (riscv_register_feature::register_info): Change 'required_p' field
6397 to 'required', and change its type. Add 'check' member function.
6398 (riscv_register_feature::register_info::check): Define new member
6399 function.
6400 (riscv_xreg_feature): Change initialisation of 'required' field.
6401 (riscv_freg_feature): Likewise.
6402 (riscv_virtual_feature): Likewise.
6403 (riscv_csr_feature): Likewise.
6404 (riscv_check_tdesc_feature): Take extra parameter, the csr
6405 tdesc_feature, rewrite the function to use the new
6406 riscv_register_feature::register_info::check function.
6407 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6408
6409 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6410
6411 * features/Makefile: Remove all references to the deleted files
6412 below.
6413 * features/riscv/32bit-csr.c: Deleted.
6414 * features/riscv/32bit-csr.xml: Deleted.
6415 * features/riscv/64bit-csr.c: Deleted.
6416 * features/riscv/64bit-csr.xml: Deleted.
6417 * features/riscv/rebuild-csr-xml.sh: Deleted.
6418
6419 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6420
6421 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6422 whitespace error for declaration of names member variable.
6423 (struct riscv_register_feature): Add new prefer_first_name member
6424 variable, and fix whitespace error in declaration of registers.
6425 (riscv_xreg_feature): Initialize prefer_first_name field.
6426 (riscv_freg_feature): Likewise.
6427 (riscv_virtual_feature): Likewise.
6428 (riscv_csr_feature): Likewise.
6429 (riscv_register_name): Expand on comments. Remove register name
6430 modifications for CSR and virtual registers.
6431
6432 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6433
6434 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6435 errors.
6436
6437 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6438
6439 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6440 riscv-opc.h.
6441 (class riscv_pending_register_alias): New class.
6442 (riscv_check_tdesc_feature): Take vector of pending aliases and
6443 populate it as appropriate.
6444 (riscv_setup_register_aliases): Delete.
6445 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6446 to riscv_check_tdesc_feature in all cases. Use the vector to
6447 create the register aliases.
6448
6449 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6450
6451 * sol2-tdep.c (sol2_static_transform_name): Remove.
6452 (sol2_init_abi): Don't register it.
6453 * gdbarch.sh (static_transform_name): Remove.
6454 * gdbarch.c, gdbarch.h: Regenerate.
6455
6456 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6457 gdbarch_static_transform_name.
6458 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6459 * stabsread.c (define_symbol) <'X'>: Remove.
6460 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6461 handling.
6462 <'V'>: Likewise.
6463 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6464 <'S'>: Remove call to gdbarch_static_transform_name.
6465
6466 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6467
6468 * procfs.c (procfs_pre_trace): New function.
6469 (procfs_target::create_inferior): Pass it to fork_inferior.
6470
6471 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6472
6473 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6474 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6475 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6476 sol2-tdep.o, sparc-sol2-tdep.o.
6477 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6478 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6479 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6480 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6481
6482 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6483
6484 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6485 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6486 Call sol2_init_abi.
6487 Remove calls to set_gdbarch_skip_solib_resolver,
6488 set_gdbarch_core_pid_to_str.
6489 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6490 (i386_sol2_static_transform_name): Remove.
6491 (i386_sol2_init_abi): Call sol2_init_abi.
6492 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6493 set_gdbarch_static_transform_name,
6494 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6495 Use sol2_sigtramp_p.
6496 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6497 (sol2_sigtramp_p): New function.
6498 (sol2_static_transform_name): New function.
6499 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6500 (sol2_init_abi): New function.
6501 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6502 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6503 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6504 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6505 (sparc_sol2_static_transform_name): Remove.
6506 (sparc32_sol2_init_abi): Call sol2_init_abi.
6507 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6508 set_gdbarch_static_transform_name,
6509 set_gdbarch_skip_solib_resolver,
6510 set_gdbarch_core_pid_to_str.
6511 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6512 (sparc_sol2_static_transform_name): Remove
6513 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6514 call sol2_sigtramp_p.
6515 (sparc64_sol2_init_abi): Call sol2_init_abi.
6516 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6517 set_gdbarch_static_transform_name,
6518 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6519
6520 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6521
6522 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6523 * exec.c (validate_exec_file): If from_tty, set both
6524 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6525 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6526 and from_tty, unconditionally ask a confirmation.
6527
6528 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6529
6530 * target-descriptions.c (tdesc_architecture_name): Protect against
6531 NULL pointer dereference.
6532 (maint_print_xml_tdesc_cmd): New function.
6533 (_initialize_target_descriptions): Register new 'maint print
6534 xml-tdesc' command and give it the filename completer.
6535 * NEWS: Mention new 'maint print xml-tdesc' command.
6536
6537 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6538
6539 * target-descriptions.c (class tdesc_compatible_info): New class.
6540 (struct target_desc): Change type of compatible vector.
6541 (tdesc_compatible_p): Update for change in type of
6542 target_desc::compatible.
6543 (tdesc_compatible_info_list): New function.
6544 (tdesc_compatible_info_arch_name): New function.
6545 (tdesc_add_compatible): Update for change in type of
6546 target_desc::compatible.
6547 (print_c_tdesc::visit_pre): Likewise.
6548
6549 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6550
6551 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6552 whitespace to underscore.
6553 (maint_print_c_tdesc_cmd): Use fake filename for target
6554 descriptions that came from the target.
6555 (_initialize_target_descriptions): Add filename command completion
6556 for 'maint print c-tdesc'.
6557
6558 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6559
6560 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6561 lines.
6562
6563 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6564
6565 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6566 lines.
6567 (dwarf2_find_location_expression): Likewise.
6568 (call_site_parameter_matches): Likewise.
6569 (dwarf2_compile_expr_to_ax): Likewise.
6570 (disassemble_dwarf_expression): Likewise.
6571 (loclist_describe_location): Likewise.
6572
6573 2020-06-23 Pedro Alves <palves@redhat.com>
6574
6575 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6576 progspace-and-thread.h. Include scoped-mock-context.h instead.
6577 (register_to_value_test): Use scoped_mock_context.
6578 * regcache.c: Include "scoped-mock-context.h".
6579 (cooked_read_test): Don't error out if a target is already pushed.
6580 Use scoped_mock_context. Adjust.
6581 * scoped-mock-context.h: New file.
6582
6583 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6584
6585 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6586 initializer.
6587 (ada_language::is_string_type_p): New member function.
6588 * c-lang.c (c_language_data): Delete la_is_string_type_p
6589 initializer.
6590 (cplus_language_data): Likewise.
6591 (asm_language_data): Likewise.
6592 (minimal_language_data): Likewise.
6593 * d-lang.c (d_language_data): Likewise.
6594 * f-lang.c (f_is_string_type_p): Delete function, implementation
6595 moved to f_language::is_string_type_p.
6596 (f_language_data): Delete la_is_string_type_p initializer.
6597 (f_language::is_string_type_p): New member function,
6598 implementation from f_is_string_type_p.
6599 * go-lang.c (go_is_string_type_p): Delete function, implementation
6600 moved to go_language::is_string_type_p.
6601 (go_language_data): Delete la_is_string_type_p initializer.
6602 (go_language::is_string_type_p): New member function,
6603 implementation from go_is_string_type_p.
6604 * language.c (language_defn::is_string_type_p): Define new member
6605 function.
6606 (default_is_string_type_p): Make static, add comment copied from
6607 header file.
6608 (unknown_language_data): Delete la_is_string_type_p initializer.
6609 (unknown_language::is_string_type_p): New member function.
6610 (auto_language_data): Delete la_is_string_type_p initializer.
6611 (auto_language::is_string_type_p): New member function.
6612 * language.h (language_data): Delete la_is_string_type_p field.
6613 (language_defn::is_string_type_p): Declare new function.
6614 (default_is_string_type_p): Delete desclaration, move comment to
6615 definition.
6616 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6617 moved to m2_language::is_string_type_p.
6618 (m2_language_data): Delete la_is_string_type_p initializer.
6619 (m2_language::is_string_type_p): New member function,
6620 implementation from m2_is_string_type_p.
6621 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6622 initializer.
6623 * opencl-lang.c (opencl_language_data): Likewise.
6624 * p-lang.c (pascal_is_string_type_p): Delete function,
6625 implementation moved to pascal_language::is_string_type_p.
6626 (pascal_language_data): Delete la_is_string_type_p initializer.
6627 (pascal_language::is_string_type_p): New member function,
6628 implementation from pascal_is_string_type_p.
6629 * rust-lang.c (rust_is_string_type_p): Delete function,
6630 implementation moved to rust_language::is_string_type_p.
6631 (rust_language_data): Delete la_is_string_type_p initializer.
6632 (rust_language::is_string_type_p): New member function,
6633 implementation from rust_is_string_type_p.
6634 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6635 is_string_type_p.
6636
6637 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6638
6639 * ada-lang.c (ada_language_data): Delete la_print_typedef
6640 initializer.
6641 (ada_language::print_typedef): New member function.
6642 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6643 (cplus_language_data): Likewise.
6644 (asm_language_data): Likewise.
6645 (minimal_language_data): Likewise.
6646 * d-lang.c (d_language_data): Likewise.
6647 * f-lang.c (f_language_data): Likewise.
6648 (f_language::print_typedef): New member function.
6649 * go-lang.c (go_language_data): Delete la_print_typedef
6650 initializer.
6651 * language.c (language_defn::print_typedef): Define member
6652 function.
6653 (unknown_language_data): Delete la_print_typedef initializer.
6654 (unknown_language::print_typedef): New member function.
6655 (auto_language_data): Delete la_print_typedef initializer.
6656 (auto_language::print_typedef): New member function.
6657 * language.h (language_data): Delete la_print_typedef field.
6658 (language_defn::print_typedef): Declare new member function.
6659 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6660 (default_print_typedef): Delete declaration.
6661 * m2-lang.c (m2_language_data): Delete la_print_typedef
6662 initializer.
6663 (m2_language::print_typedef): New member function.
6664 * objc-lang.c (objc_language_data): Delete la_print_typedef
6665 initializer.
6666 * opencl-lang.c (opencl_language_data): Likewise.
6667 * p-lang.c (pascal_language_data): Likewise.
6668 (pascal_language::print_typedef): New member function.
6669 * rust-lang.c (rust_print_typedef): Delete function,
6670 implementation moved to rust_language::print_typedef.
6671 (rust_language): Delete la_print_typedef initializer.
6672 (rust_language::print_typedef): New member function,
6673 implementation from rust_print_typedef.
6674 * typeprint.c (default_print_typedef): Delete.
6675
6676 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6677
6678 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6679 (ada_language::printstr): New member function.
6680 * c-lang.c (c_language_data): Delete la_printstr initializer.
6681 (cplus_language_data): Likewise.
6682 (asm_language_data): Likewise.
6683 (minimal_language_data): Likewise.
6684 * d-lang.c (d_language_data): Likewise.
6685 * f-lang.c (f_printstr): Rename to f_language::printstr.
6686 (f_language_data): Delete la_printstr initializer.
6687 (f_language::printstr): New member function, implementation from
6688 f_printstr.
6689 * go-lang.c (go_language_data): Delete la_printstr initializer.
6690 * language.c (language_defn::printstr): Define new member
6691 function.
6692 (unk_lang_printstr): Delete.
6693 (unknown_language_data): Delete la_printstr initializer.
6694 (unknown_language::printstr): New member function.
6695 (auto_language_data): Delete la_printstr initializer.
6696 (auto_language::printstr): New member function.
6697 * language.h (language_data): Delete la_printstr field.
6698 (language_defn::printstr): Declare new member function.
6699 (LA_PRINT_STRING): Update call to printstr.
6700 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6701 (m2_language_data): Delete la_printstr initializer.
6702 (m2_language::printstr): New member function, implementation from
6703 m2_printstr.
6704 * objc-lang.c (objc_language_data): Delete la_printstr
6705 initializer.
6706 * opencl-lang.c (opencl_language_data): Likewise.
6707 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6708 (pascal_language_data): Delete la_printstr initializer.
6709 (pascal_language::printstr): New member function, implementation
6710 from pascal_printstr.
6711 * p-lang.h (pascal_printstr): Delete declaration.
6712 * rust-lang.c (rust_printstr): Update header comment.
6713 (rust_language_data): Delete la_printstr initializer.
6714 (rust_language::printstr): New member function.
6715
6716 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6717
6718 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6719 (ada_language::printchar): New member function.
6720 * c-lang.c (c_language_data): Delete la_printchar initializer.
6721 (cplus_language_data): Likewise.
6722 (asm_language_data): Likewise.
6723 (minimal_language_data): Likewise.
6724 * d-lang.c (d_language_data): Likewise.
6725 * f-lang.c (f_printchar): Rename to f_language::printchar.
6726 (f_language_data): Delete la_printchar initializer.
6727 (f_language::printchar): New member function, implementation from
6728 f_printchar.
6729 * go-lang.c (go_language_data): Delete la_printchar initializer.
6730 * language.c (unk_lang_printchar): Delete.
6731 (language_defn::printchar): Define new member function.
6732 (unknown_language_data): Delete la_printchar initializer.
6733 (unknown_language::printchar): New member function.
6734 (auto_language_data): Delete la_printchar initializer.
6735 (auto_language::printchar): New member function.
6736 * language.h (language_data): Delete la_printchar field.
6737 (language_defn::printchar): Declare new member function.
6738 (LA_PRINT_CHAR): Update call to printchar.
6739 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6740 (m2_language::printchar): New member function.
6741 * objc-lang.c (objc_language_data): Delete la_printchar
6742 initializer.
6743 * opencl-lang.c (opencl_language_data): Likewise.
6744 * p-lang.c (pascal_language_data): Delete la_printchar
6745 initializer.
6746 (pascal_language::printchar): New member function.
6747 * rust-lang.c (rust_printchar): Rename to
6748 rust_language::printchar.
6749 (rust_language_data): Delete la_printchar initializer.
6750 (rust_language::printchar): New member function, implementation
6751 from rust_printchar.
6752
6753 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6754
6755 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6756 (ada_language_data): Delete la_emitchar initializer.
6757 (ada_language::emitchar): New member function, implementation from
6758 emit_char.
6759 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6760 (cplus_language_data): Likewise.
6761 (asm_language_data): Likewise.
6762 (minimal_language_data): Likewise.
6763 * d-lang.c (d_language_data): Likewise.
6764 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6765 (f_language_data): Delete la_emitchar initializer.
6766 (f_language::emitchar): New member function, implementation from
6767 f_emit_char.
6768 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6769 * language.c (unk_lang_emit_char): Delete.
6770 (language_defn::emitchar): New member function definition.
6771 (unknown_language_data): Delete la_emitchar initializer.
6772 (unknown_language::emitchar): New member function.
6773 (auto_language_data): Delete la_emitchar initializer.
6774 (auto_language::emitchar): New member function.
6775 * language.h (language_data): Delete la_emitchar field.
6776 (language_defn::emitchar): New member field declaration.
6777 (LA_EMIT_CHAR): Update call to emitchar.
6778 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6779 (m2_language_data): Delete la_emitchar initializer.
6780 (m2_language::emitchar): New member function, implementation from
6781 m2_emit_char.
6782 * objc-lang.c (objc_language_data): Delete la_emitchar
6783 initializer.
6784 * opencl-lang.c (opencl_language_data): Likewise.
6785 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6786 (pascal_language_data): Delete la_emitchar initializer.
6787 (pascal_language::emitchar): New member function, implementation
6788 from pascal_emit_char.
6789 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6790 (rust_language_data): Delete la_emitchar initializer.
6791 (rust_language::emitchar): New member function, implementation
6792 from rust_emitchar.
6793
6794 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6795
6796 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6797 (ada_language_data): Delete la_post_parser initializer.
6798 (ada_language::post_parser): New member function.
6799 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6800 (cplus_language_data): Likewise.
6801 (asm_language_data): Likewise.
6802 (minimal_language_data): Likewise.
6803 * d-lang.c (d_language_data): Likewise.
6804 * f-lang.c (f_language_data): Likewise.
6805 * go-lang.c (go_language_data): Likewise.
6806 * language.c (unknown_language_data): Likewise.
6807 (auto_language_data): Likewise.
6808 * language.h (language_data): Delete la_post_parser field.
6809 (language_defn::post_parser): New member function.
6810 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6811 * objc-lang.c (objc_language_data): Likewise.
6812 * opencl-lang.c (opencl_language_data): Likewise.
6813 * p-lang.c (pascal_language_data): Likewise.
6814 * parse.c (parse_exp_in_context): Update call to post_parser.
6815 (null_post_parser): Delete definition.
6816 * parser-defs.h (null_post_parser): Delete declaration.
6817 * rust-lang.c (rust_language_data): Delete la_post_parser
6818 initializer.
6819
6820 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6821
6822 * ada-lang.c (parse): Rename to ada_language::parser.
6823 (ada_language_data): Delete la_parser initializer.
6824 (ada_language::parser): New member function, implementation from
6825 parse.
6826 * c-lang.c (c_language_data): Delete la_parser initializer.
6827 (cplus_language_data): Likewise.
6828 (asm_language_data): Likewise.
6829 (minimal_language_data): Likewise.
6830 * d-lang.c (d_language_data): Likewise.
6831 (d_language::parser): New member function.
6832 * f-lang.c (f_language_data): Delete la_parser initializer.
6833 (f_language::parser): New member function.
6834 * go-lang.c (go_language_data): Delete la_parser initializer.
6835 (go_language::parser): New member function.
6836 * language.c (unk_lang_parser): Delete.
6837 (language_defn::parser): Define new member function.
6838 (unknown_language_data): Delete la_parser initializer.
6839 (unknown_language::parser): New member function.
6840 (auto_language_data): Delete la_parser initializer.
6841 (auto_language::parser): New member function.
6842 * language.h (language_data): Delete la_parser field.
6843 (language_defn::parser): Declare new member function.
6844 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6845 (m2_language::parser): New member function.
6846 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6847 * opencl-lang.c (opencl_language_data): Likewise.
6848 * p-lang.c (pascal_language_data): Likewise.
6849 (pascal_language::parser): New member function.
6850 * parse.c (parse_exp_in_context): Update call to parser.
6851 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6852 (rust_language::parser): New member function.
6853
6854 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6855
6856 * top.c (print_gdb_configuration): Print --with-python-libdir
6857 configuration value.
6858
6859 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6860
6861 * NEWS: Mention change to the alias command.
6862
6863 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6864
6865 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6866 (alias_command_completer)
6867 (make_alias_options_def_group): New functions.
6868 (alias_opts, alias_option_defs): New struct and array.
6869 (alias_usage_error): Update usage.
6870 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6871 Use option framework.
6872 (_initialize_cli_cmds): Update alias command help.
6873 Update aliases command help.
6874 (show_user):
6875 Add NULL for new default_args lookup_cmd argument.
6876 (valid_command_p): Rename to validate_aliased_command.
6877 Add NULL for new default_args lookup_cmd argument. Verify that the
6878 aliased_command has no default args.
6879 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6880 (lookup_cmd_1, lookup_cmd): New argument default_args.
6881 (add_alias_cmd):
6882 Add NULL for new default_args lookup_cmd argument.
6883 (print_help_for_command): Show default args under the layout
6884 alias some_alias = some_aliased_cmd some_alias_default_arg.
6885 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6886 xfree default_args in destructor.
6887 * cli/cli-script.c (process_next_line, do_define_command):
6888 Add NULL for new default_args lookup_cmd argument.
6889 * command.h: Declare new default_args argument in lookup_cmd
6890 and lookup_cmd_1.
6891 * completer.c (complete_line_internal_1):
6892 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6893 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6894 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6895 Likewise.
6896 * infcmd.c (_initialize_infcmd): Likewise.
6897 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6898 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6899 * python/py-param.c (add_setshow_generic): Likewise.
6900 * remote.c (_initialize_remote): Likewise.
6901 * top.c (execute_command): Prepend default_args if command has some.
6902 (set_verbose):
6903 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6904 * tracepoint.c (validate_actionline, encode_actions_1):
6905 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6906
6907 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6908
6909 * jit.c (jit_read_descriptor): Use bool as the return type.
6910 (jit_breakpoint_re_set_internal): Use bool as the return type.
6911 Invert the return value logic; return true if the jit breakpoint
6912 has been successfully initialized.
6913 (jit_inferior_init): Update the call to
6914 jit_breakpoint_re_set_internal.
6915
6916 2020-06-22 Pedro Alves <palves@redhat.com>
6917
6918 PR gdb/25939
6919 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6920 Use the current inferior instead. Don't return
6921 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6922 wait again.
6923 * sol-thread.c (sol_thread_target::wait): Don't reference
6924 inferior_ptid.
6925 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6926 (sol_update_thread_list_callback): Use the current inferior's pid
6927 instead of inferior_ptid.
6928
6929 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6930
6931 * procfs.c: Cleanup many comments.
6932
6933 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6934 (AFTER_WATCHFLAG): Replace by value.
6935
6936 (MAIN_PROC_NAME_FORMAT): Inline ...
6937 (create_procinfo): ... here.
6938
6939 (procfs_debug_inferior): Remove SYS_exec handling.
6940 (syscall_is_exec): Likewise.
6941 (procfs_set_exec_trap): Likewise.
6942
6943 (syscall_is_lwp_exit): Inline in callers.
6944 (syscall_is_exit): Likewise.
6945 (syscall_is_exec): Likewise.
6946 (syscall_is_lwp_create): Likewise.
6947
6948 (invalidate_cache): Remove #if 0 code.
6949
6950 (make_signal_thread_runnable): Remove.
6951 (procfs_target::resume): Remove #if 0 code.
6952
6953 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6954
6955 PR gdb/25939
6956 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6957 call ...
6958 (procfs_target::create_inferior): ... here.
6959
6960 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6961
6962 * exec.c (validate_exec_file): Ensure the build-id is up to
6963 date by calling reopen_exec_file (that checks file timestamp
6964 to decide to re-read the file).
6965
6966 2020-06-18 Pedro Alves <palves@redhat.com>
6967
6968 PR gdb/25412
6969 * gdbthread.h (delete_thread, delete_thread_silent)
6970 (find_thread_ptid): Update comments.
6971 * thread.c (current_thread_): New global.
6972 (is_current_thread): Move higher, and reimplement.
6973 (inferior_thread): Reimplement.
6974 (set_thread_exited): Use bool. Add assertions.
6975 (add_thread_silent): Simplify thread-reuse handling by always
6976 calling delete_thread.
6977 (delete_thread): Remove intro comment.
6978 (find_thread_ptid): Skip exited threads.
6979 (switch_to_thread_no_regs): Write to current_thread_.
6980 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6981 INFERIOR_PTID. Clear current_thread_.
6982
6983 2020-06-18 Pedro Alves <palves@redhat.com>
6984
6985 * aix-thread.c (pd_update): Use switch_to_thread.
6986
6987 2020-06-18 Pedro Alves <palves@redhat.com>
6988
6989 * ravenscar-thread.c (ravenscar_thread_target): Update.
6990 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6991 (ravenscar_thread_target::add_active_thread): ... this. Don't
6992 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6993 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6994
6995 2020-06-18 Pedro Alves <palves@redhat.com>
6996
6997 * nat/windows-nat.c (current_windows_thread): Remove.
6998 * nat/windows-nat.h (current_windows_thread): Remove.
6999 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7000 Adjust.
7001 (display_selectors): Adjust to fetch the current
7002 windows_thread_info based on inferior_ptid.
7003 (fake_create_process): No longer write to current_windows_thread.
7004 (windows_nat_target::get_windows_debug_event):
7005 Don't set inferior_ptid or current_windows_thread.
7006 (windows_nat_target::wait): Adjust to not rely on
7007 current_windows_thread.
7008 (do_initial_windows_stuff): Now a method of windows_nat_target.
7009 Switch to the last_ptid thread.
7010 (windows_nat_target::attach): Adjust.
7011 (windows_nat_target::detach): Use switch_to_no_thread instead of
7012 writing to inferior_ptid directly.
7013 (windows_nat_target::create_inferior): Adjust.
7014
7015 2020-06-18 Pedro Alves <palves@redhat.com>
7016
7017 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7018
7019 2020-06-18 Pedro Alves <palves@redhat.com>
7020
7021 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7022 after creating it, instead of writing to inferior_ptid. Don't
7023 write to inferior_ptid.
7024
7025 2020-06-18 Pedro Alves <palves@redhat.com>
7026
7027 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7028
7029 2020-06-18 Pedro Alves <palves@redhat.com>
7030
7031 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7032 it, instead of writing to inferior_ptid.
7033
7034 2020-06-18 Pedro Alves <palves@redhat.com>
7035
7036 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7037 to inferior_ptid.
7038
7039 2020-06-18 Pedro Alves <palves@redhat.com>
7040
7041 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7042 instead of writing to inferior_ptid directly.
7043
7044 2020-06-18 Pedro Alves <palves@redhat.com>
7045
7046 * corelow.c (core_target::close): Use switch_to_no_thread instead
7047 of writing to inferior_ptid directly.
7048 (add_to_thread_list, core_target_open): Use switch_to_thread
7049 instead of writing to inferior_ptid directly.
7050
7051 2020-06-18 Pedro Alves <palves@redhat.com>
7052
7053 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7054 inferior_ptid.
7055 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7056 inferior_ptid.
7057 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7058 inferior_ptid directly.
7059 (darwin_nat_target::init_thread_list): Switch to thread, instead
7060 of writing to inferior_ptid.
7061 (darwin_nat_target::attach): Don't write to inferior_ptid.
7062 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7063
7064 2020-06-18 Pedro Alves <palves@redhat.com>
7065
7066 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7067 thread.
7068 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7069 Instead use switch_to_thread.
7070 (gnu_nat_target::detach): Use switch_to_no_thread
7071 instead of writing to inferior_ptid directly. Used passed-in
7072 inferior instead of looking up the inferior by pid.
7073
7074 2020-06-18 Pedro Alves <palves@redhat.com>
7075
7076 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7077 inferior_ptid.
7078
7079 2020-06-18 Pedro Alves <palves@redhat.com>
7080
7081 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7082 inferior_ptid.
7083 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7084 thread.
7085 (nto_procfs_target::detach): Avoid referencing
7086 inferior_ptid. Use switch_to_no_thread instead of writing to
7087 inferior_ptid directly.
7088 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7089 instead of writing to inferior_ptid directly.
7090 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7091 to thread.
7092
7093 2020-06-18 Pedro Alves <palves@redhat.com>
7094
7095 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7096 after creating it, instead of writing to inferior_ptid.
7097 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7098 to inferior_ptid directly.
7099 (gdbsim_target::wait): Don't write to inferior_ptid.
7100
7101 2020-06-18 Pedro Alves <palves@redhat.com>
7102
7103 * remote.c (remote_target::remote_notice_new_inferior): Use
7104 switch_to_thread instead of writing to inferior_ptid directly.
7105 (remote_target::add_current_inferior_and_thread): Use
7106 switch_to_no_thread instead of writing to inferior_ptid directly.
7107 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7108 and switch_to_thread instead of using set_current_inferior or
7109 writing to inferior_ptid directly.
7110
7111 2020-06-18 Pedro Alves <palves@redhat.com>
7112
7113 * tracectf.c (ctf_target_open): Switch to added thread instead of
7114 writing to inferior_ptid directly.
7115 (ctf_target::close): Use switch_to_no_thread instead of writing to
7116 inferior_ptid directly.
7117
7118 2020-06-18 Pedro Alves <palves@redhat.com>
7119
7120 * tracefile-tfile.c (tfile_target_open): Don't write to
7121 inferior_ptid directly, instead switch to added thread.
7122 (tfile_target::close): Use switch_to_no_thread instead of writing
7123 to inferior_ptid directly.
7124
7125 2020-06-18 Pedro Alves <palves@redhat.com>
7126
7127 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7128 (procfs_target::detach): Use switch_to_no_thread
7129 instead of writing to inferior_ptid directly.
7130 (do_attach): Change return type to void. Switch to the added
7131 thread.
7132 (procfs_target::create_inferior): Switch to the added thread.
7133 (procfs_do_thread_registers): Don't write to inferior_ptid.
7134
7135 2020-06-18 Pedro Alves <palves@redhat.com>
7136
7137 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7138 of writing to inferior_ptid.
7139 (scoped_restore_exited_inferior): Delete.
7140 (handle_vfork_child_exec_or_exit): Simplify using
7141 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7142 instead of writing to inferior_ptid.
7143 (THREAD_STOPPED_BY): Delete.
7144 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7145 (thread_stopped_by_hw_breakpoint): Delete.
7146 (save_waitstatus): Use
7147 scoped_restore_current_thread+switch_to_thread, and call
7148 target_stopped_by_watchpoint instead of
7149 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7150 instead of thread_stopped_by_sw_breakpoint, and
7151 target_stopped_by_hw_breakpoint instead of
7152 thread_stopped_by_hw_breakpoint.
7153 (handle_inferior_event)
7154 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7155 inferior_ptid directly, nor
7156 set_current_inferior/set_current_program_space. Use
7157 switch_to_thread / switch_to_inferior_no_thread instead.
7158
7159 2020-06-18 Pedro Alves <palves@redhat.com>
7160
7161 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7162 instead of writing to inferior_ptid.
7163
7164 2020-06-18 Pedro Alves <palves@redhat.com>
7165
7166 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7167 added thread.
7168 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7169 to the added thread.
7170 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7171 instead of writing to inferior_ptid.
7172
7173 2020-06-18 Pedro Alves <palves@redhat.com>
7174
7175 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7176 (register_to_value_test): Mock a program_space too. Heap-allocate
7177 the address space. Don't write to inferior_ptid. Use
7178 switch_to_thread instead.
7179
7180 2020-06-18 Pedro Alves <palves@redhat.com>
7181
7182 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7183 Delete.
7184 (find_signalled_thread()): New, factored out from
7185 linux_make_corefile_notes and adjusted to handle exited threads.
7186 (linux_make_corefile_notes): Adjust to use the new
7187 find_signalled_thread.
7188
7189 2020-06-18 Pedro Alves <palves@redhat.com>
7190
7191 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7192 of saving/restoring inferior_ptid.
7193
7194 2020-06-17 Tom Tromey <tom@tromey.com>
7195
7196 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7197 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7198 declare.
7199 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7200
7201 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7202
7203 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7204 of partial symtabs.
7205
7206 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7207
7208 * regformats/reg-arm.dat: Remove.
7209 * regformats/reg-bfin.dat: Remove.
7210 * regformats/reg-cris.dat: Remove.
7211 * regformats/reg-crisv32.dat: Remove.
7212 * regformats/reg-m32r.dat: Remove.
7213 * regformats/reg-tilegx.dat: Remove.
7214 * regformats/reg-tilegx32.dat: Remove.
7215
7216 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7217
7218 * features/Makefile (WHICH): Remove arm files.
7219 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7220 * regformats/arm/arm-with-neon.dat: Remove.
7221 * regformats/arm/arm-with-vfpv2.dat: Remove.
7222 * regformats/arm/arm-with-vfpv3.dat: Remove.
7223
7224 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7225
7226 * features/Makefile (XMLTOC): Remove rx.xml.
7227
7228 2020-06-17 Pedro Alves <palves@redhat.com>
7229
7230 * gdbthread.h (thread_control_state) <trap_expected> Update
7231 comments.
7232
7233 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7234
7235 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7236 ada_language::lookup_symbol_nonlocal.
7237 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7238 (ada_language::lookup_symbol_nonlocal): New member function,
7239 implementation from ada_lookup_symbol_nonlocal.
7240 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7241 initializer.
7242 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7243 initializer.
7244 (cplus_language::lookup_symbol_nonlocal): New member function.
7245 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7246 (minimal_language_data) Likewise.
7247 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7248 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7249 initializer.
7250 (d_language::lookup_symbol_nonlocal): New member function.
7251 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7252 initializer.
7253 (f_language::lookup_symbol_nonlocal): New member function.
7254 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7255 initializer.
7256 * language.c (unknown_language_data): Likewise.
7257 (auto_language_data): Likewise.
7258 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7259 field.
7260 (language_defn::lookup_symbol_nonlocal): New member function.
7261 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7262 initializer.
7263 * objc-lang.c (objc_language_data): Likewise.
7264 * opencl-lang.c (opencl_language_data): Likewise.
7265 * p-lang.c (pascal_language_data): Likewise.
7266 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7267 rust_language::lookup_symbol_nonlocal.
7268 (rust_language_data): Delete la_lookup_symbol_nonlocal
7269 initializer.
7270 (rust_language::lookup_symbol_nonlocal): New member function,
7271 implementation from rust_lookup_symbol_nonlocal.
7272 * symtab.c (lookup_symbol_aux): Update call to
7273 lookup_symbol_nonlocal.
7274 (basic_lookup_symbol_nonlocal): Rename to...
7275 (language_defn::lookup_symbol_nonlocal): ...this, and update
7276 header comment. Remove language_defn parameter, and replace with
7277 uses of `this'.
7278 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7279
7280 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7281
7282 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7283 initializer.
7284 (ada_language::value_print_inner): New member function.
7285 * c-lang.c (c_language_data): Delete la_value_print_inner
7286 initializer.
7287 (cplus_language_data): Likewise.
7288 (asm_language_data): Likewise.
7289 (minimal_language_data): Likewise.
7290 * d-lang.c (d_language_data): Likewise.
7291 (d_language::value_print_inner): New member function.
7292 * f-lang.c (f_language_data): Delete la_value_print_inner
7293 initializer.
7294 (f_language::value_print_inner): New member function.
7295 * f-lang.h (f_value_print_innner): Rename to...
7296 (f_value_print_inner): ...this (note spelling of 'inner').
7297 * f-valprint.c (f_value_print_innner): Rename to...
7298 (f_value_print_inner): ...this (note spelling of 'inner').
7299 * go-lang.c (go_language_data): Delete la_value_print_inner
7300 initializer.
7301 (go_language::value_print_inner): New member function.
7302 * language.c (language_defn::value_print_inner): Define new member
7303 function.
7304 (unk_lang_value_print_inner): Delete.
7305 (unknown_language_data): Delete la_value_print_inner initializer.
7306 (unknown_language::value_print_inner): New member function.
7307 (auto_language_data): Delete la_value_print_inner initializer.
7308 (auto_language::value_print_inner): New member function.
7309 * language.h (language_data): Delete la_value_print_inner field.
7310 (language_defn::value_print_inner): Delcare new member function.
7311 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7312 initializer.
7313 (m2_language::value_print_inner): New member function.
7314 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7315 initializer.
7316 * opencl-lang.c (opencl_language_data): Likewise.
7317 * p-lang.c (pascal_language_data): Likewise.
7318 (pascal_language::value_print_inner): New member function.
7319 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7320 initializer.
7321 (rust_language::value_print_inner): New member function.
7322 * valprint.c (do_val_print): Update call to value_print_inner.
7323
7324 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7325
7326 * ada-lang.c (ada_language_data): Delete la_value_print
7327 initializer.
7328 (ada_language::value_print): New member function.
7329 * c-lang.c (c_language_data): Delete la_value_print initializer.
7330 (cplus_language_data): Likewise.
7331 (asm_language_data): Likewise.
7332 (minimal_language_data): Likewise.
7333 * d-lang.c (d_language_data): Likewise.
7334 * f-lang.c (f_language_data): Likewise.
7335 * go-lang.c (go_language_data): Likewise.
7336 * language.c (unk_lang_value_print): Delete.
7337 (language_defn::value_print): Define new member function.
7338 (unknown_language_data): Delete la_value_print initializer.
7339 (unknown_language::value_print): New member function.
7340 (auto_language_data): Delete la_value_print initializer.
7341 (auto_language::value_print): New member function.
7342 * language.h (language_data): Delete la_value_print field.
7343 (language_defn::value_print): Declare new member function.
7344 (LA_VALUE_PRINT): Update call to value_print.
7345 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7346 * objc-lang.c (objc_language_data): Likewise.
7347 * opencl-lang.c (opencl_language_data): Likewise.
7348 * p-lang.c (pascal_language_data): Likewise.
7349 (pascal_language::value_print): New member function.
7350 * rust-lang.c (rust_language_data): Delete la_value_print
7351 initializer.
7352
7353 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7354
7355 * ada-lang.c (ada_watch_location_expression): Rename to
7356 ada_language::watch_location_expression.
7357 (ada_language_data): Delete la_watch_location_expression
7358 initializer.
7359 (ada_language::watch_location_expression): New member function,
7360 implementation from ada_watch_location_expression.
7361 * breakpoint.c (watch_command_1): Update call to
7362 watch_location_expression.
7363 * c-lang.c (c_watch_location_expression): Rename to
7364 language_defn::watch_location_expression.
7365 (c_language_data): Delete la_watch_location_expression
7366 initializer.
7367 (cplus_language_data): Likewise.
7368 (asm_language_data): Likewise.
7369 (minimal_language_data): Likewise.
7370 * c-lang.h (c_watch_location_expression): Delete declaration.
7371 * d-lang.c (d_language_data): Delete la_watch_location_expression
7372 initializer.
7373 * f-lang.c (f_language_data): Likewise.
7374 * go-lang.c (go_language_data): Likewise.
7375 * language.c (language_defn::watch_location_expression): Member
7376 function implementation from c_watch_location_expression.
7377 (unknown_language_data): Delete la_watch_location_expression
7378 initializer.
7379 (auto_language_data): Likewise.
7380 * language.h (language_data): Delete la_watch_location_expression
7381 field.
7382 (language_defn::watch_location_expression): Declare new member
7383 function.
7384 * m2-lang.c (m2_language_data): Delete
7385 la_watch_location_expression initializer.
7386 * objc-lang.c (objc_language_data): Likewise.
7387 * opencl-lang.c (opencl_language_data): Likewise.
7388 * p-lang.c (pascal_language_data): Likewise.
7389 * rust-lang.c (rust_watch_location_expression): Rename to
7390 rust_language::watch_location_expression.
7391 (rust_language_data): Delete la_watch_location_expression
7392 initializer.
7393 (rust_language::watch_location_expression): New member function,
7394 implementation from rust_watch_location_expression.
7395
7396 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7397
7398 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7399 ada_language::collect_symbol_completion_matches.
7400 (ada_language_data): Delete la_collect_symbol_completion_matches
7401 initializer.
7402 (ada_language::collect_symbol_completion_matches): New member
7403 function, implementation from
7404 ada_collect_symbol_completion_matches.
7405 * c-lang.c (c_language_data): Delete
7406 la_collect_symbol_completion_matches initializer.
7407 (cplus_language_data): Likewise.
7408 (asm_language_data): Likewise.
7409 (minimal_language_data): Likewise.
7410 * d-lang.c (d_language_data): Likewise.
7411 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7412 f_language::collect_symbol_completion_matches.
7413 (f_language_data): Delete la_collect_symbol_completion_matches
7414 initializer.
7415 (f_language::collect_symbol_completion_matches) New member
7416 function, implementation from f_collect_symbol_completion_matches.
7417 * go-lang.c (go_language_data): Delete
7418 la_collect_symbol_completion_matches initializer.
7419 * language.c (unknown_language_data): Likewise.
7420 (auto_language_data): Likewise.
7421 * language.h (language_data): Delete
7422 la_collect_symbol_completion_matches field.
7423 (language_defn::collect_symbol_completion_matches): New member
7424 function.
7425 * m2-lang.c (m2_language_data): Delete
7426 la_collect_symbol_completion_matches initializer.
7427 * objc-lang.c (objc_language_data): Likewise.
7428 * opencl-lang.c (opencl_language_data): Likewise.
7429 * p-lang.c (pascal_language_data): Likewise.
7430 * rust-lang.c (rust_language_data): Likewise.
7431 * symtab.c (default_collect_symbol_completion_matches): Delete.
7432 (collect_symbol_completion_matches): Update call to
7433 collect_symbol_completion_matches.
7434 (collect_symbol_completion_matches_type): Likewise.
7435 * symtab.h (default_collect_symbol_completion_matches): Delete
7436 declaration.
7437
7438 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7439
7440 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7441 (ada_language_data): Delete la_word_break_characters initializer.
7442 (ada_language::word_break_characters): New member function.
7443 * c-lang.c (c_language_data): Delete la_word_break_characters
7444 initializer.
7445 (cplus_language_data): Likewise.
7446 (asm_language_data): Likewise.
7447 (minimal_language_data): Likewise.
7448 * completer.c: Update global comment.
7449 (advance_to_expression_complete_word_point): Update call to
7450 word_break_characters.
7451 (complete_files_symbols): Likewise.
7452 (complete_line_internal_1): Likewise.
7453 (default_completer_handle_brkchars): Likewise.
7454 (skip_quoted_chars): Likewise.
7455 * d-lang.c (d_language_data): Delete la_word_break_characters
7456 initializer.
7457 * f-lang.c (f_word_break_characters): Delete.
7458 (f_language_data): Delete la_word_break_characters initializer.
7459 (f_language::word_break_characters): New member function.
7460 * go-lang.c (go_language_data): Delete la_word_break_characters
7461 initializer.
7462 * language.c (unknown_language_data): Likewise.
7463 (auto_language_data): Likewise.
7464 * language.h (default_word_break_characters): Move declaration to
7465 earlier in the file.
7466 (language_data): Delete la_word_break_characters field.
7467 (language_defn::word_break_characters): New member function.
7468 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7469 initializer.
7470 * objc-lang.c (objc_language_data): Likewise.
7471 * opencl-lang.c (opencl_language_data): Likewise.
7472 * p-lang.c (pascal_language_data): Likewise.
7473 * rust-lang.c (rust_language_data): Likewise.
7474
7475 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7476
7477 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7478 (ada_language_data): Delete la_get_symbol_name_matcher
7479 initializer.
7480 (language_defn::get_symbol_name_matcher_inner): New member
7481 function.
7482 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7483 initializer.
7484 (cplus_language_data): Likewise.
7485 (cplus_language::get_symbol_name_matcher_inner): New member
7486 function.
7487 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7488 (minimal_language_data): Likewise.
7489 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7490 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7491 initializer.
7492 * dictionary.c (iter_match_first_hashed): Update call to
7493 get_symbol_name_matcher.
7494 (iter_match_next_hashed): Likewise.
7495 (iter_match_next_linear): Likewise.
7496 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7497 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7498 initializer.
7499 (f_language::get_symbol_name_matcher_inner): New member function.
7500 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7501 initializer.
7502 * language.c (default_symbol_name_matcher): Update header comment,
7503 make static.
7504 (language_defn::get_symbol_name_matcher): New definition.
7505 (language_defn::get_symbol_name_matcher_inner): Likewise.
7506 (get_symbol_name_matcher): Delete.
7507 (unknown_language_data): Delete la_get_symbol_name_matcher
7508 initializer.
7509 (auto_language_data): Likewise.
7510 * language.h (language_data): Delete la_get_symbol_name_matcher
7511 field.
7512 (language_defn::get_symbol_name_matcher): New member function.
7513 (language_defn::get_symbol_name_matcher_inner): Likewise.
7514 (default_symbol_name_matcher): Delete declaration.
7515 * linespec.c (find_methods): Update call to
7516 get_symbol_name_matcher.
7517 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7518 initializer.
7519 * minsyms.c (lookup_minimal_symbol): Update call to
7520 get_symbol_name_matcher.
7521 (iterate_over_minimal_symbols): Likewise.
7522 * objc-lang.c (objc_language_data): Delete
7523 la_get_symbol_name_matcher initializer.
7524 * opencl-lang.c (opencl_language_data): Likewise.
7525 * p-lang.c (pascal_language_data): Likewise.
7526 * psymtab.c (psymbol_name_matches): Update call to
7527 get_symbol_name_matcher.
7528 * rust-lang.c (rust_language_data): Delete
7529 la_get_symbol_name_matcher initializer.
7530 * symtab.c (symbol_matches_search_name): Update call to
7531 get_symbol_name_matcher.
7532 (compare_symbol_name): Likewise.
7533
7534 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7535
7536 * ada-lang.c (ada_language_data): Delete la_compute_program
7537 initializer.
7538 * c-lang.c (c_language_data): Likewise.
7539 (c_language::compute_program): New member function.
7540 (cplus_language_data): Delete la_compute_program initializer.
7541 (cplus_language::compute_program): New member function.
7542 (asm_language_data): Delete la_compute_program initializer.
7543 (minimal_language_data): Likewise.
7544 * c-lang.h (c_compute_program): Update comment.
7545 (cplus_compute_program): Likewise.
7546 * compile/compile-c-support.c (c_compute_program): Likewise.
7547 (cplus_compute_program): Likewise.
7548 * compile/compile.c (compile_to_object): Update call to
7549 la_compute_program.
7550 * d-lang.c (d_language_data): Delete la_compute_program
7551 initializer.
7552 * f-lang.c (f_language_data): Likewise.
7553 * go-lang.c (go_language_data): Likewise.
7554 * language.c (unknown_language_data): Likewise.
7555 (auto_language_data): Likewise.
7556 * language.h (language_data): Delete la_compute_program field.
7557 (language_defn::compute_program): New member function.
7558 * m2-lang.c (m2_language_data): Delete la_compute_program
7559 initializer.
7560 * objc-lang.c (objc_language_data): Likewise.
7561 * opencl-lang.c (opencl_language_data): Likewise.
7562 * p-lang.c (pascal_language_data): Likewise.
7563 * rust-lang.c (rust_language_data): Likewise.
7564
7565 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7566
7567 * ada-lang.c (ada_language_data) Delete
7568 la_class_name_from_physname initializer.
7569 * c-lang.c (c_language_data): Likewise.
7570 (cplus_language_data): Likewise.
7571 (cplus_language::class_name_from_physname): New member function.
7572 (asm_language_data): Delete la_class_name_from_physname
7573 initializer.
7574 (minimal_language_data): Likewise.
7575 * d-lang.c (d_language_data): Likewise.
7576 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7577 method on language_defn class.
7578 (guess_full_die_structure_name): Likewise.
7579 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7580 initializer.
7581 * go-lang.c (go_language_data): Likewise.
7582 * language.c (language_class_name_from_physname): Delete.
7583 (unk_lang_class_name): Delete.
7584 (unknown_language_data): Delete la_class_name_from_physname
7585 initializer.
7586 (auto_language_data): Likewise.
7587 * language.h (language_data): Delete la_class_name_from_physname
7588 field.
7589 (language_defn::class_name_from_physname): New function.
7590 (language_class_name_from_physname): Delete declaration.
7591 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7592 initializer.
7593 * objc-lang.c (objc_language_data): Likewise.
7594 * opencl-lang.c (opencl_language_data): Likewise.
7595 * p-lang.c (pascal_language_data): Likewise.
7596 * rust-lang.c (rust_language_data): Likewise.
7597
7598 2020-06-16 Tom Tromey <tom@tromey.com>
7599
7600 * tui/tui-data.h (STATUS_NAME): New macro.
7601 * tui/tui-layout.c (tui_remove_some_windows)
7602 (initialize_known_windows, tui_register_window)
7603 (tui_layout_split::remove_windows, initialize_layouts)
7604 (tui_new_layout_command): Don't use hard-coded window names.
7605
7606 2020-06-16 Tom Tromey <tom@tromey.com>
7607
7608 PR tui/25348:
7609 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7610 tui_initialize_readline. Only run once. Call rl_initialize.
7611 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7612 tui_initialize_readline.
7613 * tui/tui-io.c (tui_setup_io): Call
7614 tui_ensure_readline_initialized.
7615 * tui/tui-interp.c (tui_interp::init): Update.
7616
7617 2020-06-16 Tom Tromey <tom@tromey.com>
7618
7619 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7620 Also preserve the status window.
7621
7622 2020-06-16 Tom Tromey <tom@tromey.com>
7623
7624 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7625 where m_window==nullptr.
7626
7627 2020-06-15 Tom Tromey <tromey@adacore.com>
7628
7629 * windows-nat.c (windows_nat::handle_output_debug_string):
7630 Update.
7631 (windows_nat::handle_ms_vc_exception): Update.
7632 * target.h (target_read_string): Change API.
7633 * target.c (target_read_string): Change API.
7634 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7635 Update.
7636 * solib-frv.c (frv_current_sos): Update.
7637 * solib-dsbt.c (dsbt_current_sos): Update.
7638 * solib-darwin.c (darwin_current_sos): Update.
7639 * linux-thread-db.c (inferior_has_bug): Update.
7640 * expprint.c (print_subexp_standard): Update.
7641 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7642 (ada_exception_message_1): Update.
7643
7644 2020-06-15 Tom Tromey <tromey@adacore.com>
7645
7646 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7647
7648 2020-06-15 Tom Tromey <tromey@adacore.com>
7649
7650 * valprint.c (read_string): Update comment.
7651 * target.c (MIN): Remove.
7652 (target_read_string): Rewrite.
7653
7654 2020-06-15 Tom Tromey <tromey@adacore.com>
7655
7656 * corefile.c (read_memory_string): Remove.
7657 * ada-valprint.c (ada_value_print_ptr): Update.
7658 * ada-lang.h (ada_tag_name): Change return type.
7659 * ada-lang.c (type_from_tag): Update.
7660 (ada_tag_name_from_tsd): Change return type. Use
7661 target_read_string.
7662 (ada_tag_name): Likewise.
7663 * gdbcore.h (read_memory_string): Don't declare.
7664
7665 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7666
7667 * symtab.c (rbreak_command): Ignore Windows drive colon.
7668
7669 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7670
7671 * NEWS: Mention removed GDBserver host support.
7672
7673 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7674
7675 * features/riscv/rebuild-csr-xml.sh: Updated.
7676
7677 2020-06-11 Tom Tromey <tom@tromey.com>
7678
7679 PR gdb/18318:
7680 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7681
7682 2020-06-09 Jonny Grant <jg@jguk.org>
7683 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7684
7685 * main.c (captured_main_1): Don't print new line after help.
7686 (print_gdb_help): add mailing list and IRC channel information
7687 to --help. Add new lines between items in the footer. Remove
7688 quotes around bug url.
7689
7690 2020-06-11 Keith Seitz <keiths@redhat.com>
7691
7692 PR gdb/21356
7693 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7694 Resolve typedefs for type length calculations.
7695
7696 2020-06-10 Tom de Vries <tdevries@suse.de>
7697
7698 PR ada/24713
7699 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7700 (write_psymbols): Enable .gdb_index for ada.
7701 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7702 ada.
7703
7704 2020-06-10 Tom de Vries <tdevries@suse.de>
7705
7706 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7707 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7708 namei" instead of "const char *name" argument.
7709 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7710 dw2_symtab_iter_init.
7711
7712 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7713
7714 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7715 to use type::field and field::type instead.
7716
7717 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7718
7719 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7720 to use field::type instead.
7721
7722 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7723
7724 * gdbtypes.h (struct field) <type, set_type>: New methods.
7725 Rename `type` field to...
7726 <m_type>: ... this. Change references throughout to use type or
7727 set_type methods.
7728 (FIELD_TYPE): Use field::type. Change call sites that modify
7729 the field's type to use field::set_type instead.
7730
7731 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7732
7733 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7734 to use type::index_type instead.
7735
7736 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7737
7738 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7739 methods.
7740 (TYPE_INDEX_TYPE): Use type::index_type.
7741 * gdbtypes.c (create_array_type_with_stride): Likewise.
7742
7743 2020-06-07 Tom Tromey <tom@tromey.com>
7744
7745 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7746 parameter.
7747 (generic_value_print): Update.
7748
7749 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7750
7751 Revert commit 982a38f60b0.
7752 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7753
7754 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7755
7756 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7757 avoid use after free.
7758
7759 2020-06-05 Tom de Vries <tdevries@suse.de>
7760
7761 * NEWS: Fix typos.
7762
7763 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7764
7765 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7766 the per_bfd object.
7767 (dwarf2_read_debug_names): Likewise.
7768 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7769 object when re-using a per_bfd object with an index.
7770
7771 2020-06-03 Tom de Vries <tdevries@suse.de>
7772
7773 PR symtab/26046
7774 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7775 children for C++.
7776 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7777 DW_TAG_subprogram.
7778
7779 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7780
7781 * ada-lang.c (ada_language_data): Delete skip_trampoline
7782 initializer.
7783 * c-lang.c (c_language_data): Likewise.
7784 (cplus_language_data): Likewise.
7785 (cplus_language::skip_trampoline): New member function.
7786 (asm_language_data): Delete skip_trampoline initializer.
7787 (minimal_language_data): Likewise.
7788 * d-lang.c (d_language_data): Likewise.
7789 * f-lang.c (f_language_data): Likewise.
7790 * go-lang.c (go_language_data): Likewise.
7791 * language.c (unk_lang_trampoline): Delete function.
7792 (skip_language_trampoline): Update.
7793 (unknown_language_data): Delete skip_trampoline initializer.
7794 (auto_language_data): Likewise.
7795 * language.h (language_data): Delete skip_trampoline field.
7796 (language_defn::skip_trampoline): New function.
7797 * m2-lang.c (m2_language_data): Delete skip_trampoline
7798 initializer.
7799 * objc-lang.c (objc_skip_trampoline): Delete function, move
7800 implementation to objc_language::skip_trampoline.
7801 (objc_language_data): Delete skip_trampoline initializer.
7802 (objc_language::skip_trampoline): New member function with
7803 implementation from objc_skip_trampoline.
7804 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7805 initializer.
7806 * p-lang.c (pascal_language_data): Likewise.
7807 * rust-lang.c (rust_language_data): Likewise.
7808
7809 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7810
7811 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7812 (ada_language::demangle): New member function.
7813 * c-lang.c (c_language_data): Delete la_demangle initializer.
7814 (cplus_language_data): Delete la_demangle initializer.
7815 (cplus_language::demangle): New member function.
7816 (asm_language_data): Delete la_demangle initializer.
7817 (minimal_language_data): Delete la_demangle initializer.
7818 * d-lang.c (d_language_data): Delete la_demangle initializer.
7819 (d_language::demangle): New member function.
7820 * f-lang.c (f_language_data): Delete la_demangle initializer.
7821 (f_language::demangle): New member function.
7822 * go-lang.c (go_language_data): Delete la_demangle initializer.
7823 (go_language::demangle): New member function.
7824 * language.c (language_demangle): Update.
7825 (unk_lang_demangle): Delete.
7826 (unknown_language_data): Delete la_demangle initializer.
7827 (unknown_language::demangle): New member function.
7828 (auto_language_data): Delete la_demangle initializer.
7829 (auto_language::demangle): New member function.
7830 * language.h (language_data): Delete la_demangle field.
7831 (language_defn::demangle): New function.
7832 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7833 * objc-lang.c (objc_language_data): Delete la_demangle
7834 initializer.
7835 (objc_language::demangle): New member function.
7836 * opencl-lang.c (opencl_language_data): Delete la_demangle
7837 initializer.
7838 * p-lang.c (pascal_language_data): Likewise.
7839 * rust-lang.c (rust_language_data): Likewise.
7840 (rust_language::demangle): New member function.
7841
7842 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7843
7844 * ada-lang.c (ada_language_data): Delete la_print_type
7845 initializer.
7846 (ada_language::print_type): New member function.
7847 * c-lang.c (c_language_data): Delete la_print_type initializer.
7848 (c_language::print_type): New member function.
7849 (cplus_language_data): Delete la_print_type initializer.
7850 (cplus_language::print_type): New member function.
7851 (asm_language_data): Delete la_print_type initializer.
7852 (asm_language::print_type): New member function.
7853 (minimal_language_data): Delete la_print_type initializer.
7854 (minimal_language::print_type): New member function.
7855 * d-lang.c (d_language_data): Delete la_print_type initializer.
7856 (d_language::print_type): New member function.
7857 * f-lang.c (f_language_data): Delete la_print_type initializer.
7858 (f_language::print_type): New member function.
7859 * go-lang.c (go_language_data): Delete la_print_type initializer.
7860 (go_language::print_type): New member function.
7861 * language.c (unk_lang_print_type): Delete.
7862 (unknown_language_data): Delete la_print_type initializer.
7863 (unknown_language::print_type): New member function.
7864 (auto_language_data): Delete la_print_type initializer.
7865 (auto_language::print_type): New member function.
7866 * language.h (language_data): Delete la_print_type field.
7867 (language_defn::print_type): New function.
7868 (LA_PRINT_TYPE): Update.
7869 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7870 (m2_language::print_type): New member function.
7871 * objc-lang.c (objc_language_data): Delete la_print_type
7872 initializer.
7873 (objc_language::print_type): New member function.
7874 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7875 to opencl_language::print_type.
7876 (opencl_language_data): Delete la_print_type initializer.
7877 (opencl_language::print_type): New member function, implementation
7878 from opencl_print_type.
7879 * p-lang.c (pascal_language_data): Delete la_print_type
7880 initializer.
7881 (pascal_language::print_type): New member function.
7882 * rust-lang.c (rust_print_type): Delete, implementation moved to
7883 rust_language::print_type.
7884 (rust_language_data): Delete la_print_type initializer.
7885 (rust_language::print_type): New member function, implementation
7886 from rust_print_type.
7887
7888 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7889
7890 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7891 implementation moves to...
7892 (ada_language::sniff_from_mangled_name): ...here. Update return
7893 type.
7894 (ada_language_data): Delete la_sniff_from_mangled_name
7895 initializer.
7896 * c-lang.c (c_language_data): Likewise.
7897 (cplus_language_data): Likewise.
7898 (cplus_language::sniff_from_mangled_name): New member function,
7899 implementation taken from gdb_sniff_from_mangled_name.
7900 (asm_language_data): Delete la_sniff_from_mangled_name
7901 initializer.
7902 (minimal_language_data): Likewise.
7903 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7904 implementation moves to cplus_language::sniff_from_mangled_name.
7905 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7906 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7907 moves to...
7908 (d_language::sniff_from_mangled_name): ...here.
7909 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7910 * f-lang.c (f_language_data): Likewise.
7911 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7912 moves to...
7913 (go_language::sniff_from_mangled_name): ...here.
7914 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7915 * language.c (language_sniff_from_mangled_name): Delete.
7916 (unknown_language_data): Delete la_sniff_from_mangled_name
7917 initializer.
7918 (auto_language_data): Likewise.
7919 * language.h (language_data): Delete la_sniff_from_mangled_name
7920 field.
7921 (language_defn::sniff_from_mangled_name): New function.
7922 (language_sniff_from_mangled_name): Delete declaration.
7923 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7924 field.
7925 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7926 implementation moves to...
7927 (objc_language::sniff_from_mangled_name): ...here.
7928 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7929 * opencl-lang.c (opencl_language_data): Likewise.
7930 * p-lang.c (pascal_language_data): Likewise.
7931 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7932 implementation moves to...
7933 (rust_language::sniff_from_mangled_name): ...here.
7934 (rust_language_data): Delete la_sniff_from_mangled_name
7935 initializer.
7936 * symtab.c (symbol_find_demangled_name): Call
7937 sniff_from_mangled_name member function.
7938
7939 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7940
7941 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7942 initializer.
7943 * c-lang.c (c_language_data): Likewise.
7944 (cplus_language_data): Likewise.
7945 (cplus_language::search_name_hash): New member function.
7946 (asm_language_data): Delete la_search_name_hash initializer.
7947 (minimal_language_data): Likewise.
7948 * d-lang.c (d_language_data): Likewise.
7949 * dictionary.c (default_search_name_hash): Rename to...
7950 (language_defn::search_name_hash): ...this.
7951 * f-lang.c (f_language_data): Likewise.
7952 (f_language::search_name_hash): New member function.
7953 * go-lang.c (go_language_data): Delete la_search_name_hash
7954 initializer.
7955 * language.c (unknown_language_data): Likewise.
7956 (auto_language_data): Likewise.
7957 * language.h (struct language_data): Delete la_search_name_hash
7958 field.
7959 (language_defn::search_name_hash): Declare new member function.
7960 (default_search_name_hash): Delete declaration.
7961 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7962 initializer.
7963 * objc-lang.c (objc_language_data): Likewise.
7964 * opencl-lang.c (opencl_language_data): Likewise.
7965 * p-lang.c (pascal_language_data): Likewise.
7966 * rust-lang.c (rust_language_data): Likewise.
7967 * symtab.c (search_name_hash): Update call.
7968
7969 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7970
7971 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7972 initializer.
7973 * c-lang.c (class compile_instance): Declare.
7974 (c_language_data): Delete la_get_compile_instance initializer.
7975 (c_language::get_compile_instance): New member function.
7976 (cplus_language_data): Delete la_get_compile_instance initializer.
7977 (cplus_language::get_compile_instance): New member function.
7978 (asm_language_data): Delete la_get_compile_instance initializer.
7979 (minimal_language_data): Likewise.
7980 * c-lang.h (c_get_compile_context): Update comment.
7981 (cplus_get_compile_context): Update comment.
7982 * compile/compile.c (compile_to_object): Update calls, don't rely
7983 on function pointer being NULL.
7984 * d-lang.c (d_language_data): Delete la_get_compile_instance
7985 initializer.
7986 * f-lang.c (f_language_data): Likewise.
7987 * go-lang.c (go_language_data): Likewise.
7988 * language.c (unknown_language_data): Likewise.
7989 (auto_language_data): Likewise.
7990 * language.h (language_data): Delete la_get_compile_instance field.
7991 (language_defn::get_compile_instance): New member function.
7992 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7993 initializer.
7994 * objc-lang.c (objc_language_data): Likewise.
7995 * opencl-lang.c (opencl_language_data): Likewise.
7996 * p-lang.c (pascal_language_data): Likewise.
7997 * rust-lang.c (rust_language_data): Likewise.
7998
7999 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8000
8001 * ada-lang.c (ada_add_all_symbols): Update comment.
8002 (ada_iterate_over_symbols): Delete, move implementation to...
8003 (ada_language::iterate_over_symbols): ...here, a new member
8004 function, rewrite to use range based for loop.
8005 (ada_language_data): Delete la_iterate_over_symbols initializer.
8006 * c-lang.c (c_language_data): Likewise.
8007 (cplus_language_data): Likewise.
8008 (asm_language_data): Likewise.
8009 (minimal_language_data): Likewise.
8010 * d-lang.c (d_language_data): Likewise.
8011 * f-lang.c (f_language_data): Likewise.
8012 * go-lang.c (go_language_data): Likewise.
8013 * language.c (unknown_language_data): Likewise.
8014 (auto_language_data): Likewise.
8015 * language.h (language_data): Delete la_iterate_over_symbols field.
8016 (language_defn::iterate_over_symbols): New member function.
8017 (LA_ITERATE_OVER_SYMBOLS): Update.
8018 * linespec.c (iterate_over_all_matching_symtabs): Update.
8019 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8020 initializer.
8021 * objc-lang.c (objc_language_data): Likewise.
8022 * opencl-lang.c (opencl_language_data): Likewise.
8023 * p-lang.c (pascal_language_data): Likewise.
8024 * rust-lang.c (rust_language_data): Likewise.
8025
8026 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8027
8028 * ada-lang.c (ada_language_data): Delete
8029 la_lookup_transparent_type initializer.
8030 * c-lang.c (c_language_data): Likewise.
8031 (cplus_language_data): Likewise.
8032 (cplus_language::lookup_transparent_type): New member function.
8033 (asm_language_data): Delete la_lookup_transparent_type
8034 initializer.
8035 (minimal_language_data): Likewise.
8036 * d-lang.c (d_language_data): Likewise.
8037 * f-lang.c (f_language_data): Likewise.
8038 * go-lang.c (go_language_data): Likewise.
8039 * language.c (unknown_language_data): Likewise.
8040 (auto_language_data): Likewise.
8041 * language.h (struct language_data): Delete
8042 la_lookup_transparent_type field.
8043 (language_defn::lookup_transparent_type): New member function.
8044 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8045 initializer.
8046 * objc-lang.c (objc_language_data): Likewise.
8047 * opencl-lang.c (opencl_language_data): Likewise.
8048 * p-lang.c (pascal_language_data): Likewise.
8049 * rust-lang.c (rust_language_data): Likewise.
8050 * symtab.c (symbol_matches_domain): Update call.
8051
8052 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8053
8054 * ada-lang.c (ada_language_arch_info): Delete function, move
8055 implementation to...
8056 (ada_language::language_arch_info): ...here, a new member
8057 function.
8058 (ada_language_data): Delete la_language_arch_info.
8059 * c-lang.c (c_language_data): Likewise.
8060 (c_language::language_arch_info): New member function.
8061 (cplus_language_arch_info): Delete function, move
8062 implementation to...
8063 (cplus_language::language_arch_info): ...here, a new member
8064 function.
8065 (cplus_language_data): Delete la_language_arch_info.
8066 (asm_language_data): Likewise.
8067 (asm_language::language_arch_info): New member function.
8068 (minimal_language_data): Delete la_language_arch_info.
8069 (minimal_language::language_arch_info): New member function.
8070 * d-lang.c (d_language_arch_info): Delete function, move
8071 implementation to...
8072 (d_language::language_arch_info): ...here, a new member
8073 function.
8074 (d_language_data): Delete la_language_arch_info.
8075 * f-lang.c (f_language_arch_info): Delete function, move
8076 implementation to...
8077 (f_language::language_arch_info): ...here, a new member
8078 function.
8079 (f_language_data): Delete la_language_arch_info.
8080 * go-lang.c (go_language_arch_info): Delete function, move
8081 implementation to...
8082 (go_language::language_arch_info): ...here, a new member
8083 function.
8084 (go_language_data): Delete la_language_arch_info.
8085 * language.c (unknown_language_data): Likewise.
8086 (unknown_language::language_arch_info): New member function.
8087 (auto_language_data): Delete la_language_arch_info.
8088 (auto_language::language_arch_info): New member function.
8089 (language_gdbarch_post_init): Update call to
8090 la_language_arch_info.
8091 * language.h (language_data): Delete la_language_arch_info
8092 function pointer.
8093 (language_defn::language_arch_info): New function.
8094 * m2-lang.c (m2_language_arch_info): Delete function, move
8095 implementation to...
8096 (m2_language::language_arch_info): ...here, a new member
8097 function.
8098 (m2_language_data): Delete la_language_arch_info.
8099 * objc-lang.c (objc_language_arch_info): Delete function, move
8100 implementation to...
8101 (objc_language::language_arch_info): ...here, a new member
8102 function.
8103 (objc_language_data): Delete la_language_arch_info.
8104 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8105 implementation to...
8106 (opencl_language::language_arch_info): ...here, a new member
8107 function.
8108 (opencl_language_data): Delete la_language_arch_info.
8109 * p-lang.c (pascal_language_arch_info): Delete function, move
8110 implementation to...
8111 (pascal_language::language_arch_info): ...here, a new member
8112 function.
8113 (pascal_language_data): Delete la_language_arch_info.
8114 * rust-lang.c (rust_language_arch_info): Delete function, move
8115 implementation to...
8116 (rust_language::language_arch_info): ...here, a new member
8117 function.
8118 (rust_language_data): Delete la_language_arch_info.
8119
8120 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8121
8122 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8123 initializer.
8124 * c-lang.c (c_language_data): Likewise.
8125 (cplus_language_data): Likewise.
8126 (cplus_language::pass_by_reference_info): New method.
8127 (asm_language_data): Delete la_pass_by_reference initializer.
8128 (minimal_language_data): Likewise.
8129 * cp-abi.c (cp_pass_by_reference): Remove use of
8130 default_pass_by_reference.
8131 * d-lang.c (d_language_data): Likewise.
8132 * f-lang.c (f_language_data): Likewise.
8133 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8134 default_pass_by_reference.
8135 * go-lang.c (go_language_data): Likewise.
8136 * language.c (language_pass_by_reference): Update.
8137 (default_pass_by_reference): Delete.
8138 (unknown_language_data): Delete la_pass_by_reference
8139 initializer.
8140 (auto_language_data): Likewise.
8141 * language.h (struct language_data): Delete la_pass_by_reference
8142 field.
8143 (language_defn::pass_by_reference_info): New member function.
8144 (default_pass_by_reference): Delete declaration.
8145 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8146 initializer.
8147 * objc-lang.c (objc_language_data): Likewise.
8148 * opencl-lang.c (opencl_language_data): Likewise.
8149 * p-lang.c (pascal_language_data): Likewise.
8150 * rust-lang.c (rust_language_data): Likewise.
8151
8152 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8153
8154 * ada-lang.c (ada_read_var_value): Delete function, move
8155 implementation to...
8156 (ada_language::read_var_value): ...here.
8157 (ada_language_data): Delete la_read_var_value initializer.
8158 * c-lang.c (c_language_data): Likewise.
8159 (cplus_language_data): Likewise.
8160 (minimal_language_data): Likewise.
8161 * d-lang.c (d_language_data): Likewise.
8162 * f-lang.c (f_language_data): Likewise.
8163 * findvar.c (default_read_var_value): Rename to...
8164 (language_defn::read_var_value): ...this.
8165 * findvar.c (read_var_value): Update header comment, and change to
8166 call member function instead of function pointer.
8167 * go-lang.c (go_language_data): Likewise.
8168 * language.c (unknown_language_data): Delete la_read_var_value
8169 initializer.
8170 (auto_language_data): Likewise.
8171 * language.h (struct language_data): Delete la_read_var_value
8172 field.
8173 (language_defn::read_var_value): New member function.
8174 (default_read_var_value): Delete declaration.
8175 * m2-lang.c (m2_language_data): Delete la_read_var_value
8176 initializer.
8177 * objc-lang.c (objc_language_data): Likewise.
8178 * opencl-lang.c (opencl_language_data): Likewise.
8179 * p-lang.c (pascal_language_data): Likewise.
8180 * rust-lang.c (rust_language_data): Likewise.
8181 * value.h (default_read_var_value): Delete declaration.
8182
8183 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8184
8185 * ada-lang.c (ada_print_array_index): Delete function, move
8186 implementation to...
8187 (ada_language::print_array_index): ...here.
8188 (ada_language_data): Delete la_print_array_index initializer.
8189 * c-lang.c (c_language_data): Likewise.
8190 (cplus_language_data): Likewise.
8191 (minimal_language_data): Likewise.
8192 * d-lang.c (d_language_data): Likewise.
8193 * f-lang.c (f_language_data): Likewise.
8194 * go-lang.c (go_language_data): Likewise.
8195 * language.c (default_print_array_index): Delete function, move
8196 implementation to...
8197 (language_defn::print_array_index): ...here.
8198 (unknown_language_data): Delete la_print_array_index initializer.
8199 (auto_language_data): Likewise.
8200 * language.h (struct language_data): Delete la_print_array_index
8201 field.
8202 (language_defn::print_array_index): New member function.
8203 (LA_PRINT_ARRAY_INDEX): Update.
8204 (default_print_array_index): Delete declaration.
8205 * m2-lang.c (m2_language_data): Delete la_print_array_index
8206 initializer.
8207 * objc-lang.c (objc_language_data): Likewise.
8208 * opencl-lang.c (opencl_language_data): Likewise.
8209 * p-lang.c (pascal_language_data): Likewise.
8210 * rust-lang.c (rust_language_data): Likewise.
8211
8212 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8213
8214 * gdb/ada-lang.c (ada_language_defn): Convert to...
8215 (ada_language_data): ...this.
8216 (class ada_language): New class.
8217 (ada_language_defn): New static global.
8218 * gdb/c-lang.c (c_language_defn): Convert to...
8219 (c_language_data): ...this.
8220 (class c_language): New class.
8221 (c_language_defn): New static global.
8222 (cplus_language_defn): Convert to...
8223 (cplus_language_data): ...this.
8224 (class cplus_language): New class.
8225 (cplus_language_defn): New static global.
8226 (asm_language_defn): Convert to...
8227 (asm_language_data): ...this.
8228 (class asm_language): New class.
8229 (asm_language_defn): New static global.
8230 (minimal_language_defn): Convert to...
8231 (minimal_language_data): ...this.
8232 (class minimal_language): New class.
8233 (minimal_language_defn): New static global.
8234 * gdb/d-lang.c (d_language_defn): Convert to...
8235 (d_language_data): ...this.
8236 (class d_language): New class.
8237 (d_language_defn): New static global.
8238 * gdb/f-lang.c (f_language_defn): Convert to...
8239 (f_language_data): ...this.
8240 (class f_language): New class.
8241 (f_language_defn): New static global.
8242 * gdb/go-lang.c (go_language_defn): Convert to...
8243 (go_language_data): ...this.
8244 (class go_language): New class.
8245 (go_language_defn): New static global.
8246 * gdb/language.c (unknown_language_defn): Remove declaration.
8247 (current_language): Initialize to nullptr, real initialization is
8248 moved to _initialize_language.
8249 (languages): Delete global.
8250 (language_defn::languages): Define.
8251 (set_language_command): Use language_defn::languages.
8252 (set_language): Likewise.
8253 (range_error): Likewise.
8254 (language_enum): Likewise.
8255 (language_def): Likewise.
8256 (add_set_language_command): Use language_def::languages for the
8257 language list, and language_def to lookup language pointers.
8258 (skip_language_trampoline): Use language_defn::languages.
8259 (unknown_language_defn): Convert to...
8260 (unknown_language_data): ...this.
8261 (class unknown_language): New class.
8262 (unknown_language_defn): New static global.
8263 (auto_language_defn): Convert to...
8264 (auto_language_data): ...this.
8265 (class auto_language): New class.
8266 (auto_language_defn): New static global.
8267 (language_gdbarch_post_init): Use language_defn::languages.
8268 (_initialize_language): Initialize current_language.
8269 * gdb/language.h (struct language_defn): Rename to...
8270 (struct language_data): ...this.
8271 (struct language_defn): New.
8272 (auto_language_defn): Delete.
8273 (unknown_language_defn): Delete.
8274 (minimal_language_defn): Delete.
8275 (ada_language_defn): Delete.
8276 (asm_language_defn): Delete.
8277 (c_language_defn): Delete.
8278 (cplus_language_defn): Delete.
8279 (d_language_defn): Delete.
8280 (f_language_defn): Delete.
8281 (go_language_defn): Delete.
8282 (m2_language_defn): Delete.
8283 (objc_language_defn): Delete.
8284 (opencl_language_defn): Delete.
8285 (pascal_language_defn): Delete.
8286 (rust_language_defn): Delete.
8287 * gdb/m2-lang.c (m2_language_defn): Convert to...
8288 (m2_language_data): ...this.
8289 (class m2_language): New class.
8290 (m2_language_defn): New static global.
8291 * gdb/objc-lang.c (objc_language_defn): Convert to...
8292 (objc_language_data): ...this.
8293 (class objc_language): New class.
8294 (objc_language_defn): New static global.
8295 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8296 (opencl_language_data): ...this.
8297 (class opencl_language): New class.
8298 (opencl_language_defn): New static global.
8299 * gdb/p-lang.c (pascal_language_defn): Convert to...
8300 (pascal_language_data): ...this.
8301 (class pascal_language): New class.
8302 (pascal_language_defn): New static global.
8303 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8304 language pointer, update comment format.
8305 * gdb/rust-lang.c (rust_language_defn): Convert to...
8306 (rust_language_data): ...this.
8307 (class rust_language): New class.
8308 (rust_language_defn): New static global.
8309
8310 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8311
8312 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8313 member variable.
8314 <m_stmt_at_address>: New member variable.
8315 (lnp_state_machine::record_line): Don't record some lines, update
8316 tracking of is_stmt at the same address.
8317 (lnp_state_machine::lnp_state_machine): Initialise new member
8318 variables.
8319
8320 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8321
8322 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8323 "-include gnu-nat-mig.h".
8324 * gnu-nat-mig.h: New file.
8325 * gnu-nat.c: Include "gnu-nat-mig.h".
8326 (exc_server, msg_reply_server, notify_server,
8327 process_reply_server): Remove declarations.
8328
8329 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8330
8331 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8332 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8333 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8334 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8335 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8336 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8337 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8338 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8339 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8340 to gnu_nat_target class.
8341 * gnu-nat.c: Likewise.
8342 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8343 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8344 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8345 object.
8346 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8347 instead of `gnu_target'.
8348
8349 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8350
8351 * i386-gnu-tdep.c: Include "gdbcore.h"
8352 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8353 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8354 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8355 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8356 i386_gnu_sigcontext_addr): New functions
8357 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8358 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8359 tdep.
8360
8361 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8362
8363 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8364 before fork_inferior call. Avoid calling it if target_is_pushed returns
8365 true.
8366
8367 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8368
8369 * gnu-nat.h (gnu_target): New variable declaration.
8370 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8371 gnu_target.
8372 * gnu-nat.c (gnu_target): New variable.
8373 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8374 add_thread_silent, and add_thread calls.
8375 (gnu_nat_target::create_inferior): Pass gnu_target to
8376 add_thread_silent, thread_change_ptid call.
8377 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8378 call.
8379
8380 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8381
8382 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8383 (gnu_nat_target::find_memory_regions): Remove unused
8384 `old_address' variable.
8385
8386 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8387
8388 * gnu-nat.c: Include "gdbarch.h".
8389
8390 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8391
8392 * reply_mig_hack.awk (Error return): Cast function through
8393 void *, to bypass compiler function call check.
8394
8395 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8396
8397 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8398 $(srcdir)/reply_mig_hack.awk.
8399
8400 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8401
8402 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8403
8404 2020-05-30 Jonny Grant <jg@jguk.org>
8405
8406 * configure.ac (ACX_BUGURL): change bug URL to https.
8407
8408 2020-05-30 Pedro Alves <palves@redhat.com>
8409
8410 * cp-support.c (replace_typedefs_template): New.
8411 (replace_typedefs_qualified_name): Handle
8412 DEMANGLE_COMPONENT_TEMPLATE.
8413
8414 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8415
8416 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8417 dwarf2/index-cache.h, dwarf2/index-write.c,
8418 dwarf2/index-write.h, dwarf2/line-header.c,
8419 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8420 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8421 variables and fields from `dwarf2_per_objfile` to just
8422 `per_objfile` throughout.
8423
8424 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8425
8426 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8427 <push_dwarf_reg_entry_value>: Add comment.
8428
8429 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8430 Keith Seitz <keiths@redhat.com>
8431
8432 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8433 instead of PyEval_ReleaseLock.
8434 (class gdbpy_gil): Move to earlier in file.
8435 (finalize_python): Set gdb_python_initialized.
8436 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8437 when not initialized.
8438
8439 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8440
8441 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8442 <push_dwarf_reg_entry_value>: Remove assert. Override
8443 per_objfile with caller_per_objfile.
8444
8445 2020-05-28 Tom de Vries <tdevries@suse.de>
8446
8447 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8448 PR gold/15646 workaround to symbol kind "type".
8449
8450 2020-05-27 Tom Tromey <tromey@adacore.com>
8451
8452 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8453
8454 2020-05-27 Tom Tromey <tromey@adacore.com>
8455
8456 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8457 Use htab_find_with_hash.
8458 <add_abbrev>: Remove "abbrev_number" parameter.
8459 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8460 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8461 (hash_abbrev): Add comment.
8462 (abbrev_table::lookup_abbrev): Move to header file.
8463 (abbrev_table::read): Update.
8464
8465 2020-05-27 Tom Tromey <tromey@adacore.com>
8466
8467 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8468 method.
8469 <canonical_name>: New member.
8470 <raw_name>: Rename from "name".
8471 (partial_die_info): Initialize canonical_name.
8472 (scan_partial_symbols): Check raw_name.
8473 (partial_die_parent_scope, partial_die_full_name)
8474 (add_partial_symbol, add_partial_subprogram)
8475 (add_partial_enumeration, load_partial_dies): Use "name" method.
8476 (partial_die_info::name): New method.
8477 (partial_die_info::read, guess_partial_die_structure_name)
8478 (partial_die_info::fixup): Update.
8479
8480 2020-05-27 Tom Tromey <tromey@adacore.com>
8481
8482 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8483 <get_ref_die_offset>: Inline.
8484 <get_ref_die_offset_complaint>: New method.
8485 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8486 (attribute::get_ref_die_offset_complaint): Rename from
8487 get_ref_die_offset. Just issue complaint.
8488
8489 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8490
8491 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8492
8493 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8494
8495 * exec.c (exec_file_attach): Use errno value of first openp failure.
8496
8497 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8498
8499 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8500 Don't close thread handle.
8501
8502 2020-05-27 Tom Tromey <tom@tromey.com>
8503 Simon Marchi <simon.marchi@efficios.com>
8504
8505 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8506 shared_ptr.
8507 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8508 member.
8509 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8510 dwarf2_per_bfd_objfile_data_key>: New globals.
8511 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8512 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8513 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8514 shared.
8515 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8516 short-circuit when sharing.
8517 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8518 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8519
8520 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8521
8522 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8523 to...
8524 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8525 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8526
8527 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8528
8529 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8530 build_name_components, find_name_components_bounds>:
8531 Add per_objfile parameter.
8532 (struct mapped_index) <symbol_name_at>: Likewise.
8533 (struct mapped_debug_names): Remove constructor.
8534 <dwarf2_per_objfile>: Remove field.
8535 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8536 (mapped_index_base::find_name_components_bounds,
8537 mapped_index_base::build_name_components,
8538 dw2_expand_symtabs_matching_symbol): Likewise.
8539 (class mock_mapped_index) <symbol_name_at>: Likewise.
8540 (check_match): Likewise.
8541 (check_find_bounds_finds): Likewise.
8542 (test_mapped_index_find_name_component_bounds): Update.
8543 (CHECK_MATCH): Update.
8544 (dw2_expand_symtabs_matching): Update.
8545 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8546 per_objfile parameter.
8547 <find_vec_in_debug_names>: Likewise.
8548 <m_per_objfile>: New field.
8549 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8550 parameter.
8551 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8552 (dw2_debug_names_iterator::next): Update.
8553 (dw2_debug_names_lookup_symbol): Update.
8554 (dw2_debug_names_expand_symtabs_for_function): Update.
8555 (dw2_debug_names_map_matching_symbols): Update.
8556 (dw2_debug_names_expand_symtabs_matching): Update.
8557 (dwarf2_read_debug_names): Update.
8558
8559 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8560
8561 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8562 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8563 move to dwarf2_per_objfile.
8564 <read_in_chain>: Remove.
8565 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8566 remove_all_cus, age_comp_units>: New methods.
8567 <m_dwarf2_cus>: New member.
8568 (struct dwarf2_per_cu_data) <cu>: Remove.
8569 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8570 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8571 moved to methods of dwarf2_per_objfile.
8572 (dwarf2_clear_marks): Remove.
8573 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8574 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8575 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8576 (dwarf2_per_objfile::remove_all_cus): New.
8577 (class free_cached_comp_units) <~free_cached_comp_units>:
8578 Update.
8579 (load_cu): Update.
8580 (dw2_do_instantiate_symtab): Adjust.
8581 (fill_in_sig_entry_from_dwo_entry): Adjust.
8582 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8583 (cutu_reader::cutu_reader): Likewise.
8584 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8585 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8586 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8587 and dwarf2_per_objfile::age_comp_units.
8588 (load_partial_comp_unit): Update.
8589 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8590 (process_queue): Likewise.
8591 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8592 backlink.
8593 (dwarf2_read_addr_index): Likewise.
8594 (follow_die_offset): Likewise.
8595 (dwarf2_fetch_die_loc_sect_off): Likewise.
8596 (dwarf2_fetch_constant_bytes): Likewise.
8597 (dwarf2_fetch_die_type_sect_off): Likewise.
8598 (follow_die_sig_1): Likewise.
8599 (load_full_type_unit): Likewise.
8600 (read_signatured_type): Likewise.
8601 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8602 (dwarf2_cu::~dwarf2_cu): Remove.
8603 (dwarf2_per_objfile::get_cu): New.
8604 (dwarf2_per_objfile::set_cu): New.
8605 (age_cached_comp_units): Rename to...
8606 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8607 to std::unordered_map.
8608 (free_one_cached_comp_unit): Rename to...
8609 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8610 to std::unordered_map.
8611 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8612 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8613 a dwarf2_per_objfile in data.
8614 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8615 (dwarf2_clear_marks): Remove.
8616
8617 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8618
8619 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8620 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8621 (init_tu_and_read_dwo_dies): Likewise.
8622 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8623 (cutu_reader::cutu_reader): Likewise.
8624 (load_partial_comp_unit): Likewise.
8625 (process_psymtab_comp_unit): Update.
8626 (build_type_psymtabs_1): Update.
8627 (process_skeletonless_type_unit): Update.
8628 (load_full_comp_unit): Update.
8629 (find_partial_die): Update.
8630 (dwarf2_read_addr_index): Update.
8631 (read_signatured_type): Update.
8632
8633 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8634
8635 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8636 m_header_read_in>: New fields.
8637 <get_header>: New method.
8638 * dwarf2/read.c (per_cu_header_read_in): Remove.
8639 (dwarf2_per_cu_data::get_header): New.
8640 (dwarf2_per_cu_data::addr_size): Update.
8641 (dwarf2_per_cu_data::offset_size): Update.
8642 (dwarf2_per_cu_data::ref_addr_size): Update.
8643
8644 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8645
8646 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8647 (dw2_do_instantiate_symtab): Update.
8648 (queue_and_load_all_dwo_tus): Change parameter from
8649 dwarf2_per_cu_data to dwarf2_cu.
8650 (dwarf2_fetch_die_loc_sect_off): Update.
8651 (dwarf2_fetch_constant_bytes): Update.
8652 (dwarf2_fetch_die_type_sect_off): Update.
8653
8654 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8655
8656 * dwarf2/read.c (process_full_comp_unit,
8657 process_full_type_unit): Remove per_cu, per_objfile paramters.
8658 Add dwarf2_cu parameter.
8659 (process_queue): Update.
8660
8661 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8662
8663 * dwarf2/read.c (create_cu_from_index_list): Replace
8664 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8665 (create_cus_from_index_list): Likewise.
8666 (create_cus_from_index): Likewise.
8667 (create_signatured_type_table_from_index): Likewise.
8668 (create_cus_from_debug_names_list): Likewise.
8669 (create_cus_from_debug_names): Likewise.
8670 (dwarf2_read_gdb_index): Update.
8671 (dwarf2_read_debug_names): Update.
8672
8673 2020-05-27 Tom Tromey <tom@tromey.com>
8674 Simon Marchi <simon.marchi@efficios.com>
8675
8676 * dwarf2/read.h (struct dwarf2_per_objfile)
8677 <get_type_for_signatured_type, set_type_for_signatured_type>:
8678 New methods.
8679 <m_type_map>: New member.
8680 (struct signatured_type) <type>: Remove.
8681 * dwarf2/read.c
8682 (dwarf2_per_objfile::get_type_for_signatured_type,
8683 dwarf2_per_objfile::set_type_for_signatured_type): New.
8684 (get_signatured_type): Use new methods.
8685
8686 2020-05-27 Tom Tromey <tom@tromey.com>
8687 Simon Marchi <simon.marchi@efficios.com>
8688
8689 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8690 (struct dwarf2_per_objfile) <type_units>: New member.
8691 <get_type_unit_group_unshareable>: New method.
8692 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8693 num_symtabs, symtabs>: Remove; move to
8694 type_unit_group_unshareable.
8695 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8696 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8697 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8698
8699 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8700
8701 * dwarf2/read.h (struct dwarf2_per_cu_data):
8702 <dwarf2_per_objfile>: Remove.
8703 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8704 dwarf2_per_objfile.
8705 (create_signatured_type_table_from_index): Likewise.
8706 (create_signatured_type_table_from_debug_names): Likewise.
8707 (create_debug_type_hash_table): Likewise.
8708 (fill_in_sig_entry_from_dwo_entry): Likewise.
8709 (create_type_unit_group): Likewise.
8710 (read_comp_units_from_section): Likewise.
8711 (create_cus_hash_table): Likewise.
8712
8713 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8714
8715 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8716 dwarf2_per_cu_data::dwarf2_per_objfile.
8717 (compute_compunit_symtab_includes): Likewise.
8718 (dwarf2_cu::start_symtab): Likewise.
8719
8720 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8721
8722 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8723 parameter.
8724 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8725 (read_namespace_alias): Update.
8726 (lookup_die_type): Update.
8727 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8728 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8729 Update.
8730 (disassemble_dwarf_expression): Update.
8731
8732 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * dwarf2/read.h (struct dwarf2_queue_item): Add
8735 dwarf2_per_objfile parameter, assign new parameter.
8736 <per_objfile>: New field.
8737 * dwarf2/read.c (free_one_cached_comp_unit): Add
8738 dwarf2_per_objfile parameter.
8739 (queue_comp_unit): Likewise.
8740 (dw2_do_instantiate_symtab): Update.
8741 (process_psymtab_comp_unit): Update.
8742 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8743 (process_imported_unit_die): Update.
8744 (queue_and_load_dwo_tu): Update.
8745 (follow_die_offset): Update.
8746 (follow_die_sig_1): Update.
8747
8748 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8749
8750 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8751 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8752 (read_call_site_scope): Assign per_objfile.
8753 (dwarf2_per_cu_data::objfile): Remove.
8754 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8755 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8756 dwarf2_per_objfile parameter.
8757 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8758 dwarf2_per_objfile parameter.
8759 (dwarf_expr_reg_to_entry_parameter): Add output
8760 dwarf2_per_objfile parameter.
8761 (locexpr_get_frame_base): Update.
8762 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8763 <push_dwarf_reg_entry_value>: Update.
8764 <call_site_to_target_addr>: Update.
8765 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8766 parameter.
8767 (value_of_dwarf_reg_entry): Update.
8768 (rw_pieced_value): Update.
8769 (indirect_synthetic_pointer): Update.
8770 (dwarf2_evaluate_property): Update.
8771 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8772 parameter.
8773 (locexpr_read_variable): Update.
8774 (locexpr_get_symbol_read_needs): Update.
8775 (loclist_read_variable): Update.
8776
8777 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8778
8779 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8780 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8781 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8782 parameter.
8783 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8784 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8785 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8786 parameter.
8787 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8788 sect_variable_value): Add dwarf2_per_objfile parameter.
8789 (class dwarf_evaluate_loc_desc) <dwarf_call,
8790 dwarf_variable_value>: Update.
8791 (fetch_const_value_from_synthetic_pointer): Add
8792 dwarf2_per_objfile parameter.
8793 (fetch_const_value_from_synthetic_pointer): Update.
8794 (coerced_pieced_ref): Update.
8795 (class symbol_needs_eval_context) <dwarf_call,
8796 dwarf_variable_value>: Update.
8797 (dwarf2_compile_expr_to_ax): Update.
8798
8799 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8800
8801 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8802 parameter.
8803 (dwarf2_evaluate_loc_desc_full): Update.
8804
8805 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8808 parameter.
8809 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8810 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8811 dwarf2_per_objfile parameter.
8812 (decode_debug_loc_dwo_addresses): Likewise.
8813 (dwarf2_find_location_expression): Update.
8814 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8815 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8816 parameter.
8817 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8818 parameter.
8819 (locexpr_describe_location_1): Likewise.
8820 (locexpr_describe_location): Update.
8821
8822 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8823
8824 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8825 Remove.
8826 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8827 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8828 (dwarf2_compile_property_to_c): Update.
8829 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8830 use text offset from objfile.
8831 (locexpr_tracepoint_var_ref): Update.
8832 (locexpr_generate_c_location): Update.
8833 (loclist_describe_location): Update.
8834 (loclist_tracepoint_var_ref): Update.
8835 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8836 dwarf2_per_objfile parameter.
8837 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8838 use text offset from objfile.
8839 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8840
8841 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8842
8843 * dwarf2/expr.h (struct dwarf_expr_context)
8844 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8845 <offset>: Remove.
8846 <per_objfile>: New member.
8847 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8848 dwarf2_per_objfile parameter. Don't set offset, set
8849 per_objfile.
8850 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8851 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8852 a dwarf2_per_objfile object instead of an offset.
8853 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8854 constructor.
8855 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8856 to dwarf2_expr_executor constructor. Don't set offset.
8857 (dwarf2_fetch_cfa_info): Update.
8858 (struct dwarf2_frame_cache) <text_offset>: Remove.
8859 <per_objfile>: New field.
8860 (dwarf2_frame_cache): Update.
8861 (dwarf2_frame_prev_register): Update.
8862 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8863 <dwarf_evaluate_loc_desc>: Add constructor.
8864 (dwarf2_evaluate_loc_desc_full): Update.
8865 (dwarf2_locexpr_baton_eval): Update.
8866 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8867 Add constructor.
8868 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8869
8870 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8871
8872 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8873 addr_sized_int_type>: Move to dwarf2_cu.
8874 <int_type>: Move to dwarf2_per_objfile.
8875 (struct dwarf2_per_objfile) <int_type>: Move here.
8876 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8877 addr_sized_int_type>: Move here.
8878 (read_func_scope): Update.
8879 (read_array_type): Update.
8880 (read_tag_string_type): Update.
8881 (attr_to_dynamic_prop): Update.
8882 (dwarf2_per_cu_data::int_type): Rename to...
8883 (dwarf2_per_objfile::int_type): ... this.
8884 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8885 (dwarf2_cu::addr_sized_int_type): ... this.
8886 (read_subrange_type): Update.
8887 (dwarf2_per_cu_data::addr_type): Rename to...
8888 (dwarf2_cu::addr_type): ... this.
8889 (set_die_type): Update.
8890
8891 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8892
8893 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8894 data through per_cu->cu.
8895
8896 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8897
8898 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8899 dwarf2_per_cu_data parameter fo dwarf2_cu.
8900 (lookup_dwo_type_unit): Likewise.
8901 (read_cutu_die_from_dwo): Likewise.
8902 (lookup_dwo_unit): Likewise.
8903 (open_and_init_dwo_file): Likewise.
8904 (lookup_dwo_cutu): Likewise.
8905 (lookup_dwo_comp_unit): Likewise.
8906 (lookup_dwo_type_unit): Likewise.
8907 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8908 (cutu_reader::cutu_reader): Update.
8909
8910 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8911
8912 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8913 parameter.
8914 (process_full_type_unit): Likewise.
8915 (process_queue): Update.
8916
8917 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8918
8919 * dwarf2/read.c (recursively_compute_inclusions): Add
8920 dwarf2_per_objfile parameter.
8921 (compute_compunit_symtab_includes): Likewise.
8922 (process_cu_includes): Update.
8923
8924 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8925
8926 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8927 parameter.
8928 (create_type_unit_group): Update.
8929 (process_psymtab_comp_unit_reader): Update.
8930 (build_type_psymtabs_reader): Update.
8931
8932 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8933
8934 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8935 object through m_this_cu->cu.
8936
8937 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8938
8939 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8940 the info parameter.
8941 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8942
8943 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8944
8945 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8946 per_objfile parameter.
8947 (load_full_type_unit): Add per_objfile parameter.
8948 (read_signatured_type): Likewise.
8949 (load_full_comp_unit): Likewise.
8950 (load_cu): Likewise.
8951 (dw2_do_instantiate_symtab): Likewise.
8952 (dw2_get_file_names): Likewise.
8953 (dw2_map_symtabs_matching_filename): Update.
8954 (dw_expand_symtabs_matching_file_matcher): Update.
8955 (dw2_map_symbol_filenames): Update.
8956 (process_psymtab_comp_unit): Add per_objfile parameter.
8957 (build_type_psymtabs_1): Update.
8958 (process_skeletonless_type_unit): Update.
8959 (dwarf2_build_psymtabs_hard): Update.
8960 (load_partial_comp_unit): Add per_objfile parameter.
8961 (scan_partial_symbols): Update.
8962 (load_full_comp_unit): Add per_objfile parameter.
8963 (process_imported_unit_die): Update.
8964 (create_cus_hash_table): Update.
8965 (find_partial_die): Update.
8966 (dwarf2_read_addr_index): Update.
8967 (follow_die_offset): Update.
8968 (dwarf2_fetch_die_loc_sect_off): Update.
8969 (dwarf2_fetch_constant_bytes): Update.
8970 (dwarf2_fetch_die_type_sect_off): Update.
8971 (follow_die_sig_1): Update.
8972 (load_full_type_unit): Add per_objfile parameter.
8973 (read_signatured_type): Likewise.
8974
8975 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8976
8977 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8978 of objfile_name.
8979
8980 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8981
8982 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8983 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8984 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8985 field.
8986 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8987 (create_cus_from_index): Update.
8988 (dwarf2_read_gdb_index): Update.
8989 (create_cus_from_debug_names): Update.
8990 (dwarf2_read_debug_names): Update.
8991 (get_abbrev_section_for_cu): Update.
8992 (create_all_comp_units): Update.
8993 (read_attribute_value): Update.
8994 (get_debug_line_section): Update.
8995 * dwarf2/index-cache.c (index_cache::store): Update.
8996 * dwarf2/index-write.c (save_gdb_index_command): Update.
8997 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8998
8999 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9000
9001 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9002 member.
9003 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9004 dwarf2_per_cu_data::per_bfd.
9005 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9006 (create_type_unit_group): Likewise.
9007 (queue_comp_unit): Remove reference to
9008 per_cu->dwarf2_per_objfile.
9009 (maybe_queue_comp_unit): Likewise.
9010 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9011 (create_cus_hash_table): Assign new field.
9012
9013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9014
9015 * dwarf2/read.c: Replace
9016 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9017 dwarf2_cu->per_objfile throughout.
9018
9019 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9020
9021 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9022 parameter, don't use per_cu->dwarf2_per_objfile.
9023 (dw2_instantiate_symtab): Likewise.
9024 (dw2_find_last_source_symtab): Update.
9025 (dw2_map_expand_apply): Update.
9026 (dw2_lookup_symbol): Update.
9027 (dw2_expand_symtabs_for_function): Update.
9028 (dw2_expand_all_symtabs): Update.
9029 (dw2_expand_symtabs_with_fullname): Update.
9030 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9031 don't use per_cu->dwarf2_per_objfile.
9032 (dw2_expand_marked_cus): Update.
9033 (dw2_find_pc_sect_compunit_symtab): Update.
9034 (dw2_debug_names_lookup_symbol): Update.
9035 (dw2_debug_names_expand_symtabs_for_function): Update.
9036 (dw2_debug_names_map_matching_symbols): Update.
9037 (dwarf2_psymtab::expand_psymtab): Update.
9038
9039 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9040
9041 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9042 <per_objfile>: New member.
9043 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9044 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9045 call to dwarf2_cu.
9046 (cutu_reader::cutu_reader): Update.
9047 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9048
9049 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9050
9051 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9052 struct dwarf2_per_objfile.
9053 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9054 dwarf2_per_bfd.
9055 * dwarf2/read.c (set_die_type): Update.
9056 (get_die_type_at_offset): Update.
9057
9058 2020-05-27 Tom Tromey <tom@tromey.com>
9059 Simon Marchi <simon.marchi@efficios.com>
9060
9061 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9062 method.
9063 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9064 get_symtab, set_symtab>: New methods.
9065 <m_symtabs>: New field.
9066 (struct dwarf2_psymtab): Derive from partial_symtab.
9067 <readin_p, get_compunit_symtab>: Declare methods.
9068 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9069 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9070 New methods.
9071 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9072 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9073 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9074 (dw2_symtab_iter_next, dw2_print_stats)
9075 (dw2_expand_symtabs_with_fullname)
9076 (dw2_expand_symtabs_matching_one)
9077 (dw_expand_symtabs_matching_file_matcher)
9078 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9079 (dw2_debug_names_iterator::next)
9080 (dw2_debug_names_map_matching_symbols)
9081 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9082 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9083 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9084 New methods.
9085 (get_compunit_symtab, process_full_comp_unit)
9086 (process_full_type_unit): Update.
9087 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9088
9089 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9090
9091 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9092 then introduce a new dwarf2_per_objfile type.
9093 <read_line_string>: Move to the new dwarf2_per_objfile type.
9094 <objfile>: Likewise.
9095 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9096 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9097 dwarf2_per_objfile->per_bfd.
9098 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9099 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9100 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9101 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9102 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9103 (dwarf2_per_objfile::locate_sections): Rename to...
9104 (dwarf2_per_bfd::locate_sections): ... this.
9105 (dwarf2_per_objfile::get_cutu): Rename to...
9106 (dwarf2_per_bfd::get_cutu): ... this.
9107 (dwarf2_per_objfile::get_cu): Rename to...
9108 (dwarf2_per_bfd::get_cu): ... this.
9109 (dwarf2_per_objfile::get_tu): Rename to...
9110 (dwarf2_per_bfd::get_tu): ... this.
9111 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9112 (dwarf2_per_bfd::allocate_per_cu): ... this.
9113 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9114 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9115 (get_gdb_index_contents_ftype): Change parameter from
9116 dwarf2_per_objfile to dwarf2_per_bfd.
9117 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9118 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9119
9120 2020-05-27 Tom Tromey <tom@tromey.com>
9121 Simon Marchi <simon.marchi@efficios.com>
9122
9123 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9124 (allocate_piece_closure): Set "per_objfile" member.
9125 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9126 (locexpr_describe_location, loclist_describe_location): Use new
9127 member.
9128 * dwarf2/read.c (read_call_site_scope)
9129 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9130 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9131 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9132 handle_data_member_location): Set per_objfile member.
9133 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9134 member.
9135 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9136
9137 2020-05-27 Tom Tromey <tom@tromey.com>
9138
9139 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9140 allocate_signatured_type>: Declare new methods.
9141 <m_num_psymtabs>: New member.
9142 (struct dwarf2_per_cu_data) <index>: New member.
9143 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9144 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9145 (create_cu_from_index_list): Use allocate_per_cu.
9146 (create_signatured_type_table_from_index)
9147 (create_signatured_type_table_from_debug_names)
9148 (create_debug_type_hash_table, add_type_unit)
9149 (read_comp_units_from_section): Use allocate_signatured_type.
9150
9151 2020-05-27 Tom Tromey <tom@tromey.com>
9152
9153 * psymtab.c (partial_map_expand_apply)
9154 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9155 (psym_lookup_global_symbol_language)
9156 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9157 (psym_print_stats, psym_expand_symtabs_for_function)
9158 (psym_map_symbol_filenames, psym_map_matching_symbols)
9159 (psym_expand_symtabs_matching)
9160 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9161 (maintenance_check_psymtabs): Update.
9162 * psympriv.h (struct partial_symtab) <readin_p,
9163 get_compunit_symtab>: Add objfile parameter.
9164 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9165 Likewise.
9166 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9167 get_compunit_symtab>: Likewise.
9168 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9169
9170 2020-05-27 Tom Tromey <tom@tromey.com>
9171
9172 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9173 member.
9174 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9175 (create_cu_from_index_list)
9176 (create_signatured_type_table_from_index)
9177 (create_signatured_type_table_from_debug_names)
9178 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9179 (dwarf2_create_include_psymtab)
9180 (create_debug_type_hash_table, add_type_unit)
9181 (create_type_unit_group, read_comp_units_from_section)
9182 (dwarf2_compute_name, create_cus_hash_table)
9183 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9184 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9185 obstack.
9186 (dw2_get_real_path): Likewise. Change argument to
9187 dwarf2_per_objfile.
9188
9189 2020-05-27 Luis Machado <luis.machado@linaro.org>
9190
9191 PR tdep/26000
9192 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9193 for ldrd (immediate).
9194
9195 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9196
9197 * command.h: Add comment giving the name of class_tui.
9198 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9199 create the fake command for the help for class_tui.
9200
9201 2020-05-26 Tom Tromey <tromey@adacore.com>
9202
9203 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9204 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9205 (val_atr): New function.
9206 (value_val_atr): Use it.
9207 * ada-valprint.c (print_optional_low_bound): Change low bound
9208 handling for enums.
9209 (val_print_packed_array_elements): Don't call discrete_position.
9210 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9211 discrete_position for enum types.
9212 * language.c (default_print_array_index): Change type.
9213 * language.h (struct language_defn) <la_print_array_index>: Add
9214 index_type parameter, change type of index_value.
9215 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9216 (default_print_array_index): Update.
9217 * valprint.c (maybe_print_array_index): Don't call
9218 value_from_longest. Update.
9219 (value_print_array_elements): Don't call discrete_position.
9220
9221 2020-05-26 Tom Tromey <tromey@adacore.com>
9222
9223 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9224 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9225
9226 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9227
9228 PR gdb/13519
9229 * avr-tdep.c (avr_integer_to_address): Return data or code
9230 address accordingly to the second 'type' argument of the
9231 function.
9232
9233 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9234
9235 * infcmd.c, inferior.h: (construct_inferior_arguments):
9236 Moved function from here to gdbsupport/common-inferior.{h,cc}
9237
9238 2020-05-23 Tom Tromey <tom@tromey.com>
9239
9240 Revert commit eca1f90c:
9241 * NEWS: Remove entry for completion styling.
9242 * completer.c (_rl_completion_prefix_display_length): Move
9243 declaration later.
9244 (gdb_fnprint): Revert.
9245 (gdb_display_match_list_1): Likewise.
9246 * cli/cli-style.c (completion_prefix_style)
9247 (completion_difference_style, completion_suffix_style): Remove.
9248 (_initialize_cli_style): Revert.
9249 * cli/cli-style.h (completion_prefix_style)
9250 (completion_difference_style, completion_suffix_style): Don't
9251 declare.
9252
9253 2020-05-24 Pedro Alves <palves@redhat.com>
9254
9255 * symtab.c (completion_list_add_name): Return boolean indication
9256 of whether the symbol matched.
9257 (completion_list_add_symbol): Don't try to remove C++ aliases if
9258 the symbol didn't match in the first place.
9259 * symtab.h (completion_list_add_name): Return bool.
9260
9261 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9262
9263 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9264 type::field.
9265
9266 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9267
9268 GDB 9.2 released.
9269
9270 2020-05-23 Tom Tromey <tom@tromey.com>
9271
9272 * NEWS: Add entry for completion styling.
9273 * completer.c (_rl_completion_prefix_display_length): Move
9274 declaration earlier.
9275 (gdb_fnprint): Use completion_style.
9276 (gdb_display_match_list_1): Likewise.
9277 * cli/cli-style.c (completion_prefix_style)
9278 (completion_difference_style, completion_suffix_style): New
9279 globals.
9280 (_initialize_cli_style): Register new globals.
9281 * cli/cli-style.h (completion_prefix_style)
9282 (completion_difference_style, completion_suffix_style): Declare.
9283
9284 2020-05-23 Pedro Alves <palves@redhat.com>
9285
9286 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9287 (parse_escape): Use ISDIGIT instead of isdigit.
9288 (puts_debug): Use gdb_isprint instead of isprint.
9289 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9290 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9291 ISSPACE instead of isspace.
9292 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9293 instead of isspace.
9294 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9295 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9296 instead of isxdigit and ISDIGIT instead of isdigit.
9297
9298 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * gdbtypes.h (struct type) <field>: New method.
9301 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9302 or type::field.
9303
9304 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9305
9306 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9307 (TYPE_FIELDS): Use type::fields. Change all call sites that
9308 modify the propery to use type::set_fields instead.
9309
9310 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9311
9312 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9313 type::num_fields instead.
9314
9315 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9316
9317 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9318 methods.
9319 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9320 that modify the number of fields to use type::set_num_fields
9321 instead.
9322
9323 2020-05-22 Tom Tromey <tromey@adacore.com>
9324
9325 * compile/compile-object-load.h (munmap_list_free): Don't
9326 declare.
9327
9328 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9329
9330 * annotate.c (annotate_source_line): Update return type, add call
9331 to update current symtab and line.
9332 * annotate.h (annotate_source_line): Update return type, and
9333 extend header comment.
9334 * source.c (info_line_command): Check annotation_level before
9335 calling annotate_source_line.
9336 * stack.c (print_frame_info): If calling annotate_source_line
9337 returns true, then don't print any other source line information.
9338
9339 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9340
9341 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9342
9343 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9344
9345 * coffread.c (patch_type): Remove NULL check before xfree.
9346 * corefile.c (set_gnutarget): Likewise.
9347 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9348 * exec.c (build_section_table): Likewise.
9349 * remote.c (remote_target::pass_signals): Likewise.
9350 * utils.c (n_spaces): Likewise.
9351 * cli/cli-script.c (document_command): Likewise.
9352 * i386-windows-tdep.c (core_process_module_section): Likewise.
9353 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9354
9355 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9356
9357 * symfile.c (reread_symbols): Clear objfile's section_offsets
9358 vector and section indices, re-compute them by calling
9359 sym_offsets.
9360
9361 2020-05-20 Tom Tromey <tromey@adacore.com>
9362
9363 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9364 (desc_one_bound, desc_index_type): Compute field name.
9365
9366 2020-05-20 Tom de Vries <tdevries@suse.de>
9367
9368 PR symtab/25833
9369 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9370
9371 2020-05-20 Alan Modra <amodra@gmail.com>
9372
9373 PR 25993
9374 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9375 bfd_set_filename.
9376 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9377 passed to bfd_set_filename.
9378 * symfile-mem.c (add_vsyscall_page): Likewise for string
9379 passed to symbol_file_add_from_memory.
9380 (symbol_file_add_from_memory): Make name param a const char* and
9381 don't strdup.
9382
9383 2020-05-20 Alan Modra <amodra@gmail.com>
9384
9385 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9386 rather than accessing bfd->filename directly.
9387 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9388 and use bfd_section_name.
9389 * dwarf2/frame.c (decode_frame_entry): Likewise.
9390 * exec.c (exec_set_section_address): Likewise.
9391 * solib-aix.c (solib_aix_bfd_open): Likewise.
9392 * stap-probe.c (get_stap_base_address): Likewise.
9393 * symfile.c (reread_symbols): Likewise.
9394
9395 2020-05-19 Tom Tromey <tromey@adacore.com>
9396
9397 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9398
9399 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9400
9401 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9402
9403 2020-05-19 Pedro Alves <palves@redhat.com>
9404
9405 * NEWS (set exec-file-mismatch): Adjust entry.
9406 * exec.c: Include "build-id.h".
9407 (validate_exec_file): Try to match build IDs instead of filenames.
9408 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9409 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9410 and pass down 'warn_if_slow'.
9411 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9412 gdb_bfd_open_closure to pass it down.
9413 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9414
9415 2020-05-19 Pedro Alves <palves@redhat.com>
9416
9417 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9418 * target.c (target_fileio_open_1): Rename to target_fileio_open
9419 and make extern. Use bool.
9420 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9421 (target_fileio_read_alloc_1): Adjust.
9422 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9423 (target_fileio_open_warn_if_slow): Delete declaration.
9424
9425 2020-05-19 Pedro Alves <palves@redhat.com>
9426
9427 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9428 Adjust all callers.
9429
9430 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9431
9432 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9433 whether disp is negative.
9434
9435 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9436
9437 * symfile.h (struct symfile_segment_data)
9438 <~symfile_segment_data>: Remove.
9439 <segment_info>: Change to std::vector.
9440 * symfile.c (default_symfile_segments): Update.
9441 * elfread.c (elf_symfile_segments): Update.
9442
9443 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9444
9445 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9446 <segments>: New.
9447 <segment_bases, segment_sizes>: Remove.
9448 * symfile.c (default_symfile_segments): Update.
9449 * elfread.c (elf_symfile_segments): Update.
9450 * remote.c (remote_target::get_offsets): Update.
9451 * solib-target.c (solib_target_relocate_section_addresses):
9452 Update.
9453
9454 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9455
9456 * symfile.h (struct symfile_segment_data): Initialize fields.
9457 <~symfile_segment_data>: Add.
9458 (symfile_segment_data_up): New.
9459 (struct sym_fns) <sym_segments>: Return a
9460 symfile_segment_data_up.
9461 (default_symfile_segments): Return a symfile_segment_data_up.
9462 (free_symfile_segment_data): Remove.
9463 (get_symfile_segment_data): Return a symfile_segment_data_up.
9464 * symfile.c (default_symfile_segments): Likewise.
9465 (get_symfile_segment_data): Likewise.
9466 (free_symfile_segment_data): Remove.
9467 (symfile_find_segment_sections): Update.
9468 * elfread.c (elf_symfile_segments): Return a
9469 symfile_segment_data_up.
9470 * remote.c (remote_target::get_offsets): Update.
9471 * solib-target.c (solib_target_relocate_section_addresses):
9472 Update.
9473 * symfile-debug.c (debug_sym_segments): Return a
9474 symfile_segment_data_up.
9475
9476 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9477
9478 PR build/25981
9479 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9480 Hardcode register numbers.
9481
9482 PR build/25981
9483 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9484 procfs_find_LDT_entry): Remove.
9485 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9486 procfs_find_LDT_entry): Remove.
9487 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9488 Remove.
9489
9490 2020-05-17 Pedro Alves <palves@redhat.com>
9491 Andrew Burgess <andrew.burgess@embecosm.com>
9492 Keno Fischer <keno@juliacomputing.com>
9493
9494 PR gdb/25741
9495 * breakpoint.c (build_target_condition_list): Update comments.
9496 (build_target_command_list): Update comments and skip matching
9497 locations.
9498 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9499 a separate function. Simplify "set breakpoint auto-hw off"
9500 handling.
9501 (insert_breakpoints): Update comment.
9502 (tracepoint_locations_match): New parameter. For breakpoints,
9503 compare location types too, if the caller wants to.
9504 (handle_automatic_hardware_breakpoints): New functions.
9505 (bp_location_is_less_than): Also sort by location type and
9506 hardware breakpoint length.
9507 (update_global_location_list): Handle "set breakpoint auto-hw on"
9508 here.
9509 (update_breakpoint_locations): Ask breakpoint_locations_match to
9510 ignore location types.
9511
9512 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9513
9514 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9515 type::name instead.
9516
9517 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9518
9519 * gdbtypes.h (struct type) <name, set_name>: New methods.
9520 (TYPE_CODE): Use type::name. Change all call sites used to set
9521 the name to use type::set_name instead.
9522
9523 2020-05-16 Tom Tromey <tom@tromey.com>
9524
9525 * top.c (quit_force): Update.
9526 * infrun.c (handle_no_resumed): Update.
9527 * top.h (all_uis): New function.
9528 (ALL_UIS): Remove.
9529
9530 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9531
9532 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9533
9534 2020-05-16 Pedro Alves <palves@redhat.com>
9535
9536 * ia64-linux-nat.c
9537 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9538 Declare method.
9539 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9540
9541 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9542
9543 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9544 (sparc64_adi_info): Likewise.
9545
9546 2020-05-15 Tom Tromey <tom@tromey.com>
9547
9548 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9549 block_objfile.
9550 (lookup_objfile_from_block): Remove.
9551 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9552 (lookup_global_symbol): Use block_objfile.
9553 * symtab.h (lookup_objfile_from_block): Don't declare.
9554 * printcmd.c (clear_dangling_display_expressions): Use
9555 block_objfile.
9556 * parse.c (operator_check_standard): Use block_objfile.
9557
9558 2020-05-15 Tom Tromey <tom@tromey.com>
9559
9560 * language.c (language_alloc_type_symbol): Set
9561 SYMBOL_SECTION.
9562 * symtab.c (initialize_objfile_symbol): Remove.
9563 (allocate_symbol): Remove.
9564 (allocate_template_symbol): Remove.
9565 * dwarf2/read.c (fixup_go_packaging): Use "new".
9566 (new_symbol): Use "new".
9567 (read_variable): Don't call initialize_objfile_symbol. Use
9568 "new".
9569 (read_func_scope): Use "new".
9570 * xcoffread.c (process_xcoff_symbol): Don't call
9571 initialize_objfile_symbol.
9572 (SYMBOL_DUP): Remove.
9573 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9574 "new".
9575 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9576 (allocate_template_symbol): Don't declare.
9577 (struct symbol): Add copy constructor. Change defaults.
9578 * jit.c (finalize_symtab): Use "new".
9579 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9580 Use "new".
9581 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9582 (common_block_end): Use "new".
9583 * mdebugread.c (parse_symbol): Use "new".
9584 (new_symbol): Likewise.
9585
9586 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9587
9588 * NEWS: Mention changes to help and apropos.
9589
9590 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9591
9592 * command.h (enum command_class): Improve comments, document
9593 that class_alias is for user-defined aliases, give the class
9594 name for each class, remove unused class_xdb.
9595 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9596 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9597 by a precise class.
9598 * infcmd.c (_initialize_infcmd): Likewise.
9599 * reverse.c (_initialize_reverse): Likewise.
9600 * stack.c (_initialize_stack): Likewise.
9601 * symfile.c (_initialize_symfile): Likewise.
9602 * tracepoint.c (_initialize_tracepoint): Likewise.
9603
9604 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9605
9606 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9607 when their aliased command is traversed.
9608 (help_cmd): Add fput_command_names_styled call to
9609 output command name and aliases when command has an alias.
9610
9611 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9612
9613 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9614 * cli/cli-decode.c (help_cmd_list): Declare as static,
9615 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9616 a command together with the command.
9617 (fput_command_name_styled, fput_command_names_styled): New functions.
9618 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9619 fput_command_name_styled.
9620 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9621 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9622
9623 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9624
9625 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9626 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9627 * command.h (cmd_show_list): Likewise.
9628 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9629 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9630
9631 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9632
9633 * unittests/command-def-selftests.c (traverse_command_structure):
9634 Verify all commands of a list have the same prefix command and
9635 that only the top cmdlist commands have a null prefix.
9636
9637 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9638
9639 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9640 as prefix, not one of its aliases.
9641 (set_cmd_prefix): Remove.
9642 (do_add_cmd): Centralize the setting of the prefix of a command, when
9643 command is defined after its full chain of prefix commands.
9644 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9645 (add_setshow_cmd_full): Likewise.
9646 (update_prefix_field_of_prefixed_commands): New function.
9647 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9648 update_prefix_field_of_prefixed_commands.
9649 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9650 addresses of remote_set_cmdlist and remote_show_cmdlist given
9651 as argument, not the address of an argument.
9652 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9653 * gdb/remote.c (_initialize_remote): Likewise.
9654
9655 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9656
9657 * cli/cli-cmds.c (alias_command): Check for an existing alias
9658 using lookup_cmd_composition, as valid_command_p is too strict
9659 and forbids aliases that are the prefix of an existing alias
9660 or command.
9661 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9662 command is properly recognised as a valid command.
9663
9664 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9665
9666 * unittests/help-doc-selftests.c: Rename to
9667 unittests/command-def-selftests.c
9668 * unittests/command-def-selftests.c (help_doc_tests): Update some
9669 comments.
9670 (command_structure_tests, traverse_command_structure): New namespace
9671 and function.
9672 (command_structure_invariants_tests): New function.
9673 (_initialize_command_def_selftests) Renamed from
9674 _initialize_help_doc_selftests, register command_structure_invariants
9675 selftest.
9676
9677 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9678
9679 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9680 an alias of 'show'.
9681
9682 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9683
9684 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9685 ada_is_fixed_point_type. Update all callers.
9686 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9687 all callers.
9688 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9689 Update all callers.
9690 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9691 print_fixed_point_type. Update all callers.
9692 * ada-valprint.c (ada_value_print_num): Replace call to
9693 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9694
9695 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9696
9697 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9698 processors.
9699 (cpu_supports_bts): Add CV_AMD case.
9700
9701 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9702 Simon Marchi <simon.marchi@efficios.com>
9703
9704 * infrun.c (stop_all_threads): Collect multiple wait events at
9705 each pass.
9706
9707 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9708
9709 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9710 type::code instead.
9711
9712 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9713
9714 * gdbtypes.h (struct type) <code, set_code>: New methods.
9715 (TYPE_CODE): Use type::code. Change all call sites used to set
9716 the code to use type::set_code instead.
9717
9718 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9719 Tom de Vries <tdevries@suse.de>
9720 Pedro Alves <palves@redhat.com>
9721
9722 PR threads/25478
9723 * infrun.c (stop_all_threads): Do NOT ignore
9724 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9725 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9726 received.
9727 (handle_no_resumed): Remove code handling a live inferior with no
9728 threads.
9729 * remote.c (has_single_non_exited_thread): New.
9730 (remote_target::update_thread_list): Do not delete a thread if is
9731 the last thread of the process.
9732 * thread.c (thread_select): Call delete_exited_threads instead of
9733 prune_threads.
9734
9735 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9736
9737 * infrun.c (stop_all_threads): Enable/disable thread events of all
9738 targets. Move a debug message denoting the end of the function
9739 into the SCOPED_EXIT block.
9740
9741 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9742
9743 * process-stratum-target.h: Include <set>.
9744 (all_non_exited_process_targets, switch_to_target_no_thread): New
9745 function declarations.
9746 * process-stratum-target.c (all_non_exited_process_targets)
9747 (switch_to_target_no_thread): New function implementations.
9748
9749 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9750
9751 * infrun.c (handle_inferior_event): Extract out a piece of code
9752 into...
9753 (mark_non_executing_threads): ...this new function.
9754
9755 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9756
9757 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9758 use.
9759
9760 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9761
9762 * regcache.c (regcache_read_pc_protected): New function
9763 implementation that returns 0 if the PC cannot read via
9764 'regcache_read_pc'.
9765 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9766 instead of 'regcache_read_pc'.
9767 (keep_going_pass_signal): Ditto.
9768
9769 2020-05-13 Tom Tromey <tromey@adacore.com>
9770
9771 * ada-lang.c (align_value): Remove.
9772 (ada_template_to_fixed_record_type_1): Use align_up.
9773
9774 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9775
9776 * async-event.c: Update the copyright year.
9777 * async-event.h: Update the copyright year.
9778
9779 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9780
9781 * objfiles.h (is_addr_in_objfile,
9782 shared_objfile_contains_address_p): Return bool.
9783 * objfile.c (is_addr_in_objfile,
9784 shared_objfile_contains_address_p): Return bool.
9785
9786 2020-05-11 Tom Tromey <tromey@adacore.com>
9787
9788 * cli/cli-cmds.c (info_command): Restore.
9789 (_initialize_cli_cmds): Use add_prefix_command for "info".
9790 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9791
9792 2020-05-11 Tom Tromey <tromey@adacore.com>
9793
9794 * ada-lang.c (ada_value_primitive_field): Now public.
9795 * ada-lang.h (ada_value_primitive_field): Declare.
9796 * ada-valprint.c (print_field_values): Use
9797 ada_value_primitive_field for wrapper fields.
9798
9799 2020-05-11 Tom de Vries <tdevries@suse.de>
9800
9801 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9802 MODULE_DOMAIN.
9803
9804 2020-05-11 Tom de Vries <tdevries@suse.de>
9805
9806 PR symtab/25941
9807 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9808 with length 0, if not gdb-produced.
9809 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9810
9811 2020-05-09 Tom de Vries <tdevries@suse.de>
9812
9813 PR gdb/25955
9814 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9815 calculation.
9816
9817 2020-05-09 Tom Tromey <tom@tromey.com>
9818
9819 * top.c (server_command): Now bool.
9820 * top.h (server_command): Now bool.
9821
9822 2020-05-08 Tom Tromey <tromey@adacore.com>
9823
9824 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9825 already being processed.
9826
9827 2020-05-08 Tom Tromey <tom@tromey.com>
9828
9829 * printcmd.c (struct display) <next>: Remove.
9830 <display>: New constructor.
9831 <exp_string>: Now a std::string.
9832 <enabled_p>: Now a bool.
9833 (display_number): Move definition earlier.
9834 (displays): Rename from display_chain. Now a std::vector.
9835 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9836 (display_command): Update.
9837 (do_one_display, disable_display)
9838 (enable_disable_display_command, do_enable_disable_display):
9839 Update.
9840 (free_display): Remove.
9841 (clear_displays): Rewrite.
9842 (delete_display): Update.
9843 (map_display_numbers): Use function_view. Remove "data"
9844 parameter. Update.
9845 (do_delete_display): Remove.
9846 (undisplay_command): Update.
9847 (do_one_display, do_displays, disable_display)
9848 (info_display_command): Update.
9849 (do_enable_disable_display): Remove.
9850 (enable_disable_display_command)
9851 (clear_dangling_display_expressions): Update.
9852
9853 2020-05-08 Tom Tromey <tom@tromey.com>
9854
9855 * symtab.c (set_symbol_cache_size)
9856 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9857 (maintenance_print_symbol_cache_statistics): Update.
9858 * symmisc.c (print_symbol_bcache_statistics)
9859 (print_objfile_statistics, maintenance_print_objfiles)
9860 (maintenance_info_symtabs, maintenance_check_symtabs)
9861 (maintenance_expand_symtabs, maintenance_info_line_tables):
9862 Update.
9863 * symfile-debug.c (set_debug_symfile): Update.
9864 * source.c (forget_cached_source_info): Update.
9865 * python/python.c (gdbpy_progspaces): Update.
9866 * psymtab.c (maintenance_info_psymtabs): Update.
9867 * probe.c (parse_probes): Update.
9868 * linespec.c (iterate_over_all_matching_symtabs)
9869 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9870 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9871 * exec.c (exec_target::close): Update.
9872 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9873 * breakpoint.c (print_one_breakpoint_location)
9874 (create_longjmp_master_breakpoint)
9875 (create_std_terminate_master_breakpoint): Update.
9876 * progspace.c (program_spaces): Now a std::vector.
9877 (maybe_new_address_space): Update.
9878 (add_program_space): Remove.
9879 (program_space::program_space): Update.
9880 (remove_program_space): Update.
9881 (number_of_program_spaces): Remove.
9882 (print_program_space, update_address_spaces): Update.
9883 * progspace.h (program_spaces): Change type.
9884 (ALL_PSPACES): Remove.
9885 (number_of_program_spaces): Don't declare.
9886 (struct program_space) <next>: Remove.
9887
9888 2020-05-08 Tom Tromey <tom@tromey.com>
9889
9890 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9891 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9892 (enable_break): Update.
9893 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9894 (frv_fdpic_find_canonical_descriptor): Update.
9895 (frv_fetch_objfile_link_map): Update.
9896 * progspace.c (program_space::free_all_objfiles): Update.
9897 (program_space::solibs): New method.
9898 * progspace.h (struct program_space) <solibs>: New method.
9899 * solist.h (master_so_list): Don't declare.
9900 (ALL_SO_LIBS): Remove.
9901 * solib.h (so_list_head): Remove.
9902 (update_solib_list): Update comment.
9903 * solib.c (master_so_list): Remove.
9904 (solib_used, update_solib_list, solib_add)
9905 (info_sharedlibrary_command, clear_solib)
9906 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9907
9908 2020-05-08 Tom Tromey <tom@tromey.com>
9909
9910 * extension.c (extension_languages): Now a std::array.
9911 (ALL_EXTENSION_LANGUAGES): Remove.
9912 (get_ext_lang_defn, get_ext_lang_of_file)
9913 (eval_ext_lang_from_control_command): Update.
9914 (finish_ext_lang_initialization)
9915 (auto_load_ext_lang_scripts_for_objfile)
9916 (ext_lang_type_printers::ext_lang_type_printers)
9917 (apply_ext_lang_type_printers)
9918 (ext_lang_type_printers::~ext_lang_type_printers)
9919 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9920 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9921 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9922 (get_matching_xmethod_workers, ext_lang_colorize)
9923 (ext_lang_before_prompt): Update.
9924 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9925
9926 2020-05-08 Tom Tromey <tom@tromey.com>
9927
9928 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9929 overload.
9930 <swap_string, m_string>: Remove.
9931 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9932 Update.
9933 * stabsread.c (define_symbol, read_type): Update.
9934 * linespec.c (find_linespec_symbols): Update.
9935 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9936 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9937 * dbxread.c (read_dbx_symtab): Update.
9938 * cp-support.h (cp_canonicalize_string_full)
9939 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9940 Return unique_xmalloc_ptr.
9941 * cp-support.c (inspect_type): Update.
9942 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9943 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9944 Likewise.
9945 * c-typeprint.c (print_name_maybe_canonical): Update.
9946 * break-catch-throw.c (check_status_exception_catchpoint):
9947 Update.
9948
9949 2020-05-08 Tom de Vries <tdevries@suse.de>
9950
9951 * infrun.c (follow_fork): Copy current_line and current_symtab to
9952 child thread.
9953
9954 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9955
9956 * async-event.c (struct async_signal_handler, struct
9957 async_event_handler): Reformat, remove typedef.
9958
9959 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9960
9961 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9962 access thistype->main_type->dyn_prop_list directly.
9963
9964 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9965
9966 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9967 (remove_dyn_prop): Remove. Update all users to use
9968 type::remove_dyn_prop.
9969 * gdbtypes.c (remove_dyn_prop): Rename to...
9970 (type::remove_dyn_prop): ... this.
9971
9972 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9973
9974 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9975 (add_dyn_prop): Remove. Update all users to use
9976 type::add_dyn_prop.
9977 * gdbtypes.c (add_dyn_prop): Rename to...
9978 (type::add_dyn_prop): ... this.
9979
9980 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9981
9982 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9983 (get_dyn_prop): Remove. Update all users to use
9984 type::dyn_prop.
9985 * gdbtypes.c (get_dyn_prop): Rename to...
9986 (type::dyn_prop): ... this.
9987
9988 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9989
9990 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9991
9992 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9993
9994 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9995 instruction, skip it if it's there.
9996
9997 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9998
9999 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10000
10001 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10002
10003 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10004 * gdbtypes.c (recursive_dump_type): Remove use of
10005 TYPE_INCOMPLETE.
10006
10007 2020-05-03 Tom Tromey <tom@tromey.com>
10008
10009 * breakpoint.c (catch_command, tcatch_command): Remove.
10010 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10011 add_show_prefix_cmd.
10012 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10013 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10014 Remove.
10015 (add_internal_problem_command): Use add_basic_prefix_cmd,
10016 add_show_prefix_cmd.
10017 * mips-tdep.c (set_mipsfpu_command): Remove.
10018 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10019 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10020 (_initialize_index_cache): Use add_basic_prefix_cmd.
10021 * memattr.c (dummy_cmd): Remove.
10022 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10023 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10024 (_initialize_tui_win): Use add_basic_prefix_cmd,
10025 add_show_prefix_cmd.
10026 * cli/cli-logging.c (set_logging_command): Remove.
10027 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10028 add_show_prefix_cmd.
10029 (show_logging_command): Remove.
10030 * target.c (target_command): Remove.
10031 (add_target): Use add_basic_prefix_cmd.
10032
10033 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10034
10035 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10036
10037 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10038
10039 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10040 info_command.
10041
10042 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10043
10044 * nbsd-nat.c (nbsd_enable_proc_events)
10045 (nbsd_nat_target::post_startup_inferior): Add.
10046 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10047 (nbsd_nat_target::update_thread_list): Rewrite.
10048 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10049 "PTRACE_LWP_CREATE".
10050 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10051
10052 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10053
10054 * stack.c (_initialize_stack): Remove duplicated creation
10055 of "frame" command and "f" alias.
10056
10057 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10058
10059 PR gdb/18706
10060 * gdbtypes.c (check_typedef): Calculate size of array of
10061 stubbed type.
10062
10063 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10064
10065 PR gdb/15559
10066 * i386-tdep.c (i386_push_dummy_call): Call
10067 i386_thiscall_push_dummy_call.
10068 (i386_thiscall_push_dummy_call): New function.
10069 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10070 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10071 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10072
10073 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10074
10075 * gdbarch.sh (do_read): Add shellcheck disable directive for
10076 warning SC2162.
10077
10078 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10079
10080 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10081 "referenced but not assigned" warning.
10082
10083 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10084
10085 * gdbarch.sh: Remove code that sets fallbackdefault.
10086
10087 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10088
10089 * gdbarch.sh: Use shell operators && and || instead of
10090 -a and -o.
10091
10092 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10093
10094 * gdbarch.sh: Use $(...) instead of `...`.
10095
10096 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10097
10098 * gdbarch.sh: Use double quotes around variables.
10099
10100 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10101
10102 * gdbarch.sh: Use %s with printf, instead of variables in the
10103 format string.
10104
10105 2020-04-29 Tom Tromey <tromey@adacore.com>
10106
10107 PR ada/25875:
10108 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10109 type fields here.
10110 (read_enumeration_type): Call
10111 update_enumeration_type_from_children later. Update comments.
10112 (process_enumeration_scope): Don't create type fields.
10113
10114 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10115
10116 * nbsd-tdep.c: Include "xml-syscall.h".
10117 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10118
10119 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10120
10121 * nbsd-nat.c: Include "sys/wait.h".
10122 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10123 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10124 (nbsd_nat_target::remove_exec_catchpoint)
10125 (nbsd_nat_target::set_syscall_catchpoint): Add.
10126 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10127 (nbsd_nat_target::insert_exec_catchpoint)
10128 (nbsd_nat_target::remove_exec_catchpoint)
10129 (nbsd_nat_target::set_syscall_catchpoint): Add.
10130 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10131 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10132 `nbsd_get_syscall_number'.
10133
10134 2020-04-29 Tom Tromey <tom@tromey.com>
10135
10136 * stack.c (print_block_frame_labels): Remove.
10137
10138 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10139
10140 PR gdb/17320
10141 * ada-valprint.c (val_print_packed_array_elements): Move array
10142 end bracket to new line.
10143 (ada_val_print_string): Remove extra spaces before first array
10144 element.
10145 * c-valprint.c (c_value_print_array): Likewise.
10146 * m2-valprint.c (m2_print_array_contents): Likewise.
10147 (m2_value_print_inner): Likewise.
10148 * p-valprint.c (pascal_value_print_inner): Likewise.
10149 * valprint.c (generic_val_print_array): Likewise.
10150 (value_print_array_elements): Move first array element and array
10151 end bracket to new line.
10152
10153 2020-04-29 Tom de Vries <tdevries@suse.de>
10154
10155 PR symtab/25889
10156 * linespec.c (find_method): Fix ix calculation.
10157
10158 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10159
10160 * syscalls/update-netbsd.sh: New file.
10161 * syscalls/netbsd.xml: Regenerate.
10162 * data-directory/Makefile.in: Register `netbsd.xml' in
10163 `SYSCALLS_FILES'.
10164
10165 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10166
10167 * syscalls/update-freebsd.sh: Add double quotes.
10168
10169 2020-04-28 Tom Tromey <tom@tromey.com>
10170
10171 * NEWS: Update.
10172 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10173 (cmdpy_init): Allow class_tui.
10174
10175 2020-04-28 Mark Williams <mark@myosotissp.com>
10176
10177 PR gdb/24480
10178 * dwarf2read.c: Add missing assingments to list_in_scope when
10179 start_symtab was already called.
10180
10181 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10182
10183 PR gdb/25881
10184 * dwarf2/read.c (offset_map_type): Use
10185 gdb:hash_enum<sect_offset> as hash function.
10186
10187 2020-04-28 Tom de Vries <tdevries@suse.de>
10188
10189 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10190 with DW_AT_signature.
10191
10192 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10193
10194 * configure.ac: Remove check for fs_base/gs_base in
10195 user_regs_struct.
10196 * configure: Re-generate.
10197 * config.in: Re-generate.
10198 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10199 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10200 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10201
10202 2020-04-27 Luis Machado <luis.machado@linaro.org>
10203
10204 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10205 problematic inline frame unwinding situation.
10206 * frame.c (frame_id_computed_p): New function.
10207 * frame.h (frame_id_computed_p): New prototype.
10208
10209 2020-04-26 Tom Tromey <tom@tromey.com>
10210
10211 * command.h (enum command_class) <class_pseudo>: Remove.
10212
10213 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10214
10215 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10216 and whitespace.
10217
10218 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10219
10220 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10221 `PT_GET_PROCESS_STATE' block.
10222
10223 2020-04-24 Tom Tromey <tom@tromey.com>
10224
10225 * symtab.h (symbol_get_demangled_name): Don't declare.
10226 * symtab.c (symbol_get_demangled_name): Remove.
10227 (general_symbol_info::natural_name)
10228 (general_symbol_info::demangled_name): Update.
10229
10230 2020-04-24 Tom Tromey <tom@tromey.com>
10231
10232 PR rust/25025:
10233 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10234
10235 2020-04-24 Tom Tromey <tom@tromey.com>
10236
10237 PR symtab/12707:
10238 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10239 exists.
10240 (new_symbol): Likewise.
10241 * compile/compile-object-load.c (get_out_value_type): Use
10242 symbol_matches_search_name.
10243
10244 2020-04-24 Tom Tromey <tom@tromey.com>
10245
10246 * dwarf2/read.c (add_partial_symbol): Do not call
10247 compute_and_set_names.
10248
10249 2020-04-24 Tom Tromey <tom@tromey.com>
10250
10251 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10252 overload.
10253
10254 2020-04-24 Tom Tromey <tom@tromey.com>
10255
10256 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10257 (add_psymbol_to_list): New overload. Make old overload call new
10258 one.
10259 * psympriv.h (add_psymbol_to_list): New overload.
10260
10261 2020-04-24 Tom Tromey <tom@tromey.com>
10262
10263 * dwarf2/read.c (partial_die_info::read) <case
10264 DW_AT_linkage_name>: Use value_as_string.
10265 (dwarf2_string_attr): Use value_as_string.
10266 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10267 method.
10268 * dwarf2/attribute.c (attribute::value_as_string): New method.
10269
10270 2020-04-24 Tom Tromey <tom@tromey.com>
10271
10272 * symtab.c (general_symbol_info::natural_name)
10273 (general_symbol_info::demangled_name): Check for language_rust.
10274
10275 2020-04-24 Tom Tromey <tom@tromey.com>
10276
10277 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10278 (dwarf2_physname): ... from here.
10279 (partial_die_info::read): Add Rust "{" hack.
10280
10281 2020-04-24 Tom Tromey <tom@tromey.com>
10282
10283 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10284 method.
10285 (symbol_set_demangled_name): Don't declare.
10286 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10287 symbol_set_demangled_name.
10288 (general_symbol_info::set_language)
10289 (general_symbol_info::compute_and_set_names): Update.
10290 * minsyms.c (minimal_symbol_reader::install): Update.
10291 * dwarf2/read.c (new_symbol): Update.
10292
10293 2020-04-24 Tom Tromey <tromey@adacore.com>
10294
10295 PR python/23662:
10296 * python/py-type.c (convert_field): Handle
10297 FIELD_LOC_KIND_DWARF_BLOCK.
10298 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10299 (typy_get_dynamic): Nw function.
10300 (type_object_getset): Add "dynamic".
10301 * NEWS: Add entry.
10302
10303 2020-04-24 Tom Tromey <tromey@adacore.com>
10304
10305 * ada-typeprint.c (print_choices, print_variant_part)
10306 (print_record_field_types_dynamic): New functions.
10307 (print_record_field_types): Use print_record_field_types_dynamic.
10308
10309 2020-04-24 Tom Tromey <tromey@adacore.com>
10310
10311 * dwarf2/read.c (handle_data_member_location): New overload.
10312 (dwarf2_add_field): Use it.
10313 (decode_locdesc): Add "computed" parameter. Update comment.
10314 * gdbtypes.c (is_dynamic_type_internal): Also look for
10315 FIELD_LOC_KIND_DWARF_BLOCK.
10316 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10317 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10318 virtual base classes.
10319 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10320 FIELD_LOC_KIND_DWARF_BLOCK.
10321
10322 2020-04-24 Tom Tromey <tromey@adacore.com>
10323
10324 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10325 * gdbtypes.c (is_dynamic_type_internal): Check
10326 TYPE_HAS_DYNAMIC_LENGTH.
10327 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10328 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10329 New macros.
10330 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10331 constant.
10332
10333 2020-04-24 Tom Tromey <tromey@adacore.com>
10334
10335 * dwarf2/read.c (struct variant_field): Rewrite.
10336 (struct variant_part_builder): New.
10337 (struct nextfield): Remove "variant" field. Add "offset".
10338 (struct field_info): Add "current_variant_part" and
10339 "variant_parts".
10340 (alloc_discriminant_info): Remove.
10341 (alloc_rust_variant): New function.
10342 (quirk_rust_enum): Update.
10343 (dwarf2_add_field): Set "offset" member. Don't handle
10344 DW_TAG_variant_part.
10345 (offset_map_type): New typedef.
10346 (convert_variant_range, create_one_variant)
10347 (create_one_variant_part, create_variant_parts)
10348 (add_variant_property): New functions.
10349 (dwarf2_attach_fields_to_type): Call add_variant_property.
10350 (read_structure_type): Don't handle DW_TAG_variant_part.
10351 (handle_variant_part, handle_variant): New functions.
10352 (handle_struct_member_die): Use them.
10353 (process_structure_scope): Don't handle variant parts.
10354 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10355 (struct discriminant_info): Remove.
10356 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10357 (struct main_type) <flag_discriminated_union>: Remove.
10358 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10359 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10360 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10361 Update.
10362 * valops.c (value_union_variant): Remove.
10363 * value.h (value_union_variant): Don't declare.
10364
10365 2020-04-24 Tom Tromey <tromey@adacore.com>
10366
10367 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10368 (ada_value_primitive_packed_val): Update.
10369 * ada-valprint.c (ada_value_print_1): Update.
10370 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10371 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10372 just an address. Use evaluate_for_locexpr_baton.
10373 (dwarf2_evaluate_property): Update.
10374 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10375 array_view.
10376 * findvar.c (default_read_var_value): Update.
10377 * gdbtypes.c (compute_variant_fields_inner)
10378 (resolve_dynamic_type_internal): Update.
10379 (resolve_dynamic_type): Change type of valaddr parameter.
10380 * gdbtypes.h (resolve_dynamic_type): Update.
10381 * valarith.c (value_subscripted_rvalue): Update.
10382 * value.c (value_from_contents_and_address): Update.
10383
10384 2020-04-24 Tom Tromey <tromey@adacore.com>
10385
10386 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10387 "push_initial_value" parameter.
10388 (dwarf2_evaluate_property): Likewise.
10389 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10390
10391 2020-04-24 Tom Tromey <tromey@adacore.com>
10392
10393 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10394 (variant::matches, compute_variant_fields_recurse)
10395 (compute_variant_fields_inner, compute_variant_fields): New
10396 functions.
10397 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10398 Use resolved_type after type is made.
10399 (operator==): Add new cases.
10400 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10401 (struct discriminant_range, struct variant, struct variant_part):
10402 New.
10403 (union dynamic_prop_data) <variant_parts, original_type>: New
10404 members.
10405 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10406 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10407 constants.
10408 * value.c (unpack_bits_as_long): Now public.
10409 * value.h (unpack_bits_as_long): Declare.
10410
10411 2020-04-24 Tom Tromey <tromey@adacore.com>
10412
10413 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10414 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10415
10416 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10417
10418 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10419
10420 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10421
10422 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10423 (remove_fork_catchpoint, post_startup_inferior)
10424 (post_attach): Move...
10425 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10426 (remove_fork_catchpoint, post_startup_inferior)
10427 (post_attach): ...here.
10428 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10429 (remove_fork_catchpoint, post_startup_inferior)
10430 (post_attach): Move...
10431 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10432 (remove_fork_catchpoint, post_startup_inferior)
10433 (post_attach): ...here.
10434
10435 2020-04-24 Tom Tromey <tromey@adacore.com>
10436
10437 * nat/windows-nat.h (struct windows_thread_info)
10438 <pc_adjusted>: New member.
10439 * windows-nat.c (windows_fetch_one_register): Check
10440 pc_adjusted.
10441 (windows_nat_target::get_windows_debug_event)
10442 (windows_nat_target::wait): Set pc_adjusted.
10443
10444 2020-04-24 Tom de Vries <tdevries@suse.de>
10445
10446 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10447 Run gdb-add-index inside temp dir.
10448
10449 2020-04-23 Tom Tromey <tromey@adacore.com>
10450
10451 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10452 in loop.
10453
10454 2020-04-23 Luis Machado <luis.machado@linaro.org>
10455
10456 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10457 get_frame_register instead of gdbarch_unwind_pc.
10458
10459 2020-04-23 Tom de Vries <tdevries@suse.de>
10460
10461 * symtab.c (lookup_global_symbol): Prefer def over decl.
10462
10463 2020-04-23 Tom de Vries <tdevries@suse.de>
10464
10465 PR symtab/25807
10466 * block.c (best_symbol, better_symbol): Promote to external.
10467 * block.h (best_symbol, better_symbol): Declare.
10468 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10469 decl.
10470
10471 2020-04-23 Tom Tromey <tromey@adacore.com>
10472
10473 PR ada/25837:
10474 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10475 "const char *", not a "const std::string &".
10476 <name_and_matcher::operator==>: Update.
10477 * unittests/lookup_name_info-selftests.c: Change type of
10478 "result".
10479
10480 2020-04-23 Tom Tromey <tom@tromey.com>
10481
10482 * inferior.h (iterate_over_inferiors): Don't declare.
10483 * inferior.c (iterate_over_inferiors): Remove.
10484 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10485 Remove.
10486 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10487 use iterate_over_inferiors.
10488 (darwin_resume_inferior_it)
10489 (struct resume_inferior_threads_param)
10490 (darwin_resume_inferior_threads_it): Remove.
10491 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10492
10493 2020-04-23 Tom de Vries <tdevries@suse.de>
10494
10495 * blockframe.c (find_pc_partial_function): Use
10496 find_pc_sect_compunit_symtab rather than
10497 objfile->sf->qf->find_pc_sect_compunit_symtab.
10498
10499 2020-04-22 Tom de Vries <tdevries@suse.de>
10500
10501 PR symtab/25764
10502 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10503 in psymtabs.
10504
10505 2020-04-22 Tom de Vries <tdevries@suse.de>
10506
10507 PR symtab/25801
10508 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10509 symtabs.
10510
10511 2020-04-22 Tom de Vries <tdevries@suse.de>
10512
10513 PR symtab/25700
10514 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10515 CU if already created.
10516
10517 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10518
10519 * infrun.c (displaced_step_fixup): Switch to the event_thread
10520 before calling displaced_step_restore, not after.
10521
10522 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10523
10524 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10525 its inferior is not recorded by us.
10526 (record_btrace_target_open): Replace call to
10527 all_non_exited_threads () with call to current_inferior
10528 ()->non_exited_threads ().
10529 (record_btrace_target::stop_recording): Likewise.
10530 (record_btrace_target::close): Likewise.
10531 (record_btrace_target::wait): Likewise.
10532 (record_btrace_target::record_stop_replaying): Likewise.
10533
10534 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10535
10536 * btrace.c (btrace_enable): Throw an error on double enables and
10537 when enabling recording fails.
10538 (btrace_disable): Throw an error if the thread is not recorded.
10539
10540 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10541
10542 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10543 request if we do not have a thread_info.
10544
10545 2020-04-21 Tom de Vries <tdevries@suse.de>
10546
10547 PR gdb/25471
10548 * thread.c
10549 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10550 exception in get_frame_id.
10551
10552 2020-04-20 Tom Tromey <tromey@adacore.com>
10553
10554 * python/python.c (struct gdbpy_event): Mark move constructor as
10555 noexcept.
10556 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10557 constructor as noexcept.
10558 * completer.h (struct completion_result): Mark move constructor as
10559 noexcept.
10560 * completer.c (completion_result::completion_result): Use
10561 initialization style. Don't call reset_match_list.
10562
10563 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10564
10565 * MAINTAINERS (Write After Approval): Add myself.
10566
10567 2020-04-18 Tom Tromey <tom@tromey.com>
10568
10569 * windows-tdep.c (init_w32_command_list)
10570 (w32_prefix_command_valid): Restore.
10571 (_initialize_windows_tdep): Call init_w32_command_list.
10572
10573 2020-04-18 Tom Tromey <tom@tromey.com>
10574
10575 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10576 * value.c (value_fn_field): Update.
10577 * valops.c (find_function_in_inferior)
10578 (value_allocate_space_in_inferior): Update.
10579 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10580 Update.
10581 * tui/tui-source.c (tui_source_window::set_contents): Update.
10582 * symtab.c (lookup_global_or_static_symbol)
10583 (find_function_start_sal_1, skip_prologue_sal)
10584 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10585 * symmisc.c (dump_msymbols, dump_symtab_1)
10586 (maintenance_print_one_line_table): Update.
10587 * symfile.c (init_entry_point_info, section_is_mapped)
10588 (list_overlays_command, simple_read_overlay_table)
10589 (simple_overlay_update_1): Update.
10590 * stap-probe.c (handle_stap_probe): Update.
10591 * stabsread.c (dbx_init_float_type, define_symbol)
10592 (read_one_struct_field, read_enum_type, read_range_type): Update.
10593 * source.c (info_line_command): Update.
10594 * python/python.c (gdbpy_source_objfile_script)
10595 (gdbpy_execute_objfile_script): Update.
10596 * python/py-type.c (save_objfile_types): Update.
10597 * python/py-objfile.c (py_free_objfile): Update.
10598 * python/py-inferior.c (python_new_objfile): Update.
10599 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10600 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10601 (maintenance_check_psymtabs): Update.
10602 * printcmd.c (info_address_command): Update.
10603 * objfiles.h (struct objfile) <arch>: New method, from
10604 get_objfile_arch.
10605 (get_objfile_arch): Don't declare.
10606 * objfiles.c (get_objfile_arch): Remove.
10607 (filter_overlapping_sections): Update.
10608 * minsyms.c (msymbol_is_function): Update.
10609 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10610 (output_nondebug_symbol): Update.
10611 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10612 (mdebug_expand_psymtab): Update.
10613 * machoread.c (macho_add_oso_symfile): Update.
10614 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10615 Update.
10616 * linux-fork.c (checkpoint_command): Update.
10617 * linespec.c (convert_linespec_to_sals): Update.
10618 * jit.c (finalize_symtab): Update.
10619 * infrun.c (insert_exception_resume_from_probe): Update.
10620 * ia64-tdep.c (ia64_find_unwind_table): Update.
10621 * hppa-tdep.c (internalize_unwinds): Update.
10622 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10623 Update.
10624 * gcore.c (call_target_sbrk): Update.
10625 * elfread.c (record_minimal_symbol, elf_symtab_read)
10626 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10627 (elf_gnu_ifunc_resolve_by_got): Update.
10628 * dwarf2/read.c (create_addrmap_from_index)
10629 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10630 (read_debug_names_from_section)
10631 (process_psymtab_comp_unit_reader, add_partial_symbol)
10632 (add_partial_subprogram, process_full_comp_unit)
10633 (read_file_scope, read_func_scope, read_lexical_block_scope)
10634 (read_call_site_scope, dwarf2_ranges_read)
10635 (dwarf2_record_block_ranges, dwarf2_add_field)
10636 (mark_common_block_symbol_computed, read_tag_pointer_type)
10637 (read_tag_string_type, dwarf2_init_float_type)
10638 (dwarf2_init_complex_target_type, read_base_type)
10639 (partial_die_info::read, partial_die_info::read)
10640 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10641 (dwarf2_fetch_die_loc_sect_off): Update.
10642 * dwarf2/loc.c (dwarf2_find_location_expression)
10643 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10644 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10645 (dwarf2_loc_desc_get_symbol_read_needs)
10646 (locexpr_describe_location_piece, locexpr_describe_location_1)
10647 (loclist_describe_location): Update.
10648 * dwarf2/index-write.c (write_debug_names): Update.
10649 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10650 * dtrace-probe.c (dtrace_process_dof): Update.
10651 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10652 (process_one_symbol): Update.
10653 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10654 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10655 (coff_read_enum_type): Update.
10656 * cli/cli-cmds.c (edit_command, list_command): Update.
10657 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10658 * breakpoint.c (create_overlay_event_breakpoint)
10659 (create_longjmp_master_breakpoint)
10660 (create_std_terminate_master_breakpoint)
10661 (create_exception_master_breakpoint, get_sal_arch): Update.
10662 * block.c (block_gdbarch): Update.
10663 * annotate.c (annotate_source_line): Update.
10664
10665 2020-04-17 Tom Tromey <tromey@adacore.com>
10666
10667 * auto-load.c (show_auto_load_cmd): Remove.
10668 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10669 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10670 (maintenance_print_arc_command): Remove.
10671 * tui/tui-win.c (tui_command): Remove.
10672 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10673 * tui/tui-layout.c (tui_layout_command): Remove.
10674 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10675 * python/python.c (user_set_python, user_show_python): Remove.
10676 (_initialize_python): Use add_basic_prefix_cmd,
10677 add_show_prefix_cmd.
10678 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10679 (install_gdb_commands): Use add_basic_prefix_cmd,
10680 add_show_prefix_cmd.
10681 (info_guile_command): Remove.
10682 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10683 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10684 add_show_prefix_cmd.
10685 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10686 Remove do_set and do_show parameters.
10687 * cli/cli-style.c (set_style, show_style): Remove.
10688 (_initialize_cli_style): Use add_basic_prefix_cmd,
10689 add_show_prefix_cmd.
10690 (cli_style_option::add_setshow_commands): Remove do_set and
10691 do_show parameters.
10692 (cli_style_option::add_setshow_commands): Use
10693 add_basic_prefix_cmd, add_show_prefix_cmd.
10694 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10695 (set_style_name): Remove.
10696 * cli/cli-dump.c (dump_command, append_command): Remove.
10697 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10698 (tekhex_dump_command, binary_dump_command)
10699 (binary_append_command): Remove.
10700 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10701 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10702 (init_w32_command_list): Remove; move into ...
10703 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10704 * valprint.c (set_print, show_print, set_print_raw)
10705 (show_print_raw): Remove.
10706 (_initialize_valprint): Use add_basic_prefix_cmd,
10707 add_show_prefix_cmd.
10708 * typeprint.c (set_print_type, show_print_type): Remove.
10709 (_initialize_typeprint): Use add_basic_prefix_cmd,
10710 add_show_prefix_cmd.
10711 * record.c (set_record_command, show_record_command): Remove.
10712 (_initialize_record): Use add_basic_prefix_cmd,
10713 add_show_prefix_cmd.
10714 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10715 add_show_prefix_cmd.
10716 (info_command, show_command, set_debug, show_debug): Remove.
10717 * top.h (set_history, show_history): Don't declare.
10718 * top.c (set_history, show_history): Remove.
10719 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10720 (unset_tdesc_cmd): Remove.
10721 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10722 add_show_prefix_cmd.
10723 * symtab.c (info_module_command): Remove.
10724 (_initialize_symtab): Use add_basic_prefix_cmd.
10725 * symfile.c (overlay_command): Remove.
10726 (_initialize_symfile): Use add_basic_prefix_cmd.
10727 * sparc64-tdep.c (info_adi_command): Remove.
10728 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10729 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10730 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10731 add_show_prefix_cmd.
10732 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10733 (_initialize_serial): Use add_basic_prefix_cmd,
10734 add_show_prefix_cmd.
10735 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10736 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10737 add_show_prefix_cmd.
10738 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10739 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10740 add_show_prefix_cmd.
10741 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10742 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10743 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10744 add_show_prefix_cmd.
10745 * remote.c (remote_command, set_remote_cmd): Remove.
10746 (_initialize_remote): Use add_basic_prefix_cmd.
10747 * record-full.c (set_record_full_command)
10748 (show_record_full_command): Remove.
10749 (_initialize_record_full): Use add_basic_prefix_cmd,
10750 add_show_prefix_cmd.
10751 * record-btrace.c (cmd_set_record_btrace)
10752 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10753 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10754 (cmd_show_record_btrace_pt): Remove.
10755 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10756 add_show_prefix_cmd.
10757 * ravenscar-thread.c (set_ravenscar_command)
10758 (show_ravenscar_command): Remove.
10759 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10760 add_show_prefix_cmd.
10761 * mips-tdep.c (show_mips_command, set_mips_command)
10762 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10763 add_show_prefix_cmd.
10764 * maint.c (maintenance_command, maintenance_info_command)
10765 (maintenance_check_command, maintenance_print_command)
10766 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10767 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10768 add_show_prefix_cmd.
10769 (show_per_command_cmd): Remove.
10770 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10771 Remove.
10772 (maintenance_show_test_settings_cmd): Remove.
10773 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10774 add_show_prefix_cmd.
10775 * maint-test-options.c (maintenance_test_options_command):
10776 Remove.
10777 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10778 * macrocmd.c (macro_command): Remove
10779 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10780 * language.c (set_check, show_check): Remove.
10781 (_initialize_language): Use add_basic_prefix_cmd,
10782 add_show_prefix_cmd.
10783 * infcmd.c (unset_command): Remove.
10784 (_initialize_infcmd): Use add_basic_prefix_cmd.
10785 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10786 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10787 add_show_prefix_cmd.
10788 * go32-nat.c (go32_info_dos_command): Remove.
10789 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10790 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10791 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10792 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10793 (_initialize_frame): Use add_basic_prefix_cmd,
10794 add_show_prefix_cmd.
10795 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10796 (_initialize_dcache): Use add_basic_prefix_cmd,
10797 add_show_prefix_cmd.
10798 * cp-support.c (maint_cplus_command): Remove.
10799 (_initialize_cp_support): Use add_basic_prefix_cmd.
10800 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10801 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10802 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10803 add_basic_prefix_cmd, add_show_prefix_cmd.
10804 * breakpoint.c (save_command): Remove.
10805 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10806 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10807 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10808 add_show_prefix_cmd.
10809 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10810 (set_ada_command, show_ada_command): Remove.
10811 (_initialize_ada_language): Use add_basic_prefix_cmd,
10812 add_show_prefix_cmd.
10813 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10814
10815 2020-04-16 Kamil Rytarowski <n54@gmx.com>
10816
10817 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10818 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10819
10820 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10821
10822 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10823 warning messages.
10824
10825 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10826
10827 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10828 import table is not at beginning of .idata section.
10829
10830 2020-04-16 Pedro Alves <palves@redhat.com>
10831
10832 * inferior.c (delete_inferior): Use delete operator directly
10833 instead of delete_program_space.
10834 * progspace.c (add_program_space): New, factored out from
10835 program_space::program_space.
10836 (remove_program_space): New, factored out from
10837 delete_program_space.
10838 (program_space::program_space): Remove intro comment. Rewrite.
10839 (program_space::~program_space): Remove intro comment. Call
10840 remove_program_space.
10841 (delete_program_space): Delete.
10842 * progspace.h (program_space::program_space): Make explicit. Move
10843 intro comment here, adjusted.
10844 (program_space::~program_space): Move intro comment here,
10845 adjusted.
10846 (delete_program_space): Remove.
10847
10848 2020-04-16 Tom Tromey <tromey@adacore.com>
10849
10850 * windows-nat.c (windows_nat::handle_access_violation): New
10851 function.
10852 * nat/windows-nat.h (handle_access_violation): Declare.
10853 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10854 windows-nat.c. Call handle_access_violation.
10855
10856 2020-04-16 Tom de Vries <tdevries@suse.de>
10857
10858 PR symtab/25791
10859 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10860 CUs without psymtab.
10861
10862 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10863
10864 * python/python.c (do_start_initialization): Don't call
10865 PyEval_InitThreads for Python 3.9 and beyond.
10866
10867 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10868
10869 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10870 thread functions.
10871 (obsd_nat_target::wait): Likewise.
10872
10873 2020-04-15 Tom Tromey <tromey@adacore.com>
10874
10875 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10876 (DEBUG_EXCEPT): Use debug_printf.
10877
10878 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10879
10880 * completer.c (class completion_tracker::completion_hash_entry)
10881 <hash_name>: New member function.
10882 (completion_tracker::discard_completions): New callback to hash a
10883 completion_hash_entry, pass this to htab_create_alloc.
10884
10885 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10886
10887 * windows-nat.c (windows_make_so): Warn rather than stopping with
10888 an error if realpath() fails.
10889
10890 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10891
10892 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10893 (nbsd_nat_target::info_proc): Add do_status.
10894
10895 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10896 Tom de Vries <tdevries@suse.de>
10897
10898 PR symtab/25718
10899 * psympriv.h (struct partial_symtab::read_symtab)
10900 (struct partial_symtab::expand_psymtab)
10901 (struct partial_symtab::read_dependencies): Update comments.
10902 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10903 read_symtab for includer.
10904 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10905 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10906 (struct dwarf2_include_psymtab::m_readin): Remove.
10907 (struct dwarf2_include_psymtab::includer): New member function.
10908 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10909
10910 2020-04-14 Tom de Vries <tdevries@suse.de>
10911
10912 PR symtab/25720
10913 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10914 with NULL symbol_matcher and lookup_name.
10915 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10916 and lookup_name.
10917 * dwarf2/read.c (dw2_expand_symtabs_matching)
10918 (dw2_debug_names_expand_symtabs_matching): Same.
10919 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10920 Make lookup_name a pointer. Update comment.
10921 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10922 lookup_name being a pointer.
10923 * symfile.c (expand_symtabs_matching): Same.
10924 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10925 * linespec.c (iterate_over_all_matching_symtabs): Same.
10926
10927 2020-04-13 Tom Tromey <tom@tromey.com>
10928
10929 * run-on-main-thread.c: Update include.
10930 * unittests/main-thread-selftests.c: Update include.
10931 * tui/tui-win.c: Update include.
10932 * tui/tui-io.c: Update include.
10933 * tui/tui-interp.c: Update include.
10934 * tui/tui-hooks.c: Update include.
10935 * top.h: Update include.
10936 * top.c: Update include.
10937 * ser-base.c: Update include.
10938 * remote.c: Update include.
10939 * remote-notif.c: Update include.
10940 * remote-fileio.c: Update include.
10941 * record-full.c: Update include.
10942 * record-btrace.c: Update include.
10943 * python/python.c: Update include.
10944 * posix-hdep.c: Update include.
10945 * mingw-hdep.c: Update include.
10946 * mi/mi-main.c: Update include.
10947 * mi/mi-interp.c: Update include.
10948 * main.c: Update include.
10949 * linux-nat.c: Update include.
10950 * interps.c: Update include.
10951 * infrun.c: Update include.
10952 * inf-loop.c: Update include.
10953 * event-top.c: Update include.
10954 * event-loop.c: Move to ../gdbsupport/.
10955 * event-loop.h: Move to ../gdbsupport/.
10956 * async-event.h: Update include.
10957 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10958
10959 2020-04-13 Tom Tromey <tom@tromey.com>
10960
10961 * tui/tui-win.c: Include async-event.h.
10962 * remote.c: Include async-event.h.
10963 * remote-notif.c: Include async-event.h.
10964 * record-full.c: Include async-event.h.
10965 * record-btrace.c: Include async-event.h.
10966 * infrun.c: Include async-event.h.
10967 * event-top.c: Include async-event.h.
10968 * event-loop.h: Move some declarations to async-event.h.
10969 * event-loop.c: Don't include ser-event.h or top.h. Move some
10970 code to async-event.c.
10971 * async-event.h: New file.
10972 * async-event.c: New file.
10973 * Makefile.in (COMMON_SFILES): Add async-event.c.
10974 (HFILES_NO_SRCDIR): Add async-event.h.
10975
10976 2020-04-13 Tom Tromey <tom@tromey.com>
10977
10978 * utils.c (flush_streams): New function.
10979 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10980
10981 2020-04-13 Tom Tromey <tom@tromey.com>
10982
10983 * event-loop.c (handle_file_event): Use warning, not
10984 printf_unfiltered.
10985
10986 2020-04-13 Tom Tromey <tom@tromey.com>
10987
10988 * event-loop.c: Include <chrono>.
10989
10990 2020-04-13 Tom Tromey <tom@tromey.com>
10991
10992 * gdb_select.h: Move to ../gdbsupport/.
10993 * event-loop.c: Update include path.
10994 * top.c: Update include path.
10995 * ser-base.c: Update include path.
10996 * ui-file.c: Update include path.
10997 * ser-tcp.c: Update include path.
10998 * guile/scm-ports.c: Update include path.
10999 * posix-hdep.c: Update include path.
11000 * ser-unix.c: Update include path.
11001 * gdb_usleep.c: Update include path.
11002 * mingw-hdep.c: Update include path.
11003 * inflow.c: Update include path.
11004 * infrun.c: Update include path.
11005 * event-top.c: Update include path.
11006
11007 2020-04-13 Tom Tromey <tom@tromey.com>
11008
11009 * configure: Rebuild.
11010 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11011
11012 2020-04-13 Tom Tromey <tom@tromey.com>
11013
11014 * event-loop.h (start_event_loop): Don't declare.
11015 * event-loop.c (start_event_loop): Move...
11016 * main.c (start_event_loop): ...here. Now static.
11017
11018 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11019
11020 * MAINTAINERS: Update my email address.
11021
11022 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11023
11024 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11025 IP_ALL.
11026
11027 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11028
11029 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11030 (nbsd_nat_target::info_proc): Add do_cmdline.
11031
11032 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11033
11034 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11035 (nbsd_nat_target::info_proc): Add do_cwd.
11036
11037 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11038
11039 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11040
11041 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11042
11043 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11044 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11045 (nbsd_nat_target::info_proc): New functions.
11046 * nbsd-nat.c (kinfo_get_vmmap): New function.
11047 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11048 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11049 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11050 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11051 functions.
11052 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11053 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11054 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11055 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11056 (KINFO_VME_FLAG_GROWS_DOWN): New.
11057
11058 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11059
11060 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11061 bit shift.
11062
11063 2020-04-10 Tom Tromey <tromey@adacore.com>
11064
11065 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11066
11067 2020-04-10 Tom Tromey <tromey@adacore.com>
11068
11069 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11070 separate debug files.
11071
11072 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11073
11074 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11075 Move to...
11076 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11077 ... here.
11078 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11079 Check for STATUS_WX86_BREAKPOINT.
11080 (windows_nat_target::wait): Same.
11081
11082 2020-04-10 Tom de Vries <tdevries@suse.de>
11083
11084 PR cli/25808
11085 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11086
11087 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11088
11089 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11090 (Write After Approval): Remove Tom de Vries.
11091
11092 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11093
11094 revert partially:
11095 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11096
11097 * buildsym.c (record_line): Fix undefined behavior and preserve
11098 lines at eof.
11099
11100 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11101
11102 * auxv.h (svr4_auxv_parse): New.
11103 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11104 and generic_auxv_parse.
11105 (svr4_auxv_parse): Add.
11106 * obsd-tdep.c: Include "auxv.h".
11107 (obsd_auxv_parse): Remove.
11108 (obsd_init_abi): Remove comment.
11109 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11110 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11111 * nbsd-tdep.c: Include "auxv.h".
11112 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11113
11114 2020-04-08 Tom Tromey <tromey@adacore.com>
11115
11116 * nat/windows-nat.h (last_wait_event): Don't declare.
11117 (wait_for_debug_event): Update comment.
11118 * nat/windows-nat.c (last_wait_event): Now static.
11119
11120 2020-04-08 Tom Tromey <tromey@adacore.com>
11121
11122 * windows-nat.c (wait_for_debug_event): Move to
11123 nat/windows-nat.c.
11124 * nat/windows-nat.h (wait_for_debug_event): Declare.
11125 * nat/windows-nat.c (wait_for_debug_event): Move from
11126 windows-nat.c. No longer static.
11127
11128 2020-04-08 Tom Tromey <tromey@adacore.com>
11129
11130 * windows-nat.c (get_windows_debug_event): Use
11131 fetch_pending_stop.
11132 * nat/windows-nat.h (fetch_pending_stop): Declare.
11133 * nat/windows-nat.c (fetch_pending_stop): New function.
11134
11135 2020-04-08 Tom Tromey <tromey@adacore.com>
11136
11137 * windows-nat.c (windows_continue): Use matching_pending_stop and
11138 continue_last_debug_event.
11139 * nat/windows-nat.h (matching_pending_stop)
11140 (continue_last_debug_event): Declare.
11141 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11142 (matching_pending_stop, continue_last_debug_event): New
11143 functions.
11144
11145 2020-04-08 Tom Tromey <tromey@adacore.com>
11146
11147 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11148 (handle_exception_result): Move to nat/windows-nat.h.
11149 (DEBUG_EXCEPTION_SIMPLE): Remove.
11150 (windows_nat::handle_ms_vc_exception): New function.
11151 (handle_exception): Move to nat/windows-nat.c.
11152 (get_windows_debug_event): Update.
11153 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11154 nat/windows-nat.c.
11155 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11156 (handle_exception_result): Move from windows-nat.c.
11157 (handle_exception): Declare.
11158 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11159 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11160 windows-nat.c.
11161
11162 2020-04-08 Tom Tromey <tromey@adacore.com>
11163
11164 * windows-nat.c (exception_count, event_count): Remove.
11165 (handle_exception, get_windows_debug_event)
11166 (do_initial_windows_stuff): Update.
11167
11168 2020-04-08 Tom Tromey <tromey@adacore.com>
11169
11170 * windows-nat.c (windows_nat::handle_load_dll)
11171 (windows_nat::handle_unload_dll): Rename. No longer static.
11172 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11173 Declare.
11174
11175 2020-04-08 Tom Tromey <tromey@adacore.com>
11176
11177 * complaints.h (stop_whining): Declare at top-level.
11178 (complaint): Don't declare stop_whining.
11179
11180 2020-04-08 Tom Tromey <tromey@adacore.com>
11181
11182 * windows-nat.c (windows_nat::handle_output_debug_string):
11183 Rename. No longer static.
11184 * nat/windows-nat.h (handle_output_debug_string): Declare.
11185
11186 2020-04-08 Tom Tromey <tromey@adacore.com>
11187
11188 * windows-nat.c (current_process_handle, current_process_id)
11189 (main_thread_id, last_sig, current_event, last_wait_event)
11190 (current_windows_thread, desired_stop_thread_id, pending_stops)
11191 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11192 (display_selectors, fake_create_process)
11193 (get_windows_debug_event): Update.
11194 * nat/windows-nat.h (current_process_handle, current_process_id)
11195 (main_thread_id, last_sig, current_event, last_wait_event)
11196 (current_windows_thread, desired_stop_thread_id, pending_stops)
11197 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11198 * nat/windows-nat.c (current_process_handle, current_process_id)
11199 (main_thread_id, last_sig, current_event, last_wait_event)
11200 (current_windows_thread, desired_stop_thread_id, pending_stops)
11201 (siginfo_er): New globals. Move from windows-nat.c.
11202
11203 2020-04-08 Tom Tromey <tromey@adacore.com>
11204
11205 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11206 (handle_load_dll): Update.
11207 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11208
11209 2020-04-08 Tom Tromey <tromey@adacore.com>
11210
11211 * windows-nat.c (enum thread_disposition_type): Move to
11212 nat/windows-nat.h.
11213 (windows_nat::thread_rec): Rename from thread_rec. No longer
11214 static.
11215 (windows_add_thread, windows_nat_target::fetch_registers)
11216 (windows_nat_target::store_registers, handle_exception)
11217 (windows_nat_target::resume, get_windows_debug_event)
11218 (windows_nat_target::get_tib_address)
11219 (windows_nat_target::thread_name)
11220 (windows_nat_target::thread_alive): Update.
11221 * nat/windows-nat.h (enum thread_disposition_type): Move from
11222 windows-nat.c.
11223 (thread_rec): Declare.
11224
11225 2020-04-08 Tom Tromey <tromey@adacore.com>
11226
11227 * windows-nat.c: Add "using namespace".
11228 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11229 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11230
11231 2020-04-08 Tom Tromey <tromey@adacore.com>
11232
11233 * nat/windows-nat.h (struct windows_thread_info): Declare
11234 destructor.
11235 * nat/windows-nat.c (~windows_thread_info): New.
11236
11237 2020-04-08 Tom Tromey <tromey@adacore.com>
11238
11239 PR gdb/22992
11240 * windows-nat.c (current_event): Update comment.
11241 (last_wait_event, desired_stop_thread_id): New globals.
11242 (struct pending_stop): New.
11243 (pending_stops): New global.
11244 (windows_nat_target) <stopped_by_sw_breakpoint>
11245 <supports_stopped_by_sw_breakpoint>: New methods.
11246 (windows_fetch_one_register): Add assertions. Adjust PC.
11247 (windows_continue): Handle pending stops. Suspend other threads
11248 when stepping. Use last_wait_event
11249 (wait_for_debug_event): New function.
11250 (get_windows_debug_event): Use wait_for_debug_event. Handle
11251 pending stops. Queue spurious stops.
11252 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11253 (windows_nat_target::kill): Use wait_for_debug_event.
11254 * nat/windows-nat.h (struct windows_thread_info)
11255 <stopped_at_software_breakpoint>: New field.
11256 * nat/windows-nat.c (windows_thread_info::resume): Clear
11257 stopped_at_software_breakpoint.
11258
11259 2020-04-08 Tom Tromey <tromey@adacore.com>
11260
11261 * windows-nat.c (enum thread_disposition_type): New.
11262 (thread_rec): Replace "get_context" parameter with "disposition";
11263 change type.
11264 (windows_add_thread, windows_nat_target::fetch_registers)
11265 (windows_nat_target::store_registers, handle_exception)
11266 (windows_nat_target::resume, get_windows_debug_event)
11267 (windows_nat_target::get_tib_address)
11268 (windows_nat_target::thread_name)
11269 (windows_nat_target::thread_alive): Update.
11270
11271 2020-04-08 Tom Tromey <tromey@adacore.com>
11272
11273 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11274 (windows_continue): Use windows_continue::resume.
11275 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11276 resume>: Declare new methods.
11277 * nat/windows-nat.c: New file.
11278 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11279
11280 2020-04-08 Tom Tromey <tromey@adacore.com>
11281
11282 * windows-nat.c (windows_add_thread, windows_delete_thread)
11283 (windows_nat_target::fetch_registers)
11284 (windows_nat_target::store_registers, fake_create_process)
11285 (windows_nat_target::resume, windows_nat_target::resume)
11286 (get_windows_debug_event, windows_nat_target::wait)
11287 (windows_nat_target::pid_to_str)
11288 (windows_nat_target::get_tib_address)
11289 (windows_nat_target::get_ada_task_ptid)
11290 (windows_nat_target::thread_name)
11291 (windows_nat_target::thread_alive): Use lwp, not tid.
11292
11293 2020-04-08 Tom Tromey <tromey@adacore.com>
11294
11295 * windows-nat.c (handle_exception)
11296 (windows_nat_target::thread_name): Update.
11297 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11298 <name>: Now unique_xmalloc_ptr.
11299
11300 2020-04-08 Tom Tromey <tromey@adacore.com>
11301
11302 * windows-nat.c (thread_rec)
11303 (windows_nat_target::fetch_registers): Update.
11304 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11305 Update comment.
11306 <debug_registers_changed, reload_context>: Now bool.
11307
11308 2020-04-08 Tom Tromey <tromey@adacore.com>
11309
11310 * windows-nat.c (windows_add_thread): Use new.
11311 (windows_init_thread_list, windows_delete_thread): Use delete.
11312 (get_windows_debug_event): Update.
11313 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11314 destructor, and initializers.
11315
11316 2020-04-08 Tom Tromey <tromey@adacore.com>
11317
11318 * windows-nat.c (struct windows_thread_info): Remove.
11319 * nat/windows-nat.h: New file.
11320
11321 2020-04-08 Tom Tromey <tromey@adacore.com>
11322
11323 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11324 (thread_rec, windows_add_thread, windows_delete_thread)
11325 (windows_continue): Update.
11326
11327 2020-04-08 Tom Tromey <tromey@adacore.com>
11328
11329 * windows-nat.c (struct windows_thread_info): Remove typedef.
11330 (thread_head): Remove.
11331 (thread_list): New global.
11332 (thread_rec, windows_add_thread, windows_init_thread_list)
11333 (windows_delete_thread, windows_continue): Update.
11334
11335 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11336
11337 * windows-tdep.h (windows_init_abi): Add comment.
11338 (cygwin_init_abi): New declaration.
11339 * windows-tdep.c: Split signal enumeration in two, one for
11340 Windows and one for Cygwin.
11341 (windows_gdb_signal_to_target): Only deal with signal of the
11342 Windows OS ABI.
11343 (cygwin_gdb_signal_to_target): New function.
11344 (windows_init_abi): Rename to windows_init_abi_common, don't set
11345 gdb_signal_to_target gdbarch method. Add new new function with
11346 this name.
11347 (cygwin_init_abi): New function.
11348 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11349 comment. Don't call windows_init_abi.
11350 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11351 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11352 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11353 i386_windows_init_abi_common, don't call windows_init_abi. Add
11354 a new function of this name.
11355 (i386_cygwin_init_abi): New function.
11356 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11357 OS ABI Cygwin.
11358
11359 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11360
11361 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11362 parameter.c.
11363 (dwarf2_read_gdb_index): Update.
11364
11365 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11366
11367 * nbsd-tdep.c: Include "objfiles.h".
11368 (nbsd_skip_solib_resolver): New.
11369 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11370
11371 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11372
11373 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11374 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11375 with DW_LLE_base_addressx are being emitted in DWARFv5.
11376 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11377 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11378 unsigned integer.
11379
11380 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11381
11382 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11383 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11384 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11385 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11386 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11387 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11388 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11389
11390
11391 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11392
11393 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11394 (read_loclist_index): New function definition.
11395 (lookup_loclist_base): New function definition.
11396 (read_loclist_header): New function definition.
11397 (dwarf2_cu): Add loclist_base and loclist_header field.
11398 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11399 (read_full_die_1): Read the value of DW_AT_loclists_base.
11400 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11401 (read_attribute_value): Handle DW_FORM_loclistx.
11402 (skip_one_die): Handle DW_FORM_loclistx.
11403 (loclist_header): New structure declaration.
11404 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11405
11406 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11407
11408 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11409 constructor. Remove `addr` parameter from other constructor and
11410 add `per_cu` parameter.
11411 * dwarf2/read.c (create_partial_symtab): Update.
11412
11413 2020-04-07 Tom de Vries <tdevries@suse.de>
11414
11415 PR symtab/25796
11416 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11417 (partial_die_info::fixup): Inherit has_const_value.
11418
11419 2020-04-07 Tom de Vries <tdevries@suse.de>
11420
11421 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11422 symbols without address.
11423
11424 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11425
11426 * nbsd-nat.h (struct thread_info): Add forward declaration.
11427 (nbsd_nat_target::thread_alive): Add.
11428 (nbsd_nat_target::thread_name): Likewise.
11429 (nbsd_nat_target::update_thread_list): Likewise.
11430 (update_thread_list::post_attach): Likewise.
11431 (post_attach::pid_to_str): Likewise.
11432 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11433 (nbsd_thread_lister): Add.
11434 (nbsd_nat_target::thread_alive): Likewise.
11435 (nbsd_nat_target::thread_name): Likewise.
11436 (nbsd_add_threads): Likewise.
11437 (update_thread_list::post_attach): Likewise.
11438 (nbsd_nat_target::update_thread_list): Likewise.
11439 (post_attach::pid_to_str): Likewise.
11440
11441 2020-04-06 Tom Tromey <tromey@adacore.com>
11442
11443 * ada-valprint.c (print_variant_part): Extract the variant field.
11444 (print_field_values): Use the field as the outer value when
11445 recursing.
11446
11447 2020-04-06 Tom Tromey <tromey@adacore.com>
11448
11449 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11450 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11451 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11452 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11453 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11454
11455 2020-04-06 Tom Tromey <tromey@adacore.com>
11456
11457 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11458 TYPE_CODE_ERROR.
11459
11460 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11461
11462 * nbsd-tdep.c: Include "gdbarch.h".
11463 Define enum with NetBSD signal numbers.
11464 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11465 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11466 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11467 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11468 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11469 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11470 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11471 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11472 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11473 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11474 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11475 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11476
11477 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11478
11479 PR gdb/25325
11480 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11481
11482 2020-04-03 Tom Tromey <tromey@adacore.com>
11483
11484 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11485 Read constant block.
11486
11487 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11488
11489 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11490 (gdb_bfd_get_full_section_contents): New declaration.
11491 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11492 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11493 gdb_bfd_get_full_section_contents.
11494
11495 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11496
11497 * exec.c (build_section_table): Replace internal_error with
11498 gdb_assert.
11499 (section_table_xfer_memory_partial): Likewise.
11500 * mdebugread.c (parse_partial_symbols): Likewise.
11501 * psymtab.c (lookup_partial_symbol): Likewise.
11502 * utils.c (wrap_here): Likewise.
11503
11504 2020-04-02 Tom Tromey <tromey@adacore.com>
11505
11506 * f-lang.c (build_fortran_types): Use arch_type to initialize
11507 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11508
11509 2020-04-02 Tom Tromey <tromey@adacore.com>
11510
11511 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11512 of attributes.
11513
11514 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11515 Bernd Edlinger <bernd.edlinger@hotmail.de>
11516 Tom Tromey <tromey@adacore.com>
11517
11518 * buildsym.c (buildsym_compunit::record_line): Remove
11519 deduplication code.
11520
11521 2020-04-02 Tom de Vries <tdevries@suse.de>
11522
11523 PR ada/24671
11524 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11525
11526 2020-04-02 Tom de Vries <tdevries@suse.de>
11527
11528 * dwarf2/read.c (dwarf2_gdb_index_functions,
11529 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11530 NULL.
11531 * psymtab.c (psym_lookup_global_symbol_language): New function.
11532 (psym_functions): Init psym_lookup_global_symbol_language with
11533 psym_lookup_global_symbol_language.
11534 * symfile-debug.c (debug_sym_quick_functions): Init
11535 lookup_global_symbol_language with NULL.
11536 * symfile.c (set_initial_language): Remove fixme comment.
11537 * symfile.h (struct quick_symbol_functions): Add
11538 lookup_global_symbol_language.
11539 * symtab.c (find_quick_global_symbol_language): New function.
11540 (find_main_name): Use find_quick_global_symbol_language.
11541
11542 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11543
11544 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11545
11546 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11547
11548 * buildsym.c (record_line): Fix undefined behavior and preserve
11549 lines at eof.
11550
11551 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11552
11553 * buildsym.c (record_line): Fix the resizing condition.
11554
11555 2020-04-01 Tom Tromey <tom@tromey.com>
11556
11557 * value.h (value_literal_complex): Add comment.
11558 * valops.c (value_literal_complex): Refer to value.h.
11559
11560 2020-04-01 Tom Tromey <tom@tromey.com>
11561
11562 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11563 (scalar_type): New rule, from typebase.
11564 (typebase): Use scalar_type. Recognize complex types.
11565 (field_name): Handle FLOAT_KEYWORD.
11566 (ident_tokens): Add _Complex and __complex__.
11567
11568 2020-04-01 Tom Tromey <tom@tromey.com>
11569
11570 PR exp/25299:
11571 * valarith.c (promotion_type, complex_binop): New functions.
11572 (scalar_binop): Handle complex numbers. Use promotion_type.
11573 (value_pos, value_neg, value_complement): Handle complex numbers.
11574
11575 2020-04-01 Tom Tromey <tom@tromey.com>
11576
11577 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11578 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11579 (parse_number): Handle complex numbers.
11580
11581 2020-04-01 Tom Tromey <tom@tromey.com>
11582
11583 * c-valprint.c (c_decorations): Change complex suffix to "i".
11584
11585 2020-04-01 Tom Tromey <tom@tromey.com>
11586
11587 * valprint.c (generic_value_print_complex): Use accessors.
11588 * value.h (value_real_part, value_imaginary_part): Declare.
11589 * valops.c (value_real_part, value_imaginary_part): New
11590 functions.
11591 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11592
11593 2020-04-01 Tom Tromey <tom@tromey.com>
11594
11595 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11596 (read_range_type): Update.
11597 * mdebugread.c (basic_type): Update.
11598 * go-lang.c (build_go_types): Use init_complex_type.
11599 * gdbtypes.h (struct main_type) <complex_type>: New member.
11600 (init_complex_type): Update.
11601 (arch_complex_type): Don't declare.
11602 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11603 Make name if none given. Use alloc_type_copy. Look for cached
11604 complex type.
11605 (arch_complex_type): Remove.
11606 (gdbtypes_post_init): Use init_complex_type.
11607 * f-lang.c (build_fortran_types): Use init_complex_type.
11608 * dwarf2/read.c (read_base_type): Update.
11609 * d-lang.c (build_d_types): Use init_complex_type.
11610 * ctfread.c (read_base_type): Update.
11611
11612 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11613
11614 * infrun.c (stop_all_threads): Update assertion, plus when
11615 stopping threads, take into account that we might be trying
11616 to stop an all-stop target.
11617 (stop_waiting): Call 'stop_all_threads' if there exists a
11618 non-stop target.
11619
11620 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11621
11622 * target.h (exists_non_stop_target): New function declaration.
11623 * target.c (exists_non_stop_target): New function.
11624
11625 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11626
11627 PR gdb/24789
11628 * eval.c (is_integral_or_integral_reference): New function.
11629 (evaluate_subexp_standard): Allow integer references in
11630 pointer arithmetic.
11631
11632 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11633
11634 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11635 check for no ptid in the stop reply when the target is non-stop.
11636
11637 2020-04-01 Tom Tromey <tromey@adacore.com>
11638
11639 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11640 "name" parameter to rvalue reference. Initialize m_name_holder.
11641 <lookup_name_info>: New overloads.
11642 <name>: Return gdb::string_view.
11643 <c_str>: New method.
11644 <make_ignore_params>: Update.
11645 <search_name_hash>: Update.
11646 <language_lookup_name>: Return const char *.
11647 <m_name>: Change type.
11648 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11649 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11650 (lookup_name_info::match_any): Update.
11651 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11652 Update.
11653 * minsyms.c (linkage_name_str): Update.
11654 * language.c (default_symbol_name_matcher): Update.
11655 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11656 Update.
11657 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11658 (ada_lookup_name_info::ada_lookup_name_info): Update.
11659 (literal_symbol_name_matcher): Update.
11660
11661 2020-04-01 Tom Tromey <tromey@adacore.com>
11662
11663 * psymtab.c (psymtab_search_name): Remove function.
11664 (psym_lookup_symbol): Create search name and lookup name here.
11665 (lookup_partial_symbol): Remove "name" parameter; add
11666 lookup_name.
11667 (psym_expand_symtabs_for_function): Update.
11668
11669 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11670
11671 PR tui/25597:
11672 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11673
11674 2020-03-31 Tom Tromey <tromey@adacore.com>
11675
11676 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11677 memcpy.
11678
11679 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11680
11681 * features/riscv/32bit-csr.xml: Regenerated.
11682 * features/riscv/64bit-csr.xml: Regenerated.
11683
11684 2020-03-30 Tom Tromey <tromey@adacore.com>
11685
11686 * ada-valprint.c (print_variant_part): Update.
11687 * ada-lang.h (ada_which_variant_applies): Update.
11688 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11689 outer_valaddr parameters; replace with "outer" value parameter.
11690 (to_fixed_variant_branch_type): Update.
11691
11692 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11693
11694 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11695 <list>. Remove inclusion of observable.h.
11696 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11697 (struct arch_lwp_info): New struct.
11698 (class ppc_linux_dreg_interface): New class.
11699 (struct ppc_linux_process_info): New struct.
11700 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11701 <low_new_clone, low_forget_process, low_prepare_to_resume>
11702 <copy_thread_dreg_state, mark_thread_stale>
11703 <mark_debug_registers_changed, register_hw_breakpoint>
11704 <clear_hw_breakpoint, register_wp, clear_wp>
11705 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11706 <num_memory_accesses, get_trigger_type>
11707 <create_watchpoint_request, hwdebug_point_cmp>
11708 <init_arch_lwp_info, get_arch_lwp_info>
11709 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11710 methods.
11711 <struct ptid_hash>: New inner struct.
11712 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11713 members.
11714 (saved_dabr_value, hwdebug_info, max_slots_number)
11715 (struct hw_break_tuple, struct thread_points, ppc_threads)
11716 (have_ptrace_hwdebug_interface)
11717 (hwdebug_find_thread_points_by_tid)
11718 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11719 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11720 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11721 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11722 use m_dreg_interface.
11723 (hwdebug_point_cmp): Change to...
11724 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11725 reference arguments instead of pointers.
11726 (ppc_linux_nat_target::ranged_break_num_registers): Use
11727 m_dreg_interface.
11728 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11729 m_dreg_interface. Call register_hw_breakpoint.
11730 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11731 m_dreg_interface. Call clear_hw_breakpoint.
11732 (get_trigger_type): Change to...
11733 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11734 comment.
11735 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11736 use m_dreg_interface. Call register_hw_breakpoint.
11737 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11738 use m_dreg_interface. Call clear_hw_breakpoint.
11739 (can_use_watchpoint_cond_accel): Change to...
11740 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11741 method. Update comment, use m_dreg_interface and
11742 m_process_info.
11743 (calculate_dvc): Change to...
11744 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11745 m_dreg_interface.
11746 (num_memory_accesses): Change to...
11747 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11748 (check_condition): Change to...
11749 (ppc_linux_nat_target::check_condition): ...this method.
11750 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11751 comment, use m_dreg_interface.
11752 (create_watchpoint_request): Change to...
11753 (ppc_linux_nat_target::create_watchpoint_request): ...this
11754 method. Use m_dreg_interface.
11755 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11756 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11757 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11758 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11759 (ppc_linux_nat_target::low_forget_process)
11760 (ppc_linux_nat_target::low_new_fork)
11761 (ppc_linux_nat_target::low_new_clone)
11762 (ppc_linux_nat_target::low_delete_thread)
11763 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11764 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11765 only call mark_thread_stale.
11766 (ppc_linux_thread_exit): Remove.
11767 (ppc_linux_nat_target::stopped_data_address): Change to...
11768 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11769 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11770 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11771 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11772 comment. Call low_stopped_data_address.
11773 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11774 m_dreg_interface.
11775 (ppc_linux_nat_target::masked_watch_num_registers): Use
11776 m_dreg_interface.
11777 (ppc_linux_nat_target::copy_thread_dreg_state)
11778 (ppc_linux_nat_target::mark_thread_stale)
11779 (ppc_linux_nat_target::mark_debug_registers_changed)
11780 (ppc_linux_nat_target::register_hw_breakpoint)
11781 (ppc_linux_nat_target::clear_hw_breakpoint)
11782 (ppc_linux_nat_target::register_wp)
11783 (ppc_linux_nat_target::clear_wp)
11784 (ppc_linux_nat_target::init_arch_lwp_info)
11785 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11786 (_initialize_ppc_linux_nat): Remove observer callback.
11787
11788 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11789
11790 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11791 (ppc_linux_nat_target::auxv_parse)
11792 (ppc_linux_nat_target::read_description)
11793 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11794 Move up.
11795
11796 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11797
11798 * linux-nat.h (low_new_clone): New method.
11799 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11800
11801 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11802
11803 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11804 (dbx_expand_psymtab): ... this.
11805 (start_psymtab): Update.
11806 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11807 (mdebug_expand_psymtab): ... this.
11808 (parse_partial_symbols): Update.
11809 (new_psymtab): Update.
11810 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11811 (xcoff_expand_psymtab): ... this.
11812 (xcoff_start_psymtab): Update.
11813
11814 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11815
11816 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11817 <expand_dependencies>: ... this.
11818 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11819 (partial_symtab::expand_dependencies): ... this.
11820 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11821 Update.
11822 (dwarf2_psymtab::expand_psymtab): Update.
11823 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11824 * mdebugread.c (psymtab_to_symtab_1): Update.
11825 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11826
11827 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11828
11829 * psympriv.h (discard_psymtab): Remove.
11830 * dbxread.c (dbx_end_psymtab): Update.
11831 * xcoffread.c (xcoff_end_psymtab): Update.
11832
11833 2020-03-28 Tom Tromey <tom@tromey.com>
11834
11835 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11836 comment.
11837
11838 2020-03-28 Tom Tromey <tom@tromey.com>
11839
11840 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11841
11842 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11843
11844 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11845
11846 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11847
11848 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11849
11850 2020-03-26 Tom Tromey <tom@tromey.com>
11851
11852 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11853 (mark_common_block_symbol_computed, read_tag_string_type)
11854 (attr_to_dynamic_prop, read_subrange_type): Update.
11855 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11856 to be methods on struct attribute.
11857 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11858 (read_call_site_scope, partial_die_info::read)
11859 (partial_die_info::read, lookup_die_type, follow_die_ref):
11860 Update.
11861 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11862 from dwarf2_get_ref_die_offset.
11863 (attribute::constant_value): New method, from
11864 dwarf2_get_attr_constant_value.
11865 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11866 Declare method.
11867 <constant_value>: New method.
11868
11869 2020-03-26 Tom Tromey <tom@tromey.com>
11870
11871 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11872 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11873 (dwarf_type_encoding_name): Move to stringify.c.
11874 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11875 * dwarf2/stringify.c: New file.
11876 * dwarf2/stringify.h: New file.
11877
11878 2020-03-26 Tom Tromey <tom@tromey.com>
11879
11880 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11881 Rewrite.
11882
11883 2020-03-26 Tom Tromey <tom@tromey.com>
11884
11885 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11886 methods.
11887 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11888 (lookup_ranges_base): Likewise.
11889 (read_cutu_die_from_dwo, read_full_die_1): Update.
11890
11891 2020-03-26 Tom Tromey <tom@tromey.com>
11892
11893 * dwarf2/read.c (read_import_statement, read_file_scope)
11894 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11895 (read_lexical_block_scope, read_call_site_scope)
11896 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11897 (handle_struct_member_die, process_structure_scope)
11898 (update_enumeration_type_from_children)
11899 (process_enumeration_scope, read_array_type, read_common_block)
11900 (read_namespace, read_module, read_subroutine_type): Update.
11901 (sibling_die): Remove.
11902
11903 2020-03-26 Tom Tromey <tom@tromey.com>
11904
11905 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11906 (build_type_psymtabs_reader, read_structure_type)
11907 (read_enumeration_type, read_full_die_1): Update.
11908 (dwarf2_attr_no_follow): Move to die.h.
11909 * dwarf2/die.h (struct die_info) <attr>: New method.
11910
11911 2020-03-26 Tom Tromey <tom@tromey.com>
11912
11913 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11914 <base_address>: Now an optional.
11915 (dwarf2_find_base_address, dwarf2_rnglists_process)
11916 (dwarf2_ranges_process, fill_in_loclist_baton)
11917 (dwarf2_symbol_mark_computed): Update.
11918
11919 2020-03-26 Tom Tromey <tom@tromey.com>
11920
11921 * dwarf2/read.c (struct die_info): Move to die.h.
11922 * dwarf2/die.h: New file.
11923
11924 2020-03-26 Tom Tromey <tom@tromey.com>
11925
11926 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11927 * dwarf2/read.c
11928 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11929 Move to line-header.c.
11930 (read_checked_initial_length_and_offset, read_formatted_entries):
11931 Likewise.
11932 (dwarf_decode_line_header): Split into two.
11933 * dwarf2/line-header.c
11934 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11935 Move from read.c.
11936 (read_checked_initial_length_and_offset, read_formatted_entries):
11937 Likewise.
11938 (dwarf_decode_line_header): New function, split from read.c.
11939
11940 2020-03-26 Tom Tromey <tom@tromey.com>
11941
11942 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11943 Declare method.
11944 * dwarf2/read.c (read_attribute_value): Update.
11945 (dwarf2_per_objfile::read_line_string): Rename from
11946 read_indirect_line_string.
11947 (read_formatted_entries): Update.
11948
11949 2020-03-26 Tom Tromey <tom@tromey.com>
11950
11951 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11952 variable.
11953
11954 2020-03-26 Tom Tromey <tom@tromey.com>
11955
11956 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11957 const.
11958 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11959 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11960 parameter const.
11961
11962 2020-03-26 Tom Tromey <tom@tromey.com>
11963
11964 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11965 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11966 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11967 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11968
11969 2020-03-26 Tom Tromey <tom@tromey.com>
11970
11971 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11972 file_names_size, file_full_name, file_file_name>: Use const.
11973 <file_name_at, file_names>: Add const overload.
11974 * dwarf2/line-header.c (line_header::file_file_name)
11975 (line_header::file_full_name): Update.
11976
11977 2020-03-26 Tom Tromey <tom@tromey.com>
11978
11979 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11980 (macro_start_file, consume_improper_spaces)
11981 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11982 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11983 (dwarf_decode_macros): Move to macro.c.
11984 * dwarf2/macro.c: New file.
11985 * dwarf2/macro.h: New file.
11986 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11987
11988 2020-03-26 Tom Tromey <tom@tromey.com>
11989
11990 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11991 method.
11992 * dwarf2/section.c: New method. From
11993 read_indirect_string_at_offset_from.
11994 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11995 (read_indirect_string_at_offset_from): Move to section.c.
11996 (read_indirect_string_at_offset): Rewrite.
11997 (read_indirect_line_string_at_offset): Remove.
11998 (read_indirect_string, read_indirect_line_string)
11999 (dwarf_decode_macro_bytes): Update.
12000
12001 2020-03-26 Tom Tromey <tom@tromey.com>
12002
12003 * dwarf2/section.h (struct dwarf2_section_info)
12004 <overload_complaint>: Declare.
12005 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12006 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12007 Rename from dwarf2_section_buffer_overflow_complaint.
12008 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12009 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12010
12011 2020-03-26 Tom Tromey <tom@tromey.com>
12012
12013 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12014 Declare.
12015 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12016 Move from read.c.
12017 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12018 to section.c.
12019
12020 2020-03-26 Tom Tromey <tom@tromey.com>
12021
12022 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12023
12024 2020-03-26 Tom Tromey <tom@tromey.com>
12025
12026 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12027 "builder".
12028 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12029 parameter.
12030 (dwarf_decode_macros): Update.
12031
12032 2020-03-26 Tom Tromey <tom@tromey.com>
12033
12034 * dwarf2/read.c (read_attribute_value): Update.
12035 (read_indirect_string_from_dwz): Move to dwz.c; change into
12036 method.
12037 (dwarf_decode_macro_bytes): Update.
12038 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12039 * dwarf2/dwz.c: New file.
12040 * Makefile.in (COMMON_SFILES): Add dwz.c.
12041
12042 2020-03-26 Tom Tromey <tom@tromey.com>
12043
12044 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12045 * dwarf2/read.c: Add include.
12046 * dwarf2/index-write.c: Add include.
12047 * dwarf2/index-cache.c: Add include.
12048 * dwarf2/dwz.h: New file.
12049
12050 2020-03-25 Tom Tromey <tom@tromey.com>
12051
12052 * compile/compile-object-load.c (get_out_value_type): Mention
12053 correct symbol name in error message.
12054
12055 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12056
12057 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12058
12059 2020-03-25 Tom de Vries <tdevries@suse.de>
12060
12061 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12062 * symmisc.c (dump_symtab_1): Print user and includes fields.
12063 (maintenance_info_symtabs): Same.
12064
12065 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12066
12067 PR gdb/25534
12068 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12069 (riscv_regcache_cooked_write): New function.
12070 (riscv_push_dummy_call): Use new function.
12071 (riscv_return_value): Likewise.
12072
12073 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12074
12075 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12076 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12077 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12078 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12079 * infrun.c (follow_fork): Likewise.
12080 (follow_fork_inferior): Likewise.
12081 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12082 * linux-nat.h (class linux_nat_target): Likewise.
12083 * remote.c (class remote_target) <follow_fork>: Likewise.
12084 (remote_target::follow_fork): Likewise.
12085 * target-delegates.c: Re-generate.
12086 * target.c (default_follow_fork): Likewise.
12087 (target_follow_fork): Likewise.
12088 * target.h (struct target_ops) <follow_fork>: Likewise.
12089 (target_follow_fork): Likewise.
12090
12091 2020-03-24 Tom de Vries <tdevries@suse.de>
12092
12093 * psymtab.c (maintenance_info_psymtabs): Print user field.
12094
12095 2020-03-20 Tom Tromey <tromey@adacore.com>
12096
12097 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12098 const.
12099 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12100 const.
12101
12102 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12103
12104 * ptrace.m4: Don't check for ptrace declaration.
12105 * config.in: Re-generate.
12106 * configure: Re-generate.
12107 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12108 not defined.
12109
12110 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12111
12112 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12113 `PTRACE_TYPE_RET'.
12114 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12115 * sparc-nat.c (gdb_ptrace): Likewise.
12116 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12117
12118 2020-03-20 Tom Tromey <tromey@adacore.com>
12119
12120 * c-exp.y (lex_one_token): Fix assert.
12121
12122 2020-03-20 Tom Tromey <tromey@adacore.com>
12123
12124 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12125 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12126 strncpy call.
12127
12128 2020-03-20 Tom Tromey <tromey@adacore.com>
12129
12130 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12131
12132 2020-03-20 Tom Tromey <tromey@adacore.com>
12133
12134 * ada-valprint.c (print_variant_part): Remove parameters; switch
12135 to value-based API.
12136 (print_field_values): Likewise.
12137 (ada_val_print_struct_union): Likewise.
12138 (ada_value_print_1): Update.
12139
12140 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12141
12142 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12143 nbsd_nat_target instead of inf_ptrace_target.
12144 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12145 nbsd_nat_target.
12146
12147 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12148
12149 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12150 it to the ptrace call.
12151 * (store_registers): Likewise.
12152
12153 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12154
12155 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12156 it to the ptrace call.
12157 * (store_registers): Likewise.
12158
12159 2020-03-19 Luis Machado <luis.machado@linaro.org>
12160
12161 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12162 valid, fetch vg value from ptrace.
12163
12164 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12165 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12166 * inf-ptrace.c: Likewise.
12167 * (gdb_ptrace): Add.
12168 * (inf_ptrace_target::resume): Update.
12169 * (inf_ptrace_target::xfer_partial): Likewise.
12170 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12171 * (inf_ptrace_peek_poke): Update.
12172
12173 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12174
12175 * x86-bsd-nat.c (gdb_ptrace): New.
12176 * (x86bsd_dr_set): Add new argument `ptid'.
12177 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12178 x86bsd_dr_set_addr): Update.
12179
12180 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12181
12182 * remote.c (remote_target::process_stop_reply): Handle events for
12183 all threads differently.
12184
12185 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12186
12187 * completer.c (completion_tracker::remove_completion): Define new
12188 function.
12189 * completer.h (completion_tracker::remove_completion): Declare new
12190 function.
12191 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12192 when adding a C++ function symbol.
12193
12194 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12195
12196 * completer.c (completion_tracker::completion_hash_entry): Define
12197 new class.
12198 (advance_to_filename_complete_word_point): Call
12199 recompute_lowest_common_denominator.
12200 (completion_tracker::completion_tracker): Call discard_completions
12201 to setup the hash table.
12202 (completion_tracker::discard_completions): Allow for being called
12203 from the constructor, pass new equal function, and element deleter
12204 when constructing the hash table. Initialise new class member
12205 variables.
12206 (completion_tracker::maybe_add_completion): Remove use of
12207 m_entries_vec, and store more information into m_entries_hash.
12208 (completion_tracker::recompute_lcd_visitor): New function, most
12209 content taken from...
12210 (completion_tracker::recompute_lowest_common_denominator):
12211 ...here, this now just visits each item in the hash calling the
12212 above visitor.
12213 (completion_tracker::build_completion_result): Remove use of
12214 m_entries_vec, call recompute_lowest_common_denominator.
12215 * completer.h (completion_tracker::have_completions): Remove use
12216 of m_entries_vec.
12217 (completion_tracker::completion_hash_entry): Declare new class.
12218 (completion_tracker::recompute_lowest_common_denominator): Change
12219 function signature.
12220 (completion_tracker::recompute_lcd_visitor): Declare new function.
12221 (completion_tracker::m_entries_vec): Delete.
12222 (completion_tracker::m_entries_hash): Initialize to NULL.
12223 (completion_tracker::m_lowest_common_denominator_valid): New
12224 member variable.
12225 (completion_tracker::m_lowest_common_denominator_max_length): New
12226 member variable.
12227
12228 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12229
12230 * regformats/regdef.h: Put reg in gdb namespace.
12231
12232 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12233
12234 * i386-bsd-nat.c (gdb_ptrace): New.
12235 * (i386bsd_fetch_inferior_registers,
12236 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12237 * (i386bsd_fetch_inferior_registers,
12238 i386bsd_store_inferior_registers) Use gdb_ptrace.
12239
12240 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12241
12242 * amd64-bsd-nat.c (gdb_ptrace): New.
12243 * (amd64bsd_fetch_inferior_registers,
12244 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12245 * (amd64bsd_fetch_inferior_registers,
12246 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12247
12248 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12249
12250 * user-regs.c (user_reg::read): Rename to...
12251 (user_reg::xread): ...this.
12252 * (append_user_reg): Rename argument `read' to `xread'.
12253 * (user_reg_add_builtin): Likewise.
12254 * (user_reg_add): Likewise.
12255 * (value_of_user_reg): Likewise.
12256
12257 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12258
12259 * sparc-nat.c (gdb_ptrace): New.
12260 * sparc-nat.c (sparc_fetch_inferior_registers)
12261 (sparc_store_inferior_registers) Remove obsolete comment.
12262 * sparc-nat.c (sparc_fetch_inferior_registers)
12263 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12264 * sparc-nat.c (sparc_fetch_inferior_registers)
12265 (sparc_store_inferior_registers) Use gdb_ptrace.
12266
12267 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12268
12269 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12270 it to the ptrace call.
12271 * sh-nbsd-nat.c (store_registers): Likewise.
12272
12273 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12274
12275 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12276 nbsd_nat_target instead of inf_ptrace_target.
12277 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12278 nbsd_nat_target.
12279
12280 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12281
12282 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12283
12284 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12285
12286 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12287 <sys/sysctl.h>.
12288 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12289
12290 2020-03-17 Tom de Vries <tdevries@suse.de>
12291
12292 PR gdb/23710
12293 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12294 fields.
12295 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12296 fields.
12297 (process_imported_unit_die): Skip import of c++ CUs.
12298
12299 2020-03-16 Tom Tromey <tom@tromey.com>
12300
12301 * p-valprint.c (pascal_object_print_value): Initialize
12302 base_value.
12303
12304 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12305 Shahab Vahedi <shahab@synopsys.com>
12306
12307 * Makefile.in: Add arch/arc.o
12308 * configure.tgt: Likewise.
12309 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12310 (_initialize_arc_tdep): Don't initialize old target descriptions.
12311 (arc_read_description): New function to cache target descriptions.
12312 * arc-tdep.h (arc_read_description): Add proto type.
12313 * arch/arc.c: New file.
12314 * arch/arc.h: Likewise.
12315 * features/Makefile: Replace old target descriptions with new.
12316 * features/arc-arcompact.c: Remove.
12317 * features/arc-arcompact.xml: Likewise.
12318 * features/arc-v2.c: Likewise
12319 * features/arc-v2.xml: Likewise
12320 * features/arc/aux-arcompact.xml: New file.
12321 * features/arc/aux-v2.xml: Likewise.
12322 * features/arc/core-arcompact.xml: Likewise.
12323 * features/arc/core-v2.xml: Likewise.
12324 * features/arc/aux-arcompact.c: Generate.
12325 * features/arc/aux-v2.c: Likewise.
12326 * features/arc/core-arcompact.c: Likewise.
12327 * features/arc/core-v2.c: Likewise.
12328 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12329
12330 2020-03-16 Tom Tromey <tromey@adacore.com>
12331
12332 PR gdb/25663:
12333 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12334 putting value into bcache.
12335
12336 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12337
12338 PR gdb/21500
12339 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12340 to...
12341 (amd64_windows_init_abi_common): ... this. Don't set size of
12342 long type.
12343 (amd64_windows_init_abi): New function.
12344 (amd64_cygwin_init_abi): New function.
12345 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12346 the Cygwin OS ABI.
12347 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12348 comment.
12349
12350 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12351
12352 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12353 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12354 (pe_import_directory_entry): New struct type.
12355 (is_linked_with_cygwin_dll): New function.
12356 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12357 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12358 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12359
12360 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12361
12362 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12363 i386_cygwin_core_osabi_sniffer.
12364
12365 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12366
12367 * i386-cygwin-tdep.c: Rename to...
12368 * i386-windows-tdep.c: ... this.
12369 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12370 i386-windows-tdep.c.
12371 * configure.tgt: Likewise.
12372
12373 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12374
12375 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12376 * osabi.c (gdb_osabi_names): Add "Windows".
12377 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12378 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12379 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12380 i386_cygwin_osabi_sniffer.
12381 (_initialize_i386_cygwin_tdep): Register OS ABI
12382 GDB_OSABI_WINDOWS for i386.
12383 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12384 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12385 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12386 for x86-64.
12387 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12388 when the target matches '*-*-mingw*'.
12389
12390 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12391
12392 * defs.h (enum gdb_osabi): Move to...
12393 * osabi.h (enum gdb_osabi): ... here.
12394 * gdbarch.sh: Include osabi.h in gdbarch.h.
12395 * gdbarch.h: Re-generate.
12396
12397 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12398
12399 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12400 function.
12401 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12402
12403 2020-03-14 Tom Tromey <tom@tromey.com>
12404
12405 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12406 for C++.
12407 (c_type_print_modifier): Likewise. Add "language" parameter.
12408 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12409 (c_type_print_base_1): Update.
12410 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12411 constants.
12412 * type-stack.c (type_stack::insert): Handle tp_atomic and
12413 tp_restrict.
12414 (type_stack::follow_type_instance_flags): Likewise.
12415 (type_stack::follow_types): Likewise. Merge type-following code.
12416 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12417 (space_identifier, cv_with_space_id)
12418 (const_or_volatile_or_space_identifier_noopt)
12419 (const_or_volatile_or_space_identifier): Remove.
12420 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12421 rules.
12422 (ptr_operator, typebase): Update.
12423 (enum token_flag) <FLAG_C>: New constant.
12424 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12425 "_Atomic".
12426 (lex_one_token): Handle FLAG_C.
12427
12428 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12429
12430 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12431 it to the ptrace call.
12432 * m68k-bsd-nat.c (store_registers): Likewise.
12433
12434 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12435
12436 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12437 gdb_byte *.
12438 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12439 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12440 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12441
12442 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12443
12444 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12445 nbsd_nat_target instead of inf_ptrace_target.
12446 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12447 nbsd_nat_target.
12448
12449 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12450
12451 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12452 register_t.
12453
12454 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12455
12456 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12457 it to the ptrace call.
12458 * alpha-bsd-nat.c (store_registers): Likewise.
12459
12460 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12461
12462 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12463 includes.
12464 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12465 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12466 fill_fpregset): Likewise.
12467
12468 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12469
12470 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12471 nbsd_nat_target instead of inf_ptrace_target.
12472 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12473 nbsd_nat_target.
12474
12475 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12476
12477 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12478 register_t.
12479
12480 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12481
12482 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12483 it to the ptrace call.
12484 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12485 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12486 * arm-nbsd-nat.c (store_register): Likewise.
12487 * arm-nbsd-nat.c (store_regs): Likewise.
12488 * arm-nbsd-nat.c (store_fp_register): Likewise.
12489 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12490
12491 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12492
12493 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12494 nbsd_nat_target instead of inf_ptrace_target.
12495 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12496 nbsd_nat_target.
12497
12498 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12499
12500 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12501 it to the ptrace call.
12502 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12503
12504 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12505
12506 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12507 it to the ptrace call.
12508 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12509
12510 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12511
12512 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12513 gdb_byte *.
12514 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12515
12516 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12517
12518 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12519 instead of inf_ptrace_target.
12520 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12521 nbsd_nat_target.
12522
12523 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12524
12525 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12526 register_t.
12527
12528 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12529
12530 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12531 register_t.
12532
12533 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12534
12535 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12536 register_t.
12537
12538 2020-03-13 Tom Tromey <tom@tromey.com>
12539
12540 * value.h (val_print): Don't declare.
12541 * valprint.h (val_print_array_elements)
12542 (val_print_scalar_formatted, generic_val_print): Don't declare.
12543 * valprint.c (generic_val_print_array): Take a struct value.
12544 (generic_val_print_ptr, generic_val_print_memberptr)
12545 (generic_val_print_bool, generic_val_print_int)
12546 (generic_val_print_char, generic_val_print_complex)
12547 (generic_val_print): Remove.
12548 (generic_value_print): Update.
12549 (do_val_print): Remove unused parameters. Don't call
12550 la_val_print.
12551 (val_print): Remove.
12552 (common_val_print): Update. Don't call value_check_printable.
12553 (val_print_scalar_formatted, val_print_array_elements): Remove.
12554 * rust-lang.c (rust_val_print): Remove.
12555 (rust_language_defn): Update.
12556 * p-valprint.c (pascal_val_print): Remove.
12557 (pascal_value_print_inner): Update.
12558 (pascal_object_print_val_fields, pascal_object_print_val):
12559 Remove.
12560 (pascal_object_print_static_field): Update.
12561 * p-lang.h (pascal_val_print): Don't declare.
12562 * p-lang.c (pascal_language_defn): Update.
12563 * opencl-lang.c (opencl_language_defn): Update.
12564 * objc-lang.c (objc_language_defn): Update.
12565 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12566 * m2-lang.h (m2_val_print): Don't declare.
12567 * m2-lang.c (m2_language_defn): Update.
12568 * language.h (struct language_defn) <la_val_print>: Remove.
12569 * language.c (unk_lang_value_print_inner): Rename. Change
12570 argument types.
12571 (unknown_language_defn, auto_language_defn): Update.
12572 * go-valprint.c (go_val_print): Remove.
12573 * go-lang.h (go_val_print): Don't declare.
12574 * go-lang.c (go_language_defn): Update.
12575 * f-valprint.c (f_val_print): Remove.
12576 * f-lang.h (f_value_print): Don't declare.
12577 * f-lang.c (f_language_defn): Update.
12578 * d-valprint.c (d_val_print): Remove.
12579 * d-lang.h (d_value_print): Don't declare.
12580 * d-lang.c (d_language_defn): Update.
12581 * cp-valprint.c (cp_print_value_fields)
12582 (cp_print_value_fields_rtti, cp_print_value): Remove.
12583 (cp_print_static_field): Update.
12584 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12585 (c_val_print_struct, c_val_print_union, c_val_print_int)
12586 (c_val_print_memberptr, c_val_print): Remove.
12587 * c-lang.h (c_val_print_array, cp_print_value_fields)
12588 (cp_print_value_fields_rtti): Don't declare.
12589 * c-lang.c (c_language_defn, cplus_language_defn)
12590 (asm_language_defn, minimal_language_defn): Update.
12591 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12592 (ada_val_print_enum): Take a struct value.
12593 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12594 (ada_val_print): Remove.
12595 (ada_value_print_1): Update.
12596 (printable_val_type): Remove.
12597 * ada-lang.h (ada_val_print): Don't declare.
12598 * ada-lang.c (ada_language_defn): Update.
12599
12600 2020-03-13 Tom Tromey <tom@tromey.com>
12601
12602 * valprint.c (do_val_print): Update.
12603 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12604 a struct value.
12605 (value_to_value_object_no_release): Declare.
12606 * python/py-value.c (value_to_value_object_no_release): New
12607 function.
12608 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12609 struct value.
12610 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12611 function.
12612 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12613 a struct value.
12614 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12615 Declare.
12616 (gdbscm_apply_val_pretty_printer): Take a struct value.
12617 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12618 value.
12619 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12620 value.
12621 * extension-priv.h (struct extension_language_ops)
12622 <apply_val_pretty_printer>: Take a struct value.
12623 * cp-valprint.c (cp_print_value): Create a struct value.
12624 (cp_print_value): Update.
12625
12626 2020-03-13 Tom Tromey <tom@tromey.com>
12627
12628 * ada-valprint.c (print_field_values): Call common_val_print.
12629
12630 2020-03-13 Tom Tromey <tom@tromey.com>
12631
12632 * ada-valprint.c (val_print_packed_array_elements): Remove
12633 bitoffset and val parameters. Call common_val_print.
12634 (ada_val_print_string): Remove offset, address, and original_value
12635 parameters.
12636 (ada_val_print_array): Update.
12637 (ada_value_print_array): New function.
12638 (ada_value_print_1): Call it.
12639
12640 2020-03-13 Tom Tromey <tom@tromey.com>
12641
12642 * ada-valprint.c (ada_value_print): Use common_val_print.
12643
12644 2020-03-13 Tom Tromey <tom@tromey.com>
12645
12646 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12647
12648 2020-03-13 Tom Tromey <tom@tromey.com>
12649
12650 * ada-valprint.c (ada_value_print_num): New function.
12651 (ada_value_print_1): Use it.
12652
12653 2020-03-13 Tom Tromey <tom@tromey.com>
12654
12655 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12656
12657 2020-03-13 Tom Tromey <tom@tromey.com>
12658
12659 * ada-valprint.c (ada_value_print_ptr): New function.
12660 (ada_value_print_1): Use it.
12661
12662 2020-03-13 Tom Tromey <tom@tromey.com>
12663
12664 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12665 call common_val_print.
12666 (ada_val_print_1): Update.
12667 (ada_value_print_1): New function.
12668 (ada_value_print_inner): Rewrite.
12669
12670 2020-03-13 Tom Tromey <tom@tromey.com>
12671
12672 * cp-valprint.c (cp_print_value_fields): Update.
12673 (cp_print_value): New function.
12674
12675 2020-03-13 Tom Tromey <tom@tromey.com>
12676
12677 * m2-valprint.c (m2_value_print_inner): Use
12678 cp_print_value_fields.
12679 * cp-valprint.c (cp_print_value_fields): New function.
12680 * c-valprint.c (c_value_print_struct): New function.
12681 (c_value_print_inner): Use c_value_print_struct.
12682 * c-lang.h (cp_print_value_fields): Declare.
12683
12684 2020-03-13 Tom Tromey <tom@tromey.com>
12685
12686 * c-valprint.c (c_value_print_array): New function.
12687 (c_value_print_inner): Use it.
12688
12689 2020-03-13 Tom Tromey <tom@tromey.com>
12690
12691 * c-valprint.c (c_value_print_memberptr): New function.
12692 (c_value_print_inner): Use it.
12693
12694 2020-03-13 Tom Tromey <tom@tromey.com>
12695
12696 * c-valprint.c (c_value_print_int): New function.
12697 (c_value_print_inner): Use it.
12698
12699 2020-03-13 Tom Tromey <tom@tromey.com>
12700
12701 * c-valprint.c (c_value_print_ptr): New function.
12702 (c_value_print_inner): Use it.
12703
12704 2020-03-13 Tom Tromey <tom@tromey.com>
12705
12706 * c-valprint.c (c_value_print_inner): Rewrite.
12707
12708 2020-03-13 Tom Tromey <tom@tromey.com>
12709
12710 * valprint.c (generic_value_print_complex): New function.
12711 (generic_value_print): Use it.
12712
12713 2020-03-13 Tom Tromey <tom@tromey.com>
12714
12715 * valprint.c (generic_val_print_float): Don't call
12716 val_print_scalar_formatted.
12717 (generic_val_print, generic_value_print): Update.
12718
12719 2020-03-13 Tom Tromey <tom@tromey.com>
12720
12721 * valprint.c (generic_value_print_char): New function
12722 (generic_value_print): Use it.
12723
12724 2020-03-13 Tom Tromey <tom@tromey.com>
12725
12726 * valprint.c (generic_value_print_int): New function.
12727 (generic_value_print): Use it.
12728
12729 2020-03-13 Tom Tromey <tom@tromey.com>
12730
12731 * valprint.c (generic_value_print_bool): New function.
12732 (generic_value_print): Use it.
12733
12734 2020-03-13 Tom Tromey <tom@tromey.com>
12735
12736 * valprint.c (generic_val_print_func): Simplify.
12737 (generic_val_print, generic_value_print): Update.
12738
12739 2020-03-13 Tom Tromey <tom@tromey.com>
12740
12741 * valprint.c (generic_val_print_flags): Remove.
12742 (generic_val_print, generic_value_print): Update.
12743 (val_print_type_code_flags): Add original_value parameter.
12744
12745 2020-03-13 Tom Tromey <tom@tromey.com>
12746
12747 * valprint.c (generic_val_print): Update.
12748 (generic_value_print): Update.
12749 * valprint.c (generic_val_print_enum): Don't call
12750 val_print_scalar_formatted.
12751
12752 2020-03-13 Tom Tromey <tom@tromey.com>
12753
12754 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12755 * valprint.c (generic_value_print_ptr): New function.
12756
12757 2020-03-13 Tom Tromey <tom@tromey.com>
12758
12759 * valprint.c (generic_value_print): Rewrite.
12760
12761 2020-03-13 Tom Tromey <tom@tromey.com>
12762
12763 * p-valprint.c (pascal_object_print_value_fields)
12764 (pascal_object_print_value): New functions.
12765
12766 2020-03-13 Tom Tromey <tom@tromey.com>
12767
12768 * p-valprint.c (pascal_value_print_inner): Rewrite.
12769
12770 2020-03-13 Tom Tromey <tom@tromey.com>
12771
12772 * f-valprint.c (f_value_print_innner): Rewrite.
12773
12774 2020-03-13 Tom Tromey <tom@tromey.com>
12775
12776 * m2-valprint.c (m2_print_unbounded_array): New overload.
12777 (m2_print_unbounded_array): Update.
12778 (m2_print_array_contents): Take a struct value.
12779 (m2_value_print_inner): Rewrite.
12780
12781 2020-03-13 Tom Tromey <tom@tromey.com>
12782
12783 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12784 (d_value_print_inner): New function.
12785 * d-lang.h (d_value_print_inner): Declare.
12786 * d-lang.c (d_language_defn): Use d_value_print_inner.
12787
12788 2020-03-13 Tom Tromey <tom@tromey.com>
12789
12790 * go-valprint.c (go_value_print_inner): New function.
12791 * go-lang.h (go_value_print_inner): Declare.
12792 * go-lang.c (go_language_defn): Use go_value_print_inner.
12793
12794 2020-03-13 Tom Tromey <tom@tromey.com>
12795
12796 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12797 API.
12798 (rust_val_print): Rewrite.
12799 (rust_value_print_inner): New function, from rust_val_print.
12800 (rust_language_defn): Use rust_value_print_inner.
12801
12802 2020-03-13 Tom Tromey <tom@tromey.com>
12803
12804 * ada-valprint.c (ada_value_print_inner): New function.
12805 * ada-lang.h (ada_value_print_inner): Declare.
12806 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12807
12808 2020-03-13 Tom Tromey <tom@tromey.com>
12809
12810 * f-valprint.c (f_value_print_innner): New function.
12811 * f-lang.h (f_value_print_innner): Declare.
12812 * f-lang.c (f_language_defn): Use f_value_print_innner.
12813
12814 2020-03-13 Tom Tromey <tom@tromey.com>
12815
12816 * p-valprint.c (pascal_value_print_inner): New function.
12817 * p-lang.h (pascal_value_print_inner): Declare.
12818 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12819
12820 2020-03-13 Tom Tromey <tom@tromey.com>
12821
12822 * m2-valprint.c (m2_value_print_inner): New function.
12823 * m2-lang.h (m2_value_print_inner): Declare.
12824 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12825
12826 2020-03-13 Tom Tromey <tom@tromey.com>
12827
12828 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12829 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12830 * c-valprint.c (c_value_print_inner): New function.
12831 * c-lang.h (c_value_print_inner): Declare.
12832 * c-lang.c (c_language_defn, cplus_language_defn)
12833 (asm_language_defn, minimal_language_defn): Use
12834 c_value_print_inner.
12835
12836 2020-03-13 Tom Tromey <tom@tromey.com>
12837
12838 * p-valprint.c (pascal_object_print_value_fields): Now static.
12839 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12840
12841 2020-03-13 Tom Tromey <tom@tromey.com>
12842
12843 * c-valprint.c (c_val_print_array): Simplify.
12844
12845 2020-03-13 Tom Tromey <tom@tromey.com>
12846
12847 * valprint.c (value_print_array_elements): New function.
12848 * valprint.h (value_print_array_elements): Declare.
12849
12850 2020-03-13 Tom Tromey <tom@tromey.com>
12851
12852 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12853 * mips-tdep.c (mips_print_register): Use
12854 value_print_scalar_formatted.
12855
12856 2020-03-13 Tom Tromey <tom@tromey.com>
12857
12858 * valprint.h (value_print_scalar_formatted): Declare.
12859 * valprint.c (value_print_scalar_formatted): New function.
12860
12861 2020-03-13 Tom Tromey <tom@tromey.com>
12862
12863 * valprint.h (generic_value_print): Declare.
12864 * valprint.c (generic_value_print): New function.
12865
12866 2020-03-13 Tom Tromey <tom@tromey.com>
12867
12868 * valprint.c (do_val_print): Call la_value_print_inner, if
12869 available.
12870 * rust-lang.c (rust_language_defn): Update.
12871 * p-lang.c (pascal_language_defn): Update.
12872 * opencl-lang.c (opencl_language_defn): Update.
12873 * objc-lang.c (objc_language_defn): Update.
12874 * m2-lang.c (m2_language_defn): Update.
12875 * language.h (struct language_defn) <la_value_print_inner>: New
12876 member.
12877 * language.c (unknown_language_defn, auto_language_defn): Update.
12878 * go-lang.c (go_language_defn): Update.
12879 * f-lang.c (f_language_defn): Update.
12880 * d-lang.c (d_language_defn): Update.
12881 * c-lang.c (c_language_defn, cplus_language_defn)
12882 (asm_language_defn, minimal_language_defn): Update.
12883 * ada-lang.c (ada_language_defn): Update.
12884
12885 2020-03-13 Tom Tromey <tom@tromey.com>
12886
12887 * c-valprint.c (c_value_print): Use common_val_print.
12888
12889 2020-03-13 Tom Tromey <tom@tromey.com>
12890
12891 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12892
12893 2020-03-13 Tom Tromey <tom@tromey.com>
12894
12895 * f-valprint.c (f77_print_array_1, f_val_print): Use
12896 common_val_print.
12897
12898 2020-03-13 Tom Tromey <tom@tromey.com>
12899
12900 * riscv-tdep.c (riscv_print_one_register_info): Use
12901 common_val_print.
12902
12903 2020-03-13 Tom Tromey <tom@tromey.com>
12904
12905 * mi/mi-main.c (output_register): Use common_val_print.
12906
12907 2020-03-13 Tom Tromey <tom@tromey.com>
12908
12909 * infcmd.c (default_print_one_register_info): Use
12910 common_val_print.
12911
12912 2020-03-13 Tom Tromey <tom@tromey.com>
12913
12914 * valprint.h (common_val_print_checked): Declare.
12915 * valprint.c (common_val_print_checked): New function.
12916 * stack.c (print_frame_arg): Use common_val_print_checked.
12917
12918 2020-03-13 Tom Tromey <tom@tromey.com>
12919
12920 * valprint.c (do_val_print): New function, from val_print.
12921 (val_print): Use do_val_print.
12922 (common_val_print): Use do_val_print.
12923
12924 2020-03-13 Tom Tromey <tom@tromey.com>
12925
12926 * valprint.c (value_print): Use scoped_value_mark.
12927
12928 2020-03-13 Tom de Vries <tdevries@suse.de>
12929
12930 PR symtab/25646
12931 * psymtab.c (partial_symtab::partial_symtab): Don't set
12932 globals_offset and statics_offset. Push element onto
12933 current_global_psymbols and current_static_psymbols stacks.
12934 (concat): New function.
12935 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12936 element from current_global_psymbols and current_static_psymbols
12937 stacks. Concat popped elements to global_psymbols and
12938 static_symbols.
12939 (add_psymbol_to_list): Use current_global_psymbols and
12940 current_static_psymbols stacks.
12941 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12942 current_static_psymbols fields.
12943
12944 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12945
12946 * corelow.c (sniff_core_bfd): Remove.
12947 (class core_target) <m_core_vec>: Remove.
12948 (core_target::core_target): Update.
12949 (core_file_fns): Remove.
12950 (deprecated_add_core_fns): Remove.
12951 (default_core_sniffer): Remove.
12952 (sniff_core_bfd): Remove.
12953 (default_check_format): Remove.
12954 (gdb_check_format): Remove.
12955 (core_target_open): Update.
12956 (core_target::get_core_register_section): Update.
12957 (get_core_registers_cb): Update.
12958 (core_target::fetch_registers): Update.
12959 * gdbcore.h (struct core_fns): Remove.
12960 (deprecated_add_core_fns): Remove.
12961 (default_core_sniffer): Remove.
12962 (default_check_format): Remove.
12963
12964 2020-03-12 Tom Tromey <tom@tromey.com>
12965
12966 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12967 CORE_ADDR.
12968 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12969
12970 2020-03-12 Tom Tromey <tom@tromey.com>
12971
12972 * remote.c (remote_target::download_tracepoint)
12973 (remote_target::enable_tracepoint)
12974 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12975 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12976 sprintf_vma.
12977
12978 2020-03-12 Tom Tromey <tom@tromey.com>
12979
12980 * symfile-mem.c: Update CORE_ADDR size assert.
12981
12982 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12983
12984 * selftest.m4: Move to gdbsupport/.
12985 * acinclude.m4: Update path to selftest.m4.
12986
12987 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12988
12989 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12990 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12991 gdbarch-selfselftests.c and selftest-arch.c.
12992 (SUBDIR_UNITTESTS_OBS): Rename to...
12993 (SELFTESTS_OBS): ... this.
12994 (COMMON_SFILES): Remove disasm-selftests.c and
12995 gdbarch-selftests.c.
12996 * configure.ac: Don't add selftest-arch.{c,o} to
12997 CONFIG_{SRCS,OBS}.
12998 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12999 preprocessor conditions.
13000
13001 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13002
13003 * configure.ac: Don't source bfd/development.sh.
13004 * selftest.m4: Modify comment.
13005 * configure: Re-generate.
13006
13007 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13008
13009 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13010 not "true" or "false".
13011 * configure: Re-generate.
13012
13013 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13014
13015 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13016 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13017 renamed to arm_nbsd_supply_gregset.
13018 (fetch_register): Update to call arm_nbsd_supply_gregset.
13019 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13020 (arm_netbsd_nat_target::fetch_registers): Update.
13021 (fetch_elfcore_registers): Removed.
13022 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13023 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13024 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13025 not require NetBSD system headers.
13026 (arm_nbsd_regset): New struct.
13027 (arm_nbsd_iterate_over_regset_sections): New function.
13028 (arm_netbsd_init_abi_common): Updated to call
13029 set_gdbarch_iterate_over_regset_sections.
13030 * arm-nbsd-tdep.h: New file.
13031
13032 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13033
13034 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13035 recursion.
13036
13037 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13038
13039 * configure: Re-generate.
13040
13041 2020-03-11 Tom Tromey <tromey@adacore.com>
13042
13043 * ada-typeprint.c (print_choices): Fix comment.
13044
13045 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13046
13047 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13048 previous item in the list, when the list has no items.
13049
13050 2020-03-11 Tom de Vries <tdevries@suse.de>
13051
13052 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13053 PROP_LOCLIST handling code.
13054
13055 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13056
13057 * buildsym-legacy.c (record_line): Pass extra parameter to
13058 record_line.
13059 * buildsym.c (buildsym_compunit::record_line): Take an extra
13060 parameter, reduce duplication in the line table, and record the
13061 is_stmt flag in the line table.
13062 * buildsym.h (buildsym_compunit::record_line): Add extra
13063 parameter.
13064 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13065 non-statement lines.
13066 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13067 this to the symtab builder.
13068 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13069 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13070 through to dwarf_record_line_1.
13071 * infrun.c (process_event_stop_test): When stepping, don't stop at
13072 a non-statement instruction, and only refresh the step info when
13073 we land in the middle of a line's range. Also add an extra
13074 comment.
13075 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13076 field.
13077 * record-btrace.c (btrace_find_line_range): Only record lines
13078 marked as is-statement.
13079 * stack.c (frame_show_address): Show the frame address if we are
13080 in a non-statement sal.
13081 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13082 (maintenance_print_one_line_table): Print a header for the is_stmt
13083 column, and include is_stmt information in the output.
13084 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13085 preference to non-statements.
13086 (find_pcs_for_symtab_line): Prefer is-statement entries.
13087 (find_line_common): Likewise.
13088 * symtab.h (struct linetable_entry): Add is_stmt field.
13089 (struct symtab_and_line): Likewise.
13090 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13091 arranging the line table.
13092
13093 2020-03-07 Tom de Vries <tdevries@suse.de>
13094
13095 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13096 DIE.
13097
13098 2020-03-07 Tom Tromey <tom@tromey.com>
13099
13100 * valops.c (value_literal_complex): Remove obsolete comment.
13101 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13102 comment.
13103
13104 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13105
13106 * infrun.h: Forward-declare thread_info.
13107 (set_step_info): Add thread_info parameter, add doc.
13108 * infrun.c (set_step_info): Add thread_info parameter, move doc
13109 to header.
13110 * infrun.c (process_event_stop_test): Pass thread to
13111 set_step_info call.
13112 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13113 set_step_info.
13114 (prepare_one_step): Add thread_info parameter, pass it to
13115 set_step_frame and prepare_one_step (recursive) call.
13116 (step_1): Pass thread to prepare_one_step call.
13117 (step_command_fsm::should_stop): Pass thread to
13118 prepare_one_step.
13119 (until_next_fsm): Pass thread to set_step_frame call.
13120 (finish_command): Pass thread to set_step_info call.
13121
13122 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13123
13124 * windows-tdep.c (windows_solib_create_inferior_hook):
13125 Check if inferior is running.
13126
13127 2020-03-06 Tom de Vries <tdevries@suse.de>
13128
13129 * NEWS: Fix "the the".
13130 * ctfread.c: Same.
13131
13132 2020-03-06 Tom de Vries <tdevries@suse.de>
13133
13134 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13135
13136 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13137
13138 * .dir-locals.el: Add a comment referencing the other copies of
13139 this file.
13140
13141 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13142
13143 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13144 psargs.
13145
13146 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13147
13148 * .gitattributes: New file.
13149
13150 2020-03-04 Tom Tromey <tom@tromey.com>
13151
13152 * symmisc.c (print_symbol_bcache_statistics)
13153 (print_objfile_statistics): Update.
13154 * symfile.c (allocate_symtab): Use intern.
13155 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13156 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13157 macro_cache>: Remove.
13158 <string_cache>: New member.
13159 (struct objfile) <intern>: New methods.
13160 * elfread.c (elf_symtab_read): Use intern.
13161 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13162 (dwarf2_compute_name, dwarf2_physname)
13163 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13164 names.
13165 (guess_partial_die_structure_name): Update.
13166 (partial_die_info::fixup): Intern name.
13167 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13168 name.
13169 (dwarf2_name): Intern name. Update.
13170 * buildsym.c (buildsym_compunit::get_macro_table): Use
13171 string_cache.
13172
13173 2020-03-04 Tom Tromey <tom@tromey.com>
13174
13175 * jit.c (bfd_open_from_target_memory): Make "target" const.
13176 * corefile.c (gnutarget): Now const.
13177 * gdbcore.h (gnutarget): Now const.
13178
13179 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13180
13181 * NEWS: Mention support for WOW64 processes.
13182 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13183 (amd64_windows_segment_register_p): Remove static.
13184 (_initialize_amd64_windows_nat): Update.
13185 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13186 * i386-windows-nat.c (context_offset): Update.
13187 (i386_mappings): Rename and remove static.
13188 (i386_windows_segment_register_p): Remove static.
13189 (_initialize_i386_windows_nat): Update.
13190 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13191 (STATUS_WX86_SINGLE_STEP): New macro.
13192 (EnumProcessModulesEx): New macro.
13193 (Wow64SuspendThread): New macro.
13194 (Wow64GetThreadContext): New macro.
13195 (Wow64SetThreadContext): New macro.
13196 (Wow64GetThreadSelectorEntry): New macro.
13197 (windows_set_context_register_offsets): Add static.
13198 (windows_set_segment_register_p): Likewise.
13199 (windows_add_thread): Adapt for WOW64 processes.
13200 (windows_fetch_one_register): Likewise.
13201 (windows_nat_target::fetch_registers): Likewise.
13202 (windows_store_one_register): Likewise.
13203 (display_selector): Likewise.
13204 (display_selectors): Likewise.
13205 (handle_exception): Likewise.
13206 (windows_continue): Likewise.
13207 (windows_nat_target::resume): Likewise.
13208 (windows_add_all_dlls): Likewise.
13209 (do_initial_windows_stuff): Likewise.
13210 (windows_nat_target::attach): Likewise.
13211 (windows_get_exec_module_filename): Likewise.
13212 (windows_nat_target::create_inferior): Likewise.
13213 (windows_xfer_siginfo): Likewise.
13214 (_initialize_loadable): Initialize Wow64SuspendThread,
13215 Wow64GetThreadContext, Wow64SetThreadContext,
13216 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13217 * windows-nat.h (windows_set_context_register_offsets):
13218 Remove declaration.
13219 (windows_set_segment_register_p): Likewise.
13220 (i386_windows_segment_register_p): Add declaration.
13221 (amd64_windows_segment_register_p): Likewise.
13222
13223 2020-03-04 Luis Machado <luis.machado@linaro.org>
13224
13225 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13226 in "info registers" for AArch64/ARM.
13227
13228 The change caused "info registers" to not print GPR's.
13229
13230 gdb/ChangeLog:
13231
13232 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13233
13234 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13235 when reg->group is empty and reggroup is not.
13236
13237 2020-03-03 Tom Tromey <tromey@adacore.com>
13238
13239 * dwarf2/frame.c (struct dwarf2_frame_cache)
13240 <checked_tailcall_bottom, entry_cfa_sp_offset,
13241 entry_cfa_sp_offset_p>: Remove members.
13242 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13243 (dwarf2_frame_prev_register): Don't call
13244 dwarf2_tailcall_sniffer_first.
13245 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13246 * frame-unwind.c (add_unwinder): New fuction.
13247 (frame_unwind_init): Use it. Add tailcall unwinder.
13248
13249 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13250 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13251
13252 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13253 value should be printed as true.
13254
13255 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13256
13257 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13258 (windows_init_abi): Set and use windows_so_ops.
13259
13260 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13261
13262 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13263 when verifying if dealing with a convenience variable.
13264
13265 2020-03-03 Luis Machado <luis.machado@linaro.org>
13266
13267 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13268
13269 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13270
13271 * infrun.c (gdbarch_supports_displaced_stepping): New.
13272 (use_displaced_stepping): Break up conditions in smaller pieces.
13273 Use gdbarch_supports_displaced_stepping.
13274 (displaced_step_prepare_throw): Use
13275 gdbarch_supports_displaced_stepping.
13276
13277 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13278
13279 * NEWS: Mention new behaviour of the history filename.
13280 * top.c (write_history_p): Add comment.
13281 (show_write_history_p): Add header comment, give a different
13282 message when history writing is on, but the history filename is
13283 empty.
13284 (history_filename): Add comment.
13285 (history_filename_empty): New function.
13286 (show_history_filename): Add header comment, give a different
13287 message when the filename is empty.
13288 (init_history): Compare history_filename against nullptr, and only
13289 read history if the filename is not empty.
13290 (set_history_filename): Add header comment, and only make
13291 non-empty filenames absolute.
13292 (init_main): Make the filename argument to 'set history filename'
13293 optional.
13294
13295 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13296
13297 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13298 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13299 (fetch_fp_register): Update.
13300 (fetch_fp_regs): Update.
13301 (store_fp_register): Update.
13302 (store_fp_regs): Update.
13303 (arm_netbsd_nat_target::read_description): New function.
13304 (fetch_elfcore_registers): Update.
13305
13306 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13307
13308 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13309 general_thread if the stop reply is missing a thread-id.
13310 (remote_target::process_stop_reply): Use the first non-exited
13311 thread if the target didn't pass a thread-id.
13312 * infrun.c (do_target_wait): Move call to
13313 switch_to_inferior_no_thread to ....
13314 (do_target_wait_1): ... here.
13315
13316 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13317
13318 * debuginfod-support.c: Include defs.h first.
13319
13320 2020-02-28 Tom de Vries <tdevries@suse.de>
13321
13322 * symfile.c (set_initial_language): Use default language for lookup.
13323
13324 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13325
13326 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13327 reader variable, pass `this` to read_cutu_die_from_dwo.
13328
13329 2020-02-27 Aaron Merey <amerey@redhat.com>
13330
13331 * source.c (open_source_file): Check for nullptr when computing
13332 srcpath.
13333
13334 2020-02-27 Tom Tromey <tromey@adacore.com>
13335
13336 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13337 member.
13338 (dwarf2_add_field): Don't update nfields.
13339 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13340
13341 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13342
13343 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13344 abs.
13345
13346 2020-02-26 Tom Tromey <tom@tromey.com>
13347
13348 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13349 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13350 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13351 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13352 per_cu_data.
13353
13354 2020-02-26 Tom Tromey <tom@tromey.com>
13355
13356 * dwarf2/index-write.c (psym_index_map): Change type.
13357 (add_address_entry_worker, write_one_signatured_type)
13358 (recursively_count_psymbols, recursively_write_psymbols)
13359 (class debug_names, psyms_seen_size, write_gdbindex)
13360 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13361
13362 2020-02-26 Aaron Merey <amerey@redhat.com>
13363
13364 * Makefile.in: Handle optional debuginfod support.
13365 * NEWS: Update.
13366 * README: Add --with-debuginfod summary.
13367 * config.in: Regenerate.
13368 * configure: Regenerate.
13369 * configure.ac: Handle optional debuginfod support.
13370 * debuginfod-support.c: debuginfod helper functions.
13371 * debuginfod-support.h: Ditto.
13372 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13373 summary.
13374 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13375 when a dwz file cannot be found.
13376 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13377 debuginfo file cannot be found.
13378 * source.c (open_source_file): Query debuginfod servers when a
13379 source file cannot be found.
13380 * top.c (print_gdb_configuration): Include
13381 --{with,without}-debuginfod in the output.
13382
13383 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13384
13385 * thread.c (thr_try_catch_cmd): Print thread name.
13386
13387 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13388
13389 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13390 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13391 dwarf2_fetch_die_type_sect_off): Move to...
13392 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13393 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13394 dwarf2_fetch_die_type_sect_off): ... here.
13395 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13396 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13397 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13398
13399 2020-02-26 Tom de Vries <tdevries@suse.de>
13400
13401 PR gdb/25603
13402 * symfile.c (set_initial_language): Exit-early if
13403 language_mode == language_mode_manual.
13404
13405 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13406
13407 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13408 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13409 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13410
13411 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13412
13413 * gdbtypes.c (create_array_type_with_stride): Handle negative
13414 array strides.
13415 * valarith.c (value_subscripted_rvalue): Likewise.
13416
13417 2020-02-25 Luis Machado <luis.machado@linaro.org>
13418
13419 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13420
13421 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13422
13423 * loc.h (dwarf2_get_die_type): Move to...
13424 * read.h (dwarf2_get_die_type): ... here.
13425 * read.c (dwarf2_get_die_type): Move doc to header.
13426
13427 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13428
13429 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13430 'gnulib/Makefile.in' to the list.
13431
13432 2020-02-24 Tom Tromey <tom@tromey.com>
13433
13434 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13435 Remove.
13436 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13437 XOBNEWVEC.
13438
13439 2020-02-24 Tom Tromey <tom@tromey.com>
13440
13441 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13442 New method.
13443 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13444 (dw2_do_instantiate_symtab, dw2_get_file_names)
13445 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13446
13447 2020-02-24 Tom Tromey <tom@tromey.com>
13448
13449 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13450 make_scoped_restore.
13451 (dwarf2_psymtab::read_symtab): Don't clear
13452 reading_partial_symbols.
13453
13454 2020-02-24 Tom de Vries <tdevries@suse.de>
13455
13456 PR gdb/25592
13457 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13458
13459 2020-02-24 Tom de Vries <tdevries@suse.de>
13460
13461 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13462 commands layout next/prev/regs.
13463
13464 2020-02-22 Tom Tromey <tom@tromey.com>
13465
13466 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13467 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13468
13469 2020-02-22 Tom Tromey <tom@tromey.com>
13470
13471 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13472
13473 2020-02-22 Tom Tromey <tom@tromey.com>
13474
13475 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13476 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13477 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13478 * tui/tui.c (_initialize_tui): Add usage text.
13479
13480 2020-02-22 Tom Tromey <tom@tromey.com>
13481
13482 * tui/tui-win.c (tui_set_focus_command)
13483 (tui_set_win_height_command): Use error_no_arg.
13484 (_initialize_tui_win): Update help text.
13485 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13486
13487 2020-02-22 Tom Tromey <tom@tromey.com>
13488
13489 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13490 * tui/tui-disasm.h (struct tui_disasm_window)
13491 <display_start_addr>: Declare.
13492 * tui/tui-source.h (struct tui_source_window)
13493 <display_start_addr>: Declare.
13494 * tui/tui-winsource.h (struct tui_source_window_base)
13495 <show_source_line, display_start_addr>: New methods.
13496 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13497 Rename and move to protected section.
13498 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13499 (tui_source_window_base::do_erase_source_content): Update.
13500 (tui_source_window_base::show_source_line): Now a method.
13501 (tui_source_window_base::show_source_content)
13502 (tui_source_window_base::tui_source_window_base)
13503 (tui_source_window_base::rerender)
13504 (tui_source_window_base::refill)
13505 (tui_source_window_base::do_scroll_horizontal)
13506 (tui_source_window_base::set_is_exec_point_at)
13507 (tui_source_window_base::update_breakpoint_info)
13508 (tui_source_window_base::update_exec_info): Update.
13509 * tui/tui-source.c (tui_source_window::set_contents)
13510 (tui_source_window::showing_source_p)
13511 (tui_source_window::do_scroll_vertical)
13512 (tui_source_window::location_matches_p)
13513 (tui_source_window::line_is_displayed): Update.
13514 (tui_source_window::display_start_addr): New method.
13515 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13516 (tui_disasm_window::do_scroll_vertical)
13517 (tui_disasm_window::location_matches_p): Update.
13518 (tui_disasm_window::display_start_addr): New method.
13519
13520 2020-02-22 Tom Tromey <tom@tromey.com>
13521
13522 * NEWS: Add entry for gdb.register_window_type.
13523 * tui/tui-layout.h (window_factory): New typedef.
13524 (tui_register_window): Declare.
13525 * tui/tui-layout.c (saved_tui_windows): New global.
13526 (tui_apply_current_layout): Use it.
13527 (tui_register_window): New function.
13528 * python/python.c (do_start_initialization): Call
13529 gdbpy_initialize_tui.
13530 (python_GdbMethods): Add "register_window_type" function.
13531 * python/python-internal.h (gdbpy_register_tui_window)
13532 (gdbpy_initialize_tui): Declare.
13533 * python/py-tui.c: New file.
13534 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13535
13536 2020-02-22 Tom Tromey <tom@tromey.com>
13537
13538 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13539
13540 2020-02-22 Tom Tromey <tom@tromey.com>
13541
13542 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13543 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13544 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13545 (tui_set_win_focus_to): Move from tui-win.c.
13546
13547 2020-02-22 Tom Tromey <tom@tromey.com>
13548
13549 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13550 functions.
13551 (known_window_types): New global.
13552 (tui_get_window_by_name): Reimplement.
13553 (initialize_known_windows): New function.
13554 (validate_window_name): Rewrite.
13555 (_initialize_tui_layout): Call initialize_known_windows.
13556
13557 2020-02-22 Tom Tromey <tom@tromey.com>
13558
13559 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13560 Remove constants.
13561 * tui/tui-winsource.h (struct tui_source_window_base)
13562 <tui_source_window_base>: Remove parameter.
13563 * tui/tui-winsource.c
13564 (tui_source_window_base::tui_source_window_base): Remove
13565 parameter.
13566 (tui_source_window_base::refill): Update.
13567 * tui/tui-stack.h (struct tui_locator_window)
13568 <tui_locator_window>: Update.
13569 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13570 Default the constructor.
13571 * tui/tui-regs.h (struct tui_data_item_window)
13572 <tui_data_item_window>: Default the constructor.
13573 (struct tui_data_window) <tui_data_window>: Likewise.
13574 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13575 Default the constructor.
13576 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13577 Default the constructor.
13578 <type>: Remove.
13579 (struct tui_win_info) <tui_win_info>: Default the constructor.
13580 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13581 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13582 Default the constructor.
13583
13584 2020-02-22 Tom Tromey <tom@tromey.com>
13585
13586 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13587 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13588 * tui/tui-win.c (tui_resize_all): Don't call
13589 tui_delete_invisible_windows.
13590 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13591 done.
13592 (tui_set_layout): Update.
13593 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13594 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13595 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13596
13597 2020-02-22 Tom Tromey <tom@tromey.com>
13598
13599 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13600 correctly.
13601
13602 2020-02-22 Tom Tromey <tom@tromey.com>
13603
13604 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13605
13606 2020-02-22 Tom Tromey <tom@tromey.com>
13607
13608 * tui/tui-winsource.h (struct tui_source_window_iterator)
13609 <inner_iterator>: New etytypedef.
13610 <tui_source_window_iterator>: Take "end" parameter.
13611 <tui_source_window_iterator>: Take iterator.
13612 <operator*, advance>: Update.
13613 <m_iter>: Change type.
13614 <m_end>: New field.
13615 (struct tui_source_windows) <begin, end>: Update.
13616 * tui/tui-layout.c (tui_windows): New global.
13617 (tui_apply_current_layout): Clear tui_windows.
13618 (tui_layout_window::apply): Update tui_windows.
13619 * tui/tui-data.h (tui_windows): Declare.
13620 (all_tui_windows): Now inline function.
13621 (class tui_window_iterator, struct all_tui_windows): Remove.
13622
13623 2020-02-22 Tom Tromey <tom@tromey.com>
13624
13625 PR tui/17850:
13626 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13627 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13628 "height" argument.
13629 (class tui_layout_window) <get_sizes>: Likewise.
13630 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13631 argument.
13632 <get_sizes>: Add "height" argument.
13633 <m_vertical>: New field.
13634 * tui/tui-layout.c (tui_layout_split::clone): Update.
13635 (tui_layout_split::get_sizes): Add "height" argument.
13636 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13637 (tui_new_layout_command): Parse "-horizontal".
13638 (_initialize_tui_layout): Update help string.
13639 (tui_layout_split::specification): Add "-horizontal" when needed.
13640 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13641 argument.
13642 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13643 New methods.
13644
13645 2020-02-22 Tom Tromey <tom@tromey.com>
13646
13647 * tui/tui-layout.h (enum tui_adjust_result): New.
13648 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13649 (class tui_layout_window) <adjust_size>: Return
13650 tui_adjust_result. Rewrite.
13651 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13652 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13653
13654 2020-02-22 Tom Tromey <tom@tromey.com>
13655
13656 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13657 parameter and return types.
13658 (class tui_layout_base) <specification>: Add "depth".
13659 (class tui_layout_window) <specification>: Add "depth".
13660 (class tui_layout_split) <specification>: Add "depth".
13661 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13662 and return types.
13663 (tui_new_layout_command): Parse sub-layouts.
13664 (_initialize_tui_layout): Update help string.
13665 (tui_layout_window::specification): Add "depth".
13666 (add_layout_command): Update.
13667
13668 2020-02-22 Tom Tromey <tom@tromey.com>
13669
13670 * NEWS: Add "tui new-layout" item.
13671 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13672 Add new-layout command to help text.
13673 (validate_window_name): New function.
13674 (tui_new_layout_command): New function.
13675 (_initialize_tui_layout): Register "new-layout".
13676 (tui_layout_window::specification): New method.
13677 (tui_layout_window::specification): New method.
13678 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13679 method.
13680 (class tui_layout_window) <specification>: New method.
13681 (class tui_layout_split) <specification>: New method.
13682
13683 2020-02-22 Tom Tromey <tom@tromey.com>
13684
13685 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13686 * tui/tui-win.c (window_name_completer): Update comment.
13687 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13688 Declare method.
13689 (class tui_layout_window) <replace_window>: Likewise.
13690 (class tui_layout_split) <replace_window>: Likewise.
13691 (tui_set_layout): Don't declare.
13692 (tui_set_initial_layout): Declare function.
13693 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13694 (asm_regs_layout): New globals.
13695 (tui_current_layout, show_layout): Remove.
13696 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13697 (find_layout, tui_apply_layout): New function.
13698 (layout_completer): Remove.
13699 (tui_next_layout): Reimplement.
13700 (tui_next_layout_command): New function.
13701 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13702 (tui_regs_layout): Reimplement.
13703 (tui_regs_layout_command): New function.
13704 (extract_display_start_addr): Rewrite.
13705 (next_layout, prev_layout): Remove.
13706 (tui_layout_window::replace_window): New method.
13707 (tui_layout_split::replace_window): New method.
13708 (destroy_layout): New function.
13709 (layout_list): New global.
13710 (add_layout_command): New function.
13711 (initialize_layouts): Update.
13712 (tui_layout_command): New function.
13713 (_initialize_tui_layout): Install "layout" commands.
13714 * tui/tui-data.h (enum tui_layout_type): Remove.
13715 (tui_current_layout): Don't declare.
13716
13717 2020-02-22 Tom Tromey <tom@tromey.com>
13718
13719 * tui/tui-regs.c (tui_reg_layout): Remove.
13720 (tui_reg_command): Use tui_regs_layout.
13721 * tui/tui-layout.h (tui_reg_command): Declare.
13722 * tui/tui-layout.c (tui_reg_command): New function.
13723
13724 2020-02-22 Tom Tromey <tom@tromey.com>
13725
13726 * tui/tui.c (tui_rl_delete_other_windows): Call
13727 tui_remove_some_windows.
13728 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13729 Declare method.
13730 (class tui_layout_window) <remove_windows>: New method.
13731 (class tui_layout_split) <remove_windows>: Declare.
13732 (tui_remove_some_windows): Declare.
13733 * tui/tui-layout.c (tui_remove_some_windows): New function.
13734 (tui_layout_split::remove_windows): New method.
13735
13736 2020-02-22 Tom Tromey <tom@tromey.com>
13737
13738 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13739 * tui/tui-layout.h (tui_next_layout): Declare.
13740 * tui/tui-layout.c (tui_next_layout): New function.
13741
13742 2020-02-22 Tom Tromey <tom@tromey.com>
13743
13744 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13745 correct coordinates.
13746
13747 2020-02-22 Tom Tromey <tom@tromey.com>
13748
13749 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13750 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13751 DATA_WIN case.
13752
13753 2020-02-22 Tom Tromey <tom@tromey.com>
13754
13755 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13756 TUI_DISASM_WIN, not tui_win_list.
13757
13758 2020-02-22 Tom Tromey <tom@tromey.com>
13759
13760 * valprint.c (generic_val_print_enum_1)
13761 (val_print_type_code_flags): Style member names.
13762 * rust-lang.c (val_print_struct, rust_print_enum)
13763 (rust_print_struct_def, rust_internal_print_type): Style member
13764 names.
13765 * p-valprint.c (pascal_object_print_value_fields): Style member
13766 names. Only call fprintf_symbol_filtered for static members.
13767 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13768 * f-valprint.c (f_val_print): Style member names.
13769 * f-typeprint.c (f_type_print_base): Style member names.
13770 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13771 call fprintf_symbol_filtered for static members.
13772 (cp_print_class_member): Style member names.
13773 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13774 member names.
13775 * ada-valprint.c (ada_print_scalar): Style enum names.
13776 (ada_val_print_enum): Likewise.
13777 * ada-typeprint.c (print_enum_type): Style enum names.
13778
13779 2020-02-21 Tom Tromey <tom@tromey.com>
13780
13781 * psympriv.h (struct partial_symtab): Update comment.
13782
13783 2020-02-21 Tom Tromey <tromey@adacore.com>
13784
13785 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13786 type is CORE_ADDR.
13787
13788 2020-02-21 Tom de Vries <tdevries@suse.de>
13789
13790 PR gdb/25534
13791 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13792 if dependencies[i]->user != NULL.
13793
13794 2020-02-21 Ali Tamur <tamur@google.com>
13795
13796 * dwarf2/read.c (dwarf2_name): Add null check.
13797
13798 2020-02-20 Tom Tromey <tom@tromey.com>
13799
13800 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13801 ">=", in binary search.
13802 (dwarf2_find_containing_comp_unit): New overload.
13803 (run_test): New self-test.
13804 (_initialize_dwarf2_read): Register new test.
13805
13806 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13807
13808 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13809 * riscv-tdep.h: Likewise.
13810 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13811 rv32-only CSR.
13812 * features/riscv/64bit-csr.xml: Regenerated.
13813
13814 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13815 Tom Tromey <tom@tromey.com>
13816
13817 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13818 of 'fputc_unfiltered'.
13819 (putchar_unfiltered): Call 'fputc_unfiltered'.
13820 (fputc_unfiltered): Call 'fputs_unfiltered'.
13821
13822 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13823
13824 * config.in: Regenerate.
13825 * configure: Regenerate.
13826 * configure.ac: Add --with-python-libdir option.
13827 * main.c: Use WITH_PYTHON_LIBDIR.
13828
13829 2020-02-19 Tom Tromey <tom@tromey.com>
13830
13831 * symtab.c (general_symbol_info::compute_and_set_names): Use
13832 obstack_strndup. Simplify call to symbol_set_demangled_name.
13833
13834 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13835
13836 * dwarf2/read.c (allocate_signatured_type_table,
13837 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13838 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13839 Remove objfile parameter, update all callers.
13840
13841 2020-02-19 Doug Evans <dje@google.com>
13842
13843 PR rust/25535
13844 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13845 rust_enum_variant calculation.
13846
13847 2020-02-19 Tom Tromey <tromey@adacore.com>
13848
13849 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13850
13851 2020-02-19 Tom Tromey <tromey@adacore.com>
13852
13853 * ada-lang.c (cache_symbol): Use obstack_strdup.
13854
13855 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13856
13857 * configure: Regenerate.
13858
13859 2020-02-19 Tom Tromey <tromey@adacore.com>
13860
13861 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13862 NULL check.
13863
13864 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13865
13866 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13867
13868 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13869
13870 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13871 if GDBSERVER is not defined.
13872 (riscv_tdesc_cache): Likewise, also store const target_desc.
13873 (STATIC_IN_GDB): Define.
13874 (riscv_create_target_description): Update declaration with
13875 STATIC_IN_GDB.
13876 (riscv_lookup_target_description): New function, only define if
13877 GDBSERVER is not defined.
13878 * arch/riscv.h (riscv_create_target_description): Declare only
13879 when GDBSERVER is defined.
13880 (riscv_lookup_target_description): New declaration when GDBSERVER
13881 is not defined.
13882 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13883 (riscv_linux_read_features): ...this, and return
13884 riscv_gdbarch_features instead of target_desc.
13885 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13886 (riscv_linux_read_description): Rename to...
13887 (riscv_linux_read_features): ...this.
13888 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13889 Update to use riscv_gdbarch_features and
13890 riscv_lookup_target_description.
13891 * riscv-tdep.c (riscv_find_default_target_description): Use
13892 riscv_lookup_target_description instead of
13893 riscv_create_target_description.
13894
13895 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13896
13897 * valprint.c (generic_val_print_enum_1): When printing a flag
13898 enum with value 0 and there is no enumerator with value 0, print
13899 just "0" instead of "(unknown: 0x0)".
13900
13901 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13902
13903 * valprint.c (generic_val_print_enum_1): Print unknown part of
13904 flag enum in hex.
13905
13906 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13907
13908 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13909 flag enums to contain duplicate enumerators.
13910 * valprint.c (generic_val_print_enum_1): Update comment.
13911
13912 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13913
13914 * dwarf2/read.c: Include "count-one-bits.h".
13915 (update_enumeration_type_from_children): If an enumerator has
13916 multiple bits set, don't treat the enumeration as a "flag enum".
13917 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13918 of flag enums have 0 or 1 bit set.
13919
13920 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13921
13922 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13923 conversion.
13924 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13925 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13926 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13927 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13928 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13929
13930 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13931
13932 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13933
13934 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13935
13936 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13937 displaced_step_closure_up.
13938 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13939 (struct displaced_step_closure_up):
13940 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13941 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13942 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13943 Likewise.
13944 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13945 * gdbarch.c, gdbarch.h: Re-generate.
13946 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13947 displaced_step_closure_up.
13948 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13949 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13950 * infrun.h (displaced_step_closure_up): New type alias.
13951 (struct displaced_step_inferior_state) <step_closure>: Change
13952 type to displaced_step_closure_up.
13953 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13954 displaced_step_closure_up.
13955 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13956
13957 2020-02-14 Tom Tromey <tom@tromey.com>
13958
13959 * minidebug.c (gnu_debug_key): New global.
13960 (find_separate_debug_file_in_section): Use it.
13961
13962 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13963
13964 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13965 std::unique_ptr.
13966 * gdbarch.c: Re-generate.
13967 * gdbarch.h: Re-generate.
13968 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13969 change.
13970 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13971 type to std::unique_ptr.
13972 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13973 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13974 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13975 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13976 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13977 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13978 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13979 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13980 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13981
13982 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13983
13984 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13985 std::unique_ptr.
13986 (displaced_step_clear): Rename to...
13987 (displaced_step_reset): ... this. Just call displaced->reset ().
13988 (displaced_step_clear_cleanup): Rename to...
13989 (displaced_step_reset_cleanup): ... this.
13990 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13991 (displaced_step_fixup): Likewise.
13992 (resume_1): Likewise.
13993 (handle_inferior_event): Restore child's memory before calling
13994 displaced_step_fixup on the parent.
13995 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13996 to std::unique_ptr.
13997 <step_closure>: Change type to std::unique_ptr.
13998
13999 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14000
14001 * arm-tdep.c: Include count-one-bits.h.
14002 (cleanup_block_store_pc): Use count_one_bits.
14003 (cleanup_block_load_pc): Use count_one_bits.
14004 (arm_copy_block_xfer): Use count_one_bits.
14005 (thumb2_copy_block_xfer): Use count_one_bits.
14006 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14007 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14008 (thumb_get_next_pcs_raw): Use count_one_bits.
14009 (arm_get_next_pcs_raw): Use count_one_bits_l.
14010 * arch/arm.c (bitcount): Remove.
14011 * arch/arm.h (bitcount): Remove.
14012
14013 2020-02-14 Tom Tromey <tromey@adacore.com>
14014
14015 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14016 Update.
14017 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14018 * dwarf2/loc.c (call_site_find_chain_1): Return
14019 unique_xmalloc_ptr.
14020 (call_site_find_chain): Likewise.
14021
14022 2020-02-14 Richard Biener <rguenther@suse.de>
14023
14024 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14025 on expression with division operators.
14026
14027 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14028
14029 * MAINTAINERS (Write After Approval): Adding myself.
14030
14031 2020-02-12 Tom Tromey <tom@tromey.com>
14032
14033 * event-loop.c (event_data, gdb_event, event_handler_func):
14034 Remove.
14035
14036 2020-02-12 Tom Tromey <tom@tromey.com>
14037
14038 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14039 (dwarf2_frame_objfile_data): Add comment.
14040 (find_comp_unit, set_comp_unit): New functions.
14041 (dwarf2_frame_find_fde): Use find_comp_unit.
14042 (dwarf2_build_frame_info): Use set_comp_unit.
14043
14044 2020-02-12 Tom Tromey <tom@tromey.com>
14045
14046 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14047 (comp_unit): Don't initialize objfile.
14048 (execute_cfa_program): Add text_offset parameter.
14049 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14050 (dwarf2_frame_cache): Update.
14051 (dwarf2_build_frame_info): Don't set "objfile" member.
14052
14053 2020-02-12 Tom Tromey <tom@tromey.com>
14054
14055 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14056 (decode_frame_entry): Likewise.
14057 (dwarf2_build_frame_info): Update.
14058
14059 2020-02-12 Tom Tromey <tom@tromey.com>
14060
14061 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14062 (decode_frame_entry_1): Use the comp_unit obstack.
14063
14064 2020-02-12 Tom Tromey <tom@tromey.com>
14065
14066 * dwarf2/frame.c (struct comp_unit): Add initializers and
14067 constructor.
14068 (dwarf2_frame_objfile_data): Store a comp_unit.
14069 (dwarf2_frame_find_fde): Update.
14070 (dwarf2_build_frame_info): Use "new".
14071
14072 2020-02-12 Tom Tromey <tom@tromey.com>
14073
14074 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14075 (dwarf2_fde_table): Typedef for std::vector.
14076 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14077 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14078 (decode_frame_entry): Update.
14079 (dwarf2_build_frame_info): Use "new".
14080
14081 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14082
14083 * arm-tdep.c (arm_gdbarch_init): Update.
14084 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14085 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14086 have_neon, is_m>: Change to bool.
14087
14088 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14089
14090 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14091
14092 2020-02-12 Tom Tromey <tom@tromey.com>
14093
14094 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14095
14096 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14097
14098 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14099 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14100
14101 2020-02-11 Tom Tromey <tom@tromey.com>
14102
14103 * psymtab.h: Update comment.
14104
14105 2020-02-11 Tom Tromey <tom@tromey.com>
14106
14107 * gdb_obstack.h (struct auto_obstack): Use
14108 DISABLE_COPY_AND_ASSIGN.
14109
14110 2020-02-11 Tom Tromey <tom@tromey.com>
14111
14112 * dwarf2/frame.h (struct objfile): Don't forward declare.
14113
14114 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14115
14116 * cris-tdep.c (cris_supply_gregset): Change signature to match
14117 what struct regset expects.
14118 (cris_regset): New struct.
14119 (fetch_core_registers): Remove.
14120 (cris_iterate_over_regset_sections): New function.
14121 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14122 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14123
14124 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14125
14126 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14127 registers.
14128
14129 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14130
14131 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14132
14133 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14134
14135 * configure: Re-generate.
14136
14137 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14138
14139 * configure: Re-generate.
14140
14141 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14142
14143 * acinclude: Update warning.m4 path.
14144 * warning.m4: Move to gdbsupport.
14145
14146 2020-02-11 Tom Tromey <tromey@adacore.com>
14147
14148 * remote.c (remote_console_output): Update.
14149 * printcmd.c (printf_command): Update.
14150 * event-loop.c (gdb_wait_for_event): Update.
14151 * linux-nat.c (sigchld_handler): Update.
14152 * remote-sim.c (gdb_os_write_stdout): Update.
14153 (gdb_os_flush_stdout): Update.
14154 (gdb_os_flush_stderr): Update.
14155 (gdb_os_write_stderr): Update.
14156 * exceptions.c (print_exception): Update.
14157 * remote-fileio.c (remote_fileio_func_read): Update.
14158 (remote_fileio_func_write): Update.
14159 * tui/tui.c (tui_enable): Update.
14160 * tui/tui-interp.c (tui_interp::init): Update.
14161 * utils.c (init_page_info): Update.
14162 (putchar_unfiltered, fputc_unfiltered): Update.
14163 (gdb_flush): Update.
14164 (emit_style_escape): Update.
14165 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14166 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14167 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14168 (stderr_file::write): Update.
14169 (stderr_file::puts): Update.
14170 * ui-file.h (ui_file_isatty, ui_file_write)
14171 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14172 (ui_file_puts): Don't declare.
14173
14174 2020-02-10 Tom de Vries <tdevries@suse.de>
14175
14176 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14177 sentinel to char *.
14178
14179 2020-02-09 Tom de Vries <tdevries@suse.de>
14180
14181 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14182 filename if it matches "<artificial>".
14183
14184 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14185
14186 * windows-tdep.c (struct enum_value_name): New struct.
14187 (create_enum): New function.
14188 (windows_get_siginfo_type): Create and use enum types.
14189
14190 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14191
14192 * NEWS: Mention $_siginfo support for Windows.
14193 * windows-nat.c (handle_exception): Set siginfo_er.
14194 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14195 (windows_xfer_siginfo): New function.
14196 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14197 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14198 (init_windows_gdbarch_data): New function.
14199 (get_windows_gdbarch_data): New function.
14200 (windows_get_siginfo_type): New function.
14201 (windows_init_abi): Register windows_get_siginfo_type.
14202 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14203
14204 2020-02-08 Tom Tromey <tom@tromey.com>
14205
14206 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14207 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14208 <keep>: Declare method.
14209 <m_keep>: Remove member.
14210 <~cutu_reader>: Remove.
14211 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14212 (cutu_reader::cutu_reader): Update.
14213 (cutu_reader::keep): Rename from ~cutu_reader.
14214 (process_psymtab_comp_unit, build_type_psymtabs_1)
14215 (process_skeletonless_type_unit, load_partial_comp_unit)
14216 (load_full_comp_unit, dwarf2_read_addr_index)
14217 (read_signatured_type): Update.
14218
14219 2020-02-08 Tom Tromey <tom@tromey.com>
14220
14221 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14222 "want_partial_unit" parameter.
14223 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14224 Inline check for DW_TAG_partial_unit.
14225 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14226
14227 2020-02-08 Tom Tromey <tom@tromey.com>
14228
14229 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14230 read.c.
14231 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14232 read.c.
14233
14234 2020-02-08 Tom Tromey <tom@tromey.com>
14235
14236 * dwarf2/read.c (read_address): Move to comp-unit.c.
14237 (dwarf2_rnglists_process, dwarf2_ranges_process)
14238 (read_attribute_value, dwarf_decode_lines_1)
14239 (var_decode_location, decode_locdesc): Update.
14240 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14241 read.c. Remove "cu" parameter.
14242 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14243 method.
14244
14245 2020-02-08 Tom Tromey <tom@tromey.com>
14246
14247 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14248 (read_indirect_line_string): Update.
14249 * dwarf2/comp-unit.c (read_offset): Remove.
14250 (read_comp_unit_head): Update.
14251 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14252 method.
14253 (read_offset): Don't declare.
14254
14255 2020-02-08 Tom Tromey <tom@tromey.com>
14256
14257 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14258 * dwarf2/read.c (struct comp_unit_head): Move to
14259 dwarf2/comp-unit.h.
14260 (enum class rcuh_kind): Move to comp-unit.h.
14261 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14262 (read_comp_unit_head, error_check_comp_unit_head)
14263 (read_and_check_comp_unit_head): Move to comp-unit.c.
14264 (read_offset, dwarf_unit_type_name): Likewise.
14265 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14266 (cutu_reader::cutu_reader, read_call_site_scope)
14267 (find_partial_die, follow_die_offset): Update.
14268 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14269
14270 2020-02-08 Tom Tromey <tom@tromey.com>
14271
14272 * dwarf2/read.c (read_offset_1): Move to leb.c.
14273 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14274 (dwarf_decode_macro_bytes): Update.
14275 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14276 * dwarf2/leb.h (read_offset): Declare.
14277
14278 2020-02-08 Tom Tromey <tom@tromey.com>
14279
14280 * dwarf2/read.c (dwarf2_section_size): Remove.
14281 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14282 Update.
14283 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14284
14285 2020-02-08 Tom Tromey <tom@tromey.com>
14286
14287 * dwarf2/read.c (read_initial_length): Move to leb.c.
14288 * dwarf2/leb.h (read_initial_length): Declare.
14289 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14290 handle_nonstd parameter.
14291 * dwarf2/frame.c (read_initial_length): Remove.
14292 (decode_frame_entry_1): Update.
14293
14294 2020-02-08 Tom Tromey <tom@tromey.com>
14295
14296 * dwarf2/loc.c (dwarf2_find_location_expression)
14297 (dwarf_evaluate_loc_desc::get_tls_address)
14298 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14299 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14300 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14301 (dwarf2_compile_property_to_c)
14302 (dwarf2_loc_desc_get_symbol_read_needs)
14303 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14304 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14305 (loclist_describe_location, loclist_tracepoint_var_ref)
14306 (loclist_generate_c_location): Update.
14307 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14308 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14309 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14310 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14311 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14312 (dwarf2_per_cu_data::addr_size)
14313 (dwarf2_per_cu_data::ref_addr_size)
14314 (dwarf2_per_cu_data::text_offset)
14315 (dwarf2_per_cu_data::addr_type): Now methods.
14316 (per_cu_header_read_in): Make per_cu "const".
14317 (dwarf2_version): Remove.
14318 (dwarf2_per_cu_data::int_type): Now a method.
14319 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14320 (set_die_type, read_array_type, read_subrange_index_type)
14321 (read_tag_string_type, read_subrange_type): Update.
14322 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14323 offset_size, ref_addr_size, text_offset, addr_type, version,
14324 objfile, int_type, addr_sized_int_type>: Declare methods.
14325
14326 2020-02-08 Tom Tromey <tom@tromey.com>
14327
14328 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14329 Move earlier.
14330
14331 2020-02-08 Tom Tromey <tom@tromey.com>
14332
14333 * dwarf2/read.h (dwarf_line_debug): Declare.
14334 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14335 * dwarf2/read.c: Move line_header code to new files.
14336 (dwarf_line_debug): No longer static.
14337 * dwarf2/line-header.c: New file.
14338 * dwarf2/line-header.h: New file.
14339
14340 2020-02-08 Tom Tromey <tom@tromey.com>
14341
14342 * dwarf2/read.c (struct line_header) <file_full_name,
14343 file_file_name>: Return unique_xmalloc_ptr.
14344 (line_header::file_file_name): Update.
14345 (line_header::file_full_name): Update.
14346 (dw2_get_file_names_reader): Update.
14347 (macro_start_file): Update.
14348
14349 2020-02-08 Tom Tromey <tom@tromey.com>
14350
14351 * dwarf2/read.c (struct line_header) <file_full_name,
14352 file_file_name>: Declare methods.
14353 (dw2_get_file_names_reader): Update.
14354 (file_file_name): Now a method.
14355 (file_full_name): Likewise.
14356 (macro_start_file): Update.
14357
14358 2020-02-08 Tom Tromey <tom@tromey.com>
14359
14360 * dwarf2/read.c (dwarf_always_disassemble)
14361 (show_dwarf_always_disassemble): Move to loc.c.
14362 (_initialize_dwarf2_read): Move "always-disassemble" registration
14363 to loc.c.
14364 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14365 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14366 static.
14367 (show_dwarf_always_disassemble): Move from read.c.
14368 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14369
14370 2020-02-08 Tom Tromey <tom@tromey.com>
14371
14372 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14373 (create_quick_file_names_table): Return htab_up.
14374 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14375 Update.
14376 * dwarf2/read.h (struct dwarf2_per_objfile)
14377 <quick_file_names_table>: Now htab_up.
14378
14379 2020-02-08 Tom Tromey <tom@tromey.com>
14380
14381 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14382
14383 2020-02-08 Tom Tromey <tom@tromey.com>
14384
14385 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14386 Rewrite.
14387 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14388 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14389 (abbrev_table::abbrev_table): No longer inline.
14390 (ABBREV_HASH_SIZE): Remove.
14391 (abbrev_table::m_abbrevs): Now an htab_up.
14392
14393 2020-02-08 Tom Tromey <tom@tromey.com>
14394
14395 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14396 (cutu_reader): Update.
14397 (build_type_psymtabs_1): Update.
14398 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14399 (abbrev_table::alloc_abbrev): Update.
14400 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14401 (abbrev_table::read): New static method, renamed from
14402 abbrev_table_read_table.
14403 (abbrev_table::alloc_abbrev)
14404 (abbrev_table::add_abbrev): Now private.
14405 (abbrev_table::abbrev_table): Now private.
14406 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14407
14408 2020-02-08 Tom Tromey <tom@tromey.com>
14409
14410 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14411 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14412 htab_up.
14413
14414 2020-02-08 Tom Tromey <tom@tromey.com>
14415
14416 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14417 htab_up.
14418 (lookup_dwo_unit_in_dwp): Update.
14419 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14420 on obstack.
14421
14422 2020-02-08 Tom Tromey <tom@tromey.com>
14423
14424 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14425 obstack.
14426
14427 2020-02-08 Tom Tromey <tom@tromey.com>
14428
14429 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14430 line_header_hash.
14431 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14432 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14433 Change type to htab_up.
14434
14435 2020-02-08 Tom Tromey <tom@tromey.com>
14436
14437 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14438 htab_up. Don't allocate on obstack.
14439 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14440 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14441 Change type to htab_up.
14442
14443 2020-02-08 Tom Tromey <tom@tromey.com>
14444
14445 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14446 Change type to htab_up.
14447 * dwarf2/read.c (create_signatured_type_table_from_index)
14448 (create_signatured_type_table_from_debug_names)
14449 (create_all_type_units, add_type_unit)
14450 (lookup_dwo_signatured_type, lookup_signatured_type)
14451 (process_skeletonless_type_unit): Update.
14452 (create_debug_type_hash_table, create_debug_types_hash_table):
14453 Change type of types_htab.
14454 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14455 htab_up. Don't allocate on obstack.
14456 (create_cus_hash_table): Change type of cus_htab parameter.
14457 (struct dwo_file) <cus, tus>: Now htab_up.
14458 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14459 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14460 (queue_and_load_all_dwo_tus): Update.
14461 * dwarf2/index-write.c (write_gdbindex): Update.
14462 (write_debug_names): Update.
14463
14464 2020-02-08 Tom Tromey <tom@tromey.com>
14465
14466 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14467 dwarf2/read.c. Remove "next" member. Add constructor ntad
14468 destructor.
14469 (struct dwarf2_per_objfile) <queue>: New member.
14470 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14471 dwarf2/read.h.
14472 (dwarf2_queue, dwarf2_queue_tail): Remove.
14473 (class dwarf2_queue_guard): Add parameter to constructor. Use
14474 DISABLE_COPY_AND_ASSIGN.
14475 <m_per_objfile>: New member.
14476 <~dwarf2_queue_guard>: Rewrite.
14477 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14478 Update.
14479 (~dwarf2_queue_item): New.
14480
14481 2020-02-08 Tom Tromey <tom@tromey.com>
14482
14483 * dwarf2/read.c (struct die_info) <has_children>: New member.
14484 (dw2_get_file_names_reader): Remove has_children.
14485 (dw2_get_file_names): Update.
14486 (read_cutu_die_from_dwo): Remove has_children.
14487 (cutu_reader::init_tu_and_read_dwo_dies)
14488 (cutu_reader::cutu_reader): Update.
14489 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14490 Remove has_children.
14491 (build_type_psymtabs_1, process_skeletonless_type_unit)
14492 (load_partial_comp_unit, load_full_comp_unit): Update.
14493 (create_dwo_cu_reader): Remove has_children.
14494 (create_cus_hash_table, read_die_and_children): Update.
14495 (read_full_die_1,read_full_die): Remove has_children.
14496 (read_signatured_type): Update.
14497 (class cutu_reader) <has_children>: Remove.
14498
14499 2020-02-08 Tom Tromey <tom@tromey.com>
14500
14501 * dwarf2/expr.c: Rename from dwarf2expr.c.
14502 * dwarf2/expr.h: Rename from dwarf2expr.h.
14503 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14504 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14505 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14506 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14507 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14508 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14509 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14510 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14511 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14512 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14513 * dwarf2/loc.c: Rename from dwarf2loc.c.
14514 * dwarf2/loc.h: Rename from dwarf2loc.h.
14515 * dwarf2/read.c: Rename from dwarf2read.c.
14516 * dwarf2/read.h: Rename from dwarf2read.h.
14517 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14518 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14519 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14520 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14521 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14522 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14523 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14524 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14525 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14526 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14527 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14528 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14529 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14530 Update.
14531 * Makefile.in (COMMON_SFILES): Update.
14532 (HFILES_NO_SRCDIR): Update.
14533
14534 2020-02-08 Tom Tromey <tom@tromey.com>
14535
14536 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14537 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14538
14539 2020-02-08 Tom Tromey <tom@tromey.com>
14540
14541 * dwarf2read.h (struct die_info): Don't declare.
14542
14543 2020-02-08 Tom Tromey <tom@tromey.com>
14544
14545 * dwarf2read.h (die_info_ptr): Remove typedef.
14546
14547 2020-02-08 Tom Tromey <tom@tromey.com>
14548
14549 * dwarf2read.c (read_call_site_scope)
14550 (handle_data_member_location, dwarf2_add_member_fn)
14551 (mark_common_block_symbol_computed, read_common_block)
14552 (attr_to_dynamic_prop, partial_die_info::read)
14553 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14554 (dwarf2_symbol_mark_computed, set_die_type): Update.
14555 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14556 method.
14557 (attr_form_is_block): Don't declare.
14558 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14559
14560 2020-02-08 Tom Tromey <tom@tromey.com>
14561
14562 * dwarf2read.c (dwarf2_find_base_address, )
14563 (read_call_site_scope, rust_containing_type)
14564 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14565 (handle_data_member_location, dwarf2_add_member_fn)
14566 (get_alignment, read_structure_type, process_structure_scope)
14567 (mark_common_block_symbol_computed, read_common_block)
14568 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14569 (partial_die_info::read, read_attribute_value, new_symbol)
14570 (lookup_die_type, dwarf2_get_ref_die_offset)
14571 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14572 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14573 (dwarf2_symbol_mark_computed): Update.
14574 * dwarf2/attribute.h (struct attribute) <value_as_address,
14575 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14576 methods.
14577 (value_as_address, attr_form_is_section_offset)
14578 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14579 * dwarf2/attribute.c (attribute::value_as_address)
14580 (attribute::form_is_section_offset, attribute::form_is_constant)
14581 (attribute::form_is_ref): Now methods.
14582
14583 2020-02-08 Tom Tromey <tom@tromey.com>
14584
14585 * dwarf2read.c (struct attribute, DW_STRING)
14586 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14587 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14588 (attr_form_is_block, attr_form_is_section_offset)
14589 (attr_form_is_constant, attr_form_is_ref): Move.
14590 * dwarf2/attribute.h: New file.
14591 * dwarf2/attribute.c: New file, from dwarf2read.c.
14592 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14593
14594 2020-02-08 Tom Tromey <tom@tromey.com>
14595
14596 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14597 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14598 Move.
14599 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14600 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14601 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14602 abbrev.c.
14603 * dwarf2/abbrev.h: New file.
14604 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14605 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14606
14607 2020-02-08 Tom Tromey <tom@tromey.com>
14608
14609 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14610 (dwarf2_section_size, dwarf2_get_section_info)
14611 (create_signatured_type_table_from_debug_names)
14612 (create_addrmap_from_aranges, read_debug_names_from_section)
14613 (get_gdb_index_contents_from_section, read_comp_unit_head)
14614 (error_check_comp_unit_head, read_abbrev_offset)
14615 (create_debug_type_hash_table, init_cu_die_reader)
14616 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14617 (read_comp_units_from_section, create_cus_hash_table)
14618 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14619 (create_dwp_v2_section, dwarf2_rnglists_process)
14620 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14621 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14622 (read_indirect_string_from_dwz, read_addr_index_1)
14623 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14624 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14625 (fill_in_loclist_baton): Update.
14626 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14627 get_containing_section, get_bfd_owner, get_bfd_section,
14628 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14629 (dwarf2_read_section, get_section_name, get_section_file_name)
14630 (get_containing_section, get_section_bfd_owner)
14631 (get_section_bfd_section, get_section_name, get_section_file_name)
14632 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14633 declare.
14634 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14635 (dwarf2_section_info::get_bfd_owner)
14636 (dwarf2_section_info::get_bfd_section)
14637 (dwarf2_section_info::get_name)
14638 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14639 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14640 (dwarf2_section_info::read): Now methods.
14641 * dwarf-index-write.c (class debug_names): Update.
14642
14643 2020-02-08 Tom Tromey <tom@tromey.com>
14644
14645 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14646 Move to dwarf2/section.h.
14647 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14648 (get_section_bfd_section, get_section_name)
14649 (get_section_file_name, get_section_id, get_section_flags)
14650 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14651 dwarf2/section.c.
14652 * dwarf2/section.h: New file.
14653 * dwarf2/section.c: New file, from dwarf2read.c.
14654 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14655
14656 2020-02-08 Tom Tromey <tom@tromey.com>
14657
14658 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14659 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14660 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14661 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14662 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14663 * dwarf2/leb.h: New file, from dwarf2read.c.
14664 * dwarf2/leb.c: New file, from dwarf2read.c.
14665 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14666 Remove.
14667 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14668 (COMMON_SFILES): Add dwarf2/leb.c.
14669
14670 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14671
14672 GDB 9.1 released.
14673
14674 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14675
14676 PR gdb/25190:
14677 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14678 * gdb/remote.c (remote_console_output): Update.
14679 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14680 (ui_file_puts): ...this.
14681 * gdb/ui-file.h (ui_file_puts): Add declaration.
14682 * gdb/utils.c (emit_style_escape): Update.
14683 (flush_wrap_buffer): Update.
14684 (fputs_maybe_filtered): Update.
14685 (fputs_unfiltered): Add function.
14686
14687 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14688
14689 * gdb/event-loop.c (gdb_wait_for_event): Update.
14690 * gdb/printcmd.c (printf_command): Update.
14691 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14692 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14693 (gdb_os_flush_stderr): Update.
14694 * gdb/remote.c (remote_console_output): Update.
14695 * gdb/ui-file.c (gdb_flush): Rename to...
14696 (ui_file_flush): ...this.
14697 (stderr_file::write): Update.
14698 (stderr_file::puts): Update.
14699 * gdb/ui-file.h (gdb_flush): Rename to...
14700 (ui_file_flush): ...this.
14701 * gdb/utils.c (gdb_flush): Add function.
14702 * gdb/utils.h (gdb_flush): Add declaration.
14703
14704 2020-02-07 Tom Tromey <tromey@adacore.com>
14705
14706 PR breakpoints/24915:
14707 * source.c (find_and_open_source): Do not check basenames_may_differ.
14708
14709 2020-02-07 Tom Tromey <tom@tromey.com>
14710
14711 * README: Update gdbserver documentation.
14712 * gdbserver: Move to top level.
14713 * configure.tgt (build_gdbserver): Remove.
14714 * configure.ac: Remove --enable-gdbserver.
14715 * configure: Rebuild.
14716 * Makefile.in (distclean): Don't mention gdbserver.
14717
14718 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14719
14720 * source-cache.c (source_cache::ensure): Surround
14721 get_plain_source_lines with a try/catch.
14722 (source_cache::get_line_charpos): Get rid of try/catch
14723 and only check for the return value of "ensure".
14724 * tui/tui-source.c (tui_source_window::set_contents):
14725 Simplify "nlines" calculation.
14726
14727 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14728
14729 * MAINTAINERS (Write After Approval): Add myself.
14730
14731 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14732
14733 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14734 function call.
14735
14736 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14737
14738 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14739
14740 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14741
14742 * nat/riscv-linux-tdesc.h: New file.
14743 * nat/riscv-linux-tdesc.c: New file, taking code from...
14744 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14745 ... here.
14746 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14747 NATDEPFILES.
14748
14749 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14750
14751 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14752 we don't set the fake simulator ptid to the null_ptid.
14753
14754 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14755
14756 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14757 * gdbthread.h (class thread_info) <resumed>: Likewise.
14758 * infrun.c (resume_1): Likewise.
14759 (proceed): Likewise.
14760 (infrun_thread_stop_requested): Likewise.
14761 (stop_all_threads): Likewise.
14762 (handle_inferior_event): Likewise.
14763 (restart_threads): Likewise.
14764 (finish_step_over): Likewise.
14765 (keep_going_stepped_thread): Likewise.
14766 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14767 (linux_handle_extended_wait): Likewise.
14768 * record-btrace.c (get_thread_current_frame_id): Likewise.
14769 * record-full.c (record_full_wait_1): Likewise.
14770 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14771 * target.c (target_resume): Likewise.
14772 * thread.c (set_running_thread): Likewise.
14773
14774 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14775
14776 * f-valprint.c (f77_print_array_1): Changed datatype of index
14777 variable to LONGEST from int to enable it to contain bound
14778 values correctly.
14779
14780 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14781
14782 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14783 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14784 offsets according to FLEN determined.
14785 (riscv_linux_nat_target::read_description): Determine FLEN
14786 dynamically.
14787 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14788 according to FLEN determined.
14789 (riscv_linux_nat_target::store_registers): Likewise.
14790
14791 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14792
14793 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14794 when reg->group is empty and reggroup is not.
14795
14796 2020-01-31 Tom Tromey <tromey@adacore.com>
14797
14798 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14799 Call beneath target's mourn_inferior after unpushing.
14800
14801 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14802
14803 PR tui/9765
14804 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14805 have enough lines to fill the screen, still return the lowest
14806 address we found.
14807
14808 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14809
14810 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14811 '-', '<', and '>' commands.
14812
14813 2020-01-29 Pedro Alves <palves@redhat.com>
14814 Sergio Durigan Junior <sergiodj@redhat.com>
14815
14816 * infcmd.c (construct_inferior_arguments): Assert that
14817 'argc' is greater than 0.
14818
14819 2020-01-29 Luis Machado <luis.machado@linaro.org>
14820
14821 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14822 (BRK_INSN_MASK): Define to 0xd4200000.
14823 (aarch64_program_breakpoint_here_p): New function.
14824 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14825 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14826 breakpoint.c.
14827 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14828 breakpoint.h
14829 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14830 call gdbarch_program_breakpoint_here_p.
14831 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14832 default_program_breakpoint_here_p, changed return type to bool and
14833 simplified.
14834 * breakpoint.h (program_breakpoint_here): Moved prototype to
14835 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14836 return type to bool.
14837 * gdbarch.c: Regenerate.
14838 * gdbarch.h: Regenerate.
14839 * gdbarch.sh (program_breakpoint_here_p): New method.
14840 * infrun.c (handle_signal_stop): Call
14841 gdbarch_program_breakpoint_here_p.
14842
14843 2020-01-26 Tom Tromey <tom@tromey.com>
14844
14845 * ctfread.c (struct ctf_fp_info): Reindent.
14846 (_initialize_ctfread): Remove.
14847
14848 2020-01-26 Tom Tromey <tom@tromey.com>
14849
14850 * psymtab.c (partial_map_expand_apply)
14851 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14852 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14853 (psym_print_stats, psym_expand_symtabs_for_function)
14854 (psym_map_symbol_filenames, psym_map_matching_symbols)
14855 (psym_expand_symtabs_matching)
14856 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14857 (maintenance_check_psymtabs): Use new methods.
14858 * psympriv.h (struct partial_symtab) <readin_p,
14859 get_compunit_symtab>: New methods.
14860 <readin, compunit_symtab>: Remove members.
14861 (struct standard_psymtab): New.
14862 (struct legacy_psymtab): Derive from standard_psymtab.
14863 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14864 standard_psymtab.
14865 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14866
14867 2020-01-26 Tom Tromey <tom@tromey.com>
14868
14869 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14870 read_dependencies. Add assert.
14871 * psymtab.c (partial_symtab::read_dependencies): New method.
14872 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14873 method.
14874 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14875 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14876 read_dependencies.
14877 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14878 Add assert.
14879
14880 2020-01-26 Tom Tromey <tom@tromey.com>
14881
14882 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14883 Call expand_psymtab.
14884 (xcoff_read_symtab): Call expand_psymtab.
14885 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14886 legacy_expand_psymtab.
14887 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14888 method.
14889 (struct legacy_psymtab) <expand_psymtab>: Implement.
14890 <legacy_expand_psymtab>: New member.
14891 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14892 (parse_partial_symbols): Set legacy_expand_psymtab.
14893 (psymtab_to_symtab_1): Change argument order. Call
14894 expand_psymtab.
14895 (new_psymtab): Set legacy_expand_psymtab.
14896 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14897 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14898 expand_psymtab.
14899 (dwarf2_psymtab::expand_psymtab): Rename from
14900 psymtab_to_symtab_1. Call expand_psymtab.
14901 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14902 (dbx_end_psymtab): Likewise.
14903 (dbx_psymtab_to_symtab_1): Change argument order. Call
14904 expand_psymtab.
14905 (dbx_read_symtab): Call expand_psymtab.
14906 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14907 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14908 (ctf_psymtab::read_symtab): Call expand_psymtab.
14909
14910 2020-01-26 Tom Tromey <tom@tromey.com>
14911
14912 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14913 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14914 messages.
14915 * mdebugread.c (mdebug_read_symtab): Remove prints.
14916 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14917 assert.
14918 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14919
14920 2020-01-26 Tom Tromey <tom@tromey.com>
14921
14922 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14923 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14924 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14925 legacy_symtab.
14926 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14927 * psymtab.c (psymtab_to_symtab): Call method.
14928 (dump_psymtab): Update.
14929 * psympriv.h (struct partial_symtab): Add virtual destructor.
14930 <read_symtab>: New method.
14931 (struct legacy_symtab): New.
14932 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14933 (struct pst_map) <pst>: Now a legacy_psymtab.
14934 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14935 (new_psymtab): Use legacy_psymtab.
14936 * dwarf2read.h (struct dwarf2_psymtab): New.
14937 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14938 * dwarf2read.c (dwarf2_create_include_psymtab)
14939 (dwarf2_build_include_psymtabs, create_type_unit_group)
14940 (create_partial_symtab, process_psymtab_comp_unit_reader)
14941 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14942 (set_partial_user): Use dwarf2_psymtab.
14943 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14944 (psymtab_to_symtab_1, process_full_comp_unit)
14945 (process_full_type_unit, dwarf2_ranges_read)
14946 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14947 (dwarf_decode_lines): Use dwarf2_psymtab.
14948 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14949 (add_address_entry_worker, write_one_signatured_type)
14950 (recursively_count_psymbols, recursively_write_psymbols)
14951 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14952 (write_debug_names): Likewise.
14953 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14954 <pst>: Now a legacy_psymtab.
14955 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14956 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14957 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14958 * ctfread.c (struct ctf_psymtab): New.
14959 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14960 ctf_psymtab.
14961 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14962 (create_partial_symtab): Return a ctf_psymtab.
14963 (scan_partial_symbols): Update.
14964
14965 2020-01-26 Tom Tromey <tom@tromey.com>
14966
14967 * xcoffread.c (xcoff_start_psymtab): Use new.
14968 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14969 renamed from start_psymtab_common.
14970 * psympriv.h (struct partial_symtab): Add new constructor.
14971 (start_psymtab_common): Don't declare.
14972 * mdebugread.c (parse_partial_symbols): Use new.
14973 * dwarf2read.c (create_partial_symtab): Use new.
14974 * dbxread.c (start_psymtab): Use new.
14975 * ctfread.c (create_partial_symtab): Use new.
14976
14977 2020-01-26 Tom Tromey <tom@tromey.com>
14978
14979 * xcoffread.c (xcoff_end_psymtab): Use new.
14980 * psymtab.c (start_psymtab_common): Use new.
14981 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14982 Update.
14983 * psympriv.h (struct partial_symtab): Add parameters to
14984 constructor. Don't inline.
14985 (allocate_psymtab): Don't declare.
14986 * mdebugread.c (new_psymtab): Use new.
14987 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14988 * dbxread.c (dbx_end_psymtab): Use new.
14989
14990 2020-01-26 Tom Tromey <tom@tromey.com>
14991
14992 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14993 allocate_psymtab. Update documentation.
14994 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14995 allocate_psymtab. Do not use new.
14996 (allocate_psymtab): Use new. Update.
14997
14998 2020-01-26 Tom Tromey <tom@tromey.com>
14999
15000 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15001 * psymtab.c (psym_print_stats): Update.
15002 * psympriv.h (struct partial_symtab) <readin,
15003 psymtabs_addrmap_supported, anonymous>: Now bool.
15004 * mdebugread.c (psymtab_to_symtab_1): Update.
15005 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15006 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15007 (process_full_comp_unit, process_full_type_unit): Update.
15008 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15009 * ctfread.c (psymtab_to_symtab): Update.
15010
15011 2020-01-26 Tom Tromey <tom@tromey.com>
15012
15013 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15014 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15015 * psymtab.c (psymtab_storage): Delete psymtabs.
15016 (psymtab_storage::allocate_psymtab): Use new.
15017 (psymtab_storage::discard_psymtab): Use delete.
15018 * psympriv.h (struct partial_symtab): Add constructor and
15019 initializers.
15020
15021 2020-01-26 Tom Tromey <tom@tromey.com>
15022
15023 * machoread.c: Do not include psympriv.h.
15024
15025 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15026
15027 * NEWS: Mention the new option and the set/show commands.
15028
15029 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15030
15031 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15032 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15033 (validate_exec_file): New variables, enums, functions.
15034 (exec_file_locate_attach, print_section_info): Style the filenames.
15035 (_initialize_exec): Install show_exec_file_mismatch_command and
15036 set_exec_file_mismatch_command.
15037 * gdbcore.h (validate_exec_file): Declare.
15038 * infcmd.c (attach_command): Call validate_exec_file.
15039 * remote.c ( remote_target::remote_add_inferior): Likewise.
15040
15041 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15042
15043 * frame.c (find_frame_sal): Move call to get_next_frame into more
15044 inner scope.
15045 * inline-frame.c (inilne_state) <inline_state>: Update argument
15046 types.
15047 (inilne_state) <skipped_symbol>: Rename to...
15048 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15049 (skip_inline_frames): Build vector of skipped symbols and use this
15050 to reate the inline_state.
15051 (inline_skipped_symbol): Add a comment and some assertions, fetch
15052 skipped symbol from the list.
15053
15054 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15055
15056 * buildsym.c (lte_is_less_than): Delete.
15057 (buildsym_compunit::end_symtab_with_blockvector): Create local
15058 lambda function to sort line table entries, and use
15059 std::stable_sort instead of std::sort.
15060 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15061 markers when looking for a previous line.
15062
15063 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15064
15065 * dwarf2read.c (lnp_state_machine::record_line): Include
15066 end_sequence parameter in debug print out. Record the line if we
15067 are at an end_sequence marker even if it's not the start of a
15068 statement.
15069 * symmisc.c (maintenance_print_one_line_table): Print end of
15070 sequence markers with 'END' not '0'.
15071
15072 2020-01-24 Pedro Alves <palves@redhat.com>
15073
15074 PR gdb/25410
15075 * thread.c (scoped_restore_current_thread::restore): Use
15076 switch_to_inferior_no_thread.
15077 * exec.c: Include "progspace-and-thread.h".
15078 (add_target_sections, remove_target_sections):
15079 scoped_restore_current_pspace_and_thread instead of
15080 scoped_restore_current_thread.
15081 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15082 and aspace to the inferior before calling clone_program_space.
15083 Remove stale comment.
15084
15085 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15086
15087 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15088 (arm_netbsd_nat_target::fetch_registers): ...this.
15089 (arm_nbsd_nat_target::store_registers): Rename to...
15090 (arm_netbsd_nat_target::store_registers): ...this.
15091
15092 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15093
15094 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15095 register_t.
15096
15097 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15098
15099 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15100 Update comment.
15101 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15102 Likewise.
15103 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15104 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15105 the correct replacement (iterate_over_regset_sections).
15106 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15107 Update comment.
15108
15109 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15110
15111 PR gdb/23718
15112 * gdb/python/python.c (execute_gdb_command): Call
15113 async_enable_stdin in catch block.
15114
15115 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15116
15117 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15118 SWITCH_THRU_ALL_UIS.
15119
15120 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15121
15122 PR tui/9765
15123 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15124 comment, add extra parameter, and update to store previous symbol
15125 when appropriate.
15126 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15127 add extra parameter.
15128 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15129 remove unneeded parameter, add try/catch around gdb_print_insn,
15130 rewrite to add items to asm_lines vector.
15131 (tui_find_backward_disassembly_start_address): New function.
15132 (tui_find_disassembly_address): Updated throughout.
15133 (tui_disasm_window::set_contents): Update for changes to
15134 tui_disassemble.
15135 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15136 number of lines to scroll.
15137
15138 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15139
15140 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15141 (SECT_OFF_DATA): Likewise.
15142 (SECT_OFF_RODATA): Likewise.
15143 (SECT_OFF_TEXT): Likewise.
15144 (SECT_OFF_BSS): Likewise.
15145 (struct objfile) <text_section_offset, data_section_offset>: New
15146 methods.
15147 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15148 objfile::text_section_offset.
15149 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15150 * coffread.c (coff_symtab_read): Likewise.
15151 (enter_linenos): Likewise.
15152 (process_coff_symbol): Likewise.
15153 * ctfread.c (get_objfile_text_range): Likewise.
15154 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15155 Use objfile::data_section_offset.
15156 * dwarf2-frame.c (execute_cfa_program): Use
15157 objfile::text_section_offset.
15158 (dwarf2_frame_find_fde): Likewise.
15159 * dwarf2read.c (create_addrmap_from_index): Likewise.
15160 (create_addrmap_from_aranges): Likewise.
15161 (dw2_find_pc_sect_compunit_symtab): Likewise.
15162 (process_psymtab_comp_unit_reader): Likewise.
15163 (add_partial_symbol): Likewise.
15164 (add_partial_subprogram): Likewise.
15165 (process_full_comp_unit): Likewise.
15166 (read_file_scope): Likewise.
15167 (read_func_scope): Likewise.
15168 (read_lexical_block_scope): Likewise.
15169 (read_call_site_scope): Likewise.
15170 (dwarf2_rnglists_process): Likewise.
15171 (dwarf2_ranges_process): Likewise.
15172 (dwarf2_ranges_read): Likewise.
15173 (dwarf_decode_lines_1): Likewise.
15174 (new_symbol): Likewise.
15175 (dwarf2_fetch_die_loc_sect_off): Likewise.
15176 (dwarf2_per_cu_text_offset): Likewise.
15177 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15178 * hppa-tdep.c (read_unwind_info): Likewise.
15179 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15180 * psympriv.h (struct partial_symtab): Likewise.
15181 * psymtab.c (find_pc_sect_psymtab): Likewise.
15182 * solib-svr4.c (enable_break): Likewise.
15183 * stap-probe.c (relocate_address): Use
15184 objfile::data_section_offset.
15185 * xcoffread.c (enter_line_range): Use
15186 objfile::text_section_offset.
15187 (read_xcoff_symtab): Likewise.
15188
15189 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15190
15191 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15192 declaration to narrower scopes.
15193
15194 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15195
15196 * darwin-nat.h (struct darwin_exception_msg, enum
15197 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15198 Move up.
15199 (class darwin_nat_target) <wait_1, check_new_threads,
15200 decode_exception_message, decode_message, stop_inferior,
15201 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15202 * darwin-nat.c (darwin_check_new_threads): Rename to...
15203 (darwin_nat_target::check_new_threads): ... this.
15204 (darwin_suspend_inferior_it): Remove.
15205 (darwin_decode_exception_message): Rename to...
15206 (darwin_nat_target::decode_exception_message): ... this.
15207 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15208 (darwin_decode_message): Rename to...
15209 (darwin_nat_target::decode_message): ... this.
15210 (cancel_breakpoint): Rename to...
15211 (darwin_nat_target::cancel_breakpoint): ... this.
15212 (darwin_wait): Rename to...
15213 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15214 instead of iterate_over_inferiors.
15215 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15216 (darwin_stop_inferior): Rename to...
15217 (darwin_nat_target::stop_inferior): ... this.
15218 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15219 (darwin_init_thread_list): Rename to...
15220 (darwin_nat_target::init_thread_list): ... this.
15221 (darwin_ptrace_him): Rename to...
15222 (darwin_nat_target::ptrace_him): ... this.
15223 (darwin_nat_target::create_inferior): Pass lambda function to
15224 fork_inferior.
15225 (darwin_nat_target::detach): Call stop_inferior instead of
15226 darwin_stop_inferior.
15227 * fork-inferior.h (fork_inferior): Change init_trace_fun
15228 parameter to gdb::function_view.
15229 * fork-inferior.c (fork_inferior): Likewise.
15230
15231 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15232
15233 * i386-cygwin-tdep.c (core_process_module_section): Update.
15234 * windows-nat.c (struct lm_info_windows): Add text_offset.
15235 (windows_xfer_shared_libraries): Update.
15236 * windows-tdep.c (windows_xfer_shared_library):
15237 Add text_offset_cached argument.
15238 * windows-tdep.h (windows_xfer_shared_library): Update.
15239
15240 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15241
15242 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15243
15244 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15245
15246 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15247 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15248 replace with range-based for.
15249 (gdbsim_interrupt_inferior): Remove.
15250 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15251 with a range-based for. Inline code from
15252 gdbsim_interrupt_inferior.
15253
15254 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15255
15256 * infrun.c (proceed): Fix indentation.
15257
15258 2020-01-21 Tom Tromey <tromey@adacore.com>
15259
15260 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15261 * python/python.c (python_extension_ops): Update.
15262 (gdbpy_colorize): New function.
15263 * python/lib/gdb/__init__.py (colorize): New function.
15264 * extension.h (ext_lang_colorize): Declare.
15265 * extension.c (ext_lang_colorize): New function.
15266 * extension-priv.h (struct extension_language_ops) <colorize>: New
15267 member.
15268 * cli/cli-style.c (_initialize_cli_style): Update help text.
15269
15270 2020-01-21 Luis Machado <luis.machado@linaro.org>
15271
15272 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15273 <cond>: Change type to bool.
15274 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15275 (aarch64_displaced_step_cb): Likewise.
15276 (aarch64_displaced_step_tb): Likewise.
15277
15278 2020-01-21 Luis Machado <luis.machado@linaro.org>
15279
15280 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15281 output.
15282
15283 2020-01-21 Luis Machado <luis.machado@linaro.org>
15284
15285 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15286 <pc_adjust>: Adjust the documentation.
15287 (aarch64_displaced_step_fixup): Check if PC really moved before
15288 adjusting it.
15289
15290 2020-01-19 Tom Tromey <tom@tromey.com>
15291
15292 * disasm.c (~gdb_disassembler): New destructor.
15293 (gdb_buffered_insn_length): Call disassemble_free_target.
15294 * disasm.h (class gdb_disassembler): Declare destructor. Use
15295 DISABLE_COPY_AND_ASSIGN.
15296
15297 2020-01-19 Tom Tromey <tom@tromey.com>
15298
15299 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15300 (die_reader_func_ftype): Remove.
15301 (cutu_reader): New class.
15302 (dw2_get_file_names_reader): Remove "data" parameter.
15303 (dw2_get_file_names): Use cutu_reader.
15304 (create_debug_type_hash_table): Update.
15305 (read_cutu_die_from_dwo): Update comment.
15306 (lookup_dwo_unit): Add dwo_name parameter.
15307 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15308 die_reader_func_ftype and data parameters.
15309 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15310 Remove die_reader_func_ftype and data parameters.
15311 (~cutu_reader): New; from init_cutu_and_read_dies.
15312 (cutu_reader::cutu_reader): Rename from
15313 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15314 and data parameters.
15315 (init_cutu_and_read_dies_simple): Remove.
15316 (struct process_psymtab_comp_unit_data): Remove.
15317 (process_psymtab_comp_unit_reader): Remove data parameter; add
15318 want_partial_unit and pretend_language parameters.
15319 (process_psymtab_comp_unit): Use cutu_reader.
15320 (build_type_psymtabs_reader): Remove data parameter.
15321 (build_type_psymtabs_1): Use cutu_reader.
15322 (process_skeletonless_type_unit): Likewise.
15323 (load_partial_comp_unit_reader): Remove.
15324 (load_partial_comp_unit): Use cutu_reader.
15325 (load_full_comp_unit_reader): Remove.
15326 (load_full_comp_unit): Use cutu_reader.
15327 (struct create_dwo_cu_data): Remove.
15328 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15329 dwo_unit parameters.
15330 (create_cus_hash_table): Use cutu_reader.
15331 (struct dwarf2_read_addr_index_data): Remove.
15332 (dwarf2_read_addr_index_reader): Remove.
15333 (dwarf2_read_addr_index): Use cutu_reader.
15334 (read_signatured_type_reader): Remove.
15335 (read_signatured_type): Use cutu_reader.
15336
15337 2020-01-19 Tom Tromey <tom@tromey.com>
15338
15339 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15340 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15341 (tui_wrefresh): Declare.
15342 * tui/tui-wingeneral.c (suppress_output): New global.
15343 (tui_suppress_output, ~tui_suppress_output): New constructor and
15344 destructor.
15345 (tui_wrefresh): New function.
15346 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15347 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15348 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15349 method.
15350 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15351 tui_wrefresh.
15352 (tui_data_window::no_refresh): New method.
15353 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15354 (tui_reg_command): Use tui_suppress_output
15355 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15356 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15357 method.
15358 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15359
15360 2020-01-19 Tom Tromey <tom@tromey.com>
15361
15362 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15363 Handle case where symtab is null.
15364
15365 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15366
15367 * linux-fork.c (one_fork_p): Simplify.
15368
15369 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15370
15371 * top.c (struct qt_args): Remove.
15372 (kill_or_detach): Change return type to void, replace `void *`
15373 parameter with a proper one.
15374 (print_inferior_quit_action): Likewise.
15375 (quit_confirm): Use range-based for loop to iterate over inferiors.
15376 (quit_force): Likewise.
15377
15378 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15379
15380 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15381 `void *` parameter with proper parameters.
15382 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15383 (print_one_inferior): Change return type to void, replace `void *`
15384 parameter with proper parameters.
15385 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15386 inferiors.
15387 (get_other_inferior): Remove.
15388 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15389 inferiors.
15390
15391 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15392
15393 * mi/mi-interp.c (report_initial_inferior): Remove.
15394 (mi_interp::init): Use range-based for to iterate over inferiors.
15395
15396 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15397
15398 * python/py-inferior.c (build_inferior_list): Remove.
15399 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15400
15401 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15402
15403 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15404 (btrace_stitch_trace): Likewise.
15405 * charset.c (intermediate_encoding): Likewise (vaild).
15406 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15407 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15408 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15409
15410 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15411
15412 * windows-tdep.c (windows_get_tlb_type):
15413 Add rtl_user_process_parameters type.
15414
15415 2020-01-16 Pedro Alves <palves@redhat.com>
15416 Norbert Lange <nolange79@gmail.com>
15417
15418 PR build/24805
15419 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15420 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15421 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15422 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15423 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15424 (ps_plog): Redeclare exported functions with default visibility.
15425
15426 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15427
15428 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15429 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15430
15431 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15432
15433 * infcmd.c (post_create_inferior): Use get_thread_regcache
15434 instead of get_current_regcache.
15435
15436 2020-01-14 Tom Tromey <tom@tromey.com>
15437
15438 PR symtab/12535:
15439 * python/python.c (gdbpy_decode_line): Treat empty string the same
15440 as no argument.
15441
15442 2020-01-14 Tom Tromey <tom@tromey.com>
15443
15444 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15445
15446 2020-01-14 Tom Tromey <tom@tromey.com>
15447
15448 * nat/linux-btrace.c: Don't include <config.h>.
15449 * nat/linux-ptrace.c: Don't include <config.h>.
15450 * nat/x86-linux-dregs.c: Don't include <config.h>.
15451
15452 2020-01-14 Tom Tromey <tom@tromey.com>
15453
15454 * configure: Rebuild.
15455 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15456
15457 2020-01-14 Tom Tromey <tom@tromey.com>
15458
15459 * nat/x86-linux-dregs.c: Include configh.h.
15460 * nat/linux-ptrace.c: Include configh.h.
15461 * nat/linux-btrace.c: Include configh.h.
15462 * defs.h: Include config.h, bfd.h.
15463 * configure.ac: Don't source common.host.
15464 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15465 * configure: Rebuild.
15466 * acinclude.m4: Update path.
15467 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15468 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15469 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15470 (CLIBS): Add LIBSUPPORT.
15471 (CDEPS): Likewise.
15472 (COMMON_SFILES): Remove gdbsupport files.
15473 (HFILES_NO_SRCDIR): Likewise.
15474 (stamp-version): Update path to create-version.sh.
15475 (ALLDEPFILES): Remove gdbsupport files.
15476
15477 2020-01-14 Tom Tromey <tom@tromey.com>
15478
15479 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15480 USE_WIN32API when needed.
15481 * configure.ac (USE_WIN32API): Don't define.
15482 (WIN32LIBS): Use WIN32APILIBS.
15483 * configure: Rebuild.
15484
15485 2020-01-14 Tom Tromey <tom@tromey.com>
15486
15487 * configure: Rebuild.
15488 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15489
15490 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15491
15492 * skip.c (skip_function_command): Make skip w/o arguments use the
15493 name of the inlined function if pc is inside any inlined function.
15494
15495 2020-01-14 Luis Machado <luis.machado@linaro.org>
15496
15497 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15498 * infrun.c (resume_1): Likewise.
15499 (handle_inferior_event): Remove stale comment.
15500 * linux-nat.c (linux_nat_target::resume): Update comments.
15501 (save_stop_reason): Likewise.
15502 (linux_nat_filter_event): Likewise.
15503 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15504
15505 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15506
15507 * elfread.c (record_minimal_symbol): Set section index to 0 for
15508 non-allocatable sections.
15509
15510
15511 2020-01-13 Ali Tamur <tamur@google.com>
15512
15513 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15514 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15515 to gdb::optional. Update comments.
15516 (dwo_file): Update comments.
15517 (read_attribute): Update API to take an additional out parameter,
15518 need_reprocess. This is used to mark attributes that need other
15519 attributes (e.g. str_offsets_base) for correct computation which may not
15520 have been read yet.
15521 (read_attribute_reprocess): New function declaration.
15522 (read_addr_index): Likewise.
15523 (read_dwo_str_index): Likewise.
15524 (read_stub_str_index): Likewise.
15525 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15526 (lookup_addr_base): New function definition.
15527 (lookup_ranges_base): Likewise.
15528 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15529 lookup_ranges_base.
15530 (init_cutu_and_read_dies): Update comments.
15531 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15532 unit. This is used to inherit parent's str_offsets_base and addr_base.
15533 Update comments.
15534 (init_cutu_and_read_dies_simple): Reflect API changes.
15535 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15536 (create_cus_hash_table): Change API to take parent compile unit.
15537 Reflect API changes.
15538 (open_and_init_dwo_file): Reflect API changes.
15539 (dwarf2_get_pc_bounds): Update comments.
15540 (dwarf2_record_block_ranges): Likewise.
15541 (read_full_die_1): Change implementation to reprocess attributes that
15542 need str_offsets_base and addr_base.
15543 (partial_die_info::read): Likewise.
15544 (read_attribute_reprocess): New function definition.
15545 (read_attribute_value): Change API to take an additional out parameter,
15546 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15547 when a non-dwo compile unit has index based attributes.
15548 (read_attribute): Reflect API changes.
15549 (read_addr_index_1): Reflect API changes. Update comments.
15550 (dwarf2_read_addr_index_data): Reflect API changes.
15551 (dwarf2_read_addr_index): Likewise.
15552 (read_str_index): Change API and implementation. This becomes a helper
15553 to be used by the new string index related methods. Update error
15554 message and comments.
15555 (read_dwo_str_index): New function definition.
15556 (read_stub_str_index): Likewise.
15557 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15558 * symfile.h (dwarf2_debug_sections): Likewise.
15559 * xcoffread.c (dwarf2_debug_sections): Likewise.
15560
15561 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15562
15563 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15564 core_reg_sect type to gdb_byte *.
15565 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15566 * cris-tdep.c (fetch_core_registers): Likewise.
15567 * corelow.c (core_target::get_core_register_section): Change
15568 type of `contents` to gdb::byte_vector.
15569
15570 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15571
15572 * tui/tui-wingeneral.c (box_win): Position the title in the center
15573 of the border.
15574
15575 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15576
15577 * corelow.c (core_target::get_core_register_section): Use
15578 std::vector instead of alloca.
15579
15580 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15581
15582 * warning.m4: Add -Wmissing-declarations to build_warnings.
15583 * configure: Re-generate.
15584
15585 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15586
15587 * python/python.c (init__gdb_module): Add declaration.
15588
15589 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15590
15591 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15592 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15593 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15594 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15595 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15596 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15597 * ada-exp.y (_initialize_ada_exp): Add declaration.
15598 * ada-lang.c (_initialize_ada_language): Add declaration.
15599 * ada-tasks.c (_initialize_tasks): Add declaration.
15600 * agent.c (_initialize_agent): Add declaration.
15601 * aix-thread.c (_initialize_aix_thread): Add declaration.
15602 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15603 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15604 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15605 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15606 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15607 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15608 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15609 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15610 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15611 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15612 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15613 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15614 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15615 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15616 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15617 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15618 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15619 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15620 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15621 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15622 * annotate.c (_initialize_annotate): Add declaration.
15623 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15624 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15625 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15626 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15627 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15628 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15629 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15630 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15631 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15632 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15633 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15634 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15635 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15636 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15637 * auto-load.c (_initialize_auto_load): Add declaration.
15638 * auxv.c (_initialize_auxv): Add declaration.
15639 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15640 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15641 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15642 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15643 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15644 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15645 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15646 * breakpoint.c (_initialize_breakpoint): Add declaration.
15647 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15648 * btrace.c (_initialize_btrace): Add declaration.
15649 * charset.c (_initialize_charset): Add declaration.
15650 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15651 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15652 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15653 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15654 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15655 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15656 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15657 * coffread.c (_initialize_coffread): Add declaration.
15658 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15659 * compile/compile.c (_initialize_compile): Add declaration.
15660 * complaints.c (_initialize_complaints): Add declaration.
15661 * completer.c (_initialize_completer): Add declaration.
15662 * copying.c (_initialize_copying): Add declaration.
15663 * corefile.c (_initialize_core): Add declaration.
15664 * corelow.c (_initialize_corelow): Add declaration.
15665 * cp-abi.c (_initialize_cp_abi): Add declaration.
15666 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15667 * cp-support.c (_initialize_cp_support): Add declaration.
15668 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15669 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15670 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15671 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15672 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15673 * ctfread.c (_initialize_ctfread): Add declaration.
15674 * d-lang.c (_initialize_d_language): Add declaration.
15675 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15676 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15677 * dbxread.c (_initialize_dbxread): Add declaration.
15678 * dcache.c (_initialize_dcache): Add declaration.
15679 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15680 * disasm.c (_initialize_disasm): Add declaration.
15681 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15682 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15683 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15684 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15685 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15686 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15687 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15688 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15689 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15690 * elfread.c (_initialize_elfread): Add declaration.
15691 * exec.c (_initialize_exec): Add declaration.
15692 * extension.c (_initialize_extension): Add declaration.
15693 * f-lang.c (_initialize_f_language): Add declaration.
15694 * f-valprint.c (_initialize_f_valprint): Add declaration.
15695 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15696 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15697 * filesystem.c (_initialize_filesystem): Add declaration.
15698 * findcmd.c (_initialize_mem_search): Add declaration.
15699 * findvar.c (_initialize_findvar): Add declaration.
15700 * fork-child.c (_initialize_fork_child): Add declaration.
15701 * frame-base.c (_initialize_frame_base): Add declaration.
15702 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15703 * frame.c (_initialize_frame): Add declaration.
15704 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15705 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15706 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15707 * gcore.c (_initialize_gcore): Add declaration.
15708 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15709 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15710 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15711 * gdbarch.c (_initialize_gdbarch): Add declaration.
15712 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15713 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15714 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15715 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15716 * go-lang.c (_initialize_go_language): Add declaration.
15717 * go32-nat.c (_initialize_go32_nat): Add declaration.
15718 * guile/guile.c (_initialize_guile): Add declaration.
15719 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15720 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15721 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15722 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15723 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15724 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15725 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15726 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15727 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15728 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15729 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15730 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15731 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15732 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15733 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15734 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15735 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15736 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15737 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15738 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15739 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15740 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15741 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15742 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15743 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15744 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15745 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15746 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15747 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15748 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15749 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15750 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15751 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15752 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15753 * infcall.c (_initialize_infcall): Add declaration.
15754 * infcmd.c (_initialize_infcmd): Add declaration.
15755 * inflow.c (_initialize_inflow): Add declaration.
15756 * infrun.c (_initialize_infrun): Add declaration.
15757 * interps.c (_initialize_interpreter): Add declaration.
15758 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15759 * jit.c (_initialize_jit): Add declaration.
15760 * language.c (_initialize_language): Add declaration.
15761 * linux-fork.c (_initialize_linux_fork): Add declaration.
15762 * linux-nat.c (_initialize_linux_nat): Add declaration.
15763 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15764 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15765 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15766 * m2-lang.c (_initialize_m2_language): Add declaration.
15767 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15768 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15769 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15770 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15771 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15772 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15773 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15774 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15775 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15776 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15777 * machoread.c (_initialize_machoread): Add declaration.
15778 * macrocmd.c (_initialize_macrocmd): Add declaration.
15779 * macroscope.c (_initialize_macroscope): Add declaration.
15780 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15781 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15782 * maint.c (_initialize_maint_cmds): Add declaration.
15783 * mdebugread.c (_initialize_mdebugread): Add declaration.
15784 * memattr.c (_initialize_mem): Add declaration.
15785 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15786 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15787 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15788 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15789 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15790 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15791 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15792 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15793 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15794 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15795 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15796 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15797 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15798 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15799 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15800 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15801 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15802 * mipsread.c (_initialize_mipsread): Add declaration.
15803 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15804 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15805 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15806 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15807 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15808 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15809 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15810 * nto-procfs.c (_initialize_procfs): Add declaration.
15811 * objc-lang.c (_initialize_objc_language): Add declaration.
15812 * observable.c (_initialize_observer): Add declaration.
15813 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15814 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15815 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15816 * osabi.c (_initialize_gdb_osabi): Add declaration.
15817 * osdata.c (_initialize_osdata): Add declaration.
15818 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15819 * parse.c (_initialize_parse): Add declaration.
15820 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15821 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15822 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15823 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15824 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15825 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15826 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15827 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15828 * printcmd.c (_initialize_printcmd): Add declaration.
15829 * probe.c (_initialize_probe): Add declaration.
15830 * proc-api.c (_initialize_proc_api): Add declaration.
15831 * proc-events.c (_initialize_proc_events): Add declaration.
15832 * proc-service.c (_initialize_proc_service): Add declaration.
15833 * procfs.c (_initialize_procfs): Add declaration.
15834 * producer.c (_initialize_producer): Add declaration.
15835 * psymtab.c (_initialize_psymtab): Add declaration.
15836 * python/python.c (_initialize_python): Add declaration.
15837 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15838 * record-btrace.c (_initialize_record_btrace): Add declaration.
15839 * record-full.c (_initialize_record_full): Add declaration.
15840 * record.c (_initialize_record): Add declaration.
15841 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15842 * regcache.c (_initialize_regcache): Add declaration.
15843 * reggroups.c (_initialize_reggroup): Add declaration.
15844 * remote-notif.c (_initialize_notif): Add declaration.
15845 * remote-sim.c (_initialize_remote_sim): Add declaration.
15846 * remote.c (_initialize_remote): Add declaration.
15847 * reverse.c (_initialize_reverse): Add declaration.
15848 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15849 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15850 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15851 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15852 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15853 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15854 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15855 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15856 Add declaration.
15857 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15858 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15859 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15860 * rust-exp.y (_initialize_rust_exp): Add declaration.
15861 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15862 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15863 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15864 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15865 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15866 * score-tdep.c (_initialize_score_tdep): Add declaration.
15867 * ser-go32.c (_initialize_ser_dos): Add declaration.
15868 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15869 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15870 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15871 * ser-uds.c (_initialize_ser_socket): Add declaration.
15872 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15873 * serial.c (_initialize_serial): Add declaration.
15874 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15875 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15876 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15877 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15878 * skip.c (_initialize_step_skip): Add declaration.
15879 * sol-thread.c (_initialize_sol_thread): Add declaration.
15880 * solib-aix.c (_initialize_solib_aix): Add declaration.
15881 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15882 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15883 * solib-frv.c (_initialize_frv_solib): Add declaration.
15884 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15885 * solib-target.c (_initialize_solib_target): Add declaration.
15886 * solib.c (_initialize_solib): Add declaration.
15887 * source-cache.c (_initialize_source_cache): Add declaration.
15888 * source.c (_initialize_source): Add declaration.
15889 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15890 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15891 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15892 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15893 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15894 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15895 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15896 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15897 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15898 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15899 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15900 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15901 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15902 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15903 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15904 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15905 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15906 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15907 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15908 * stabsread.c (_initialize_stabsread): Add declaration.
15909 * stack.c (_initialize_stack): Add declaration.
15910 * stap-probe.c (_initialize_stap_probe): Add declaration.
15911 * std-regs.c (_initialize_frame_reg): Add declaration.
15912 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15913 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15914 * symfile.c (_initialize_symfile): Add declaration.
15915 * symmisc.c (_initialize_symmisc): Add declaration.
15916 * symtab.c (_initialize_symtab): Add declaration.
15917 * target.c (_initialize_target): Add declaration.
15918 * target-connection.c (_initialize_target_connection): Add
15919 declaration.
15920 * target-dcache.c (_initialize_target_dcache): Add declaration.
15921 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15922 * thread.c (_initialize_thread): Add declaration.
15923 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15924 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15925 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15926 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15927 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15928 * tracectf.c (_initialize_ctf): Add declaration.
15929 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15930 * tracefile.c (_initialize_tracefile): Add declaration.
15931 * tracepoint.c (_initialize_tracepoint): Add declaration.
15932 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15933 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15934 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15935 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15936 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15937 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15938 * tui/tui.c (_initialize_tui): Add declaration.
15939 * typeprint.c (_initialize_typeprint): Add declaration.
15940 * ui-style.c (_initialize_ui_style): Add declaration.
15941 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15942 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15943 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15944 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15945 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15946 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15947 * unittests/filtered_iterator-selftests.c
15948 (_initialize_filtered_iterator_selftests): Add declaration.
15949 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15950 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15951 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15952 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15953 * unittests/main-thread-selftests.c
15954 (_initialize_main_thread_selftests): Add declaration.
15955 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15956 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15957 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15958 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15959 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15960 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15961 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15962 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15963 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15964 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15965 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15966 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15967 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15968 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15969 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15970 declaration.
15971 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15972 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15973 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15974 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15975 * user-regs.c (_initialize_user_regs): Add declaration.
15976 * utils.c (_initialize_utils): Add declaration.
15977 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15978 * valops.c (_initialize_valops): Add declaration.
15979 * valprint.c (_initialize_valprint): Add declaration.
15980 * value.c (_initialize_values): Add declaration.
15981 * varobj.c (_initialize_varobj): Add declaration.
15982 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15983 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15984 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15985 * windows-nat.c (_initialize_windows_nat): Add declaration.
15986 (_initialize_check_for_gdb_ini): Add declaration.
15987 (_initialize_loadable): Add declaration.
15988 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15989 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15990 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15991 * xcoffread.c (_initialize_xcoffread): Add declaration.
15992 * xml-support.c (_initialize_xml_support): Add declaration.
15993 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15994 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15995 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15996 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15997
15998 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15999
16000 * regformats/regdat.sh: Generate declaration for init function.
16001
16002 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16003
16004 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16005 up.
16006 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16007 close_one_inferior>: New methods.
16008 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16009 pass down target to find_inferior_pid.
16010 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16011 Pass down target to find_inferior_ptid.
16012 (gdbsim_target::create_inferior): Pass down target to
16013 add_thread_silent.
16014 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16015 target down to find_inferior_ptid and switch_to_thread.
16016 (gdbsim_target::close): Update to call close_one_inferior.
16017 (struct resume_data): Remove.
16018 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16019 directly, rather than through a void pointer.
16020 (gdbsim_target::resume): Update to call resume_one_inferior.
16021
16022 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16023
16024 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16025
16026 2020-01-12 Pedro Alves <palves@redhat.com>
16027
16028 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16029 directly for the current inferior instead of
16030 discard_all_inferiors.
16031 (discard_all_inferiors): Delete.
16032
16033 2020-01-11 Tom Tromey <tom@tromey.com>
16034
16035 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16036 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16037 deprecated_safe_get_selected_frame.
16038
16039 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16040
16041 * inferior.c (print_inferior): Switch inferior before printing it.
16042
16043 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16044 Pedro Alves <palves@redhat.com>
16045
16046 * progspace-and-thread.c (switch_to_program_space_and_thread):
16047 Assert there's an inferior for PSPACE. Use
16048 switch_to_inferior_no_thread to switch the inferior too.
16049 * progspace.c (program_space::~program_space): Call
16050 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16051 (program_space::free_all_objfiles): Don't call clear_symtab_users
16052 here.
16053 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16054
16055 2020-01-10 Pedro Alves <palves@redhat.com>
16056
16057 * NEWS: Mention multi-target debugging, "info connections", and
16058 "add-inferior -no-connection".
16059
16060 2020-01-10 Pedro Alves <palves@redhat.com>
16061
16062 * infrun.c: Include "target-connection.h".
16063 (check_multi_target_resumption): New.
16064 (proceed): Call it.
16065 * target-connection.c (make_target_connection_string): Make
16066 extern.
16067 * target-connection.h (make_target_connection_string): Declare.
16068
16069 2020-01-10 Pedro Alves <palves@redhat.com>
16070
16071 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16072 * inferior.c (uiout_field_connection): New function.
16073 (print_inferior): Add new "connection-id" column.
16074 (add_inferior_command): Show connection number/string of added
16075 inferior.
16076 * process-stratum-target.h
16077 (process_stratum_target::connection_string): New virtual method.
16078 (process_stratum_target::connection_number): New field.
16079 * remote.c (remote_target::connection_string): New override.
16080 * target-connection.c: New file.
16081 * target-connection.h: New file.
16082 * target.c (decref_target): Remove process_stratum targets from
16083 the connection list.
16084 (target_stack::push): Add process_stratum targets to the
16085 connection list.
16086
16087 2020-01-10 Pedro Alves <palves@redhat.com>
16088
16089 Revert:
16090 2016-04-12 Pedro Alves <palves@redhat.com>
16091 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16092 Remove references to name.
16093 * serial.h (struct serial) <name>: Delete.
16094
16095 2020-01-10 Pedro Alves <palves@redhat.com>
16096
16097 * gdbarch-selftests.c (register_to_value_test): Remove "target
16098 already pushed" check.
16099
16100 2020-01-10 Pedro Alves <palves@redhat.com>
16101 John Baldwin <jhb@FreeBSD.org>
16102
16103 * aarch64-linux-nat.c
16104 (aarch64_linux_nat_target::thread_architecture): Adjust.
16105 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16106 (task_command_1): Likewise.
16107 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16108 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16109 (aix_thread_target::store_registers)
16110 (aix_thread_target::thread_alive): Adjust.
16111 * amd64-fbsd-tdep.c: Include "inferior.h".
16112 (amd64fbsd_get_thread_local_address): Pass down target.
16113 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16114 thread's gdbarch instead of target_gdbarch.
16115 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16116 get_last_target_status.
16117 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16118 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16119 inferiors.
16120 (update_inserted_breakpoint_locations): Skip if inferiors with no
16121 execution.
16122 (update_global_location_list): When handling moribund locations,
16123 find representative inferior for location's pspace, and use thread
16124 count of its process_stratum target.
16125 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16126 * bsd-uthread.c (bsd_uthread_target::wait): Use
16127 as_process_stratum_target and adjust thread_change_ptid and
16128 add_thread calls.
16129 (bsd_uthread_target::update_thread_list): Use
16130 as_process_stratum_target and adjust find_thread_ptid,
16131 thread_change_ptid and add_thread calls.
16132 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16133 find_thread_ptid call.
16134 * corelow.c (add_to_thread_list): Adjust add_thread call.
16135 (core_target_open): Adjust add_thread_silent and thread_count
16136 calls.
16137 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16138 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16139 * event-top.c (async_disconnect): Pop targets from all inferiors.
16140 * exec.c (add_target_sections): Push exec target on all inferiors
16141 sharing the program space.
16142 (remove_target_sections): Remove the exec target from all
16143 inferiors sharing the program space.
16144 (exec_on_vfork): New.
16145 * exec.h (exec_on_vfork): Declare.
16146 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16147 Pass it down.
16148 (fbsd_nat_target::update_thread_list): Adjust.
16149 (fbsd_nat_target::resume): Adjust.
16150 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16151 down.
16152 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16153 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16154 get_thread_arch_regcache call.
16155 * fork-child.c (gdb_startup_inferior): Pass target down to
16156 startup_inferior and set_executing.
16157 * gdbthread.h (struct process_stratum_target): Forward declare.
16158 (add_thread, add_thread_silent, add_thread_with_info)
16159 (in_thread_list): Add process_stratum_target parameter.
16160 (find_thread_ptid(inferior*, ptid_t)): New overload.
16161 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16162 parameter.
16163 (all_threads()): Delete overload.
16164 (all_threads, all_non_exited_threads): Add process_stratum_target
16165 parameter.
16166 (all_threads_safe): Use brace initialization.
16167 (thread_count): Add process_stratum_target parameter.
16168 (set_resumed, set_running, set_stop_requested, set_executing)
16169 (threads_are_executing, finish_thread_state): Add
16170 process_stratum_target parameter.
16171 (switch_to_thread): Use is_current_thread.
16172 * i386-fbsd-tdep.c: Include "inferior.h".
16173 (i386fbsd_get_thread_local_address): Pass down target.
16174 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16175 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16176 have_inferiors check.
16177 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16178 (inf_ptrace_target::attach): Adjust.
16179 * infcall.c (run_inferior_call): Adjust.
16180 * infcmd.c (run_command_1): Pass target to
16181 scoped_finish_thread_state.
16182 (proceed_thread_callback): Skip inferiors with no execution.
16183 (continue_command): Rename 'all_threads' local to avoid hiding
16184 'all_threads' function. Adjust get_last_target_status call.
16185 (prepare_one_step): Adjust set_running call.
16186 (signal_command): Use user_visible_resume_target. Compare thread
16187 pointers instead of inferior_ptid.
16188 (info_program_command): Adjust to pass down target.
16189 (attach_command): Mark target's 'thread_executing' flag.
16190 (stop_current_target_threads_ns): New, factored out from ...
16191 (interrupt_target_1): ... this. Switch inferior before making
16192 target calls.
16193 * inferior-iter.h
16194 (struct all_inferiors_iterator, struct all_inferiors_range)
16195 (struct all_inferiors_safe_range)
16196 (struct all_non_exited_inferiors_range): Filter on
16197 process_stratum_target too. Remove explicit.
16198 * inferior.c (inferior::inferior): Push dummy target on target
16199 stack.
16200 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16201 Add process_stratum_target parameter, and pass it down.
16202 (have_live_inferiors): Adjust.
16203 (switch_to_inferior_and_push_target): New.
16204 (add_inferior_command, clone_inferior_command): Handle
16205 "-no-connection" parameter. Use
16206 switch_to_inferior_and_push_target.
16207 (_initialize_inferior): Mention "-no-connection" option in
16208 the help of "add-inferior" and "clone-inferior" commands.
16209 * inferior.h: Include "process-stratum-target.h".
16210 (interrupt_target_1): Use bool.
16211 (struct inferior) <push_target, unpush_target, target_is_pushed,
16212 find_target_beneath, top_target, process_target, target_at,
16213 m_stack>: New.
16214 (discard_all_inferiors): Delete.
16215 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16216 (all_inferiors, all_non_exited_inferiors): Add
16217 process_stratum_target parameter.
16218 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16219 (target_last_proc_target): New global.
16220 (follow_fork_inferior): Push target on new inferior. Pass target
16221 to add_thread_silent. Call exec_on_vfork. Handle target's
16222 reference count.
16223 (follow_fork): Adjust get_last_target_status call. Also consider
16224 target.
16225 (follow_exec): Push target on new inferior.
16226 (struct execution_control_state) <target>: New field.
16227 (user_visible_resume_target): New.
16228 (do_target_resume): Call target_async.
16229 (resume_1): Set target's threads_executing flag. Consider resume
16230 target.
16231 (commit_resume_all_targets): New.
16232 (proceed): Also consider resume target. Skip threads of inferiors
16233 with no execution. Commit resumtion in all targets.
16234 (start_remote): Pass current inferior to wait_for_inferior.
16235 (infrun_thread_stop_requested): Consider target as well. Pass
16236 thread_info pointer to clear_inline_frame_state instead of ptid.
16237 (infrun_thread_thread_exit): Consider target as well.
16238 (random_pending_event_thread): New inferior parameter. Use it.
16239 (do_target_wait): Rename to ...
16240 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16241 down.
16242 (threads_are_resumed_pending_p, do_target_wait): New.
16243 (prepare_for_detach): Adjust calls.
16244 (wait_for_inferior): New inferior parameter. Handle it. Use
16245 do_target_wait_1 instead of do_target_wait.
16246 (fetch_inferior_event): Adjust. Switch to representative
16247 inferior. Pass target down.
16248 (set_last_target_status): Add process_stratum_target parameter.
16249 Save target in global.
16250 (get_last_target_status): Add process_stratum_target parameter and
16251 handle it.
16252 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16253 (context_switch): Check inferior_ptid == null_ptid before calling
16254 inferior_thread().
16255 (get_inferior_stop_soon): Pass down target.
16256 (wait_one): Rename to ...
16257 (poll_one_curr_target): ... this.
16258 (struct wait_one_event): New.
16259 (wait_one): New.
16260 (stop_all_threads): Adjust.
16261 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16262 event's target.
16263 (switch_back_to_stepped_thread): Also consider target.
16264 (print_stop_event): Update.
16265 (normal_stop): Update. Also consider the resume target.
16266 * infrun.h (wait_for_inferior): Remove declaration.
16267 (user_visible_resume_target): New declaration.
16268 (get_last_target_status, set_last_target_status): New
16269 process_stratum_target parameter.
16270 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16271 process_stratum_target parameter, and use it.
16272 (clear_inline_frame_state (thread_info*)): New.
16273 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16274 process_stratum_target parameter.
16275 (clear_inline_frame_state (thread_info*)): Declare.
16276 * linux-fork.c (delete_checkpoint_command): Pass target down to
16277 find_thread_ptid.
16278 (checkpoint_command): Adjust.
16279 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16280 instead of just tweaking inferior_ptid.
16281 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16282 (exit_lwp): Pass target down to find_thread_ptid.
16283 (attach_proc_task_lwp_callback): Pass target down to
16284 add_thread/set_running/set_executing.
16285 (linux_nat_target::attach): Pass target down to
16286 thread_change_ptid.
16287 (get_detach_signal): Pass target down to find_thread_ptid.
16288 Consider last target status's target.
16289 (linux_resume_one_lwp_throw, resume_lwp)
16290 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16291 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16292 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16293 (linux_nat_target::async_wait_fd): New.
16294 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16295 target down.
16296 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16297 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16298 * linux-thread-db.c (struct thread_db_info::process_target): New
16299 field.
16300 (add_thread_db_info): Save target.
16301 (get_thread_db_info): New process_stratum_target parameter. Also
16302 match target.
16303 (delete_thread_db_info): New process_stratum_target parameter.
16304 Also match target.
16305 (thread_from_lwp): Adjust to pass down target.
16306 (thread_db_notice_clone): Pass down target.
16307 (check_thread_db_callback): Pass down target.
16308 (try_thread_db_load_1): Always push the thread_db target.
16309 (try_thread_db_load, record_thread): Pass target down.
16310 (thread_db_target::detach): Pass target down. Always unpush the
16311 thread_db target.
16312 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16313 target down. Always unpush the thread_db target.
16314 (find_new_threads_callback, thread_db_find_new_threads_2)
16315 (thread_db_target::update_thread_list): Pass target down.
16316 (thread_db_target::pid_to_str): Pass current inferior down.
16317 (thread_db_target::get_thread_local_address): Pass target down.
16318 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16319 target down.
16320 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16321 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16322 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16323 (procfs_init_inferior): Rename to ...
16324 (procfs_target::procfs_init_inferior): ... this and adjust.
16325 (procfs_target::create_inferior, procfs_notice_thread)
16326 (procfs_do_thread_registers): Adjust.
16327 * ppc-fbsd-tdep.c: Include "inferior.h".
16328 (ppcfbsd_get_thread_local_address): Pass down target.
16329 * proc-service.c (ps_xfer_memory): Switch current inferior and
16330 program space as well.
16331 (get_ps_regcache): Pass target down.
16332 * process-stratum-target.c
16333 (process_stratum_target::thread_address_space)
16334 (process_stratum_target::thread_architecture): Pass target down.
16335 * process-stratum-target.h
16336 (process_stratum_target::threads_executing): New field.
16337 (as_process_stratum_target): New.
16338 * ravenscar-thread.c
16339 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16340 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16341 down.
16342 * record-btrace.c (record_btrace_target::info_record): Adjust.
16343 (record_btrace_target::record_method)
16344 (record_btrace_target::record_is_replaying)
16345 (record_btrace_target::fetch_registers)
16346 (get_thread_current_frame_id, record_btrace_target::resume)
16347 (record_btrace_target::wait, record_btrace_target::stop): Pass
16348 target down.
16349 * record-full.c (record_full_wait_1): Switch to event thread.
16350 Pass target down.
16351 * regcache.c (regcache::regcache)
16352 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16353 process_stratum_target parameter and handle it.
16354 (current_thread_target): New global.
16355 (get_thread_regcache): Add process_stratum_target parameter and
16356 handle it. Switch inferior before calling target method.
16357 (get_thread_regcache): Pass target down.
16358 (get_thread_regcache_for_ptid): Pass target down.
16359 (registers_changed_ptid): Add process_stratum_target parameter and
16360 handle it.
16361 (registers_changed_thread, registers_changed): Pass target down.
16362 (test_get_thread_arch_aspace_regcache): New.
16363 (current_regcache_test): Define a couple local test_target_ops
16364 instances and use them for testing.
16365 (readwrite_regcache): Pass process_stratum_target parameter.
16366 (cooked_read_test, cooked_write_test): Pass mock_target down.
16367 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16368 (get_thread_arch_aspace_regcache): Add process_stratum_target
16369 parameter.
16370 (regcache::target): New method.
16371 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16372 (regcache::registers_changed_ptid): Add process_stratum_target
16373 parameter.
16374 (regcache::m_target): New field.
16375 (registers_changed_ptid): Add process_stratum_target parameter.
16376 * remote.c (remote_state::supports_vCont_probed): New field.
16377 (remote_target::async_wait_fd): New method.
16378 (remote_unpush_and_throw): Add remote_target parameter.
16379 (get_current_remote_target): Adjust.
16380 (remote_target::remote_add_inferior): Push target.
16381 (remote_target::remote_add_thread)
16382 (remote_target::remote_notice_new_inferior)
16383 (get_remote_thread_info): Pass target down.
16384 (remote_target::update_thread_list): Skip threads of inferiors
16385 bound to other targets. (remote_target::close): Don't discard
16386 inferiors. (remote_target::add_current_inferior_and_thread)
16387 (remote_target::process_initial_stop_replies)
16388 (remote_target::start_remote)
16389 (remote_target::remote_serial_quit_handler): Pass down target.
16390 (remote_target::remote_unpush_target): New remote_target
16391 parameter. Unpush the target from all inferiors.
16392 (remote_target::remote_unpush_and_throw): New remote_target
16393 parameter. Pass it down.
16394 (remote_target::open_1): Check whether the current inferior has
16395 execution instead of checking whether any inferior is live. Pass
16396 target down.
16397 (remote_target::remote_detach_1): Pass down target. Use
16398 remote_unpush_target.
16399 (extended_remote_target::attach): Pass down target.
16400 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16401 (remote_target::append_resumption): Pass down target.
16402 (remote_target::append_pending_thread_resumptions)
16403 (remote_target::remote_resume_with_hc, remote_target::resume)
16404 (remote_target::commit_resume): Pass down target.
16405 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16406 (remote_target::interrupt_query)
16407 (remote_target::remove_new_fork_children)
16408 (remote_target::check_pending_events_prevent_wildcard_vcont)
16409 (remote_target::remote_parse_stop_reply)
16410 (remote_target::process_stop_reply): Pass down target.
16411 (first_remote_resumed_thread): New remote_target parameter. Pass
16412 it down.
16413 (remote_target::wait_as): Pass down target.
16414 (unpush_and_perror): New remote_target parameter. Pass it down.
16415 (remote_target::readchar, remote_target::remote_serial_write)
16416 (remote_target::getpkt_or_notif_sane_1)
16417 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16418 down target.
16419 (remote_target::mourn_inferior): Pass down target. Use
16420 remote_unpush_target.
16421 (remote_target::core_of_thread)
16422 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16423 (remote_target::pid_to_exec_file)
16424 (remote_target::thread_handle_to_thread_info): Pass down target.
16425 (remote_target::async_wait_fd): New.
16426 * riscv-fbsd-tdep.c: Include "inferior.h".
16427 (riscv_fbsd_get_thread_local_address): Pass down target.
16428 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16429 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16430 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16431 Adjust.
16432 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16433 * solib-svr4.c (enable_break): Pass down target.
16434 * spu-multiarch.c (parse_spufs_run): Pass down target.
16435 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16436 * target-delegates.c: Regenerate.
16437 * target.c (g_target_stack): Delete.
16438 (current_top_target): Return the current inferior's top target.
16439 (target_has_execution_1): Refer to the passed-in inferior's top
16440 target.
16441 (target_supports_terminal_ours): Check whether the initial
16442 inferior was already created.
16443 (decref_target): New.
16444 (target_stack::push): Incref/decref the target.
16445 (push_target, push_target, unpush_target): Adjust.
16446 (target_stack::unpush): Defref target.
16447 (target_is_pushed): Return bool. Adjust to refer to the current
16448 inferior's target stack.
16449 (dispose_inferior): Delete, and inline parts ...
16450 (target_preopen): ... here. Only dispose of the current inferior.
16451 (target_detach): Hold strong target reference while detaching.
16452 Pass target down.
16453 (target_thread_name): Add assertion.
16454 (target_resume): Pass down target.
16455 (target_ops::beneath, find_target_at): Adjust to refer to the
16456 current inferior's target stack.
16457 (get_dummy_target): New.
16458 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16459 has a thread running.
16460 (initialize_targets): Rename to ...
16461 (_initialize_target): ... this.
16462 * target.h: Include "gdbsupport/refcounted-object.h".
16463 (struct target_ops): Inherit refcounted_object.
16464 (target_ops::shortname, target_ops::longname): Make const.
16465 (target_ops::async_wait_fd): New method.
16466 (decref_target): Declare.
16467 (struct target_ops_ref_policy): New.
16468 (target_ops_ref): New typedef.
16469 (get_dummy_target): Declare function.
16470 (target_is_pushed): Return bool.
16471 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16472 (all_matching_threads_iterator::all_matching_threads_iterator):
16473 Handle filter target.
16474 * thread-iter.h (struct all_matching_threads_iterator, struct
16475 all_matching_threads_range, class all_non_exited_threads_range):
16476 Filter by target too. Remove explicit.
16477 * thread.c (threads_executing): Delete.
16478 (inferior_thread): Pass down current inferior.
16479 (clear_thread_inferior_resources): Pass down thread pointer
16480 instead of ptid_t.
16481 (add_thread_silent, add_thread_with_info, add_thread): Add
16482 process_stratum_target parameter. Use it for thread and inferior
16483 searches.
16484 (is_current_thread): New.
16485 (thread_info::deletable): Use it.
16486 (find_thread_ptid, thread_count, in_thread_list)
16487 (thread_change_ptid, set_resumed, set_running): New
16488 process_stratum_target parameter. Pass it down.
16489 (set_executing): New process_stratum_target parameter. Pass it
16490 down. Adjust reference to 'threads_executing'.
16491 (threads_are_executing): New process_stratum_target parameter.
16492 Adjust reference to 'threads_executing'.
16493 (set_stop_requested, finish_thread_state): New
16494 process_stratum_target parameter. Pass it down.
16495 (switch_to_thread): Also match inferior.
16496 (switch_to_thread): New process_stratum_target parameter. Pass it
16497 down.
16498 (update_threads_executing): Reimplement.
16499 * top.c (quit_force): Pop targets from all inferior.
16500 (gdb_init): Don't call initialize_targets.
16501 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16502 Declare.
16503 (windows_add_thread, windows_delete_thread): Adjust.
16504 (get_windows_debug_event): Rename to ...
16505 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16506 * tracefile-tfile.c (tfile_target_open): Pass down target.
16507 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16508 Forward declare.
16509 (switch_to_thread): Add process_stratum_target parameter.
16510 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16511 parameter. Use it.
16512 (mi_on_resume): Pass target down.
16513 * nat/fork-inferior.c (startup_inferior): Add
16514 process_stratum_target parameter. Pass it down.
16515 * nat/fork-inferior.h (startup_inferior): Add
16516 process_stratum_target parameter.
16517 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16518
16519 2020-01-10 Pedro Alves <palves@redhat.com>
16520
16521 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16522 directly. Instead find the first thread in the thread list and
16523 use switch_to_thread.
16524
16525 2020-01-10 Pedro Alves <palves@redhat.com>
16526
16527 * remote.c (remote_target::remote_add_inferior): Don't bind a
16528 process to the current inferior if the current inferior is already
16529 bound to a process.
16530
16531 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16532 Pedro Alves <palves@redhat.com>
16533
16534 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16535 If no process is specified, return null_ptid instead of
16536 inferior_ptid.
16537 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16538 TARGET_WAITKIND_SIGNALLED with no pid.
16539
16540 2020-01-10 Pedro Alves <palves@redhat.com>
16541
16542 * remote.c (first_remote_resumed_thread): New.
16543 (remote_target::wait_as): Use it as default event_ptid instead of
16544 inferior_ptid.
16545
16546 2020-01-10 Pedro Alves <palves@redhat.com>
16547
16548 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16549
16550 2020-01-10 Pedro Alves <palves@redhat.com>
16551
16552 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16553 not -1.
16554
16555 2020-01-10 Pedro Alves <palves@redhat.com>
16556
16557 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16558 ptid to get_last_target_status.
16559 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16560 ptid to get_last_target_status.
16561 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16562 get_last_target_status.
16563 (info_program_command): Don't pass a target_waitstatus to
16564 get_last_target_status.
16565 * infrun.c (init_wait_for_inferior): Use
16566 nullify_last_target_wait_ptid.
16567 (get_last_target_status): Handle nullptr arguments.
16568 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16569 (print_stop_event): Don't pass a ptid to get_last_target_status.
16570 (normal_stop): Don't pass a ptid to get_last_target_status.
16571 * infrun.h (get_last_target_status, set_last_target_status): Move
16572 comments here and update.
16573 (nullify_last_target_wait_ptid): Declare.
16574 * linux-fork.c (fork_load_infrun_state): Remove local extern
16575 declaration of nullify_last_target_wait_ptid.
16576 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16577 to get_last_target_status.
16578
16579 2020-01-10 Pedro Alves <palves@redhat.com>
16580
16581 * gdbthread.h (scoped_restore_current_thread)
16582 <dont_restore, restore, m_dont_restore>: Declare.
16583 * thread.c (thread_alive): Add assertion. Return bool.
16584 (switch_to_thread_if_alive): New.
16585 (prune_threads): Switch inferior/thread.
16586 (print_thread_info_1): Switch thread before calling target methods.
16587 (scoped_restore_current_thread::restore): New, factored out from
16588 ...
16589 (scoped_restore_current_thread::~scoped_restore_current_thread):
16590 ... this.
16591 (scoped_restore_current_thread::scoped_restore_current_thread):
16592 Add assertion.
16593 (thread_apply_all_command, thread_select): Use
16594 switch_to_thread_if_alive.
16595 * infrun.c (proceed, restart_threads, handle_signal_stop)
16596 (switch_back_to_stepped_thread): Switch current thread before
16597 calling target methods.
16598
16599 2020-01-10 Pedro Alves <palves@redhat.com>
16600
16601 * inferior.c (switch_to_inferior_no_thread): New function,
16602 factored out from ...
16603 (inferior_command): ... here.
16604 * inferior.h (switch_to_inferior_no_thread): Declare.
16605 * mi/mi-main.c (run_one_inferior): Use
16606 switch_to_inferior_no_thread.
16607
16608 2020-01-10 Pedro Alves <palves@redhat.com>
16609
16610 * infcmd.c (kill_command): Remove dead code.
16611
16612 2020-01-10 Pedro Alves <palves@redhat.com>
16613
16614 * remote.c (remote_target::mourn_inferior): No longer check
16615 whether the target is running.
16616
16617 2020-01-10 Pedro Alves <palves@redhat.com>
16618
16619 * corelow.c (core_target::has_execution): Change parameter type to
16620 inferior pointer.
16621 * inferior.c (number_of_live_inferiors): Use
16622 inferior::has_execution instead of target_has_execution_1.
16623 * inferior.h (inferior::has_execution): New.
16624 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16625 inferior::has_execution instead of target_has_execution_1.
16626 * process-stratum-target.c
16627 (process_stratum_target::has_execution): Change parameter type to
16628 inferior pointer. Check the inferior's PID instead of
16629 inferior_ptid.
16630 * process-stratum-target.h
16631 (process_stratum_target::has_execution): Change parameter type to
16632 inferior pointer.
16633 * record-full.c (record_full_core_target::has_execution): Change
16634 parameter type to inferior pointer.
16635 * target.c (target_has_execution_1): Change parameter type to
16636 inferior pointer.
16637 (target_has_execution_current): Adjust.
16638 * target.h (target_ops::has_execution): Change parameter type to
16639 inferior pointer.
16640 (target_has_execution_1): Change parameter type to inferior
16641 pointer. Change return type to bool.
16642 * tracefile.h (tracefile_target::has_execution): Change parameter
16643 type to inferior pointer.
16644
16645 2020-01-10 Pedro Alves <palves@redhat.com>
16646
16647 * exceptions.c (print_flush): Remove current_top_target() check.
16648
16649 2020-01-10 Pedro Alves <palves@redhat.com>
16650
16651 * remote.c (show_remote_exec_file): Show the current inferior's
16652 exec-file instead of the command variable's value.
16653
16654 2020-01-10 Pedro Alves <palves@redhat.com>
16655
16656 * record-full.c (record_full_resume_ptid): New global.
16657 (record_full_target::resume): Set it.
16658 (record_full_wait_1): Use record_full_resume_ptid instead of
16659 inferior_ptid.
16660
16661 2020-01-10 Pedro Alves <palves@redhat.com>
16662
16663 * gdbthread.h (scoped_restore_current_thread)
16664 <dont_restore, restore, m_dont_restore>: Declare.
16665 * thread.c (thread_alive): Add assertion. Return bool.
16666 (switch_to_thread_if_alive): New.
16667 (prune_threads): Switch inferior/thread.
16668 (print_thread_info_1): Switch thread before calling target methods.
16669 (scoped_restore_current_thread::restore): New, factored out from
16670 ...
16671 (scoped_restore_current_thread::~scoped_restore_current_thread):
16672 ... this.
16673 (scoped_restore_current_thread::scoped_restore_current_thread):
16674 Add assertion.
16675 (thread_apply_all_command, thread_select): Use
16676 switch_to_thread_if_alive.
16677
16678 2020-01-10 George Barrett <bob@bob131.so>
16679
16680 * stap-probe.c (stap_modify_semaphore): Don't check for null
16681 semaphores.
16682 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16683 for null semaphores.
16684
16685 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16686
16687 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16688 all source windows, and maintain horizontal scroll status while
16689 doing so.
16690
16691 2020-01-09 Tom Tromey <tom@tromey.com>
16692
16693 PR tui/18932:
16694 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16695 update_source_window, not print_source_lines.
16696
16697 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16698
16699 * tui/tui.c (tui_enable): Register tui hooks after calling
16700 tui_display_main.
16701
16702 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16703
16704 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16705
16706 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16707
16708 * thread.c (print_thread_info_1): Fix indentation.
16709
16710 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16711
16712 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16713 unique_xmalloc_ptr outside the if to always free the demangled name.
16714
16715 2020-01-08 Tom Tromey <tromey@adacore.com>
16716
16717 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16718 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16719 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16720 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16721 Remove.
16722 (section_offsets): New typedef.
16723 * symtab.c (fixup_section, get_msymbol_address): Update.
16724 * symmisc.c (dump_msymbols): Update.
16725 * symfile.h (relative_addr_info_to_section_offsets)
16726 (symfile_map_offsets_to_segments): Update.
16727 * symfile.c (build_section_addr_info_from_objfile)
16728 (init_objfile_sect_indices): Update.
16729 (struct place_section_arg): Change type of "offsets".
16730 (place_section): Update.
16731 (relative_addr_info_to_section_offsets): Change type of
16732 "section_offsets". Remove "num_sections" parameter.
16733 (default_symfile_offsets, syms_from_objfile_1)
16734 (set_objfile_default_section_offset): Update.
16735 (reread_symbols): No need to preserve section offsets by hand.
16736 (symfile_map_offsets_to_segments): Change type of "offsets".
16737 * stap-probe.c (relocate_address): Update.
16738 * stabsread.h (process_one_symbol): Update.
16739 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16740 (solib_target_relocate_section_addresses): Update.
16741 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16742 Update.
16743 * solib-frv.c (frv_relocate_main_executable): Update.
16744 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16745 * solib-aix.c (solib_aix_get_section_offsets): Change return
16746 type.
16747 (solib_aix_solib_create_inferior_hook): Update.
16748 * remote.c (remote_target::get_offsets): Update.
16749 * psymtab.c (find_pc_sect_psymtab): Update.
16750 * psympriv.h (struct partial_symbol) <address, text_low,
16751 text_high>: Update.
16752 * objfiles.h (obj_section_offset): Update.
16753 (struct objfile) <section_offsets>: Change type.
16754 <num_sections>: Remove.
16755 (objfile_relocate): Update.
16756 * objfiles.c (entry_point_address_query): Update
16757 (relocate_one_symbol): Change type of "section_offsets".
16758 (objfile_relocate1, objfile_relocate1): Change type of
16759 "new_offsets".
16760 (objfile_rebase1): Update.
16761 * mipsread.c (mipscoff_symfile_read): Update.
16762 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16763 parameter.
16764 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16765 (parse_external, psymtab_to_symtab_1): Update.
16766 * machoread.c (macho_symfile_offsets): Update.
16767 * ia64-tdep.c (ia64_find_unwind_table): Update.
16768 * hppa-tdep.c (read_unwind_info): Update.
16769 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16770 * dwarf2read.c (create_addrmap_from_index)
16771 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16772 (process_psymtab_comp_unit_reader, add_partial_symbol)
16773 (add_partial_subprogram, process_full_comp_unit)
16774 (read_file_scope, read_func_scope, read_lexical_block_scope)
16775 (read_call_site_scope, dwarf2_rnglists_process)
16776 (dwarf2_ranges_process, dwarf2_ranges_read)
16777 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16778 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16779 Update.
16780 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16781 Update.
16782 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16783 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16784 (process_one_symbol): Change type of "section_offsets".
16785 * ctfread.c (get_objfile_text_range): Update.
16786 * coffread.c (coff_symtab_read, enter_linenos)
16787 (process_coff_symbol): Update.
16788 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16789 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16790
16791 2020-01-08 Tom Tromey <tromey@adacore.com>
16792
16793 * dwarf2read.c (parse_macro_definition): Use std::string.
16794 (parse_macro_definition): Likewise.
16795
16796 2020-01-08 Tom Tromey <tromey@adacore.com>
16797
16798 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16799 (ATTR_ALLOC_CHUNK): Remove.
16800
16801 2020-01-08 Tom Tromey <tromey@adacore.com>
16802
16803 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16804
16805 2020-01-08 Tom Tromey <tromey@adacore.com>
16806
16807 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16808 (dwarf2_compute_name, open_dwo_file): Likewise.
16809 (process_enumeration_scope): Use std::vector.
16810 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16811 (partial_die_info::fixup, dwarf2_start_subfile)
16812 (guess_full_die_structure_name, dwarf2_name): Likewise.
16813 (determine_prefix): Update.
16814 (guess_full_die_structure_name): Make return type const.
16815 (partial_die_full_name): Return unique_xmalloc_ptr.
16816 (DW_FIELD_ALLOC_CHUNK): Remove.
16817
16818 2020-01-07 Tom Tromey <tromey@adacore.com>
16819
16820 PR build/24937:
16821 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16822
16823 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16824
16825 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16826
16827 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16828
16829 * stack.c (print_frame_info): Move disassemble_next_line code
16830 inside source_print block.
16831
16832 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16833
16834 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16835 gdb/signals.h, as we are now using native signal symbols.
16836
16837 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16838
16839 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16840 overflow by an early check of content vs threshold.
16841 * tui/tui-source.c (tui_source_window::line_is_displayed):
16842 Likewise.
16843
16844 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16845
16846 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16847
16848 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16849
16850 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16851 export table if no section contains it's RVA.
16852
16853 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16854
16855 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16856
16857 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16858
16859 * source.c (print_source_lines_base): Set last_line_listed.
16860
16861 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16862
16863 * tui/tui-disasm.c: Remove trailing spaces.
16864
16865 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16866 Pedro Alves <palves@redhat.com>
16867
16868 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16869 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16870 (windows_gdb_signal_to_target): New function, uses the above
16871 enumeration to convert GDB internal signal codes to equivalent
16872 Windows codes.
16873 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16874 * windows-nat.c: Include "gdb_wait.h".
16875 (get_windows_debug_event): Extract the fatal exception from the
16876 exit status and convert to the equivalent Posix signal number.
16877 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16878 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16879 * gdbsupport/gdb_wait.c: New file, implements
16880 windows_status_to_termsig.
16881 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16882 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16883
16884 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16885
16886 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16887 show_layout.
16888
16889 2020-01-05 Luis Machado <luis.machado@linaro.org>
16890
16891 * aarch64-linux-nat.c
16892 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16893 and bfd_mach_aarch64.
16894
16895 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16896
16897 * ui-file.c (stdio_file::can_emit_style_escape)
16898 (tee_file::can_emit_style_escape): Ensure style is used also on
16899 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16900 to gdb_stdout.
16901 * main.c (set_gdb_data_directory): Use file style to output the
16902 warning that the given pathname is not a directory.
16903 * top.c (show_history_filename, gdb_safe_append_history)
16904 (show_gdb_datadir): Use file style.
16905
16906 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16907
16908 * solib-target.c (struct lm_info_target):
16909 Change offsets to be a unique_xmalloc_ptr.
16910 (solib_target_relocate_section_addresses): Update.
16911
16912 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16913
16914 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16915
16916 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16917
16918 * MAINTAINERS (Write After Approval): Add myself.
16919
16920 2020-01-02 Luis Machado <luis.machado@linaro.org>
16921
16922 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16923 Cell BE architecture.
16924 * target.h (struct target_ops) <thread_architecture>: Likewise.
16925
16926 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16927
16928 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16929
16930 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16931
16932 * MAINTAINERS (Write After Approval): Add myself.
16933
16934 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16935
16936 * gdbarch.sh: Update copyright year range of generated files.
16937
16938 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16939
16940 Update copyright year range in all GDB files.
16941
16942 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16943
16944 * copyright.py: Convert to Python 3.
16945
16946 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16947
16948 * copyright.py: Adapt after move of gnulib directory from gdb
16949 directory to toplevel directory.
16950
16951 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16952
16953 * copyright.py (main): Exit if run from the wrong directory.
16954
16955 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16956
16957 * top.c (print_gdb_version): Change copyright year to 2020.
16958
16959 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16960
16961 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16962
16963 For older changes see ChangeLog-2019.
16964 \f
16965 Local Variables:
16966 mode: change-log
16967 left-margin: 8
16968 fill-column: 74
16969 version-control: never
16970 coding: utf-8
16971 End:
This page took 0.401082 seconds and 5 git commands to generate.