]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/arm: avoid undefined behavior shift when decoding immediate value
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9ecab40c
SM
12020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
2
3 PR gdb/26835
4 * arm-tdep.c (class arm_instruction_reader): New.
5 (target_arm_instruction_reader): New.
6 (arm_analyze_prologue): Add instruction reader parameter and use
7 it. Use arm_expand_immediate.
8 (class target_arm_instruction_reader): Adjust.
9 (arm_skip_prologue): Adjust.
10 (arm_expand_immediate): New.
11 (arm_scan_prologue): Adjust.
12 (arm_analyze_prologue_test): New.
13 (class test_arm_instruction_reader): New.
14
5a7cf527
AB
152020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 * f-lang.c (fortran_argument_convert): Add declaration. Add
18 header comment, taken from f-lang.h. Make static.
19 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
20 (fortran_argument_convert): Delete declaration.
21
7bea47f0
AB
222020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * ada-exp.y (find_primitive_type): Make parameter const.
25 * ada-lang.c (enum ada_primitive_types): Delete.
26 (ada_language::language_arch_info): Update.
27 * c-lang.c (enum c_primitive_types): Delete.
28 (c_language_arch_info): Update.
29 (enum cplus_primitive_types): Delete.
30 (cplus_language::language_arch_info): Update.
31 * d-lang.c (enum d_primitive_types): Delete.
32 (d_language::language_arch_info): Update.
33 * f-lang.c (enum f_primitive_types): Delete.
34 (f_language::language_arch_info): Update.
35 * go-lang.c (enum go_primitive_types): Delete.
36 (go_language::language_arch_info): Update.
37 * language.c (auto_or_unknown_language::language_arch_info):
38 Update.
39 (language_gdbarch_post_init): Use obstack_new, use array indexing.
40 (language_string_char_type): Add header comment, call function in
41 language_arch_info.
42 (language_bool_type): Likewise
43 (language_arch_info::bool_type): Define.
44 (language_lookup_primitive_type_1): Delete.
45 (language_lookup_primitive_type): Rewrite as a templated function
46 to call function in language_arch_info, then instantiate twice.
47 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
48 (language_arch_info::lookup_primitive_type_and_symbol): Define.
49 (language_arch_info::lookup_primitive_type): Define twice with
50 different signatures.
51 (language_arch_info::lookup_primitive_type_as_symbol): Define.
52 (language_lookup_primitive_type_as_symbol): Rewrite to call a
53 member function in language_arch_info.
54 * language.h (language_arch_info): Complete rewrite.
55 (language_lookup_primitive_type): Make templated.
56 * m2-lang.c (enum m2_primitive_types): Delete.
57 (m2_language::language_arch_info): Update.
58 * opencl-lang.c (OCL_P_TYPE): Delete.
59 (enum opencl_primitive_types): Delete.
60 (opencl_type_data): Delete.
61 (builtin_opencl_type): Delete.
62 (lookup_opencl_vector_type): Update.
63 (opencl_language::language_arch_info): Update, lots of content
64 moved from...
65 (build_opencl_types): ...here. This function is now deleted.
66 (_initialize_opencl_language): Delete.
67 * p-lang.c (enum pascal_primitive_types): Delete.
68 (pascal_language::language_arch_info): Update.
69 * rust-lang.c (enum rust_primitive_types): Delete.
70 (rust_language::language_arch_info): Update.
71
bf6e5d01
SM
722020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
75 dwarf2_queue_guard.
76
1350c3b4
SM
772020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
80 comment.
81
6f738b01
SM
822020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
83
84 * dwarf2/read.c (dwarf_read_debug_printf,
85 dwarf_read_debug_printf_v): New macros, use throughout the file.
86
10c19fad
SV
872020-11-12 Shahab Vahedi <shahab@synopsys.com>
88
89 * arc-linux-tdep.c (collect_register): Populate "eret" by
90 "pc" value from the regcache when asked for "pc" value.
91
1f2624a3
TT
922020-11-12 Tom Tromey <tom@tromey.com>
93
94 PR rust/26799:
95 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
96 exist.
97
ab33b152
AB
982020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
99
100 * features/Makefile (XMLTOC): Add rx.xml.
101 (FEATURE_XMLFILES): Remove rx.xml.
102 (FEATURE_CFILES rule): Pass '-single-feature' flag.
103 * features/rx.c: Regenerate.
104 * features/rx.xml: Wrap in `target` tags, and reindent.
105 * target-descriptions.c (struct maint_print_c_tdesc_options): New
106 structure.
107 (maint_print_c_tdesc_opt_def): New typedef.
108 (maint_print_c_tdesc_opt_defs): New static global.
109 (make_maint_print_c_tdesc_options_def_group): New function.
110 (maint_print_c_tdesc_cmd): Make use of command line flags, only
111 print single feature C file for target descriptions containing a
112 single feature.
113 (maint_print_c_tdesc_cmd_completer): New function.
114 (_initialize_target_descriptions): Update call to register command
115 completer, and include command line flag in help text.
116
550820e1
AB
1172020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
118
119 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
120 numbers.
121 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
122 enum values.
123
baf20f76
TT
1242020-11-10 Tom Tromey <tom@tromey.com>
125
126 * value.h (internalvar_name): Update.
127 * value.c (internalvar_name): Make return type const.
128
caaece0e
TT
1292020-11-10 Tom Tromey <tom@tromey.com>
130
131 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
132 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
133 const.
134
8e20b4be
TT
1352020-11-10 Tom Tromey <tom@tromey.com>
136
137 * objc-lang.h (value_nsstring): Update.
138 * objc-lang.c (value_nsstring): Make "ptr" const.
139
86775fab
AB
1402020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * expprint.c (print_subexp_funcall): Increment expression position
143 after reading argument count.
144 * f-lang.c (print_subexp_f): Skip over opcode before calling
145 common function.
146 (dump_subexp_body_f): Likewise.
147
3fed4c0b
RG
1482020-11-06 Romain Geissler <romain.geissler@amadeus.com>
149
150 PR python/26832
151 * configure: Regenerate.
152 * configure.ac: Check for python modules ctypes instead of
153 itertools.
154
ac3d4064
PA
1552020-11-06 Pedro Alves <pedro@palves.net>
156
157 * macroexp.c (struct macro_buffer): Split in two classes. Add
158 uses adjusted.
159 (struct shared_macro_buffer): New, factored out from struct
160 macro_buffer.
161 (struct growable_macro_buffer): New, factored out from struct
162 macro_buffer.
163 (set_token, get_comment, get_identifier, get_pp_number)
164 (get_character_constant, get_string_literal, get_punctuator)
165 (get_next_token_for_substitution): Constify parameters.
166 (substitute_args): Constify locals.
167
606decb2
TT
1682020-11-05 Tom Tromey <tom@tromey.com>
169
170 * dwarf2/read.c (read_cutu_die_from_dwo)
171 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
172 (build_type_psymtabs_1): Update.
173 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
174 parameter.
175 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
176 Don't read section. Add assert.
177
9c91c725
TT
1782020-11-04 Tom Tromey <tromey@adacore.com>
179
180 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
181
8d9fd3a1
TT
1822020-11-04 Tom Tromey <tromey@adacore.com>
183
184 * ada-typeprint.c (ada_print_type): Handle __T types.
185
d8f62e84
TT
1862020-11-04 Tom Tromey <tromey@adacore.com>
187
188 * dwarf2/read.c (add_partial_symbol, process_die):
189 Handle DW_TAG_array_type.
190 (is_type_tag_for_partial): Add "lang" parameter.
191 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
192
7ff5b937
TT
1932020-11-04 Tom Tromey <tromey@adacore.com>
194
195 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
196
10f6a3ad
TT
1972020-11-04 Tom Tromey <tromey@adacore.com>
198
199 * dwarf2/read.c (read_array_type): Only apply stride to innermost
200 array.
201
b72795a8
TT
2022020-11-04 Tom Tromey <tromey@adacore.com>
203
204 * gdbtypes.c (update_static_array_size): Handle bit stride.
205
24aa1b02
TT
2062020-11-04 Tom Tromey <tromey@adacore.com>
207
208 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
209
c9a28cbe
TT
2102020-11-04 Tom Tromey <tromey@adacore.com>
211
212 * ada-lang.c (ada_is_any_packed_array_type): New function.
213 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
214
57567375
TT
2152020-11-04 Tom Tromey <tromey@adacore.com>
216
217 * dwarf2/read.c (recognize_bound_expression)
218 (quirk_ada_thick_pointer): New functions.
219 (read_array_type): Call quirk_ada_thick_pointer.
220 (set_die_type): Add "skip_data_location" parameter.
221 (quirk_ada_thick_pointer): New function.
222 (process_structure_scope): Call quirk_ada_thick_pointer.
223 * ada-lang.c (ada_is_unconstrained_packed_array_type)
224 (decode_packed_array_bitsize): Handle thick pointers without
225 parallel types.
226 (ada_is_gnat_encoded_packed_array_type): Rename from
227 ada_is_packed_array_type.
228 (ada_is_constrained_packed_array_type): Update.
229 * ada-valprint.c (ada_val_print_gnat_array): Remove.
230 (ada_value_print_1): Use ada_get_decoded_value.
231
a7400e44
TT
2322020-11-04 Tom Tromey <tromey@adacore.com>
233
234 * ada-lang.c (recursively_update_array_bitsize): New function.
235 (decode_constrained_packed_array_type): Call it.
236
75fd6a26
TT
2372020-11-04 Tom Tromey <tromey@adacore.com>
238
239 * ada-lang.c (to_fixed_array_type): Error if
240 decode_constrained_packed_array_type returns NULL.
241
93f9561e
TT
2422020-11-04 Tom Tromey <tromey@adacore.com>
243
244 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
245
257e02d8
TT
2462020-11-02 Tom Tromey <tromey@adacore.com>
247
248 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
249 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
250 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
251 * amd64-ravenscar-thread.c: New file.
252 * amd64-ravenscar-thread.h: New file.
253 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
254 * configure.tgt (amd64_tobjs): Add ravenscar objects.
255
74d877e5
AB
2562020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * main.c (execute_cmdargs): New function.
259 (captured_main_1): Make use of execute_cmdargs.
260
64aaad63
AB
2612020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
262
263 * NEWS: Mention changes to config file search path.
264 * main.c
265
5b3d3560
TT
2662020-11-02 Tom Tromey <tromey@adacore.com>
267
268 * python/python.c: Consolidate two HAVE_PYTHON blocks.
269 (python_GdbModuleDef): Move earlier. Now static.
270 (do_start_initialization): Consolidate some IS_PY3K blocks.
271
dda83cd7
SM
2722020-11-02 Simon Marchi <simon.marchi@efficios.com>
273
274 * aarch64-linux-tdep.c: Fix indentation.
275 * aarch64-ravenscar-thread.c: Fix indentation.
276 * aarch64-tdep.c: Fix indentation.
277 * aarch64-tdep.h: Fix indentation.
278 * ada-lang.c: Fix indentation.
279 * ada-lang.h: Fix indentation.
280 * ada-tasks.c: Fix indentation.
281 * ada-typeprint.c: Fix indentation.
282 * ada-valprint.c: Fix indentation.
283 * ada-varobj.c: Fix indentation.
284 * addrmap.c: Fix indentation.
285 * addrmap.h: Fix indentation.
286 * agent.c: Fix indentation.
287 * aix-thread.c: Fix indentation.
288 * alpha-bsd-nat.c: Fix indentation.
289 * alpha-linux-tdep.c: Fix indentation.
290 * alpha-mdebug-tdep.c: Fix indentation.
291 * alpha-nbsd-tdep.c: Fix indentation.
292 * alpha-obsd-tdep.c: Fix indentation.
293 * alpha-tdep.c: Fix indentation.
294 * amd64-bsd-nat.c: Fix indentation.
295 * amd64-darwin-tdep.c: Fix indentation.
296 * amd64-linux-nat.c: Fix indentation.
297 * amd64-linux-tdep.c: Fix indentation.
298 * amd64-nat.c: Fix indentation.
299 * amd64-obsd-tdep.c: Fix indentation.
300 * amd64-tdep.c: Fix indentation.
301 * amd64-windows-tdep.c: Fix indentation.
302 * annotate.c: Fix indentation.
303 * arc-tdep.c: Fix indentation.
304 * arch-utils.c: Fix indentation.
305 * arch/arm-get-next-pcs.c: Fix indentation.
306 * arch/arm.c: Fix indentation.
307 * arm-linux-nat.c: Fix indentation.
308 * arm-linux-tdep.c: Fix indentation.
309 * arm-nbsd-tdep.c: Fix indentation.
310 * arm-pikeos-tdep.c: Fix indentation.
311 * arm-tdep.c: Fix indentation.
312 * arm-tdep.h: Fix indentation.
313 * arm-wince-tdep.c: Fix indentation.
314 * auto-load.c: Fix indentation.
315 * auxv.c: Fix indentation.
316 * avr-tdep.c: Fix indentation.
317 * ax-gdb.c: Fix indentation.
318 * ax-general.c: Fix indentation.
319 * bfin-linux-tdep.c: Fix indentation.
320 * block.c: Fix indentation.
321 * block.h: Fix indentation.
322 * blockframe.c: Fix indentation.
323 * bpf-tdep.c: Fix indentation.
324 * break-catch-sig.c: Fix indentation.
325 * break-catch-syscall.c: Fix indentation.
326 * break-catch-throw.c: Fix indentation.
327 * breakpoint.c: Fix indentation.
328 * breakpoint.h: Fix indentation.
329 * bsd-uthread.c: Fix indentation.
330 * btrace.c: Fix indentation.
331 * build-id.c: Fix indentation.
332 * buildsym-legacy.h: Fix indentation.
333 * buildsym.c: Fix indentation.
334 * c-typeprint.c: Fix indentation.
335 * c-valprint.c: Fix indentation.
336 * c-varobj.c: Fix indentation.
337 * charset.c: Fix indentation.
338 * cli/cli-cmds.c: Fix indentation.
339 * cli/cli-decode.c: Fix indentation.
340 * cli/cli-decode.h: Fix indentation.
341 * cli/cli-script.c: Fix indentation.
342 * cli/cli-setshow.c: Fix indentation.
343 * coff-pe-read.c: Fix indentation.
344 * coffread.c: Fix indentation.
345 * compile/compile-cplus-types.c: Fix indentation.
346 * compile/compile-object-load.c: Fix indentation.
347 * compile/compile-object-run.c: Fix indentation.
348 * completer.c: Fix indentation.
349 * corefile.c: Fix indentation.
350 * corelow.c: Fix indentation.
351 * cp-abi.h: Fix indentation.
352 * cp-namespace.c: Fix indentation.
353 * cp-support.c: Fix indentation.
354 * cp-valprint.c: Fix indentation.
355 * cris-linux-tdep.c: Fix indentation.
356 * cris-tdep.c: Fix indentation.
357 * darwin-nat-info.c: Fix indentation.
358 * darwin-nat.c: Fix indentation.
359 * darwin-nat.h: Fix indentation.
360 * dbxread.c: Fix indentation.
361 * dcache.c: Fix indentation.
362 * disasm.c: Fix indentation.
363 * dtrace-probe.c: Fix indentation.
364 * dwarf2/abbrev.c: Fix indentation.
365 * dwarf2/attribute.c: Fix indentation.
366 * dwarf2/expr.c: Fix indentation.
367 * dwarf2/frame.c: Fix indentation.
368 * dwarf2/index-cache.c: Fix indentation.
369 * dwarf2/index-write.c: Fix indentation.
370 * dwarf2/line-header.c: Fix indentation.
371 * dwarf2/loc.c: Fix indentation.
372 * dwarf2/macro.c: Fix indentation.
373 * dwarf2/read.c: Fix indentation.
374 * dwarf2/read.h: Fix indentation.
375 * elfread.c: Fix indentation.
376 * eval.c: Fix indentation.
377 * event-top.c: Fix indentation.
378 * exec.c: Fix indentation.
379 * exec.h: Fix indentation.
380 * expprint.c: Fix indentation.
381 * f-lang.c: Fix indentation.
382 * f-typeprint.c: Fix indentation.
383 * f-valprint.c: Fix indentation.
384 * fbsd-nat.c: Fix indentation.
385 * fbsd-tdep.c: Fix indentation.
386 * findvar.c: Fix indentation.
387 * fork-child.c: Fix indentation.
388 * frame-unwind.c: Fix indentation.
389 * frame-unwind.h: Fix indentation.
390 * frame.c: Fix indentation.
391 * frv-linux-tdep.c: Fix indentation.
392 * frv-tdep.c: Fix indentation.
393 * frv-tdep.h: Fix indentation.
394 * ft32-tdep.c: Fix indentation.
395 * gcore.c: Fix indentation.
396 * gdb_bfd.c: Fix indentation.
397 * gdbarch.sh: Fix indentation.
398 * gdbarch.c: Re-generate
399 * gdbarch.h: Re-generate.
400 * gdbcore.h: Fix indentation.
401 * gdbthread.h: Fix indentation.
402 * gdbtypes.c: Fix indentation.
403 * gdbtypes.h: Fix indentation.
404 * glibc-tdep.c: Fix indentation.
405 * gnu-nat.c: Fix indentation.
406 * gnu-nat.h: Fix indentation.
407 * gnu-v2-abi.c: Fix indentation.
408 * gnu-v3-abi.c: Fix indentation.
409 * go32-nat.c: Fix indentation.
410 * guile/guile-internal.h: Fix indentation.
411 * guile/scm-cmd.c: Fix indentation.
412 * guile/scm-frame.c: Fix indentation.
413 * guile/scm-iterator.c: Fix indentation.
414 * guile/scm-math.c: Fix indentation.
415 * guile/scm-ports.c: Fix indentation.
416 * guile/scm-pretty-print.c: Fix indentation.
417 * guile/scm-value.c: Fix indentation.
418 * h8300-tdep.c: Fix indentation.
419 * hppa-linux-nat.c: Fix indentation.
420 * hppa-linux-tdep.c: Fix indentation.
421 * hppa-nbsd-nat.c: Fix indentation.
422 * hppa-nbsd-tdep.c: Fix indentation.
423 * hppa-obsd-nat.c: Fix indentation.
424 * hppa-tdep.c: Fix indentation.
425 * hppa-tdep.h: Fix indentation.
426 * i386-bsd-nat.c: Fix indentation.
427 * i386-darwin-nat.c: Fix indentation.
428 * i386-darwin-tdep.c: Fix indentation.
429 * i386-dicos-tdep.c: Fix indentation.
430 * i386-gnu-nat.c: Fix indentation.
431 * i386-linux-nat.c: Fix indentation.
432 * i386-linux-tdep.c: Fix indentation.
433 * i386-nto-tdep.c: Fix indentation.
434 * i386-obsd-tdep.c: Fix indentation.
435 * i386-sol2-nat.c: Fix indentation.
436 * i386-tdep.c: Fix indentation.
437 * i386-tdep.h: Fix indentation.
438 * i386-windows-tdep.c: Fix indentation.
439 * i387-tdep.c: Fix indentation.
440 * i387-tdep.h: Fix indentation.
441 * ia64-libunwind-tdep.c: Fix indentation.
442 * ia64-libunwind-tdep.h: Fix indentation.
443 * ia64-linux-nat.c: Fix indentation.
444 * ia64-linux-tdep.c: Fix indentation.
445 * ia64-tdep.c: Fix indentation.
446 * ia64-tdep.h: Fix indentation.
447 * ia64-vms-tdep.c: Fix indentation.
448 * infcall.c: Fix indentation.
449 * infcmd.c: Fix indentation.
450 * inferior.c: Fix indentation.
451 * infrun.c: Fix indentation.
452 * iq2000-tdep.c: Fix indentation.
453 * language.c: Fix indentation.
454 * linespec.c: Fix indentation.
455 * linux-fork.c: Fix indentation.
456 * linux-nat.c: Fix indentation.
457 * linux-tdep.c: Fix indentation.
458 * linux-thread-db.c: Fix indentation.
459 * lm32-tdep.c: Fix indentation.
460 * m2-lang.c: Fix indentation.
461 * m2-typeprint.c: Fix indentation.
462 * m2-valprint.c: Fix indentation.
463 * m32c-tdep.c: Fix indentation.
464 * m32r-linux-tdep.c: Fix indentation.
465 * m32r-tdep.c: Fix indentation.
466 * m68hc11-tdep.c: Fix indentation.
467 * m68k-bsd-nat.c: Fix indentation.
468 * m68k-linux-nat.c: Fix indentation.
469 * m68k-linux-tdep.c: Fix indentation.
470 * m68k-tdep.c: Fix indentation.
471 * machoread.c: Fix indentation.
472 * macrocmd.c: Fix indentation.
473 * macroexp.c: Fix indentation.
474 * macroscope.c: Fix indentation.
475 * macrotab.c: Fix indentation.
476 * macrotab.h: Fix indentation.
477 * main.c: Fix indentation.
478 * mdebugread.c: Fix indentation.
479 * mep-tdep.c: Fix indentation.
480 * mi/mi-cmd-catch.c: Fix indentation.
481 * mi/mi-cmd-disas.c: Fix indentation.
482 * mi/mi-cmd-env.c: Fix indentation.
483 * mi/mi-cmd-stack.c: Fix indentation.
484 * mi/mi-cmd-var.c: Fix indentation.
485 * mi/mi-cmds.c: Fix indentation.
486 * mi/mi-main.c: Fix indentation.
487 * mi/mi-parse.c: Fix indentation.
488 * microblaze-tdep.c: Fix indentation.
489 * minidebug.c: Fix indentation.
490 * minsyms.c: Fix indentation.
491 * mips-linux-nat.c: Fix indentation.
492 * mips-linux-tdep.c: Fix indentation.
493 * mips-nbsd-tdep.c: Fix indentation.
494 * mips-tdep.c: Fix indentation.
495 * mn10300-linux-tdep.c: Fix indentation.
496 * mn10300-tdep.c: Fix indentation.
497 * moxie-tdep.c: Fix indentation.
498 * msp430-tdep.c: Fix indentation.
499 * namespace.h: Fix indentation.
500 * nat/fork-inferior.c: Fix indentation.
501 * nat/gdb_ptrace.h: Fix indentation.
502 * nat/linux-namespaces.c: Fix indentation.
503 * nat/linux-osdata.c: Fix indentation.
504 * nat/netbsd-nat.c: Fix indentation.
505 * nat/x86-dregs.c: Fix indentation.
506 * nbsd-nat.c: Fix indentation.
507 * nbsd-tdep.c: Fix indentation.
508 * nios2-linux-tdep.c: Fix indentation.
509 * nios2-tdep.c: Fix indentation.
510 * nto-procfs.c: Fix indentation.
511 * nto-tdep.c: Fix indentation.
512 * objfiles.c: Fix indentation.
513 * objfiles.h: Fix indentation.
514 * opencl-lang.c: Fix indentation.
515 * or1k-tdep.c: Fix indentation.
516 * osabi.c: Fix indentation.
517 * osabi.h: Fix indentation.
518 * osdata.c: Fix indentation.
519 * p-lang.c: Fix indentation.
520 * p-typeprint.c: Fix indentation.
521 * p-valprint.c: Fix indentation.
522 * parse.c: Fix indentation.
523 * ppc-linux-nat.c: Fix indentation.
524 * ppc-linux-tdep.c: Fix indentation.
525 * ppc-nbsd-nat.c: Fix indentation.
526 * ppc-nbsd-tdep.c: Fix indentation.
527 * ppc-obsd-nat.c: Fix indentation.
528 * ppc-ravenscar-thread.c: Fix indentation.
529 * ppc-sysv-tdep.c: Fix indentation.
530 * ppc64-tdep.c: Fix indentation.
531 * printcmd.c: Fix indentation.
532 * proc-api.c: Fix indentation.
533 * producer.c: Fix indentation.
534 * producer.h: Fix indentation.
535 * prologue-value.c: Fix indentation.
536 * prologue-value.h: Fix indentation.
537 * psymtab.c: Fix indentation.
538 * python/py-arch.c: Fix indentation.
539 * python/py-bpevent.c: Fix indentation.
540 * python/py-event.c: Fix indentation.
541 * python/py-event.h: Fix indentation.
542 * python/py-finishbreakpoint.c: Fix indentation.
543 * python/py-frame.c: Fix indentation.
544 * python/py-framefilter.c: Fix indentation.
545 * python/py-inferior.c: Fix indentation.
546 * python/py-infthread.c: Fix indentation.
547 * python/py-objfile.c: Fix indentation.
548 * python/py-prettyprint.c: Fix indentation.
549 * python/py-registers.c: Fix indentation.
550 * python/py-signalevent.c: Fix indentation.
551 * python/py-stopevent.c: Fix indentation.
552 * python/py-stopevent.h: Fix indentation.
553 * python/py-threadevent.c: Fix indentation.
554 * python/py-tui.c: Fix indentation.
555 * python/py-unwind.c: Fix indentation.
556 * python/py-value.c: Fix indentation.
557 * python/py-xmethods.c: Fix indentation.
558 * python/python-internal.h: Fix indentation.
559 * python/python.c: Fix indentation.
560 * ravenscar-thread.c: Fix indentation.
561 * record-btrace.c: Fix indentation.
562 * record-full.c: Fix indentation.
563 * record.c: Fix indentation.
564 * reggroups.c: Fix indentation.
565 * regset.h: Fix indentation.
566 * remote-fileio.c: Fix indentation.
567 * remote.c: Fix indentation.
568 * reverse.c: Fix indentation.
569 * riscv-linux-tdep.c: Fix indentation.
570 * riscv-ravenscar-thread.c: Fix indentation.
571 * riscv-tdep.c: Fix indentation.
572 * rl78-tdep.c: Fix indentation.
573 * rs6000-aix-tdep.c: Fix indentation.
574 * rs6000-lynx178-tdep.c: Fix indentation.
575 * rs6000-nat.c: Fix indentation.
576 * rs6000-tdep.c: Fix indentation.
577 * rust-lang.c: Fix indentation.
578 * rx-tdep.c: Fix indentation.
579 * s12z-tdep.c: Fix indentation.
580 * s390-linux-tdep.c: Fix indentation.
581 * score-tdep.c: Fix indentation.
582 * ser-base.c: Fix indentation.
583 * ser-mingw.c: Fix indentation.
584 * ser-uds.c: Fix indentation.
585 * ser-unix.c: Fix indentation.
586 * serial.c: Fix indentation.
587 * sh-linux-tdep.c: Fix indentation.
588 * sh-nbsd-tdep.c: Fix indentation.
589 * sh-tdep.c: Fix indentation.
590 * skip.c: Fix indentation.
591 * sol-thread.c: Fix indentation.
592 * solib-aix.c: Fix indentation.
593 * solib-darwin.c: Fix indentation.
594 * solib-frv.c: Fix indentation.
595 * solib-svr4.c: Fix indentation.
596 * solib.c: Fix indentation.
597 * source.c: Fix indentation.
598 * sparc-linux-tdep.c: Fix indentation.
599 * sparc-nbsd-tdep.c: Fix indentation.
600 * sparc-obsd-tdep.c: Fix indentation.
601 * sparc-ravenscar-thread.c: Fix indentation.
602 * sparc-tdep.c: Fix indentation.
603 * sparc64-linux-tdep.c: Fix indentation.
604 * sparc64-nbsd-tdep.c: Fix indentation.
605 * sparc64-obsd-tdep.c: Fix indentation.
606 * sparc64-tdep.c: Fix indentation.
607 * stabsread.c: Fix indentation.
608 * stack.c: Fix indentation.
609 * stap-probe.c: Fix indentation.
610 * stubs/ia64vms-stub.c: Fix indentation.
611 * stubs/m32r-stub.c: Fix indentation.
612 * stubs/m68k-stub.c: Fix indentation.
613 * stubs/sh-stub.c: Fix indentation.
614 * stubs/sparc-stub.c: Fix indentation.
615 * symfile-mem.c: Fix indentation.
616 * symfile.c: Fix indentation.
617 * symfile.h: Fix indentation.
618 * symmisc.c: Fix indentation.
619 * symtab.c: Fix indentation.
620 * symtab.h: Fix indentation.
621 * target-float.c: Fix indentation.
622 * target.c: Fix indentation.
623 * target.h: Fix indentation.
624 * tic6x-tdep.c: Fix indentation.
625 * tilegx-linux-tdep.c: Fix indentation.
626 * tilegx-tdep.c: Fix indentation.
627 * top.c: Fix indentation.
628 * tracefile-tfile.c: Fix indentation.
629 * tracepoint.c: Fix indentation.
630 * tui/tui-disasm.c: Fix indentation.
631 * tui/tui-io.c: Fix indentation.
632 * tui/tui-regs.c: Fix indentation.
633 * tui/tui-stack.c: Fix indentation.
634 * tui/tui-win.c: Fix indentation.
635 * tui/tui-winsource.c: Fix indentation.
636 * tui/tui.c: Fix indentation.
637 * typeprint.c: Fix indentation.
638 * ui-out.h: Fix indentation.
639 * unittests/copy_bitwise-selftests.c: Fix indentation.
640 * unittests/memory-map-selftests.c: Fix indentation.
641 * utils.c: Fix indentation.
642 * v850-tdep.c: Fix indentation.
643 * valarith.c: Fix indentation.
644 * valops.c: Fix indentation.
645 * valprint.c: Fix indentation.
646 * valprint.h: Fix indentation.
647 * value.c: Fix indentation.
648 * value.h: Fix indentation.
649 * varobj.c: Fix indentation.
650 * vax-tdep.c: Fix indentation.
651 * windows-nat.c: Fix indentation.
652 * windows-tdep.c: Fix indentation.
653 * xcoffread.c: Fix indentation.
654 * xml-syscall.c: Fix indentation.
655 * xml-tdesc.c: Fix indentation.
656 * xstormy16-tdep.c: Fix indentation.
657 * xtensa-config.c: Fix indentation.
658 * xtensa-linux-nat.c: Fix indentation.
659 * xtensa-linux-tdep.c: Fix indentation.
660 * xtensa-tdep.c: Fix indentation.
661
e1f57067
AB
6622020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
663 Craig Blackmore <craig.blackmore@embecosm.com>
664
665 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
666 as an unsigned value.
667
ae7754b2
TT
6682020-11-01 Tom Tromey <tom@tromey.com>
669
670 * dbxread.c (dbx_end_psymtab): Update.
671 * dwarf2/read.c (process_psymtab_comp_unit_reader)
672 (build_type_psymtabs_reader): Update.
673 * xcoffread.c (xcoff_end_psymtab): Update.
674 * ctfread.c (scan_partial_symbols): Update.
675 * psymtab.c (sort_pst_symbols): Remove.
676 (partial_symtab::end): Rename from end_psymtab_common. Inline
677 sort_pst_symbols.
678 * psympriv.h (struct partial_symtab) <end>: New method.
679 (end_psymtab_common): Don't declare.
680
0684bb51
TT
6812020-11-01 Tom Tromey <tom@tromey.com>
682
683 * symmisc.c (count_psyms): New function.
684 (print_objfile_statistics): Use it.
685 * psymtab.c (append_psymbol_to_list): Remove.
686 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
687 * objfiles.h (struct objstats) <n_psyms>: Remove.
688
089002bb
TT
6892020-11-01 Tom Tromey <tom@tromey.com>
690
691 * dbxread.c (dbx_end_psymtab): Update.
692 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
693 (build_type_psymtabs_reader): Update.
694 * xcoffread.c (xcoff_end_psymtab): Update.
695 * ctfread.c (scan_partial_symbols): Update.
696 * psympriv.h (end_psymtab_common): Update.
697 * psymtab.c (end_psymtab_common): Remove objfile parameter.
698 (sort_pst_symbols): Likewise.
699
525454d6
TT
7002020-11-01 Tom Tromey <tom@tromey.com>
701
702 * dbxread.c (dbx_symfile_read): Update.
703 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
704 * xcoffread.c (xcoff_initial_scan): Update.
705 * psympriv.h (init_psymbol_list): Don't declare.
706 * psymtab.c (init_psymbol_list): Remove.
707
60bd1d53
JB
7082020-11-01 Joel Brobecker <brobecker@adacore.com>
709
710 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
711 gnat_encoded_fixed_type_info. Update all callers.
712
db99d0d0
JB
7132020-11-01 Joel Brobecker <brobecker@adacore.com>
714
715 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
716 line too long.
717
75f24e86
JB
7182020-11-01 Joel Brobecker <brobecker@adacore.com>
719
720 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
721 cast_from_fixed. Update all callers.
722 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
723 Update all callers.
724 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
725 Update all callers.
726 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
727 ada_scaling_factor.
728 * ada-typeprint.c: Replace call to ada_scaling_factor by call
729 to print_gnat_encoded_fixed_point_type.
730 * ada-valprint.c: Likewise.
731
4f0469cd
AB
7322020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
733
734 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
735 (debug_prefixed_printf): Add check of debug_displaced flag.
736 * linux-nat.c (linux_nat_debug_printf): Add check of
737 debug_linux_nat flag.
738
17417fb0
SM
7392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
740
741 * infrun.c (infrun_debug_printf_1): Remove.
742 (displaced_debug_printf_1): Remove.
743 (stop_all_threads): Use debug_prefixed_printf.
744 * infrun.h (infrun_debug_printf_1): Remove.
745 (infrun_debug_printf): Use debug_prefixed_printf.
746 (displaced_debug_printf_1): Remove.
747 (displaced_debug_printf): Use debug_prefixed_printf.
748 * linux-nat.c (linux_nat_debug_printf_1): Remove.
749 (linux_nat_debug_printf): Use debug_prefixed_printf.
750
ad6dba1c
SM
7512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
752
753 * configure: Re-generate.
754 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
755 AC_LANG_PROGRAM.
756
b6fb30ed
SM
7572020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
758
759 * configure: Re-generate.
760
5164c117
SM
7612020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * configure: Re-generate.
764
864ca435
SM
7652020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
766
767 * configure: Re-generate.
768
b9442ec1
SM
7692020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * configure: Re-generate.
772
294f2697
SM
7732020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
774
775 * acinclude.m4: Modernize.
776 * configure: Re-generate.
777
5593a99a
SM
7782020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
779
780 * configure.ac: Modernize.
781 * configure: Re-generate.
782
e41fda1d
SM
7832020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
784
785 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
786 * configure: Re-generate.
787 * configure.ac: Remove AM_PROG_CC_STDC.
788
91e1a0ed
SM
7892020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
790
791 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
792 AC_CANONICAL_SYSTEM.
793 * configure: Re-generate.
794
136821d9
SM
7952020-10-30 Simon Marchi <simon.marchi@efficios.com>
796
797 * infrun.h (displaced_debug_printf): New macro. Replace
798 displaced debug prints throughout to use it.
799 (displaced_debug_printf_1): New declaration.
800 (displaced_step_dump_bytes): Return string, remove ui_file
801 parameter, update all callers.
802 * infrun.c (displaced_debug_printf_1): New function.
803 (displaced_step_dump_bytes): Return string, remove ui_file
804 parameter
805
aa2045e7
SM
8062020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
807
808 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
809
b1ec2735
TT
8102020-10-30 Tom Tromey <tromey@adacore.com>
811
812 * Makefile.in (stamp-init): Depend on config.status.
813
b78b3a29
TBA
8142020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
815
816 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
817
d70bdd3c
PA
8182020-10-30 Pedro Alves <pedro@palves.net>
819
820 * thread.c (lookup_selected_frame): Move ...
821 * frame.c (lookup_selected_frame): ... here.
822
79952e69
PA
8232020-10-30 Pedro Alves <pedro@palves.net>
824
825 * blockframe.c (block_innermost_frame): Use get_selected_frame.
826 * frame.c
827 (scoped_restore_selected_frame::scoped_restore_selected_frame):
828 Use save_selected_frame. Save language as well.
829 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
830 Use restore_selected_frame, and restore language as well.
831 (selected_frame_id, selected_frame_level): New.
832 (selected_frame): Update comments.
833 (save_selected_frame, restore_selected_frame): New.
834 (get_selected_frame): Use lookup_selected_frame.
835 (get_selected_frame_if_set): Delete.
836 (select_frame): Record selected_frame_level and selected_frame_id.
837 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
838 fields.
839 (get_selected_frame): Make 'message' parameter optional.
840 (get_selected_frame_if_set): Delete declaration.
841 (select_frame): Update comments.
842 (save_selected_frame, restore_selected_frame)
843 (lookup_selected_frame): Declare.
844 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
845 * infrun.c (struct infcall_control_state) <selected_frame_level>:
846 New field.
847 (save_infcall_control_state): Use save_selected_frame.
848 (restore_selected_frame): Delete.
849 (restore_infcall_control_state): Use restore_selected_frame.
850 * stack.c (select_frame_command_core, frame_command_core): Use
851 get_selected_frame.
852 * thread.c (restore_selected_frame): Rename to ...
853 (lookup_selected_frame): ... this and make extern. Select the
854 current frame if the frame level is -1.
855 (scoped_restore_current_thread::restore): Also restore the
856 language.
857 (scoped_restore_current_thread::~scoped_restore_current_thread):
858 Don't try/catch.
859 (scoped_restore_current_thread::scoped_restore_current_thread):
860 Save the language as well. Use save_selected_frame.
861
58103c33
SM
8622020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
863
864 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
865 documentation.
866 * gdbarch.h: Re-generate.
867
40a53766
SM
8682020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
869
870 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
871 parameter.
872 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
873 Likewise.
874 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
875 Likewise.
876 * arch-utils.c (default_displaced_step_hw_singlestep):
877 Likewise.
878 * arch-utils.h (default_displaced_step_hw_singlestep):
879 Likewise.
880 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
881 Likewise.
882 * s390-tdep.c (s390_displaced_step_hw_singlestep):
883 Likewise.
884 * gdbarch.c: Re-generate.
885 * gdbarch.h: Re-generate.
886 * infrun.c (resume_1): Adjust.
887
8407f91b
TT
8882020-10-29 Tom Tromey <tom@tromey.com>
889
890 * progspace.c (program_space::~program_space): Don't call
891 exec_close.
892
5008b3b2
TT
8932020-10-29 Tom Tromey <tom@tromey.com>
894
895 * exec.c (exec_target::close): Don't change current program
896 space.
897
d9eebde0
TT
8982020-10-29 Tom Tromey <tom@tromey.com>
899
900 * symfile.c (add_symbol_file_command): Update.
901 * exec.c (program_space::add_target_sections): Rename.
902 * symfile-mem.c (symbol_file_add_from_memory): Update.
903 * progspace.h (struct program_space) <add_target_sections>:
904 Declare new overload.
905 * exec.h (add_target_sections_of_objfile): Don't declare.
906
3769e227
TT
9072020-10-29 Tom Tromey <tom@tromey.com>
908
909 * solib.c (solib_map_sections): Update.
910 * exec.c (program_space::add_target_sections): Now a method.
911 (exec_file_attach): Update.
912 * exec.h (add_target_sections): Don't declare.
913 * progspace.h (struct program_space) <add_target_sections>:
914 Declare.
915
2a3f84af
TT
9162020-10-29 Tom Tromey <tom@tromey.com>
917
918 * progspace.h (struct program_space) <remove_target_sections>:
919 Declare.
920 * exec.c (program_space::remove_target_sections): Now a method.
921 * exec.h (remove_target_sections): Don't declare.
922
004eecfd
TT
9232020-10-29 Tom Tromey <tom@tromey.com>
924
925 * inferior.c (delete_inferior): Update.
926 * progspace.c (program_space::empty): Rename from
927 program_space_empty_p. Return bool.
928 * progspace.h (struct program_space) <empty>: New method.
929 (program_space_empty_p): Don't declare.
930
e39fb971
TT
9312020-10-29 Tom Tromey <tom@tromey.com>
932
933 * progspace.c (program_space::~program_space): Don't call
934 clear_program_space_solib_cache.
935 (program_space::clear_solib_cache): Rename from
936 clear_solib_cache.
937 * solib.c (handle_solib_event): Update.
938 * progspace.h (struct program_space) <clear_solib_cache>: New
939 method.
940 (clear_program_space_solib_cache): Don't declare.
941
a42d7dd8
TT
9422020-10-29 Tom Tromey <tom@tromey.com>
943
944 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
945 * target.c (info_target_command): Update.
946 * symfile.c (syms_from_objfile_1, finish_new_objfile)
947 (symbol_file_clear, reread_symbols): Update.
948 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
949 * stabsread.c (scan_file_globals): Update.
950 * solib.c (update_solib_list): Update.
951 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
952 (svr4_fetch_objfile_link_map, enable_break)
953 (svr4_relocate_main_executable)
954 (svr4_iterate_over_objfiles_in_search_order): Update.
955 * solib-frv.c (lm_base, enable_break)
956 (frv_relocate_main_executable): Update.
957 (main_got, frv_fdpic_find_canonical_descriptor): Update.
958 (frv_fetch_objfile_link_map): Update.
959 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
960 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
961 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
962 * remote.c (remote_target::get_offsets): Update.
963 (remote_target::start_remote)
964 (extended_remote_target::post_attach): Update.
965 * objfiles.c (entry_point_address_query): Update.
966 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
967 * minsyms.c (get_symbol_leading_char): Update.
968 * frame.c (inside_main_func): Update.
969 * progspace.h (symfile_objfile): Remove macro.
970
19f6550e
TT
9712020-10-29 Tom Tromey <tom@tromey.com>
972
973 * exec.c (exec_file_attach): Update.
974 * progspace.c (program_space::exec_close): Update.
975 * progspace.h (struct program_space) <ebfd>: Now a
976 gdb_bfd_ref_ptr.
977 <set_exec_bfd>: Change argument type.
978 <exec_bfd>: Update.
979
7e10abd1
TT
9802020-10-29 Tom Tromey <tom@tromey.com>
981
982 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
983 * symfile.c (reread_symbols): Update.
984 * symfile-mem.c (add_symbol_file_from_memory_command)
985 (add_vsyscall_page): Update.
986 * source-cache.c (source_cache::get_plain_source_lines): Update.
987 * solib-svr4.c (find_program_interpreter, elf_locate_base)
988 (svr4_current_sos_direct, svr4_exec_displacement)
989 (svr4_relocate_main_executable): Update.
990 (svr4_iterate_over_objfiles_in_search_order): Update.
991 * solib-frv.c (enable_break2, enable_break): Update.
992 * solib-dsbt.c (lm_base, enable_break): Update.
993 * solib-darwin.c (find_program_interpreter)
994 (darwin_solib_create_inferior_hook): Update.
995 * sol-thread.c (rw_common, ps_pdmodel): Update.
996 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
997 * remote.c (compare_sections_command)
998 (remote_target::trace_set_readonly_regions): Update.
999 * remote-sim.c (get_sim_inferior_data)
1000 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1001 (gdbsim_target_open, gdbsim_target::files_info): Update.
1002 * exec.h (exec_bfd): Remove macro.
1003 * progspace.c (initialize_progspace): Update.
1004 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1005 Update.
1006 * nto-procfs.c (nto_procfs_target::post_attach)
1007 (nto_procfs_target::create_inferior): Update.
1008 * maint.c (maintenance_info_sections): Update.
1009 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1010 Update.
1011 * infcmd.c (post_create_inferior): Update.
1012 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1013 (objfile_find_memory_regions): Update.
1014 * exec.c (validate_exec_file, exec_file_attach)
1015 (exec_read_partial_read_only, print_section_info): Update.
1016 * corelow.c (core_target_open): Update.
1017 * corefile.c (reopen_exec_file, validate_files): Update.
1018 * arm-tdep.c (gdb_print_insn_arm): Update.
1019 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1020 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1021 methods.
1022
b55221ab
TT
10232020-10-29 Tom Tromey <tom@tromey.com>
1024
1025 * progspace.h (current_target_sections): Remove macro.
1026 * solib-svr4.c (scan_dyntag): Update.
1027 * solib-dsbt.c (scan_dyntag): Update.
1028 * exec.c (exec_target::close): Update.
1029 (add_target_sections, add_target_sections_of_objfile)
1030 (remove_target_sections, exec_target::get_section_table)
1031 (exec_target::files_info, set_section_command)
1032 (exec_set_section_address, exec_target::has_memory)
1033 (exec_target::has_memory): Update.
1034
5a36e715
TT
10352020-10-29 Tom Tromey <tom@tromey.com>
1036
1037 * source-cache.c (source_cache::get_plain_source_lines): Use
1038 current_program_space.
1039 * corefile.c (reopen_exec_file): Use current_program_space.
1040 * exec.c (exec_file_attach): Use current_program_space.
1041 * exec.h (exec_bfd_mtime): Remove.
1042
784c8592
TT
10432020-10-29 Tom Tromey <tom@tromey.com>
1044
1045 * gcore.c (default_gcore_mach): Remove.
1046 (create_gcore_bfd): Update.
1047
8a4f1402
TT
10482020-10-29 Tom Tromey <tom@tromey.com>
1049
1050 * progspace.c (program_space::exec_close): New method, from
1051 exec_close in exec.c.
1052 * exec.c (exec_close): Move to progspace.c.
1053 (exec_target::close, exec_file_attach): Update.
1054 * progspace.h (struct program_space) <exec_close>: Declare
1055 method.
1056
c20cb686
TT
10572020-10-29 Tom Tromey <tom@tromey.com>
1058
1059 * progspace.h (struct program_space) <exec_filename>: Rename from
1060 pspace_exec_filename. Now a unique_xmalloc_ptr.
1061 * inferior.c (print_selected_inferior): Update.
1062 (print_inferior): Update.
1063 * mi/mi-main.c (print_one_inferior): Update.
1064 * exec.h (exec_filename): Remove macro.
1065 * corefile.c (get_exec_file): Update.
1066 * exec.c (exec_close): Update.
1067 (exec_file_attach): Update.
1068 * progspace.c (clone_program_space): Update.
1069 (print_program_space): Update.
1070
6be2a9ab
TT
10712020-10-29 Tom Tromey <tom@tromey.com>
1072
1073 * target-section.h (struct target_section): Add constructor.
1074 * exec.c (build_section_table, add_target_sections_of_objfile):
1075 Update.
1076 * corelow.c (core_target::build_file_mappings): Update.
1077
cfaa8f76
TBA
10782020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1079
1080 PR gdb/19318
1081 * inferior.c (detach_inferior_command): Restore the current thread.
1082 (kill_inferior_command): Ditto.
1083
1b00ef06
TV
10842020-10-28 Tom de Vries <tdevries@suse.de>
1085
1086 PR symtab/26772
1087 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1088 map, check it in the "best match" loop.
1089
7f40ce1a
SM
10902020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1091
1092 * m32c-tdep.c: Remove unused includes.
1093
5eb9e3f5
SM
10942020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1095
1096 * xtensa-tdep.c: Remove includes.
1097
b1d4d8d1
TBA
10982020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1099
1100 * breakpoint.c (struct condition_command_opts): New struct.
1101 (condition_command_option_defs): New static global.
1102 (make_condition_command_options_def_group): New function.
1103 (condition_completer): Update to consider the '-force' flag.
1104 (condition_command): Use gdb::option for the '-force' flag.
1105
bd24c5d6
TV
11062020-10-27 Tom de Vries <tdevries@suse.de>
1107
1108 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1109 symbols in section check.
1110
61eb46a4
TV
11112020-10-27 Tom de Vries <tdevries@suse.de>
1112
1113 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1114
733d554a
TBA
11152020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1116
1117 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1118 * breakpoint.c: Update the help text of the 'condition' and 'break'
1119 commands.
1120 (set_breakpoint_condition): Take a new bool parameter
1121 to control whether condition definition should be forced even when
1122 the condition expression is invalid in all of the current locations.
1123 (condition_command): Update the call to 'set_breakpoint_condition'.
1124 (find_condition_and_thread): Take the "-force-condition" flag into
1125 account.
1126 * linespec.c (linespec_keywords): Add "-force-condition" as an
1127 element.
1128 (FORCE_KEYWORD_INDEX): New #define.
1129 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1130 as a keyword.
1131 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1132 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1133 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1134 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1135
b5fa468f
TBA
11362020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1137
1138 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1139 * breakpoint.c (set_breakpoint_location_condition): New function.
1140 (set_breakpoint_condition): Disable a breakpoint location if parsing
1141 the condition string gives an error.
1142 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1143 (build_target_condition_list): Ditto.
1144 (build_target_command_list): Ditto.
1145 (build_bpstat_chain): Ditto.
1146 (print_one_breakpoint_location): Ditto.
1147 (print_one_breakpoint): Ditto.
1148 (breakpoint_1): Ditto.
1149 (bp_location::bp_location): Ditto.
1150 (locations_are_equal): Ditto.
1151 (update_breakpoint_locations): Ditto.
1152 (enable_disable_bp_num_loc): Ditto.
1153 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1154 (find_condition_and_thread_for_sals): New static function.
1155 (create_breakpoint): Call find_condition_and_thread_for_sals.
1156 (location_to_sals): Call find_condition_and_thread_for_sals instead
1157 of find_condition_and_thread.
1158
1c47ec3e
TV
11592020-10-26 Tom de Vries <tdevries@suse.de>
1160
1161 * dwarf2/read.c (process_full_comp_unit): Call
1162 dwarf2_find_base_address.
1163
6390859c
TT
11642020-10-26 Tom Tromey <tromey@adacore.com>
1165
1166 * gdbtypes.c (create_range_type): Revert previous patch. Add
1167 comment.
1168
d744f0f9
PA
11692020-10-26 Pedro Alves <pedro@palves.net>
1170
1171 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1172 (my_waitpid): Use gdb::handle_eintr.
1173
006811bc
SM
11742020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1175
1176 * acinclude.m4: Update ptrace.m4 path.
1177 * ptrace.m4: Moved to gdbsupport.
1178
c75e31a1
SM
11792020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1180
1181 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1182 instead of target_gdbarch.
1183
32495661
SM
11842020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1185
1186 * jit.c (jit_reader_load_command): Pass current inferior.
1187 (jit_inferior_init): Change parameter type to inferior, use it.
1188 (jit_inferior_created): Remove.
1189 (jit_inferior_created_hook): Pass inferior parameter down.
1190 (_initialize_jit): Use jit_inferior_created_hook instead of
1191 jit_inferior_created.
1192 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1193 * infrun.c (follow_exec): Pass inferior to
1194 jit_inferior_created_hook.
1195
3f66685e
SM
11962020-10-24 Simon Marchi <simon.marchi@efficios.com>
1197
1198 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1199 parameter and use it.
1200 (thread_db_inferior_created): Pass inferior argument.
1201
a0ff652f
SM
12022020-10-24 Simon Marchi <simon.marchi@efficios.com>
1203
1204 * aix-thread.c (aix_thread_inferior_created): Add inferior
1205 parameter.
1206 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1207 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1208 * jit.c (jit_inferior_created): Likewise.
1209 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1210 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1211 * observable.h (inferior_created): Likewise.
1212 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1213 * symfile-mem.c (add_vsyscall_page): Likewise.
1214 * infcmd.c (post_create_inferior): Pass inferior argument.
1215
3c67532c
JB
12162020-10-24 Joel Brobecker <brobecker@adacore.com>
1217
1218 GDB 10.1 released.
1219
8747316e
JB
12202020-10-23 Joel Brobecker <brobecker@adacore.com>
1221
1222 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1223 to ada_check_typedef.
1224
1a0ea399
AB
12252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1226
1227 * f-exp.y (f_parse): Rename to...
1228 (f_language::parser): ...this.
1229 * f-lang.c (f_get_encoding): Rename to...
1230 (f_language::get_encoding): ...this.
1231 (f_op_print_tab): Rename to...
1232 (f_language::op_print_tab): ...this.
1233 (exp_descriptor_f): Rename to...
1234 (f_language::exp_descriptor_tab): ...this.
1235 (class f_language): Moved to f-lang.h.
1236 (f_language::language_arch_info): New function, moved out of class
1237 declaration.
1238 (f_language::search_name_hash): Likewise.
1239 (f_language::lookup_symbol_nonlocal): Likewise.
1240 (f_language::get_symbol_name_matcher_inner): Likewise.
1241 * f-lang.h: Add 'valprint.h' include.
1242 (class f_language): Moved here from f-lang.c.
1243 * f-typeprint.c (f_type_print_args): Delete commented out
1244 declaration.
1245 (f_print_typedef): Rename to...
1246 (f_language::print_typedef): ...this.
1247 (f_print_type): Rename to...
1248 (f_language::print_type): ...this.
1249 (f_type_print_varspec_prefix): Delete declaration and rename to...
1250 (f_language::f_type_print_varspec_prefix): ...this.
1251 (f_type_print_varspec_suffix): Delete declaration and rename to...
1252 (f_language::f_type_print_varspec_suffix): ...this.
1253 (f_type_print_base): Delete declaration and rename to...
1254 (f_language::f_type_print_base): ...this.
1255 * f-valprint.c (f_value_print_inner): Rename to...
1256 (f_language::value_print_inner): ...this.
1257 * parse.c: Delete 'f-lang.h' include.
1258
88cefd9b
AB
12592020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1260
1261 * language.h (language_defn::print_type): Add variable names in
1262 declaration, and update header comment.
1263
5399db93
AB
12642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1265
1266 * ada-lang.c (ada_language::demangle): Rename to...
1267 (ada_language::demangle_symbol): ...this.
1268 * c-lang.c (cplus_language::demangle): Rename to...
1269 (cplus_language::demangle_symbol): ...this.
1270 * d-lang.c (d_language::demangle): Rename to...
1271 (d_language::demangle_symbol): ...this.
1272 * f-lang.c (f_language::demangle): Rename to...
1273 (f_language::demangle_symbol): ...this.
1274 * go-lang.c (go_language::demangle): Rename to...
1275 (go_language::demangle_symbol): ...this.
1276 * language.c (language_demangle): Update call to demangle_symbol.
1277 (auto_or_unknown_language::demangle): Rename to...
1278 (auto_or_unknown_language::demangle_symbol): ...this.
1279 * language.h (language_defn::demangle): Rename to...
1280 (language_defn::demangle_symbol): ...this.
1281 * objc-lang.c (objc_language::demangle): Rename to...
1282 (objc_language::demangle_symbol): ...this.
1283 * rust-lang.c (rust_language::demangle): Rename to...
1284 (rust_language::demangle_symbol): ...this.
1285
4b2f86ef
AB
12862020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1289 (iterate_over_file_blocks): Replace use of macro with the macros
1290 definition.
1291
e74b39de
AB
12922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1295 * valprint.c (maybe_print_array_index): Replace use of macro with
1296 the macros definition.
1297
00c696a6
AB
12982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * ada-lang.c (ada_language::print_array_index): Call value_print
1301 directly.
1302 * language.c (language_defn::print_array_index): Likewise.
1303 * language.h (LA_VALUE_PRINT): Delete.
1304 * valprint.c (value_print): Call value_print on the
1305 current_language directly.
1306
d3b67c56
AB
13072020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1308
1309 * language.h (LA_PRINT_TYPEDEF): Delete.
1310 * typeprint.c (typedef_print): Call print_typedef directly on the
1311 current_language object.
1312
790e2a12
AB
13132020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * m2-exp.y (m2_parse): Rename to...
1316 (m2_language::parser): ...this. Update function signature.
1317 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1318 (m2_op_print): Rename to...
1319 (m2_language::op_print_tab): ...this, and make const.
1320 (exp_descriptor_modula2): Rename to...
1321 (m2_language::exp_descriptor_modula2): ...this.
1322 (class m2_language): Move to m2-lang.h.
1323 (m2_language::language_arch_info): New function, moved out of
1324 class declaration.
1325 (m2_language::printchar): New function, body from m2_printchar.
1326 (m2_language::printstr): New function, moved out of class
1327 declaration.
1328 (m2_language::emitchar): Likewise.
1329 * m2-lang.h (m2_parse): Delete declaration.
1330 (m2_print_typedef): Delete declaration.
1331 (m2_value_print_inner): Delete declaration.
1332 (class m2_language): Class declaration moved from m2-lang.c,
1333 larger functions are left in m2-lang.c.
1334 * m2-typeprint.c (m2_print_typedef): Rename to...
1335 (m2_language::print_typedef): ...this, and update function
1336 signature.
1337 * m2-valprint.c (m2_value_print_inner): Rename to...
1338 (m2_language::value_print_inner): ...this, replace use of
1339 LA_PRINT_STRING with a direct call to printstr member function,
1340 and update recursive call.
1341
b01175fc
AB
13422020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1343
1344 * language.c (default_is_string_type_p): Delete, implementation
1345 moved into auto_or_unknown_language::is_string_type_p.
1346 (unk_op_print_tab): Moved into
1347 auto_or_unknown_language::opcode_print_table.
1348 (unknown_language_arch_info): Delete, implementation moved into
1349 auto_or_unknown_language::language_arch_info.
1350 (class auto_or_unknown_language): New class, member functions
1351 copied from unknown_language class, with some updates.
1352 (class unknown_language): Most member functions moved into
1353 auto_or_unknown_language class. Inherit from
1354 auto_or_unknown_language class.
1355 (class auto_language): Inherit from auto_or_unknown_language.
1356 Delete most member functions.
1357
1a97fe8c
HD
13582020-10-22 Hannes Domani <ssbssa@yahoo.de>
1359
1360 * stabsread.c (read_member_functions): Remove gdb_assert.
1361
6b9d0dfd
HD
13622020-10-22 Hannes Domani <ssbssa@yahoo.de>
1363
1364 * gdbtypes.c (init_complex_type): Check target type name.
1365
4b4bb603
SM
13662020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1367
1368 * target-debug.h (target_debug_print_struct_target_ops_p):
1369 Remove.
1370 (target_debug_print_async_callback_ftype_p): Remove.
1371 (target_debug_print_struct_trace_state_variable_p): Remove.
1372 (target_debug_print_struct_traceframe_info_p): Remove.
1373 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1374 (target_debug_print_enum_btrace_format): Remove.
1375 (target_debug_print_enum_info_proc_what): Remove.
1376 (target_debug_print_thread_info_pp): Remove.
1377
24f5300a
SM
13782020-10-22 Simon Marchi <simon.marchi@efficios.com>
1379
1380 * target.h (struct target_ops) <make_corefile_notes>:
1381 Change return type to unique pointer.
1382 * target.c (dummy_make_corefile_notes): Likewise.
1383 * exec.c (struct exec_target) <make_corefile_notes>:
1384 Likewise.
1385 (exec_target::make_corefile_notes): Likewise.
1386 * procfs.c (class procfs_target) <make_corefile_notes>:
1387 Likewise.
1388 (procfs_do_thread_registers): Adjust to unique pointer.
1389 (struct procfs_corefile_thread_data): Add constructor.
1390 <note_data>: Change type to unique pointer.
1391 (procfs_corefile_thread_callback): Adjust to unique pointer.
1392 (procfs_target::make_corefile_notes): Change return type to
1393 unique pointer.
1394 * target-delegates.c: Re-generate.
1395 * gcore.c (write_gcore_file_1): Adjust.
1396 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1397 New.
1398
5fb4027f
TV
13992020-10-22 Tom de Vries <tdevries@suse.de>
1400
1401 * block.c (find_block_in_blockvector): Make sure the returned block
1402 contains pc.
1403
4a636814
SM
14042020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1405
1406 PR gdb/26693
1407 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1408 parameter.
1409 (load_cu): Pass existing CU.
1410 (process_imported_unit_die): Likewise.
1411 (follow_die_offset): Likewise.
1412
1bd57575
LM
14132020-10-22 Luis Machado <luis.machado@linaro.org>
1414
1415 * corelow.c (core_target::xfer_partial): Also check for an empty
1416 m_core_unavailable_mappings vector.
1417
6b4c676c
AB
14182020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1419
1420 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1421 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1422 * f-exp.y (arglist): Allow for a series of subranges.
1423 (subrange): Add cases for subranges with strides.
1424 * f-lang.c (value_f90_subarray): Catch use of array strides and
1425 throw an error.
1426 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1427
f2d8e4c5
AB
14282020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1429
1430 * expprint.c (print_subexp_standard): Change enum range_type to
1431 range_flag and rename variables to match.
1432 (dump_subexp_body_standard): Likewise.
1433 * expression.h (enum range_type): Rename to...
1434 (enum range_flag): ...this.
1435 (range_types): Rename to...
1436 (range_flags): ...this.
1437 * f-lang.c (value_f90_subarray): Change enum range_type to
1438 range_flag and rename variables to match.
1439 * parse.c (operator_length_standard): Likewise.
1440 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1441 range_type to range_flag.
1442 * rust-lang.c (rust_evaluate_funcall): Likewise.
1443 (rust_range): Likewise.
1444 (rust_compute_range): Likewise.
1445 (rust_subscript): Likewise.
1446
2f1b18db
AB
14472020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1448
1449 * expprint.c (print_subexp_standard): Update to reflect changes to
1450 enum range_type.
1451 (dump_subexp_body_standard): Likewise.
1452 * expression.h (enum range_type): Convert to a bit field enum, and
1453 make the enum unsigned.
1454 * f-exp.y (subrange): Update to reflect changes to enum
1455 range_type.
1456 * f-lang.c (value_f90_subarray): Likewise.
1457 * parse.c (operator_length_standard): Likewise.
1458 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1459 * rust-lang.c (rust_range): Likewise.
1460 (rust_compute_range): Likewise.
1461 (rust_subscript): Likewise.
1462
a46d1843
SM
14632020-10-21 Simon Marchi <simon.marchi@efficios.com>
1464
1465 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1466 (displaced_step_in_progress): Fix comment.
1467
c21f37a8
SM
14682020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1469
1470 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1471 * gdbarch.c: Re-generate.
1472 * gdbarch.h: Re-generate.
1473 * gcore.c (write_gcore_file_1): Adjust.
1474 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1475 constructor.
1476 <note_data>: Change type to unique pointer.
1477 <abort_iteration>: Change type to bool.
1478 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1479 (fbsd_collect_thread_registers): Return void, adjust.
1480 (struct fbsd_corefile_thread_data): Add construtor.
1481 <note_data>: Change type to unique pointer.
1482 (fbsd_corefile_thread): Adjust.
1483 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1484 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1485 to unique pointer, adjust.
1486 (struct linux_collect_regset_section_cb_data): Add constructor.
1487 <note_data>: Change type to unique pointer.
1488 <abort_iteration>: Change type to bool.
1489 (linux_collect_thread_registers): Return void, adjust.
1490 (struct linux_corefile_thread_data): Add constructor.
1491 <note_data>: Change type to unique pointer.
1492 (linux_corefile_thread): Adjust.
1493 (linux_make_corefile_notes): Return unique pointer, adjust.
1494
07fbbd01
SM
14952020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1496
1497 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1498 * gdbarch.c: Re-generate.
1499 * gdbarch.h: Re-generate.
1500 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1501 bool.
1502 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1503 Likewise.
1504 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1505 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1506 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1507 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1508
39535193
SM
15092020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1510
1511 * gdbarch.sh: Make generated predicates return bool.
1512 * gdbarch.c: Re-generate.
1513 * gdbarch.h: Re-generate.
1514
ad523d01
TT
15152020-10-20 Tom Tromey <tom@tromey.com>
1516
1517 * varobj-iter.h (struct varobj_item): Remove typedef.
1518
c4464ade
SM
15192020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1520
1521 * infrun.c (currently_stepping): Change int to bool
1522 (maybe_software_singlestep): Likewise.
1523 (show_stop_on_solib_events): Likewise.
1524 (stepping_past_nonsteppable_watchpoint): Likewise.
1525 (displaced_step_in_progress_any_inferior): Likewise.
1526 (displaced_step_in_progress_thread): Likewise.
1527 (keep_going_stepped_thread): Likewise.
1528 (thread_still_needs_step_over): Likewise.
1529 (start_step_over): Likewise.
1530 (do_target_resume): Likewise.
1531 (resume_1): Likewise.
1532 (clear_proceed_status): Likewise.
1533 (thread_still_needs_step_over_bp): Likewise.
1534 (proceed): Likewise.
1535 (switch_back_to_stepped_thread): Likewise.
1536 (adjust_pc_after_break): Likewise.
1537 (stepped_in_from): Likewise.
1538 (handle_stop_requested): Likewise.
1539 (handle_syscall_event): Likewise.
1540 (handle_no_resumed): Likewise.
1541 (handle_inferior_event): Likewise.
1542 (finish_step_over): Likewise.
1543 (handle_signal_stop): Likewise.
1544 (process_event_stop_test): Likewise.
1545
2eb20436
SM
15462020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1547
1548 * infrun.c (get_displaced_stepping_state): Fix comment.
1549
e0c45ded
AS
15502020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1551
1552 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1553
22cc388e
TT
15542020-10-19 Tom Tromey <tromey@adacore.com>
1555
1556 PR tui/26719
1557 * tui/tui-winsource.h (struct tui_source_window_base)
1558 <refresh_window>: Rename from refresh_pad.
1559 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1560 Rename from refresh_pad.
1561 (tui_source_window_base::show_source_content)
1562 (tui_source_window_base::do_scroll_horizontal): Update.
1563
3c6eb4d4
TBA
15642020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1565
1566 * thread.c (_initialize_thread): Fine-tune the help text of
1567 'info threads'.
1568
26703721
TBA
15692020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1570
1571 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1572
61c26be8
MS
15732020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1574
1575 * breakpoint.c (handle_jit_event): Add an argument, change how
1576 `jit_event_handler` is called.
1577
932539d7
TT
15782020-10-17 Tom Tromey <tom@tromey.com>
1579
1580 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1581 (scan_xcoff_symtab): Update.
1582 * psymtab.h (class psymtab_storage) <global_psymbols,
1583 static_psymbols, current_global_psymbols,
1584 current_static_psymbols>: Remove.
1585 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1586 (match_partial_symbol, lookup_partial_symbol): Update.
1587 (print_partial_symbols): Change parameters.
1588 (dump_psymtab, recursively_search_psymtabs)
1589 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1590 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1591 (concat): Remove.
1592 (end_psymtab_common): Simplify.
1593 (append_psymbol_to_list): Change parameters.
1594 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1595 (init_psymbol_list): Simplify.
1596 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1597 * psympriv.h (struct partial_symtab) <empty>: New method.
1598 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1599 Remove.
1600 <global_psymbols, static_psymbols>: New members.
1601 <add_psymbol>: New methods.
1602 (add_psymbol_to_list): Don't declare.
1603 (psymbol_placement): Move earlier.
1604 * mdebugread.c (parse_partial_symbols): Update.
1605 (handle_psymbol_enumerators): Change parameters.
1606 (mdebug_expand_psymtab): Update.
1607 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1608 (add_partial_symbol): Update.
1609 * dwarf2/index-write.c (write_psymbols): Change parameters.
1610 (write_one_signatured_type): Update.
1611 (recursively_count_psymbols): Update.
1612 (recursively_write_psymbols): Update.
1613 (class debug_names) <recursively_write_psymbols>: Update.
1614 <write_psymbols>: Change parameters.
1615 <write_one_signatured_type>: Update.
1616 * dbxread.c (read_dbx_symtab): Update.
1617 (dbx_end_psymtab): Use partial_symtab::empty.
1618 * ctfread.c (struct ctf_context) <pst>: New member.
1619 (create_partial_symtab): Set it.
1620 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1621 (scan_partial_symbols): Use the psymtab's context. Update.
1622
cfabbd35
TT
16232020-10-17 Tom Tromey <tom@tromey.com>
1624
1625 * valprint.c (generic_value_print): Remove comment.
1626 * m2-valprint.c (m2_value_print_inner): Remove comment.
1627 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1628 type.
1629
520596f2
TV
16302020-10-17 Tom de Vries <tdevries@suse.de>
1631
1632 PR symtab/26317
1633 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1634 symbol main.
1635
76547ab3
TV
16362020-10-14 Tom de Vries <tdevries@suse.de>
1637
1638 PR gdb/26733
1639 * solib.c (solib_contains_address_p): Handle
1640 'solib->sections == nullptr'.
1641
d3a07122
SM
16422020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1643
1644 PR gdb/26642
1645 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1646 target can't do async.
1647 * target.c (target_wait): Assert that we don't pass
1648 TARGET_WNOHANG to a target that can't async.
1649
1b71cfcf
KR
16502020-10-13 Kamil Rytarowski <n54@gmx.com>
1651
1652 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1653 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1654 * alpha-bsd-nat.c: Adjust include.
1655 * alpha-bsd-tdep.h: Adjust comment.
1656 * alpha-nbsd-tdep.c: Rename to ...
1657 * alpha-netbsd-tdep.c: ... this, adjust include.
1658 * amd64-nbsd-nat.c: Rename to ...
1659 * amd64-netbsd-nat.c: ... this, adjust include.
1660 * amd64-nbsd-tdep.c: Rename to ...
1661 * amd64-netbsd-tdep.c: ... this, adjust include.
1662 * amd64-tdep.h: Adjust include.
1663 * arm-nbsd-nat.c: Rename to ...
1664 * arm-netbsd-nat.c: ... this, adjust include.
1665 * arm-nbsd-tdep.c: Rename to ...
1666 * arm-netbsd-tdep.c: ... this, adjust include.
1667 * arm-nbsd-tdep.h: Rename to ...
1668 * arm-netbsd-tdep.h: ... this, adjust include.
1669 * configure.nat: Adjust file lists.
1670 * configure.tgt: Likewise.
1671 * hppa-nbsd-nat.c: Rename to ...
1672 * hppa-netbsd-nat.c: ... this, adjust include.
1673 * hppa-nbsd-tdep.c: Rename to ...
1674 * hppa-netbsd-tdep.c: ... this, adjust include.
1675 * i386-nbsd-nat.c: Rename to ...
1676 * i386-netbsd-nat.c: ... this, adjust include.
1677 * i386-nbsd-tdep.c: Rename to ...
1678 * i386-netbsd-tdep.c: ... this, adjust include.
1679 * m68k-bsd-nat.c: Adjust include.
1680 * mips-nbsd-nat.c: Rename to ...
1681 * mips-netbsd-nat.c: ... this, adjust include.
1682 * mips-nbsd-tdep.c: Rename to ...
1683 * mips-netbsd-tdep.c: ... this, adjust include.
1684 * mips-nbsd-tdep.h: Rename to ...
1685 * mips-netbsd-tdep.h: ... this.
1686 * nbsd-nat.c: Rename to ...
1687 * netbsd-nat.c: ... this, adjust include.
1688 * nbsd-nat.h: Rename to ...
1689 * netbsd-nat.h: ... this, adjust include.
1690 * nbsd-tdep.c: Rename to ...
1691 * netbsd-tdep.c: ... this, adjust include.
1692 * nbsd-tdep.h: Rename to ...
1693 * netbsd-tdep.h: ... this.
1694 * ppc-nbsd-nat.c: Rename to ...
1695 * ppc-netbsd-nat.c: ... this, adjust include.
1696 * ppc-nbsd-tdep.c: Rename to ...
1697 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1698 * ppc-nbsd-tdep.h: Rename to ...
1699 * ppc-netbsd-tdep.h: ... this.
1700 * sh-nbsd-nat.c: Rename to ...
1701 * sh-netbsd-nat.c: ... this, adjust include.
1702 * sh-nbsd-tdep.c: Rename to ...
1703 * sh-netbsd-tdep.c: ... this, adjust include.
1704 * sparc-nbsd-nat.c: Rename to ...
1705 * sparc-netbsd-nat.c: ... this.
1706 * sparc-nbsd-tdep.c: Rename to ...
1707 * sparc-netbsd-tdep.c: ... this, adjust include.
1708 * sparc64-nbsd-nat.c: Rename to ...
1709 * sparc64-netbsd-nat.c: ... this.
1710 * sparc64-nbsd-tdep.c: Rename to ...
1711 * sparc64-netbsd-tdep.c: ... this, adjust include.
1712 * sparc64-tdep.h: Adjust comment.
1713 * vax-bsd-nat.c: Adjust include.
1714 * vax-nbsd-tdep.c: Rename to ...
1715 * vax-netbsd-tdep.c: ... this, adjust include.
1716
d7a78e5c
TT
17172020-10-12 Tom Tromey <tom@tromey.com>
1718
1719 * target.h (struct target_ops) <get_section_table>: Update.
1720 (target_get_section_table): Update.
1721 * target.c (target_get_section_table, target_section_by_addr)
1722 (memory_xfer_partial_1): Update.
1723 * target-section.h (target_section_table): Now an alias.
1724 * target-delegates.c: Rebuild.
1725 * target-debug.h (target_debug_print_target_section_table_p):
1726 Rename from target_debug_print_struct_target_section_table_p.
1727 * symfile.c (build_section_addr_info_from_section_table): Update.
1728 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1729 * solib-svr4.c (scan_dyntag): Update.
1730 * solib-dsbt.c (scan_dyntag): Update.
1731 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1732 Update.
1733 * record-full.c (record_full_core_target::xfer_partial): Update.
1734 * progspace.h (struct program_space) <target_sections>: Update.
1735 * exec.h (print_section_info): Update.
1736 * exec.c (exec_target::close, build_section_table)
1737 (add_target_sections, add_target_sections_of_objfile)
1738 (remove_target_sections, exec_on_vfork)
1739 (section_table_available_memory)
1740 (section_table_xfer_memory_partial)
1741 (exec_target::get_section_table, exec_target::xfer_partial)
1742 (print_section_info, set_section_command)
1743 (exec_set_section_address, exec_target::has_memory): Update.
1744 * corelow.c (core_target::build_file_mappings)
1745 (core_target::xfer_partial, core_target::info_proc_mappings)
1746 (core_target::info_proc_mappings): Update.
1747 * bfd-target.c (class target_bfd): Update
1748
eda214ce
TT
17492020-10-12 Tom Tromey <tom@tromey.com>
1750
1751 * progspace.c (program_space::~program_space): Don't call
1752 clear_section_table.
1753 * exec.h (clear_section_table): Don't declare.
1754 * exec.c (exec_target::close): Update.
1755 (clear_section_table): Remove.
1756
91840ee3
TT
17572020-10-12 Tom Tromey <tom@tromey.com>
1758
1759 * exec.c (add_target_sections_of_objfile): Simplify.
1760
2d128614
TT
17612020-10-12 Tom Tromey <tom@tromey.com>
1762
1763 * solib.c (solib_map_sections): Update.
1764 * record-full.c (record_full_core_open_1): Update.
1765 * exec.h (build_section_table): Return a target_section_table.
1766 * exec.c (exec_file_attach): Update.
1767 (build_section_table): Return a target_section_table.
1768 * corelow.c (core_target::core_target): Update.
1769 * bfd-target.c (target_bfd::target_bfd): Update.
1770
bb2a6777
TT
17712020-10-12 Tom Tromey <tom@tromey.com>
1772
1773 * target.c (target_section_by_addr, memory_xfer_partial_1):
1774 Update.
1775 * target-section.h (struct target_section_table): Use
1776 std::vector.
1777 * symfile.h (build_section_addr_info_from_section_table): Take a
1778 target_section_table.
1779 * symfile.c (build_section_addr_info_from_section_table): Take a
1780 target_section_table.
1781 * solist.h (struct so_list) <sections>: Change type.
1782 <sections_end>: Remove.
1783 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1784 (solib_contains_address_p): Update.
1785 * solib-svr4.c (scan_dyntag): Update.
1786 * solib-dsbt.c (scan_dyntag): Update.
1787 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1788 Update.
1789 * record-full.c (record_full_core_start, record_full_core_end):
1790 Remove.
1791 (record_full_core_sections): New global.
1792 (record_full_core_open_1, record_full_core_target::xfer_partial):
1793 Update.
1794 * exec.h (build_section_table, section_table_xfer_memory_partial)
1795 (add_target_sections): Take a target_section_table.
1796 * exec.c (exec_file_attach, clear_section_table): Update.
1797 (resize_section_table): Remove.
1798 (build_section_table, add_target_sections): Take a
1799 target_section_table.
1800 (add_target_sections_of_objfile, remove_target_sections)
1801 (exec_on_vfork): Update.
1802 (section_table_available_memory): Take a target_section_table.
1803 (section_table_read_available_memory): Update.
1804 (section_table_xfer_memory_partial): Take a target_section_table.
1805 (print_section_info, set_section_command)
1806 (exec_set_section_address, exec_target::has_memory): Update.
1807 * corelow.c (class core_target) <m_core_section_table,
1808 m_core_file_mappings>: Remove braces.
1809 <~core_target>: Remove.
1810 (core_target::core_target): Update.
1811 (core_target::~core_target): Remove.
1812 (core_target::build_file_mappings)
1813 (core_target::xfer_memory_via_mappings)
1814 (core_target::xfer_partial, core_target::info_proc_mappings):
1815 Update.
1816 * bfd-target.c (target_bfd::xfer_partial): Update.
1817 (target_bfd::target_bfd): Update.
1818 (target_bfd::~target_bfd): Remove.
1819
7b466b10
TT
18202020-10-12 Tom Tromey <tom@tromey.com>
1821
1822 * target.h (struct target_section, struct target_section_table):
1823 Move to target-section.h.
1824 * target-section.h: New file.
1825
87a37e5e
PA
18262020-10-12 Pedro Alves <pedro@palves.net>
1827
1828 PR exp/26602
1829 * valops.c (struct struct_field_searcher): New.
1830 (update_search_result): Rename to ...
1831 (struct_field_searcher::update_result): ... this. Simplify
1832 prototype. Record all found fields.
1833 (do_search_struct_field): Rename to ...
1834 (struct_field_searcher::search): ... this. Simplify prototype.
1835 Maintain stack of visited baseclass path. Call update_result for
1836 fields too. Keep searching fields in baseclasses instead of
1837 stopping at the first found field.
1838 (search_struct_field): Use struct_field_searcher. When looking
1839 for fields, report ambiguous access attempts.
1840
9370fd51
AB
18412020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1842
1843 * frame.c (inside_main_func): Check full symbols as well as
1844 minimal symbols.
1845
59c8a30b
JB
18462020-10-09 Joel Brobecker <brobecker@adacore.com>
1847
1848 * ada-lang.c (advance_wild_match): Rewrite the function's
1849 description. Change the type of target0, t0 and t1 to char.
1850
7c184d33
TT
18512020-10-09 Tom Tromey <tromey@adacore.com>
1852
1853 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1854
5c4258f4
TT
18552020-10-09 Tom Tromey <tromey@adacore.com>
1856
1857 * ada-lang.h (ada_encode): Return std::string.
1858 * ada-lang.c (ada_encode_1): Return std::string.
1859 (ada_encode): Likewise.
1860 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1861 Update.
1862 * ada-exp.y (block_lookup, write_var_or_type): Update.
1863
3d87245c
HD
18642020-10-09 Hannes Domani <ssbssa@yahoo.de>
1865
1866 PR exp/26714
1867 * printcmd.c (print_formatted): Handle void results as
1868 unformatted prints.
1869
bbb826f5
AB
18702020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1871
1872 * arch/aarch32.c (aarch32_create_target_description): Release the
1873 target_desc_up as late as possible.
1874 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1875 * arch/amd64.c (amd64_create_target_description): Likewise.
1876 * arch/arc.c (arc_create_target_description): Return a
1877 target_desc_up, don't release it.
1878 * arch/arc.h (arc_create_target_description): Update declaration.
1879 (arc_lookup_target_description): Move target_desc_up into the
1880 cache, and return a borrowed pointer.
1881 * arch/arm.c (arm_create_target_description): Release the
1882 target_desc_up as late as possible.
1883 * arch/i386.c (i386_create_target_description): Likewise.
1884 * arch/riscv.h (riscv_create_target_description): Update
1885 declaration to match definition.
1886 * arch/tic6x.c (tic6x_create_target_description): Release the
1887 target_desc_up as late as possible.
1888
361cb219
AB
18892020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1890
1891 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1892 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1893
f5c4b229
JV
18942020-10-09 Jan Vrany <jan.vrany@labware.com>
1895
1896 * source.c (directory_command): Notify observers that "directories"
1897 parameter has changed.
1898
b2701685
TT
18992020-10-08 Tom Tromey <tom@tromey.com>
1900
1901 * cli/cli-cmds.c (print_disassembly): Style function name and
1902 addresses. Add _() wrappers.
1903
ada508b6
SV
19042020-10-08 Shahab Vahedi <shahab@synopsys.com>
1905
1906 * NEWS: Mention ARC support in GDBserver.
1907
51a948fd
AB
19082020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * arch/aarch32.c (aarch32_create_target_description): Release
1911 unique_ptr returned from allocate_target_description.
1912 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1913 * arch/amd64.c (amd64_create_target_description): Likewise.
1914 * arch/arc.c (arc_create_target_description): Likewise.
1915 * arch/arm.c (arm_create_target_description): Likewise.
1916 * arch/i386.c (i386_create_target_description): Likewise.
1917 * arch/riscv.c (riscv_create_target_description): Update return
1918 type. Handle allocate_target_description returning a unique_ptr.
1919 (riscv_lookup_target_description): Update to handle unique_ptr.
1920 * arch/tic6x.c (tic6x_create_target_description): Release
1921 unique_ptr returned from allocate_target_description.
1922 * features/microblaze-with-stack-protect.c: Regenerate.
1923 * features/microblaze.c: Regenerate.
1924 * features/mips-dsp-linux.c: Regenerate.
1925 * features/mips-linux.c: Regenerate.
1926 * features/mips64-dsp-linux.c: Regenerate.
1927 * features/mips64-linux.c: Regenerate.
1928 * features/nds32.c: Regenerate.
1929 * features/nios2.c: Regenerate.
1930 * features/or1k.c: Regenerate.
1931 * features/rs6000/powerpc-32.c: Regenerate.
1932 * features/rs6000/powerpc-32l.c: Regenerate.
1933 * features/rs6000/powerpc-403.c: Regenerate.
1934 * features/rs6000/powerpc-403gc.c: Regenerate.
1935 * features/rs6000/powerpc-405.c: Regenerate.
1936 * features/rs6000/powerpc-505.c: Regenerate.
1937 * features/rs6000/powerpc-601.c: Regenerate.
1938 * features/rs6000/powerpc-602.c: Regenerate.
1939 * features/rs6000/powerpc-603.c: Regenerate.
1940 * features/rs6000/powerpc-604.c: Regenerate.
1941 * features/rs6000/powerpc-64.c: Regenerate.
1942 * features/rs6000/powerpc-64l.c: Regenerate.
1943 * features/rs6000/powerpc-7400.c: Regenerate.
1944 * features/rs6000/powerpc-750.c: Regenerate.
1945 * features/rs6000/powerpc-860.c: Regenerate.
1946 * features/rs6000/powerpc-altivec32.c: Regenerate.
1947 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1948 * features/rs6000/powerpc-altivec64.c: Regenerate.
1949 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1950 * features/rs6000/powerpc-e500.c: Regenerate.
1951 * features/rs6000/powerpc-e500l.c: Regenerate.
1952 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1953 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1954 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1955 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1956 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1957 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1958 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1959 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1960 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1961 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1962 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1963 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1964 * features/rs6000/powerpc-vsx32.c: Regenerate.
1965 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1966 * features/rs6000/powerpc-vsx64.c: Regenerate.
1967 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1968 * features/rs6000/rs6000.c: Regenerate.
1969 * features/rx.c: Regenerate.
1970 * features/s390-gs-linux64.c: Regenerate.
1971 * features/s390-linux32.c: Regenerate.
1972 * features/s390-linux32v1.c: Regenerate.
1973 * features/s390-linux32v2.c: Regenerate.
1974 * features/s390-linux64.c: Regenerate.
1975 * features/s390-linux64v1.c: Regenerate.
1976 * features/s390-linux64v2.c: Regenerate.
1977 * features/s390-te-linux64.c: Regenerate.
1978 * features/s390-tevx-linux64.c: Regenerate.
1979 * features/s390-vx-linux64.c: Regenerate.
1980 * features/s390x-gs-linux64.c: Regenerate.
1981 * features/s390x-linux64.c: Regenerate.
1982 * features/s390x-linux64v1.c: Regenerate.
1983 * features/s390x-linux64v2.c: Regenerate.
1984 * features/s390x-te-linux64.c: Regenerate.
1985 * features/s390x-tevx-linux64.c: Regenerate.
1986 * features/s390x-vx-linux64.c: Regenerate.
1987 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1988 from allocate_target_description.
1989 * target-descriptions.c (allocate_target_description): Update
1990 return type.
1991 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1992 allocate_target_description.
1993
485c47e5
TT
19942020-10-07 Tom Tromey <tromey@adacore.com>
1995
1996 * unittests/search-memory-selftests.c: New file.
1997 * Makefile.in (SELFTESTS_SRCS): Add
1998 unittests/search-memory-selftests.c.
1999
3a135a91
TT
20002020-10-07 Tom Tromey <tromey@adacore.com>
2001
2002 PR gdb/16930:
2003 * findcmd.c (_initialize_mem_search): Mention that the range is
2004 inclusive.
2005
4a72de73
TT
20062020-10-07 Tom Tromey <tromey@adacore.com>
2007
2008 * target.h (simple_search_memory): Don't declare.
2009 * target.c (simple_search_memory): Move to gdbsupport.
2010 (default_search_memory): Update.
2011 * remote.c (remote_target::search_memory): Update.
2012
a038ffd8
SM
20132020-10-07 Simon Marchi <simon.marchi@efficios.com>
2014
2015 * Makefile.in (COMPILE): Add CXXFLAGS.
2016 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2017 (check-headers): Add CXXFLAGS.
2018
cc463201
AK
20192020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2020
2021 * arc-linux-tdep.h: New file.
2022 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2023 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2024 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2025 arc_linux_gregset, arc_linux_v2_regset,
2026 arc_linux_iterate_over_regset_sections,
2027 arc_linux_core_read_description): Implement.
2028 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2029 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2030 (arc_gdbarch_features_create): Add.
2031 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2032
e4bd363f
SV
20332020-10-07 Shahab Vahedi <shahab@synopsys.com>
2034
2035 * arch/arc.h: Rename "arc_gdbarch_features" to
2036 "arc_arch_features".
2037 * arc-tdep.h: Likewise.
2038 * arc-tdep.c: Likewise.
2039
b68bef99
TBA
20402020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2041
2042 * infcmd.c (attach_command): Remove the redundant call to
2043 `clear_proceed_status`.
2044
4641551a
KR
20452020-10-07 Kamil Rytarowski <n54@gmx.com>
2046
2047 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2048
91e5e8db
KR
20492020-10-07 Kamil Rytarowski <n54@gmx.com>
2050
2051 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2052 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2053 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2054
64c03bdb
SM
20552020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2056
2057 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2058 (_initialize_break_catch_sig): Don't allocate array.
2059
31a8f60f
AB
20602020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2061
2062 * symtab.c (find_pc_line): Return unmapped addresses when the
2063 requested address is also unmapped.
2064
9e6dbd8b
SM
20652020-10-05 Simon Marchi <simon.marchi@efficios.com>
2066
2067 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2068 tui/tui-out.h.
2069
a1d217e8
SM
20702020-10-05 Simon Marchi <simon.marchi@efficios.com>
2071
2072 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2073 type::is_vector instead of TYPE_VECTOR.
2074
7d144117
SM
20752020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2076
2077 * auto-load.c (auto_load_objfile_script_1): Don't use
2078 debugfile_holder as temporary variable when stripping drive
2079 letter.
2080
cd096ec8
HD
20812020-10-05 Hannes Domani <ssbssa@yahoo.de>
2082
2083 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2084 Add TYPE_CODE_COMPLEX.
2085 (amd64_windows_return_value): Fix types returned via XMM0.
2086
b58e7f72
AH
20872020-10-05 Alan Hayward <alan.hayward@arm.com>
2088
2089 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2090 AArch64/ARM maintainers.
2091
8d378f27
SM
20922020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2093
2094 * NEWS: Mention set/show debug event-loop.
2095
d5519913
TT
20962020-10-02 Tom Tromey <tromey@adacore.com>
2097
2098 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2099 REG_EXTENDED.
2100
18b67edc
SM
21012020-10-02 Simon Marchi <simon.marchi@efficios.com>
2102
2103 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2104 * procfs.c (procfs_inferior_created): Remove.
2105 (_initialize_procfs): Don't register procfs_inferior_created.
2106
6b01403b
SM
21072020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2108
2109 * async-event.c (invoke_async_signal_handlers): Add debug
2110 print.
2111 (check_async_event_handlers): Likewise.
2112 * event-top.c (show_debug_event_loop): New function.
2113 (_initialize_event_top): Register "set debug event-loop"
2114 setting.
2115
ba988419
SM
21162020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2117
2118 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2119 * debug.h: Remove.
2120 * infrun.c: Include gdbsupport/common-debug.h.
2121 * linux-nat.c: Likewise.
2122
db20ebdf
SM
21232020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2124
2125 * async-event.h (create_async_signal_handler): Add name
2126 parameter.
2127 (create_async_event_handler): Likewise.
2128 * async-event.c (struct async_signal_handler) <name>: New field.
2129 (struct async_event_handler) <name>: New field.
2130 (create_async_signal_handler): Assign name.
2131 (create_async_event_handler): Assign name.
2132 * event-top.c (async_init_signals): Pass name when creating
2133 handler.
2134 * infrun.c (_initialize_infrun): Likewise.
2135 * record-btrace.c (record_btrace_push_target): Likewise.
2136 * record-full.c (record_full_open): Likewise.
2137 * remote-notif.c (remote_notif_state_allocate): Likewise.
2138 * remote.c (remote_target::open_1): Likewise.
2139 * tui/tui-win.c (tui_initialize_win): Likewise.
2140
2554f6f5
SM
21412020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2142
2143 * async-event.c (initialize_async_signal_handlers): Pass name to
2144 add_file_handler
2145 * event-top.c (ui_register_input_event_handler): Likewise.
2146 * linux-nat.c (linux_nat_target::async): Likewise.
2147 * run-on-main-thread.c (_initialize_run_on_main_thread):
2148 Likewise
2149 * ser-base.c (reschedule): Likewise.
2150 (ser_base_async): Likewise.
2151 * tui/tui-io.c: Likewise.
2152 * top.h (struct ui) <num>: New field.
2153 * top.c (highest_ui_num): New variable.
2154 (ui::ui): Initialize num.
2155
a7aba266
SM
21562020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2157
2158 * observable.h <inferior_created>: Remove parameters. Update all
2159 listeners.
2160 * inferior.h (post_create_inferior): Remove target parameter.
2161 Update all callers.
2162
048fde1e 21632020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2164
2165 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2166 and DW_MACRO_undef_strx.
2167 (dwarf_decode_macros): Likewise
2168 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2169 which is the value of DW_AT_str_offsets_base.
2170 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2171 str_offsets_base.
2172
064280be
KR
21732020-10-01 Kamil Rytarowski <n54@gmx.com>
2174
2175 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2176
6ff33035
KR
21772020-10-01 Kamil Rytarowski <n54@gmx.com>
2178
2179 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2180 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2181
1eb6eb79
KR
21822020-10-01 Kamil Rytarowski <n54@gmx.com>
2183
2184 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2185
95eb9e54
TV
21862020-09-30 Tom de Vries <tdevries@suse.de>
2187
2188 PR symtab/26683
2189 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2190
cae21f8e
TT
21912020-09-30 Tom Tromey <tromey@adacore.com>
2192
2193 * dwarf2/read.c (handle_variant): Use constant_value.
2194
529908cb
TT
21952020-09-29 Tom Tromey <tom@tromey.com>
2196
2197 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2198 (read_file_scope, dwarf2_get_pc_bounds)
2199 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2200 (read_structure_type, handle_struct_member_die)
2201 (read_enumeration_type, read_array_type, read_set_type)
2202 (read_tag_pointer_type, read_tag_reference_type)
2203 (read_subroutine_type, read_base_type, read_subrange_type)
2204 (read_full_die_1, partial_die_info::read)
2205 (partial_die_info::read, by, new_symbol)
2206 (dwarf2_const_value_data, dwarf2_const_value_attr)
2207 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2208 (prepare_one_comp_unit): Update.
2209 * dwarf2/attribute.h (DW_UNSND): Remove.
2210
c45bc3f8
TT
22112020-09-29 Tom Tromey <tom@tromey.com>
2212
2213 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2214 (read_subroutine_type, partial_die_info::read)
2215 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2216 (dwarf2_add_member_fn): Update.
2217 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2218 * dwarf2/attribute.c (attribute::as_boolean): New method.
2219
23dca5c3
TT
22202020-09-29 Tom Tromey <tom@tromey.com>
2221
2222 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2223 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2224 method.
2225 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2226
52c14d11
TT
22272020-09-29 Tom Tromey <tom@tromey.com>
2228
2229 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2230 the attribute's form.
2231
e8e5c158
TT
22322020-09-29 Tom Tromey <tom@tromey.com>
2233
2234 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2235 (dwarf2_add_member_fn): Update.
2236 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2237 * dwarf2/attribute.c (attribute::defaulted): New method, from
2238 is_valid_DW_AT_defaulted.
2239
d4df075e
TT
22402020-09-29 Tom Tromey <tom@tromey.com>
2241
2242 * dwarf2/read.c (dw2_get_file_names_reader)
2243 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2244 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2245 (dwarf2_symbol_mark_computed): Use as_unsigned.
2246 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2247 method.
2248 <form_is_section_offset>: Update comment.
2249
bf23a268
TT
22502020-09-29 Tom Tromey <tom@tromey.com>
2251
2252 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2253 dwarf2_default_access_attribute. Look up attribute.
2254 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2255 Update.
2256
7a5f294d
TT
22572020-09-29 Tom Tromey <tom@tromey.com>
2258
2259 * dwarf2/read.c (skip_one_die): Update.
2260 (read_full_die_1): Change how reprocessing is done.
2261 (partial_die_info::read): Update.
2262 (read_attribute_value): Remove need_reprocess parameter.
2263 (read_attribute): Likewise.
2264 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2265 New method.
2266
36d378cf
TT
22672020-09-29 Tom Tromey <tom@tromey.com>
2268
2269 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2270 (dwarf2_const_value_attr, dump_die_shallow)
2271 (dwarf2_fetch_constant_bytes): Update.
2272 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2273 comment.
2274 <set_address>: New method.
2275 (DW_ADDR): Remove.
2276 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2277 (attribute::as_string, attribute::as_address): Add assert.
2278
fe56917a
TT
22792020-09-29 Tom Tromey <tom@tromey.com>
2280
2281 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2282 (read_attribute_reprocess, read_attribute_value): Update.
2283 (read_attribute): Clear requires_reprocessing.
2284 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2285 form_requires_reprocessing>: New methods.
2286 <string_init>: Clear requires_reprocessing.
2287 <set_unsigned_reprocess>: New method.
2288 <name>: Shrink by one bit.
2289 <requires_reprocessing>: New member.
2290 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2291 method.
2292
414ad644
TT
22932020-09-29 Tom Tromey <tom@tromey.com>
2294
2295 * dwarf2/read.c (read_attribute_value): Update.
2296 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2297 set_unsigned>: New methods.
2298 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2299
1bc397c5
TT
23002020-09-29 Tom Tromey <tom@tromey.com>
2301
2302 * dwarf2/read.c (get_alignment, read_array_order)
2303 (read_attribute_value, dwarf2_const_value_attr)
2304 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2305 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2306 New methods.
2307 (DW_SND): Remove.
2308
630ed6b9
TT
23092020-09-29 Tom Tromey <tom@tromey.com>
2310
2311 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2312 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2313 Update.
2314 * dwarf2/attribute.h (struct attribute) <as_signature,
2315 set_signature>: New methods.
2316 (DW_SIGNATURE): Remove.
2317
9d2246fc
TT
23182020-09-29 Tom Tromey <tom@tromey.com>
2319
2320 * dwarf2/read.c (read_call_site_scope)
2321 (handle_data_member_location, dwarf2_add_member_fn)
2322 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2323 (partial_die_info::read, read_attribute_value)
2324 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2325 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2326 (dwarf2_symbol_mark_computed): Update.
2327 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2328 methods.
2329 (DW_BLOCK): Remove.
2330 * dwarf2/attribute.c (attribute::form_is_block): Add
2331 DW_FORM_data16.
2332
c6481205
TT
23332020-09-29 Tom Tromey <tom@tromey.com>
2334
2335 * dwarf2/read.c (read_cutu_die_from_dwo)
2336 (read_attribute_reprocess, read_attribute_value, read_attribute)
2337 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2338 (dwarf2_fetch_constant_bytes): Update.
2339 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2340 <set_string_noncanonical, set_string_canonical>: New methods.
2341 <string_is_canonical>: Update comment.
2342 <canonical_string_p>: Add assert.
2343 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2344 * dwarf2/attribute.c (attribute::form_is_string): New method.
2345 (attribute::string): Use it.
2346
3b64bf15
TT
23472020-09-29 Tom Tromey <tom@tromey.com>
2348
2349 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2350 (dump_die_shallow): Use canonical_string_p.
2351 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2352 method.
2353
2c830f54
TT
23542020-09-29 Tom Tromey <tom@tromey.com>
2355
2356 * dwarf2/read.c (partial_die_info::read)
2357 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2358 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2359 attribute::as_string.
2360
6c412691
TT
23612020-09-29 Tom Tromey <tom@tromey.com>
2362
2363 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2364 DW_ADDR.
2365 (attribute::string): Don't use DW_STRING.
2366 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2367 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2368
95f982e5
TT
23692020-09-29 Tom Tromey <tom@tromey.com>
2370
2371 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2372 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2373 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2374 * dwarf2/attribute.h (struct attribute): Rename methods.
2375 * dwarf2/attribute.c (attribute::as_address): Rename from
2376 value_as_address.
2377 (attribute::as_string): Rename from value_as_string.
2378
f800b00e
TT
23792020-09-29 Tom Tromey <tom@tromey.com>
2380
2381 * dwarf2/read.c (partial_die_info::read) <case
2382 DW_AT_linkage_name>: Use value_as_string.
2383 (dwarf2_string_attr): Use value_as_string.
2384 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2385 method.
2386 * dwarf2/attribute.c (attribute::value_as_string): New method.
2387
de38d64a
PA
23882020-09-29 Pedro Alves <pedro@palves.net>
2389
2390 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2391 defined before using '#pragma GCC diagnostic' instead of checking
2392 __clang__.
2393
9aed480c
TT
23942020-09-28 Tom Tromey <tom@tromey.com>
2395
2396 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2397 (handle_signal_stop): Update.
2398 * procfs.c (procfs_target::insert_watchpoint): Update.
2399 * target.h (target_have_steppable_watchpoint): Now a function.
2400
8a3ecb79
TT
24012020-09-28 Tom Tromey <tom@tromey.com>
2402
2403 * infrun.c (set_schedlock_func): Update.
2404 * target.h (target_can_lock_scheduler): Now a function.
2405
55f6301a
TT
24062020-09-28 Tom Tromey <tom@tromey.com>
2407
2408 * inferior.h (class inferior) <has_execution>: Update.
2409 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2410 * valops.c (find_function_in_inferior)
2411 (value_allocate_space_in_inferior): Update.
2412 * top.c (kill_or_detach): Update.
2413 * target.c (target_preopen, set_target_permissions): Update.
2414 (target_has_execution_current): Remove.
2415 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2416 Update.
2417 * solib.c (update_solib_list, reload_shared_libraries): Update.
2418 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2419 * solib-dsbt.c (enable_break): Update.
2420 * score-tdep.c (score7_fetch_inst): Update.
2421 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2422 Update.
2423 * remote.c (remote_target::start_remote)
2424 (remote_target::remote_check_symbols, remote_target::open_1)
2425 (remote_target::remote_detach_1, remote_target::verify_memory)
2426 (remote_target::xfer_partial, remote_target::read_description)
2427 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2428 * record-full.c (record_full_open_1): Update.
2429 * record-btrace.c (record_btrace_target_open): Update.
2430 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2431 (value_nsstring): Update.
2432 * linux-thread-db.c (add_thread_db_info)
2433 (thread_db_find_new_threads_silently, check_thread_db_callback)
2434 (try_thread_db_load_1, record_thread): Update.
2435 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2436 Update.
2437 * linux-fork.c (checkpoint_command): Update.
2438 * infrun.c (set_non_stop, set_observer_mode)
2439 (check_multi_target_resumption, for_each_just_stopped_thread)
2440 (maybe_remove_breakpoints, normal_stop)
2441 (class infcall_suspend_state): Update.
2442 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2443 (info_program_command, attach_command): Update.
2444 * infcall.c (call_function_by_hand_dummy): Update.
2445 * inf-loop.c (inferior_event_handler): Update.
2446 * gcore.c (gcore_command, derive_heap_segment): Update.
2447 * exec.c (exec_file_command): Update.
2448 * eval.c (evaluate_subexp): Update.
2449 * compile/compile.c (compile_to_object): Update.
2450 * cli/cli-dump.c (restore_command): Update.
2451 * breakpoint.c (update_watchpoint)
2452 (update_inserted_breakpoint_locations)
2453 (insert_breakpoint_locations, get_bpstat_thread): Update.
2454 * target.h (target_has_execution): Remove macro.
2455 (target_has_execution_current): Don't declare.
2456 (target_has_execution): Rename from target_has_execution_1. Add
2457 argument default.
2458
05374cfd
TT
24592020-09-28 Tom Tromey <tom@tromey.com>
2460
2461 * mi/mi-main.c (exec_reverse_continue)
2462 (mi_cmd_list_target_features): Update.
2463 * infrun.c (set_exec_direction_func): Update.
2464 * target.c (default_execution_direction): Update.
2465 * reverse.c (exec_reverse_once): Update.
2466 * target.h (target_can_execute_reverse): Now a function.
2467
9dccd06e
TT
24682020-09-28 Tom Tromey <tom@tromey.com>
2469
2470 * tui/tui-regs.c (tui_get_register)
2471 (tui_data_window::show_registers): Update.
2472 * thread.c (scoped_restore_current_thread::restore)
2473 (scoped_restore_current_thread::scoped_restore_current_thread):
2474 Update.
2475 * regcache-dump.c (regcache_print): Update.
2476 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2477 Update.
2478 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2479 * mep-tdep.c (current_me_module, current_options): Update.
2480 * linux-thread-db.c (thread_db_load): Update.
2481 * infcmd.c (registers_info, info_vector_command)
2482 (info_float_command): Update.
2483 * ia64-tdep.c (ia64_frame_prev_register)
2484 (ia64_sigtramp_frame_prev_register): Update.
2485 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2486 * gcore.c (derive_stack_segment): Update.
2487 * frame.c (get_current_frame, has_stack_frames): Update.
2488 * findvar.c (language_defn::read_var_value): Update.
2489 * arm-tdep.c (arm_pc_is_thumb): Update.
2490 * target.c (target_has_registers): Rename from
2491 target_has_registers_1.
2492 * target.h (target_has_registers): Remove macro.
2493 (target_has_registers): Rename from target_has_registers_1.
2494
841de120
TT
24952020-09-28 Tom Tromey <tom@tromey.com>
2496
2497 * windows-tdep.c (tlb_make_value): Update.
2498 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2499 * thread.c (scoped_restore_current_thread::restore)
2500 (scoped_restore_current_thread::scoped_restore_current_thread)
2501 (thread_command): Update.
2502 * stack.c (backtrace_command_1, frame_apply_level_command)
2503 (frame_apply_all_command, frame_apply_command): Update.
2504 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2505 Update.
2506 * gcore.c (derive_stack_segment): Update.
2507 * frame.c (get_current_frame, has_stack_frames): Update.
2508 * auxv.c (info_auxv_command): Update.
2509 * ada-tasks.c (ada_build_task_list): Update.
2510 * target.c (target_has_stack): Rename from target_has_stack_1.
2511 * target.h (target_has_stack): Remove macro.
2512 (target_has_stack): Rename from target_has_stack_1.
2513
a739972c
TT
25142020-09-28 Tom Tromey <tom@tromey.com>
2515
2516 * target.c (target_has_memory): Rename from target_has_memory_1.
2517 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2518 * thread.c (scoped_restore_current_thread::restore)
2519 (scoped_restore_current_thread::scoped_restore_current_thread):
2520 Update.
2521 * frame.c (get_current_frame, has_stack_frames): Update.
2522 * target.h (target_has_memory): Remove macro.
2523 (target_has_memory): Rename from target_has_memory_1.
2524
5b8a4776
TT
25252020-09-28 Tom Tromey <tom@tromey.com>
2526
2527 * target.c (target_has_all_memory_1): Remove.
2528 * target.h (target_has_all_memory): Remove define.
2529 (target_has_all_memory_1): Don't declare.
2530
bd356ec6
SM
25312020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2532
2533 * ser-base.c: Adjust comments formatting.
2534
2c72d5e5
TT
25352020-09-27 Tom Tromey <tom@tromey.com>
2536
2537 PR tui/25342:
2538 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2539
35a98237
TT
25402020-09-27 Tom Tromey <tom@tromey.com>
2541
2542 PR tui/25342:
2543 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2544
9e820dec
TT
25452020-09-27 Tom Tromey <tom@tromey.com>
2546
2547 * unittests/tui-selftests.c: Update.
2548 * tui/tui-winsource.h (struct tui_source_window_base)
2549 <extra_margin, show_line_number, refresh_pad>: New methods.
2550 <m_max_length, m_pad>: New members.
2551 (tui_copy_source_line): Update.
2552 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2553 first_col, line_width, ndigits parameters. Add length.
2554 (tui_source_window_base::show_source_line): Write to pad. Line
2555 number now 0-based.
2556 (tui_source_window_base::refresh_pad): New method.
2557 (tui_source_window_base::show_source_content): Write to pad. Call
2558 refresh_pad.
2559 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2560 not refill.
2561 (tui_source_window_base::update_exec_info): Call
2562 show_line_number.
2563 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2564 method.
2565 <m_digits>: New member.
2566 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2567 and m_max_length.
2568 (tui_source_window::show_line_number): New method.
2569 * tui/tui-io.h (tui_puts): Fix comment.
2570 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2571 m_max_length.
2572
c15c15c8
TT
25732020-09-27 Tom Tromey <tom@tromey.com>
2574
2575 * tui/tui-winsource.c
2576 (tui_source_window_base::set_is_exec_point_at): Don't call
2577 show_source_line.
2578
149830c1
TT
25792020-09-27 Tom Tromey <tom@tromey.com>
2580
2581 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2582 method.
2583 <erase>: Update.
2584 <cursor_x, cursor_y>: Remove.
2585 <m_inner_window>: New member.
2586 (tui_py_window::rerender): Create inner window.
2587 (tui_py_window::output): Write to inner window.
2588
8f9929bb
GR
25892020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2590
2591 PR python/26586
2592 * cli/cli-script.c (execute_control_commands): don't set
2593 instream to nullptr here as this breaks the from_tty argument
2594 to gdb.execute in Python.
2595 (execute_user_command): set instream to nullptr here instead.
2596
956bdb59
SM
25972020-09-25 Simon Marchi <simon.marchi@efficios.com>
2598
2599 * infrun.h (infrun_debug_printf): Fix formatting.
2600 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2601
3b93626b
SJ
26022020-09-25 Saagar Jha <saagar@saagarjha.com>
2603
2604 * compile/compile-object-load.h (struct munmap_list): Add
2605 explicitly-defined move constructor.
2606
b551a89f
TT
26072020-09-24 Tom Tromey <tromey@adacore.com>
2608
2609 PR tui/26638:
2610 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2611 method.
2612 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2613 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2614 (tui_prev_win): Rewrite.
2615
99bb393f
HD
26162020-09-23 Hannes Domani <ssbssa@yahoo.de>
2617
2618 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2619 in WOW64 processes as SIGINT.
2620 * nat/windows-nat.h: Make wow64_process a shared variable.
2621 * windows-nat.c: Remove static wow64_process variable.
2622
20a5fcbd
TT
26232020-09-23 Tom Tromey <tom@tromey.com>
2624
2625 PR symtab/25470:
2626 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2627 offset and bit size.
2628 * printcmd.c (print_scalar_formatted): Handle zero-length
2629 integer.
2630 (print_scalar_formatted): Use bit_size_differs_p.
2631 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2632 constant.
2633 (union type_specific): <int_stuff>: New member.
2634 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2635 methods.
2636 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2637 TYPE_SPECIFIC_FIELD.
2638 (recursive_dump_type, copy_type_recursive): Update.
2639 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2640 DW_AT_data_bit_offset.
2641
bac51ab7
TT
26422020-09-23 Tom Tromey <tom@tromey.com>
2643
2644 * utils.h (class gdb_argv): Add move operators.
2645 <append>: New methods.
2646 * compile/compile.c (build_argc_argv): Remove.
2647 (compile_args_argc): Remove.
2648 (compile_args_argv): Change type.
2649 (set_compile_args): Simplify.
2650 (append_args): Remove.
2651 (filter_args): Remove argcp parameter.
2652 (get_args): Return gdb_argv. Simplify.
2653 (compile_to_object): Update.
2654
92677124
TT
26552020-09-23 Tom Tromey <tom@tromey.com>
2656
2657 * compile/compile-object-run.c (do_module_cleanup)
2658 <~do_module_cleanup> :Remove.
2659 (do_module_cleanup): Update.
2660 * compile/compile-object-load.h (struct munmap_list): Add move
2661 assignment operator.
2662 <source_file>: Now a std::string.
2663 <munmap_list>: Rename. No longer a pointer.
2664 * compile/compile-object-load.c (struct setup_sections_data): Add
2665 constructor.
2666 <setup_one_section>: Declare.
2667 <munmap_list>: Move earlier.
2668 <m_bfd>: New member.
2669 <m_last_size, m_last_section_first, m_last_prot,
2670 m_last_max_alignment>: Rename, add initializers where needed.
2671 (setup_sections_data::setup_one_section): Rename from
2672 setup_sections. Update.
2673 (compile_object_load): Update. Don't use bfd_map_over_sections.
2674
e616f60a
TT
26752020-09-23 Tom Tromey <tom@tromey.com>
2676
2677 * compile/compile-object-run.c (struct do_module_cleanup): Add
2678 parameters to constructor. Update destructor.
2679 <source_file, scope, scope_data, out_value_type, out_value_addr,
2680 munmap_list_head, objfile_name_string>: Remove.
2681 <module>: New member.
2682 (do_module_cleanup): Update.
2683 (compile_object_run): Update.
2684
e947a848
TT
26852020-09-23 Tom Tromey <tom@tromey.com>
2686
2687 * compile/compile.c (eval_compile_command): Update.
2688 * compile/compile-object-run.h (compile_object_run): Take a
2689 compile_module_up.
2690 * compile/compile-object-run.c (compile_object_run): Take a
2691 compile_module_up.
2692 * compile/compile-object-load.h (struct compile_module): Add
2693 constructor, destructor.
2694 (compile_module_up): New typedef.
2695 (compile_object_load): Return compile_object_up.
2696 * compile/compile-object-load.c (compile_object_load): Return
2697 compile_module_up.
2698
0dbf6ee6
TT
26992020-09-23 Tom Tromey <tom@tromey.com>
2700
2701 * compile/compile-object-run.c (struct do_module_cleanup): Add
2702 constructor, destructor.
2703 <objfile_name_string>: Don't use struct hack.
2704 (do_module_cleanup): Use delete.
2705 (compile_object_run): Use new.
2706
ebe824f5
TT
27072020-09-23 Tom Tromey <tom@tromey.com>
2708
2709 * compile/compile-cplus-types.c
2710 (compile_cplus_convert_struct_or_union): Use std::vector.
2711 (compile_cplus_convert_func): Likewise.
2712 * compile/compile-c-types.c (convert_func): Use std::vector.
2713
5dd918d9
TT
27142020-09-21 Tom Tromey <tromey@adacore.com>
2715
2716 * sparc-tdep.c (sparc32_skip_prologue): Use
2717 skip_prologue_using_sal.
2718
5486c517
TT
27192020-09-19 Tom Tromey <tom@tromey.com>
2720
2721 * symfile.c (add_section_size_callback): Remove.
2722 (load_one_section): Rename from load_section_callback. Change
2723 parameters.
2724 (generic_load): Use foreach.
2725
8a6bb1d1
TT
27262020-09-19 Tom Tromey <tom@tromey.com>
2727
2728 * exec.c (add_to_section_table): Remove.
2729 (build_section_table): Use foreach.
2730
08f93a1a
TT
27312020-09-19 Tom Tromey <tom@tromey.com>
2732
2733 * elfread.c (elf_locate_sections): Change parameters.
2734 (elf_symfile_read): Use foreach.
2735
03cd72b8
TT
27362020-09-19 Tom Tromey <tom@tromey.com>
2737
2738 * cli/cli-dump.c (struct callback_data): Remove.
2739 (restore_one_section): Rename from restore_section_callback.
2740 Change parameters.
2741 (restore_binary_file): Change parameters.
2742 (restore_command): Use foreach.
2743
f4f2b85f
TT
27442020-09-19 Tom Tromey <tom@tromey.com>
2745
2746 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2747 (gcore_copy_callback): Likewise.
2748 (gcore_memory_sections): Use foreach.
2749
b35c1d1c
TT
27502020-09-19 Tom Tromey <tom@tromey.com>
2751
2752 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2753 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2754 parameters.
2755 (generic_elf_osabi_sniffer): Use foreach.
2756 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2757 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2758
5bb6e9dd
TT
27592020-09-19 Tom Tromey <tom@tromey.com>
2760
2761 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2762 (dwarf2_get_dwz_file): Use foreach.
2763 (dwarf2_locate_dwo_sections): Change parameters.
2764 (open_and_init_dwo_file): Use foreach.
2765 (dwarf2_locate_common_dwp_sections): Change parameters.
2766 (open_and_init_dwp_file): Use foreach.
2767
ad7277da
TT
27682020-09-19 Tom Tromey <tom@tromey.com>
2769
2770 * symfile.h: (find_lowest_section): Don't declare.
2771 * symfile.c (find_lowest_section): Now static. Change
2772 parameters.
2773 (struct place_section_arg): Remove.
2774 (place_section): Change parameters.
2775 (addr_info_make_relative): Use foreach.
2776 (symfile_dummy_outputs): Remove.
2777 (default_symfile_relocate): Use foreach.
2778
cb814f2e
TT
27792020-09-19 Tom Tromey <tom@tromey.com>
2780
2781 * objfiles.c (add_to_objfile_sections): Rename from
2782 add_to_objfile_sections_full.
2783 (add_to_objfile_sections): Remove.
2784 (build_objfile_section_table): Use foreach.
2785
3cabfd26
TT
27862020-09-19 Tom Tromey <tom@tromey.com>
2787
2788 * stap-probe.c (get_stap_base_address_1): Remove.
2789 (get_stap_base_address): Use foreach.
2790
1ce51eb5
TT
27912020-09-19 Tom Tromey <tom@tromey.com>
2792
2793 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2794 parameters.
2795 (gdb_bfd_close_or_warn): Use foreach.
2796
a190fabb
TT
27972020-09-19 Tom Tromey <tom@tromey.com>
2798
2799 * corelow.c (add_to_thread_list): Change parameters.
2800 (core_target_open): Use foreach.
2801
cafb0d81
TT
28022020-09-19 Tom Tromey <tom@tromey.com>
2803
2804 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2805 existing function.
2806
c8d5abea
AB
28072020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2808
2809 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2810 for arrays.
2811
6d816919
AB
28122020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2813
2814 * eval.c: Remove 'f-lang.h' include.
2815 (value_f90_subarray): Moved to f-lang.c.
2816 (eval_call): Renamed to...
2817 (evaluate_subexp_do_call): ...this, is no longer static, header
2818 comment moved into header file.
2819 (evaluate_funcall): Update call to eval_call.
2820 (skip_undetermined_arglist): Moved to f-lang.c.
2821 (fortran_value_subarray): Likewise.
2822 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2823 moved to evaluate_subexp_f.
2824 (calc_f77_array_dims): Moved to f-lang.c
2825 * expprint.c (print_subexp_funcall): New function.
2826 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2827 moved to print_subexp_f, OP_FUNCALL uses new function.
2828 (dump_subexp_body_funcall): New function.
2829 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2830 moved to dump_subexp_f, OP_FUNCALL uses new function.
2831 * expression.h (evaluate_subexp_do_call): Declare.
2832 * f-lang.c (value_f90_subarray): Moved from eval.c.
2833 (skip_undetermined_arglist): Likewise.
2834 (calc_f77_array_dims): Likewise.
2835 (fortran_value_subarray): Likewise.
2836 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2837 (operator_length_f): Likewise.
2838 (print_subexp_f): Likewise.
2839 (dump_subexp_body_f): Likewise.
2840 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2841 declaration of this operation to here.
2842 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2843 support moved to operator_length_f.
2844 * parser-defs.h (dump_subexp_body_funcall): Declare.
2845 (print_subexp_funcall): Declare.
2846 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2847 fortran-operator.def.
2848
8c37706a
AB
28492020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2850
2851 * eval.c (fortran_value_subarray): New function, content is taken
2852 from...
2853 (evaluate_subexp_standard): ...here, in two places. Now arrays
2854 and strings both call the new function.
2855 (calc_f77_array_dims): Add header comment, handle strings.
2856
14f9473c
VC
28572020-09-18 Victor Collod <vcollod@nvidia.com>
2858
2859 PR gdb/26635
2860 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2861 (i386_analyze_prologue): Call i386_skip_endbr.
2862
b60cea74
TT
28632020-09-18 Tom Tromey <tromey@adacore.com>
2864
2865 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2866 (windows_nat_target::wait): Update.
2867 * target/wait.h (enum target_wait_flag): New. Use
2868 DEF_ENUM_FLAGS_TYPE.
2869 * target/target.h (target_wait): Change type of options.
2870 * target.h (target_options_to_string, default_target_wait):
2871 Update.
2872 (struct target_ops) <wait>: Change type of options.
2873 * target.c (target_wait, default_target_wait, do_option): Change
2874 type of "options".
2875 (target_options_to_string): Likewise.
2876 * target-delegates.c: Rebuild.
2877 * target-debug.h (target_debug_print_target_wait_flags): Rename
2878 from target_debug_print_options.
2879 * sol-thread.c (class sol_thread_target) <wait>: Update.
2880 (sol_thread_target::wait): Update.
2881 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2882 (rs6000_nat_target::wait): Update.
2883 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2884 Update.
2885 (remote_target::wait_ns, remote_target::wait_as): Change type of
2886 "options".
2887 (remote_target::wait): Update.
2888 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2889 (gdbsim_target::wait): Update.
2890 * record-full.c (class record_full_base_target) <wait>: Update.
2891 (record_full_wait_1): Change type of "options".
2892 (record_full_base_target::wait): Update.
2893 * record-btrace.c (class record_btrace_target) <wait>: Update.
2894 (record_btrace_target::wait): Update.
2895 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2896 Update.
2897 (ravenscar_thread_target::wait): Update.
2898 * procfs.c (class procfs_target) <wait>: Update.
2899 (procfs_target::wait): Update.
2900 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2901 * obsd-nat.c (obsd_nat_target::wait): Update.
2902 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2903 (nto_procfs_target::wait): Update.
2904 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2905 * nbsd-nat.c (nbsd_wait): Change type of "options".
2906 (nbsd_nat_target::wait): Update.
2907 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2908 (thread_db_target::wait): Update.
2909 * linux-nat.h (class linux_nat_target) <wait>: Update.
2910 * linux-nat.c (linux_nat_target::wait): Update.
2911 (linux_nat_wait_1): Update.
2912 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2913 "options".
2914 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2915 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2916 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2917 (go32_nat_target::wait): Update.
2918 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2919 * gnu-nat.c (gnu_nat_target::wait): Update.
2920 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2921 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2922 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2923 * darwin-nat.c (darwin_nat_target::wait): Update.
2924 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2925 (bsd_uthread_target::wait): Update.
2926 * aix-thread.c (class aix_thread_target) <wait>: Update.
2927 (aix_thread_target::wait): Update.
2928
0295dde6
AB
29292020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2930
2931 * compile/compile-object-run.c (create_copied_type_recursive): New
2932 function.
2933 (compile_object_run): Use new function.
2934
d3483b43
JT
29352020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2936
2937 * NEWS: Mention x86_64 Cygwin core file support.
2938
e7d612ad
JT
29392020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2940
2941 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2942 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2943
aff9d387
JT
29442020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2945
62a5151b
JT
2946 * windows-tdep.h: Add prototypes.
2947 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2948 (i386_windows_core_pid_to_str): Move and rename ...
2949 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2950 (windows_core_pid_to_str): ... and here.
2951 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2952
29532020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2954 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2955 (amd64_windows_init_abi_common): ... and register.
2956
7d155da3
JT
29572020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2958
2959 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2960 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2961
e8ef12b9
PA
29622020-09-18 Pedro Alves <pedro@palves.net>
2963
2964 PR gdb/26631
2965 * thread.c (thread_find_command): Switch inferior before calling
2966 target methods.
2967
c1e1314d
TT
29682020-09-17 Tom Tromey <tromey@adacore.com>
2969
2970 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2971 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2972 (tdesc_arch_data_up): New typedef.
2973 (tdesc_use_registers, tdesc_data_alloc): Update.
2974 (tdesc_data_cleanup): Don't declare.
2975 * target-descriptions.c (tdesc_data_alloc): Return a
2976 tdesc_arch_data_up.
2977 (tdesc_arch_data_deleter::operator()): Rename from
2978 tdesc_data_cleanup. Change argument type.
2979 (tdesc_use_registers): Change early_data to an rvalue reference.
2980 (tdesc_use_registers): Don't use delete.
2981 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2982 * s390-tdep.c (s390_gdbarch_init): Update.
2983 * rx-tdep.c (rx_gdbarch_init): Update.
2984 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2985 * riscv-tdep.c (riscv_gdbarch_init): Update.
2986 * or1k-tdep.c (or1k_gdbarch_init): Update.
2987 * nios2-tdep.c (nios2_gdbarch_init): Update.
2988 * nds32-tdep.c (nds32_gdbarch_init): Update.
2989 * mips-tdep.c (mips_gdbarch_init): Update.
2990 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2991 * m68k-tdep.c (m68k_gdbarch_init): Update.
2992 * i386-tdep.c (i386_gdbarch_init): Update.
2993 * arm-tdep.c (arm_gdbarch_init): Update.
2994 * arc-tdep.c (arc_tdesc_init): Update.
2995 (arc_gdbarch_init): Update.
2996 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2997
0363df3d
HD
29982020-09-17 Hannes Domani <ssbssa@yahoo.de>
2999
3000 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3001 for WOW64 processes.
3002
280a9412
TT
30032020-09-17 Tom Tromey <tom@tromey.com>
3004
3005 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3006
6108fd18
TT
30072020-09-17 Tom Tromey <tom@tromey.com>
3008
3009 * value.c (preserve_values): Update.
3010 * python/py-type.c (save_objfile_types): Update.
3011 * guile/scm-type.c (save_objfile_types): Update.
3012 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3013 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3014 * compile/compile-object-run.c (compile_object_run): Update.
3015
fa9b1164
TT
30162020-09-17 Tom Tromey <tom@tromey.com>
3017
3018 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3019 Remove.
3020 <m_table>: Now htab_up.
3021 * typeprint.c (typedef_hash_table::recursively_update)
3022 (typedef_hash_table::add_template_parameters)
3023 (typedef_hash_table::typedef_hash_table): Update.
3024 (typedef_hash_table::~typedef_hash_table): Remove.
3025 (typedef_hash_table::typedef_hash_table)
3026 (typedef_hash_table::find_global_typedef)
3027 (typedef_hash_table::find_typedef): Update.
3028
eb53f105
TT
30292020-09-17 Tom Tromey <tom@tromey.com>
3030
3031 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3032
7a8a5d47
TT
30332020-09-17 Tom Tromey <tom@tromey.com>
3034
3035 * linespec.c (class decode_compound_collector)
3036 <~decode_compound_collector>: Remove.
3037 <m_unique_syms>: Now htab_up.
3038 (decode_compound_collector::operator ()): Update.
3039 (class symtab_collector) <~symtab_collector>: Remove.
3040 <m_symtab_table>: Now htab_up.
3041 (symtab_collector::operator ()): Update.
3042
99032cfc
TT
30432020-09-17 Tom Tromey <tom@tromey.com>
3044
3045 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3046 (filename_seen_cache::clear): Update.
3047 (~filename_seen_cache): Remove.
3048 (filename_seen_cache::seen): Update.
3049 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3050 htab_up.
3051 <~filename_seen_cache>: Remove.
3052 <traverse>: Update.
3053
32580f6d
TT
30542020-09-17 Tom Tromey <tom@tromey.com>
3055
3056 * completer.c (completion_tracker::discard_completions)
3057 (completion_tracker::~completion_tracker)
3058 (completion_tracker::maybe_add_completion)
3059 (completion_tracker::remove_completion)
3060 (completion_tracker::recompute_lowest_common_denominator)
3061 (completion_tracker::build_completion_result): Update.
3062 * completer.h (class completion_tracker) <have_completions>:
3063 Update.
3064 <m_entries_hash>: Now htab_up.
3065
c1fb9836
TT
30662020-09-17 Tom Tromey <tom@tromey.com>
3067
3068 * breakpoint.c (ambiguous_names_p): Use htab_up.
3069
88f07206
TT
30702020-09-17 Tom Tromey <tom@tromey.com>
3071
3072 * auto-load.c (struct auto_load_pspace_info)
3073 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3074 <loaded_script_files, loaded_script_texts>: Change type to
3075 htab_up.
3076 (~auto_load_pspace_info) Remove.
3077 (init_loaded_scripts_info, maybe_add_script_file)
3078 (maybe_add_script_text, auto_load_info_scripts): Update.
3079
9519b2ee
TT
30802020-09-17 Tom Tromey <tromey@adacore.com>
3081
3082 * c-exp.y (name_obstack): Now static.
3083
d2cd4113
CC
30842020-09-17 Chungyi Chi <demonic@csie.io>
3085
3086 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3087
b650a282
SM
30882020-09-16 Simon Marchi <simon.marchi@efficios.com>
3089
3090 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3091 (add_solib_catchpoint): Likewise.
3092 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3093 to bool.
3094 (add_solib_catchpoint): Change int parameter/variable to bool.
3095 (catch_load_or_unload): Likewise.
3096 (init_catchpoint): Likewise.
3097 (create_fork_vfork_event_catchpoint): Likewise.
3098 (catch_fork_command_1): Likewise.
3099 (catch_exec_command_1): Likewise.
3100
4d0bcfcf
SM
31012020-09-16 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3104 Change instance_flags to m_instance_flags.
3105
fe830662
TT
31062020-09-16 Tom Tromey <tromey@adacore.com>
3107
3108 PR gdb/26598:
3109 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3110
fe5ddfc3
JB
31112020-09-16 John Baldwin <jhb@FreeBSD.org>
3112
3113 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3114 PL_FLAG_EXEC.
3115 (fbsd_nat_target::insert_exec_catchpoint)
3116 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3117 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3118 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3119
e911c666
JB
31202020-09-16 John Baldwin <jhb@FreeBSD.org>
3121
3122 * configure.ac: Remove check for kinfo_getvmmap().
3123 * configure, config.in: Regenerate.
3124 * fbsd-nat.c (fbsd_read_mapping): Remove
3125 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3126 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3127 kinfo_get_vmmap() are always present.
3128
1f17d372
JB
31292020-09-16 John Baldwin <jhb@FreeBSD.org>
3130
3131 * fbsd-nat.c: Always include support for
3132 TARGET_OBJECT_SIGNAL_INFO.
3133
bcb1da7f
JB
31342020-09-16 John Baldwin <jhb@FreeBSD.org>
3135
3136 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3137 sysctl and remove procfs fallback.
3138
5515f729
JB
31392020-09-16 John Baldwin <jhb@FreeBSD.org>
3140
3141 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3142 * fbsd-nat.h: Likewise.
3143
da1df1db
TBA
31442020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3145
3146 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3147 argument.
3148
0e25e767
AB
31492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3150
3151 * ada-lang.c (ada_language_data): Delete.
3152 (ada_language): Remove references to ada_language_data.
3153 * c-lang.c (c_language_data): Delete.
3154 (c_language): Remove references to c_language_data.
3155 (cplus_language_data): Delete.
3156 (cplus_language): Remove references to cplus_language_data.
3157 (asm_language_data): Delete.
3158 (asm_language): Remove references to asm_language_data.
3159 (minimal_language_data): Delete.
3160 (minimal_language): Remove references to minimal_language_data.
3161 * d-lang.c (d_language_data): Delete.
3162 (d_language): Remove references to d_language_data.
3163 * f-lang.c (f_language_data): Delete.
3164 (f_language): Remove references to f_language_data.
3165 * go-lang.c (go_language_data): Delete.
3166 (go_language): Remove references to go_language_data.
3167 * language.c (unknown_language_data): Delete.
3168 (unknown_language): Remove references to unknown_language_data.
3169 (auto_language_data): Delete.
3170 (auto_language): Remove references to auto_language_data.
3171 * language.h (language_data): Delete struct.
3172 (language_defn): No longer inherit from language_data.
3173 * m2-lang.c (m2_language_data): Delete.
3174 (m2_language): Remove references to m2_language_data.
3175 * objc-lang.c (objc_language_data): Delete.
3176 (objc_language): Remove references to objc_language_data.
3177 * opencl-lang.c (opencl_language_data): Delete.
3178 (opencl_language): Remove references to opencl_language_data.
3179 * p-lang.c (pascal_language_data): Delete.
3180 (pascal_language): Remove references to pascal_language_data.
3181 * rust-lang.c (rust_language_data): Delete.
3182 (rust_language): Remove references to rust_language_data.
3183
b7c6e27d
AB
31842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3187 initializer.
3188 (ada_language::opcode_print_table): New member function.
3189 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3190 (c_language::opcode_print_table): New member function.
3191 (cplus_language_data): Remove la_op_print_tab initializer.
3192 (cplus_language::opcode_print_table): New member function.
3193 (asm_language_data): Remove la_op_print_tab initializer.
3194 (asm_language::opcode_print_table): New member function.
3195 (minimal_language_data): Remove la_op_print_tab initializer.
3196 (minimal_language::opcode_print_table): New member function.
3197 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3198 (d_language::opcode_print_table): New member function.
3199 * expprint.c (print_subexp_standard): Update call to
3200 opcode_print_table.
3201 (op_string): Likewise.
3202 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3203 (f_language::opcode_print_table): New member function.
3204 * go-lang.c (go_language_data): Remove la_op_print_tab
3205 initializer.
3206 (go_language::opcode_print_table): New member function.
3207 * language.c (unknown_language_data): Remove la_op_print_tab
3208 initializer.
3209 (unknown_language::opcode_print_table): New member function.
3210 (auto_language_data): Remove la_op_print_tab initializer.
3211 (auto_language::opcode_print_table): New member function.
3212 * language.h (language_data): Remove la_op_print_tab field.
3213 (language_defn::opcode_print_table): Declare new member function.
3214 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3215 initializer.
3216 (m2_language::opcode_print_table): New member function.
3217 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3218 initializer.
3219 (objc_language::opcode_print_table): New member function.
3220 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3221 initializer.
3222 (opencl_language::opcode_print_table): New member function.
3223 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3224 initializer.
3225 (pascal_language::opcode_print_table): New member function.
3226 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3227 initializer.
3228 (rust_language::opcode_print_table): New member function.
3229
5aba6ebe
AB
32302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3231
3232 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3233 (ada_language::expression_ops): New member function.
3234 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3235 (c_language::expression_ops): New member function.
3236 (cplus_language_data): Remove la_exp_desc initializer.
3237 (cplus_language::expression_ops): New member function.
3238 (asm_language_data): Remove la_exp_desc initializer.
3239 (asm_language::expression_ops): New member function.
3240 (minimal_language_data): Remove la_exp_desc initializer.
3241 (minimal_language::expression_ops): New member function.
3242 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3243 (d_language::expression_ops): New member function.
3244 * eval.c (evaluate_subexp): Update call to expression_ops.
3245 * expprint.c (print_subexp): Likewise.
3246 (op_name): Likewise.
3247 (dump_subexp_body): Likewise.
3248 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3249 (f_language::expression_ops): New member function.
3250 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3251 (go_language::expression_ops): New member function.
3252 * language.c (language_defn::expression_ops): New function.
3253 (unknown_language_data): Remove la_exp_desc initializer.
3254 (auto_language_data): Likewise.
3255 * language.h (language_data): Remove la_exp_desc field.
3256 (language_defn::expression_ops): Declare new member function.
3257 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3258 (m2_language::expression_ops): New member function.
3259 * objc-lang.c (objc_language_data): Remove la_exp_desc
3260 initializer.
3261 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3262 initializer.
3263 (opencl_language::expression_ops): New member function.
3264 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3265 * parse.c (operator_length): Update call to expression_ops.
3266 (exp_iterate): Likewise.
3267 * rust-lang.c (rust_language_data): Remove la_exp_desc
3268 initializer.
3269 (ruse_language::expression_ops): New member function.
3270
b63a3f3f
AB
32712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3272
3273 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3274 initializer.
3275 (ada_language::varobj_ops): New member function.
3276 * c-lang.c (c_language_data): Remove la_varobj_ops
3277 initializer.
3278 (cplus_language_data): Likewise.
3279 (cplus_language::varobj_ops): New member function.
3280 (asm_language_data): Remove la_varobj_ops initializer.
3281 (minimal_language_data): Likewise.
3282 * d-lang.c (d_language_data): Likewise.
3283 * f-lang.c (f_language_data): Likewise.
3284 * go-lang.c (go_language_data): Likewise.
3285 * language.c (language_defn::varobj_ops): New function.
3286 (unknown_language_data): Remove la_varobj_ops
3287 initializer.
3288 (auto_language_data): Likewise.
3289 * language.h (language_data): Remove la_varobj_ops field.
3290 (language_defn::varobj_ops): Declare new member function.
3291 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3292 * objc-lang.c (objc_language_data): Likewise.
3293 * opencl-lang.c (opencl_language_data): Likewise.
3294 * p-lang.c (pascal_language_data): Likewise.
3295 * rust-lang.c (rust_language_data): Likewise.
3296 * varobj.c (varobj_create): Update call to varobj_ops.
3297 * varobj.h (default_varobj_ops): Delete define.
3298
1ac14a04
AB
32992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3300
3301 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3302 initializer.
3303 * c-lang.c (c_language_data): Likewise.
3304 (c_language::macro_expansion): New member function.
3305 (cplus_language_data): Likewise.
3306 (cplus_language::macro_expansion): New member function.
3307 (asm_language_data): Likewise.
3308 (asm_language::macro_expansion): New member function.
3309 (minimal_language_data): Likewise.
3310 (minimal_language::macro_expansion): New member function.
3311 * d-lang.c (d_language_data): Remove la_macro_expansion
3312 initializer.
3313 * f-lang.c (f_language_data): Likewise.
3314 * go-lang.c (go_language_data): Likewise.
3315 * language.c (unknown_language_data): Likewise.
3316 (auto_language_data): Likewise.
3317 * language.h (language_data): Remove la_macro_expansion field.
3318 (language_defn::macro_expansion): New member function.
3319 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3320 initializer.
3321 * objc-lang.c (objc_language_data): Likewise.
3322 (objc_language::macro_expansion): New member function.
3323 * opencl-lang.c (opencl_language_data): Likewise.
3324 (opencl_language::macro_expansion): New member function.
3325 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3326 initializer.
3327 * rust-lang.c (rust_language_data): Likewise.
3328 * symtab.c (default_collect_symbol_completion_matches_break_on):
3329 Update call to macro_expansion.
3330
3a3440fb
AB
33312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3332
3333 * ada-lang.c (ada_language_data): Remove la_array_ordering
3334 initializer.
3335 * c-lang.c (c_language_data): Likewise.
3336 (cplus_language_data): Likewise.
3337 (asm_language_data): Likewise.
3338 (minimal_language_data): Likewise.
3339 * d-lang.c (d_language_data): Likewise.
3340 * dwarf2/read.c (read_array_order): Update for call to
3341 array_ordering.
3342 * f-lang.c (f_language_data): Remove la_array_ordering
3343 initializer.
3344 (f_language::array_ordering): New member function.
3345 * go-lang.c (go_language_data): Remove la_array_ordering
3346 initializer.
3347 * language.c (unknown_language_data): Likewise.
3348 (auto_language_data): Likewise.
3349 * language.h (language_data): Delete la_array_ordering field.
3350 (language_defn::array_ordering): New member function.
3351 * m2-lang.c (m2_language_data): Remove la_array_ordering
3352 initializer.
3353 * objc-lang.c (objc_language_data): Likewise.
3354 * opencl-lang.c (opencl_language_data): Likewise.
3355 * p-lang.c (pascal_language_data): Likewise.
3356 * rust-lang.c (rust_language_data): Likewise.
3357
0d201fa4
AB
33582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3359
3360 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3361 initializer.
3362 * c-lang.c (c_language_data): Likewise.
3363 (cplus_language_data): Likewise.
3364 (asm_language_data): Likewise.
3365 (minimal_language_data): Likewise.
3366 * d-lang.c (d_language_data): Likewise.
3367 * f-lang.c (f_language_data): Likewise.
3368 (f_language::case_sensitivity): New member function.
3369 * go-lang.c (go_language_data): Remove la_case_sensitivity
3370 initializer.
3371 * language.c (enum case_mode): Moved here from language.h.
3372 (case_mode): Make static.
3373 (show_case_command): Update for case_sensitivity being a method.
3374 (set_case_command): Likewise.
3375 (set_range_case): Likewise.
3376 (unknown_language_data): Remove la_case_sensitivity initializer.
3377 (auto_language_data): Likewise.
3378 * language.h (case_mode): Delete, move enum declaration to
3379 language.c.
3380 (language_data): Delete la_case_sensitivity field.
3381 (language_defn::case_sensitivity): New member function.
3382 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3383 initializer.
3384 * objc-lang.c (objc_language_data): Likewise.
3385 * opencl-lang.c (opencl_language_data): Likewise.
3386 * p-lang.c (pascal_language_data): Likewise.
3387 * rust-lang.c (rust_language_data): Likewise.
3388
efdf6a73
AB
33892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * ada-lang.c (ada_language_data): Remove la_range_check
3392 initializer.
3393 * c-lang.c (c_language_data): Likewise.
3394 (cplus_language_data): Likewise.
3395 (asm_language_data): Likewise.
3396 (minimal_language_data): Likewise.
3397 * d-lang.c (d_language_data): Likewise.
3398 * f-lang.c (f_language_data): Likewise.
3399 (f_language::range_checking_on_by_default): New member function.
3400 * go-lang.c (go_language_data): Remove la_range_check initializer.
3401 * language.c (enum range_mode): Moved here from language.h.
3402 (range_mode): Made static.
3403 (show_range_command): Update to use
3404 range_checking_on_by_default.
3405 (set_range_command): Likewise.
3406 (set_range_case): Likewise.
3407 (unknown_language_data): Remove la_range_check initializer.
3408 (auto_language_data): Likewise.
3409 * language.h (range_mode): Delete. Enum definition moved to
3410 language.c.
3411 (language_data): Remove la_range_check field.
3412 (language_defn::range_checking_on_by_default): New member
3413 function.
3414 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3415 (m2_language::range_checking_on_by_default): New member function.
3416 * objc-lang.c (objc_language_data): Remove la_range_check
3417 initializer.
3418 * opencl-lang.c (opencl_language_data): Likewise.
3419 * p-lang.c (pascal_language_data): Likewise.
3420 (pascal_language::range_checking_on_by_default): New member
3421 function.
3422 * rust-lang.c (rust_language_data): Remove la_range_check
3423 initializer.
3424 (rust_language::range_checking_on_by_default): New member
3425 function.
3426
bf92aec5
AB
34272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3428
3429 * dwarf2/read.c (dwarf2_physname): Remove special case for
3430 language_go.
3431 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3432 member function.
3433
d3355e4d
AB
34342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 * ada-lang.c (ada_language_data): Remove
3437 la_store_sym_names_in_linkage_form_p initializer.
3438 (ada_language::store_sym_names_in_linkage_form_p): New member
3439 function.
3440 * c-lang.c (c_language_data): Remove
3441 la_store_sym_names_in_linkage_form_p initializer.
3442 (c_language::store_sym_names_in_linkage_form_p): New member
3443 function.
3444 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3445 initializer.
3446 (asm_language_data): Likewise.
3447 (asm_language::store_sym_names_in_linkage_form_p): New member
3448 function.
3449 (minimal_language_data): Remove
3450 la_store_sym_names_in_linkage_form_p initializer.
3451 (minimal_language::store_sym_names_in_linkage_form_p): New member
3452 function.
3453 * d-lang.c (d_language_data): Remove
3454 la_store_sym_names_in_linkage_form_p initializer.
3455 * dwarf2/read.c (dwarf2_physname): Update call to
3456 store_sym_names_in_linkage_form_p.
3457 * f-lang.c (f_language_data): Remove
3458 la_store_sym_names_in_linkage_form_p initializer.
3459 * go-lang.c (go_language_data): Remove
3460 la_store_sym_names_in_linkage_form_p initializer.
3461 * language.c (unknown_language_data): Remove
3462 la_store_sym_names_in_linkage_form_p initializer.
3463 (unknown_language::store_sym_names_in_linkage_form_p): New member
3464 function.
3465 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3466 initializer.
3467 (auto_language::store_sym_names_in_linkage_form_p): New member
3468 function.
3469 * language.h (language_data): Remove
3470 la_store_sym_names_in_linkage_form_p member variable.
3471 (language_defn::store_sym_names_in_linkage_form_p): New member
3472 function.
3473 * m2-lang.c (m2_language_data): Remove
3474 la_store_sym_names_in_linkage_form_p initializer.
3475 * objc-lang.c (objc_language_data): Likewise.
3476 * opencl-lang.c (opencl_language_data): Likewise.
3477 * p-lang.c (pascal_language_data): Likewise.
3478 * rust-lang.c (rust_language_data): Likewise.
3479
22c12a6c
AB
34802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3481
3482 * ada-lang.c (ada_language_data): Remove string_lower_bound
3483 initializer.
3484 * c-lang.c (c_language_data): Likewise.
3485 (cplus_language_data): Likewise.
3486 (asm_language_data): Likewise.
3487 (minimal_language_data): Likewise.
3488 * d-lang.c (d_language_data): Likewise.
3489 * f-lang.c (f_language_data): Likewise.
3490 * go-lang.c (go_language_data): Likewise.
3491 * language.c (unknown_language_data): Likewise.
3492 (auto_language_data): Likewise.
3493 * language.h (language_data): Remove string_lower_bound field.
3494 (language_defn::string_lower_bound): New member function.
3495 * m2-lang.c (m2_language_data): Remove string_lower_bound
3496 initializer.
3497 (m2_language::string_lower_bound): New member function.
3498 * objc-lang.c (objc_language_data): Remove string_lower_bound
3499 initializer.
3500 * opencl-lang.c (opencl_language_data): Likewise.
3501 * p-lang.c (pascal_language_data): Likewise.
3502 * rust-lang.c (rust_language_data): Likewise.
3503 * valops.c (value_cstring): Update call to string_lower_bound.
3504 (value_string): Likewise.
3505 * value.c (allocate_repeated_value): Likewise.
3506
1c236ddd
AB
35072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3508
3509 * valops.c (value_repeat): Fix incorrect argument name in comment.
3510
67bd3fd5
AB
35112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3512
3513 * ada-lang.c (ada_language_data): Remove c_style_arrays
3514 initializer.
3515 (ada_language::c_style_arrays_p): New member fuction.
3516 * c-lang.c (c_language_data): Remove c_style_arrays
3517 initializer.
3518 (cplus_language_data): Likewise.
3519 (asm_language_data): Likewise.
3520 (minimal_language_data): Likewise.
3521 * d-lang.c (d_language_data): Likewise.
3522 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3523 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3524 (f_language::c_style_arrays_p): New member function.
3525 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3526 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3527 * language.c (unknown_language_data): Remove c_style_arrays
3528 initializer.
3529 (auto_language_data): Likewise.
3530 * language.h (language_data): Remove c_style_arrays field.
3531 (language_defn::c_style_arrays_p): New member function.
3532 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3533 (m2_language::c_style_arrays_p): New member function.
3534 * objc-lang.c (objc_language_data): Remove c_style_arrays
3535 initializer.
3536 * opencl-lang.c (opencl_language_data): Likewise.
3537 * p-lang.c (pascal_language_data): Likewise.
3538 * rust-lang.c (rust_language_data): Likewise.
3539 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3540 and update local variable to a bool.
3541 * valops.c (value_cast): Update call to c_style_arrays_p.
3542 (value_array): Likewise.
3543 * value.c (coerce_array): Likewise.
3544
85967615
AB
35452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * ada-lang.c (ada_language_data): Remove la_language initializer.
3548 * c-lang.c (c_language_data): Likewise.
3549 (cplus_language_data): Likewise.
3550 (asm_language_data): Likewise.
3551 (minimal_language_data): Likewise.
3552 * d-lang.c (d_language_data): Likewise.
3553 * f-lang.c (f_language_data): Likewise.
3554 * go-lang.c (go_language_data): Likewise.
3555 * language.c (unknown_language_data): Likewise.
3556 (auto_language_data): Likewise.
3557 * language.h (language_data): Remove la_language field.
3558 (language_defn::language_defn): Initialise la_language field.
3559 (language_defn::la_language): New member variable.
3560 * m2-lang.c (m2_language_data): Remove la_language field.
3561 * objc-lang.c (objc_language_data): Likewise.
3562 * opencl-lang.c (opencl_language_data): Likewise.
3563 * p-lang.c (pascal_language_data): Likewise.
3564 * rust-lang.c (rust_language_data): Likewise.
3565
e171d6f1
AB
35662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3567
3568 * ada-lang.c (ada_extensions): Delete, moved into
3569 ada_language::filename_extensions.
3570 (ada_language_data): Remove la_filename_extensions initializer.
3571 (ada_language::filename_extensions): New member function.
3572 * c-lang.c (c_extensions): Delete, moved into
3573 c_language::filename_extensions.
3574 (c_language_data): Remove la_filename_extensions initializer.
3575 (c_language::filename_extensions): New member function.
3576 (cplus_extensions): Delete, moved into
3577 cplus_language::filename_extensions.
3578 (cplus_language_data): Remove la_filename_extensions initializer.
3579 (cplus_language::filename_extensions): New member function.
3580 (asm_extensions): Delete, moved into
3581 asm_language::filename_extensions.
3582 (asm_language_data): Remove la_filename_extensions initializer.
3583 (asm_language::filename_extensions): New member function.
3584 (minimal_language_data): Remove la_filename_extensions
3585 initializer.
3586 * d-lang.c (d_extensions): Delete, moved into
3587 d_language::filename_extensions.
3588 (d_language_data): Remove la_filename_extensions initializer.
3589 (d_language::filename_extensions): New member function.
3590 * f-lang.c (f_extensions): Delete, moved into
3591 f_language::filename_extensions.
3592 (f_language_data): Remove la_filename_extensions initializer.
3593 (f_language::filename_extensions): New member function.
3594 * go-lang.c (go_language_data): Remove la_filename_extensions
3595 initializer.
3596 * language.c (add_set_language_command): Update now that
3597 filename_extensions returns a vector.
3598 (unknown_language_data): Remove la_filename_extensions
3599 initializer.
3600 (auto_language_data): Likewise.
3601 * language.h (language_data): Remove la_filename_extensions field.
3602 (language_defn::filename_extensions): New member function.
3603 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3604 initializer.
3605 * objc-lang.c (objc_extensions): Delete, moved into
3606 objc_language::filename_extensions.
3607 (objc_language_data): Remove la_filename_extensions initializer.
3608 (objc_language::filename_extensions): New member function.
3609 * opencl-lang.c (opencl_language_data): Remove
3610 la_filename_extensions initializer.
3611 * p-lang.c (pascal_extensions): Delete, moved into
3612 pascal_language::filename_extensions.
3613 (pascal_language_data): Remove la_filename_extensions initializer.
3614 (pascal_language::filename_extensions): New member function.
3615 * rust-lang.c (rust_extensions): Delete, moved into
3616 rust_language::filename_extensions.
3617 (rust_language_data): Remove la_filename_extensions initializer.
3618 (rust_language::filename_extensions): New member function.
3619 * symfile.c (add_filename_language): Add new assert.
3620
6f7664a9
AB
36212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3622
3623 * ada-lang.c (ada_language_data): Remove la_name and
3624 la_natural_name initializers.
3625 (ada_language::name): New member function.
3626 (ada_language::natural_name): New member function.
3627 * c-lang.c (c_language_data): Remove la_name and
3628 la_natural_name initializers.
3629 (c_language::name): New member function.
3630 (c_language::natural_name): New member function.
3631 (cplus_language_data): Remove la_name and
3632 la_natural_name initializers.
3633 (cplus_language::name): New member function.
3634 (cplus_language::natural_name): New member function.
3635 (asm_language_data): Remove la_name and
3636 la_natural_name initializers.
3637 (asm_language::name): New member function.
3638 (asm_language::natural_name): New member function.
3639 (minimal_language_data): Remove la_name and
3640 la_natural_name initializers.
3641 (minimal_language::name): New member function.
3642 (minimal_language::natural_name): New member function.
3643 * compile/compile.c (compile_to_object): Update call to
3644 lanugage_defn::name.
3645 * d-lang.c (d_language_data): Remove la_name and
3646 la_natural_name initializers.
3647 (d_language::name): New member function.
3648 (d_language::natural_name): New member function.
3649 * expprint.c (print_subexp_standard): Update call to
3650 language_defn::name.
3651 (dump_raw_expression): Likewise
3652 (dump_prefix_expression): Likewise.
3653 * f-lang.c (f_language_data): Remove la_name and
3654 la_natural_name initializers.
3655 (f_language::name): New member function.
3656 (f_language::natural_name): New member function.
3657 * go-lang.c (go_language_data): Remove la_name and
3658 la_natural_name initializers.
3659 (go_language::name): New member function.
3660 (go_language::natural_name): New member function.
3661 * language.c (show_language_command): Update call to
3662 language_defn::name.
3663 (set_language_command): Likewise.
3664 (language_enum): Likewise.
3665 (language_str): Likewise.
3666 (add_set_language_command): Likewise, use
3667 language_defn::natural_name in the doc string.
3668 (unknown_language_data): Remove la_name and
3669 la_natural_name initializers.
3670 (unknown_language::name): New member function.
3671 (unknown_language::natural_name): New member function.
3672 (auto_language_data): Remove la_name and
3673 la_natural_name initializers.
3674 (auto_language::name): New member function.
3675 (auto_language::natural_name): New member function.
3676 (language_lookup_primitive_type_as_symbol): Update call to
3677 language_defn::name.
3678 * language.h (language_data): Remove la_name and la_natural_name
3679 member variables.
3680 (language_defn::name): New member function.
3681 (language_defn::natural_name): New member function.
3682 * m2-lang.c (m2_language_data): Remove la_name and
3683 la_natural_name initializers.
3684 (m2_language::name): New member function.
3685 (m2_language::natural_name): New member function.
3686 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3687 language_defn::natural_name.
3688 * objc-lang.c (objc_language_data): Remove la_name and
3689 la_natural_name initializers.
3690 (objc_language::name): New member function.
3691 (objc_language::natural_name): New member function.
3692 * opencl-lang.c (opencl_language_data): Remove la_name and
3693 la_natural_name initializers.
3694 (opencl_language::name): New member function.
3695 (opencl_language::natural_name): New member function.
3696 * p-lang.c (pascal_language_data): Remove la_name and
3697 la_natural_name initializers.
3698 (pascal_language::name): New member function.
3699 (pascal_language::natural_name): New member function.
3700 * rust-lang.c (rust_language_data): Remove la_name and
3701 la_natural_name initializers.
3702 (rust_language::name): New member function.
3703 (rust_language::natural_name): New member function.
3704 * symtab.c (lookup_language_this): Update call to
3705 language_defn::name.
3706
5bae7c4e
AB
37072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3708
3709 * ada-lang.c (ada_language_data): Remove la_name_of_this
3710 initializer.
3711 * ax-gdb.c (gen_expr): Update call to name_of_this.
3712 * c-exp.y (classify_name): Likewise.
3713 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3714 (cplus_language_data): Likewise.
3715 (cplus_language::name_of_this): New member function.
3716 (asm_language_data): Remove la_name_of_this initializer.
3717 (minimal_language_data): Likewise.
3718 * d-lang.c (d_language_data): Likewise.
3719 (d_language::name_of_this): New member function.
3720 * expprint.c (print_subexp_standard): Update call to name_of_this.
3721 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3722 * go-lang.c (go_language_data): Likewise.
3723 * language.c (unknown_language_data): Likewise.
3724 (unknown_language::name_of_this): New member function.
3725 (auto_language_data): Remove la_name_of_this initializer.
3726 (auto_language::name_of_this): New member function.
3727 * language.h (language_data): Delete la_name_of_this member
3728 variable.
3729 (language_defn::name_of_this): New member function.
3730 * m2-lang.c (m2_language_data): Remove la_name_of_this
3731 initializer.
3732 * objc-lang.c (objc_language_data): Likewise.
3733 (objc_language::name_of_this): New member function.
3734 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3735 initializer.
3736 * p-lang.c (pascal_language_data): Likewise.
3737 (pascal_language::name_of_this): New member function.
3738 * rust-lang.c (rust_language_data): Remove la_name_of_this
3739 initializer.
3740 * symtab.c (lookup_language_this): Update call to name_of_this.
3741 (lookup_symbol_aux): Likewise.
3742 * valops.c (value_of_this): Likewise.
3743
22e3f3ed
AB
37442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3745
3746 * ada-lang.c (ada_language_data): Remove
3747 la_struct_too_deep_ellipsis initializer.
3748 (ada_language::struct_too_deep_ellipsis): New member function.
3749 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3750 initializer.
3751 (cplus_language_data): Likewise.
3752 (asm_language_data): Likewise.
3753 (minimal_language_data): Likewise.
3754 * cp-valprint.c (cp_print_value): Update call to
3755 struct_too_deep_ellipsis.
3756 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3757 initializer.
3758 * f-lang.c (f_language_data): Likewise.
3759 (f_language::struct_too_deep_ellipsis): New member function.
3760 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3761 initializer.
3762 * language.c (unknown_language_data): Likewise.
3763 (auto_language_data): Likewise.
3764 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3765 member variable.
3766 (language_defn::struct_too_deep_ellipsis): New member function.
3767 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3768 initializer.Q
3769 * objc-lang.c (objc_language_data): Likewise.
3770 * opencl-lang.c (opencl_language_data): Likewise.
3771 * p-lang.c (pascal_language_data): Likewise.
3772 * rust-lang.c (rust_language_data): Likewise.
3773 * valprint.c (val_print_check_max_depth): Update call to
3774 struct_too_deep_ellipsis.
3775
ed29e1c7
FW
37762020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3777
3778 * MAINTAINERS (Write After Approval): Add myself.
3779
12d8f940
TT
37802020-09-15 Tom Tromey <tom@tromey.com>
3781
3782 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3783 Remove.
3784
6b5a7bc7
TT
37852020-09-15 Tom Tromey <tom@tromey.com>
3786
3787 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3788 and TYPE_CODE_METHODPTR cases.
3789 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3790 (c_value_print_inner): Update.
3791 * valprint.c (generic_value_print_memberptr): New function, from
3792 c_value_print_memberptr.
3793 (generic_value_print): Use it. Call cplus_print_method_ptr.
3794
47f0e2ff
TT
37952020-09-15 Tom Tromey <tromey@adacore.com>
3796
3797 * python/python-internal.h (PyInt_FromLong): Remove define.
3798 * python/py-value.c (convert_value_from_python): Use
3799 gdb_py_object_from_longest.
3800 * python/py-type.c (typy_get_code): Use
3801 gdb_py_object_from_longest.
3802 * python/py-symtab.c (salpy_get_line): Use
3803 gdb_py_object_from_longest.
3804 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3805 gdb_py_object_from_longest.
3806 * python/py-record.c (recpy_gap_reason_code): Use
3807 gdb_py_object_from_longest.
3808 * python/py-record-btrace.c (recpy_bt_insn_size)
3809 (recpy_bt_func_level, btpy_list_count): Use
3810 gdb_py_object_from_longest.
3811 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3812 gdb_py_object_from_longest. Fix error handling.
3813 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3814 gdb_py_object_from_longest.
3815 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3816 gdb_py_object_from_longest.
3817 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3818 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3819 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3820
512116ce
TT
38212020-09-15 Tom Tromey <tromey@adacore.com>
3822
3823 * python/python.c (gdbpy_parameter_value): Use
3824 gdb_py_object_from_ulongest.
3825
4ab1029c
TT
38262020-09-15 Tom Tromey <tromey@adacore.com>
3827
3828 * python/py-infevents.c (create_register_changed_event_object):
3829 Use gdb_py_object_from_longest.
3830 * python/py-exitedevent.c (create_exited_event_object): Use
3831 gdb_py_object_from_longest.
3832
062534d4
TT
38332020-09-15 Tom Tromey <tromey@adacore.com>
3834
3835 * python/python.c (gdbpy_parameter_value): Use
3836 gdb_py_object_from_longest.
3837 * python/py-type.c (convert_field, typy_range): Use
3838 gdb_py_object_from_longest.
3839 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3840 gdb_py_object_from_longest.
3841 * python/py-lazy-string.c (stpy_get_length): Use
3842 gdb_py_object_from_longest.
3843 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3844 gdb_py_object_from_longest.
3845 * python/py-infevents.c (create_memory_changed_event_object): Use
3846 gdb_py_object_from_longest.
3847 * python/py-inferior.c (infpy_get_num): Use
3848 gdb_py_object_from_longest.
3849 (infpy_get_pid): Likewise.
3850
d1cab987
TT
38512020-09-15 Tom Tromey <tromey@adacore.com>
3852
3853 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3854 defines.
3855 * python/py-value.c (valpy_long): Use
3856 gdb_py_object_from_ulongest.
3857 * python/py-symtab.c (salpy_get_pc): Use
3858 gdb_py_object_from_ulongest.
3859 (salpy_get_last): Likewise.
3860 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3861 gdb_py_object_from_ulongest.
3862 * python/py-lazy-string.c (stpy_get_address): Use
3863 gdb_py_object_from_ulongest.
3864 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3865 * python/py-arch.c (archpy_disassemble): Use
3866 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3867 error handling.
3868
4bde49dc
TT
38692020-09-15 Tom Tromey <tromey@adacore.com>
3870
3871 * python/python-internal.h (gdb_py_long_from_longest): Remove
3872 defines.
3873 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3874 * python/py-type.c (convert_field, typy_get_sizeof): Use
3875 gdb_py_object_from_longest.
3876 * python/py-record-btrace.c (btpy_list_index): Use
3877 gdb_py_object_from_longest.
3878
37431074
TT
38792020-09-15 Tom Tromey <tromey@adacore.com>
3880
3881 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3882 * python/py-record.c (recpy_element_number): Use
3883 gdb_py_object_from_longest.
3884 (recpy_gap_number): Likewise.
3885
cbe25684
TT
38862020-09-15 Tom Tromey <tromey@adacore.com>
3887
3888 * top.c (ui::ui): Update.
3889 (highest_ui_num): Remove.
3890 * top.h (struct ui) <num>: Remove.
3891
db92ac45
TT
38922020-09-15 Tom Tromey <tromey@adacore.com>
3893
3894 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3895 * ui-style.c (ansi_regex_text): Now array.
3896 * rust-exp.y (number_regex_text): Now array.
3897 * linespec.c (linespec_quote_characters): Now array.
3898 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3899 Now arrays.
3900
d2b31b67
SM
39012020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3902
3903 * debuginfod-support.c (debuginfod_client_deleter): New.
3904 (debuginfod_client_up): New.
3905 (debuginfod_init): Return debuginfod_client_up.
3906 (debuginfod_source_query): Adjust.
3907 (debuginfod_debuginfo_query): Adjust.
3908
3246bd8e
SM
39092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3910
3911 * debuginfod-support.c (debuginfod_source_query): Use
3912 make_unique_xstrdup.
3913
10242f36
SM
39142020-09-14 Simon Marchi <simon.marchi@efficios.com>
3915
3916 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3917 with `type::instance_flags`.
3918
e1044e6a
MM
39192020-09-14 Michael Mullin <masmullin@gmail.com>
3920
3921 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3922 Remove baton parameter.
3923
04902b09
PA
39242020-09-14 Pedro Alves <pedro@palves.net>
3925
3926 * Makefile.in (SELFTESTS_SRCS): Add
3927 unittests/enum-flags-selftests.c.
3928 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3929 btrace_function_flags instead of enum btrace_function_flag.
3930 * compile/compile-c-types.c (convert_qualified): Use
3931 enum_flags::raw.
3932 * compile/compile-cplus-symbols.c (convert_one_symbol)
3933 (convert_symbol_bmsym):
3934 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3935 (compile_cplus_convert_struct_or_union_methods)
3936 (compile_cplus_instance::convert_qualified_base):
3937 * go-exp.y (parse_string_or_char): Add cast to int.
3938 * unittests/enum-flags-selftests.c: New file.
3939 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3940 type to btrace_thread_flags from btrace_thread_flag.
3941 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3942 local's type to btrace_thread_flags from btrace_thread_flag. Add
3943 cast in DEBUG call.
3944
69896a2c
PA
39452020-09-14 Pedro Alves <pedro@palves.net>
3946
3947 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3948 * gdbtypes.c (address_space_name_to_int): Rename to ...
3949 (address_space_name_to_type_instance_flags): ... this.
3950 (address_space_int_to_name): Rename to ...
3951 (address_space_type_instance_flags_to_name): ... this.
3952 * gdbtypes.h (address_space_name_to_int): Rename to ...
3953 (address_space_name_to_type_instance_flags): ... this.
3954 (address_space_int_to_name): Rename to ...
3955 (address_space_type_instance_flags_to_name): ... this.
3956 * type-stack.c (type_stack::insert): Adjust to rename.
3957 * type-stack.h (type_stack::insert): Likewise.
3958
314ad88d
PA
39592020-09-14 Pedro Alves <pedro@palves.net>
3960 Andrew Burgess <andrew.burgess@embecosm.com>
3961
3962 * avr-tdep.c (avr_address_class_type_flags): Return
3963 type_instance_flags.
3964 (avr_address_class_type_flags_to_name): Take a
3965 type_instance_flags.
3966 (avr_address_class_name_to_type_flags): Return bool and take a
3967 type_instance_flags.
3968 * d-lang.c (build_d_types): Use type::set_instance_flags.
3969 * ft32-tdep.c (ft32_address_class_type_flags): Return
3970 type_instance_flags.
3971 (ft32_address_class_type_flags_to_name): Take a
3972 type_instance_flags.
3973 (ft32_address_class_name_to_type_flags): Return bool and take a
3974 type_instance_flags.
3975 (ft32_gdbarch_init): Use type::set_instance_flags.
3976 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3977 * gdbarch.h, gdbarch.c: Regenerate.
3978 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3979 (address_class_name_to_type_flags): Use type_instance_flags and
3980 bool.
3981 * gdbtypes.c (address_space_name_to_int)
3982 (address_space_int_to_name, make_qualified_type): Use
3983 type_instance_flags.
3984 (make_qualified_type): Use type_instance_flags and
3985 type::set_instance_flags.
3986 (make_type_with_address_space, make_cv_type, make_vector_type)
3987 (check_typedef): Use type_instance_flags.
3988 (recursive_dump_type): Cast type_instance_flags to unsigned for
3989 printing.
3990 (copy_type_recursive): Use type::set_instance_flags.
3991 (gdbtypes_post_init): Use type::set_instance_flags.
3992 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3993 <m_instance_flags>: ... this.
3994 <instance_flags, set_instance_flags>: New methods.
3995 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3996 (SET_TYPE_INSTANCE_FLAGS): New.
3997 (address_space_name_to_int, address_space_int_to_name)
3998 (make_type_with_address_space): Pass flags using
3999 type_instance_flags instead of int.
4000 * stabsread.c (cleanup_undefined_types_noname): Use
4001 type::set_instance_flags.
4002 * s390-tdep.c (s390_address_class_type_flags): Return
4003 type_instance_flags.
4004 (s390_address_class_type_flags_to_name): Take a
4005 type_instance_flags.
4006 (s390_address_class_name_to_type_flags): Return bool and take a
4007 type_instance_flags.
4008 * type-stack.c (type_stack::follow_types): Use
4009 type_instance_flags.
4010 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4011
27087b7f
TT
40122020-09-14 Tom Tromey <tromey@adacore.com>
4013
4014 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4015 * x86-tdep.c (x86_is_thunk_register_name)
4016 (x86_in_indirect_branch_thunk): Update.
4017 * sparc64-tdep.c (sparc64_fpu_register_names)
4018 (sparc64_cp0_register_names, sparc64_register_names)
4019 (sparc64_pseudo_register_names): Now const.
4020 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4021 cp0_registers_num>: Now const.
4022 * sparc-tdep.c (sparc_core_register_names)
4023 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4024 (sparc32_pseudo_register_names): Now const.
4025 (validate_tdesc_registers): Update.
4026 * rust-lang.c (rust_extensions): Now const.
4027 * p-lang.c (p_extensions): Now const.
4028 * objc-lang.c (objc_extensions): Now const.
4029 * nto-tdep.c (nto_thread_state_str): Now const.
4030 * moxie-tdep.c (moxie_register_names): Now const.
4031 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4032 Now const.
4033 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4034 (mips_linux_reg_names): Now const.
4035 (mips_gdbarch_init): Update.
4036 * microblaze-tdep.c (microblaze_register_names): Now const.
4037 * m68k-tdep.c (m68k_register_names): Now const.
4038 * m32r-tdep.c (m32r_register_names): Now const.
4039 * ia64-tdep.c (ia64_register_names): Now const.
4040 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4041 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4042 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4043 ymm_avx512_register_names, pkeys_register_names>: Now const.
4044 * i386-tdep.c (i386_register_names, i386_zmm_names)
4045 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4046 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4047 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4048 * f-lang.c (f_extensions): Now const.
4049 * d-lang.c (d_extensions): Now const.
4050 * csky-tdep.c (csky_register_names): Now const.
4051 * charset.c (default_charset_names, charset_enum): Now const.
4052 (_initialize_charset): Update.
4053 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4054 const.
4055 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4056 (bsd_uthread_solib_loaded): Update.
4057 (bsd_uthread_state): Now const.
4058 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4059 (amd64_ymm_avx512_names, amd64_ymmh_names)
4060 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4061 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4062 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4063 (amd64_dword_names): Now const.
4064 * agent.c (can_use_agent_enum): Now const.
4065 * ada-tasks.c (task_states, long_task_states): Now const.
4066 * ada-lang.c (known_runtime_file_name_patterns)
4067 (known_auxiliary_function_name_patterns, attribute_names)
4068 (standard_exc, ada_extensions): Now const.
4069
89806626
SM
40702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4071
4072 * bcache.h (struct bcache) <bcache>: Remove constructor.
4073 <m_hash_function, m_compare_function>: Remove.
4074 <~bcache>: Make virtual.
4075 <compare>: Remove static method, introduce virtual method.
4076 <default_hash>: Remove.
4077 <hash>: New virtual method.
4078 * bcache.c (bcache::expand_hash_table): Update.
4079 (bcache::insert): Update.
4080 (bcache::hash): New.
4081 (bcache::compare): Update comment and parameter names.
4082 * gdbtypes.c (types_deeply_equal): Update.
4083 * psymtab.h (struct psymbol_bcache): New struct.
4084 (class psymtab_storage) <psymtab_storage>: Make default.
4085 <psymbol_cache>: Change type to psymbol_bcache.
4086 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4087 (psymbol_hash): Change to...
4088 (psymbol_bcache::hash): ... this.
4089 (psymbol_compare): Change to...
4090 (psymbol_bcache::compare): ... this.
4091
677c92fe
SM
40922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4093
4094 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4095 checking for initial lwp.
4096
3eba3a01
TT
40972020-09-14 Tom Tromey <tromey@adacore.com>
4098
4099 * m68k-tdep.c (m68k_extract_return_value): Use
4100 pointer_result_regnum.
4101 (m68k_store_return_value): Likewise.
4102 (m68k_reg_struct_return_p): Handle vectors and arrays.
4103 (m68k_return_value): Handle arrays.
4104 (m68k_svr4_return_value): Fix single-element aggregate handling.
4105 Handle long double. Adjust for embedded ABI.
4106 (m68k_svr4_init_abi): Set pointer_result_regnum.
4107 (m68k_embedded_init_abi): New function.
4108 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4109 (m68k_osabi_sniffer): New function.
4110 (_initialize_m68k_tdep): Register osabi sniffer.
4111 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4112 member.
4113
33f4dd48
SM
41142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4115
4116 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4117 with gdb::unique_xmalloc_ptr<char>.
4118
8400a90d
SM
41192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4120
4121 * xml-support.h (xml_fetch_another): Change type to be a
4122 function_view.
4123 (xml_process_xincludes): Remove baton parameter.
4124 (xml_fetch_content_from_file): Change baton parameter to
4125 dirname.
4126 * xml-support.c (struct xinclude_parsing_data)
4127 <xinclude_parsing_data>: Remove baton parameter.
4128 <fetcher_baton>: Remove.
4129 (xinclude_start_include): Adjust.
4130 (xml_process_xincludes): Adjust.
4131 (xml_fetch_content_from_file): Replace baton parameter with
4132 dirname.
4133 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4134 (xml_init_syscalls_info): Use a lambda.
4135 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4136 (file_read_description_xml): Use a lambda.
4137 (fetch_available_features_from_target): Change baton parameter
4138 to target_ops.
4139 (target_read_description_xml): Use a lambda.
4140 (target_fetch_description_xml): Use a lambda.
4141 (string_read_description_xml): Update.
4142
04f5bab2
SM
41432020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4144
4145 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4146 uses with type::endianity_is_not_default.
4147
db558e34
SM
41482020-09-14 Simon Marchi <simon.marchi@efficios.com>
4149
4150 * gdbtypes.h (struct type) <endianity_is_not_default,
4151 set_endianity_is_not_default>: New methods.
4152 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4153 type::endianity_is_not_default, change all write call sites to
4154 use type::set_endianity_is_not_default.
4155
22c4c60c
SM
41562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4159 uses with type::is_fixed_instance.
4160
9cdd0d12
SM
41612020-09-14 Simon Marchi <simon.marchi@efficios.com>
4162
4163 * gdbtypes.h (struct type) <is_fixed_instance,
4164 set_is_fixed_instance>: New methods.
4165 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4166 write call sites to use type::set_is_fixed_instance.
4167
0becda7a
SM
41682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4169
4170 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4171 uses with type::is_gnu_ifunc.
4172
03cc7249
SM
41732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4176 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4177 use type::set_is_gnu_ifunc.
4178
3f46044c
SM
41792020-09-14 Simon Marchi <simon.marchi@efficios.com>
4180
4181 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4182 uses with type::stub_is_supported.
4183
9baccff6
SM
41842020-09-14 Simon Marchi <simon.marchi@efficios.com>
4185
4186 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4187 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4188 use type::set_stub_is_supported.
4189
bd63c870
SM
41902020-09-14 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4193 uses with type::is_vector.
4194
2062087b
SM
41952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4196
4197 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4198 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4199 use type::set_is_vector.
4200
a409645d
SM
42012020-09-14 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4204 uses with type::has_varargs.
4205
1d6286ed
SM
42062020-09-14 Simon Marchi <simon.marchi@efficios.com>
4207
4208 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4209 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4210 use type::set_has_varargs.
4211
7f9f399b
SM
42122020-09-14 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4215 uses with type::is_prototyped.
4216
27e69b7a
SM
42172020-09-14 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4220 New methods.
4221 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4222 call sites to use type::set_is_prototyped.
4223
d2183968
SM
42242020-09-14 Simon Marchi <simon.marchi@efficios.com>
4225
4226 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4227 uses with type::target_is_stub.
4228
8f53807e
SM
42292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4232 New methods.
4233 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4234 sites to use type::set_target_is_stub.
4235
e46d3488
SM
42362020-09-14 Simon Marchi <simon.marchi@efficios.com>
4237
4238 * gdbtypes.h (TYPE_STUB): Remove, replace all
4239 uses with type::is_stub.
4240
b4b73759
SM
42412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4242
4243 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4244 (TYPE_STUB): Use type::is_stub, change all write call sites to
4245 use type::set_is_stub.
4246
20ce4123
SM
42472020-09-14 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4250 type::has_no_signedness.
4251
15152a54
SM
42522020-09-14 Simon Marchi <simon.marchi@efficios.com>
4253
4254 * gdbtypes.h (struct type) <has_no_signedness,
4255 set_has_no_signedness>: New methods.
4256 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4257 call sites to use type::set_has_no_signedness.
4258
c6d940a9
SM
42592020-09-14 Simon Marchi <simon.marchi@efficios.com>
4260
4261 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4262 type::is_unsigned.
4263
653223d3
SM
42642020-09-14 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4267 methods.
4268 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4269 sites to use type::set_is_unsigned.
4270
55ea94da 42712020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4272 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4273
e851246a
SM
4274 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4275 pointer and stack frame offset when unwinding.
55ea94da 4276
6791b117
PA
42772020-09-13 Pedro Alves <pedro@palves.net>
4278
4279 * NEWS: Document "-break-insert --qualified".
4280 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4281
77f2120b
PA
42822020-09-13 Pedro Alves <pedro@palves.net>
4283
4284 * linespec.c (classify_mtype, compare_msyms): Delete.
4285 (search_minsyms_for_name): Remove classification logic. Instead
4286 filter out trampoline symbols if we also found an external
4287 function of the same name.
4288
ed6a896c
JB
42892020-09-13 Joel Brobecker <brobecker@adacore.com>
4290
4291 * NEWS: Create a new section for the next release branch.
4292 Rename the section of the current branch, now that it has
4293 been cut.
4294
32aea73e
JB
42952020-09-13 Joel Brobecker <brobecker@adacore.com>
4296
4297 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4298 * version.in: Bump version to 11.0.50.DATE-git.
4299
8087c3fa
JB
43002020-09-12 Joel Brobecker <brobecker@adacore.com>
4301
4302 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4303
2a67f09d
FW
43042020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4305 Felix Willgerodt <Felix.Willgerodt@intel.com>
4306
4307 * gdbarch.sh: Added bfloat16 type.
4308 * gdbarch.c: Regenerated.
4309 * gdbarch.h: Regenerated.
4310 * gdbtypes.c (floatformats_bfloat16): New struct.
4311 (gdbtypes_post_init): Add builtin_bfloat16.
4312 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4313 (floatformats_bfloat16): New struct.
4314 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4315 (i386_ymm_type): Add field "v16_bfloat16"
4316 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4317 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4318 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4319 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4320 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4321 * features/i386/64bit-avx512.c: Regenerated.
4322 * features/i386/64bit-sse.xml: Add bfloat16 type.
4323 * features/i386/64bit-sse.c: Regenerated.
4324
1347d111
FW
43252020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4326
4327 * i386-tdep.c (i386_zmm_type): Fix field names.
4328 (i386_ymm_type): Fix field names.
4329
7a4e8e7d
TBA
43302020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4331
4332 * breakpoint.c: Fix typo in the help message of the
4333 "set breakpoint condition-evaluation" command.
4334
cf4ac4be
KR
43352020-09-10 Kamil Rytarowski <n54@gmx.com>
4336
4337 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4338 * (nbsd_nat_target::pid_to_exec_file)
4339 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4340 (nbsd_nat_target::post_startup_inferior)
4341 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4342 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4343 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4344 * (nbsd_thread_lister): Remove.
4345
f404573e
KR
43462020-09-10 Kamil Rytarowski <n54@gmx.com>
4347
4348 * fork-inferior.c (startup_inferior): Avoid double free.
4349
1ccb2c17
KR
43502020-09-10 Kamil Rytarowski <n54@gmx.com>
4351
4352 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4353 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4354
feedfcc7
KR
43552020-09-10 Kamil Rytarowski <n54@gmx.com>
4356
4357 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4358 * netbsd-nat.c: Include <sys/ptrace.h>.
4359 * (netbsd_nat::enable_proc_events): Add.
4360
c489f8c6
KR
43612020-09-10 Kamil Rytarowski <n54@gmx.com>
4362
4363 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4364 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4365 (netbsd_nat::for_each_thread): Add.
4366 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4367 "gdbsupport/common-debug.h".
4368 * (netbsd_nat::netbsd_thread_lister)
4369 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4370 (netbsd_nat::for_each_thread): Add.
4371
330662f6
KR
43722020-09-10 Kamil Rytarowski <n54@gmx.com>
4373
4374 * netbsd-nat.h: Include <unistd.h>.
4375 * (netbsd_nat::pid_to_exec_file): Add.
4376 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4377 * (netbsd_nat::pid_to_exec_file) Add.
4378
70b67307
KR
43792020-09-10 Kamil Rytarowski <n54@gmx.com>
4380
4381 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4382
99cf6da6
KR
43832020-09-10 Kamil Rytarowski <n54@gmx.com>
4384
4385 * netbsd-nat.h: New file.
4386 * netbsd-nat.c: Likewise.
4387
1b788fb6
TT
43882020-09-09 Tom Tromey <tromey@adacore.com>
4389
4390 * ada-lang.c (remove_extra_symbols): Do not increment when
4391 removing an element
4392
03b0a45f
TT
43932020-09-08 Tom Tromey <tromey@adacore.com>
4394
4395 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4396
3cae4447
TT
43972020-09-08 Tom Tromey <tromey@adacore.com>
4398
4399 PR win32/25302:
4400 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4401 (gdb_bfd_init_data): New function.
4402 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4403
7f08fd51
TBA
44042020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4405
4406 * infrun.c (fetch_inferior_event): Use
4407 `switch_to_target_no_thread` to switch the target.
4408
3e6ff933
TT
44092020-09-06 Tom Tromey <tom@tromey.com>
4410
4411 * symfile.h (dwarf2_free_objfile): Don't declare.
4412
e56798df
AKS
44132020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4414
4415 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4416 to match 16 byte real/complex type generated by Flang compiler.
4417
8f5c6526
TV
44182020-09-03 Tom de Vries <tdevries@suse.de>
4419
4420 PR breakpoint/26546
4421 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4422 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4423
c5065df0
SM
44242020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4425
4426 * maint.c (index_digits): New function.
4427 (struct maint_print_section_data): Remove.
4428 (print_bfd_section_info): Remove print_data parameter, add arg
4429 and index_digits.
4430 (print_objfile_section_info): Likewise.
4431 (print_bfd_section_info_maybe_relocated): Likewise (plus
4432 objfile).
4433 (maintenance_info_sections): Adjust calls.
4434
02c6f3f1
TT
44352020-09-02 Tom Tromey <tromey@adacore.com>
4436
4437 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4438 for null pointers.
4439 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4440
ef5e5b0b
SM
44412020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4442
4443 * bcache.h (struct bcache) <insert>: Change type of `added` to
4444 pointer to bool.
4445 * bcache.c (bcache::insert): Likewise.
4446 * gdbtypes.c (check_types_worklist): Adjust.
4447 * psymtab.c (add_psymbol_to_bcache): Adjust.
4448
973695d6
KB
44492020-08-31 Kevin Buettner <kevinb@redhat.com>
4450
4451 * corelow.c (unordered_set): Include.
4452 (class core_target): Add field 'm_core_unavailable_mappings'.
4453 (core_target::build_file_mappings): Print only one warning
4454 per inaccessible file. Add unavailable/broken mappings
4455 to m_core_unavailable_mappings.
4456 (core_target::xfer_partial): Call...
4457 (core_target::xfer_memory_via_mappings): New method.
4458
264fc0e2
SM
44592020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4460
4461 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4462 type to bool.
4463
2de01bdb
SM
44642020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4465
4466 * dwarf2/read.c (struct field_info): Fix indentation.
4467
f3bd50f1
SM
44682020-08-31 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4471 ordering in comment.
4472 * frame.c (frame_id_eq): Fix indentation.
4473
22b9b4b0
SL
44742020-08-31 Scott Linder <scott@scottlinder.com>
4475 Simon Marchi <simon.marchi@efficios.com>
4476
4477 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4478 inline frame ids in outer frame.
4479
84154d16
SM
44802020-08-31 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4483 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4484 (outer_frame_id): Use FID_STACK_OUTER instead of
4485 FID_STACK_INVALID.
4486 (frame_id_p): Don't check for outer_frame_id.
4487
8efaf6b3
SM
44882020-08-31 Simon Marchi <simon.marchi@efficios.com>
4489
4490 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4491 regnum/frame in value. Call allocate_value_lazy.
4492 * frame.c (frame_unwind_register_value): Use
4493 val_print_not_saved.
4494
fe1fe7ea
SM
44952020-08-31 Simon Marchi <simon.marchi@efficios.com>
4496
4497 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4498
f7c7700d
PA
44992020-08-29 Pedro Alves <pedro@palves.net>
4500
4501 * progspace.c (print_program_space): Use all_inferiors. Switch to
4502 the inferior before calling target_pid_to_str.
4503
e0814aae
TT
45042020-08-28 Tom Tromey <tom@tromey.com>
4505
4506 * xcoffread.c (xcoff_end_psymtab): Update comment.
4507 * dbxread.c (dbx_end_psymtab): Update comment.
4508
626d2320
TV
45092020-08-28 Tom de Vries <tdevries@suse.de>
4510
4511 PR breakpoint/26544
4512 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4513 event_location.
4514 (create_breakpoint): Same.
4515 (base_breakpoint_decode_location): Same.
4516 (bkpt_create_sals_from_location): Same.
4517 (bkpt_decode_location): Same.
4518 (bkpt_probe_create_sals_from_location): Same.
4519 (bkpt_probe_decode_location): Same.
4520 (tracepoint_create_sals_from_location): Same.
4521 (tracepoint_decode_location): Same.
4522 (tracepoint_probe_decode_location): Same.
4523 (strace_marker_create_sals_from_location): Same.
4524 (strace_marker_decode_location): Same.
4525 (create_sals_from_location_default): Same.
4526 (decode_location_default): Same.
4527 * breakpoint.h (struct breakpoint_ops): Same.
4528 (create_breakpoint): Same.
4529 * linespec.h (decode_line_full): Same.
4530 * linespec.c (decode_line_full): Same. Throw error if
4531 result.size () == 0.
4532
df631783
PA
45332020-08-27 Pedro Alves <pedro@palves.net>
4534
4535 PR gdb/26524
4536 * breakpoint.c (until_break_fsm) <location_breakpoint,
4537 caller_breakpoint>: Delete fields.
4538 <breakpoints>: New field.
4539 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4540 two individual breakpoints.
4541 (until_break_fsm::should_stop): Loop over breakpoints in the
4542 breakpoint vector.
4543 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4544 vector.
4545 (until_break_command): Handle location expanding into multiple
4546 sals.
4547
b2b38aa4
PA
45482020-08-27 Pedro Alves <pedro@palves.net>
4549
4550 PR gdb/26523
4551 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4552 bp_until breakpoints user-specified locations. Update intro
4553 comment.
4554
b886559f
SM
45552020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4556
4557 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4558 gdb_bfd_sections): New.
4559 * maint.c (print_bfd_section_info): Change param type to
4560 maint_print_section_data.
4561 (print_objfile_section_info): Likewise.
4562 (print_bfd_section_info_maybe_relocated): Likewise.
4563 (maintenance_info_sections): Use gdb_bfd_sections.
4564
4c6e63bf
SV
45652020-08-25 Shahab Vahedi <shahab@synopsys.com>
4566
4567 * MAINTAINERS: Add ARC target and maintainer.
4568
8d7f0635
AK
45692020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4570
4571 * configure.tgt: ARC support for GNU/Linux.
4572 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4573 * arc-linux-tdep.c: New file.
4574 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4575 * arc-tdep.c (arc_write_pc): Use it.
4576
fdd8731b
SV
45772020-08-25 Shahab Vahedi <shahab@synopsys.com>
4578
4579 * arc-tdep.c (arc_check_for_hardware_loop): New.
4580 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4581
22459524
SV
45822020-08-25 Shahab Vahedi <shahab@synopsys.com>
4583
4584 * arc-tdep.h: Include "gdbarch.h".
4585
995d3a19
SV
45862020-08-25 Shahab Vahedi <shahab@synopsys.com>
4587
4588 * arch/arc.h
4589 (arc_gdbarch_features): New class to stir the selection of target XML.
4590 (arc_create_target_description): Use FEATURES to choose XML target.
4591 (arc_lookup_target_description): Use arc_create_target_description
4592 to create _new_ target descriptions or return the already created
4593 ones if the FEATURES is the same.
4594 * arch/arc.c: Implementation of prototypes described above.
4595 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4596 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4597 * arc-tdep.c (*_feature_name): Make feature names consistent.
4598 (arc_register_feature): A new struct to hold information about
4599 registers of a particular target/feature.
4600 (arc_check_tdesc_feature): Check if XML provides registers in
4601 compliance with ARC_REGISTER_FEATURE structs.
4602 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4603 (determine_*_reg_feature_set): Which feature name to look for.
4604 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4605 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4606 to expected ISA enums to be used in arc_gdbarch_features structs.
4607 * features/Makefile (FEATURE_XMLFILES): Add new files.
4608 * gdb/features/arc/v1-aux.c: New file.
4609 * gdb/features/arc/v1-aux.xml: Likewise.
4610 * gdb/features/arc/v1-core.c: Likewise.
4611 * gdb/features/arc/v1-core.xml: Likewise.
4612 * gdb/features/arc/v2-aux.c: Likewise.
4613 * gdb/features/arc/v2-aux.xml: Likewise.
4614 * gdb/features/arc/v2-core.c: Likewise.
4615 * gdb/features/arc/v2-core.xml: Likewise.
4616 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4617
3945d2d7
GM
46182020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4619 Andrew Burgess <andrew.burgess@embecosm.com>
4620
4621 PR m2/26372
fc5d6901 4622 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4623 an assert. Remove single element array indexing pattern as the
4624 MULTI_SUBSCRIPT support will handle this case too.
4625
2677f2d3
SM
46262020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4627
4628 * value.h (valprint_check_validity): Move declaration from
4629 here...
4630 * valprint.h (valprint_check_validity): ... to here.
4631
c426fddb
SM
46322020-08-24 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * debug.h: New file.
4635 * debug.c (debug_prefixed_vprintf): New function.
4636 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4637 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4638
1eb8556f
SM
46392020-08-24 Simon Marchi <simon.marchi@efficios.com>
4640
4641 * infrun.h (infrun_debug_printf_1): New function declaration.
4642 (infrun_debug_printf): New macro.
4643 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4644 throughout.
4645 (infrun_debug_printf): New function.
4646 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4647 (handle_jit_event): Likewise.
4648
b8fff44e
MW
46492020-08-21 Mark Wielaard <mark@klomp.org>
4650
4651 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4652
d19c3068
SM
46532020-08-22 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * frame.c (enum class frame_id_status): New.
4656 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4657 (fprintf_frame): Update.
4658 (compute_frame_id): Set frame id status to "computing" on entry.
4659 Set it back to "not_computed" on failure and to "computed" on
4660 success.
4661 (get_frame_id): Assert the frame id is not being computed.
4662 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4663 (create_new_frame): Likewise.
4664 (frame_cleanup_after_sniffer): Update assert.
4665
b70e516e
SM
46662020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4667
4668 * regcache.c (pid_ptid_regcache_map): New type.
4669 (target_ptid_regcache_map): Remove.
4670 (target_pid_ptid_regcache_map): New type.
4671 (regcaches): Change type to target_pid_ptid_regcache_map.
4672 (get_thread_arch_aspace_regcache): Update.
4673 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4674 case.
4675 (regcaches_size): Update.
4676 (regcache_count): Update.
4677 (registers_changed_ptid_target_pid_test): New.
4678 (_initialize_regcache): Register new test.
4679
cdd9148a
SM
46802020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4681
4682 * regcache.c (regcache_count): New.
4683 (struct regcache_test_data): New.
4684 (regcache_test_data_up): New.
4685 (populate_regcaches_for_test): New.
4686 (regcaches_test): Remove.
4687 (get_thread_arch_aspace_regcache_test): New.
4688 (registers_changed_ptid_all_test): New.
4689 (registers_changed_ptid_target_test): New.
4690 (registers_changed_ptid_target_ptid_test): New.
4691 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4692 (_initialize_regcache): Register new tests.
4693
dd125343
SM
46942020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4695
4696 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4697 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4698 gdbarch and aspace parameter. Use current inferior's aspace.
4699 Validate regcache's arch value.
4700 (regcaches_test): Update.
4701
3ee93972
SM
47022020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4703
4704 * regcache.c (regcaches_test): Call registers_changed.
4705
33bf4c5c
TBA
47062020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4707
4708 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4709
c2fd7fae
AKS
47102020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4711
4712 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4713 to find the end of prologue for flang compiled binaries.
4714 * arm-tdep.c (arm_skip_prologue): Likewise.
4715 * i386-tdep.c (i386_skip_prologue): Likewise.
4716 * producer.c (producer_is_llvm): New function.
4717 (producer_parsing_tests): Added new tests for clang/flang.
4718 * producer.h (producer_is_llvm): New declaration.
4719
9327494e
SM
47202020-08-18 Simon Marchi <simon.marchi@efficios.com>
4721
4722 * linux-nat.c (linux_nat_debug_printf): New function.
4723 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4724
d138725a
AM
47252020-08-18 Aaron Merey <amerey@redhat.com>
4726
4727 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4728 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4729 (CLIBS): Add DEBUGINFOD_LIBS.
4730
f9b11e6b
ST
47312020-08-17 Sergei Trofimovich <siarheit@google.com>
4732
4733 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4734 'gdbarch_num_regs'.
4735
3ae7ab99
TT
47362020-08-17 Tom Tromey <tromey@adacore.com>
4737
4738 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4739 ada_get_decoded_value returns NULL.
4740
b017825f
TT
47412020-08-17 Tom Tromey <tromey@adacore.com>
4742
4743 * python/py-inferior.c (infpy_search_memory): Use
4744 gdb_py_object_from_ulongest.
4745 * python/py-infevents.c (create_inferior_call_event_object)
4746 (create_memory_changed_event_object): Use
4747 gdb_py_object_from_ulongest.
4748 * python/py-linetable.c (ltpy_entry_get_pc): Use
4749 gdb_py_object_from_ulongest.
4750
7635cf79
SM
47512020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4752
4753 * loc.c (class symbol_needs_eval_context): Fix indentation.
4754
f54be24b
SM
47552020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4756
4757 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4758 bool.
4759
53d5a2a5
TV
47602020-08-17 Tom de Vries <tdevries@suse.de>
4761
4762 PR gdb/26393
4763 * gdbtypes.c (dump_dynamic_prop): New function.
4764 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4765
547ce8f0
TV
47662020-08-15 Tom de Vries <tdevries@suse.de>
4767
4768 PR backtrace/26390
4769 * stack.c (print_frame_args): Temporarily set the selected
4770 frame to FRAME while printing the frame's arguments.
4771
6ea815e7
PFC
47722020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4773
4774 PR breakpoints/26385
4775 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4776 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4777
6e562fa3
PFC
47782020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4779
4780 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4781 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4782 and >= to check return value instead of == -1 and != -1.
4783
d369b608
SM
47842020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4785
4786 * utils.h (class gdb_argv) <as_array_view>: New method.
4787 * utils.c (gdb_argv_as_array_view_test): New.
4788 (_initialize_utils): Register selftest.
4789 * maint.c (maintenance_selftest): Use the new method.
4790
b31488a3
KR
47912020-08-13 Kamil Rytarowski <n54@gmx.com>
4792
4793 * target.h (supports_dumpcore, dumpcore): New
4794 function declarations.
4795 * target.c (supports_dumpcore, dumpcore): New
4796 functions.
4797 * target-delegates.c: Rebuild.
4798 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4799 and target_dumpcore ().
4800
002a3166
AM
48012020-08-13 Aaron Merey <amerey@redhat.com>
4802
4803 * debuginfod-support.c: Replace global variables with user_data.
4804
ece5bc8a
SM
48052020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4806
4807 * maint.c (maintenance_selftest): Split args and pass array_view
4808 to run_tests.
4809
6d8a0a5e
LM
48102020-08-12 Luis Machado <luis.machado@linaro.org>
4811
4812 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4813 type's length.
4814 Use %s and pulongest to print the length.
4815
7cf663a9
PA
48162020-08-12 Pedro Alves <palves@redhat.com>
4817
4818 * NEWS: Move "Multi-target debugging support" item to the
4819 "Changes since GDB 9" section.
4820
27c7b875
PA
48212020-08-12 Pedro Alves <palves@redhat.com>
4822
4823 PR gdb/26336
4824 * progspace.c (program_space::remove_objfile): Invalidate the
4825 frame cache.
4826
1796a2a1
TV
48272020-08-11 Tom de Vries <tdevries@suse.de>
4828
4829 * MAINTAINERS: Mark ms1 as deleted.
4830
f8e3fe0d
LM
48312020-08-10 Luis Machado <luis.machado@linaro.org>
4832
4833 PR gdb/26310
4834
4835 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4836 act accordingly.
4837 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4838 movz/str/stur/stp skipping behavior.
4839
cc308722
LM
48402020-08-10 Luis Machado <luis.machado@linaro.org>
4841
4842 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4843 struct user_sve_header instead of struct sve_context.
4844
041d9819
SM
48452020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4846
4847 * read.h (dwarf2_fetch_die_loc_sect_off,
4848 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4849 `void *` parameter with function_view.
4850 * read.c (dwarf2_fetch_die_loc_sect_off,
4851 dwarf2_fetch_die_loc_cu_off): Likewise.
4852 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4853 (per_cu_dwarf_call): Adjust.
4854 (get_frame_address_in_block_wrapper): Remove.
4855 (indirect_synthetic_pointer): Adjust.
4856 (get_ax_pc): Remove.
4857 (dwarf2_compile_expr_to_ax): Adjust.
4858
38f8aa06
TV
48592020-08-08 Tom de Vries <tdevries@suse.de>
4860
4861 PR build/26344
4862 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4863 constructor.
4864 * regcache.c (get_thread_arch_aspace_regcache): Same.
4865
a52b3ae2
TT
48662020-08-07 Tom Tromey <tromey@adacore.com>
4867
4868 * ravenscar-thread.c
4869 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4870 New method.
4871 (ravenscar_thread_target::wait): Check
4872 runtime_initialized.
4873 (ravenscar_thread_target::prepare_to_store)
4874 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4875 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4876 (ravenscar_thread_target::stopped_by_watchpoint)
4877 (ravenscar_thread_target::stopped_data_address)
4878 (ravenscar_thread_target::core_of_thread): Use
4879 scoped_restore_current_thread and
4880 set_base_thread_from_ravenscar_task.
4881
0e29517d
TT
48822020-08-07 Tom Tromey <tromey@adacore.com>
4883
4884 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4885
592f9bd7
TT
48862020-08-07 Tom Tromey <tromey@adacore.com>
4887
4888 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4889 update_inferior_ptid before update_thread_list.
4890 (temporarily_change_regcache_ptid): New class.
4891 (ravenscar_thread_target::fetch_registers)
4892 (ravenscar_thread_target::store_registers)
4893 (ravenscar_thread_target::prepare_to_store): Use base thread when
4894 forwarding operation.
4895
39e2018a
TT
48962020-08-07 Tom Tromey <tromey@adacore.com>
4897
4898 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4899 "is_pid" case.
4900
2080266b
TT
49012020-08-07 Tom Tromey <tromey@adacore.com>
4902
4903 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4904 New methods.
4905 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4906 first.
4907 (ravenscar_thread_target::add_thread): Rename from
4908 ravenscar_add_thread.
4909 (ravenscar_thread_target::update_thread_list): Use a lambda.
4910 (ravenscar_thread_target::xfer_partial): New method.
4911
78c02f21
TT
49122020-08-07 Tom Tromey <tromey@adacore.com>
4913
4914 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4915 gdb::function_view.
4916 (iterate_over_live_ada_tasks): Change type of argument.
4917 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4918 of argument.
4919
d5d833af
TT
49202020-08-07 Tom Tromey <tromey@adacore.com>
4921
4922 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4923 Remove.
4924 (ravenscar_thread_target::extra_thread_info): Remove.
4925 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4926 defer to target beneath for non-Ravenscar threads.
4927
a8ac85bb
TT
49282020-08-07 Tom Tromey <tromey@adacore.com>
4929
4930 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4931 get_base_thread_from_ravenscar_task>: Now methods.
4932 <m_cpu_map>: New member.
4933 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4934 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4935 (ravenscar_thread_target::task_is_currently_active): Update.
4936 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4937 Now a method.
4938 (ravenscar_thread_target::add_active_thread): Put initial thread
4939 into the m_cpu_map.
4940
550ab58d
TT
49412020-08-07 Tom Tromey <tromey@adacore.com>
4942
4943 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4944 event_ptid.
4945
e9546579
TT
49462020-08-07 Tom Tromey <tromey@adacore.com>
4947
4948 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4949 runtime_initialized.
4950
3d4470e5
TT
49512020-08-07 Tom Tromey <tromey@adacore.com>
4952
4953 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4954 add_active_thread.
4955 (ravenscar_thread_target::add_active_thread): Now public.
4956 (ravenscar_inferior_created): Call add_active_thread after pushing
4957 the target.
4958
888bdb2b
SM
49592020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4960
4961 * regcache.c (ptid_regcache_map): New type.
4962 (target_ptid_regcache_map): New type.
4963 (regcaches): Change type to target_ptid_regcache_map.
4964 (get_thread_arch_aspace_regcache): Update to regcaches' new
4965 type.
4966 (regcache_thread_ptid_changed): Likewise.
4967 (registers_changed_ptid): Likewise.
4968 (regcaches_size): Likewise.
4969 (regcaches_test): Update.
4970 (regcache_thread_ptid_changed): Update.
4971 * regcache.h (regcache_up): New type.
4972 * gdbsupport/ptid.h (hash_ptid): New struct.
4973
b161a60d
SM
49742020-08-07 Simon Marchi <simon.marchi@efficios.com>
4975
4976 * observable.h (thread_ptid_changed): Add parameter
4977 `process_stratum_target *`.
4978 * infrun.c (infrun_thread_ptid_changed): Add parameter
4979 `process_stratum_target *` and use it.
4980 (selftests): New namespace.
4981 (infrun_thread_ptid_changed): New function.
4982 (_initialize_infrun): Register selftest.
4983 * regcache.c (regcache_thread_ptid_changed): Add parameter
4984 `process_stratum_target *` and use it.
4985 (regcache_thread_ptid_changed): New function.
4986 (_initialize_regcache): Register selftest.
4987 * thread.c (thread_change_ptid): Pass target to
4988 thread_ptid_changed observable.
4989
d2854d8d
CT
49902020-08-06 Caroline Tice <cmtice@google.com>
4991
fe4c3d43
SM
4992 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4993 (struct dwp_sections): Update field comments. Add loclists and
4994 rnglists fields.
4995 (struct virtual_v2_dwo_sections): Rename struct to
4996 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4997 size & offset fields for loclists and rnglists.
4998 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4999 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5000 skipping dummy type units.
5001 (create_dwp_hash_table): Update the large comment above the function to
5002 discuss Version 5 DWP files as well, with references. Update all the
5003 version checks in the function to check for version 5 as well. Add new
5004 section at the end to create dwp hash table for version 5.
5005 (create_dwp_v2_section): Rename function to
5006 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5007 Add V5 to error message text.
5008 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5009 into calls to create_dwp_v2_or_v5_section.
5010 (create_dwo_unit_in_dwp_v5): New function.
5011 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5012 check for version2; add else clause to handle version 5.
5013 (open_and_init_dwo_file): Add code to check dwarf version & only call
5014 create_debug_types_hash_table (with sections.types) if version is not 5;
5015 else call create_debug_type_hash_table, with sections.info.
5016 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5017 version 5.
5018 (dwarf2_locate_v5_dwp_sections): New function.
5019 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5020 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5021
159ed7d9
SM
50222020-08-06 Simon Marchi <simon.marchi@efficios.com>
5023
5024 * regcache.h (class regcache): Remove friend
5025 registers_changed_ptid.
5026 <regcache_thread_ptid_changed>: Remove.
5027 <regcaches>: Remove.
5028 * regcache.c (regcache::regcaches): Rename to...
5029 (regcaches): ... this. Make static.
5030 (get_thread_arch_aspace_regcache): Update.
5031 (regcache::regcache_thread_ptid_changed): Rename to...
5032 (regcache_thread_ptid_changed): ... this. Update.
5033 (class regcache_access): Remove.
5034 (regcaches_test): Update.
5035 (_initialize_regcache): Update.
5036 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5037 <forward_list>.
5038
174981ae
SM
50392020-08-06 Simon Marchi <simon.marchi@efficios.com>
5040
5041 * regcache.h (class regcache) <current_regcache>: Rename to...
5042 <regcaches>: ... this. Move doc here.
5043 * regcache.c (regcache::current_regcache) Rename to...
5044 (regcache::regcaches): ... this. Move doc to header.
5045 (get_thread_arch_aspace_regcache): Update.
5046 (regcache::regcache_thread_ptid_changed): Update.
5047 (registers_changed_ptid): Update.
5048 (class regcache_access) <current_regcache_size>: Rename to...
5049 <regcaches_size>: ... this.
5050 (current_regcache_test): Rename to...
5051 (regcaches_test): ... this.
5052 (_initialize_regcache): Update.
5053
ed908db6
VC
50542020-08-06 Victor Collod <vcollod@nvidia.com>
5055
5056 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5057
b5582ab7
KB
50582020-08-05 Kevin Buettner <kevinb@redhat.com>
5059
5060 * corelow.c (core_target::build_file_mappings): Don't output
5061 null pathname in warning.
5062
ea946b86
SM
50632020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5064
5065 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5066 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5067 gdb.dwarf2/dw2-single-line-discriminators.exp,
5068 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5069
57d02173
TT
50702020-08-05 Tom Tromey <tromey@adacore.com>
5071
5072 PR rust/26197:
5073 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5074 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5075 Fix off-by-one and type size errors in ordinary case.
5076
5555c86d
TV
50772020-08-05 Tom de Vries <tdevries@suse.de>
5078
5079 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5080 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5081
97916bfe
SM
50822020-08-04 Simon Marchi <simon.marchi@efficios.com>
5083
5084 * frame.h (frame_id_p): Return bool.
5085 (frame_id_artificial_p): Return bool.
5086 (frame_id_eq): Return bool.
5087 (has_stack_frames): Return bool.
5088 (get_selected_frame): Fix typo in comment.
5089 (get_frame_pc_if_available): Return bool.
5090 (get_frame_address_in_block_if_available): Return bool.
5091 (get_frame_func_if_available): Return bool.
5092 (read_frame_register_unsigned): Return bool.
5093 (get_frame_register_bytes): Return bool.
5094 (safe_frame_unwind_memory): Return bool.
5095 (deprecated_frame_register_read): Return bool.
5096 (frame_unwinder_is): Return bool.
5097 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5098 bool.
5099 <this_id::p>: Likewise.
5100 <prev_p>: Likewise.
5101 (frame_stash_add): Return bool.
5102 (get_frame_id): Use bool.
5103 (frame_id_build_special) Use bool.
5104 (frame_id_build_unavailable_stack): Use bool.
5105 (frame_id_build): Use bool.
5106 (frame_id_p): Return bool, use true/false instead of 1/0.
5107 (frame_id_artificial_p): Likewise.
5108 (frame_id_eq): Likewise.
5109 (frame_id_inner): Likewise.
5110 (get_frame_func_if_available): Likewise.
5111 (read_frame_register_unsigned): Likewise.
5112 (deprecated_frame_register_read): Likewise.
5113 (get_frame_register_bytes): Likewise.
5114 (has_stack_frames): Likewise.
5115 (inside_main_func): Likewise.
5116 (inside_entry_func): Likewise.
5117 (get_frame_pc_if_available): Likewise.
5118 (get_frame_address_in_block_if_available): Likewise.
5119 (frame_unwinder_is): Likewise.
5120 (safe_frame_unwind_memory): Likewise.
5121 (frame_unwind_arch): Likewise.
5122
fedfee88
SM
51232020-08-04 Simon Marchi <simon.marchi@efficios.com>
5124
5125 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5126 type to cached_copy_status.
5127 (fprintf_frame): Adjust.
5128 (get_frame_func_if_available): Adjust.
5129 (frame_cleanup_after_sniffer): Adjust.
5130
6cfa9b59
MW
51312020-08-04 Mark Wielaard <mark@klomp.org>
5132
5133 * MAINTAINERS (Write After Approval): Update email address.
5134
66d6346b
SM
51352020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5136
5137 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5138 dynamic_prop::const_val.
5139
8a6d5e35
SM
51402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5141
5142 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5143 dynamic_prop::kind.
5144
51d6067d
SM
51452020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5146
5147 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5148
b26e2ae7
JM
51492020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5150
5151 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5152
39791af2
JM
51532020-08-04 Weimin Pan <weimin.pan@oracle.com>
5154 Jose E. Marchesi <jose.marchesi@oracle.com>
5155
5156 * configure.tgt: Add entry for bpf-*-*.
5157 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5158 (ALLDEPFILES): Add bpf-tdep.c.
5159 * bpf-tdep.c: New file.
5160 * MAINTAINERS: Add bpf target and maintainer.
5161 * NEWS: Mention the support for the new target.
5162
521894aa
TV
51632020-08-04 Tom de Vries <tdevries@suse.de>
5164
5165 PR symtab/23270
5166 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5167 Error.
5168
5d6356e9
JB
51692020-08-03 John Baldwin <jhb@FreeBSD.org>
5170
5171 * syscalls/freebsd.xml: Regenerate.
5172
0cf82b81
JB
51732020-08-03 John Baldwin <jhb@FreeBSD.org>
5174
5175 * syscalls/update-freebsd.sh: Fix usage and year range.
5176
8f34b746
TV
51772020-08-03 Tom de Vries <tdevries@suse.de>
5178
5179 PR symtab/26333
5180 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5181 DW_LNE_lo_user/DW_LNE_hi_user range.
5182
5e500d33
SM
51832020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5184
5185 PR ada/26318
5186 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5187 kind.
5188
78319c15
TBA
51892020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5190
5191 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5192
4c55e970
TBA
51932020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5194
5195 * breakpoint.c (set_breakpoint_condition): Update the condition
5196 expressions after checking that the input condition string parses
5197 successfully and does not contain junk at the end.
5198
1e620590
TBA
51992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5200
5201 * breakpoint.c (set_breakpoint_condition): Update the
5202 condition string after parsing the new condition successfully.
5203
c8693053
RO
52042020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5205
5206 * proc-api.c (_STRUCTURED_PROC): Don't define.
5207 * proc-events.c: Likewise.
5208 * proc-flags.c: Likewise.
5209 * proc-why.c: Likewise.
5210 * procfs.c: Likewise.
5211
5212 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5213 * configure, config.in: Regenerate.
5214
5a99adb8
TV
52152020-07-30 Tom de Vries <tdevries@suse.de>
5216
5217 PR build/26320
5218 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5219 m_red/m_green/m_blue in a union.
5220
8ba83e91
TV
52212020-07-29 Tom de Vries <tdevries@suse.de>
5222
5223 PR tdep/26280
5224 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5225
f75a0693
AB
52262020-07-28 Tom Tromey <tromey@adacore.com>
5227
5228 PR symtab/26270:
5229 * symtab.h (find_pc_partial_function_sym): Declare.
5230 * cli/cli-cmds.c (disassemble_command): Use
5231 find_pc_partial_function_sym. Check asm_demangle.
5232 * blockframe.c (cache_pc_function_sym): New global.
5233 (cache_pc_function_name): Remove.
5234 (clear_pc_function_cache): Update.
5235 (find_pc_partial_function_sym): New function, from
5236 find_pc_partial_function.
5237 (find_pc_partial_function): Rewrite using
5238 find_pc_partial_function_sym.
5239
16f3242c
TT
52402020-07-28 Tom Tromey <tromey@adacore.com>
5241
5242 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5243 help. Add usage.
5244
4888741a
TT
52452020-07-28 Tom Tromey <tromey@adacore.com>
5246
5247 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5248 <DW_OP_GNU_variable_value>: Cast to address type.
5249
4d46f402
KR
52502020-07-28 Kamil Rytarowski <n54@gmx.com>
5251
5252 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5253 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5254 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5255 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5256 (nbsd_get_siginfo_type): New.
5257 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5258 (_initialize_nbsd_tdep): New.
5259
d70f978b
L
52602020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5261
5262 PR binutils/26301
5263 * configure: Regenerated.
5264
377170fa
L
52652020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5266
5267 PR binutils/26301
5268 * configure: Regenerated.
5269
43d5901d
AB
52702020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5271
5272 * python/py-frame.c: Remove 'user-regs.h' include.
5273 (frapy_read_register): Rewrite to make use of
5274 gdbpy_parse_register_id.
5275 * python/py-registers.c (gdbpy_parse_register_id): New function,
5276 moved here from python/py-unwind.c. Updated the return type, and
5277 also accepts register descriptor objects.
5278 * python/py-unwind.c: Remove 'user-regs.h' include.
5279 (pyuw_parse_register_id): Moved to python/py-registers.c.
5280 (unwind_infopy_add_saved_register): Update to use
5281 gdbpy_parse_register_id.
5282 (pending_framepy_read_register): Likewise.
5283 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5284
14fa8fb3
AB
52852020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5286
5287 * python/py-registers.c: Add 'user-regs.h' include.
5288 (register_descriptor_iter_find): New function.
5289 (register_descriptor_iterator_object_methods): New static global
5290 methods array.
5291 (register_descriptor_iterator_object_type): Add pointer to methods
5292 array.
5293
ddce1758
JB
52942020-07-27 John Baldwin <jhb@FreeBSD.org>
5295
5296 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5297 for all architectures on FreeBSD 11.3 and later.
5298
a4089f52
TT
52992020-07-27 Tom Tromey <tromey@adacore.com>
5300
5301 * gcore.h (load_corefile): Don't declare.
5302
95420d30
TV
53032020-07-27 Tom de Vries <tdevries@suse.de>
5304
5305 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5306 * config.in: Regenerate.
5307 * configure: Regenerate.
5308
05a6b8c2
EZ
53092020-07-26 Eli Zaretskii <eliz@gnu.org>
5310
5311 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5312 ws2tcpip.h. When checking whether socklen_t type is defined, use
5313 ws2tcpip.h if it is available and sys/socket.h isn't.
5314 * configure: Regenerate.
5315 * config.in: Regenerate.
5316
e79eb02f
AB
53172020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5318
5319 PR fortran/23051
5320 PR fortran/26139
5321 * valops.c (value_ind): Pass address to
5322 readjust_indirect_value_type.
5323 * value.c (readjust_indirect_value_type): Make parameter
5324 non-const, and add extra address parameter. Resolve original type
5325 before using it.
5326 * value.h (readjust_indirect_value_type): Update function
5327 signature and comment.
5328
876518dd
TV
53292020-07-25 Tom de Vries <tdevries@suse.de>
5330
5331 PR symtab/26243
5332 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5333 entries.
5334
f6720b1c
AM
53352020-07-24 Aaron Merey <amerey@redhat.com>
5336
5337 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5338 * configure: Rebuild.
5339
513487e1
KB
53402020-07-23 Kevin Buettner <kevinb@redhat.com>
5341
5342 PR corefiles/26294
5343 * corelow.c (_initialize_corelow): Add period to help text
5344 for "maintenance print core-file-backed-mappings".
5345
e7bc9db8
PA
53462020-07-23 Pedro Alves <pedro@palves.net>
5347
5348 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5349 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5350 meanwhile.
5351 * frame.c (frame_cache_generation, get_frame_cache_generation):
5352 New.
5353 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5354 (get_prev_frame_if_no_cycle): On exception, don't touch
5355 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5356 * frame.h (get_frame_cache_generation): Declare.
5357
90fcc466
TV
53582020-07-23 Tom de Vries <tdevries@suse.de>
5359
5360 PR tui/26282
5361 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5362 New default constructor.
5363
78344df7
AB
53642020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5365
5366 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5367 exclude non-statement entries.
5368
b089853a
KB
53692020-07-22 Kevin Buettner <kevinb@redhat.com>
5370
5371 * NEWS (New commands): Mention new command
5372 "maintenance print core-file-backed-mappings".
5373
09c2f5d4
KB
53742020-07-22 Kevin Buettner <kevinb@redhat.com>
5375
5376 * corelow.c (gdbcmd.h): Include.
5377 (core_target::info_proc_mappings): New method.
5378 (get_current_core_target): New function.
5379 (maintenance_print_core_file_backed_mappings): New function.
5380 (_initialize_corelow): Add core-file-backed-mappings to
5381 "maint print" commands.
5382
9c5ec5c2 53832020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5384
9c5ec5c2
KB
5385 * linux-tdep.c (dump_note_entry_p): New function.
5386 (linux_dump_mapping_p_ftype): New typedef.
5387 (linux_find_memory_regions_full): Add new parameter,
5388 should_dump_mapping_p.
5389 (linux_find_memory_regions): Adjust call to
5390 linux_find_memory_regions_full.
5391 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5392 call to linux_find_memory_regions_full.
5393
db082f59
KB
53942020-07-22 Kevin Buettner <kevinb@redhat.com>
5395
5396 * corelow.c (solist.h, unordered_map): Include.
5397 (class core_target): Add field m_core_file_mappings and
5398 method build_file_mappings.
5399 (core_target::core_target): Call build_file_mappings.
5400 (core_target::~core_target): Free memory associated with
5401 m_core_file_mappings.
5402 (core_target::build_file_mappings): New method.
5403 (core_target::xfer_partial): Use m_core_file_mappings
5404 for memory transfers.
5405 * linux-tdep.c (linux_read_core_file_mappings): New
5406 function.
5407 (linux_core_info_proc_mappings): Rewrite to use
5408 linux_read_core_file_mappings.
5409 (linux_init_abi): Register linux_read_core_file_mappings.
5410
7e183d27
KB
54112020-07-22 Kevin Buettner <kevinb@redhat.com>
5412
5413 * arch-utils.c (default_read_core_file_mappings): New function.
5414 * arch-utils.c (default_read_core_file_mappings): Declare.
5415 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5416 * gdbarch.h, gdbarch.c: Regenerate.
5417
2735d421
KB
54182020-07-22 Kevin Buettner <kevinb@redhat.com>
5419
5420 PR corefiles/25631
5421 * corelow.c (core_target:xfer_partial): Revise
5422 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5423 case after first checking the stratum beneath the core
5424 target.
5425 (has_all_memory): Return true.
5426 * target.c (raw_memory_xfer_partial): Revise comment
5427 regarding use of has_all_memory.
5428
e56cb451
KB
54292020-07-22 Kevin Buettner <kevinb@redhat.com>
5430
5431 * exec.h (section_table_xfer_memory): Revise declaration,
5432 replacing section name parameter with an optional callback
5433 predicate.
5434 * exec.c (section_table_xfer_memory): Likewise.
5435 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5436 of section_table_xfer_memory.
5437
32fa152e
TT
54382020-07-22 Tom Tromey <tromey@adacore.com>
5439
5440 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5441 lookup_symbol_search_name.
5442
a67a1c41
AB
54432020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5444
5445 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5446 redundant local variable.
5447 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5448 reference, not pointer, update code accordingly.
5449
a7b4ff4f
SM
54502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5451 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5452
5453 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5454 * jit.c (jit_breakpoint_re_set_internal): Use the
5455 `skip_jit_symbol_lookup` field.
5456
2340e834
SM
54572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5458 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5459
5460 * jit.c (jit_read_descriptor): Define the descriptor address once,
5461 use twice.
5462 (jit_breakpoint_deleted): Move the declaration of the loop variable
5463 `iter` into the loop header.
5464 (jit_breakpoint_re_set_internal): Move the declaration of the local
5465 variable `objf_data` to the first point of definition.
5466 (jit_event_handler): Move the declaration of local variables
5467 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5468 Rename `objf` to `jited`.
5469
c1072906
SM
54702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5471
5472 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5473 Remove.
5474 * jit.c (get_jiter_objfile_data): Update.
5475
c8474dc3
TBA
54762020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5477 Simon Marchi <simon.marchi@polymtl.ca>
5478
5479 * jit.c (struct jit_program_space_data): Remove.
5480 (jit_program_space_key): Remove.
5481 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5482 stuff.
5483 (get_jit_program_space_data): Remove.
5484 (jit_breakpoint_deleted): Iterate on all of the program space's
5485 objfiles.
5486 (jit_inferior_init): Likewise.
5487 (jit_breakpoint_re_set_internal): Likewise. Also change return
5488 type to void.
5489 (jit_breakpoint_re_set): Pass current_program_space to
5490 jit_breakpoint_re_set_internal.
5491
77208eb7
SM
54922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5493
5494 * jit.h (struct jiter_objfile_data) <cached_code_address,
5495 jit_breakpoint>: Move to here from ...
5496 * jit.c (jit_program_space_data): ... here.
5497 (jiter_objfile_data::~jiter_objfile_data): Update.
5498 (jit_breakpoint_deleted): Update.
5499 (jit_breakpoint_re_set_internal): Update.
5500
8c1c720f
SM
55012020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5502
5503 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5504 checks.
5505 (jit_read_descriptor): Remove NULL check.
5506 (jit_event_handler): Add an assertion.
5507
0e74a041
SM
55082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5509
5510 * jit.h (struct jit_objfile_data): Split into...
5511 (struct jiter_objfile_data): ... this ...
5512 (struct jited_objfile_data): ... and this.
5513 * objfiles.h (struct objfile) <jit_data>: Remove.
5514 <jiter_data, jited_data>: New fields.
5515 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5516 (jiter_objfile_data::~jiter_objfile_data): ... this.
5517 (get_jit_objfile_data): Rename to ...
5518 (get_jiter_objfile_data): ... this.
5519 (add_objfile_entry): Update.
5520 (jit_read_descriptor): Use get_jiter_objfile_data.
5521 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5522 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5523 (jit_inferior_exit_hook): Use objfile's jited_data field.
5524
238b5c9f
SM
55252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5526
5527 * jit.h: Forward-declare `struct minimal_symbol`.
5528 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5529 constructor, destructor, and an objfile* field.
5530 * jit.c (jit_objfile_data): Remove.
5531 (struct jit_objfile_data): Migrate from here to jit.h.
5532 (jit_objfile_data::~jit_objfile_data): New destructor
5533 implementation with code moved from free_objfile_data.
5534 (free_objfile_data): Delete.
5535 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5536 (jit_find_objf_with_entry_addr): Ditto.
5537 (jit_inferior_exit_hook): Ditto.
5538 (_initialize_jit): Remove the call to
5539 register_objfile_data_with_cleanup.
5540 * objfiles.h (struct objfile) <jit_data>: New field.
5541
fe053b9e
TBA
55422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5543
5544 * jit.h: Forward-declare `struct objfile`.
5545 (jit_event_handler): Add a second parameter, the JITer objfile.
5546 * jit.c (jit_read_descriptor): Change the signature to take the
5547 JITer objfile as an argument instead of the jit_program_space_data.
5548 (jit_inferior_init): Update the call to jit_read_descriptor.
5549 (jit_event_handler): Use the new JITer objfile argument when calling
5550 jit_read_descriptor.
5551 * breakpoint.c (handle_jit_event): Update the call to
5552 jit_event_handler to pass the JITer objfile.
5553
4cec0c66
JB
55542020-07-21 John Baldwin <jhb@FreeBSD.org>
5555
5556 * gdbarch.c: Regenerate.
5557 * gdbarch.h: Regenerate.
5558 * gdbarch.sh (handle_segmentation_fault): Remove method.
5559 * infrun.c (handle_segmentation_fault): Remove.
5560 (print_signal_received_reason): Remove call to
5561 handle_segmentation_fault.
5562
0e42f66a
JB
55632020-07-21 John Baldwin <jhb@FreeBSD.org>
5564
5565 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5566 Rename to sparc64_linux_report_signal_info and add siggnal
5567 argument.
5568 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5569 instead of sparc64_linux_handle_segmentation_fault.
5570
77bdfeb2
JB
55712020-07-21 John Baldwin <jhb@FreeBSD.org>
5572
5573 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5574 i386_linux_report_signal_info instead of
5575 i386_linux_handle_segmentation_fault.
5576 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5577 to i386_linux_report_signal_info and add siggnal argument.
5578 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5579 of i386_linux_handle_segmentation_fault.
5580 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5581 to i386_linux_report_signal_info and add siggnal argument.
5582
ad97bfc5
JB
55832020-07-21 John Baldwin <jhb@FreeBSD.org>
5584
5585 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5586 hook if present.
5587
272bb05c
JB
55882020-07-21 John Baldwin <jhb@FreeBSD.org>
5589
5590 * gdbarch.c: Regenerate.
5591 * gdbarch.h: Regenerate.
5592 * gdbarch.sh (report_signal_info): New method.
5593 * infrun.c (print_signal_received_reason): Invoke gdbarch
5594 report_signal_info hook if present.
5595
baf8791e
AB
55962020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5597
5598 * python/py-registers.c : Add 'unordered_map' include.
5599 (gdbpy_new_reggroup): Renamed to...
5600 (gdbpy_get_reggroup): ...this. Update to only create register
5601 group descriptors when needed.
5602 (gdbpy_reggroup_iter_next): Update.
5603
f7306dac
AB
56042020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5605
5606 * python/py-registers.c (gdbpy_register_object_data): New static
5607 global.
5608 (gdbpy_register_object_data_init): New function.
5609 (gdbpy_new_register_descriptor): Renamed to...
5610 (gdbpy_get_register_descriptor): ...this, and update to reuse
5611 existing register descriptors where possible.
5612 (gdbpy_register_descriptor_iter_next): Update.
5613 (gdbpy_initialize_registers): Register new gdbarch data.
5614
05c309a8
SM
56152020-07-21 Simon Marchi <simon.marchi@efficios.com>
5616
5617 * linux-nat.c (stopped_pids): Make static.
5618
d1fd641e
SM
56192020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5620
5621 PR ada/26235
5622 * gdbtypes.c (ada_discrete_type_low_bound,
5623 ada_discrete_type_high_bound): Handle undefined bounds.
5624
1de14d77
KR
56252020-07-21 Kamil Rytarowski <n54@gmx.com>
5626
5627 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5628 declaration.
5629 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5630 function.
5631
ed810cc7
JB
56322020-07-20 John Baldwin <jhb@FreeBSD.org>
5633
5634 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5635 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5636 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5637 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5638 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5639 method.
5640
ae5369e7
LC
56412020-07-20 Ludovic Courtès <ludo@gnu.org>
5642
5643 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5644 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5645 which are deprecated in Guile 3.0.
5646 * configure.ac (try_guile_versions): Add "guile-3.0".
5647 * configure (try_guile_versions): Regenerate.
5648 * NEWS: Update entry.
5649
68cf161c
LC
56502020-07-20 Ludovic Courtès <ludo@gnu.org>
5651 Doug Evans <dje@google.com>
5652
5653 PR gdb/21104
5654 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5655 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5656 USING_GUILE_BEFORE_2_2.
5657 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5658 Change type to 'scm_t_port_type *'.
5659 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5660 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5661 parameter and honor it. Update callers.
5662 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5663 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5664 functions.
5665 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5666 USING_GUILE_BEFORE_2_2.
5667 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5668 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5669 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5670 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5671 and 'SCM_PORT_TYPE'.
5672 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5673 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5674 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5675 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5676 [!USING_GUILE_BEFORE_2_2]: New functions.
5677 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5678 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5679 'gdbscm_memory_port_read'.
5680 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5681 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5682 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5683 function.
5684 (ioscm_init_memory_port): Remove.
5685 (ioscm_init_memory_port_stream): New function
5686 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5687 function.
5688 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5689 Return scm_from_uint (0).
5690 (gdbscm_set_memory_port_read_buffer_size_x)
5691 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5692 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5693 Return scm_from_uint (0).
5694 (gdbscm_set_memory_port_write_buffer_size_x)
5695 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5696 * configure.ac (try_guile_versions): Add "guile-2.2".
5697 * configure: Regenerate.
5698 * NEWS: Add entry.
5699
aee91db3
TT
57002020-07-18 Tom Tromey <tom@tromey.com>
5701
5702 * linux-nat.c (linux_multi_process): Remove.
5703 (linux_nat_target::supports_multi_process): Return true.
5704
0e267416
AB
57052020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5706
5707 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5708 (riscv_lookup_target_description): Return pointer out of
5709 unique_ptr.
5710 * target-descriptions.c (allocate_target_description): Add
5711 comment.
5712 (target_desc_deleter::operator()): Likewise.
5713 * target-descriptions.h (struct target_desc_deleter): Moved to
5714 gdbsupport/tdesc.h.
5715 (target_desc_up): Likewise.
5716
f80c8ec4
TT
57172020-07-17 Tom Tromey <tromey@adacore.com>
5718
5719 * linux-nat.c (linux_nat_target::supports_non_stop)
5720 (linux_nat_target::always_non_stop_p): Use "true".
5721 (linux_nat_target::supports_disable_randomization): Use "true" and
5722 "false".
5723
d0ce17d8
CT
57242020-07-16 Caroline Tice <cmtice@google.com>
5725
5726 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5727 (RNGLIST_HEADER_SIZE64): New constant definition.
5728 (struct dwop_section_names): Add rnglists_dwo.
5729 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5730 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5731 (struct dwo_sections): Add rnglists field.
5732 (read_attribut_reprocess): Add tag parameter.
5733 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5734 (cu_debug_rnglists_section): New function (decl & definition).
5735 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5736 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5737 die whose range is being checked; get rnglist section from
5738 cu_debug_rnglists_section, to get from either objfile or dwo file as
5739 appropriate. Add cases for DW_RLE_base_addressx,
5740 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5741 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5742 test inside if-condition and updating complaint message.
5743 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5744 dwarf2_rnglists_process.
5745 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5746 dwarf2_ranges_process.
5747 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5748 need_ranges_base and update comment appropriately. Also pass die tag
5749 to dwarf2_ranges_read.
5750 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5751 need_ranges_base and update comment appropriately. Also pass die tag
5752 to dwarf2_ranges_process.
5753 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5754 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5755 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5756 need_ranges_base and update comment appropriately. Also pass die tag
5757 to read_attribute_reprocess and dwarf2_ranges_read.
5758 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5759 and update function comment appropriately.
5760 (read_loclist_index): Call read_loclists_rnglists_header instead of
5761 read_loclist_header.
5762 (read_rnglist_index): New function.
5763 (read_attribute_reprocess): Add tag parameter. Add code for
5764 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5765 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5766
3dcc261c
AB
57672020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5768
5769 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5770 being resolved.
5771
ccb9eba6
AB
57722020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5773
5774 * arch-utils.c (show_architecture): Update formatting of messages.
5775
cf88be68
SM
57762020-07-12 Simon Marchi <simon.marchi@efficios.com>
5777
5778 * gdbtypes.h (struct type) <bounds>: Handle array and string
5779 types.
5780 * ada-lang.c (assign_aggregate): Use type::bounds on
5781 array/string type.
5782 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5783 * c-varobj.c (c_number_of_children): Likewise.
5784 (c_describe_child): Likewise.
5785 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5786 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5787 (f_type_print_base): Likewise.
5788 * f-valprint.c (f77_array_offset_tbl): Likewise.
5789 (f77_get_upperbound): Likewise.
5790 (f77_print_array_1): Likewise.
5791 * guile/scm-type.c (gdbscm_type_range): Likewise.
5792 * m2-typeprint.c (m2_array): Likewise.
5793 (m2_is_long_set_of_type): Likewise.
5794 * m2-valprint.c (get_long_set_bounds): Likewise.
5795 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5796 * python/py-type.c (typy_range): Likewise.
5797 * rust-lang.c (rust_internal_print_type): Likewise.
5798 * type-stack.c (type_stack::follow_types): Likewise.
5799 * valarith.c (value_subscripted_rvalue): Likewise.
5800 * valops.c (value_cast): Likewise.
5801
509971ae
SM
58022020-07-12 Simon Marchi <simon.marchi@efficios.com>
5803
5804 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5805 callers to use the equivalent accessor methods.
5806
107406b7
SM
58072020-07-12 Simon Marchi <simon.marchi@efficios.com>
5808
5809 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5810 (struct type) <bit_stride>: New method.
5811 (TYPE_BIT_STRIDE): Remove.
5812 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5813
bb789949
SM
58142020-07-12 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5817 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5818 callers to use the equivalent accessor methods instead.
5819
39498edb
SM
58202020-07-12 Simon Marchi <simon.marchi@efficios.com>
5821
5822 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5823 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5824 callers to use the equivalent accessor methods instead.
5825
3b606f38
SM
58262020-07-12 Simon Marchi <simon.marchi@efficios.com>
5827
5828 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5829 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5830 to use dynamic_prop::kind.
5831
064d9cb9
SM
58322020-07-12 Simon Marchi <simon.marchi@efficios.com>
5833
5834 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5835 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5836 to get the bound property's kind and check against
5837 PROP_UNDEFINED.
5838
5537ddd0
SM
58392020-07-12 Simon Marchi <simon.marchi@efficios.com>
5840
5841 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5842 all callers to use type::range_bounds followed by
5843 dynamic_prop::{low,high}.
5844
8c2e4e06
SM
58452020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5846
5847 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5848 const_val, set_const_val, baton, set_locexpr, set_loclist,
5849 set_addr_offset, variant_parts, set_variant_parts,
5850 original_type, set_original_type>: New methods.
5851 <kind>: Rename to...
5852 <m_kind>: ... this. Update all users to use the new methods
5853 instead.
5854 <data>: Rename to...
5855 <m_data>: ... this. Update all users to use the new methods
5856 instead.
5857
7c6f2712
SM
58582020-07-12 Simon Marchi <simon.marchi@efficios.com>
5859
5860 * gdbtypes.c (get_discrete_bounds): Return failure if
5861 the range type's bounds are not both defined and constant
5862 values.
5863 (get_array_bounds): Update comment. Remove undefined bound check.
5864
599088e3
SM
58652020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5866
5867 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5868 the type::bounds method directly.
5869
c4dfcb36
SM
58702020-07-12 Simon Marchi <simon.marchi@efficios.com>
5871
5872 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5873 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5874 are used to set the range type's bounds to use set_bounds.
5875
0a278aa7
PW
58762020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5877
5878 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5879
cce20f10
PA
58802020-07-10 Pedro Alves <pedro@palves.net>
5881
5882 * gdbthread.h (inferior_ref): Define.
5883 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5884 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5885 * thread.c
5886 (scoped_restore_current_thread::restore):
5887 Adjust to gdb::ref_ptr.
5888 (scoped_restore_current_thread::~scoped_restore_current_thread):
5889 Remove manual decref handling.
5890 (scoped_restore_current_thread::scoped_restore_current_thread):
5891 Adjust to use
5892 inferior_ref::new_reference/thread_info_ref::new_reference.
5893 Incref the thread before calling get_frame_id instead of after.
5894 Let TARGET_CLOSE_ERROR propagate.
5895
6d7aa592
PA
58962020-07-10 Pedro Alves <pedro@palves.net>
5897
5898 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5899 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5900 NOT_AVAILABLE_ERROR.
5901 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5902 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5903
b3e3a4c1
SM
59042020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5905 Pedro Alves <pedro@palves.net>
5906
5907 PR gdb/26199
5908 * infrun.c (threads_are_resumed_pending_p): Delete.
5909 (do_target_wait): Remove threads_are_executing and
5910 threads_are_resumed_pending_p checks from the inferior_matches
5911 lambda. Update comments.
5912
d6cc5d98
PA
59132020-07-10 Pedro Alves <pedro@palves.net>
5914
5915 PR gdb/26199
5916 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5917 executing threads.
5918
7d3badc6
PA
59192020-07-10 Pedro Alves <pedro@palves.net>
5920
5921 PR gdb/26199
5922 * infrun.c (handle_no_resumed): Handle multiple targets.
5923
42bd97a6
PA
59242020-07-10 Pedro Alves <pedro@palves.net>
5925
5926 PR gdb/26199
5927 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5928 target_is_async_p.
5929
43667cc6
PA
59302020-07-10 Pedro Alves <pedro@palves.net>
5931
5932 PR gdb/26199
5933 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5934 threads, not all threads.
5935
96118d11
PA
59362020-07-10 Pedro Alves <pedro@palves.net>
5937
5938 PR gdb/26199
5939 * remote.c (remote_target::open_1): Pass remote target pointer as
5940 data to create_async_event_handler.
5941 (remote_async_inferior_event_handler): Mark async event handler
5942 before returning if the remote target still has either pending
5943 events or unacknowledged notifications.
5944
54904d81
JB
59452020-07-10 John Baldwin <jhb@FreeBSD.org>
5946
5947 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5948 declaration.
5949 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5950 function.
5951
f37e5866
JB
59522020-07-09 John Baldwin <jhb@FreeBSD.org>
5953
5954 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5955 inferior_ptid.
5956
fc238d4a
JB
59572020-07-09 John Baldwin <jhb@FreeBSD.org>
5958
5959 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5960 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5961 AT_FREEBSD_PS_STRINGS.
5962
6e2469ff
HD
59632020-07-08 Hannes Domani <ssbssa@yahoo.de>
5964
5965 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5966 of debugfile path on Windows.
5967
d1076c41
JB
59682020-07-08 John Baldwin <jhb@FreeBSD.org>
5969
5970 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5971 argument to 'data'.
5972
15f3b077
TT
59732020-07-08 Tom Tromey <tromey@adacore.com>
5974
5975 * ada-lang.c (ada_exception_message_1): Use read_memory.
5976
9fc501fd
AB
59772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5978
5979 PR python/22748
5980 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5981 special handling for inline frames.
5982 * findvar.c (value_of_register_lazy): Skip inline frames when
5983 creating lazy register values.
5984 * frame.c (frame_id_computed_p): Delete definition.
5985 * frame.h (frame_id_computed_p): Delete declaration.
5986
64cb3757
AB
59872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5988
5989 * NEWS: Mention additions to Python API.
5990 * python/py-arch.c (archpy_register_groups): New function.
5991 (arch_object_methods): Add 'register_groups' method.
5992 * python/py-registers.c (reggroup_iterator_object): New struct.
5993 (reggroup_object): New struct.
5994 (gdbpy_new_reggroup): New function.
5995 (gdbpy_reggroup_to_string): New function.
5996 (gdbpy_reggroup_name): New function.
5997 (gdbpy_reggroup_iter): New function.
5998 (gdbpy_reggroup_iter_next): New function.
5999 (gdbpy_new_reggroup_iterator): New function
6000 (gdbpy_initialize_registers): Register new types.
6001 (reggroup_iterator_object_type): Define new Python type.
6002 (gdbpy_reggroup_getset): New static global.
6003 (reggroup_object_type): Define new Python type.
6004 * python/python-internal.h
6005
0f767f94
AB
60062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6007
6008 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6009 * python/py-arch.c (archpy_registers): New function.
6010 (arch_object_methods): Add 'registers' method.
6011 * python/py-registers.c: New file.
6012 * python/python-internal.h
6013 (gdbpy_new_register_descriptor_iterator): Declare.
6014 (gdbpy_initialize_registers): Declare.
6015 * python/python.c (do_start_initialization): Call
6016 gdbpy_initialize_registers.
6017 * NEWS: Mention additions to the Python API.
6018
87dbc774
AB
60192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6020
6021 * NEWS: Mention new Python API method.
6022 * python/py-unwind.c (pending_framepy_architecture): New function.
6023 (pending_frame_object_methods): Add architecture method.
6024
3bc98c0c
AB
60252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6026
6027 * gdbarch.c: Regenerate.
6028 * gdbarch.h: Regenerate.
6029 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6030 (gdbarch_data): Use internal_error for the case where
6031 deprecated_set_gdbarch_data was originally needed.
6032 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6033 and use passed in obstack.
6034 (libunwind_frame_set_descr): Should no longer get back NULL from
6035 gdbarch_data.
6036 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6037 type.
6038 * user-regs.c (user_regs_init): Update parameters, and use passed
6039 in obstack.
6040 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6041 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6042
d8cc8af6
TV
60432020-07-06 Tom de Vries <tdevries@suse.de>
6044
6045 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6046 End-Of-Sequence in lte_is_less_than.
6047 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6048 "gdb: Don't reorder line table entries too much when sorting".
6049
947f7597
TV
60502020-07-06 Tom de Vries <tdevries@suse.de>
6051
6052 PR tui/26205
6053 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6054
1e7c1b22
TV
60552020-07-05 Tom de Vries <tdevries@suse.de>
6056
6057 PR build/26187
6058 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6059 std::uncaught_exceptions instead of deprecated
6060 std::uncaught_exception.
6061
a36158ec
SM
60622020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6063
6064 * macroexp.h (macro_stringify): Return
6065 gdb::unique_xmalloc_ptr<char>.
6066 * macroexp.c (macro_stringify): Likewise.
6067 * macrotab.c (fixup_definition): Update.
6068
14d960c8
SM
60692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6070
6071 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6072 (lex_one_token): Update.
6073 * macroexp.c (struct macro_buffer) <release>: Return
6074 gdb::unique_xmalloc_ptr<char>.
6075 (macro_stringify): Update.
6076 (macro_expand): Update.
6077 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6078 * macroexp.h (macro_expand_next): Likewise.
6079
211d5b1c
SM
60802020-07-02 Simon Marchi <simon.marchi@efficios.com>
6081
6082 * macroexp.h (macro_lookup_ftype): Remove.
6083 (macro_expand, macro_expand_once, macro_expand_next): Remove
6084 lookup function parameters, add scope parameter.
6085 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6086 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6087 * macroscope.h (standard_macro_lookup): Change parameter type
6088 to macro_scope.
6089 * macroscope.c (standard_macro_lookup): Likewise.
6090 * c-exp.y (lex_one_token): Update.
6091 * macrocmd.c (macro_expand_command): Likewise.
6092 (macro_expand_once_command): Likewise.
6093
b1a35af2
SM
60942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6095
6096 * inf-loop.c (inferior_event_handler): Remove client_data param.
6097 * inf-loop.h (inferior_event_handler): Likewise.
6098 * infcmd.c (step_1): Adjust.
6099 * infrun.c (proceed): Adjust.
6100 (fetch_inferior_event): Remove client_data param.
6101 (infrun_async_inferior_event_handler): Adjust.
6102 * infrun.h (fetch_inferior_event): Remove `void *` param.
6103 * linux-nat.c (handle_target_event): Adjust.
6104 * record-btrace.c (record_btrace_handle_async_inferior_event):
6105 Adjust.
6106 * record-full.c (record_full_async_inferior_event_handler):
6107 Adjust.
6108 * remote.c (remote_async_inferior_event_handler): Adjust.
6109
1cdf9e33
TT
61102020-07-01 Tom Tromey <tom@tromey.com>
6111
6112 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6113 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6114
32c1e210
TT
61152020-07-01 Tom Tromey <tom@tromey.com>
6116
6117 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6118 tui_gen_win_info.
6119 (tui_win_info::make_window): Merge with
6120 tui_gen_win_info::make_window.
6121 (tui_win_info::make_visible): Move from tui_gen_win_info.
6122 * tui/tui-win.c (tui_win_info::max_width): Move from
6123 tui_gen_win_info.
6124 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6125 type.
6126 <window_factory>: Likewise.
6127 * tui/tui-layout.c (tui_win_info::resize): Move from
6128 tui_gen_win_info.
6129 (make_standard_window): Change return type.
6130 (get_locator_window, tui_get_window_by_name): Likewise.
6131 (tui_layout_window::apply): Remove a cast.
6132 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6133 (struct tui_win_info): Merge with tui_gen_win_info.
6134 (struct tui_gen_win_info): Remove.
6135
a30cb6da
TT
61362020-07-01 Tom Tromey <tom@tromey.com>
6137
6138 * tui/tui-stack.h (struct tui_locator_window): Derive from
6139 tui_win_info.
6140 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6141 <can_box>: New method.
6142
1eb2161f
TT
61432020-07-01 Tom Tromey <tom@tromey.com>
6144
6145 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6146
7134f2eb
TT
61472020-07-01 Tom Tromey <tom@tromey.com>
6148
6149 * tui/tui-regs.c (tui_data_window::display_registers_from)
6150 (tui_data_window::display_registers_from)
6151 (tui_data_window::first_data_item_displayed)
6152 (tui_data_window::delete_data_content_windows): Update.
6153 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6154 Remove.
6155 (tui_data_window::check_register_values): Update.
6156 (tui_data_item_window::rerender): Add parameters. Update.
6157 (tui_data_item_window::refresh_window): Remove.
6158 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6159 virtual.
6160 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6161 tui_gen_win_info.
6162 <refresh_window, max_height, min_height>: Remove.
6163 <rerender>: Add parameters.
6164 <x, y, visible>: New members.
6165 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6166 <m_item_width>: New member.
6167
22b7b041
TT
61682020-07-01 Tom Tromey <tom@tromey.com>
6169
6170 * tui/tui-regs.c (tui_data_window::show_register_group)
6171 (tui_data_window::check_register_values): Update.
6172 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6173 from item_no.
6174
c9753adb
TT
61752020-07-01 Tom Tromey <tom@tromey.com>
6176
6177 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6178 useless "if".
6179
9ab26b4a
TT
61802020-07-01 Tom Tromey <tom@tromey.com>
6181
6182 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6183 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6184
e555083f
TT
61852020-07-01 Tom Tromey <tom@tromey.com>
6186
6187 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6188 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6189 (struct tui_line_or_address): Move from tui-data.h.
6190 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6191 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6192 (tui_cmd_window, tui_source_window_base, tui_source_window)
6193 (tui_disasm_window): Don't declare.
6194 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6195 to tui-winsource.h.
6196 (SINGLE_KEY): Move to tui-stack.c.
6197
7a02bab7
TT
61982020-07-01 Tom Tromey <tom@tromey.com>
6199
6200 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6201 std::string.
6202 * tui/tui-regs.c (class tab_expansion_file): New.
6203 (tab_expansion_file::write): New method.
6204 (tui_register_format): Change return type. Use
6205 tab_expansion_file.
6206 (tui_get_register, tui_data_window::display_registers_from)
6207 (tui_data_item_window::rerender): Update.
6208 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6209 * tui/tui-io.c (tui_expand_tabs): Remove.
6210
ea68593b
TT
62112020-07-01 Tom Tromey <tom@tromey.com>
6212
6213 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6214
a8caed5d
FS
62152020-07-01 Fangrui Song <maskray@google.com>
6216
6217 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6218
9cdf9820
AKS
62192020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6220
6221 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6222 forms for DW_AT_associated and DW_AT_allocated attributes,
6223 which is already checked in function attr_to_dynamic_prop.
6224
a1520ad8
TT
62252020-06-30 Tom Tromey <tromey@adacore.com>
6226
6227 * dwarf2/read.c (quirk_rust_enum): Correctly call
6228 alloc_rust_variant for default-less enum.
6229
5ac58899
TT
62302020-06-30 Tom Tromey <tromey@adacore.com>
6231
6232 PR build/26183:
6233 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6234 gdb::to_string.
6235
19b187a9
SM
62362020-06-29 Simon Marchi <simon.marchi@efficios.com>
6237
6238 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6239 * gdbarch.h: Re-generate.
6240
cd4c4c07
TT
62412020-06-28 Tom Tromey <tom@tromey.com>
6242
6243 * command.h (cmd_types): Remove.
6244 (cmd_type): Don't declare.
6245 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6246 typedef.
6247 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6248 * cli/cli-decode.c (cmd_type): Remove.
6249
05779d57
PA
62502020-06-27 Pedro Alves <palves@redhat.com>
6251
6252 * fork-child.c (prefork_hook): Adjust.
6253 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6254 Delete.
6255 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6256 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6257 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6258 Remove declarations.
6259 (struct inferior) <set_tty, tty>: New methods.
6260 (struct inferior) <terminal>: Rename to ...
6261 (struct inferior) <m_terminal>: ... this and make private.
6262 * main.c (captured_main_1): Adjust.
6263 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6264 (mi_cmd_inferior_tty_show): Adjust.
6265 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6266 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6267
1776e3e5
NA
62682020-06-26 Nick Alcock <nick.alcock@oracle.com>
6269
6270 * configure.ac: Add --enable-libctf: handle --disable-static
6271 properly.
6272 * acinclude.m4: sinclude ../config/enable.m4.
6273 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6274 (LIBCTF): Substitute in.
6275 (CTF_DEPS): New, likewise.
6276 (CLIBS): libctf needs symbols from libbfd: move earlier.
6277 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6278 flags.
6279 * ctfread.c: Surround in ENABLE_LIBCTF.
6280 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6281 * configure: Regenerate.
6282 * config.in: Likewise.
6283
58373b80
SM
62842020-06-25 Simon Marchi <simon.marchi@efficios.com>
6285
6286 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6287
277474ee
SM
62882020-06-25 Simon Marchi <simon.marchi@efficios.com>
6289
6290 * inferior.h (struct inferior) <terminal>: Change type to
6291 gdb::unique_xmalloc_ptr<char>.
6292 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6293 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6294 field, adjust to unique pointer.
6295 (get_inferior_io_terminal): Adjust to unique pointer.
6296
6d74da72
AB
62972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6298
6299 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6300 registers, not just the known core set of registers.
6301
2e52d038
AB
63022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6303
6304 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6305 fflags, frm, and fcsr registers.
6306 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6307 restore groups.
6308 (riscv_tdesc_unknown_reg): New function.
6309 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6310 tdesc_use_registers.
6311 * riscv-tdep.h (struct gdbarch_tdep): Add
6312 unknown_csrs_first_regnum, unknown_csrs_count,
6313 duplicate_fflags_regnum, duplicate_frm_regnum, and
6314 duplicate_fcsr_regnum fields.
6315
be64fd07
AB
63162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6317
6318 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6319 callback, use the callback (when not null) to help number unknown
6320 registers.
6321 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6322 (tdesc_use_registers): Add extra parameter to declaration.
6323
3b9fce96
AB
63242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6325
6326 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6327 in the file.
6328 (class riscv_pending_register_alias): Likewise.
6329 (riscv_register_feature::register_info): Change 'required_p' field
6330 to 'required', and change its type. Add 'check' member function.
6331 (riscv_register_feature::register_info::check): Define new member
6332 function.
6333 (riscv_xreg_feature): Change initialisation of 'required' field.
6334 (riscv_freg_feature): Likewise.
6335 (riscv_virtual_feature): Likewise.
6336 (riscv_csr_feature): Likewise.
6337 (riscv_check_tdesc_feature): Take extra parameter, the csr
6338 tdesc_feature, rewrite the function to use the new
6339 riscv_register_feature::register_info::check function.
6340 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6341
865bad26
AB
63422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6343
6344 * features/Makefile: Remove all references to the deleted files
6345 below.
6346 * features/riscv/32bit-csr.c: Deleted.
6347 * features/riscv/32bit-csr.xml: Deleted.
6348 * features/riscv/64bit-csr.c: Deleted.
6349 * features/riscv/64bit-csr.xml: Deleted.
6350 * features/riscv/rebuild-csr-xml.sh: Deleted.
6351
ed69cbc8
AB
63522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6353
6354 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6355 whitespace error for declaration of names member variable.
6356 (struct riscv_register_feature): Add new prefer_first_name member
6357 variable, and fix whitespace error in declaration of registers.
6358 (riscv_xreg_feature): Initialize prefer_first_name field.
6359 (riscv_freg_feature): Likewise.
6360 (riscv_virtual_feature): Likewise.
6361 (riscv_csr_feature): Likewise.
6362 (riscv_register_name): Expand on comments. Remove register name
6363 modifications for CSR and virtual registers.
6364
4445e8f5
AB
63652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6366
6367 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6368 errors.
6369
767a879e
AB
63702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6371
6372 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6373 riscv-opc.h.
6374 (class riscv_pending_register_alias): New class.
6375 (riscv_check_tdesc_feature): Take vector of pending aliases and
6376 populate it as appropriate.
6377 (riscv_setup_register_aliases): Delete.
6378 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6379 to riscv_check_tdesc_feature in all cases. Use the vector to
6380 create the register aliases.
6381
bb6e55f3
RO
63822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6383
6384 * sol2-tdep.c (sol2_static_transform_name): Remove.
6385 (sol2_init_abi): Don't register it.
6386 * gdbarch.sh (static_transform_name): Remove.
6387 * gdbarch.c, gdbarch.h: Regenerate.
6388
6389 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6390 gdbarch_static_transform_name.
6391 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6392 * stabsread.c (define_symbol) <'X'>: Remove.
6393 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6394 handling.
6395 <'V'>: Likewise.
6396 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6397 <'S'>: Remove call to gdbarch_static_transform_name.
6398
c6d36836
RO
63992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6400
6401 * procfs.c (procfs_pre_trace): New function.
6402 (procfs_target::create_inferior): Pass it to fork_inferior.
6403
a7e6196b
RO
64042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6405
6406 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6407 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6408 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6409 sol2-tdep.o, sparc-sol2-tdep.o.
6410 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6411 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6412 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6413 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6414
d412e696
RO
64152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6416
6417 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6418 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6419 Call sol2_init_abi.
6420 Remove calls to set_gdbarch_skip_solib_resolver,
6421 set_gdbarch_core_pid_to_str.
6422 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6423 (i386_sol2_static_transform_name): Remove.
6424 (i386_sol2_init_abi): Call sol2_init_abi.
6425 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6426 set_gdbarch_static_transform_name,
6427 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6428 Use sol2_sigtramp_p.
6429 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6430 (sol2_sigtramp_p): New function.
6431 (sol2_static_transform_name): New function.
6432 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6433 (sol2_init_abi): New function.
6434 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6435 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6436 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6437 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6438 (sparc_sol2_static_transform_name): Remove.
6439 (sparc32_sol2_init_abi): Call sol2_init_abi.
6440 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6441 set_gdbarch_static_transform_name,
6442 set_gdbarch_skip_solib_resolver,
6443 set_gdbarch_core_pid_to_str.
6444 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6445 (sparc_sol2_static_transform_name): Remove
6446 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6447 call sol2_sigtramp_p.
6448 (sparc64_sol2_init_abi): Call sol2_init_abi.
6449 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6450 set_gdbarch_static_transform_name,
6451 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6452
a8654e7d
PW
64532020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6454
6455 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6456 * exec.c (validate_exec_file): If from_tty, set both
6457 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6458 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6459 and from_tty, unconditionally ask a confirmation.
6460
caa7fd04
AB
64612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6462
6463 * target-descriptions.c (tdesc_architecture_name): Protect against
6464 NULL pointer dereference.
6465 (maint_print_xml_tdesc_cmd): New function.
6466 (_initialize_target_descriptions): Register new 'maint print
6467 xml-tdesc' command and give it the filename completer.
6468 * NEWS: Mention new 'maint print xml-tdesc' command.
6469
fbf42f4e
AB
64702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6471
6472 * target-descriptions.c (class tdesc_compatible_info): New class.
6473 (struct target_desc): Change type of compatible vector.
6474 (tdesc_compatible_p): Update for change in type of
6475 target_desc::compatible.
6476 (tdesc_compatible_info_list): New function.
6477 (tdesc_compatible_info_arch_name): New function.
6478 (tdesc_add_compatible): Update for change in type of
6479 target_desc::compatible.
6480 (print_c_tdesc::visit_pre): Likewise.
6481
20821f4e
AB
64822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6483
6484 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6485 whitespace to underscore.
6486 (maint_print_c_tdesc_cmd): Use fake filename for target
6487 descriptions that came from the target.
6488 (_initialize_target_descriptions): Add filename command completion
6489 for 'maint print c-tdesc'.
6490
1fb5ee62
SM
64912020-06-23 Simon Marchi <simon.marchi@efficios.com>
6492
6493 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6494 lines.
6495
fc3ecb3e
SM
64962020-06-23 Simon Marchi <simon.marchi@efficios.com>
6497
6498 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6499 lines.
6500 (dwarf2_find_location_expression): Likewise.
6501 (call_site_parameter_matches): Likewise.
6502 (dwarf2_compile_expr_to_ax): Likewise.
6503 (disassemble_dwarf_expression): Likewise.
6504 (loclist_describe_location): Likewise.
6505
236ef034
PA
65062020-06-23 Pedro Alves <palves@redhat.com>
6507
6508 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6509 progspace-and-thread.h. Include scoped-mock-context.h instead.
6510 (register_to_value_test): Use scoped_mock_context.
6511 * regcache.c: Include "scoped-mock-context.h".
6512 (cooked_read_test): Don't error out if a target is already pushed.
6513 Use scoped_mock_context. Adjust.
6514 * scoped-mock-context.h: New file.
6515
39e7ecca
AB
65162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6517
6518 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6519 initializer.
6520 (ada_language::is_string_type_p): New member function.
6521 * c-lang.c (c_language_data): Delete la_is_string_type_p
6522 initializer.
6523 (cplus_language_data): Likewise.
6524 (asm_language_data): Likewise.
6525 (minimal_language_data): Likewise.
6526 * d-lang.c (d_language_data): Likewise.
6527 * f-lang.c (f_is_string_type_p): Delete function, implementation
6528 moved to f_language::is_string_type_p.
6529 (f_language_data): Delete la_is_string_type_p initializer.
6530 (f_language::is_string_type_p): New member function,
6531 implementation from f_is_string_type_p.
6532 * go-lang.c (go_is_string_type_p): Delete function, implementation
6533 moved to go_language::is_string_type_p.
6534 (go_language_data): Delete la_is_string_type_p initializer.
6535 (go_language::is_string_type_p): New member function,
6536 implementation from go_is_string_type_p.
6537 * language.c (language_defn::is_string_type_p): Define new member
6538 function.
6539 (default_is_string_type_p): Make static, add comment copied from
6540 header file.
6541 (unknown_language_data): Delete la_is_string_type_p initializer.
6542 (unknown_language::is_string_type_p): New member function.
6543 (auto_language_data): Delete la_is_string_type_p initializer.
6544 (auto_language::is_string_type_p): New member function.
6545 * language.h (language_data): Delete la_is_string_type_p field.
6546 (language_defn::is_string_type_p): Declare new function.
6547 (default_is_string_type_p): Delete desclaration, move comment to
6548 definition.
6549 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6550 moved to m2_language::is_string_type_p.
6551 (m2_language_data): Delete la_is_string_type_p initializer.
6552 (m2_language::is_string_type_p): New member function,
6553 implementation from m2_is_string_type_p.
6554 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6555 initializer.
6556 * opencl-lang.c (opencl_language_data): Likewise.
6557 * p-lang.c (pascal_is_string_type_p): Delete function,
6558 implementation moved to pascal_language::is_string_type_p.
6559 (pascal_language_data): Delete la_is_string_type_p initializer.
6560 (pascal_language::is_string_type_p): New member function,
6561 implementation from pascal_is_string_type_p.
6562 * rust-lang.c (rust_is_string_type_p): Delete function,
6563 implementation moved to rust_language::is_string_type_p.
6564 (rust_language_data): Delete la_is_string_type_p initializer.
6565 (rust_language::is_string_type_p): New member function,
6566 implementation from rust_is_string_type_p.
6567 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6568 is_string_type_p.
6569
4ffc13fb
AB
65702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6571
6572 * ada-lang.c (ada_language_data): Delete la_print_typedef
6573 initializer.
6574 (ada_language::print_typedef): New member function.
6575 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6576 (cplus_language_data): Likewise.
6577 (asm_language_data): Likewise.
6578 (minimal_language_data): Likewise.
6579 * d-lang.c (d_language_data): Likewise.
6580 * f-lang.c (f_language_data): Likewise.
6581 (f_language::print_typedef): New member function.
6582 * go-lang.c (go_language_data): Delete la_print_typedef
6583 initializer.
6584 * language.c (language_defn::print_typedef): Define member
6585 function.
6586 (unknown_language_data): Delete la_print_typedef initializer.
6587 (unknown_language::print_typedef): New member function.
6588 (auto_language_data): Delete la_print_typedef initializer.
6589 (auto_language::print_typedef): New member function.
6590 * language.h (language_data): Delete la_print_typedef field.
6591 (language_defn::print_typedef): Declare new member function.
6592 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6593 (default_print_typedef): Delete declaration.
6594 * m2-lang.c (m2_language_data): Delete la_print_typedef
6595 initializer.
6596 (m2_language::print_typedef): New member function.
6597 * objc-lang.c (objc_language_data): Delete la_print_typedef
6598 initializer.
6599 * opencl-lang.c (opencl_language_data): Likewise.
6600 * p-lang.c (pascal_language_data): Likewise.
6601 (pascal_language::print_typedef): New member function.
6602 * rust-lang.c (rust_print_typedef): Delete function,
6603 implementation moved to rust_language::print_typedef.
6604 (rust_language): Delete la_print_typedef initializer.
6605 (rust_language::print_typedef): New member function,
6606 implementation from rust_print_typedef.
6607 * typeprint.c (default_print_typedef): Delete.
6608
d711ee67
AB
66092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6610
6611 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6612 (ada_language::printstr): New member function.
6613 * c-lang.c (c_language_data): Delete la_printstr initializer.
6614 (cplus_language_data): Likewise.
6615 (asm_language_data): Likewise.
6616 (minimal_language_data): Likewise.
6617 * d-lang.c (d_language_data): Likewise.
6618 * f-lang.c (f_printstr): Rename to f_language::printstr.
6619 (f_language_data): Delete la_printstr initializer.
6620 (f_language::printstr): New member function, implementation from
6621 f_printstr.
6622 * go-lang.c (go_language_data): Delete la_printstr initializer.
6623 * language.c (language_defn::printstr): Define new member
6624 function.
6625 (unk_lang_printstr): Delete.
6626 (unknown_language_data): Delete la_printstr initializer.
6627 (unknown_language::printstr): New member function.
6628 (auto_language_data): Delete la_printstr initializer.
6629 (auto_language::printstr): New member function.
6630 * language.h (language_data): Delete la_printstr field.
6631 (language_defn::printstr): Declare new member function.
6632 (LA_PRINT_STRING): Update call to printstr.
6633 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6634 (m2_language_data): Delete la_printstr initializer.
6635 (m2_language::printstr): New member function, implementation from
6636 m2_printstr.
6637 * objc-lang.c (objc_language_data): Delete la_printstr
6638 initializer.
6639 * opencl-lang.c (opencl_language_data): Likewise.
6640 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6641 (pascal_language_data): Delete la_printstr initializer.
6642 (pascal_language::printstr): New member function, implementation
6643 from pascal_printstr.
6644 * p-lang.h (pascal_printstr): Delete declaration.
6645 * rust-lang.c (rust_printstr): Update header comment.
6646 (rust_language_data): Delete la_printstr initializer.
6647 (rust_language::printstr): New member function.
6648
52b50f2c
AB
66492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6650
6651 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6652 (ada_language::printchar): New member function.
6653 * c-lang.c (c_language_data): Delete la_printchar initializer.
6654 (cplus_language_data): Likewise.
6655 (asm_language_data): Likewise.
6656 (minimal_language_data): Likewise.
6657 * d-lang.c (d_language_data): Likewise.
6658 * f-lang.c (f_printchar): Rename to f_language::printchar.
6659 (f_language_data): Delete la_printchar initializer.
6660 (f_language::printchar): New member function, implementation from
6661 f_printchar.
6662 * go-lang.c (go_language_data): Delete la_printchar initializer.
6663 * language.c (unk_lang_printchar): Delete.
6664 (language_defn::printchar): Define new member function.
6665 (unknown_language_data): Delete la_printchar initializer.
6666 (unknown_language::printchar): New member function.
6667 (auto_language_data): Delete la_printchar initializer.
6668 (auto_language::printchar): New member function.
6669 * language.h (language_data): Delete la_printchar field.
6670 (language_defn::printchar): Declare new member function.
6671 (LA_PRINT_CHAR): Update call to printchar.
6672 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6673 (m2_language::printchar): New member function.
6674 * objc-lang.c (objc_language_data): Delete la_printchar
6675 initializer.
6676 * opencl-lang.c (opencl_language_data): Likewise.
6677 * p-lang.c (pascal_language_data): Delete la_printchar
6678 initializer.
6679 (pascal_language::printchar): New member function.
6680 * rust-lang.c (rust_printchar): Rename to
6681 rust_language::printchar.
6682 (rust_language_data): Delete la_printchar initializer.
6683 (rust_language::printchar): New member function, implementation
6684 from rust_printchar.
6685
ec8cec5b
AB
66862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6687
6688 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6689 (ada_language_data): Delete la_emitchar initializer.
6690 (ada_language::emitchar): New member function, implementation from
6691 emit_char.
6692 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6693 (cplus_language_data): Likewise.
6694 (asm_language_data): Likewise.
6695 (minimal_language_data): Likewise.
6696 * d-lang.c (d_language_data): Likewise.
6697 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6698 (f_language_data): Delete la_emitchar initializer.
6699 (f_language::emitchar): New member function, implementation from
6700 f_emit_char.
6701 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6702 * language.c (unk_lang_emit_char): Delete.
6703 (language_defn::emitchar): New member function definition.
6704 (unknown_language_data): Delete la_emitchar initializer.
6705 (unknown_language::emitchar): New member function.
6706 (auto_language_data): Delete la_emitchar initializer.
6707 (auto_language::emitchar): New member function.
6708 * language.h (language_data): Delete la_emitchar field.
6709 (language_defn::emitchar): New member field declaration.
6710 (LA_EMIT_CHAR): Update call to emitchar.
6711 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6712 (m2_language_data): Delete la_emitchar initializer.
6713 (m2_language::emitchar): New member function, implementation from
6714 m2_emit_char.
6715 * objc-lang.c (objc_language_data): Delete la_emitchar
6716 initializer.
6717 * opencl-lang.c (opencl_language_data): Likewise.
6718 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6719 (pascal_language_data): Delete la_emitchar initializer.
6720 (pascal_language::emitchar): New member function, implementation
6721 from pascal_emit_char.
6722 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6723 (rust_language_data): Delete la_emitchar initializer.
6724 (rust_language::emitchar): New member function, implementation
6725 from rust_emitchar.
6726
1bf9c363
AB
67272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6728
6729 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6730 (ada_language_data): Delete la_post_parser initializer.
6731 (ada_language::post_parser): New member function.
6732 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6733 (cplus_language_data): Likewise.
6734 (asm_language_data): Likewise.
6735 (minimal_language_data): Likewise.
6736 * d-lang.c (d_language_data): Likewise.
6737 * f-lang.c (f_language_data): Likewise.
6738 * go-lang.c (go_language_data): Likewise.
6739 * language.c (unknown_language_data): Likewise.
6740 (auto_language_data): Likewise.
6741 * language.h (language_data): Delete la_post_parser field.
6742 (language_defn::post_parser): New member function.
6743 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6744 * objc-lang.c (objc_language_data): Likewise.
6745 * opencl-lang.c (opencl_language_data): Likewise.
6746 * p-lang.c (pascal_language_data): Likewise.
6747 * parse.c (parse_exp_in_context): Update call to post_parser.
6748 (null_post_parser): Delete definition.
6749 * parser-defs.h (null_post_parser): Delete declaration.
6750 * rust-lang.c (rust_language_data): Delete la_post_parser
6751 initializer.
6752
87afa652
AB
67532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6754
6755 * ada-lang.c (parse): Rename to ada_language::parser.
6756 (ada_language_data): Delete la_parser initializer.
6757 (ada_language::parser): New member function, implementation from
6758 parse.
6759 * c-lang.c (c_language_data): Delete la_parser 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 (d_language::parser): New member function.
6765 * f-lang.c (f_language_data): Delete la_parser initializer.
6766 (f_language::parser): New member function.
6767 * go-lang.c (go_language_data): Delete la_parser initializer.
6768 (go_language::parser): New member function.
6769 * language.c (unk_lang_parser): Delete.
6770 (language_defn::parser): Define new member function.
6771 (unknown_language_data): Delete la_parser initializer.
6772 (unknown_language::parser): New member function.
6773 (auto_language_data): Delete la_parser initializer.
6774 (auto_language::parser): New member function.
6775 * language.h (language_data): Delete la_parser field.
6776 (language_defn::parser): Declare new member function.
6777 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6778 (m2_language::parser): New member function.
6779 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6780 * opencl-lang.c (opencl_language_data): Likewise.
6781 * p-lang.c (pascal_language_data): Likewise.
6782 (pascal_language::parser): New member function.
6783 * parse.c (parse_exp_in_context): Update call to parser.
6784 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6785 (rust_language::parser): New member function.
6786
37825800
AB
67872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6788
6789 * top.c (print_gdb_configuration): Print --with-python-libdir
6790 configuration value.
6791
5b860c93
PW
67922020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6793
6794 * NEWS: Mention change to the alias command.
6795
cf00cd6f
PW
67962020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6797
6798 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6799 (alias_command_completer)
6800 (make_alias_options_def_group): New functions.
6801 (alias_opts, alias_option_defs): New struct and array.
6802 (alias_usage_error): Update usage.
6803 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6804 Use option framework.
6805 (_initialize_cli_cmds): Update alias command help.
6806 Update aliases command help.
6807 (show_user):
6808 Add NULL for new default_args lookup_cmd argument.
6809 (valid_command_p): Rename to validate_aliased_command.
6810 Add NULL for new default_args lookup_cmd argument. Verify that the
6811 aliased_command has no default args.
6812 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6813 (lookup_cmd_1, lookup_cmd): New argument default_args.
6814 (add_alias_cmd):
6815 Add NULL for new default_args lookup_cmd argument.
6816 (print_help_for_command): Show default args under the layout
6817 alias some_alias = some_aliased_cmd some_alias_default_arg.
6818 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6819 xfree default_args in destructor.
6820 * cli/cli-script.c (process_next_line, do_define_command):
6821 Add NULL for new default_args lookup_cmd argument.
6822 * command.h: Declare new default_args argument in lookup_cmd
6823 and lookup_cmd_1.
6824 * completer.c (complete_line_internal_1):
6825 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6826 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6827 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6828 Likewise.
6829 * infcmd.c (_initialize_infcmd): Likewise.
6830 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6831 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6832 * python/py-param.c (add_setshow_generic): Likewise.
6833 * remote.c (_initialize_remote): Likewise.
6834 * top.c (execute_command): Prepend default_args if command has some.
6835 (set_verbose):
6836 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6837 * tracepoint.c (validate_actionline, encode_actions_1):
6838 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6839
bd920864
TBA
68402020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6841
6842 * jit.c (jit_read_descriptor): Use bool as the return type.
6843 (jit_breakpoint_re_set_internal): Use bool as the return type.
6844 Invert the return value logic; return true if the jit breakpoint
6845 has been successfully initialized.
6846 (jit_inferior_init): Update the call to
6847 jit_breakpoint_re_set_internal.
6848
f8098322
PA
68492020-06-22 Pedro Alves <palves@redhat.com>
6850
6851 PR gdb/25939
6852 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6853 Use the current inferior instead. Don't return
6854 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6855 wait again.
6856 * sol-thread.c (sol_thread_target::wait): Don't reference
6857 inferior_ptid.
6858 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6859 (sol_update_thread_list_callback): Use the current inferior's pid
6860 instead of inferior_ptid.
6861
196535a6
RO
68622020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6863
6864 * procfs.c: Cleanup many comments.
6865
6866 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6867 (AFTER_WATCHFLAG): Replace by value.
6868
6869 (MAIN_PROC_NAME_FORMAT): Inline ...
6870 (create_procinfo): ... here.
6871
6872 (procfs_debug_inferior): Remove SYS_exec handling.
6873 (syscall_is_exec): Likewise.
6874 (procfs_set_exec_trap): Likewise.
6875
6876 (syscall_is_lwp_exit): Inline in callers.
6877 (syscall_is_exit): Likewise.
6878 (syscall_is_exec): Likewise.
6879 (syscall_is_lwp_create): Likewise.
6880
6881 (invalidate_cache): Remove #if 0 code.
6882
6883 (make_signal_thread_runnable): Remove.
6884 (procfs_target::resume): Remove #if 0 code.
6885
cf6f3e86
RO
68862020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6887
6888 PR gdb/25939
6889 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6890 call ...
6891 (procfs_target::create_inferior): ... here.
6892
48e9cc84
PW
68932020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6894
6895 * exec.c (validate_exec_file): Ensure the build-id is up to
6896 date by calling reopen_exec_file (that checks file timestamp
6897 to decide to re-read the file).
6898
3922b302
PA
68992020-06-18 Pedro Alves <palves@redhat.com>
6900
6901 PR gdb/25412
6902 * gdbthread.h (delete_thread, delete_thread_silent)
6903 (find_thread_ptid): Update comments.
6904 * thread.c (current_thread_): New global.
6905 (is_current_thread): Move higher, and reimplement.
6906 (inferior_thread): Reimplement.
6907 (set_thread_exited): Use bool. Add assertions.
6908 (add_thread_silent): Simplify thread-reuse handling by always
6909 calling delete_thread.
6910 (delete_thread): Remove intro comment.
6911 (find_thread_ptid): Skip exited threads.
6912 (switch_to_thread_no_regs): Write to current_thread_.
6913 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6914 INFERIOR_PTID. Clear current_thread_.
6915
6dbdab44
PA
69162020-06-18 Pedro Alves <palves@redhat.com>
6917
6918 * aix-thread.c (pd_update): Use switch_to_thread.
6919
2da4b788
PA
69202020-06-18 Pedro Alves <palves@redhat.com>
6921
6922 * ravenscar-thread.c (ravenscar_thread_target): Update.
6923 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6924 (ravenscar_thread_target::add_active_thread): ... this. Don't
6925 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6926 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6927
50838d1b
PA
69282020-06-18 Pedro Alves <palves@redhat.com>
6929
6930 * nat/windows-nat.c (current_windows_thread): Remove.
6931 * nat/windows-nat.h (current_windows_thread): Remove.
6932 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6933 Adjust.
6934 (display_selectors): Adjust to fetch the current
6935 windows_thread_info based on inferior_ptid.
6936 (fake_create_process): No longer write to current_windows_thread.
6937 (windows_nat_target::get_windows_debug_event):
6938 Don't set inferior_ptid or current_windows_thread.
6939 (windows_nat_target::wait): Adjust to not rely on
6940 current_windows_thread.
6941 (do_initial_windows_stuff): Now a method of windows_nat_target.
6942 Switch to the last_ptid thread.
6943 (windows_nat_target::attach): Adjust.
6944 (windows_nat_target::detach): Use switch_to_no_thread instead of
6945 writing to inferior_ptid directly.
6946 (windows_nat_target::create_inferior): Adjust.
6947
31ce04e9
PA
69482020-06-18 Pedro Alves <palves@redhat.com>
6949
6950 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6951
1ee1a363
PA
69522020-06-18 Pedro Alves <palves@redhat.com>
6953
6954 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6955 after creating it, instead of writing to inferior_ptid. Don't
6956 write to inferior_ptid.
6957
6d350754
PA
69582020-06-18 Pedro Alves <palves@redhat.com>
6959
6960 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6961
5d971d48
PA
69622020-06-18 Pedro Alves <palves@redhat.com>
6963
6964 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6965 it, instead of writing to inferior_ptid.
6966
86e57d1b
PA
69672020-06-18 Pedro Alves <palves@redhat.com>
6968
6969 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6970 to inferior_ptid.
6971
f2e1c129
PA
69722020-06-18 Pedro Alves <palves@redhat.com>
6973
6974 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6975 instead of writing to inferior_ptid directly.
6976
60db1b85
PA
69772020-06-18 Pedro Alves <palves@redhat.com>
6978
6979 * corelow.c (core_target::close): Use switch_to_no_thread instead
6980 of writing to inferior_ptid directly.
6981 (add_to_thread_list, core_target_open): Use switch_to_thread
6982 instead of writing to inferior_ptid directly.
6983
fe7d6a8d
PA
69842020-06-18 Pedro Alves <palves@redhat.com>
6985
6986 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6987 inferior_ptid.
6988 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6989 inferior_ptid.
6990 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6991 inferior_ptid directly.
6992 (darwin_nat_target::init_thread_list): Switch to thread, instead
6993 of writing to inferior_ptid.
6994 (darwin_nat_target::attach): Don't write to inferior_ptid.
6995 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6996
975f8708
PA
69972020-06-18 Pedro Alves <palves@redhat.com>
6998
6999 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7000 thread.
7001 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7002 Instead use switch_to_thread.
7003 (gnu_nat_target::detach): Use switch_to_no_thread
7004 instead of writing to inferior_ptid directly. Used passed-in
7005 inferior instead of looking up the inferior by pid.
7006
1a204730
PA
70072020-06-18 Pedro Alves <palves@redhat.com>
7008
7009 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7010 inferior_ptid.
7011
ebe84f23
PA
70122020-06-18 Pedro Alves <palves@redhat.com>
7013
7014 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7015 inferior_ptid.
7016 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7017 thread.
7018 (nto_procfs_target::detach): Avoid referencing
7019 inferior_ptid. Use switch_to_no_thread instead of writing to
7020 inferior_ptid directly.
7021 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7022 instead of writing to inferior_ptid directly.
7023 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7024 to thread.
7025
191f02e5
PA
70262020-06-18 Pedro Alves <palves@redhat.com>
7027
7028 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7029 after creating it, instead of writing to inferior_ptid.
7030 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7031 to inferior_ptid directly.
7032 (gdbsim_target::wait): Don't write to inferior_ptid.
7033
0ac55310
PA
70342020-06-18 Pedro Alves <palves@redhat.com>
7035
7036 * remote.c (remote_target::remote_notice_new_inferior): Use
7037 switch_to_thread instead of writing to inferior_ptid directly.
7038 (remote_target::add_current_inferior_and_thread): Use
7039 switch_to_no_thread instead of writing to inferior_ptid directly.
7040 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7041 and switch_to_thread instead of using set_current_inferior or
7042 writing to inferior_ptid directly.
7043
5233f39b
PA
70442020-06-18 Pedro Alves <palves@redhat.com>
7045
7046 * tracectf.c (ctf_target_open): Switch to added thread instead of
7047 writing to inferior_ptid directly.
7048 (ctf_target::close): Use switch_to_no_thread instead of writing to
7049 inferior_ptid directly.
7050
087e161b
PA
70512020-06-18 Pedro Alves <palves@redhat.com>
7052
7053 * tracefile-tfile.c (tfile_target_open): Don't write to
7054 inferior_ptid directly, instead switch to added thread.
7055 (tfile_target::close): Use switch_to_no_thread instead of writing
7056 to inferior_ptid directly.
7057
7fb43e53
PA
70582020-06-18 Pedro Alves <palves@redhat.com>
7059
7060 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7061 (procfs_target::detach): Use switch_to_no_thread
7062 instead of writing to inferior_ptid directly.
7063 (do_attach): Change return type to void. Switch to the added
7064 thread.
7065 (procfs_target::create_inferior): Switch to the added thread.
7066 (procfs_do_thread_registers): Don't write to inferior_ptid.
7067
18493a00
PA
70682020-06-18 Pedro Alves <palves@redhat.com>
7069
7070 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7071 of writing to inferior_ptid.
7072 (scoped_restore_exited_inferior): Delete.
7073 (handle_vfork_child_exec_or_exit): Simplify using
7074 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7075 instead of writing to inferior_ptid.
7076 (THREAD_STOPPED_BY): Delete.
7077 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7078 (thread_stopped_by_hw_breakpoint): Delete.
7079 (save_waitstatus): Use
7080 scoped_restore_current_thread+switch_to_thread, and call
7081 target_stopped_by_watchpoint instead of
7082 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7083 instead of thread_stopped_by_sw_breakpoint, and
7084 target_stopped_by_hw_breakpoint instead of
7085 thread_stopped_by_hw_breakpoint.
7086 (handle_inferior_event)
7087 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7088 inferior_ptid directly, nor
7089 set_current_inferior/set_current_program_space. Use
7090 switch_to_thread / switch_to_inferior_no_thread instead.
7091
a0776b13
PA
70922020-06-18 Pedro Alves <palves@redhat.com>
7093
7094 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7095 instead of writing to inferior_ptid.
7096
6155c136
PA
70972020-06-18 Pedro Alves <palves@redhat.com>
7098
7099 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7100 added thread.
7101 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7102 to the added thread.
7103 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7104 instead of writing to inferior_ptid.
7105
c5316fc6
PA
71062020-06-18 Pedro Alves <palves@redhat.com>
7107
7108 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7109 (register_to_value_test): Mock a program_space too. Heap-allocate
7110 the address space. Don't write to inferior_ptid. Use
7111 switch_to_thread instead.
7112
8df01799
PA
71132020-06-18 Pedro Alves <palves@redhat.com>
7114
7115 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7116 Delete.
7117 (find_signalled_thread()): New, factored out from
7118 linux_make_corefile_notes and adjusted to handle exited threads.
7119 (linux_make_corefile_notes): Adjust to use the new
7120 find_signalled_thread.
7121
41792d68
PA
71222020-06-18 Pedro Alves <palves@redhat.com>
7123
7124 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7125 of saving/restoring inferior_ptid.
7126
612f258a
TT
71272020-06-17 Tom Tromey <tom@tromey.com>
7128
7129 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7130 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7131 declare.
7132 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7133
efb763a5
SM
71342020-06-15 Simon Marchi <simon.marchi@efficios.com>
7135
7136 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7137 of partial symtabs.
7138
2951f6c0
SM
71392020-06-17 Simon Marchi <simon.marchi@efficios.com>
7140
7141 * regformats/reg-arm.dat: Remove.
7142 * regformats/reg-bfin.dat: Remove.
7143 * regformats/reg-cris.dat: Remove.
7144 * regformats/reg-crisv32.dat: Remove.
7145 * regformats/reg-m32r.dat: Remove.
7146 * regformats/reg-tilegx.dat: Remove.
7147 * regformats/reg-tilegx32.dat: Remove.
7148
7d458ea5
SM
71492020-06-17 Simon Marchi <simon.marchi@efficios.com>
7150
7151 * features/Makefile (WHICH): Remove arm files.
7152 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7153 * regformats/arm/arm-with-neon.dat: Remove.
7154 * regformats/arm/arm-with-vfpv2.dat: Remove.
7155 * regformats/arm/arm-with-vfpv3.dat: Remove.
7156
3af96c0d
SM
71572020-06-17 Simon Marchi <simon.marchi@efficios.com>
7158
7159 * features/Makefile (XMLTOC): Remove rx.xml.
7160
b25e22fd
PA
71612020-06-17 Pedro Alves <palves@redhat.com>
7162
7163 * gdbthread.h (thread_control_state) <trap_expected> Update
7164 comments.
7165
a78a19b1
AB
71662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7167
7168 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7169 ada_language::lookup_symbol_nonlocal.
7170 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7171 (ada_language::lookup_symbol_nonlocal): New member function,
7172 implementation from ada_lookup_symbol_nonlocal.
7173 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7174 initializer.
7175 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7176 initializer.
7177 (cplus_language::lookup_symbol_nonlocal): New member function.
7178 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7179 (minimal_language_data) Likewise.
7180 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7181 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7182 initializer.
7183 (d_language::lookup_symbol_nonlocal): New member function.
7184 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7185 initializer.
7186 (f_language::lookup_symbol_nonlocal): New member function.
7187 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7188 initializer.
7189 * language.c (unknown_language_data): Likewise.
7190 (auto_language_data): Likewise.
7191 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7192 field.
7193 (language_defn::lookup_symbol_nonlocal): New member function.
7194 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7195 initializer.
7196 * objc-lang.c (objc_language_data): Likewise.
7197 * opencl-lang.c (opencl_language_data): Likewise.
7198 * p-lang.c (pascal_language_data): Likewise.
7199 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7200 rust_language::lookup_symbol_nonlocal.
7201 (rust_language_data): Delete la_lookup_symbol_nonlocal
7202 initializer.
7203 (rust_language::lookup_symbol_nonlocal): New member function,
7204 implementation from rust_lookup_symbol_nonlocal.
7205 * symtab.c (lookup_symbol_aux): Update call to
7206 lookup_symbol_nonlocal.
7207 (basic_lookup_symbol_nonlocal): Rename to...
7208 (language_defn::lookup_symbol_nonlocal): ...this, and update
7209 header comment. Remove language_defn parameter, and replace with
7210 uses of `this'.
7211 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7212
ebe2334e
AB
72132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7214
7215 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7216 initializer.
7217 (ada_language::value_print_inner): New member function.
7218 * c-lang.c (c_language_data): Delete la_value_print_inner
7219 initializer.
7220 (cplus_language_data): Likewise.
7221 (asm_language_data): Likewise.
7222 (minimal_language_data): Likewise.
7223 * d-lang.c (d_language_data): Likewise.
7224 (d_language::value_print_inner): New member function.
7225 * f-lang.c (f_language_data): Delete la_value_print_inner
7226 initializer.
7227 (f_language::value_print_inner): New member function.
7228 * f-lang.h (f_value_print_innner): Rename to...
7229 (f_value_print_inner): ...this (note spelling of 'inner').
7230 * f-valprint.c (f_value_print_innner): Rename to...
7231 (f_value_print_inner): ...this (note spelling of 'inner').
7232 * go-lang.c (go_language_data): Delete la_value_print_inner
7233 initializer.
7234 (go_language::value_print_inner): New member function.
7235 * language.c (language_defn::value_print_inner): Define new member
7236 function.
7237 (unk_lang_value_print_inner): Delete.
7238 (unknown_language_data): Delete la_value_print_inner initializer.
7239 (unknown_language::value_print_inner): New member function.
7240 (auto_language_data): Delete la_value_print_inner initializer.
7241 (auto_language::value_print_inner): New member function.
7242 * language.h (language_data): Delete la_value_print_inner field.
7243 (language_defn::value_print_inner): Delcare new member function.
7244 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7245 initializer.
7246 (m2_language::value_print_inner): New member function.
7247 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7248 initializer.
7249 * opencl-lang.c (opencl_language_data): Likewise.
7250 * p-lang.c (pascal_language_data): Likewise.
7251 (pascal_language::value_print_inner): New member function.
7252 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7253 initializer.
7254 (rust_language::value_print_inner): New member function.
7255 * valprint.c (do_val_print): Update call to value_print_inner.
7256
a1d1fa3e
AB
72572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7258
7259 * ada-lang.c (ada_language_data): Delete la_value_print
7260 initializer.
7261 (ada_language::value_print): New member function.
7262 * c-lang.c (c_language_data): Delete la_value_print initializer.
7263 (cplus_language_data): Likewise.
7264 (asm_language_data): Likewise.
7265 (minimal_language_data): Likewise.
7266 * d-lang.c (d_language_data): Likewise.
7267 * f-lang.c (f_language_data): Likewise.
7268 * go-lang.c (go_language_data): Likewise.
7269 * language.c (unk_lang_value_print): Delete.
7270 (language_defn::value_print): Define new member function.
7271 (unknown_language_data): Delete la_value_print initializer.
7272 (unknown_language::value_print): New member function.
7273 (auto_language_data): Delete la_value_print initializer.
7274 (auto_language::value_print): New member function.
7275 * language.h (language_data): Delete la_value_print field.
7276 (language_defn::value_print): Declare new member function.
7277 (LA_VALUE_PRINT): Update call to value_print.
7278 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7279 * objc-lang.c (objc_language_data): Likewise.
7280 * opencl-lang.c (opencl_language_data): Likewise.
7281 * p-lang.c (pascal_language_data): Likewise.
7282 (pascal_language::value_print): New member function.
7283 * rust-lang.c (rust_language_data): Delete la_value_print
7284 initializer.
7285
f16a9f57
AB
72862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7287
7288 * ada-lang.c (ada_watch_location_expression): Rename to
7289 ada_language::watch_location_expression.
7290 (ada_language_data): Delete la_watch_location_expression
7291 initializer.
7292 (ada_language::watch_location_expression): New member function,
7293 implementation from ada_watch_location_expression.
7294 * breakpoint.c (watch_command_1): Update call to
7295 watch_location_expression.
7296 * c-lang.c (c_watch_location_expression): Rename to
7297 language_defn::watch_location_expression.
7298 (c_language_data): Delete la_watch_location_expression
7299 initializer.
7300 (cplus_language_data): Likewise.
7301 (asm_language_data): Likewise.
7302 (minimal_language_data): Likewise.
7303 * c-lang.h (c_watch_location_expression): Delete declaration.
7304 * d-lang.c (d_language_data): Delete la_watch_location_expression
7305 initializer.
7306 * f-lang.c (f_language_data): Likewise.
7307 * go-lang.c (go_language_data): Likewise.
7308 * language.c (language_defn::watch_location_expression): Member
7309 function implementation from c_watch_location_expression.
7310 (unknown_language_data): Delete la_watch_location_expression
7311 initializer.
7312 (auto_language_data): Likewise.
7313 * language.h (language_data): Delete la_watch_location_expression
7314 field.
7315 (language_defn::watch_location_expression): Declare new member
7316 function.
7317 * m2-lang.c (m2_language_data): Delete
7318 la_watch_location_expression initializer.
7319 * objc-lang.c (objc_language_data): Likewise.
7320 * opencl-lang.c (opencl_language_data): Likewise.
7321 * p-lang.c (pascal_language_data): Likewise.
7322 * rust-lang.c (rust_watch_location_expression): Rename to
7323 rust_language::watch_location_expression.
7324 (rust_language_data): Delete la_watch_location_expression
7325 initializer.
7326 (rust_language::watch_location_expression): New member function,
7327 implementation from rust_watch_location_expression.
7328
7e56227d
AB
73292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7330
7331 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7332 ada_language::collect_symbol_completion_matches.
7333 (ada_language_data): Delete la_collect_symbol_completion_matches
7334 initializer.
7335 (ada_language::collect_symbol_completion_matches): New member
7336 function, implementation from
7337 ada_collect_symbol_completion_matches.
7338 * c-lang.c (c_language_data): Delete
7339 la_collect_symbol_completion_matches initializer.
7340 (cplus_language_data): Likewise.
7341 (asm_language_data): Likewise.
7342 (minimal_language_data): Likewise.
7343 * d-lang.c (d_language_data): Likewise.
7344 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7345 f_language::collect_symbol_completion_matches.
7346 (f_language_data): Delete la_collect_symbol_completion_matches
7347 initializer.
7348 (f_language::collect_symbol_completion_matches) New member
7349 function, implementation from f_collect_symbol_completion_matches.
7350 * go-lang.c (go_language_data): Delete
7351 la_collect_symbol_completion_matches initializer.
7352 * language.c (unknown_language_data): Likewise.
7353 (auto_language_data): Likewise.
7354 * language.h (language_data): Delete
7355 la_collect_symbol_completion_matches field.
7356 (language_defn::collect_symbol_completion_matches): New member
7357 function.
7358 * m2-lang.c (m2_language_data): Delete
7359 la_collect_symbol_completion_matches initializer.
7360 * objc-lang.c (objc_language_data): Likewise.
7361 * opencl-lang.c (opencl_language_data): Likewise.
7362 * p-lang.c (pascal_language_data): Likewise.
7363 * rust-lang.c (rust_language_data): Likewise.
7364 * symtab.c (default_collect_symbol_completion_matches): Delete.
7365 (collect_symbol_completion_matches): Update call to
7366 collect_symbol_completion_matches.
7367 (collect_symbol_completion_matches_type): Likewise.
7368 * symtab.h (default_collect_symbol_completion_matches): Delete
7369 declaration.
7370
53fc67f8
AB
73712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7372
7373 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7374 (ada_language_data): Delete la_word_break_characters initializer.
7375 (ada_language::word_break_characters): New member function.
7376 * c-lang.c (c_language_data): Delete la_word_break_characters
7377 initializer.
7378 (cplus_language_data): Likewise.
7379 (asm_language_data): Likewise.
7380 (minimal_language_data): Likewise.
7381 * completer.c: Update global comment.
7382 (advance_to_expression_complete_word_point): Update call to
7383 word_break_characters.
7384 (complete_files_symbols): Likewise.
7385 (complete_line_internal_1): Likewise.
7386 (default_completer_handle_brkchars): Likewise.
7387 (skip_quoted_chars): Likewise.
7388 * d-lang.c (d_language_data): Delete la_word_break_characters
7389 initializer.
7390 * f-lang.c (f_word_break_characters): Delete.
7391 (f_language_data): Delete la_word_break_characters initializer.
7392 (f_language::word_break_characters): New member function.
7393 * go-lang.c (go_language_data): Delete la_word_break_characters
7394 initializer.
7395 * language.c (unknown_language_data): Likewise.
7396 (auto_language_data): Likewise.
7397 * language.h (default_word_break_characters): Move declaration to
7398 earlier in the file.
7399 (language_data): Delete la_word_break_characters field.
7400 (language_defn::word_break_characters): New member function.
7401 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7402 initializer.
7403 * objc-lang.c (objc_language_data): Likewise.
7404 * opencl-lang.c (opencl_language_data): Likewise.
7405 * p-lang.c (pascal_language_data): Likewise.
7406 * rust-lang.c (rust_language_data): Likewise.
7407
c9debfb9
AB
74082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7409
7410 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7411 (ada_language_data): Delete la_get_symbol_name_matcher
7412 initializer.
7413 (language_defn::get_symbol_name_matcher_inner): New member
7414 function.
7415 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7416 initializer.
7417 (cplus_language_data): Likewise.
7418 (cplus_language::get_symbol_name_matcher_inner): New member
7419 function.
7420 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7421 (minimal_language_data): Likewise.
7422 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7423 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7424 initializer.
7425 * dictionary.c (iter_match_first_hashed): Update call to
7426 get_symbol_name_matcher.
7427 (iter_match_next_hashed): Likewise.
7428 (iter_match_next_linear): Likewise.
7429 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7430 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7431 initializer.
7432 (f_language::get_symbol_name_matcher_inner): New member function.
7433 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7434 initializer.
7435 * language.c (default_symbol_name_matcher): Update header comment,
7436 make static.
7437 (language_defn::get_symbol_name_matcher): New definition.
7438 (language_defn::get_symbol_name_matcher_inner): Likewise.
7439 (get_symbol_name_matcher): Delete.
7440 (unknown_language_data): Delete la_get_symbol_name_matcher
7441 initializer.
7442 (auto_language_data): Likewise.
7443 * language.h (language_data): Delete la_get_symbol_name_matcher
7444 field.
7445 (language_defn::get_symbol_name_matcher): New member function.
7446 (language_defn::get_symbol_name_matcher_inner): Likewise.
7447 (default_symbol_name_matcher): Delete declaration.
7448 * linespec.c (find_methods): Update call to
7449 get_symbol_name_matcher.
7450 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7451 initializer.
7452 * minsyms.c (lookup_minimal_symbol): Update call to
7453 get_symbol_name_matcher.
7454 (iterate_over_minimal_symbols): Likewise.
7455 * objc-lang.c (objc_language_data): Delete
7456 la_get_symbol_name_matcher initializer.
7457 * opencl-lang.c (opencl_language_data): Likewise.
7458 * p-lang.c (pascal_language_data): Likewise.
7459 * psymtab.c (psymbol_name_matches): Update call to
7460 get_symbol_name_matcher.
7461 * rust-lang.c (rust_language_data): Delete
7462 la_get_symbol_name_matcher initializer.
7463 * symtab.c (symbol_matches_search_name): Update call to
7464 get_symbol_name_matcher.
7465 (compare_symbol_name): Likewise.
7466
9a49ad8c
AB
74672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7468
7469 * ada-lang.c (ada_language_data): Delete la_compute_program
7470 initializer.
7471 * c-lang.c (c_language_data): Likewise.
7472 (c_language::compute_program): New member function.
7473 (cplus_language_data): Delete la_compute_program initializer.
7474 (cplus_language::compute_program): New member function.
7475 (asm_language_data): Delete la_compute_program initializer.
7476 (minimal_language_data): Likewise.
7477 * c-lang.h (c_compute_program): Update comment.
7478 (cplus_compute_program): Likewise.
7479 * compile/compile-c-support.c (c_compute_program): Likewise.
7480 (cplus_compute_program): Likewise.
7481 * compile/compile.c (compile_to_object): Update call to
7482 la_compute_program.
7483 * d-lang.c (d_language_data): Delete la_compute_program
7484 initializer.
7485 * f-lang.c (f_language_data): Likewise.
7486 * go-lang.c (go_language_data): Likewise.
7487 * language.c (unknown_language_data): Likewise.
7488 (auto_language_data): Likewise.
7489 * language.h (language_data): Delete la_compute_program field.
7490 (language_defn::compute_program): New member function.
7491 * m2-lang.c (m2_language_data): Delete la_compute_program
7492 initializer.
7493 * objc-lang.c (objc_language_data): Likewise.
7494 * opencl-lang.c (opencl_language_data): Likewise.
7495 * p-lang.c (pascal_language_data): Likewise.
7496 * rust-lang.c (rust_language_data): Likewise.
7497
eff93b4d
AB
74982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7499
7500 * ada-lang.c (ada_language_data) Delete
7501 la_class_name_from_physname initializer.
7502 * c-lang.c (c_language_data): Likewise.
7503 (cplus_language_data): Likewise.
7504 (cplus_language::class_name_from_physname): New member function.
7505 (asm_language_data): Delete la_class_name_from_physname
7506 initializer.
7507 (minimal_language_data): Likewise.
7508 * d-lang.c (d_language_data): Likewise.
7509 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7510 method on language_defn class.
7511 (guess_full_die_structure_name): Likewise.
7512 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7513 initializer.
7514 * go-lang.c (go_language_data): Likewise.
7515 * language.c (language_class_name_from_physname): Delete.
7516 (unk_lang_class_name): Delete.
7517 (unknown_language_data): Delete la_class_name_from_physname
7518 initializer.
7519 (auto_language_data): Likewise.
7520 * language.h (language_data): Delete la_class_name_from_physname
7521 field.
7522 (language_defn::class_name_from_physname): New function.
7523 (language_class_name_from_physname): Delete declaration.
7524 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7525 initializer.
7526 * objc-lang.c (objc_language_data): Likewise.
7527 * opencl-lang.c (opencl_language_data): Likewise.
7528 * p-lang.c (pascal_language_data): Likewise.
7529 * rust-lang.c (rust_language_data): Likewise.
7530
de543742
TT
75312020-06-16 Tom Tromey <tom@tromey.com>
7532
7533 * tui/tui-data.h (STATUS_NAME): New macro.
7534 * tui/tui-layout.c (tui_remove_some_windows)
7535 (initialize_known_windows, tui_register_window)
7536 (tui_layout_split::remove_windows, initialize_layouts)
7537 (tui_new_layout_command): Don't use hard-coded window names.
7538
a350efd4
TT
75392020-06-16 Tom Tromey <tom@tromey.com>
7540
7541 PR tui/25348:
7542 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7543 tui_initialize_readline. Only run once. Call rl_initialize.
7544 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7545 tui_initialize_readline.
7546 * tui/tui-io.c (tui_setup_io): Call
7547 tui_ensure_readline_initialized.
7548 * tui/tui-interp.c (tui_interp::init): Update.
7549
39ec0490
TT
75502020-06-16 Tom Tromey <tom@tromey.com>
7551
7552 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7553 Also preserve the status window.
7554
d2d1ea20
TT
75552020-06-16 Tom Tromey <tom@tromey.com>
7556
7557 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7558 where m_window==nullptr.
7559
66920317
TT
75602020-06-15 Tom Tromey <tromey@adacore.com>
7561
7562 * windows-nat.c (windows_nat::handle_output_debug_string):
7563 Update.
7564 (windows_nat::handle_ms_vc_exception): Update.
7565 * target.h (target_read_string): Change API.
7566 * target.c (target_read_string): Change API.
7567 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7568 Update.
7569 * solib-frv.c (frv_current_sos): Update.
7570 * solib-dsbt.c (dsbt_current_sos): Update.
7571 * solib-darwin.c (darwin_current_sos): Update.
7572 * linux-thread-db.c (inferior_has_bug): Update.
7573 * expprint.c (print_subexp_standard): Update.
7574 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7575 (ada_exception_message_1): Update.
7576
a5d871dd
TT
75772020-06-15 Tom Tromey <tromey@adacore.com>
7578
7579 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7580
670e35fa
TT
75812020-06-15 Tom Tromey <tromey@adacore.com>
7582
7583 * valprint.c (read_string): Update comment.
7584 * target.c (MIN): Remove.
7585 (target_read_string): Rewrite.
7586
f5272a3b
TT
75872020-06-15 Tom Tromey <tromey@adacore.com>
7588
7589 * corefile.c (read_memory_string): Remove.
7590 * ada-valprint.c (ada_value_print_ptr): Update.
7591 * ada-lang.h (ada_tag_name): Change return type.
7592 * ada-lang.c (type_from_tag): Update.
7593 (ada_tag_name_from_tsd): Change return type. Use
7594 target_read_string.
7595 (ada_tag_name): Likewise.
7596 * gdbcore.h (read_memory_string): Don't declare.
7597
2c074f49
HD
75982020-06-14 Hannes Domani <ssbssa@yahoo.de>
7599
7600 * symtab.c (rbreak_command): Ignore Windows drive colon.
7601
6a17d503
SM
76022020-06-12 Simon Marchi <simon.marchi@efficios.com>
7603
7604 * NEWS: Mention removed GDBserver host support.
7605
453c733f
NC
76062020-06-12 Nelson Chu <nelson.chu@sifive.com>
7607
7608 * features/riscv/rebuild-csr-xml.sh: Updated.
7609
2b4e6a3f
TT
76102020-06-11 Tom Tromey <tom@tromey.com>
7611
7612 PR gdb/18318:
7613 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7614
4412332f
JG
76152020-06-09 Jonny Grant <jg@jguk.org>
76162020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7617
7618 * main.c (captured_main_1): Don't print new line after help.
7619 (print_gdb_help): add mailing list and IRC channel information
7620 to --help. Add new lines between items in the footer. Remove
7621 quotes around bug url.
7622
2f33032a
KS
76232020-06-11 Keith Seitz <keiths@redhat.com>
7624
7625 PR gdb/21356
7626 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7627 Resolve typedefs for type length calculations.
7628
7ab96794
TV
76292020-06-10 Tom de Vries <tdevries@suse.de>
7630
7631 PR ada/24713
7632 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7633 (write_psymbols): Enable .gdb_index for ada.
7634 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7635 ada.
7636
e5f3ece2
TV
76372020-06-10 Tom de Vries <tdevries@suse.de>
7638
7639 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7640 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7641 namei" instead of "const char *name" argument.
7642 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7643 dw2_symtab_iter_init.
7644
940da03e
SM
76452020-06-08 Simon Marchi <simon.marchi@efficios.com>
7646
7647 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7648 to use type::field and field::type instead.
7649
b6cdac4b
SM
76502020-06-08 Simon Marchi <simon.marchi@efficios.com>
7651
7652 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7653 to use field::type instead.
7654
5d14b6e5
SM
76552020-06-08 Simon Marchi <simon.marchi@efficios.com>
7656
7657 * gdbtypes.h (struct field) <type, set_type>: New methods.
7658 Rename `type` field to...
7659 <m_type>: ... this. Change references throughout to use type or
7660 set_type methods.
7661 (FIELD_TYPE): Use field::type. Change call sites that modify
7662 the field's type to use field::set_type instead.
7663
3d967001
SM
76642020-06-08 Simon Marchi <simon.marchi@efficios.com>
7665
7666 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7667 to use type::index_type instead.
7668
262abc0d
SM
76692020-06-08 Simon Marchi <simon.marchi@efficios.com>
7670
7671 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7672 methods.
7673 (TYPE_INDEX_TYPE): Use type::index_type.
7674 * gdbtypes.c (create_array_type_with_stride): Likewise.
7675
82836c92
TT
76762020-06-07 Tom Tromey <tom@tromey.com>
7677
7678 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7679 parameter.
7680 (generic_value_print): Update.
7681
940dace9
AB
76822020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7683
7684 Revert commit 982a38f60b0.
7685 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7686
982a38f6
AB
76872020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7688
7689 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7690 avoid use after free.
7691
82f06518
TV
76922020-06-05 Tom de Vries <tdevries@suse.de>
7693
7694 * NEWS: Fix typos.
7695
f8c41851
SM
76962020-06-04 Simon Marchi <simon.marchi@efficios.com>
7697
7698 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7699 the per_bfd object.
7700 (dwarf2_read_debug_names): Likewise.
7701 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7702 object when re-using a per_bfd object with an index.
7703
f9b5d5ea
TV
77042020-06-03 Tom de Vries <tdevries@suse.de>
7705
7706 PR symtab/26046
7707 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7708 children for C++.
7709 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7710 DW_TAG_subprogram.
7711
f6eee2d0
AB
77122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7713
7714 * ada-lang.c (ada_language_data): Delete skip_trampoline
7715 initializer.
7716 * c-lang.c (c_language_data): Likewise.
7717 (cplus_language_data): Likewise.
7718 (cplus_language::skip_trampoline): New member function.
7719 (asm_language_data): Delete skip_trampoline initializer.
7720 (minimal_language_data): Likewise.
7721 * d-lang.c (d_language_data): Likewise.
7722 * f-lang.c (f_language_data): Likewise.
7723 * go-lang.c (go_language_data): Likewise.
7724 * language.c (unk_lang_trampoline): Delete function.
7725 (skip_language_trampoline): Update.
7726 (unknown_language_data): Delete skip_trampoline initializer.
7727 (auto_language_data): Likewise.
7728 * language.h (language_data): Delete skip_trampoline field.
7729 (language_defn::skip_trampoline): New function.
7730 * m2-lang.c (m2_language_data): Delete skip_trampoline
7731 initializer.
7732 * objc-lang.c (objc_skip_trampoline): Delete function, move
7733 implementation to objc_language::skip_trampoline.
7734 (objc_language_data): Delete skip_trampoline initializer.
7735 (objc_language::skip_trampoline): New member function with
7736 implementation from objc_skip_trampoline.
7737 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7738 initializer.
7739 * p-lang.c (pascal_language_data): Likewise.
7740 * rust-lang.c (rust_language_data): Likewise.
7741
0a50df5d
AB
77422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7743
7744 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7745 (ada_language::demangle): New member function.
7746 * c-lang.c (c_language_data): Delete la_demangle initializer.
7747 (cplus_language_data): Delete la_demangle initializer.
7748 (cplus_language::demangle): New member function.
7749 (asm_language_data): Delete la_demangle initializer.
7750 (minimal_language_data): Delete la_demangle initializer.
7751 * d-lang.c (d_language_data): Delete la_demangle initializer.
7752 (d_language::demangle): New member function.
7753 * f-lang.c (f_language_data): Delete la_demangle initializer.
7754 (f_language::demangle): New member function.
7755 * go-lang.c (go_language_data): Delete la_demangle initializer.
7756 (go_language::demangle): New member function.
7757 * language.c (language_demangle): Update.
7758 (unk_lang_demangle): Delete.
7759 (unknown_language_data): Delete la_demangle initializer.
7760 (unknown_language::demangle): New member function.
7761 (auto_language_data): Delete la_demangle initializer.
7762 (auto_language::demangle): New member function.
7763 * language.h (language_data): Delete la_demangle field.
7764 (language_defn::demangle): New function.
7765 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7766 * objc-lang.c (objc_language_data): Delete la_demangle
7767 initializer.
7768 (objc_language::demangle): New member function.
7769 * opencl-lang.c (opencl_language_data): Delete la_demangle
7770 initializer.
7771 * p-lang.c (pascal_language_data): Likewise.
7772 * rust-lang.c (rust_language_data): Likewise.
7773 (rust_language::demangle): New member function.
7774
fbfb0a46
AB
77752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7776
7777 * ada-lang.c (ada_language_data): Delete la_print_type
7778 initializer.
7779 (ada_language::print_type): New member function.
7780 * c-lang.c (c_language_data): Delete la_print_type initializer.
7781 (c_language::print_type): New member function.
7782 (cplus_language_data): Delete la_print_type initializer.
7783 (cplus_language::print_type): New member function.
7784 (asm_language_data): Delete la_print_type initializer.
7785 (asm_language::print_type): New member function.
7786 (minimal_language_data): Delete la_print_type initializer.
7787 (minimal_language::print_type): New member function.
7788 * d-lang.c (d_language_data): Delete la_print_type initializer.
7789 (d_language::print_type): New member function.
7790 * f-lang.c (f_language_data): Delete la_print_type initializer.
7791 (f_language::print_type): New member function.
7792 * go-lang.c (go_language_data): Delete la_print_type initializer.
7793 (go_language::print_type): New member function.
7794 * language.c (unk_lang_print_type): Delete.
7795 (unknown_language_data): Delete la_print_type initializer.
7796 (unknown_language::print_type): New member function.
7797 (auto_language_data): Delete la_print_type initializer.
7798 (auto_language::print_type): New member function.
7799 * language.h (language_data): Delete la_print_type field.
7800 (language_defn::print_type): New function.
7801 (LA_PRINT_TYPE): Update.
7802 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7803 (m2_language::print_type): New member function.
7804 * objc-lang.c (objc_language_data): Delete la_print_type
7805 initializer.
7806 (objc_language::print_type): New member function.
7807 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7808 to opencl_language::print_type.
7809 (opencl_language_data): Delete la_print_type initializer.
7810 (opencl_language::print_type): New member function, implementation
7811 from opencl_print_type.
7812 * p-lang.c (pascal_language_data): Delete la_print_type
7813 initializer.
7814 (pascal_language::print_type): New member function.
7815 * rust-lang.c (rust_print_type): Delete, implementation moved to
7816 rust_language::print_type.
7817 (rust_language_data): Delete la_print_type initializer.
7818 (rust_language::print_type): New member function, implementation
7819 from rust_print_type.
7820
6f827019
AB
78212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7822
7823 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7824 implementation moves to...
7825 (ada_language::sniff_from_mangled_name): ...here. Update return
7826 type.
7827 (ada_language_data): Delete la_sniff_from_mangled_name
7828 initializer.
7829 * c-lang.c (c_language_data): Likewise.
7830 (cplus_language_data): Likewise.
7831 (cplus_language::sniff_from_mangled_name): New member function,
7832 implementation taken from gdb_sniff_from_mangled_name.
7833 (asm_language_data): Delete la_sniff_from_mangled_name
7834 initializer.
7835 (minimal_language_data): Likewise.
7836 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7837 implementation moves to cplus_language::sniff_from_mangled_name.
7838 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7839 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7840 moves to...
7841 (d_language::sniff_from_mangled_name): ...here.
7842 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7843 * f-lang.c (f_language_data): Likewise.
7844 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7845 moves to...
7846 (go_language::sniff_from_mangled_name): ...here.
7847 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7848 * language.c (language_sniff_from_mangled_name): Delete.
7849 (unknown_language_data): Delete la_sniff_from_mangled_name
7850 initializer.
7851 (auto_language_data): Likewise.
7852 * language.h (language_data): Delete la_sniff_from_mangled_name
7853 field.
7854 (language_defn::sniff_from_mangled_name): New function.
7855 (language_sniff_from_mangled_name): Delete declaration.
7856 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7857 field.
7858 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7859 implementation moves to...
7860 (objc_language::sniff_from_mangled_name): ...here.
7861 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7862 * opencl-lang.c (opencl_language_data): Likewise.
7863 * p-lang.c (pascal_language_data): Likewise.
7864 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7865 implementation moves to...
7866 (rust_language::sniff_from_mangled_name): ...here.
7867 (rust_language_data): Delete la_sniff_from_mangled_name
7868 initializer.
7869 * symtab.c (symbol_find_demangled_name): Call
7870 sniff_from_mangled_name member function.
7871
fb8006fd
AB
78722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7873
7874 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7875 initializer.
7876 * c-lang.c (c_language_data): Likewise.
7877 (cplus_language_data): Likewise.
7878 (cplus_language::search_name_hash): New member function.
7879 (asm_language_data): Delete la_search_name_hash initializer.
7880 (minimal_language_data): Likewise.
7881 * d-lang.c (d_language_data): Likewise.
7882 * dictionary.c (default_search_name_hash): Rename to...
7883 (language_defn::search_name_hash): ...this.
7884 * f-lang.c (f_language_data): Likewise.
7885 (f_language::search_name_hash): New member function.
7886 * go-lang.c (go_language_data): Delete la_search_name_hash
7887 initializer.
7888 * language.c (unknown_language_data): Likewise.
7889 (auto_language_data): Likewise.
7890 * language.h (struct language_data): Delete la_search_name_hash
7891 field.
7892 (language_defn::search_name_hash): Declare new member function.
7893 (default_search_name_hash): Delete declaration.
7894 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7895 initializer.
7896 * objc-lang.c (objc_language_data): Likewise.
7897 * opencl-lang.c (opencl_language_data): Likewise.
7898 * p-lang.c (pascal_language_data): Likewise.
7899 * rust-lang.c (rust_language_data): Likewise.
7900 * symtab.c (search_name_hash): Update call.
7901
8e25bafe
AB
79022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7905 initializer.
7906 * c-lang.c (class compile_instance): Declare.
7907 (c_language_data): Delete la_get_compile_instance initializer.
7908 (c_language::get_compile_instance): New member function.
7909 (cplus_language_data): Delete la_get_compile_instance initializer.
7910 (cplus_language::get_compile_instance): New member function.
7911 (asm_language_data): Delete la_get_compile_instance initializer.
7912 (minimal_language_data): Likewise.
7913 * c-lang.h (c_get_compile_context): Update comment.
7914 (cplus_get_compile_context): Update comment.
7915 * compile/compile.c (compile_to_object): Update calls, don't rely
7916 on function pointer being NULL.
7917 * d-lang.c (d_language_data): Delete la_get_compile_instance
7918 initializer.
7919 * f-lang.c (f_language_data): Likewise.
7920 * go-lang.c (go_language_data): Likewise.
7921 * language.c (unknown_language_data): Likewise.
7922 (auto_language_data): Likewise.
7923 * language.h (language_data): Delete la_get_compile_instance field.
7924 (language_defn::get_compile_instance): New member function.
7925 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7926 initializer.
7927 * objc-lang.c (objc_language_data): Likewise.
7928 * opencl-lang.c (opencl_language_data): Likewise.
7929 * p-lang.c (pascal_language_data): Likewise.
7930 * rust-lang.c (rust_language_data): Likewise.
7931
4009ee92
AB
79322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7933
7934 * ada-lang.c (ada_add_all_symbols): Update comment.
7935 (ada_iterate_over_symbols): Delete, move implementation to...
7936 (ada_language::iterate_over_symbols): ...here, a new member
7937 function, rewrite to use range based for loop.
7938 (ada_language_data): Delete la_iterate_over_symbols initializer.
7939 * c-lang.c (c_language_data): Likewise.
7940 (cplus_language_data): Likewise.
7941 (asm_language_data): Likewise.
7942 (minimal_language_data): Likewise.
7943 * d-lang.c (d_language_data): Likewise.
7944 * f-lang.c (f_language_data): Likewise.
7945 * go-lang.c (go_language_data): Likewise.
7946 * language.c (unknown_language_data): Likewise.
7947 (auto_language_data): Likewise.
7948 * language.h (language_data): Delete la_iterate_over_symbols field.
7949 (language_defn::iterate_over_symbols): New member function.
7950 (LA_ITERATE_OVER_SYMBOLS): Update.
7951 * linespec.c (iterate_over_all_matching_symtabs): Update.
7952 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7953 initializer.
7954 * objc-lang.c (objc_language_data): Likewise.
7955 * opencl-lang.c (opencl_language_data): Likewise.
7956 * p-lang.c (pascal_language_data): Likewise.
7957 * rust-lang.c (rust_language_data): Likewise.
7958
54f4ca46
AB
79592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7960
7961 * ada-lang.c (ada_language_data): Delete
7962 la_lookup_transparent_type initializer.
7963 * c-lang.c (c_language_data): Likewise.
7964 (cplus_language_data): Likewise.
7965 (cplus_language::lookup_transparent_type): New member function.
7966 (asm_language_data): Delete la_lookup_transparent_type
7967 initializer.
7968 (minimal_language_data): Likewise.
7969 * d-lang.c (d_language_data): Likewise.
7970 * f-lang.c (f_language_data): Likewise.
7971 * go-lang.c (go_language_data): Likewise.
7972 * language.c (unknown_language_data): Likewise.
7973 (auto_language_data): Likewise.
7974 * language.h (struct language_data): Delete
7975 la_lookup_transparent_type field.
7976 (language_defn::lookup_transparent_type): New member function.
7977 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7978 initializer.
7979 * objc-lang.c (objc_language_data): Likewise.
7980 * opencl-lang.c (opencl_language_data): Likewise.
7981 * p-lang.c (pascal_language_data): Likewise.
7982 * rust-lang.c (rust_language_data): Likewise.
7983 * symtab.c (symbol_matches_domain): Update call.
7984
1fb314aa
AB
79852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7986
7987 * ada-lang.c (ada_language_arch_info): Delete function, move
7988 implementation to...
7989 (ada_language::language_arch_info): ...here, a new member
7990 function.
7991 (ada_language_data): Delete la_language_arch_info.
7992 * c-lang.c (c_language_data): Likewise.
7993 (c_language::language_arch_info): New member function.
7994 (cplus_language_arch_info): Delete function, move
7995 implementation to...
7996 (cplus_language::language_arch_info): ...here, a new member
7997 function.
7998 (cplus_language_data): Delete la_language_arch_info.
7999 (asm_language_data): Likewise.
8000 (asm_language::language_arch_info): New member function.
8001 (minimal_language_data): Delete la_language_arch_info.
8002 (minimal_language::language_arch_info): New member function.
8003 * d-lang.c (d_language_arch_info): Delete function, move
8004 implementation to...
8005 (d_language::language_arch_info): ...here, a new member
8006 function.
8007 (d_language_data): Delete la_language_arch_info.
8008 * f-lang.c (f_language_arch_info): Delete function, move
8009 implementation to...
8010 (f_language::language_arch_info): ...here, a new member
8011 function.
8012 (f_language_data): Delete la_language_arch_info.
8013 * go-lang.c (go_language_arch_info): Delete function, move
8014 implementation to...
8015 (go_language::language_arch_info): ...here, a new member
8016 function.
8017 (go_language_data): Delete la_language_arch_info.
8018 * language.c (unknown_language_data): Likewise.
8019 (unknown_language::language_arch_info): New member function.
8020 (auto_language_data): Delete la_language_arch_info.
8021 (auto_language::language_arch_info): New member function.
8022 (language_gdbarch_post_init): Update call to
8023 la_language_arch_info.
8024 * language.h (language_data): Delete la_language_arch_info
8025 function pointer.
8026 (language_defn::language_arch_info): New function.
8027 * m2-lang.c (m2_language_arch_info): Delete function, move
8028 implementation to...
8029 (m2_language::language_arch_info): ...here, a new member
8030 function.
8031 (m2_language_data): Delete la_language_arch_info.
8032 * objc-lang.c (objc_language_arch_info): Delete function, move
8033 implementation to...
8034 (objc_language::language_arch_info): ...here, a new member
8035 function.
8036 (objc_language_data): Delete la_language_arch_info.
8037 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8038 implementation to...
8039 (opencl_language::language_arch_info): ...here, a new member
8040 function.
8041 (opencl_language_data): Delete la_language_arch_info.
8042 * p-lang.c (pascal_language_arch_info): Delete function, move
8043 implementation to...
8044 (pascal_language::language_arch_info): ...here, a new member
8045 function.
8046 (pascal_language_data): Delete la_language_arch_info.
8047 * rust-lang.c (rust_language_arch_info): Delete function, move
8048 implementation to...
8049 (rust_language::language_arch_info): ...here, a new member
8050 function.
8051 (rust_language_data): Delete la_language_arch_info.
8052
48448202
AB
80532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8054
8055 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8056 initializer.
8057 * c-lang.c (c_language_data): Likewise.
8058 (cplus_language_data): Likewise.
8059 (cplus_language::pass_by_reference_info): New method.
8060 (asm_language_data): Delete la_pass_by_reference initializer.
8061 (minimal_language_data): Likewise.
8062 * cp-abi.c (cp_pass_by_reference): Remove use of
8063 default_pass_by_reference.
8064 * d-lang.c (d_language_data): Likewise.
8065 * f-lang.c (f_language_data): Likewise.
8066 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8067 default_pass_by_reference.
8068 * go-lang.c (go_language_data): Likewise.
8069 * language.c (language_pass_by_reference): Update.
8070 (default_pass_by_reference): Delete.
8071 (unknown_language_data): Delete la_pass_by_reference
8072 initializer.
8073 (auto_language_data): Likewise.
8074 * language.h (struct language_data): Delete la_pass_by_reference
8075 field.
8076 (language_defn::pass_by_reference_info): New member function.
8077 (default_pass_by_reference): Delete declaration.
8078 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8079 initializer.
8080 * objc-lang.c (objc_language_data): Likewise.
8081 * opencl-lang.c (opencl_language_data): Likewise.
8082 * p-lang.c (pascal_language_data): Likewise.
8083 * rust-lang.c (rust_language_data): Likewise.
8084
15e5fd35
AB
80852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8086
8087 * ada-lang.c (ada_read_var_value): Delete function, move
8088 implementation to...
8089 (ada_language::read_var_value): ...here.
8090 (ada_language_data): Delete la_read_var_value initializer.
8091 * c-lang.c (c_language_data): Likewise.
8092 (cplus_language_data): Likewise.
8093 (minimal_language_data): Likewise.
8094 * d-lang.c (d_language_data): Likewise.
8095 * f-lang.c (f_language_data): Likewise.
8096 * findvar.c (default_read_var_value): Rename to...
8097 (language_defn::read_var_value): ...this.
8098 * findvar.c (read_var_value): Update header comment, and change to
8099 call member function instead of function pointer.
8100 * go-lang.c (go_language_data): Likewise.
8101 * language.c (unknown_language_data): Delete la_read_var_value
8102 initializer.
8103 (auto_language_data): Likewise.
8104 * language.h (struct language_data): Delete la_read_var_value
8105 field.
8106 (language_defn::read_var_value): New member function.
8107 (default_read_var_value): Delete declaration.
8108 * m2-lang.c (m2_language_data): Delete la_read_var_value
8109 initializer.
8110 * objc-lang.c (objc_language_data): Likewise.
8111 * opencl-lang.c (opencl_language_data): Likewise.
8112 * p-lang.c (pascal_language_data): Likewise.
8113 * rust-lang.c (rust_language_data): Likewise.
8114 * value.h (default_read_var_value): Delete declaration.
8115
5bd40f2a
AB
81162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8117
8118 * ada-lang.c (ada_print_array_index): Delete function, move
8119 implementation to...
8120 (ada_language::print_array_index): ...here.
8121 (ada_language_data): Delete la_print_array_index initializer.
8122 * c-lang.c (c_language_data): Likewise.
8123 (cplus_language_data): Likewise.
8124 (minimal_language_data): Likewise.
8125 * d-lang.c (d_language_data): Likewise.
8126 * f-lang.c (f_language_data): Likewise.
8127 * go-lang.c (go_language_data): Likewise.
8128 * language.c (default_print_array_index): Delete function, move
8129 implementation to...
8130 (language_defn::print_array_index): ...here.
8131 (unknown_language_data): Delete la_print_array_index initializer.
8132 (auto_language_data): Likewise.
8133 * language.h (struct language_data): Delete la_print_array_index
8134 field.
8135 (language_defn::print_array_index): New member function.
8136 (LA_PRINT_ARRAY_INDEX): Update.
8137 (default_print_array_index): Delete declaration.
8138 * m2-lang.c (m2_language_data): Delete la_print_array_index
8139 initializer.
8140 * objc-lang.c (objc_language_data): Likewise.
8141 * opencl-lang.c (opencl_language_data): Likewise.
8142 * p-lang.c (pascal_language_data): Likewise.
8143 * rust-lang.c (rust_language_data): Likewise.
8144
0874fd07
AB
81452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8146
8147 * gdb/ada-lang.c (ada_language_defn): Convert to...
8148 (ada_language_data): ...this.
8149 (class ada_language): New class.
8150 (ada_language_defn): New static global.
8151 * gdb/c-lang.c (c_language_defn): Convert to...
8152 (c_language_data): ...this.
8153 (class c_language): New class.
8154 (c_language_defn): New static global.
8155 (cplus_language_defn): Convert to...
8156 (cplus_language_data): ...this.
8157 (class cplus_language): New class.
8158 (cplus_language_defn): New static global.
8159 (asm_language_defn): Convert to...
8160 (asm_language_data): ...this.
8161 (class asm_language): New class.
8162 (asm_language_defn): New static global.
8163 (minimal_language_defn): Convert to...
8164 (minimal_language_data): ...this.
8165 (class minimal_language): New class.
8166 (minimal_language_defn): New static global.
8167 * gdb/d-lang.c (d_language_defn): Convert to...
8168 (d_language_data): ...this.
8169 (class d_language): New class.
8170 (d_language_defn): New static global.
8171 * gdb/f-lang.c (f_language_defn): Convert to...
8172 (f_language_data): ...this.
8173 (class f_language): New class.
8174 (f_language_defn): New static global.
8175 * gdb/go-lang.c (go_language_defn): Convert to...
8176 (go_language_data): ...this.
8177 (class go_language): New class.
8178 (go_language_defn): New static global.
8179 * gdb/language.c (unknown_language_defn): Remove declaration.
8180 (current_language): Initialize to nullptr, real initialization is
8181 moved to _initialize_language.
8182 (languages): Delete global.
8183 (language_defn::languages): Define.
8184 (set_language_command): Use language_defn::languages.
8185 (set_language): Likewise.
8186 (range_error): Likewise.
8187 (language_enum): Likewise.
8188 (language_def): Likewise.
8189 (add_set_language_command): Use language_def::languages for the
8190 language list, and language_def to lookup language pointers.
8191 (skip_language_trampoline): Use language_defn::languages.
8192 (unknown_language_defn): Convert to...
8193 (unknown_language_data): ...this.
8194 (class unknown_language): New class.
8195 (unknown_language_defn): New static global.
8196 (auto_language_defn): Convert to...
8197 (auto_language_data): ...this.
8198 (class auto_language): New class.
8199 (auto_language_defn): New static global.
8200 (language_gdbarch_post_init): Use language_defn::languages.
8201 (_initialize_language): Initialize current_language.
8202 * gdb/language.h (struct language_defn): Rename to...
8203 (struct language_data): ...this.
8204 (struct language_defn): New.
8205 (auto_language_defn): Delete.
8206 (unknown_language_defn): Delete.
8207 (minimal_language_defn): Delete.
8208 (ada_language_defn): Delete.
8209 (asm_language_defn): Delete.
8210 (c_language_defn): Delete.
8211 (cplus_language_defn): Delete.
8212 (d_language_defn): Delete.
8213 (f_language_defn): Delete.
8214 (go_language_defn): Delete.
8215 (m2_language_defn): Delete.
8216 (objc_language_defn): Delete.
8217 (opencl_language_defn): Delete.
8218 (pascal_language_defn): Delete.
8219 (rust_language_defn): Delete.
8220 * gdb/m2-lang.c (m2_language_defn): Convert to...
8221 (m2_language_data): ...this.
8222 (class m2_language): New class.
8223 (m2_language_defn): New static global.
8224 * gdb/objc-lang.c (objc_language_defn): Convert to...
8225 (objc_language_data): ...this.
8226 (class objc_language): New class.
8227 (objc_language_defn): New static global.
8228 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8229 (opencl_language_data): ...this.
8230 (class opencl_language): New class.
8231 (opencl_language_defn): New static global.
8232 * gdb/p-lang.c (pascal_language_defn): Convert to...
8233 (pascal_language_data): ...this.
8234 (class pascal_language): New class.
8235 (pascal_language_defn): New static global.
8236 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8237 language pointer, update comment format.
8238 * gdb/rust-lang.c (rust_language_defn): Convert to...
8239 (rust_language_data): ...this.
8240 (class rust_language): New class.
8241 (rust_language_defn): New static global.
8242
1313c56e
AB
82432020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8244
8245 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8246 member variable.
8247 <m_stmt_at_address>: New member variable.
8248 (lnp_state_machine::record_line): Don't record some lines, update
8249 tracking of is_stmt at the same address.
8250 (lnp_state_machine::lnp_state_machine): Initialise new member
8251 variables.
8252
b7ed9f3d
ST
82532020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8254
8255 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8256 "-include gnu-nat-mig.h".
8257 * gnu-nat-mig.h: New file.
8258 * gnu-nat.c: Include "gnu-nat-mig.h".
8259 (exc_server, msg_reply_server, notify_server,
8260 process_reply_server): Remove declarations.
8261
14a8ad62
ST
82622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8263
8264 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8265 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8266 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8267 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8268 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8269 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8270 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8271 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8272 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8273 to gnu_nat_target class.
8274 * gnu-nat.c: Likewise.
8275 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8276 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8277 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8278 object.
8279 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8280 instead of `gnu_target'.
8281
0af5e106
ST
82822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8283
8284 * i386-gnu-tdep.c: Include "gdbcore.h"
8285 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8286 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8287 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8288 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8289 i386_gnu_sigcontext_addr): New functions
8290 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8291 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8292 tdep.
8293
078f2fc9
ST
82942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8295
8296 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8297 before fork_inferior call. Avoid calling it if target_is_pushed returns
8298 true.
8299
53dff92c
ST
83002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8301
8302 * gnu-nat.h (gnu_target): New variable declaration.
8303 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8304 gnu_target.
8305 * gnu-nat.c (gnu_target): New variable.
8306 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8307 add_thread_silent, and add_thread calls.
8308 (gnu_nat_target::create_inferior): Pass gnu_target to
8309 add_thread_silent, thread_change_ptid call.
8310 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8311 call.
8312
5a8b8627
ST
83132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8314
8315 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8316 (gnu_nat_target::find_memory_regions): Remove unused
8317 `old_address' variable.
8318
366f550a
ST
83192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8320
8321 * gnu-nat.c: Include "gdbarch.h".
8322
f14871bf
ST
83232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8324
8325 * reply_mig_hack.awk (Error return): Cast function through
8326 void *, to bypass compiler function call check.
8327
c6887cfb
ST
83282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8329
8330 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8331 $(srcdir)/reply_mig_hack.awk.
8332
6930bffe
ST
83332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8334
8335 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8336
112c22ed
JG
83372020-05-30 Jonny Grant <jg@jguk.org>
8338
8339 * configure.ac (ACX_BUGURL): change bug URL to https.
8340
f68f85b5
PA
83412020-05-30 Pedro Alves <palves@redhat.com>
8342
8343 * cp-support.c (replace_typedefs_template): New.
8344 (replace_typedefs_qualified_name): Handle
8345 DEMANGLE_COMPONENT_TEMPLATE.
8346
976ca316
SM
83472020-05-29 Simon Marchi <simon.marchi@efficios.com>
8348
8349 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8350 dwarf2/index-cache.h, dwarf2/index-write.c,
8351 dwarf2/index-write.h, dwarf2/line-header.c,
8352 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8353 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8354 variables and fields from `dwarf2_per_objfile` to just
8355 `per_objfile` throughout.
8356
989ade05
SM
83572020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8358
8359 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8360 <push_dwarf_reg_entry_value>: Add comment.
8361
c47bae85
KB
83622020-05-28 Kevin Buettner <kevinb@redhat.com>
8363 Keith Seitz <keiths@redhat.com>
8364
8365 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8366 instead of PyEval_ReleaseLock.
8367 (class gdbpy_gil): Move to earlier in file.
8368 (finalize_python): Set gdb_python_initialized.
8369 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8370 when not initialized.
8371
44486dcf
SM
83722020-05-28 Simon Marchi <simon.marchi@efficios.com>
8373
8374 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8375 <push_dwarf_reg_entry_value>: Remove assert. Override
8376 per_objfile with caller_per_objfile.
8377
f030440d
TV
83782020-05-28 Tom de Vries <tdevries@suse.de>
8379
8380 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8381 PR gold/15646 workaround to symbol kind "type".
8382
f0fbb768
TT
83832020-05-27 Tom Tromey <tromey@adacore.com>
8384
8385 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8386
af0b2a3e
TT
83872020-05-27 Tom Tromey <tromey@adacore.com>
8388
8389 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8390 Use htab_find_with_hash.
8391 <add_abbrev>: Remove "abbrev_number" parameter.
8392 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8393 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8394 (hash_abbrev): Add comment.
8395 (abbrev_table::lookup_abbrev): Move to header file.
8396 (abbrev_table::read): Update.
8397
7d00ffec
TT
83982020-05-27 Tom Tromey <tromey@adacore.com>
8399
8400 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8401 method.
8402 <canonical_name>: New member.
8403 <raw_name>: Rename from "name".
8404 (partial_die_info): Initialize canonical_name.
8405 (scan_partial_symbols): Check raw_name.
8406 (partial_die_parent_scope, partial_die_full_name)
8407 (add_partial_symbol, add_partial_subprogram)
8408 (add_partial_enumeration, load_partial_dies): Use "name" method.
8409 (partial_die_info::name): New method.
8410 (partial_die_info::read, guess_partial_die_structure_name)
8411 (partial_die_info::fixup): Update.
8412
697bba18
TT
84132020-05-27 Tom Tromey <tromey@adacore.com>
8414
8415 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8416 <get_ref_die_offset>: Inline.
8417 <get_ref_die_offset_complaint>: New method.
8418 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8419 (attribute::get_ref_die_offset_complaint): Rename from
8420 get_ref_die_offset. Just issue complaint.
8421
c17ace43
HD
84222020-05-27 Hannes Domani <ssbssa@yahoo.de>
8423
8424 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8425
96445f0b
HD
84262020-05-27 Hannes Domani <ssbssa@yahoo.de>
8427
8428 * exec.c (exec_file_attach): Use errno value of first openp failure.
8429
ac637ec3
HD
84302020-05-27 Hannes Domani <ssbssa@yahoo.de>
8431
8432 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8433 Don't close thread handle.
8434
17ee85fc
TT
84352020-05-27 Tom Tromey <tom@tromey.com>
8436 Simon Marchi <simon.marchi@efficios.com>
8437
8438 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8439 shared_ptr.
8440 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8441 member.
8442 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8443 dwarf2_per_bfd_objfile_data_key>: New globals.
8444 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8445 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8446 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8447 shared.
8448 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8449 short-circuit when sharing.
8450 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8451 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8452
39b16f87
SM
84532020-05-27 Simon Marchi <simon.marchi@efficios.com>
8454
8455 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8456 to...
8457 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8458 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8459
fcf23d5b
SM
84602020-05-27 Simon Marchi <simon.marchi@efficios.com>
8461
8462 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8463 build_name_components, find_name_components_bounds>:
8464 Add per_objfile parameter.
8465 (struct mapped_index) <symbol_name_at>: Likewise.
8466 (struct mapped_debug_names): Remove constructor.
8467 <dwarf2_per_objfile>: Remove field.
8468 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8469 (mapped_index_base::find_name_components_bounds,
8470 mapped_index_base::build_name_components,
8471 dw2_expand_symtabs_matching_symbol): Likewise.
8472 (class mock_mapped_index) <symbol_name_at>: Likewise.
8473 (check_match): Likewise.
8474 (check_find_bounds_finds): Likewise.
8475 (test_mapped_index_find_name_component_bounds): Update.
8476 (CHECK_MATCH): Update.
8477 (dw2_expand_symtabs_matching): Update.
8478 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8479 per_objfile parameter.
8480 <find_vec_in_debug_names>: Likewise.
8481 <m_per_objfile>: New field.
8482 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8483 parameter.
8484 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8485 (dw2_debug_names_iterator::next): Update.
8486 (dw2_debug_names_lookup_symbol): Update.
8487 (dw2_debug_names_expand_symtabs_for_function): Update.
8488 (dw2_debug_names_map_matching_symbols): Update.
8489 (dw2_debug_names_expand_symtabs_matching): Update.
8490 (dwarf2_read_debug_names): Update.
8491
7188ed02
SM
84922020-05-27 Simon Marchi <simon.marchi@efficios.com>
8493
8494 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8495 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8496 move to dwarf2_per_objfile.
8497 <read_in_chain>: Remove.
8498 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8499 remove_all_cus, age_comp_units>: New methods.
8500 <m_dwarf2_cus>: New member.
8501 (struct dwarf2_per_cu_data) <cu>: Remove.
8502 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8503 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8504 moved to methods of dwarf2_per_objfile.
8505 (dwarf2_clear_marks): Remove.
8506 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8507 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8508 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8509 (dwarf2_per_objfile::remove_all_cus): New.
8510 (class free_cached_comp_units) <~free_cached_comp_units>:
8511 Update.
8512 (load_cu): Update.
8513 (dw2_do_instantiate_symtab): Adjust.
8514 (fill_in_sig_entry_from_dwo_entry): Adjust.
8515 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8516 (cutu_reader::cutu_reader): Likewise.
8517 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8518 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8519 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8520 and dwarf2_per_objfile::age_comp_units.
8521 (load_partial_comp_unit): Update.
8522 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8523 (process_queue): Likewise.
8524 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8525 backlink.
8526 (dwarf2_read_addr_index): Likewise.
8527 (follow_die_offset): Likewise.
8528 (dwarf2_fetch_die_loc_sect_off): Likewise.
8529 (dwarf2_fetch_constant_bytes): Likewise.
8530 (dwarf2_fetch_die_type_sect_off): Likewise.
8531 (follow_die_sig_1): Likewise.
8532 (load_full_type_unit): Likewise.
8533 (read_signatured_type): Likewise.
8534 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8535 (dwarf2_cu::~dwarf2_cu): Remove.
8536 (dwarf2_per_objfile::get_cu): New.
8537 (dwarf2_per_objfile::set_cu): New.
8538 (age_cached_comp_units): Rename to...
8539 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8540 to std::unordered_map.
8541 (free_one_cached_comp_unit): Rename to...
8542 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8543 to std::unordered_map.
8544 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8545 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8546 a dwarf2_per_objfile in data.
8547 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8548 (dwarf2_clear_marks): Remove.
8549
2e671100
SM
85502020-05-27 Simon Marchi <simon.marchi@efficios.com>
8551
8552 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8553 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8554 (init_tu_and_read_dwo_dies): Likewise.
8555 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8556 (cutu_reader::cutu_reader): Likewise.
8557 (load_partial_comp_unit): Likewise.
8558 (process_psymtab_comp_unit): Update.
8559 (build_type_psymtabs_1): Update.
8560 (process_skeletonless_type_unit): Update.
8561 (load_full_comp_unit): Update.
8562 (find_partial_die): Update.
8563 (dwarf2_read_addr_index): Update.
8564 (read_signatured_type): Update.
8565
2e6a9f79
SM
85662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8567
8568 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8569 m_header_read_in>: New fields.
8570 <get_header>: New method.
8571 * dwarf2/read.c (per_cu_header_read_in): Remove.
8572 (dwarf2_per_cu_data::get_header): New.
8573 (dwarf2_per_cu_data::addr_size): Update.
8574 (dwarf2_per_cu_data::offset_size): Update.
8575 (dwarf2_per_cu_data::ref_addr_size): Update.
8576
1b555f17
SM
85772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8578
8579 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8580 (dw2_do_instantiate_symtab): Update.
8581 (queue_and_load_all_dwo_tus): Change parameter from
8582 dwarf2_per_cu_data to dwarf2_cu.
8583 (dwarf2_fetch_die_loc_sect_off): Update.
8584 (dwarf2_fetch_constant_bytes): Update.
8585 (dwarf2_fetch_die_type_sect_off): Update.
8586
8fc0b21d
SM
85872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8588
8589 * dwarf2/read.c (process_full_comp_unit,
8590 process_full_type_unit): Remove per_cu, per_objfile paramters.
8591 Add dwarf2_cu parameter.
8592 (process_queue): Update.
8593
168c9250
SM
85942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8595
8596 * dwarf2/read.c (create_cu_from_index_list): Replace
8597 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8598 (create_cus_from_index_list): Likewise.
8599 (create_cus_from_index): Likewise.
8600 (create_signatured_type_table_from_index): Likewise.
8601 (create_cus_from_debug_names_list): Likewise.
8602 (create_cus_from_debug_names): Likewise.
8603 (dwarf2_read_gdb_index): Update.
8604 (dwarf2_read_debug_names): Update.
8605
e286671b
TT
86062020-05-27 Tom Tromey <tom@tromey.com>
8607 Simon Marchi <simon.marchi@efficios.com>
8608
8609 * dwarf2/read.h (struct dwarf2_per_objfile)
8610 <get_type_for_signatured_type, set_type_for_signatured_type>:
8611 New methods.
8612 <m_type_map>: New member.
8613 (struct signatured_type) <type>: Remove.
8614 * dwarf2/read.c
8615 (dwarf2_per_objfile::get_type_for_signatured_type,
8616 dwarf2_per_objfile::set_type_for_signatured_type): New.
8617 (get_signatured_type): Use new methods.
8618
8adb8487
TT
86192020-05-27 Tom Tromey <tom@tromey.com>
8620 Simon Marchi <simon.marchi@efficios.com>
8621
8622 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8623 (struct dwarf2_per_objfile) <type_units>: New member.
8624 <get_type_unit_group_unshareable>: New method.
8625 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8626 num_symtabs, symtabs>: Remove; move to
8627 type_unit_group_unshareable.
8628 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8629 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8630 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8631
127bbf4b
SM
86322020-05-27 Simon Marchi <simon.marchi@efficios.com>
8633
8634 * dwarf2/read.h (struct dwarf2_per_cu_data):
8635 <dwarf2_per_objfile>: Remove.
8636 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8637 dwarf2_per_objfile.
8638 (create_signatured_type_table_from_index): Likewise.
8639 (create_signatured_type_table_from_debug_names): Likewise.
8640 (create_debug_type_hash_table): Likewise.
8641 (fill_in_sig_entry_from_dwo_entry): Likewise.
8642 (create_type_unit_group): Likewise.
8643 (read_comp_units_from_section): Likewise.
8644 (create_cus_hash_table): Likewise.
8645
f6e649dd
SM
86462020-05-27 Simon Marchi <simon.marchi@efficios.com>
8647
8648 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8649 dwarf2_per_cu_data::dwarf2_per_objfile.
8650 (compute_compunit_symtab_includes): Likewise.
8651 (dwarf2_cu::start_symtab): Likewise.
8652
aa66c379
SM
86532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8654
8655 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8656 parameter.
8657 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8658 (read_namespace_alias): Update.
8659 (lookup_die_type): Update.
8660 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8661 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8662 Update.
8663 (disassemble_dwarf_expression): Update.
8664
120ce1b5
SM
86652020-05-27 Simon Marchi <simon.marchi@efficios.com>
8666
8667 * dwarf2/read.h (struct dwarf2_queue_item): Add
8668 dwarf2_per_objfile parameter, assign new parameter.
8669 <per_objfile>: New field.
8670 * dwarf2/read.c (free_one_cached_comp_unit): Add
8671 dwarf2_per_objfile parameter.
8672 (queue_comp_unit): Likewise.
8673 (dw2_do_instantiate_symtab): Update.
8674 (process_psymtab_comp_unit): Update.
8675 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8676 (process_imported_unit_die): Update.
8677 (queue_and_load_dwo_tu): Update.
8678 (follow_die_offset): Update.
8679 (follow_die_sig_1): Update.
8680
9f47c707
SM
86812020-05-27 Simon Marchi <simon.marchi@efficios.com>
8682
8683 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8684 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8685 (read_call_site_scope): Assign per_objfile.
8686 (dwarf2_per_cu_data::objfile): Remove.
8687 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8688 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8689 dwarf2_per_objfile parameter.
8690 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8691 dwarf2_per_objfile parameter.
8692 (dwarf_expr_reg_to_entry_parameter): Add output
8693 dwarf2_per_objfile parameter.
8694 (locexpr_get_frame_base): Update.
8695 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8696 <push_dwarf_reg_entry_value>: Update.
8697 <call_site_to_target_addr>: Update.
8698 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8699 parameter.
8700 (value_of_dwarf_reg_entry): Update.
8701 (rw_pieced_value): Update.
8702 (indirect_synthetic_pointer): Update.
8703 (dwarf2_evaluate_property): Update.
8704 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8705 parameter.
8706 (locexpr_read_variable): Update.
8707 (locexpr_get_symbol_read_needs): Update.
8708 (loclist_read_variable): Update.
8709
14095eb3
SM
87102020-05-27 Simon Marchi <simon.marchi@efficios.com>
8711
8712 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8713 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8714 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8715 parameter.
8716 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8717 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8718 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8719 parameter.
8720 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8721 sect_variable_value): Add dwarf2_per_objfile parameter.
8722 (class dwarf_evaluate_loc_desc) <dwarf_call,
8723 dwarf_variable_value>: Update.
8724 (fetch_const_value_from_synthetic_pointer): Add
8725 dwarf2_per_objfile parameter.
8726 (fetch_const_value_from_synthetic_pointer): Update.
8727 (coerced_pieced_ref): Update.
8728 (class symbol_needs_eval_context) <dwarf_call,
8729 dwarf_variable_value>: Update.
8730 (dwarf2_compile_expr_to_ax): Update.
8731
3c3cd3d4
SM
87322020-05-27 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8735 parameter.
8736 (dwarf2_evaluate_loc_desc_full): Update.
8737
82ca3f51
SM
87382020-05-27 Simon Marchi <simon.marchi@efficios.com>
8739
8740 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8741 parameter.
8742 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8743 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8744 dwarf2_per_objfile parameter.
8745 (decode_debug_loc_dwo_addresses): Likewise.
8746 (dwarf2_find_location_expression): Update.
8747 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8748 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8749 parameter.
8750 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8751 parameter.
8752 (locexpr_describe_location_1): Likewise.
8753 (locexpr_describe_location): Update.
8754
4b167ea1
SM
87552020-05-27 Simon Marchi <simon.marchi@efficios.com>
8756
8757 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8758 Remove.
8759 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8760 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8761 (dwarf2_compile_property_to_c): Update.
8762 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8763 use text offset from objfile.
8764 (locexpr_tracepoint_var_ref): Update.
8765 (locexpr_generate_c_location): Update.
8766 (loclist_describe_location): Update.
8767 (loclist_tracepoint_var_ref): Update.
8768 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8769 dwarf2_per_objfile parameter.
8770 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8771 use text offset from objfile.
8772 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8773
89b07335
SM
87742020-05-27 Simon Marchi <simon.marchi@efficios.com>
8775
8776 * dwarf2/expr.h (struct dwarf_expr_context)
8777 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8778 <offset>: Remove.
8779 <per_objfile>: New member.
8780 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8781 dwarf2_per_objfile parameter. Don't set offset, set
8782 per_objfile.
8783 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8784 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8785 a dwarf2_per_objfile object instead of an offset.
8786 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8787 constructor.
8788 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8789 to dwarf2_expr_executor constructor. Don't set offset.
8790 (dwarf2_fetch_cfa_info): Update.
8791 (struct dwarf2_frame_cache) <text_offset>: Remove.
8792 <per_objfile>: New field.
8793 (dwarf2_frame_cache): Update.
8794 (dwarf2_frame_prev_register): Update.
8795 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8796 <dwarf_evaluate_loc_desc>: Add constructor.
8797 (dwarf2_evaluate_loc_desc_full): Update.
8798 (dwarf2_locexpr_baton_eval): Update.
8799 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8800 Add constructor.
8801 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8802
293e7e51
SM
88032020-05-27 Simon Marchi <simon.marchi@efficios.com>
8804
8805 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8806 addr_sized_int_type>: Move to dwarf2_cu.
8807 <int_type>: Move to dwarf2_per_objfile.
8808 (struct dwarf2_per_objfile) <int_type>: Move here.
8809 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8810 addr_sized_int_type>: Move here.
8811 (read_func_scope): Update.
8812 (read_array_type): Update.
8813 (read_tag_string_type): Update.
8814 (attr_to_dynamic_prop): Update.
8815 (dwarf2_per_cu_data::int_type): Rename to...
8816 (dwarf2_per_objfile::int_type): ... this.
8817 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8818 (dwarf2_cu::addr_sized_int_type): ... this.
8819 (read_subrange_type): Update.
8820 (dwarf2_per_cu_data::addr_type): Rename to...
8821 (dwarf2_cu::addr_type): ... this.
8822 (set_die_type): Update.
8823
64874a40
SM
88242020-05-27 Simon Marchi <simon.marchi@efficios.com>
8825
8826 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8827 data through per_cu->cu.
8828
4ab09049
SM
88292020-05-27 Simon Marchi <simon.marchi@efficios.com>
8830
8831 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8832 dwarf2_per_cu_data parameter fo dwarf2_cu.
8833 (lookup_dwo_type_unit): Likewise.
8834 (read_cutu_die_from_dwo): Likewise.
8835 (lookup_dwo_unit): Likewise.
8836 (open_and_init_dwo_file): Likewise.
8837 (lookup_dwo_cutu): Likewise.
8838 (lookup_dwo_comp_unit): Likewise.
8839 (lookup_dwo_type_unit): Likewise.
8840 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8841 (cutu_reader::cutu_reader): Update.
8842
47b14e86
SM
88432020-05-27 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8846 parameter.
8847 (process_full_type_unit): Likewise.
8848 (process_queue): Update.
8849
43182c09
SM
88502020-05-27 Simon Marchi <simon.marchi@efficios.com>
8851
8852 * dwarf2/read.c (recursively_compute_inclusions): Add
8853 dwarf2_per_objfile parameter.
8854 (compute_compunit_symtab_includes): Likewise.
8855 (process_cu_includes): Update.
8856
7aa104c4
SM
88572020-05-27 Simon Marchi <simon.marchi@efficios.com>
8858
8859 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8860 parameter.
8861 (create_type_unit_group): Update.
8862 (process_psymtab_comp_unit_reader): Update.
8863 (build_type_psymtabs_reader): Update.
8864
e3beb21d
SM
88652020-05-27 Simon Marchi <simon.marchi@efficios.com>
8866
8867 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8868 object through m_this_cu->cu.
8869
d460f660
SM
88702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8871
8872 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8873 the info parameter.
8874 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8875
ab432490
SM
88762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8877
8878 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8879 per_objfile parameter.
8880 (load_full_type_unit): Add per_objfile parameter.
8881 (read_signatured_type): Likewise.
8882 (load_full_comp_unit): Likewise.
8883 (load_cu): Likewise.
8884 (dw2_do_instantiate_symtab): Likewise.
8885 (dw2_get_file_names): Likewise.
8886 (dw2_map_symtabs_matching_filename): Update.
8887 (dw_expand_symtabs_matching_file_matcher): Update.
8888 (dw2_map_symbol_filenames): Update.
8889 (process_psymtab_comp_unit): Add per_objfile parameter.
8890 (build_type_psymtabs_1): Update.
8891 (process_skeletonless_type_unit): Update.
8892 (dwarf2_build_psymtabs_hard): Update.
8893 (load_partial_comp_unit): Add per_objfile parameter.
8894 (scan_partial_symbols): Update.
8895 (load_full_comp_unit): Add per_objfile parameter.
8896 (process_imported_unit_die): Update.
8897 (create_cus_hash_table): Update.
8898 (find_partial_die): Update.
8899 (dwarf2_read_addr_index): Update.
8900 (follow_die_offset): Update.
8901 (dwarf2_fetch_die_loc_sect_off): Update.
8902 (dwarf2_fetch_constant_bytes): Update.
8903 (dwarf2_fetch_die_type_sect_off): Update.
8904 (follow_die_sig_1): Update.
8905 (load_full_type_unit): Add per_objfile parameter.
8906 (read_signatured_type): Likewise.
8907
313bad1b
SM
89082020-05-27 Simon Marchi <simon.marchi@efficios.com>
8909
8910 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8911 of objfile_name.
8912
c3699833
SM
89132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8914
8915 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8916 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8917 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8918 field.
8919 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8920 (create_cus_from_index): Update.
8921 (dwarf2_read_gdb_index): Update.
8922 (create_cus_from_debug_names): Update.
8923 (dwarf2_read_debug_names): Update.
8924 (get_abbrev_section_for_cu): Update.
8925 (create_all_comp_units): Update.
8926 (read_attribute_value): Update.
8927 (get_debug_line_section): Update.
8928 * dwarf2/index-cache.c (index_cache::store): Update.
8929 * dwarf2/index-write.c (save_gdb_index_command): Update.
8930 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8931
1859c670
SM
89322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8933
8934 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8935 member.
8936 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8937 dwarf2_per_cu_data::per_bfd.
8938 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8939 (create_type_unit_group): Likewise.
8940 (queue_comp_unit): Remove reference to
8941 per_cu->dwarf2_per_objfile.
8942 (maybe_queue_comp_unit): Likewise.
8943 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8944 (create_cus_hash_table): Assign new field.
8945
5e22e966
SM
89462020-05-27 Simon Marchi <simon.marchi@efficios.com>
8947
8948 * dwarf2/read.c: Replace
8949 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8950 dwarf2_cu->per_objfile throughout.
8951
97a1449a
SM
89522020-05-27 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8955 parameter, don't use per_cu->dwarf2_per_objfile.
8956 (dw2_instantiate_symtab): Likewise.
8957 (dw2_find_last_source_symtab): Update.
8958 (dw2_map_expand_apply): Update.
8959 (dw2_lookup_symbol): Update.
8960 (dw2_expand_symtabs_for_function): Update.
8961 (dw2_expand_all_symtabs): Update.
8962 (dw2_expand_symtabs_with_fullname): Update.
8963 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8964 don't use per_cu->dwarf2_per_objfile.
8965 (dw2_expand_marked_cus): Update.
8966 (dw2_find_pc_sect_compunit_symtab): Update.
8967 (dw2_debug_names_lookup_symbol): Update.
8968 (dw2_debug_names_expand_symtabs_for_function): Update.
8969 (dw2_debug_names_map_matching_symbols): Update.
8970 (dwarf2_psymtab::expand_psymtab): Update.
8971
9e021579
SM
89722020-05-27 Simon Marchi <simon.marchi@efficios.com>
8973
8974 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8975 <per_objfile>: New member.
8976 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8977 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8978 call to dwarf2_cu.
8979 (cutu_reader::cutu_reader): Update.
8980 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8981
ae090bdb
SM
89822020-05-27 Simon Marchi <simon.marchi@efficios.com>
8983
8984 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8985 struct dwarf2_per_objfile.
8986 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8987 dwarf2_per_bfd.
8988 * dwarf2/read.c (set_die_type): Update.
8989 (get_die_type_at_offset): Update.
8990
af758d11
SM
89912020-05-27 Tom Tromey <tom@tromey.com>
8992 Simon Marchi <simon.marchi@efficios.com>
8993
8994 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8995 method.
8996 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8997 get_symtab, set_symtab>: New methods.
8998 <m_symtabs>: New field.
8999 (struct dwarf2_psymtab): Derive from partial_symtab.
9000 <readin_p, get_compunit_symtab>: Declare methods.
9001 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9002 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9003 New methods.
9004 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9005 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9006 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9007 (dw2_symtab_iter_next, dw2_print_stats)
9008 (dw2_expand_symtabs_with_fullname)
9009 (dw2_expand_symtabs_matching_one)
9010 (dw_expand_symtabs_matching_file_matcher)
9011 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9012 (dw2_debug_names_iterator::next)
9013 (dw2_debug_names_map_matching_symbols)
9014 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9015 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9016 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9017 New methods.
9018 (get_compunit_symtab, process_full_comp_unit)
9019 (process_full_type_unit): Update.
9020 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9021
5989a64e
SM
90222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9023
9024 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9025 then introduce a new dwarf2_per_objfile type.
9026 <read_line_string>: Move to the new dwarf2_per_objfile type.
9027 <objfile>: Likewise.
9028 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9029 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9030 dwarf2_per_objfile->per_bfd.
9031 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9032 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9033 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9034 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9035 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9036 (dwarf2_per_objfile::locate_sections): Rename to...
9037 (dwarf2_per_bfd::locate_sections): ... this.
9038 (dwarf2_per_objfile::get_cutu): Rename to...
9039 (dwarf2_per_bfd::get_cutu): ... this.
9040 (dwarf2_per_objfile::get_cu): Rename to...
9041 (dwarf2_per_bfd::get_cu): ... this.
9042 (dwarf2_per_objfile::get_tu): Rename to...
9043 (dwarf2_per_bfd::get_tu): ... this.
9044 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9045 (dwarf2_per_bfd::allocate_per_cu): ... this.
9046 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9047 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9048 (get_gdb_index_contents_ftype): Change parameter from
9049 dwarf2_per_objfile to dwarf2_per_bfd.
9050 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9051 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9052
a50264ba
TT
90532020-05-27 Tom Tromey <tom@tromey.com>
9054 Simon Marchi <simon.marchi@efficios.com>
9055
9056 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9057 (allocate_piece_closure): Set "per_objfile" member.
9058 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9059 (locexpr_describe_location, loclist_describe_location): Use new
9060 member.
9061 * dwarf2/read.c (read_call_site_scope)
9062 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9063 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9064 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9065 handle_data_member_location): Set per_objfile member.
9066 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9067 member.
9068 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9069
d3473f0c
TT
90702020-05-27 Tom Tromey <tom@tromey.com>
9071
9072 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9073 allocate_signatured_type>: Declare new methods.
9074 <m_num_psymtabs>: New member.
9075 (struct dwarf2_per_cu_data) <index>: New member.
9076 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9077 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9078 (create_cu_from_index_list): Use allocate_per_cu.
9079 (create_signatured_type_table_from_index)
9080 (create_signatured_type_table_from_debug_names)
9081 (create_debug_type_hash_table, add_type_unit)
9082 (read_comp_units_from_section): Use allocate_signatured_type.
9083
5717c425
TT
90842020-05-27 Tom Tromey <tom@tromey.com>
9085
9086 * psymtab.c (partial_map_expand_apply)
9087 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9088 (psym_lookup_global_symbol_language)
9089 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9090 (psym_print_stats, psym_expand_symtabs_for_function)
9091 (psym_map_symbol_filenames, psym_map_matching_symbols)
9092 (psym_expand_symtabs_matching)
9093 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9094 (maintenance_check_psymtabs): Update.
9095 * psympriv.h (struct partial_symtab) <readin_p,
9096 get_compunit_symtab>: Add objfile parameter.
9097 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9098 Likewise.
9099 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9100 get_compunit_symtab>: Likewise.
9101 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9102
45940949
TT
91032020-05-27 Tom Tromey <tom@tromey.com>
9104
9105 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9106 member.
9107 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9108 (create_cu_from_index_list)
9109 (create_signatured_type_table_from_index)
9110 (create_signatured_type_table_from_debug_names)
9111 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9112 (dwarf2_create_include_psymtab)
9113 (create_debug_type_hash_table, add_type_unit)
9114 (create_type_unit_group, read_comp_units_from_section)
9115 (dwarf2_compute_name, create_cus_hash_table)
9116 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9117 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9118 obstack.
9119 (dw2_get_real_path): Likewise. Change argument to
9120 dwarf2_per_objfile.
9121
f8c6d152
LM
91222020-05-27 Luis Machado <luis.machado@linaro.org>
9123
9124 PR tdep/26000
9125 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9126 for ldrd (immediate).
9127
e98d2e6d
PW
91282020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9129
9130 * command.h: Add comment giving the name of class_tui.
9131 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9132 create the fake command for the help for class_tui.
9133
53a47a3e
TT
91342020-05-26 Tom Tromey <tromey@adacore.com>
9135
9136 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9137 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9138 (val_atr): New function.
9139 (value_val_atr): Use it.
9140 * ada-valprint.c (print_optional_low_bound): Change low bound
9141 handling for enums.
9142 (val_print_packed_array_elements): Don't call discrete_position.
9143 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9144 discrete_position for enum types.
9145 * language.c (default_print_array_index): Change type.
9146 * language.h (struct language_defn) <la_print_array_index>: Add
9147 index_type parameter, change type of index_value.
9148 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9149 (default_print_array_index): Update.
9150 * valprint.c (maybe_print_array_index): Don't call
9151 value_from_longest. Update.
9152 (value_print_array_elements): Don't call discrete_position.
9153
0bc2354b
TT
91542020-05-26 Tom Tromey <tromey@adacore.com>
9155
9156 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9157 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9158
1218a4bf
CDA
91592020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9160
9161 PR gdb/13519
9162 * avr-tdep.c (avr_integer_to_address): Return data or code
9163 address accordingly to the second 'type' argument of the
9164 function.
9165
92651b1d
MW
91662020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9167
9168 * infcmd.c, inferior.h: (construct_inferior_arguments):
9169 Moved function from here to gdbsupport/common-inferior.{h,cc}
9170
0a4f5f8c
TT
91712020-05-23 Tom Tromey <tom@tromey.com>
9172
9173 Revert commit eca1f90c:
9174 * NEWS: Remove entry for completion styling.
9175 * completer.c (_rl_completion_prefix_display_length): Move
9176 declaration later.
9177 (gdb_fnprint): Revert.
9178 (gdb_display_match_list_1): Likewise.
9179 * cli/cli-style.c (completion_prefix_style)
9180 (completion_difference_style, completion_suffix_style): Remove.
9181 (_initialize_cli_style): Revert.
9182 * cli/cli-style.h (completion_prefix_style)
9183 (completion_difference_style, completion_suffix_style): Don't
9184 declare.
9185
e08bd6c5
PA
91862020-05-24 Pedro Alves <palves@redhat.com>
9187
9188 * symtab.c (completion_list_add_name): Return boolean indication
9189 of whether the symbol matched.
9190 (completion_list_add_symbol): Don't try to remove C++ aliases if
9191 the symbol didn't match in the first place.
9192 * symtab.h (completion_list_add_name): Return bool.
9193
ceacbf6e
SM
91942020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9195
9196 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9197 type::field.
9198
26f16254
JB
91992020-05-23 Joel Brobecker <brobecker@adacore.com>
9200
9201 GDB 9.2 released.
9202
eca1f90c
TT
92032020-05-23 Tom Tromey <tom@tromey.com>
9204
9205 * NEWS: Add entry for completion styling.
9206 * completer.c (_rl_completion_prefix_display_length): Move
9207 declaration earlier.
9208 (gdb_fnprint): Use completion_style.
9209 (gdb_display_match_list_1): Likewise.
9210 * cli/cli-style.c (completion_prefix_style)
9211 (completion_difference_style, completion_suffix_style): New
9212 globals.
9213 (_initialize_cli_style): Register new globals.
9214 * cli/cli-style.h (completion_prefix_style)
9215 (completion_difference_style, completion_suffix_style): Declare.
9216
51e2cfa2
PA
92172020-05-23 Pedro Alves <palves@redhat.com>
9218
9219 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9220 (parse_escape): Use ISDIGIT instead of isdigit.
9221 (puts_debug): Use gdb_isprint instead of isprint.
9222 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9223 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9224 ISSPACE instead of isspace.
9225 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9226 instead of isspace.
9227 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9228 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9229 instead of isxdigit and ISDIGIT instead of isdigit.
9230
80fc5e77
SM
92312020-05-22 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * gdbtypes.h (struct type) <field>: New method.
9234 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9235 or type::field.
9236
3cabb6b0
SM
92372020-05-22 Simon Marchi <simon.marchi@efficios.com>
9238
9239 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9240 (TYPE_FIELDS): Use type::fields. Change all call sites that
9241 modify the propery to use type::set_fields instead.
9242
1f704f76
SM
92432020-05-22 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9246 type::num_fields instead.
9247
5e33d5f4
SM
92482020-05-22 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9251 methods.
9252 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9253 that modify the number of fields to use type::set_num_fields
9254 instead.
9255
9392ebb3
TT
92562020-05-22 Tom Tromey <tromey@adacore.com>
9257
9258 * compile/compile-object-load.h (munmap_list_free): Don't
9259 declare.
9260
7c13f4e8
AB
92612020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9262
9263 * annotate.c (annotate_source_line): Update return type, add call
9264 to update current symtab and line.
9265 * annotate.h (annotate_source_line): Update return type, and
9266 extend header comment.
9267 * source.c (info_line_command): Check annotation_level before
9268 calling annotate_source_line.
9269 * stack.c (print_frame_info): If calling annotate_source_line
9270 returns true, then don't print any other source line information.
9271
aa370940
SM
92722020-05-21 Simon Marchi <simon.marchi@efficios.com>
9273
9274 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9275
84d53fa9
SM
92762020-05-21 Simon Marchi <simon.marchi@efficios.com>
9277
9278 * coffread.c (patch_type): Remove NULL check before xfree.
9279 * corefile.c (set_gnutarget): Likewise.
9280 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9281 * exec.c (build_section_table): Likewise.
9282 * remote.c (remote_target::pass_signals): Likewise.
9283 * utils.c (n_spaces): Likewise.
9284 * cli/cli-script.c (document_command): Likewise.
9285 * i386-windows-tdep.c (core_process_module_section): Likewise.
9286 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9287
9d428aae
SM
92882020-05-20 Simon Marchi <simon.marchi@efficios.com>
9289
9290 * symfile.c (reread_symbols): Clear objfile's section_offsets
9291 vector and section indices, re-compute them by calling
9292 sym_offsets.
9293
250106a7
TT
92942020-05-20 Tom Tromey <tromey@adacore.com>
9295
9296 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9297 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9298
9a0bacfb
TV
92992020-05-20 Tom de Vries <tdevries@suse.de>
9300
9301 PR symtab/25833
9302 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9303
7b958a48
AM
93042020-05-20 Alan Modra <amodra@gmail.com>
9305
9306 PR 25993
9307 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9308 bfd_set_filename.
9309 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9310 passed to bfd_set_filename.
9311 * symfile-mem.c (add_vsyscall_page): Likewise for string
9312 passed to symbol_file_add_from_memory.
9313 (symbol_file_add_from_memory): Make name param a const char* and
9314 don't strdup.
9315
c7e97679
AM
93162020-05-20 Alan Modra <amodra@gmail.com>
9317
9318 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9319 rather than accessing bfd->filename directly.
9320 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9321 and use bfd_section_name.
9322 * dwarf2/frame.c (decode_frame_entry): Likewise.
9323 * exec.c (exec_set_section_address): Likewise.
9324 * solib-aix.c (solib_aix_bfd_open): Likewise.
9325 * stap-probe.c (get_stap_base_address): Likewise.
9326 * symfile.c (reread_symbols): Likewise.
9327
563c591b
TT
93282020-05-19 Tom Tromey <tromey@adacore.com>
9329
9330 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9331
f408d82c
SM
93322020-05-19 Simon Marchi <simon.marchi@efficios.com>
9333
9334 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9335
98c59b52
PA
93362020-05-19 Pedro Alves <palves@redhat.com>
9337
9338 * NEWS (set exec-file-mismatch): Adjust entry.
9339 * exec.c: Include "build-id.h".
9340 (validate_exec_file): Try to match build IDs instead of filenames.
9341 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9342 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9343 and pass down 'warn_if_slow'.
9344 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9345 gdb_bfd_open_closure to pass it down.
9346 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9347
4111f652
PA
93482020-05-19 Pedro Alves <palves@redhat.com>
9349
9350 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9351 * target.c (target_fileio_open_1): Rename to target_fileio_open
9352 and make extern. Use bool.
9353 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9354 (target_fileio_read_alloc_1): Adjust.
9355 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9356 (target_fileio_open_warn_if_slow): Delete declaration.
9357
ad80db5b
PA
93582020-05-19 Pedro Alves <palves@redhat.com>
9359
9360 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9361 Adjust all callers.
9362
1d6ce4d3
YS
93632020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9364
9365 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9366 whether disp is negative.
9367
9005fbbb
SM
93682020-05-19 Simon Marchi <simon.marchi@efficios.com>
9369
9370 * symfile.h (struct symfile_segment_data)
9371 <~symfile_segment_data>: Remove.
9372 <segment_info>: Change to std::vector.
9373 * symfile.c (default_symfile_segments): Update.
9374 * elfread.c (elf_symfile_segments): Update.
9375
68b888ff
SM
93762020-05-19 Simon Marchi <simon.marchi@efficios.com>
9377
9378 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9379 <segments>: New.
9380 <segment_bases, segment_sizes>: Remove.
9381 * symfile.c (default_symfile_segments): Update.
9382 * elfread.c (elf_symfile_segments): Update.
9383 * remote.c (remote_target::get_offsets): Update.
9384 * solib-target.c (solib_target_relocate_section_addresses):
9385 Update.
9386
62982abd
SM
93872020-05-19 Simon Marchi <simon.marchi@efficios.com>
9388
9389 * symfile.h (struct symfile_segment_data): Initialize fields.
9390 <~symfile_segment_data>: Add.
9391 (symfile_segment_data_up): New.
9392 (struct sym_fns) <sym_segments>: Return a
9393 symfile_segment_data_up.
9394 (default_symfile_segments): Return a symfile_segment_data_up.
9395 (free_symfile_segment_data): Remove.
9396 (get_symfile_segment_data): Return a symfile_segment_data_up.
9397 * symfile.c (default_symfile_segments): Likewise.
9398 (get_symfile_segment_data): Likewise.
9399 (free_symfile_segment_data): Remove.
9400 (symfile_find_segment_sections): Update.
9401 * elfread.c (elf_symfile_segments): Return a
9402 symfile_segment_data_up.
9403 * remote.c (remote_target::get_offsets): Update.
9404 * solib-target.c (solib_target_relocate_section_addresses):
9405 Update.
9406 * symfile-debug.c (debug_sym_segments): Return a
9407 symfile_segment_data_up.
9408
7f204339
RO
94092020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9410
e52a0f1b
RO
9411 PR build/25981
9412 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9413 Hardcode register numbers.
9414
7f204339
RO
9415 PR build/25981
9416 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9417 procfs_find_LDT_entry): Remove.
9418 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9419 procfs_find_LDT_entry): Remove.
9420 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9421 Remove.
9422
7f32a4d5
PA
94232020-05-17 Pedro Alves <palves@redhat.com>
9424 Andrew Burgess <andrew.burgess@embecosm.com>
9425 Keno Fischer <keno@juliacomputing.com>
9426
9427 PR gdb/25741
9428 * breakpoint.c (build_target_condition_list): Update comments.
9429 (build_target_command_list): Update comments and skip matching
9430 locations.
9431 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9432 a separate function. Simplify "set breakpoint auto-hw off"
9433 handling.
9434 (insert_breakpoints): Update comment.
9435 (tracepoint_locations_match): New parameter. For breakpoints,
9436 compare location types too, if the caller wants to.
9437 (handle_automatic_hardware_breakpoints): New functions.
9438 (bp_location_is_less_than): Also sort by location type and
9439 hardware breakpoint length.
9440 (update_global_location_list): Handle "set breakpoint auto-hw on"
9441 here.
9442 (update_breakpoint_locations): Ask breakpoint_locations_match to
9443 ignore location types.
9444
7d93a1e0
SM
94452020-05-16 Simon Marchi <simon.marchi@efficios.com>
9446
9447 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9448 type::name instead.
9449
d0e39ea2
SM
94502020-05-16 Simon Marchi <simon.marchi@efficios.com>
9451
9452 * gdbtypes.h (struct type) <name, set_name>: New methods.
9453 (TYPE_CODE): Use type::name. Change all call sites used to set
9454 the name to use type::set_name instead.
9455
2dab0c7b
TT
94562020-05-16 Tom Tromey <tom@tromey.com>
9457
9458 * top.c (quit_force): Update.
9459 * infrun.c (handle_no_resumed): Update.
9460 * top.h (all_uis): New function.
9461 (ALL_UIS): Remove.
9462
59f7bd8d
SM
94632020-05-16 Simon Marchi <simon.marchi@efficios.com>
9464
9465 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9466
9bf058f0
PA
94672020-05-16 Pedro Alves <palves@redhat.com>
9468
9469 * ia64-linux-nat.c
9470 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9471 Declare method.
9472 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9473
8f86ae1a
SM
94742020-05-15 Simon Marchi <simon.marchi@efficios.com>
9475
9476 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9477 (sparc64_adi_info): Likewise.
9478
d6bc0792
TT
94792020-05-15 Tom Tromey <tom@tromey.com>
9480
9481 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9482 block_objfile.
9483 (lookup_objfile_from_block): Remove.
9484 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9485 (lookup_global_symbol): Use block_objfile.
9486 * symtab.h (lookup_objfile_from_block): Don't declare.
9487 * printcmd.c (clear_dangling_display_expressions): Use
9488 block_objfile.
9489 * parse.c (operator_check_standard): Use block_objfile.
9490
8c14c3a3
TT
94912020-05-15 Tom Tromey <tom@tromey.com>
9492
9493 * language.c (language_alloc_type_symbol): Set
9494 SYMBOL_SECTION.
9495 * symtab.c (initialize_objfile_symbol): Remove.
9496 (allocate_symbol): Remove.
9497 (allocate_template_symbol): Remove.
9498 * dwarf2/read.c (fixup_go_packaging): Use "new".
9499 (new_symbol): Use "new".
9500 (read_variable): Don't call initialize_objfile_symbol. Use
9501 "new".
9502 (read_func_scope): Use "new".
9503 * xcoffread.c (process_xcoff_symbol): Don't call
9504 initialize_objfile_symbol.
9505 (SYMBOL_DUP): Remove.
9506 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9507 "new".
9508 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9509 (allocate_template_symbol): Don't declare.
9510 (struct symbol): Add copy constructor. Change defaults.
9511 * jit.c (finalize_symtab): Use "new".
9512 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9513 Use "new".
9514 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9515 (common_block_end): Use "new".
9516 * mdebugread.c (parse_symbol): Use "new".
9517 (new_symbol): Likewise.
9518
5b4a1a8d
PW
95192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9520
9521 * NEWS: Mention changes to help and apropos.
9522
57b4f16e
PW
95232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9524
9525 * command.h (enum command_class): Improve comments, document
9526 that class_alias is for user-defined aliases, give the class
9527 name for each class, remove unused class_xdb.
9528 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9529 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9530 by a precise class.
9531 * infcmd.c (_initialize_infcmd): Likewise.
9532 * reverse.c (_initialize_reverse): Likewise.
9533 * stack.c (_initialize_stack): Likewise.
9534 * symfile.c (_initialize_symfile): Likewise.
9535 * tracepoint.c (_initialize_tracepoint): Likewise.
9536
7c05caf7
PW
95372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9538
9539 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9540 when their aliased command is traversed.
9541 (help_cmd): Add fput_command_names_styled call to
9542 output command name and aliases when command has an alias.
9543
3b3aaacb
PW
95442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9545
9546 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9547 * cli/cli-decode.c (help_cmd_list): Declare as static,
9548 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9549 a command together with the command.
9550 (fput_command_name_styled, fput_command_names_styled): New functions.
9551 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9552 fput_command_name_styled.
9553 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9554 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9555
7aa1b46f
PW
95562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9557
9558 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9559 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9560 * command.h (cmd_show_list): Likewise.
9561 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9562 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9563
89bcba74
PW
95642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9565
9566 * unittests/command-def-selftests.c (traverse_command_structure):
9567 Verify all commands of a list have the same prefix command and
9568 that only the top cmdlist commands have a null prefix.
9569
3f4d92eb
PW
95702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9571
9572 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9573 as prefix, not one of its aliases.
9574 (set_cmd_prefix): Remove.
9575 (do_add_cmd): Centralize the setting of the prefix of a command, when
9576 command is defined after its full chain of prefix commands.
9577 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9578 (add_setshow_cmd_full): Likewise.
9579 (update_prefix_field_of_prefixed_commands): New function.
9580 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9581 update_prefix_field_of_prefixed_commands.
9582 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9583 addresses of remote_set_cmdlist and remote_show_cmdlist given
9584 as argument, not the address of an argument.
9585 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9586 * gdb/remote.c (_initialize_remote): Likewise.
9587
0605465f
PW
95882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9589
9590 * cli/cli-cmds.c (alias_command): Check for an existing alias
9591 using lookup_cmd_composition, as valid_command_p is too strict
9592 and forbids aliases that are the prefix of an existing alias
9593 or command.
9594 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9595 command is properly recognised as a valid command.
9596
58e6ac70
PW
95972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9598
9599 * unittests/help-doc-selftests.c: Rename to
9600 unittests/command-def-selftests.c
9601 * unittests/command-def-selftests.c (help_doc_tests): Update some
9602 comments.
9603 (command_structure_tests, traverse_command_structure): New namespace
9604 and function.
9605 (command_structure_invariants_tests): New function.
9606 (_initialize_command_def_selftests) Renamed from
9607 _initialize_help_doc_selftests, register command_structure_invariants
9608 selftest.
9609
a7b9ceb8
PW
96102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9611
9612 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9613 an alias of 'show'.
9614
b2188a06
JB
96152020-05-15 Joel Brobecker <brobecker@adacore.com>
9616
9617 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9618 ada_is_fixed_point_type. Update all callers.
9619 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9620 all callers.
9621 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9622 Update all callers.
9623 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9624 print_fixed_point_type. Update all callers.
9625 * ada-valprint.c (ada_value_print_num): Replace call to
9626 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9627
a51951c2
KB
96282020-05-14 Kevin Buettner <kevinb@redhat.com>
9629
9630 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9631 processors.
9632 (cpu_supports_bts): Add CV_AMD case.
9633
29d6859f
LM
96342020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9635 Simon Marchi <simon.marchi@efficios.com>
9636
9637 * infrun.c (stop_all_threads): Collect multiple wait events at
9638 each pass.
9639
78134374
SM
96402020-05-14 Simon Marchi <simon.marchi@efficios.com>
9641
9642 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9643 type::code instead.
9644
67607e24
SM
96452020-05-14 Simon Marchi <simon.marchi@efficios.com>
9646
9647 * gdbtypes.h (struct type) <code, set_code>: New methods.
9648 (TYPE_CODE): Use type::code. Change all call sites used to set
9649 the code to use type::set_code instead.
9650
a05575d3
TBA
96512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9652 Tom de Vries <tdevries@suse.de>
9653 Pedro Alves <palves@redhat.com>
9654
9655 PR threads/25478
9656 * infrun.c (stop_all_threads): Do NOT ignore
9657 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9658 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9659 received.
9660 (handle_no_resumed): Remove code handling a live inferior with no
9661 threads.
9662 * remote.c (has_single_non_exited_thread): New.
9663 (remote_target::update_thread_list): Do not delete a thread if is
9664 the last thread of the process.
9665 * thread.c (thread_select): Call delete_exited_threads instead of
9666 prune_threads.
9667
6ad82919
TBA
96682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9669
9670 * infrun.c (stop_all_threads): Enable/disable thread events of all
9671 targets. Move a debug message denoting the end of the function
9672 into the SCOPED_EXIT block.
9673
d890404b
TBA
96742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9675
9676 * process-stratum-target.h: Include <set>.
9677 (all_non_exited_process_targets, switch_to_target_no_thread): New
9678 function declarations.
9679 * process-stratum-target.c (all_non_exited_process_targets)
9680 (switch_to_target_no_thread): New function implementations.
9681
293b3ebc
TBA
96822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9683
9684 * infrun.c (handle_inferior_event): Extract out a piece of code
9685 into...
9686 (mark_non_executing_threads): ...this new function.
9687
7ca9b62a
TBA
96882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9689
9690 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9691 use.
9692
fc75c28b
TBA
96932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9694
9695 * regcache.c (regcache_read_pc_protected): New function
9696 implementation that returns 0 if the PC cannot read via
9697 'regcache_read_pc'.
9698 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9699 instead of 'regcache_read_pc'.
9700 (keep_going_pass_signal): Ditto.
9701
a89febbd
TT
97022020-05-13 Tom Tromey <tromey@adacore.com>
9703
9704 * ada-lang.c (align_value): Remove.
9705 (ada_template_to_fixed_record_type_1): Use align_up.
9706
f7e23710
TBA
97072020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9708
9709 * async-event.c: Update the copyright year.
9710 * async-event.h: Update the copyright year.
9711
02ff80c2
SM
97122020-05-12 Simon Marchi <simon.marchi@efficios.com>
9713
9714 * objfiles.h (is_addr_in_objfile,
9715 shared_objfile_contains_address_p): Return bool.
9716 * objfile.c (is_addr_in_objfile,
9717 shared_objfile_contains_address_p): Return bool.
9718
4fd6c7e8
TT
97192020-05-11 Tom Tromey <tromey@adacore.com>
9720
9721 * cli/cli-cmds.c (info_command): Restore.
9722 (_initialize_cli_cmds): Use add_prefix_command for "info".
9723 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9724
5eb68a39
TT
97252020-05-11 Tom Tromey <tromey@adacore.com>
9726
9727 * ada-lang.c (ada_value_primitive_field): Now public.
9728 * ada-lang.h (ada_value_primitive_field): Declare.
9729 * ada-valprint.c (print_field_values): Use
9730 ada_value_primitive_field for wrapper fields.
9731
7666722f
TV
97322020-05-11 Tom de Vries <tdevries@suse.de>
9733
9734 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9735 MODULE_DOMAIN.
9736
3ee6bb11
TV
97372020-05-11 Tom de Vries <tdevries@suse.de>
9738
9739 PR symtab/25941
9740 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9741 with length 0, if not gdb-produced.
9742 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9743
43434996
TV
97442020-05-09 Tom de Vries <tdevries@suse.de>
9745
9746 PR gdb/25955
9747 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9748 calculation.
9749
2f78cffc
TT
97502020-05-09 Tom Tromey <tom@tromey.com>
9751
9752 * top.c (server_command): Now bool.
9753 * top.h (server_command): Now bool.
9754
4f7bc5ed
TT
97552020-05-08 Tom Tromey <tromey@adacore.com>
9756
9757 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9758 already being processed.
9759
8be4b118
TT
97602020-05-08 Tom Tromey <tom@tromey.com>
9761
9762 * printcmd.c (struct display) <next>: Remove.
9763 <display>: New constructor.
9764 <exp_string>: Now a std::string.
9765 <enabled_p>: Now a bool.
9766 (display_number): Move definition earlier.
9767 (displays): Rename from display_chain. Now a std::vector.
9768 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9769 (display_command): Update.
9770 (do_one_display, disable_display)
9771 (enable_disable_display_command, do_enable_disable_display):
9772 Update.
9773 (free_display): Remove.
9774 (clear_displays): Rewrite.
9775 (delete_display): Update.
9776 (map_display_numbers): Use function_view. Remove "data"
9777 parameter. Update.
9778 (do_delete_display): Remove.
9779 (undisplay_command): Update.
9780 (do_one_display, do_displays, disable_display)
9781 (info_display_command): Update.
9782 (do_enable_disable_display): Remove.
9783 (enable_disable_display_command)
9784 (clear_dangling_display_expressions): Update.
9785
94c93c35
TT
97862020-05-08 Tom Tromey <tom@tromey.com>
9787
9788 * symtab.c (set_symbol_cache_size)
9789 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9790 (maintenance_print_symbol_cache_statistics): Update.
9791 * symmisc.c (print_symbol_bcache_statistics)
9792 (print_objfile_statistics, maintenance_print_objfiles)
9793 (maintenance_info_symtabs, maintenance_check_symtabs)
9794 (maintenance_expand_symtabs, maintenance_info_line_tables):
9795 Update.
9796 * symfile-debug.c (set_debug_symfile): Update.
9797 * source.c (forget_cached_source_info): Update.
9798 * python/python.c (gdbpy_progspaces): Update.
9799 * psymtab.c (maintenance_info_psymtabs): Update.
9800 * probe.c (parse_probes): Update.
9801 * linespec.c (iterate_over_all_matching_symtabs)
9802 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9803 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9804 * exec.c (exec_target::close): Update.
9805 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9806 * breakpoint.c (print_one_breakpoint_location)
9807 (create_longjmp_master_breakpoint)
9808 (create_std_terminate_master_breakpoint): Update.
9809 * progspace.c (program_spaces): Now a std::vector.
9810 (maybe_new_address_space): Update.
9811 (add_program_space): Remove.
9812 (program_space::program_space): Update.
9813 (remove_program_space): Update.
9814 (number_of_program_spaces): Remove.
9815 (print_program_space, update_address_spaces): Update.
9816 * progspace.h (program_spaces): Change type.
9817 (ALL_PSPACES): Remove.
9818 (number_of_program_spaces): Don't declare.
9819 (struct program_space) <next>: Remove.
9820
a1fd1ac9
TT
98212020-05-08 Tom Tromey <tom@tromey.com>
9822
9823 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9824 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9825 (enable_break): Update.
9826 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9827 (frv_fdpic_find_canonical_descriptor): Update.
9828 (frv_fetch_objfile_link_map): Update.
9829 * progspace.c (program_space::free_all_objfiles): Update.
9830 (program_space::solibs): New method.
9831 * progspace.h (struct program_space) <solibs>: New method.
9832 * solist.h (master_so_list): Don't declare.
9833 (ALL_SO_LIBS): Remove.
9834 * solib.h (so_list_head): Remove.
9835 (update_solib_list): Update comment.
9836 * solib.c (master_so_list): Remove.
9837 (solib_used, update_solib_list, solib_add)
9838 (info_sharedlibrary_command, clear_solib)
9839 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9840
38eae084
TT
98412020-05-08 Tom Tromey <tom@tromey.com>
9842
9843 * extension.c (extension_languages): Now a std::array.
9844 (ALL_EXTENSION_LANGUAGES): Remove.
9845 (get_ext_lang_defn, get_ext_lang_of_file)
9846 (eval_ext_lang_from_control_command): Update.
9847 (finish_ext_lang_initialization)
9848 (auto_load_ext_lang_scripts_for_objfile)
9849 (ext_lang_type_printers::ext_lang_type_printers)
9850 (apply_ext_lang_type_printers)
9851 (ext_lang_type_printers::~ext_lang_type_printers)
9852 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9853 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9854 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9855 (get_matching_xmethod_workers, ext_lang_colorize)
9856 (ext_lang_before_prompt): Update.
9857 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9858
596dc4ad
TT
98592020-05-08 Tom Tromey <tom@tromey.com>
9860
9861 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9862 overload.
9863 <swap_string, m_string>: Remove.
9864 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9865 Update.
9866 * stabsread.c (define_symbol, read_type): Update.
9867 * linespec.c (find_linespec_symbols): Update.
9868 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9869 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9870 * dbxread.c (read_dbx_symtab): Update.
9871 * cp-support.h (cp_canonicalize_string_full)
9872 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9873 Return unique_xmalloc_ptr.
9874 * cp-support.c (inspect_type): Update.
9875 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9876 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9877 Likewise.
9878 * c-typeprint.c (print_name_maybe_canonical): Update.
9879 * break-catch-throw.c (check_status_exception_catchpoint):
9880 Update.
9881
bf4cb9be
TV
98822020-05-08 Tom de Vries <tdevries@suse.de>
9883
9884 * infrun.c (follow_fork): Copy current_line and current_symtab to
9885 child thread.
9886
a1b68f28
SM
98872020-05-07 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * async-event.c (struct async_signal_handler, struct
9890 async_event_handler): Reformat, remove typedef.
9891
98d48915
SM
98922020-05-07 Simon Marchi <simon.marchi@efficios.com>
9893
9894 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9895 access thistype->main_type->dyn_prop_list directly.
9896
7aa91313
SM
98972020-05-07 Simon Marchi <simon.marchi@efficios.com>
9898
9899 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9900 (remove_dyn_prop): Remove. Update all users to use
9901 type::remove_dyn_prop.
9902 * gdbtypes.c (remove_dyn_prop): Rename to...
9903 (type::remove_dyn_prop): ... this.
9904
5c54719c
SM
99052020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9906
9907 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9908 (add_dyn_prop): Remove. Update all users to use
9909 type::add_dyn_prop.
9910 * gdbtypes.c (add_dyn_prop): Rename to...
9911 (type::add_dyn_prop): ... this.
9912
24e99c6c
SM
99132020-05-07 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9916 (get_dyn_prop): Remove. Update all users to use
9917 type::dyn_prop.
9918 * gdbtypes.c (get_dyn_prop): Rename to...
9919 (type::dyn_prop): ... this.
9920
0d4bf016
SM
99212020-05-06 Simon Marchi <simon.marchi@efficios.com>
9922
9923 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9924
ac4a4f1c
SM
99252020-05-06 Simon Marchi <simon.marchi@efficios.com>
9926
9927 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9928 instruction, skip it if it's there.
9929
a3bbacc1
SM
99302020-05-05 Simon Marchi <simon.marchi@efficios.com>
9931
9932 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9933
c3236f84
SM
99342020-05-04 Simon Marchi <simon.marchi@efficios.com>
9935
9936 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9937 * gdbtypes.c (recursive_dump_type): Remove use of
9938 TYPE_INCOMPLETE.
9939
3b6acaee
TT
99402020-05-03 Tom Tromey <tom@tromey.com>
9941
9942 * breakpoint.c (catch_command, tcatch_command): Remove.
9943 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9944 add_show_prefix_cmd.
9945 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9946 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9947 Remove.
9948 (add_internal_problem_command): Use add_basic_prefix_cmd,
9949 add_show_prefix_cmd.
9950 * mips-tdep.c (set_mipsfpu_command): Remove.
9951 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9952 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9953 (_initialize_index_cache): Use add_basic_prefix_cmd.
9954 * memattr.c (dummy_cmd): Remove.
9955 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9956 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9957 (_initialize_tui_win): Use add_basic_prefix_cmd,
9958 add_show_prefix_cmd.
9959 * cli/cli-logging.c (set_logging_command): Remove.
9960 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9961 add_show_prefix_cmd.
9962 (show_logging_command): Remove.
9963 * target.c (target_command): Remove.
9964 (add_target): Use add_basic_prefix_cmd.
9965
a51119cd
HD
99662020-05-02 Hannes Domani <ssbssa@yahoo.de>
9967
9968 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9969
652fc23a 99702020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9971
652fc23a
PW
9972 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9973 info_command.
9974
117539e6
KR
99752020-04-30 Kamil Rytarowski <n54@gmx.com>
9976
9977 * nbsd-nat.c (nbsd_enable_proc_events)
9978 (nbsd_nat_target::post_startup_inferior): Add.
9979 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9980 (nbsd_nat_target::update_thread_list): Rewrite.
9981 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9982 "PTRACE_LWP_CREATE".
9983 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9984
102e38eb 99852020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9986
102e38eb
PW
9987 * stack.c (_initialize_stack): Remove duplicated creation
9988 of "frame" command and "f" alias.
9989
ee9d1e5f
HD
99902020-04-30 Hannes Domani <ssbssa@yahoo.de>
9991
9992 PR gdb/18706
9993 * gdbtypes.c (check_typedef): Calculate size of array of
9994 stubbed type.
9995
627c7fb8
HD
99962020-04-30 Hannes Domani <ssbssa@yahoo.de>
9997
9998 PR gdb/15559
9999 * i386-tdep.c (i386_push_dummy_call): Call
10000 i386_thiscall_push_dummy_call.
10001 (i386_thiscall_push_dummy_call): New function.
10002 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10003 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10004 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10005
ffc2844e
SM
100062020-04-29 Simon Marchi <simon.marchi@efficios.com>
10007
10008 * gdbarch.sh (do_read): Add shellcheck disable directive for
10009 warning SC2162.
10010
1207375d
SM
100112020-04-29 Simon Marchi <simon.marchi@efficios.com>
10012
10013 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10014 "referenced but not assigned" warning.
10015
9fdb2916
SM
100162020-04-29 Simon Marchi <simon.marchi@efficios.com>
10017
10018 * gdbarch.sh: Remove code that sets fallbackdefault.
10019
759cea5e
SM
100202020-04-29 Simon Marchi <simon.marchi@efficios.com>
10021
10022 * gdbarch.sh: Use shell operators && and || instead of
10023 -a and -o.
10024
cb02ab24
SM
100252020-04-29 Simon Marchi <simon.marchi@efficios.com>
10026
10027 * gdbarch.sh: Use $(...) instead of `...`.
10028
a6fc5ffc
SM
100292020-04-29 Simon Marchi <simon.marchi@efficios.com>
10030
10031 * gdbarch.sh: Use double quotes around variables.
10032
8d113d13
SM
100332020-04-29 Simon Marchi <simon.marchi@efficios.com>
10034
10035 * gdbarch.sh: Use %s with printf, instead of variables in the
10036 format string.
10037
ed6acedd
TT
100382020-04-29 Tom Tromey <tromey@adacore.com>
10039
10040 PR ada/25875:
10041 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10042 type fields here.
10043 (read_enumeration_type): Call
10044 update_enumeration_type_from_children later. Update comments.
10045 (process_enumeration_scope): Don't create type fields.
10046
b68b1b58
KR
100472020-04-29 Kamil Rytarowski <n54@gmx.com>
10048
10049 * nbsd-tdep.c: Include "xml-syscall.h".
10050 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10051
f94b2e03
KR
100522020-04-29 Kamil Rytarowski <n54@gmx.com>
10053
10054 * nbsd-nat.c: Include "sys/wait.h".
10055 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10056 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10057 (nbsd_nat_target::remove_exec_catchpoint)
10058 (nbsd_nat_target::set_syscall_catchpoint): Add.
10059 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10060 (nbsd_nat_target::insert_exec_catchpoint)
10061 (nbsd_nat_target::remove_exec_catchpoint)
10062 (nbsd_nat_target::set_syscall_catchpoint): Add.
10063 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10064 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10065 `nbsd_get_syscall_number'.
10066
fc49bc72
TT
100672020-04-29 Tom Tromey <tom@tromey.com>
10068
10069 * stack.c (print_block_frame_labels): Remove.
10070
d642b692
HD
100712020-04-29 Hannes Domani <ssbssa@yahoo.de>
10072
10073 PR gdb/17320
10074 * ada-valprint.c (val_print_packed_array_elements): Move array
10075 end bracket to new line.
10076 (ada_val_print_string): Remove extra spaces before first array
10077 element.
10078 * c-valprint.c (c_value_print_array): Likewise.
10079 * m2-valprint.c (m2_print_array_contents): Likewise.
10080 (m2_value_print_inner): Likewise.
10081 * p-valprint.c (pascal_value_print_inner): Likewise.
10082 * valprint.c (generic_val_print_array): Likewise.
10083 (value_print_array_elements): Move first array element and array
10084 end bracket to new line.
10085
ea90f227
TV
100862020-04-29 Tom de Vries <tdevries@suse.de>
10087
10088 PR symtab/25889
10089 * linespec.c (find_method): Fix ix calculation.
10090
4498ef4f
KR
100912020-04-28 Kamil Rytarowski <n54@gmx.com>
10092
10093 * syscalls/update-netbsd.sh: New file.
10094 * syscalls/netbsd.xml: Regenerate.
10095 * data-directory/Makefile.in: Register `netbsd.xml' in
10096 `SYSCALLS_FILES'.
10097
a55e30b5
SM
100982020-04-28 Simon Marchi <simon.marchi@efficios.com>
10099
10100 * syscalls/update-freebsd.sh: Add double quotes.
10101
2b2fbab8
TT
101022020-04-28 Tom Tromey <tom@tromey.com>
10103
10104 * NEWS: Update.
10105 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10106 (cmdpy_init): Allow class_tui.
10107
a65189c9
TV
101082020-04-28 Mark Williams <mark@myosotissp.com>
10109
10110 PR gdb/24480
10111 * dwarf2read.c: Add missing assingments to list_in_scope when
10112 start_symtab was already called.
10113
1b95cdb7
SM
101142020-04-28 Simon Marchi <simon.marchi@efficios.com>
10115
10116 PR gdb/25881
10117 * dwarf2/read.c (offset_map_type): Use
10118 gdb:hash_enum<sect_offset> as hash function.
10119
15cd93d0
TV
101202020-04-28 Tom de Vries <tdevries@suse.de>
10121
10122 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10123 with DW_AT_signature.
10124
1eb39914
SM
101252020-04-27 Simon Marchi <simon.marchi@efficios.com>
10126
10127 * configure.ac: Remove check for fs_base/gs_base in
10128 user_regs_struct.
10129 * configure: Re-generate.
10130 * config.in: Re-generate.
10131 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10132 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10133 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10134
991a3e2e
LM
101352020-04-27 Luis Machado <luis.machado@linaro.org>
10136
10137 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10138 problematic inline frame unwinding situation.
10139 * frame.c (frame_id_computed_p): New function.
10140 * frame.h (frame_id_computed_p): New prototype.
10141
361ba0e8
TT
101422020-04-26 Tom Tromey <tom@tromey.com>
10143
10144 * command.h (enum command_class) <class_pseudo>: Remove.
10145
bc3609fd
PW
101462020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10147
10148 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10149 and whitespace.
10150
b9771db7
KR
101512020-04-25 Kamil Rytarowski <n54@gmx.com>
10152
ec16513e
SM
10153 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10154 `PT_GET_PROCESS_STATE' block.
b9771db7 10155
7151c1af
TT
101562020-04-24 Tom Tromey <tom@tromey.com>
10157
10158 * symtab.h (symbol_get_demangled_name): Don't declare.
10159 * symtab.c (symbol_get_demangled_name): Remove.
10160 (general_symbol_info::natural_name)
10161 (general_symbol_info::demangled_name): Update.
10162
906bb4c5
TT
101632020-04-24 Tom Tromey <tom@tromey.com>
10164
10165 PR rust/25025:
10166 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10167
bcfe6157
TT
101682020-04-24 Tom Tromey <tom@tromey.com>
10169
10170 PR symtab/12707:
10171 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10172 exists.
10173 (new_symbol): Likewise.
10174 * compile/compile-object-load.c (get_out_value_type): Use
10175 symbol_matches_search_name.
10176
f049a313
TT
101772020-04-24 Tom Tromey <tom@tromey.com>
10178
10179 * dwarf2/read.c (add_partial_symbol): Do not call
10180 compute_and_set_names.
10181
76e288d1
TT
101822020-04-24 Tom Tromey <tom@tromey.com>
10183
10184 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10185 overload.
10186
2467f4f6
TT
101872020-04-24 Tom Tromey <tom@tromey.com>
10188
10189 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10190 (add_psymbol_to_list): New overload. Make old overload call new
10191 one.
10192 * psympriv.h (add_psymbol_to_list): New overload.
10193
e61108c9
TT
101942020-04-24 Tom Tromey <tom@tromey.com>
10195
10196 * dwarf2/read.c (partial_die_info::read) <case
10197 DW_AT_linkage_name>: Use value_as_string.
10198 (dwarf2_string_attr): Use value_as_string.
10199 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10200 method.
10201 * dwarf2/attribute.c (attribute::value_as_string): New method.
10202
8c87a452
TT
102032020-04-24 Tom Tromey <tom@tromey.com>
10204
10205 * symtab.c (general_symbol_info::natural_name)
10206 (general_symbol_info::demangled_name): Check for language_rust.
10207
787de330
TT
102082020-04-24 Tom Tromey <tom@tromey.com>
10209
10210 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10211 (dwarf2_physname): ... from here.
10212 (partial_die_info::read): Add Rust "{" hack.
10213
ff985671
TT
102142020-04-24 Tom Tromey <tom@tromey.com>
10215
10216 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10217 method.
10218 (symbol_set_demangled_name): Don't declare.
10219 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10220 symbol_set_demangled_name.
10221 (general_symbol_info::set_language)
10222 (general_symbol_info::compute_and_set_names): Update.
10223 * minsyms.c (minimal_symbol_reader::install): Update.
10224 * dwarf2/read.c (new_symbol): Update.
10225
1acda803
TT
102262020-04-24 Tom Tromey <tromey@adacore.com>
10227
10228 PR python/23662:
10229 * python/py-type.c (convert_field): Handle
10230 FIELD_LOC_KIND_DWARF_BLOCK.
10231 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10232 (typy_get_dynamic): Nw function.
10233 (type_object_getset): Add "dynamic".
10234 * NEWS: Add entry.
10235
d656f129
TT
102362020-04-24 Tom Tromey <tromey@adacore.com>
10237
10238 * ada-typeprint.c (print_choices, print_variant_part)
10239 (print_record_field_types_dynamic): New functions.
10240 (print_record_field_types): Use print_record_field_types_dynamic.
10241
7d79de9a
TT
102422020-04-24 Tom Tromey <tromey@adacore.com>
10243
10244 * dwarf2/read.c (handle_data_member_location): New overload.
10245 (dwarf2_add_field): Use it.
10246 (decode_locdesc): Add "computed" parameter. Update comment.
10247 * gdbtypes.c (is_dynamic_type_internal): Also look for
10248 FIELD_LOC_KIND_DWARF_BLOCK.
10249 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10250 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10251 virtual base classes.
10252 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10253 FIELD_LOC_KIND_DWARF_BLOCK.
10254
f8e89861
TT
102552020-04-24 Tom Tromey <tromey@adacore.com>
10256
10257 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10258 * gdbtypes.c (is_dynamic_type_internal): Check
10259 TYPE_HAS_DYNAMIC_LENGTH.
10260 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10261 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10262 New macros.
10263 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10264 constant.
10265
9c6a1327
TT
102662020-04-24 Tom Tromey <tromey@adacore.com>
10267
10268 * dwarf2/read.c (struct variant_field): Rewrite.
10269 (struct variant_part_builder): New.
10270 (struct nextfield): Remove "variant" field. Add "offset".
10271 (struct field_info): Add "current_variant_part" and
10272 "variant_parts".
10273 (alloc_discriminant_info): Remove.
10274 (alloc_rust_variant): New function.
10275 (quirk_rust_enum): Update.
10276 (dwarf2_add_field): Set "offset" member. Don't handle
10277 DW_TAG_variant_part.
10278 (offset_map_type): New typedef.
10279 (convert_variant_range, create_one_variant)
10280 (create_one_variant_part, create_variant_parts)
10281 (add_variant_property): New functions.
10282 (dwarf2_attach_fields_to_type): Call add_variant_property.
10283 (read_structure_type): Don't handle DW_TAG_variant_part.
10284 (handle_variant_part, handle_variant): New functions.
10285 (handle_struct_member_die): Use them.
10286 (process_structure_scope): Don't handle variant parts.
10287 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10288 (struct discriminant_info): Remove.
10289 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10290 (struct main_type) <flag_discriminated_union>: Remove.
10291 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10292 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10293 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10294 Update.
10295 * valops.c (value_union_variant): Remove.
10296 * value.h (value_union_variant): Don't declare.
10297
b249d2c2
TT
102982020-04-24 Tom Tromey <tromey@adacore.com>
10299
10300 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10301 (ada_value_primitive_packed_val): Update.
10302 * ada-valprint.c (ada_value_print_1): Update.
10303 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10304 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10305 just an address. Use evaluate_for_locexpr_baton.
10306 (dwarf2_evaluate_property): Update.
10307 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10308 array_view.
10309 * findvar.c (default_read_var_value): Update.
10310 * gdbtypes.c (compute_variant_fields_inner)
10311 (resolve_dynamic_type_internal): Update.
10312 (resolve_dynamic_type): Change type of valaddr parameter.
10313 * gdbtypes.h (resolve_dynamic_type): Update.
10314 * valarith.c (value_subscripted_rvalue): Update.
10315 * value.c (value_from_contents_and_address): Update.
10316
61122aa9
TT
103172020-04-24 Tom Tromey <tromey@adacore.com>
10318
10319 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10320 "push_initial_value" parameter.
10321 (dwarf2_evaluate_property): Likewise.
10322 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10323
ef83a141
TT
103242020-04-24 Tom Tromey <tromey@adacore.com>
10325
10326 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10327 (variant::matches, compute_variant_fields_recurse)
10328 (compute_variant_fields_inner, compute_variant_fields): New
10329 functions.
10330 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10331 Use resolved_type after type is made.
10332 (operator==): Add new cases.
10333 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10334 (struct discriminant_range, struct variant, struct variant_part):
10335 New.
10336 (union dynamic_prop_data) <variant_parts, original_type>: New
10337 members.
10338 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10339 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10340 constants.
10341 * value.c (unpack_bits_as_long): Now public.
10342 * value.h (unpack_bits_as_long): Declare.
10343
675127ec
TT
103442020-04-24 Tom Tromey <tromey@adacore.com>
10345
10346 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10347 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10348
9852ceef
HD
103492020-04-24 Hannes Domani <ssbssa@yahoo.de>
10350
10351 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10352
7632c6ce
KR
103532020-04-24 Kamil Rytarowski <n54@gmx.com>
10354
10355 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10356 (remove_fork_catchpoint, post_startup_inferior)
10357 (post_attach): Move...
10358 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10359 (remove_fork_catchpoint, post_startup_inferior)
10360 (post_attach): ...here.
10361 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10362 (remove_fork_catchpoint, post_startup_inferior)
10363 (post_attach): Move...
10364 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10365 (remove_fork_catchpoint, post_startup_inferior)
10366 (post_attach): ...here.
10367
7be2bb4f
TT
103682020-04-24 Tom Tromey <tromey@adacore.com>
10369
10370 * nat/windows-nat.h (struct windows_thread_info)
10371 <pc_adjusted>: New member.
10372 * windows-nat.c (windows_fetch_one_register): Check
10373 pc_adjusted.
10374 (windows_nat_target::get_windows_debug_event)
10375 (windows_nat_target::wait): Set pc_adjusted.
10376
f80cb3b4
TV
103772020-04-24 Tom de Vries <tdevries@suse.de>
10378
10379 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10380 Run gdb-add-index inside temp dir.
10381
29514b87
TT
103822020-04-23 Tom Tromey <tromey@adacore.com>
10383
10384 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10385 in loop.
10386
5939967b
LM
103872020-04-23 Luis Machado <luis.machado@linaro.org>
10388
10389 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10390 get_frame_register instead of gdbarch_unwind_pc.
10391
70bc38f5
TV
103922020-04-23 Tom de Vries <tdevries@suse.de>
10393
10394 * symtab.c (lookup_global_symbol): Prefer def over decl.
10395
de82891c
TV
103962020-04-23 Tom de Vries <tdevries@suse.de>
10397
10398 PR symtab/25807
10399 * block.c (best_symbol, better_symbol): Promote to external.
10400 * block.h (best_symbol, better_symbol): Declare.
10401 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10402 decl.
10403
ecc6c606
TT
104042020-04-23 Tom Tromey <tromey@adacore.com>
10405
10406 PR ada/25837:
10407 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10408 "const char *", not a "const std::string &".
10409 <name_and_matcher::operator==>: Update.
10410 * unittests/lookup_name_info-selftests.c: Change type of
10411 "result".
10412
740480b8
TT
104132020-04-23 Tom Tromey <tom@tromey.com>
10414
10415 * inferior.h (iterate_over_inferiors): Don't declare.
10416 * inferior.c (iterate_over_inferiors): Remove.
10417 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10418 Remove.
10419 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10420 use iterate_over_inferiors.
10421 (darwin_resume_inferior_it)
10422 (struct resume_inferior_threads_param)
10423 (darwin_resume_inferior_threads_it): Remove.
10424 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10425
ae3ab1f0
TV
104262020-04-23 Tom de Vries <tdevries@suse.de>
10427
10428 * blockframe.c (find_pc_partial_function): Use
10429 find_pc_sect_compunit_symtab rather than
10430 objfile->sf->qf->find_pc_sect_compunit_symtab.
10431
317d2668
TV
104322020-04-22 Tom de Vries <tdevries@suse.de>
10433
10434 PR symtab/25764
10435 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10436 in psymtabs.
10437
eea9e357
TV
104382020-04-22 Tom de Vries <tdevries@suse.de>
10439
10440 PR symtab/25801
10441 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10442 symtabs.
10443
3d5afab3
TV
104442020-04-22 Tom de Vries <tdevries@suse.de>
10445
10446 PR symtab/25700
10447 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10448 CU if already created.
10449
d43b7a2d
TBA
104502020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10451
10452 * infrun.c (displaced_step_fixup): Switch to the event_thread
10453 before calling displaced_step_restore, not after.
10454
d89edf9b
MM
104552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10456
10457 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10458 its inferior is not recorded by us.
10459 (record_btrace_target_open): Replace call to
10460 all_non_exited_threads () with call to current_inferior
10461 ()->non_exited_threads ().
10462 (record_btrace_target::stop_recording): Likewise.
10463 (record_btrace_target::close): Likewise.
10464 (record_btrace_target::wait): Likewise.
10465 (record_btrace_target::record_stop_replaying): Likewise.
10466
5897fd49
MM
104672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10468
10469 * btrace.c (btrace_enable): Throw an error on double enables and
10470 when enabling recording fails.
10471 (btrace_disable): Throw an error if the thread is not recorded.
10472
1a476b6d
MM
104732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10474
10475 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10476 request if we do not have a thread_info.
10477
4778a5f8
TV
104782020-04-21 Tom de Vries <tdevries@suse.de>
10479
10480 PR gdb/25471
10481 * thread.c
10482 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10483 exception in get_frame_id.
10484
0fa7617d
TT
104852020-04-20 Tom Tromey <tromey@adacore.com>
10486
10487 * python/python.c (struct gdbpy_event): Mark move constructor as
10488 noexcept.
10489 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10490 constructor as noexcept.
10491 * completer.h (struct completion_result): Mark move constructor as
10492 noexcept.
10493 * completer.c (completion_result::completion_result): Use
10494 initialization style. Don't call reset_match_list.
10495
ad23bda0
MS
104962020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10497
10498 * MAINTAINERS (Write After Approval): Add myself.
10499
45e1f031
TT
105002020-04-18 Tom Tromey <tom@tromey.com>
10501
10502 * windows-tdep.c (init_w32_command_list)
10503 (w32_prefix_command_valid): Restore.
10504 (_initialize_windows_tdep): Call init_w32_command_list.
10505
08feed99
TT
105062020-04-18 Tom Tromey <tom@tromey.com>
10507
10508 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10509 * value.c (value_fn_field): Update.
10510 * valops.c (find_function_in_inferior)
10511 (value_allocate_space_in_inferior): Update.
10512 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10513 Update.
10514 * tui/tui-source.c (tui_source_window::set_contents): Update.
10515 * symtab.c (lookup_global_or_static_symbol)
10516 (find_function_start_sal_1, skip_prologue_sal)
10517 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10518 * symmisc.c (dump_msymbols, dump_symtab_1)
10519 (maintenance_print_one_line_table): Update.
10520 * symfile.c (init_entry_point_info, section_is_mapped)
10521 (list_overlays_command, simple_read_overlay_table)
10522 (simple_overlay_update_1): Update.
10523 * stap-probe.c (handle_stap_probe): Update.
10524 * stabsread.c (dbx_init_float_type, define_symbol)
10525 (read_one_struct_field, read_enum_type, read_range_type): Update.
10526 * source.c (info_line_command): Update.
10527 * python/python.c (gdbpy_source_objfile_script)
10528 (gdbpy_execute_objfile_script): Update.
10529 * python/py-type.c (save_objfile_types): Update.
10530 * python/py-objfile.c (py_free_objfile): Update.
10531 * python/py-inferior.c (python_new_objfile): Update.
10532 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10533 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10534 (maintenance_check_psymtabs): Update.
10535 * printcmd.c (info_address_command): Update.
10536 * objfiles.h (struct objfile) <arch>: New method, from
10537 get_objfile_arch.
10538 (get_objfile_arch): Don't declare.
10539 * objfiles.c (get_objfile_arch): Remove.
10540 (filter_overlapping_sections): Update.
10541 * minsyms.c (msymbol_is_function): Update.
10542 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10543 (output_nondebug_symbol): Update.
10544 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10545 (mdebug_expand_psymtab): Update.
10546 * machoread.c (macho_add_oso_symfile): Update.
10547 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10548 Update.
10549 * linux-fork.c (checkpoint_command): Update.
10550 * linespec.c (convert_linespec_to_sals): Update.
10551 * jit.c (finalize_symtab): Update.
10552 * infrun.c (insert_exception_resume_from_probe): Update.
10553 * ia64-tdep.c (ia64_find_unwind_table): Update.
10554 * hppa-tdep.c (internalize_unwinds): Update.
10555 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10556 Update.
10557 * gcore.c (call_target_sbrk): Update.
10558 * elfread.c (record_minimal_symbol, elf_symtab_read)
10559 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10560 (elf_gnu_ifunc_resolve_by_got): Update.
10561 * dwarf2/read.c (create_addrmap_from_index)
10562 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10563 (read_debug_names_from_section)
10564 (process_psymtab_comp_unit_reader, add_partial_symbol)
10565 (add_partial_subprogram, process_full_comp_unit)
10566 (read_file_scope, read_func_scope, read_lexical_block_scope)
10567 (read_call_site_scope, dwarf2_ranges_read)
10568 (dwarf2_record_block_ranges, dwarf2_add_field)
10569 (mark_common_block_symbol_computed, read_tag_pointer_type)
10570 (read_tag_string_type, dwarf2_init_float_type)
10571 (dwarf2_init_complex_target_type, read_base_type)
10572 (partial_die_info::read, partial_die_info::read)
10573 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10574 (dwarf2_fetch_die_loc_sect_off): Update.
10575 * dwarf2/loc.c (dwarf2_find_location_expression)
10576 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10577 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10578 (dwarf2_loc_desc_get_symbol_read_needs)
10579 (locexpr_describe_location_piece, locexpr_describe_location_1)
10580 (loclist_describe_location): Update.
10581 * dwarf2/index-write.c (write_debug_names): Update.
10582 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10583 * dtrace-probe.c (dtrace_process_dof): Update.
10584 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10585 (process_one_symbol): Update.
10586 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10587 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10588 (coff_read_enum_type): Update.
10589 * cli/cli-cmds.c (edit_command, list_command): Update.
10590 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10591 * breakpoint.c (create_overlay_event_breakpoint)
10592 (create_longjmp_master_breakpoint)
10593 (create_std_terminate_master_breakpoint)
10594 (create_exception_master_breakpoint, get_sal_arch): Update.
10595 * block.c (block_gdbarch): Update.
10596 * annotate.c (annotate_source_line): Update.
10597
0743fc83
TT
105982020-04-17 Tom Tromey <tromey@adacore.com>
10599
10600 * auto-load.c (show_auto_load_cmd): Remove.
10601 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10602 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10603 (maintenance_print_arc_command): Remove.
10604 * tui/tui-win.c (tui_command): Remove.
10605 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10606 * tui/tui-layout.c (tui_layout_command): Remove.
10607 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10608 * python/python.c (user_set_python, user_show_python): Remove.
10609 (_initialize_python): Use add_basic_prefix_cmd,
10610 add_show_prefix_cmd.
10611 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10612 (install_gdb_commands): Use add_basic_prefix_cmd,
10613 add_show_prefix_cmd.
10614 (info_guile_command): Remove.
10615 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10616 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10617 add_show_prefix_cmd.
10618 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10619 Remove do_set and do_show parameters.
10620 * cli/cli-style.c (set_style, show_style): Remove.
10621 (_initialize_cli_style): Use add_basic_prefix_cmd,
10622 add_show_prefix_cmd.
10623 (cli_style_option::add_setshow_commands): Remove do_set and
10624 do_show parameters.
10625 (cli_style_option::add_setshow_commands): Use
10626 add_basic_prefix_cmd, add_show_prefix_cmd.
10627 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10628 (set_style_name): Remove.
10629 * cli/cli-dump.c (dump_command, append_command): Remove.
10630 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10631 (tekhex_dump_command, binary_dump_command)
10632 (binary_append_command): Remove.
10633 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10634 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10635 (init_w32_command_list): Remove; move into ...
10636 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10637 * valprint.c (set_print, show_print, set_print_raw)
10638 (show_print_raw): Remove.
10639 (_initialize_valprint): Use add_basic_prefix_cmd,
10640 add_show_prefix_cmd.
10641 * typeprint.c (set_print_type, show_print_type): Remove.
10642 (_initialize_typeprint): Use add_basic_prefix_cmd,
10643 add_show_prefix_cmd.
10644 * record.c (set_record_command, show_record_command): Remove.
10645 (_initialize_record): Use add_basic_prefix_cmd,
10646 add_show_prefix_cmd.
10647 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10648 add_show_prefix_cmd.
10649 (info_command, show_command, set_debug, show_debug): Remove.
10650 * top.h (set_history, show_history): Don't declare.
10651 * top.c (set_history, show_history): Remove.
10652 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10653 (unset_tdesc_cmd): Remove.
10654 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10655 add_show_prefix_cmd.
10656 * symtab.c (info_module_command): Remove.
10657 (_initialize_symtab): Use add_basic_prefix_cmd.
10658 * symfile.c (overlay_command): Remove.
10659 (_initialize_symfile): Use add_basic_prefix_cmd.
10660 * sparc64-tdep.c (info_adi_command): Remove.
10661 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10662 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10663 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10664 add_show_prefix_cmd.
10665 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10666 (_initialize_serial): Use add_basic_prefix_cmd,
10667 add_show_prefix_cmd.
10668 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10669 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10670 add_show_prefix_cmd.
10671 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10672 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10673 add_show_prefix_cmd.
10674 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10675 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10676 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10677 add_show_prefix_cmd.
10678 * remote.c (remote_command, set_remote_cmd): Remove.
10679 (_initialize_remote): Use add_basic_prefix_cmd.
10680 * record-full.c (set_record_full_command)
10681 (show_record_full_command): Remove.
10682 (_initialize_record_full): Use add_basic_prefix_cmd,
10683 add_show_prefix_cmd.
10684 * record-btrace.c (cmd_set_record_btrace)
10685 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10686 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10687 (cmd_show_record_btrace_pt): Remove.
10688 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10689 add_show_prefix_cmd.
10690 * ravenscar-thread.c (set_ravenscar_command)
10691 (show_ravenscar_command): Remove.
10692 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10693 add_show_prefix_cmd.
10694 * mips-tdep.c (show_mips_command, set_mips_command)
10695 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10696 add_show_prefix_cmd.
10697 * maint.c (maintenance_command, maintenance_info_command)
10698 (maintenance_check_command, maintenance_print_command)
10699 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10700 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10701 add_show_prefix_cmd.
10702 (show_per_command_cmd): Remove.
10703 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10704 Remove.
10705 (maintenance_show_test_settings_cmd): Remove.
10706 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10707 add_show_prefix_cmd.
10708 * maint-test-options.c (maintenance_test_options_command):
10709 Remove.
10710 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10711 * macrocmd.c (macro_command): Remove
10712 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10713 * language.c (set_check, show_check): Remove.
10714 (_initialize_language): Use add_basic_prefix_cmd,
10715 add_show_prefix_cmd.
10716 * infcmd.c (unset_command): Remove.
10717 (_initialize_infcmd): Use add_basic_prefix_cmd.
10718 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10719 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10720 add_show_prefix_cmd.
10721 * go32-nat.c (go32_info_dos_command): Remove.
10722 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10723 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10724 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10725 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10726 (_initialize_frame): Use add_basic_prefix_cmd,
10727 add_show_prefix_cmd.
10728 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10729 (_initialize_dcache): Use add_basic_prefix_cmd,
10730 add_show_prefix_cmd.
10731 * cp-support.c (maint_cplus_command): Remove.
10732 (_initialize_cp_support): Use add_basic_prefix_cmd.
10733 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10734 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10735 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10736 add_basic_prefix_cmd, add_show_prefix_cmd.
10737 * breakpoint.c (save_command): Remove.
10738 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10739 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10740 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10741 add_show_prefix_cmd.
10742 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10743 (set_ada_command, show_ada_command): Remove.
10744 (_initialize_ada_language): Use add_basic_prefix_cmd,
10745 add_show_prefix_cmd.
10746 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10747
3557f442
KR
107482020-04-16 Kamil Rytarowski <n54@gmx.com>
10749
10750 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10751 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10752
16197208
SM
107532020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10754
10755 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10756 warning messages.
10757
00ac85d3
SM
107582020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10759
10760 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10761 import table is not at beginning of .idata section.
10762
381ce63f
PA
107632020-04-16 Pedro Alves <palves@redhat.com>
10764
10765 * inferior.c (delete_inferior): Use delete operator directly
10766 instead of delete_program_space.
10767 * progspace.c (add_program_space): New, factored out from
10768 program_space::program_space.
10769 (remove_program_space): New, factored out from
10770 delete_program_space.
10771 (program_space::program_space): Remove intro comment. Rewrite.
10772 (program_space::~program_space): Remove intro comment. Call
10773 remove_program_space.
10774 (delete_program_space): Delete.
10775 * progspace.h (program_space::program_space): Make explicit. Move
10776 intro comment here, adjusted.
10777 (program_space::~program_space): Move intro comment here,
10778 adjusted.
10779 (delete_program_space): Remove.
10780
a010605f
TT
107812020-04-16 Tom Tromey <tromey@adacore.com>
10782
10783 * windows-nat.c (windows_nat::handle_access_violation): New
10784 function.
10785 * nat/windows-nat.h (handle_access_violation): Declare.
10786 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10787 windows-nat.c. Call handle_access_violation.
10788
efba5c23
TV
107892020-04-16 Tom de Vries <tdevries@suse.de>
10790
10791 PR symtab/25791
10792 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10793 CUs without psymtab.
10794
97ed802d
KB
107952020-04-16 Kevin Buettner <kevinb@redhat.com>
10796
10797 * python/python.c (do_start_initialization): Don't call
10798 PyEval_InitThreads for Python 3.9 and beyond.
10799
c7d64809
KR
108002020-04-15 Kamil Rytarowski <n54@gmx.com>
10801
10802 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10803 thread functions.
10804 (obsd_nat_target::wait): Likewise.
10805
ce127a96
TT
108062020-04-15 Tom Tromey <tromey@adacore.com>
10807
10808 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10809 (DEBUG_EXCEPT): Use debug_printf.
10810
99f1bc6a
AB
108112020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10812
10813 * completer.c (class completion_tracker::completion_hash_entry)
10814 <hash_name>: New member function.
10815 (completion_tracker::discard_completions): New callback to hash a
10816 completion_hash_entry, pass this to htab_create_alloc.
10817
a0e9b532
JT
108182016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10819
10820 * windows-nat.c (windows_make_so): Warn rather than stopping with
10821 an error if realpath() fails.
10822
06ca5dd4
KR
108232020-04-14 Kamil Rytarowski <n54@gmx.com>
10824
10825 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10826 (nbsd_nat_target::info_proc): Add do_status.
10827
194d088f
TV
108282020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10829 Tom de Vries <tdevries@suse.de>
10830
10831 PR symtab/25718
10832 * psympriv.h (struct partial_symtab::read_symtab)
10833 (struct partial_symtab::expand_psymtab)
10834 (struct partial_symtab::read_dependencies): Update comments.
10835 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10836 read_symtab for includer.
10837 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10838 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10839 (struct dwarf2_include_psymtab::m_readin): Remove.
10840 (struct dwarf2_include_psymtab::includer): New member function.
10841 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10842
c1a66c06
TV
108432020-04-14 Tom de Vries <tdevries@suse.de>
10844
10845 PR symtab/25720
10846 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10847 with NULL symbol_matcher and lookup_name.
10848 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10849 and lookup_name.
10850 * dwarf2/read.c (dw2_expand_symtabs_matching)
10851 (dw2_debug_names_expand_symtabs_matching): Same.
10852 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10853 Make lookup_name a pointer. Update comment.
10854 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10855 lookup_name being a pointer.
10856 * symfile.c (expand_symtabs_matching): Same.
10857 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10858 * linespec.c (iterate_over_all_matching_symtabs): Same.
10859
400b5eca
TT
108602020-04-13 Tom Tromey <tom@tromey.com>
10861
10862 * run-on-main-thread.c: Update include.
10863 * unittests/main-thread-selftests.c: Update include.
10864 * tui/tui-win.c: Update include.
10865 * tui/tui-io.c: Update include.
10866 * tui/tui-interp.c: Update include.
10867 * tui/tui-hooks.c: Update include.
10868 * top.h: Update include.
10869 * top.c: Update include.
10870 * ser-base.c: Update include.
10871 * remote.c: Update include.
10872 * remote-notif.c: Update include.
10873 * remote-fileio.c: Update include.
10874 * record-full.c: Update include.
10875 * record-btrace.c: Update include.
10876 * python/python.c: Update include.
10877 * posix-hdep.c: Update include.
10878 * mingw-hdep.c: Update include.
10879 * mi/mi-main.c: Update include.
10880 * mi/mi-interp.c: Update include.
10881 * main.c: Update include.
10882 * linux-nat.c: Update include.
10883 * interps.c: Update include.
10884 * infrun.c: Update include.
10885 * inf-loop.c: Update include.
10886 * event-top.c: Update include.
10887 * event-loop.c: Move to ../gdbsupport/.
10888 * event-loop.h: Move to ../gdbsupport/.
10889 * async-event.h: Update include.
10890 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10891
93b54c8e
TT
108922020-04-13 Tom Tromey <tom@tromey.com>
10893
10894 * tui/tui-win.c: Include async-event.h.
10895 * remote.c: Include async-event.h.
10896 * remote-notif.c: Include async-event.h.
10897 * record-full.c: Include async-event.h.
10898 * record-btrace.c: Include async-event.h.
10899 * infrun.c: Include async-event.h.
10900 * event-top.c: Include async-event.h.
10901 * event-loop.h: Move some declarations to async-event.h.
10902 * event-loop.c: Don't include ser-event.h or top.h. Move some
10903 code to async-event.c.
10904 * async-event.h: New file.
10905 * async-event.c: New file.
10906 * Makefile.in (COMMON_SFILES): Add async-event.c.
10907 (HFILES_NO_SRCDIR): Add async-event.h.
10908
c1cd3163
TT
109092020-04-13 Tom Tromey <tom@tromey.com>
10910
10911 * utils.c (flush_streams): New function.
10912 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10913
29f2bf4f
TT
109142020-04-13 Tom Tromey <tom@tromey.com>
10915
10916 * event-loop.c (handle_file_event): Use warning, not
10917 printf_unfiltered.
10918
98029d02
TT
109192020-04-13 Tom Tromey <tom@tromey.com>
10920
10921 * event-loop.c: Include <chrono>.
10922
06cc9596
TT
109232020-04-13 Tom Tromey <tom@tromey.com>
10924
10925 * gdb_select.h: Move to ../gdbsupport/.
10926 * event-loop.c: Update include path.
10927 * top.c: Update include path.
10928 * ser-base.c: Update include path.
10929 * ui-file.c: Update include path.
10930 * ser-tcp.c: Update include path.
10931 * guile/scm-ports.c: Update include path.
10932 * posix-hdep.c: Update include path.
10933 * ser-unix.c: Update include path.
10934 * gdb_usleep.c: Update include path.
10935 * mingw-hdep.c: Update include path.
10936 * inflow.c: Update include path.
10937 * infrun.c: Update include path.
10938 * event-top.c: Update include path.
10939
8ae8e197
TT
109402020-04-13 Tom Tromey <tom@tromey.com>
10941
10942 * configure: Rebuild.
10943 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10944
58cf28e8
TT
109452020-04-13 Tom Tromey <tom@tromey.com>
10946
10947 * event-loop.h (start_event_loop): Don't declare.
10948 * event-loop.c (start_event_loop): Move...
10949 * main.c (start_event_loop): ...here. Now static.
10950
b7f999ae
SDJ
109512020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10952
10953 * MAINTAINERS: Update my email address.
10954
1085dfd4
KR
109552020-04-12 Kamil Rytarowski <n54@gmx.com>
10956
10957 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10958 IP_ALL.
10959
49d1d1f5
KR
109602020-04-12 Kamil Rytarowski <n54@gmx.com>
10961
10962 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10963 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10964
b4848d2a
KR
109652020-04-12 Kamil Rytarowski <n54@gmx.com>
10966
10967 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10968 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10969
51c133d5
KR
109702020-04-12 Kamil Rytarowski <n54@gmx.com>
10971
10972 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10973
54b8cbd0
KR
109742020-04-11 Kamil Rytarowski <n54@gmx.com>
10975
10976 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10977 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10978 (nbsd_nat_target::info_proc): New functions.
10979 * nbsd-nat.c (kinfo_get_vmmap): New function.
10980 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10981 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10982 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10983 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10984 functions.
10985 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10986 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10987 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10988 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10989 (KINFO_VME_FLAG_GROWS_DOWN): New.
10990
cf83625d
AS
109912020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10992
10993 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10994 bit shift.
10995
0c4311ab
TT
109962020-04-10 Tom Tromey <tromey@adacore.com>
10997
10998 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10999
3e65b3e9
TT
110002020-04-10 Tom Tromey <tromey@adacore.com>
11001
11002 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11003 separate debug files.
11004
13302e95
HD
110052020-04-10 Hannes Domani <ssbssa@yahoo.de>
11006
11007 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11008 Move to...
11009 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11010 ... here.
11011 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11012 Check for STATUS_WX86_BREAKPOINT.
11013 (windows_nat_target::wait): Same.
11014
bdfc1e8a
TV
110152020-04-10 Tom de Vries <tdevries@suse.de>
11016
11017 PR cli/25808
11018 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11019
f4460aec
SM
110202020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11021
11022 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11023 (Write After Approval): Remove Tom de Vries.
11024
a25198bb
BE
110252020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11026
11027 revert partially:
11028 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11029
aac66a4c
SM
11030 * buildsym.c (record_line): Fix undefined behavior and preserve
11031 lines at eof.
a25198bb 11032
206c98a6
KR
110332020-04-09 Kamil Rytarowski <n54@gmx.com>
11034
11035 * auxv.h (svr4_auxv_parse): New.
11036 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11037 and generic_auxv_parse.
11038 (svr4_auxv_parse): Add.
11039 * obsd-tdep.c: Include "auxv.h".
11040 (obsd_auxv_parse): Remove.
11041 (obsd_init_abi): Remove comment.
11042 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11043 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11044 * nbsd-tdep.c: Include "auxv.h".
11045 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11046
71fbdbaf
TT
110472020-04-08 Tom Tromey <tromey@adacore.com>
11048
11049 * nat/windows-nat.h (last_wait_event): Don't declare.
11050 (wait_for_debug_event): Update comment.
11051 * nat/windows-nat.c (last_wait_event): Now static.
11052
2c1d95e8
TT
110532020-04-08 Tom Tromey <tromey@adacore.com>
11054
11055 * windows-nat.c (wait_for_debug_event): Move to
11056 nat/windows-nat.c.
11057 * nat/windows-nat.h (wait_for_debug_event): Declare.
11058 * nat/windows-nat.c (wait_for_debug_event): Move from
11059 windows-nat.c. No longer static.
11060
d2977bc4
TT
110612020-04-08 Tom Tromey <tromey@adacore.com>
11062
11063 * windows-nat.c (get_windows_debug_event): Use
11064 fetch_pending_stop.
11065 * nat/windows-nat.h (fetch_pending_stop): Declare.
11066 * nat/windows-nat.c (fetch_pending_stop): New function.
11067
e758e19c
TT
110682020-04-08 Tom Tromey <tromey@adacore.com>
11069
11070 * windows-nat.c (windows_continue): Use matching_pending_stop and
11071 continue_last_debug_event.
11072 * nat/windows-nat.h (matching_pending_stop)
11073 (continue_last_debug_event): Declare.
11074 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11075 (matching_pending_stop, continue_last_debug_event): New
11076 functions.
11077
8d30e395
TT
110782020-04-08 Tom Tromey <tromey@adacore.com>
11079
11080 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11081 (handle_exception_result): Move to nat/windows-nat.h.
11082 (DEBUG_EXCEPTION_SIMPLE): Remove.
11083 (windows_nat::handle_ms_vc_exception): New function.
11084 (handle_exception): Move to nat/windows-nat.c.
11085 (get_windows_debug_event): Update.
11086 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11087 nat/windows-nat.c.
11088 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11089 (handle_exception_result): Move from windows-nat.c.
11090 (handle_exception): Declare.
11091 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11092 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11093 windows-nat.c.
11094
29de418d
TT
110952020-04-08 Tom Tromey <tromey@adacore.com>
11096
11097 * windows-nat.c (exception_count, event_count): Remove.
11098 (handle_exception, get_windows_debug_event)
11099 (do_initial_windows_stuff): Update.
11100
a816ba18
TT
111012020-04-08 Tom Tromey <tromey@adacore.com>
11102
11103 * windows-nat.c (windows_nat::handle_load_dll)
11104 (windows_nat::handle_unload_dll): Rename. No longer static.
11105 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11106 Declare.
11107
a00caa12
TT
111082020-04-08 Tom Tromey <tromey@adacore.com>
11109
11110 * complaints.h (stop_whining): Declare at top-level.
11111 (complaint): Don't declare stop_whining.
11112
d41b524f
TT
111132020-04-08 Tom Tromey <tromey@adacore.com>
11114
11115 * windows-nat.c (windows_nat::handle_output_debug_string):
11116 Rename. No longer static.
11117 * nat/windows-nat.h (handle_output_debug_string): Declare.
11118
3c76026d
TT
111192020-04-08 Tom Tromey <tromey@adacore.com>
11120
11121 * windows-nat.c (current_process_handle, current_process_id)
11122 (main_thread_id, last_sig, current_event, last_wait_event)
11123 (current_windows_thread, desired_stop_thread_id, pending_stops)
11124 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11125 (display_selectors, fake_create_process)
11126 (get_windows_debug_event): Update.
11127 * nat/windows-nat.h (current_process_handle, current_process_id)
11128 (main_thread_id, last_sig, current_event, last_wait_event)
11129 (current_windows_thread, desired_stop_thread_id, pending_stops)
11130 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11131 * nat/windows-nat.c (current_process_handle, current_process_id)
11132 (main_thread_id, last_sig, current_event, last_wait_event)
11133 (current_windows_thread, desired_stop_thread_id, pending_stops)
11134 (siginfo_er): New globals. Move from windows-nat.c.
11135
9d8679cc
TT
111362020-04-08 Tom Tromey <tromey@adacore.com>
11137
11138 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11139 (handle_load_dll): Update.
11140 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11141
28688adf
TT
111422020-04-08 Tom Tromey <tromey@adacore.com>
11143
11144 * windows-nat.c (enum thread_disposition_type): Move to
11145 nat/windows-nat.h.
11146 (windows_nat::thread_rec): Rename from thread_rec. No longer
11147 static.
11148 (windows_add_thread, windows_nat_target::fetch_registers)
11149 (windows_nat_target::store_registers, handle_exception)
11150 (windows_nat_target::resume, get_windows_debug_event)
11151 (windows_nat_target::get_tib_address)
11152 (windows_nat_target::thread_name)
11153 (windows_nat_target::thread_alive): Update.
11154 * nat/windows-nat.h (enum thread_disposition_type): Move from
11155 windows-nat.c.
11156 (thread_rec): Declare.
11157
4834dad0
TT
111582020-04-08 Tom Tromey <tromey@adacore.com>
11159
11160 * windows-nat.c: Add "using namespace".
11161 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11162 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11163
65bafd5b
TT
111642020-04-08 Tom Tromey <tromey@adacore.com>
11165
11166 * nat/windows-nat.h (struct windows_thread_info): Declare
11167 destructor.
11168 * nat/windows-nat.c (~windows_thread_info): New.
11169
0a4afda3
TT
111702020-04-08 Tom Tromey <tromey@adacore.com>
11171
11172 PR gdb/22992
11173 * windows-nat.c (current_event): Update comment.
11174 (last_wait_event, desired_stop_thread_id): New globals.
11175 (struct pending_stop): New.
11176 (pending_stops): New global.
11177 (windows_nat_target) <stopped_by_sw_breakpoint>
11178 <supports_stopped_by_sw_breakpoint>: New methods.
11179 (windows_fetch_one_register): Add assertions. Adjust PC.
11180 (windows_continue): Handle pending stops. Suspend other threads
11181 when stepping. Use last_wait_event
11182 (wait_for_debug_event): New function.
11183 (get_windows_debug_event): Use wait_for_debug_event. Handle
11184 pending stops. Queue spurious stops.
11185 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11186 (windows_nat_target::kill): Use wait_for_debug_event.
11187 * nat/windows-nat.h (struct windows_thread_info)
11188 <stopped_at_software_breakpoint>: New field.
11189 * nat/windows-nat.c (windows_thread_info::resume): Clear
11190 stopped_at_software_breakpoint.
11191
8e61ebec
TT
111922020-04-08 Tom Tromey <tromey@adacore.com>
11193
11194 * windows-nat.c (enum thread_disposition_type): New.
11195 (thread_rec): Replace "get_context" parameter with "disposition";
11196 change type.
11197 (windows_add_thread, windows_nat_target::fetch_registers)
11198 (windows_nat_target::store_registers, handle_exception)
11199 (windows_nat_target::resume, get_windows_debug_event)
11200 (windows_nat_target::get_tib_address)
11201 (windows_nat_target::thread_name)
11202 (windows_nat_target::thread_alive): Update.
11203
98a03287
TT
112042020-04-08 Tom Tromey <tromey@adacore.com>
11205
11206 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11207 (windows_continue): Use windows_continue::resume.
11208 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11209 resume>: Declare new methods.
11210 * nat/windows-nat.c: New file.
11211 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11212
7c7411bc
TT
112132020-04-08 Tom Tromey <tromey@adacore.com>
11214
11215 * windows-nat.c (windows_add_thread, windows_delete_thread)
11216 (windows_nat_target::fetch_registers)
11217 (windows_nat_target::store_registers, fake_create_process)
11218 (windows_nat_target::resume, windows_nat_target::resume)
11219 (get_windows_debug_event, windows_nat_target::wait)
11220 (windows_nat_target::pid_to_str)
11221 (windows_nat_target::get_tib_address)
11222 (windows_nat_target::get_ada_task_ptid)
11223 (windows_nat_target::thread_name)
11224 (windows_nat_target::thread_alive): Use lwp, not tid.
11225
2950fdf7
TT
112262020-04-08 Tom Tromey <tromey@adacore.com>
11227
11228 * windows-nat.c (handle_exception)
11229 (windows_nat_target::thread_name): Update.
11230 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11231 <name>: Now unique_xmalloc_ptr.
11232
62fe396b
TT
112332020-04-08 Tom Tromey <tromey@adacore.com>
11234
11235 * windows-nat.c (thread_rec)
11236 (windows_nat_target::fetch_registers): Update.
11237 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11238 Update comment.
11239 <debug_registers_changed, reload_context>: Now bool.
11240
e9534bd2
TT
112412020-04-08 Tom Tromey <tromey@adacore.com>
11242
11243 * windows-nat.c (windows_add_thread): Use new.
11244 (windows_init_thread_list, windows_delete_thread): Use delete.
11245 (get_windows_debug_event): Update.
11246 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11247 destructor, and initializers.
11248
ae1f8880
TT
112492020-04-08 Tom Tromey <tromey@adacore.com>
11250
11251 * windows-nat.c (struct windows_thread_info): Remove.
11252 * nat/windows-nat.h: New file.
11253
55a1e039
TT
112542020-04-08 Tom Tromey <tromey@adacore.com>
11255
11256 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11257 (thread_rec, windows_add_thread, windows_delete_thread)
11258 (windows_continue): Update.
11259
93366324
TT
112602020-04-08 Tom Tromey <tromey@adacore.com>
11261
11262 * windows-nat.c (struct windows_thread_info): Remove typedef.
11263 (thread_head): Remove.
11264 (thread_list): New global.
11265 (thread_rec, windows_add_thread, windows_init_thread_list)
11266 (windows_delete_thread, windows_continue): Update.
11267
0f2265e2
SM
112682020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11269
11270 * windows-tdep.h (windows_init_abi): Add comment.
11271 (cygwin_init_abi): New declaration.
11272 * windows-tdep.c: Split signal enumeration in two, one for
11273 Windows and one for Cygwin.
11274 (windows_gdb_signal_to_target): Only deal with signal of the
11275 Windows OS ABI.
11276 (cygwin_gdb_signal_to_target): New function.
11277 (windows_init_abi): Rename to windows_init_abi_common, don't set
11278 gdb_signal_to_target gdbarch method. Add new new function with
11279 this name.
11280 (cygwin_init_abi): New function.
11281 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11282 comment. Don't call windows_init_abi.
11283 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11284 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11285 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11286 i386_windows_init_abi_common, don't call windows_init_abi. Add
11287 a new function of this name.
11288 (i386_cygwin_init_abi): New function.
11289 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11290 OS ABI Cygwin.
11291
3810f182
SM
112922020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11293
11294 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11295 parameter.c.
11296 (dwarf2_read_gdb_index): Update.
11297
063f8e80
KR
112982020-04-07 Kamil Rytarowski <n54@gmx.com>
11299
11300 * nbsd-tdep.c: Include "objfiles.h".
11301 (nbsd_skip_solib_resolver): New.
11302 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11303
85a9510c 113042020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11305
11306 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11307 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11308 with DW_LLE_base_addressx are being emitted in DWARFv5.
11309 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11310 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11311 unsigned integer.
11312
9fc3eaae 113132020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11314
11315 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11316 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11317 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11318 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11319 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11320 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11321 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11322
11323
41144253 113242020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11325
11326 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11327 (read_loclist_index): New function definition.
11328 (lookup_loclist_base): New function definition.
11329 (read_loclist_header): New function definition.
11330 (dwarf2_cu): Add loclist_base and loclist_header field.
11331 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11332 (read_full_die_1): Read the value of DW_AT_loclists_base.
11333 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11334 (read_attribute_value): Handle DW_FORM_loclistx.
11335 (skip_one_die): Handle DW_FORM_loclistx.
11336 (loclist_header): New structure declaration.
11337 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11338
9f4e76a4
SM
113392020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11340
11341 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11342 constructor. Remove `addr` parameter from other constructor and
11343 add `per_cu` parameter.
11344 * dwarf2/read.c (create_partial_symtab): Update.
11345
25c11aca
TV
113462020-04-07 Tom de Vries <tdevries@suse.de>
11347
11348 PR symtab/25796
11349 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11350 (partial_die_info::fixup): Inherit has_const_value.
11351
5707e24b
TV
113522020-04-07 Tom de Vries <tdevries@suse.de>
11353
11354 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11355 symbols without address.
11356
05f00e22
KR
113572020-04-06 Kamil Rytarowski <n54@gmx.com>
11358
11359 * nbsd-nat.h (struct thread_info): Add forward declaration.
11360 (nbsd_nat_target::thread_alive): Add.
11361 (nbsd_nat_target::thread_name): Likewise.
11362 (nbsd_nat_target::update_thread_list): Likewise.
11363 (update_thread_list::post_attach): Likewise.
11364 (post_attach::pid_to_str): Likewise.
11365 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11366 (nbsd_thread_lister): Add.
11367 (nbsd_nat_target::thread_alive): Likewise.
11368 (nbsd_nat_target::thread_name): Likewise.
11369 (nbsd_add_threads): Likewise.
11370 (update_thread_list::post_attach): Likewise.
11371 (nbsd_nat_target::update_thread_list): Likewise.
11372 (post_attach::pid_to_str): Likewise.
11373
6ee448cc
TT
113742020-04-06 Tom Tromey <tromey@adacore.com>
11375
11376 * ada-valprint.c (print_variant_part): Extract the variant field.
11377 (print_field_values): Use the field as the outer value when
11378 recursing.
11379
dea34e8c
TT
113802020-04-06 Tom Tromey <tromey@adacore.com>
11381
11382 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11383 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11384 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11385 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11386 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11387
93689ce9
TT
113882020-04-06 Tom Tromey <tromey@adacore.com>
11389
11390 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11391 TYPE_CODE_ERROR.
11392
79743962
KR
113932020-04-06 Kamil Rytarowski <n54@gmx.com>
11394
11395 * nbsd-tdep.c: Include "gdbarch.h".
11396 Define enum with NetBSD signal numbers.
11397 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11398 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11399 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11400 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11401 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11402 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11403 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11404 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11405 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11406 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11407 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11408 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11409
9e7c9a03
HD
114102020-04-03 Hannes Domani <ssbssa@yahoo.de>
11411
11412 PR gdb/25325
11413 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11414
d9e49b61
TT
114152020-04-03 Tom Tromey <tromey@adacore.com>
11416
11417 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11418 Read constant block.
11419
e0fc5c3f
SM
114202020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11421
11422 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11423 (gdb_bfd_get_full_section_contents): New declaration.
11424 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11425 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11426 gdb_bfd_get_full_section_contents.
11427
e2ff18a0
SM
114282020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11429
11430 * exec.c (build_section_table): Replace internal_error with
11431 gdb_assert.
11432 (section_table_xfer_memory_partial): Likewise.
11433 * mdebugread.c (parse_partial_symbols): Likewise.
11434 * psymtab.c (lookup_partial_symbol): Likewise.
11435 * utils.c (wrap_here): Likewise.
11436
0830d301
TT
114372020-04-02 Tom Tromey <tromey@adacore.com>
11438
11439 * f-lang.c (build_fortran_types): Use arch_type to initialize
11440 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11441
e7da7f8f
TT
114422020-04-02 Tom Tromey <tromey@adacore.com>
11443
11444 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11445 of attributes.
11446
c90d28ac
AB
114472020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11448 Bernd Edlinger <bernd.edlinger@hotmail.de>
11449 Tom Tromey <tromey@adacore.com>
11450
11451 * buildsym.c (buildsym_compunit::record_line): Remove
11452 deduplication code.
11453
1aa98955
TV
114542020-04-02 Tom de Vries <tdevries@suse.de>
11455
11456 PR ada/24671
11457 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11458
d3214198
TV
114592020-04-02 Tom de Vries <tdevries@suse.de>
11460
11461 * dwarf2/read.c (dwarf2_gdb_index_functions,
11462 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11463 NULL.
11464 * psymtab.c (psym_lookup_global_symbol_language): New function.
11465 (psym_functions): Init psym_lookup_global_symbol_language with
11466 psym_lookup_global_symbol_language.
11467 * symfile-debug.c (debug_sym_quick_functions): Init
11468 lookup_global_symbol_language with NULL.
11469 * symfile.c (set_initial_language): Remove fixme comment.
11470 * symfile.h (struct quick_symbol_functions): Add
11471 lookup_global_symbol_language.
11472 * symtab.c (find_quick_global_symbol_language): New function.
11473 (find_main_name): Use find_quick_global_symbol_language.
11474
2836752f
SM
114752020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11476
11477 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11478
64dc2d4b
BE
114792020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11480
11481 * buildsym.c (record_line): Fix undefined behavior and preserve
11482 lines at eof.
11483
bbe3dc41
BE
114842020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11485
11486 * buildsym.c (record_line): Fix the resizing condition.
11487
6b4a335b
TT
114882020-04-01 Tom Tromey <tom@tromey.com>
11489
11490 * value.h (value_literal_complex): Add comment.
11491 * valops.c (value_literal_complex): Refer to value.h.
11492
3638a098
TT
114932020-04-01 Tom Tromey <tom@tromey.com>
11494
11495 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11496 (scalar_type): New rule, from typebase.
11497 (typebase): Use scalar_type. Recognize complex types.
11498 (field_name): Handle FLOAT_KEYWORD.
11499 (ident_tokens): Add _Complex and __complex__.
11500
c34e8714
TT
115012020-04-01 Tom Tromey <tom@tromey.com>
11502
11503 PR exp/25299:
11504 * valarith.c (promotion_type, complex_binop): New functions.
11505 (scalar_binop): Handle complex numbers. Use promotion_type.
11506 (value_pos, value_neg, value_complement): Handle complex numbers.
11507
fa649bb7
TT
115082020-04-01 Tom Tromey <tom@tromey.com>
11509
11510 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11511 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11512 (parse_number): Handle complex numbers.
11513
981c08ce
TT
115142020-04-01 Tom Tromey <tom@tromey.com>
11515
11516 * c-valprint.c (c_decorations): Change complex suffix to "i".
11517
4c99290d
TT
115182020-04-01 Tom Tromey <tom@tromey.com>
11519
11520 * valprint.c (generic_value_print_complex): Use accessors.
11521 * value.h (value_real_part, value_imaginary_part): Declare.
11522 * valops.c (value_real_part, value_imaginary_part): New
11523 functions.
11524 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11525
5b930b45
TT
115262020-04-01 Tom Tromey <tom@tromey.com>
11527
11528 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11529 (read_range_type): Update.
11530 * mdebugread.c (basic_type): Update.
11531 * go-lang.c (build_go_types): Use init_complex_type.
11532 * gdbtypes.h (struct main_type) <complex_type>: New member.
11533 (init_complex_type): Update.
11534 (arch_complex_type): Don't declare.
11535 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11536 Make name if none given. Use alloc_type_copy. Look for cached
11537 complex type.
11538 (arch_complex_type): Remove.
11539 (gdbtypes_post_init): Use init_complex_type.
11540 * f-lang.c (build_fortran_types): Use init_complex_type.
11541 * dwarf2/read.c (read_base_type): Update.
11542 * d-lang.c (build_d_types): Use init_complex_type.
11543 * ctfread.c (read_base_type): Update.
11544
53cccef1
TBA
115452020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11546
11547 * infrun.c (stop_all_threads): Update assertion, plus when
11548 stopping threads, take into account that we might be trying
11549 to stop an all-stop target.
11550 (stop_waiting): Call 'stop_all_threads' if there exists a
11551 non-stop target.
11552
a0714d30
TBA
115532020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11554
11555 * target.h (exists_non_stop_target): New function declaration.
11556 * target.c (exists_non_stop_target): New function.
11557
60e22c1e
HD
115582020-04-01 Hannes Domani <ssbssa@yahoo.de>
11559
11560 PR gdb/24789
11561 * eval.c (is_integral_or_integral_reference): New function.
11562 (evaluate_subexp_standard): Allow integer references in
11563 pointer arithmetic.
11564
e139a727
TBA
115652020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11566
11567 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11568 check for no ptid in the stop reply when the target is non-stop.
11569
e0802d59
TT
115702020-04-01 Tom Tromey <tromey@adacore.com>
11571
11572 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11573 "name" parameter to rvalue reference. Initialize m_name_holder.
11574 <lookup_name_info>: New overloads.
11575 <name>: Return gdb::string_view.
11576 <c_str>: New method.
11577 <make_ignore_params>: Update.
11578 <search_name_hash>: Update.
11579 <language_lookup_name>: Return const char *.
11580 <m_name>: Change type.
11581 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11582 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11583 (lookup_name_info::match_any): Update.
11584 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11585 Update.
11586 * minsyms.c (linkage_name_str): Update.
11587 * language.c (default_symbol_name_matcher): Update.
11588 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11589 Update.
11590 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11591 (ada_lookup_name_info::ada_lookup_name_info): Update.
11592 (literal_symbol_name_matcher): Update.
11593
8c072cb6
TT
115942020-04-01 Tom Tromey <tromey@adacore.com>
11595
11596 * psymtab.c (psymtab_search_name): Remove function.
11597 (psym_lookup_symbol): Create search name and lookup name here.
11598 (lookup_partial_symbol): Remove "name" parameter; add
11599 lookup_name.
11600 (psym_expand_symtabs_for_function): Update.
11601
6f29a534
TT
116022020-03-31 Joel Jones <joelkevinjones@gmail.com>
11603
11604 PR tui/25597:
11605 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11606
af62665e
TT
116072020-03-31 Tom Tromey <tromey@adacore.com>
11608
11609 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11610 memcpy.
11611
d1a89da5
NC
116122020-03-30 Nelson Chu <nelson.chu@sifive.com>
11613
11614 * features/riscv/32bit-csr.xml: Regenerated.
11615 * features/riscv/64bit-csr.xml: Regenerated.
11616
d8af9068
TT
116172020-03-30 Tom Tromey <tromey@adacore.com>
11618
11619 * ada-valprint.c (print_variant_part): Update.
11620 * ada-lang.h (ada_which_variant_applies): Update.
11621 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11622 outer_valaddr parameters; replace with "outer" value parameter.
11623 (to_fixed_variant_branch_type): Update.
11624
227c0bf4
PFC
116252020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11626
11627 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11628 <list>. Remove inclusion of observable.h.
11629 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11630 (struct arch_lwp_info): New struct.
11631 (class ppc_linux_dreg_interface): New class.
11632 (struct ppc_linux_process_info): New struct.
11633 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11634 <low_new_clone, low_forget_process, low_prepare_to_resume>
11635 <copy_thread_dreg_state, mark_thread_stale>
11636 <mark_debug_registers_changed, register_hw_breakpoint>
11637 <clear_hw_breakpoint, register_wp, clear_wp>
11638 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11639 <num_memory_accesses, get_trigger_type>
11640 <create_watchpoint_request, hwdebug_point_cmp>
11641 <init_arch_lwp_info, get_arch_lwp_info>
11642 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11643 methods.
11644 <struct ptid_hash>: New inner struct.
11645 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11646 members.
11647 (saved_dabr_value, hwdebug_info, max_slots_number)
11648 (struct hw_break_tuple, struct thread_points, ppc_threads)
11649 (have_ptrace_hwdebug_interface)
11650 (hwdebug_find_thread_points_by_tid)
11651 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11652 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11653 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11654 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11655 use m_dreg_interface.
11656 (hwdebug_point_cmp): Change to...
11657 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11658 reference arguments instead of pointers.
11659 (ppc_linux_nat_target::ranged_break_num_registers): Use
11660 m_dreg_interface.
11661 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11662 m_dreg_interface. Call register_hw_breakpoint.
11663 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11664 m_dreg_interface. Call clear_hw_breakpoint.
11665 (get_trigger_type): Change to...
11666 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11667 comment.
11668 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11669 use m_dreg_interface. Call register_hw_breakpoint.
11670 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11671 use m_dreg_interface. Call clear_hw_breakpoint.
11672 (can_use_watchpoint_cond_accel): Change to...
11673 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11674 method. Update comment, use m_dreg_interface and
11675 m_process_info.
11676 (calculate_dvc): Change to...
11677 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11678 m_dreg_interface.
11679 (num_memory_accesses): Change to...
11680 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11681 (check_condition): Change to...
11682 (ppc_linux_nat_target::check_condition): ...this method.
11683 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11684 comment, use m_dreg_interface.
11685 (create_watchpoint_request): Change to...
11686 (ppc_linux_nat_target::create_watchpoint_request): ...this
11687 method. Use m_dreg_interface.
11688 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11689 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11690 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11691 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11692 (ppc_linux_nat_target::low_forget_process)
11693 (ppc_linux_nat_target::low_new_fork)
11694 (ppc_linux_nat_target::low_new_clone)
11695 (ppc_linux_nat_target::low_delete_thread)
11696 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11697 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11698 only call mark_thread_stale.
11699 (ppc_linux_thread_exit): Remove.
11700 (ppc_linux_nat_target::stopped_data_address): Change to...
11701 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11702 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11703 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11704 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11705 comment. Call low_stopped_data_address.
11706 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11707 m_dreg_interface.
11708 (ppc_linux_nat_target::masked_watch_num_registers): Use
11709 m_dreg_interface.
11710 (ppc_linux_nat_target::copy_thread_dreg_state)
11711 (ppc_linux_nat_target::mark_thread_stale)
11712 (ppc_linux_nat_target::mark_debug_registers_changed)
11713 (ppc_linux_nat_target::register_hw_breakpoint)
11714 (ppc_linux_nat_target::clear_hw_breakpoint)
11715 (ppc_linux_nat_target::register_wp)
11716 (ppc_linux_nat_target::clear_wp)
11717 (ppc_linux_nat_target::init_arch_lwp_info)
11718 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11719 (_initialize_ppc_linux_nat): Remove observer callback.
11720
4db10d8f
PFC
117212020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11722
11723 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11724 (ppc_linux_nat_target::auxv_parse)
11725 (ppc_linux_nat_target::read_description)
11726 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11727 Move up.
11728
1310c1b0
PFC
117292020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11730
11731 * linux-nat.h (low_new_clone): New method.
11732 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11733
69b037c3
SM
117342020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11735
11736 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11737 (dbx_expand_psymtab): ... this.
11738 (start_psymtab): Update.
11739 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11740 (mdebug_expand_psymtab): ... this.
11741 (parse_partial_symbols): Update.
11742 (new_psymtab): Update.
11743 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11744 (xcoff_expand_psymtab): ... this.
11745 (xcoff_start_psymtab): Update.
11746
48993951
SM
117472020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11748
11749 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11750 <expand_dependencies>: ... this.
11751 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11752 (partial_symtab::expand_dependencies): ... this.
11753 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11754 Update.
11755 (dwarf2_psymtab::expand_psymtab): Update.
11756 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11757 * mdebugread.c (psymtab_to_symtab_1): Update.
11758 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11759
3ad83046
SM
117602020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11761
11762 * psympriv.h (discard_psymtab): Remove.
11763 * dbxread.c (dbx_end_psymtab): Update.
11764 * xcoffread.c (xcoff_end_psymtab): Update.
11765
4d1b9ab6
TT
117662020-03-28 Tom Tromey <tom@tromey.com>
11767
11768 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11769 comment.
11770
f1749218
TT
117712020-03-28 Tom Tromey <tom@tromey.com>
11772
11773 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11774
ebea7626
HD
117752020-03-27 Hannes Domani <ssbssa@yahoo.de>
11776
11777 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11778
a879b4d5
JB
117792020-03-26 John Baldwin <jhb@FreeBSD.org>
11780
11781 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11782
0826b30a
TT
117832020-03-26 Tom Tromey <tom@tromey.com>
11784
11785 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11786 (mark_common_block_symbol_computed, read_tag_string_type)
11787 (attr_to_dynamic_prop, read_subrange_type): Update.
11788 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11789 to be methods on struct attribute.
11790 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11791 (read_call_site_scope, partial_die_info::read)
11792 (partial_die_info::read, lookup_die_type, follow_die_ref):
11793 Update.
11794 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11795 from dwarf2_get_ref_die_offset.
11796 (attribute::constant_value): New method, from
11797 dwarf2_get_attr_constant_value.
11798 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11799 Declare method.
11800 <constant_value>: New method.
11801
2b2558bf
TT
118022020-03-26 Tom Tromey <tom@tromey.com>
11803
11804 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11805 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11806 (dwarf_type_encoding_name): Move to stringify.c.
11807 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11808 * dwarf2/stringify.c: New file.
11809 * dwarf2/stringify.h: New file.
11810
eeb64781
TT
118112020-03-26 Tom Tromey <tom@tromey.com>
11812
11813 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11814 Rewrite.
11815
a39fdb41
TT
118162020-03-26 Tom Tromey <tom@tromey.com>
11817
11818 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11819 methods.
11820 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11821 (lookup_ranges_base): Likewise.
11822 (read_cutu_die_from_dwo, read_full_die_1): Update.
11823
436c571c
TT
118242020-03-26 Tom Tromey <tom@tromey.com>
11825
11826 * dwarf2/read.c (read_import_statement, read_file_scope)
11827 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11828 (read_lexical_block_scope, read_call_site_scope)
11829 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11830 (handle_struct_member_die, process_structure_scope)
11831 (update_enumeration_type_from_children)
11832 (process_enumeration_scope, read_array_type, read_common_block)
11833 (read_namespace, read_module, read_subroutine_type): Update.
11834 (sibling_die): Remove.
11835
052c8bb8
TT
118362020-03-26 Tom Tromey <tom@tromey.com>
11837
11838 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11839 (build_type_psymtabs_reader, read_structure_type)
11840 (read_enumeration_type, read_full_die_1): Update.
11841 (dwarf2_attr_no_follow): Move to die.h.
11842 * dwarf2/die.h (struct die_info) <attr>: New method.
11843
2b24b6e4
TT
118442020-03-26 Tom Tromey <tom@tromey.com>
11845
11846 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11847 <base_address>: Now an optional.
11848 (dwarf2_find_base_address, dwarf2_rnglists_process)
11849 (dwarf2_ranges_process, fill_in_loclist_baton)
11850 (dwarf2_symbol_mark_computed): Update.
11851
c2d50fd0
TT
118522020-03-26 Tom Tromey <tom@tromey.com>
11853
11854 * dwarf2/read.c (struct die_info): Move to die.h.
11855 * dwarf2/die.h: New file.
11856
0df7ad3a
TT
118572020-03-26 Tom Tromey <tom@tromey.com>
11858
11859 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11860 * dwarf2/read.c
11861 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11862 Move to line-header.c.
11863 (read_checked_initial_length_and_offset, read_formatted_entries):
11864 Likewise.
11865 (dwarf_decode_line_header): Split into two.
11866 * dwarf2/line-header.c
11867 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11868 Move from read.c.
11869 (read_checked_initial_length_and_offset, read_formatted_entries):
11870 Likewise.
11871 (dwarf_decode_line_header): New function, split from read.c.
11872
86c0bb4c
TT
118732020-03-26 Tom Tromey <tom@tromey.com>
11874
11875 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11876 Declare method.
11877 * dwarf2/read.c (read_attribute_value): Update.
11878 (dwarf2_per_objfile::read_line_string): Rename from
11879 read_indirect_line_string.
11880 (read_formatted_entries): Update.
11881
2ef46c2f
TT
118822020-03-26 Tom Tromey <tom@tromey.com>
11883
11884 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11885 variable.
11886
4f9c1eda
TT
118872020-03-26 Tom Tromey <tom@tromey.com>
11888
11889 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11890 const.
11891 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11892 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11893 parameter const.
11894
5a0e026f
TT
118952020-03-26 Tom Tromey <tom@tromey.com>
11896
11897 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11898 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11899 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11900 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11901
8844c11b
TT
119022020-03-26 Tom Tromey <tom@tromey.com>
11903
11904 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11905 file_names_size, file_full_name, file_file_name>: Use const.
11906 <file_name_at, file_names>: Add const overload.
11907 * dwarf2/line-header.c (line_header::file_file_name)
11908 (line_header::file_full_name): Update.
11909
c90ec28a
TT
119102020-03-26 Tom Tromey <tom@tromey.com>
11911
11912 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11913 (macro_start_file, consume_improper_spaces)
11914 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11915 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11916 (dwarf_decode_macros): Move to macro.c.
11917 * dwarf2/macro.c: New file.
11918 * dwarf2/macro.h: New file.
11919 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11920
4f44ae6c
TT
119212020-03-26 Tom Tromey <tom@tromey.com>
11922
11923 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11924 method.
11925 * dwarf2/section.c: New method. From
11926 read_indirect_string_at_offset_from.
11927 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11928 (read_indirect_string_at_offset_from): Move to section.c.
11929 (read_indirect_string_at_offset): Rewrite.
11930 (read_indirect_line_string_at_offset): Remove.
11931 (read_indirect_string, read_indirect_line_string)
11932 (dwarf_decode_macro_bytes): Update.
11933
a0194fa8
TT
119342020-03-26 Tom Tromey <tom@tromey.com>
11935
11936 * dwarf2/section.h (struct dwarf2_section_info)
11937 <overload_complaint>: Declare.
11938 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11939 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11940 Rename from dwarf2_section_buffer_overflow_complaint.
11941 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11942 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11943
3d27bbdb
TT
119442020-03-26 Tom Tromey <tom@tromey.com>
11945
11946 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11947 Declare.
11948 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11949 Move from read.c.
11950 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11951 to section.c.
11952
9eac9650
TT
119532020-03-26 Tom Tromey <tom@tromey.com>
11954
11955 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11956
bf80d710
TT
119572020-03-26 Tom Tromey <tom@tromey.com>
11958
11959 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11960 "builder".
11961 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11962 parameter.
11963 (dwarf_decode_macros): Update.
11964
0314b390
TT
119652020-03-26 Tom Tromey <tom@tromey.com>
11966
11967 * dwarf2/read.c (read_attribute_value): Update.
11968 (read_indirect_string_from_dwz): Move to dwz.c; change into
11969 method.
11970 (dwarf_decode_macro_bytes): Update.
11971 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11972 * dwarf2/dwz.c: New file.
11973 * Makefile.in (COMMON_SFILES): Add dwz.c.
11974
9fda78b6
TT
119752020-03-26 Tom Tromey <tom@tromey.com>
11976
11977 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11978 * dwarf2/read.c: Add include.
11979 * dwarf2/index-write.c: Add include.
11980 * dwarf2/index-cache.c: Add include.
11981 * dwarf2/dwz.h: New file.
11982
33aa3c10
TT
119832020-03-25 Tom Tromey <tom@tromey.com>
11984
11985 * compile/compile-object-load.c (get_out_value_type): Mention
11986 correct symbol name in error message.
11987
d503b685
HD
119882020-03-25 Hannes Domani <ssbssa@yahoo.de>
11989
11990 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11991
7b1eff95
TV
119922020-03-25 Tom de Vries <tdevries@suse.de>
11993
11994 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11995 * symmisc.c (dump_symtab_1): Print user and includes fields.
11996 (maintenance_info_symtabs): Same.
11997
dd895392
AB
119982020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11999
12000 PR gdb/25534
12001 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12002 (riscv_regcache_cooked_write): New function.
12003 (riscv_push_dummy_call): Use new function.
12004 (riscv_return_value): Likewise.
12005
5ab2fbf1
SM
120062020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12007
12008 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12009 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12010 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12011 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12012 * infrun.c (follow_fork): Likewise.
12013 (follow_fork_inferior): Likewise.
12014 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12015 * linux-nat.h (class linux_nat_target): Likewise.
12016 * remote.c (class remote_target) <follow_fork>: Likewise.
12017 (remote_target::follow_fork): Likewise.
12018 * target-delegates.c: Re-generate.
12019 * target.c (default_follow_fork): Likewise.
12020 (target_follow_fork): Likewise.
12021 * target.h (struct target_ops) <follow_fork>: Likewise.
12022 (target_follow_fork): Likewise.
12023
a64fafb5
TV
120242020-03-24 Tom de Vries <tdevries@suse.de>
12025
12026 * psymtab.c (maintenance_info_psymtabs): Print user field.
12027
fe26d3a3
TT
120282020-03-20 Tom Tromey <tromey@adacore.com>
12029
12030 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12031 const.
12032 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12033 const.
12034
c884cc46
SM
120352020-03-20 Simon Marchi <simon.marchi@efficios.com>
12036
12037 * ptrace.m4: Don't check for ptrace declaration.
12038 * config.in: Re-generate.
12039 * configure: Re-generate.
12040 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12041 not defined.
12042
1ff700c2
KR
120432020-03-20 Kamil Rytarowski <n54@gmx.com>
12044
12045 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12046 `PTRACE_TYPE_RET'.
12047 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12048 * sparc-nat.c (gdb_ptrace): Likewise.
12049 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12050
f7d4f0b1
TT
120512020-03-20 Tom Tromey <tromey@adacore.com>
12052
12053 * c-exp.y (lex_one_token): Fix assert.
12054
f67210ff
TT
120552020-03-20 Tom Tromey <tromey@adacore.com>
12056
12057 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12058 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12059 strncpy call.
12060
1773be9e
TT
120612020-03-20 Tom Tromey <tromey@adacore.com>
12062
12063 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12064
70304be9
TT
120652020-03-20 Tom Tromey <tromey@adacore.com>
12066
12067 * ada-valprint.c (print_variant_part): Remove parameters; switch
12068 to value-based API.
12069 (print_field_values): Likewise.
12070 (ada_val_print_struct_union): Likewise.
12071 (ada_value_print_1): Update.
12072
9faa006d
KR
120732020-03-20 Kamil Rytarowski <n54@gmx.com>
12074
12075 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12076 nbsd_nat_target instead of inf_ptrace_target.
12077 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12078 nbsd_nat_target.
12079
4a90f062
KR
120802020-03-20 Kamil Rytarowski <n54@gmx.com>
12081
12082 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12083 it to the ptrace call.
12084 * (store_registers): Likewise.
12085
120862020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12087
12088 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12089 it to the ptrace call.
12090 * (store_registers): Likewise.
12091
2d07da27
LM
120922020-03-19 Luis Machado <luis.machado@linaro.org>
12093
12094 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12095 valid, fetch vg value from ptrace.
12096
f09db380
KR
120972020-03-19 Kamil Rytarowski <n54@gmx.com>
12098 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12099 * inf-ptrace.c: Likewise.
12100 * (gdb_ptrace): Add.
12101 * (inf_ptrace_target::resume): Update.
12102 * (inf_ptrace_target::xfer_partial): Likewise.
12103 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12104 * (inf_ptrace_peek_poke): Update.
12105
fcc7376e
KR
121062020-03-19 Kamil Rytarowski <n54@gmx.com>
12107
12108 * x86-bsd-nat.c (gdb_ptrace): New.
12109 * (x86bsd_dr_set): Add new argument `ptid'.
12110 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12111 x86bsd_dr_set_addr): Update.
12112
cada5fc9
AB
121132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12114
12115 * remote.c (remote_target::process_stop_reply): Handle events for
12116 all threads differently.
12117
19a2740f
AB
121182020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12119
12120 * completer.c (completion_tracker::remove_completion): Define new
12121 function.
12122 * completer.h (completion_tracker::remove_completion): Declare new
12123 function.
12124 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12125 when adding a C++ function symbol.
12126
724fd9ba
AB
121272020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12128
12129 * completer.c (completion_tracker::completion_hash_entry): Define
12130 new class.
12131 (advance_to_filename_complete_word_point): Call
12132 recompute_lowest_common_denominator.
12133 (completion_tracker::completion_tracker): Call discard_completions
12134 to setup the hash table.
12135 (completion_tracker::discard_completions): Allow for being called
12136 from the constructor, pass new equal function, and element deleter
12137 when constructing the hash table. Initialise new class member
12138 variables.
12139 (completion_tracker::maybe_add_completion): Remove use of
12140 m_entries_vec, and store more information into m_entries_hash.
12141 (completion_tracker::recompute_lcd_visitor): New function, most
12142 content taken from...
12143 (completion_tracker::recompute_lowest_common_denominator):
12144 ...here, this now just visits each item in the hash calling the
12145 above visitor.
12146 (completion_tracker::build_completion_result): Remove use of
12147 m_entries_vec, call recompute_lowest_common_denominator.
12148 * completer.h (completion_tracker::have_completions): Remove use
12149 of m_entries_vec.
12150 (completion_tracker::completion_hash_entry): Declare new class.
12151 (completion_tracker::recompute_lowest_common_denominator): Change
12152 function signature.
12153 (completion_tracker::recompute_lcd_visitor): Declare new function.
12154 (completion_tracker::m_entries_vec): Delete.
12155 (completion_tracker::m_entries_hash): Initialize to NULL.
12156 (completion_tracker::m_lowest_common_denominator_valid): New
12157 member variable.
12158 (completion_tracker::m_lowest_common_denominator_max_length): New
12159 member variable.
12160
5a82b8a1
KR
121612020-03-17 Kamil Rytarowski <n54@gmx.com>
12162
12163 * regformats/regdef.h: Put reg in gdb namespace.
12164
fb516a69
KR
121652020-03-17 Kamil Rytarowski <n54@gmx.com>
12166
12167 * i386-bsd-nat.c (gdb_ptrace): New.
12168 * (i386bsd_fetch_inferior_registers,
12169 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12170 * (i386bsd_fetch_inferior_registers,
12171 i386bsd_store_inferior_registers) Use gdb_ptrace.
12172
1c0aa1fb
KR
121732020-03-17 Kamil Rytarowski <n54@gmx.com>
12174
12175 * amd64-bsd-nat.c (gdb_ptrace): New.
12176 * (amd64bsd_fetch_inferior_registers,
12177 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12178 * (amd64bsd_fetch_inferior_registers,
12179 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12180
5ccd2fb7
KR
121812020-03-17 Kamil Rytarowski <n54@gmx.com>
12182
12183 * user-regs.c (user_reg::read): Rename to...
12184 (user_reg::xread): ...this.
12185 * (append_user_reg): Rename argument `read' to `xread'.
12186 * (user_reg_add_builtin): Likewise.
12187 * (user_reg_add): Likewise.
12188 * (value_of_user_reg): Likewise.
12189
2108a63a
KR
121902020-03-17 Kamil Rytarowski <n54@gmx.com>
12191
12192 * sparc-nat.c (gdb_ptrace): New.
12193 * sparc-nat.c (sparc_fetch_inferior_registers)
12194 (sparc_store_inferior_registers) Remove obsolete comment.
12195 * sparc-nat.c (sparc_fetch_inferior_registers)
12196 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12197 * sparc-nat.c (sparc_fetch_inferior_registers)
12198 (sparc_store_inferior_registers) Use gdb_ptrace.
12199
a225c9a8
KR
122002020-03-17 Kamil Rytarowski <n54@gmx.com>
12201
12202 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12203 it to the ptrace call.
12204 * sh-nbsd-nat.c (store_registers): Likewise.
12205
98097623
KR
122062020-03-17 Kamil Rytarowski <n54@gmx.com>
12207
12208 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12209 nbsd_nat_target instead of inf_ptrace_target.
12210 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12211 nbsd_nat_target.
12212
9e38d619
KR
122132020-03-17 Kamil Rytarowski <n54@gmx.com>
12214
12215 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12216
a2ecbe9f
KR
122172020-03-17 Kamil Rytarowski <n54@gmx.com>
12218
12219 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12220 <sys/sysctl.h>.
12221 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12222
58990295
TV
122232020-03-17 Tom de Vries <tdevries@suse.de>
12224
12225 PR gdb/23710
12226 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12227 fields.
12228 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12229 fields.
12230 (process_imported_unit_die): Skip import of c++ CUs.
12231
771dd3a8
TT
122322020-03-16 Tom Tromey <tom@tromey.com>
12233
12234 * p-valprint.c (pascal_object_print_value): Initialize
12235 base_value.
12236
817a7585
AK
122372020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12238 Shahab Vahedi <shahab@synopsys.com>
12239
12240 * Makefile.in: Add arch/arc.o
12241 * configure.tgt: Likewise.
12242 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12243 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12244 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12245 * arc-tdep.h (arc_read_description): Add proto type.
12246 * arch/arc.c: New file.
12247 * arch/arc.h: Likewise.
12248 * features/Makefile: Replace old target descriptions with new.
12249 * features/arc-arcompact.c: Remove.
12250 * features/arc-arcompact.xml: Likewise.
12251 * features/arc-v2.c: Likewise
12252 * features/arc-v2.xml: Likewise
12253 * features/arc/aux-arcompact.xml: New file.
12254 * features/arc/aux-v2.xml: Likewise.
12255 * features/arc/core-arcompact.xml: Likewise.
12256 * features/arc/core-v2.xml: Likewise.
12257 * features/arc/aux-arcompact.c: Generate.
12258 * features/arc/aux-v2.c: Likewise.
12259 * features/arc/core-arcompact.c: Likewise.
12260 * features/arc/core-v2.c: Likewise.
12261 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12262
67430cd0
TT
122632020-03-16 Tom Tromey <tromey@adacore.com>
12264
12265 PR gdb/25663:
12266 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12267 putting value into bcache.
12268
30efb6c7
SM
122692020-03-16 Simon Marchi <simon.marchi@efficios.com>
12270
12271 PR gdb/21500
12272 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12273 to...
12274 (amd64_windows_init_abi_common): ... this. Don't set size of
12275 long type.
12276 (amd64_windows_init_abi): New function.
12277 (amd64_cygwin_init_abi): New function.
12278 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12279 the Cygwin OS ABI.
12280 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12281 comment.
12282
8db52437
SM
122832020-03-16 Simon Marchi <simon.marchi@efficios.com>
12284
12285 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12286 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12287 (pe_import_directory_entry): New struct type.
12288 (is_linked_with_cygwin_dll): New function.
12289 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12290 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12291 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12292
5982a56a
SM
122932020-03-16 Simon Marchi <simon.marchi@efficios.com>
12294
12295 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12296 i386_cygwin_core_osabi_sniffer.
12297
7a1998df
SM
122982020-03-16 Simon Marchi <simon.marchi@efficios.com>
12299
12300 * i386-cygwin-tdep.c: Rename to...
12301 * i386-windows-tdep.c: ... this.
12302 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12303 i386-windows-tdep.c.
12304 * configure.tgt: Likewise.
12305
053205cc
SM
123062020-03-16 Simon Marchi <simon.marchi@efficios.com>
12307
12308 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12309 * osabi.c (gdb_osabi_names): Add "Windows".
12310 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12311 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12312 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12313 i386_cygwin_osabi_sniffer.
12314 (_initialize_i386_cygwin_tdep): Register OS ABI
12315 GDB_OSABI_WINDOWS for i386.
12316 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12317 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12318 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12319 for x86-64.
12320 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12321 when the target matches '*-*-mingw*'.
12322
fe4b2ee6
SM
123232020-03-16 Simon Marchi <simon.marchi@efficios.com>
12324
12325 * defs.h (enum gdb_osabi): Move to...
12326 * osabi.h (enum gdb_osabi): ... here.
12327 * gdbarch.sh: Include osabi.h in gdbarch.h.
12328 * gdbarch.h: Re-generate.
12329
cb9b645d
SM
123302020-03-16 Simon Marchi <simon.marchi@efficios.com>
12331
12332 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12333 function.
12334 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12335
3293bbaf
TT
123362020-03-14 Tom Tromey <tom@tromey.com>
12337
12338 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12339 for C++.
12340 (c_type_print_modifier): Likewise. Add "language" parameter.
12341 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12342 (c_type_print_base_1): Update.
12343 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12344 constants.
12345 * type-stack.c (type_stack::insert): Handle tp_atomic and
12346 tp_restrict.
12347 (type_stack::follow_type_instance_flags): Likewise.
12348 (type_stack::follow_types): Likewise. Merge type-following code.
12349 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12350 (space_identifier, cv_with_space_id)
12351 (const_or_volatile_or_space_identifier_noopt)
12352 (const_or_volatile_or_space_identifier): Remove.
12353 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12354 rules.
12355 (ptr_operator, typebase): Update.
12356 (enum token_flag) <FLAG_C>: New constant.
12357 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12358 "_Atomic".
12359 (lex_one_token): Handle FLAG_C.
12360
154151a6
KR
123612020-03-14 Kamil Rytarowski <n54@gmx.com>
12362
12363 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12364 it to the ptrace call.
12365 * m68k-bsd-nat.c (store_registers): Likewise.
12366
bc107784
KR
123672020-03-14 Kamil Rytarowski <n54@gmx.com>
12368
12369 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12370 gdb_byte *.
12371 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12372 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12373 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12374
01a80117
KR
123752020-03-14 Kamil Rytarowski <n54@gmx.com>
12376
12377 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12378 nbsd_nat_target instead of inf_ptrace_target.
12379 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12380 nbsd_nat_target.
12381
f90280ca
KR
123822020-03-14 Kamil Rytarowski <n54@gmx.com>
12383
12384 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12385 register_t.
12386
6def66f1
KR
123872020-03-14 Kamil Rytarowski <n54@gmx.com>
12388
12389 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12390 it to the ptrace call.
12391 * alpha-bsd-nat.c (store_registers): Likewise.
12392
66eaca97
KR
123932020-03-14 Kamil Rytarowski <n54@gmx.com>
12394
12395 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12396 includes.
12397 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12398 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12399 fill_fpregset): Likewise.
12400
4fed520b
KR
124012020-03-14 Kamil Rytarowski <n54@gmx.com>
12402
12403 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12404 nbsd_nat_target instead of inf_ptrace_target.
12405 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12406 nbsd_nat_target.
12407
2190cf06
KR
124082020-03-14 Kamil Rytarowski <n54@gmx.com>
12409
12410 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12411 register_t.
12412
75c56d3d
KR
124132020-03-14 Kamil Rytarowski <n54@gmx.com>
12414
12415 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12416 it to the ptrace call.
12417 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12418 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12419 * arm-nbsd-nat.c (store_register): Likewise.
12420 * arm-nbsd-nat.c (store_regs): Likewise.
12421 * arm-nbsd-nat.c (store_fp_register): Likewise.
12422 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12423
6018d381
KR
124242020-03-14 Kamil Rytarowski <n54@gmx.com>
12425
12426 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12427 nbsd_nat_target instead of inf_ptrace_target.
12428 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12429 nbsd_nat_target.
12430
013f99f0
KR
124312020-03-14 Kamil Rytarowski <n54@gmx.com>
12432
12433 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12434 it to the ptrace call.
12435 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12436
12753073
KR
124372020-03-14 Kamil Rytarowski <n54@gmx.com>
12438
6227b330
KR
12439 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12440 it to the ptrace call.
12441 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12442
124432020-03-14 Kamil Rytarowski <n54@gmx.com>
12444
12445 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12446 gdb_byte *.
12753073
KR
12447 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12448
d5be5fa4
KR
124492020-03-14 Kamil Rytarowski <n54@gmx.com>
12450
12451 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12452 instead of inf_ptrace_target.
12453 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12454 nbsd_nat_target.
12455
8110f842
KR
124562020-03-14 Kamil Rytarowski <n54@gmx.com>
12457
12458 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12459 register_t.
12460
52feded7
KR
124612020-03-14 Kamil Rytarowski <n54@gmx.com>
12462
12463 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12464 register_t.
12465
25567eee
KR
124662020-03-14 Kamil Rytarowski <n54@gmx.com>
12467
12468 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12469 register_t.
12470
426a9c18
TT
124712020-03-13 Tom Tromey <tom@tromey.com>
12472
12473 * value.h (val_print): Don't declare.
12474 * valprint.h (val_print_array_elements)
12475 (val_print_scalar_formatted, generic_val_print): Don't declare.
12476 * valprint.c (generic_val_print_array): Take a struct value.
12477 (generic_val_print_ptr, generic_val_print_memberptr)
12478 (generic_val_print_bool, generic_val_print_int)
12479 (generic_val_print_char, generic_val_print_complex)
12480 (generic_val_print): Remove.
12481 (generic_value_print): Update.
12482 (do_val_print): Remove unused parameters. Don't call
12483 la_val_print.
12484 (val_print): Remove.
12485 (common_val_print): Update. Don't call value_check_printable.
12486 (val_print_scalar_formatted, val_print_array_elements): Remove.
12487 * rust-lang.c (rust_val_print): Remove.
12488 (rust_language_defn): Update.
12489 * p-valprint.c (pascal_val_print): Remove.
12490 (pascal_value_print_inner): Update.
12491 (pascal_object_print_val_fields, pascal_object_print_val):
12492 Remove.
12493 (pascal_object_print_static_field): Update.
12494 * p-lang.h (pascal_val_print): Don't declare.
12495 * p-lang.c (pascal_language_defn): Update.
12496 * opencl-lang.c (opencl_language_defn): Update.
12497 * objc-lang.c (objc_language_defn): Update.
12498 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12499 * m2-lang.h (m2_val_print): Don't declare.
12500 * m2-lang.c (m2_language_defn): Update.
12501 * language.h (struct language_defn) <la_val_print>: Remove.
12502 * language.c (unk_lang_value_print_inner): Rename. Change
12503 argument types.
12504 (unknown_language_defn, auto_language_defn): Update.
12505 * go-valprint.c (go_val_print): Remove.
12506 * go-lang.h (go_val_print): Don't declare.
12507 * go-lang.c (go_language_defn): Update.
12508 * f-valprint.c (f_val_print): Remove.
12509 * f-lang.h (f_value_print): Don't declare.
12510 * f-lang.c (f_language_defn): Update.
12511 * d-valprint.c (d_val_print): Remove.
12512 * d-lang.h (d_value_print): Don't declare.
12513 * d-lang.c (d_language_defn): Update.
12514 * cp-valprint.c (cp_print_value_fields)
12515 (cp_print_value_fields_rtti, cp_print_value): Remove.
12516 (cp_print_static_field): Update.
12517 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12518 (c_val_print_struct, c_val_print_union, c_val_print_int)
12519 (c_val_print_memberptr, c_val_print): Remove.
12520 * c-lang.h (c_val_print_array, cp_print_value_fields)
12521 (cp_print_value_fields_rtti): Don't declare.
12522 * c-lang.c (c_language_defn, cplus_language_defn)
12523 (asm_language_defn, minimal_language_defn): Update.
12524 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12525 (ada_val_print_enum): Take a struct value.
12526 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12527 (ada_val_print): Remove.
12528 (ada_value_print_1): Update.
12529 (printable_val_type): Remove.
12530 * ada-lang.h (ada_val_print): Don't declare.
12531 * ada-lang.c (ada_language_defn): Update.
12532
42331a1e
TT
125332020-03-13 Tom Tromey <tom@tromey.com>
12534
12535 * valprint.c (do_val_print): Update.
12536 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12537 a struct value.
12538 (value_to_value_object_no_release): Declare.
12539 * python/py-value.c (value_to_value_object_no_release): New
12540 function.
12541 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12542 struct value.
12543 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12544 function.
12545 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12546 a struct value.
12547 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12548 Declare.
12549 (gdbscm_apply_val_pretty_printer): Take a struct value.
12550 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12551 value.
12552 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12553 value.
12554 * extension-priv.h (struct extension_language_ops)
12555 <apply_val_pretty_printer>: Take a struct value.
12556 * cp-valprint.c (cp_print_value): Create a struct value.
12557 (cp_print_value): Update.
12558
3a916a97
TT
125592020-03-13 Tom Tromey <tom@tromey.com>
12560
12561 * ada-valprint.c (print_field_values): Call common_val_print.
12562
b59eac37
TT
125632020-03-13 Tom Tromey <tom@tromey.com>
12564
12565 * ada-valprint.c (val_print_packed_array_elements): Remove
12566 bitoffset and val parameters. Call common_val_print.
12567 (ada_val_print_string): Remove offset, address, and original_value
12568 parameters.
12569 (ada_val_print_array): Update.
12570 (ada_value_print_array): New function.
12571 (ada_value_print_1): Call it.
12572
03371129
TT
125732020-03-13 Tom Tromey <tom@tromey.com>
12574
12575 * ada-valprint.c (ada_value_print): Use common_val_print.
12576
2e088f8b
TT
125772020-03-13 Tom Tromey <tom@tromey.com>
12578
12579 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12580
39ef85a8
TT
125812020-03-13 Tom Tromey <tom@tromey.com>
12582
12583 * ada-valprint.c (ada_value_print_num): New function.
12584 (ada_value_print_1): Use it.
12585
b9fa6e07
TT
125862020-03-13 Tom Tromey <tom@tromey.com>
12587
12588 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12589
416595d6
TT
125902020-03-13 Tom Tromey <tom@tromey.com>
12591
12592 * ada-valprint.c (ada_value_print_ptr): New function.
12593 (ada_value_print_1): Use it.
12594
5b5e15ec
TT
125952020-03-13 Tom Tromey <tom@tromey.com>
12596
12597 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12598 call common_val_print.
12599 (ada_val_print_1): Update.
12600 (ada_value_print_1): New function.
12601 (ada_value_print_inner): Rewrite.
12602
fbf54e75
TT
126032020-03-13 Tom Tromey <tom@tromey.com>
12604
12605 * cp-valprint.c (cp_print_value_fields): Update.
12606 (cp_print_value): New function.
12607
64b653ca
TT
126082020-03-13 Tom Tromey <tom@tromey.com>
12609
12610 * m2-valprint.c (m2_value_print_inner): Use
12611 cp_print_value_fields.
12612 * cp-valprint.c (cp_print_value_fields): New function.
12613 * c-valprint.c (c_value_print_struct): New function.
12614 (c_value_print_inner): Use c_value_print_struct.
12615 * c-lang.h (cp_print_value_fields): Declare.
12616
6999f067
TT
126172020-03-13 Tom Tromey <tom@tromey.com>
12618
12619 * c-valprint.c (c_value_print_array): New function.
12620 (c_value_print_inner): Use it.
12621
ce80b8bd
TT
126222020-03-13 Tom Tromey <tom@tromey.com>
12623
12624 * c-valprint.c (c_value_print_memberptr): New function.
12625 (c_value_print_inner): Use it.
12626
2faac269
TT
126272020-03-13 Tom Tromey <tom@tromey.com>
12628
12629 * c-valprint.c (c_value_print_int): New function.
12630 (c_value_print_inner): Use it.
12631
da3e2c29
TT
126322020-03-13 Tom Tromey <tom@tromey.com>
12633
12634 * c-valprint.c (c_value_print_ptr): New function.
12635 (c_value_print_inner): Use it.
12636
50836231
TT
126372020-03-13 Tom Tromey <tom@tromey.com>
12638
12639 * c-valprint.c (c_value_print_inner): Rewrite.
12640
4f412b6e
TT
126412020-03-13 Tom Tromey <tom@tromey.com>
12642
12643 * valprint.c (generic_value_print_complex): New function.
12644 (generic_value_print): Use it.
12645
f5354008
TT
126462020-03-13 Tom Tromey <tom@tromey.com>
12647
12648 * valprint.c (generic_val_print_float): Don't call
12649 val_print_scalar_formatted.
12650 (generic_val_print, generic_value_print): Update.
12651
3eec3b05
TT
126522020-03-13 Tom Tromey <tom@tromey.com>
12653
12654 * valprint.c (generic_value_print_char): New function
12655 (generic_value_print): Use it.
12656
fdddfccb
TT
126572020-03-13 Tom Tromey <tom@tromey.com>
12658
12659 * valprint.c (generic_value_print_int): New function.
12660 (generic_value_print): Use it.
12661
6dde7521
TT
126622020-03-13 Tom Tromey <tom@tromey.com>
12663
12664 * valprint.c (generic_value_print_bool): New function.
12665 (generic_value_print): Use it.
12666
4112d2e6
TT
126672020-03-13 Tom Tromey <tom@tromey.com>
12668
12669 * valprint.c (generic_val_print_func): Simplify.
12670 (generic_val_print, generic_value_print): Update.
12671
65786af6
TT
126722020-03-13 Tom Tromey <tom@tromey.com>
12673
12674 * valprint.c (generic_val_print_flags): Remove.
12675 (generic_val_print, generic_value_print): Update.
12676 (val_print_type_code_flags): Add original_value parameter.
12677
40f3ce18
TT
126782020-03-13 Tom Tromey <tom@tromey.com>
12679
12680 * valprint.c (generic_val_print): Update.
12681 (generic_value_print): Update.
12682 * valprint.c (generic_val_print_enum): Don't call
12683 val_print_scalar_formatted.
12684
2a5b130b
TT
126852020-03-13 Tom Tromey <tom@tromey.com>
12686
12687 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12688 * valprint.c (generic_value_print_ptr): New function.
12689
abc66ce9
TT
126902020-03-13 Tom Tromey <tom@tromey.com>
12691
12692 * valprint.c (generic_value_print): Rewrite.
12693
07a32858
TT
126942020-03-13 Tom Tromey <tom@tromey.com>
12695
12696 * p-valprint.c (pascal_object_print_value_fields)
12697 (pascal_object_print_value): New functions.
12698
64d64d3a
TT
126992020-03-13 Tom Tromey <tom@tromey.com>
12700
12701 * p-valprint.c (pascal_value_print_inner): Rewrite.
12702
6a95a1f5
TT
127032020-03-13 Tom Tromey <tom@tromey.com>
12704
12705 * f-valprint.c (f_value_print_innner): Rewrite.
12706
59fcdac6
TT
127072020-03-13 Tom Tromey <tom@tromey.com>
12708
12709 * m2-valprint.c (m2_print_unbounded_array): New overload.
12710 (m2_print_unbounded_array): Update.
12711 (m2_print_array_contents): Take a struct value.
12712 (m2_value_print_inner): Rewrite.
12713
d133c3e1
TT
127142020-03-13 Tom Tromey <tom@tromey.com>
12715
12716 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12717 (d_value_print_inner): New function.
12718 * d-lang.h (d_value_print_inner): Declare.
12719 * d-lang.c (d_language_defn): Use d_value_print_inner.
12720
23b0f06b
TT
127212020-03-13 Tom Tromey <tom@tromey.com>
12722
12723 * go-valprint.c (go_value_print_inner): New function.
12724 * go-lang.h (go_value_print_inner): Declare.
12725 * go-lang.c (go_language_defn): Use go_value_print_inner.
12726
5f56f7cb
TT
127272020-03-13 Tom Tromey <tom@tromey.com>
12728
12729 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12730 API.
12731 (rust_val_print): Rewrite.
12732 (rust_value_print_inner): New function, from rust_val_print.
12733 (rust_language_defn): Use rust_value_print_inner.
12734
26792ee0
TT
127352020-03-13 Tom Tromey <tom@tromey.com>
12736
12737 * ada-valprint.c (ada_value_print_inner): New function.
12738 * ada-lang.h (ada_value_print_inner): Declare.
12739 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12740
24051bbe
TT
127412020-03-13 Tom Tromey <tom@tromey.com>
12742
12743 * f-valprint.c (f_value_print_innner): New function.
12744 * f-lang.h (f_value_print_innner): Declare.
12745 * f-lang.c (f_language_defn): Use f_value_print_innner.
12746
c0941be6
TT
127472020-03-13 Tom Tromey <tom@tromey.com>
12748
12749 * p-valprint.c (pascal_value_print_inner): New function.
12750 * p-lang.h (pascal_value_print_inner): Declare.
12751 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12752
62c4663d
TT
127532020-03-13 Tom Tromey <tom@tromey.com>
12754
12755 * m2-valprint.c (m2_value_print_inner): New function.
12756 * m2-lang.h (m2_value_print_inner): Declare.
12757 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12758
62182190
TT
127592020-03-13 Tom Tromey <tom@tromey.com>
12760
12761 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12762 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12763 * c-valprint.c (c_value_print_inner): New function.
12764 * c-lang.h (c_value_print_inner): Declare.
12765 * c-lang.c (c_language_defn, cplus_language_defn)
12766 (asm_language_defn, minimal_language_defn): Use
12767 c_value_print_inner.
12768
1e592a8a
TT
127692020-03-13 Tom Tromey <tom@tromey.com>
12770
12771 * p-valprint.c (pascal_object_print_value_fields): Now static.
12772 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12773
7fe471e9
TT
127742020-03-13 Tom Tromey <tom@tromey.com>
12775
12776 * c-valprint.c (c_val_print_array): Simplify.
12777
d121c6ce
TT
127782020-03-13 Tom Tromey <tom@tromey.com>
12779
12780 * valprint.c (value_print_array_elements): New function.
12781 * valprint.h (value_print_array_elements): Declare.
12782
4dba70ee
TT
127832020-03-13 Tom Tromey <tom@tromey.com>
12784
12785 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12786 * mips-tdep.c (mips_print_register): Use
12787 value_print_scalar_formatted.
12788
4f9ae810
TT
127892020-03-13 Tom Tromey <tom@tromey.com>
12790
12791 * valprint.h (value_print_scalar_formatted): Declare.
12792 * valprint.c (value_print_scalar_formatted): New function.
12793
156bfec9
TT
127942020-03-13 Tom Tromey <tom@tromey.com>
12795
12796 * valprint.h (generic_value_print): Declare.
12797 * valprint.c (generic_value_print): New function.
12798
2b4e573d
TT
127992020-03-13 Tom Tromey <tom@tromey.com>
12800
12801 * valprint.c (do_val_print): Call la_value_print_inner, if
12802 available.
12803 * rust-lang.c (rust_language_defn): Update.
12804 * p-lang.c (pascal_language_defn): Update.
12805 * opencl-lang.c (opencl_language_defn): Update.
12806 * objc-lang.c (objc_language_defn): Update.
12807 * m2-lang.c (m2_language_defn): Update.
12808 * language.h (struct language_defn) <la_value_print_inner>: New
12809 member.
12810 * language.c (unknown_language_defn, auto_language_defn): Update.
12811 * go-lang.c (go_language_defn): Update.
12812 * f-lang.c (f_language_defn): Update.
12813 * d-lang.c (d_language_defn): Update.
12814 * c-lang.c (c_language_defn, cplus_language_defn)
12815 (asm_language_defn, minimal_language_defn): Update.
12816 * ada-lang.c (ada_language_defn): Update.
12817
a1f6a07c
TT
128182020-03-13 Tom Tromey <tom@tromey.com>
12819
12820 * c-valprint.c (c_value_print): Use common_val_print.
12821
410cf315
TT
128222020-03-13 Tom Tromey <tom@tromey.com>
12823
12824 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12825
72a45c93
TT
128262020-03-13 Tom Tromey <tom@tromey.com>
12827
12828 * f-valprint.c (f77_print_array_1, f_val_print): Use
12829 common_val_print.
12830
040f66bd
TT
128312020-03-13 Tom Tromey <tom@tromey.com>
12832
12833 * riscv-tdep.c (riscv_print_one_register_info): Use
12834 common_val_print.
12835
a6e05a6c
TT
128362020-03-13 Tom Tromey <tom@tromey.com>
12837
12838 * mi/mi-main.c (output_register): Use common_val_print.
12839
3444c526
TT
128402020-03-13 Tom Tromey <tom@tromey.com>
12841
12842 * infcmd.c (default_print_one_register_info): Use
12843 common_val_print.
12844
c2a44efe
TT
128452020-03-13 Tom Tromey <tom@tromey.com>
12846
12847 * valprint.h (common_val_print_checked): Declare.
12848 * valprint.c (common_val_print_checked): New function.
12849 * stack.c (print_frame_arg): Use common_val_print_checked.
12850
b0c26e99
TT
128512020-03-13 Tom Tromey <tom@tromey.com>
12852
12853 * valprint.c (do_val_print): New function, from val_print.
12854 (val_print): Use do_val_print.
12855 (common_val_print): Use do_val_print.
12856
ce3acbe9
TT
128572020-03-13 Tom Tromey <tom@tromey.com>
12858
12859 * valprint.c (value_print): Use scoped_value_mark.
12860
96c7f873
TV
128612020-03-13 Tom de Vries <tdevries@suse.de>
12862
12863 PR symtab/25646
12864 * psymtab.c (partial_symtab::partial_symtab): Don't set
12865 globals_offset and statics_offset. Push element onto
12866 current_global_psymbols and current_static_psymbols stacks.
12867 (concat): New function.
12868 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12869 element from current_global_psymbols and current_static_psymbols
12870 stacks. Concat popped elements to global_psymbols and
12871 static_symbols.
12872 (add_psymbol_to_list): Use current_global_psymbols and
12873 current_static_psymbols stacks.
12874 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12875 current_static_psymbols fields.
12876
6ba0a321
CB
128772020-03-12 Christian Biesinger <cbiesinger@google.com>
12878
12879 * corelow.c (sniff_core_bfd): Remove.
12880 (class core_target) <m_core_vec>: Remove.
12881 (core_target::core_target): Update.
12882 (core_file_fns): Remove.
12883 (deprecated_add_core_fns): Remove.
12884 (default_core_sniffer): Remove.
12885 (sniff_core_bfd): Remove.
12886 (default_check_format): Remove.
12887 (gdb_check_format): Remove.
12888 (core_target_open): Update.
12889 (core_target::get_core_register_section): Update.
12890 (get_core_registers_cb): Update.
12891 (core_target::fetch_registers): Update.
12892 * gdbcore.h (struct core_fns): Remove.
12893 (deprecated_add_core_fns): Remove.
12894 (default_core_sniffer): Remove.
12895 (default_check_format): Remove.
12896
227031b2
TT
128972020-03-12 Tom Tromey <tom@tromey.com>
12898
12899 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12900 CORE_ADDR.
12901 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12902
53807e9f
TT
129032020-03-12 Tom Tromey <tom@tromey.com>
12904
12905 * remote.c (remote_target::download_tracepoint)
12906 (remote_target::enable_tracepoint)
12907 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12908 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12909 sprintf_vma.
12910
64f25102
TT
129112020-03-12 Tom Tromey <tom@tromey.com>
12912
12913 * symfile-mem.c: Update CORE_ADDR size assert.
12914
272cd5a3
SM
129152020-03-12 Simon Marchi <simon.marchi@efficios.com>
12916
12917 * selftest.m4: Move to gdbsupport/.
12918 * acinclude.m4: Update path to selftest.m4.
12919
74cd3f9d
SM
129202020-03-12 Simon Marchi <simon.marchi@efficios.com>
12921
12922 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12923 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12924 gdbarch-selfselftests.c and selftest-arch.c.
12925 (SUBDIR_UNITTESTS_OBS): Rename to...
12926 (SELFTESTS_OBS): ... this.
12927 (COMMON_SFILES): Remove disasm-selftests.c and
12928 gdbarch-selftests.c.
12929 * configure.ac: Don't add selftest-arch.{c,o} to
12930 CONFIG_{SRCS,OBS}.
12931 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12932 preprocessor conditions.
12933
db6878ac
SM
129342020-03-12 Simon Marchi <simon.marchi@efficios.com>
12935
12936 * configure.ac: Don't source bfd/development.sh.
12937 * selftest.m4: Modify comment.
12938 * configure: Re-generate.
12939
4d696a5c
SM
129402020-03-12 Simon Marchi <simon.marchi@efficios.com>
12941
12942 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12943 not "true" or "false".
12944 * configure: Re-generate.
12945
8dd8e1c7
CB
129462020-03-12 Christian Biesinger <cbiesinger@google.com>
12947
12948 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12949 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12950 renamed to arm_nbsd_supply_gregset.
12951 (fetch_register): Update to call arm_nbsd_supply_gregset.
12952 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12953 (arm_netbsd_nat_target::fetch_registers): Update.
12954 (fetch_elfcore_registers): Removed.
12955 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12956 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12957 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12958 not require NetBSD system headers.
12959 (arm_nbsd_regset): New struct.
12960 (arm_nbsd_iterate_over_regset_sections): New function.
12961 (arm_netbsd_init_abi_common): Updated to call
12962 set_gdbarch_iterate_over_regset_sections.
12963 * arm-nbsd-tdep.h: New file.
12964
dd69bf7a
KB
129652020-03-11 Kevin Buettner <kevinb@redhat.com>
12966
12967 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12968 recursion.
12969
a0761e34
SM
129702020-03-11 Simon Marchi <simon.marchi@efficios.com>
12971
12972 * configure: Re-generate.
12973
e7a82140
TT
129742020-03-11 Tom Tromey <tromey@adacore.com>
12975
12976 * ada-typeprint.c (print_choices): Fix comment.
12977
dcc050c8
AB
129782020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12979
12980 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12981 previous item in the list, when the list has no items.
12982
1c33af77
TV
129832020-03-11 Tom de Vries <tdevries@suse.de>
12984
12985 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12986 PROP_LOCLIST handling code.
12987
8c95582d
AB
129882020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12989
12990 * buildsym-legacy.c (record_line): Pass extra parameter to
12991 record_line.
12992 * buildsym.c (buildsym_compunit::record_line): Take an extra
12993 parameter, reduce duplication in the line table, and record the
12994 is_stmt flag in the line table.
12995 * buildsym.h (buildsym_compunit::record_line): Add extra
12996 parameter.
12997 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12998 non-statement lines.
12999 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13000 this to the symtab builder.
13001 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13002 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13003 through to dwarf_record_line_1.
13004 * infrun.c (process_event_stop_test): When stepping, don't stop at
13005 a non-statement instruction, and only refresh the step info when
13006 we land in the middle of a line's range. Also add an extra
13007 comment.
13008 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13009 field.
13010 * record-btrace.c (btrace_find_line_range): Only record lines
13011 marked as is-statement.
13012 * stack.c (frame_show_address): Show the frame address if we are
13013 in a non-statement sal.
13014 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13015 (maintenance_print_one_line_table): Print a header for the is_stmt
13016 column, and include is_stmt information in the output.
13017 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13018 preference to non-statements.
13019 (find_pcs_for_symtab_line): Prefer is-statement entries.
13020 (find_line_common): Likewise.
13021 * symtab.h (struct linetable_entry): Add is_stmt field.
13022 (struct symtab_and_line): Likewise.
13023 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13024 arranging the line table.
13025
e4003a34
TV
130262020-03-07 Tom de Vries <tdevries@suse.de>
13027
13028 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13029 DIE.
13030
e8932576
TT
130312020-03-07 Tom Tromey <tom@tromey.com>
13032
13033 * valops.c (value_literal_complex): Remove obsolete comment.
13034 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13035 comment.
13036
29734269
SM
130372020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13038
13039 * infrun.h: Forward-declare thread_info.
13040 (set_step_info): Add thread_info parameter, add doc.
13041 * infrun.c (set_step_info): Add thread_info parameter, move doc
13042 to header.
13043 * infrun.c (process_event_stop_test): Pass thread to
13044 set_step_info call.
13045 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13046 set_step_info.
13047 (prepare_one_step): Add thread_info parameter, pass it to
13048 set_step_frame and prepare_one_step (recursive) call.
13049 (step_1): Pass thread to prepare_one_step call.
13050 (step_command_fsm::should_stop): Pass thread to
13051 prepare_one_step.
13052 (until_next_fsm): Pass thread to set_step_frame call.
13053 (finish_command): Pass thread to set_step_info call.
13054
b7d64b29
HD
130552020-03-06 Hannes Domani <ssbssa@yahoo.de>
13056
13057 * windows-tdep.c (windows_solib_create_inferior_hook):
13058 Check if inferior is running.
13059
09f2921c
TV
130602020-03-06 Tom de Vries <tdevries@suse.de>
13061
13062 * NEWS: Fix "the the".
13063 * ctfread.c: Same.
13064
fd760e79
TV
130652020-03-06 Tom de Vries <tdevries@suse.de>
13066
13067 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13068
20ea4a60
AB
130692020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13070
13071 * .dir-locals.el: Add a comment referencing the other copies of
13072 this file.
13073
0afbabf0
JB
130742020-03-05 John Baldwin <jhb@FreeBSD.org>
13075
13076 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13077 psargs.
13078
842806cb
TBA
130792020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13080
13081 * .gitattributes: New file.
13082
be1e3d3e
TT
130832020-03-04 Tom Tromey <tom@tromey.com>
13084
13085 * symmisc.c (print_symbol_bcache_statistics)
13086 (print_objfile_statistics): Update.
13087 * symfile.c (allocate_symtab): Use intern.
13088 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13089 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13090 macro_cache>: Remove.
13091 <string_cache>: New member.
13092 (struct objfile) <intern>: New methods.
13093 * elfread.c (elf_symtab_read): Use intern.
13094 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13095 (dwarf2_compute_name, dwarf2_physname)
13096 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13097 names.
13098 (guess_partial_die_structure_name): Update.
13099 (partial_die_info::fixup): Intern name.
13100 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13101 name.
13102 (dwarf2_name): Intern name. Update.
13103 * buildsym.c (buildsym_compunit::get_macro_table): Use
13104 string_cache.
13105
4e7625fd
TT
131062020-03-04 Tom Tromey <tom@tromey.com>
13107
13108 * jit.c (bfd_open_from_target_memory): Make "target" const.
13109 * corefile.c (gnutarget): Now const.
13110 * gdbcore.h (gnutarget): Now const.
13111
46f9f931
HD
131122020-03-04 Hannes Domani <ssbssa@yahoo.de>
13113
13114 * NEWS: Mention support for WOW64 processes.
13115 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13116 (amd64_windows_segment_register_p): Remove static.
13117 (_initialize_amd64_windows_nat): Update.
13118 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13119 * i386-windows-nat.c (context_offset): Update.
13120 (i386_mappings): Rename and remove static.
13121 (i386_windows_segment_register_p): Remove static.
13122 (_initialize_i386_windows_nat): Update.
13123 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13124 (STATUS_WX86_SINGLE_STEP): New macro.
13125 (EnumProcessModulesEx): New macro.
13126 (Wow64SuspendThread): New macro.
13127 (Wow64GetThreadContext): New macro.
13128 (Wow64SetThreadContext): New macro.
13129 (Wow64GetThreadSelectorEntry): New macro.
13130 (windows_set_context_register_offsets): Add static.
13131 (windows_set_segment_register_p): Likewise.
13132 (windows_add_thread): Adapt for WOW64 processes.
13133 (windows_fetch_one_register): Likewise.
13134 (windows_nat_target::fetch_registers): Likewise.
13135 (windows_store_one_register): Likewise.
13136 (display_selector): Likewise.
13137 (display_selectors): Likewise.
13138 (handle_exception): Likewise.
13139 (windows_continue): Likewise.
13140 (windows_nat_target::resume): Likewise.
13141 (windows_add_all_dlls): Likewise.
13142 (do_initial_windows_stuff): Likewise.
13143 (windows_nat_target::attach): Likewise.
13144 (windows_get_exec_module_filename): Likewise.
13145 (windows_nat_target::create_inferior): Likewise.
13146 (windows_xfer_siginfo): Likewise.
13147 (_initialize_loadable): Initialize Wow64SuspendThread,
13148 Wow64GetThreadContext, Wow64SetThreadContext,
13149 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13150 * windows-nat.h (windows_set_context_register_offsets):
13151 Remove declaration.
13152 (windows_set_segment_register_p): Likewise.
13153 (i386_windows_segment_register_p): Add declaration.
13154 (amd64_windows_segment_register_p): Likewise.
13155
440cf44e
LM
131562020-03-04 Luis Machado <luis.machado@linaro.org>
13157
13158 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13159 in "info registers" for AArch64/ARM.
13160
13161 The change caused "info registers" to not print GPR's.
13162
13163 gdb/ChangeLog:
13164
13165 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13166
13167 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13168 when reg->group is empty and reggroup is not.
13169
1009d92f
TT
131702020-03-03 Tom Tromey <tromey@adacore.com>
13171
13172 * dwarf2/frame.c (struct dwarf2_frame_cache)
13173 <checked_tailcall_bottom, entry_cfa_sp_offset,
13174 entry_cfa_sp_offset_p>: Remove members.
13175 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13176 (dwarf2_frame_prev_register): Don't call
13177 dwarf2_tailcall_sniffer_first.
13178 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13179 * frame-unwind.c (add_unwinder): New fuction.
13180 (frame_unwind_init): Use it. Add tailcall unwinder.
13181
5e5d66b6
AB
131822020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13183 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13184
13185 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13186 value should be printed as true.
13187
584cf46d
HD
131882020-03-03 Hannes Domani <ssbssa@yahoo.de>
13189
13190 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13191 (windows_init_abi): Set and use windows_so_ops.
13192
7b973adc
SDJ
131932020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13194
13195 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13196 when verifying if dealing with a convenience variable.
13197
bb7b70ab
LM
131982020-03-03 Luis Machado <luis.machado@linaro.org>
13199
13200 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13201
9822cb57
SM
132022020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13203
13204 * infrun.c (gdbarch_supports_displaced_stepping): New.
13205 (use_displaced_stepping): Break up conditions in smaller pieces.
13206 Use gdbarch_supports_displaced_stepping.
13207 (displaced_step_prepare_throw): Use
13208 gdbarch_supports_displaced_stepping.
13209
63e163f2
AB
132102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13211
13212 * NEWS: Mention new behaviour of the history filename.
13213 * top.c (write_history_p): Add comment.
13214 (show_write_history_p): Add header comment, give a different
13215 message when history writing is on, but the history filename is
13216 empty.
13217 (history_filename): Add comment.
13218 (history_filename_empty): New function.
13219 (show_history_filename): Add header comment, give a different
13220 message when the filename is empty.
13221 (init_history): Compare history_filename against nullptr, and only
13222 read history if the filename is not empty.
13223 (set_history_filename): Add header comment, and only make
13224 non-empty filenames absolute.
13225 (init_main): Make the filename argument to 'set history filename'
13226 optional.
13227
81b86b97
CB
132282020-03-02 Christian Biesinger <cbiesinger@google.com>
13229
13230 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13231 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13232 (fetch_fp_register): Update.
13233 (fetch_fp_regs): Update.
13234 (store_fp_register): Update.
13235 (store_fp_regs): Update.
13236 (arm_netbsd_nat_target::read_description): New function.
13237 (fetch_elfcore_registers): Update.
13238
24ed6739
AB
132392020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13240
13241 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13242 general_thread if the stop reply is missing a thread-id.
13243 (remote_target::process_stop_reply): Use the first non-exited
13244 thread if the target didn't pass a thread-id.
13245 * infrun.c (do_target_wait): Move call to
13246 switch_to_inferior_no_thread to ....
13247 (do_target_wait_1): ... here.
13248
a84bb2a0
JT
132492020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13250
13251 * debuginfod-support.c: Include defs.h first.
13252
658dadf0
TV
132532020-02-28 Tom de Vries <tdevries@suse.de>
13254
13255 * symfile.c (set_initial_language): Use default language for lookup.
13256
4ebe4877
SM
132572020-02-28 Simon Marchi <simon.marchi@efficios.com>
13258
13259 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13260 reader variable, pass `this` to read_cutu_die_from_dwo.
13261
e5da1139
AM
132622020-02-27 Aaron Merey <amerey@redhat.com>
13263
13264 * source.c (open_source_file): Check for nullptr when computing
13265 srcpath.
13266
317f7127
TT
132672020-02-27 Tom Tromey <tromey@adacore.com>
13268
13269 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13270 member.
13271 (dwarf2_add_field): Don't update nfields.
13272 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13273
3104d9ee
AB
132742020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13275
13276 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13277 abs.
13278
b83470bf
TT
132792020-02-26 Tom Tromey <tom@tromey.com>
13280
13281 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13282 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13283 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13284 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13285 per_cu_data.
13286
edfe0a0c
TT
132872020-02-26 Tom Tromey <tom@tromey.com>
13288
13289 * dwarf2/index-write.c (psym_index_map): Change type.
13290 (add_address_entry_worker, write_one_signatured_type)
13291 (recursively_count_psymbols, recursively_write_psymbols)
13292 (class debug_names, psyms_seen_size, write_gdbindex)
13293 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13294
0d79cdc4
AM
132952020-02-26 Aaron Merey <amerey@redhat.com>
13296
13297 * Makefile.in: Handle optional debuginfod support.
13298 * NEWS: Update.
13299 * README: Add --with-debuginfod summary.
13300 * config.in: Regenerate.
13301 * configure: Regenerate.
13302 * configure.ac: Handle optional debuginfod support.
13303 * debuginfod-support.c: debuginfod helper functions.
13304 * debuginfod-support.h: Ditto.
13305 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13306 summary.
13307 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13308 when a dwz file cannot be found.
13309 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13310 debuginfo file cannot be found.
13311 * source.c (open_source_file): Query debuginfod servers when a
13312 source file cannot be found.
13313 * top.c (print_gdb_configuration): Include
13314 --{with,without}-debuginfod in the output.
13315
b65ce565
JG
133162020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13317
13318 * thread.c (thr_try_catch_cmd): Print thread name.
13319
d4c9a4f8
SM
133202020-02-26 Simon Marchi <simon.marchi@efficios.com>
13321
13322 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13323 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13324 dwarf2_fetch_die_type_sect_off): Move to...
13325 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13326 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13327 dwarf2_fetch_die_type_sect_off): ... here.
13328 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13329 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13330 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13331
0dce4280
TV
133322020-02-26 Tom de Vries <tdevries@suse.de>
13333
13334 PR gdb/25603
13335 * symfile.c (set_initial_language): Exit-early if
13336 language_mode == language_mode_manual.
13337
450a1bfc
SM
133382020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13339
13340 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13341 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13342 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13343
9e80cfa1
AB
133442020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13345
13346 * gdbtypes.c (create_array_type_with_stride): Handle negative
13347 array strides.
13348 * valarith.c (value_subscripted_rvalue): Likewise.
13349
09624f1f
LM
133502020-02-25 Luis Machado <luis.machado@linaro.org>
13351
13352 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13353
8cb5117c
SM
133542020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13355
13356 * loc.h (dwarf2_get_die_type): Move to...
13357 * read.h (dwarf2_get_die_type): ... here.
13358 * read.c (dwarf2_get_die_type): Move doc to header.
13359
c325c44e
JB
133602020-02-25 Joel Brobecker <brobecker@adacore.com>
13361
13362 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13363 'gnulib/Makefile.in' to the list.
13364
4ac93832
TT
133652020-02-24 Tom Tromey <tom@tromey.com>
13366
13367 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13368 Remove.
13369 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13370 XOBNEWVEC.
13371
197400e8
TT
133722020-02-24 Tom Tromey <tom@tromey.com>
13373
13374 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13375 New method.
13376 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13377 (dw2_do_instantiate_symtab, dw2_get_file_names)
13378 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13379
76935768
TT
133802020-02-24 Tom Tromey <tom@tromey.com>
13381
13382 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13383 make_scoped_restore.
13384 (dwarf2_psymtab::read_symtab): Don't clear
13385 reading_partial_symbols.
13386
a88ef40d
TV
133872020-02-24 Tom de Vries <tdevries@suse.de>
13388
13389 PR gdb/25592
13390 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13391
c9af6521
TV
133922020-02-24 Tom de Vries <tdevries@suse.de>
13393
13394 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13395 commands layout next/prev/regs.
13396
5707a07a
TT
133972020-02-22 Tom Tromey <tom@tromey.com>
13398
13399 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13400 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13401
3b0fb49e
TT
134022020-02-22 Tom Tromey <tom@tromey.com>
13403
13404 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13405
283be8bf
TT
134062020-02-22 Tom Tromey <tom@tromey.com>
13407
13408 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13409 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13410 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13411 * tui/tui.c (_initialize_tui): Add usage text.
13412
ca793b96
TT
134132020-02-22 Tom Tromey <tom@tromey.com>
13414
13415 * tui/tui-win.c (tui_set_focus_command)
13416 (tui_set_win_height_command): Use error_no_arg.
13417 (_initialize_tui_win): Update help text.
13418 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13419
432b5c40
TT
134202020-02-22 Tom Tromey <tom@tromey.com>
13421
13422 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13423 * tui/tui-disasm.h (struct tui_disasm_window)
13424 <display_start_addr>: Declare.
13425 * tui/tui-source.h (struct tui_source_window)
13426 <display_start_addr>: Declare.
13427 * tui/tui-winsource.h (struct tui_source_window_base)
13428 <show_source_line, display_start_addr>: New methods.
13429 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13430 Rename and move to protected section.
13431 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13432 (tui_source_window_base::do_erase_source_content): Update.
13433 (tui_source_window_base::show_source_line): Now a method.
13434 (tui_source_window_base::show_source_content)
13435 (tui_source_window_base::tui_source_window_base)
13436 (tui_source_window_base::rerender)
13437 (tui_source_window_base::refill)
13438 (tui_source_window_base::do_scroll_horizontal)
13439 (tui_source_window_base::set_is_exec_point_at)
13440 (tui_source_window_base::update_breakpoint_info)
13441 (tui_source_window_base::update_exec_info): Update.
13442 * tui/tui-source.c (tui_source_window::set_contents)
13443 (tui_source_window::showing_source_p)
13444 (tui_source_window::do_scroll_vertical)
13445 (tui_source_window::location_matches_p)
13446 (tui_source_window::line_is_displayed): Update.
13447 (tui_source_window::display_start_addr): New method.
13448 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13449 (tui_disasm_window::do_scroll_vertical)
13450 (tui_disasm_window::location_matches_p): Update.
13451 (tui_disasm_window::display_start_addr): New method.
13452
01b1af32
TT
134532020-02-22 Tom Tromey <tom@tromey.com>
13454
13455 * NEWS: Add entry for gdb.register_window_type.
13456 * tui/tui-layout.h (window_factory): New typedef.
13457 (tui_register_window): Declare.
13458 * tui/tui-layout.c (saved_tui_windows): New global.
13459 (tui_apply_current_layout): Use it.
13460 (tui_register_window): New function.
13461 * python/python.c (do_start_initialization): Call
13462 gdbpy_initialize_tui.
13463 (python_GdbMethods): Add "register_window_type" function.
13464 * python/python-internal.h (gdbpy_register_tui_window)
13465 (gdbpy_initialize_tui): Declare.
13466 * python/py-tui.c: New file.
13467 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13468
fc96d20b
TT
134692020-02-22 Tom Tromey <tom@tromey.com>
13470
13471 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13472
935c78c0
TT
134732020-02-22 Tom Tromey <tom@tromey.com>
13474
13475 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13476 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13477 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13478 (tui_set_win_focus_to): Move from tui-win.c.
13479
0240c8f1
TT
134802020-02-22 Tom Tromey <tom@tromey.com>
13481
13482 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13483 functions.
13484 (known_window_types): New global.
13485 (tui_get_window_by_name): Reimplement.
13486 (initialize_known_windows): New function.
13487 (validate_window_name): Rewrite.
13488 (_initialize_tui_layout): Call initialize_known_windows.
13489
fdb01f0c
TT
134902020-02-22 Tom Tromey <tom@tromey.com>
13491
13492 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13493 Remove constants.
13494 * tui/tui-winsource.h (struct tui_source_window_base)
13495 <tui_source_window_base>: Remove parameter.
13496 * tui/tui-winsource.c
13497 (tui_source_window_base::tui_source_window_base): Remove
13498 parameter.
13499 (tui_source_window_base::refill): Update.
13500 * tui/tui-stack.h (struct tui_locator_window)
13501 <tui_locator_window>: Update.
13502 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13503 Default the constructor.
13504 * tui/tui-regs.h (struct tui_data_item_window)
13505 <tui_data_item_window>: Default the constructor.
13506 (struct tui_data_window) <tui_data_window>: Likewise.
13507 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13508 Default the constructor.
13509 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13510 Default the constructor.
13511 <type>: Remove.
13512 (struct tui_win_info) <tui_win_info>: Default the constructor.
13513 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13514 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13515 Default the constructor.
13516
865a5aec
TT
135172020-02-22 Tom Tromey <tom@tromey.com>
13518
13519 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13520 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13521 * tui/tui-win.c (tui_resize_all): Don't call
13522 tui_delete_invisible_windows.
13523 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13524 done.
13525 (tui_set_layout): Update.
13526 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13527 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13528 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13529
e098d18c
TT
135302020-02-22 Tom Tromey <tom@tromey.com>
13531
13532 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13533 correctly.
13534
eb9c8874
TT
135352020-02-22 Tom Tromey <tom@tromey.com>
13536
13537 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13538
7eed1a8e
TT
135392020-02-22 Tom Tromey <tom@tromey.com>
13540
13541 * tui/tui-winsource.h (struct tui_source_window_iterator)
13542 <inner_iterator>: New etytypedef.
13543 <tui_source_window_iterator>: Take "end" parameter.
13544 <tui_source_window_iterator>: Take iterator.
13545 <operator*, advance>: Update.
13546 <m_iter>: Change type.
13547 <m_end>: New field.
13548 (struct tui_source_windows) <begin, end>: Update.
13549 * tui/tui-layout.c (tui_windows): New global.
13550 (tui_apply_current_layout): Clear tui_windows.
13551 (tui_layout_window::apply): Update tui_windows.
13552 * tui/tui-data.h (tui_windows): Declare.
13553 (all_tui_windows): Now inline function.
13554 (class tui_window_iterator, struct all_tui_windows): Remove.
13555
7c043ba6
TT
135562020-02-22 Tom Tromey <tom@tromey.com>
13557
13558 PR tui/17850:
13559 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13560 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13561 "height" argument.
13562 (class tui_layout_window) <get_sizes>: Likewise.
13563 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13564 argument.
13565 <get_sizes>: Add "height" argument.
13566 <m_vertical>: New field.
13567 * tui/tui-layout.c (tui_layout_split::clone): Update.
13568 (tui_layout_split::get_sizes): Add "height" argument.
13569 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13570 (tui_new_layout_command): Parse "-horizontal".
13571 (_initialize_tui_layout): Update help string.
13572 (tui_layout_split::specification): Add "-horizontal" when needed.
13573 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13574 argument.
13575 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13576 New methods.
13577
6bc56648
TT
135782020-02-22 Tom Tromey <tom@tromey.com>
13579
13580 * tui/tui-layout.h (enum tui_adjust_result): New.
13581 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13582 (class tui_layout_window) <adjust_size>: Return
13583 tui_adjust_result. Rewrite.
13584 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13585 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13586
c22fef7e
TT
135872020-02-22 Tom Tromey <tom@tromey.com>
13588
13589 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13590 parameter and return types.
13591 (class tui_layout_base) <specification>: Add "depth".
13592 (class tui_layout_window) <specification>: Add "depth".
13593 (class tui_layout_split) <specification>: Add "depth".
13594 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13595 and return types.
13596 (tui_new_layout_command): Parse sub-layouts.
13597 (_initialize_tui_layout): Update help string.
13598 (tui_layout_window::specification): Add "depth".
13599 (add_layout_command): Update.
13600
ee325b61
TT
136012020-02-22 Tom Tromey <tom@tromey.com>
13602
13603 * NEWS: Add "tui new-layout" item.
13604 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13605 Add new-layout command to help text.
13606 (validate_window_name): New function.
13607 (tui_new_layout_command): New function.
13608 (_initialize_tui_layout): Register "new-layout".
13609 (tui_layout_window::specification): New method.
13610 (tui_layout_window::specification): New method.
13611 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13612 method.
13613 (class tui_layout_window) <specification>: New method.
13614 (class tui_layout_split) <specification>: New method.
13615
416eb92d
TT
136162020-02-22 Tom Tromey <tom@tromey.com>
13617
13618 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13619 * tui/tui-win.c (window_name_completer): Update comment.
13620 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13621 Declare method.
13622 (class tui_layout_window) <replace_window>: Likewise.
13623 (class tui_layout_split) <replace_window>: Likewise.
13624 (tui_set_layout): Don't declare.
13625 (tui_set_initial_layout): Declare function.
13626 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13627 (asm_regs_layout): New globals.
13628 (tui_current_layout, show_layout): Remove.
13629 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13630 (find_layout, tui_apply_layout): New function.
13631 (layout_completer): Remove.
13632 (tui_next_layout): Reimplement.
13633 (tui_next_layout_command): New function.
13634 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13635 (tui_regs_layout): Reimplement.
13636 (tui_regs_layout_command): New function.
13637 (extract_display_start_addr): Rewrite.
13638 (next_layout, prev_layout): Remove.
13639 (tui_layout_window::replace_window): New method.
13640 (tui_layout_split::replace_window): New method.
13641 (destroy_layout): New function.
13642 (layout_list): New global.
13643 (add_layout_command): New function.
13644 (initialize_layouts): Update.
13645 (tui_layout_command): New function.
13646 (_initialize_tui_layout): Install "layout" commands.
13647 * tui/tui-data.h (enum tui_layout_type): Remove.
13648 (tui_current_layout): Don't declare.
13649
0dbc2fc7
TT
136502020-02-22 Tom Tromey <tom@tromey.com>
13651
13652 * tui/tui-regs.c (tui_reg_layout): Remove.
13653 (tui_reg_command): Use tui_regs_layout.
13654 * tui/tui-layout.h (tui_reg_command): Declare.
13655 * tui/tui-layout.c (tui_reg_command): New function.
13656
5afe342e
TT
136572020-02-22 Tom Tromey <tom@tromey.com>
13658
13659 * tui/tui.c (tui_rl_delete_other_windows): Call
13660 tui_remove_some_windows.
13661 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13662 Declare method.
13663 (class tui_layout_window) <remove_windows>: New method.
13664 (class tui_layout_split) <remove_windows>: Declare.
13665 (tui_remove_some_windows): Declare.
13666 * tui/tui-layout.c (tui_remove_some_windows): New function.
13667 (tui_layout_split::remove_windows): New method.
13668
427326a8
TT
136692020-02-22 Tom Tromey <tom@tromey.com>
13670
13671 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13672 * tui/tui-layout.h (tui_next_layout): Declare.
13673 * tui/tui-layout.c (tui_next_layout): New function.
13674
3fe12b6d
TT
136752020-02-22 Tom Tromey <tom@tromey.com>
13676
13677 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13678 correct coordinates.
13679
59b8b5d2
TT
136802020-02-22 Tom Tromey <tom@tromey.com>
13681
13682 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13683 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13684 DATA_WIN case.
13685
2a3d458b
TT
136862020-02-22 Tom Tromey <tom@tromey.com>
13687
13688 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13689 TUI_DISASM_WIN, not tui_win_list.
13690
3f0cbb04
TT
136912020-02-22 Tom Tromey <tom@tromey.com>
13692
13693 * valprint.c (generic_val_print_enum_1)
13694 (val_print_type_code_flags): Style member names.
13695 * rust-lang.c (val_print_struct, rust_print_enum)
13696 (rust_print_struct_def, rust_internal_print_type): Style member
13697 names.
13698 * p-valprint.c (pascal_object_print_value_fields): Style member
13699 names. Only call fprintf_symbol_filtered for static members.
13700 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13701 * f-valprint.c (f_val_print): Style member names.
13702 * f-typeprint.c (f_type_print_base): Style member names.
13703 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13704 call fprintf_symbol_filtered for static members.
13705 (cp_print_class_member): Style member names.
13706 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13707 member names.
13708 * ada-valprint.c (ada_print_scalar): Style enum names.
13709 (ada_val_print_enum): Likewise.
13710 * ada-typeprint.c (print_enum_type): Style enum names.
13711
d4d947ae
TT
137122020-02-21 Tom Tromey <tom@tromey.com>
13713
13714 * psympriv.h (struct partial_symtab): Update comment.
13715
e94e944b
TT
137162020-02-21 Tom Tromey <tromey@adacore.com>
13717
13718 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13719 type is CORE_ADDR.
13720
1eb73179
TV
137212020-02-21 Tom de Vries <tdevries@suse.de>
13722
13723 PR gdb/25534
13724 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13725 if dependencies[i]->user != NULL.
13726
4f180d53
AT
137272020-02-21 Ali Tamur <tamur@google.com>
13728
13729 * dwarf2/read.c (dwarf2_name): Add null check.
13730
22b6cd70
TT
137312020-02-20 Tom Tromey <tom@tromey.com>
13732
13733 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13734 ">=", in binary search.
13735 (dwarf2_find_containing_comp_unit): New overload.
13736 (run_test): New self-test.
13737 (_initialize_dwarf2_read): Register new test.
13738
bd0cf5a6
NC
137392020-02-20 Nelson Chu <nelson.chu@sifive.com>
13740
13741 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13742 * riscv-tdep.h: Likewise.
13743 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13744 rv32-only CSR.
13745 * features/riscv/64bit-csr.xml: Regenerated.
13746
3f702acd
SDJ
137472020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13748 Tom Tromey <tom@tromey.com>
13749
13750 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13751 of 'fputc_unfiltered'.
13752 (putchar_unfiltered): Call 'fputc_unfiltered'.
13753 (fputc_unfiltered): Call 'fputs_unfiltered'.
13754
d13c7322
AB
137552020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13756
13757 * config.in: Regenerate.
13758 * configure: Regenerate.
13759 * configure.ac: Add --with-python-libdir option.
13760 * main.c: Use WITH_PYTHON_LIBDIR.
13761
869d8950
TT
137622020-02-19 Tom Tromey <tom@tromey.com>
13763
13764 * symtab.c (general_symbol_info::compute_and_set_names): Use
13765 obstack_strndup. Simplify call to symbol_set_demangled_name.
13766
298e9637
SM
137672020-02-19 Simon Marchi <simon.marchi@efficios.com>
13768
13769 * dwarf2/read.c (allocate_signatured_type_table,
13770 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13771 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13772 Remove objfile parameter, update all callers.
13773
08410482
DE
137742020-02-19 Doug Evans <dje@google.com>
13775
13776 PR rust/25535
13777 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13778 rust_enum_variant calculation.
13779
dfdeeca1
TT
137802020-02-19 Tom Tromey <tromey@adacore.com>
13781
13782 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13783
2ef5453b
TT
137842020-02-19 Tom Tromey <tromey@adacore.com>
13785
13786 * ada-lang.c (cache_symbol): Use obstack_strdup.
13787
9f1528a1
AB
137882020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13789
13790 * configure: Regenerate.
13791
d3c22fa8
TT
137922020-02-19 Tom Tromey <tromey@adacore.com>
13793
13794 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13795 NULL check.
13796
bf84f706
MR
137972020-02-19 Maciej W. Rozycki <macro@wdc.com>
13798
13799 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13800
d1c9b20f
AB
138012020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13802
13803 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13804 if GDBSERVER is not defined.
13805 (riscv_tdesc_cache): Likewise, also store const target_desc.
13806 (STATIC_IN_GDB): Define.
13807 (riscv_create_target_description): Update declaration with
13808 STATIC_IN_GDB.
13809 (riscv_lookup_target_description): New function, only define if
13810 GDBSERVER is not defined.
13811 * arch/riscv.h (riscv_create_target_description): Declare only
13812 when GDBSERVER is defined.
13813 (riscv_lookup_target_description): New declaration when GDBSERVER
13814 is not defined.
13815 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13816 (riscv_linux_read_features): ...this, and return
13817 riscv_gdbarch_features instead of target_desc.
13818 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13819 (riscv_linux_read_description): Rename to...
13820 (riscv_linux_read_features): ...this.
13821 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13822 Update to use riscv_gdbarch_features and
13823 riscv_lookup_target_description.
13824 * riscv-tdep.c (riscv_find_default_target_description): Use
13825 riscv_lookup_target_description instead of
13826 riscv_create_target_description.
13827
373d7ac0
SM
138282020-02-18 Simon Marchi <simon.marchi@efficios.com>
13829
13830 * valprint.c (generic_val_print_enum_1): When printing a flag
13831 enum with value 0 and there is no enumerator with value 0, print
13832 just "0" instead of "(unknown: 0x0)".
13833
b29a2df0
SM
138342020-02-18 Simon Marchi <simon.marchi@efficios.com>
13835
13836 * valprint.c (generic_val_print_enum_1): Print unknown part of
13837 flag enum in hex.
13838
6740f0cc
SM
138392020-02-18 Simon Marchi <simon.marchi@efficios.com>
13840
13841 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13842 flag enums to contain duplicate enumerators.
13843 * valprint.c (generic_val_print_enum_1): Update comment.
13844
edd45eb0
SM
138452020-02-18 Simon Marchi <simon.marchi@efficios.com>
13846
13847 * dwarf2/read.c: Include "count-one-bits.h".
13848 (update_enumeration_type_from_children): If an enumerator has
13849 multiple bits set, don't treat the enumeration as a "flag enum".
13850 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13851 of flag enums have 0 or 1 bit set.
13852
6d0cf446
BE
138532020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13854
13855 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13856 conversion.
13857 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13858 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13859 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13860 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13861 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13862
7001c1b7
SM
138632020-02-18 Simon Marchi <simon.marchi@efficios.com>
13864
13865 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13866
fdb61c6c
SM
138672020-02-14 Simon Marchi <simon.marchi@efficios.com>
13868
13869 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13870 displaced_step_closure_up.
13871 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13872 (struct displaced_step_closure_up):
13873 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13874 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13875 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13876 Likewise.
13877 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13878 * gdbarch.c, gdbarch.h: Re-generate.
13879 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13880 displaced_step_closure_up.
13881 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13882 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13883 * infrun.h (displaced_step_closure_up): New type alias.
13884 (struct displaced_step_inferior_state) <step_closure>: Change
13885 type to displaced_step_closure_up.
13886 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13887 displaced_step_closure_up.
13888 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13889
a4a38eb4
TT
138902020-02-14 Tom Tromey <tom@tromey.com>
13891
13892 * minidebug.c (gnu_debug_key): New global.
13893 (find_separate_debug_file_in_section): Use it.
13894
e8217e61
SM
138952020-02-14 Simon Marchi <simon.marchi@efficios.com>
13896
13897 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13898 std::unique_ptr.
13899 * gdbarch.c: Re-generate.
13900 * gdbarch.h: Re-generate.
13901 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13902 change.
13903 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13904 type to std::unique_ptr.
13905 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13906 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13907 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13908 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13909 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13910 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13911 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13912 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13913 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13914
d8d83535
SM
139152020-02-14 Simon Marchi <simon.marchi@efficios.com>
13916
13917 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13918 std::unique_ptr.
13919 (displaced_step_clear): Rename to...
13920 (displaced_step_reset): ... this. Just call displaced->reset ().
13921 (displaced_step_clear_cleanup): Rename to...
13922 (displaced_step_reset_cleanup): ... this.
13923 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13924 (displaced_step_fixup): Likewise.
13925 (resume_1): Likewise.
13926 (handle_inferior_event): Restore child's memory before calling
13927 displaced_step_fixup on the parent.
13928 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13929 to std::unique_ptr.
13930 <step_closure>: Change type to std::unique_ptr.
13931
5f661e03
SM
139322020-02-14 Simon Marchi <simon.marchi@efficios.com>
13933
13934 * arm-tdep.c: Include count-one-bits.h.
13935 (cleanup_block_store_pc): Use count_one_bits.
13936 (cleanup_block_load_pc): Use count_one_bits.
13937 (arm_copy_block_xfer): Use count_one_bits.
13938 (thumb2_copy_block_xfer): Use count_one_bits.
13939 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13940 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13941 (thumb_get_next_pcs_raw): Use count_one_bits.
13942 (arm_get_next_pcs_raw): Use count_one_bits_l.
13943 * arch/arm.c (bitcount): Remove.
13944 * arch/arm.h (bitcount): Remove.
13945
8084e579
TT
139462020-02-14 Tom Tromey <tromey@adacore.com>
13947
13948 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13949 Update.
13950 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13951 * dwarf2/loc.c (call_site_find_chain_1): Return
13952 unique_xmalloc_ptr.
13953 (call_site_find_chain): Likewise.
13954
258bf0ee
RB
139552020-02-14 Richard Biener <rguenther@suse.de>
13956
13957 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13958 on expression with division operators.
13959
f98a8458
AKS
139602020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13961
13962 * MAINTAINERS (Write After Approval): Adding myself.
13963
d1437c0e
TT
139642020-02-12 Tom Tromey <tom@tromey.com>
13965
13966 * event-loop.c (event_data, gdb_event, event_handler_func):
13967 Remove.
13968
3d4560f7
TT
139692020-02-12 Tom Tromey <tom@tromey.com>
13970
13971 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13972 (dwarf2_frame_objfile_data): Add comment.
13973 (find_comp_unit, set_comp_unit): New functions.
13974 (dwarf2_frame_find_fde): Use find_comp_unit.
13975 (dwarf2_build_frame_info): Use set_comp_unit.
13976
21982304
TT
139772020-02-12 Tom Tromey <tom@tromey.com>
13978
13979 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13980 (comp_unit): Don't initialize objfile.
13981 (execute_cfa_program): Add text_offset parameter.
13982 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13983 (dwarf2_frame_cache): Update.
13984 (dwarf2_build_frame_info): Don't set "objfile" member.
13985
4debb237
TT
139862020-02-12 Tom Tromey <tom@tromey.com>
13987
13988 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13989 (decode_frame_entry): Likewise.
13990 (dwarf2_build_frame_info): Update.
13991
0d404d44
TT
139922020-02-12 Tom Tromey <tom@tromey.com>
13993
13994 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13995 (decode_frame_entry_1): Use the comp_unit obstack.
13996
a7a3ae5c
TT
139972020-02-12 Tom Tromey <tom@tromey.com>
13998
13999 * dwarf2/frame.c (struct comp_unit): Add initializers and
14000 constructor.
14001 (dwarf2_frame_objfile_data): Store a comp_unit.
14002 (dwarf2_frame_find_fde): Update.
14003 (dwarf2_build_frame_info): Use "new".
14004
a9d65418
TT
140052020-02-12 Tom Tromey <tom@tromey.com>
14006
14007 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14008 (dwarf2_fde_table): Typedef for std::vector.
14009 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14010 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14011 (decode_frame_entry): Update.
14012 (dwarf2_build_frame_info): Use "new".
14013
7559c217
CB
140142020-02-12 Christian Biesinger <cbiesinger@google.com>
14015
14016 * arm-tdep.c (arm_gdbarch_init): Update.
14017 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14018 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14019 have_neon, is_m>: Change to bool.
14020
aeefc73c
CB
140212020-02-12 Christian Biesinger <cbiesinger@google.com>
14022
14023 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14024
d27b8e5f
TT
140252020-02-12 Tom Tromey <tom@tromey.com>
14026
14027 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14028
cd5900f3
HD
140292020-02-12 Hannes Domani <ssbssa@yahoo.de>
14030
14031 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14032 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14033
f056b22b
TT
140342020-02-11 Tom Tromey <tom@tromey.com>
14035
14036 * psymtab.h: Update comment.
14037
f92ff6b5
TT
140382020-02-11 Tom Tromey <tom@tromey.com>
14039
14040 * gdb_obstack.h (struct auto_obstack): Use
14041 DISABLE_COPY_AND_ASSIGN.
14042
3fd6912b
TT
140432020-02-11 Tom Tromey <tom@tromey.com>
14044
14045 * dwarf2/frame.h (struct objfile): Don't forward declare.
14046
69ed9b74
CB
140472020-02-11 Christian Biesinger <cbiesinger@google.com>
14048
14049 * cris-tdep.c (cris_supply_gregset): Change signature to match
14050 what struct regset expects.
14051 (cris_regset): New struct.
14052 (fetch_core_registers): Remove.
14053 (cris_iterate_over_regset_sections): New function.
14054 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14055 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14056
bda874f6
CB
140572020-02-11 Christian Biesinger <cbiesinger@google.com>
14058
14059 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14060 registers.
14061
754e1564
CB
140622020-02-11 Christian Biesinger <cbiesinger@google.com>
14063
14064 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14065
8ddd8e0e
SM
140662020-02-11 Simon Marchi <simon.marchi@efficios.com>
14067
14068 * configure: Re-generate.
14069
898e7f60
SM
140702020-02-11 Simon Marchi <simon.marchi@efficios.com>
14071
14072 * configure: Re-generate.
14073
58df732b
SM
140742020-02-11 Simon Marchi <simon.marchi@efficios.com>
14075
14076 * acinclude: Update warning.m4 path.
14077 * warning.m4: Move to gdbsupport.
14078
da5bd37e
TT
140792020-02-11 Tom Tromey <tromey@adacore.com>
14080
14081 * remote.c (remote_console_output): Update.
14082 * printcmd.c (printf_command): Update.
14083 * event-loop.c (gdb_wait_for_event): Update.
14084 * linux-nat.c (sigchld_handler): Update.
14085 * remote-sim.c (gdb_os_write_stdout): Update.
14086 (gdb_os_flush_stdout): Update.
14087 (gdb_os_flush_stderr): Update.
14088 (gdb_os_write_stderr): Update.
14089 * exceptions.c (print_exception): Update.
14090 * remote-fileio.c (remote_fileio_func_read): Update.
14091 (remote_fileio_func_write): Update.
14092 * tui/tui.c (tui_enable): Update.
14093 * tui/tui-interp.c (tui_interp::init): Update.
14094 * utils.c (init_page_info): Update.
14095 (putchar_unfiltered, fputc_unfiltered): Update.
14096 (gdb_flush): Update.
14097 (emit_style_escape): Update.
14098 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14099 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14100 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14101 (stderr_file::write): Update.
14102 (stderr_file::puts): Update.
14103 * ui-file.h (ui_file_isatty, ui_file_write)
14104 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14105 (ui_file_puts): Don't declare.
14106
85f0dd3c
TV
141072020-02-10 Tom de Vries <tdevries@suse.de>
14108
14109 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14110 sentinel to char *.
14111
2e927613
TV
141122020-02-09 Tom de Vries <tdevries@suse.de>
14113
14114 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14115 filename if it matches "<artificial>".
14116
6bafc845
HD
141172020-02-09 Hannes Domani <ssbssa@yahoo.de>
14118
14119 * windows-tdep.c (struct enum_value_name): New struct.
14120 (create_enum): New function.
14121 (windows_get_siginfo_type): Create and use enum types.
14122
7928d571
HD
141232020-02-09 Hannes Domani <ssbssa@yahoo.de>
14124
14125 * NEWS: Mention $_siginfo support for Windows.
14126 * windows-nat.c (handle_exception): Set siginfo_er.
14127 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14128 (windows_xfer_siginfo): New function.
14129 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14130 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14131 (init_windows_gdbarch_data): New function.
14132 (get_windows_gdbarch_data): New function.
14133 (windows_get_siginfo_type): New function.
14134 (windows_init_abi): Register windows_get_siginfo_type.
14135 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14136
6751ebae
TT
141372020-02-08 Tom Tromey <tom@tromey.com>
14138
14139 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14140 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14141 <keep>: Declare method.
14142 <m_keep>: Remove member.
14143 <~cutu_reader>: Remove.
14144 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14145 (cutu_reader::cutu_reader): Update.
14146 (cutu_reader::keep): Rename from ~cutu_reader.
14147 (process_psymtab_comp_unit, build_type_psymtabs_1)
14148 (process_skeletonless_type_unit, load_partial_comp_unit)
14149 (load_full_comp_unit, dwarf2_read_addr_index)
14150 (read_signatured_type): Update.
14151
135f5437
TT
141522020-02-08 Tom Tromey <tom@tromey.com>
14153
14154 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14155 "want_partial_unit" parameter.
14156 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14157 Inline check for DW_TAG_partial_unit.
14158 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14159
9f66ff1c
TT
141602020-02-08 Tom Tromey <tom@tromey.com>
14161
14162 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14163 read.c.
14164 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14165 read.c.
14166
c8a7a66f
TT
141672020-02-08 Tom Tromey <tom@tromey.com>
14168
14169 * dwarf2/read.c (read_address): Move to comp-unit.c.
14170 (dwarf2_rnglists_process, dwarf2_ranges_process)
14171 (read_attribute_value, dwarf_decode_lines_1)
14172 (var_decode_location, decode_locdesc): Update.
14173 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14174 read.c. Remove "cu" parameter.
14175 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14176 method.
14177
8266302d
TT
141782020-02-08 Tom Tromey <tom@tromey.com>
14179
14180 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14181 (read_indirect_line_string): Update.
14182 * dwarf2/comp-unit.c (read_offset): Remove.
14183 (read_comp_unit_head): Update.
14184 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14185 method.
14186 (read_offset): Don't declare.
14187
4057dfde
TT
141882020-02-08 Tom Tromey <tom@tromey.com>
14189
14190 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14191 * dwarf2/read.c (struct comp_unit_head): Move to
14192 dwarf2/comp-unit.h.
14193 (enum class rcuh_kind): Move to comp-unit.h.
14194 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14195 (read_comp_unit_head, error_check_comp_unit_head)
14196 (read_and_check_comp_unit_head): Move to comp-unit.c.
14197 (read_offset, dwarf_unit_type_name): Likewise.
14198 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14199 (cutu_reader::cutu_reader, read_call_site_scope)
14200 (find_partial_die, follow_die_offset): Update.
14201 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14202
24aa364d
TT
142032020-02-08 Tom Tromey <tom@tromey.com>
14204
14205 * dwarf2/read.c (read_offset_1): Move to leb.c.
14206 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14207 (dwarf_decode_macro_bytes): Update.
14208 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14209 * dwarf2/leb.h (read_offset): Declare.
14210
2c7d5afc
TT
142112020-02-08 Tom Tromey <tom@tromey.com>
14212
14213 * dwarf2/read.c (dwarf2_section_size): Remove.
14214 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14215 Update.
14216 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14217
4075cb26
TT
142182020-02-08 Tom Tromey <tom@tromey.com>
14219
14220 * dwarf2/read.c (read_initial_length): Move to leb.c.
14221 * dwarf2/leb.h (read_initial_length): Declare.
14222 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14223 handle_nonstd parameter.
14224 * dwarf2/frame.c (read_initial_length): Remove.
14225 (decode_frame_entry_1): Update.
14226
09ba997f
TT
142272020-02-08 Tom Tromey <tom@tromey.com>
14228
14229 * dwarf2/loc.c (dwarf2_find_location_expression)
14230 (dwarf_evaluate_loc_desc::get_tls_address)
14231 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14232 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14233 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14234 (dwarf2_compile_property_to_c)
14235 (dwarf2_loc_desc_get_symbol_read_needs)
14236 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14237 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14238 (loclist_describe_location, loclist_tracepoint_var_ref)
14239 (loclist_generate_c_location): Update.
14240 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14241 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14242 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14243 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14244 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14245 (dwarf2_per_cu_data::addr_size)
14246 (dwarf2_per_cu_data::ref_addr_size)
14247 (dwarf2_per_cu_data::text_offset)
14248 (dwarf2_per_cu_data::addr_type): Now methods.
14249 (per_cu_header_read_in): Make per_cu "const".
14250 (dwarf2_version): Remove.
14251 (dwarf2_per_cu_data::int_type): Now a method.
14252 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14253 (set_die_type, read_array_type, read_subrange_index_type)
14254 (read_tag_string_type, read_subrange_type): Update.
14255 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14256 offset_size, ref_addr_size, text_offset, addr_type, version,
14257 objfile, int_type, addr_sized_int_type>: Declare methods.
14258
96c738c0
TT
142592020-02-08 Tom Tromey <tom@tromey.com>
14260
14261 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14262 Move earlier.
14263
8fdd972c
TT
142642020-02-08 Tom Tromey <tom@tromey.com>
14265
14266 * dwarf2/read.h (dwarf_line_debug): Declare.
14267 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14268 * dwarf2/read.c: Move line_header code to new files.
14269 (dwarf_line_debug): No longer static.
14270 * dwarf2/line-header.c: New file.
14271 * dwarf2/line-header.h: New file.
14272
03075812
TT
142732020-02-08 Tom Tromey <tom@tromey.com>
14274
14275 * dwarf2/read.c (struct line_header) <file_full_name,
14276 file_file_name>: Return unique_xmalloc_ptr.
14277 (line_header::file_file_name): Update.
14278 (line_header::file_full_name): Update.
14279 (dw2_get_file_names_reader): Update.
14280 (macro_start_file): Update.
14281
bb822404
TT
142822020-02-08 Tom Tromey <tom@tromey.com>
14283
14284 * dwarf2/read.c (struct line_header) <file_full_name,
14285 file_file_name>: Declare methods.
14286 (dw2_get_file_names_reader): Update.
14287 (file_file_name): Now a method.
14288 (file_full_name): Likewise.
14289 (macro_start_file): Update.
14290
009b64fc
TT
142912020-02-08 Tom Tromey <tom@tromey.com>
14292
14293 * dwarf2/read.c (dwarf_always_disassemble)
14294 (show_dwarf_always_disassemble): Move to loc.c.
14295 (_initialize_dwarf2_read): Move "always-disassemble" registration
14296 to loc.c.
14297 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14298 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14299 static.
14300 (show_dwarf_always_disassemble): Move from read.c.
14301 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14302
5895093f
TT
143032020-02-08 Tom Tromey <tom@tromey.com>
14304
14305 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14306 (create_quick_file_names_table): Return htab_up.
14307 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14308 Update.
14309 * dwarf2/read.h (struct dwarf2_per_objfile)
14310 <quick_file_names_table>: Now htab_up.
14311
b3b32279
TT
143122020-02-08 Tom Tromey <tom@tromey.com>
14313
14314 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14315
1d33d811
TT
143162020-02-08 Tom Tromey <tom@tromey.com>
14317
14318 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14319 Rewrite.
14320 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14321 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14322 (abbrev_table::abbrev_table): No longer inline.
14323 (ABBREV_HASH_SIZE): Remove.
14324 (abbrev_table::m_abbrevs): Now an htab_up.
14325
86de1d91
TT
143262020-02-08 Tom Tromey <tom@tromey.com>
14327
14328 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14329 (cutu_reader): Update.
14330 (build_type_psymtabs_1): Update.
14331 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14332 (abbrev_table::alloc_abbrev): Update.
14333 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14334 (abbrev_table::read): New static method, renamed from
14335 abbrev_table_read_table.
14336 (abbrev_table::alloc_abbrev)
14337 (abbrev_table::add_abbrev): Now private.
14338 (abbrev_table::abbrev_table): Now private.
14339 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14340
0335378b
TT
143412020-02-08 Tom Tromey <tom@tromey.com>
14342
14343 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14344 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14345 htab_up.
14346
48b490f2
TT
143472020-02-08 Tom Tromey <tom@tromey.com>
14348
14349 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14350 htab_up.
14351 (lookup_dwo_unit_in_dwp): Update.
14352 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14353 on obstack.
14354
bc68fb19
TT
143552020-02-08 Tom Tromey <tom@tromey.com>
14356
14357 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14358 obstack.
14359
d15acc42
TT
143602020-02-08 Tom Tromey <tom@tromey.com>
14361
14362 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14363 line_header_hash.
14364 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14365 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14366 Change type to htab_up.
14367
eaa5fa8b
TT
143682020-02-08 Tom Tromey <tom@tromey.com>
14369
14370 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14371 htab_up. Don't allocate on obstack.
14372 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14373 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14374 Change type to htab_up.
14375
b0b6a987
TT
143762020-02-08 Tom Tromey <tom@tromey.com>
14377
14378 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14379 Change type to htab_up.
14380 * dwarf2/read.c (create_signatured_type_table_from_index)
14381 (create_signatured_type_table_from_debug_names)
14382 (create_all_type_units, add_type_unit)
14383 (lookup_dwo_signatured_type, lookup_signatured_type)
14384 (process_skeletonless_type_unit): Update.
14385 (create_debug_type_hash_table, create_debug_types_hash_table):
14386 Change type of types_htab.
14387 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14388 htab_up. Don't allocate on obstack.
14389 (create_cus_hash_table): Change type of cus_htab parameter.
14390 (struct dwo_file) <cus, tus>: Now htab_up.
14391 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14392 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14393 (queue_and_load_all_dwo_tus): Update.
14394 * dwarf2/index-write.c (write_gdbindex): Update.
14395 (write_debug_names): Update.
14396
39856def
TT
143972020-02-08 Tom Tromey <tom@tromey.com>
14398
14399 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14400 dwarf2/read.c. Remove "next" member. Add constructor ntad
14401 destructor.
14402 (struct dwarf2_per_objfile) <queue>: New member.
14403 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14404 dwarf2/read.h.
14405 (dwarf2_queue, dwarf2_queue_tail): Remove.
14406 (class dwarf2_queue_guard): Add parameter to constructor. Use
14407 DISABLE_COPY_AND_ASSIGN.
14408 <m_per_objfile>: New member.
14409 <~dwarf2_queue_guard>: Rewrite.
14410 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14411 Update.
14412 (~dwarf2_queue_item): New.
14413
3e225074
TT
144142020-02-08 Tom Tromey <tom@tromey.com>
14415
14416 * dwarf2/read.c (struct die_info) <has_children>: New member.
14417 (dw2_get_file_names_reader): Remove has_children.
14418 (dw2_get_file_names): Update.
14419 (read_cutu_die_from_dwo): Remove has_children.
14420 (cutu_reader::init_tu_and_read_dwo_dies)
14421 (cutu_reader::cutu_reader): Update.
14422 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14423 Remove has_children.
14424 (build_type_psymtabs_1, process_skeletonless_type_unit)
14425 (load_partial_comp_unit, load_full_comp_unit): Update.
14426 (create_dwo_cu_reader): Remove has_children.
14427 (create_cus_hash_table, read_die_and_children): Update.
14428 (read_full_die_1,read_full_die): Remove has_children.
14429 (read_signatured_type): Update.
14430 (class cutu_reader) <has_children>: Remove.
14431
82ca8957
TT
144322020-02-08 Tom Tromey <tom@tromey.com>
14433
14434 * dwarf2/expr.c: Rename from dwarf2expr.c.
14435 * dwarf2/expr.h: Rename from dwarf2expr.h.
14436 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14437 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14438 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14439 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14440 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14441 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14442 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14443 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14444 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14445 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14446 * dwarf2/loc.c: Rename from dwarf2loc.c.
14447 * dwarf2/loc.h: Rename from dwarf2loc.h.
14448 * dwarf2/read.c: Rename from dwarf2read.c.
14449 * dwarf2/read.h: Rename from dwarf2read.h.
14450 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14451 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14452 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14453 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14454 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14455 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14456 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14457 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14458 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14459 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14460 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14461 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14462 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14463 Update.
14464 * Makefile.in (COMMON_SFILES): Update.
14465 (HFILES_NO_SRCDIR): Update.
14466
9e35d499
TT
144672020-02-08 Tom Tromey <tom@tromey.com>
14468
14469 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14470 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14471
1eba2311
TT
144722020-02-08 Tom Tromey <tom@tromey.com>
14473
14474 * dwarf2read.h (struct die_info): Don't declare.
14475
e41c2da2
TT
144762020-02-08 Tom Tromey <tom@tromey.com>
14477
14478 * dwarf2read.h (die_info_ptr): Remove typedef.
14479
4fc6c0d5
TT
144802020-02-08 Tom Tromey <tom@tromey.com>
14481
14482 * dwarf2read.c (read_call_site_scope)
14483 (handle_data_member_location, dwarf2_add_member_fn)
14484 (mark_common_block_symbol_computed, read_common_block)
14485 (attr_to_dynamic_prop, partial_die_info::read)
14486 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14487 (dwarf2_symbol_mark_computed, set_die_type): Update.
14488 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14489 method.
14490 (attr_form_is_block): Don't declare.
14491 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14492
cd6c91b4
TT
144932020-02-08 Tom Tromey <tom@tromey.com>
14494
14495 * dwarf2read.c (dwarf2_find_base_address, )
14496 (read_call_site_scope, rust_containing_type)
14497 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14498 (handle_data_member_location, dwarf2_add_member_fn)
14499 (get_alignment, read_structure_type, process_structure_scope)
14500 (mark_common_block_symbol_computed, read_common_block)
14501 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14502 (partial_die_info::read, read_attribute_value, new_symbol)
14503 (lookup_die_type, dwarf2_get_ref_die_offset)
14504 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14505 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14506 (dwarf2_symbol_mark_computed): Update.
14507 * dwarf2/attribute.h (struct attribute) <value_as_address,
14508 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14509 methods.
14510 (value_as_address, attr_form_is_section_offset)
14511 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14512 * dwarf2/attribute.c (attribute::value_as_address)
14513 (attribute::form_is_section_offset, attribute::form_is_constant)
14514 (attribute::form_is_ref): Now methods.
14515
162dce55
TT
145162020-02-08 Tom Tromey <tom@tromey.com>
14517
14518 * dwarf2read.c (struct attribute, DW_STRING)
14519 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14520 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14521 (attr_form_is_block, attr_form_is_section_offset)
14522 (attr_form_is_constant, attr_form_is_ref): Move.
14523 * dwarf2/attribute.h: New file.
14524 * dwarf2/attribute.c: New file, from dwarf2read.c.
14525 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14526
3054dd54
TT
145272020-02-08 Tom Tromey <tom@tromey.com>
14528
14529 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14530 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14531 Move.
14532 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14533 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14534 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14535 abbrev.c.
14536 * dwarf2/abbrev.h: New file.
14537 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14538 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14539
96b79293
TT
145402020-02-08 Tom Tromey <tom@tromey.com>
14541
14542 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14543 (dwarf2_section_size, dwarf2_get_section_info)
14544 (create_signatured_type_table_from_debug_names)
14545 (create_addrmap_from_aranges, read_debug_names_from_section)
14546 (get_gdb_index_contents_from_section, read_comp_unit_head)
14547 (error_check_comp_unit_head, read_abbrev_offset)
14548 (create_debug_type_hash_table, init_cu_die_reader)
14549 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14550 (read_comp_units_from_section, create_cus_hash_table)
14551 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14552 (create_dwp_v2_section, dwarf2_rnglists_process)
14553 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14554 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14555 (read_indirect_string_from_dwz, read_addr_index_1)
14556 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14557 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14558 (fill_in_loclist_baton): Update.
14559 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14560 get_containing_section, get_bfd_owner, get_bfd_section,
14561 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14562 (dwarf2_read_section, get_section_name, get_section_file_name)
14563 (get_containing_section, get_section_bfd_owner)
14564 (get_section_bfd_section, get_section_name, get_section_file_name)
14565 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14566 declare.
14567 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14568 (dwarf2_section_info::get_bfd_owner)
14569 (dwarf2_section_info::get_bfd_section)
14570 (dwarf2_section_info::get_name)
14571 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14572 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14573 (dwarf2_section_info::read): Now methods.
14574 * dwarf-index-write.c (class debug_names): Update.
14575
2c86cff9
TT
145762020-02-08 Tom Tromey <tom@tromey.com>
14577
14578 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14579 Move to dwarf2/section.h.
14580 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14581 (get_section_bfd_section, get_section_name)
14582 (get_section_file_name, get_section_id, get_section_flags)
14583 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14584 dwarf2/section.c.
14585 * dwarf2/section.h: New file.
14586 * dwarf2/section.c: New file, from dwarf2read.c.
14587 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14588
f4382c45
TT
145892020-02-08 Tom Tromey <tom@tromey.com>
14590
14591 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14592 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14593 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14594 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14595 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14596 * dwarf2/leb.h: New file, from dwarf2read.c.
14597 * dwarf2/leb.c: New file, from dwarf2read.c.
14598 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14599 Remove.
14600 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14601 (COMMON_SFILES): Add dwarf2/leb.c.
14602
01840b7a
JB
146032020-02-08 Joel Brobecker <brobecker@adacore.com>
14604
14605 GDB 9.1 released.
14606
dfcb27e4
IB
146072020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14608
14609 PR gdb/25190:
aac66a4c
SM
14610 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14611 * gdb/remote.c (remote_console_output): Update.
14612 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14613 (ui_file_puts): ...this.
14614 * gdb/ui-file.h (ui_file_puts): Add declaration.
14615 * gdb/utils.c (emit_style_escape): Update.
14616 (flush_wrap_buffer): Update.
14617 (fputs_maybe_filtered): Update.
14618 (fputs_unfiltered): Add function.
dfcb27e4 14619
faa17681
IB
146202020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14621
aac66a4c
SM
14622 * gdb/event-loop.c (gdb_wait_for_event): Update.
14623 * gdb/printcmd.c (printf_command): Update.
14624 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14625 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14626 (gdb_os_flush_stderr): Update.
14627 * gdb/remote.c (remote_console_output): Update.
14628 * gdb/ui-file.c (gdb_flush): Rename to...
14629 (ui_file_flush): ...this.
14630 (stderr_file::write): Update.
14631 (stderr_file::puts): Update.
14632 * gdb/ui-file.h (gdb_flush): Rename to...
14633 (ui_file_flush): ...this.
14634 * gdb/utils.c (gdb_flush): Add function.
14635 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14636
5abbbe1d
TT
146372020-02-07 Tom Tromey <tromey@adacore.com>
14638
14639 PR breakpoints/24915:
14640 * source.c (find_and_open_source): Do not check basenames_may_differ.
14641
919adfe8
TT
146422020-02-07 Tom Tromey <tom@tromey.com>
14643
14644 * README: Update gdbserver documentation.
14645 * gdbserver: Move to top level.
14646 * configure.tgt (build_gdbserver): Remove.
14647 * configure.ac: Remove --enable-gdbserver.
14648 * configure: Rebuild.
14649 * Makefile.in (distclean): Don't mention gdbserver.
14650
1d5d29e7
SV
146512020-02-06 Shahab Vahedi <shahab@synopsys.com>
14652
14653 * source-cache.c (source_cache::ensure): Surround
14654 get_plain_source_lines with a try/catch.
14655 (source_cache::get_line_charpos): Get rid of try/catch
14656 and only check for the return value of "ensure".
14657 * tui/tui-source.c (tui_source_window::set_contents):
14658 Simplify "nlines" calculation.
14659
6eb1129c
SV
146602020-02-06 Shahab Vahedi <shahab@synopsys.com>
14661
14662 * MAINTAINERS (Write After Approval): Add myself.
14663
c6a42d11
CB
146642020-02-05 Christian Biesinger <cbiesinger@google.com>
14665
14666 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14667 function call.
14668
c8ecdda6
CB
146692020-02-05 Christian Biesinger <cbiesinger@google.com>
14670
14671 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14672
f6480e70
MR
146732020-02-05 Maciej W. Rozycki <macro@wdc.com>
14674
14675 * nat/riscv-linux-tdesc.h: New file.
14676 * nat/riscv-linux-tdesc.c: New file, taking code from...
14677 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14678 ... here.
14679 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14680 NATDEPFILES.
14681
dcc9fbc6
AB
146822020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14683
14684 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14685 we don't set the fake simulator ptid to the null_ptid.
14686
719546c4
SM
146872020-02-03 Simon Marchi <simon.marchi@efficios.com>
14688
14689 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14690 * gdbthread.h (class thread_info) <resumed>: Likewise.
14691 * infrun.c (resume_1): Likewise.
14692 (proceed): Likewise.
14693 (infrun_thread_stop_requested): Likewise.
14694 (stop_all_threads): Likewise.
14695 (handle_inferior_event): Likewise.
14696 (restart_threads): Likewise.
14697 (finish_step_over): Likewise.
14698 (keep_going_stepped_thread): Likewise.
14699 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14700 (linux_handle_extended_wait): Likewise.
14701 * record-btrace.c (get_thread_current_frame_id): Likewise.
14702 * record-full.c (record_full_wait_1): Likewise.
14703 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14704 * target.c (target_resume): Likewise.
14705 * thread.c (set_running_thread): Likewise.
14706
e409c542
AKS
147072020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14708
14709 * f-valprint.c (f77_print_array_1): Changed datatype of index
14710 variable to LONGEST from int to enable it to contain bound
14711 values correctly.
14712
ee98c0da
MR
147132020-02-03 Maciej W. Rozycki <macro@wdc.com>
14714
14715 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14716 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14717 offsets according to FLEN determined.
14718 (riscv_linux_nat_target::read_description): Determine FLEN
14719 dynamically.
14720 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14721 according to FLEN determined.
14722 (riscv_linux_nat_target::store_registers): Likewise.
14723
aa66aac4
SV
147242020-02-01 Shahab Vahedi <shahab@synopsys.com>
14725
14726 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14727 when reg->group is empty and reggroup is not.
14728
fd9faca8
TT
147292020-01-31 Tom Tromey <tromey@adacore.com>
14730
14731 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14732 Call beneath target's mourn_inferior after unpushing.
14733
42330a68
AB
147342020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14735
14736 PR tui/9765
14737 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14738 have enough lines to fill the screen, still return the lowest
14739 address we found.
14740
7a27a45b
AB
147412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14742
14743 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14744 '-', '<', and '>' commands.
14745
c47f70e2
PA
147462020-01-29 Pedro Alves <palves@redhat.com>
14747 Sergio Durigan Junior <sergiodj@redhat.com>
14748
14749 * infcmd.c (construct_inferior_arguments): Assert that
14750 'argc' is greater than 0.
14751
5133a315
LM
147522020-01-29 Luis Machado <luis.machado@linaro.org>
14753
14754 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14755 (BRK_INSN_MASK): Define to 0xd4200000.
14756 (aarch64_program_breakpoint_here_p): New function.
14757 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14758 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14759 breakpoint.c.
14760 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14761 breakpoint.h
14762 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14763 call gdbarch_program_breakpoint_here_p.
14764 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14765 default_program_breakpoint_here_p, changed return type to bool and
14766 simplified.
14767 * breakpoint.h (program_breakpoint_here): Moved prototype to
14768 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14769 return type to bool.
14770 * gdbarch.c: Regenerate.
14771 * gdbarch.h: Regenerate.
14772 * gdbarch.sh (program_breakpoint_here_p): New method.
14773 * infrun.c (handle_signal_stop): Call
14774 gdbarch_program_breakpoint_here_p.
14775
168f8c6b
TT
147762020-01-26 Tom Tromey <tom@tromey.com>
14777
14778 * ctfread.c (struct ctf_fp_info): Reindent.
14779 (_initialize_ctfread): Remove.
14780
128a391f
TT
147812020-01-26 Tom Tromey <tom@tromey.com>
14782
14783 * psymtab.c (partial_map_expand_apply)
14784 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14785 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14786 (psym_print_stats, psym_expand_symtabs_for_function)
14787 (psym_map_symbol_filenames, psym_map_matching_symbols)
14788 (psym_expand_symtabs_matching)
14789 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14790 (maintenance_check_psymtabs): Use new methods.
14791 * psympriv.h (struct partial_symtab) <readin_p,
14792 get_compunit_symtab>: New methods.
14793 <readin, compunit_symtab>: Remove members.
14794 (struct standard_psymtab): New.
14795 (struct legacy_psymtab): Derive from standard_psymtab.
14796 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14797 standard_psymtab.
14798 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14799
0494dbec
TT
148002020-01-26 Tom Tromey <tom@tromey.com>
14801
14802 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14803 read_dependencies. Add assert.
14804 * psymtab.c (partial_symtab::read_dependencies): New method.
14805 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14806 method.
14807 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14808 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14809 read_dependencies.
14810 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14811 Add assert.
14812
8566b89b
TT
148132020-01-26 Tom Tromey <tom@tromey.com>
14814
14815 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14816 Call expand_psymtab.
14817 (xcoff_read_symtab): Call expand_psymtab.
14818 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14819 legacy_expand_psymtab.
14820 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14821 method.
14822 (struct legacy_psymtab) <expand_psymtab>: Implement.
14823 <legacy_expand_psymtab>: New member.
14824 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14825 (parse_partial_symbols): Set legacy_expand_psymtab.
14826 (psymtab_to_symtab_1): Change argument order. Call
14827 expand_psymtab.
14828 (new_psymtab): Set legacy_expand_psymtab.
14829 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14830 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14831 expand_psymtab.
14832 (dwarf2_psymtab::expand_psymtab): Rename from
14833 psymtab_to_symtab_1. Call expand_psymtab.
14834 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14835 (dbx_end_psymtab): Likewise.
14836 (dbx_psymtab_to_symtab_1): Change argument order. Call
14837 expand_psymtab.
14838 (dbx_read_symtab): Call expand_psymtab.
14839 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14840 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14841 (ctf_psymtab::read_symtab): Call expand_psymtab.
14842
077cbab2
TT
148432020-01-26 Tom Tromey <tom@tromey.com>
14844
14845 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14846 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14847 messages.
14848 * mdebugread.c (mdebug_read_symtab): Remove prints.
14849 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14850 assert.
14851 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14852
891813be
TT
148532020-01-26 Tom Tromey <tom@tromey.com>
14854
14855 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14856 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14857 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14858 legacy_symtab.
14859 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14860 * psymtab.c (psymtab_to_symtab): Call method.
14861 (dump_psymtab): Update.
14862 * psympriv.h (struct partial_symtab): Add virtual destructor.
14863 <read_symtab>: New method.
14864 (struct legacy_symtab): New.
14865 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14866 (struct pst_map) <pst>: Now a legacy_psymtab.
14867 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14868 (new_psymtab): Use legacy_psymtab.
14869 * dwarf2read.h (struct dwarf2_psymtab): New.
14870 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14871 * dwarf2read.c (dwarf2_create_include_psymtab)
14872 (dwarf2_build_include_psymtabs, create_type_unit_group)
14873 (create_partial_symtab, process_psymtab_comp_unit_reader)
14874 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14875 (set_partial_user): Use dwarf2_psymtab.
14876 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14877 (psymtab_to_symtab_1, process_full_comp_unit)
14878 (process_full_type_unit, dwarf2_ranges_read)
14879 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14880 (dwarf_decode_lines): Use dwarf2_psymtab.
14881 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14882 (add_address_entry_worker, write_one_signatured_type)
14883 (recursively_count_psymbols, recursively_write_psymbols)
14884 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14885 (write_debug_names): Likewise.
14886 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14887 <pst>: Now a legacy_psymtab.
14888 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14889 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14890 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14891 * ctfread.c (struct ctf_psymtab): New.
14892 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14893 ctf_psymtab.
14894 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14895 (create_partial_symtab): Return a ctf_psymtab.
14896 (scan_partial_symbols): Update.
14897
c3693a1d
TT
148982020-01-26 Tom Tromey <tom@tromey.com>
14899
14900 * xcoffread.c (xcoff_start_psymtab): Use new.
14901 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14902 renamed from start_psymtab_common.
14903 * psympriv.h (struct partial_symtab): Add new constructor.
14904 (start_psymtab_common): Don't declare.
14905 * mdebugread.c (parse_partial_symbols): Use new.
14906 * dwarf2read.c (create_partial_symtab): Use new.
14907 * dbxread.c (start_psymtab): Use new.
14908 * ctfread.c (create_partial_symtab): Use new.
14909
32caafd0
TT
149102020-01-26 Tom Tromey <tom@tromey.com>
14911
14912 * xcoffread.c (xcoff_end_psymtab): Use new.
14913 * psymtab.c (start_psymtab_common): Use new.
14914 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14915 Update.
14916 * psympriv.h (struct partial_symtab): Add parameters to
14917 constructor. Don't inline.
14918 (allocate_psymtab): Don't declare.
14919 * mdebugread.c (new_psymtab): Use new.
14920 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14921 * dbxread.c (dbx_end_psymtab): Use new.
14922
abaa2f23
TT
149232020-01-26 Tom Tromey <tom@tromey.com>
14924
14925 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14926 allocate_psymtab. Update documentation.
14927 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14928 allocate_psymtab. Do not use new.
14929 (allocate_psymtab): Use new. Update.
14930
6d94535f
TT
149312020-01-26 Tom Tromey <tom@tromey.com>
14932
14933 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14934 * psymtab.c (psym_print_stats): Update.
14935 * psympriv.h (struct partial_symtab) <readin,
14936 psymtabs_addrmap_supported, anonymous>: Now bool.
14937 * mdebugread.c (psymtab_to_symtab_1): Update.
14938 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14939 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14940 (process_full_comp_unit, process_full_type_unit): Update.
14941 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14942 * ctfread.c (psymtab_to_symtab): Update.
14943
6f17252b
TT
149442020-01-26 Tom Tromey <tom@tromey.com>
14945
14946 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14947 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14948 * psymtab.c (psymtab_storage): Delete psymtabs.
14949 (psymtab_storage::allocate_psymtab): Use new.
14950 (psymtab_storage::discard_psymtab): Use delete.
14951 * psympriv.h (struct partial_symtab): Add constructor and
14952 initializers.
14953
f6f1cebc
TT
149542020-01-26 Tom Tromey <tom@tromey.com>
14955
14956 * machoread.c: Do not include psympriv.h.
14957
e47e48f6
PW
149582020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14959
14960 * NEWS: Mention the new option and the set/show commands.
14961
a2fedca9
PW
149622020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14963
14964 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14965 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14966 (validate_exec_file): New variables, enums, functions.
14967 (exec_file_locate_attach, print_section_info): Style the filenames.
14968 (_initialize_exec): Install show_exec_file_mismatch_command and
14969 set_exec_file_mismatch_command.
14970 * gdbcore.h (validate_exec_file): Declare.
14971 * infcmd.c (attach_command): Call validate_exec_file.
14972 * remote.c ( remote_target::remote_add_inferior): Likewise.
14973
7ffa82e1
AB
149742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14975
14976 * frame.c (find_frame_sal): Move call to get_next_frame into more
14977 inner scope.
14978 * inline-frame.c (inilne_state) <inline_state>: Update argument
14979 types.
14980 (inilne_state) <skipped_symbol>: Rename to...
14981 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14982 (skip_inline_frames): Build vector of skipped symbols and use this
14983 to reate the inline_state.
14984 (inline_skipped_symbol): Add a comment and some assertions, fetch
14985 skipped symbol from the list.
14986
3d92a3e3
AB
149872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14988
14989 * buildsym.c (lte_is_less_than): Delete.
14990 (buildsym_compunit::end_symtab_with_blockvector): Create local
14991 lambda function to sort line table entries, and use
14992 std::stable_sort instead of std::sort.
14993 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14994 markers when looking for a previous line.
14995
94a72be7
AB
149962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14997
14998 * dwarf2read.c (lnp_state_machine::record_line): Include
14999 end_sequence parameter in debug print out. Record the line if we
15000 are at an end_sequence marker even if it's not the start of a
15001 statement.
15002 * symmisc.c (maintenance_print_one_line_table): Print end of
15003 sequence markers with 'END' not '0'.
15004
53af73bf
PA
150052020-01-24 Pedro Alves <palves@redhat.com>
15006
15007 PR gdb/25410
15008 * thread.c (scoped_restore_current_thread::restore): Use
15009 switch_to_inferior_no_thread.
15010 * exec.c: Include "progspace-and-thread.h".
15011 (add_target_sections, remove_target_sections):
15012 scoped_restore_current_pspace_and_thread instead of
15013 scoped_restore_current_thread.
15014 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15015 and aspace to the inferior before calling clone_program_space.
15016 Remove stale comment.
15017
3050c6f4
CB
150182020-01-24 Christian Biesinger <cbiesinger@google.com>
15019
15020 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15021 (arm_netbsd_nat_target::fetch_registers): ...this.
15022 (arm_nbsd_nat_target::store_registers): Rename to...
15023 (arm_netbsd_nat_target::store_registers): ...this.
15024
73685c7e
CB
150252020-01-24 Christian Biesinger <cbiesinger@google.com>
15026
15027 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15028 register_t.
15029
89203d40
CB
150302020-01-24 Christian Biesinger <cbiesinger@google.com>
15031
15032 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15033 Update comment.
15034 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15035 Likewise.
15036 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15037 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15038 the correct replacement (iterate_over_regset_sections).
15039 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15040 Update comment.
15041
1ba1ac88
AB
150422020-01-24 Graham Markall <graham.markall@embecosm.com>
15043
15044 PR gdb/23718
15045 * gdb/python/python.c (execute_gdb_command): Call
15046 async_enable_stdin in catch block.
15047
f3364a6d
AB
150482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15049
15050 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15051 SWITCH_THRU_ALL_UIS.
15052
733d0a67
AB
150532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15054
15055 PR tui/9765
15056 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15057 comment, add extra parameter, and update to store previous symbol
15058 when appropriate.
15059 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15060 add extra parameter.
15061 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15062 remove unneeded parameter, add try/catch around gdb_print_insn,
15063 rewrite to add items to asm_lines vector.
15064 (tui_find_backward_disassembly_start_address): New function.
15065 (tui_find_disassembly_address): Updated throughout.
15066 (tui_disasm_window::set_contents): Update for changes to
15067 tui_disassemble.
15068 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15069 number of lines to scroll.
15070
b3b3bada
SM
150712020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15072
15073 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15074 (SECT_OFF_DATA): Likewise.
15075 (SECT_OFF_RODATA): Likewise.
15076 (SECT_OFF_TEXT): Likewise.
15077 (SECT_OFF_BSS): Likewise.
15078 (struct objfile) <text_section_offset, data_section_offset>: New
15079 methods.
15080 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15081 objfile::text_section_offset.
15082 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15083 * coffread.c (coff_symtab_read): Likewise.
15084 (enter_linenos): Likewise.
15085 (process_coff_symbol): Likewise.
15086 * ctfread.c (get_objfile_text_range): Likewise.
15087 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15088 Use objfile::data_section_offset.
15089 * dwarf2-frame.c (execute_cfa_program): Use
15090 objfile::text_section_offset.
15091 (dwarf2_frame_find_fde): Likewise.
15092 * dwarf2read.c (create_addrmap_from_index): Likewise.
15093 (create_addrmap_from_aranges): Likewise.
15094 (dw2_find_pc_sect_compunit_symtab): Likewise.
15095 (process_psymtab_comp_unit_reader): Likewise.
15096 (add_partial_symbol): Likewise.
15097 (add_partial_subprogram): Likewise.
15098 (process_full_comp_unit): Likewise.
15099 (read_file_scope): Likewise.
15100 (read_func_scope): Likewise.
15101 (read_lexical_block_scope): Likewise.
15102 (read_call_site_scope): Likewise.
15103 (dwarf2_rnglists_process): Likewise.
15104 (dwarf2_ranges_process): Likewise.
15105 (dwarf2_ranges_read): Likewise.
15106 (dwarf_decode_lines_1): Likewise.
15107 (new_symbol): Likewise.
15108 (dwarf2_fetch_die_loc_sect_off): Likewise.
15109 (dwarf2_per_cu_text_offset): Likewise.
15110 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15111 * hppa-tdep.c (read_unwind_info): Likewise.
15112 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15113 * psympriv.h (struct partial_symtab): Likewise.
15114 * psymtab.c (find_pc_sect_psymtab): Likewise.
15115 * solib-svr4.c (enable_break): Likewise.
15116 * stap-probe.c (relocate_address): Use
15117 objfile::data_section_offset.
15118 * xcoffread.c (enter_line_range): Use
15119 objfile::text_section_offset.
15120 (read_xcoff_symtab): Likewise.
15121
ab53f382
SM
151222020-01-23 Simon Marchi <simon.marchi@efficios.com>
15123
15124 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15125 declaration to narrower scopes.
15126
e7eee665
SM
151272020-01-23 Simon Marchi <simon.marchi@efficios.com>
15128
15129 * darwin-nat.h (struct darwin_exception_msg, enum
15130 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15131 Move up.
15132 (class darwin_nat_target) <wait_1, check_new_threads,
15133 decode_exception_message, decode_message, stop_inferior,
15134 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15135 * darwin-nat.c (darwin_check_new_threads): Rename to...
15136 (darwin_nat_target::check_new_threads): ... this.
15137 (darwin_suspend_inferior_it): Remove.
15138 (darwin_decode_exception_message): Rename to...
15139 (darwin_nat_target::decode_exception_message): ... this.
15140 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15141 (darwin_decode_message): Rename to...
15142 (darwin_nat_target::decode_message): ... this.
15143 (cancel_breakpoint): Rename to...
15144 (darwin_nat_target::cancel_breakpoint): ... this.
15145 (darwin_wait): Rename to...
15146 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15147 instead of iterate_over_inferiors.
15148 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15149 (darwin_stop_inferior): Rename to...
15150 (darwin_nat_target::stop_inferior): ... this.
15151 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15152 (darwin_init_thread_list): Rename to...
15153 (darwin_nat_target::init_thread_list): ... this.
15154 (darwin_ptrace_him): Rename to...
15155 (darwin_nat_target::ptrace_him): ... this.
15156 (darwin_nat_target::create_inferior): Pass lambda function to
15157 fork_inferior.
15158 (darwin_nat_target::detach): Call stop_inferior instead of
15159 darwin_stop_inferior.
15160 * fork-inferior.h (fork_inferior): Change init_trace_fun
15161 parameter to gdb::function_view.
15162 * fork-inferior.c (fork_inferior): Likewise.
15163
c162ed3e
HD
151642020-01-23 Hannes Domani <ssbssa@yahoo.de>
15165
15166 * i386-cygwin-tdep.c (core_process_module_section): Update.
15167 * windows-nat.c (struct lm_info_windows): Add text_offset.
15168 (windows_xfer_shared_libraries): Update.
15169 * windows-tdep.c (windows_xfer_shared_library):
15170 Add text_offset_cached argument.
15171 * windows-tdep.h (windows_xfer_shared_library): Update.
15172
a1237872
SM
151732020-01-21 Simon Marchi <simon.marchi@efficios.com>
15174
15175 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15176
b3ee6dd9
SM
151772020-01-21 Simon Marchi <simon.marchi@efficios.com>
15178
15179 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15180 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15181 replace with range-based for.
15182 (gdbsim_interrupt_inferior): Remove.
15183 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15184 with a range-based for. Inline code from
15185 gdbsim_interrupt_inferior.
15186
f9fac3c8
SM
151872020-01-21 Simon Marchi <simon.marchi@efficios.com>
15188
15189 * infrun.c (proceed): Fix indentation.
15190
f6474de9
TT
151912020-01-21 Tom Tromey <tromey@adacore.com>
15192
15193 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15194 * python/python.c (python_extension_ops): Update.
15195 (gdbpy_colorize): New function.
15196 * python/lib/gdb/__init__.py (colorize): New function.
15197 * extension.h (ext_lang_colorize): Declare.
15198 * extension.c (ext_lang_colorize): New function.
15199 * extension-priv.h (struct extension_language_ops) <colorize>: New
15200 member.
15201 * cli/cli-style.c (_initialize_cli_style): Update help text.
15202
f0c702d4
LM
152032020-01-21 Luis Machado <luis.machado@linaro.org>
15204
15205 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15206 <cond>: Change type to bool.
15207 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15208 (aarch64_displaced_step_cb): Likewise.
15209 (aarch64_displaced_step_tb): Likewise.
15210
1ab139e5
LM
152112020-01-21 Luis Machado <luis.machado@linaro.org>
15212
15213 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15214 output.
15215
0c271889
LM
152162020-01-21 Luis Machado <luis.machado@linaro.org>
15217
15218 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15219 <pc_adjust>: Adjust the documentation.
15220 (aarch64_displaced_step_fixup): Check if PC really moved before
15221 adjusting it.
15222
4d89c1c7
TT
152232020-01-19 Tom Tromey <tom@tromey.com>
15224
15225 * disasm.c (~gdb_disassembler): New destructor.
15226 (gdb_buffered_insn_length): Call disassemble_free_target.
15227 * disasm.h (class gdb_disassembler): Declare destructor. Use
15228 DISABLE_COPY_AND_ASSIGN.
15229
c0ab21c2
TT
152302020-01-19 Tom Tromey <tom@tromey.com>
15231
15232 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15233 (die_reader_func_ftype): Remove.
15234 (cutu_reader): New class.
15235 (dw2_get_file_names_reader): Remove "data" parameter.
15236 (dw2_get_file_names): Use cutu_reader.
15237 (create_debug_type_hash_table): Update.
15238 (read_cutu_die_from_dwo): Update comment.
15239 (lookup_dwo_unit): Add dwo_name parameter.
15240 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15241 die_reader_func_ftype and data parameters.
15242 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15243 Remove die_reader_func_ftype and data parameters.
15244 (~cutu_reader): New; from init_cutu_and_read_dies.
15245 (cutu_reader::cutu_reader): Rename from
15246 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15247 and data parameters.
15248 (init_cutu_and_read_dies_simple): Remove.
15249 (struct process_psymtab_comp_unit_data): Remove.
15250 (process_psymtab_comp_unit_reader): Remove data parameter; add
15251 want_partial_unit and pretend_language parameters.
15252 (process_psymtab_comp_unit): Use cutu_reader.
15253 (build_type_psymtabs_reader): Remove data parameter.
15254 (build_type_psymtabs_1): Use cutu_reader.
15255 (process_skeletonless_type_unit): Likewise.
15256 (load_partial_comp_unit_reader): Remove.
15257 (load_partial_comp_unit): Use cutu_reader.
15258 (load_full_comp_unit_reader): Remove.
15259 (load_full_comp_unit): Use cutu_reader.
15260 (struct create_dwo_cu_data): Remove.
15261 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15262 dwo_unit parameters.
15263 (create_cus_hash_table): Use cutu_reader.
15264 (struct dwarf2_read_addr_index_data): Remove.
15265 (dwarf2_read_addr_index_reader): Remove.
15266 (dwarf2_read_addr_index): Use cutu_reader.
15267 (read_signatured_type_reader): Remove.
15268 (read_signatured_type): Use cutu_reader.
15269
45bbae5c
TT
152702020-01-19 Tom Tromey <tom@tromey.com>
15271
15272 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15273 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15274 (tui_wrefresh): Declare.
15275 * tui/tui-wingeneral.c (suppress_output): New global.
15276 (tui_suppress_output, ~tui_suppress_output): New constructor and
15277 destructor.
15278 (tui_wrefresh): New function.
15279 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15280 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15281 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15282 method.
15283 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15284 tui_wrefresh.
15285 (tui_data_window::no_refresh): New method.
15286 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15287 (tui_reg_command): Use tui_suppress_output
15288 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15289 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15290 method.
15291 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15292
4f13c1c0
TT
152932020-01-19 Tom Tromey <tom@tromey.com>
15294
15295 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15296 Handle case where symtab is null.
15297
fa47e446
SM
152982020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15299
15300 * linux-fork.c (one_fork_p): Simplify.
15301
26f42329
SM
153022020-01-17 Simon Marchi <simon.marchi@efficios.com>
15303
15304 * top.c (struct qt_args): Remove.
15305 (kill_or_detach): Change return type to void, replace `void *`
15306 parameter with a proper one.
15307 (print_inferior_quit_action): Likewise.
15308 (quit_confirm): Use range-based for loop to iterate over inferiors.
15309 (quit_force): Likewise.
15310
a9ac81b1
SM
153112020-01-17 Simon Marchi <simon.marchi@efficios.com>
15312
15313 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15314 `void *` parameter with proper parameters.
15315 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15316 (print_one_inferior): Change return type to void, replace `void *`
15317 parameter with proper parameters.
15318 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15319 inferiors.
15320 (get_other_inferior): Remove.
15321 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15322 inferiors.
15323
788eca49
SM
153242020-01-17 Simon Marchi <simon.marchi@efficios.com>
15325
15326 * mi/mi-interp.c (report_initial_inferior): Remove.
15327 (mi_interp::init): Use range-based for to iterate over inferiors.
15328
d9bc85b6
SM
153292020-01-17 Simon Marchi <simon.marchi@efficios.com>
15330
15331 * python/py-inferior.c (build_inferior_list): Remove.
15332 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15333
40c94099
CB
153342020-01-16 Christian Biesinger <cbiesinger@google.com>
15335
15336 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15337 (btrace_stitch_trace): Likewise.
15338 * charset.c (intermediate_encoding): Likewise (vaild).
15339 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15340 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15341 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15342
e0cdfe3c
HD
153432020-01-16 Hannes Domani <ssbssa@yahoo.de>
15344
15345 * windows-tdep.c (windows_get_tlb_type):
15346 Add rtl_user_process_parameters type.
15347
790f1718 153482020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15349 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15350
15351 PR build/24805
15352 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15353 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15354 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15355 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15356 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15357 (ps_plog): Redeclare exported functions with default visibility.
15358
3112ed97
NA
153592020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15360
15361 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15362 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15363
8dc3273e
SM
153642020-01-15 Simon Marchi <simon.marchi@efficios.com>
15365
15366 * infcmd.c (post_create_inferior): Use get_thread_regcache
15367 instead of get_current_regcache.
15368
ff47f4f0
TT
153692020-01-14 Tom Tromey <tom@tromey.com>
15370
15371 PR symtab/12535:
15372 * python/python.c (gdbpy_decode_line): Treat empty string the same
15373 as no argument.
15374
975f45b7
TT
153752020-01-14 Tom Tromey <tom@tromey.com>
15376
15377 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15378
25e57356
TT
153792020-01-14 Tom Tromey <tom@tromey.com>
15380
15381 * nat/linux-btrace.c: Don't include <config.h>.
15382 * nat/linux-ptrace.c: Don't include <config.h>.
15383 * nat/x86-linux-dregs.c: Don't include <config.h>.
15384
05ea2a05
TT
153852020-01-14 Tom Tromey <tom@tromey.com>
15386
15387 * configure: Rebuild.
15388 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15389
01027315
TT
153902020-01-14 Tom Tromey <tom@tromey.com>
15391
15392 * nat/x86-linux-dregs.c: Include configh.h.
15393 * nat/linux-ptrace.c: Include configh.h.
15394 * nat/linux-btrace.c: Include configh.h.
15395 * defs.h: Include config.h, bfd.h.
15396 * configure.ac: Don't source common.host.
15397 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15398 * configure: Rebuild.
15399 * acinclude.m4: Update path.
15400 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15401 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15402 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15403 (CLIBS): Add LIBSUPPORT.
15404 (CDEPS): Likewise.
15405 (COMMON_SFILES): Remove gdbsupport files.
15406 (HFILES_NO_SRCDIR): Likewise.
15407 (stamp-version): Update path to create-version.sh.
15408 (ALLDEPFILES): Remove gdbsupport files.
15409
b2ceabe8
TT
154102020-01-14 Tom Tromey <tom@tromey.com>
15411
15412 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15413 USE_WIN32API when needed.
15414 * configure.ac (USE_WIN32API): Don't define.
15415 (WIN32LIBS): Use WIN32APILIBS.
15416 * configure: Rebuild.
15417
25c51f71
TT
154182020-01-14 Tom Tromey <tom@tromey.com>
15419
15420 * configure: Rebuild.
15421 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15422
717c684d
BE
154232020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15424
15425 * skip.c (skip_function_command): Make skip w/o arguments use the
15426 name of the inlined function if pc is inside any inlined function.
15427
7da6a5b9
LM
154282020-01-14 Luis Machado <luis.machado@linaro.org>
15429
15430 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15431 * infrun.c (resume_1): Likewise.
15432 (handle_inferior_event): Remove stale comment.
15433 * linux-nat.c (linux_nat_target::resume): Update comments.
15434 (save_stop_reason): Likewise.
15435 (linux_nat_filter_event): Likewise.
15436 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15437
44e4c775
AB
154382020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15439
15440 * elfread.c (record_minimal_symbol): Set section index to 0 for
15441 non-allocatable sections.
15442
18a8505e
AT
15443
154442020-01-13 Ali Tamur <tamur@google.com>
15445
15446 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15447 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15448 to gdb::optional. Update comments.
15449 (dwo_file): Update comments.
15450 (read_attribute): Update API to take an additional out parameter,
15451 need_reprocess. This is used to mark attributes that need other
15452 attributes (e.g. str_offsets_base) for correct computation which may not
15453 have been read yet.
15454 (read_attribute_reprocess): New function declaration.
15455 (read_addr_index): Likewise.
15456 (read_dwo_str_index): Likewise.
15457 (read_stub_str_index): Likewise.
15458 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15459 (lookup_addr_base): New function definition.
15460 (lookup_ranges_base): Likewise.
15461 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15462 lookup_ranges_base.
15463 (init_cutu_and_read_dies): Update comments.
15464 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15465 unit. This is used to inherit parent's str_offsets_base and addr_base.
15466 Update comments.
15467 (init_cutu_and_read_dies_simple): Reflect API changes.
15468 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15469 (create_cus_hash_table): Change API to take parent compile unit.
15470 Reflect API changes.
15471 (open_and_init_dwo_file): Reflect API changes.
15472 (dwarf2_get_pc_bounds): Update comments.
15473 (dwarf2_record_block_ranges): Likewise.
15474 (read_full_die_1): Change implementation to reprocess attributes that
15475 need str_offsets_base and addr_base.
15476 (partial_die_info::read): Likewise.
15477 (read_attribute_reprocess): New function definition.
15478 (read_attribute_value): Change API to take an additional out parameter,
15479 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15480 when a non-dwo compile unit has index based attributes.
15481 (read_attribute): Reflect API changes.
15482 (read_addr_index_1): Reflect API changes. Update comments.
15483 (dwarf2_read_addr_index_data): Reflect API changes.
15484 (dwarf2_read_addr_index): Likewise.
15485 (read_str_index): Change API and implementation. This becomes a helper
15486 to be used by the new string index related methods. Update error
15487 message and comments.
15488 (read_dwo_str_index): New function definition.
15489 (read_stub_str_index): Likewise.
15490 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15491 * symfile.h (dwarf2_debug_sections): Likewise.
15492 * xcoffread.c (dwarf2_debug_sections): Likewise.
15493
0cac9354
SM
154942020-01-13 Simon Marchi <simon.marchi@efficios.com>
15495
15496 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15497 core_reg_sect type to gdb_byte *.
15498 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15499 * cris-tdep.c (fetch_core_registers): Likewise.
15500 * corelow.c (core_target::get_core_register_section): Change
15501 type of `contents` to gdb::byte_vector.
15502
9a6d629c
AB
155032020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15504
15505 * tui/tui-wingeneral.c (box_win): Position the title in the center
15506 of the border.
15507
d8b2f9e3
SM
155082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15509
15510 * corelow.c (core_target::get_core_register_section): Use
15511 std::vector instead of alloca.
15512
bb564c58
SM
155132020-01-13 Simon Marchi <simon.marchi@efficios.com>
15514
15515 * warning.m4: Add -Wmissing-declarations to build_warnings.
15516 * configure: Re-generate.
15517
6b366111
SM
155182020-01-13 Simon Marchi <simon.marchi@efficios.com>
15519
15520 * python/python.c (init__gdb_module): Add declaration.
15521
6c265988
SM
155222020-01-13 Simon Marchi <simon.marchi@efficios.com>
15523
15524 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15525 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15526 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15527 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15528 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15529 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15530 * ada-exp.y (_initialize_ada_exp): Add declaration.
15531 * ada-lang.c (_initialize_ada_language): Add declaration.
15532 * ada-tasks.c (_initialize_tasks): Add declaration.
15533 * agent.c (_initialize_agent): Add declaration.
15534 * aix-thread.c (_initialize_aix_thread): Add declaration.
15535 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15536 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15537 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15538 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15539 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15540 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15541 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15542 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15543 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15544 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15545 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15546 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15547 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15548 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15549 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15550 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15551 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15552 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15553 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15554 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15555 * annotate.c (_initialize_annotate): Add declaration.
15556 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15557 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15558 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15559 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15560 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15561 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15562 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15563 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15564 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15565 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15566 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15567 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15568 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15569 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15570 * auto-load.c (_initialize_auto_load): Add declaration.
15571 * auxv.c (_initialize_auxv): Add declaration.
15572 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15573 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15574 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15575 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15576 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15577 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15578 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15579 * breakpoint.c (_initialize_breakpoint): Add declaration.
15580 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15581 * btrace.c (_initialize_btrace): Add declaration.
15582 * charset.c (_initialize_charset): Add declaration.
15583 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15584 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15585 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15586 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15587 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15588 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15589 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15590 * coffread.c (_initialize_coffread): Add declaration.
15591 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15592 * compile/compile.c (_initialize_compile): Add declaration.
15593 * complaints.c (_initialize_complaints): Add declaration.
15594 * completer.c (_initialize_completer): Add declaration.
15595 * copying.c (_initialize_copying): Add declaration.
15596 * corefile.c (_initialize_core): Add declaration.
15597 * corelow.c (_initialize_corelow): Add declaration.
15598 * cp-abi.c (_initialize_cp_abi): Add declaration.
15599 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15600 * cp-support.c (_initialize_cp_support): Add declaration.
15601 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15602 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15603 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15604 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15605 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15606 * ctfread.c (_initialize_ctfread): Add declaration.
15607 * d-lang.c (_initialize_d_language): Add declaration.
15608 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15609 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15610 * dbxread.c (_initialize_dbxread): Add declaration.
15611 * dcache.c (_initialize_dcache): Add declaration.
15612 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15613 * disasm.c (_initialize_disasm): Add declaration.
15614 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15615 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15616 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15617 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15618 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15619 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15620 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15621 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15622 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15623 * elfread.c (_initialize_elfread): Add declaration.
15624 * exec.c (_initialize_exec): Add declaration.
15625 * extension.c (_initialize_extension): Add declaration.
15626 * f-lang.c (_initialize_f_language): Add declaration.
15627 * f-valprint.c (_initialize_f_valprint): Add declaration.
15628 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15629 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15630 * filesystem.c (_initialize_filesystem): Add declaration.
15631 * findcmd.c (_initialize_mem_search): Add declaration.
15632 * findvar.c (_initialize_findvar): Add declaration.
15633 * fork-child.c (_initialize_fork_child): Add declaration.
15634 * frame-base.c (_initialize_frame_base): Add declaration.
15635 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15636 * frame.c (_initialize_frame): Add declaration.
15637 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15638 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15639 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15640 * gcore.c (_initialize_gcore): Add declaration.
15641 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15642 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15643 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15644 * gdbarch.c (_initialize_gdbarch): Add declaration.
15645 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15646 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15647 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15648 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15649 * go-lang.c (_initialize_go_language): Add declaration.
15650 * go32-nat.c (_initialize_go32_nat): Add declaration.
15651 * guile/guile.c (_initialize_guile): Add declaration.
15652 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15653 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15654 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15655 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15656 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15657 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15658 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15659 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15660 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15661 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15662 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15663 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15664 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15665 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15666 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15667 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15668 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15669 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15670 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15671 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15672 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15673 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15674 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15675 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15676 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15677 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15678 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15679 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15680 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15681 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15682 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15683 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15684 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15685 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15686 * infcall.c (_initialize_infcall): Add declaration.
15687 * infcmd.c (_initialize_infcmd): Add declaration.
15688 * inflow.c (_initialize_inflow): Add declaration.
15689 * infrun.c (_initialize_infrun): Add declaration.
15690 * interps.c (_initialize_interpreter): Add declaration.
15691 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15692 * jit.c (_initialize_jit): Add declaration.
15693 * language.c (_initialize_language): Add declaration.
15694 * linux-fork.c (_initialize_linux_fork): Add declaration.
15695 * linux-nat.c (_initialize_linux_nat): Add declaration.
15696 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15697 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15698 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15699 * m2-lang.c (_initialize_m2_language): Add declaration.
15700 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15701 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15702 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15703 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15704 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15705 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15706 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15707 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15708 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15709 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15710 * machoread.c (_initialize_machoread): Add declaration.
15711 * macrocmd.c (_initialize_macrocmd): Add declaration.
15712 * macroscope.c (_initialize_macroscope): Add declaration.
15713 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15714 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15715 * maint.c (_initialize_maint_cmds): Add declaration.
15716 * mdebugread.c (_initialize_mdebugread): Add declaration.
15717 * memattr.c (_initialize_mem): Add declaration.
15718 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15719 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15720 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15721 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15722 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15723 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15724 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15725 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15726 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15727 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15728 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15729 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15730 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15731 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15732 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15733 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15734 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15735 * mipsread.c (_initialize_mipsread): Add declaration.
15736 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15737 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15738 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15739 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15740 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15741 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15742 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15743 * nto-procfs.c (_initialize_procfs): Add declaration.
15744 * objc-lang.c (_initialize_objc_language): Add declaration.
15745 * observable.c (_initialize_observer): Add declaration.
15746 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15747 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15748 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15749 * osabi.c (_initialize_gdb_osabi): Add declaration.
15750 * osdata.c (_initialize_osdata): Add declaration.
15751 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15752 * parse.c (_initialize_parse): Add declaration.
15753 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15754 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15755 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15756 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15757 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15758 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15759 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15760 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15761 * printcmd.c (_initialize_printcmd): Add declaration.
15762 * probe.c (_initialize_probe): Add declaration.
15763 * proc-api.c (_initialize_proc_api): Add declaration.
15764 * proc-events.c (_initialize_proc_events): Add declaration.
15765 * proc-service.c (_initialize_proc_service): Add declaration.
15766 * procfs.c (_initialize_procfs): Add declaration.
15767 * producer.c (_initialize_producer): Add declaration.
15768 * psymtab.c (_initialize_psymtab): Add declaration.
15769 * python/python.c (_initialize_python): Add declaration.
15770 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15771 * record-btrace.c (_initialize_record_btrace): Add declaration.
15772 * record-full.c (_initialize_record_full): Add declaration.
15773 * record.c (_initialize_record): Add declaration.
15774 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15775 * regcache.c (_initialize_regcache): Add declaration.
15776 * reggroups.c (_initialize_reggroup): Add declaration.
15777 * remote-notif.c (_initialize_notif): Add declaration.
15778 * remote-sim.c (_initialize_remote_sim): Add declaration.
15779 * remote.c (_initialize_remote): Add declaration.
15780 * reverse.c (_initialize_reverse): Add declaration.
15781 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15782 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15783 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15784 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15785 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15786 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15787 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15788 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15789 Add declaration.
15790 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15791 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15792 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15793 * rust-exp.y (_initialize_rust_exp): Add declaration.
15794 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15795 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15796 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15797 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15798 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15799 * score-tdep.c (_initialize_score_tdep): Add declaration.
15800 * ser-go32.c (_initialize_ser_dos): Add declaration.
15801 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15802 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15803 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15804 * ser-uds.c (_initialize_ser_socket): Add declaration.
15805 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15806 * serial.c (_initialize_serial): Add declaration.
15807 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15808 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15809 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15810 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15811 * skip.c (_initialize_step_skip): Add declaration.
15812 * sol-thread.c (_initialize_sol_thread): Add declaration.
15813 * solib-aix.c (_initialize_solib_aix): Add declaration.
15814 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15815 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15816 * solib-frv.c (_initialize_frv_solib): Add declaration.
15817 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15818 * solib-target.c (_initialize_solib_target): Add declaration.
15819 * solib.c (_initialize_solib): Add declaration.
15820 * source-cache.c (_initialize_source_cache): Add declaration.
15821 * source.c (_initialize_source): Add declaration.
15822 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15823 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15824 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15825 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15826 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15827 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15828 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15829 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15830 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15831 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15832 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15833 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15834 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15835 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15836 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15837 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15838 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15839 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15840 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15841 * stabsread.c (_initialize_stabsread): Add declaration.
15842 * stack.c (_initialize_stack): Add declaration.
15843 * stap-probe.c (_initialize_stap_probe): Add declaration.
15844 * std-regs.c (_initialize_frame_reg): Add declaration.
15845 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15846 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15847 * symfile.c (_initialize_symfile): Add declaration.
15848 * symmisc.c (_initialize_symmisc): Add declaration.
15849 * symtab.c (_initialize_symtab): Add declaration.
15850 * target.c (_initialize_target): Add declaration.
15851 * target-connection.c (_initialize_target_connection): Add
15852 declaration.
15853 * target-dcache.c (_initialize_target_dcache): Add declaration.
15854 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15855 * thread.c (_initialize_thread): Add declaration.
15856 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15857 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15858 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15859 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15860 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15861 * tracectf.c (_initialize_ctf): Add declaration.
15862 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15863 * tracefile.c (_initialize_tracefile): Add declaration.
15864 * tracepoint.c (_initialize_tracepoint): Add declaration.
15865 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15866 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15867 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15868 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15869 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15870 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15871 * tui/tui.c (_initialize_tui): Add declaration.
15872 * typeprint.c (_initialize_typeprint): Add declaration.
15873 * ui-style.c (_initialize_ui_style): Add declaration.
15874 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15875 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15876 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15877 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15878 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15879 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15880 * unittests/filtered_iterator-selftests.c
15881 (_initialize_filtered_iterator_selftests): Add declaration.
15882 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15883 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15884 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15885 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15886 * unittests/main-thread-selftests.c
15887 (_initialize_main_thread_selftests): Add declaration.
15888 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15889 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15890 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15891 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15892 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15893 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15894 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15895 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15896 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15897 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15898 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15899 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15900 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15901 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15902 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15903 declaration.
15904 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15905 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15906 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15907 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15908 * user-regs.c (_initialize_user_regs): Add declaration.
15909 * utils.c (_initialize_utils): Add declaration.
15910 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15911 * valops.c (_initialize_valops): Add declaration.
15912 * valprint.c (_initialize_valprint): Add declaration.
15913 * value.c (_initialize_values): Add declaration.
15914 * varobj.c (_initialize_varobj): Add declaration.
15915 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15916 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15917 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15918 * windows-nat.c (_initialize_windows_nat): Add declaration.
15919 (_initialize_check_for_gdb_ini): Add declaration.
15920 (_initialize_loadable): Add declaration.
15921 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15922 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15923 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15924 * xcoffread.c (_initialize_xcoffread): Add declaration.
15925 * xml-support.c (_initialize_xml_support): Add declaration.
15926 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15927 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15928 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15929 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15930
e2de1eec
SM
159312020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15932
15933 * regformats/regdat.sh: Generate declaration for init function.
15934
e0037b4c
SM
159352020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15936
15937 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15938 up.
15939 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15940 close_one_inferior>: New methods.
15941 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15942 pass down target to find_inferior_pid.
15943 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15944 Pass down target to find_inferior_ptid.
15945 (gdbsim_target::create_inferior): Pass down target to
15946 add_thread_silent.
15947 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15948 target down to find_inferior_ptid and switch_to_thread.
15949 (gdbsim_target::close): Update to call close_one_inferior.
15950 (struct resume_data): Remove.
15951 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15952 directly, rather than through a void pointer.
15953 (gdbsim_target::resume): Update to call resume_one_inferior.
15954
58920b5b
SM
159552020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15956
15957 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15958
4ec89149
PA
159592020-01-12 Pedro Alves <palves@redhat.com>
15960
15961 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15962 directly for the current inferior instead of
15963 discard_all_inferiors.
15964 (discard_all_inferiors): Delete.
15965
7c392d1d
TT
159662020-01-11 Tom Tromey <tom@tromey.com>
15967
15968 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15969 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15970 deprecated_safe_get_selected_frame.
15971
d9ebdab7
TBA
159722020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15973
15974 * inferior.c (print_inferior): Switch inferior before printing it.
15975
f3c469b9
PA
159762020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15977 Pedro Alves <palves@redhat.com>
15978
15979 * progspace-and-thread.c (switch_to_program_space_and_thread):
15980 Assert there's an inferior for PSPACE. Use
15981 switch_to_inferior_no_thread to switch the inferior too.
15982 * progspace.c (program_space::~program_space): Call
15983 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15984 (program_space::free_all_objfiles): Don't call clear_symtab_users
15985 here.
15986 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15987
65c574f6
PA
159882020-01-10 Pedro Alves <palves@redhat.com>
15989
15990 * NEWS: Mention multi-target debugging, "info connections", and
15991 "add-inferior -no-connection".
15992
2f4fcf00
PA
159932020-01-10 Pedro Alves <palves@redhat.com>
15994
15995 * infrun.c: Include "target-connection.h".
15996 (check_multi_target_resumption): New.
15997 (proceed): Call it.
15998 * target-connection.c (make_target_connection_string): Make
15999 extern.
16000 * target-connection.h (make_target_connection_string): Declare.
16001
121b3efd
PA
160022020-01-10 Pedro Alves <palves@redhat.com>
16003
16004 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16005 * inferior.c (uiout_field_connection): New function.
16006 (print_inferior): Add new "connection-id" column.
16007 (add_inferior_command): Show connection number/string of added
16008 inferior.
16009 * process-stratum-target.h
16010 (process_stratum_target::connection_string): New virtual method.
16011 (process_stratum_target::connection_number): New field.
16012 * remote.c (remote_target::connection_string): New override.
16013 * target-connection.c: New file.
16014 * target-connection.h: New file.
16015 * target.c (decref_target): Remove process_stratum targets from
16016 the connection list.
16017 (target_stack::push): Add process_stratum targets to the
16018 connection list.
16019
4f837581
PA
160202020-01-10 Pedro Alves <palves@redhat.com>
16021
16022 Revert:
16023 2016-04-12 Pedro Alves <palves@redhat.com>
16024 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16025 Remove references to name.
16026 * serial.h (struct serial) <name>: Delete.
16027
f4ec508e
PA
160282020-01-10 Pedro Alves <palves@redhat.com>
16029
16030 * gdbarch-selftests.c (register_to_value_test): Remove "target
16031 already pushed" check.
16032
5b6d1e4f
PA
160332020-01-10 Pedro Alves <palves@redhat.com>
16034 John Baldwin <jhb@FreeBSD.org>
16035
16036 * aarch64-linux-nat.c
16037 (aarch64_linux_nat_target::thread_architecture): Adjust.
16038 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16039 (task_command_1): Likewise.
16040 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16041 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16042 (aix_thread_target::store_registers)
16043 (aix_thread_target::thread_alive): Adjust.
16044 * amd64-fbsd-tdep.c: Include "inferior.h".
16045 (amd64fbsd_get_thread_local_address): Pass down target.
16046 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16047 thread's gdbarch instead of target_gdbarch.
16048 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16049 get_last_target_status.
16050 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16051 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16052 inferiors.
16053 (update_inserted_breakpoint_locations): Skip if inferiors with no
16054 execution.
16055 (update_global_location_list): When handling moribund locations,
16056 find representative inferior for location's pspace, and use thread
16057 count of its process_stratum target.
16058 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16059 * bsd-uthread.c (bsd_uthread_target::wait): Use
16060 as_process_stratum_target and adjust thread_change_ptid and
16061 add_thread calls.
16062 (bsd_uthread_target::update_thread_list): Use
16063 as_process_stratum_target and adjust find_thread_ptid,
16064 thread_change_ptid and add_thread calls.
16065 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16066 find_thread_ptid call.
16067 * corelow.c (add_to_thread_list): Adjust add_thread call.
16068 (core_target_open): Adjust add_thread_silent and thread_count
16069 calls.
16070 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16071 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16072 * event-top.c (async_disconnect): Pop targets from all inferiors.
16073 * exec.c (add_target_sections): Push exec target on all inferiors
16074 sharing the program space.
16075 (remove_target_sections): Remove the exec target from all
16076 inferiors sharing the program space.
16077 (exec_on_vfork): New.
16078 * exec.h (exec_on_vfork): Declare.
16079 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16080 Pass it down.
16081 (fbsd_nat_target::update_thread_list): Adjust.
16082 (fbsd_nat_target::resume): Adjust.
16083 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16084 down.
16085 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16086 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16087 get_thread_arch_regcache call.
16088 * fork-child.c (gdb_startup_inferior): Pass target down to
16089 startup_inferior and set_executing.
16090 * gdbthread.h (struct process_stratum_target): Forward declare.
16091 (add_thread, add_thread_silent, add_thread_with_info)
16092 (in_thread_list): Add process_stratum_target parameter.
16093 (find_thread_ptid(inferior*, ptid_t)): New overload.
16094 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16095 parameter.
16096 (all_threads()): Delete overload.
16097 (all_threads, all_non_exited_threads): Add process_stratum_target
16098 parameter.
16099 (all_threads_safe): Use brace initialization.
16100 (thread_count): Add process_stratum_target parameter.
16101 (set_resumed, set_running, set_stop_requested, set_executing)
16102 (threads_are_executing, finish_thread_state): Add
16103 process_stratum_target parameter.
16104 (switch_to_thread): Use is_current_thread.
16105 * i386-fbsd-tdep.c: Include "inferior.h".
16106 (i386fbsd_get_thread_local_address): Pass down target.
16107 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16108 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16109 have_inferiors check.
16110 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16111 (inf_ptrace_target::attach): Adjust.
16112 * infcall.c (run_inferior_call): Adjust.
16113 * infcmd.c (run_command_1): Pass target to
16114 scoped_finish_thread_state.
16115 (proceed_thread_callback): Skip inferiors with no execution.
16116 (continue_command): Rename 'all_threads' local to avoid hiding
16117 'all_threads' function. Adjust get_last_target_status call.
16118 (prepare_one_step): Adjust set_running call.
16119 (signal_command): Use user_visible_resume_target. Compare thread
16120 pointers instead of inferior_ptid.
16121 (info_program_command): Adjust to pass down target.
16122 (attach_command): Mark target's 'thread_executing' flag.
16123 (stop_current_target_threads_ns): New, factored out from ...
16124 (interrupt_target_1): ... this. Switch inferior before making
16125 target calls.
16126 * inferior-iter.h
16127 (struct all_inferiors_iterator, struct all_inferiors_range)
16128 (struct all_inferiors_safe_range)
16129 (struct all_non_exited_inferiors_range): Filter on
16130 process_stratum_target too. Remove explicit.
16131 * inferior.c (inferior::inferior): Push dummy target on target
16132 stack.
16133 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16134 Add process_stratum_target parameter, and pass it down.
16135 (have_live_inferiors): Adjust.
16136 (switch_to_inferior_and_push_target): New.
16137 (add_inferior_command, clone_inferior_command): Handle
16138 "-no-connection" parameter. Use
16139 switch_to_inferior_and_push_target.
16140 (_initialize_inferior): Mention "-no-connection" option in
16141 the help of "add-inferior" and "clone-inferior" commands.
16142 * inferior.h: Include "process-stratum-target.h".
16143 (interrupt_target_1): Use bool.
16144 (struct inferior) <push_target, unpush_target, target_is_pushed,
16145 find_target_beneath, top_target, process_target, target_at,
16146 m_stack>: New.
16147 (discard_all_inferiors): Delete.
16148 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16149 (all_inferiors, all_non_exited_inferiors): Add
16150 process_stratum_target parameter.
16151 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16152 (target_last_proc_target): New global.
16153 (follow_fork_inferior): Push target on new inferior. Pass target
16154 to add_thread_silent. Call exec_on_vfork. Handle target's
16155 reference count.
16156 (follow_fork): Adjust get_last_target_status call. Also consider
16157 target.
16158 (follow_exec): Push target on new inferior.
16159 (struct execution_control_state) <target>: New field.
16160 (user_visible_resume_target): New.
16161 (do_target_resume): Call target_async.
16162 (resume_1): Set target's threads_executing flag. Consider resume
16163 target.
16164 (commit_resume_all_targets): New.
16165 (proceed): Also consider resume target. Skip threads of inferiors
16166 with no execution. Commit resumtion in all targets.
16167 (start_remote): Pass current inferior to wait_for_inferior.
16168 (infrun_thread_stop_requested): Consider target as well. Pass
16169 thread_info pointer to clear_inline_frame_state instead of ptid.
16170 (infrun_thread_thread_exit): Consider target as well.
16171 (random_pending_event_thread): New inferior parameter. Use it.
16172 (do_target_wait): Rename to ...
16173 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16174 down.
16175 (threads_are_resumed_pending_p, do_target_wait): New.
16176 (prepare_for_detach): Adjust calls.
16177 (wait_for_inferior): New inferior parameter. Handle it. Use
16178 do_target_wait_1 instead of do_target_wait.
16179 (fetch_inferior_event): Adjust. Switch to representative
16180 inferior. Pass target down.
16181 (set_last_target_status): Add process_stratum_target parameter.
16182 Save target in global.
16183 (get_last_target_status): Add process_stratum_target parameter and
16184 handle it.
16185 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16186 (context_switch): Check inferior_ptid == null_ptid before calling
16187 inferior_thread().
16188 (get_inferior_stop_soon): Pass down target.
16189 (wait_one): Rename to ...
16190 (poll_one_curr_target): ... this.
16191 (struct wait_one_event): New.
16192 (wait_one): New.
16193 (stop_all_threads): Adjust.
16194 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16195 event's target.
16196 (switch_back_to_stepped_thread): Also consider target.
16197 (print_stop_event): Update.
16198 (normal_stop): Update. Also consider the resume target.
16199 * infrun.h (wait_for_inferior): Remove declaration.
16200 (user_visible_resume_target): New declaration.
16201 (get_last_target_status, set_last_target_status): New
16202 process_stratum_target parameter.
16203 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16204 process_stratum_target parameter, and use it.
16205 (clear_inline_frame_state (thread_info*)): New.
16206 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16207 process_stratum_target parameter.
16208 (clear_inline_frame_state (thread_info*)): Declare.
16209 * linux-fork.c (delete_checkpoint_command): Pass target down to
16210 find_thread_ptid.
16211 (checkpoint_command): Adjust.
16212 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16213 instead of just tweaking inferior_ptid.
16214 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16215 (exit_lwp): Pass target down to find_thread_ptid.
16216 (attach_proc_task_lwp_callback): Pass target down to
16217 add_thread/set_running/set_executing.
16218 (linux_nat_target::attach): Pass target down to
16219 thread_change_ptid.
16220 (get_detach_signal): Pass target down to find_thread_ptid.
16221 Consider last target status's target.
16222 (linux_resume_one_lwp_throw, resume_lwp)
16223 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16224 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16225 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16226 (linux_nat_target::async_wait_fd): New.
16227 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16228 target down.
16229 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16230 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16231 * linux-thread-db.c (struct thread_db_info::process_target): New
16232 field.
16233 (add_thread_db_info): Save target.
16234 (get_thread_db_info): New process_stratum_target parameter. Also
16235 match target.
16236 (delete_thread_db_info): New process_stratum_target parameter.
16237 Also match target.
16238 (thread_from_lwp): Adjust to pass down target.
16239 (thread_db_notice_clone): Pass down target.
16240 (check_thread_db_callback): Pass down target.
16241 (try_thread_db_load_1): Always push the thread_db target.
16242 (try_thread_db_load, record_thread): Pass target down.
16243 (thread_db_target::detach): Pass target down. Always unpush the
16244 thread_db target.
16245 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16246 target down. Always unpush the thread_db target.
16247 (find_new_threads_callback, thread_db_find_new_threads_2)
16248 (thread_db_target::update_thread_list): Pass target down.
16249 (thread_db_target::pid_to_str): Pass current inferior down.
16250 (thread_db_target::get_thread_local_address): Pass target down.
16251 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16252 target down.
16253 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16254 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16255 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16256 (procfs_init_inferior): Rename to ...
16257 (procfs_target::procfs_init_inferior): ... this and adjust.
16258 (procfs_target::create_inferior, procfs_notice_thread)
16259 (procfs_do_thread_registers): Adjust.
16260 * ppc-fbsd-tdep.c: Include "inferior.h".
16261 (ppcfbsd_get_thread_local_address): Pass down target.
16262 * proc-service.c (ps_xfer_memory): Switch current inferior and
16263 program space as well.
16264 (get_ps_regcache): Pass target down.
16265 * process-stratum-target.c
16266 (process_stratum_target::thread_address_space)
16267 (process_stratum_target::thread_architecture): Pass target down.
16268 * process-stratum-target.h
16269 (process_stratum_target::threads_executing): New field.
16270 (as_process_stratum_target): New.
16271 * ravenscar-thread.c
16272 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16273 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16274 down.
16275 * record-btrace.c (record_btrace_target::info_record): Adjust.
16276 (record_btrace_target::record_method)
16277 (record_btrace_target::record_is_replaying)
16278 (record_btrace_target::fetch_registers)
16279 (get_thread_current_frame_id, record_btrace_target::resume)
16280 (record_btrace_target::wait, record_btrace_target::stop): Pass
16281 target down.
16282 * record-full.c (record_full_wait_1): Switch to event thread.
16283 Pass target down.
16284 * regcache.c (regcache::regcache)
16285 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16286 process_stratum_target parameter and handle it.
16287 (current_thread_target): New global.
16288 (get_thread_regcache): Add process_stratum_target parameter and
16289 handle it. Switch inferior before calling target method.
16290 (get_thread_regcache): Pass target down.
16291 (get_thread_regcache_for_ptid): Pass target down.
16292 (registers_changed_ptid): Add process_stratum_target parameter and
16293 handle it.
16294 (registers_changed_thread, registers_changed): Pass target down.
16295 (test_get_thread_arch_aspace_regcache): New.
16296 (current_regcache_test): Define a couple local test_target_ops
16297 instances and use them for testing.
16298 (readwrite_regcache): Pass process_stratum_target parameter.
16299 (cooked_read_test, cooked_write_test): Pass mock_target down.
16300 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16301 (get_thread_arch_aspace_regcache): Add process_stratum_target
16302 parameter.
16303 (regcache::target): New method.
16304 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16305 (regcache::registers_changed_ptid): Add process_stratum_target
16306 parameter.
16307 (regcache::m_target): New field.
16308 (registers_changed_ptid): Add process_stratum_target parameter.
16309 * remote.c (remote_state::supports_vCont_probed): New field.
16310 (remote_target::async_wait_fd): New method.
16311 (remote_unpush_and_throw): Add remote_target parameter.
16312 (get_current_remote_target): Adjust.
16313 (remote_target::remote_add_inferior): Push target.
16314 (remote_target::remote_add_thread)
16315 (remote_target::remote_notice_new_inferior)
16316 (get_remote_thread_info): Pass target down.
16317 (remote_target::update_thread_list): Skip threads of inferiors
16318 bound to other targets. (remote_target::close): Don't discard
16319 inferiors. (remote_target::add_current_inferior_and_thread)
16320 (remote_target::process_initial_stop_replies)
16321 (remote_target::start_remote)
16322 (remote_target::remote_serial_quit_handler): Pass down target.
16323 (remote_target::remote_unpush_target): New remote_target
16324 parameter. Unpush the target from all inferiors.
16325 (remote_target::remote_unpush_and_throw): New remote_target
16326 parameter. Pass it down.
16327 (remote_target::open_1): Check whether the current inferior has
16328 execution instead of checking whether any inferior is live. Pass
16329 target down.
16330 (remote_target::remote_detach_1): Pass down target. Use
16331 remote_unpush_target.
16332 (extended_remote_target::attach): Pass down target.
16333 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16334 (remote_target::append_resumption): Pass down target.
16335 (remote_target::append_pending_thread_resumptions)
16336 (remote_target::remote_resume_with_hc, remote_target::resume)
16337 (remote_target::commit_resume): Pass down target.
16338 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16339 (remote_target::interrupt_query)
16340 (remote_target::remove_new_fork_children)
16341 (remote_target::check_pending_events_prevent_wildcard_vcont)
16342 (remote_target::remote_parse_stop_reply)
16343 (remote_target::process_stop_reply): Pass down target.
16344 (first_remote_resumed_thread): New remote_target parameter. Pass
16345 it down.
16346 (remote_target::wait_as): Pass down target.
16347 (unpush_and_perror): New remote_target parameter. Pass it down.
16348 (remote_target::readchar, remote_target::remote_serial_write)
16349 (remote_target::getpkt_or_notif_sane_1)
16350 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16351 down target.
16352 (remote_target::mourn_inferior): Pass down target. Use
16353 remote_unpush_target.
16354 (remote_target::core_of_thread)
16355 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16356 (remote_target::pid_to_exec_file)
16357 (remote_target::thread_handle_to_thread_info): Pass down target.
16358 (remote_target::async_wait_fd): New.
16359 * riscv-fbsd-tdep.c: Include "inferior.h".
16360 (riscv_fbsd_get_thread_local_address): Pass down target.
16361 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16362 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16363 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16364 Adjust.
16365 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16366 * solib-svr4.c (enable_break): Pass down target.
16367 * spu-multiarch.c (parse_spufs_run): Pass down target.
16368 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16369 * target-delegates.c: Regenerate.
16370 * target.c (g_target_stack): Delete.
16371 (current_top_target): Return the current inferior's top target.
16372 (target_has_execution_1): Refer to the passed-in inferior's top
16373 target.
16374 (target_supports_terminal_ours): Check whether the initial
16375 inferior was already created.
16376 (decref_target): New.
16377 (target_stack::push): Incref/decref the target.
16378 (push_target, push_target, unpush_target): Adjust.
16379 (target_stack::unpush): Defref target.
16380 (target_is_pushed): Return bool. Adjust to refer to the current
16381 inferior's target stack.
16382 (dispose_inferior): Delete, and inline parts ...
16383 (target_preopen): ... here. Only dispose of the current inferior.
16384 (target_detach): Hold strong target reference while detaching.
16385 Pass target down.
16386 (target_thread_name): Add assertion.
16387 (target_resume): Pass down target.
16388 (target_ops::beneath, find_target_at): Adjust to refer to the
16389 current inferior's target stack.
16390 (get_dummy_target): New.
16391 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16392 has a thread running.
16393 (initialize_targets): Rename to ...
16394 (_initialize_target): ... this.
16395 * target.h: Include "gdbsupport/refcounted-object.h".
16396 (struct target_ops): Inherit refcounted_object.
16397 (target_ops::shortname, target_ops::longname): Make const.
16398 (target_ops::async_wait_fd): New method.
16399 (decref_target): Declare.
16400 (struct target_ops_ref_policy): New.
16401 (target_ops_ref): New typedef.
16402 (get_dummy_target): Declare function.
16403 (target_is_pushed): Return bool.
16404 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16405 (all_matching_threads_iterator::all_matching_threads_iterator):
16406 Handle filter target.
16407 * thread-iter.h (struct all_matching_threads_iterator, struct
16408 all_matching_threads_range, class all_non_exited_threads_range):
16409 Filter by target too. Remove explicit.
16410 * thread.c (threads_executing): Delete.
16411 (inferior_thread): Pass down current inferior.
16412 (clear_thread_inferior_resources): Pass down thread pointer
16413 instead of ptid_t.
16414 (add_thread_silent, add_thread_with_info, add_thread): Add
16415 process_stratum_target parameter. Use it for thread and inferior
16416 searches.
16417 (is_current_thread): New.
16418 (thread_info::deletable): Use it.
16419 (find_thread_ptid, thread_count, in_thread_list)
16420 (thread_change_ptid, set_resumed, set_running): New
16421 process_stratum_target parameter. Pass it down.
16422 (set_executing): New process_stratum_target parameter. Pass it
16423 down. Adjust reference to 'threads_executing'.
16424 (threads_are_executing): New process_stratum_target parameter.
16425 Adjust reference to 'threads_executing'.
16426 (set_stop_requested, finish_thread_state): New
16427 process_stratum_target parameter. Pass it down.
16428 (switch_to_thread): Also match inferior.
16429 (switch_to_thread): New process_stratum_target parameter. Pass it
16430 down.
16431 (update_threads_executing): Reimplement.
16432 * top.c (quit_force): Pop targets from all inferior.
16433 (gdb_init): Don't call initialize_targets.
16434 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16435 Declare.
16436 (windows_add_thread, windows_delete_thread): Adjust.
16437 (get_windows_debug_event): Rename to ...
16438 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16439 * tracefile-tfile.c (tfile_target_open): Pass down target.
16440 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16441 Forward declare.
16442 (switch_to_thread): Add process_stratum_target parameter.
16443 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16444 parameter. Use it.
16445 (mi_on_resume): Pass target down.
16446 * nat/fork-inferior.c (startup_inferior): Add
16447 process_stratum_target parameter. Pass it down.
16448 * nat/fork-inferior.h (startup_inferior): Add
16449 process_stratum_target parameter.
16450 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16451
75c6c844
PA
164522020-01-10 Pedro Alves <palves@redhat.com>
16453
16454 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16455 directly. Instead find the first thread in the thread list and
16456 use switch_to_thread.
16457
78f2c40a
PA
164582020-01-10 Pedro Alves <palves@redhat.com>
16459
16460 * remote.c (remote_target::remote_add_inferior): Don't bind a
16461 process to the current inferior if the current inferior is already
16462 bound to a process.
16463
e7af6c70
TBA
164642020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16465 Pedro Alves <palves@redhat.com>
16466
16467 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16468 If no process is specified, return null_ptid instead of
16469 inferior_ptid.
16470 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16471 TARGET_WAITKIND_SIGNALLED with no pid.
16472
31ba933e
PA
164732020-01-10 Pedro Alves <palves@redhat.com>
16474
16475 * remote.c (first_remote_resumed_thread): New.
16476 (remote_target::wait_as): Use it as default event_ptid instead of
16477 inferior_ptid.
16478
735fc2ca
PA
164792020-01-10 Pedro Alves <palves@redhat.com>
16480
16481 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16482
c17e02e1
PA
164832020-01-10 Pedro Alves <palves@redhat.com>
16484
16485 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16486 not -1.
16487
ab1ddbcf
PA
164882020-01-10 Pedro Alves <palves@redhat.com>
16489
16490 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16491 ptid to get_last_target_status.
16492 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16493 ptid to get_last_target_status.
16494 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16495 get_last_target_status.
16496 (info_program_command): Don't pass a target_waitstatus to
16497 get_last_target_status.
16498 * infrun.c (init_wait_for_inferior): Use
16499 nullify_last_target_wait_ptid.
16500 (get_last_target_status): Handle nullptr arguments.
16501 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16502 (print_stop_event): Don't pass a ptid to get_last_target_status.
16503 (normal_stop): Don't pass a ptid to get_last_target_status.
16504 * infrun.h (get_last_target_status, set_last_target_status): Move
16505 comments here and update.
16506 (nullify_last_target_wait_ptid): Declare.
16507 * linux-fork.c (fork_load_infrun_state): Remove local extern
16508 declaration of nullify_last_target_wait_ptid.
16509 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16510 to get_last_target_status.
16511
f3f8ece4
PA
165122020-01-10 Pedro Alves <palves@redhat.com>
16513
16514 * gdbthread.h (scoped_restore_current_thread)
16515 <dont_restore, restore, m_dont_restore>: Declare.
16516 * thread.c (thread_alive): Add assertion. Return bool.
16517 (switch_to_thread_if_alive): New.
16518 (prune_threads): Switch inferior/thread.
16519 (print_thread_info_1): Switch thread before calling target methods.
16520 (scoped_restore_current_thread::restore): New, factored out from
16521 ...
16522 (scoped_restore_current_thread::~scoped_restore_current_thread):
16523 ... this.
16524 (scoped_restore_current_thread::scoped_restore_current_thread):
16525 Add assertion.
16526 (thread_apply_all_command, thread_select): Use
16527 switch_to_thread_if_alive.
16528 * infrun.c (proceed, restart_threads, handle_signal_stop)
16529 (switch_back_to_stepped_thread): Switch current thread before
16530 calling target methods.
16531
db2d40f7
PA
165322020-01-10 Pedro Alves <palves@redhat.com>
16533
16534 * inferior.c (switch_to_inferior_no_thread): New function,
16535 factored out from ...
16536 (inferior_command): ... here.
16537 * inferior.h (switch_to_inferior_no_thread): Declare.
16538 * mi/mi-main.c (run_one_inferior): Use
16539 switch_to_inferior_no_thread.
16540
bd420a2d
PA
165412020-01-10 Pedro Alves <palves@redhat.com>
16542
16543 * infcmd.c (kill_command): Remove dead code.
16544
ddf5db90
PA
165452020-01-10 Pedro Alves <palves@redhat.com>
16546
16547 * remote.c (remote_target::mourn_inferior): No longer check
16548 whether the target is running.
16549
5018ce90
PA
165502020-01-10 Pedro Alves <palves@redhat.com>
16551
16552 * corelow.c (core_target::has_execution): Change parameter type to
16553 inferior pointer.
16554 * inferior.c (number_of_live_inferiors): Use
16555 inferior::has_execution instead of target_has_execution_1.
16556 * inferior.h (inferior::has_execution): New.
16557 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16558 inferior::has_execution instead of target_has_execution_1.
16559 * process-stratum-target.c
16560 (process_stratum_target::has_execution): Change parameter type to
16561 inferior pointer. Check the inferior's PID instead of
16562 inferior_ptid.
16563 * process-stratum-target.h
16564 (process_stratum_target::has_execution): Change parameter type to
16565 inferior pointer.
16566 * record-full.c (record_full_core_target::has_execution): Change
16567 parameter type to inferior pointer.
16568 * target.c (target_has_execution_1): Change parameter type to
16569 inferior pointer.
16570 (target_has_execution_current): Adjust.
16571 * target.h (target_ops::has_execution): Change parameter type to
16572 inferior pointer.
16573 (target_has_execution_1): Change parameter type to inferior
16574 pointer. Change return type to bool.
16575 * tracefile.h (tracefile_target::has_execution): Change parameter
16576 type to inferior pointer.
16577
74375d18
PA
165782020-01-10 Pedro Alves <palves@redhat.com>
16579
16580 * exceptions.c (print_flush): Remove current_top_target() check.
16581
acdf84a6
PA
165822020-01-10 Pedro Alves <palves@redhat.com>
16583
16584 * remote.c (show_remote_exec_file): Show the current inferior's
16585 exec-file instead of the command variable's value.
16586
ec506636
PA
165872020-01-10 Pedro Alves <palves@redhat.com>
16588
16589 * record-full.c (record_full_resume_ptid): New global.
16590 (record_full_target::resume): Set it.
16591 (record_full_wait_1): Use record_full_resume_ptid instead of
16592 inferior_ptid.
16593
873657b9
PA
165942020-01-10 Pedro Alves <palves@redhat.com>
16595
16596 * gdbthread.h (scoped_restore_current_thread)
16597 <dont_restore, restore, m_dont_restore>: Declare.
16598 * thread.c (thread_alive): Add assertion. Return bool.
16599 (switch_to_thread_if_alive): New.
16600 (prune_threads): Switch inferior/thread.
16601 (print_thread_info_1): Switch thread before calling target methods.
16602 (scoped_restore_current_thread::restore): New, factored out from
16603 ...
16604 (scoped_restore_current_thread::~scoped_restore_current_thread):
16605 ... this.
16606 (scoped_restore_current_thread::scoped_restore_current_thread):
16607 Add assertion.
16608 (thread_apply_all_command, thread_select): Use
16609 switch_to_thread_if_alive.
16610
7f0ae84c
GB
166112020-01-10 George Barrett <bob@bob131.so>
16612
16613 * stap-probe.c (stap_modify_semaphore): Don't check for null
16614 semaphores.
16615 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16616 for null semaphores.
16617
f5a7c406
AB
166182020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16619
16620 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16621 all source windows, and maintain horizontal scroll status while
16622 doing so.
16623
9ae6bf64
TT
166242020-01-09 Tom Tromey <tom@tromey.com>
16625
16626 PR tui/18932:
16627 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16628 update_source_window, not print_source_lines.
16629
b2efe70c
AB
166302020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16631
16632 * tui/tui.c (tui_enable): Register tui hooks after calling
16633 tui_display_main.
16634
5f23a082
CB
166352020-01-09 Christian Biesinger <cbiesinger@google.com>
16636
16637 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16638
3061113b
SM
166392020-01-08 Simon Marchi <simon.marchi@efficios.com>
16640
16641 * thread.c (print_thread_info_1): Fix indentation.
16642
57d75002
CB
166432020-01-09 Christian Biesinger <cbiesinger@google.com>
16644
16645 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16646 unique_xmalloc_ptr outside the if to always free the demangled name.
16647
6a053cb1
TT
166482020-01-08 Tom Tromey <tromey@adacore.com>
16649
16650 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16651 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16652 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16653 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16654 Remove.
16655 (section_offsets): New typedef.
16656 * symtab.c (fixup_section, get_msymbol_address): Update.
16657 * symmisc.c (dump_msymbols): Update.
16658 * symfile.h (relative_addr_info_to_section_offsets)
16659 (symfile_map_offsets_to_segments): Update.
16660 * symfile.c (build_section_addr_info_from_objfile)
16661 (init_objfile_sect_indices): Update.
16662 (struct place_section_arg): Change type of "offsets".
16663 (place_section): Update.
16664 (relative_addr_info_to_section_offsets): Change type of
16665 "section_offsets". Remove "num_sections" parameter.
16666 (default_symfile_offsets, syms_from_objfile_1)
16667 (set_objfile_default_section_offset): Update.
16668 (reread_symbols): No need to preserve section offsets by hand.
16669 (symfile_map_offsets_to_segments): Change type of "offsets".
16670 * stap-probe.c (relocate_address): Update.
16671 * stabsread.h (process_one_symbol): Update.
16672 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16673 (solib_target_relocate_section_addresses): Update.
16674 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16675 Update.
16676 * solib-frv.c (frv_relocate_main_executable): Update.
16677 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16678 * solib-aix.c (solib_aix_get_section_offsets): Change return
16679 type.
16680 (solib_aix_solib_create_inferior_hook): Update.
16681 * remote.c (remote_target::get_offsets): Update.
16682 * psymtab.c (find_pc_sect_psymtab): Update.
16683 * psympriv.h (struct partial_symbol) <address, text_low,
16684 text_high>: Update.
16685 * objfiles.h (obj_section_offset): Update.
16686 (struct objfile) <section_offsets>: Change type.
16687 <num_sections>: Remove.
16688 (objfile_relocate): Update.
16689 * objfiles.c (entry_point_address_query): Update
16690 (relocate_one_symbol): Change type of "section_offsets".
16691 (objfile_relocate1, objfile_relocate1): Change type of
16692 "new_offsets".
16693 (objfile_rebase1): Update.
16694 * mipsread.c (mipscoff_symfile_read): Update.
16695 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16696 parameter.
16697 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16698 (parse_external, psymtab_to_symtab_1): Update.
16699 * machoread.c (macho_symfile_offsets): Update.
16700 * ia64-tdep.c (ia64_find_unwind_table): Update.
16701 * hppa-tdep.c (read_unwind_info): Update.
16702 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16703 * dwarf2read.c (create_addrmap_from_index)
16704 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16705 (process_psymtab_comp_unit_reader, add_partial_symbol)
16706 (add_partial_subprogram, process_full_comp_unit)
16707 (read_file_scope, read_func_scope, read_lexical_block_scope)
16708 (read_call_site_scope, dwarf2_rnglists_process)
16709 (dwarf2_ranges_process, dwarf2_ranges_read)
16710 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16711 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16712 Update.
16713 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16714 Update.
16715 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16716 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16717 (process_one_symbol): Change type of "section_offsets".
16718 * ctfread.c (get_objfile_text_range): Update.
16719 * coffread.c (coff_symtab_read, enter_linenos)
16720 (process_coff_symbol): Update.
16721 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16722 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16723
456e800a
TT
167242020-01-08 Tom Tromey <tromey@adacore.com>
16725
16726 * dwarf2read.c (parse_macro_definition): Use std::string.
16727 (parse_macro_definition): Likewise.
16728
6dfa2fc2
TT
167292020-01-08 Tom Tromey <tromey@adacore.com>
16730
16731 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16732 (ATTR_ALLOC_CHUNK): Remove.
16733
421d1616
TT
167342020-01-08 Tom Tromey <tromey@adacore.com>
16735
16736 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16737
43816ebc
TT
167382020-01-08 Tom Tromey <tromey@adacore.com>
16739
16740 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16741 (dwarf2_compute_name, open_dwo_file): Likewise.
16742 (process_enumeration_scope): Use std::vector.
16743 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16744 (partial_die_info::fixup, dwarf2_start_subfile)
16745 (guess_full_die_structure_name, dwarf2_name): Likewise.
16746 (determine_prefix): Update.
16747 (guess_full_die_structure_name): Make return type const.
16748 (partial_die_full_name): Return unique_xmalloc_ptr.
16749 (DW_FIELD_ALLOC_CHUNK): Remove.
16750
4212d509
TT
167512020-01-07 Tom Tromey <tromey@adacore.com>
16752
16753 PR build/24937:
16754 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16755
06a6207a
JT
167562020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16757
16758 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16759
153d79c4
AB
167602020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16761
16762 * stack.c (print_frame_info): Move disassemble_next_line code
16763 inside source_print block.
16764
66182876
EZ
167652020-01-06 Eli Zaretskii <eliz@gnu.org>
16766
16767 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16768 gdb/signals.h, as we are now using native signal symbols.
16769
cbfa8581
SV
167702020-01-06 Shahab Vahedi <shahab@synopsys.com>
16771
16772 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16773 overflow by an early check of content vs threshold.
aac66a4c 16774 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16775 Likewise.
16776
3f602821
EZ
167772020-01-06 Eli Zaretskii <eliz@gnu.org>
16778
16779 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16780
a08c904d
JT
167812020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16782
16783 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16784 export table if no section contains it's RVA.
16785
89a65580
EZ
167862020-01-06 Eli Zaretskii <eliz@gnu.org>
16787
16788 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16789
8b7fcda2
HD
167902020-01-06 Hannes Domani <ssbssa@yahoo.de>
16791
16792 * source.c (print_source_lines_base): Set last_line_listed.
16793
a61b4f69
SV
167942020-01-06 Shahab Vahedi <shahab@synopsys.com>
16795
16796 * tui/tui-disasm.c: Remove trailing spaces.
16797
559e7e50
EZ
167982020-01-06 Eli Zaretskii <eliz@gnu.org>
16799 Pedro Alves <palves@redhat.com>
16800
16801 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16802 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16803 (windows_gdb_signal_to_target): New function, uses the above
16804 enumeration to convert GDB internal signal codes to equivalent
16805 Windows codes.
16806 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16807 * windows-nat.c: Include "gdb_wait.h".
16808 (get_windows_debug_event): Extract the fatal exception from the
16809 exit status and convert to the equivalent Posix signal number.
16810 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16811 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16812 * gdbsupport/gdb_wait.c: New file, implements
16813 windows_status_to_termsig.
16814 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16815 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16816
f2302a34
AB
168172020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16818
16819 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16820 show_layout.
16821
6a5206eb
LM
168222020-01-05 Luis Machado <luis.machado@linaro.org>
16823
16824 * aarch64-linux-nat.c
16825 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16826 and bfd_mach_aarch64.
16827
6ec1d75e
PW
168282020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16829
16830 * ui-file.c (stdio_file::can_emit_style_escape)
16831 (tee_file::can_emit_style_escape): Ensure style is used also on
16832 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16833 to gdb_stdout.
16834 * main.c (set_gdb_data_directory): Use file style to output the
16835 warning that the given pathname is not a directory.
16836 * top.c (show_history_filename, gdb_safe_append_history)
16837 (show_gdb_datadir): Use file style.
16838
44f81a76
HD
168392020-01-03 Hannes Domani <ssbssa@yahoo.de>
16840
16841 * solib-target.c (struct lm_info_target):
16842 Change offsets to be a unique_xmalloc_ptr.
16843 (solib_target_relocate_section_addresses): Update.
16844
25057eb0
HD
168452020-01-03 Hannes Domani <ssbssa@yahoo.de>
16846
16847 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16848
6e2118f5
BE
168492020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16850
16851 * MAINTAINERS (Write After Approval): Add myself.
16852
8133c7dc
LM
168532020-01-02 Luis Machado <luis.machado@linaro.org>
16854
16855 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16856 Cell BE architecture.
16857 * target.h (struct target_ops) <thread_architecture>: Likewise.
16858
48189bec
HD
168592020-01-01 Hannes Domani <ssbssa@yahoo.de>
16860
16861 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16862
ead1063b
HD
168632020-01-01 Hannes Domani <ssbssa@yahoo.de>
16864
16865 * MAINTAINERS (Write After Approval): Add myself.
16866
e5d78223
JB
168672020-01-01 Joel Brobecker <brobecker@adacore.com>
16868
16869 * gdbarch.sh: Update copyright year range of generated files.
16870
b811d2c2
JB
168712020-01-01 Joel Brobecker <brobecker@adacore.com>
16872
16873 Update copyright year range in all GDB files.
16874
5f4def5c
JB
168752020-01-01 Joel Brobecker <brobecker@adacore.com>
16876
16877 * copyright.py: Convert to Python 3.
16878
51fd4002
JB
168792020-01-01 Joel Brobecker <brobecker@adacore.com>
16880
16881 * copyright.py: Adapt after move of gnulib directory from gdb
16882 directory to toplevel directory.
16883
5fb651f2
JB
168842020-01-01 Joel Brobecker <brobecker@adacore.com>
16885
16886 * copyright.py (main): Exit if run from the wrong directory.
16887
5dd8bf88
JB
168882020-01-01 Joel Brobecker <brobecker@adacore.com>
16889
16890 * top.c (print_gdb_version): Change copyright year to 2020.
16891
9f71dacb 168922020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16893
9f71dacb 16894 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16895
9f71dacb 16896For older changes see ChangeLog-2019.
c906108c
SS
16897\f
16898Local Variables:
16899mode: change-log
16900left-margin: 8
16901fill-column: 74
16902version-control: never
57da7796 16903coding: utf-8
c906108c 16904End: