gdb: don't use inferior_ptid in linux_nat_wait_1
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4 checking for initial lwp.
5
6 2020-09-14 Tom Tromey <tromey@adacore.com>
7
8 * m68k-tdep.c (m68k_extract_return_value): Use
9 pointer_result_regnum.
10 (m68k_store_return_value): Likewise.
11 (m68k_reg_struct_return_p): Handle vectors and arrays.
12 (m68k_return_value): Handle arrays.
13 (m68k_svr4_return_value): Fix single-element aggregate handling.
14 Handle long double. Adjust for embedded ABI.
15 (m68k_svr4_init_abi): Set pointer_result_regnum.
16 (m68k_embedded_init_abi): New function.
17 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
18 (m68k_osabi_sniffer): New function.
19 (_initialize_m68k_tdep): Register osabi sniffer.
20 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
21 member.
22
23 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * xml-support.c (xml_fetch_content_from_file): Replace xfree
26 with gdb::unique_xmalloc_ptr<char>.
27
28 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
29
30 * xml-support.h (xml_fetch_another): Change type to be a
31 function_view.
32 (xml_process_xincludes): Remove baton parameter.
33 (xml_fetch_content_from_file): Change baton parameter to
34 dirname.
35 * xml-support.c (struct xinclude_parsing_data)
36 <xinclude_parsing_data>: Remove baton parameter.
37 <fetcher_baton>: Remove.
38 (xinclude_start_include): Adjust.
39 (xml_process_xincludes): Adjust.
40 (xml_fetch_content_from_file): Replace baton parameter with
41 dirname.
42 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
43 (xml_init_syscalls_info): Use a lambda.
44 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
45 (file_read_description_xml): Use a lambda.
46 (fetch_available_features_from_target): Change baton parameter
47 to target_ops.
48 (target_read_description_xml): Use a lambda.
49 (target_fetch_description_xml): Use a lambda.
50 (string_read_description_xml): Update.
51
52 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
55 uses with type::endianity_is_not_default.
56
57 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
58
59 * gdbtypes.h (struct type) <endianity_is_not_default,
60 set_endianity_is_not_default>: New methods.
61 (TYPE_ENDIANITY_NOT_DEFAULT): Use
62 type::endianity_is_not_default, change all write call sites to
63 use type::set_endianity_is_not_default.
64
65 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
66
67 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
68 uses with type::is_fixed_instance.
69
70 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
71
72 * gdbtypes.h (struct type) <is_fixed_instance,
73 set_is_fixed_instance>: New methods.
74 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
75 write call sites to use type::set_is_fixed_instance.
76
77 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
78
79 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
80 uses with type::is_gnu_ifunc.
81
82 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
83
84 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
85 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
86 use type::set_is_gnu_ifunc.
87
88 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
89
90 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
91 uses with type::stub_is_supported.
92
93 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
94
95 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
96 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
97 use type::set_stub_is_supported.
98
99 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
100
101 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
102 uses with type::is_vector.
103
104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
105
106 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
107 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
108 use type::set_is_vector.
109
110 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
111
112 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
113 uses with type::has_varargs.
114
115 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
116
117 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
118 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
119 use type::set_has_varargs.
120
121 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
122
123 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
124 uses with type::is_prototyped.
125
126 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
127
128 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
129 New methods.
130 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
131 call sites to use type::set_is_prototyped.
132
133 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
134
135 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
136 uses with type::target_is_stub.
137
138 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
139
140 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
141 New methods.
142 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
143 sites to use type::set_target_is_stub.
144
145 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
146
147 * gdbtypes.h (TYPE_STUB): Remove, replace all
148 uses with type::is_stub.
149
150 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
151
152 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
153 (TYPE_STUB): Use type::is_stub, change all write call sites to
154 use type::set_is_stub.
155
156 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
157
158 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
159 type::has_no_signedness.
160
161 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
162
163 * gdbtypes.h (struct type) <has_no_signedness,
164 set_has_no_signedness>: New methods.
165 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
166 call sites to use type::set_has_no_signedness.
167
168 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
169
170 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
171 type::is_unsigned.
172
173 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
174
175 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
176 methods.
177 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
178 sites to use type::set_is_unsigned.
179
180 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
181 Adam Renquinha <arenquinha@cimeq.qc.ca>
182
183 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
184 pointer and stack frame offset when unwinding.
185
186 2020-09-13 Pedro Alves <pedro@palves.net>
187
188 * NEWS: Document "-break-insert --qualified".
189 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
190
191 2020-09-13 Pedro Alves <pedro@palves.net>
192
193 * linespec.c (classify_mtype, compare_msyms): Delete.
194 (search_minsyms_for_name): Remove classification logic. Instead
195 filter out trampoline symbols if we also found an external
196 function of the same name.
197
198 2020-09-13 Joel Brobecker <brobecker@adacore.com>
199
200 * NEWS: Create a new section for the next release branch.
201 Rename the section of the current branch, now that it has
202 been cut.
203
204 2020-09-13 Joel Brobecker <brobecker@adacore.com>
205
206 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
207 * version.in: Bump version to 11.0.50.DATE-git.
208
209 2020-09-12 Joel Brobecker <brobecker@adacore.com>
210
211 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
212
213 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
214 Felix Willgerodt <Felix.Willgerodt@intel.com>
215
216 * gdbarch.sh: Added bfloat16 type.
217 * gdbarch.c: Regenerated.
218 * gdbarch.h: Regenerated.
219 * gdbtypes.c (floatformats_bfloat16): New struct.
220 (gdbtypes_post_init): Add builtin_bfloat16.
221 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
222 (floatformats_bfloat16): New struct.
223 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
224 (i386_ymm_type): Add field "v16_bfloat16"
225 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
226 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
227 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
228 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
229 * features/i386/64bit-avx512.xml: Add bfloat16 type.
230 * features/i386/64bit-avx512.c: Regenerated.
231 * features/i386/64bit-sse.xml: Add bfloat16 type.
232 * features/i386/64bit-sse.c: Regenerated.
233
234 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
235
236 * i386-tdep.c (i386_zmm_type): Fix field names.
237 (i386_ymm_type): Fix field names.
238
239 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
240
241 * breakpoint.c: Fix typo in the help message of the
242 "set breakpoint condition-evaluation" command.
243
244 2020-09-10 Kamil Rytarowski <n54@gmx.com>
245
246 * nbsd-nat.c: Include "nat/netbsd-nat.h".
247 * (nbsd_nat_target::pid_to_exec_file)
248 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
249 (nbsd_nat_target::post_startup_inferior)
250 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
251 (nbsd_add_threads): Switch local code to common gdb/nat functions.
252 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
253 * (nbsd_thread_lister): Remove.
254
255 2020-09-10 Kamil Rytarowski <n54@gmx.com>
256
257 * fork-inferior.c (startup_inferior): Avoid double free.
258
259 2020-09-10 Kamil Rytarowski <n54@gmx.com>
260
261 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
262 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
263
264 2020-09-10 Kamil Rytarowski <n54@gmx.com>
265
266 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
267 * netbsd-nat.c: Include <sys/ptrace.h>.
268 * (netbsd_nat::enable_proc_events): Add.
269
270 2020-09-10 Kamil Rytarowski <n54@gmx.com>
271
272 * netbsd-nat.h: Include "gdbsupport/function-view.h".
273 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
274 (netbsd_nat::for_each_thread): Add.
275 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
276 "gdbsupport/common-debug.h".
277 * (netbsd_nat::netbsd_thread_lister)
278 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
279 (netbsd_nat::for_each_thread): Add.
280
281 2020-09-10 Kamil Rytarowski <n54@gmx.com>
282
283 * netbsd-nat.h: Include <unistd.h>.
284 * (netbsd_nat::pid_to_exec_file): Add.
285 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
286 * (netbsd_nat::pid_to_exec_file) Add.
287
288 2020-09-10 Kamil Rytarowski <n54@gmx.com>
289
290 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
291
292 2020-09-10 Kamil Rytarowski <n54@gmx.com>
293
294 * netbsd-nat.h: New file.
295 * netbsd-nat.c: Likewise.
296
297 2020-09-09 Tom Tromey <tromey@adacore.com>
298
299 * ada-lang.c (remove_extra_symbols): Do not increment when
300 removing an element
301
302 2020-09-08 Tom Tromey <tromey@adacore.com>
303
304 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
305
306 2020-09-08 Tom Tromey <tromey@adacore.com>
307
308 PR win32/25302:
309 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
310 (gdb_bfd_init_data): New function.
311 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
312
313 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
314
315 * infrun.c (fetch_inferior_event): Use
316 `switch_to_target_no_thread` to switch the target.
317
318 2020-09-06 Tom Tromey <tom@tromey.com>
319
320 * symfile.h (dwarf2_free_objfile): Don't declare.
321
322 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
323
324 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
325 to match 16 byte real/complex type generated by Flang compiler.
326
327 2020-09-03 Tom de Vries <tdevries@suse.de>
328
329 PR breakpoint/26546
330 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
331 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
332
333 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
334
335 * maint.c (index_digits): New function.
336 (struct maint_print_section_data): Remove.
337 (print_bfd_section_info): Remove print_data parameter, add arg
338 and index_digits.
339 (print_objfile_section_info): Likewise.
340 (print_bfd_section_info_maybe_relocated): Likewise (plus
341 objfile).
342 (maintenance_info_sections): Adjust calls.
343
344 2020-09-02 Tom Tromey <tromey@adacore.com>
345
346 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
347 for null pointers.
348 (ada_varobj_adjust_for_child_access): Special-case null pointers.
349
350 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
351
352 * bcache.h (struct bcache) <insert>: Change type of `added` to
353 pointer to bool.
354 * bcache.c (bcache::insert): Likewise.
355 * gdbtypes.c (check_types_worklist): Adjust.
356 * psymtab.c (add_psymbol_to_bcache): Adjust.
357
358 2020-08-31 Kevin Buettner <kevinb@redhat.com>
359
360 * corelow.c (unordered_set): Include.
361 (class core_target): Add field 'm_core_unavailable_mappings'.
362 (core_target::build_file_mappings): Print only one warning
363 per inaccessible file. Add unavailable/broken mappings
364 to m_core_unavailable_mappings.
365 (core_target::xfer_partial): Call...
366 (core_target::xfer_memory_via_mappings): New method.
367
368 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
371 type to bool.
372
373 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
374
375 * dwarf2/read.c (struct field_info): Fix indentation.
376
377 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
378
379 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
380 ordering in comment.
381 * frame.c (frame_id_eq): Fix indentation.
382
383 2020-08-31 Scott Linder <scott@scottlinder.com>
384 Simon Marchi <simon.marchi@efficios.com>
385
386 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
387 inline frame ids in outer frame.
388
389 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
390
391 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
392 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
393 (outer_frame_id): Use FID_STACK_OUTER instead of
394 FID_STACK_INVALID.
395 (frame_id_p): Don't check for outer_frame_id.
396
397 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
398
399 * frame-unwind.c (frame_unwind_got_optimized): Don't set
400 regnum/frame in value. Call allocate_value_lazy.
401 * frame.c (frame_unwind_register_value): Use
402 val_print_not_saved.
403
404 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
405
406 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
407
408 2020-08-29 Pedro Alves <pedro@palves.net>
409
410 * progspace.c (print_program_space): Use all_inferiors. Switch to
411 the inferior before calling target_pid_to_str.
412
413 2020-08-28 Tom Tromey <tom@tromey.com>
414
415 * xcoffread.c (xcoff_end_psymtab): Update comment.
416 * dbxread.c (dbx_end_psymtab): Update comment.
417
418 2020-08-28 Tom de Vries <tdevries@suse.de>
419
420 PR breakpoint/26544
421 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
422 event_location.
423 (create_breakpoint): Same.
424 (base_breakpoint_decode_location): Same.
425 (bkpt_create_sals_from_location): Same.
426 (bkpt_decode_location): Same.
427 (bkpt_probe_create_sals_from_location): Same.
428 (bkpt_probe_decode_location): Same.
429 (tracepoint_create_sals_from_location): Same.
430 (tracepoint_decode_location): Same.
431 (tracepoint_probe_decode_location): Same.
432 (strace_marker_create_sals_from_location): Same.
433 (strace_marker_decode_location): Same.
434 (create_sals_from_location_default): Same.
435 (decode_location_default): Same.
436 * breakpoint.h (struct breakpoint_ops): Same.
437 (create_breakpoint): Same.
438 * linespec.h (decode_line_full): Same.
439 * linespec.c (decode_line_full): Same. Throw error if
440 result.size () == 0.
441
442 2020-08-27 Pedro Alves <pedro@palves.net>
443
444 PR gdb/26524
445 * breakpoint.c (until_break_fsm) <location_breakpoint,
446 caller_breakpoint>: Delete fields.
447 <breakpoints>: New field.
448 <until_break_fsm>: Adjust to save a breakpoint vector instead of
449 two individual breakpoints.
450 (until_break_fsm::should_stop): Loop over breakpoints in the
451 breakpoint vector.
452 (until_break_fsm::clean_up): Adjust to clear the breakpoints
453 vector.
454 (until_break_command): Handle location expanding into multiple
455 sals.
456
457 2020-08-27 Pedro Alves <pedro@palves.net>
458
459 PR gdb/26523
460 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
461 bp_until breakpoints user-specified locations. Update intro
462 comment.
463
464 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
465
466 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
467 gdb_bfd_sections): New.
468 * maint.c (print_bfd_section_info): Change param type to
469 maint_print_section_data.
470 (print_objfile_section_info): Likewise.
471 (print_bfd_section_info_maybe_relocated): Likewise.
472 (maintenance_info_sections): Use gdb_bfd_sections.
473
474 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
475
476 * MAINTAINERS: Add ARC target and maintainer.
477
478 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
479
480 * configure.tgt: ARC support for GNU/Linux.
481 * Makefile.in (ALL_TARGET_OBJS): Likewise.
482 * arc-linux-tdep.c: New file.
483 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
484 * arc-tdep.c (arc_write_pc): Use it.
485
486 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
487
488 * arc-tdep.c (arc_check_for_hardware_loop): New.
489 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
490
491 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
492
493 * arc-tdep.h: Include "gdbarch.h".
494
495 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
496
497 * arch/arc.h
498 (arc_gdbarch_features): New class to stir the selection of target XML.
499 (arc_create_target_description): Use FEATURES to choose XML target.
500 (arc_lookup_target_description): Use arc_create_target_description
501 to create _new_ target descriptions or return the already created
502 ones if the FEATURES is the same.
503 * arch/arc.c: Implementation of prototypes described above.
504 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
505 (arc_gdbarch_features_init): Initialize the FEATURES struct.
506 * arc-tdep.c (*_feature_name): Make feature names consistent.
507 (arc_register_feature): A new struct to hold information about
508 registers of a particular target/feature.
509 (arc_check_tdesc_feature): Check if XML provides registers in
510 compliance with ARC_REGISTER_FEATURE structs.
511 (arc_update_acc_reg_names): Add aliases for r58 and r59.
512 (determine_*_reg_feature_set): Which feature name to look for.
513 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
514 (mach_type_to_arc_isa): Convert from a set of binutils machine types
515 to expected ISA enums to be used in arc_gdbarch_features structs.
516 * features/Makefile (FEATURE_XMLFILES): Add new files.
517 * gdb/features/arc/v1-aux.c: New file.
518 * gdb/features/arc/v1-aux.xml: Likewise.
519 * gdb/features/arc/v1-core.c: Likewise.
520 * gdb/features/arc/v1-core.xml: Likewise.
521 * gdb/features/arc/v2-aux.c: Likewise.
522 * gdb/features/arc/v2-aux.xml: Likewise.
523 * gdb/features/arc/v2-core.c: Likewise.
524 * gdb/features/arc/v2-core.xml: Likewise.
525 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
526
527 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
528 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 PR m2/26372
531 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
532 an assert. Remove single element array indexing pattern as the
533 MULTI_SUBSCRIPT support will handle this case too.
534
535 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
536
537 * value.h (valprint_check_validity): Move declaration from
538 here...
539 * valprint.h (valprint_check_validity): ... to here.
540
541 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
542
543 * debug.h: New file.
544 * debug.c (debug_prefixed_vprintf): New function.
545 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
546 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
547
548 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
549
550 * infrun.h (infrun_debug_printf_1): New function declaration.
551 (infrun_debug_printf): New macro.
552 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
553 throughout.
554 (infrun_debug_printf): New function.
555 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
556 (handle_jit_event): Likewise.
557
558 2020-08-21 Mark Wielaard <mark@klomp.org>
559
560 * ada-lex.l: Extend register warnings diagnostics comment for g++.
561
562 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
563
564 * frame.c (enum class frame_id_status): New.
565 (struct frame_info) <this_id::p>: Change type to frame_id_status.
566 (fprintf_frame): Update.
567 (compute_frame_id): Set frame id status to "computing" on entry.
568 Set it back to "not_computed" on failure and to "computed" on
569 success.
570 (get_frame_id): Assert the frame id is not being computed.
571 (create_sentinel_frame): Use frame_id_status::COMPUTED.
572 (create_new_frame): Likewise.
573 (frame_cleanup_after_sniffer): Update assert.
574
575 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
576
577 * regcache.c (pid_ptid_regcache_map): New type.
578 (target_ptid_regcache_map): Remove.
579 (target_pid_ptid_regcache_map): New type.
580 (regcaches): Change type to target_pid_ptid_regcache_map.
581 (get_thread_arch_aspace_regcache): Update.
582 (regcache_thread_ptid_changed): Update, handle pid-like ptid
583 case.
584 (regcaches_size): Update.
585 (regcache_count): Update.
586 (registers_changed_ptid_target_pid_test): New.
587 (_initialize_regcache): Register new test.
588
589 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
590
591 * regcache.c (regcache_count): New.
592 (struct regcache_test_data): New.
593 (regcache_test_data_up): New.
594 (populate_regcaches_for_test): New.
595 (regcaches_test): Remove.
596 (get_thread_arch_aspace_regcache_test): New.
597 (registers_changed_ptid_all_test): New.
598 (registers_changed_ptid_target_test): New.
599 (registers_changed_ptid_target_ptid_test): New.
600 (regcache_thread_ptid_changed): Remove regcache_count lambda.
601 (_initialize_regcache): Register new tests.
602
603 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
604
605 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
606 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
607 gdbarch and aspace parameter. Use current inferior's aspace.
608 Validate regcache's arch value.
609 (regcaches_test): Update.
610
611 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
612
613 * regcache.c (regcaches_test): Call registers_changed.
614
615 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
616
617 * infrun.c (process_event_stop_test): Fix typo "breapoint".
618
619 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
620
621 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
622 to find the end of prologue for flang compiled binaries.
623 * arm-tdep.c (arm_skip_prologue): Likewise.
624 * i386-tdep.c (i386_skip_prologue): Likewise.
625 * producer.c (producer_is_llvm): New function.
626 (producer_parsing_tests): Added new tests for clang/flang.
627 * producer.h (producer_is_llvm): New declaration.
628
629 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
630
631 * linux-nat.c (linux_nat_debug_printf): New function.
632 (linux_nat_debug_printf_1): New macro. Use throughout the file.
633
634 2020-08-18 Aaron Merey <amerey@redhat.com>
635
636 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
637 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
638 (CLIBS): Add DEBUGINFOD_LIBS.
639
640 2020-08-17 Sergei Trofimovich <siarheit@google.com>
641
642 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
643 'gdbarch_num_regs'.
644
645 2020-08-17 Tom Tromey <tromey@adacore.com>
646
647 * ada-varobj.c (ada_varobj_decode_var): Handle case where
648 ada_get_decoded_value returns NULL.
649
650 2020-08-17 Tom Tromey <tromey@adacore.com>
651
652 * python/py-inferior.c (infpy_search_memory): Use
653 gdb_py_object_from_ulongest.
654 * python/py-infevents.c (create_inferior_call_event_object)
655 (create_memory_changed_event_object): Use
656 gdb_py_object_from_ulongest.
657 * python/py-linetable.c (ltpy_entry_get_pc): Use
658 gdb_py_object_from_ulongest.
659
660 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
661
662 * loc.c (class symbol_needs_eval_context): Fix indentation.
663
664 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
665
666 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
667 bool.
668
669 2020-08-17 Tom de Vries <tdevries@suse.de>
670
671 PR gdb/26393
672 * gdbtypes.c (dump_dynamic_prop): New function.
673 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
674
675 2020-08-15 Tom de Vries <tdevries@suse.de>
676
677 PR backtrace/26390
678 * stack.c (print_frame_args): Temporarily set the selected
679 frame to FRAME while printing the frame's arguments.
680
681 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
682
683 PR breakpoints/26385
684 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
685 Always clear watchpoint with PTRACE_SET_DEBUGREG.
686
687 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
688
689 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
690 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
691 and >= to check return value instead of == -1 and != -1.
692
693 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
694
695 * utils.h (class gdb_argv) <as_array_view>: New method.
696 * utils.c (gdb_argv_as_array_view_test): New.
697 (_initialize_utils): Register selftest.
698 * maint.c (maintenance_selftest): Use the new method.
699
700 2020-08-13 Kamil Rytarowski <n54@gmx.com>
701
702 * target.h (supports_dumpcore, dumpcore): New
703 function declarations.
704 * target.c (supports_dumpcore, dumpcore): New
705 functions.
706 * target-delegates.c: Rebuild.
707 * gcore.c (gcore_command): Use target_supports_dumpcore ()
708 and target_dumpcore ().
709
710 2020-08-13 Aaron Merey <amerey@redhat.com>
711
712 * debuginfod-support.c: Replace global variables with user_data.
713
714 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
715
716 * maint.c (maintenance_selftest): Split args and pass array_view
717 to run_tests.
718
719 2020-08-12 Luis Machado <luis.machado@linaro.org>
720
721 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
722 type's length.
723 Use %s and pulongest to print the length.
724
725 2020-08-12 Pedro Alves <palves@redhat.com>
726
727 * NEWS: Move "Multi-target debugging support" item to the
728 "Changes since GDB 9" section.
729
730 2020-08-12 Pedro Alves <palves@redhat.com>
731
732 PR gdb/26336
733 * progspace.c (program_space::remove_objfile): Invalidate the
734 frame cache.
735
736 2020-08-11 Tom de Vries <tdevries@suse.de>
737
738 * MAINTAINERS: Mark ms1 as deleted.
739
740 2020-08-10 Luis Machado <luis.machado@linaro.org>
741
742 PR gdb/26310
743
744 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
745 act accordingly.
746 (aarch64_analyze_prologue_test): Add more unit tests to exercise
747 movz/str/stur/stp skipping behavior.
748
749 2020-08-10 Luis Machado <luis.machado@linaro.org>
750
751 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
752 struct user_sve_header instead of struct sve_context.
753
754 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * read.h (dwarf2_fetch_die_loc_sect_off,
757 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
758 `void *` parameter with function_view.
759 * read.c (dwarf2_fetch_die_loc_sect_off,
760 dwarf2_fetch_die_loc_cu_off): Likewise.
761 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
762 (per_cu_dwarf_call): Adjust.
763 (get_frame_address_in_block_wrapper): Remove.
764 (indirect_synthetic_pointer): Adjust.
765 (get_ax_pc): Remove.
766 (dwarf2_compile_expr_to_ax): Adjust.
767
768 2020-08-08 Tom de Vries <tdevries@suse.de>
769
770 PR build/26344
771 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
772 constructor.
773 * regcache.c (get_thread_arch_aspace_regcache): Same.
774
775 2020-08-07 Tom Tromey <tromey@adacore.com>
776
777 * ravenscar-thread.c
778 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
779 New method.
780 (ravenscar_thread_target::wait): Check
781 runtime_initialized.
782 (ravenscar_thread_target::prepare_to_store)
783 (ravenscar_thread_target::stopped_by_sw_breakpoint)
784 (ravenscar_thread_target::stopped_by_hw_breakpoint)
785 (ravenscar_thread_target::stopped_by_watchpoint)
786 (ravenscar_thread_target::stopped_data_address)
787 (ravenscar_thread_target::core_of_thread): Use
788 scoped_restore_current_thread and
789 set_base_thread_from_ravenscar_task.
790
791 2020-08-07 Tom Tromey <tromey@adacore.com>
792
793 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
794
795 2020-08-07 Tom Tromey <tromey@adacore.com>
796
797 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
798 update_inferior_ptid before update_thread_list.
799 (temporarily_change_regcache_ptid): New class.
800 (ravenscar_thread_target::fetch_registers)
801 (ravenscar_thread_target::store_registers)
802 (ravenscar_thread_target::prepare_to_store): Use base thread when
803 forwarding operation.
804
805 2020-08-07 Tom Tromey <tromey@adacore.com>
806
807 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
808 "is_pid" case.
809
810 2020-08-07 Tom Tromey <tromey@adacore.com>
811
812 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
813 New methods.
814 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
815 first.
816 (ravenscar_thread_target::add_thread): Rename from
817 ravenscar_add_thread.
818 (ravenscar_thread_target::update_thread_list): Use a lambda.
819 (ravenscar_thread_target::xfer_partial): New method.
820
821 2020-08-07 Tom Tromey <tromey@adacore.com>
822
823 * ada-lang.h (ada_task_list_iterator_ftype): Now a
824 gdb::function_view.
825 (iterate_over_live_ada_tasks): Change type of argument.
826 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
827 of argument.
828
829 2020-08-07 Tom Tromey <tromey@adacore.com>
830
831 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
832 Remove.
833 (ravenscar_thread_target::extra_thread_info): Remove.
834 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
835 defer to target beneath for non-Ravenscar threads.
836
837 2020-08-07 Tom Tromey <tromey@adacore.com>
838
839 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
840 get_base_thread_from_ravenscar_task>: Now methods.
841 <m_cpu_map>: New member.
842 (ravenscar_thread_target::get_thread_base_cpu): Rename from
843 ravenscar_get_thread_base_cpu. Check m_cpu_map.
844 (ravenscar_thread_target::task_is_currently_active): Update.
845 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
846 Now a method.
847 (ravenscar_thread_target::add_active_thread): Put initial thread
848 into the m_cpu_map.
849
850 2020-08-07 Tom Tromey <tromey@adacore.com>
851
852 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
853 event_ptid.
854
855 2020-08-07 Tom Tromey <tromey@adacore.com>
856
857 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
858 runtime_initialized.
859
860 2020-08-07 Tom Tromey <tromey@adacore.com>
861
862 * ravenscar-thread.c (ravenscar_thread_target): Don't call
863 add_active_thread.
864 (ravenscar_thread_target::add_active_thread): Now public.
865 (ravenscar_inferior_created): Call add_active_thread after pushing
866 the target.
867
868 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
869
870 * regcache.c (ptid_regcache_map): New type.
871 (target_ptid_regcache_map): New type.
872 (regcaches): Change type to target_ptid_regcache_map.
873 (get_thread_arch_aspace_regcache): Update to regcaches' new
874 type.
875 (regcache_thread_ptid_changed): Likewise.
876 (registers_changed_ptid): Likewise.
877 (regcaches_size): Likewise.
878 (regcaches_test): Update.
879 (regcache_thread_ptid_changed): Update.
880 * regcache.h (regcache_up): New type.
881 * gdbsupport/ptid.h (hash_ptid): New struct.
882
883 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
884
885 * observable.h (thread_ptid_changed): Add parameter
886 `process_stratum_target *`.
887 * infrun.c (infrun_thread_ptid_changed): Add parameter
888 `process_stratum_target *` and use it.
889 (selftests): New namespace.
890 (infrun_thread_ptid_changed): New function.
891 (_initialize_infrun): Register selftest.
892 * regcache.c (regcache_thread_ptid_changed): Add parameter
893 `process_stratum_target *` and use it.
894 (regcache_thread_ptid_changed): New function.
895 (_initialize_regcache): Register selftest.
896 * thread.c (thread_change_ptid): Pass target to
897 thread_ptid_changed observable.
898
899 2020-08-06 Caroline Tice <cmtice@google.com>
900
901 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
902 (struct dwp_sections): Update field comments. Add loclists and
903 rnglists fields.
904 (struct virtual_v2_dwo_sections): Rename struct to
905 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
906 size & offset fields for loclists and rnglists.
907 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
908 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
909 skipping dummy type units.
910 (create_dwp_hash_table): Update the large comment above the function to
911 discuss Version 5 DWP files as well, with references. Update all the
912 version checks in the function to check for version 5 as well. Add new
913 section at the end to create dwp hash table for version 5.
914 (create_dwp_v2_section): Rename function to
915 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
916 Add V5 to error message text.
917 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
918 into calls to create_dwp_v2_or_v5_section.
919 (create_dwo_unit_in_dwp_v5): New function.
920 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
921 check for version2; add else clause to handle version 5.
922 (open_and_init_dwo_file): Add code to check dwarf version & only call
923 create_debug_types_hash_table (with sections.types) if version is not 5;
924 else call create_debug_type_hash_table, with sections.info.
925 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
926 version 5.
927 (dwarf2_locate_v5_dwp_sections): New function.
928 (open_and_init_dwp_file): Add else-if clause for version 5 to call
929 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
930
931 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
932
933 * regcache.h (class regcache): Remove friend
934 registers_changed_ptid.
935 <regcache_thread_ptid_changed>: Remove.
936 <regcaches>: Remove.
937 * regcache.c (regcache::regcaches): Rename to...
938 (regcaches): ... this. Make static.
939 (get_thread_arch_aspace_regcache): Update.
940 (regcache::regcache_thread_ptid_changed): Rename to...
941 (regcache_thread_ptid_changed): ... this. Update.
942 (class regcache_access): Remove.
943 (regcaches_test): Update.
944 (_initialize_regcache): Update.
945 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
946 <forward_list>.
947
948 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
949
950 * regcache.h (class regcache) <current_regcache>: Rename to...
951 <regcaches>: ... this. Move doc here.
952 * regcache.c (regcache::current_regcache) Rename to...
953 (regcache::regcaches): ... this. Move doc to header.
954 (get_thread_arch_aspace_regcache): Update.
955 (regcache::regcache_thread_ptid_changed): Update.
956 (registers_changed_ptid): Update.
957 (class regcache_access) <current_regcache_size>: Rename to...
958 <regcaches_size>: ... this.
959 (current_regcache_test): Rename to...
960 (regcaches_test): ... this.
961 (_initialize_regcache): Update.
962
963 2020-08-06 Victor Collod <vcollod@nvidia.com>
964
965 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
966
967 2020-08-05 Kevin Buettner <kevinb@redhat.com>
968
969 * corelow.c (core_target::build_file_mappings): Don't output
970 null pathname in warning.
971
972 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
973
974 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
975 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
976 gdb.dwarf2/dw2-single-line-discriminators.exp,
977 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
978
979 2020-08-05 Tom Tromey <tromey@adacore.com>
980
981 PR rust/26197:
982 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
983 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
984 Fix off-by-one and type size errors in ordinary case.
985
986 2020-08-05 Tom de Vries <tdevries@suse.de>
987
988 * gdbtypes.c (type_not_allocated, type_not_associated): Use
989 "prop->const_val () == 0" instead of "prop->const_val () != 0".
990
991 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
992
993 * frame.h (frame_id_p): Return bool.
994 (frame_id_artificial_p): Return bool.
995 (frame_id_eq): Return bool.
996 (has_stack_frames): Return bool.
997 (get_selected_frame): Fix typo in comment.
998 (get_frame_pc_if_available): Return bool.
999 (get_frame_address_in_block_if_available): Return bool.
1000 (get_frame_func_if_available): Return bool.
1001 (read_frame_register_unsigned): Return bool.
1002 (get_frame_register_bytes): Return bool.
1003 (safe_frame_unwind_memory): Return bool.
1004 (deprecated_frame_register_read): Return bool.
1005 (frame_unwinder_is): Return bool.
1006 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1007 bool.
1008 <this_id::p>: Likewise.
1009 <prev_p>: Likewise.
1010 (frame_stash_add): Return bool.
1011 (get_frame_id): Use bool.
1012 (frame_id_build_special) Use bool.
1013 (frame_id_build_unavailable_stack): Use bool.
1014 (frame_id_build): Use bool.
1015 (frame_id_p): Return bool, use true/false instead of 1/0.
1016 (frame_id_artificial_p): Likewise.
1017 (frame_id_eq): Likewise.
1018 (frame_id_inner): Likewise.
1019 (get_frame_func_if_available): Likewise.
1020 (read_frame_register_unsigned): Likewise.
1021 (deprecated_frame_register_read): Likewise.
1022 (get_frame_register_bytes): Likewise.
1023 (has_stack_frames): Likewise.
1024 (inside_main_func): Likewise.
1025 (inside_entry_func): Likewise.
1026 (get_frame_pc_if_available): Likewise.
1027 (get_frame_address_in_block_if_available): Likewise.
1028 (frame_unwinder_is): Likewise.
1029 (safe_frame_unwind_memory): Likewise.
1030 (frame_unwind_arch): Likewise.
1031
1032 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1033
1034 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1035 type to cached_copy_status.
1036 (fprintf_frame): Adjust.
1037 (get_frame_func_if_available): Adjust.
1038 (frame_cleanup_after_sniffer): Adjust.
1039
1040 2020-08-04 Mark Wielaard <mark@klomp.org>
1041
1042 * MAINTAINERS (Write After Approval): Update email address.
1043
1044 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1045
1046 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1047 dynamic_prop::const_val.
1048
1049 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1050
1051 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1052 dynamic_prop::kind.
1053
1054 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1055
1056 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1057
1058 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1059
1060 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1061
1062 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1063 Jose E. Marchesi <jose.marchesi@oracle.com>
1064
1065 * configure.tgt: Add entry for bpf-*-*.
1066 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1067 (ALLDEPFILES): Add bpf-tdep.c.
1068 * bpf-tdep.c: New file.
1069 * MAINTAINERS: Add bpf target and maintainer.
1070 * NEWS: Mention the support for the new target.
1071
1072 2020-08-04 Tom de Vries <tdevries@suse.de>
1073
1074 PR symtab/23270
1075 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1076 Error.
1077
1078 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1079
1080 * syscalls/freebsd.xml: Regenerate.
1081
1082 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1083
1084 * syscalls/update-freebsd.sh: Fix usage and year range.
1085
1086 2020-08-03 Tom de Vries <tdevries@suse.de>
1087
1088 PR symtab/26333
1089 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1090 DW_LNE_lo_user/DW_LNE_hi_user range.
1091
1092 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1093
1094 PR ada/26318
1095 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1096 kind.
1097
1098 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1099
1100 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1101
1102 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1103
1104 * breakpoint.c (set_breakpoint_condition): Update the condition
1105 expressions after checking that the input condition string parses
1106 successfully and does not contain junk at the end.
1107
1108 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1109
1110 * breakpoint.c (set_breakpoint_condition): Update the
1111 condition string after parsing the new condition successfully.
1112
1113 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1114
1115 * proc-api.c (_STRUCTURED_PROC): Don't define.
1116 * proc-events.c: Likewise.
1117 * proc-flags.c: Likewise.
1118 * proc-why.c: Likewise.
1119 * procfs.c: Likewise.
1120
1121 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1122 * configure, config.in: Regenerate.
1123
1124 2020-07-30 Tom de Vries <tdevries@suse.de>
1125
1126 PR build/26320
1127 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1128 m_red/m_green/m_blue in a union.
1129
1130 2020-07-29 Tom de Vries <tdevries@suse.de>
1131
1132 PR tdep/26280
1133 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1134
1135 2020-07-28 Tom Tromey <tromey@adacore.com>
1136
1137 PR symtab/26270:
1138 * symtab.h (find_pc_partial_function_sym): Declare.
1139 * cli/cli-cmds.c (disassemble_command): Use
1140 find_pc_partial_function_sym. Check asm_demangle.
1141 * blockframe.c (cache_pc_function_sym): New global.
1142 (cache_pc_function_name): Remove.
1143 (clear_pc_function_cache): Update.
1144 (find_pc_partial_function_sym): New function, from
1145 find_pc_partial_function.
1146 (find_pc_partial_function): Rewrite using
1147 find_pc_partial_function_sym.
1148
1149 2020-07-28 Tom Tromey <tromey@adacore.com>
1150
1151 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1152 help. Add usage.
1153
1154 2020-07-28 Tom Tromey <tromey@adacore.com>
1155
1156 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1157 <DW_OP_GNU_variable_value>: Cast to address type.
1158
1159 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1160
1161 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1162 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1163 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1164 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1165 (nbsd_get_siginfo_type): New.
1166 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1167 (_initialize_nbsd_tdep): New.
1168
1169 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1170
1171 PR binutils/26301
1172 * configure: Regenerated.
1173
1174 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1175
1176 PR binutils/26301
1177 * configure: Regenerated.
1178
1179 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1180
1181 * python/py-frame.c: Remove 'user-regs.h' include.
1182 (frapy_read_register): Rewrite to make use of
1183 gdbpy_parse_register_id.
1184 * python/py-registers.c (gdbpy_parse_register_id): New function,
1185 moved here from python/py-unwind.c. Updated the return type, and
1186 also accepts register descriptor objects.
1187 * python/py-unwind.c: Remove 'user-regs.h' include.
1188 (pyuw_parse_register_id): Moved to python/py-registers.c.
1189 (unwind_infopy_add_saved_register): Update to use
1190 gdbpy_parse_register_id.
1191 (pending_framepy_read_register): Likewise.
1192 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1193
1194 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * python/py-registers.c: Add 'user-regs.h' include.
1197 (register_descriptor_iter_find): New function.
1198 (register_descriptor_iterator_object_methods): New static global
1199 methods array.
1200 (register_descriptor_iterator_object_type): Add pointer to methods
1201 array.
1202
1203 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1204
1205 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1206 for all architectures on FreeBSD 11.3 and later.
1207
1208 2020-07-27 Tom Tromey <tromey@adacore.com>
1209
1210 * gcore.h (load_corefile): Don't declare.
1211
1212 2020-07-27 Tom de Vries <tdevries@suse.de>
1213
1214 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1215 * config.in: Regenerate.
1216 * configure: Regenerate.
1217
1218 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1219
1220 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1221 ws2tcpip.h. When checking whether socklen_t type is defined, use
1222 ws2tcpip.h if it is available and sys/socket.h isn't.
1223 * configure: Regenerate.
1224 * config.in: Regenerate.
1225
1226 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 PR fortran/23051
1229 PR fortran/26139
1230 * valops.c (value_ind): Pass address to
1231 readjust_indirect_value_type.
1232 * value.c (readjust_indirect_value_type): Make parameter
1233 non-const, and add extra address parameter. Resolve original type
1234 before using it.
1235 * value.h (readjust_indirect_value_type): Update function
1236 signature and comment.
1237
1238 2020-07-25 Tom de Vries <tdevries@suse.de>
1239
1240 PR symtab/26243
1241 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1242 entries.
1243
1244 2020-07-24 Aaron Merey <amerey@redhat.com>
1245
1246 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1247 * configure: Rebuild.
1248
1249 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1250
1251 PR corefiles/26294
1252 * corelow.c (_initialize_corelow): Add period to help text
1253 for "maintenance print core-file-backed-mappings".
1254
1255 2020-07-23 Pedro Alves <pedro@palves.net>
1256
1257 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1258 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1259 meanwhile.
1260 * frame.c (frame_cache_generation, get_frame_cache_generation):
1261 New.
1262 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1263 (get_prev_frame_if_no_cycle): On exception, don't touch
1264 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1265 * frame.h (get_frame_cache_generation): Declare.
1266
1267 2020-07-23 Tom de Vries <tdevries@suse.de>
1268
1269 PR tui/26282
1270 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1271 New default constructor.
1272
1273 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1274
1275 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1276 exclude non-statement entries.
1277
1278 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1279
1280 * NEWS (New commands): Mention new command
1281 "maintenance print core-file-backed-mappings".
1282
1283 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1284
1285 * corelow.c (gdbcmd.h): Include.
1286 (core_target::info_proc_mappings): New method.
1287 (get_current_core_target): New function.
1288 (maintenance_print_core_file_backed_mappings): New function.
1289 (_initialize_corelow): Add core-file-backed-mappings to
1290 "maint print" commands.
1291
1292 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1293
1294 * linux-tdep.c (dump_note_entry_p): New function.
1295 (linux_dump_mapping_p_ftype): New typedef.
1296 (linux_find_memory_regions_full): Add new parameter,
1297 should_dump_mapping_p.
1298 (linux_find_memory_regions): Adjust call to
1299 linux_find_memory_regions_full.
1300 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1301 call to linux_find_memory_regions_full.
1302
1303 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1304
1305 * corelow.c (solist.h, unordered_map): Include.
1306 (class core_target): Add field m_core_file_mappings and
1307 method build_file_mappings.
1308 (core_target::core_target): Call build_file_mappings.
1309 (core_target::~core_target): Free memory associated with
1310 m_core_file_mappings.
1311 (core_target::build_file_mappings): New method.
1312 (core_target::xfer_partial): Use m_core_file_mappings
1313 for memory transfers.
1314 * linux-tdep.c (linux_read_core_file_mappings): New
1315 function.
1316 (linux_core_info_proc_mappings): Rewrite to use
1317 linux_read_core_file_mappings.
1318 (linux_init_abi): Register linux_read_core_file_mappings.
1319
1320 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1321
1322 * arch-utils.c (default_read_core_file_mappings): New function.
1323 * arch-utils.c (default_read_core_file_mappings): Declare.
1324 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1325 * gdbarch.h, gdbarch.c: Regenerate.
1326
1327 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1328
1329 PR corefiles/25631
1330 * corelow.c (core_target:xfer_partial): Revise
1331 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1332 case after first checking the stratum beneath the core
1333 target.
1334 (has_all_memory): Return true.
1335 * target.c (raw_memory_xfer_partial): Revise comment
1336 regarding use of has_all_memory.
1337
1338 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1339
1340 * exec.h (section_table_xfer_memory): Revise declaration,
1341 replacing section name parameter with an optional callback
1342 predicate.
1343 * exec.c (section_table_xfer_memory): Likewise.
1344 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1345 of section_table_xfer_memory.
1346
1347 2020-07-22 Tom Tromey <tromey@adacore.com>
1348
1349 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1350 lookup_symbol_search_name.
1351
1352 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1355 redundant local variable.
1356 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1357 reference, not pointer, update code accordingly.
1358
1359 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1360 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1361
1362 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1363 * jit.c (jit_breakpoint_re_set_internal): Use the
1364 `skip_jit_symbol_lookup` field.
1365
1366 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1367 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1368
1369 * jit.c (jit_read_descriptor): Define the descriptor address once,
1370 use twice.
1371 (jit_breakpoint_deleted): Move the declaration of the loop variable
1372 `iter` into the loop header.
1373 (jit_breakpoint_re_set_internal): Move the declaration of the local
1374 variable `objf_data` to the first point of definition.
1375 (jit_event_handler): Move the declaration of local variables
1376 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1377 Rename `objf` to `jited`.
1378
1379 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1382 Remove.
1383 * jit.c (get_jiter_objfile_data): Update.
1384
1385 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1386 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * jit.c (struct jit_program_space_data): Remove.
1389 (jit_program_space_key): Remove.
1390 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1391 stuff.
1392 (get_jit_program_space_data): Remove.
1393 (jit_breakpoint_deleted): Iterate on all of the program space's
1394 objfiles.
1395 (jit_inferior_init): Likewise.
1396 (jit_breakpoint_re_set_internal): Likewise. Also change return
1397 type to void.
1398 (jit_breakpoint_re_set): Pass current_program_space to
1399 jit_breakpoint_re_set_internal.
1400
1401 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * jit.h (struct jiter_objfile_data) <cached_code_address,
1404 jit_breakpoint>: Move to here from ...
1405 * jit.c (jit_program_space_data): ... here.
1406 (jiter_objfile_data::~jiter_objfile_data): Update.
1407 (jit_breakpoint_deleted): Update.
1408 (jit_breakpoint_re_set_internal): Update.
1409
1410 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1411
1412 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1413 checks.
1414 (jit_read_descriptor): Remove NULL check.
1415 (jit_event_handler): Add an assertion.
1416
1417 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * jit.h (struct jit_objfile_data): Split into...
1420 (struct jiter_objfile_data): ... this ...
1421 (struct jited_objfile_data): ... and this.
1422 * objfiles.h (struct objfile) <jit_data>: Remove.
1423 <jiter_data, jited_data>: New fields.
1424 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1425 (jiter_objfile_data::~jiter_objfile_data): ... this.
1426 (get_jit_objfile_data): Rename to ...
1427 (get_jiter_objfile_data): ... this.
1428 (add_objfile_entry): Update.
1429 (jit_read_descriptor): Use get_jiter_objfile_data.
1430 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1431 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1432 (jit_inferior_exit_hook): Use objfile's jited_data field.
1433
1434 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1435
1436 * jit.h: Forward-declare `struct minimal_symbol`.
1437 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1438 constructor, destructor, and an objfile* field.
1439 * jit.c (jit_objfile_data): Remove.
1440 (struct jit_objfile_data): Migrate from here to jit.h.
1441 (jit_objfile_data::~jit_objfile_data): New destructor
1442 implementation with code moved from free_objfile_data.
1443 (free_objfile_data): Delete.
1444 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1445 (jit_find_objf_with_entry_addr): Ditto.
1446 (jit_inferior_exit_hook): Ditto.
1447 (_initialize_jit): Remove the call to
1448 register_objfile_data_with_cleanup.
1449 * objfiles.h (struct objfile) <jit_data>: New field.
1450
1451 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1452
1453 * jit.h: Forward-declare `struct objfile`.
1454 (jit_event_handler): Add a second parameter, the JITer objfile.
1455 * jit.c (jit_read_descriptor): Change the signature to take the
1456 JITer objfile as an argument instead of the jit_program_space_data.
1457 (jit_inferior_init): Update the call to jit_read_descriptor.
1458 (jit_event_handler): Use the new JITer objfile argument when calling
1459 jit_read_descriptor.
1460 * breakpoint.c (handle_jit_event): Update the call to
1461 jit_event_handler to pass the JITer objfile.
1462
1463 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1464
1465 * gdbarch.c: Regenerate.
1466 * gdbarch.h: Regenerate.
1467 * gdbarch.sh (handle_segmentation_fault): Remove method.
1468 * infrun.c (handle_segmentation_fault): Remove.
1469 (print_signal_received_reason): Remove call to
1470 handle_segmentation_fault.
1471
1472 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1473
1474 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1475 Rename to sparc64_linux_report_signal_info and add siggnal
1476 argument.
1477 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1478 instead of sparc64_linux_handle_segmentation_fault.
1479
1480 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1481
1482 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1483 i386_linux_report_signal_info instead of
1484 i386_linux_handle_segmentation_fault.
1485 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1486 to i386_linux_report_signal_info and add siggnal argument.
1487 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1488 of i386_linux_handle_segmentation_fault.
1489 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1490 to i386_linux_report_signal_info and add siggnal argument.
1491
1492 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1493
1494 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1495 hook if present.
1496
1497 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1498
1499 * gdbarch.c: Regenerate.
1500 * gdbarch.h: Regenerate.
1501 * gdbarch.sh (report_signal_info): New method.
1502 * infrun.c (print_signal_received_reason): Invoke gdbarch
1503 report_signal_info hook if present.
1504
1505 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1506
1507 * python/py-registers.c : Add 'unordered_map' include.
1508 (gdbpy_new_reggroup): Renamed to...
1509 (gdbpy_get_reggroup): ...this. Update to only create register
1510 group descriptors when needed.
1511 (gdbpy_reggroup_iter_next): Update.
1512
1513 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1514
1515 * python/py-registers.c (gdbpy_register_object_data): New static
1516 global.
1517 (gdbpy_register_object_data_init): New function.
1518 (gdbpy_new_register_descriptor): Renamed to...
1519 (gdbpy_get_register_descriptor): ...this, and update to reuse
1520 existing register descriptors where possible.
1521 (gdbpy_register_descriptor_iter_next): Update.
1522 (gdbpy_initialize_registers): Register new gdbarch data.
1523
1524 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1525
1526 * linux-nat.c (stopped_pids): Make static.
1527
1528 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1529
1530 PR ada/26235
1531 * gdbtypes.c (ada_discrete_type_low_bound,
1532 ada_discrete_type_high_bound): Handle undefined bounds.
1533
1534 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1535
1536 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1537 declaration.
1538 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1539 function.
1540
1541 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1542
1543 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1544 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1545 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1546 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1547 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1548 method.
1549
1550 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1551
1552 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1553 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1554 which are deprecated in Guile 3.0.
1555 * configure.ac (try_guile_versions): Add "guile-3.0".
1556 * configure (try_guile_versions): Regenerate.
1557 * NEWS: Update entry.
1558
1559 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1560 Doug Evans <dje@google.com>
1561
1562 PR gdb/21104
1563 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1564 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1565 USING_GUILE_BEFORE_2_2.
1566 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1567 Change type to 'scm_t_port_type *'.
1568 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1569 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1570 parameter and honor it. Update callers.
1571 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1572 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1573 functions.
1574 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1575 USING_GUILE_BEFORE_2_2.
1576 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1577 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1578 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1579 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1580 and 'SCM_PORT_TYPE'.
1581 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1582 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1583 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1584 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1585 [!USING_GUILE_BEFORE_2_2]: New functions.
1586 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1587 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1588 'gdbscm_memory_port_read'.
1589 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1590 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1591 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1592 function.
1593 (ioscm_init_memory_port): Remove.
1594 (ioscm_init_memory_port_stream): New function
1595 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1596 function.
1597 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1598 Return scm_from_uint (0).
1599 (gdbscm_set_memory_port_read_buffer_size_x)
1600 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1601 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1602 Return scm_from_uint (0).
1603 (gdbscm_set_memory_port_write_buffer_size_x)
1604 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1605 * configure.ac (try_guile_versions): Add "guile-2.2".
1606 * configure: Regenerate.
1607 * NEWS: Add entry.
1608
1609 2020-07-18 Tom Tromey <tom@tromey.com>
1610
1611 * linux-nat.c (linux_multi_process): Remove.
1612 (linux_nat_target::supports_multi_process): Return true.
1613
1614 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1617 (riscv_lookup_target_description): Return pointer out of
1618 unique_ptr.
1619 * target-descriptions.c (allocate_target_description): Add
1620 comment.
1621 (target_desc_deleter::operator()): Likewise.
1622 * target-descriptions.h (struct target_desc_deleter): Moved to
1623 gdbsupport/tdesc.h.
1624 (target_desc_up): Likewise.
1625
1626 2020-07-17 Tom Tromey <tromey@adacore.com>
1627
1628 * linux-nat.c (linux_nat_target::supports_non_stop)
1629 (linux_nat_target::always_non_stop_p): Use "true".
1630 (linux_nat_target::supports_disable_randomization): Use "true" and
1631 "false".
1632
1633 2020-07-16 Caroline Tice <cmtice@google.com>
1634
1635 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1636 (RNGLIST_HEADER_SIZE64): New constant definition.
1637 (struct dwop_section_names): Add rnglists_dwo.
1638 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1639 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1640 (struct dwo_sections): Add rnglists field.
1641 (read_attribut_reprocess): Add tag parameter.
1642 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1643 (cu_debug_rnglists_section): New function (decl & definition).
1644 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1645 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1646 die whose range is being checked; get rnglist section from
1647 cu_debug_rnglists_section, to get from either objfile or dwo file as
1648 appropriate. Add cases for DW_RLE_base_addressx,
1649 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1650 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1651 test inside if-condition and updating complaint message.
1652 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1653 dwarf2_rnglists_process.
1654 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1655 dwarf2_ranges_process.
1656 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1657 need_ranges_base and update comment appropriately. Also pass die tag
1658 to dwarf2_ranges_read.
1659 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1660 need_ranges_base and update comment appropriately. Also pass die tag
1661 to dwarf2_ranges_process.
1662 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1663 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1664 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1665 need_ranges_base and update comment appropriately. Also pass die tag
1666 to read_attribute_reprocess and dwarf2_ranges_read.
1667 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1668 and update function comment appropriately.
1669 (read_loclist_index): Call read_loclists_rnglists_header instead of
1670 read_loclist_header.
1671 (read_rnglist_index): New function.
1672 (read_attribute_reprocess): Add tag parameter. Add code for
1673 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1674 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1675
1676 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1677
1678 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1679 being resolved.
1680
1681 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1682
1683 * arch-utils.c (show_architecture): Update formatting of messages.
1684
1685 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1686
1687 * gdbtypes.h (struct type) <bounds>: Handle array and string
1688 types.
1689 * ada-lang.c (assign_aggregate): Use type::bounds on
1690 array/string type.
1691 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1692 * c-varobj.c (c_number_of_children): Likewise.
1693 (c_describe_child): Likewise.
1694 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1695 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1696 (f_type_print_base): Likewise.
1697 * f-valprint.c (f77_array_offset_tbl): Likewise.
1698 (f77_get_upperbound): Likewise.
1699 (f77_print_array_1): Likewise.
1700 * guile/scm-type.c (gdbscm_type_range): Likewise.
1701 * m2-typeprint.c (m2_array): Likewise.
1702 (m2_is_long_set_of_type): Likewise.
1703 * m2-valprint.c (get_long_set_bounds): Likewise.
1704 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1705 * python/py-type.c (typy_range): Likewise.
1706 * rust-lang.c (rust_internal_print_type): Likewise.
1707 * type-stack.c (type_stack::follow_types): Likewise.
1708 * valarith.c (value_subscripted_rvalue): Likewise.
1709 * valops.c (value_cast): Likewise.
1710
1711 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1712
1713 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1714 callers to use the equivalent accessor methods.
1715
1716 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1717
1718 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1719 (struct type) <bit_stride>: New method.
1720 (TYPE_BIT_STRIDE): Remove.
1721 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1722
1723 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1724
1725 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1726 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1727 callers to use the equivalent accessor methods instead.
1728
1729 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1730
1731 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1732 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1733 callers to use the equivalent accessor methods instead.
1734
1735 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1736
1737 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1738 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1739 to use dynamic_prop::kind.
1740
1741 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1742
1743 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1744 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1745 to get the bound property's kind and check against
1746 PROP_UNDEFINED.
1747
1748 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1749
1750 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1751 all callers to use type::range_bounds followed by
1752 dynamic_prop::{low,high}.
1753
1754 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1755
1756 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1757 const_val, set_const_val, baton, set_locexpr, set_loclist,
1758 set_addr_offset, variant_parts, set_variant_parts,
1759 original_type, set_original_type>: New methods.
1760 <kind>: Rename to...
1761 <m_kind>: ... this. Update all users to use the new methods
1762 instead.
1763 <data>: Rename to...
1764 <m_data>: ... this. Update all users to use the new methods
1765 instead.
1766
1767 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1768
1769 * gdbtypes.c (get_discrete_bounds): Return failure if
1770 the range type's bounds are not both defined and constant
1771 values.
1772 (get_array_bounds): Update comment. Remove undefined bound check.
1773
1774 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1775
1776 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1777 the type::bounds method directly.
1778
1779 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1780
1781 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1782 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1783 are used to set the range type's bounds to use set_bounds.
1784
1785 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1786
1787 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1788
1789 2020-07-10 Pedro Alves <pedro@palves.net>
1790
1791 * gdbthread.h (inferior_ref): Define.
1792 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1793 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1794 * thread.c
1795 (scoped_restore_current_thread::restore):
1796 Adjust to gdb::ref_ptr.
1797 (scoped_restore_current_thread::~scoped_restore_current_thread):
1798 Remove manual decref handling.
1799 (scoped_restore_current_thread::scoped_restore_current_thread):
1800 Adjust to use
1801 inferior_ref::new_reference/thread_info_ref::new_reference.
1802 Incref the thread before calling get_frame_id instead of after.
1803 Let TARGET_CLOSE_ERROR propagate.
1804
1805 2020-07-10 Pedro Alves <pedro@palves.net>
1806
1807 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1808 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1809 NOT_AVAILABLE_ERROR.
1810 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1811 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1812
1813 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1814 Pedro Alves <pedro@palves.net>
1815
1816 PR gdb/26199
1817 * infrun.c (threads_are_resumed_pending_p): Delete.
1818 (do_target_wait): Remove threads_are_executing and
1819 threads_are_resumed_pending_p checks from the inferior_matches
1820 lambda. Update comments.
1821
1822 2020-07-10 Pedro Alves <pedro@palves.net>
1823
1824 PR gdb/26199
1825 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1826 executing threads.
1827
1828 2020-07-10 Pedro Alves <pedro@palves.net>
1829
1830 PR gdb/26199
1831 * infrun.c (handle_no_resumed): Handle multiple targets.
1832
1833 2020-07-10 Pedro Alves <pedro@palves.net>
1834
1835 PR gdb/26199
1836 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1837 target_is_async_p.
1838
1839 2020-07-10 Pedro Alves <pedro@palves.net>
1840
1841 PR gdb/26199
1842 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1843 threads, not all threads.
1844
1845 2020-07-10 Pedro Alves <pedro@palves.net>
1846
1847 PR gdb/26199
1848 * remote.c (remote_target::open_1): Pass remote target pointer as
1849 data to create_async_event_handler.
1850 (remote_async_inferior_event_handler): Mark async event handler
1851 before returning if the remote target still has either pending
1852 events or unacknowledged notifications.
1853
1854 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1855
1856 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1857 declaration.
1858 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1859 function.
1860
1861 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1862
1863 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1864 inferior_ptid.
1865
1866 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1867
1868 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1869 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1870 AT_FREEBSD_PS_STRINGS.
1871
1872 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1873
1874 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1875 of debugfile path on Windows.
1876
1877 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1878
1879 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1880 argument to 'data'.
1881
1882 2020-07-08 Tom Tromey <tromey@adacore.com>
1883
1884 * ada-lang.c (ada_exception_message_1): Use read_memory.
1885
1886 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1887
1888 PR python/22748
1889 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1890 special handling for inline frames.
1891 * findvar.c (value_of_register_lazy): Skip inline frames when
1892 creating lazy register values.
1893 * frame.c (frame_id_computed_p): Delete definition.
1894 * frame.h (frame_id_computed_p): Delete declaration.
1895
1896 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1897
1898 * NEWS: Mention additions to Python API.
1899 * python/py-arch.c (archpy_register_groups): New function.
1900 (arch_object_methods): Add 'register_groups' method.
1901 * python/py-registers.c (reggroup_iterator_object): New struct.
1902 (reggroup_object): New struct.
1903 (gdbpy_new_reggroup): New function.
1904 (gdbpy_reggroup_to_string): New function.
1905 (gdbpy_reggroup_name): New function.
1906 (gdbpy_reggroup_iter): New function.
1907 (gdbpy_reggroup_iter_next): New function.
1908 (gdbpy_new_reggroup_iterator): New function
1909 (gdbpy_initialize_registers): Register new types.
1910 (reggroup_iterator_object_type): Define new Python type.
1911 (gdbpy_reggroup_getset): New static global.
1912 (reggroup_object_type): Define new Python type.
1913 * python/python-internal.h
1914
1915 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1916
1917 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1918 * python/py-arch.c (archpy_registers): New function.
1919 (arch_object_methods): Add 'registers' method.
1920 * python/py-registers.c: New file.
1921 * python/python-internal.h
1922 (gdbpy_new_register_descriptor_iterator): Declare.
1923 (gdbpy_initialize_registers): Declare.
1924 * python/python.c (do_start_initialization): Call
1925 gdbpy_initialize_registers.
1926 * NEWS: Mention additions to the Python API.
1927
1928 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1929
1930 * NEWS: Mention new Python API method.
1931 * python/py-unwind.c (pending_framepy_architecture): New function.
1932 (pending_frame_object_methods): Add architecture method.
1933
1934 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1935
1936 * gdbarch.c: Regenerate.
1937 * gdbarch.h: Regenerate.
1938 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1939 (gdbarch_data): Use internal_error for the case where
1940 deprecated_set_gdbarch_data was originally needed.
1941 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1942 and use passed in obstack.
1943 (libunwind_frame_set_descr): Should no longer get back NULL from
1944 gdbarch_data.
1945 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1946 type.
1947 * user-regs.c (user_regs_init): Update parameters, and use passed
1948 in obstack.
1949 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1950 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1951
1952 2020-07-06 Tom de Vries <tdevries@suse.de>
1953
1954 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1955 End-Of-Sequence in lte_is_less_than.
1956 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1957 "gdb: Don't reorder line table entries too much when sorting".
1958
1959 2020-07-06 Tom de Vries <tdevries@suse.de>
1960
1961 PR tui/26205
1962 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1963
1964 2020-07-05 Tom de Vries <tdevries@suse.de>
1965
1966 PR build/26187
1967 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1968 std::uncaught_exceptions instead of deprecated
1969 std::uncaught_exception.
1970
1971 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1972
1973 * macroexp.h (macro_stringify): Return
1974 gdb::unique_xmalloc_ptr<char>.
1975 * macroexp.c (macro_stringify): Likewise.
1976 * macrotab.c (fixup_definition): Update.
1977
1978 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1979
1980 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1981 (lex_one_token): Update.
1982 * macroexp.c (struct macro_buffer) <release>: Return
1983 gdb::unique_xmalloc_ptr<char>.
1984 (macro_stringify): Update.
1985 (macro_expand): Update.
1986 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1987 * macroexp.h (macro_expand_next): Likewise.
1988
1989 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1990
1991 * macroexp.h (macro_lookup_ftype): Remove.
1992 (macro_expand, macro_expand_once, macro_expand_next): Remove
1993 lookup function parameters, add scope parameter.
1994 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1995 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1996 * macroscope.h (standard_macro_lookup): Change parameter type
1997 to macro_scope.
1998 * macroscope.c (standard_macro_lookup): Likewise.
1999 * c-exp.y (lex_one_token): Update.
2000 * macrocmd.c (macro_expand_command): Likewise.
2001 (macro_expand_once_command): Likewise.
2002
2003 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2004
2005 * inf-loop.c (inferior_event_handler): Remove client_data param.
2006 * inf-loop.h (inferior_event_handler): Likewise.
2007 * infcmd.c (step_1): Adjust.
2008 * infrun.c (proceed): Adjust.
2009 (fetch_inferior_event): Remove client_data param.
2010 (infrun_async_inferior_event_handler): Adjust.
2011 * infrun.h (fetch_inferior_event): Remove `void *` param.
2012 * linux-nat.c (handle_target_event): Adjust.
2013 * record-btrace.c (record_btrace_handle_async_inferior_event):
2014 Adjust.
2015 * record-full.c (record_full_async_inferior_event_handler):
2016 Adjust.
2017 * remote.c (remote_async_inferior_event_handler): Adjust.
2018
2019 2020-07-01 Tom Tromey <tom@tromey.com>
2020
2021 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2022 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2023
2024 2020-07-01 Tom Tromey <tom@tromey.com>
2025
2026 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2027 tui_gen_win_info.
2028 (tui_win_info::make_window): Merge with
2029 tui_gen_win_info::make_window.
2030 (tui_win_info::make_visible): Move from tui_gen_win_info.
2031 * tui/tui-win.c (tui_win_info::max_width): Move from
2032 tui_gen_win_info.
2033 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2034 type.
2035 <window_factory>: Likewise.
2036 * tui/tui-layout.c (tui_win_info::resize): Move from
2037 tui_gen_win_info.
2038 (make_standard_window): Change return type.
2039 (get_locator_window, tui_get_window_by_name): Likewise.
2040 (tui_layout_window::apply): Remove a cast.
2041 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2042 (struct tui_win_info): Merge with tui_gen_win_info.
2043 (struct tui_gen_win_info): Remove.
2044
2045 2020-07-01 Tom Tromey <tom@tromey.com>
2046
2047 * tui/tui-stack.h (struct tui_locator_window): Derive from
2048 tui_win_info.
2049 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2050 <can_box>: New method.
2051
2052 2020-07-01 Tom Tromey <tom@tromey.com>
2053
2054 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2055
2056 2020-07-01 Tom Tromey <tom@tromey.com>
2057
2058 * tui/tui-regs.c (tui_data_window::display_registers_from)
2059 (tui_data_window::display_registers_from)
2060 (tui_data_window::first_data_item_displayed)
2061 (tui_data_window::delete_data_content_windows): Update.
2062 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2063 Remove.
2064 (tui_data_window::check_register_values): Update.
2065 (tui_data_item_window::rerender): Add parameters. Update.
2066 (tui_data_item_window::refresh_window): Remove.
2067 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2068 virtual.
2069 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2070 tui_gen_win_info.
2071 <refresh_window, max_height, min_height>: Remove.
2072 <rerender>: Add parameters.
2073 <x, y, visible>: New members.
2074 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2075 <m_item_width>: New member.
2076
2077 2020-07-01 Tom Tromey <tom@tromey.com>
2078
2079 * tui/tui-regs.c (tui_data_window::show_register_group)
2080 (tui_data_window::check_register_values): Update.
2081 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2082 from item_no.
2083
2084 2020-07-01 Tom Tromey <tom@tromey.com>
2085
2086 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2087 useless "if".
2088
2089 2020-07-01 Tom Tromey <tom@tromey.com>
2090
2091 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2092 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2093
2094 2020-07-01 Tom Tromey <tom@tromey.com>
2095
2096 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2097 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2098 (struct tui_line_or_address): Move from tui-data.h.
2099 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2100 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2101 (tui_cmd_window, tui_source_window_base, tui_source_window)
2102 (tui_disasm_window): Don't declare.
2103 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2104 to tui-winsource.h.
2105 (SINGLE_KEY): Move to tui-stack.c.
2106
2107 2020-07-01 Tom Tromey <tom@tromey.com>
2108
2109 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2110 std::string.
2111 * tui/tui-regs.c (class tab_expansion_file): New.
2112 (tab_expansion_file::write): New method.
2113 (tui_register_format): Change return type. Use
2114 tab_expansion_file.
2115 (tui_get_register, tui_data_window::display_registers_from)
2116 (tui_data_item_window::rerender): Update.
2117 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2118 * tui/tui-io.c (tui_expand_tabs): Remove.
2119
2120 2020-07-01 Tom Tromey <tom@tromey.com>
2121
2122 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2123
2124 2020-07-01 Fangrui Song <maskray@google.com>
2125
2126 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2127
2128 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2129
2130 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2131 forms for DW_AT_associated and DW_AT_allocated attributes,
2132 which is already checked in function attr_to_dynamic_prop.
2133
2134 2020-06-30 Tom Tromey <tromey@adacore.com>
2135
2136 * dwarf2/read.c (quirk_rust_enum): Correctly call
2137 alloc_rust_variant for default-less enum.
2138
2139 2020-06-30 Tom Tromey <tromey@adacore.com>
2140
2141 PR build/26183:
2142 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2143 gdb::to_string.
2144
2145 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2146
2147 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2148 * gdbarch.h: Re-generate.
2149
2150 2020-06-28 Tom Tromey <tom@tromey.com>
2151
2152 * command.h (cmd_types): Remove.
2153 (cmd_type): Don't declare.
2154 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2155 typedef.
2156 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2157 * cli/cli-decode.c (cmd_type): Remove.
2158
2159 2020-06-27 Pedro Alves <palves@redhat.com>
2160
2161 * fork-child.c (prefork_hook): Adjust.
2162 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2163 Delete.
2164 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2165 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2166 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2167 Remove declarations.
2168 (struct inferior) <set_tty, tty>: New methods.
2169 (struct inferior) <terminal>: Rename to ...
2170 (struct inferior) <m_terminal>: ... this and make private.
2171 * main.c (captured_main_1): Adjust.
2172 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2173 (mi_cmd_inferior_tty_show): Adjust.
2174 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2175 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2176
2177 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2178
2179 * configure.ac: Add --enable-libctf: handle --disable-static
2180 properly.
2181 * acinclude.m4: sinclude ../config/enable.m4.
2182 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2183 (LIBCTF): Substitute in.
2184 (CTF_DEPS): New, likewise.
2185 (CLIBS): libctf needs symbols from libbfd: move earlier.
2186 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2187 flags.
2188 * ctfread.c: Surround in ENABLE_LIBCTF.
2189 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2190 * configure: Regenerate.
2191 * config.in: Likewise.
2192
2193 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2194
2195 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2196
2197 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2198
2199 * inferior.h (struct inferior) <terminal>: Change type to
2200 gdb::unique_xmalloc_ptr<char>.
2201 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2202 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2203 field, adjust to unique pointer.
2204 (get_inferior_io_terminal): Adjust to unique pointer.
2205
2206 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2207
2208 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2209 registers, not just the known core set of registers.
2210
2211 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2212
2213 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2214 fflags, frm, and fcsr registers.
2215 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2216 restore groups.
2217 (riscv_tdesc_unknown_reg): New function.
2218 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2219 tdesc_use_registers.
2220 * riscv-tdep.h (struct gdbarch_tdep): Add
2221 unknown_csrs_first_regnum, unknown_csrs_count,
2222 duplicate_fflags_regnum, duplicate_frm_regnum, and
2223 duplicate_fcsr_regnum fields.
2224
2225 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2226
2227 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2228 callback, use the callback (when not null) to help number unknown
2229 registers.
2230 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2231 (tdesc_use_registers): Add extra parameter to declaration.
2232
2233 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2234
2235 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2236 in the file.
2237 (class riscv_pending_register_alias): Likewise.
2238 (riscv_register_feature::register_info): Change 'required_p' field
2239 to 'required', and change its type. Add 'check' member function.
2240 (riscv_register_feature::register_info::check): Define new member
2241 function.
2242 (riscv_xreg_feature): Change initialisation of 'required' field.
2243 (riscv_freg_feature): Likewise.
2244 (riscv_virtual_feature): Likewise.
2245 (riscv_csr_feature): Likewise.
2246 (riscv_check_tdesc_feature): Take extra parameter, the csr
2247 tdesc_feature, rewrite the function to use the new
2248 riscv_register_feature::register_info::check function.
2249 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2250
2251 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2252
2253 * features/Makefile: Remove all references to the deleted files
2254 below.
2255 * features/riscv/32bit-csr.c: Deleted.
2256 * features/riscv/32bit-csr.xml: Deleted.
2257 * features/riscv/64bit-csr.c: Deleted.
2258 * features/riscv/64bit-csr.xml: Deleted.
2259 * features/riscv/rebuild-csr-xml.sh: Deleted.
2260
2261 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2264 whitespace error for declaration of names member variable.
2265 (struct riscv_register_feature): Add new prefer_first_name member
2266 variable, and fix whitespace error in declaration of registers.
2267 (riscv_xreg_feature): Initialize prefer_first_name field.
2268 (riscv_freg_feature): Likewise.
2269 (riscv_virtual_feature): Likewise.
2270 (riscv_csr_feature): Likewise.
2271 (riscv_register_name): Expand on comments. Remove register name
2272 modifications for CSR and virtual registers.
2273
2274 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2275
2276 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2277 errors.
2278
2279 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2280
2281 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2282 riscv-opc.h.
2283 (class riscv_pending_register_alias): New class.
2284 (riscv_check_tdesc_feature): Take vector of pending aliases and
2285 populate it as appropriate.
2286 (riscv_setup_register_aliases): Delete.
2287 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2288 to riscv_check_tdesc_feature in all cases. Use the vector to
2289 create the register aliases.
2290
2291 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2292
2293 * sol2-tdep.c (sol2_static_transform_name): Remove.
2294 (sol2_init_abi): Don't register it.
2295 * gdbarch.sh (static_transform_name): Remove.
2296 * gdbarch.c, gdbarch.h: Regenerate.
2297
2298 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2299 gdbarch_static_transform_name.
2300 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2301 * stabsread.c (define_symbol) <'X'>: Remove.
2302 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2303 handling.
2304 <'V'>: Likewise.
2305 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2306 <'S'>: Remove call to gdbarch_static_transform_name.
2307
2308 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2309
2310 * procfs.c (procfs_pre_trace): New function.
2311 (procfs_target::create_inferior): Pass it to fork_inferior.
2312
2313 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2314
2315 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2316 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2317 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2318 sol2-tdep.o, sparc-sol2-tdep.o.
2319 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2320 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2321 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2322 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2323
2324 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2325
2326 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2327 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2328 Call sol2_init_abi.
2329 Remove calls to set_gdbarch_skip_solib_resolver,
2330 set_gdbarch_core_pid_to_str.
2331 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2332 (i386_sol2_static_transform_name): Remove.
2333 (i386_sol2_init_abi): Call sol2_init_abi.
2334 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2335 set_gdbarch_static_transform_name,
2336 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2337 Use sol2_sigtramp_p.
2338 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2339 (sol2_sigtramp_p): New function.
2340 (sol2_static_transform_name): New function.
2341 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2342 (sol2_init_abi): New function.
2343 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2344 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2345 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2346 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2347 (sparc_sol2_static_transform_name): Remove.
2348 (sparc32_sol2_init_abi): Call sol2_init_abi.
2349 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2350 set_gdbarch_static_transform_name,
2351 set_gdbarch_skip_solib_resolver,
2352 set_gdbarch_core_pid_to_str.
2353 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2354 (sparc_sol2_static_transform_name): Remove
2355 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2356 call sol2_sigtramp_p.
2357 (sparc64_sol2_init_abi): Call sol2_init_abi.
2358 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2359 set_gdbarch_static_transform_name,
2360 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2361
2362 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2363
2364 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2365 * exec.c (validate_exec_file): If from_tty, set both
2366 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2367 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2368 and from_tty, unconditionally ask a confirmation.
2369
2370 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2371
2372 * target-descriptions.c (tdesc_architecture_name): Protect against
2373 NULL pointer dereference.
2374 (maint_print_xml_tdesc_cmd): New function.
2375 (_initialize_target_descriptions): Register new 'maint print
2376 xml-tdesc' command and give it the filename completer.
2377 * NEWS: Mention new 'maint print xml-tdesc' command.
2378
2379 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * target-descriptions.c (class tdesc_compatible_info): New class.
2382 (struct target_desc): Change type of compatible vector.
2383 (tdesc_compatible_p): Update for change in type of
2384 target_desc::compatible.
2385 (tdesc_compatible_info_list): New function.
2386 (tdesc_compatible_info_arch_name): New function.
2387 (tdesc_add_compatible): Update for change in type of
2388 target_desc::compatible.
2389 (print_c_tdesc::visit_pre): Likewise.
2390
2391 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2392
2393 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2394 whitespace to underscore.
2395 (maint_print_c_tdesc_cmd): Use fake filename for target
2396 descriptions that came from the target.
2397 (_initialize_target_descriptions): Add filename command completion
2398 for 'maint print c-tdesc'.
2399
2400 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2401
2402 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2403 lines.
2404
2405 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2406
2407 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2408 lines.
2409 (dwarf2_find_location_expression): Likewise.
2410 (call_site_parameter_matches): Likewise.
2411 (dwarf2_compile_expr_to_ax): Likewise.
2412 (disassemble_dwarf_expression): Likewise.
2413 (loclist_describe_location): Likewise.
2414
2415 2020-06-23 Pedro Alves <palves@redhat.com>
2416
2417 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2418 progspace-and-thread.h. Include scoped-mock-context.h instead.
2419 (register_to_value_test): Use scoped_mock_context.
2420 * regcache.c: Include "scoped-mock-context.h".
2421 (cooked_read_test): Don't error out if a target is already pushed.
2422 Use scoped_mock_context. Adjust.
2423 * scoped-mock-context.h: New file.
2424
2425 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2426
2427 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2428 initializer.
2429 (ada_language::is_string_type_p): New member function.
2430 * c-lang.c (c_language_data): Delete la_is_string_type_p
2431 initializer.
2432 (cplus_language_data): Likewise.
2433 (asm_language_data): Likewise.
2434 (minimal_language_data): Likewise.
2435 * d-lang.c (d_language_data): Likewise.
2436 * f-lang.c (f_is_string_type_p): Delete function, implementation
2437 moved to f_language::is_string_type_p.
2438 (f_language_data): Delete la_is_string_type_p initializer.
2439 (f_language::is_string_type_p): New member function,
2440 implementation from f_is_string_type_p.
2441 * go-lang.c (go_is_string_type_p): Delete function, implementation
2442 moved to go_language::is_string_type_p.
2443 (go_language_data): Delete la_is_string_type_p initializer.
2444 (go_language::is_string_type_p): New member function,
2445 implementation from go_is_string_type_p.
2446 * language.c (language_defn::is_string_type_p): Define new member
2447 function.
2448 (default_is_string_type_p): Make static, add comment copied from
2449 header file.
2450 (unknown_language_data): Delete la_is_string_type_p initializer.
2451 (unknown_language::is_string_type_p): New member function.
2452 (auto_language_data): Delete la_is_string_type_p initializer.
2453 (auto_language::is_string_type_p): New member function.
2454 * language.h (language_data): Delete la_is_string_type_p field.
2455 (language_defn::is_string_type_p): Declare new function.
2456 (default_is_string_type_p): Delete desclaration, move comment to
2457 definition.
2458 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2459 moved to m2_language::is_string_type_p.
2460 (m2_language_data): Delete la_is_string_type_p initializer.
2461 (m2_language::is_string_type_p): New member function,
2462 implementation from m2_is_string_type_p.
2463 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2464 initializer.
2465 * opencl-lang.c (opencl_language_data): Likewise.
2466 * p-lang.c (pascal_is_string_type_p): Delete function,
2467 implementation moved to pascal_language::is_string_type_p.
2468 (pascal_language_data): Delete la_is_string_type_p initializer.
2469 (pascal_language::is_string_type_p): New member function,
2470 implementation from pascal_is_string_type_p.
2471 * rust-lang.c (rust_is_string_type_p): Delete function,
2472 implementation moved to rust_language::is_string_type_p.
2473 (rust_language_data): Delete la_is_string_type_p initializer.
2474 (rust_language::is_string_type_p): New member function,
2475 implementation from rust_is_string_type_p.
2476 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2477 is_string_type_p.
2478
2479 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2480
2481 * ada-lang.c (ada_language_data): Delete la_print_typedef
2482 initializer.
2483 (ada_language::print_typedef): New member function.
2484 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2485 (cplus_language_data): Likewise.
2486 (asm_language_data): Likewise.
2487 (minimal_language_data): Likewise.
2488 * d-lang.c (d_language_data): Likewise.
2489 * f-lang.c (f_language_data): Likewise.
2490 (f_language::print_typedef): New member function.
2491 * go-lang.c (go_language_data): Delete la_print_typedef
2492 initializer.
2493 * language.c (language_defn::print_typedef): Define member
2494 function.
2495 (unknown_language_data): Delete la_print_typedef initializer.
2496 (unknown_language::print_typedef): New member function.
2497 (auto_language_data): Delete la_print_typedef initializer.
2498 (auto_language::print_typedef): New member function.
2499 * language.h (language_data): Delete la_print_typedef field.
2500 (language_defn::print_typedef): Declare new member function.
2501 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2502 (default_print_typedef): Delete declaration.
2503 * m2-lang.c (m2_language_data): Delete la_print_typedef
2504 initializer.
2505 (m2_language::print_typedef): New member function.
2506 * objc-lang.c (objc_language_data): Delete la_print_typedef
2507 initializer.
2508 * opencl-lang.c (opencl_language_data): Likewise.
2509 * p-lang.c (pascal_language_data): Likewise.
2510 (pascal_language::print_typedef): New member function.
2511 * rust-lang.c (rust_print_typedef): Delete function,
2512 implementation moved to rust_language::print_typedef.
2513 (rust_language): Delete la_print_typedef initializer.
2514 (rust_language::print_typedef): New member function,
2515 implementation from rust_print_typedef.
2516 * typeprint.c (default_print_typedef): Delete.
2517
2518 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2519
2520 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2521 (ada_language::printstr): New member function.
2522 * c-lang.c (c_language_data): Delete la_printstr initializer.
2523 (cplus_language_data): Likewise.
2524 (asm_language_data): Likewise.
2525 (minimal_language_data): Likewise.
2526 * d-lang.c (d_language_data): Likewise.
2527 * f-lang.c (f_printstr): Rename to f_language::printstr.
2528 (f_language_data): Delete la_printstr initializer.
2529 (f_language::printstr): New member function, implementation from
2530 f_printstr.
2531 * go-lang.c (go_language_data): Delete la_printstr initializer.
2532 * language.c (language_defn::printstr): Define new member
2533 function.
2534 (unk_lang_printstr): Delete.
2535 (unknown_language_data): Delete la_printstr initializer.
2536 (unknown_language::printstr): New member function.
2537 (auto_language_data): Delete la_printstr initializer.
2538 (auto_language::printstr): New member function.
2539 * language.h (language_data): Delete la_printstr field.
2540 (language_defn::printstr): Declare new member function.
2541 (LA_PRINT_STRING): Update call to printstr.
2542 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2543 (m2_language_data): Delete la_printstr initializer.
2544 (m2_language::printstr): New member function, implementation from
2545 m2_printstr.
2546 * objc-lang.c (objc_language_data): Delete la_printstr
2547 initializer.
2548 * opencl-lang.c (opencl_language_data): Likewise.
2549 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2550 (pascal_language_data): Delete la_printstr initializer.
2551 (pascal_language::printstr): New member function, implementation
2552 from pascal_printstr.
2553 * p-lang.h (pascal_printstr): Delete declaration.
2554 * rust-lang.c (rust_printstr): Update header comment.
2555 (rust_language_data): Delete la_printstr initializer.
2556 (rust_language::printstr): New member function.
2557
2558 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2559
2560 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2561 (ada_language::printchar): New member function.
2562 * c-lang.c (c_language_data): Delete la_printchar initializer.
2563 (cplus_language_data): Likewise.
2564 (asm_language_data): Likewise.
2565 (minimal_language_data): Likewise.
2566 * d-lang.c (d_language_data): Likewise.
2567 * f-lang.c (f_printchar): Rename to f_language::printchar.
2568 (f_language_data): Delete la_printchar initializer.
2569 (f_language::printchar): New member function, implementation from
2570 f_printchar.
2571 * go-lang.c (go_language_data): Delete la_printchar initializer.
2572 * language.c (unk_lang_printchar): Delete.
2573 (language_defn::printchar): Define new member function.
2574 (unknown_language_data): Delete la_printchar initializer.
2575 (unknown_language::printchar): New member function.
2576 (auto_language_data): Delete la_printchar initializer.
2577 (auto_language::printchar): New member function.
2578 * language.h (language_data): Delete la_printchar field.
2579 (language_defn::printchar): Declare new member function.
2580 (LA_PRINT_CHAR): Update call to printchar.
2581 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2582 (m2_language::printchar): New member function.
2583 * objc-lang.c (objc_language_data): Delete la_printchar
2584 initializer.
2585 * opencl-lang.c (opencl_language_data): Likewise.
2586 * p-lang.c (pascal_language_data): Delete la_printchar
2587 initializer.
2588 (pascal_language::printchar): New member function.
2589 * rust-lang.c (rust_printchar): Rename to
2590 rust_language::printchar.
2591 (rust_language_data): Delete la_printchar initializer.
2592 (rust_language::printchar): New member function, implementation
2593 from rust_printchar.
2594
2595 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2596
2597 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2598 (ada_language_data): Delete la_emitchar initializer.
2599 (ada_language::emitchar): New member function, implementation from
2600 emit_char.
2601 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2602 (cplus_language_data): Likewise.
2603 (asm_language_data): Likewise.
2604 (minimal_language_data): Likewise.
2605 * d-lang.c (d_language_data): Likewise.
2606 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2607 (f_language_data): Delete la_emitchar initializer.
2608 (f_language::emitchar): New member function, implementation from
2609 f_emit_char.
2610 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2611 * language.c (unk_lang_emit_char): Delete.
2612 (language_defn::emitchar): New member function definition.
2613 (unknown_language_data): Delete la_emitchar initializer.
2614 (unknown_language::emitchar): New member function.
2615 (auto_language_data): Delete la_emitchar initializer.
2616 (auto_language::emitchar): New member function.
2617 * language.h (language_data): Delete la_emitchar field.
2618 (language_defn::emitchar): New member field declaration.
2619 (LA_EMIT_CHAR): Update call to emitchar.
2620 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2621 (m2_language_data): Delete la_emitchar initializer.
2622 (m2_language::emitchar): New member function, implementation from
2623 m2_emit_char.
2624 * objc-lang.c (objc_language_data): Delete la_emitchar
2625 initializer.
2626 * opencl-lang.c (opencl_language_data): Likewise.
2627 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2628 (pascal_language_data): Delete la_emitchar initializer.
2629 (pascal_language::emitchar): New member function, implementation
2630 from pascal_emit_char.
2631 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2632 (rust_language_data): Delete la_emitchar initializer.
2633 (rust_language::emitchar): New member function, implementation
2634 from rust_emitchar.
2635
2636 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2637
2638 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2639 (ada_language_data): Delete la_post_parser initializer.
2640 (ada_language::post_parser): New member function.
2641 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2642 (cplus_language_data): Likewise.
2643 (asm_language_data): Likewise.
2644 (minimal_language_data): Likewise.
2645 * d-lang.c (d_language_data): Likewise.
2646 * f-lang.c (f_language_data): Likewise.
2647 * go-lang.c (go_language_data): Likewise.
2648 * language.c (unknown_language_data): Likewise.
2649 (auto_language_data): Likewise.
2650 * language.h (language_data): Delete la_post_parser field.
2651 (language_defn::post_parser): New member function.
2652 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2653 * objc-lang.c (objc_language_data): Likewise.
2654 * opencl-lang.c (opencl_language_data): Likewise.
2655 * p-lang.c (pascal_language_data): Likewise.
2656 * parse.c (parse_exp_in_context): Update call to post_parser.
2657 (null_post_parser): Delete definition.
2658 * parser-defs.h (null_post_parser): Delete declaration.
2659 * rust-lang.c (rust_language_data): Delete la_post_parser
2660 initializer.
2661
2662 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * ada-lang.c (parse): Rename to ada_language::parser.
2665 (ada_language_data): Delete la_parser initializer.
2666 (ada_language::parser): New member function, implementation from
2667 parse.
2668 * c-lang.c (c_language_data): Delete la_parser initializer.
2669 (cplus_language_data): Likewise.
2670 (asm_language_data): Likewise.
2671 (minimal_language_data): Likewise.
2672 * d-lang.c (d_language_data): Likewise.
2673 (d_language::parser): New member function.
2674 * f-lang.c (f_language_data): Delete la_parser initializer.
2675 (f_language::parser): New member function.
2676 * go-lang.c (go_language_data): Delete la_parser initializer.
2677 (go_language::parser): New member function.
2678 * language.c (unk_lang_parser): Delete.
2679 (language_defn::parser): Define new member function.
2680 (unknown_language_data): Delete la_parser initializer.
2681 (unknown_language::parser): New member function.
2682 (auto_language_data): Delete la_parser initializer.
2683 (auto_language::parser): New member function.
2684 * language.h (language_data): Delete la_parser field.
2685 (language_defn::parser): Declare new member function.
2686 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2687 (m2_language::parser): New member function.
2688 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2689 * opencl-lang.c (opencl_language_data): Likewise.
2690 * p-lang.c (pascal_language_data): Likewise.
2691 (pascal_language::parser): New member function.
2692 * parse.c (parse_exp_in_context): Update call to parser.
2693 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2694 (rust_language::parser): New member function.
2695
2696 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * top.c (print_gdb_configuration): Print --with-python-libdir
2699 configuration value.
2700
2701 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2702
2703 * NEWS: Mention change to the alias command.
2704
2705 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2706
2707 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2708 (alias_command_completer)
2709 (make_alias_options_def_group): New functions.
2710 (alias_opts, alias_option_defs): New struct and array.
2711 (alias_usage_error): Update usage.
2712 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2713 Use option framework.
2714 (_initialize_cli_cmds): Update alias command help.
2715 Update aliases command help.
2716 (show_user):
2717 Add NULL for new default_args lookup_cmd argument.
2718 (valid_command_p): Rename to validate_aliased_command.
2719 Add NULL for new default_args lookup_cmd argument. Verify that the
2720 aliased_command has no default args.
2721 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2722 (lookup_cmd_1, lookup_cmd): New argument default_args.
2723 (add_alias_cmd):
2724 Add NULL for new default_args lookup_cmd argument.
2725 (print_help_for_command): Show default args under the layout
2726 alias some_alias = some_aliased_cmd some_alias_default_arg.
2727 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2728 xfree default_args in destructor.
2729 * cli/cli-script.c (process_next_line, do_define_command):
2730 Add NULL for new default_args lookup_cmd argument.
2731 * command.h: Declare new default_args argument in lookup_cmd
2732 and lookup_cmd_1.
2733 * completer.c (complete_line_internal_1):
2734 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2735 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2736 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2737 Likewise.
2738 * infcmd.c (_initialize_infcmd): Likewise.
2739 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2740 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2741 * python/py-param.c (add_setshow_generic): Likewise.
2742 * remote.c (_initialize_remote): Likewise.
2743 * top.c (execute_command): Prepend default_args if command has some.
2744 (set_verbose):
2745 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2746 * tracepoint.c (validate_actionline, encode_actions_1):
2747 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2748
2749 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2750
2751 * jit.c (jit_read_descriptor): Use bool as the return type.
2752 (jit_breakpoint_re_set_internal): Use bool as the return type.
2753 Invert the return value logic; return true if the jit breakpoint
2754 has been successfully initialized.
2755 (jit_inferior_init): Update the call to
2756 jit_breakpoint_re_set_internal.
2757
2758 2020-06-22 Pedro Alves <palves@redhat.com>
2759
2760 PR gdb/25939
2761 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2762 Use the current inferior instead. Don't return
2763 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2764 wait again.
2765 * sol-thread.c (sol_thread_target::wait): Don't reference
2766 inferior_ptid.
2767 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2768 (sol_update_thread_list_callback): Use the current inferior's pid
2769 instead of inferior_ptid.
2770
2771 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2772
2773 * procfs.c: Cleanup many comments.
2774
2775 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2776 (AFTER_WATCHFLAG): Replace by value.
2777
2778 (MAIN_PROC_NAME_FORMAT): Inline ...
2779 (create_procinfo): ... here.
2780
2781 (procfs_debug_inferior): Remove SYS_exec handling.
2782 (syscall_is_exec): Likewise.
2783 (procfs_set_exec_trap): Likewise.
2784
2785 (syscall_is_lwp_exit): Inline in callers.
2786 (syscall_is_exit): Likewise.
2787 (syscall_is_exec): Likewise.
2788 (syscall_is_lwp_create): Likewise.
2789
2790 (invalidate_cache): Remove #if 0 code.
2791
2792 (make_signal_thread_runnable): Remove.
2793 (procfs_target::resume): Remove #if 0 code.
2794
2795 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2796
2797 PR gdb/25939
2798 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2799 call ...
2800 (procfs_target::create_inferior): ... here.
2801
2802 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2803
2804 * exec.c (validate_exec_file): Ensure the build-id is up to
2805 date by calling reopen_exec_file (that checks file timestamp
2806 to decide to re-read the file).
2807
2808 2020-06-18 Pedro Alves <palves@redhat.com>
2809
2810 PR gdb/25412
2811 * gdbthread.h (delete_thread, delete_thread_silent)
2812 (find_thread_ptid): Update comments.
2813 * thread.c (current_thread_): New global.
2814 (is_current_thread): Move higher, and reimplement.
2815 (inferior_thread): Reimplement.
2816 (set_thread_exited): Use bool. Add assertions.
2817 (add_thread_silent): Simplify thread-reuse handling by always
2818 calling delete_thread.
2819 (delete_thread): Remove intro comment.
2820 (find_thread_ptid): Skip exited threads.
2821 (switch_to_thread_no_regs): Write to current_thread_.
2822 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2823 INFERIOR_PTID. Clear current_thread_.
2824
2825 2020-06-18 Pedro Alves <palves@redhat.com>
2826
2827 * aix-thread.c (pd_update): Use switch_to_thread.
2828
2829 2020-06-18 Pedro Alves <palves@redhat.com>
2830
2831 * ravenscar-thread.c (ravenscar_thread_target): Update.
2832 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2833 (ravenscar_thread_target::add_active_thread): ... this. Don't
2834 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2835 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2836
2837 2020-06-18 Pedro Alves <palves@redhat.com>
2838
2839 * nat/windows-nat.c (current_windows_thread): Remove.
2840 * nat/windows-nat.h (current_windows_thread): Remove.
2841 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2842 Adjust.
2843 (display_selectors): Adjust to fetch the current
2844 windows_thread_info based on inferior_ptid.
2845 (fake_create_process): No longer write to current_windows_thread.
2846 (windows_nat_target::get_windows_debug_event):
2847 Don't set inferior_ptid or current_windows_thread.
2848 (windows_nat_target::wait): Adjust to not rely on
2849 current_windows_thread.
2850 (do_initial_windows_stuff): Now a method of windows_nat_target.
2851 Switch to the last_ptid thread.
2852 (windows_nat_target::attach): Adjust.
2853 (windows_nat_target::detach): Use switch_to_no_thread instead of
2854 writing to inferior_ptid directly.
2855 (windows_nat_target::create_inferior): Adjust.
2856
2857 2020-06-18 Pedro Alves <palves@redhat.com>
2858
2859 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2860
2861 2020-06-18 Pedro Alves <palves@redhat.com>
2862
2863 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2864 after creating it, instead of writing to inferior_ptid. Don't
2865 write to inferior_ptid.
2866
2867 2020-06-18 Pedro Alves <palves@redhat.com>
2868
2869 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2870
2871 2020-06-18 Pedro Alves <palves@redhat.com>
2872
2873 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2874 it, instead of writing to inferior_ptid.
2875
2876 2020-06-18 Pedro Alves <palves@redhat.com>
2877
2878 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2879 to inferior_ptid.
2880
2881 2020-06-18 Pedro Alves <palves@redhat.com>
2882
2883 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2884 instead of writing to inferior_ptid directly.
2885
2886 2020-06-18 Pedro Alves <palves@redhat.com>
2887
2888 * corelow.c (core_target::close): Use switch_to_no_thread instead
2889 of writing to inferior_ptid directly.
2890 (add_to_thread_list, core_target_open): Use switch_to_thread
2891 instead of writing to inferior_ptid directly.
2892
2893 2020-06-18 Pedro Alves <palves@redhat.com>
2894
2895 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2896 inferior_ptid.
2897 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2898 inferior_ptid.
2899 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2900 inferior_ptid directly.
2901 (darwin_nat_target::init_thread_list): Switch to thread, instead
2902 of writing to inferior_ptid.
2903 (darwin_nat_target::attach): Don't write to inferior_ptid.
2904 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2905
2906 2020-06-18 Pedro Alves <palves@redhat.com>
2907
2908 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2909 thread.
2910 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2911 Instead use switch_to_thread.
2912 (gnu_nat_target::detach): Use switch_to_no_thread
2913 instead of writing to inferior_ptid directly. Used passed-in
2914 inferior instead of looking up the inferior by pid.
2915
2916 2020-06-18 Pedro Alves <palves@redhat.com>
2917
2918 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2919 inferior_ptid.
2920
2921 2020-06-18 Pedro Alves <palves@redhat.com>
2922
2923 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2924 inferior_ptid.
2925 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2926 thread.
2927 (nto_procfs_target::detach): Avoid referencing
2928 inferior_ptid. Use switch_to_no_thread instead of writing to
2929 inferior_ptid directly.
2930 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2931 instead of writing to inferior_ptid directly.
2932 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2933 to thread.
2934
2935 2020-06-18 Pedro Alves <palves@redhat.com>
2936
2937 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2938 after creating it, instead of writing to inferior_ptid.
2939 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2940 to inferior_ptid directly.
2941 (gdbsim_target::wait): Don't write to inferior_ptid.
2942
2943 2020-06-18 Pedro Alves <palves@redhat.com>
2944
2945 * remote.c (remote_target::remote_notice_new_inferior): Use
2946 switch_to_thread instead of writing to inferior_ptid directly.
2947 (remote_target::add_current_inferior_and_thread): Use
2948 switch_to_no_thread instead of writing to inferior_ptid directly.
2949 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2950 and switch_to_thread instead of using set_current_inferior or
2951 writing to inferior_ptid directly.
2952
2953 2020-06-18 Pedro Alves <palves@redhat.com>
2954
2955 * tracectf.c (ctf_target_open): Switch to added thread instead of
2956 writing to inferior_ptid directly.
2957 (ctf_target::close): Use switch_to_no_thread instead of writing to
2958 inferior_ptid directly.
2959
2960 2020-06-18 Pedro Alves <palves@redhat.com>
2961
2962 * tracefile-tfile.c (tfile_target_open): Don't write to
2963 inferior_ptid directly, instead switch to added thread.
2964 (tfile_target::close): Use switch_to_no_thread instead of writing
2965 to inferior_ptid directly.
2966
2967 2020-06-18 Pedro Alves <palves@redhat.com>
2968
2969 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2970 (procfs_target::detach): Use switch_to_no_thread
2971 instead of writing to inferior_ptid directly.
2972 (do_attach): Change return type to void. Switch to the added
2973 thread.
2974 (procfs_target::create_inferior): Switch to the added thread.
2975 (procfs_do_thread_registers): Don't write to inferior_ptid.
2976
2977 2020-06-18 Pedro Alves <palves@redhat.com>
2978
2979 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2980 of writing to inferior_ptid.
2981 (scoped_restore_exited_inferior): Delete.
2982 (handle_vfork_child_exec_or_exit): Simplify using
2983 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2984 instead of writing to inferior_ptid.
2985 (THREAD_STOPPED_BY): Delete.
2986 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2987 (thread_stopped_by_hw_breakpoint): Delete.
2988 (save_waitstatus): Use
2989 scoped_restore_current_thread+switch_to_thread, and call
2990 target_stopped_by_watchpoint instead of
2991 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2992 instead of thread_stopped_by_sw_breakpoint, and
2993 target_stopped_by_hw_breakpoint instead of
2994 thread_stopped_by_hw_breakpoint.
2995 (handle_inferior_event)
2996 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2997 inferior_ptid directly, nor
2998 set_current_inferior/set_current_program_space. Use
2999 switch_to_thread / switch_to_inferior_no_thread instead.
3000
3001 2020-06-18 Pedro Alves <palves@redhat.com>
3002
3003 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3004 instead of writing to inferior_ptid.
3005
3006 2020-06-18 Pedro Alves <palves@redhat.com>
3007
3008 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3009 added thread.
3010 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3011 to the added thread.
3012 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3013 instead of writing to inferior_ptid.
3014
3015 2020-06-18 Pedro Alves <palves@redhat.com>
3016
3017 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3018 (register_to_value_test): Mock a program_space too. Heap-allocate
3019 the address space. Don't write to inferior_ptid. Use
3020 switch_to_thread instead.
3021
3022 2020-06-18 Pedro Alves <palves@redhat.com>
3023
3024 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3025 Delete.
3026 (find_signalled_thread()): New, factored out from
3027 linux_make_corefile_notes and adjusted to handle exited threads.
3028 (linux_make_corefile_notes): Adjust to use the new
3029 find_signalled_thread.
3030
3031 2020-06-18 Pedro Alves <palves@redhat.com>
3032
3033 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3034 of saving/restoring inferior_ptid.
3035
3036 2020-06-17 Tom Tromey <tom@tromey.com>
3037
3038 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3039 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3040 declare.
3041 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3042
3043 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3046 of partial symtabs.
3047
3048 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3049
3050 * regformats/reg-arm.dat: Remove.
3051 * regformats/reg-bfin.dat: Remove.
3052 * regformats/reg-cris.dat: Remove.
3053 * regformats/reg-crisv32.dat: Remove.
3054 * regformats/reg-m32r.dat: Remove.
3055 * regformats/reg-tilegx.dat: Remove.
3056 * regformats/reg-tilegx32.dat: Remove.
3057
3058 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3059
3060 * features/Makefile (WHICH): Remove arm files.
3061 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3062 * regformats/arm/arm-with-neon.dat: Remove.
3063 * regformats/arm/arm-with-vfpv2.dat: Remove.
3064 * regformats/arm/arm-with-vfpv3.dat: Remove.
3065
3066 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3067
3068 * features/Makefile (XMLTOC): Remove rx.xml.
3069
3070 2020-06-17 Pedro Alves <palves@redhat.com>
3071
3072 * gdbthread.h (thread_control_state) <trap_expected> Update
3073 comments.
3074
3075 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3076
3077 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3078 ada_language::lookup_symbol_nonlocal.
3079 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3080 (ada_language::lookup_symbol_nonlocal): New member function,
3081 implementation from ada_lookup_symbol_nonlocal.
3082 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3083 initializer.
3084 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3085 initializer.
3086 (cplus_language::lookup_symbol_nonlocal): New member function.
3087 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3088 (minimal_language_data) Likewise.
3089 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3090 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3091 initializer.
3092 (d_language::lookup_symbol_nonlocal): New member function.
3093 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3094 initializer.
3095 (f_language::lookup_symbol_nonlocal): New member function.
3096 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3097 initializer.
3098 * language.c (unknown_language_data): Likewise.
3099 (auto_language_data): Likewise.
3100 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3101 field.
3102 (language_defn::lookup_symbol_nonlocal): New member function.
3103 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3104 initializer.
3105 * objc-lang.c (objc_language_data): Likewise.
3106 * opencl-lang.c (opencl_language_data): Likewise.
3107 * p-lang.c (pascal_language_data): Likewise.
3108 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3109 rust_language::lookup_symbol_nonlocal.
3110 (rust_language_data): Delete la_lookup_symbol_nonlocal
3111 initializer.
3112 (rust_language::lookup_symbol_nonlocal): New member function,
3113 implementation from rust_lookup_symbol_nonlocal.
3114 * symtab.c (lookup_symbol_aux): Update call to
3115 lookup_symbol_nonlocal.
3116 (basic_lookup_symbol_nonlocal): Rename to...
3117 (language_defn::lookup_symbol_nonlocal): ...this, and update
3118 header comment. Remove language_defn parameter, and replace with
3119 uses of `this'.
3120 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3121
3122 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3123
3124 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3125 initializer.
3126 (ada_language::value_print_inner): New member function.
3127 * c-lang.c (c_language_data): Delete la_value_print_inner
3128 initializer.
3129 (cplus_language_data): Likewise.
3130 (asm_language_data): Likewise.
3131 (minimal_language_data): Likewise.
3132 * d-lang.c (d_language_data): Likewise.
3133 (d_language::value_print_inner): New member function.
3134 * f-lang.c (f_language_data): Delete la_value_print_inner
3135 initializer.
3136 (f_language::value_print_inner): New member function.
3137 * f-lang.h (f_value_print_innner): Rename to...
3138 (f_value_print_inner): ...this (note spelling of 'inner').
3139 * f-valprint.c (f_value_print_innner): Rename to...
3140 (f_value_print_inner): ...this (note spelling of 'inner').
3141 * go-lang.c (go_language_data): Delete la_value_print_inner
3142 initializer.
3143 (go_language::value_print_inner): New member function.
3144 * language.c (language_defn::value_print_inner): Define new member
3145 function.
3146 (unk_lang_value_print_inner): Delete.
3147 (unknown_language_data): Delete la_value_print_inner initializer.
3148 (unknown_language::value_print_inner): New member function.
3149 (auto_language_data): Delete la_value_print_inner initializer.
3150 (auto_language::value_print_inner): New member function.
3151 * language.h (language_data): Delete la_value_print_inner field.
3152 (language_defn::value_print_inner): Delcare new member function.
3153 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3154 initializer.
3155 (m2_language::value_print_inner): New member function.
3156 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3157 initializer.
3158 * opencl-lang.c (opencl_language_data): Likewise.
3159 * p-lang.c (pascal_language_data): Likewise.
3160 (pascal_language::value_print_inner): New member function.
3161 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3162 initializer.
3163 (rust_language::value_print_inner): New member function.
3164 * valprint.c (do_val_print): Update call to value_print_inner.
3165
3166 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 * ada-lang.c (ada_language_data): Delete la_value_print
3169 initializer.
3170 (ada_language::value_print): New member function.
3171 * c-lang.c (c_language_data): Delete la_value_print initializer.
3172 (cplus_language_data): Likewise.
3173 (asm_language_data): Likewise.
3174 (minimal_language_data): Likewise.
3175 * d-lang.c (d_language_data): Likewise.
3176 * f-lang.c (f_language_data): Likewise.
3177 * go-lang.c (go_language_data): Likewise.
3178 * language.c (unk_lang_value_print): Delete.
3179 (language_defn::value_print): Define new member function.
3180 (unknown_language_data): Delete la_value_print initializer.
3181 (unknown_language::value_print): New member function.
3182 (auto_language_data): Delete la_value_print initializer.
3183 (auto_language::value_print): New member function.
3184 * language.h (language_data): Delete la_value_print field.
3185 (language_defn::value_print): Declare new member function.
3186 (LA_VALUE_PRINT): Update call to value_print.
3187 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3188 * objc-lang.c (objc_language_data): Likewise.
3189 * opencl-lang.c (opencl_language_data): Likewise.
3190 * p-lang.c (pascal_language_data): Likewise.
3191 (pascal_language::value_print): New member function.
3192 * rust-lang.c (rust_language_data): Delete la_value_print
3193 initializer.
3194
3195 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3196
3197 * ada-lang.c (ada_watch_location_expression): Rename to
3198 ada_language::watch_location_expression.
3199 (ada_language_data): Delete la_watch_location_expression
3200 initializer.
3201 (ada_language::watch_location_expression): New member function,
3202 implementation from ada_watch_location_expression.
3203 * breakpoint.c (watch_command_1): Update call to
3204 watch_location_expression.
3205 * c-lang.c (c_watch_location_expression): Rename to
3206 language_defn::watch_location_expression.
3207 (c_language_data): Delete la_watch_location_expression
3208 initializer.
3209 (cplus_language_data): Likewise.
3210 (asm_language_data): Likewise.
3211 (minimal_language_data): Likewise.
3212 * c-lang.h (c_watch_location_expression): Delete declaration.
3213 * d-lang.c (d_language_data): Delete la_watch_location_expression
3214 initializer.
3215 * f-lang.c (f_language_data): Likewise.
3216 * go-lang.c (go_language_data): Likewise.
3217 * language.c (language_defn::watch_location_expression): Member
3218 function implementation from c_watch_location_expression.
3219 (unknown_language_data): Delete la_watch_location_expression
3220 initializer.
3221 (auto_language_data): Likewise.
3222 * language.h (language_data): Delete la_watch_location_expression
3223 field.
3224 (language_defn::watch_location_expression): Declare new member
3225 function.
3226 * m2-lang.c (m2_language_data): Delete
3227 la_watch_location_expression initializer.
3228 * objc-lang.c (objc_language_data): Likewise.
3229 * opencl-lang.c (opencl_language_data): Likewise.
3230 * p-lang.c (pascal_language_data): Likewise.
3231 * rust-lang.c (rust_watch_location_expression): Rename to
3232 rust_language::watch_location_expression.
3233 (rust_language_data): Delete la_watch_location_expression
3234 initializer.
3235 (rust_language::watch_location_expression): New member function,
3236 implementation from rust_watch_location_expression.
3237
3238 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3239
3240 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3241 ada_language::collect_symbol_completion_matches.
3242 (ada_language_data): Delete la_collect_symbol_completion_matches
3243 initializer.
3244 (ada_language::collect_symbol_completion_matches): New member
3245 function, implementation from
3246 ada_collect_symbol_completion_matches.
3247 * c-lang.c (c_language_data): Delete
3248 la_collect_symbol_completion_matches initializer.
3249 (cplus_language_data): Likewise.
3250 (asm_language_data): Likewise.
3251 (minimal_language_data): Likewise.
3252 * d-lang.c (d_language_data): Likewise.
3253 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3254 f_language::collect_symbol_completion_matches.
3255 (f_language_data): Delete la_collect_symbol_completion_matches
3256 initializer.
3257 (f_language::collect_symbol_completion_matches) New member
3258 function, implementation from f_collect_symbol_completion_matches.
3259 * go-lang.c (go_language_data): Delete
3260 la_collect_symbol_completion_matches initializer.
3261 * language.c (unknown_language_data): Likewise.
3262 (auto_language_data): Likewise.
3263 * language.h (language_data): Delete
3264 la_collect_symbol_completion_matches field.
3265 (language_defn::collect_symbol_completion_matches): New member
3266 function.
3267 * m2-lang.c (m2_language_data): Delete
3268 la_collect_symbol_completion_matches initializer.
3269 * objc-lang.c (objc_language_data): Likewise.
3270 * opencl-lang.c (opencl_language_data): Likewise.
3271 * p-lang.c (pascal_language_data): Likewise.
3272 * rust-lang.c (rust_language_data): Likewise.
3273 * symtab.c (default_collect_symbol_completion_matches): Delete.
3274 (collect_symbol_completion_matches): Update call to
3275 collect_symbol_completion_matches.
3276 (collect_symbol_completion_matches_type): Likewise.
3277 * symtab.h (default_collect_symbol_completion_matches): Delete
3278 declaration.
3279
3280 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3283 (ada_language_data): Delete la_word_break_characters initializer.
3284 (ada_language::word_break_characters): New member function.
3285 * c-lang.c (c_language_data): Delete la_word_break_characters
3286 initializer.
3287 (cplus_language_data): Likewise.
3288 (asm_language_data): Likewise.
3289 (minimal_language_data): Likewise.
3290 * completer.c: Update global comment.
3291 (advance_to_expression_complete_word_point): Update call to
3292 word_break_characters.
3293 (complete_files_symbols): Likewise.
3294 (complete_line_internal_1): Likewise.
3295 (default_completer_handle_brkchars): Likewise.
3296 (skip_quoted_chars): Likewise.
3297 * d-lang.c (d_language_data): Delete la_word_break_characters
3298 initializer.
3299 * f-lang.c (f_word_break_characters): Delete.
3300 (f_language_data): Delete la_word_break_characters initializer.
3301 (f_language::word_break_characters): New member function.
3302 * go-lang.c (go_language_data): Delete la_word_break_characters
3303 initializer.
3304 * language.c (unknown_language_data): Likewise.
3305 (auto_language_data): Likewise.
3306 * language.h (default_word_break_characters): Move declaration to
3307 earlier in the file.
3308 (language_data): Delete la_word_break_characters field.
3309 (language_defn::word_break_characters): New member function.
3310 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3311 initializer.
3312 * objc-lang.c (objc_language_data): Likewise.
3313 * opencl-lang.c (opencl_language_data): Likewise.
3314 * p-lang.c (pascal_language_data): Likewise.
3315 * rust-lang.c (rust_language_data): Likewise.
3316
3317 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3318
3319 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3320 (ada_language_data): Delete la_get_symbol_name_matcher
3321 initializer.
3322 (language_defn::get_symbol_name_matcher_inner): New member
3323 function.
3324 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3325 initializer.
3326 (cplus_language_data): Likewise.
3327 (cplus_language::get_symbol_name_matcher_inner): New member
3328 function.
3329 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3330 (minimal_language_data): Likewise.
3331 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3332 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3333 initializer.
3334 * dictionary.c (iter_match_first_hashed): Update call to
3335 get_symbol_name_matcher.
3336 (iter_match_next_hashed): Likewise.
3337 (iter_match_next_linear): Likewise.
3338 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3339 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3340 initializer.
3341 (f_language::get_symbol_name_matcher_inner): New member function.
3342 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3343 initializer.
3344 * language.c (default_symbol_name_matcher): Update header comment,
3345 make static.
3346 (language_defn::get_symbol_name_matcher): New definition.
3347 (language_defn::get_symbol_name_matcher_inner): Likewise.
3348 (get_symbol_name_matcher): Delete.
3349 (unknown_language_data): Delete la_get_symbol_name_matcher
3350 initializer.
3351 (auto_language_data): Likewise.
3352 * language.h (language_data): Delete la_get_symbol_name_matcher
3353 field.
3354 (language_defn::get_symbol_name_matcher): New member function.
3355 (language_defn::get_symbol_name_matcher_inner): Likewise.
3356 (default_symbol_name_matcher): Delete declaration.
3357 * linespec.c (find_methods): Update call to
3358 get_symbol_name_matcher.
3359 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3360 initializer.
3361 * minsyms.c (lookup_minimal_symbol): Update call to
3362 get_symbol_name_matcher.
3363 (iterate_over_minimal_symbols): Likewise.
3364 * objc-lang.c (objc_language_data): Delete
3365 la_get_symbol_name_matcher initializer.
3366 * opencl-lang.c (opencl_language_data): Likewise.
3367 * p-lang.c (pascal_language_data): Likewise.
3368 * psymtab.c (psymbol_name_matches): Update call to
3369 get_symbol_name_matcher.
3370 * rust-lang.c (rust_language_data): Delete
3371 la_get_symbol_name_matcher initializer.
3372 * symtab.c (symbol_matches_search_name): Update call to
3373 get_symbol_name_matcher.
3374 (compare_symbol_name): Likewise.
3375
3376 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3377
3378 * ada-lang.c (ada_language_data): Delete la_compute_program
3379 initializer.
3380 * c-lang.c (c_language_data): Likewise.
3381 (c_language::compute_program): New member function.
3382 (cplus_language_data): Delete la_compute_program initializer.
3383 (cplus_language::compute_program): New member function.
3384 (asm_language_data): Delete la_compute_program initializer.
3385 (minimal_language_data): Likewise.
3386 * c-lang.h (c_compute_program): Update comment.
3387 (cplus_compute_program): Likewise.
3388 * compile/compile-c-support.c (c_compute_program): Likewise.
3389 (cplus_compute_program): Likewise.
3390 * compile/compile.c (compile_to_object): Update call to
3391 la_compute_program.
3392 * d-lang.c (d_language_data): Delete la_compute_program
3393 initializer.
3394 * f-lang.c (f_language_data): Likewise.
3395 * go-lang.c (go_language_data): Likewise.
3396 * language.c (unknown_language_data): Likewise.
3397 (auto_language_data): Likewise.
3398 * language.h (language_data): Delete la_compute_program field.
3399 (language_defn::compute_program): New member function.
3400 * m2-lang.c (m2_language_data): Delete la_compute_program
3401 initializer.
3402 * objc-lang.c (objc_language_data): Likewise.
3403 * opencl-lang.c (opencl_language_data): Likewise.
3404 * p-lang.c (pascal_language_data): Likewise.
3405 * rust-lang.c (rust_language_data): Likewise.
3406
3407 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3408
3409 * ada-lang.c (ada_language_data) Delete
3410 la_class_name_from_physname initializer.
3411 * c-lang.c (c_language_data): Likewise.
3412 (cplus_language_data): Likewise.
3413 (cplus_language::class_name_from_physname): New member function.
3414 (asm_language_data): Delete la_class_name_from_physname
3415 initializer.
3416 (minimal_language_data): Likewise.
3417 * d-lang.c (d_language_data): Likewise.
3418 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3419 method on language_defn class.
3420 (guess_full_die_structure_name): Likewise.
3421 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3422 initializer.
3423 * go-lang.c (go_language_data): Likewise.
3424 * language.c (language_class_name_from_physname): Delete.
3425 (unk_lang_class_name): Delete.
3426 (unknown_language_data): Delete la_class_name_from_physname
3427 initializer.
3428 (auto_language_data): Likewise.
3429 * language.h (language_data): Delete la_class_name_from_physname
3430 field.
3431 (language_defn::class_name_from_physname): New function.
3432 (language_class_name_from_physname): Delete declaration.
3433 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3434 initializer.
3435 * objc-lang.c (objc_language_data): Likewise.
3436 * opencl-lang.c (opencl_language_data): Likewise.
3437 * p-lang.c (pascal_language_data): Likewise.
3438 * rust-lang.c (rust_language_data): Likewise.
3439
3440 2020-06-16 Tom Tromey <tom@tromey.com>
3441
3442 * tui/tui-data.h (STATUS_NAME): New macro.
3443 * tui/tui-layout.c (tui_remove_some_windows)
3444 (initialize_known_windows, tui_register_window)
3445 (tui_layout_split::remove_windows, initialize_layouts)
3446 (tui_new_layout_command): Don't use hard-coded window names.
3447
3448 2020-06-16 Tom Tromey <tom@tromey.com>
3449
3450 PR tui/25348:
3451 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3452 tui_initialize_readline. Only run once. Call rl_initialize.
3453 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3454 tui_initialize_readline.
3455 * tui/tui-io.c (tui_setup_io): Call
3456 tui_ensure_readline_initialized.
3457 * tui/tui-interp.c (tui_interp::init): Update.
3458
3459 2020-06-16 Tom Tromey <tom@tromey.com>
3460
3461 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3462 Also preserve the status window.
3463
3464 2020-06-16 Tom Tromey <tom@tromey.com>
3465
3466 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3467 where m_window==nullptr.
3468
3469 2020-06-15 Tom Tromey <tromey@adacore.com>
3470
3471 * windows-nat.c (windows_nat::handle_output_debug_string):
3472 Update.
3473 (windows_nat::handle_ms_vc_exception): Update.
3474 * target.h (target_read_string): Change API.
3475 * target.c (target_read_string): Change API.
3476 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3477 Update.
3478 * solib-frv.c (frv_current_sos): Update.
3479 * solib-dsbt.c (dsbt_current_sos): Update.
3480 * solib-darwin.c (darwin_current_sos): Update.
3481 * linux-thread-db.c (inferior_has_bug): Update.
3482 * expprint.c (print_subexp_standard): Update.
3483 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3484 (ada_exception_message_1): Update.
3485
3486 2020-06-15 Tom Tromey <tromey@adacore.com>
3487
3488 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3489
3490 2020-06-15 Tom Tromey <tromey@adacore.com>
3491
3492 * valprint.c (read_string): Update comment.
3493 * target.c (MIN): Remove.
3494 (target_read_string): Rewrite.
3495
3496 2020-06-15 Tom Tromey <tromey@adacore.com>
3497
3498 * corefile.c (read_memory_string): Remove.
3499 * ada-valprint.c (ada_value_print_ptr): Update.
3500 * ada-lang.h (ada_tag_name): Change return type.
3501 * ada-lang.c (type_from_tag): Update.
3502 (ada_tag_name_from_tsd): Change return type. Use
3503 target_read_string.
3504 (ada_tag_name): Likewise.
3505 * gdbcore.h (read_memory_string): Don't declare.
3506
3507 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3508
3509 * symtab.c (rbreak_command): Ignore Windows drive colon.
3510
3511 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3512
3513 * NEWS: Mention removed GDBserver host support.
3514
3515 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3516
3517 * features/riscv/rebuild-csr-xml.sh: Updated.
3518
3519 2020-06-11 Tom Tromey <tom@tromey.com>
3520
3521 PR gdb/18318:
3522 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3523
3524 2020-06-09 Jonny Grant <jg@jguk.org>
3525 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3526
3527 * main.c (captured_main_1): Don't print new line after help.
3528 (print_gdb_help): add mailing list and IRC channel information
3529 to --help. Add new lines between items in the footer. Remove
3530 quotes around bug url.
3531
3532 2020-06-11 Keith Seitz <keiths@redhat.com>
3533
3534 PR gdb/21356
3535 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3536 Resolve typedefs for type length calculations.
3537
3538 2020-06-10 Tom de Vries <tdevries@suse.de>
3539
3540 PR ada/24713
3541 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3542 (write_psymbols): Enable .gdb_index for ada.
3543 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3544 ada.
3545
3546 2020-06-10 Tom de Vries <tdevries@suse.de>
3547
3548 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3549 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3550 namei" instead of "const char *name" argument.
3551 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3552 dw2_symtab_iter_init.
3553
3554 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3555
3556 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3557 to use type::field and field::type instead.
3558
3559 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3560
3561 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3562 to use field::type instead.
3563
3564 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3565
3566 * gdbtypes.h (struct field) <type, set_type>: New methods.
3567 Rename `type` field to...
3568 <m_type>: ... this. Change references throughout to use type or
3569 set_type methods.
3570 (FIELD_TYPE): Use field::type. Change call sites that modify
3571 the field's type to use field::set_type instead.
3572
3573 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3574
3575 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3576 to use type::index_type instead.
3577
3578 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3579
3580 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3581 methods.
3582 (TYPE_INDEX_TYPE): Use type::index_type.
3583 * gdbtypes.c (create_array_type_with_stride): Likewise.
3584
3585 2020-06-07 Tom Tromey <tom@tromey.com>
3586
3587 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3588 parameter.
3589 (generic_value_print): Update.
3590
3591 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3592
3593 Revert commit 982a38f60b0.
3594 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3595
3596 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3597
3598 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3599 avoid use after free.
3600
3601 2020-06-05 Tom de Vries <tdevries@suse.de>
3602
3603 * NEWS: Fix typos.
3604
3605 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3606
3607 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3608 the per_bfd object.
3609 (dwarf2_read_debug_names): Likewise.
3610 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3611 object when re-using a per_bfd object with an index.
3612
3613 2020-06-03 Tom de Vries <tdevries@suse.de>
3614
3615 PR symtab/26046
3616 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3617 children for C++.
3618 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3619 DW_TAG_subprogram.
3620
3621 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3622
3623 * ada-lang.c (ada_language_data): Delete skip_trampoline
3624 initializer.
3625 * c-lang.c (c_language_data): Likewise.
3626 (cplus_language_data): Likewise.
3627 (cplus_language::skip_trampoline): New member function.
3628 (asm_language_data): Delete skip_trampoline initializer.
3629 (minimal_language_data): Likewise.
3630 * d-lang.c (d_language_data): Likewise.
3631 * f-lang.c (f_language_data): Likewise.
3632 * go-lang.c (go_language_data): Likewise.
3633 * language.c (unk_lang_trampoline): Delete function.
3634 (skip_language_trampoline): Update.
3635 (unknown_language_data): Delete skip_trampoline initializer.
3636 (auto_language_data): Likewise.
3637 * language.h (language_data): Delete skip_trampoline field.
3638 (language_defn::skip_trampoline): New function.
3639 * m2-lang.c (m2_language_data): Delete skip_trampoline
3640 initializer.
3641 * objc-lang.c (objc_skip_trampoline): Delete function, move
3642 implementation to objc_language::skip_trampoline.
3643 (objc_language_data): Delete skip_trampoline initializer.
3644 (objc_language::skip_trampoline): New member function with
3645 implementation from objc_skip_trampoline.
3646 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3647 initializer.
3648 * p-lang.c (pascal_language_data): Likewise.
3649 * rust-lang.c (rust_language_data): Likewise.
3650
3651 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3652
3653 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3654 (ada_language::demangle): New member function.
3655 * c-lang.c (c_language_data): Delete la_demangle initializer.
3656 (cplus_language_data): Delete la_demangle initializer.
3657 (cplus_language::demangle): New member function.
3658 (asm_language_data): Delete la_demangle initializer.
3659 (minimal_language_data): Delete la_demangle initializer.
3660 * d-lang.c (d_language_data): Delete la_demangle initializer.
3661 (d_language::demangle): New member function.
3662 * f-lang.c (f_language_data): Delete la_demangle initializer.
3663 (f_language::demangle): New member function.
3664 * go-lang.c (go_language_data): Delete la_demangle initializer.
3665 (go_language::demangle): New member function.
3666 * language.c (language_demangle): Update.
3667 (unk_lang_demangle): Delete.
3668 (unknown_language_data): Delete la_demangle initializer.
3669 (unknown_language::demangle): New member function.
3670 (auto_language_data): Delete la_demangle initializer.
3671 (auto_language::demangle): New member function.
3672 * language.h (language_data): Delete la_demangle field.
3673 (language_defn::demangle): New function.
3674 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3675 * objc-lang.c (objc_language_data): Delete la_demangle
3676 initializer.
3677 (objc_language::demangle): New member function.
3678 * opencl-lang.c (opencl_language_data): Delete la_demangle
3679 initializer.
3680 * p-lang.c (pascal_language_data): Likewise.
3681 * rust-lang.c (rust_language_data): Likewise.
3682 (rust_language::demangle): New member function.
3683
3684 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * ada-lang.c (ada_language_data): Delete la_print_type
3687 initializer.
3688 (ada_language::print_type): New member function.
3689 * c-lang.c (c_language_data): Delete la_print_type initializer.
3690 (c_language::print_type): New member function.
3691 (cplus_language_data): Delete la_print_type initializer.
3692 (cplus_language::print_type): New member function.
3693 (asm_language_data): Delete la_print_type initializer.
3694 (asm_language::print_type): New member function.
3695 (minimal_language_data): Delete la_print_type initializer.
3696 (minimal_language::print_type): New member function.
3697 * d-lang.c (d_language_data): Delete la_print_type initializer.
3698 (d_language::print_type): New member function.
3699 * f-lang.c (f_language_data): Delete la_print_type initializer.
3700 (f_language::print_type): New member function.
3701 * go-lang.c (go_language_data): Delete la_print_type initializer.
3702 (go_language::print_type): New member function.
3703 * language.c (unk_lang_print_type): Delete.
3704 (unknown_language_data): Delete la_print_type initializer.
3705 (unknown_language::print_type): New member function.
3706 (auto_language_data): Delete la_print_type initializer.
3707 (auto_language::print_type): New member function.
3708 * language.h (language_data): Delete la_print_type field.
3709 (language_defn::print_type): New function.
3710 (LA_PRINT_TYPE): Update.
3711 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3712 (m2_language::print_type): New member function.
3713 * objc-lang.c (objc_language_data): Delete la_print_type
3714 initializer.
3715 (objc_language::print_type): New member function.
3716 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3717 to opencl_language::print_type.
3718 (opencl_language_data): Delete la_print_type initializer.
3719 (opencl_language::print_type): New member function, implementation
3720 from opencl_print_type.
3721 * p-lang.c (pascal_language_data): Delete la_print_type
3722 initializer.
3723 (pascal_language::print_type): New member function.
3724 * rust-lang.c (rust_print_type): Delete, implementation moved to
3725 rust_language::print_type.
3726 (rust_language_data): Delete la_print_type initializer.
3727 (rust_language::print_type): New member function, implementation
3728 from rust_print_type.
3729
3730 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3731
3732 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3733 implementation moves to...
3734 (ada_language::sniff_from_mangled_name): ...here. Update return
3735 type.
3736 (ada_language_data): Delete la_sniff_from_mangled_name
3737 initializer.
3738 * c-lang.c (c_language_data): Likewise.
3739 (cplus_language_data): Likewise.
3740 (cplus_language::sniff_from_mangled_name): New member function,
3741 implementation taken from gdb_sniff_from_mangled_name.
3742 (asm_language_data): Delete la_sniff_from_mangled_name
3743 initializer.
3744 (minimal_language_data): Likewise.
3745 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3746 implementation moves to cplus_language::sniff_from_mangled_name.
3747 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3748 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3749 moves to...
3750 (d_language::sniff_from_mangled_name): ...here.
3751 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3752 * f-lang.c (f_language_data): Likewise.
3753 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3754 moves to...
3755 (go_language::sniff_from_mangled_name): ...here.
3756 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3757 * language.c (language_sniff_from_mangled_name): Delete.
3758 (unknown_language_data): Delete la_sniff_from_mangled_name
3759 initializer.
3760 (auto_language_data): Likewise.
3761 * language.h (language_data): Delete la_sniff_from_mangled_name
3762 field.
3763 (language_defn::sniff_from_mangled_name): New function.
3764 (language_sniff_from_mangled_name): Delete declaration.
3765 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3766 field.
3767 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3768 implementation moves to...
3769 (objc_language::sniff_from_mangled_name): ...here.
3770 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3771 * opencl-lang.c (opencl_language_data): Likewise.
3772 * p-lang.c (pascal_language_data): Likewise.
3773 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3774 implementation moves to...
3775 (rust_language::sniff_from_mangled_name): ...here.
3776 (rust_language_data): Delete la_sniff_from_mangled_name
3777 initializer.
3778 * symtab.c (symbol_find_demangled_name): Call
3779 sniff_from_mangled_name member function.
3780
3781 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3782
3783 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3784 initializer.
3785 * c-lang.c (c_language_data): Likewise.
3786 (cplus_language_data): Likewise.
3787 (cplus_language::search_name_hash): New member function.
3788 (asm_language_data): Delete la_search_name_hash initializer.
3789 (minimal_language_data): Likewise.
3790 * d-lang.c (d_language_data): Likewise.
3791 * dictionary.c (default_search_name_hash): Rename to...
3792 (language_defn::search_name_hash): ...this.
3793 * f-lang.c (f_language_data): Likewise.
3794 (f_language::search_name_hash): New member function.
3795 * go-lang.c (go_language_data): Delete la_search_name_hash
3796 initializer.
3797 * language.c (unknown_language_data): Likewise.
3798 (auto_language_data): Likewise.
3799 * language.h (struct language_data): Delete la_search_name_hash
3800 field.
3801 (language_defn::search_name_hash): Declare new member function.
3802 (default_search_name_hash): Delete declaration.
3803 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3804 initializer.
3805 * objc-lang.c (objc_language_data): Likewise.
3806 * opencl-lang.c (opencl_language_data): Likewise.
3807 * p-lang.c (pascal_language_data): Likewise.
3808 * rust-lang.c (rust_language_data): Likewise.
3809 * symtab.c (search_name_hash): Update call.
3810
3811 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3812
3813 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3814 initializer.
3815 * c-lang.c (class compile_instance): Declare.
3816 (c_language_data): Delete la_get_compile_instance initializer.
3817 (c_language::get_compile_instance): New member function.
3818 (cplus_language_data): Delete la_get_compile_instance initializer.
3819 (cplus_language::get_compile_instance): New member function.
3820 (asm_language_data): Delete la_get_compile_instance initializer.
3821 (minimal_language_data): Likewise.
3822 * c-lang.h (c_get_compile_context): Update comment.
3823 (cplus_get_compile_context): Update comment.
3824 * compile/compile.c (compile_to_object): Update calls, don't rely
3825 on function pointer being NULL.
3826 * d-lang.c (d_language_data): Delete la_get_compile_instance
3827 initializer.
3828 * f-lang.c (f_language_data): Likewise.
3829 * go-lang.c (go_language_data): Likewise.
3830 * language.c (unknown_language_data): Likewise.
3831 (auto_language_data): Likewise.
3832 * language.h (language_data): Delete la_get_compile_instance field.
3833 (language_defn::get_compile_instance): New member function.
3834 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3835 initializer.
3836 * objc-lang.c (objc_language_data): Likewise.
3837 * opencl-lang.c (opencl_language_data): Likewise.
3838 * p-lang.c (pascal_language_data): Likewise.
3839 * rust-lang.c (rust_language_data): Likewise.
3840
3841 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3842
3843 * ada-lang.c (ada_add_all_symbols): Update comment.
3844 (ada_iterate_over_symbols): Delete, move implementation to...
3845 (ada_language::iterate_over_symbols): ...here, a new member
3846 function, rewrite to use range based for loop.
3847 (ada_language_data): Delete la_iterate_over_symbols initializer.
3848 * c-lang.c (c_language_data): Likewise.
3849 (cplus_language_data): Likewise.
3850 (asm_language_data): Likewise.
3851 (minimal_language_data): Likewise.
3852 * d-lang.c (d_language_data): Likewise.
3853 * f-lang.c (f_language_data): Likewise.
3854 * go-lang.c (go_language_data): Likewise.
3855 * language.c (unknown_language_data): Likewise.
3856 (auto_language_data): Likewise.
3857 * language.h (language_data): Delete la_iterate_over_symbols field.
3858 (language_defn::iterate_over_symbols): New member function.
3859 (LA_ITERATE_OVER_SYMBOLS): Update.
3860 * linespec.c (iterate_over_all_matching_symtabs): Update.
3861 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3862 initializer.
3863 * objc-lang.c (objc_language_data): Likewise.
3864 * opencl-lang.c (opencl_language_data): Likewise.
3865 * p-lang.c (pascal_language_data): Likewise.
3866 * rust-lang.c (rust_language_data): Likewise.
3867
3868 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3869
3870 * ada-lang.c (ada_language_data): Delete
3871 la_lookup_transparent_type initializer.
3872 * c-lang.c (c_language_data): Likewise.
3873 (cplus_language_data): Likewise.
3874 (cplus_language::lookup_transparent_type): New member function.
3875 (asm_language_data): Delete la_lookup_transparent_type
3876 initializer.
3877 (minimal_language_data): Likewise.
3878 * d-lang.c (d_language_data): Likewise.
3879 * f-lang.c (f_language_data): Likewise.
3880 * go-lang.c (go_language_data): Likewise.
3881 * language.c (unknown_language_data): Likewise.
3882 (auto_language_data): Likewise.
3883 * language.h (struct language_data): Delete
3884 la_lookup_transparent_type field.
3885 (language_defn::lookup_transparent_type): New member function.
3886 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3887 initializer.
3888 * objc-lang.c (objc_language_data): Likewise.
3889 * opencl-lang.c (opencl_language_data): Likewise.
3890 * p-lang.c (pascal_language_data): Likewise.
3891 * rust-lang.c (rust_language_data): Likewise.
3892 * symtab.c (symbol_matches_domain): Update call.
3893
3894 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3895
3896 * ada-lang.c (ada_language_arch_info): Delete function, move
3897 implementation to...
3898 (ada_language::language_arch_info): ...here, a new member
3899 function.
3900 (ada_language_data): Delete la_language_arch_info.
3901 * c-lang.c (c_language_data): Likewise.
3902 (c_language::language_arch_info): New member function.
3903 (cplus_language_arch_info): Delete function, move
3904 implementation to...
3905 (cplus_language::language_arch_info): ...here, a new member
3906 function.
3907 (cplus_language_data): Delete la_language_arch_info.
3908 (asm_language_data): Likewise.
3909 (asm_language::language_arch_info): New member function.
3910 (minimal_language_data): Delete la_language_arch_info.
3911 (minimal_language::language_arch_info): New member function.
3912 * d-lang.c (d_language_arch_info): Delete function, move
3913 implementation to...
3914 (d_language::language_arch_info): ...here, a new member
3915 function.
3916 (d_language_data): Delete la_language_arch_info.
3917 * f-lang.c (f_language_arch_info): Delete function, move
3918 implementation to...
3919 (f_language::language_arch_info): ...here, a new member
3920 function.
3921 (f_language_data): Delete la_language_arch_info.
3922 * go-lang.c (go_language_arch_info): Delete function, move
3923 implementation to...
3924 (go_language::language_arch_info): ...here, a new member
3925 function.
3926 (go_language_data): Delete la_language_arch_info.
3927 * language.c (unknown_language_data): Likewise.
3928 (unknown_language::language_arch_info): New member function.
3929 (auto_language_data): Delete la_language_arch_info.
3930 (auto_language::language_arch_info): New member function.
3931 (language_gdbarch_post_init): Update call to
3932 la_language_arch_info.
3933 * language.h (language_data): Delete la_language_arch_info
3934 function pointer.
3935 (language_defn::language_arch_info): New function.
3936 * m2-lang.c (m2_language_arch_info): Delete function, move
3937 implementation to...
3938 (m2_language::language_arch_info): ...here, a new member
3939 function.
3940 (m2_language_data): Delete la_language_arch_info.
3941 * objc-lang.c (objc_language_arch_info): Delete function, move
3942 implementation to...
3943 (objc_language::language_arch_info): ...here, a new member
3944 function.
3945 (objc_language_data): Delete la_language_arch_info.
3946 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3947 implementation to...
3948 (opencl_language::language_arch_info): ...here, a new member
3949 function.
3950 (opencl_language_data): Delete la_language_arch_info.
3951 * p-lang.c (pascal_language_arch_info): Delete function, move
3952 implementation to...
3953 (pascal_language::language_arch_info): ...here, a new member
3954 function.
3955 (pascal_language_data): Delete la_language_arch_info.
3956 * rust-lang.c (rust_language_arch_info): Delete function, move
3957 implementation to...
3958 (rust_language::language_arch_info): ...here, a new member
3959 function.
3960 (rust_language_data): Delete la_language_arch_info.
3961
3962 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3963
3964 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3965 initializer.
3966 * c-lang.c (c_language_data): Likewise.
3967 (cplus_language_data): Likewise.
3968 (cplus_language::pass_by_reference_info): New method.
3969 (asm_language_data): Delete la_pass_by_reference initializer.
3970 (minimal_language_data): Likewise.
3971 * cp-abi.c (cp_pass_by_reference): Remove use of
3972 default_pass_by_reference.
3973 * d-lang.c (d_language_data): Likewise.
3974 * f-lang.c (f_language_data): Likewise.
3975 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3976 default_pass_by_reference.
3977 * go-lang.c (go_language_data): Likewise.
3978 * language.c (language_pass_by_reference): Update.
3979 (default_pass_by_reference): Delete.
3980 (unknown_language_data): Delete la_pass_by_reference
3981 initializer.
3982 (auto_language_data): Likewise.
3983 * language.h (struct language_data): Delete la_pass_by_reference
3984 field.
3985 (language_defn::pass_by_reference_info): New member function.
3986 (default_pass_by_reference): Delete declaration.
3987 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3988 initializer.
3989 * objc-lang.c (objc_language_data): Likewise.
3990 * opencl-lang.c (opencl_language_data): Likewise.
3991 * p-lang.c (pascal_language_data): Likewise.
3992 * rust-lang.c (rust_language_data): Likewise.
3993
3994 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * ada-lang.c (ada_read_var_value): Delete function, move
3997 implementation to...
3998 (ada_language::read_var_value): ...here.
3999 (ada_language_data): Delete la_read_var_value initializer.
4000 * c-lang.c (c_language_data): Likewise.
4001 (cplus_language_data): Likewise.
4002 (minimal_language_data): Likewise.
4003 * d-lang.c (d_language_data): Likewise.
4004 * f-lang.c (f_language_data): Likewise.
4005 * findvar.c (default_read_var_value): Rename to...
4006 (language_defn::read_var_value): ...this.
4007 * findvar.c (read_var_value): Update header comment, and change to
4008 call member function instead of function pointer.
4009 * go-lang.c (go_language_data): Likewise.
4010 * language.c (unknown_language_data): Delete la_read_var_value
4011 initializer.
4012 (auto_language_data): Likewise.
4013 * language.h (struct language_data): Delete la_read_var_value
4014 field.
4015 (language_defn::read_var_value): New member function.
4016 (default_read_var_value): Delete declaration.
4017 * m2-lang.c (m2_language_data): Delete la_read_var_value
4018 initializer.
4019 * objc-lang.c (objc_language_data): Likewise.
4020 * opencl-lang.c (opencl_language_data): Likewise.
4021 * p-lang.c (pascal_language_data): Likewise.
4022 * rust-lang.c (rust_language_data): Likewise.
4023 * value.h (default_read_var_value): Delete declaration.
4024
4025 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4026
4027 * ada-lang.c (ada_print_array_index): Delete function, move
4028 implementation to...
4029 (ada_language::print_array_index): ...here.
4030 (ada_language_data): Delete la_print_array_index initializer.
4031 * c-lang.c (c_language_data): Likewise.
4032 (cplus_language_data): Likewise.
4033 (minimal_language_data): Likewise.
4034 * d-lang.c (d_language_data): Likewise.
4035 * f-lang.c (f_language_data): Likewise.
4036 * go-lang.c (go_language_data): Likewise.
4037 * language.c (default_print_array_index): Delete function, move
4038 implementation to...
4039 (language_defn::print_array_index): ...here.
4040 (unknown_language_data): Delete la_print_array_index initializer.
4041 (auto_language_data): Likewise.
4042 * language.h (struct language_data): Delete la_print_array_index
4043 field.
4044 (language_defn::print_array_index): New member function.
4045 (LA_PRINT_ARRAY_INDEX): Update.
4046 (default_print_array_index): Delete declaration.
4047 * m2-lang.c (m2_language_data): Delete la_print_array_index
4048 initializer.
4049 * objc-lang.c (objc_language_data): Likewise.
4050 * opencl-lang.c (opencl_language_data): Likewise.
4051 * p-lang.c (pascal_language_data): Likewise.
4052 * rust-lang.c (rust_language_data): Likewise.
4053
4054 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4055
4056 * gdb/ada-lang.c (ada_language_defn): Convert to...
4057 (ada_language_data): ...this.
4058 (class ada_language): New class.
4059 (ada_language_defn): New static global.
4060 * gdb/c-lang.c (c_language_defn): Convert to...
4061 (c_language_data): ...this.
4062 (class c_language): New class.
4063 (c_language_defn): New static global.
4064 (cplus_language_defn): Convert to...
4065 (cplus_language_data): ...this.
4066 (class cplus_language): New class.
4067 (cplus_language_defn): New static global.
4068 (asm_language_defn): Convert to...
4069 (asm_language_data): ...this.
4070 (class asm_language): New class.
4071 (asm_language_defn): New static global.
4072 (minimal_language_defn): Convert to...
4073 (minimal_language_data): ...this.
4074 (class minimal_language): New class.
4075 (minimal_language_defn): New static global.
4076 * gdb/d-lang.c (d_language_defn): Convert to...
4077 (d_language_data): ...this.
4078 (class d_language): New class.
4079 (d_language_defn): New static global.
4080 * gdb/f-lang.c (f_language_defn): Convert to...
4081 (f_language_data): ...this.
4082 (class f_language): New class.
4083 (f_language_defn): New static global.
4084 * gdb/go-lang.c (go_language_defn): Convert to...
4085 (go_language_data): ...this.
4086 (class go_language): New class.
4087 (go_language_defn): New static global.
4088 * gdb/language.c (unknown_language_defn): Remove declaration.
4089 (current_language): Initialize to nullptr, real initialization is
4090 moved to _initialize_language.
4091 (languages): Delete global.
4092 (language_defn::languages): Define.
4093 (set_language_command): Use language_defn::languages.
4094 (set_language): Likewise.
4095 (range_error): Likewise.
4096 (language_enum): Likewise.
4097 (language_def): Likewise.
4098 (add_set_language_command): Use language_def::languages for the
4099 language list, and language_def to lookup language pointers.
4100 (skip_language_trampoline): Use language_defn::languages.
4101 (unknown_language_defn): Convert to...
4102 (unknown_language_data): ...this.
4103 (class unknown_language): New class.
4104 (unknown_language_defn): New static global.
4105 (auto_language_defn): Convert to...
4106 (auto_language_data): ...this.
4107 (class auto_language): New class.
4108 (auto_language_defn): New static global.
4109 (language_gdbarch_post_init): Use language_defn::languages.
4110 (_initialize_language): Initialize current_language.
4111 * gdb/language.h (struct language_defn): Rename to...
4112 (struct language_data): ...this.
4113 (struct language_defn): New.
4114 (auto_language_defn): Delete.
4115 (unknown_language_defn): Delete.
4116 (minimal_language_defn): Delete.
4117 (ada_language_defn): Delete.
4118 (asm_language_defn): Delete.
4119 (c_language_defn): Delete.
4120 (cplus_language_defn): Delete.
4121 (d_language_defn): Delete.
4122 (f_language_defn): Delete.
4123 (go_language_defn): Delete.
4124 (m2_language_defn): Delete.
4125 (objc_language_defn): Delete.
4126 (opencl_language_defn): Delete.
4127 (pascal_language_defn): Delete.
4128 (rust_language_defn): Delete.
4129 * gdb/m2-lang.c (m2_language_defn): Convert to...
4130 (m2_language_data): ...this.
4131 (class m2_language): New class.
4132 (m2_language_defn): New static global.
4133 * gdb/objc-lang.c (objc_language_defn): Convert to...
4134 (objc_language_data): ...this.
4135 (class objc_language): New class.
4136 (objc_language_defn): New static global.
4137 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4138 (opencl_language_data): ...this.
4139 (class opencl_language): New class.
4140 (opencl_language_defn): New static global.
4141 * gdb/p-lang.c (pascal_language_defn): Convert to...
4142 (pascal_language_data): ...this.
4143 (class pascal_language): New class.
4144 (pascal_language_defn): New static global.
4145 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4146 language pointer, update comment format.
4147 * gdb/rust-lang.c (rust_language_defn): Convert to...
4148 (rust_language_data): ...this.
4149 (class rust_language): New class.
4150 (rust_language_defn): New static global.
4151
4152 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4153
4154 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4155 member variable.
4156 <m_stmt_at_address>: New member variable.
4157 (lnp_state_machine::record_line): Don't record some lines, update
4158 tracking of is_stmt at the same address.
4159 (lnp_state_machine::lnp_state_machine): Initialise new member
4160 variables.
4161
4162 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4163
4164 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4165 "-include gnu-nat-mig.h".
4166 * gnu-nat-mig.h: New file.
4167 * gnu-nat.c: Include "gnu-nat-mig.h".
4168 (exc_server, msg_reply_server, notify_server,
4169 process_reply_server): Remove declarations.
4170
4171 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4172
4173 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4174 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4175 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4176 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4177 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4178 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4179 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4180 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4181 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4182 to gnu_nat_target class.
4183 * gnu-nat.c: Likewise.
4184 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4185 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4186 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4187 object.
4188 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4189 instead of `gnu_target'.
4190
4191 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4192
4193 * i386-gnu-tdep.c: Include "gdbcore.h"
4194 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4195 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4196 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4197 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4198 i386_gnu_sigcontext_addr): New functions
4199 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4200 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4201 tdep.
4202
4203 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4204
4205 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4206 before fork_inferior call. Avoid calling it if target_is_pushed returns
4207 true.
4208
4209 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4210
4211 * gnu-nat.h (gnu_target): New variable declaration.
4212 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4213 gnu_target.
4214 * gnu-nat.c (gnu_target): New variable.
4215 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4216 add_thread_silent, and add_thread calls.
4217 (gnu_nat_target::create_inferior): Pass gnu_target to
4218 add_thread_silent, thread_change_ptid call.
4219 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4220 call.
4221
4222 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4223
4224 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4225 (gnu_nat_target::find_memory_regions): Remove unused
4226 `old_address' variable.
4227
4228 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4229
4230 * gnu-nat.c: Include "gdbarch.h".
4231
4232 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4233
4234 * reply_mig_hack.awk (Error return): Cast function through
4235 void *, to bypass compiler function call check.
4236
4237 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4238
4239 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4240 $(srcdir)/reply_mig_hack.awk.
4241
4242 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4243
4244 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4245
4246 2020-05-30 Jonny Grant <jg@jguk.org>
4247
4248 * configure.ac (ACX_BUGURL): change bug URL to https.
4249
4250 2020-05-30 Pedro Alves <palves@redhat.com>
4251
4252 * cp-support.c (replace_typedefs_template): New.
4253 (replace_typedefs_qualified_name): Handle
4254 DEMANGLE_COMPONENT_TEMPLATE.
4255
4256 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4259 dwarf2/index-cache.h, dwarf2/index-write.c,
4260 dwarf2/index-write.h, dwarf2/line-header.c,
4261 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4262 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4263 variables and fields from `dwarf2_per_objfile` to just
4264 `per_objfile` throughout.
4265
4266 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4267
4268 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4269 <push_dwarf_reg_entry_value>: Add comment.
4270
4271 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4272 Keith Seitz <keiths@redhat.com>
4273
4274 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4275 instead of PyEval_ReleaseLock.
4276 (class gdbpy_gil): Move to earlier in file.
4277 (finalize_python): Set gdb_python_initialized.
4278 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4279 when not initialized.
4280
4281 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4284 <push_dwarf_reg_entry_value>: Remove assert. Override
4285 per_objfile with caller_per_objfile.
4286
4287 2020-05-28 Tom de Vries <tdevries@suse.de>
4288
4289 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4290 PR gold/15646 workaround to symbol kind "type".
4291
4292 2020-05-27 Tom Tromey <tromey@adacore.com>
4293
4294 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4295
4296 2020-05-27 Tom Tromey <tromey@adacore.com>
4297
4298 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4299 Use htab_find_with_hash.
4300 <add_abbrev>: Remove "abbrev_number" parameter.
4301 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4302 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4303 (hash_abbrev): Add comment.
4304 (abbrev_table::lookup_abbrev): Move to header file.
4305 (abbrev_table::read): Update.
4306
4307 2020-05-27 Tom Tromey <tromey@adacore.com>
4308
4309 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4310 method.
4311 <canonical_name>: New member.
4312 <raw_name>: Rename from "name".
4313 (partial_die_info): Initialize canonical_name.
4314 (scan_partial_symbols): Check raw_name.
4315 (partial_die_parent_scope, partial_die_full_name)
4316 (add_partial_symbol, add_partial_subprogram)
4317 (add_partial_enumeration, load_partial_dies): Use "name" method.
4318 (partial_die_info::name): New method.
4319 (partial_die_info::read, guess_partial_die_structure_name)
4320 (partial_die_info::fixup): Update.
4321
4322 2020-05-27 Tom Tromey <tromey@adacore.com>
4323
4324 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4325 <get_ref_die_offset>: Inline.
4326 <get_ref_die_offset_complaint>: New method.
4327 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4328 (attribute::get_ref_die_offset_complaint): Rename from
4329 get_ref_die_offset. Just issue complaint.
4330
4331 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4332
4333 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4334
4335 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4336
4337 * exec.c (exec_file_attach): Use errno value of first openp failure.
4338
4339 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4340
4341 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4342 Don't close thread handle.
4343
4344 2020-05-27 Tom Tromey <tom@tromey.com>
4345 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4348 shared_ptr.
4349 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4350 member.
4351 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4352 dwarf2_per_bfd_objfile_data_key>: New globals.
4353 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4354 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4355 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4356 shared.
4357 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4358 short-circuit when sharing.
4359 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4360 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4361
4362 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4365 to...
4366 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4367 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4368
4369 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4370
4371 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4372 build_name_components, find_name_components_bounds>:
4373 Add per_objfile parameter.
4374 (struct mapped_index) <symbol_name_at>: Likewise.
4375 (struct mapped_debug_names): Remove constructor.
4376 <dwarf2_per_objfile>: Remove field.
4377 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4378 (mapped_index_base::find_name_components_bounds,
4379 mapped_index_base::build_name_components,
4380 dw2_expand_symtabs_matching_symbol): Likewise.
4381 (class mock_mapped_index) <symbol_name_at>: Likewise.
4382 (check_match): Likewise.
4383 (check_find_bounds_finds): Likewise.
4384 (test_mapped_index_find_name_component_bounds): Update.
4385 (CHECK_MATCH): Update.
4386 (dw2_expand_symtabs_matching): Update.
4387 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4388 per_objfile parameter.
4389 <find_vec_in_debug_names>: Likewise.
4390 <m_per_objfile>: New field.
4391 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4392 parameter.
4393 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4394 (dw2_debug_names_iterator::next): Update.
4395 (dw2_debug_names_lookup_symbol): Update.
4396 (dw2_debug_names_expand_symtabs_for_function): Update.
4397 (dw2_debug_names_map_matching_symbols): Update.
4398 (dw2_debug_names_expand_symtabs_matching): Update.
4399 (dwarf2_read_debug_names): Update.
4400
4401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4404 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4405 move to dwarf2_per_objfile.
4406 <read_in_chain>: Remove.
4407 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4408 remove_all_cus, age_comp_units>: New methods.
4409 <m_dwarf2_cus>: New member.
4410 (struct dwarf2_per_cu_data) <cu>: Remove.
4411 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4412 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4413 moved to methods of dwarf2_per_objfile.
4414 (dwarf2_clear_marks): Remove.
4415 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4416 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4417 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4418 (dwarf2_per_objfile::remove_all_cus): New.
4419 (class free_cached_comp_units) <~free_cached_comp_units>:
4420 Update.
4421 (load_cu): Update.
4422 (dw2_do_instantiate_symtab): Adjust.
4423 (fill_in_sig_entry_from_dwo_entry): Adjust.
4424 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4425 (cutu_reader::cutu_reader): Likewise.
4426 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4427 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4428 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4429 and dwarf2_per_objfile::age_comp_units.
4430 (load_partial_comp_unit): Update.
4431 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4432 (process_queue): Likewise.
4433 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4434 backlink.
4435 (dwarf2_read_addr_index): Likewise.
4436 (follow_die_offset): Likewise.
4437 (dwarf2_fetch_die_loc_sect_off): Likewise.
4438 (dwarf2_fetch_constant_bytes): Likewise.
4439 (dwarf2_fetch_die_type_sect_off): Likewise.
4440 (follow_die_sig_1): Likewise.
4441 (load_full_type_unit): Likewise.
4442 (read_signatured_type): Likewise.
4443 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4444 (dwarf2_cu::~dwarf2_cu): Remove.
4445 (dwarf2_per_objfile::get_cu): New.
4446 (dwarf2_per_objfile::set_cu): New.
4447 (age_cached_comp_units): Rename to...
4448 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4449 to std::unordered_map.
4450 (free_one_cached_comp_unit): Rename to...
4451 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4452 to std::unordered_map.
4453 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4454 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4455 a dwarf2_per_objfile in data.
4456 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4457 (dwarf2_clear_marks): Remove.
4458
4459 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4462 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4463 (init_tu_and_read_dwo_dies): Likewise.
4464 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4465 (cutu_reader::cutu_reader): Likewise.
4466 (load_partial_comp_unit): Likewise.
4467 (process_psymtab_comp_unit): Update.
4468 (build_type_psymtabs_1): Update.
4469 (process_skeletonless_type_unit): Update.
4470 (load_full_comp_unit): Update.
4471 (find_partial_die): Update.
4472 (dwarf2_read_addr_index): Update.
4473 (read_signatured_type): Update.
4474
4475 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4476
4477 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4478 m_header_read_in>: New fields.
4479 <get_header>: New method.
4480 * dwarf2/read.c (per_cu_header_read_in): Remove.
4481 (dwarf2_per_cu_data::get_header): New.
4482 (dwarf2_per_cu_data::addr_size): Update.
4483 (dwarf2_per_cu_data::offset_size): Update.
4484 (dwarf2_per_cu_data::ref_addr_size): Update.
4485
4486 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4487
4488 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4489 (dw2_do_instantiate_symtab): Update.
4490 (queue_and_load_all_dwo_tus): Change parameter from
4491 dwarf2_per_cu_data to dwarf2_cu.
4492 (dwarf2_fetch_die_loc_sect_off): Update.
4493 (dwarf2_fetch_constant_bytes): Update.
4494 (dwarf2_fetch_die_type_sect_off): Update.
4495
4496 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4497
4498 * dwarf2/read.c (process_full_comp_unit,
4499 process_full_type_unit): Remove per_cu, per_objfile paramters.
4500 Add dwarf2_cu parameter.
4501 (process_queue): Update.
4502
4503 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4504
4505 * dwarf2/read.c (create_cu_from_index_list): Replace
4506 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4507 (create_cus_from_index_list): Likewise.
4508 (create_cus_from_index): Likewise.
4509 (create_signatured_type_table_from_index): Likewise.
4510 (create_cus_from_debug_names_list): Likewise.
4511 (create_cus_from_debug_names): Likewise.
4512 (dwarf2_read_gdb_index): Update.
4513 (dwarf2_read_debug_names): Update.
4514
4515 2020-05-27 Tom Tromey <tom@tromey.com>
4516 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * dwarf2/read.h (struct dwarf2_per_objfile)
4519 <get_type_for_signatured_type, set_type_for_signatured_type>:
4520 New methods.
4521 <m_type_map>: New member.
4522 (struct signatured_type) <type>: Remove.
4523 * dwarf2/read.c
4524 (dwarf2_per_objfile::get_type_for_signatured_type,
4525 dwarf2_per_objfile::set_type_for_signatured_type): New.
4526 (get_signatured_type): Use new methods.
4527
4528 2020-05-27 Tom Tromey <tom@tromey.com>
4529 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4532 (struct dwarf2_per_objfile) <type_units>: New member.
4533 <get_type_unit_group_unshareable>: New method.
4534 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4535 num_symtabs, symtabs>: Remove; move to
4536 type_unit_group_unshareable.
4537 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4538 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4539 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4540
4541 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * dwarf2/read.h (struct dwarf2_per_cu_data):
4544 <dwarf2_per_objfile>: Remove.
4545 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4546 dwarf2_per_objfile.
4547 (create_signatured_type_table_from_index): Likewise.
4548 (create_signatured_type_table_from_debug_names): Likewise.
4549 (create_debug_type_hash_table): Likewise.
4550 (fill_in_sig_entry_from_dwo_entry): Likewise.
4551 (create_type_unit_group): Likewise.
4552 (read_comp_units_from_section): Likewise.
4553 (create_cus_hash_table): Likewise.
4554
4555 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4558 dwarf2_per_cu_data::dwarf2_per_objfile.
4559 (compute_compunit_symtab_includes): Likewise.
4560 (dwarf2_cu::start_symtab): Likewise.
4561
4562 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4563
4564 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4565 parameter.
4566 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4567 (read_namespace_alias): Update.
4568 (lookup_die_type): Update.
4569 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4570 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4571 Update.
4572 (disassemble_dwarf_expression): Update.
4573
4574 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4575
4576 * dwarf2/read.h (struct dwarf2_queue_item): Add
4577 dwarf2_per_objfile parameter, assign new parameter.
4578 <per_objfile>: New field.
4579 * dwarf2/read.c (free_one_cached_comp_unit): Add
4580 dwarf2_per_objfile parameter.
4581 (queue_comp_unit): Likewise.
4582 (dw2_do_instantiate_symtab): Update.
4583 (process_psymtab_comp_unit): Update.
4584 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4585 (process_imported_unit_die): Update.
4586 (queue_and_load_dwo_tu): Update.
4587 (follow_die_offset): Update.
4588 (follow_die_sig_1): Update.
4589
4590 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4591
4592 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4593 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4594 (read_call_site_scope): Assign per_objfile.
4595 (dwarf2_per_cu_data::objfile): Remove.
4596 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4597 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4598 dwarf2_per_objfile parameter.
4599 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4600 dwarf2_per_objfile parameter.
4601 (dwarf_expr_reg_to_entry_parameter): Add output
4602 dwarf2_per_objfile parameter.
4603 (locexpr_get_frame_base): Update.
4604 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4605 <push_dwarf_reg_entry_value>: Update.
4606 <call_site_to_target_addr>: Update.
4607 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4608 parameter.
4609 (value_of_dwarf_reg_entry): Update.
4610 (rw_pieced_value): Update.
4611 (indirect_synthetic_pointer): Update.
4612 (dwarf2_evaluate_property): Update.
4613 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4614 parameter.
4615 (locexpr_read_variable): Update.
4616 (locexpr_get_symbol_read_needs): Update.
4617 (loclist_read_variable): Update.
4618
4619 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4622 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4623 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4624 parameter.
4625 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4626 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4627 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4628 parameter.
4629 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4630 sect_variable_value): Add dwarf2_per_objfile parameter.
4631 (class dwarf_evaluate_loc_desc) <dwarf_call,
4632 dwarf_variable_value>: Update.
4633 (fetch_const_value_from_synthetic_pointer): Add
4634 dwarf2_per_objfile parameter.
4635 (fetch_const_value_from_synthetic_pointer): Update.
4636 (coerced_pieced_ref): Update.
4637 (class symbol_needs_eval_context) <dwarf_call,
4638 dwarf_variable_value>: Update.
4639 (dwarf2_compile_expr_to_ax): Update.
4640
4641 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4644 parameter.
4645 (dwarf2_evaluate_loc_desc_full): Update.
4646
4647 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4648
4649 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4650 parameter.
4651 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4652 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4653 dwarf2_per_objfile parameter.
4654 (decode_debug_loc_dwo_addresses): Likewise.
4655 (dwarf2_find_location_expression): Update.
4656 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4657 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4658 parameter.
4659 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4660 parameter.
4661 (locexpr_describe_location_1): Likewise.
4662 (locexpr_describe_location): Update.
4663
4664 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4665
4666 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4667 Remove.
4668 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4669 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4670 (dwarf2_compile_property_to_c): Update.
4671 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4672 use text offset from objfile.
4673 (locexpr_tracepoint_var_ref): Update.
4674 (locexpr_generate_c_location): Update.
4675 (loclist_describe_location): Update.
4676 (loclist_tracepoint_var_ref): Update.
4677 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4678 dwarf2_per_objfile parameter.
4679 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4680 use text offset from objfile.
4681 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4682
4683 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4684
4685 * dwarf2/expr.h (struct dwarf_expr_context)
4686 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4687 <offset>: Remove.
4688 <per_objfile>: New member.
4689 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4690 dwarf2_per_objfile parameter. Don't set offset, set
4691 per_objfile.
4692 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4693 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4694 a dwarf2_per_objfile object instead of an offset.
4695 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4696 constructor.
4697 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4698 to dwarf2_expr_executor constructor. Don't set offset.
4699 (dwarf2_fetch_cfa_info): Update.
4700 (struct dwarf2_frame_cache) <text_offset>: Remove.
4701 <per_objfile>: New field.
4702 (dwarf2_frame_cache): Update.
4703 (dwarf2_frame_prev_register): Update.
4704 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4705 <dwarf_evaluate_loc_desc>: Add constructor.
4706 (dwarf2_evaluate_loc_desc_full): Update.
4707 (dwarf2_locexpr_baton_eval): Update.
4708 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4709 Add constructor.
4710 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4711
4712 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4713
4714 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4715 addr_sized_int_type>: Move to dwarf2_cu.
4716 <int_type>: Move to dwarf2_per_objfile.
4717 (struct dwarf2_per_objfile) <int_type>: Move here.
4718 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4719 addr_sized_int_type>: Move here.
4720 (read_func_scope): Update.
4721 (read_array_type): Update.
4722 (read_tag_string_type): Update.
4723 (attr_to_dynamic_prop): Update.
4724 (dwarf2_per_cu_data::int_type): Rename to...
4725 (dwarf2_per_objfile::int_type): ... this.
4726 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4727 (dwarf2_cu::addr_sized_int_type): ... this.
4728 (read_subrange_type): Update.
4729 (dwarf2_per_cu_data::addr_type): Rename to...
4730 (dwarf2_cu::addr_type): ... this.
4731 (set_die_type): Update.
4732
4733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4734
4735 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4736 data through per_cu->cu.
4737
4738 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4739
4740 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4741 dwarf2_per_cu_data parameter fo dwarf2_cu.
4742 (lookup_dwo_type_unit): Likewise.
4743 (read_cutu_die_from_dwo): Likewise.
4744 (lookup_dwo_unit): Likewise.
4745 (open_and_init_dwo_file): Likewise.
4746 (lookup_dwo_cutu): Likewise.
4747 (lookup_dwo_comp_unit): Likewise.
4748 (lookup_dwo_type_unit): Likewise.
4749 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4750 (cutu_reader::cutu_reader): Update.
4751
4752 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4753
4754 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4755 parameter.
4756 (process_full_type_unit): Likewise.
4757 (process_queue): Update.
4758
4759 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4760
4761 * dwarf2/read.c (recursively_compute_inclusions): Add
4762 dwarf2_per_objfile parameter.
4763 (compute_compunit_symtab_includes): Likewise.
4764 (process_cu_includes): Update.
4765
4766 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4767
4768 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4769 parameter.
4770 (create_type_unit_group): Update.
4771 (process_psymtab_comp_unit_reader): Update.
4772 (build_type_psymtabs_reader): Update.
4773
4774 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4775
4776 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4777 object through m_this_cu->cu.
4778
4779 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4780
4781 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4782 the info parameter.
4783 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4784
4785 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4786
4787 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4788 per_objfile parameter.
4789 (load_full_type_unit): Add per_objfile parameter.
4790 (read_signatured_type): Likewise.
4791 (load_full_comp_unit): Likewise.
4792 (load_cu): Likewise.
4793 (dw2_do_instantiate_symtab): Likewise.
4794 (dw2_get_file_names): Likewise.
4795 (dw2_map_symtabs_matching_filename): Update.
4796 (dw_expand_symtabs_matching_file_matcher): Update.
4797 (dw2_map_symbol_filenames): Update.
4798 (process_psymtab_comp_unit): Add per_objfile parameter.
4799 (build_type_psymtabs_1): Update.
4800 (process_skeletonless_type_unit): Update.
4801 (dwarf2_build_psymtabs_hard): Update.
4802 (load_partial_comp_unit): Add per_objfile parameter.
4803 (scan_partial_symbols): Update.
4804 (load_full_comp_unit): Add per_objfile parameter.
4805 (process_imported_unit_die): Update.
4806 (create_cus_hash_table): Update.
4807 (find_partial_die): Update.
4808 (dwarf2_read_addr_index): Update.
4809 (follow_die_offset): Update.
4810 (dwarf2_fetch_die_loc_sect_off): Update.
4811 (dwarf2_fetch_constant_bytes): Update.
4812 (dwarf2_fetch_die_type_sect_off): Update.
4813 (follow_die_sig_1): Update.
4814 (load_full_type_unit): Add per_objfile parameter.
4815 (read_signatured_type): Likewise.
4816
4817 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4820 of objfile_name.
4821
4822 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4823
4824 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4825 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4826 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4827 field.
4828 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4829 (create_cus_from_index): Update.
4830 (dwarf2_read_gdb_index): Update.
4831 (create_cus_from_debug_names): Update.
4832 (dwarf2_read_debug_names): Update.
4833 (get_abbrev_section_for_cu): Update.
4834 (create_all_comp_units): Update.
4835 (read_attribute_value): Update.
4836 (get_debug_line_section): Update.
4837 * dwarf2/index-cache.c (index_cache::store): Update.
4838 * dwarf2/index-write.c (save_gdb_index_command): Update.
4839 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4840
4841 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4842
4843 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4844 member.
4845 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4846 dwarf2_per_cu_data::per_bfd.
4847 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4848 (create_type_unit_group): Likewise.
4849 (queue_comp_unit): Remove reference to
4850 per_cu->dwarf2_per_objfile.
4851 (maybe_queue_comp_unit): Likewise.
4852 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4853 (create_cus_hash_table): Assign new field.
4854
4855 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4856
4857 * dwarf2/read.c: Replace
4858 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4859 dwarf2_cu->per_objfile throughout.
4860
4861 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4862
4863 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4864 parameter, don't use per_cu->dwarf2_per_objfile.
4865 (dw2_instantiate_symtab): Likewise.
4866 (dw2_find_last_source_symtab): Update.
4867 (dw2_map_expand_apply): Update.
4868 (dw2_lookup_symbol): Update.
4869 (dw2_expand_symtabs_for_function): Update.
4870 (dw2_expand_all_symtabs): Update.
4871 (dw2_expand_symtabs_with_fullname): Update.
4872 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4873 don't use per_cu->dwarf2_per_objfile.
4874 (dw2_expand_marked_cus): Update.
4875 (dw2_find_pc_sect_compunit_symtab): Update.
4876 (dw2_debug_names_lookup_symbol): Update.
4877 (dw2_debug_names_expand_symtabs_for_function): Update.
4878 (dw2_debug_names_map_matching_symbols): Update.
4879 (dwarf2_psymtab::expand_psymtab): Update.
4880
4881 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4884 <per_objfile>: New member.
4885 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4886 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4887 call to dwarf2_cu.
4888 (cutu_reader::cutu_reader): Update.
4889 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4890
4891 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4892
4893 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4894 struct dwarf2_per_objfile.
4895 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4896 dwarf2_per_bfd.
4897 * dwarf2/read.c (set_die_type): Update.
4898 (get_die_type_at_offset): Update.
4899
4900 2020-05-27 Tom Tromey <tom@tromey.com>
4901 Simon Marchi <simon.marchi@efficios.com>
4902
4903 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4904 method.
4905 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4906 get_symtab, set_symtab>: New methods.
4907 <m_symtabs>: New field.
4908 (struct dwarf2_psymtab): Derive from partial_symtab.
4909 <readin_p, get_compunit_symtab>: Declare methods.
4910 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4911 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4912 New methods.
4913 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4914 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4915 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4916 (dw2_symtab_iter_next, dw2_print_stats)
4917 (dw2_expand_symtabs_with_fullname)
4918 (dw2_expand_symtabs_matching_one)
4919 (dw_expand_symtabs_matching_file_matcher)
4920 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4921 (dw2_debug_names_iterator::next)
4922 (dw2_debug_names_map_matching_symbols)
4923 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4924 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4925 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4926 New methods.
4927 (get_compunit_symtab, process_full_comp_unit)
4928 (process_full_type_unit): Update.
4929 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4930
4931 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4932
4933 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4934 then introduce a new dwarf2_per_objfile type.
4935 <read_line_string>: Move to the new dwarf2_per_objfile type.
4936 <objfile>: Likewise.
4937 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4938 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4939 dwarf2_per_objfile->per_bfd.
4940 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4941 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4942 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4943 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4944 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4945 (dwarf2_per_objfile::locate_sections): Rename to...
4946 (dwarf2_per_bfd::locate_sections): ... this.
4947 (dwarf2_per_objfile::get_cutu): Rename to...
4948 (dwarf2_per_bfd::get_cutu): ... this.
4949 (dwarf2_per_objfile::get_cu): Rename to...
4950 (dwarf2_per_bfd::get_cu): ... this.
4951 (dwarf2_per_objfile::get_tu): Rename to...
4952 (dwarf2_per_bfd::get_tu): ... this.
4953 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4954 (dwarf2_per_bfd::allocate_per_cu): ... this.
4955 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4956 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4957 (get_gdb_index_contents_ftype): Change parameter from
4958 dwarf2_per_objfile to dwarf2_per_bfd.
4959 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4960 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4961
4962 2020-05-27 Tom Tromey <tom@tromey.com>
4963 Simon Marchi <simon.marchi@efficios.com>
4964
4965 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4966 (allocate_piece_closure): Set "per_objfile" member.
4967 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4968 (locexpr_describe_location, loclist_describe_location): Use new
4969 member.
4970 * dwarf2/read.c (read_call_site_scope)
4971 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4972 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4973 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4974 handle_data_member_location): Set per_objfile member.
4975 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4976 member.
4977 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4978
4979 2020-05-27 Tom Tromey <tom@tromey.com>
4980
4981 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4982 allocate_signatured_type>: Declare new methods.
4983 <m_num_psymtabs>: New member.
4984 (struct dwarf2_per_cu_data) <index>: New member.
4985 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4986 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4987 (create_cu_from_index_list): Use allocate_per_cu.
4988 (create_signatured_type_table_from_index)
4989 (create_signatured_type_table_from_debug_names)
4990 (create_debug_type_hash_table, add_type_unit)
4991 (read_comp_units_from_section): Use allocate_signatured_type.
4992
4993 2020-05-27 Tom Tromey <tom@tromey.com>
4994
4995 * psymtab.c (partial_map_expand_apply)
4996 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4997 (psym_lookup_global_symbol_language)
4998 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4999 (psym_print_stats, psym_expand_symtabs_for_function)
5000 (psym_map_symbol_filenames, psym_map_matching_symbols)
5001 (psym_expand_symtabs_matching)
5002 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5003 (maintenance_check_psymtabs): Update.
5004 * psympriv.h (struct partial_symtab) <readin_p,
5005 get_compunit_symtab>: Add objfile parameter.
5006 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5007 Likewise.
5008 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5009 get_compunit_symtab>: Likewise.
5010 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5011
5012 2020-05-27 Tom Tromey <tom@tromey.com>
5013
5014 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5015 member.
5016 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5017 (create_cu_from_index_list)
5018 (create_signatured_type_table_from_index)
5019 (create_signatured_type_table_from_debug_names)
5020 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5021 (dwarf2_create_include_psymtab)
5022 (create_debug_type_hash_table, add_type_unit)
5023 (create_type_unit_group, read_comp_units_from_section)
5024 (dwarf2_compute_name, create_cus_hash_table)
5025 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5026 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5027 obstack.
5028 (dw2_get_real_path): Likewise. Change argument to
5029 dwarf2_per_objfile.
5030
5031 2020-05-27 Luis Machado <luis.machado@linaro.org>
5032
5033 PR tdep/26000
5034 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5035 for ldrd (immediate).
5036
5037 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5038
5039 * command.h: Add comment giving the name of class_tui.
5040 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5041 create the fake command for the help for class_tui.
5042
5043 2020-05-26 Tom Tromey <tromey@adacore.com>
5044
5045 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5046 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5047 (val_atr): New function.
5048 (value_val_atr): Use it.
5049 * ada-valprint.c (print_optional_low_bound): Change low bound
5050 handling for enums.
5051 (val_print_packed_array_elements): Don't call discrete_position.
5052 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5053 discrete_position for enum types.
5054 * language.c (default_print_array_index): Change type.
5055 * language.h (struct language_defn) <la_print_array_index>: Add
5056 index_type parameter, change type of index_value.
5057 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5058 (default_print_array_index): Update.
5059 * valprint.c (maybe_print_array_index): Don't call
5060 value_from_longest. Update.
5061 (value_print_array_elements): Don't call discrete_position.
5062
5063 2020-05-26 Tom Tromey <tromey@adacore.com>
5064
5065 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5066 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5067
5068 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5069
5070 PR gdb/13519
5071 * avr-tdep.c (avr_integer_to_address): Return data or code
5072 address accordingly to the second 'type' argument of the
5073 function.
5074
5075 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5076
5077 * infcmd.c, inferior.h: (construct_inferior_arguments):
5078 Moved function from here to gdbsupport/common-inferior.{h,cc}
5079
5080 2020-05-23 Tom Tromey <tom@tromey.com>
5081
5082 Revert commit eca1f90c:
5083 * NEWS: Remove entry for completion styling.
5084 * completer.c (_rl_completion_prefix_display_length): Move
5085 declaration later.
5086 (gdb_fnprint): Revert.
5087 (gdb_display_match_list_1): Likewise.
5088 * cli/cli-style.c (completion_prefix_style)
5089 (completion_difference_style, completion_suffix_style): Remove.
5090 (_initialize_cli_style): Revert.
5091 * cli/cli-style.h (completion_prefix_style)
5092 (completion_difference_style, completion_suffix_style): Don't
5093 declare.
5094
5095 2020-05-24 Pedro Alves <palves@redhat.com>
5096
5097 * symtab.c (completion_list_add_name): Return boolean indication
5098 of whether the symbol matched.
5099 (completion_list_add_symbol): Don't try to remove C++ aliases if
5100 the symbol didn't match in the first place.
5101 * symtab.h (completion_list_add_name): Return bool.
5102
5103 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5104
5105 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5106 type::field.
5107
5108 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5109
5110 GDB 9.2 released.
5111
5112 2020-05-23 Tom Tromey <tom@tromey.com>
5113
5114 * NEWS: Add entry for completion styling.
5115 * completer.c (_rl_completion_prefix_display_length): Move
5116 declaration earlier.
5117 (gdb_fnprint): Use completion_style.
5118 (gdb_display_match_list_1): Likewise.
5119 * cli/cli-style.c (completion_prefix_style)
5120 (completion_difference_style, completion_suffix_style): New
5121 globals.
5122 (_initialize_cli_style): Register new globals.
5123 * cli/cli-style.h (completion_prefix_style)
5124 (completion_difference_style, completion_suffix_style): Declare.
5125
5126 2020-05-23 Pedro Alves <palves@redhat.com>
5127
5128 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5129 (parse_escape): Use ISDIGIT instead of isdigit.
5130 (puts_debug): Use gdb_isprint instead of isprint.
5131 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5132 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5133 ISSPACE instead of isspace.
5134 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5135 instead of isspace.
5136 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5137 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5138 instead of isxdigit and ISDIGIT instead of isdigit.
5139
5140 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5141
5142 * gdbtypes.h (struct type) <field>: New method.
5143 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5144 or type::field.
5145
5146 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5147
5148 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5149 (TYPE_FIELDS): Use type::fields. Change all call sites that
5150 modify the propery to use type::set_fields instead.
5151
5152 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5153
5154 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5155 type::num_fields instead.
5156
5157 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5158
5159 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5160 methods.
5161 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5162 that modify the number of fields to use type::set_num_fields
5163 instead.
5164
5165 2020-05-22 Tom Tromey <tromey@adacore.com>
5166
5167 * compile/compile-object-load.h (munmap_list_free): Don't
5168 declare.
5169
5170 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5171
5172 * annotate.c (annotate_source_line): Update return type, add call
5173 to update current symtab and line.
5174 * annotate.h (annotate_source_line): Update return type, and
5175 extend header comment.
5176 * source.c (info_line_command): Check annotation_level before
5177 calling annotate_source_line.
5178 * stack.c (print_frame_info): If calling annotate_source_line
5179 returns true, then don't print any other source line information.
5180
5181 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5182
5183 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5184
5185 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5186
5187 * coffread.c (patch_type): Remove NULL check before xfree.
5188 * corefile.c (set_gnutarget): Likewise.
5189 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5190 * exec.c (build_section_table): Likewise.
5191 * remote.c (remote_target::pass_signals): Likewise.
5192 * utils.c (n_spaces): Likewise.
5193 * cli/cli-script.c (document_command): Likewise.
5194 * i386-windows-tdep.c (core_process_module_section): Likewise.
5195 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5196
5197 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5198
5199 * symfile.c (reread_symbols): Clear objfile's section_offsets
5200 vector and section indices, re-compute them by calling
5201 sym_offsets.
5202
5203 2020-05-20 Tom Tromey <tromey@adacore.com>
5204
5205 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5206 (desc_one_bound, desc_index_type): Compute field name.
5207
5208 2020-05-20 Tom de Vries <tdevries@suse.de>
5209
5210 PR symtab/25833
5211 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5212
5213 2020-05-20 Alan Modra <amodra@gmail.com>
5214
5215 PR 25993
5216 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5217 bfd_set_filename.
5218 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5219 passed to bfd_set_filename.
5220 * symfile-mem.c (add_vsyscall_page): Likewise for string
5221 passed to symbol_file_add_from_memory.
5222 (symbol_file_add_from_memory): Make name param a const char* and
5223 don't strdup.
5224
5225 2020-05-20 Alan Modra <amodra@gmail.com>
5226
5227 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5228 rather than accessing bfd->filename directly.
5229 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5230 and use bfd_section_name.
5231 * dwarf2/frame.c (decode_frame_entry): Likewise.
5232 * exec.c (exec_set_section_address): Likewise.
5233 * solib-aix.c (solib_aix_bfd_open): Likewise.
5234 * stap-probe.c (get_stap_base_address): Likewise.
5235 * symfile.c (reread_symbols): Likewise.
5236
5237 2020-05-19 Tom Tromey <tromey@adacore.com>
5238
5239 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5240
5241 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5242
5243 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5244
5245 2020-05-19 Pedro Alves <palves@redhat.com>
5246
5247 * NEWS (set exec-file-mismatch): Adjust entry.
5248 * exec.c: Include "build-id.h".
5249 (validate_exec_file): Try to match build IDs instead of filenames.
5250 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5251 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5252 and pass down 'warn_if_slow'.
5253 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5254 gdb_bfd_open_closure to pass it down.
5255 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5256
5257 2020-05-19 Pedro Alves <palves@redhat.com>
5258
5259 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5260 * target.c (target_fileio_open_1): Rename to target_fileio_open
5261 and make extern. Use bool.
5262 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5263 (target_fileio_read_alloc_1): Adjust.
5264 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5265 (target_fileio_open_warn_if_slow): Delete declaration.
5266
5267 2020-05-19 Pedro Alves <palves@redhat.com>
5268
5269 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5270 Adjust all callers.
5271
5272 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5273
5274 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5275 whether disp is negative.
5276
5277 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5278
5279 * symfile.h (struct symfile_segment_data)
5280 <~symfile_segment_data>: Remove.
5281 <segment_info>: Change to std::vector.
5282 * symfile.c (default_symfile_segments): Update.
5283 * elfread.c (elf_symfile_segments): Update.
5284
5285 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5288 <segments>: New.
5289 <segment_bases, segment_sizes>: Remove.
5290 * symfile.c (default_symfile_segments): Update.
5291 * elfread.c (elf_symfile_segments): Update.
5292 * remote.c (remote_target::get_offsets): Update.
5293 * solib-target.c (solib_target_relocate_section_addresses):
5294 Update.
5295
5296 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * symfile.h (struct symfile_segment_data): Initialize fields.
5299 <~symfile_segment_data>: Add.
5300 (symfile_segment_data_up): New.
5301 (struct sym_fns) <sym_segments>: Return a
5302 symfile_segment_data_up.
5303 (default_symfile_segments): Return a symfile_segment_data_up.
5304 (free_symfile_segment_data): Remove.
5305 (get_symfile_segment_data): Return a symfile_segment_data_up.
5306 * symfile.c (default_symfile_segments): Likewise.
5307 (get_symfile_segment_data): Likewise.
5308 (free_symfile_segment_data): Remove.
5309 (symfile_find_segment_sections): Update.
5310 * elfread.c (elf_symfile_segments): Return a
5311 symfile_segment_data_up.
5312 * remote.c (remote_target::get_offsets): Update.
5313 * solib-target.c (solib_target_relocate_section_addresses):
5314 Update.
5315 * symfile-debug.c (debug_sym_segments): Return a
5316 symfile_segment_data_up.
5317
5318 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5319
5320 PR build/25981
5321 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5322 Hardcode register numbers.
5323
5324 PR build/25981
5325 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5326 procfs_find_LDT_entry): Remove.
5327 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5328 procfs_find_LDT_entry): Remove.
5329 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5330 Remove.
5331
5332 2020-05-17 Pedro Alves <palves@redhat.com>
5333 Andrew Burgess <andrew.burgess@embecosm.com>
5334 Keno Fischer <keno@juliacomputing.com>
5335
5336 PR gdb/25741
5337 * breakpoint.c (build_target_condition_list): Update comments.
5338 (build_target_command_list): Update comments and skip matching
5339 locations.
5340 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5341 a separate function. Simplify "set breakpoint auto-hw off"
5342 handling.
5343 (insert_breakpoints): Update comment.
5344 (tracepoint_locations_match): New parameter. For breakpoints,
5345 compare location types too, if the caller wants to.
5346 (handle_automatic_hardware_breakpoints): New functions.
5347 (bp_location_is_less_than): Also sort by location type and
5348 hardware breakpoint length.
5349 (update_global_location_list): Handle "set breakpoint auto-hw on"
5350 here.
5351 (update_breakpoint_locations): Ask breakpoint_locations_match to
5352 ignore location types.
5353
5354 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5355
5356 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5357 type::name instead.
5358
5359 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5360
5361 * gdbtypes.h (struct type) <name, set_name>: New methods.
5362 (TYPE_CODE): Use type::name. Change all call sites used to set
5363 the name to use type::set_name instead.
5364
5365 2020-05-16 Tom Tromey <tom@tromey.com>
5366
5367 * top.c (quit_force): Update.
5368 * infrun.c (handle_no_resumed): Update.
5369 * top.h (all_uis): New function.
5370 (ALL_UIS): Remove.
5371
5372 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5373
5374 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5375
5376 2020-05-16 Pedro Alves <palves@redhat.com>
5377
5378 * ia64-linux-nat.c
5379 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5380 Declare method.
5381 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5382
5383 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5384
5385 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5386 (sparc64_adi_info): Likewise.
5387
5388 2020-05-15 Tom Tromey <tom@tromey.com>
5389
5390 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5391 block_objfile.
5392 (lookup_objfile_from_block): Remove.
5393 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5394 (lookup_global_symbol): Use block_objfile.
5395 * symtab.h (lookup_objfile_from_block): Don't declare.
5396 * printcmd.c (clear_dangling_display_expressions): Use
5397 block_objfile.
5398 * parse.c (operator_check_standard): Use block_objfile.
5399
5400 2020-05-15 Tom Tromey <tom@tromey.com>
5401
5402 * language.c (language_alloc_type_symbol): Set
5403 SYMBOL_SECTION.
5404 * symtab.c (initialize_objfile_symbol): Remove.
5405 (allocate_symbol): Remove.
5406 (allocate_template_symbol): Remove.
5407 * dwarf2/read.c (fixup_go_packaging): Use "new".
5408 (new_symbol): Use "new".
5409 (read_variable): Don't call initialize_objfile_symbol. Use
5410 "new".
5411 (read_func_scope): Use "new".
5412 * xcoffread.c (process_xcoff_symbol): Don't call
5413 initialize_objfile_symbol.
5414 (SYMBOL_DUP): Remove.
5415 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5416 "new".
5417 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5418 (allocate_template_symbol): Don't declare.
5419 (struct symbol): Add copy constructor. Change defaults.
5420 * jit.c (finalize_symtab): Use "new".
5421 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5422 Use "new".
5423 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5424 (common_block_end): Use "new".
5425 * mdebugread.c (parse_symbol): Use "new".
5426 (new_symbol): Likewise.
5427
5428 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5429
5430 * NEWS: Mention changes to help and apropos.
5431
5432 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5433
5434 * command.h (enum command_class): Improve comments, document
5435 that class_alias is for user-defined aliases, give the class
5436 name for each class, remove unused class_xdb.
5437 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5438 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5439 by a precise class.
5440 * infcmd.c (_initialize_infcmd): Likewise.
5441 * reverse.c (_initialize_reverse): Likewise.
5442 * stack.c (_initialize_stack): Likewise.
5443 * symfile.c (_initialize_symfile): Likewise.
5444 * tracepoint.c (_initialize_tracepoint): Likewise.
5445
5446 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5447
5448 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5449 when their aliased command is traversed.
5450 (help_cmd): Add fput_command_names_styled call to
5451 output command name and aliases when command has an alias.
5452
5453 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5454
5455 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5456 * cli/cli-decode.c (help_cmd_list): Declare as static,
5457 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5458 a command together with the command.
5459 (fput_command_name_styled, fput_command_names_styled): New functions.
5460 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5461 fput_command_name_styled.
5462 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5463 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5464
5465 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5466
5467 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5468 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5469 * command.h (cmd_show_list): Likewise.
5470 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5471 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5472
5473 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5474
5475 * unittests/command-def-selftests.c (traverse_command_structure):
5476 Verify all commands of a list have the same prefix command and
5477 that only the top cmdlist commands have a null prefix.
5478
5479 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5480
5481 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5482 as prefix, not one of its aliases.
5483 (set_cmd_prefix): Remove.
5484 (do_add_cmd): Centralize the setting of the prefix of a command, when
5485 command is defined after its full chain of prefix commands.
5486 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5487 (add_setshow_cmd_full): Likewise.
5488 (update_prefix_field_of_prefixed_commands): New function.
5489 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5490 update_prefix_field_of_prefixed_commands.
5491 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5492 addresses of remote_set_cmdlist and remote_show_cmdlist given
5493 as argument, not the address of an argument.
5494 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5495 * gdb/remote.c (_initialize_remote): Likewise.
5496
5497 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5498
5499 * cli/cli-cmds.c (alias_command): Check for an existing alias
5500 using lookup_cmd_composition, as valid_command_p is too strict
5501 and forbids aliases that are the prefix of an existing alias
5502 or command.
5503 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5504 command is properly recognised as a valid command.
5505
5506 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5507
5508 * unittests/help-doc-selftests.c: Rename to
5509 unittests/command-def-selftests.c
5510 * unittests/command-def-selftests.c (help_doc_tests): Update some
5511 comments.
5512 (command_structure_tests, traverse_command_structure): New namespace
5513 and function.
5514 (command_structure_invariants_tests): New function.
5515 (_initialize_command_def_selftests) Renamed from
5516 _initialize_help_doc_selftests, register command_structure_invariants
5517 selftest.
5518
5519 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5520
5521 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5522 an alias of 'show'.
5523
5524 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5525
5526 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5527 ada_is_fixed_point_type. Update all callers.
5528 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5529 all callers.
5530 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5531 Update all callers.
5532 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5533 print_fixed_point_type. Update all callers.
5534 * ada-valprint.c (ada_value_print_num): Replace call to
5535 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5536
5537 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5538
5539 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5540 processors.
5541 (cpu_supports_bts): Add CV_AMD case.
5542
5543 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5544 Simon Marchi <simon.marchi@efficios.com>
5545
5546 * infrun.c (stop_all_threads): Collect multiple wait events at
5547 each pass.
5548
5549 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5550
5551 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5552 type::code instead.
5553
5554 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5555
5556 * gdbtypes.h (struct type) <code, set_code>: New methods.
5557 (TYPE_CODE): Use type::code. Change all call sites used to set
5558 the code to use type::set_code instead.
5559
5560 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5561 Tom de Vries <tdevries@suse.de>
5562 Pedro Alves <palves@redhat.com>
5563
5564 PR threads/25478
5565 * infrun.c (stop_all_threads): Do NOT ignore
5566 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5567 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5568 received.
5569 (handle_no_resumed): Remove code handling a live inferior with no
5570 threads.
5571 * remote.c (has_single_non_exited_thread): New.
5572 (remote_target::update_thread_list): Do not delete a thread if is
5573 the last thread of the process.
5574 * thread.c (thread_select): Call delete_exited_threads instead of
5575 prune_threads.
5576
5577 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5578
5579 * infrun.c (stop_all_threads): Enable/disable thread events of all
5580 targets. Move a debug message denoting the end of the function
5581 into the SCOPED_EXIT block.
5582
5583 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5584
5585 * process-stratum-target.h: Include <set>.
5586 (all_non_exited_process_targets, switch_to_target_no_thread): New
5587 function declarations.
5588 * process-stratum-target.c (all_non_exited_process_targets)
5589 (switch_to_target_no_thread): New function implementations.
5590
5591 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5592
5593 * infrun.c (handle_inferior_event): Extract out a piece of code
5594 into...
5595 (mark_non_executing_threads): ...this new function.
5596
5597 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5598
5599 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5600 use.
5601
5602 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5603
5604 * regcache.c (regcache_read_pc_protected): New function
5605 implementation that returns 0 if the PC cannot read via
5606 'regcache_read_pc'.
5607 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5608 instead of 'regcache_read_pc'.
5609 (keep_going_pass_signal): Ditto.
5610
5611 2020-05-13 Tom Tromey <tromey@adacore.com>
5612
5613 * ada-lang.c (align_value): Remove.
5614 (ada_template_to_fixed_record_type_1): Use align_up.
5615
5616 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5617
5618 * async-event.c: Update the copyright year.
5619 * async-event.h: Update the copyright year.
5620
5621 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * objfiles.h (is_addr_in_objfile,
5624 shared_objfile_contains_address_p): Return bool.
5625 * objfile.c (is_addr_in_objfile,
5626 shared_objfile_contains_address_p): Return bool.
5627
5628 2020-05-11 Tom Tromey <tromey@adacore.com>
5629
5630 * cli/cli-cmds.c (info_command): Restore.
5631 (_initialize_cli_cmds): Use add_prefix_command for "info".
5632 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5633
5634 2020-05-11 Tom Tromey <tromey@adacore.com>
5635
5636 * ada-lang.c (ada_value_primitive_field): Now public.
5637 * ada-lang.h (ada_value_primitive_field): Declare.
5638 * ada-valprint.c (print_field_values): Use
5639 ada_value_primitive_field for wrapper fields.
5640
5641 2020-05-11 Tom de Vries <tdevries@suse.de>
5642
5643 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5644 MODULE_DOMAIN.
5645
5646 2020-05-11 Tom de Vries <tdevries@suse.de>
5647
5648 PR symtab/25941
5649 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5650 with length 0, if not gdb-produced.
5651 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5652
5653 2020-05-09 Tom de Vries <tdevries@suse.de>
5654
5655 PR gdb/25955
5656 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5657 calculation.
5658
5659 2020-05-09 Tom Tromey <tom@tromey.com>
5660
5661 * top.c (server_command): Now bool.
5662 * top.h (server_command): Now bool.
5663
5664 2020-05-08 Tom Tromey <tromey@adacore.com>
5665
5666 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5667 already being processed.
5668
5669 2020-05-08 Tom Tromey <tom@tromey.com>
5670
5671 * printcmd.c (struct display) <next>: Remove.
5672 <display>: New constructor.
5673 <exp_string>: Now a std::string.
5674 <enabled_p>: Now a bool.
5675 (display_number): Move definition earlier.
5676 (displays): Rename from display_chain. Now a std::vector.
5677 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5678 (display_command): Update.
5679 (do_one_display, disable_display)
5680 (enable_disable_display_command, do_enable_disable_display):
5681 Update.
5682 (free_display): Remove.
5683 (clear_displays): Rewrite.
5684 (delete_display): Update.
5685 (map_display_numbers): Use function_view. Remove "data"
5686 parameter. Update.
5687 (do_delete_display): Remove.
5688 (undisplay_command): Update.
5689 (do_one_display, do_displays, disable_display)
5690 (info_display_command): Update.
5691 (do_enable_disable_display): Remove.
5692 (enable_disable_display_command)
5693 (clear_dangling_display_expressions): Update.
5694
5695 2020-05-08 Tom Tromey <tom@tromey.com>
5696
5697 * symtab.c (set_symbol_cache_size)
5698 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5699 (maintenance_print_symbol_cache_statistics): Update.
5700 * symmisc.c (print_symbol_bcache_statistics)
5701 (print_objfile_statistics, maintenance_print_objfiles)
5702 (maintenance_info_symtabs, maintenance_check_symtabs)
5703 (maintenance_expand_symtabs, maintenance_info_line_tables):
5704 Update.
5705 * symfile-debug.c (set_debug_symfile): Update.
5706 * source.c (forget_cached_source_info): Update.
5707 * python/python.c (gdbpy_progspaces): Update.
5708 * psymtab.c (maintenance_info_psymtabs): Update.
5709 * probe.c (parse_probes): Update.
5710 * linespec.c (iterate_over_all_matching_symtabs)
5711 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5712 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5713 * exec.c (exec_target::close): Update.
5714 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5715 * breakpoint.c (print_one_breakpoint_location)
5716 (create_longjmp_master_breakpoint)
5717 (create_std_terminate_master_breakpoint): Update.
5718 * progspace.c (program_spaces): Now a std::vector.
5719 (maybe_new_address_space): Update.
5720 (add_program_space): Remove.
5721 (program_space::program_space): Update.
5722 (remove_program_space): Update.
5723 (number_of_program_spaces): Remove.
5724 (print_program_space, update_address_spaces): Update.
5725 * progspace.h (program_spaces): Change type.
5726 (ALL_PSPACES): Remove.
5727 (number_of_program_spaces): Don't declare.
5728 (struct program_space) <next>: Remove.
5729
5730 2020-05-08 Tom Tromey <tom@tromey.com>
5731
5732 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5733 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5734 (enable_break): Update.
5735 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5736 (frv_fdpic_find_canonical_descriptor): Update.
5737 (frv_fetch_objfile_link_map): Update.
5738 * progspace.c (program_space::free_all_objfiles): Update.
5739 (program_space::solibs): New method.
5740 * progspace.h (struct program_space) <solibs>: New method.
5741 * solist.h (master_so_list): Don't declare.
5742 (ALL_SO_LIBS): Remove.
5743 * solib.h (so_list_head): Remove.
5744 (update_solib_list): Update comment.
5745 * solib.c (master_so_list): Remove.
5746 (solib_used, update_solib_list, solib_add)
5747 (info_sharedlibrary_command, clear_solib)
5748 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5749
5750 2020-05-08 Tom Tromey <tom@tromey.com>
5751
5752 * extension.c (extension_languages): Now a std::array.
5753 (ALL_EXTENSION_LANGUAGES): Remove.
5754 (get_ext_lang_defn, get_ext_lang_of_file)
5755 (eval_ext_lang_from_control_command): Update.
5756 (finish_ext_lang_initialization)
5757 (auto_load_ext_lang_scripts_for_objfile)
5758 (ext_lang_type_printers::ext_lang_type_printers)
5759 (apply_ext_lang_type_printers)
5760 (ext_lang_type_printers::~ext_lang_type_printers)
5761 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5762 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5763 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5764 (get_matching_xmethod_workers, ext_lang_colorize)
5765 (ext_lang_before_prompt): Update.
5766 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5767
5768 2020-05-08 Tom Tromey <tom@tromey.com>
5769
5770 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5771 overload.
5772 <swap_string, m_string>: Remove.
5773 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5774 Update.
5775 * stabsread.c (define_symbol, read_type): Update.
5776 * linespec.c (find_linespec_symbols): Update.
5777 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5778 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5779 * dbxread.c (read_dbx_symtab): Update.
5780 * cp-support.h (cp_canonicalize_string_full)
5781 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5782 Return unique_xmalloc_ptr.
5783 * cp-support.c (inspect_type): Update.
5784 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5785 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5786 Likewise.
5787 * c-typeprint.c (print_name_maybe_canonical): Update.
5788 * break-catch-throw.c (check_status_exception_catchpoint):
5789 Update.
5790
5791 2020-05-08 Tom de Vries <tdevries@suse.de>
5792
5793 * infrun.c (follow_fork): Copy current_line and current_symtab to
5794 child thread.
5795
5796 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5797
5798 * async-event.c (struct async_signal_handler, struct
5799 async_event_handler): Reformat, remove typedef.
5800
5801 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5802
5803 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5804 access thistype->main_type->dyn_prop_list directly.
5805
5806 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5807
5808 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5809 (remove_dyn_prop): Remove. Update all users to use
5810 type::remove_dyn_prop.
5811 * gdbtypes.c (remove_dyn_prop): Rename to...
5812 (type::remove_dyn_prop): ... this.
5813
5814 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5815
5816 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5817 (add_dyn_prop): Remove. Update all users to use
5818 type::add_dyn_prop.
5819 * gdbtypes.c (add_dyn_prop): Rename to...
5820 (type::add_dyn_prop): ... this.
5821
5822 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5825 (get_dyn_prop): Remove. Update all users to use
5826 type::dyn_prop.
5827 * gdbtypes.c (get_dyn_prop): Rename to...
5828 (type::dyn_prop): ... this.
5829
5830 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5831
5832 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5833
5834 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5835
5836 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5837 instruction, skip it if it's there.
5838
5839 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5840
5841 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5842
5843 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5844
5845 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5846 * gdbtypes.c (recursive_dump_type): Remove use of
5847 TYPE_INCOMPLETE.
5848
5849 2020-05-03 Tom Tromey <tom@tromey.com>
5850
5851 * breakpoint.c (catch_command, tcatch_command): Remove.
5852 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5853 add_show_prefix_cmd.
5854 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5855 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5856 Remove.
5857 (add_internal_problem_command): Use add_basic_prefix_cmd,
5858 add_show_prefix_cmd.
5859 * mips-tdep.c (set_mipsfpu_command): Remove.
5860 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5861 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5862 (_initialize_index_cache): Use add_basic_prefix_cmd.
5863 * memattr.c (dummy_cmd): Remove.
5864 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5865 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5866 (_initialize_tui_win): Use add_basic_prefix_cmd,
5867 add_show_prefix_cmd.
5868 * cli/cli-logging.c (set_logging_command): Remove.
5869 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5870 add_show_prefix_cmd.
5871 (show_logging_command): Remove.
5872 * target.c (target_command): Remove.
5873 (add_target): Use add_basic_prefix_cmd.
5874
5875 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5876
5877 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5878
5879 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5880
5881 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5882 info_command.
5883
5884 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5885
5886 * nbsd-nat.c (nbsd_enable_proc_events)
5887 (nbsd_nat_target::post_startup_inferior): Add.
5888 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5889 (nbsd_nat_target::update_thread_list): Rewrite.
5890 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5891 "PTRACE_LWP_CREATE".
5892 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5893
5894 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5895
5896 * stack.c (_initialize_stack): Remove duplicated creation
5897 of "frame" command and "f" alias.
5898
5899 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5900
5901 PR gdb/18706
5902 * gdbtypes.c (check_typedef): Calculate size of array of
5903 stubbed type.
5904
5905 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5906
5907 PR gdb/15559
5908 * i386-tdep.c (i386_push_dummy_call): Call
5909 i386_thiscall_push_dummy_call.
5910 (i386_thiscall_push_dummy_call): New function.
5911 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5912 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5913 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5914
5915 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5916
5917 * gdbarch.sh (do_read): Add shellcheck disable directive for
5918 warning SC2162.
5919
5920 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5923 "referenced but not assigned" warning.
5924
5925 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5926
5927 * gdbarch.sh: Remove code that sets fallbackdefault.
5928
5929 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5930
5931 * gdbarch.sh: Use shell operators && and || instead of
5932 -a and -o.
5933
5934 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5935
5936 * gdbarch.sh: Use $(...) instead of `...`.
5937
5938 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5939
5940 * gdbarch.sh: Use double quotes around variables.
5941
5942 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * gdbarch.sh: Use %s with printf, instead of variables in the
5945 format string.
5946
5947 2020-04-29 Tom Tromey <tromey@adacore.com>
5948
5949 PR ada/25875:
5950 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5951 type fields here.
5952 (read_enumeration_type): Call
5953 update_enumeration_type_from_children later. Update comments.
5954 (process_enumeration_scope): Don't create type fields.
5955
5956 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5957
5958 * nbsd-tdep.c: Include "xml-syscall.h".
5959 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5960
5961 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5962
5963 * nbsd-nat.c: Include "sys/wait.h".
5964 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5965 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5966 (nbsd_nat_target::remove_exec_catchpoint)
5967 (nbsd_nat_target::set_syscall_catchpoint): Add.
5968 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5969 (nbsd_nat_target::insert_exec_catchpoint)
5970 (nbsd_nat_target::remove_exec_catchpoint)
5971 (nbsd_nat_target::set_syscall_catchpoint): Add.
5972 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5973 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5974 `nbsd_get_syscall_number'.
5975
5976 2020-04-29 Tom Tromey <tom@tromey.com>
5977
5978 * stack.c (print_block_frame_labels): Remove.
5979
5980 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5981
5982 PR gdb/17320
5983 * ada-valprint.c (val_print_packed_array_elements): Move array
5984 end bracket to new line.
5985 (ada_val_print_string): Remove extra spaces before first array
5986 element.
5987 * c-valprint.c (c_value_print_array): Likewise.
5988 * m2-valprint.c (m2_print_array_contents): Likewise.
5989 (m2_value_print_inner): Likewise.
5990 * p-valprint.c (pascal_value_print_inner): Likewise.
5991 * valprint.c (generic_val_print_array): Likewise.
5992 (value_print_array_elements): Move first array element and array
5993 end bracket to new line.
5994
5995 2020-04-29 Tom de Vries <tdevries@suse.de>
5996
5997 PR symtab/25889
5998 * linespec.c (find_method): Fix ix calculation.
5999
6000 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6001
6002 * syscalls/update-netbsd.sh: New file.
6003 * syscalls/netbsd.xml: Regenerate.
6004 * data-directory/Makefile.in: Register `netbsd.xml' in
6005 `SYSCALLS_FILES'.
6006
6007 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6008
6009 * syscalls/update-freebsd.sh: Add double quotes.
6010
6011 2020-04-28 Tom Tromey <tom@tromey.com>
6012
6013 * NEWS: Update.
6014 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6015 (cmdpy_init): Allow class_tui.
6016
6017 2020-04-28 Mark Williams <mark@myosotissp.com>
6018
6019 PR gdb/24480
6020 * dwarf2read.c: Add missing assingments to list_in_scope when
6021 start_symtab was already called.
6022
6023 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6024
6025 PR gdb/25881
6026 * dwarf2/read.c (offset_map_type): Use
6027 gdb:hash_enum<sect_offset> as hash function.
6028
6029 2020-04-28 Tom de Vries <tdevries@suse.de>
6030
6031 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6032 with DW_AT_signature.
6033
6034 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6035
6036 * configure.ac: Remove check for fs_base/gs_base in
6037 user_regs_struct.
6038 * configure: Re-generate.
6039 * config.in: Re-generate.
6040 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6041 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6042 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6043
6044 2020-04-27 Luis Machado <luis.machado@linaro.org>
6045
6046 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6047 problematic inline frame unwinding situation.
6048 * frame.c (frame_id_computed_p): New function.
6049 * frame.h (frame_id_computed_p): New prototype.
6050
6051 2020-04-26 Tom Tromey <tom@tromey.com>
6052
6053 * command.h (enum command_class) <class_pseudo>: Remove.
6054
6055 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6056
6057 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6058 and whitespace.
6059
6060 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6061
6062 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6063 `PT_GET_PROCESS_STATE' block.
6064
6065 2020-04-24 Tom Tromey <tom@tromey.com>
6066
6067 * symtab.h (symbol_get_demangled_name): Don't declare.
6068 * symtab.c (symbol_get_demangled_name): Remove.
6069 (general_symbol_info::natural_name)
6070 (general_symbol_info::demangled_name): Update.
6071
6072 2020-04-24 Tom Tromey <tom@tromey.com>
6073
6074 PR rust/25025:
6075 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6076
6077 2020-04-24 Tom Tromey <tom@tromey.com>
6078
6079 PR symtab/12707:
6080 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6081 exists.
6082 (new_symbol): Likewise.
6083 * compile/compile-object-load.c (get_out_value_type): Use
6084 symbol_matches_search_name.
6085
6086 2020-04-24 Tom Tromey <tom@tromey.com>
6087
6088 * dwarf2/read.c (add_partial_symbol): Do not call
6089 compute_and_set_names.
6090
6091 2020-04-24 Tom Tromey <tom@tromey.com>
6092
6093 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6094 overload.
6095
6096 2020-04-24 Tom Tromey <tom@tromey.com>
6097
6098 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6099 (add_psymbol_to_list): New overload. Make old overload call new
6100 one.
6101 * psympriv.h (add_psymbol_to_list): New overload.
6102
6103 2020-04-24 Tom Tromey <tom@tromey.com>
6104
6105 * dwarf2/read.c (partial_die_info::read) <case
6106 DW_AT_linkage_name>: Use value_as_string.
6107 (dwarf2_string_attr): Use value_as_string.
6108 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6109 method.
6110 * dwarf2/attribute.c (attribute::value_as_string): New method.
6111
6112 2020-04-24 Tom Tromey <tom@tromey.com>
6113
6114 * symtab.c (general_symbol_info::natural_name)
6115 (general_symbol_info::demangled_name): Check for language_rust.
6116
6117 2020-04-24 Tom Tromey <tom@tromey.com>
6118
6119 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6120 (dwarf2_physname): ... from here.
6121 (partial_die_info::read): Add Rust "{" hack.
6122
6123 2020-04-24 Tom Tromey <tom@tromey.com>
6124
6125 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6126 method.
6127 (symbol_set_demangled_name): Don't declare.
6128 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6129 symbol_set_demangled_name.
6130 (general_symbol_info::set_language)
6131 (general_symbol_info::compute_and_set_names): Update.
6132 * minsyms.c (minimal_symbol_reader::install): Update.
6133 * dwarf2/read.c (new_symbol): Update.
6134
6135 2020-04-24 Tom Tromey <tromey@adacore.com>
6136
6137 PR python/23662:
6138 * python/py-type.c (convert_field): Handle
6139 FIELD_LOC_KIND_DWARF_BLOCK.
6140 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6141 (typy_get_dynamic): Nw function.
6142 (type_object_getset): Add "dynamic".
6143 * NEWS: Add entry.
6144
6145 2020-04-24 Tom Tromey <tromey@adacore.com>
6146
6147 * ada-typeprint.c (print_choices, print_variant_part)
6148 (print_record_field_types_dynamic): New functions.
6149 (print_record_field_types): Use print_record_field_types_dynamic.
6150
6151 2020-04-24 Tom Tromey <tromey@adacore.com>
6152
6153 * dwarf2/read.c (handle_data_member_location): New overload.
6154 (dwarf2_add_field): Use it.
6155 (decode_locdesc): Add "computed" parameter. Update comment.
6156 * gdbtypes.c (is_dynamic_type_internal): Also look for
6157 FIELD_LOC_KIND_DWARF_BLOCK.
6158 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6159 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6160 virtual base classes.
6161 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6162 FIELD_LOC_KIND_DWARF_BLOCK.
6163
6164 2020-04-24 Tom Tromey <tromey@adacore.com>
6165
6166 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6167 * gdbtypes.c (is_dynamic_type_internal): Check
6168 TYPE_HAS_DYNAMIC_LENGTH.
6169 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6170 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6171 New macros.
6172 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6173 constant.
6174
6175 2020-04-24 Tom Tromey <tromey@adacore.com>
6176
6177 * dwarf2/read.c (struct variant_field): Rewrite.
6178 (struct variant_part_builder): New.
6179 (struct nextfield): Remove "variant" field. Add "offset".
6180 (struct field_info): Add "current_variant_part" and
6181 "variant_parts".
6182 (alloc_discriminant_info): Remove.
6183 (alloc_rust_variant): New function.
6184 (quirk_rust_enum): Update.
6185 (dwarf2_add_field): Set "offset" member. Don't handle
6186 DW_TAG_variant_part.
6187 (offset_map_type): New typedef.
6188 (convert_variant_range, create_one_variant)
6189 (create_one_variant_part, create_variant_parts)
6190 (add_variant_property): New functions.
6191 (dwarf2_attach_fields_to_type): Call add_variant_property.
6192 (read_structure_type): Don't handle DW_TAG_variant_part.
6193 (handle_variant_part, handle_variant): New functions.
6194 (handle_struct_member_die): Use them.
6195 (process_structure_scope): Don't handle variant parts.
6196 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6197 (struct discriminant_info): Remove.
6198 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6199 (struct main_type) <flag_discriminated_union>: Remove.
6200 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6201 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6202 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6203 Update.
6204 * valops.c (value_union_variant): Remove.
6205 * value.h (value_union_variant): Don't declare.
6206
6207 2020-04-24 Tom Tromey <tromey@adacore.com>
6208
6209 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6210 (ada_value_primitive_packed_val): Update.
6211 * ada-valprint.c (ada_value_print_1): Update.
6212 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6213 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6214 just an address. Use evaluate_for_locexpr_baton.
6215 (dwarf2_evaluate_property): Update.
6216 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6217 array_view.
6218 * findvar.c (default_read_var_value): Update.
6219 * gdbtypes.c (compute_variant_fields_inner)
6220 (resolve_dynamic_type_internal): Update.
6221 (resolve_dynamic_type): Change type of valaddr parameter.
6222 * gdbtypes.h (resolve_dynamic_type): Update.
6223 * valarith.c (value_subscripted_rvalue): Update.
6224 * value.c (value_from_contents_and_address): Update.
6225
6226 2020-04-24 Tom Tromey <tromey@adacore.com>
6227
6228 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6229 "push_initial_value" parameter.
6230 (dwarf2_evaluate_property): Likewise.
6231 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6232
6233 2020-04-24 Tom Tromey <tromey@adacore.com>
6234
6235 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6236 (variant::matches, compute_variant_fields_recurse)
6237 (compute_variant_fields_inner, compute_variant_fields): New
6238 functions.
6239 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6240 Use resolved_type after type is made.
6241 (operator==): Add new cases.
6242 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6243 (struct discriminant_range, struct variant, struct variant_part):
6244 New.
6245 (union dynamic_prop_data) <variant_parts, original_type>: New
6246 members.
6247 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6248 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6249 constants.
6250 * value.c (unpack_bits_as_long): Now public.
6251 * value.h (unpack_bits_as_long): Declare.
6252
6253 2020-04-24 Tom Tromey <tromey@adacore.com>
6254
6255 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6256 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6257
6258 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6259
6260 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6261
6262 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6263
6264 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6265 (remove_fork_catchpoint, post_startup_inferior)
6266 (post_attach): Move...
6267 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6268 (remove_fork_catchpoint, post_startup_inferior)
6269 (post_attach): ...here.
6270 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6271 (remove_fork_catchpoint, post_startup_inferior)
6272 (post_attach): Move...
6273 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6274 (remove_fork_catchpoint, post_startup_inferior)
6275 (post_attach): ...here.
6276
6277 2020-04-24 Tom Tromey <tromey@adacore.com>
6278
6279 * nat/windows-nat.h (struct windows_thread_info)
6280 <pc_adjusted>: New member.
6281 * windows-nat.c (windows_fetch_one_register): Check
6282 pc_adjusted.
6283 (windows_nat_target::get_windows_debug_event)
6284 (windows_nat_target::wait): Set pc_adjusted.
6285
6286 2020-04-24 Tom de Vries <tdevries@suse.de>
6287
6288 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6289 Run gdb-add-index inside temp dir.
6290
6291 2020-04-23 Tom Tromey <tromey@adacore.com>
6292
6293 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6294 in loop.
6295
6296 2020-04-23 Luis Machado <luis.machado@linaro.org>
6297
6298 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6299 get_frame_register instead of gdbarch_unwind_pc.
6300
6301 2020-04-23 Tom de Vries <tdevries@suse.de>
6302
6303 * symtab.c (lookup_global_symbol): Prefer def over decl.
6304
6305 2020-04-23 Tom de Vries <tdevries@suse.de>
6306
6307 PR symtab/25807
6308 * block.c (best_symbol, better_symbol): Promote to external.
6309 * block.h (best_symbol, better_symbol): Declare.
6310 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6311 decl.
6312
6313 2020-04-23 Tom Tromey <tromey@adacore.com>
6314
6315 PR ada/25837:
6316 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6317 "const char *", not a "const std::string &".
6318 <name_and_matcher::operator==>: Update.
6319 * unittests/lookup_name_info-selftests.c: Change type of
6320 "result".
6321
6322 2020-04-23 Tom Tromey <tom@tromey.com>
6323
6324 * inferior.h (iterate_over_inferiors): Don't declare.
6325 * inferior.c (iterate_over_inferiors): Remove.
6326 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6327 Remove.
6328 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6329 use iterate_over_inferiors.
6330 (darwin_resume_inferior_it)
6331 (struct resume_inferior_threads_param)
6332 (darwin_resume_inferior_threads_it): Remove.
6333 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6334
6335 2020-04-23 Tom de Vries <tdevries@suse.de>
6336
6337 * blockframe.c (find_pc_partial_function): Use
6338 find_pc_sect_compunit_symtab rather than
6339 objfile->sf->qf->find_pc_sect_compunit_symtab.
6340
6341 2020-04-22 Tom de Vries <tdevries@suse.de>
6342
6343 PR symtab/25764
6344 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6345 in psymtabs.
6346
6347 2020-04-22 Tom de Vries <tdevries@suse.de>
6348
6349 PR symtab/25801
6350 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6351 symtabs.
6352
6353 2020-04-22 Tom de Vries <tdevries@suse.de>
6354
6355 PR symtab/25700
6356 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6357 CU if already created.
6358
6359 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6360
6361 * infrun.c (displaced_step_fixup): Switch to the event_thread
6362 before calling displaced_step_restore, not after.
6363
6364 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6365
6366 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6367 its inferior is not recorded by us.
6368 (record_btrace_target_open): Replace call to
6369 all_non_exited_threads () with call to current_inferior
6370 ()->non_exited_threads ().
6371 (record_btrace_target::stop_recording): Likewise.
6372 (record_btrace_target::close): Likewise.
6373 (record_btrace_target::wait): Likewise.
6374 (record_btrace_target::record_stop_replaying): Likewise.
6375
6376 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6377
6378 * btrace.c (btrace_enable): Throw an error on double enables and
6379 when enabling recording fails.
6380 (btrace_disable): Throw an error if the thread is not recorded.
6381
6382 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6383
6384 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6385 request if we do not have a thread_info.
6386
6387 2020-04-21 Tom de Vries <tdevries@suse.de>
6388
6389 PR gdb/25471
6390 * thread.c
6391 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6392 exception in get_frame_id.
6393
6394 2020-04-20 Tom Tromey <tromey@adacore.com>
6395
6396 * python/python.c (struct gdbpy_event): Mark move constructor as
6397 noexcept.
6398 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6399 constructor as noexcept.
6400 * completer.h (struct completion_result): Mark move constructor as
6401 noexcept.
6402 * completer.c (completion_result::completion_result): Use
6403 initialization style. Don't call reset_match_list.
6404
6405 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6406
6407 * MAINTAINERS (Write After Approval): Add myself.
6408
6409 2020-04-18 Tom Tromey <tom@tromey.com>
6410
6411 * windows-tdep.c (init_w32_command_list)
6412 (w32_prefix_command_valid): Restore.
6413 (_initialize_windows_tdep): Call init_w32_command_list.
6414
6415 2020-04-18 Tom Tromey <tom@tromey.com>
6416
6417 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6418 * value.c (value_fn_field): Update.
6419 * valops.c (find_function_in_inferior)
6420 (value_allocate_space_in_inferior): Update.
6421 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6422 Update.
6423 * tui/tui-source.c (tui_source_window::set_contents): Update.
6424 * symtab.c (lookup_global_or_static_symbol)
6425 (find_function_start_sal_1, skip_prologue_sal)
6426 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6427 * symmisc.c (dump_msymbols, dump_symtab_1)
6428 (maintenance_print_one_line_table): Update.
6429 * symfile.c (init_entry_point_info, section_is_mapped)
6430 (list_overlays_command, simple_read_overlay_table)
6431 (simple_overlay_update_1): Update.
6432 * stap-probe.c (handle_stap_probe): Update.
6433 * stabsread.c (dbx_init_float_type, define_symbol)
6434 (read_one_struct_field, read_enum_type, read_range_type): Update.
6435 * source.c (info_line_command): Update.
6436 * python/python.c (gdbpy_source_objfile_script)
6437 (gdbpy_execute_objfile_script): Update.
6438 * python/py-type.c (save_objfile_types): Update.
6439 * python/py-objfile.c (py_free_objfile): Update.
6440 * python/py-inferior.c (python_new_objfile): Update.
6441 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6442 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6443 (maintenance_check_psymtabs): Update.
6444 * printcmd.c (info_address_command): Update.
6445 * objfiles.h (struct objfile) <arch>: New method, from
6446 get_objfile_arch.
6447 (get_objfile_arch): Don't declare.
6448 * objfiles.c (get_objfile_arch): Remove.
6449 (filter_overlapping_sections): Update.
6450 * minsyms.c (msymbol_is_function): Update.
6451 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6452 (output_nondebug_symbol): Update.
6453 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6454 (mdebug_expand_psymtab): Update.
6455 * machoread.c (macho_add_oso_symfile): Update.
6456 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6457 Update.
6458 * linux-fork.c (checkpoint_command): Update.
6459 * linespec.c (convert_linespec_to_sals): Update.
6460 * jit.c (finalize_symtab): Update.
6461 * infrun.c (insert_exception_resume_from_probe): Update.
6462 * ia64-tdep.c (ia64_find_unwind_table): Update.
6463 * hppa-tdep.c (internalize_unwinds): Update.
6464 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6465 Update.
6466 * gcore.c (call_target_sbrk): Update.
6467 * elfread.c (record_minimal_symbol, elf_symtab_read)
6468 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6469 (elf_gnu_ifunc_resolve_by_got): Update.
6470 * dwarf2/read.c (create_addrmap_from_index)
6471 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6472 (read_debug_names_from_section)
6473 (process_psymtab_comp_unit_reader, add_partial_symbol)
6474 (add_partial_subprogram, process_full_comp_unit)
6475 (read_file_scope, read_func_scope, read_lexical_block_scope)
6476 (read_call_site_scope, dwarf2_ranges_read)
6477 (dwarf2_record_block_ranges, dwarf2_add_field)
6478 (mark_common_block_symbol_computed, read_tag_pointer_type)
6479 (read_tag_string_type, dwarf2_init_float_type)
6480 (dwarf2_init_complex_target_type, read_base_type)
6481 (partial_die_info::read, partial_die_info::read)
6482 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6483 (dwarf2_fetch_die_loc_sect_off): Update.
6484 * dwarf2/loc.c (dwarf2_find_location_expression)
6485 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6486 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6487 (dwarf2_loc_desc_get_symbol_read_needs)
6488 (locexpr_describe_location_piece, locexpr_describe_location_1)
6489 (loclist_describe_location): Update.
6490 * dwarf2/index-write.c (write_debug_names): Update.
6491 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6492 * dtrace-probe.c (dtrace_process_dof): Update.
6493 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6494 (process_one_symbol): Update.
6495 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6496 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6497 (coff_read_enum_type): Update.
6498 * cli/cli-cmds.c (edit_command, list_command): Update.
6499 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6500 * breakpoint.c (create_overlay_event_breakpoint)
6501 (create_longjmp_master_breakpoint)
6502 (create_std_terminate_master_breakpoint)
6503 (create_exception_master_breakpoint, get_sal_arch): Update.
6504 * block.c (block_gdbarch): Update.
6505 * annotate.c (annotate_source_line): Update.
6506
6507 2020-04-17 Tom Tromey <tromey@adacore.com>
6508
6509 * auto-load.c (show_auto_load_cmd): Remove.
6510 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6511 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6512 (maintenance_print_arc_command): Remove.
6513 * tui/tui-win.c (tui_command): Remove.
6514 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6515 * tui/tui-layout.c (tui_layout_command): Remove.
6516 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6517 * python/python.c (user_set_python, user_show_python): Remove.
6518 (_initialize_python): Use add_basic_prefix_cmd,
6519 add_show_prefix_cmd.
6520 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6521 (install_gdb_commands): Use add_basic_prefix_cmd,
6522 add_show_prefix_cmd.
6523 (info_guile_command): Remove.
6524 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6525 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6526 add_show_prefix_cmd.
6527 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6528 Remove do_set and do_show parameters.
6529 * cli/cli-style.c (set_style, show_style): Remove.
6530 (_initialize_cli_style): Use add_basic_prefix_cmd,
6531 add_show_prefix_cmd.
6532 (cli_style_option::add_setshow_commands): Remove do_set and
6533 do_show parameters.
6534 (cli_style_option::add_setshow_commands): Use
6535 add_basic_prefix_cmd, add_show_prefix_cmd.
6536 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6537 (set_style_name): Remove.
6538 * cli/cli-dump.c (dump_command, append_command): Remove.
6539 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6540 (tekhex_dump_command, binary_dump_command)
6541 (binary_append_command): Remove.
6542 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6543 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6544 (init_w32_command_list): Remove; move into ...
6545 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6546 * valprint.c (set_print, show_print, set_print_raw)
6547 (show_print_raw): Remove.
6548 (_initialize_valprint): Use add_basic_prefix_cmd,
6549 add_show_prefix_cmd.
6550 * typeprint.c (set_print_type, show_print_type): Remove.
6551 (_initialize_typeprint): Use add_basic_prefix_cmd,
6552 add_show_prefix_cmd.
6553 * record.c (set_record_command, show_record_command): Remove.
6554 (_initialize_record): Use add_basic_prefix_cmd,
6555 add_show_prefix_cmd.
6556 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6557 add_show_prefix_cmd.
6558 (info_command, show_command, set_debug, show_debug): Remove.
6559 * top.h (set_history, show_history): Don't declare.
6560 * top.c (set_history, show_history): Remove.
6561 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6562 (unset_tdesc_cmd): Remove.
6563 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6564 add_show_prefix_cmd.
6565 * symtab.c (info_module_command): Remove.
6566 (_initialize_symtab): Use add_basic_prefix_cmd.
6567 * symfile.c (overlay_command): Remove.
6568 (_initialize_symfile): Use add_basic_prefix_cmd.
6569 * sparc64-tdep.c (info_adi_command): Remove.
6570 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6571 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6572 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6573 add_show_prefix_cmd.
6574 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6575 (_initialize_serial): Use add_basic_prefix_cmd,
6576 add_show_prefix_cmd.
6577 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6578 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6579 add_show_prefix_cmd.
6580 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6581 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6582 add_show_prefix_cmd.
6583 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6584 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6585 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6586 add_show_prefix_cmd.
6587 * remote.c (remote_command, set_remote_cmd): Remove.
6588 (_initialize_remote): Use add_basic_prefix_cmd.
6589 * record-full.c (set_record_full_command)
6590 (show_record_full_command): Remove.
6591 (_initialize_record_full): Use add_basic_prefix_cmd,
6592 add_show_prefix_cmd.
6593 * record-btrace.c (cmd_set_record_btrace)
6594 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6595 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6596 (cmd_show_record_btrace_pt): Remove.
6597 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6598 add_show_prefix_cmd.
6599 * ravenscar-thread.c (set_ravenscar_command)
6600 (show_ravenscar_command): Remove.
6601 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6602 add_show_prefix_cmd.
6603 * mips-tdep.c (show_mips_command, set_mips_command)
6604 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6605 add_show_prefix_cmd.
6606 * maint.c (maintenance_command, maintenance_info_command)
6607 (maintenance_check_command, maintenance_print_command)
6608 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6609 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6610 add_show_prefix_cmd.
6611 (show_per_command_cmd): Remove.
6612 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6613 Remove.
6614 (maintenance_show_test_settings_cmd): Remove.
6615 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6616 add_show_prefix_cmd.
6617 * maint-test-options.c (maintenance_test_options_command):
6618 Remove.
6619 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6620 * macrocmd.c (macro_command): Remove
6621 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6622 * language.c (set_check, show_check): Remove.
6623 (_initialize_language): Use add_basic_prefix_cmd,
6624 add_show_prefix_cmd.
6625 * infcmd.c (unset_command): Remove.
6626 (_initialize_infcmd): Use add_basic_prefix_cmd.
6627 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6628 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6629 add_show_prefix_cmd.
6630 * go32-nat.c (go32_info_dos_command): Remove.
6631 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6632 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6633 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6634 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6635 (_initialize_frame): Use add_basic_prefix_cmd,
6636 add_show_prefix_cmd.
6637 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6638 (_initialize_dcache): Use add_basic_prefix_cmd,
6639 add_show_prefix_cmd.
6640 * cp-support.c (maint_cplus_command): Remove.
6641 (_initialize_cp_support): Use add_basic_prefix_cmd.
6642 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6643 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6644 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6645 add_basic_prefix_cmd, add_show_prefix_cmd.
6646 * breakpoint.c (save_command): Remove.
6647 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6648 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6649 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6650 add_show_prefix_cmd.
6651 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6652 (set_ada_command, show_ada_command): Remove.
6653 (_initialize_ada_language): Use add_basic_prefix_cmd,
6654 add_show_prefix_cmd.
6655 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6656
6657 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6658
6659 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6660 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6661
6662 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6663
6664 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6665 warning messages.
6666
6667 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6668
6669 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6670 import table is not at beginning of .idata section.
6671
6672 2020-04-16 Pedro Alves <palves@redhat.com>
6673
6674 * inferior.c (delete_inferior): Use delete operator directly
6675 instead of delete_program_space.
6676 * progspace.c (add_program_space): New, factored out from
6677 program_space::program_space.
6678 (remove_program_space): New, factored out from
6679 delete_program_space.
6680 (program_space::program_space): Remove intro comment. Rewrite.
6681 (program_space::~program_space): Remove intro comment. Call
6682 remove_program_space.
6683 (delete_program_space): Delete.
6684 * progspace.h (program_space::program_space): Make explicit. Move
6685 intro comment here, adjusted.
6686 (program_space::~program_space): Move intro comment here,
6687 adjusted.
6688 (delete_program_space): Remove.
6689
6690 2020-04-16 Tom Tromey <tromey@adacore.com>
6691
6692 * windows-nat.c (windows_nat::handle_access_violation): New
6693 function.
6694 * nat/windows-nat.h (handle_access_violation): Declare.
6695 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6696 windows-nat.c. Call handle_access_violation.
6697
6698 2020-04-16 Tom de Vries <tdevries@suse.de>
6699
6700 PR symtab/25791
6701 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6702 CUs without psymtab.
6703
6704 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6705
6706 * python/python.c (do_start_initialization): Don't call
6707 PyEval_InitThreads for Python 3.9 and beyond.
6708
6709 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6710
6711 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6712 thread functions.
6713 (obsd_nat_target::wait): Likewise.
6714
6715 2020-04-15 Tom Tromey <tromey@adacore.com>
6716
6717 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6718 (DEBUG_EXCEPT): Use debug_printf.
6719
6720 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6721
6722 * completer.c (class completion_tracker::completion_hash_entry)
6723 <hash_name>: New member function.
6724 (completion_tracker::discard_completions): New callback to hash a
6725 completion_hash_entry, pass this to htab_create_alloc.
6726
6727 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6728
6729 * windows-nat.c (windows_make_so): Warn rather than stopping with
6730 an error if realpath() fails.
6731
6732 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6733
6734 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6735 (nbsd_nat_target::info_proc): Add do_status.
6736
6737 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6738 Tom de Vries <tdevries@suse.de>
6739
6740 PR symtab/25718
6741 * psympriv.h (struct partial_symtab::read_symtab)
6742 (struct partial_symtab::expand_psymtab)
6743 (struct partial_symtab::read_dependencies): Update comments.
6744 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6745 read_symtab for includer.
6746 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6747 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6748 (struct dwarf2_include_psymtab::m_readin): Remove.
6749 (struct dwarf2_include_psymtab::includer): New member function.
6750 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6751
6752 2020-04-14 Tom de Vries <tdevries@suse.de>
6753
6754 PR symtab/25720
6755 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6756 with NULL symbol_matcher and lookup_name.
6757 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6758 and lookup_name.
6759 * dwarf2/read.c (dw2_expand_symtabs_matching)
6760 (dw2_debug_names_expand_symtabs_matching): Same.
6761 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6762 Make lookup_name a pointer. Update comment.
6763 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6764 lookup_name being a pointer.
6765 * symfile.c (expand_symtabs_matching): Same.
6766 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6767 * linespec.c (iterate_over_all_matching_symtabs): Same.
6768
6769 2020-04-13 Tom Tromey <tom@tromey.com>
6770
6771 * run-on-main-thread.c: Update include.
6772 * unittests/main-thread-selftests.c: Update include.
6773 * tui/tui-win.c: Update include.
6774 * tui/tui-io.c: Update include.
6775 * tui/tui-interp.c: Update include.
6776 * tui/tui-hooks.c: Update include.
6777 * top.h: Update include.
6778 * top.c: Update include.
6779 * ser-base.c: Update include.
6780 * remote.c: Update include.
6781 * remote-notif.c: Update include.
6782 * remote-fileio.c: Update include.
6783 * record-full.c: Update include.
6784 * record-btrace.c: Update include.
6785 * python/python.c: Update include.
6786 * posix-hdep.c: Update include.
6787 * mingw-hdep.c: Update include.
6788 * mi/mi-main.c: Update include.
6789 * mi/mi-interp.c: Update include.
6790 * main.c: Update include.
6791 * linux-nat.c: Update include.
6792 * interps.c: Update include.
6793 * infrun.c: Update include.
6794 * inf-loop.c: Update include.
6795 * event-top.c: Update include.
6796 * event-loop.c: Move to ../gdbsupport/.
6797 * event-loop.h: Move to ../gdbsupport/.
6798 * async-event.h: Update include.
6799 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6800
6801 2020-04-13 Tom Tromey <tom@tromey.com>
6802
6803 * tui/tui-win.c: Include async-event.h.
6804 * remote.c: Include async-event.h.
6805 * remote-notif.c: Include async-event.h.
6806 * record-full.c: Include async-event.h.
6807 * record-btrace.c: Include async-event.h.
6808 * infrun.c: Include async-event.h.
6809 * event-top.c: Include async-event.h.
6810 * event-loop.h: Move some declarations to async-event.h.
6811 * event-loop.c: Don't include ser-event.h or top.h. Move some
6812 code to async-event.c.
6813 * async-event.h: New file.
6814 * async-event.c: New file.
6815 * Makefile.in (COMMON_SFILES): Add async-event.c.
6816 (HFILES_NO_SRCDIR): Add async-event.h.
6817
6818 2020-04-13 Tom Tromey <tom@tromey.com>
6819
6820 * utils.c (flush_streams): New function.
6821 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6822
6823 2020-04-13 Tom Tromey <tom@tromey.com>
6824
6825 * event-loop.c (handle_file_event): Use warning, not
6826 printf_unfiltered.
6827
6828 2020-04-13 Tom Tromey <tom@tromey.com>
6829
6830 * event-loop.c: Include <chrono>.
6831
6832 2020-04-13 Tom Tromey <tom@tromey.com>
6833
6834 * gdb_select.h: Move to ../gdbsupport/.
6835 * event-loop.c: Update include path.
6836 * top.c: Update include path.
6837 * ser-base.c: Update include path.
6838 * ui-file.c: Update include path.
6839 * ser-tcp.c: Update include path.
6840 * guile/scm-ports.c: Update include path.
6841 * posix-hdep.c: Update include path.
6842 * ser-unix.c: Update include path.
6843 * gdb_usleep.c: Update include path.
6844 * mingw-hdep.c: Update include path.
6845 * inflow.c: Update include path.
6846 * infrun.c: Update include path.
6847 * event-top.c: Update include path.
6848
6849 2020-04-13 Tom Tromey <tom@tromey.com>
6850
6851 * configure: Rebuild.
6852 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6853
6854 2020-04-13 Tom Tromey <tom@tromey.com>
6855
6856 * event-loop.h (start_event_loop): Don't declare.
6857 * event-loop.c (start_event_loop): Move...
6858 * main.c (start_event_loop): ...here. Now static.
6859
6860 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6861
6862 * MAINTAINERS: Update my email address.
6863
6864 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6865
6866 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6867 IP_ALL.
6868
6869 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6870
6871 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6872 (nbsd_nat_target::info_proc): Add do_cmdline.
6873
6874 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6875
6876 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6877 (nbsd_nat_target::info_proc): Add do_cwd.
6878
6879 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6880
6881 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6882
6883 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6884
6885 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6886 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6887 (nbsd_nat_target::info_proc): New functions.
6888 * nbsd-nat.c (kinfo_get_vmmap): New function.
6889 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6890 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6891 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6892 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6893 functions.
6894 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6895 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6896 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6897 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6898 (KINFO_VME_FLAG_GROWS_DOWN): New.
6899
6900 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6901
6902 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6903 bit shift.
6904
6905 2020-04-10 Tom Tromey <tromey@adacore.com>
6906
6907 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6908
6909 2020-04-10 Tom Tromey <tromey@adacore.com>
6910
6911 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6912 separate debug files.
6913
6914 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6915
6916 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6917 Move to...
6918 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6919 ... here.
6920 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6921 Check for STATUS_WX86_BREAKPOINT.
6922 (windows_nat_target::wait): Same.
6923
6924 2020-04-10 Tom de Vries <tdevries@suse.de>
6925
6926 PR cli/25808
6927 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6928
6929 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6930
6931 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6932 (Write After Approval): Remove Tom de Vries.
6933
6934 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6935
6936 revert partially:
6937 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6938
6939 * buildsym.c (record_line): Fix undefined behavior and preserve
6940 lines at eof.
6941
6942 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6943
6944 * auxv.h (svr4_auxv_parse): New.
6945 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6946 and generic_auxv_parse.
6947 (svr4_auxv_parse): Add.
6948 * obsd-tdep.c: Include "auxv.h".
6949 (obsd_auxv_parse): Remove.
6950 (obsd_init_abi): Remove comment.
6951 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6952 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6953 * nbsd-tdep.c: Include "auxv.h".
6954 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6955
6956 2020-04-08 Tom Tromey <tromey@adacore.com>
6957
6958 * nat/windows-nat.h (last_wait_event): Don't declare.
6959 (wait_for_debug_event): Update comment.
6960 * nat/windows-nat.c (last_wait_event): Now static.
6961
6962 2020-04-08 Tom Tromey <tromey@adacore.com>
6963
6964 * windows-nat.c (wait_for_debug_event): Move to
6965 nat/windows-nat.c.
6966 * nat/windows-nat.h (wait_for_debug_event): Declare.
6967 * nat/windows-nat.c (wait_for_debug_event): Move from
6968 windows-nat.c. No longer static.
6969
6970 2020-04-08 Tom Tromey <tromey@adacore.com>
6971
6972 * windows-nat.c (get_windows_debug_event): Use
6973 fetch_pending_stop.
6974 * nat/windows-nat.h (fetch_pending_stop): Declare.
6975 * nat/windows-nat.c (fetch_pending_stop): New function.
6976
6977 2020-04-08 Tom Tromey <tromey@adacore.com>
6978
6979 * windows-nat.c (windows_continue): Use matching_pending_stop and
6980 continue_last_debug_event.
6981 * nat/windows-nat.h (matching_pending_stop)
6982 (continue_last_debug_event): Declare.
6983 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6984 (matching_pending_stop, continue_last_debug_event): New
6985 functions.
6986
6987 2020-04-08 Tom Tromey <tromey@adacore.com>
6988
6989 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6990 (handle_exception_result): Move to nat/windows-nat.h.
6991 (DEBUG_EXCEPTION_SIMPLE): Remove.
6992 (windows_nat::handle_ms_vc_exception): New function.
6993 (handle_exception): Move to nat/windows-nat.c.
6994 (get_windows_debug_event): Update.
6995 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6996 nat/windows-nat.c.
6997 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6998 (handle_exception_result): Move from windows-nat.c.
6999 (handle_exception): Declare.
7000 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7001 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7002 windows-nat.c.
7003
7004 2020-04-08 Tom Tromey <tromey@adacore.com>
7005
7006 * windows-nat.c (exception_count, event_count): Remove.
7007 (handle_exception, get_windows_debug_event)
7008 (do_initial_windows_stuff): Update.
7009
7010 2020-04-08 Tom Tromey <tromey@adacore.com>
7011
7012 * windows-nat.c (windows_nat::handle_load_dll)
7013 (windows_nat::handle_unload_dll): Rename. No longer static.
7014 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7015 Declare.
7016
7017 2020-04-08 Tom Tromey <tromey@adacore.com>
7018
7019 * complaints.h (stop_whining): Declare at top-level.
7020 (complaint): Don't declare stop_whining.
7021
7022 2020-04-08 Tom Tromey <tromey@adacore.com>
7023
7024 * windows-nat.c (windows_nat::handle_output_debug_string):
7025 Rename. No longer static.
7026 * nat/windows-nat.h (handle_output_debug_string): Declare.
7027
7028 2020-04-08 Tom Tromey <tromey@adacore.com>
7029
7030 * windows-nat.c (current_process_handle, current_process_id)
7031 (main_thread_id, last_sig, current_event, last_wait_event)
7032 (current_windows_thread, desired_stop_thread_id, pending_stops)
7033 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7034 (display_selectors, fake_create_process)
7035 (get_windows_debug_event): Update.
7036 * nat/windows-nat.h (current_process_handle, current_process_id)
7037 (main_thread_id, last_sig, current_event, last_wait_event)
7038 (current_windows_thread, desired_stop_thread_id, pending_stops)
7039 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7040 * nat/windows-nat.c (current_process_handle, current_process_id)
7041 (main_thread_id, last_sig, current_event, last_wait_event)
7042 (current_windows_thread, desired_stop_thread_id, pending_stops)
7043 (siginfo_er): New globals. Move from windows-nat.c.
7044
7045 2020-04-08 Tom Tromey <tromey@adacore.com>
7046
7047 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7048 (handle_load_dll): Update.
7049 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7050
7051 2020-04-08 Tom Tromey <tromey@adacore.com>
7052
7053 * windows-nat.c (enum thread_disposition_type): Move to
7054 nat/windows-nat.h.
7055 (windows_nat::thread_rec): Rename from thread_rec. No longer
7056 static.
7057 (windows_add_thread, windows_nat_target::fetch_registers)
7058 (windows_nat_target::store_registers, handle_exception)
7059 (windows_nat_target::resume, get_windows_debug_event)
7060 (windows_nat_target::get_tib_address)
7061 (windows_nat_target::thread_name)
7062 (windows_nat_target::thread_alive): Update.
7063 * nat/windows-nat.h (enum thread_disposition_type): Move from
7064 windows-nat.c.
7065 (thread_rec): Declare.
7066
7067 2020-04-08 Tom Tromey <tromey@adacore.com>
7068
7069 * windows-nat.c: Add "using namespace".
7070 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7071 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7072
7073 2020-04-08 Tom Tromey <tromey@adacore.com>
7074
7075 * nat/windows-nat.h (struct windows_thread_info): Declare
7076 destructor.
7077 * nat/windows-nat.c (~windows_thread_info): New.
7078
7079 2020-04-08 Tom Tromey <tromey@adacore.com>
7080
7081 PR gdb/22992
7082 * windows-nat.c (current_event): Update comment.
7083 (last_wait_event, desired_stop_thread_id): New globals.
7084 (struct pending_stop): New.
7085 (pending_stops): New global.
7086 (windows_nat_target) <stopped_by_sw_breakpoint>
7087 <supports_stopped_by_sw_breakpoint>: New methods.
7088 (windows_fetch_one_register): Add assertions. Adjust PC.
7089 (windows_continue): Handle pending stops. Suspend other threads
7090 when stepping. Use last_wait_event
7091 (wait_for_debug_event): New function.
7092 (get_windows_debug_event): Use wait_for_debug_event. Handle
7093 pending stops. Queue spurious stops.
7094 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7095 (windows_nat_target::kill): Use wait_for_debug_event.
7096 * nat/windows-nat.h (struct windows_thread_info)
7097 <stopped_at_software_breakpoint>: New field.
7098 * nat/windows-nat.c (windows_thread_info::resume): Clear
7099 stopped_at_software_breakpoint.
7100
7101 2020-04-08 Tom Tromey <tromey@adacore.com>
7102
7103 * windows-nat.c (enum thread_disposition_type): New.
7104 (thread_rec): Replace "get_context" parameter with "disposition";
7105 change type.
7106 (windows_add_thread, windows_nat_target::fetch_registers)
7107 (windows_nat_target::store_registers, handle_exception)
7108 (windows_nat_target::resume, get_windows_debug_event)
7109 (windows_nat_target::get_tib_address)
7110 (windows_nat_target::thread_name)
7111 (windows_nat_target::thread_alive): Update.
7112
7113 2020-04-08 Tom Tromey <tromey@adacore.com>
7114
7115 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7116 (windows_continue): Use windows_continue::resume.
7117 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7118 resume>: Declare new methods.
7119 * nat/windows-nat.c: New file.
7120 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7121
7122 2020-04-08 Tom Tromey <tromey@adacore.com>
7123
7124 * windows-nat.c (windows_add_thread, windows_delete_thread)
7125 (windows_nat_target::fetch_registers)
7126 (windows_nat_target::store_registers, fake_create_process)
7127 (windows_nat_target::resume, windows_nat_target::resume)
7128 (get_windows_debug_event, windows_nat_target::wait)
7129 (windows_nat_target::pid_to_str)
7130 (windows_nat_target::get_tib_address)
7131 (windows_nat_target::get_ada_task_ptid)
7132 (windows_nat_target::thread_name)
7133 (windows_nat_target::thread_alive): Use lwp, not tid.
7134
7135 2020-04-08 Tom Tromey <tromey@adacore.com>
7136
7137 * windows-nat.c (handle_exception)
7138 (windows_nat_target::thread_name): Update.
7139 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7140 <name>: Now unique_xmalloc_ptr.
7141
7142 2020-04-08 Tom Tromey <tromey@adacore.com>
7143
7144 * windows-nat.c (thread_rec)
7145 (windows_nat_target::fetch_registers): Update.
7146 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7147 Update comment.
7148 <debug_registers_changed, reload_context>: Now bool.
7149
7150 2020-04-08 Tom Tromey <tromey@adacore.com>
7151
7152 * windows-nat.c (windows_add_thread): Use new.
7153 (windows_init_thread_list, windows_delete_thread): Use delete.
7154 (get_windows_debug_event): Update.
7155 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7156 destructor, and initializers.
7157
7158 2020-04-08 Tom Tromey <tromey@adacore.com>
7159
7160 * windows-nat.c (struct windows_thread_info): Remove.
7161 * nat/windows-nat.h: New file.
7162
7163 2020-04-08 Tom Tromey <tromey@adacore.com>
7164
7165 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7166 (thread_rec, windows_add_thread, windows_delete_thread)
7167 (windows_continue): Update.
7168
7169 2020-04-08 Tom Tromey <tromey@adacore.com>
7170
7171 * windows-nat.c (struct windows_thread_info): Remove typedef.
7172 (thread_head): Remove.
7173 (thread_list): New global.
7174 (thread_rec, windows_add_thread, windows_init_thread_list)
7175 (windows_delete_thread, windows_continue): Update.
7176
7177 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7178
7179 * windows-tdep.h (windows_init_abi): Add comment.
7180 (cygwin_init_abi): New declaration.
7181 * windows-tdep.c: Split signal enumeration in two, one for
7182 Windows and one for Cygwin.
7183 (windows_gdb_signal_to_target): Only deal with signal of the
7184 Windows OS ABI.
7185 (cygwin_gdb_signal_to_target): New function.
7186 (windows_init_abi): Rename to windows_init_abi_common, don't set
7187 gdb_signal_to_target gdbarch method. Add new new function with
7188 this name.
7189 (cygwin_init_abi): New function.
7190 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7191 comment. Don't call windows_init_abi.
7192 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7193 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7194 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7195 i386_windows_init_abi_common, don't call windows_init_abi. Add
7196 a new function of this name.
7197 (i386_cygwin_init_abi): New function.
7198 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7199 OS ABI Cygwin.
7200
7201 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7202
7203 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7204 parameter.c.
7205 (dwarf2_read_gdb_index): Update.
7206
7207 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7208
7209 * nbsd-tdep.c: Include "objfiles.h".
7210 (nbsd_skip_solib_resolver): New.
7211 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7212
7213 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7214
7215 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7216 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7217 with DW_LLE_base_addressx are being emitted in DWARFv5.
7218 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7219 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7220 unsigned integer.
7221
7222 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7223
7224 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7225 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7226 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7227 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7228 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7229 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7230 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7231
7232
7233 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7234
7235 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7236 (read_loclist_index): New function definition.
7237 (lookup_loclist_base): New function definition.
7238 (read_loclist_header): New function definition.
7239 (dwarf2_cu): Add loclist_base and loclist_header field.
7240 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7241 (read_full_die_1): Read the value of DW_AT_loclists_base.
7242 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7243 (read_attribute_value): Handle DW_FORM_loclistx.
7244 (skip_one_die): Handle DW_FORM_loclistx.
7245 (loclist_header): New structure declaration.
7246 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7247
7248 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7249
7250 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7251 constructor. Remove `addr` parameter from other constructor and
7252 add `per_cu` parameter.
7253 * dwarf2/read.c (create_partial_symtab): Update.
7254
7255 2020-04-07 Tom de Vries <tdevries@suse.de>
7256
7257 PR symtab/25796
7258 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7259 (partial_die_info::fixup): Inherit has_const_value.
7260
7261 2020-04-07 Tom de Vries <tdevries@suse.de>
7262
7263 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7264 symbols without address.
7265
7266 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7267
7268 * nbsd-nat.h (struct thread_info): Add forward declaration.
7269 (nbsd_nat_target::thread_alive): Add.
7270 (nbsd_nat_target::thread_name): Likewise.
7271 (nbsd_nat_target::update_thread_list): Likewise.
7272 (update_thread_list::post_attach): Likewise.
7273 (post_attach::pid_to_str): Likewise.
7274 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7275 (nbsd_thread_lister): Add.
7276 (nbsd_nat_target::thread_alive): Likewise.
7277 (nbsd_nat_target::thread_name): Likewise.
7278 (nbsd_add_threads): Likewise.
7279 (update_thread_list::post_attach): Likewise.
7280 (nbsd_nat_target::update_thread_list): Likewise.
7281 (post_attach::pid_to_str): Likewise.
7282
7283 2020-04-06 Tom Tromey <tromey@adacore.com>
7284
7285 * ada-valprint.c (print_variant_part): Extract the variant field.
7286 (print_field_values): Use the field as the outer value when
7287 recursing.
7288
7289 2020-04-06 Tom Tromey <tromey@adacore.com>
7290
7291 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7292 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7293 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7294 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7295 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7296
7297 2020-04-06 Tom Tromey <tromey@adacore.com>
7298
7299 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7300 TYPE_CODE_ERROR.
7301
7302 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7303
7304 * nbsd-tdep.c: Include "gdbarch.h".
7305 Define enum with NetBSD signal numbers.
7306 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7307 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7308 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7309 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7310 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7311 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7312 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7313 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7314 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7315 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7316 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7317 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7318
7319 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7320
7321 PR gdb/25325
7322 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7323
7324 2020-04-03 Tom Tromey <tromey@adacore.com>
7325
7326 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7327 Read constant block.
7328
7329 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7330
7331 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7332 (gdb_bfd_get_full_section_contents): New declaration.
7333 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7334 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7335 gdb_bfd_get_full_section_contents.
7336
7337 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7338
7339 * exec.c (build_section_table): Replace internal_error with
7340 gdb_assert.
7341 (section_table_xfer_memory_partial): Likewise.
7342 * mdebugread.c (parse_partial_symbols): Likewise.
7343 * psymtab.c (lookup_partial_symbol): Likewise.
7344 * utils.c (wrap_here): Likewise.
7345
7346 2020-04-02 Tom Tromey <tromey@adacore.com>
7347
7348 * f-lang.c (build_fortran_types): Use arch_type to initialize
7349 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7350
7351 2020-04-02 Tom Tromey <tromey@adacore.com>
7352
7353 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7354 of attributes.
7355
7356 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7357 Bernd Edlinger <bernd.edlinger@hotmail.de>
7358 Tom Tromey <tromey@adacore.com>
7359
7360 * buildsym.c (buildsym_compunit::record_line): Remove
7361 deduplication code.
7362
7363 2020-04-02 Tom de Vries <tdevries@suse.de>
7364
7365 PR ada/24671
7366 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7367
7368 2020-04-02 Tom de Vries <tdevries@suse.de>
7369
7370 * dwarf2/read.c (dwarf2_gdb_index_functions,
7371 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7372 NULL.
7373 * psymtab.c (psym_lookup_global_symbol_language): New function.
7374 (psym_functions): Init psym_lookup_global_symbol_language with
7375 psym_lookup_global_symbol_language.
7376 * symfile-debug.c (debug_sym_quick_functions): Init
7377 lookup_global_symbol_language with NULL.
7378 * symfile.c (set_initial_language): Remove fixme comment.
7379 * symfile.h (struct quick_symbol_functions): Add
7380 lookup_global_symbol_language.
7381 * symtab.c (find_quick_global_symbol_language): New function.
7382 (find_main_name): Use find_quick_global_symbol_language.
7383
7384 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7385
7386 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7387
7388 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7389
7390 * buildsym.c (record_line): Fix undefined behavior and preserve
7391 lines at eof.
7392
7393 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7394
7395 * buildsym.c (record_line): Fix the resizing condition.
7396
7397 2020-04-01 Tom Tromey <tom@tromey.com>
7398
7399 * value.h (value_literal_complex): Add comment.
7400 * valops.c (value_literal_complex): Refer to value.h.
7401
7402 2020-04-01 Tom Tromey <tom@tromey.com>
7403
7404 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7405 (scalar_type): New rule, from typebase.
7406 (typebase): Use scalar_type. Recognize complex types.
7407 (field_name): Handle FLOAT_KEYWORD.
7408 (ident_tokens): Add _Complex and __complex__.
7409
7410 2020-04-01 Tom Tromey <tom@tromey.com>
7411
7412 PR exp/25299:
7413 * valarith.c (promotion_type, complex_binop): New functions.
7414 (scalar_binop): Handle complex numbers. Use promotion_type.
7415 (value_pos, value_neg, value_complement): Handle complex numbers.
7416
7417 2020-04-01 Tom Tromey <tom@tromey.com>
7418
7419 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7420 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7421 (parse_number): Handle complex numbers.
7422
7423 2020-04-01 Tom Tromey <tom@tromey.com>
7424
7425 * c-valprint.c (c_decorations): Change complex suffix to "i".
7426
7427 2020-04-01 Tom Tromey <tom@tromey.com>
7428
7429 * valprint.c (generic_value_print_complex): Use accessors.
7430 * value.h (value_real_part, value_imaginary_part): Declare.
7431 * valops.c (value_real_part, value_imaginary_part): New
7432 functions.
7433 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7434
7435 2020-04-01 Tom Tromey <tom@tromey.com>
7436
7437 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7438 (read_range_type): Update.
7439 * mdebugread.c (basic_type): Update.
7440 * go-lang.c (build_go_types): Use init_complex_type.
7441 * gdbtypes.h (struct main_type) <complex_type>: New member.
7442 (init_complex_type): Update.
7443 (arch_complex_type): Don't declare.
7444 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7445 Make name if none given. Use alloc_type_copy. Look for cached
7446 complex type.
7447 (arch_complex_type): Remove.
7448 (gdbtypes_post_init): Use init_complex_type.
7449 * f-lang.c (build_fortran_types): Use init_complex_type.
7450 * dwarf2/read.c (read_base_type): Update.
7451 * d-lang.c (build_d_types): Use init_complex_type.
7452 * ctfread.c (read_base_type): Update.
7453
7454 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7455
7456 * infrun.c (stop_all_threads): Update assertion, plus when
7457 stopping threads, take into account that we might be trying
7458 to stop an all-stop target.
7459 (stop_waiting): Call 'stop_all_threads' if there exists a
7460 non-stop target.
7461
7462 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7463
7464 * target.h (exists_non_stop_target): New function declaration.
7465 * target.c (exists_non_stop_target): New function.
7466
7467 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7468
7469 PR gdb/24789
7470 * eval.c (is_integral_or_integral_reference): New function.
7471 (evaluate_subexp_standard): Allow integer references in
7472 pointer arithmetic.
7473
7474 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7475
7476 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7477 check for no ptid in the stop reply when the target is non-stop.
7478
7479 2020-04-01 Tom Tromey <tromey@adacore.com>
7480
7481 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7482 "name" parameter to rvalue reference. Initialize m_name_holder.
7483 <lookup_name_info>: New overloads.
7484 <name>: Return gdb::string_view.
7485 <c_str>: New method.
7486 <make_ignore_params>: Update.
7487 <search_name_hash>: Update.
7488 <language_lookup_name>: Return const char *.
7489 <m_name>: Change type.
7490 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7491 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7492 (lookup_name_info::match_any): Update.
7493 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7494 Update.
7495 * minsyms.c (linkage_name_str): Update.
7496 * language.c (default_symbol_name_matcher): Update.
7497 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7498 Update.
7499 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7500 (ada_lookup_name_info::ada_lookup_name_info): Update.
7501 (literal_symbol_name_matcher): Update.
7502
7503 2020-04-01 Tom Tromey <tromey@adacore.com>
7504
7505 * psymtab.c (psymtab_search_name): Remove function.
7506 (psym_lookup_symbol): Create search name and lookup name here.
7507 (lookup_partial_symbol): Remove "name" parameter; add
7508 lookup_name.
7509 (psym_expand_symtabs_for_function): Update.
7510
7511 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7512
7513 PR tui/25597:
7514 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7515
7516 2020-03-31 Tom Tromey <tromey@adacore.com>
7517
7518 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7519 memcpy.
7520
7521 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7522
7523 * features/riscv/32bit-csr.xml: Regenerated.
7524 * features/riscv/64bit-csr.xml: Regenerated.
7525
7526 2020-03-30 Tom Tromey <tromey@adacore.com>
7527
7528 * ada-valprint.c (print_variant_part): Update.
7529 * ada-lang.h (ada_which_variant_applies): Update.
7530 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7531 outer_valaddr parameters; replace with "outer" value parameter.
7532 (to_fixed_variant_branch_type): Update.
7533
7534 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7535
7536 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7537 <list>. Remove inclusion of observable.h.
7538 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7539 (struct arch_lwp_info): New struct.
7540 (class ppc_linux_dreg_interface): New class.
7541 (struct ppc_linux_process_info): New struct.
7542 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7543 <low_new_clone, low_forget_process, low_prepare_to_resume>
7544 <copy_thread_dreg_state, mark_thread_stale>
7545 <mark_debug_registers_changed, register_hw_breakpoint>
7546 <clear_hw_breakpoint, register_wp, clear_wp>
7547 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7548 <num_memory_accesses, get_trigger_type>
7549 <create_watchpoint_request, hwdebug_point_cmp>
7550 <init_arch_lwp_info, get_arch_lwp_info>
7551 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7552 methods.
7553 <struct ptid_hash>: New inner struct.
7554 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7555 members.
7556 (saved_dabr_value, hwdebug_info, max_slots_number)
7557 (struct hw_break_tuple, struct thread_points, ppc_threads)
7558 (have_ptrace_hwdebug_interface)
7559 (hwdebug_find_thread_points_by_tid)
7560 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7561 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7562 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7563 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7564 use m_dreg_interface.
7565 (hwdebug_point_cmp): Change to...
7566 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7567 reference arguments instead of pointers.
7568 (ppc_linux_nat_target::ranged_break_num_registers): Use
7569 m_dreg_interface.
7570 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7571 m_dreg_interface. Call register_hw_breakpoint.
7572 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7573 m_dreg_interface. Call clear_hw_breakpoint.
7574 (get_trigger_type): Change to...
7575 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7576 comment.
7577 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7578 use m_dreg_interface. Call register_hw_breakpoint.
7579 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7580 use m_dreg_interface. Call clear_hw_breakpoint.
7581 (can_use_watchpoint_cond_accel): Change to...
7582 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7583 method. Update comment, use m_dreg_interface and
7584 m_process_info.
7585 (calculate_dvc): Change to...
7586 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7587 m_dreg_interface.
7588 (num_memory_accesses): Change to...
7589 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7590 (check_condition): Change to...
7591 (ppc_linux_nat_target::check_condition): ...this method.
7592 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7593 comment, use m_dreg_interface.
7594 (create_watchpoint_request): Change to...
7595 (ppc_linux_nat_target::create_watchpoint_request): ...this
7596 method. Use m_dreg_interface.
7597 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7598 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7599 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7600 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7601 (ppc_linux_nat_target::low_forget_process)
7602 (ppc_linux_nat_target::low_new_fork)
7603 (ppc_linux_nat_target::low_new_clone)
7604 (ppc_linux_nat_target::low_delete_thread)
7605 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7606 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7607 only call mark_thread_stale.
7608 (ppc_linux_thread_exit): Remove.
7609 (ppc_linux_nat_target::stopped_data_address): Change to...
7610 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7611 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7612 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7613 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7614 comment. Call low_stopped_data_address.
7615 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7616 m_dreg_interface.
7617 (ppc_linux_nat_target::masked_watch_num_registers): Use
7618 m_dreg_interface.
7619 (ppc_linux_nat_target::copy_thread_dreg_state)
7620 (ppc_linux_nat_target::mark_thread_stale)
7621 (ppc_linux_nat_target::mark_debug_registers_changed)
7622 (ppc_linux_nat_target::register_hw_breakpoint)
7623 (ppc_linux_nat_target::clear_hw_breakpoint)
7624 (ppc_linux_nat_target::register_wp)
7625 (ppc_linux_nat_target::clear_wp)
7626 (ppc_linux_nat_target::init_arch_lwp_info)
7627 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7628 (_initialize_ppc_linux_nat): Remove observer callback.
7629
7630 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7631
7632 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7633 (ppc_linux_nat_target::auxv_parse)
7634 (ppc_linux_nat_target::read_description)
7635 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7636 Move up.
7637
7638 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7639
7640 * linux-nat.h (low_new_clone): New method.
7641 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7642
7643 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7644
7645 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7646 (dbx_expand_psymtab): ... this.
7647 (start_psymtab): Update.
7648 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7649 (mdebug_expand_psymtab): ... this.
7650 (parse_partial_symbols): Update.
7651 (new_psymtab): Update.
7652 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7653 (xcoff_expand_psymtab): ... this.
7654 (xcoff_start_psymtab): Update.
7655
7656 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7657
7658 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7659 <expand_dependencies>: ... this.
7660 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7661 (partial_symtab::expand_dependencies): ... this.
7662 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7663 Update.
7664 (dwarf2_psymtab::expand_psymtab): Update.
7665 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7666 * mdebugread.c (psymtab_to_symtab_1): Update.
7667 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7668
7669 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7670
7671 * psympriv.h (discard_psymtab): Remove.
7672 * dbxread.c (dbx_end_psymtab): Update.
7673 * xcoffread.c (xcoff_end_psymtab): Update.
7674
7675 2020-03-28 Tom Tromey <tom@tromey.com>
7676
7677 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7678 comment.
7679
7680 2020-03-28 Tom Tromey <tom@tromey.com>
7681
7682 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7683
7684 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7685
7686 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7687
7688 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7689
7690 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7691
7692 2020-03-26 Tom Tromey <tom@tromey.com>
7693
7694 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7695 (mark_common_block_symbol_computed, read_tag_string_type)
7696 (attr_to_dynamic_prop, read_subrange_type): Update.
7697 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7698 to be methods on struct attribute.
7699 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7700 (read_call_site_scope, partial_die_info::read)
7701 (partial_die_info::read, lookup_die_type, follow_die_ref):
7702 Update.
7703 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7704 from dwarf2_get_ref_die_offset.
7705 (attribute::constant_value): New method, from
7706 dwarf2_get_attr_constant_value.
7707 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7708 Declare method.
7709 <constant_value>: New method.
7710
7711 2020-03-26 Tom Tromey <tom@tromey.com>
7712
7713 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7714 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7715 (dwarf_type_encoding_name): Move to stringify.c.
7716 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7717 * dwarf2/stringify.c: New file.
7718 * dwarf2/stringify.h: New file.
7719
7720 2020-03-26 Tom Tromey <tom@tromey.com>
7721
7722 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7723 Rewrite.
7724
7725 2020-03-26 Tom Tromey <tom@tromey.com>
7726
7727 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7728 methods.
7729 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7730 (lookup_ranges_base): Likewise.
7731 (read_cutu_die_from_dwo, read_full_die_1): Update.
7732
7733 2020-03-26 Tom Tromey <tom@tromey.com>
7734
7735 * dwarf2/read.c (read_import_statement, read_file_scope)
7736 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7737 (read_lexical_block_scope, read_call_site_scope)
7738 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7739 (handle_struct_member_die, process_structure_scope)
7740 (update_enumeration_type_from_children)
7741 (process_enumeration_scope, read_array_type, read_common_block)
7742 (read_namespace, read_module, read_subroutine_type): Update.
7743 (sibling_die): Remove.
7744
7745 2020-03-26 Tom Tromey <tom@tromey.com>
7746
7747 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7748 (build_type_psymtabs_reader, read_structure_type)
7749 (read_enumeration_type, read_full_die_1): Update.
7750 (dwarf2_attr_no_follow): Move to die.h.
7751 * dwarf2/die.h (struct die_info) <attr>: New method.
7752
7753 2020-03-26 Tom Tromey <tom@tromey.com>
7754
7755 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7756 <base_address>: Now an optional.
7757 (dwarf2_find_base_address, dwarf2_rnglists_process)
7758 (dwarf2_ranges_process, fill_in_loclist_baton)
7759 (dwarf2_symbol_mark_computed): Update.
7760
7761 2020-03-26 Tom Tromey <tom@tromey.com>
7762
7763 * dwarf2/read.c (struct die_info): Move to die.h.
7764 * dwarf2/die.h: New file.
7765
7766 2020-03-26 Tom Tromey <tom@tromey.com>
7767
7768 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7769 * dwarf2/read.c
7770 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7771 Move to line-header.c.
7772 (read_checked_initial_length_and_offset, read_formatted_entries):
7773 Likewise.
7774 (dwarf_decode_line_header): Split into two.
7775 * dwarf2/line-header.c
7776 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7777 Move from read.c.
7778 (read_checked_initial_length_and_offset, read_formatted_entries):
7779 Likewise.
7780 (dwarf_decode_line_header): New function, split from read.c.
7781
7782 2020-03-26 Tom Tromey <tom@tromey.com>
7783
7784 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7785 Declare method.
7786 * dwarf2/read.c (read_attribute_value): Update.
7787 (dwarf2_per_objfile::read_line_string): Rename from
7788 read_indirect_line_string.
7789 (read_formatted_entries): Update.
7790
7791 2020-03-26 Tom Tromey <tom@tromey.com>
7792
7793 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7794 variable.
7795
7796 2020-03-26 Tom Tromey <tom@tromey.com>
7797
7798 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7799 const.
7800 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7801 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7802 parameter const.
7803
7804 2020-03-26 Tom Tromey <tom@tromey.com>
7805
7806 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7807 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7808 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7809 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7810
7811 2020-03-26 Tom Tromey <tom@tromey.com>
7812
7813 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7814 file_names_size, file_full_name, file_file_name>: Use const.
7815 <file_name_at, file_names>: Add const overload.
7816 * dwarf2/line-header.c (line_header::file_file_name)
7817 (line_header::file_full_name): Update.
7818
7819 2020-03-26 Tom Tromey <tom@tromey.com>
7820
7821 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7822 (macro_start_file, consume_improper_spaces)
7823 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7824 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7825 (dwarf_decode_macros): Move to macro.c.
7826 * dwarf2/macro.c: New file.
7827 * dwarf2/macro.h: New file.
7828 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7829
7830 2020-03-26 Tom Tromey <tom@tromey.com>
7831
7832 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7833 method.
7834 * dwarf2/section.c: New method. From
7835 read_indirect_string_at_offset_from.
7836 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7837 (read_indirect_string_at_offset_from): Move to section.c.
7838 (read_indirect_string_at_offset): Rewrite.
7839 (read_indirect_line_string_at_offset): Remove.
7840 (read_indirect_string, read_indirect_line_string)
7841 (dwarf_decode_macro_bytes): Update.
7842
7843 2020-03-26 Tom Tromey <tom@tromey.com>
7844
7845 * dwarf2/section.h (struct dwarf2_section_info)
7846 <overload_complaint>: Declare.
7847 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7848 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7849 Rename from dwarf2_section_buffer_overflow_complaint.
7850 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7851 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7852
7853 2020-03-26 Tom Tromey <tom@tromey.com>
7854
7855 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7856 Declare.
7857 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7858 Move from read.c.
7859 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7860 to section.c.
7861
7862 2020-03-26 Tom Tromey <tom@tromey.com>
7863
7864 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7865
7866 2020-03-26 Tom Tromey <tom@tromey.com>
7867
7868 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7869 "builder".
7870 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7871 parameter.
7872 (dwarf_decode_macros): Update.
7873
7874 2020-03-26 Tom Tromey <tom@tromey.com>
7875
7876 * dwarf2/read.c (read_attribute_value): Update.
7877 (read_indirect_string_from_dwz): Move to dwz.c; change into
7878 method.
7879 (dwarf_decode_macro_bytes): Update.
7880 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7881 * dwarf2/dwz.c: New file.
7882 * Makefile.in (COMMON_SFILES): Add dwz.c.
7883
7884 2020-03-26 Tom Tromey <tom@tromey.com>
7885
7886 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7887 * dwarf2/read.c: Add include.
7888 * dwarf2/index-write.c: Add include.
7889 * dwarf2/index-cache.c: Add include.
7890 * dwarf2/dwz.h: New file.
7891
7892 2020-03-25 Tom Tromey <tom@tromey.com>
7893
7894 * compile/compile-object-load.c (get_out_value_type): Mention
7895 correct symbol name in error message.
7896
7897 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7898
7899 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7900
7901 2020-03-25 Tom de Vries <tdevries@suse.de>
7902
7903 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7904 * symmisc.c (dump_symtab_1): Print user and includes fields.
7905 (maintenance_info_symtabs): Same.
7906
7907 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7908
7909 PR gdb/25534
7910 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7911 (riscv_regcache_cooked_write): New function.
7912 (riscv_push_dummy_call): Use new function.
7913 (riscv_return_value): Likewise.
7914
7915 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7916
7917 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7918 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7919 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7920 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7921 * infrun.c (follow_fork): Likewise.
7922 (follow_fork_inferior): Likewise.
7923 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7924 * linux-nat.h (class linux_nat_target): Likewise.
7925 * remote.c (class remote_target) <follow_fork>: Likewise.
7926 (remote_target::follow_fork): Likewise.
7927 * target-delegates.c: Re-generate.
7928 * target.c (default_follow_fork): Likewise.
7929 (target_follow_fork): Likewise.
7930 * target.h (struct target_ops) <follow_fork>: Likewise.
7931 (target_follow_fork): Likewise.
7932
7933 2020-03-24 Tom de Vries <tdevries@suse.de>
7934
7935 * psymtab.c (maintenance_info_psymtabs): Print user field.
7936
7937 2020-03-20 Tom Tromey <tromey@adacore.com>
7938
7939 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7940 const.
7941 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7942 const.
7943
7944 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7945
7946 * ptrace.m4: Don't check for ptrace declaration.
7947 * config.in: Re-generate.
7948 * configure: Re-generate.
7949 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7950 not defined.
7951
7952 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7953
7954 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7955 `PTRACE_TYPE_RET'.
7956 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7957 * sparc-nat.c (gdb_ptrace): Likewise.
7958 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7959
7960 2020-03-20 Tom Tromey <tromey@adacore.com>
7961
7962 * c-exp.y (lex_one_token): Fix assert.
7963
7964 2020-03-20 Tom Tromey <tromey@adacore.com>
7965
7966 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7967 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7968 strncpy call.
7969
7970 2020-03-20 Tom Tromey <tromey@adacore.com>
7971
7972 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7973
7974 2020-03-20 Tom Tromey <tromey@adacore.com>
7975
7976 * ada-valprint.c (print_variant_part): Remove parameters; switch
7977 to value-based API.
7978 (print_field_values): Likewise.
7979 (ada_val_print_struct_union): Likewise.
7980 (ada_value_print_1): Update.
7981
7982 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7983
7984 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7985 nbsd_nat_target instead of inf_ptrace_target.
7986 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7987 nbsd_nat_target.
7988
7989 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7990
7991 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7992 it to the ptrace call.
7993 * (store_registers): Likewise.
7994
7995 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7996
7997 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7998 it to the ptrace call.
7999 * (store_registers): Likewise.
8000
8001 2020-03-19 Luis Machado <luis.machado@linaro.org>
8002
8003 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8004 valid, fetch vg value from ptrace.
8005
8006 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8007 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8008 * inf-ptrace.c: Likewise.
8009 * (gdb_ptrace): Add.
8010 * (inf_ptrace_target::resume): Update.
8011 * (inf_ptrace_target::xfer_partial): Likewise.
8012 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8013 * (inf_ptrace_peek_poke): Update.
8014
8015 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8016
8017 * x86-bsd-nat.c (gdb_ptrace): New.
8018 * (x86bsd_dr_set): Add new argument `ptid'.
8019 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8020 x86bsd_dr_set_addr): Update.
8021
8022 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8023
8024 * remote.c (remote_target::process_stop_reply): Handle events for
8025 all threads differently.
8026
8027 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8028
8029 * completer.c (completion_tracker::remove_completion): Define new
8030 function.
8031 * completer.h (completion_tracker::remove_completion): Declare new
8032 function.
8033 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8034 when adding a C++ function symbol.
8035
8036 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8037
8038 * completer.c (completion_tracker::completion_hash_entry): Define
8039 new class.
8040 (advance_to_filename_complete_word_point): Call
8041 recompute_lowest_common_denominator.
8042 (completion_tracker::completion_tracker): Call discard_completions
8043 to setup the hash table.
8044 (completion_tracker::discard_completions): Allow for being called
8045 from the constructor, pass new equal function, and element deleter
8046 when constructing the hash table. Initialise new class member
8047 variables.
8048 (completion_tracker::maybe_add_completion): Remove use of
8049 m_entries_vec, and store more information into m_entries_hash.
8050 (completion_tracker::recompute_lcd_visitor): New function, most
8051 content taken from...
8052 (completion_tracker::recompute_lowest_common_denominator):
8053 ...here, this now just visits each item in the hash calling the
8054 above visitor.
8055 (completion_tracker::build_completion_result): Remove use of
8056 m_entries_vec, call recompute_lowest_common_denominator.
8057 * completer.h (completion_tracker::have_completions): Remove use
8058 of m_entries_vec.
8059 (completion_tracker::completion_hash_entry): Declare new class.
8060 (completion_tracker::recompute_lowest_common_denominator): Change
8061 function signature.
8062 (completion_tracker::recompute_lcd_visitor): Declare new function.
8063 (completion_tracker::m_entries_vec): Delete.
8064 (completion_tracker::m_entries_hash): Initialize to NULL.
8065 (completion_tracker::m_lowest_common_denominator_valid): New
8066 member variable.
8067 (completion_tracker::m_lowest_common_denominator_max_length): New
8068 member variable.
8069
8070 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8071
8072 * regformats/regdef.h: Put reg in gdb namespace.
8073
8074 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8075
8076 * i386-bsd-nat.c (gdb_ptrace): New.
8077 * (i386bsd_fetch_inferior_registers,
8078 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8079 * (i386bsd_fetch_inferior_registers,
8080 i386bsd_store_inferior_registers) Use gdb_ptrace.
8081
8082 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8083
8084 * amd64-bsd-nat.c (gdb_ptrace): New.
8085 * (amd64bsd_fetch_inferior_registers,
8086 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8087 * (amd64bsd_fetch_inferior_registers,
8088 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8089
8090 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8091
8092 * user-regs.c (user_reg::read): Rename to...
8093 (user_reg::xread): ...this.
8094 * (append_user_reg): Rename argument `read' to `xread'.
8095 * (user_reg_add_builtin): Likewise.
8096 * (user_reg_add): Likewise.
8097 * (value_of_user_reg): Likewise.
8098
8099 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8100
8101 * sparc-nat.c (gdb_ptrace): New.
8102 * sparc-nat.c (sparc_fetch_inferior_registers)
8103 (sparc_store_inferior_registers) Remove obsolete comment.
8104 * sparc-nat.c (sparc_fetch_inferior_registers)
8105 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8106 * sparc-nat.c (sparc_fetch_inferior_registers)
8107 (sparc_store_inferior_registers) Use gdb_ptrace.
8108
8109 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8110
8111 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8112 it to the ptrace call.
8113 * sh-nbsd-nat.c (store_registers): Likewise.
8114
8115 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8116
8117 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8118 nbsd_nat_target instead of inf_ptrace_target.
8119 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8120 nbsd_nat_target.
8121
8122 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8123
8124 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8125
8126 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8127
8128 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8129 <sys/sysctl.h>.
8130 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8131
8132 2020-03-17 Tom de Vries <tdevries@suse.de>
8133
8134 PR gdb/23710
8135 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8136 fields.
8137 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8138 fields.
8139 (process_imported_unit_die): Skip import of c++ CUs.
8140
8141 2020-03-16 Tom Tromey <tom@tromey.com>
8142
8143 * p-valprint.c (pascal_object_print_value): Initialize
8144 base_value.
8145
8146 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8147 Shahab Vahedi <shahab@synopsys.com>
8148
8149 * Makefile.in: Add arch/arc.o
8150 * configure.tgt: Likewise.
8151 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8152 (_initialize_arc_tdep): Don't initialize old target descriptions.
8153 (arc_read_description): New function to cache target descriptions.
8154 * arc-tdep.h (arc_read_description): Add proto type.
8155 * arch/arc.c: New file.
8156 * arch/arc.h: Likewise.
8157 * features/Makefile: Replace old target descriptions with new.
8158 * features/arc-arcompact.c: Remove.
8159 * features/arc-arcompact.xml: Likewise.
8160 * features/arc-v2.c: Likewise
8161 * features/arc-v2.xml: Likewise
8162 * features/arc/aux-arcompact.xml: New file.
8163 * features/arc/aux-v2.xml: Likewise.
8164 * features/arc/core-arcompact.xml: Likewise.
8165 * features/arc/core-v2.xml: Likewise.
8166 * features/arc/aux-arcompact.c: Generate.
8167 * features/arc/aux-v2.c: Likewise.
8168 * features/arc/core-arcompact.c: Likewise.
8169 * features/arc/core-v2.c: Likewise.
8170 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8171
8172 2020-03-16 Tom Tromey <tromey@adacore.com>
8173
8174 PR gdb/25663:
8175 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8176 putting value into bcache.
8177
8178 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8179
8180 PR gdb/21500
8181 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8182 to...
8183 (amd64_windows_init_abi_common): ... this. Don't set size of
8184 long type.
8185 (amd64_windows_init_abi): New function.
8186 (amd64_cygwin_init_abi): New function.
8187 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8188 the Cygwin OS ABI.
8189 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8190 comment.
8191
8192 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8193
8194 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8195 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8196 (pe_import_directory_entry): New struct type.
8197 (is_linked_with_cygwin_dll): New function.
8198 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8199 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8200 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8201
8202 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8203
8204 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8205 i386_cygwin_core_osabi_sniffer.
8206
8207 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8208
8209 * i386-cygwin-tdep.c: Rename to...
8210 * i386-windows-tdep.c: ... this.
8211 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8212 i386-windows-tdep.c.
8213 * configure.tgt: Likewise.
8214
8215 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8216
8217 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8218 * osabi.c (gdb_osabi_names): Add "Windows".
8219 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8220 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8221 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8222 i386_cygwin_osabi_sniffer.
8223 (_initialize_i386_cygwin_tdep): Register OS ABI
8224 GDB_OSABI_WINDOWS for i386.
8225 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8226 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8227 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8228 for x86-64.
8229 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8230 when the target matches '*-*-mingw*'.
8231
8232 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8233
8234 * defs.h (enum gdb_osabi): Move to...
8235 * osabi.h (enum gdb_osabi): ... here.
8236 * gdbarch.sh: Include osabi.h in gdbarch.h.
8237 * gdbarch.h: Re-generate.
8238
8239 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8240
8241 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8242 function.
8243 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8244
8245 2020-03-14 Tom Tromey <tom@tromey.com>
8246
8247 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8248 for C++.
8249 (c_type_print_modifier): Likewise. Add "language" parameter.
8250 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8251 (c_type_print_base_1): Update.
8252 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8253 constants.
8254 * type-stack.c (type_stack::insert): Handle tp_atomic and
8255 tp_restrict.
8256 (type_stack::follow_type_instance_flags): Likewise.
8257 (type_stack::follow_types): Likewise. Merge type-following code.
8258 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8259 (space_identifier, cv_with_space_id)
8260 (const_or_volatile_or_space_identifier_noopt)
8261 (const_or_volatile_or_space_identifier): Remove.
8262 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8263 rules.
8264 (ptr_operator, typebase): Update.
8265 (enum token_flag) <FLAG_C>: New constant.
8266 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8267 "_Atomic".
8268 (lex_one_token): Handle FLAG_C.
8269
8270 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8271
8272 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8273 it to the ptrace call.
8274 * m68k-bsd-nat.c (store_registers): Likewise.
8275
8276 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8277
8278 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8279 gdb_byte *.
8280 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8281 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8282 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8283
8284 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8285
8286 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8287 nbsd_nat_target instead of inf_ptrace_target.
8288 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8289 nbsd_nat_target.
8290
8291 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8292
8293 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8294 register_t.
8295
8296 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8297
8298 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8299 it to the ptrace call.
8300 * alpha-bsd-nat.c (store_registers): Likewise.
8301
8302 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8303
8304 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8305 includes.
8306 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8307 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8308 fill_fpregset): Likewise.
8309
8310 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8311
8312 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8313 nbsd_nat_target instead of inf_ptrace_target.
8314 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8315 nbsd_nat_target.
8316
8317 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8318
8319 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8320 register_t.
8321
8322 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8323
8324 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8325 it to the ptrace call.
8326 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8327 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8328 * arm-nbsd-nat.c (store_register): Likewise.
8329 * arm-nbsd-nat.c (store_regs): Likewise.
8330 * arm-nbsd-nat.c (store_fp_register): Likewise.
8331 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8332
8333 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8334
8335 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8336 nbsd_nat_target instead of inf_ptrace_target.
8337 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8338 nbsd_nat_target.
8339
8340 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8341
8342 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8343 it to the ptrace call.
8344 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8345
8346 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8347
8348 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8349 it to the ptrace call.
8350 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8351
8352 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8353
8354 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8355 gdb_byte *.
8356 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8357
8358 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8359
8360 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8361 instead of inf_ptrace_target.
8362 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8363 nbsd_nat_target.
8364
8365 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8366
8367 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8368 register_t.
8369
8370 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8371
8372 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8373 register_t.
8374
8375 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8376
8377 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8378 register_t.
8379
8380 2020-03-13 Tom Tromey <tom@tromey.com>
8381
8382 * value.h (val_print): Don't declare.
8383 * valprint.h (val_print_array_elements)
8384 (val_print_scalar_formatted, generic_val_print): Don't declare.
8385 * valprint.c (generic_val_print_array): Take a struct value.
8386 (generic_val_print_ptr, generic_val_print_memberptr)
8387 (generic_val_print_bool, generic_val_print_int)
8388 (generic_val_print_char, generic_val_print_complex)
8389 (generic_val_print): Remove.
8390 (generic_value_print): Update.
8391 (do_val_print): Remove unused parameters. Don't call
8392 la_val_print.
8393 (val_print): Remove.
8394 (common_val_print): Update. Don't call value_check_printable.
8395 (val_print_scalar_formatted, val_print_array_elements): Remove.
8396 * rust-lang.c (rust_val_print): Remove.
8397 (rust_language_defn): Update.
8398 * p-valprint.c (pascal_val_print): Remove.
8399 (pascal_value_print_inner): Update.
8400 (pascal_object_print_val_fields, pascal_object_print_val):
8401 Remove.
8402 (pascal_object_print_static_field): Update.
8403 * p-lang.h (pascal_val_print): Don't declare.
8404 * p-lang.c (pascal_language_defn): Update.
8405 * opencl-lang.c (opencl_language_defn): Update.
8406 * objc-lang.c (objc_language_defn): Update.
8407 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8408 * m2-lang.h (m2_val_print): Don't declare.
8409 * m2-lang.c (m2_language_defn): Update.
8410 * language.h (struct language_defn) <la_val_print>: Remove.
8411 * language.c (unk_lang_value_print_inner): Rename. Change
8412 argument types.
8413 (unknown_language_defn, auto_language_defn): Update.
8414 * go-valprint.c (go_val_print): Remove.
8415 * go-lang.h (go_val_print): Don't declare.
8416 * go-lang.c (go_language_defn): Update.
8417 * f-valprint.c (f_val_print): Remove.
8418 * f-lang.h (f_value_print): Don't declare.
8419 * f-lang.c (f_language_defn): Update.
8420 * d-valprint.c (d_val_print): Remove.
8421 * d-lang.h (d_value_print): Don't declare.
8422 * d-lang.c (d_language_defn): Update.
8423 * cp-valprint.c (cp_print_value_fields)
8424 (cp_print_value_fields_rtti, cp_print_value): Remove.
8425 (cp_print_static_field): Update.
8426 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8427 (c_val_print_struct, c_val_print_union, c_val_print_int)
8428 (c_val_print_memberptr, c_val_print): Remove.
8429 * c-lang.h (c_val_print_array, cp_print_value_fields)
8430 (cp_print_value_fields_rtti): Don't declare.
8431 * c-lang.c (c_language_defn, cplus_language_defn)
8432 (asm_language_defn, minimal_language_defn): Update.
8433 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8434 (ada_val_print_enum): Take a struct value.
8435 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8436 (ada_val_print): Remove.
8437 (ada_value_print_1): Update.
8438 (printable_val_type): Remove.
8439 * ada-lang.h (ada_val_print): Don't declare.
8440 * ada-lang.c (ada_language_defn): Update.
8441
8442 2020-03-13 Tom Tromey <tom@tromey.com>
8443
8444 * valprint.c (do_val_print): Update.
8445 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8446 a struct value.
8447 (value_to_value_object_no_release): Declare.
8448 * python/py-value.c (value_to_value_object_no_release): New
8449 function.
8450 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8451 struct value.
8452 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8453 function.
8454 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8455 a struct value.
8456 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8457 Declare.
8458 (gdbscm_apply_val_pretty_printer): Take a struct value.
8459 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8460 value.
8461 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8462 value.
8463 * extension-priv.h (struct extension_language_ops)
8464 <apply_val_pretty_printer>: Take a struct value.
8465 * cp-valprint.c (cp_print_value): Create a struct value.
8466 (cp_print_value): Update.
8467
8468 2020-03-13 Tom Tromey <tom@tromey.com>
8469
8470 * ada-valprint.c (print_field_values): Call common_val_print.
8471
8472 2020-03-13 Tom Tromey <tom@tromey.com>
8473
8474 * ada-valprint.c (val_print_packed_array_elements): Remove
8475 bitoffset and val parameters. Call common_val_print.
8476 (ada_val_print_string): Remove offset, address, and original_value
8477 parameters.
8478 (ada_val_print_array): Update.
8479 (ada_value_print_array): New function.
8480 (ada_value_print_1): Call it.
8481
8482 2020-03-13 Tom Tromey <tom@tromey.com>
8483
8484 * ada-valprint.c (ada_value_print): Use common_val_print.
8485
8486 2020-03-13 Tom Tromey <tom@tromey.com>
8487
8488 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8489
8490 2020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * ada-valprint.c (ada_value_print_num): New function.
8493 (ada_value_print_1): Use it.
8494
8495 2020-03-13 Tom Tromey <tom@tromey.com>
8496
8497 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8498
8499 2020-03-13 Tom Tromey <tom@tromey.com>
8500
8501 * ada-valprint.c (ada_value_print_ptr): New function.
8502 (ada_value_print_1): Use it.
8503
8504 2020-03-13 Tom Tromey <tom@tromey.com>
8505
8506 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8507 call common_val_print.
8508 (ada_val_print_1): Update.
8509 (ada_value_print_1): New function.
8510 (ada_value_print_inner): Rewrite.
8511
8512 2020-03-13 Tom Tromey <tom@tromey.com>
8513
8514 * cp-valprint.c (cp_print_value_fields): Update.
8515 (cp_print_value): New function.
8516
8517 2020-03-13 Tom Tromey <tom@tromey.com>
8518
8519 * m2-valprint.c (m2_value_print_inner): Use
8520 cp_print_value_fields.
8521 * cp-valprint.c (cp_print_value_fields): New function.
8522 * c-valprint.c (c_value_print_struct): New function.
8523 (c_value_print_inner): Use c_value_print_struct.
8524 * c-lang.h (cp_print_value_fields): Declare.
8525
8526 2020-03-13 Tom Tromey <tom@tromey.com>
8527
8528 * c-valprint.c (c_value_print_array): New function.
8529 (c_value_print_inner): Use it.
8530
8531 2020-03-13 Tom Tromey <tom@tromey.com>
8532
8533 * c-valprint.c (c_value_print_memberptr): New function.
8534 (c_value_print_inner): Use it.
8535
8536 2020-03-13 Tom Tromey <tom@tromey.com>
8537
8538 * c-valprint.c (c_value_print_int): New function.
8539 (c_value_print_inner): Use it.
8540
8541 2020-03-13 Tom Tromey <tom@tromey.com>
8542
8543 * c-valprint.c (c_value_print_ptr): New function.
8544 (c_value_print_inner): Use it.
8545
8546 2020-03-13 Tom Tromey <tom@tromey.com>
8547
8548 * c-valprint.c (c_value_print_inner): Rewrite.
8549
8550 2020-03-13 Tom Tromey <tom@tromey.com>
8551
8552 * valprint.c (generic_value_print_complex): New function.
8553 (generic_value_print): Use it.
8554
8555 2020-03-13 Tom Tromey <tom@tromey.com>
8556
8557 * valprint.c (generic_val_print_float): Don't call
8558 val_print_scalar_formatted.
8559 (generic_val_print, generic_value_print): Update.
8560
8561 2020-03-13 Tom Tromey <tom@tromey.com>
8562
8563 * valprint.c (generic_value_print_char): New function
8564 (generic_value_print): Use it.
8565
8566 2020-03-13 Tom Tromey <tom@tromey.com>
8567
8568 * valprint.c (generic_value_print_int): New function.
8569 (generic_value_print): Use it.
8570
8571 2020-03-13 Tom Tromey <tom@tromey.com>
8572
8573 * valprint.c (generic_value_print_bool): New function.
8574 (generic_value_print): Use it.
8575
8576 2020-03-13 Tom Tromey <tom@tromey.com>
8577
8578 * valprint.c (generic_val_print_func): Simplify.
8579 (generic_val_print, generic_value_print): Update.
8580
8581 2020-03-13 Tom Tromey <tom@tromey.com>
8582
8583 * valprint.c (generic_val_print_flags): Remove.
8584 (generic_val_print, generic_value_print): Update.
8585 (val_print_type_code_flags): Add original_value parameter.
8586
8587 2020-03-13 Tom Tromey <tom@tromey.com>
8588
8589 * valprint.c (generic_val_print): Update.
8590 (generic_value_print): Update.
8591 * valprint.c (generic_val_print_enum): Don't call
8592 val_print_scalar_formatted.
8593
8594 2020-03-13 Tom Tromey <tom@tromey.com>
8595
8596 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8597 * valprint.c (generic_value_print_ptr): New function.
8598
8599 2020-03-13 Tom Tromey <tom@tromey.com>
8600
8601 * valprint.c (generic_value_print): Rewrite.
8602
8603 2020-03-13 Tom Tromey <tom@tromey.com>
8604
8605 * p-valprint.c (pascal_object_print_value_fields)
8606 (pascal_object_print_value): New functions.
8607
8608 2020-03-13 Tom Tromey <tom@tromey.com>
8609
8610 * p-valprint.c (pascal_value_print_inner): Rewrite.
8611
8612 2020-03-13 Tom Tromey <tom@tromey.com>
8613
8614 * f-valprint.c (f_value_print_innner): Rewrite.
8615
8616 2020-03-13 Tom Tromey <tom@tromey.com>
8617
8618 * m2-valprint.c (m2_print_unbounded_array): New overload.
8619 (m2_print_unbounded_array): Update.
8620 (m2_print_array_contents): Take a struct value.
8621 (m2_value_print_inner): Rewrite.
8622
8623 2020-03-13 Tom Tromey <tom@tromey.com>
8624
8625 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8626 (d_value_print_inner): New function.
8627 * d-lang.h (d_value_print_inner): Declare.
8628 * d-lang.c (d_language_defn): Use d_value_print_inner.
8629
8630 2020-03-13 Tom Tromey <tom@tromey.com>
8631
8632 * go-valprint.c (go_value_print_inner): New function.
8633 * go-lang.h (go_value_print_inner): Declare.
8634 * go-lang.c (go_language_defn): Use go_value_print_inner.
8635
8636 2020-03-13 Tom Tromey <tom@tromey.com>
8637
8638 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8639 API.
8640 (rust_val_print): Rewrite.
8641 (rust_value_print_inner): New function, from rust_val_print.
8642 (rust_language_defn): Use rust_value_print_inner.
8643
8644 2020-03-13 Tom Tromey <tom@tromey.com>
8645
8646 * ada-valprint.c (ada_value_print_inner): New function.
8647 * ada-lang.h (ada_value_print_inner): Declare.
8648 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8649
8650 2020-03-13 Tom Tromey <tom@tromey.com>
8651
8652 * f-valprint.c (f_value_print_innner): New function.
8653 * f-lang.h (f_value_print_innner): Declare.
8654 * f-lang.c (f_language_defn): Use f_value_print_innner.
8655
8656 2020-03-13 Tom Tromey <tom@tromey.com>
8657
8658 * p-valprint.c (pascal_value_print_inner): New function.
8659 * p-lang.h (pascal_value_print_inner): Declare.
8660 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8661
8662 2020-03-13 Tom Tromey <tom@tromey.com>
8663
8664 * m2-valprint.c (m2_value_print_inner): New function.
8665 * m2-lang.h (m2_value_print_inner): Declare.
8666 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8667
8668 2020-03-13 Tom Tromey <tom@tromey.com>
8669
8670 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8671 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8672 * c-valprint.c (c_value_print_inner): New function.
8673 * c-lang.h (c_value_print_inner): Declare.
8674 * c-lang.c (c_language_defn, cplus_language_defn)
8675 (asm_language_defn, minimal_language_defn): Use
8676 c_value_print_inner.
8677
8678 2020-03-13 Tom Tromey <tom@tromey.com>
8679
8680 * p-valprint.c (pascal_object_print_value_fields): Now static.
8681 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8682
8683 2020-03-13 Tom Tromey <tom@tromey.com>
8684
8685 * c-valprint.c (c_val_print_array): Simplify.
8686
8687 2020-03-13 Tom Tromey <tom@tromey.com>
8688
8689 * valprint.c (value_print_array_elements): New function.
8690 * valprint.h (value_print_array_elements): Declare.
8691
8692 2020-03-13 Tom Tromey <tom@tromey.com>
8693
8694 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8695 * mips-tdep.c (mips_print_register): Use
8696 value_print_scalar_formatted.
8697
8698 2020-03-13 Tom Tromey <tom@tromey.com>
8699
8700 * valprint.h (value_print_scalar_formatted): Declare.
8701 * valprint.c (value_print_scalar_formatted): New function.
8702
8703 2020-03-13 Tom Tromey <tom@tromey.com>
8704
8705 * valprint.h (generic_value_print): Declare.
8706 * valprint.c (generic_value_print): New function.
8707
8708 2020-03-13 Tom Tromey <tom@tromey.com>
8709
8710 * valprint.c (do_val_print): Call la_value_print_inner, if
8711 available.
8712 * rust-lang.c (rust_language_defn): Update.
8713 * p-lang.c (pascal_language_defn): Update.
8714 * opencl-lang.c (opencl_language_defn): Update.
8715 * objc-lang.c (objc_language_defn): Update.
8716 * m2-lang.c (m2_language_defn): Update.
8717 * language.h (struct language_defn) <la_value_print_inner>: New
8718 member.
8719 * language.c (unknown_language_defn, auto_language_defn): Update.
8720 * go-lang.c (go_language_defn): Update.
8721 * f-lang.c (f_language_defn): Update.
8722 * d-lang.c (d_language_defn): Update.
8723 * c-lang.c (c_language_defn, cplus_language_defn)
8724 (asm_language_defn, minimal_language_defn): Update.
8725 * ada-lang.c (ada_language_defn): Update.
8726
8727 2020-03-13 Tom Tromey <tom@tromey.com>
8728
8729 * c-valprint.c (c_value_print): Use common_val_print.
8730
8731 2020-03-13 Tom Tromey <tom@tromey.com>
8732
8733 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8734
8735 2020-03-13 Tom Tromey <tom@tromey.com>
8736
8737 * f-valprint.c (f77_print_array_1, f_val_print): Use
8738 common_val_print.
8739
8740 2020-03-13 Tom Tromey <tom@tromey.com>
8741
8742 * riscv-tdep.c (riscv_print_one_register_info): Use
8743 common_val_print.
8744
8745 2020-03-13 Tom Tromey <tom@tromey.com>
8746
8747 * mi/mi-main.c (output_register): Use common_val_print.
8748
8749 2020-03-13 Tom Tromey <tom@tromey.com>
8750
8751 * infcmd.c (default_print_one_register_info): Use
8752 common_val_print.
8753
8754 2020-03-13 Tom Tromey <tom@tromey.com>
8755
8756 * valprint.h (common_val_print_checked): Declare.
8757 * valprint.c (common_val_print_checked): New function.
8758 * stack.c (print_frame_arg): Use common_val_print_checked.
8759
8760 2020-03-13 Tom Tromey <tom@tromey.com>
8761
8762 * valprint.c (do_val_print): New function, from val_print.
8763 (val_print): Use do_val_print.
8764 (common_val_print): Use do_val_print.
8765
8766 2020-03-13 Tom Tromey <tom@tromey.com>
8767
8768 * valprint.c (value_print): Use scoped_value_mark.
8769
8770 2020-03-13 Tom de Vries <tdevries@suse.de>
8771
8772 PR symtab/25646
8773 * psymtab.c (partial_symtab::partial_symtab): Don't set
8774 globals_offset and statics_offset. Push element onto
8775 current_global_psymbols and current_static_psymbols stacks.
8776 (concat): New function.
8777 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8778 element from current_global_psymbols and current_static_psymbols
8779 stacks. Concat popped elements to global_psymbols and
8780 static_symbols.
8781 (add_psymbol_to_list): Use current_global_psymbols and
8782 current_static_psymbols stacks.
8783 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8784 current_static_psymbols fields.
8785
8786 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8787
8788 * corelow.c (sniff_core_bfd): Remove.
8789 (class core_target) <m_core_vec>: Remove.
8790 (core_target::core_target): Update.
8791 (core_file_fns): Remove.
8792 (deprecated_add_core_fns): Remove.
8793 (default_core_sniffer): Remove.
8794 (sniff_core_bfd): Remove.
8795 (default_check_format): Remove.
8796 (gdb_check_format): Remove.
8797 (core_target_open): Update.
8798 (core_target::get_core_register_section): Update.
8799 (get_core_registers_cb): Update.
8800 (core_target::fetch_registers): Update.
8801 * gdbcore.h (struct core_fns): Remove.
8802 (deprecated_add_core_fns): Remove.
8803 (default_core_sniffer): Remove.
8804 (default_check_format): Remove.
8805
8806 2020-03-12 Tom Tromey <tom@tromey.com>
8807
8808 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8809 CORE_ADDR.
8810 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8811
8812 2020-03-12 Tom Tromey <tom@tromey.com>
8813
8814 * remote.c (remote_target::download_tracepoint)
8815 (remote_target::enable_tracepoint)
8816 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8817 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8818 sprintf_vma.
8819
8820 2020-03-12 Tom Tromey <tom@tromey.com>
8821
8822 * symfile-mem.c: Update CORE_ADDR size assert.
8823
8824 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8825
8826 * selftest.m4: Move to gdbsupport/.
8827 * acinclude.m4: Update path to selftest.m4.
8828
8829 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8830
8831 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8832 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8833 gdbarch-selfselftests.c and selftest-arch.c.
8834 (SUBDIR_UNITTESTS_OBS): Rename to...
8835 (SELFTESTS_OBS): ... this.
8836 (COMMON_SFILES): Remove disasm-selftests.c and
8837 gdbarch-selftests.c.
8838 * configure.ac: Don't add selftest-arch.{c,o} to
8839 CONFIG_{SRCS,OBS}.
8840 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8841 preprocessor conditions.
8842
8843 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * configure.ac: Don't source bfd/development.sh.
8846 * selftest.m4: Modify comment.
8847 * configure: Re-generate.
8848
8849 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8850
8851 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8852 not "true" or "false".
8853 * configure: Re-generate.
8854
8855 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8856
8857 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8858 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8859 renamed to arm_nbsd_supply_gregset.
8860 (fetch_register): Update to call arm_nbsd_supply_gregset.
8861 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8862 (arm_netbsd_nat_target::fetch_registers): Update.
8863 (fetch_elfcore_registers): Removed.
8864 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8865 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8866 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8867 not require NetBSD system headers.
8868 (arm_nbsd_regset): New struct.
8869 (arm_nbsd_iterate_over_regset_sections): New function.
8870 (arm_netbsd_init_abi_common): Updated to call
8871 set_gdbarch_iterate_over_regset_sections.
8872 * arm-nbsd-tdep.h: New file.
8873
8874 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8875
8876 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8877 recursion.
8878
8879 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8880
8881 * configure: Re-generate.
8882
8883 2020-03-11 Tom Tromey <tromey@adacore.com>
8884
8885 * ada-typeprint.c (print_choices): Fix comment.
8886
8887 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8888
8889 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8890 previous item in the list, when the list has no items.
8891
8892 2020-03-11 Tom de Vries <tdevries@suse.de>
8893
8894 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8895 PROP_LOCLIST handling code.
8896
8897 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8898
8899 * buildsym-legacy.c (record_line): Pass extra parameter to
8900 record_line.
8901 * buildsym.c (buildsym_compunit::record_line): Take an extra
8902 parameter, reduce duplication in the line table, and record the
8903 is_stmt flag in the line table.
8904 * buildsym.h (buildsym_compunit::record_line): Add extra
8905 parameter.
8906 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8907 non-statement lines.
8908 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8909 this to the symtab builder.
8910 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8911 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8912 through to dwarf_record_line_1.
8913 * infrun.c (process_event_stop_test): When stepping, don't stop at
8914 a non-statement instruction, and only refresh the step info when
8915 we land in the middle of a line's range. Also add an extra
8916 comment.
8917 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8918 field.
8919 * record-btrace.c (btrace_find_line_range): Only record lines
8920 marked as is-statement.
8921 * stack.c (frame_show_address): Show the frame address if we are
8922 in a non-statement sal.
8923 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8924 (maintenance_print_one_line_table): Print a header for the is_stmt
8925 column, and include is_stmt information in the output.
8926 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8927 preference to non-statements.
8928 (find_pcs_for_symtab_line): Prefer is-statement entries.
8929 (find_line_common): Likewise.
8930 * symtab.h (struct linetable_entry): Add is_stmt field.
8931 (struct symtab_and_line): Likewise.
8932 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8933 arranging the line table.
8934
8935 2020-03-07 Tom de Vries <tdevries@suse.de>
8936
8937 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8938 DIE.
8939
8940 2020-03-07 Tom Tromey <tom@tromey.com>
8941
8942 * valops.c (value_literal_complex): Remove obsolete comment.
8943 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8944 comment.
8945
8946 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8947
8948 * infrun.h: Forward-declare thread_info.
8949 (set_step_info): Add thread_info parameter, add doc.
8950 * infrun.c (set_step_info): Add thread_info parameter, move doc
8951 to header.
8952 * infrun.c (process_event_stop_test): Pass thread to
8953 set_step_info call.
8954 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8955 set_step_info.
8956 (prepare_one_step): Add thread_info parameter, pass it to
8957 set_step_frame and prepare_one_step (recursive) call.
8958 (step_1): Pass thread to prepare_one_step call.
8959 (step_command_fsm::should_stop): Pass thread to
8960 prepare_one_step.
8961 (until_next_fsm): Pass thread to set_step_frame call.
8962 (finish_command): Pass thread to set_step_info call.
8963
8964 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8965
8966 * windows-tdep.c (windows_solib_create_inferior_hook):
8967 Check if inferior is running.
8968
8969 2020-03-06 Tom de Vries <tdevries@suse.de>
8970
8971 * NEWS: Fix "the the".
8972 * ctfread.c: Same.
8973
8974 2020-03-06 Tom de Vries <tdevries@suse.de>
8975
8976 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8977
8978 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8979
8980 * .dir-locals.el: Add a comment referencing the other copies of
8981 this file.
8982
8983 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8984
8985 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8986 psargs.
8987
8988 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8989
8990 * .gitattributes: New file.
8991
8992 2020-03-04 Tom Tromey <tom@tromey.com>
8993
8994 * symmisc.c (print_symbol_bcache_statistics)
8995 (print_objfile_statistics): Update.
8996 * symfile.c (allocate_symtab): Use intern.
8997 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8998 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8999 macro_cache>: Remove.
9000 <string_cache>: New member.
9001 (struct objfile) <intern>: New methods.
9002 * elfread.c (elf_symtab_read): Use intern.
9003 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9004 (dwarf2_compute_name, dwarf2_physname)
9005 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9006 names.
9007 (guess_partial_die_structure_name): Update.
9008 (partial_die_info::fixup): Intern name.
9009 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9010 name.
9011 (dwarf2_name): Intern name. Update.
9012 * buildsym.c (buildsym_compunit::get_macro_table): Use
9013 string_cache.
9014
9015 2020-03-04 Tom Tromey <tom@tromey.com>
9016
9017 * jit.c (bfd_open_from_target_memory): Make "target" const.
9018 * corefile.c (gnutarget): Now const.
9019 * gdbcore.h (gnutarget): Now const.
9020
9021 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9022
9023 * NEWS: Mention support for WOW64 processes.
9024 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9025 (amd64_windows_segment_register_p): Remove static.
9026 (_initialize_amd64_windows_nat): Update.
9027 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9028 * i386-windows-nat.c (context_offset): Update.
9029 (i386_mappings): Rename and remove static.
9030 (i386_windows_segment_register_p): Remove static.
9031 (_initialize_i386_windows_nat): Update.
9032 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9033 (STATUS_WX86_SINGLE_STEP): New macro.
9034 (EnumProcessModulesEx): New macro.
9035 (Wow64SuspendThread): New macro.
9036 (Wow64GetThreadContext): New macro.
9037 (Wow64SetThreadContext): New macro.
9038 (Wow64GetThreadSelectorEntry): New macro.
9039 (windows_set_context_register_offsets): Add static.
9040 (windows_set_segment_register_p): Likewise.
9041 (windows_add_thread): Adapt for WOW64 processes.
9042 (windows_fetch_one_register): Likewise.
9043 (windows_nat_target::fetch_registers): Likewise.
9044 (windows_store_one_register): Likewise.
9045 (display_selector): Likewise.
9046 (display_selectors): Likewise.
9047 (handle_exception): Likewise.
9048 (windows_continue): Likewise.
9049 (windows_nat_target::resume): Likewise.
9050 (windows_add_all_dlls): Likewise.
9051 (do_initial_windows_stuff): Likewise.
9052 (windows_nat_target::attach): Likewise.
9053 (windows_get_exec_module_filename): Likewise.
9054 (windows_nat_target::create_inferior): Likewise.
9055 (windows_xfer_siginfo): Likewise.
9056 (_initialize_loadable): Initialize Wow64SuspendThread,
9057 Wow64GetThreadContext, Wow64SetThreadContext,
9058 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9059 * windows-nat.h (windows_set_context_register_offsets):
9060 Remove declaration.
9061 (windows_set_segment_register_p): Likewise.
9062 (i386_windows_segment_register_p): Add declaration.
9063 (amd64_windows_segment_register_p): Likewise.
9064
9065 2020-03-04 Luis Machado <luis.machado@linaro.org>
9066
9067 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9068 in "info registers" for AArch64/ARM.
9069
9070 The change caused "info registers" to not print GPR's.
9071
9072 gdb/ChangeLog:
9073
9074 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9075
9076 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9077 when reg->group is empty and reggroup is not.
9078
9079 2020-03-03 Tom Tromey <tromey@adacore.com>
9080
9081 * dwarf2/frame.c (struct dwarf2_frame_cache)
9082 <checked_tailcall_bottom, entry_cfa_sp_offset,
9083 entry_cfa_sp_offset_p>: Remove members.
9084 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9085 (dwarf2_frame_prev_register): Don't call
9086 dwarf2_tailcall_sniffer_first.
9087 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9088 * frame-unwind.c (add_unwinder): New fuction.
9089 (frame_unwind_init): Use it. Add tailcall unwinder.
9090
9091 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9092 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9093
9094 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9095 value should be printed as true.
9096
9097 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9098
9099 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9100 (windows_init_abi): Set and use windows_so_ops.
9101
9102 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9103
9104 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9105 when verifying if dealing with a convenience variable.
9106
9107 2020-03-03 Luis Machado <luis.machado@linaro.org>
9108
9109 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9110
9111 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9112
9113 * infrun.c (gdbarch_supports_displaced_stepping): New.
9114 (use_displaced_stepping): Break up conditions in smaller pieces.
9115 Use gdbarch_supports_displaced_stepping.
9116 (displaced_step_prepare_throw): Use
9117 gdbarch_supports_displaced_stepping.
9118
9119 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9120
9121 * NEWS: Mention new behaviour of the history filename.
9122 * top.c (write_history_p): Add comment.
9123 (show_write_history_p): Add header comment, give a different
9124 message when history writing is on, but the history filename is
9125 empty.
9126 (history_filename): Add comment.
9127 (history_filename_empty): New function.
9128 (show_history_filename): Add header comment, give a different
9129 message when the filename is empty.
9130 (init_history): Compare history_filename against nullptr, and only
9131 read history if the filename is not empty.
9132 (set_history_filename): Add header comment, and only make
9133 non-empty filenames absolute.
9134 (init_main): Make the filename argument to 'set history filename'
9135 optional.
9136
9137 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9138
9139 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9140 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9141 (fetch_fp_register): Update.
9142 (fetch_fp_regs): Update.
9143 (store_fp_register): Update.
9144 (store_fp_regs): Update.
9145 (arm_netbsd_nat_target::read_description): New function.
9146 (fetch_elfcore_registers): Update.
9147
9148 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9149
9150 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9151 general_thread if the stop reply is missing a thread-id.
9152 (remote_target::process_stop_reply): Use the first non-exited
9153 thread if the target didn't pass a thread-id.
9154 * infrun.c (do_target_wait): Move call to
9155 switch_to_inferior_no_thread to ....
9156 (do_target_wait_1): ... here.
9157
9158 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9159
9160 * debuginfod-support.c: Include defs.h first.
9161
9162 2020-02-28 Tom de Vries <tdevries@suse.de>
9163
9164 * symfile.c (set_initial_language): Use default language for lookup.
9165
9166 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9169 reader variable, pass `this` to read_cutu_die_from_dwo.
9170
9171 2020-02-27 Aaron Merey <amerey@redhat.com>
9172
9173 * source.c (open_source_file): Check for nullptr when computing
9174 srcpath.
9175
9176 2020-02-27 Tom Tromey <tromey@adacore.com>
9177
9178 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9179 member.
9180 (dwarf2_add_field): Don't update nfields.
9181 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9182
9183 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9184
9185 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9186 abs.
9187
9188 2020-02-26 Tom Tromey <tom@tromey.com>
9189
9190 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9191 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9192 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9193 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9194 per_cu_data.
9195
9196 2020-02-26 Tom Tromey <tom@tromey.com>
9197
9198 * dwarf2/index-write.c (psym_index_map): Change type.
9199 (add_address_entry_worker, write_one_signatured_type)
9200 (recursively_count_psymbols, recursively_write_psymbols)
9201 (class debug_names, psyms_seen_size, write_gdbindex)
9202 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9203
9204 2020-02-26 Aaron Merey <amerey@redhat.com>
9205
9206 * Makefile.in: Handle optional debuginfod support.
9207 * NEWS: Update.
9208 * README: Add --with-debuginfod summary.
9209 * config.in: Regenerate.
9210 * configure: Regenerate.
9211 * configure.ac: Handle optional debuginfod support.
9212 * debuginfod-support.c: debuginfod helper functions.
9213 * debuginfod-support.h: Ditto.
9214 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9215 summary.
9216 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9217 when a dwz file cannot be found.
9218 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9219 debuginfo file cannot be found.
9220 * source.c (open_source_file): Query debuginfod servers when a
9221 source file cannot be found.
9222 * top.c (print_gdb_configuration): Include
9223 --{with,without}-debuginfod in the output.
9224
9225 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9226
9227 * thread.c (thr_try_catch_cmd): Print thread name.
9228
9229 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9230
9231 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9232 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9233 dwarf2_fetch_die_type_sect_off): Move to...
9234 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9235 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9236 dwarf2_fetch_die_type_sect_off): ... here.
9237 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9238 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9239 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9240
9241 2020-02-26 Tom de Vries <tdevries@suse.de>
9242
9243 PR gdb/25603
9244 * symfile.c (set_initial_language): Exit-early if
9245 language_mode == language_mode_manual.
9246
9247 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9248
9249 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9250 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9251 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9252
9253 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9254
9255 * gdbtypes.c (create_array_type_with_stride): Handle negative
9256 array strides.
9257 * valarith.c (value_subscripted_rvalue): Likewise.
9258
9259 2020-02-25 Luis Machado <luis.machado@linaro.org>
9260
9261 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9262
9263 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9264
9265 * loc.h (dwarf2_get_die_type): Move to...
9266 * read.h (dwarf2_get_die_type): ... here.
9267 * read.c (dwarf2_get_die_type): Move doc to header.
9268
9269 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9270
9271 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9272 'gnulib/Makefile.in' to the list.
9273
9274 2020-02-24 Tom Tromey <tom@tromey.com>
9275
9276 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9277 Remove.
9278 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9279 XOBNEWVEC.
9280
9281 2020-02-24 Tom Tromey <tom@tromey.com>
9282
9283 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9284 New method.
9285 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9286 (dw2_do_instantiate_symtab, dw2_get_file_names)
9287 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9288
9289 2020-02-24 Tom Tromey <tom@tromey.com>
9290
9291 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9292 make_scoped_restore.
9293 (dwarf2_psymtab::read_symtab): Don't clear
9294 reading_partial_symbols.
9295
9296 2020-02-24 Tom de Vries <tdevries@suse.de>
9297
9298 PR gdb/25592
9299 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9300
9301 2020-02-24 Tom de Vries <tdevries@suse.de>
9302
9303 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9304 commands layout next/prev/regs.
9305
9306 2020-02-22 Tom Tromey <tom@tromey.com>
9307
9308 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9309 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9310
9311 2020-02-22 Tom Tromey <tom@tromey.com>
9312
9313 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9314
9315 2020-02-22 Tom Tromey <tom@tromey.com>
9316
9317 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9318 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9319 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9320 * tui/tui.c (_initialize_tui): Add usage text.
9321
9322 2020-02-22 Tom Tromey <tom@tromey.com>
9323
9324 * tui/tui-win.c (tui_set_focus_command)
9325 (tui_set_win_height_command): Use error_no_arg.
9326 (_initialize_tui_win): Update help text.
9327 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9328
9329 2020-02-22 Tom Tromey <tom@tromey.com>
9330
9331 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9332 * tui/tui-disasm.h (struct tui_disasm_window)
9333 <display_start_addr>: Declare.
9334 * tui/tui-source.h (struct tui_source_window)
9335 <display_start_addr>: Declare.
9336 * tui/tui-winsource.h (struct tui_source_window_base)
9337 <show_source_line, display_start_addr>: New methods.
9338 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9339 Rename and move to protected section.
9340 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9341 (tui_source_window_base::do_erase_source_content): Update.
9342 (tui_source_window_base::show_source_line): Now a method.
9343 (tui_source_window_base::show_source_content)
9344 (tui_source_window_base::tui_source_window_base)
9345 (tui_source_window_base::rerender)
9346 (tui_source_window_base::refill)
9347 (tui_source_window_base::do_scroll_horizontal)
9348 (tui_source_window_base::set_is_exec_point_at)
9349 (tui_source_window_base::update_breakpoint_info)
9350 (tui_source_window_base::update_exec_info): Update.
9351 * tui/tui-source.c (tui_source_window::set_contents)
9352 (tui_source_window::showing_source_p)
9353 (tui_source_window::do_scroll_vertical)
9354 (tui_source_window::location_matches_p)
9355 (tui_source_window::line_is_displayed): Update.
9356 (tui_source_window::display_start_addr): New method.
9357 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9358 (tui_disasm_window::do_scroll_vertical)
9359 (tui_disasm_window::location_matches_p): Update.
9360 (tui_disasm_window::display_start_addr): New method.
9361
9362 2020-02-22 Tom Tromey <tom@tromey.com>
9363
9364 * NEWS: Add entry for gdb.register_window_type.
9365 * tui/tui-layout.h (window_factory): New typedef.
9366 (tui_register_window): Declare.
9367 * tui/tui-layout.c (saved_tui_windows): New global.
9368 (tui_apply_current_layout): Use it.
9369 (tui_register_window): New function.
9370 * python/python.c (do_start_initialization): Call
9371 gdbpy_initialize_tui.
9372 (python_GdbMethods): Add "register_window_type" function.
9373 * python/python-internal.h (gdbpy_register_tui_window)
9374 (gdbpy_initialize_tui): Declare.
9375 * python/py-tui.c: New file.
9376 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9377
9378 2020-02-22 Tom Tromey <tom@tromey.com>
9379
9380 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9381
9382 2020-02-22 Tom Tromey <tom@tromey.com>
9383
9384 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9385 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9386 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9387 (tui_set_win_focus_to): Move from tui-win.c.
9388
9389 2020-02-22 Tom Tromey <tom@tromey.com>
9390
9391 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9392 functions.
9393 (known_window_types): New global.
9394 (tui_get_window_by_name): Reimplement.
9395 (initialize_known_windows): New function.
9396 (validate_window_name): Rewrite.
9397 (_initialize_tui_layout): Call initialize_known_windows.
9398
9399 2020-02-22 Tom Tromey <tom@tromey.com>
9400
9401 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9402 Remove constants.
9403 * tui/tui-winsource.h (struct tui_source_window_base)
9404 <tui_source_window_base>: Remove parameter.
9405 * tui/tui-winsource.c
9406 (tui_source_window_base::tui_source_window_base): Remove
9407 parameter.
9408 (tui_source_window_base::refill): Update.
9409 * tui/tui-stack.h (struct tui_locator_window)
9410 <tui_locator_window>: Update.
9411 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9412 Default the constructor.
9413 * tui/tui-regs.h (struct tui_data_item_window)
9414 <tui_data_item_window>: Default the constructor.
9415 (struct tui_data_window) <tui_data_window>: Likewise.
9416 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9417 Default the constructor.
9418 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9419 Default the constructor.
9420 <type>: Remove.
9421 (struct tui_win_info) <tui_win_info>: Default the constructor.
9422 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9423 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9424 Default the constructor.
9425
9426 2020-02-22 Tom Tromey <tom@tromey.com>
9427
9428 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9429 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9430 * tui/tui-win.c (tui_resize_all): Don't call
9431 tui_delete_invisible_windows.
9432 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9433 done.
9434 (tui_set_layout): Update.
9435 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9436 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9437 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9438
9439 2020-02-22 Tom Tromey <tom@tromey.com>
9440
9441 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9442 correctly.
9443
9444 2020-02-22 Tom Tromey <tom@tromey.com>
9445
9446 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9447
9448 2020-02-22 Tom Tromey <tom@tromey.com>
9449
9450 * tui/tui-winsource.h (struct tui_source_window_iterator)
9451 <inner_iterator>: New etytypedef.
9452 <tui_source_window_iterator>: Take "end" parameter.
9453 <tui_source_window_iterator>: Take iterator.
9454 <operator*, advance>: Update.
9455 <m_iter>: Change type.
9456 <m_end>: New field.
9457 (struct tui_source_windows) <begin, end>: Update.
9458 * tui/tui-layout.c (tui_windows): New global.
9459 (tui_apply_current_layout): Clear tui_windows.
9460 (tui_layout_window::apply): Update tui_windows.
9461 * tui/tui-data.h (tui_windows): Declare.
9462 (all_tui_windows): Now inline function.
9463 (class tui_window_iterator, struct all_tui_windows): Remove.
9464
9465 2020-02-22 Tom Tromey <tom@tromey.com>
9466
9467 PR tui/17850:
9468 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9469 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9470 "height" argument.
9471 (class tui_layout_window) <get_sizes>: Likewise.
9472 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9473 argument.
9474 <get_sizes>: Add "height" argument.
9475 <m_vertical>: New field.
9476 * tui/tui-layout.c (tui_layout_split::clone): Update.
9477 (tui_layout_split::get_sizes): Add "height" argument.
9478 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9479 (tui_new_layout_command): Parse "-horizontal".
9480 (_initialize_tui_layout): Update help string.
9481 (tui_layout_split::specification): Add "-horizontal" when needed.
9482 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9483 argument.
9484 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9485 New methods.
9486
9487 2020-02-22 Tom Tromey <tom@tromey.com>
9488
9489 * tui/tui-layout.h (enum tui_adjust_result): New.
9490 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9491 (class tui_layout_window) <adjust_size>: Return
9492 tui_adjust_result. Rewrite.
9493 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9494 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9495
9496 2020-02-22 Tom Tromey <tom@tromey.com>
9497
9498 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9499 parameter and return types.
9500 (class tui_layout_base) <specification>: Add "depth".
9501 (class tui_layout_window) <specification>: Add "depth".
9502 (class tui_layout_split) <specification>: Add "depth".
9503 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9504 and return types.
9505 (tui_new_layout_command): Parse sub-layouts.
9506 (_initialize_tui_layout): Update help string.
9507 (tui_layout_window::specification): Add "depth".
9508 (add_layout_command): Update.
9509
9510 2020-02-22 Tom Tromey <tom@tromey.com>
9511
9512 * NEWS: Add "tui new-layout" item.
9513 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9514 Add new-layout command to help text.
9515 (validate_window_name): New function.
9516 (tui_new_layout_command): New function.
9517 (_initialize_tui_layout): Register "new-layout".
9518 (tui_layout_window::specification): New method.
9519 (tui_layout_window::specification): New method.
9520 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9521 method.
9522 (class tui_layout_window) <specification>: New method.
9523 (class tui_layout_split) <specification>: New method.
9524
9525 2020-02-22 Tom Tromey <tom@tromey.com>
9526
9527 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9528 * tui/tui-win.c (window_name_completer): Update comment.
9529 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9530 Declare method.
9531 (class tui_layout_window) <replace_window>: Likewise.
9532 (class tui_layout_split) <replace_window>: Likewise.
9533 (tui_set_layout): Don't declare.
9534 (tui_set_initial_layout): Declare function.
9535 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9536 (asm_regs_layout): New globals.
9537 (tui_current_layout, show_layout): Remove.
9538 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9539 (find_layout, tui_apply_layout): New function.
9540 (layout_completer): Remove.
9541 (tui_next_layout): Reimplement.
9542 (tui_next_layout_command): New function.
9543 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9544 (tui_regs_layout): Reimplement.
9545 (tui_regs_layout_command): New function.
9546 (extract_display_start_addr): Rewrite.
9547 (next_layout, prev_layout): Remove.
9548 (tui_layout_window::replace_window): New method.
9549 (tui_layout_split::replace_window): New method.
9550 (destroy_layout): New function.
9551 (layout_list): New global.
9552 (add_layout_command): New function.
9553 (initialize_layouts): Update.
9554 (tui_layout_command): New function.
9555 (_initialize_tui_layout): Install "layout" commands.
9556 * tui/tui-data.h (enum tui_layout_type): Remove.
9557 (tui_current_layout): Don't declare.
9558
9559 2020-02-22 Tom Tromey <tom@tromey.com>
9560
9561 * tui/tui-regs.c (tui_reg_layout): Remove.
9562 (tui_reg_command): Use tui_regs_layout.
9563 * tui/tui-layout.h (tui_reg_command): Declare.
9564 * tui/tui-layout.c (tui_reg_command): New function.
9565
9566 2020-02-22 Tom Tromey <tom@tromey.com>
9567
9568 * tui/tui.c (tui_rl_delete_other_windows): Call
9569 tui_remove_some_windows.
9570 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9571 Declare method.
9572 (class tui_layout_window) <remove_windows>: New method.
9573 (class tui_layout_split) <remove_windows>: Declare.
9574 (tui_remove_some_windows): Declare.
9575 * tui/tui-layout.c (tui_remove_some_windows): New function.
9576 (tui_layout_split::remove_windows): New method.
9577
9578 2020-02-22 Tom Tromey <tom@tromey.com>
9579
9580 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9581 * tui/tui-layout.h (tui_next_layout): Declare.
9582 * tui/tui-layout.c (tui_next_layout): New function.
9583
9584 2020-02-22 Tom Tromey <tom@tromey.com>
9585
9586 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9587 correct coordinates.
9588
9589 2020-02-22 Tom Tromey <tom@tromey.com>
9590
9591 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9592 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9593 DATA_WIN case.
9594
9595 2020-02-22 Tom Tromey <tom@tromey.com>
9596
9597 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9598 TUI_DISASM_WIN, not tui_win_list.
9599
9600 2020-02-22 Tom Tromey <tom@tromey.com>
9601
9602 * valprint.c (generic_val_print_enum_1)
9603 (val_print_type_code_flags): Style member names.
9604 * rust-lang.c (val_print_struct, rust_print_enum)
9605 (rust_print_struct_def, rust_internal_print_type): Style member
9606 names.
9607 * p-valprint.c (pascal_object_print_value_fields): Style member
9608 names. Only call fprintf_symbol_filtered for static members.
9609 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9610 * f-valprint.c (f_val_print): Style member names.
9611 * f-typeprint.c (f_type_print_base): Style member names.
9612 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9613 call fprintf_symbol_filtered for static members.
9614 (cp_print_class_member): Style member names.
9615 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9616 member names.
9617 * ada-valprint.c (ada_print_scalar): Style enum names.
9618 (ada_val_print_enum): Likewise.
9619 * ada-typeprint.c (print_enum_type): Style enum names.
9620
9621 2020-02-21 Tom Tromey <tom@tromey.com>
9622
9623 * psympriv.h (struct partial_symtab): Update comment.
9624
9625 2020-02-21 Tom Tromey <tromey@adacore.com>
9626
9627 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9628 type is CORE_ADDR.
9629
9630 2020-02-21 Tom de Vries <tdevries@suse.de>
9631
9632 PR gdb/25534
9633 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9634 if dependencies[i]->user != NULL.
9635
9636 2020-02-21 Ali Tamur <tamur@google.com>
9637
9638 * dwarf2/read.c (dwarf2_name): Add null check.
9639
9640 2020-02-20 Tom Tromey <tom@tromey.com>
9641
9642 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9643 ">=", in binary search.
9644 (dwarf2_find_containing_comp_unit): New overload.
9645 (run_test): New self-test.
9646 (_initialize_dwarf2_read): Register new test.
9647
9648 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9649
9650 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9651 * riscv-tdep.h: Likewise.
9652 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9653 rv32-only CSR.
9654 * features/riscv/64bit-csr.xml: Regenerated.
9655
9656 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9657 Tom Tromey <tom@tromey.com>
9658
9659 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9660 of 'fputc_unfiltered'.
9661 (putchar_unfiltered): Call 'fputc_unfiltered'.
9662 (fputc_unfiltered): Call 'fputs_unfiltered'.
9663
9664 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9665
9666 * config.in: Regenerate.
9667 * configure: Regenerate.
9668 * configure.ac: Add --with-python-libdir option.
9669 * main.c: Use WITH_PYTHON_LIBDIR.
9670
9671 2020-02-19 Tom Tromey <tom@tromey.com>
9672
9673 * symtab.c (general_symbol_info::compute_and_set_names): Use
9674 obstack_strndup. Simplify call to symbol_set_demangled_name.
9675
9676 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9677
9678 * dwarf2/read.c (allocate_signatured_type_table,
9679 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9680 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9681 Remove objfile parameter, update all callers.
9682
9683 2020-02-19 Doug Evans <dje@google.com>
9684
9685 PR rust/25535
9686 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9687 rust_enum_variant calculation.
9688
9689 2020-02-19 Tom Tromey <tromey@adacore.com>
9690
9691 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9692
9693 2020-02-19 Tom Tromey <tromey@adacore.com>
9694
9695 * ada-lang.c (cache_symbol): Use obstack_strdup.
9696
9697 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9698
9699 * configure: Regenerate.
9700
9701 2020-02-19 Tom Tromey <tromey@adacore.com>
9702
9703 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9704 NULL check.
9705
9706 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9707
9708 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9709
9710 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9711
9712 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9713 if GDBSERVER is not defined.
9714 (riscv_tdesc_cache): Likewise, also store const target_desc.
9715 (STATIC_IN_GDB): Define.
9716 (riscv_create_target_description): Update declaration with
9717 STATIC_IN_GDB.
9718 (riscv_lookup_target_description): New function, only define if
9719 GDBSERVER is not defined.
9720 * arch/riscv.h (riscv_create_target_description): Declare only
9721 when GDBSERVER is defined.
9722 (riscv_lookup_target_description): New declaration when GDBSERVER
9723 is not defined.
9724 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9725 (riscv_linux_read_features): ...this, and return
9726 riscv_gdbarch_features instead of target_desc.
9727 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9728 (riscv_linux_read_description): Rename to...
9729 (riscv_linux_read_features): ...this.
9730 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9731 Update to use riscv_gdbarch_features and
9732 riscv_lookup_target_description.
9733 * riscv-tdep.c (riscv_find_default_target_description): Use
9734 riscv_lookup_target_description instead of
9735 riscv_create_target_description.
9736
9737 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9738
9739 * valprint.c (generic_val_print_enum_1): When printing a flag
9740 enum with value 0 and there is no enumerator with value 0, print
9741 just "0" instead of "(unknown: 0x0)".
9742
9743 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * valprint.c (generic_val_print_enum_1): Print unknown part of
9746 flag enum in hex.
9747
9748 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9749
9750 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9751 flag enums to contain duplicate enumerators.
9752 * valprint.c (generic_val_print_enum_1): Update comment.
9753
9754 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * dwarf2/read.c: Include "count-one-bits.h".
9757 (update_enumeration_type_from_children): If an enumerator has
9758 multiple bits set, don't treat the enumeration as a "flag enum".
9759 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9760 of flag enums have 0 or 1 bit set.
9761
9762 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9763
9764 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9765 conversion.
9766 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9767 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9768 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9769 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9770 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9771
9772 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9773
9774 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9775
9776 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9777
9778 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9779 displaced_step_closure_up.
9780 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9781 (struct displaced_step_closure_up):
9782 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9783 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9784 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9785 Likewise.
9786 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9787 * gdbarch.c, gdbarch.h: Re-generate.
9788 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9789 displaced_step_closure_up.
9790 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9791 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9792 * infrun.h (displaced_step_closure_up): New type alias.
9793 (struct displaced_step_inferior_state) <step_closure>: Change
9794 type to displaced_step_closure_up.
9795 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9796 displaced_step_closure_up.
9797 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9798
9799 2020-02-14 Tom Tromey <tom@tromey.com>
9800
9801 * minidebug.c (gnu_debug_key): New global.
9802 (find_separate_debug_file_in_section): Use it.
9803
9804 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9805
9806 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9807 std::unique_ptr.
9808 * gdbarch.c: Re-generate.
9809 * gdbarch.h: Re-generate.
9810 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9811 change.
9812 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9813 type to std::unique_ptr.
9814 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9815 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9816 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9817 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9818 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9819 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9820 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9821 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9822 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9823
9824 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9825
9826 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9827 std::unique_ptr.
9828 (displaced_step_clear): Rename to...
9829 (displaced_step_reset): ... this. Just call displaced->reset ().
9830 (displaced_step_clear_cleanup): Rename to...
9831 (displaced_step_reset_cleanup): ... this.
9832 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9833 (displaced_step_fixup): Likewise.
9834 (resume_1): Likewise.
9835 (handle_inferior_event): Restore child's memory before calling
9836 displaced_step_fixup on the parent.
9837 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9838 to std::unique_ptr.
9839 <step_closure>: Change type to std::unique_ptr.
9840
9841 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9842
9843 * arm-tdep.c: Include count-one-bits.h.
9844 (cleanup_block_store_pc): Use count_one_bits.
9845 (cleanup_block_load_pc): Use count_one_bits.
9846 (arm_copy_block_xfer): Use count_one_bits.
9847 (thumb2_copy_block_xfer): Use count_one_bits.
9848 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9849 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9850 (thumb_get_next_pcs_raw): Use count_one_bits.
9851 (arm_get_next_pcs_raw): Use count_one_bits_l.
9852 * arch/arm.c (bitcount): Remove.
9853 * arch/arm.h (bitcount): Remove.
9854
9855 2020-02-14 Tom Tromey <tromey@adacore.com>
9856
9857 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9858 Update.
9859 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9860 * dwarf2/loc.c (call_site_find_chain_1): Return
9861 unique_xmalloc_ptr.
9862 (call_site_find_chain): Likewise.
9863
9864 2020-02-14 Richard Biener <rguenther@suse.de>
9865
9866 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9867 on expression with division operators.
9868
9869 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9870
9871 * MAINTAINERS (Write After Approval): Adding myself.
9872
9873 2020-02-12 Tom Tromey <tom@tromey.com>
9874
9875 * event-loop.c (event_data, gdb_event, event_handler_func):
9876 Remove.
9877
9878 2020-02-12 Tom Tromey <tom@tromey.com>
9879
9880 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9881 (dwarf2_frame_objfile_data): Add comment.
9882 (find_comp_unit, set_comp_unit): New functions.
9883 (dwarf2_frame_find_fde): Use find_comp_unit.
9884 (dwarf2_build_frame_info): Use set_comp_unit.
9885
9886 2020-02-12 Tom Tromey <tom@tromey.com>
9887
9888 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9889 (comp_unit): Don't initialize objfile.
9890 (execute_cfa_program): Add text_offset parameter.
9891 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9892 (dwarf2_frame_cache): Update.
9893 (dwarf2_build_frame_info): Don't set "objfile" member.
9894
9895 2020-02-12 Tom Tromey <tom@tromey.com>
9896
9897 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9898 (decode_frame_entry): Likewise.
9899 (dwarf2_build_frame_info): Update.
9900
9901 2020-02-12 Tom Tromey <tom@tromey.com>
9902
9903 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9904 (decode_frame_entry_1): Use the comp_unit obstack.
9905
9906 2020-02-12 Tom Tromey <tom@tromey.com>
9907
9908 * dwarf2/frame.c (struct comp_unit): Add initializers and
9909 constructor.
9910 (dwarf2_frame_objfile_data): Store a comp_unit.
9911 (dwarf2_frame_find_fde): Update.
9912 (dwarf2_build_frame_info): Use "new".
9913
9914 2020-02-12 Tom Tromey <tom@tromey.com>
9915
9916 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9917 (dwarf2_fde_table): Typedef for std::vector.
9918 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9919 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9920 (decode_frame_entry): Update.
9921 (dwarf2_build_frame_info): Use "new".
9922
9923 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9924
9925 * arm-tdep.c (arm_gdbarch_init): Update.
9926 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9927 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9928 have_neon, is_m>: Change to bool.
9929
9930 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9931
9932 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9933
9934 2020-02-12 Tom Tromey <tom@tromey.com>
9935
9936 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9937
9938 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9939
9940 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9941 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9942
9943 2020-02-11 Tom Tromey <tom@tromey.com>
9944
9945 * psymtab.h: Update comment.
9946
9947 2020-02-11 Tom Tromey <tom@tromey.com>
9948
9949 * gdb_obstack.h (struct auto_obstack): Use
9950 DISABLE_COPY_AND_ASSIGN.
9951
9952 2020-02-11 Tom Tromey <tom@tromey.com>
9953
9954 * dwarf2/frame.h (struct objfile): Don't forward declare.
9955
9956 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9957
9958 * cris-tdep.c (cris_supply_gregset): Change signature to match
9959 what struct regset expects.
9960 (cris_regset): New struct.
9961 (fetch_core_registers): Remove.
9962 (cris_iterate_over_regset_sections): New function.
9963 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9964 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9965
9966 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9967
9968 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9969 registers.
9970
9971 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9972
9973 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9974
9975 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9976
9977 * configure: Re-generate.
9978
9979 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9980
9981 * configure: Re-generate.
9982
9983 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9984
9985 * acinclude: Update warning.m4 path.
9986 * warning.m4: Move to gdbsupport.
9987
9988 2020-02-11 Tom Tromey <tromey@adacore.com>
9989
9990 * remote.c (remote_console_output): Update.
9991 * printcmd.c (printf_command): Update.
9992 * event-loop.c (gdb_wait_for_event): Update.
9993 * linux-nat.c (sigchld_handler): Update.
9994 * remote-sim.c (gdb_os_write_stdout): Update.
9995 (gdb_os_flush_stdout): Update.
9996 (gdb_os_flush_stderr): Update.
9997 (gdb_os_write_stderr): Update.
9998 * exceptions.c (print_exception): Update.
9999 * remote-fileio.c (remote_fileio_func_read): Update.
10000 (remote_fileio_func_write): Update.
10001 * tui/tui.c (tui_enable): Update.
10002 * tui/tui-interp.c (tui_interp::init): Update.
10003 * utils.c (init_page_info): Update.
10004 (putchar_unfiltered, fputc_unfiltered): Update.
10005 (gdb_flush): Update.
10006 (emit_style_escape): Update.
10007 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10008 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10009 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10010 (stderr_file::write): Update.
10011 (stderr_file::puts): Update.
10012 * ui-file.h (ui_file_isatty, ui_file_write)
10013 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10014 (ui_file_puts): Don't declare.
10015
10016 2020-02-10 Tom de Vries <tdevries@suse.de>
10017
10018 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10019 sentinel to char *.
10020
10021 2020-02-09 Tom de Vries <tdevries@suse.de>
10022
10023 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10024 filename if it matches "<artificial>".
10025
10026 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10027
10028 * windows-tdep.c (struct enum_value_name): New struct.
10029 (create_enum): New function.
10030 (windows_get_siginfo_type): Create and use enum types.
10031
10032 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10033
10034 * NEWS: Mention $_siginfo support for Windows.
10035 * windows-nat.c (handle_exception): Set siginfo_er.
10036 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10037 (windows_xfer_siginfo): New function.
10038 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10039 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10040 (init_windows_gdbarch_data): New function.
10041 (get_windows_gdbarch_data): New function.
10042 (windows_get_siginfo_type): New function.
10043 (windows_init_abi): Register windows_get_siginfo_type.
10044 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10045
10046 2020-02-08 Tom Tromey <tom@tromey.com>
10047
10048 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10049 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10050 <keep>: Declare method.
10051 <m_keep>: Remove member.
10052 <~cutu_reader>: Remove.
10053 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10054 (cutu_reader::cutu_reader): Update.
10055 (cutu_reader::keep): Rename from ~cutu_reader.
10056 (process_psymtab_comp_unit, build_type_psymtabs_1)
10057 (process_skeletonless_type_unit, load_partial_comp_unit)
10058 (load_full_comp_unit, dwarf2_read_addr_index)
10059 (read_signatured_type): Update.
10060
10061 2020-02-08 Tom Tromey <tom@tromey.com>
10062
10063 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10064 "want_partial_unit" parameter.
10065 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10066 Inline check for DW_TAG_partial_unit.
10067 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10068
10069 2020-02-08 Tom Tromey <tom@tromey.com>
10070
10071 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10072 read.c.
10073 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10074 read.c.
10075
10076 2020-02-08 Tom Tromey <tom@tromey.com>
10077
10078 * dwarf2/read.c (read_address): Move to comp-unit.c.
10079 (dwarf2_rnglists_process, dwarf2_ranges_process)
10080 (read_attribute_value, dwarf_decode_lines_1)
10081 (var_decode_location, decode_locdesc): Update.
10082 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10083 read.c. Remove "cu" parameter.
10084 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10085 method.
10086
10087 2020-02-08 Tom Tromey <tom@tromey.com>
10088
10089 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10090 (read_indirect_line_string): Update.
10091 * dwarf2/comp-unit.c (read_offset): Remove.
10092 (read_comp_unit_head): Update.
10093 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10094 method.
10095 (read_offset): Don't declare.
10096
10097 2020-02-08 Tom Tromey <tom@tromey.com>
10098
10099 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10100 * dwarf2/read.c (struct comp_unit_head): Move to
10101 dwarf2/comp-unit.h.
10102 (enum class rcuh_kind): Move to comp-unit.h.
10103 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10104 (read_comp_unit_head, error_check_comp_unit_head)
10105 (read_and_check_comp_unit_head): Move to comp-unit.c.
10106 (read_offset, dwarf_unit_type_name): Likewise.
10107 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10108 (cutu_reader::cutu_reader, read_call_site_scope)
10109 (find_partial_die, follow_die_offset): Update.
10110 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10111
10112 2020-02-08 Tom Tromey <tom@tromey.com>
10113
10114 * dwarf2/read.c (read_offset_1): Move to leb.c.
10115 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10116 (dwarf_decode_macro_bytes): Update.
10117 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10118 * dwarf2/leb.h (read_offset): Declare.
10119
10120 2020-02-08 Tom Tromey <tom@tromey.com>
10121
10122 * dwarf2/read.c (dwarf2_section_size): Remove.
10123 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10124 Update.
10125 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10126
10127 2020-02-08 Tom Tromey <tom@tromey.com>
10128
10129 * dwarf2/read.c (read_initial_length): Move to leb.c.
10130 * dwarf2/leb.h (read_initial_length): Declare.
10131 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10132 handle_nonstd parameter.
10133 * dwarf2/frame.c (read_initial_length): Remove.
10134 (decode_frame_entry_1): Update.
10135
10136 2020-02-08 Tom Tromey <tom@tromey.com>
10137
10138 * dwarf2/loc.c (dwarf2_find_location_expression)
10139 (dwarf_evaluate_loc_desc::get_tls_address)
10140 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10141 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10142 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10143 (dwarf2_compile_property_to_c)
10144 (dwarf2_loc_desc_get_symbol_read_needs)
10145 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10146 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10147 (loclist_describe_location, loclist_tracepoint_var_ref)
10148 (loclist_generate_c_location): Update.
10149 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10150 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10151 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10152 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10153 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10154 (dwarf2_per_cu_data::addr_size)
10155 (dwarf2_per_cu_data::ref_addr_size)
10156 (dwarf2_per_cu_data::text_offset)
10157 (dwarf2_per_cu_data::addr_type): Now methods.
10158 (per_cu_header_read_in): Make per_cu "const".
10159 (dwarf2_version): Remove.
10160 (dwarf2_per_cu_data::int_type): Now a method.
10161 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10162 (set_die_type, read_array_type, read_subrange_index_type)
10163 (read_tag_string_type, read_subrange_type): Update.
10164 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10165 offset_size, ref_addr_size, text_offset, addr_type, version,
10166 objfile, int_type, addr_sized_int_type>: Declare methods.
10167
10168 2020-02-08 Tom Tromey <tom@tromey.com>
10169
10170 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10171 Move earlier.
10172
10173 2020-02-08 Tom Tromey <tom@tromey.com>
10174
10175 * dwarf2/read.h (dwarf_line_debug): Declare.
10176 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10177 * dwarf2/read.c: Move line_header code to new files.
10178 (dwarf_line_debug): No longer static.
10179 * dwarf2/line-header.c: New file.
10180 * dwarf2/line-header.h: New file.
10181
10182 2020-02-08 Tom Tromey <tom@tromey.com>
10183
10184 * dwarf2/read.c (struct line_header) <file_full_name,
10185 file_file_name>: Return unique_xmalloc_ptr.
10186 (line_header::file_file_name): Update.
10187 (line_header::file_full_name): Update.
10188 (dw2_get_file_names_reader): Update.
10189 (macro_start_file): Update.
10190
10191 2020-02-08 Tom Tromey <tom@tromey.com>
10192
10193 * dwarf2/read.c (struct line_header) <file_full_name,
10194 file_file_name>: Declare methods.
10195 (dw2_get_file_names_reader): Update.
10196 (file_file_name): Now a method.
10197 (file_full_name): Likewise.
10198 (macro_start_file): Update.
10199
10200 2020-02-08 Tom Tromey <tom@tromey.com>
10201
10202 * dwarf2/read.c (dwarf_always_disassemble)
10203 (show_dwarf_always_disassemble): Move to loc.c.
10204 (_initialize_dwarf2_read): Move "always-disassemble" registration
10205 to loc.c.
10206 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10207 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10208 static.
10209 (show_dwarf_always_disassemble): Move from read.c.
10210 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10211
10212 2020-02-08 Tom Tromey <tom@tromey.com>
10213
10214 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10215 (create_quick_file_names_table): Return htab_up.
10216 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10217 Update.
10218 * dwarf2/read.h (struct dwarf2_per_objfile)
10219 <quick_file_names_table>: Now htab_up.
10220
10221 2020-02-08 Tom Tromey <tom@tromey.com>
10222
10223 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10224
10225 2020-02-08 Tom Tromey <tom@tromey.com>
10226
10227 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10228 Rewrite.
10229 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10230 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10231 (abbrev_table::abbrev_table): No longer inline.
10232 (ABBREV_HASH_SIZE): Remove.
10233 (abbrev_table::m_abbrevs): Now an htab_up.
10234
10235 2020-02-08 Tom Tromey <tom@tromey.com>
10236
10237 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10238 (cutu_reader): Update.
10239 (build_type_psymtabs_1): Update.
10240 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10241 (abbrev_table::alloc_abbrev): Update.
10242 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10243 (abbrev_table::read): New static method, renamed from
10244 abbrev_table_read_table.
10245 (abbrev_table::alloc_abbrev)
10246 (abbrev_table::add_abbrev): Now private.
10247 (abbrev_table::abbrev_table): Now private.
10248 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10249
10250 2020-02-08 Tom Tromey <tom@tromey.com>
10251
10252 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10253 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10254 htab_up.
10255
10256 2020-02-08 Tom Tromey <tom@tromey.com>
10257
10258 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10259 htab_up.
10260 (lookup_dwo_unit_in_dwp): Update.
10261 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10262 on obstack.
10263
10264 2020-02-08 Tom Tromey <tom@tromey.com>
10265
10266 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10267 obstack.
10268
10269 2020-02-08 Tom Tromey <tom@tromey.com>
10270
10271 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10272 line_header_hash.
10273 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10274 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10275 Change type to htab_up.
10276
10277 2020-02-08 Tom Tromey <tom@tromey.com>
10278
10279 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10280 htab_up. Don't allocate on obstack.
10281 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10282 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10283 Change type to htab_up.
10284
10285 2020-02-08 Tom Tromey <tom@tromey.com>
10286
10287 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10288 Change type to htab_up.
10289 * dwarf2/read.c (create_signatured_type_table_from_index)
10290 (create_signatured_type_table_from_debug_names)
10291 (create_all_type_units, add_type_unit)
10292 (lookup_dwo_signatured_type, lookup_signatured_type)
10293 (process_skeletonless_type_unit): Update.
10294 (create_debug_type_hash_table, create_debug_types_hash_table):
10295 Change type of types_htab.
10296 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10297 htab_up. Don't allocate on obstack.
10298 (create_cus_hash_table): Change type of cus_htab parameter.
10299 (struct dwo_file) <cus, tus>: Now htab_up.
10300 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10301 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10302 (queue_and_load_all_dwo_tus): Update.
10303 * dwarf2/index-write.c (write_gdbindex): Update.
10304 (write_debug_names): Update.
10305
10306 2020-02-08 Tom Tromey <tom@tromey.com>
10307
10308 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10309 dwarf2/read.c. Remove "next" member. Add constructor ntad
10310 destructor.
10311 (struct dwarf2_per_objfile) <queue>: New member.
10312 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10313 dwarf2/read.h.
10314 (dwarf2_queue, dwarf2_queue_tail): Remove.
10315 (class dwarf2_queue_guard): Add parameter to constructor. Use
10316 DISABLE_COPY_AND_ASSIGN.
10317 <m_per_objfile>: New member.
10318 <~dwarf2_queue_guard>: Rewrite.
10319 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10320 Update.
10321 (~dwarf2_queue_item): New.
10322
10323 2020-02-08 Tom Tromey <tom@tromey.com>
10324
10325 * dwarf2/read.c (struct die_info) <has_children>: New member.
10326 (dw2_get_file_names_reader): Remove has_children.
10327 (dw2_get_file_names): Update.
10328 (read_cutu_die_from_dwo): Remove has_children.
10329 (cutu_reader::init_tu_and_read_dwo_dies)
10330 (cutu_reader::cutu_reader): Update.
10331 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10332 Remove has_children.
10333 (build_type_psymtabs_1, process_skeletonless_type_unit)
10334 (load_partial_comp_unit, load_full_comp_unit): Update.
10335 (create_dwo_cu_reader): Remove has_children.
10336 (create_cus_hash_table, read_die_and_children): Update.
10337 (read_full_die_1,read_full_die): Remove has_children.
10338 (read_signatured_type): Update.
10339 (class cutu_reader) <has_children>: Remove.
10340
10341 2020-02-08 Tom Tromey <tom@tromey.com>
10342
10343 * dwarf2/expr.c: Rename from dwarf2expr.c.
10344 * dwarf2/expr.h: Rename from dwarf2expr.h.
10345 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10346 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10347 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10348 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10349 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10350 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10351 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10352 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10353 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10354 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10355 * dwarf2/loc.c: Rename from dwarf2loc.c.
10356 * dwarf2/loc.h: Rename from dwarf2loc.h.
10357 * dwarf2/read.c: Rename from dwarf2read.c.
10358 * dwarf2/read.h: Rename from dwarf2read.h.
10359 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10360 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10361 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10362 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10363 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10364 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10365 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10366 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10367 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10368 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10369 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10370 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10371 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10372 Update.
10373 * Makefile.in (COMMON_SFILES): Update.
10374 (HFILES_NO_SRCDIR): Update.
10375
10376 2020-02-08 Tom Tromey <tom@tromey.com>
10377
10378 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10379 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10380
10381 2020-02-08 Tom Tromey <tom@tromey.com>
10382
10383 * dwarf2read.h (struct die_info): Don't declare.
10384
10385 2020-02-08 Tom Tromey <tom@tromey.com>
10386
10387 * dwarf2read.h (die_info_ptr): Remove typedef.
10388
10389 2020-02-08 Tom Tromey <tom@tromey.com>
10390
10391 * dwarf2read.c (read_call_site_scope)
10392 (handle_data_member_location, dwarf2_add_member_fn)
10393 (mark_common_block_symbol_computed, read_common_block)
10394 (attr_to_dynamic_prop, partial_die_info::read)
10395 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10396 (dwarf2_symbol_mark_computed, set_die_type): Update.
10397 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10398 method.
10399 (attr_form_is_block): Don't declare.
10400 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10401
10402 2020-02-08 Tom Tromey <tom@tromey.com>
10403
10404 * dwarf2read.c (dwarf2_find_base_address, )
10405 (read_call_site_scope, rust_containing_type)
10406 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10407 (handle_data_member_location, dwarf2_add_member_fn)
10408 (get_alignment, read_structure_type, process_structure_scope)
10409 (mark_common_block_symbol_computed, read_common_block)
10410 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10411 (partial_die_info::read, read_attribute_value, new_symbol)
10412 (lookup_die_type, dwarf2_get_ref_die_offset)
10413 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10414 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10415 (dwarf2_symbol_mark_computed): Update.
10416 * dwarf2/attribute.h (struct attribute) <value_as_address,
10417 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10418 methods.
10419 (value_as_address, attr_form_is_section_offset)
10420 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10421 * dwarf2/attribute.c (attribute::value_as_address)
10422 (attribute::form_is_section_offset, attribute::form_is_constant)
10423 (attribute::form_is_ref): Now methods.
10424
10425 2020-02-08 Tom Tromey <tom@tromey.com>
10426
10427 * dwarf2read.c (struct attribute, DW_STRING)
10428 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10429 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10430 (attr_form_is_block, attr_form_is_section_offset)
10431 (attr_form_is_constant, attr_form_is_ref): Move.
10432 * dwarf2/attribute.h: New file.
10433 * dwarf2/attribute.c: New file, from dwarf2read.c.
10434 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10435
10436 2020-02-08 Tom Tromey <tom@tromey.com>
10437
10438 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10439 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10440 Move.
10441 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10442 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10443 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10444 abbrev.c.
10445 * dwarf2/abbrev.h: New file.
10446 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10447 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10448
10449 2020-02-08 Tom Tromey <tom@tromey.com>
10450
10451 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10452 (dwarf2_section_size, dwarf2_get_section_info)
10453 (create_signatured_type_table_from_debug_names)
10454 (create_addrmap_from_aranges, read_debug_names_from_section)
10455 (get_gdb_index_contents_from_section, read_comp_unit_head)
10456 (error_check_comp_unit_head, read_abbrev_offset)
10457 (create_debug_type_hash_table, init_cu_die_reader)
10458 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10459 (read_comp_units_from_section, create_cus_hash_table)
10460 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10461 (create_dwp_v2_section, dwarf2_rnglists_process)
10462 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10463 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10464 (read_indirect_string_from_dwz, read_addr_index_1)
10465 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10466 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10467 (fill_in_loclist_baton): Update.
10468 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10469 get_containing_section, get_bfd_owner, get_bfd_section,
10470 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10471 (dwarf2_read_section, get_section_name, get_section_file_name)
10472 (get_containing_section, get_section_bfd_owner)
10473 (get_section_bfd_section, get_section_name, get_section_file_name)
10474 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10475 declare.
10476 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10477 (dwarf2_section_info::get_bfd_owner)
10478 (dwarf2_section_info::get_bfd_section)
10479 (dwarf2_section_info::get_name)
10480 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10481 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10482 (dwarf2_section_info::read): Now methods.
10483 * dwarf-index-write.c (class debug_names): Update.
10484
10485 2020-02-08 Tom Tromey <tom@tromey.com>
10486
10487 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10488 Move to dwarf2/section.h.
10489 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10490 (get_section_bfd_section, get_section_name)
10491 (get_section_file_name, get_section_id, get_section_flags)
10492 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10493 dwarf2/section.c.
10494 * dwarf2/section.h: New file.
10495 * dwarf2/section.c: New file, from dwarf2read.c.
10496 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10497
10498 2020-02-08 Tom Tromey <tom@tromey.com>
10499
10500 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10501 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10502 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10503 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10504 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10505 * dwarf2/leb.h: New file, from dwarf2read.c.
10506 * dwarf2/leb.c: New file, from dwarf2read.c.
10507 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10508 Remove.
10509 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10510 (COMMON_SFILES): Add dwarf2/leb.c.
10511
10512 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10513
10514 GDB 9.1 released.
10515
10516 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10517
10518 PR gdb/25190:
10519 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10520 * gdb/remote.c (remote_console_output): Update.
10521 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10522 (ui_file_puts): ...this.
10523 * gdb/ui-file.h (ui_file_puts): Add declaration.
10524 * gdb/utils.c (emit_style_escape): Update.
10525 (flush_wrap_buffer): Update.
10526 (fputs_maybe_filtered): Update.
10527 (fputs_unfiltered): Add function.
10528
10529 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10530
10531 * gdb/event-loop.c (gdb_wait_for_event): Update.
10532 * gdb/printcmd.c (printf_command): Update.
10533 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10534 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10535 (gdb_os_flush_stderr): Update.
10536 * gdb/remote.c (remote_console_output): Update.
10537 * gdb/ui-file.c (gdb_flush): Rename to...
10538 (ui_file_flush): ...this.
10539 (stderr_file::write): Update.
10540 (stderr_file::puts): Update.
10541 * gdb/ui-file.h (gdb_flush): Rename to...
10542 (ui_file_flush): ...this.
10543 * gdb/utils.c (gdb_flush): Add function.
10544 * gdb/utils.h (gdb_flush): Add declaration.
10545
10546 2020-02-07 Tom Tromey <tromey@adacore.com>
10547
10548 PR breakpoints/24915:
10549 * source.c (find_and_open_source): Do not check basenames_may_differ.
10550
10551 2020-02-07 Tom Tromey <tom@tromey.com>
10552
10553 * README: Update gdbserver documentation.
10554 * gdbserver: Move to top level.
10555 * configure.tgt (build_gdbserver): Remove.
10556 * configure.ac: Remove --enable-gdbserver.
10557 * configure: Rebuild.
10558 * Makefile.in (distclean): Don't mention gdbserver.
10559
10560 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10561
10562 * source-cache.c (source_cache::ensure): Surround
10563 get_plain_source_lines with a try/catch.
10564 (source_cache::get_line_charpos): Get rid of try/catch
10565 and only check for the return value of "ensure".
10566 * tui/tui-source.c (tui_source_window::set_contents):
10567 Simplify "nlines" calculation.
10568
10569 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10570
10571 * MAINTAINERS (Write After Approval): Add myself.
10572
10573 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10574
10575 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10576 function call.
10577
10578 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10579
10580 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10581
10582 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10583
10584 * nat/riscv-linux-tdesc.h: New file.
10585 * nat/riscv-linux-tdesc.c: New file, taking code from...
10586 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10587 ... here.
10588 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10589 NATDEPFILES.
10590
10591 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10592
10593 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10594 we don't set the fake simulator ptid to the null_ptid.
10595
10596 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10597
10598 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10599 * gdbthread.h (class thread_info) <resumed>: Likewise.
10600 * infrun.c (resume_1): Likewise.
10601 (proceed): Likewise.
10602 (infrun_thread_stop_requested): Likewise.
10603 (stop_all_threads): Likewise.
10604 (handle_inferior_event): Likewise.
10605 (restart_threads): Likewise.
10606 (finish_step_over): Likewise.
10607 (keep_going_stepped_thread): Likewise.
10608 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10609 (linux_handle_extended_wait): Likewise.
10610 * record-btrace.c (get_thread_current_frame_id): Likewise.
10611 * record-full.c (record_full_wait_1): Likewise.
10612 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10613 * target.c (target_resume): Likewise.
10614 * thread.c (set_running_thread): Likewise.
10615
10616 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10617
10618 * f-valprint.c (f77_print_array_1): Changed datatype of index
10619 variable to LONGEST from int to enable it to contain bound
10620 values correctly.
10621
10622 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10623
10624 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10625 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10626 offsets according to FLEN determined.
10627 (riscv_linux_nat_target::read_description): Determine FLEN
10628 dynamically.
10629 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10630 according to FLEN determined.
10631 (riscv_linux_nat_target::store_registers): Likewise.
10632
10633 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10634
10635 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10636 when reg->group is empty and reggroup is not.
10637
10638 2020-01-31 Tom Tromey <tromey@adacore.com>
10639
10640 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10641 Call beneath target's mourn_inferior after unpushing.
10642
10643 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10644
10645 PR tui/9765
10646 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10647 have enough lines to fill the screen, still return the lowest
10648 address we found.
10649
10650 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10651
10652 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10653 '-', '<', and '>' commands.
10654
10655 2020-01-29 Pedro Alves <palves@redhat.com>
10656 Sergio Durigan Junior <sergiodj@redhat.com>
10657
10658 * infcmd.c (construct_inferior_arguments): Assert that
10659 'argc' is greater than 0.
10660
10661 2020-01-29 Luis Machado <luis.machado@linaro.org>
10662
10663 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10664 (BRK_INSN_MASK): Define to 0xd4200000.
10665 (aarch64_program_breakpoint_here_p): New function.
10666 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10667 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10668 breakpoint.c.
10669 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10670 breakpoint.h
10671 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10672 call gdbarch_program_breakpoint_here_p.
10673 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10674 default_program_breakpoint_here_p, changed return type to bool and
10675 simplified.
10676 * breakpoint.h (program_breakpoint_here): Moved prototype to
10677 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10678 return type to bool.
10679 * gdbarch.c: Regenerate.
10680 * gdbarch.h: Regenerate.
10681 * gdbarch.sh (program_breakpoint_here_p): New method.
10682 * infrun.c (handle_signal_stop): Call
10683 gdbarch_program_breakpoint_here_p.
10684
10685 2020-01-26 Tom Tromey <tom@tromey.com>
10686
10687 * ctfread.c (struct ctf_fp_info): Reindent.
10688 (_initialize_ctfread): Remove.
10689
10690 2020-01-26 Tom Tromey <tom@tromey.com>
10691
10692 * psymtab.c (partial_map_expand_apply)
10693 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10694 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10695 (psym_print_stats, psym_expand_symtabs_for_function)
10696 (psym_map_symbol_filenames, psym_map_matching_symbols)
10697 (psym_expand_symtabs_matching)
10698 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10699 (maintenance_check_psymtabs): Use new methods.
10700 * psympriv.h (struct partial_symtab) <readin_p,
10701 get_compunit_symtab>: New methods.
10702 <readin, compunit_symtab>: Remove members.
10703 (struct standard_psymtab): New.
10704 (struct legacy_psymtab): Derive from standard_psymtab.
10705 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10706 standard_psymtab.
10707 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10708
10709 2020-01-26 Tom Tromey <tom@tromey.com>
10710
10711 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10712 read_dependencies. Add assert.
10713 * psymtab.c (partial_symtab::read_dependencies): New method.
10714 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10715 method.
10716 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10717 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10718 read_dependencies.
10719 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10720 Add assert.
10721
10722 2020-01-26 Tom Tromey <tom@tromey.com>
10723
10724 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10725 Call expand_psymtab.
10726 (xcoff_read_symtab): Call expand_psymtab.
10727 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10728 legacy_expand_psymtab.
10729 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10730 method.
10731 (struct legacy_psymtab) <expand_psymtab>: Implement.
10732 <legacy_expand_psymtab>: New member.
10733 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10734 (parse_partial_symbols): Set legacy_expand_psymtab.
10735 (psymtab_to_symtab_1): Change argument order. Call
10736 expand_psymtab.
10737 (new_psymtab): Set legacy_expand_psymtab.
10738 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10739 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10740 expand_psymtab.
10741 (dwarf2_psymtab::expand_psymtab): Rename from
10742 psymtab_to_symtab_1. Call expand_psymtab.
10743 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10744 (dbx_end_psymtab): Likewise.
10745 (dbx_psymtab_to_symtab_1): Change argument order. Call
10746 expand_psymtab.
10747 (dbx_read_symtab): Call expand_psymtab.
10748 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10749 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10750 (ctf_psymtab::read_symtab): Call expand_psymtab.
10751
10752 2020-01-26 Tom Tromey <tom@tromey.com>
10753
10754 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10755 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10756 messages.
10757 * mdebugread.c (mdebug_read_symtab): Remove prints.
10758 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10759 assert.
10760 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10761
10762 2020-01-26 Tom Tromey <tom@tromey.com>
10763
10764 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10765 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10766 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10767 legacy_symtab.
10768 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10769 * psymtab.c (psymtab_to_symtab): Call method.
10770 (dump_psymtab): Update.
10771 * psympriv.h (struct partial_symtab): Add virtual destructor.
10772 <read_symtab>: New method.
10773 (struct legacy_symtab): New.
10774 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10775 (struct pst_map) <pst>: Now a legacy_psymtab.
10776 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10777 (new_psymtab): Use legacy_psymtab.
10778 * dwarf2read.h (struct dwarf2_psymtab): New.
10779 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10780 * dwarf2read.c (dwarf2_create_include_psymtab)
10781 (dwarf2_build_include_psymtabs, create_type_unit_group)
10782 (create_partial_symtab, process_psymtab_comp_unit_reader)
10783 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10784 (set_partial_user): Use dwarf2_psymtab.
10785 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10786 (psymtab_to_symtab_1, process_full_comp_unit)
10787 (process_full_type_unit, dwarf2_ranges_read)
10788 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10789 (dwarf_decode_lines): Use dwarf2_psymtab.
10790 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10791 (add_address_entry_worker, write_one_signatured_type)
10792 (recursively_count_psymbols, recursively_write_psymbols)
10793 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10794 (write_debug_names): Likewise.
10795 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10796 <pst>: Now a legacy_psymtab.
10797 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10798 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10799 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10800 * ctfread.c (struct ctf_psymtab): New.
10801 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10802 ctf_psymtab.
10803 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10804 (create_partial_symtab): Return a ctf_psymtab.
10805 (scan_partial_symbols): Update.
10806
10807 2020-01-26 Tom Tromey <tom@tromey.com>
10808
10809 * xcoffread.c (xcoff_start_psymtab): Use new.
10810 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10811 renamed from start_psymtab_common.
10812 * psympriv.h (struct partial_symtab): Add new constructor.
10813 (start_psymtab_common): Don't declare.
10814 * mdebugread.c (parse_partial_symbols): Use new.
10815 * dwarf2read.c (create_partial_symtab): Use new.
10816 * dbxread.c (start_psymtab): Use new.
10817 * ctfread.c (create_partial_symtab): Use new.
10818
10819 2020-01-26 Tom Tromey <tom@tromey.com>
10820
10821 * xcoffread.c (xcoff_end_psymtab): Use new.
10822 * psymtab.c (start_psymtab_common): Use new.
10823 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10824 Update.
10825 * psympriv.h (struct partial_symtab): Add parameters to
10826 constructor. Don't inline.
10827 (allocate_psymtab): Don't declare.
10828 * mdebugread.c (new_psymtab): Use new.
10829 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10830 * dbxread.c (dbx_end_psymtab): Use new.
10831
10832 2020-01-26 Tom Tromey <tom@tromey.com>
10833
10834 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10835 allocate_psymtab. Update documentation.
10836 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10837 allocate_psymtab. Do not use new.
10838 (allocate_psymtab): Use new. Update.
10839
10840 2020-01-26 Tom Tromey <tom@tromey.com>
10841
10842 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10843 * psymtab.c (psym_print_stats): Update.
10844 * psympriv.h (struct partial_symtab) <readin,
10845 psymtabs_addrmap_supported, anonymous>: Now bool.
10846 * mdebugread.c (psymtab_to_symtab_1): Update.
10847 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10848 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10849 (process_full_comp_unit, process_full_type_unit): Update.
10850 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10851 * ctfread.c (psymtab_to_symtab): Update.
10852
10853 2020-01-26 Tom Tromey <tom@tromey.com>
10854
10855 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10856 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10857 * psymtab.c (psymtab_storage): Delete psymtabs.
10858 (psymtab_storage::allocate_psymtab): Use new.
10859 (psymtab_storage::discard_psymtab): Use delete.
10860 * psympriv.h (struct partial_symtab): Add constructor and
10861 initializers.
10862
10863 2020-01-26 Tom Tromey <tom@tromey.com>
10864
10865 * machoread.c: Do not include psympriv.h.
10866
10867 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10868
10869 * NEWS: Mention the new option and the set/show commands.
10870
10871 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10872
10873 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10874 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10875 (validate_exec_file): New variables, enums, functions.
10876 (exec_file_locate_attach, print_section_info): Style the filenames.
10877 (_initialize_exec): Install show_exec_file_mismatch_command and
10878 set_exec_file_mismatch_command.
10879 * gdbcore.h (validate_exec_file): Declare.
10880 * infcmd.c (attach_command): Call validate_exec_file.
10881 * remote.c ( remote_target::remote_add_inferior): Likewise.
10882
10883 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10884
10885 * frame.c (find_frame_sal): Move call to get_next_frame into more
10886 inner scope.
10887 * inline-frame.c (inilne_state) <inline_state>: Update argument
10888 types.
10889 (inilne_state) <skipped_symbol>: Rename to...
10890 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10891 (skip_inline_frames): Build vector of skipped symbols and use this
10892 to reate the inline_state.
10893 (inline_skipped_symbol): Add a comment and some assertions, fetch
10894 skipped symbol from the list.
10895
10896 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10897
10898 * buildsym.c (lte_is_less_than): Delete.
10899 (buildsym_compunit::end_symtab_with_blockvector): Create local
10900 lambda function to sort line table entries, and use
10901 std::stable_sort instead of std::sort.
10902 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10903 markers when looking for a previous line.
10904
10905 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10906
10907 * dwarf2read.c (lnp_state_machine::record_line): Include
10908 end_sequence parameter in debug print out. Record the line if we
10909 are at an end_sequence marker even if it's not the start of a
10910 statement.
10911 * symmisc.c (maintenance_print_one_line_table): Print end of
10912 sequence markers with 'END' not '0'.
10913
10914 2020-01-24 Pedro Alves <palves@redhat.com>
10915
10916 PR gdb/25410
10917 * thread.c (scoped_restore_current_thread::restore): Use
10918 switch_to_inferior_no_thread.
10919 * exec.c: Include "progspace-and-thread.h".
10920 (add_target_sections, remove_target_sections):
10921 scoped_restore_current_pspace_and_thread instead of
10922 scoped_restore_current_thread.
10923 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10924 and aspace to the inferior before calling clone_program_space.
10925 Remove stale comment.
10926
10927 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10928
10929 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10930 (arm_netbsd_nat_target::fetch_registers): ...this.
10931 (arm_nbsd_nat_target::store_registers): Rename to...
10932 (arm_netbsd_nat_target::store_registers): ...this.
10933
10934 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10935
10936 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10937 register_t.
10938
10939 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10940
10941 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10942 Update comment.
10943 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10944 Likewise.
10945 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10946 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10947 the correct replacement (iterate_over_regset_sections).
10948 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10949 Update comment.
10950
10951 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10952
10953 PR gdb/23718
10954 * gdb/python/python.c (execute_gdb_command): Call
10955 async_enable_stdin in catch block.
10956
10957 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10958
10959 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10960 SWITCH_THRU_ALL_UIS.
10961
10962 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10963
10964 PR tui/9765
10965 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10966 comment, add extra parameter, and update to store previous symbol
10967 when appropriate.
10968 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10969 add extra parameter.
10970 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10971 remove unneeded parameter, add try/catch around gdb_print_insn,
10972 rewrite to add items to asm_lines vector.
10973 (tui_find_backward_disassembly_start_address): New function.
10974 (tui_find_disassembly_address): Updated throughout.
10975 (tui_disasm_window::set_contents): Update for changes to
10976 tui_disassemble.
10977 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10978 number of lines to scroll.
10979
10980 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10981
10982 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10983 (SECT_OFF_DATA): Likewise.
10984 (SECT_OFF_RODATA): Likewise.
10985 (SECT_OFF_TEXT): Likewise.
10986 (SECT_OFF_BSS): Likewise.
10987 (struct objfile) <text_section_offset, data_section_offset>: New
10988 methods.
10989 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10990 objfile::text_section_offset.
10991 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10992 * coffread.c (coff_symtab_read): Likewise.
10993 (enter_linenos): Likewise.
10994 (process_coff_symbol): Likewise.
10995 * ctfread.c (get_objfile_text_range): Likewise.
10996 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10997 Use objfile::data_section_offset.
10998 * dwarf2-frame.c (execute_cfa_program): Use
10999 objfile::text_section_offset.
11000 (dwarf2_frame_find_fde): Likewise.
11001 * dwarf2read.c (create_addrmap_from_index): Likewise.
11002 (create_addrmap_from_aranges): Likewise.
11003 (dw2_find_pc_sect_compunit_symtab): Likewise.
11004 (process_psymtab_comp_unit_reader): Likewise.
11005 (add_partial_symbol): Likewise.
11006 (add_partial_subprogram): Likewise.
11007 (process_full_comp_unit): Likewise.
11008 (read_file_scope): Likewise.
11009 (read_func_scope): Likewise.
11010 (read_lexical_block_scope): Likewise.
11011 (read_call_site_scope): Likewise.
11012 (dwarf2_rnglists_process): Likewise.
11013 (dwarf2_ranges_process): Likewise.
11014 (dwarf2_ranges_read): Likewise.
11015 (dwarf_decode_lines_1): Likewise.
11016 (new_symbol): Likewise.
11017 (dwarf2_fetch_die_loc_sect_off): Likewise.
11018 (dwarf2_per_cu_text_offset): Likewise.
11019 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11020 * hppa-tdep.c (read_unwind_info): Likewise.
11021 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11022 * psympriv.h (struct partial_symtab): Likewise.
11023 * psymtab.c (find_pc_sect_psymtab): Likewise.
11024 * solib-svr4.c (enable_break): Likewise.
11025 * stap-probe.c (relocate_address): Use
11026 objfile::data_section_offset.
11027 * xcoffread.c (enter_line_range): Use
11028 objfile::text_section_offset.
11029 (read_xcoff_symtab): Likewise.
11030
11031 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11032
11033 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11034 declaration to narrower scopes.
11035
11036 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11037
11038 * darwin-nat.h (struct darwin_exception_msg, enum
11039 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11040 Move up.
11041 (class darwin_nat_target) <wait_1, check_new_threads,
11042 decode_exception_message, decode_message, stop_inferior,
11043 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11044 * darwin-nat.c (darwin_check_new_threads): Rename to...
11045 (darwin_nat_target::check_new_threads): ... this.
11046 (darwin_suspend_inferior_it): Remove.
11047 (darwin_decode_exception_message): Rename to...
11048 (darwin_nat_target::decode_exception_message): ... this.
11049 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11050 (darwin_decode_message): Rename to...
11051 (darwin_nat_target::decode_message): ... this.
11052 (cancel_breakpoint): Rename to...
11053 (darwin_nat_target::cancel_breakpoint): ... this.
11054 (darwin_wait): Rename to...
11055 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11056 instead of iterate_over_inferiors.
11057 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11058 (darwin_stop_inferior): Rename to...
11059 (darwin_nat_target::stop_inferior): ... this.
11060 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11061 (darwin_init_thread_list): Rename to...
11062 (darwin_nat_target::init_thread_list): ... this.
11063 (darwin_ptrace_him): Rename to...
11064 (darwin_nat_target::ptrace_him): ... this.
11065 (darwin_nat_target::create_inferior): Pass lambda function to
11066 fork_inferior.
11067 (darwin_nat_target::detach): Call stop_inferior instead of
11068 darwin_stop_inferior.
11069 * fork-inferior.h (fork_inferior): Change init_trace_fun
11070 parameter to gdb::function_view.
11071 * fork-inferior.c (fork_inferior): Likewise.
11072
11073 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11074
11075 * i386-cygwin-tdep.c (core_process_module_section): Update.
11076 * windows-nat.c (struct lm_info_windows): Add text_offset.
11077 (windows_xfer_shared_libraries): Update.
11078 * windows-tdep.c (windows_xfer_shared_library):
11079 Add text_offset_cached argument.
11080 * windows-tdep.h (windows_xfer_shared_library): Update.
11081
11082 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11083
11084 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11085
11086 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11087
11088 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11089 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11090 replace with range-based for.
11091 (gdbsim_interrupt_inferior): Remove.
11092 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11093 with a range-based for. Inline code from
11094 gdbsim_interrupt_inferior.
11095
11096 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11097
11098 * infrun.c (proceed): Fix indentation.
11099
11100 2020-01-21 Tom Tromey <tromey@adacore.com>
11101
11102 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11103 * python/python.c (python_extension_ops): Update.
11104 (gdbpy_colorize): New function.
11105 * python/lib/gdb/__init__.py (colorize): New function.
11106 * extension.h (ext_lang_colorize): Declare.
11107 * extension.c (ext_lang_colorize): New function.
11108 * extension-priv.h (struct extension_language_ops) <colorize>: New
11109 member.
11110 * cli/cli-style.c (_initialize_cli_style): Update help text.
11111
11112 2020-01-21 Luis Machado <luis.machado@linaro.org>
11113
11114 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11115 <cond>: Change type to bool.
11116 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11117 (aarch64_displaced_step_cb): Likewise.
11118 (aarch64_displaced_step_tb): Likewise.
11119
11120 2020-01-21 Luis Machado <luis.machado@linaro.org>
11121
11122 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11123 output.
11124
11125 2020-01-21 Luis Machado <luis.machado@linaro.org>
11126
11127 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11128 <pc_adjust>: Adjust the documentation.
11129 (aarch64_displaced_step_fixup): Check if PC really moved before
11130 adjusting it.
11131
11132 2020-01-19 Tom Tromey <tom@tromey.com>
11133
11134 * disasm.c (~gdb_disassembler): New destructor.
11135 (gdb_buffered_insn_length): Call disassemble_free_target.
11136 * disasm.h (class gdb_disassembler): Declare destructor. Use
11137 DISABLE_COPY_AND_ASSIGN.
11138
11139 2020-01-19 Tom Tromey <tom@tromey.com>
11140
11141 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11142 (die_reader_func_ftype): Remove.
11143 (cutu_reader): New class.
11144 (dw2_get_file_names_reader): Remove "data" parameter.
11145 (dw2_get_file_names): Use cutu_reader.
11146 (create_debug_type_hash_table): Update.
11147 (read_cutu_die_from_dwo): Update comment.
11148 (lookup_dwo_unit): Add dwo_name parameter.
11149 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11150 die_reader_func_ftype and data parameters.
11151 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11152 Remove die_reader_func_ftype and data parameters.
11153 (~cutu_reader): New; from init_cutu_and_read_dies.
11154 (cutu_reader::cutu_reader): Rename from
11155 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11156 and data parameters.
11157 (init_cutu_and_read_dies_simple): Remove.
11158 (struct process_psymtab_comp_unit_data): Remove.
11159 (process_psymtab_comp_unit_reader): Remove data parameter; add
11160 want_partial_unit and pretend_language parameters.
11161 (process_psymtab_comp_unit): Use cutu_reader.
11162 (build_type_psymtabs_reader): Remove data parameter.
11163 (build_type_psymtabs_1): Use cutu_reader.
11164 (process_skeletonless_type_unit): Likewise.
11165 (load_partial_comp_unit_reader): Remove.
11166 (load_partial_comp_unit): Use cutu_reader.
11167 (load_full_comp_unit_reader): Remove.
11168 (load_full_comp_unit): Use cutu_reader.
11169 (struct create_dwo_cu_data): Remove.
11170 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11171 dwo_unit parameters.
11172 (create_cus_hash_table): Use cutu_reader.
11173 (struct dwarf2_read_addr_index_data): Remove.
11174 (dwarf2_read_addr_index_reader): Remove.
11175 (dwarf2_read_addr_index): Use cutu_reader.
11176 (read_signatured_type_reader): Remove.
11177 (read_signatured_type): Use cutu_reader.
11178
11179 2020-01-19 Tom Tromey <tom@tromey.com>
11180
11181 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11182 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11183 (tui_wrefresh): Declare.
11184 * tui/tui-wingeneral.c (suppress_output): New global.
11185 (tui_suppress_output, ~tui_suppress_output): New constructor and
11186 destructor.
11187 (tui_wrefresh): New function.
11188 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11189 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11190 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11191 method.
11192 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11193 tui_wrefresh.
11194 (tui_data_window::no_refresh): New method.
11195 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11196 (tui_reg_command): Use tui_suppress_output
11197 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11198 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11199 method.
11200 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11201
11202 2020-01-19 Tom Tromey <tom@tromey.com>
11203
11204 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11205 Handle case where symtab is null.
11206
11207 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11208
11209 * linux-fork.c (one_fork_p): Simplify.
11210
11211 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11212
11213 * top.c (struct qt_args): Remove.
11214 (kill_or_detach): Change return type to void, replace `void *`
11215 parameter with a proper one.
11216 (print_inferior_quit_action): Likewise.
11217 (quit_confirm): Use range-based for loop to iterate over inferiors.
11218 (quit_force): Likewise.
11219
11220 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11221
11222 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11223 `void *` parameter with proper parameters.
11224 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11225 (print_one_inferior): Change return type to void, replace `void *`
11226 parameter with proper parameters.
11227 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11228 inferiors.
11229 (get_other_inferior): Remove.
11230 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11231 inferiors.
11232
11233 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11234
11235 * mi/mi-interp.c (report_initial_inferior): Remove.
11236 (mi_interp::init): Use range-based for to iterate over inferiors.
11237
11238 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11239
11240 * python/py-inferior.c (build_inferior_list): Remove.
11241 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11242
11243 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11244
11245 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11246 (btrace_stitch_trace): Likewise.
11247 * charset.c (intermediate_encoding): Likewise (vaild).
11248 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11249 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11250 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11251
11252 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11253
11254 * windows-tdep.c (windows_get_tlb_type):
11255 Add rtl_user_process_parameters type.
11256
11257 2020-01-16 Pedro Alves <palves@redhat.com>
11258 Norbert Lange <nolange79@gmail.com>
11259
11260 PR build/24805
11261 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11262 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11263 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11264 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11265 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11266 (ps_plog): Redeclare exported functions with default visibility.
11267
11268 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11269
11270 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11271 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11272
11273 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11274
11275 * infcmd.c (post_create_inferior): Use get_thread_regcache
11276 instead of get_current_regcache.
11277
11278 2020-01-14 Tom Tromey <tom@tromey.com>
11279
11280 PR symtab/12535:
11281 * python/python.c (gdbpy_decode_line): Treat empty string the same
11282 as no argument.
11283
11284 2020-01-14 Tom Tromey <tom@tromey.com>
11285
11286 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11287
11288 2020-01-14 Tom Tromey <tom@tromey.com>
11289
11290 * nat/linux-btrace.c: Don't include <config.h>.
11291 * nat/linux-ptrace.c: Don't include <config.h>.
11292 * nat/x86-linux-dregs.c: Don't include <config.h>.
11293
11294 2020-01-14 Tom Tromey <tom@tromey.com>
11295
11296 * configure: Rebuild.
11297 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11298
11299 2020-01-14 Tom Tromey <tom@tromey.com>
11300
11301 * nat/x86-linux-dregs.c: Include configh.h.
11302 * nat/linux-ptrace.c: Include configh.h.
11303 * nat/linux-btrace.c: Include configh.h.
11304 * defs.h: Include config.h, bfd.h.
11305 * configure.ac: Don't source common.host.
11306 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11307 * configure: Rebuild.
11308 * acinclude.m4: Update path.
11309 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11310 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11311 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11312 (CLIBS): Add LIBSUPPORT.
11313 (CDEPS): Likewise.
11314 (COMMON_SFILES): Remove gdbsupport files.
11315 (HFILES_NO_SRCDIR): Likewise.
11316 (stamp-version): Update path to create-version.sh.
11317 (ALLDEPFILES): Remove gdbsupport files.
11318
11319 2020-01-14 Tom Tromey <tom@tromey.com>
11320
11321 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11322 USE_WIN32API when needed.
11323 * configure.ac (USE_WIN32API): Don't define.
11324 (WIN32LIBS): Use WIN32APILIBS.
11325 * configure: Rebuild.
11326
11327 2020-01-14 Tom Tromey <tom@tromey.com>
11328
11329 * configure: Rebuild.
11330 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11331
11332 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11333
11334 * skip.c (skip_function_command): Make skip w/o arguments use the
11335 name of the inlined function if pc is inside any inlined function.
11336
11337 2020-01-14 Luis Machado <luis.machado@linaro.org>
11338
11339 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11340 * infrun.c (resume_1): Likewise.
11341 (handle_inferior_event): Remove stale comment.
11342 * linux-nat.c (linux_nat_target::resume): Update comments.
11343 (save_stop_reason): Likewise.
11344 (linux_nat_filter_event): Likewise.
11345 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11346
11347 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11348
11349 * elfread.c (record_minimal_symbol): Set section index to 0 for
11350 non-allocatable sections.
11351
11352
11353 2020-01-13 Ali Tamur <tamur@google.com>
11354
11355 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11356 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11357 to gdb::optional. Update comments.
11358 (dwo_file): Update comments.
11359 (read_attribute): Update API to take an additional out parameter,
11360 need_reprocess. This is used to mark attributes that need other
11361 attributes (e.g. str_offsets_base) for correct computation which may not
11362 have been read yet.
11363 (read_attribute_reprocess): New function declaration.
11364 (read_addr_index): Likewise.
11365 (read_dwo_str_index): Likewise.
11366 (read_stub_str_index): Likewise.
11367 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11368 (lookup_addr_base): New function definition.
11369 (lookup_ranges_base): Likewise.
11370 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11371 lookup_ranges_base.
11372 (init_cutu_and_read_dies): Update comments.
11373 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11374 unit. This is used to inherit parent's str_offsets_base and addr_base.
11375 Update comments.
11376 (init_cutu_and_read_dies_simple): Reflect API changes.
11377 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11378 (create_cus_hash_table): Change API to take parent compile unit.
11379 Reflect API changes.
11380 (open_and_init_dwo_file): Reflect API changes.
11381 (dwarf2_get_pc_bounds): Update comments.
11382 (dwarf2_record_block_ranges): Likewise.
11383 (read_full_die_1): Change implementation to reprocess attributes that
11384 need str_offsets_base and addr_base.
11385 (partial_die_info::read): Likewise.
11386 (read_attribute_reprocess): New function definition.
11387 (read_attribute_value): Change API to take an additional out parameter,
11388 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11389 when a non-dwo compile unit has index based attributes.
11390 (read_attribute): Reflect API changes.
11391 (read_addr_index_1): Reflect API changes. Update comments.
11392 (dwarf2_read_addr_index_data): Reflect API changes.
11393 (dwarf2_read_addr_index): Likewise.
11394 (read_str_index): Change API and implementation. This becomes a helper
11395 to be used by the new string index related methods. Update error
11396 message and comments.
11397 (read_dwo_str_index): New function definition.
11398 (read_stub_str_index): Likewise.
11399 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11400 * symfile.h (dwarf2_debug_sections): Likewise.
11401 * xcoffread.c (dwarf2_debug_sections): Likewise.
11402
11403 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11404
11405 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11406 core_reg_sect type to gdb_byte *.
11407 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11408 * cris-tdep.c (fetch_core_registers): Likewise.
11409 * corelow.c (core_target::get_core_register_section): Change
11410 type of `contents` to gdb::byte_vector.
11411
11412 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11413
11414 * tui/tui-wingeneral.c (box_win): Position the title in the center
11415 of the border.
11416
11417 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11418
11419 * corelow.c (core_target::get_core_register_section): Use
11420 std::vector instead of alloca.
11421
11422 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11423
11424 * warning.m4: Add -Wmissing-declarations to build_warnings.
11425 * configure: Re-generate.
11426
11427 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11428
11429 * python/python.c (init__gdb_module): Add declaration.
11430
11431 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11432
11433 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11434 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11435 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11436 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11437 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11438 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11439 * ada-exp.y (_initialize_ada_exp): Add declaration.
11440 * ada-lang.c (_initialize_ada_language): Add declaration.
11441 * ada-tasks.c (_initialize_tasks): Add declaration.
11442 * agent.c (_initialize_agent): Add declaration.
11443 * aix-thread.c (_initialize_aix_thread): Add declaration.
11444 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11445 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11446 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11447 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11448 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11449 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11450 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11451 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11452 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11453 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11454 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11455 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11456 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11457 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11458 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11459 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11460 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11461 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11462 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11463 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11464 * annotate.c (_initialize_annotate): Add declaration.
11465 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11466 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11467 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11468 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11469 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11470 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11471 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11472 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11473 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11474 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11475 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11476 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11477 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11478 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11479 * auto-load.c (_initialize_auto_load): Add declaration.
11480 * auxv.c (_initialize_auxv): Add declaration.
11481 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11482 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11483 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11484 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11485 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11486 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11487 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11488 * breakpoint.c (_initialize_breakpoint): Add declaration.
11489 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11490 * btrace.c (_initialize_btrace): Add declaration.
11491 * charset.c (_initialize_charset): Add declaration.
11492 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11493 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11494 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11495 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11496 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11497 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11498 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11499 * coffread.c (_initialize_coffread): Add declaration.
11500 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11501 * compile/compile.c (_initialize_compile): Add declaration.
11502 * complaints.c (_initialize_complaints): Add declaration.
11503 * completer.c (_initialize_completer): Add declaration.
11504 * copying.c (_initialize_copying): Add declaration.
11505 * corefile.c (_initialize_core): Add declaration.
11506 * corelow.c (_initialize_corelow): Add declaration.
11507 * cp-abi.c (_initialize_cp_abi): Add declaration.
11508 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11509 * cp-support.c (_initialize_cp_support): Add declaration.
11510 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11511 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11512 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11513 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11514 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11515 * ctfread.c (_initialize_ctfread): Add declaration.
11516 * d-lang.c (_initialize_d_language): Add declaration.
11517 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11518 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11519 * dbxread.c (_initialize_dbxread): Add declaration.
11520 * dcache.c (_initialize_dcache): Add declaration.
11521 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11522 * disasm.c (_initialize_disasm): Add declaration.
11523 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11524 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11525 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11526 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11527 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11528 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11529 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11530 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11531 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11532 * elfread.c (_initialize_elfread): Add declaration.
11533 * exec.c (_initialize_exec): Add declaration.
11534 * extension.c (_initialize_extension): Add declaration.
11535 * f-lang.c (_initialize_f_language): Add declaration.
11536 * f-valprint.c (_initialize_f_valprint): Add declaration.
11537 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11538 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11539 * filesystem.c (_initialize_filesystem): Add declaration.
11540 * findcmd.c (_initialize_mem_search): Add declaration.
11541 * findvar.c (_initialize_findvar): Add declaration.
11542 * fork-child.c (_initialize_fork_child): Add declaration.
11543 * frame-base.c (_initialize_frame_base): Add declaration.
11544 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11545 * frame.c (_initialize_frame): Add declaration.
11546 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11547 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11548 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11549 * gcore.c (_initialize_gcore): Add declaration.
11550 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11551 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11552 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11553 * gdbarch.c (_initialize_gdbarch): Add declaration.
11554 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11555 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11556 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11557 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11558 * go-lang.c (_initialize_go_language): Add declaration.
11559 * go32-nat.c (_initialize_go32_nat): Add declaration.
11560 * guile/guile.c (_initialize_guile): Add declaration.
11561 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11562 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11563 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11564 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11565 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11566 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11567 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11568 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11569 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11570 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11571 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11572 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11573 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11574 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11575 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11576 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11577 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11578 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11579 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11580 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11581 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11582 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11583 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11584 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11585 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11586 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11587 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11588 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11589 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11590 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11591 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11592 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11593 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11594 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11595 * infcall.c (_initialize_infcall): Add declaration.
11596 * infcmd.c (_initialize_infcmd): Add declaration.
11597 * inflow.c (_initialize_inflow): Add declaration.
11598 * infrun.c (_initialize_infrun): Add declaration.
11599 * interps.c (_initialize_interpreter): Add declaration.
11600 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11601 * jit.c (_initialize_jit): Add declaration.
11602 * language.c (_initialize_language): Add declaration.
11603 * linux-fork.c (_initialize_linux_fork): Add declaration.
11604 * linux-nat.c (_initialize_linux_nat): Add declaration.
11605 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11606 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11607 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11608 * m2-lang.c (_initialize_m2_language): Add declaration.
11609 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11610 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11611 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11612 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11613 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11614 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11615 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11616 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11617 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11618 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11619 * machoread.c (_initialize_machoread): Add declaration.
11620 * macrocmd.c (_initialize_macrocmd): Add declaration.
11621 * macroscope.c (_initialize_macroscope): Add declaration.
11622 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11623 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11624 * maint.c (_initialize_maint_cmds): Add declaration.
11625 * mdebugread.c (_initialize_mdebugread): Add declaration.
11626 * memattr.c (_initialize_mem): Add declaration.
11627 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11628 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11629 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11630 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11631 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11632 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11633 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11634 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11635 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11636 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11637 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11638 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11639 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11640 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11641 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11642 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11643 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11644 * mipsread.c (_initialize_mipsread): Add declaration.
11645 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11646 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11647 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11648 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11649 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11650 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11651 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11652 * nto-procfs.c (_initialize_procfs): Add declaration.
11653 * objc-lang.c (_initialize_objc_language): Add declaration.
11654 * observable.c (_initialize_observer): Add declaration.
11655 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11656 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11657 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11658 * osabi.c (_initialize_gdb_osabi): Add declaration.
11659 * osdata.c (_initialize_osdata): Add declaration.
11660 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11661 * parse.c (_initialize_parse): Add declaration.
11662 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11663 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11664 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11665 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11666 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11667 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11668 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11669 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11670 * printcmd.c (_initialize_printcmd): Add declaration.
11671 * probe.c (_initialize_probe): Add declaration.
11672 * proc-api.c (_initialize_proc_api): Add declaration.
11673 * proc-events.c (_initialize_proc_events): Add declaration.
11674 * proc-service.c (_initialize_proc_service): Add declaration.
11675 * procfs.c (_initialize_procfs): Add declaration.
11676 * producer.c (_initialize_producer): Add declaration.
11677 * psymtab.c (_initialize_psymtab): Add declaration.
11678 * python/python.c (_initialize_python): Add declaration.
11679 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11680 * record-btrace.c (_initialize_record_btrace): Add declaration.
11681 * record-full.c (_initialize_record_full): Add declaration.
11682 * record.c (_initialize_record): Add declaration.
11683 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11684 * regcache.c (_initialize_regcache): Add declaration.
11685 * reggroups.c (_initialize_reggroup): Add declaration.
11686 * remote-notif.c (_initialize_notif): Add declaration.
11687 * remote-sim.c (_initialize_remote_sim): Add declaration.
11688 * remote.c (_initialize_remote): Add declaration.
11689 * reverse.c (_initialize_reverse): Add declaration.
11690 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11691 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11692 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11693 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11694 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11695 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11696 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11697 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11698 Add declaration.
11699 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11700 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11701 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11702 * rust-exp.y (_initialize_rust_exp): Add declaration.
11703 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11704 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11705 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11706 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11707 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11708 * score-tdep.c (_initialize_score_tdep): Add declaration.
11709 * ser-go32.c (_initialize_ser_dos): Add declaration.
11710 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11711 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11712 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11713 * ser-uds.c (_initialize_ser_socket): Add declaration.
11714 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11715 * serial.c (_initialize_serial): Add declaration.
11716 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11717 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11718 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11719 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11720 * skip.c (_initialize_step_skip): Add declaration.
11721 * sol-thread.c (_initialize_sol_thread): Add declaration.
11722 * solib-aix.c (_initialize_solib_aix): Add declaration.
11723 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11724 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11725 * solib-frv.c (_initialize_frv_solib): Add declaration.
11726 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11727 * solib-target.c (_initialize_solib_target): Add declaration.
11728 * solib.c (_initialize_solib): Add declaration.
11729 * source-cache.c (_initialize_source_cache): Add declaration.
11730 * source.c (_initialize_source): Add declaration.
11731 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11732 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11733 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11734 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11735 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11736 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11737 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11738 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11739 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11740 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11741 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11742 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11743 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11744 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11745 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11746 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11747 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11748 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11749 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11750 * stabsread.c (_initialize_stabsread): Add declaration.
11751 * stack.c (_initialize_stack): Add declaration.
11752 * stap-probe.c (_initialize_stap_probe): Add declaration.
11753 * std-regs.c (_initialize_frame_reg): Add declaration.
11754 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11755 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11756 * symfile.c (_initialize_symfile): Add declaration.
11757 * symmisc.c (_initialize_symmisc): Add declaration.
11758 * symtab.c (_initialize_symtab): Add declaration.
11759 * target.c (_initialize_target): Add declaration.
11760 * target-connection.c (_initialize_target_connection): Add
11761 declaration.
11762 * target-dcache.c (_initialize_target_dcache): Add declaration.
11763 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11764 * thread.c (_initialize_thread): Add declaration.
11765 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11766 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11767 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11768 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11769 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11770 * tracectf.c (_initialize_ctf): Add declaration.
11771 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11772 * tracefile.c (_initialize_tracefile): Add declaration.
11773 * tracepoint.c (_initialize_tracepoint): Add declaration.
11774 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11775 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11776 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11777 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11778 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11779 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11780 * tui/tui.c (_initialize_tui): Add declaration.
11781 * typeprint.c (_initialize_typeprint): Add declaration.
11782 * ui-style.c (_initialize_ui_style): Add declaration.
11783 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11784 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11785 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11786 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11787 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11788 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11789 * unittests/filtered_iterator-selftests.c
11790 (_initialize_filtered_iterator_selftests): Add declaration.
11791 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11792 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11793 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11794 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11795 * unittests/main-thread-selftests.c
11796 (_initialize_main_thread_selftests): Add declaration.
11797 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11798 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11799 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11800 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11801 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11802 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11803 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11804 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11805 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11806 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11807 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11808 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11809 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11810 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11811 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11812 declaration.
11813 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11814 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11815 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11816 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11817 * user-regs.c (_initialize_user_regs): Add declaration.
11818 * utils.c (_initialize_utils): Add declaration.
11819 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11820 * valops.c (_initialize_valops): Add declaration.
11821 * valprint.c (_initialize_valprint): Add declaration.
11822 * value.c (_initialize_values): Add declaration.
11823 * varobj.c (_initialize_varobj): Add declaration.
11824 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11825 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11826 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11827 * windows-nat.c (_initialize_windows_nat): Add declaration.
11828 (_initialize_check_for_gdb_ini): Add declaration.
11829 (_initialize_loadable): Add declaration.
11830 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11831 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11832 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11833 * xcoffread.c (_initialize_xcoffread): Add declaration.
11834 * xml-support.c (_initialize_xml_support): Add declaration.
11835 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11836 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11837 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11838 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11839
11840 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11841
11842 * regformats/regdat.sh: Generate declaration for init function.
11843
11844 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11845
11846 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11847 up.
11848 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11849 close_one_inferior>: New methods.
11850 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11851 pass down target to find_inferior_pid.
11852 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11853 Pass down target to find_inferior_ptid.
11854 (gdbsim_target::create_inferior): Pass down target to
11855 add_thread_silent.
11856 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11857 target down to find_inferior_ptid and switch_to_thread.
11858 (gdbsim_target::close): Update to call close_one_inferior.
11859 (struct resume_data): Remove.
11860 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11861 directly, rather than through a void pointer.
11862 (gdbsim_target::resume): Update to call resume_one_inferior.
11863
11864 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11865
11866 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11867
11868 2020-01-12 Pedro Alves <palves@redhat.com>
11869
11870 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11871 directly for the current inferior instead of
11872 discard_all_inferiors.
11873 (discard_all_inferiors): Delete.
11874
11875 2020-01-11 Tom Tromey <tom@tromey.com>
11876
11877 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11878 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11879 deprecated_safe_get_selected_frame.
11880
11881 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11882
11883 * inferior.c (print_inferior): Switch inferior before printing it.
11884
11885 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11886 Pedro Alves <palves@redhat.com>
11887
11888 * progspace-and-thread.c (switch_to_program_space_and_thread):
11889 Assert there's an inferior for PSPACE. Use
11890 switch_to_inferior_no_thread to switch the inferior too.
11891 * progspace.c (program_space::~program_space): Call
11892 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11893 (program_space::free_all_objfiles): Don't call clear_symtab_users
11894 here.
11895 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11896
11897 2020-01-10 Pedro Alves <palves@redhat.com>
11898
11899 * NEWS: Mention multi-target debugging, "info connections", and
11900 "add-inferior -no-connection".
11901
11902 2020-01-10 Pedro Alves <palves@redhat.com>
11903
11904 * infrun.c: Include "target-connection.h".
11905 (check_multi_target_resumption): New.
11906 (proceed): Call it.
11907 * target-connection.c (make_target_connection_string): Make
11908 extern.
11909 * target-connection.h (make_target_connection_string): Declare.
11910
11911 2020-01-10 Pedro Alves <palves@redhat.com>
11912
11913 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11914 * inferior.c (uiout_field_connection): New function.
11915 (print_inferior): Add new "connection-id" column.
11916 (add_inferior_command): Show connection number/string of added
11917 inferior.
11918 * process-stratum-target.h
11919 (process_stratum_target::connection_string): New virtual method.
11920 (process_stratum_target::connection_number): New field.
11921 * remote.c (remote_target::connection_string): New override.
11922 * target-connection.c: New file.
11923 * target-connection.h: New file.
11924 * target.c (decref_target): Remove process_stratum targets from
11925 the connection list.
11926 (target_stack::push): Add process_stratum targets to the
11927 connection list.
11928
11929 2020-01-10 Pedro Alves <palves@redhat.com>
11930
11931 Revert:
11932 2016-04-12 Pedro Alves <palves@redhat.com>
11933 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11934 Remove references to name.
11935 * serial.h (struct serial) <name>: Delete.
11936
11937 2020-01-10 Pedro Alves <palves@redhat.com>
11938
11939 * gdbarch-selftests.c (register_to_value_test): Remove "target
11940 already pushed" check.
11941
11942 2020-01-10 Pedro Alves <palves@redhat.com>
11943 John Baldwin <jhb@FreeBSD.org>
11944
11945 * aarch64-linux-nat.c
11946 (aarch64_linux_nat_target::thread_architecture): Adjust.
11947 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11948 (task_command_1): Likewise.
11949 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11950 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11951 (aix_thread_target::store_registers)
11952 (aix_thread_target::thread_alive): Adjust.
11953 * amd64-fbsd-tdep.c: Include "inferior.h".
11954 (amd64fbsd_get_thread_local_address): Pass down target.
11955 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11956 thread's gdbarch instead of target_gdbarch.
11957 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11958 get_last_target_status.
11959 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11960 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11961 inferiors.
11962 (update_inserted_breakpoint_locations): Skip if inferiors with no
11963 execution.
11964 (update_global_location_list): When handling moribund locations,
11965 find representative inferior for location's pspace, and use thread
11966 count of its process_stratum target.
11967 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11968 * bsd-uthread.c (bsd_uthread_target::wait): Use
11969 as_process_stratum_target and adjust thread_change_ptid and
11970 add_thread calls.
11971 (bsd_uthread_target::update_thread_list): Use
11972 as_process_stratum_target and adjust find_thread_ptid,
11973 thread_change_ptid and add_thread calls.
11974 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11975 find_thread_ptid call.
11976 * corelow.c (add_to_thread_list): Adjust add_thread call.
11977 (core_target_open): Adjust add_thread_silent and thread_count
11978 calls.
11979 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11980 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11981 * event-top.c (async_disconnect): Pop targets from all inferiors.
11982 * exec.c (add_target_sections): Push exec target on all inferiors
11983 sharing the program space.
11984 (remove_target_sections): Remove the exec target from all
11985 inferiors sharing the program space.
11986 (exec_on_vfork): New.
11987 * exec.h (exec_on_vfork): Declare.
11988 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11989 Pass it down.
11990 (fbsd_nat_target::update_thread_list): Adjust.
11991 (fbsd_nat_target::resume): Adjust.
11992 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11993 down.
11994 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11995 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11996 get_thread_arch_regcache call.
11997 * fork-child.c (gdb_startup_inferior): Pass target down to
11998 startup_inferior and set_executing.
11999 * gdbthread.h (struct process_stratum_target): Forward declare.
12000 (add_thread, add_thread_silent, add_thread_with_info)
12001 (in_thread_list): Add process_stratum_target parameter.
12002 (find_thread_ptid(inferior*, ptid_t)): New overload.
12003 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12004 parameter.
12005 (all_threads()): Delete overload.
12006 (all_threads, all_non_exited_threads): Add process_stratum_target
12007 parameter.
12008 (all_threads_safe): Use brace initialization.
12009 (thread_count): Add process_stratum_target parameter.
12010 (set_resumed, set_running, set_stop_requested, set_executing)
12011 (threads_are_executing, finish_thread_state): Add
12012 process_stratum_target parameter.
12013 (switch_to_thread): Use is_current_thread.
12014 * i386-fbsd-tdep.c: Include "inferior.h".
12015 (i386fbsd_get_thread_local_address): Pass down target.
12016 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12017 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12018 have_inferiors check.
12019 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12020 (inf_ptrace_target::attach): Adjust.
12021 * infcall.c (run_inferior_call): Adjust.
12022 * infcmd.c (run_command_1): Pass target to
12023 scoped_finish_thread_state.
12024 (proceed_thread_callback): Skip inferiors with no execution.
12025 (continue_command): Rename 'all_threads' local to avoid hiding
12026 'all_threads' function. Adjust get_last_target_status call.
12027 (prepare_one_step): Adjust set_running call.
12028 (signal_command): Use user_visible_resume_target. Compare thread
12029 pointers instead of inferior_ptid.
12030 (info_program_command): Adjust to pass down target.
12031 (attach_command): Mark target's 'thread_executing' flag.
12032 (stop_current_target_threads_ns): New, factored out from ...
12033 (interrupt_target_1): ... this. Switch inferior before making
12034 target calls.
12035 * inferior-iter.h
12036 (struct all_inferiors_iterator, struct all_inferiors_range)
12037 (struct all_inferiors_safe_range)
12038 (struct all_non_exited_inferiors_range): Filter on
12039 process_stratum_target too. Remove explicit.
12040 * inferior.c (inferior::inferior): Push dummy target on target
12041 stack.
12042 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12043 Add process_stratum_target parameter, and pass it down.
12044 (have_live_inferiors): Adjust.
12045 (switch_to_inferior_and_push_target): New.
12046 (add_inferior_command, clone_inferior_command): Handle
12047 "-no-connection" parameter. Use
12048 switch_to_inferior_and_push_target.
12049 (_initialize_inferior): Mention "-no-connection" option in
12050 the help of "add-inferior" and "clone-inferior" commands.
12051 * inferior.h: Include "process-stratum-target.h".
12052 (interrupt_target_1): Use bool.
12053 (struct inferior) <push_target, unpush_target, target_is_pushed,
12054 find_target_beneath, top_target, process_target, target_at,
12055 m_stack>: New.
12056 (discard_all_inferiors): Delete.
12057 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12058 (all_inferiors, all_non_exited_inferiors): Add
12059 process_stratum_target parameter.
12060 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12061 (target_last_proc_target): New global.
12062 (follow_fork_inferior): Push target on new inferior. Pass target
12063 to add_thread_silent. Call exec_on_vfork. Handle target's
12064 reference count.
12065 (follow_fork): Adjust get_last_target_status call. Also consider
12066 target.
12067 (follow_exec): Push target on new inferior.
12068 (struct execution_control_state) <target>: New field.
12069 (user_visible_resume_target): New.
12070 (do_target_resume): Call target_async.
12071 (resume_1): Set target's threads_executing flag. Consider resume
12072 target.
12073 (commit_resume_all_targets): New.
12074 (proceed): Also consider resume target. Skip threads of inferiors
12075 with no execution. Commit resumtion in all targets.
12076 (start_remote): Pass current inferior to wait_for_inferior.
12077 (infrun_thread_stop_requested): Consider target as well. Pass
12078 thread_info pointer to clear_inline_frame_state instead of ptid.
12079 (infrun_thread_thread_exit): Consider target as well.
12080 (random_pending_event_thread): New inferior parameter. Use it.
12081 (do_target_wait): Rename to ...
12082 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12083 down.
12084 (threads_are_resumed_pending_p, do_target_wait): New.
12085 (prepare_for_detach): Adjust calls.
12086 (wait_for_inferior): New inferior parameter. Handle it. Use
12087 do_target_wait_1 instead of do_target_wait.
12088 (fetch_inferior_event): Adjust. Switch to representative
12089 inferior. Pass target down.
12090 (set_last_target_status): Add process_stratum_target parameter.
12091 Save target in global.
12092 (get_last_target_status): Add process_stratum_target parameter and
12093 handle it.
12094 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12095 (context_switch): Check inferior_ptid == null_ptid before calling
12096 inferior_thread().
12097 (get_inferior_stop_soon): Pass down target.
12098 (wait_one): Rename to ...
12099 (poll_one_curr_target): ... this.
12100 (struct wait_one_event): New.
12101 (wait_one): New.
12102 (stop_all_threads): Adjust.
12103 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12104 event's target.
12105 (switch_back_to_stepped_thread): Also consider target.
12106 (print_stop_event): Update.
12107 (normal_stop): Update. Also consider the resume target.
12108 * infrun.h (wait_for_inferior): Remove declaration.
12109 (user_visible_resume_target): New declaration.
12110 (get_last_target_status, set_last_target_status): New
12111 process_stratum_target parameter.
12112 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12113 process_stratum_target parameter, and use it.
12114 (clear_inline_frame_state (thread_info*)): New.
12115 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12116 process_stratum_target parameter.
12117 (clear_inline_frame_state (thread_info*)): Declare.
12118 * linux-fork.c (delete_checkpoint_command): Pass target down to
12119 find_thread_ptid.
12120 (checkpoint_command): Adjust.
12121 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12122 instead of just tweaking inferior_ptid.
12123 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12124 (exit_lwp): Pass target down to find_thread_ptid.
12125 (attach_proc_task_lwp_callback): Pass target down to
12126 add_thread/set_running/set_executing.
12127 (linux_nat_target::attach): Pass target down to
12128 thread_change_ptid.
12129 (get_detach_signal): Pass target down to find_thread_ptid.
12130 Consider last target status's target.
12131 (linux_resume_one_lwp_throw, resume_lwp)
12132 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12133 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12134 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12135 (linux_nat_target::async_wait_fd): New.
12136 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12137 target down.
12138 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12139 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12140 * linux-thread-db.c (struct thread_db_info::process_target): New
12141 field.
12142 (add_thread_db_info): Save target.
12143 (get_thread_db_info): New process_stratum_target parameter. Also
12144 match target.
12145 (delete_thread_db_info): New process_stratum_target parameter.
12146 Also match target.
12147 (thread_from_lwp): Adjust to pass down target.
12148 (thread_db_notice_clone): Pass down target.
12149 (check_thread_db_callback): Pass down target.
12150 (try_thread_db_load_1): Always push the thread_db target.
12151 (try_thread_db_load, record_thread): Pass target down.
12152 (thread_db_target::detach): Pass target down. Always unpush the
12153 thread_db target.
12154 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12155 target down. Always unpush the thread_db target.
12156 (find_new_threads_callback, thread_db_find_new_threads_2)
12157 (thread_db_target::update_thread_list): Pass target down.
12158 (thread_db_target::pid_to_str): Pass current inferior down.
12159 (thread_db_target::get_thread_local_address): Pass target down.
12160 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12161 target down.
12162 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12163 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12164 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12165 (procfs_init_inferior): Rename to ...
12166 (procfs_target::procfs_init_inferior): ... this and adjust.
12167 (procfs_target::create_inferior, procfs_notice_thread)
12168 (procfs_do_thread_registers): Adjust.
12169 * ppc-fbsd-tdep.c: Include "inferior.h".
12170 (ppcfbsd_get_thread_local_address): Pass down target.
12171 * proc-service.c (ps_xfer_memory): Switch current inferior and
12172 program space as well.
12173 (get_ps_regcache): Pass target down.
12174 * process-stratum-target.c
12175 (process_stratum_target::thread_address_space)
12176 (process_stratum_target::thread_architecture): Pass target down.
12177 * process-stratum-target.h
12178 (process_stratum_target::threads_executing): New field.
12179 (as_process_stratum_target): New.
12180 * ravenscar-thread.c
12181 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12182 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12183 down.
12184 * record-btrace.c (record_btrace_target::info_record): Adjust.
12185 (record_btrace_target::record_method)
12186 (record_btrace_target::record_is_replaying)
12187 (record_btrace_target::fetch_registers)
12188 (get_thread_current_frame_id, record_btrace_target::resume)
12189 (record_btrace_target::wait, record_btrace_target::stop): Pass
12190 target down.
12191 * record-full.c (record_full_wait_1): Switch to event thread.
12192 Pass target down.
12193 * regcache.c (regcache::regcache)
12194 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12195 process_stratum_target parameter and handle it.
12196 (current_thread_target): New global.
12197 (get_thread_regcache): Add process_stratum_target parameter and
12198 handle it. Switch inferior before calling target method.
12199 (get_thread_regcache): Pass target down.
12200 (get_thread_regcache_for_ptid): Pass target down.
12201 (registers_changed_ptid): Add process_stratum_target parameter and
12202 handle it.
12203 (registers_changed_thread, registers_changed): Pass target down.
12204 (test_get_thread_arch_aspace_regcache): New.
12205 (current_regcache_test): Define a couple local test_target_ops
12206 instances and use them for testing.
12207 (readwrite_regcache): Pass process_stratum_target parameter.
12208 (cooked_read_test, cooked_write_test): Pass mock_target down.
12209 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12210 (get_thread_arch_aspace_regcache): Add process_stratum_target
12211 parameter.
12212 (regcache::target): New method.
12213 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12214 (regcache::registers_changed_ptid): Add process_stratum_target
12215 parameter.
12216 (regcache::m_target): New field.
12217 (registers_changed_ptid): Add process_stratum_target parameter.
12218 * remote.c (remote_state::supports_vCont_probed): New field.
12219 (remote_target::async_wait_fd): New method.
12220 (remote_unpush_and_throw): Add remote_target parameter.
12221 (get_current_remote_target): Adjust.
12222 (remote_target::remote_add_inferior): Push target.
12223 (remote_target::remote_add_thread)
12224 (remote_target::remote_notice_new_inferior)
12225 (get_remote_thread_info): Pass target down.
12226 (remote_target::update_thread_list): Skip threads of inferiors
12227 bound to other targets. (remote_target::close): Don't discard
12228 inferiors. (remote_target::add_current_inferior_and_thread)
12229 (remote_target::process_initial_stop_replies)
12230 (remote_target::start_remote)
12231 (remote_target::remote_serial_quit_handler): Pass down target.
12232 (remote_target::remote_unpush_target): New remote_target
12233 parameter. Unpush the target from all inferiors.
12234 (remote_target::remote_unpush_and_throw): New remote_target
12235 parameter. Pass it down.
12236 (remote_target::open_1): Check whether the current inferior has
12237 execution instead of checking whether any inferior is live. Pass
12238 target down.
12239 (remote_target::remote_detach_1): Pass down target. Use
12240 remote_unpush_target.
12241 (extended_remote_target::attach): Pass down target.
12242 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12243 (remote_target::append_resumption): Pass down target.
12244 (remote_target::append_pending_thread_resumptions)
12245 (remote_target::remote_resume_with_hc, remote_target::resume)
12246 (remote_target::commit_resume): Pass down target.
12247 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12248 (remote_target::interrupt_query)
12249 (remote_target::remove_new_fork_children)
12250 (remote_target::check_pending_events_prevent_wildcard_vcont)
12251 (remote_target::remote_parse_stop_reply)
12252 (remote_target::process_stop_reply): Pass down target.
12253 (first_remote_resumed_thread): New remote_target parameter. Pass
12254 it down.
12255 (remote_target::wait_as): Pass down target.
12256 (unpush_and_perror): New remote_target parameter. Pass it down.
12257 (remote_target::readchar, remote_target::remote_serial_write)
12258 (remote_target::getpkt_or_notif_sane_1)
12259 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12260 down target.
12261 (remote_target::mourn_inferior): Pass down target. Use
12262 remote_unpush_target.
12263 (remote_target::core_of_thread)
12264 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12265 (remote_target::pid_to_exec_file)
12266 (remote_target::thread_handle_to_thread_info): Pass down target.
12267 (remote_target::async_wait_fd): New.
12268 * riscv-fbsd-tdep.c: Include "inferior.h".
12269 (riscv_fbsd_get_thread_local_address): Pass down target.
12270 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12271 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12272 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12273 Adjust.
12274 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12275 * solib-svr4.c (enable_break): Pass down target.
12276 * spu-multiarch.c (parse_spufs_run): Pass down target.
12277 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12278 * target-delegates.c: Regenerate.
12279 * target.c (g_target_stack): Delete.
12280 (current_top_target): Return the current inferior's top target.
12281 (target_has_execution_1): Refer to the passed-in inferior's top
12282 target.
12283 (target_supports_terminal_ours): Check whether the initial
12284 inferior was already created.
12285 (decref_target): New.
12286 (target_stack::push): Incref/decref the target.
12287 (push_target, push_target, unpush_target): Adjust.
12288 (target_stack::unpush): Defref target.
12289 (target_is_pushed): Return bool. Adjust to refer to the current
12290 inferior's target stack.
12291 (dispose_inferior): Delete, and inline parts ...
12292 (target_preopen): ... here. Only dispose of the current inferior.
12293 (target_detach): Hold strong target reference while detaching.
12294 Pass target down.
12295 (target_thread_name): Add assertion.
12296 (target_resume): Pass down target.
12297 (target_ops::beneath, find_target_at): Adjust to refer to the
12298 current inferior's target stack.
12299 (get_dummy_target): New.
12300 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12301 has a thread running.
12302 (initialize_targets): Rename to ...
12303 (_initialize_target): ... this.
12304 * target.h: Include "gdbsupport/refcounted-object.h".
12305 (struct target_ops): Inherit refcounted_object.
12306 (target_ops::shortname, target_ops::longname): Make const.
12307 (target_ops::async_wait_fd): New method.
12308 (decref_target): Declare.
12309 (struct target_ops_ref_policy): New.
12310 (target_ops_ref): New typedef.
12311 (get_dummy_target): Declare function.
12312 (target_is_pushed): Return bool.
12313 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12314 (all_matching_threads_iterator::all_matching_threads_iterator):
12315 Handle filter target.
12316 * thread-iter.h (struct all_matching_threads_iterator, struct
12317 all_matching_threads_range, class all_non_exited_threads_range):
12318 Filter by target too. Remove explicit.
12319 * thread.c (threads_executing): Delete.
12320 (inferior_thread): Pass down current inferior.
12321 (clear_thread_inferior_resources): Pass down thread pointer
12322 instead of ptid_t.
12323 (add_thread_silent, add_thread_with_info, add_thread): Add
12324 process_stratum_target parameter. Use it for thread and inferior
12325 searches.
12326 (is_current_thread): New.
12327 (thread_info::deletable): Use it.
12328 (find_thread_ptid, thread_count, in_thread_list)
12329 (thread_change_ptid, set_resumed, set_running): New
12330 process_stratum_target parameter. Pass it down.
12331 (set_executing): New process_stratum_target parameter. Pass it
12332 down. Adjust reference to 'threads_executing'.
12333 (threads_are_executing): New process_stratum_target parameter.
12334 Adjust reference to 'threads_executing'.
12335 (set_stop_requested, finish_thread_state): New
12336 process_stratum_target parameter. Pass it down.
12337 (switch_to_thread): Also match inferior.
12338 (switch_to_thread): New process_stratum_target parameter. Pass it
12339 down.
12340 (update_threads_executing): Reimplement.
12341 * top.c (quit_force): Pop targets from all inferior.
12342 (gdb_init): Don't call initialize_targets.
12343 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12344 Declare.
12345 (windows_add_thread, windows_delete_thread): Adjust.
12346 (get_windows_debug_event): Rename to ...
12347 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12348 * tracefile-tfile.c (tfile_target_open): Pass down target.
12349 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12350 Forward declare.
12351 (switch_to_thread): Add process_stratum_target parameter.
12352 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12353 parameter. Use it.
12354 (mi_on_resume): Pass target down.
12355 * nat/fork-inferior.c (startup_inferior): Add
12356 process_stratum_target parameter. Pass it down.
12357 * nat/fork-inferior.h (startup_inferior): Add
12358 process_stratum_target parameter.
12359 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12360
12361 2020-01-10 Pedro Alves <palves@redhat.com>
12362
12363 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12364 directly. Instead find the first thread in the thread list and
12365 use switch_to_thread.
12366
12367 2020-01-10 Pedro Alves <palves@redhat.com>
12368
12369 * remote.c (remote_target::remote_add_inferior): Don't bind a
12370 process to the current inferior if the current inferior is already
12371 bound to a process.
12372
12373 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12374 Pedro Alves <palves@redhat.com>
12375
12376 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12377 If no process is specified, return null_ptid instead of
12378 inferior_ptid.
12379 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12380 TARGET_WAITKIND_SIGNALLED with no pid.
12381
12382 2020-01-10 Pedro Alves <palves@redhat.com>
12383
12384 * remote.c (first_remote_resumed_thread): New.
12385 (remote_target::wait_as): Use it as default event_ptid instead of
12386 inferior_ptid.
12387
12388 2020-01-10 Pedro Alves <palves@redhat.com>
12389
12390 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12391
12392 2020-01-10 Pedro Alves <palves@redhat.com>
12393
12394 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12395 not -1.
12396
12397 2020-01-10 Pedro Alves <palves@redhat.com>
12398
12399 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12400 ptid to get_last_target_status.
12401 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12402 ptid to get_last_target_status.
12403 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12404 get_last_target_status.
12405 (info_program_command): Don't pass a target_waitstatus to
12406 get_last_target_status.
12407 * infrun.c (init_wait_for_inferior): Use
12408 nullify_last_target_wait_ptid.
12409 (get_last_target_status): Handle nullptr arguments.
12410 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12411 (print_stop_event): Don't pass a ptid to get_last_target_status.
12412 (normal_stop): Don't pass a ptid to get_last_target_status.
12413 * infrun.h (get_last_target_status, set_last_target_status): Move
12414 comments here and update.
12415 (nullify_last_target_wait_ptid): Declare.
12416 * linux-fork.c (fork_load_infrun_state): Remove local extern
12417 declaration of nullify_last_target_wait_ptid.
12418 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12419 to get_last_target_status.
12420
12421 2020-01-10 Pedro Alves <palves@redhat.com>
12422
12423 * gdbthread.h (scoped_restore_current_thread)
12424 <dont_restore, restore, m_dont_restore>: Declare.
12425 * thread.c (thread_alive): Add assertion. Return bool.
12426 (switch_to_thread_if_alive): New.
12427 (prune_threads): Switch inferior/thread.
12428 (print_thread_info_1): Switch thread before calling target methods.
12429 (scoped_restore_current_thread::restore): New, factored out from
12430 ...
12431 (scoped_restore_current_thread::~scoped_restore_current_thread):
12432 ... this.
12433 (scoped_restore_current_thread::scoped_restore_current_thread):
12434 Add assertion.
12435 (thread_apply_all_command, thread_select): Use
12436 switch_to_thread_if_alive.
12437 * infrun.c (proceed, restart_threads, handle_signal_stop)
12438 (switch_back_to_stepped_thread): Switch current thread before
12439 calling target methods.
12440
12441 2020-01-10 Pedro Alves <palves@redhat.com>
12442
12443 * inferior.c (switch_to_inferior_no_thread): New function,
12444 factored out from ...
12445 (inferior_command): ... here.
12446 * inferior.h (switch_to_inferior_no_thread): Declare.
12447 * mi/mi-main.c (run_one_inferior): Use
12448 switch_to_inferior_no_thread.
12449
12450 2020-01-10 Pedro Alves <palves@redhat.com>
12451
12452 * infcmd.c (kill_command): Remove dead code.
12453
12454 2020-01-10 Pedro Alves <palves@redhat.com>
12455
12456 * remote.c (remote_target::mourn_inferior): No longer check
12457 whether the target is running.
12458
12459 2020-01-10 Pedro Alves <palves@redhat.com>
12460
12461 * corelow.c (core_target::has_execution): Change parameter type to
12462 inferior pointer.
12463 * inferior.c (number_of_live_inferiors): Use
12464 inferior::has_execution instead of target_has_execution_1.
12465 * inferior.h (inferior::has_execution): New.
12466 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12467 inferior::has_execution instead of target_has_execution_1.
12468 * process-stratum-target.c
12469 (process_stratum_target::has_execution): Change parameter type to
12470 inferior pointer. Check the inferior's PID instead of
12471 inferior_ptid.
12472 * process-stratum-target.h
12473 (process_stratum_target::has_execution): Change parameter type to
12474 inferior pointer.
12475 * record-full.c (record_full_core_target::has_execution): Change
12476 parameter type to inferior pointer.
12477 * target.c (target_has_execution_1): Change parameter type to
12478 inferior pointer.
12479 (target_has_execution_current): Adjust.
12480 * target.h (target_ops::has_execution): Change parameter type to
12481 inferior pointer.
12482 (target_has_execution_1): Change parameter type to inferior
12483 pointer. Change return type to bool.
12484 * tracefile.h (tracefile_target::has_execution): Change parameter
12485 type to inferior pointer.
12486
12487 2020-01-10 Pedro Alves <palves@redhat.com>
12488
12489 * exceptions.c (print_flush): Remove current_top_target() check.
12490
12491 2020-01-10 Pedro Alves <palves@redhat.com>
12492
12493 * remote.c (show_remote_exec_file): Show the current inferior's
12494 exec-file instead of the command variable's value.
12495
12496 2020-01-10 Pedro Alves <palves@redhat.com>
12497
12498 * record-full.c (record_full_resume_ptid): New global.
12499 (record_full_target::resume): Set it.
12500 (record_full_wait_1): Use record_full_resume_ptid instead of
12501 inferior_ptid.
12502
12503 2020-01-10 Pedro Alves <palves@redhat.com>
12504
12505 * gdbthread.h (scoped_restore_current_thread)
12506 <dont_restore, restore, m_dont_restore>: Declare.
12507 * thread.c (thread_alive): Add assertion. Return bool.
12508 (switch_to_thread_if_alive): New.
12509 (prune_threads): Switch inferior/thread.
12510 (print_thread_info_1): Switch thread before calling target methods.
12511 (scoped_restore_current_thread::restore): New, factored out from
12512 ...
12513 (scoped_restore_current_thread::~scoped_restore_current_thread):
12514 ... this.
12515 (scoped_restore_current_thread::scoped_restore_current_thread):
12516 Add assertion.
12517 (thread_apply_all_command, thread_select): Use
12518 switch_to_thread_if_alive.
12519
12520 2020-01-10 George Barrett <bob@bob131.so>
12521
12522 * stap-probe.c (stap_modify_semaphore): Don't check for null
12523 semaphores.
12524 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12525 for null semaphores.
12526
12527 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12528
12529 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12530 all source windows, and maintain horizontal scroll status while
12531 doing so.
12532
12533 2020-01-09 Tom Tromey <tom@tromey.com>
12534
12535 PR tui/18932:
12536 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12537 update_source_window, not print_source_lines.
12538
12539 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12540
12541 * tui/tui.c (tui_enable): Register tui hooks after calling
12542 tui_display_main.
12543
12544 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12545
12546 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12547
12548 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12549
12550 * thread.c (print_thread_info_1): Fix indentation.
12551
12552 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12553
12554 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12555 unique_xmalloc_ptr outside the if to always free the demangled name.
12556
12557 2020-01-08 Tom Tromey <tromey@adacore.com>
12558
12559 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12560 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12561 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12562 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12563 Remove.
12564 (section_offsets): New typedef.
12565 * symtab.c (fixup_section, get_msymbol_address): Update.
12566 * symmisc.c (dump_msymbols): Update.
12567 * symfile.h (relative_addr_info_to_section_offsets)
12568 (symfile_map_offsets_to_segments): Update.
12569 * symfile.c (build_section_addr_info_from_objfile)
12570 (init_objfile_sect_indices): Update.
12571 (struct place_section_arg): Change type of "offsets".
12572 (place_section): Update.
12573 (relative_addr_info_to_section_offsets): Change type of
12574 "section_offsets". Remove "num_sections" parameter.
12575 (default_symfile_offsets, syms_from_objfile_1)
12576 (set_objfile_default_section_offset): Update.
12577 (reread_symbols): No need to preserve section offsets by hand.
12578 (symfile_map_offsets_to_segments): Change type of "offsets".
12579 * stap-probe.c (relocate_address): Update.
12580 * stabsread.h (process_one_symbol): Update.
12581 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12582 (solib_target_relocate_section_addresses): Update.
12583 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12584 Update.
12585 * solib-frv.c (frv_relocate_main_executable): Update.
12586 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12587 * solib-aix.c (solib_aix_get_section_offsets): Change return
12588 type.
12589 (solib_aix_solib_create_inferior_hook): Update.
12590 * remote.c (remote_target::get_offsets): Update.
12591 * psymtab.c (find_pc_sect_psymtab): Update.
12592 * psympriv.h (struct partial_symbol) <address, text_low,
12593 text_high>: Update.
12594 * objfiles.h (obj_section_offset): Update.
12595 (struct objfile) <section_offsets>: Change type.
12596 <num_sections>: Remove.
12597 (objfile_relocate): Update.
12598 * objfiles.c (entry_point_address_query): Update
12599 (relocate_one_symbol): Change type of "section_offsets".
12600 (objfile_relocate1, objfile_relocate1): Change type of
12601 "new_offsets".
12602 (objfile_rebase1): Update.
12603 * mipsread.c (mipscoff_symfile_read): Update.
12604 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12605 parameter.
12606 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12607 (parse_external, psymtab_to_symtab_1): Update.
12608 * machoread.c (macho_symfile_offsets): Update.
12609 * ia64-tdep.c (ia64_find_unwind_table): Update.
12610 * hppa-tdep.c (read_unwind_info): Update.
12611 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12612 * dwarf2read.c (create_addrmap_from_index)
12613 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12614 (process_psymtab_comp_unit_reader, add_partial_symbol)
12615 (add_partial_subprogram, process_full_comp_unit)
12616 (read_file_scope, read_func_scope, read_lexical_block_scope)
12617 (read_call_site_scope, dwarf2_rnglists_process)
12618 (dwarf2_ranges_process, dwarf2_ranges_read)
12619 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12620 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12621 Update.
12622 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12623 Update.
12624 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12625 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12626 (process_one_symbol): Change type of "section_offsets".
12627 * ctfread.c (get_objfile_text_range): Update.
12628 * coffread.c (coff_symtab_read, enter_linenos)
12629 (process_coff_symbol): Update.
12630 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12631 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12632
12633 2020-01-08 Tom Tromey <tromey@adacore.com>
12634
12635 * dwarf2read.c (parse_macro_definition): Use std::string.
12636 (parse_macro_definition): Likewise.
12637
12638 2020-01-08 Tom Tromey <tromey@adacore.com>
12639
12640 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12641 (ATTR_ALLOC_CHUNK): Remove.
12642
12643 2020-01-08 Tom Tromey <tromey@adacore.com>
12644
12645 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12646
12647 2020-01-08 Tom Tromey <tromey@adacore.com>
12648
12649 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12650 (dwarf2_compute_name, open_dwo_file): Likewise.
12651 (process_enumeration_scope): Use std::vector.
12652 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12653 (partial_die_info::fixup, dwarf2_start_subfile)
12654 (guess_full_die_structure_name, dwarf2_name): Likewise.
12655 (determine_prefix): Update.
12656 (guess_full_die_structure_name): Make return type const.
12657 (partial_die_full_name): Return unique_xmalloc_ptr.
12658 (DW_FIELD_ALLOC_CHUNK): Remove.
12659
12660 2020-01-07 Tom Tromey <tromey@adacore.com>
12661
12662 PR build/24937:
12663 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12664
12665 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12666
12667 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12668
12669 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12670
12671 * stack.c (print_frame_info): Move disassemble_next_line code
12672 inside source_print block.
12673
12674 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12675
12676 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12677 gdb/signals.h, as we are now using native signal symbols.
12678
12679 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12680
12681 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12682 overflow by an early check of content vs threshold.
12683 * tui/tui-source.c (tui_source_window::line_is_displayed):
12684 Likewise.
12685
12686 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12687
12688 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12689
12690 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12691
12692 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12693 export table if no section contains it's RVA.
12694
12695 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12696
12697 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12698
12699 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12700
12701 * source.c (print_source_lines_base): Set last_line_listed.
12702
12703 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12704
12705 * tui/tui-disasm.c: Remove trailing spaces.
12706
12707 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12708 Pedro Alves <palves@redhat.com>
12709
12710 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12711 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12712 (windows_gdb_signal_to_target): New function, uses the above
12713 enumeration to convert GDB internal signal codes to equivalent
12714 Windows codes.
12715 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12716 * windows-nat.c: Include "gdb_wait.h".
12717 (get_windows_debug_event): Extract the fatal exception from the
12718 exit status and convert to the equivalent Posix signal number.
12719 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12720 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12721 * gdbsupport/gdb_wait.c: New file, implements
12722 windows_status_to_termsig.
12723 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12724 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12725
12726 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12727
12728 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12729 show_layout.
12730
12731 2020-01-05 Luis Machado <luis.machado@linaro.org>
12732
12733 * aarch64-linux-nat.c
12734 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12735 and bfd_mach_aarch64.
12736
12737 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12738
12739 * ui-file.c (stdio_file::can_emit_style_escape)
12740 (tee_file::can_emit_style_escape): Ensure style is used also on
12741 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12742 to gdb_stdout.
12743 * main.c (set_gdb_data_directory): Use file style to output the
12744 warning that the given pathname is not a directory.
12745 * top.c (show_history_filename, gdb_safe_append_history)
12746 (show_gdb_datadir): Use file style.
12747
12748 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12749
12750 * solib-target.c (struct lm_info_target):
12751 Change offsets to be a unique_xmalloc_ptr.
12752 (solib_target_relocate_section_addresses): Update.
12753
12754 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12755
12756 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12757
12758 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12759
12760 * MAINTAINERS (Write After Approval): Add myself.
12761
12762 2020-01-02 Luis Machado <luis.machado@linaro.org>
12763
12764 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12765 Cell BE architecture.
12766 * target.h (struct target_ops) <thread_architecture>: Likewise.
12767
12768 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12769
12770 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12771
12772 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12773
12774 * MAINTAINERS (Write After Approval): Add myself.
12775
12776 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12777
12778 * gdbarch.sh: Update copyright year range of generated files.
12779
12780 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12781
12782 Update copyright year range in all GDB files.
12783
12784 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12785
12786 * copyright.py: Convert to Python 3.
12787
12788 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12789
12790 * copyright.py: Adapt after move of gnulib directory from gdb
12791 directory to toplevel directory.
12792
12793 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12794
12795 * copyright.py (main): Exit if run from the wrong directory.
12796
12797 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12798
12799 * top.c (print_gdb_version): Change copyright year to 2020.
12800
12801 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12802
12803 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12804
12805 For older changes see ChangeLog-2019.
12806 \f
12807 Local Variables:
12808 mode: change-log
12809 left-margin: 8
12810 fill-column: 74
12811 version-control: never
12812 coding: utf-8
12813 End: