gdb: change xml_fetch_another a function_view
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * xml-support.h (xml_fetch_another): Change type to be a
4 function_view.
5 (xml_process_xincludes): Remove baton parameter.
6 (xml_fetch_content_from_file): Change baton parameter to
7 dirname.
8 * xml-support.c (struct xinclude_parsing_data)
9 <xinclude_parsing_data>: Remove baton parameter.
10 <fetcher_baton>: Remove.
11 (xinclude_start_include): Adjust.
12 (xml_process_xincludes): Adjust.
13 (xml_fetch_content_from_file): Replace baton parameter with
14 dirname.
15 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
16 (xml_init_syscalls_info): Use a lambda.
17 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
18 (file_read_description_xml): Use a lambda.
19 (fetch_available_features_from_target): Change baton parameter
20 to target_ops.
21 (target_read_description_xml): Use a lambda.
22 (target_fetch_description_xml): Use a lambda.
23 (string_read_description_xml): Update.
24
25 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
28 uses with type::endianity_is_not_default.
29
30 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
31
32 * gdbtypes.h (struct type) <endianity_is_not_default,
33 set_endianity_is_not_default>: New methods.
34 (TYPE_ENDIANITY_NOT_DEFAULT): Use
35 type::endianity_is_not_default, change all write call sites to
36 use type::set_endianity_is_not_default.
37
38 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
39
40 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
41 uses with type::is_fixed_instance.
42
43 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
44
45 * gdbtypes.h (struct type) <is_fixed_instance,
46 set_is_fixed_instance>: New methods.
47 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
48 write call sites to use type::set_is_fixed_instance.
49
50 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
51
52 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
53 uses with type::is_gnu_ifunc.
54
55 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
56
57 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
58 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
59 use type::set_is_gnu_ifunc.
60
61 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
62
63 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
64 uses with type::stub_is_supported.
65
66 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
67
68 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
69 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
70 use type::set_stub_is_supported.
71
72 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
73
74 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
75 uses with type::is_vector.
76
77 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
78
79 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
80 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
81 use type::set_is_vector.
82
83 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
84
85 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
86 uses with type::has_varargs.
87
88 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
89
90 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
91 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
92 use type::set_has_varargs.
93
94 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
95
96 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
97 uses with type::is_prototyped.
98
99 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
100
101 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
102 New methods.
103 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
104 call sites to use type::set_is_prototyped.
105
106 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
107
108 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
109 uses with type::target_is_stub.
110
111 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
112
113 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
114 New methods.
115 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
116 sites to use type::set_target_is_stub.
117
118 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
119
120 * gdbtypes.h (TYPE_STUB): Remove, replace all
121 uses with type::is_stub.
122
123 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
124
125 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
126 (TYPE_STUB): Use type::is_stub, change all write call sites to
127 use type::set_is_stub.
128
129 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
130
131 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
132 type::has_no_signedness.
133
134 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
135
136 * gdbtypes.h (struct type) <has_no_signedness,
137 set_has_no_signedness>: New methods.
138 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
139 call sites to use type::set_has_no_signedness.
140
141 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
142
143 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
144 type::is_unsigned.
145
146 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
147
148 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
149 methods.
150 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
151 sites to use type::set_is_unsigned.
152
153 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
154 Adam Renquinha <arenquinha@cimeq.qc.ca>
155
156 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
157 pointer and stack frame offset when unwinding.
158
159 2020-09-13 Pedro Alves <pedro@palves.net>
160
161 * NEWS: Document "-break-insert --qualified".
162 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
163
164 2020-09-13 Pedro Alves <pedro@palves.net>
165
166 * linespec.c (classify_mtype, compare_msyms): Delete.
167 (search_minsyms_for_name): Remove classification logic. Instead
168 filter out trampoline symbols if we also found an external
169 function of the same name.
170
171 2020-09-13 Joel Brobecker <brobecker@adacore.com>
172
173 * NEWS: Create a new section for the next release branch.
174 Rename the section of the current branch, now that it has
175 been cut.
176
177 2020-09-13 Joel Brobecker <brobecker@adacore.com>
178
179 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
180 * version.in: Bump version to 11.0.50.DATE-git.
181
182 2020-09-12 Joel Brobecker <brobecker@adacore.com>
183
184 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
185
186 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
187 Felix Willgerodt <Felix.Willgerodt@intel.com>
188
189 * gdbarch.sh: Added bfloat16 type.
190 * gdbarch.c: Regenerated.
191 * gdbarch.h: Regenerated.
192 * gdbtypes.c (floatformats_bfloat16): New struct.
193 (gdbtypes_post_init): Add builtin_bfloat16.
194 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
195 (floatformats_bfloat16): New struct.
196 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
197 (i386_ymm_type): Add field "v16_bfloat16"
198 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
199 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
200 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
201 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
202 * features/i386/64bit-avx512.xml: Add bfloat16 type.
203 * features/i386/64bit-avx512.c: Regenerated.
204 * features/i386/64bit-sse.xml: Add bfloat16 type.
205 * features/i386/64bit-sse.c: Regenerated.
206
207 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
208
209 * i386-tdep.c (i386_zmm_type): Fix field names.
210 (i386_ymm_type): Fix field names.
211
212 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
213
214 * breakpoint.c: Fix typo in the help message of the
215 "set breakpoint condition-evaluation" command.
216
217 2020-09-10 Kamil Rytarowski <n54@gmx.com>
218
219 * nbsd-nat.c: Include "nat/netbsd-nat.h".
220 * (nbsd_nat_target::pid_to_exec_file)
221 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
222 (nbsd_nat_target::post_startup_inferior)
223 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
224 (nbsd_add_threads): Switch local code to common gdb/nat functions.
225 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
226 * (nbsd_thread_lister): Remove.
227
228 2020-09-10 Kamil Rytarowski <n54@gmx.com>
229
230 * fork-inferior.c (startup_inferior): Avoid double free.
231
232 2020-09-10 Kamil Rytarowski <n54@gmx.com>
233
234 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
235 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
236
237 2020-09-10 Kamil Rytarowski <n54@gmx.com>
238
239 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
240 * netbsd-nat.c: Include <sys/ptrace.h>.
241 * (netbsd_nat::enable_proc_events): Add.
242
243 2020-09-10 Kamil Rytarowski <n54@gmx.com>
244
245 * netbsd-nat.h: Include "gdbsupport/function-view.h".
246 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
247 (netbsd_nat::for_each_thread): Add.
248 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
249 "gdbsupport/common-debug.h".
250 * (netbsd_nat::netbsd_thread_lister)
251 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
252 (netbsd_nat::for_each_thread): Add.
253
254 2020-09-10 Kamil Rytarowski <n54@gmx.com>
255
256 * netbsd-nat.h: Include <unistd.h>.
257 * (netbsd_nat::pid_to_exec_file): Add.
258 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
259 * (netbsd_nat::pid_to_exec_file) Add.
260
261 2020-09-10 Kamil Rytarowski <n54@gmx.com>
262
263 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
264
265 2020-09-10 Kamil Rytarowski <n54@gmx.com>
266
267 * netbsd-nat.h: New file.
268 * netbsd-nat.c: Likewise.
269
270 2020-09-09 Tom Tromey <tromey@adacore.com>
271
272 * ada-lang.c (remove_extra_symbols): Do not increment when
273 removing an element
274
275 2020-09-08 Tom Tromey <tromey@adacore.com>
276
277 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
278
279 2020-09-08 Tom Tromey <tromey@adacore.com>
280
281 PR win32/25302:
282 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
283 (gdb_bfd_init_data): New function.
284 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
285
286 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
287
288 * infrun.c (fetch_inferior_event): Use
289 `switch_to_target_no_thread` to switch the target.
290
291 2020-09-06 Tom Tromey <tom@tromey.com>
292
293 * symfile.h (dwarf2_free_objfile): Don't declare.
294
295 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
296
297 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
298 to match 16 byte real/complex type generated by Flang compiler.
299
300 2020-09-03 Tom de Vries <tdevries@suse.de>
301
302 PR breakpoint/26546
303 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
304 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
305
306 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
307
308 * maint.c (index_digits): New function.
309 (struct maint_print_section_data): Remove.
310 (print_bfd_section_info): Remove print_data parameter, add arg
311 and index_digits.
312 (print_objfile_section_info): Likewise.
313 (print_bfd_section_info_maybe_relocated): Likewise (plus
314 objfile).
315 (maintenance_info_sections): Adjust calls.
316
317 2020-09-02 Tom Tromey <tromey@adacore.com>
318
319 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
320 for null pointers.
321 (ada_varobj_adjust_for_child_access): Special-case null pointers.
322
323 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
324
325 * bcache.h (struct bcache) <insert>: Change type of `added` to
326 pointer to bool.
327 * bcache.c (bcache::insert): Likewise.
328 * gdbtypes.c (check_types_worklist): Adjust.
329 * psymtab.c (add_psymbol_to_bcache): Adjust.
330
331 2020-08-31 Kevin Buettner <kevinb@redhat.com>
332
333 * corelow.c (unordered_set): Include.
334 (class core_target): Add field 'm_core_unavailable_mappings'.
335 (core_target::build_file_mappings): Print only one warning
336 per inaccessible file. Add unavailable/broken mappings
337 to m_core_unavailable_mappings.
338 (core_target::xfer_partial): Call...
339 (core_target::xfer_memory_via_mappings): New method.
340
341 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
342
343 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
344 type to bool.
345
346 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * dwarf2/read.c (struct field_info): Fix indentation.
349
350 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
351
352 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
353 ordering in comment.
354 * frame.c (frame_id_eq): Fix indentation.
355
356 2020-08-31 Scott Linder <scott@scottlinder.com>
357 Simon Marchi <simon.marchi@efficios.com>
358
359 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
360 inline frame ids in outer frame.
361
362 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
363
364 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
365 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
366 (outer_frame_id): Use FID_STACK_OUTER instead of
367 FID_STACK_INVALID.
368 (frame_id_p): Don't check for outer_frame_id.
369
370 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
371
372 * frame-unwind.c (frame_unwind_got_optimized): Don't set
373 regnum/frame in value. Call allocate_value_lazy.
374 * frame.c (frame_unwind_register_value): Use
375 val_print_not_saved.
376
377 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
378
379 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
380
381 2020-08-29 Pedro Alves <pedro@palves.net>
382
383 * progspace.c (print_program_space): Use all_inferiors. Switch to
384 the inferior before calling target_pid_to_str.
385
386 2020-08-28 Tom Tromey <tom@tromey.com>
387
388 * xcoffread.c (xcoff_end_psymtab): Update comment.
389 * dbxread.c (dbx_end_psymtab): Update comment.
390
391 2020-08-28 Tom de Vries <tdevries@suse.de>
392
393 PR breakpoint/26544
394 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
395 event_location.
396 (create_breakpoint): Same.
397 (base_breakpoint_decode_location): Same.
398 (bkpt_create_sals_from_location): Same.
399 (bkpt_decode_location): Same.
400 (bkpt_probe_create_sals_from_location): Same.
401 (bkpt_probe_decode_location): Same.
402 (tracepoint_create_sals_from_location): Same.
403 (tracepoint_decode_location): Same.
404 (tracepoint_probe_decode_location): Same.
405 (strace_marker_create_sals_from_location): Same.
406 (strace_marker_decode_location): Same.
407 (create_sals_from_location_default): Same.
408 (decode_location_default): Same.
409 * breakpoint.h (struct breakpoint_ops): Same.
410 (create_breakpoint): Same.
411 * linespec.h (decode_line_full): Same.
412 * linespec.c (decode_line_full): Same. Throw error if
413 result.size () == 0.
414
415 2020-08-27 Pedro Alves <pedro@palves.net>
416
417 PR gdb/26524
418 * breakpoint.c (until_break_fsm) <location_breakpoint,
419 caller_breakpoint>: Delete fields.
420 <breakpoints>: New field.
421 <until_break_fsm>: Adjust to save a breakpoint vector instead of
422 two individual breakpoints.
423 (until_break_fsm::should_stop): Loop over breakpoints in the
424 breakpoint vector.
425 (until_break_fsm::clean_up): Adjust to clear the breakpoints
426 vector.
427 (until_break_command): Handle location expanding into multiple
428 sals.
429
430 2020-08-27 Pedro Alves <pedro@palves.net>
431
432 PR gdb/26523
433 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
434 bp_until breakpoints user-specified locations. Update intro
435 comment.
436
437 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
438
439 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
440 gdb_bfd_sections): New.
441 * maint.c (print_bfd_section_info): Change param type to
442 maint_print_section_data.
443 (print_objfile_section_info): Likewise.
444 (print_bfd_section_info_maybe_relocated): Likewise.
445 (maintenance_info_sections): Use gdb_bfd_sections.
446
447 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
448
449 * MAINTAINERS: Add ARC target and maintainer.
450
451 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
452
453 * configure.tgt: ARC support for GNU/Linux.
454 * Makefile.in (ALL_TARGET_OBJS): Likewise.
455 * arc-linux-tdep.c: New file.
456 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
457 * arc-tdep.c (arc_write_pc): Use it.
458
459 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
460
461 * arc-tdep.c (arc_check_for_hardware_loop): New.
462 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
463
464 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
465
466 * arc-tdep.h: Include "gdbarch.h".
467
468 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
469
470 * arch/arc.h
471 (arc_gdbarch_features): New class to stir the selection of target XML.
472 (arc_create_target_description): Use FEATURES to choose XML target.
473 (arc_lookup_target_description): Use arc_create_target_description
474 to create _new_ target descriptions or return the already created
475 ones if the FEATURES is the same.
476 * arch/arc.c: Implementation of prototypes described above.
477 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
478 (arc_gdbarch_features_init): Initialize the FEATURES struct.
479 * arc-tdep.c (*_feature_name): Make feature names consistent.
480 (arc_register_feature): A new struct to hold information about
481 registers of a particular target/feature.
482 (arc_check_tdesc_feature): Check if XML provides registers in
483 compliance with ARC_REGISTER_FEATURE structs.
484 (arc_update_acc_reg_names): Add aliases for r58 and r59.
485 (determine_*_reg_feature_set): Which feature name to look for.
486 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
487 (mach_type_to_arc_isa): Convert from a set of binutils machine types
488 to expected ISA enums to be used in arc_gdbarch_features structs.
489 * features/Makefile (FEATURE_XMLFILES): Add new files.
490 * gdb/features/arc/v1-aux.c: New file.
491 * gdb/features/arc/v1-aux.xml: Likewise.
492 * gdb/features/arc/v1-core.c: Likewise.
493 * gdb/features/arc/v1-core.xml: Likewise.
494 * gdb/features/arc/v2-aux.c: Likewise.
495 * gdb/features/arc/v2-aux.xml: Likewise.
496 * gdb/features/arc/v2-core.c: Likewise.
497 * gdb/features/arc/v2-core.xml: Likewise.
498 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
499
500 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
501 Andrew Burgess <andrew.burgess@embecosm.com>
502
503 PR m2/26372
504 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
505 an assert. Remove single element array indexing pattern as the
506 MULTI_SUBSCRIPT support will handle this case too.
507
508 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * value.h (valprint_check_validity): Move declaration from
511 here...
512 * valprint.h (valprint_check_validity): ... to here.
513
514 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
515
516 * debug.h: New file.
517 * debug.c (debug_prefixed_vprintf): New function.
518 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
519 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
520
521 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
522
523 * infrun.h (infrun_debug_printf_1): New function declaration.
524 (infrun_debug_printf): New macro.
525 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
526 throughout.
527 (infrun_debug_printf): New function.
528 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
529 (handle_jit_event): Likewise.
530
531 2020-08-21 Mark Wielaard <mark@klomp.org>
532
533 * ada-lex.l: Extend register warnings diagnostics comment for g++.
534
535 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
536
537 * frame.c (enum class frame_id_status): New.
538 (struct frame_info) <this_id::p>: Change type to frame_id_status.
539 (fprintf_frame): Update.
540 (compute_frame_id): Set frame id status to "computing" on entry.
541 Set it back to "not_computed" on failure and to "computed" on
542 success.
543 (get_frame_id): Assert the frame id is not being computed.
544 (create_sentinel_frame): Use frame_id_status::COMPUTED.
545 (create_new_frame): Likewise.
546 (frame_cleanup_after_sniffer): Update assert.
547
548 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
549
550 * regcache.c (pid_ptid_regcache_map): New type.
551 (target_ptid_regcache_map): Remove.
552 (target_pid_ptid_regcache_map): New type.
553 (regcaches): Change type to target_pid_ptid_regcache_map.
554 (get_thread_arch_aspace_regcache): Update.
555 (regcache_thread_ptid_changed): Update, handle pid-like ptid
556 case.
557 (regcaches_size): Update.
558 (regcache_count): Update.
559 (registers_changed_ptid_target_pid_test): New.
560 (_initialize_regcache): Register new test.
561
562 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
563
564 * regcache.c (regcache_count): New.
565 (struct regcache_test_data): New.
566 (regcache_test_data_up): New.
567 (populate_regcaches_for_test): New.
568 (regcaches_test): Remove.
569 (get_thread_arch_aspace_regcache_test): New.
570 (registers_changed_ptid_all_test): New.
571 (registers_changed_ptid_target_test): New.
572 (registers_changed_ptid_target_ptid_test): New.
573 (regcache_thread_ptid_changed): Remove regcache_count lambda.
574 (_initialize_regcache): Register new tests.
575
576 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
577
578 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
579 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
580 gdbarch and aspace parameter. Use current inferior's aspace.
581 Validate regcache's arch value.
582 (regcaches_test): Update.
583
584 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
585
586 * regcache.c (regcaches_test): Call registers_changed.
587
588 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
589
590 * infrun.c (process_event_stop_test): Fix typo "breapoint".
591
592 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
593
594 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
595 to find the end of prologue for flang compiled binaries.
596 * arm-tdep.c (arm_skip_prologue): Likewise.
597 * i386-tdep.c (i386_skip_prologue): Likewise.
598 * producer.c (producer_is_llvm): New function.
599 (producer_parsing_tests): Added new tests for clang/flang.
600 * producer.h (producer_is_llvm): New declaration.
601
602 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
603
604 * linux-nat.c (linux_nat_debug_printf): New function.
605 (linux_nat_debug_printf_1): New macro. Use throughout the file.
606
607 2020-08-18 Aaron Merey <amerey@redhat.com>
608
609 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
610 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
611 (CLIBS): Add DEBUGINFOD_LIBS.
612
613 2020-08-17 Sergei Trofimovich <siarheit@google.com>
614
615 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
616 'gdbarch_num_regs'.
617
618 2020-08-17 Tom Tromey <tromey@adacore.com>
619
620 * ada-varobj.c (ada_varobj_decode_var): Handle case where
621 ada_get_decoded_value returns NULL.
622
623 2020-08-17 Tom Tromey <tromey@adacore.com>
624
625 * python/py-inferior.c (infpy_search_memory): Use
626 gdb_py_object_from_ulongest.
627 * python/py-infevents.c (create_inferior_call_event_object)
628 (create_memory_changed_event_object): Use
629 gdb_py_object_from_ulongest.
630 * python/py-linetable.c (ltpy_entry_get_pc): Use
631 gdb_py_object_from_ulongest.
632
633 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
634
635 * loc.c (class symbol_needs_eval_context): Fix indentation.
636
637 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
638
639 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
640 bool.
641
642 2020-08-17 Tom de Vries <tdevries@suse.de>
643
644 PR gdb/26393
645 * gdbtypes.c (dump_dynamic_prop): New function.
646 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
647
648 2020-08-15 Tom de Vries <tdevries@suse.de>
649
650 PR backtrace/26390
651 * stack.c (print_frame_args): Temporarily set the selected
652 frame to FRAME while printing the frame's arguments.
653
654 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
655
656 PR breakpoints/26385
657 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
658 Always clear watchpoint with PTRACE_SET_DEBUGREG.
659
660 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
661
662 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
663 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
664 and >= to check return value instead of == -1 and != -1.
665
666 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
667
668 * utils.h (class gdb_argv) <as_array_view>: New method.
669 * utils.c (gdb_argv_as_array_view_test): New.
670 (_initialize_utils): Register selftest.
671 * maint.c (maintenance_selftest): Use the new method.
672
673 2020-08-13 Kamil Rytarowski <n54@gmx.com>
674
675 * target.h (supports_dumpcore, dumpcore): New
676 function declarations.
677 * target.c (supports_dumpcore, dumpcore): New
678 functions.
679 * target-delegates.c: Rebuild.
680 * gcore.c (gcore_command): Use target_supports_dumpcore ()
681 and target_dumpcore ().
682
683 2020-08-13 Aaron Merey <amerey@redhat.com>
684
685 * debuginfod-support.c: Replace global variables with user_data.
686
687 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * maint.c (maintenance_selftest): Split args and pass array_view
690 to run_tests.
691
692 2020-08-12 Luis Machado <luis.machado@linaro.org>
693
694 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
695 type's length.
696 Use %s and pulongest to print the length.
697
698 2020-08-12 Pedro Alves <palves@redhat.com>
699
700 * NEWS: Move "Multi-target debugging support" item to the
701 "Changes since GDB 9" section.
702
703 2020-08-12 Pedro Alves <palves@redhat.com>
704
705 PR gdb/26336
706 * progspace.c (program_space::remove_objfile): Invalidate the
707 frame cache.
708
709 2020-08-11 Tom de Vries <tdevries@suse.de>
710
711 * MAINTAINERS: Mark ms1 as deleted.
712
713 2020-08-10 Luis Machado <luis.machado@linaro.org>
714
715 PR gdb/26310
716
717 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
718 act accordingly.
719 (aarch64_analyze_prologue_test): Add more unit tests to exercise
720 movz/str/stur/stp skipping behavior.
721
722 2020-08-10 Luis Machado <luis.machado@linaro.org>
723
724 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
725 struct user_sve_header instead of struct sve_context.
726
727 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
728
729 * read.h (dwarf2_fetch_die_loc_sect_off,
730 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
731 `void *` parameter with function_view.
732 * read.c (dwarf2_fetch_die_loc_sect_off,
733 dwarf2_fetch_die_loc_cu_off): Likewise.
734 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
735 (per_cu_dwarf_call): Adjust.
736 (get_frame_address_in_block_wrapper): Remove.
737 (indirect_synthetic_pointer): Adjust.
738 (get_ax_pc): Remove.
739 (dwarf2_compile_expr_to_ax): Adjust.
740
741 2020-08-08 Tom de Vries <tdevries@suse.de>
742
743 PR build/26344
744 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
745 constructor.
746 * regcache.c (get_thread_arch_aspace_regcache): Same.
747
748 2020-08-07 Tom Tromey <tromey@adacore.com>
749
750 * ravenscar-thread.c
751 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
752 New method.
753 (ravenscar_thread_target::wait): Check
754 runtime_initialized.
755 (ravenscar_thread_target::prepare_to_store)
756 (ravenscar_thread_target::stopped_by_sw_breakpoint)
757 (ravenscar_thread_target::stopped_by_hw_breakpoint)
758 (ravenscar_thread_target::stopped_by_watchpoint)
759 (ravenscar_thread_target::stopped_data_address)
760 (ravenscar_thread_target::core_of_thread): Use
761 scoped_restore_current_thread and
762 set_base_thread_from_ravenscar_task.
763
764 2020-08-07 Tom Tromey <tromey@adacore.com>
765
766 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
767
768 2020-08-07 Tom Tromey <tromey@adacore.com>
769
770 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
771 update_inferior_ptid before update_thread_list.
772 (temporarily_change_regcache_ptid): New class.
773 (ravenscar_thread_target::fetch_registers)
774 (ravenscar_thread_target::store_registers)
775 (ravenscar_thread_target::prepare_to_store): Use base thread when
776 forwarding operation.
777
778 2020-08-07 Tom Tromey <tromey@adacore.com>
779
780 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
781 "is_pid" case.
782
783 2020-08-07 Tom Tromey <tromey@adacore.com>
784
785 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
786 New methods.
787 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
788 first.
789 (ravenscar_thread_target::add_thread): Rename from
790 ravenscar_add_thread.
791 (ravenscar_thread_target::update_thread_list): Use a lambda.
792 (ravenscar_thread_target::xfer_partial): New method.
793
794 2020-08-07 Tom Tromey <tromey@adacore.com>
795
796 * ada-lang.h (ada_task_list_iterator_ftype): Now a
797 gdb::function_view.
798 (iterate_over_live_ada_tasks): Change type of argument.
799 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
800 of argument.
801
802 2020-08-07 Tom Tromey <tromey@adacore.com>
803
804 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
805 Remove.
806 (ravenscar_thread_target::extra_thread_info): Remove.
807 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
808 defer to target beneath for non-Ravenscar threads.
809
810 2020-08-07 Tom Tromey <tromey@adacore.com>
811
812 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
813 get_base_thread_from_ravenscar_task>: Now methods.
814 <m_cpu_map>: New member.
815 (ravenscar_thread_target::get_thread_base_cpu): Rename from
816 ravenscar_get_thread_base_cpu. Check m_cpu_map.
817 (ravenscar_thread_target::task_is_currently_active): Update.
818 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
819 Now a method.
820 (ravenscar_thread_target::add_active_thread): Put initial thread
821 into the m_cpu_map.
822
823 2020-08-07 Tom Tromey <tromey@adacore.com>
824
825 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
826 event_ptid.
827
828 2020-08-07 Tom Tromey <tromey@adacore.com>
829
830 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
831 runtime_initialized.
832
833 2020-08-07 Tom Tromey <tromey@adacore.com>
834
835 * ravenscar-thread.c (ravenscar_thread_target): Don't call
836 add_active_thread.
837 (ravenscar_thread_target::add_active_thread): Now public.
838 (ravenscar_inferior_created): Call add_active_thread after pushing
839 the target.
840
841 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
842
843 * regcache.c (ptid_regcache_map): New type.
844 (target_ptid_regcache_map): New type.
845 (regcaches): Change type to target_ptid_regcache_map.
846 (get_thread_arch_aspace_regcache): Update to regcaches' new
847 type.
848 (regcache_thread_ptid_changed): Likewise.
849 (registers_changed_ptid): Likewise.
850 (regcaches_size): Likewise.
851 (regcaches_test): Update.
852 (regcache_thread_ptid_changed): Update.
853 * regcache.h (regcache_up): New type.
854 * gdbsupport/ptid.h (hash_ptid): New struct.
855
856 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
857
858 * observable.h (thread_ptid_changed): Add parameter
859 `process_stratum_target *`.
860 * infrun.c (infrun_thread_ptid_changed): Add parameter
861 `process_stratum_target *` and use it.
862 (selftests): New namespace.
863 (infrun_thread_ptid_changed): New function.
864 (_initialize_infrun): Register selftest.
865 * regcache.c (regcache_thread_ptid_changed): Add parameter
866 `process_stratum_target *` and use it.
867 (regcache_thread_ptid_changed): New function.
868 (_initialize_regcache): Register selftest.
869 * thread.c (thread_change_ptid): Pass target to
870 thread_ptid_changed observable.
871
872 2020-08-06 Caroline Tice <cmtice@google.com>
873
874 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
875 (struct dwp_sections): Update field comments. Add loclists and
876 rnglists fields.
877 (struct virtual_v2_dwo_sections): Rename struct to
878 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
879 size & offset fields for loclists and rnglists.
880 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
881 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
882 skipping dummy type units.
883 (create_dwp_hash_table): Update the large comment above the function to
884 discuss Version 5 DWP files as well, with references. Update all the
885 version checks in the function to check for version 5 as well. Add new
886 section at the end to create dwp hash table for version 5.
887 (create_dwp_v2_section): Rename function to
888 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
889 Add V5 to error message text.
890 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
891 into calls to create_dwp_v2_or_v5_section.
892 (create_dwo_unit_in_dwp_v5): New function.
893 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
894 check for version2; add else clause to handle version 5.
895 (open_and_init_dwo_file): Add code to check dwarf version & only call
896 create_debug_types_hash_table (with sections.types) if version is not 5;
897 else call create_debug_type_hash_table, with sections.info.
898 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
899 version 5.
900 (dwarf2_locate_v5_dwp_sections): New function.
901 (open_and_init_dwp_file): Add else-if clause for version 5 to call
902 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
903
904 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
905
906 * regcache.h (class regcache): Remove friend
907 registers_changed_ptid.
908 <regcache_thread_ptid_changed>: Remove.
909 <regcaches>: Remove.
910 * regcache.c (regcache::regcaches): Rename to...
911 (regcaches): ... this. Make static.
912 (get_thread_arch_aspace_regcache): Update.
913 (regcache::regcache_thread_ptid_changed): Rename to...
914 (regcache_thread_ptid_changed): ... this. Update.
915 (class regcache_access): Remove.
916 (regcaches_test): Update.
917 (_initialize_regcache): Update.
918 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
919 <forward_list>.
920
921 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
922
923 * regcache.h (class regcache) <current_regcache>: Rename to...
924 <regcaches>: ... this. Move doc here.
925 * regcache.c (regcache::current_regcache) Rename to...
926 (regcache::regcaches): ... this. Move doc to header.
927 (get_thread_arch_aspace_regcache): Update.
928 (regcache::regcache_thread_ptid_changed): Update.
929 (registers_changed_ptid): Update.
930 (class regcache_access) <current_regcache_size>: Rename to...
931 <regcaches_size>: ... this.
932 (current_regcache_test): Rename to...
933 (regcaches_test): ... this.
934 (_initialize_regcache): Update.
935
936 2020-08-06 Victor Collod <vcollod@nvidia.com>
937
938 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
939
940 2020-08-05 Kevin Buettner <kevinb@redhat.com>
941
942 * corelow.c (core_target::build_file_mappings): Don't output
943 null pathname in warning.
944
945 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
946
947 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
948 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
949 gdb.dwarf2/dw2-single-line-discriminators.exp,
950 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
951
952 2020-08-05 Tom Tromey <tromey@adacore.com>
953
954 PR rust/26197:
955 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
956 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
957 Fix off-by-one and type size errors in ordinary case.
958
959 2020-08-05 Tom de Vries <tdevries@suse.de>
960
961 * gdbtypes.c (type_not_allocated, type_not_associated): Use
962 "prop->const_val () == 0" instead of "prop->const_val () != 0".
963
964 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
965
966 * frame.h (frame_id_p): Return bool.
967 (frame_id_artificial_p): Return bool.
968 (frame_id_eq): Return bool.
969 (has_stack_frames): Return bool.
970 (get_selected_frame): Fix typo in comment.
971 (get_frame_pc_if_available): Return bool.
972 (get_frame_address_in_block_if_available): Return bool.
973 (get_frame_func_if_available): Return bool.
974 (read_frame_register_unsigned): Return bool.
975 (get_frame_register_bytes): Return bool.
976 (safe_frame_unwind_memory): Return bool.
977 (deprecated_frame_register_read): Return bool.
978 (frame_unwinder_is): Return bool.
979 * frame.c (struct frame_info) <prev_arch::p>: Change type to
980 bool.
981 <this_id::p>: Likewise.
982 <prev_p>: Likewise.
983 (frame_stash_add): Return bool.
984 (get_frame_id): Use bool.
985 (frame_id_build_special) Use bool.
986 (frame_id_build_unavailable_stack): Use bool.
987 (frame_id_build): Use bool.
988 (frame_id_p): Return bool, use true/false instead of 1/0.
989 (frame_id_artificial_p): Likewise.
990 (frame_id_eq): Likewise.
991 (frame_id_inner): Likewise.
992 (get_frame_func_if_available): Likewise.
993 (read_frame_register_unsigned): Likewise.
994 (deprecated_frame_register_read): Likewise.
995 (get_frame_register_bytes): Likewise.
996 (has_stack_frames): Likewise.
997 (inside_main_func): Likewise.
998 (inside_entry_func): Likewise.
999 (get_frame_pc_if_available): Likewise.
1000 (get_frame_address_in_block_if_available): Likewise.
1001 (frame_unwinder_is): Likewise.
1002 (safe_frame_unwind_memory): Likewise.
1003 (frame_unwind_arch): Likewise.
1004
1005 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1006
1007 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1008 type to cached_copy_status.
1009 (fprintf_frame): Adjust.
1010 (get_frame_func_if_available): Adjust.
1011 (frame_cleanup_after_sniffer): Adjust.
1012
1013 2020-08-04 Mark Wielaard <mark@klomp.org>
1014
1015 * MAINTAINERS (Write After Approval): Update email address.
1016
1017 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1018
1019 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1020 dynamic_prop::const_val.
1021
1022 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1023
1024 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1025 dynamic_prop::kind.
1026
1027 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1028
1029 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1030
1031 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1032
1033 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1034
1035 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1036 Jose E. Marchesi <jose.marchesi@oracle.com>
1037
1038 * configure.tgt: Add entry for bpf-*-*.
1039 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1040 (ALLDEPFILES): Add bpf-tdep.c.
1041 * bpf-tdep.c: New file.
1042 * MAINTAINERS: Add bpf target and maintainer.
1043 * NEWS: Mention the support for the new target.
1044
1045 2020-08-04 Tom de Vries <tdevries@suse.de>
1046
1047 PR symtab/23270
1048 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1049 Error.
1050
1051 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1052
1053 * syscalls/freebsd.xml: Regenerate.
1054
1055 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1056
1057 * syscalls/update-freebsd.sh: Fix usage and year range.
1058
1059 2020-08-03 Tom de Vries <tdevries@suse.de>
1060
1061 PR symtab/26333
1062 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1063 DW_LNE_lo_user/DW_LNE_hi_user range.
1064
1065 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1066
1067 PR ada/26318
1068 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1069 kind.
1070
1071 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1072
1073 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1074
1075 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1076
1077 * breakpoint.c (set_breakpoint_condition): Update the condition
1078 expressions after checking that the input condition string parses
1079 successfully and does not contain junk at the end.
1080
1081 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1082
1083 * breakpoint.c (set_breakpoint_condition): Update the
1084 condition string after parsing the new condition successfully.
1085
1086 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1087
1088 * proc-api.c (_STRUCTURED_PROC): Don't define.
1089 * proc-events.c: Likewise.
1090 * proc-flags.c: Likewise.
1091 * proc-why.c: Likewise.
1092 * procfs.c: Likewise.
1093
1094 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1095 * configure, config.in: Regenerate.
1096
1097 2020-07-30 Tom de Vries <tdevries@suse.de>
1098
1099 PR build/26320
1100 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1101 m_red/m_green/m_blue in a union.
1102
1103 2020-07-29 Tom de Vries <tdevries@suse.de>
1104
1105 PR tdep/26280
1106 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1107
1108 2020-07-28 Tom Tromey <tromey@adacore.com>
1109
1110 PR symtab/26270:
1111 * symtab.h (find_pc_partial_function_sym): Declare.
1112 * cli/cli-cmds.c (disassemble_command): Use
1113 find_pc_partial_function_sym. Check asm_demangle.
1114 * blockframe.c (cache_pc_function_sym): New global.
1115 (cache_pc_function_name): Remove.
1116 (clear_pc_function_cache): Update.
1117 (find_pc_partial_function_sym): New function, from
1118 find_pc_partial_function.
1119 (find_pc_partial_function): Rewrite using
1120 find_pc_partial_function_sym.
1121
1122 2020-07-28 Tom Tromey <tromey@adacore.com>
1123
1124 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1125 help. Add usage.
1126
1127 2020-07-28 Tom Tromey <tromey@adacore.com>
1128
1129 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1130 <DW_OP_GNU_variable_value>: Cast to address type.
1131
1132 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1133
1134 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1135 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1136 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1137 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1138 (nbsd_get_siginfo_type): New.
1139 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1140 (_initialize_nbsd_tdep): New.
1141
1142 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1143
1144 PR binutils/26301
1145 * configure: Regenerated.
1146
1147 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1148
1149 PR binutils/26301
1150 * configure: Regenerated.
1151
1152 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1153
1154 * python/py-frame.c: Remove 'user-regs.h' include.
1155 (frapy_read_register): Rewrite to make use of
1156 gdbpy_parse_register_id.
1157 * python/py-registers.c (gdbpy_parse_register_id): New function,
1158 moved here from python/py-unwind.c. Updated the return type, and
1159 also accepts register descriptor objects.
1160 * python/py-unwind.c: Remove 'user-regs.h' include.
1161 (pyuw_parse_register_id): Moved to python/py-registers.c.
1162 (unwind_infopy_add_saved_register): Update to use
1163 gdbpy_parse_register_id.
1164 (pending_framepy_read_register): Likewise.
1165 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1166
1167 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * python/py-registers.c: Add 'user-regs.h' include.
1170 (register_descriptor_iter_find): New function.
1171 (register_descriptor_iterator_object_methods): New static global
1172 methods array.
1173 (register_descriptor_iterator_object_type): Add pointer to methods
1174 array.
1175
1176 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1177
1178 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1179 for all architectures on FreeBSD 11.3 and later.
1180
1181 2020-07-27 Tom Tromey <tromey@adacore.com>
1182
1183 * gcore.h (load_corefile): Don't declare.
1184
1185 2020-07-27 Tom de Vries <tdevries@suse.de>
1186
1187 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1188 * config.in: Regenerate.
1189 * configure: Regenerate.
1190
1191 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1192
1193 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1194 ws2tcpip.h. When checking whether socklen_t type is defined, use
1195 ws2tcpip.h if it is available and sys/socket.h isn't.
1196 * configure: Regenerate.
1197 * config.in: Regenerate.
1198
1199 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 PR fortran/23051
1202 PR fortran/26139
1203 * valops.c (value_ind): Pass address to
1204 readjust_indirect_value_type.
1205 * value.c (readjust_indirect_value_type): Make parameter
1206 non-const, and add extra address parameter. Resolve original type
1207 before using it.
1208 * value.h (readjust_indirect_value_type): Update function
1209 signature and comment.
1210
1211 2020-07-25 Tom de Vries <tdevries@suse.de>
1212
1213 PR symtab/26243
1214 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1215 entries.
1216
1217 2020-07-24 Aaron Merey <amerey@redhat.com>
1218
1219 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1220 * configure: Rebuild.
1221
1222 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1223
1224 PR corefiles/26294
1225 * corelow.c (_initialize_corelow): Add period to help text
1226 for "maintenance print core-file-backed-mappings".
1227
1228 2020-07-23 Pedro Alves <pedro@palves.net>
1229
1230 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1231 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1232 meanwhile.
1233 * frame.c (frame_cache_generation, get_frame_cache_generation):
1234 New.
1235 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1236 (get_prev_frame_if_no_cycle): On exception, don't touch
1237 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1238 * frame.h (get_frame_cache_generation): Declare.
1239
1240 2020-07-23 Tom de Vries <tdevries@suse.de>
1241
1242 PR tui/26282
1243 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1244 New default constructor.
1245
1246 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1247
1248 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1249 exclude non-statement entries.
1250
1251 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1252
1253 * NEWS (New commands): Mention new command
1254 "maintenance print core-file-backed-mappings".
1255
1256 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1257
1258 * corelow.c (gdbcmd.h): Include.
1259 (core_target::info_proc_mappings): New method.
1260 (get_current_core_target): New function.
1261 (maintenance_print_core_file_backed_mappings): New function.
1262 (_initialize_corelow): Add core-file-backed-mappings to
1263 "maint print" commands.
1264
1265 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1266
1267 * linux-tdep.c (dump_note_entry_p): New function.
1268 (linux_dump_mapping_p_ftype): New typedef.
1269 (linux_find_memory_regions_full): Add new parameter,
1270 should_dump_mapping_p.
1271 (linux_find_memory_regions): Adjust call to
1272 linux_find_memory_regions_full.
1273 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1274 call to linux_find_memory_regions_full.
1275
1276 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1277
1278 * corelow.c (solist.h, unordered_map): Include.
1279 (class core_target): Add field m_core_file_mappings and
1280 method build_file_mappings.
1281 (core_target::core_target): Call build_file_mappings.
1282 (core_target::~core_target): Free memory associated with
1283 m_core_file_mappings.
1284 (core_target::build_file_mappings): New method.
1285 (core_target::xfer_partial): Use m_core_file_mappings
1286 for memory transfers.
1287 * linux-tdep.c (linux_read_core_file_mappings): New
1288 function.
1289 (linux_core_info_proc_mappings): Rewrite to use
1290 linux_read_core_file_mappings.
1291 (linux_init_abi): Register linux_read_core_file_mappings.
1292
1293 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1294
1295 * arch-utils.c (default_read_core_file_mappings): New function.
1296 * arch-utils.c (default_read_core_file_mappings): Declare.
1297 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1298 * gdbarch.h, gdbarch.c: Regenerate.
1299
1300 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1301
1302 PR corefiles/25631
1303 * corelow.c (core_target:xfer_partial): Revise
1304 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1305 case after first checking the stratum beneath the core
1306 target.
1307 (has_all_memory): Return true.
1308 * target.c (raw_memory_xfer_partial): Revise comment
1309 regarding use of has_all_memory.
1310
1311 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1312
1313 * exec.h (section_table_xfer_memory): Revise declaration,
1314 replacing section name parameter with an optional callback
1315 predicate.
1316 * exec.c (section_table_xfer_memory): Likewise.
1317 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1318 of section_table_xfer_memory.
1319
1320 2020-07-22 Tom Tromey <tromey@adacore.com>
1321
1322 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1323 lookup_symbol_search_name.
1324
1325 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1328 redundant local variable.
1329 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1330 reference, not pointer, update code accordingly.
1331
1332 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1333 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1334
1335 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1336 * jit.c (jit_breakpoint_re_set_internal): Use the
1337 `skip_jit_symbol_lookup` field.
1338
1339 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1340 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1341
1342 * jit.c (jit_read_descriptor): Define the descriptor address once,
1343 use twice.
1344 (jit_breakpoint_deleted): Move the declaration of the loop variable
1345 `iter` into the loop header.
1346 (jit_breakpoint_re_set_internal): Move the declaration of the local
1347 variable `objf_data` to the first point of definition.
1348 (jit_event_handler): Move the declaration of local variables
1349 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1350 Rename `objf` to `jited`.
1351
1352 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1353
1354 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1355 Remove.
1356 * jit.c (get_jiter_objfile_data): Update.
1357
1358 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1359 Simon Marchi <simon.marchi@polymtl.ca>
1360
1361 * jit.c (struct jit_program_space_data): Remove.
1362 (jit_program_space_key): Remove.
1363 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1364 stuff.
1365 (get_jit_program_space_data): Remove.
1366 (jit_breakpoint_deleted): Iterate on all of the program space's
1367 objfiles.
1368 (jit_inferior_init): Likewise.
1369 (jit_breakpoint_re_set_internal): Likewise. Also change return
1370 type to void.
1371 (jit_breakpoint_re_set): Pass current_program_space to
1372 jit_breakpoint_re_set_internal.
1373
1374 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1375
1376 * jit.h (struct jiter_objfile_data) <cached_code_address,
1377 jit_breakpoint>: Move to here from ...
1378 * jit.c (jit_program_space_data): ... here.
1379 (jiter_objfile_data::~jiter_objfile_data): Update.
1380 (jit_breakpoint_deleted): Update.
1381 (jit_breakpoint_re_set_internal): Update.
1382
1383 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1384
1385 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1386 checks.
1387 (jit_read_descriptor): Remove NULL check.
1388 (jit_event_handler): Add an assertion.
1389
1390 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1391
1392 * jit.h (struct jit_objfile_data): Split into...
1393 (struct jiter_objfile_data): ... this ...
1394 (struct jited_objfile_data): ... and this.
1395 * objfiles.h (struct objfile) <jit_data>: Remove.
1396 <jiter_data, jited_data>: New fields.
1397 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1398 (jiter_objfile_data::~jiter_objfile_data): ... this.
1399 (get_jit_objfile_data): Rename to ...
1400 (get_jiter_objfile_data): ... this.
1401 (add_objfile_entry): Update.
1402 (jit_read_descriptor): Use get_jiter_objfile_data.
1403 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1404 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1405 (jit_inferior_exit_hook): Use objfile's jited_data field.
1406
1407 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1408
1409 * jit.h: Forward-declare `struct minimal_symbol`.
1410 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1411 constructor, destructor, and an objfile* field.
1412 * jit.c (jit_objfile_data): Remove.
1413 (struct jit_objfile_data): Migrate from here to jit.h.
1414 (jit_objfile_data::~jit_objfile_data): New destructor
1415 implementation with code moved from free_objfile_data.
1416 (free_objfile_data): Delete.
1417 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1418 (jit_find_objf_with_entry_addr): Ditto.
1419 (jit_inferior_exit_hook): Ditto.
1420 (_initialize_jit): Remove the call to
1421 register_objfile_data_with_cleanup.
1422 * objfiles.h (struct objfile) <jit_data>: New field.
1423
1424 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1425
1426 * jit.h: Forward-declare `struct objfile`.
1427 (jit_event_handler): Add a second parameter, the JITer objfile.
1428 * jit.c (jit_read_descriptor): Change the signature to take the
1429 JITer objfile as an argument instead of the jit_program_space_data.
1430 (jit_inferior_init): Update the call to jit_read_descriptor.
1431 (jit_event_handler): Use the new JITer objfile argument when calling
1432 jit_read_descriptor.
1433 * breakpoint.c (handle_jit_event): Update the call to
1434 jit_event_handler to pass the JITer objfile.
1435
1436 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1437
1438 * gdbarch.c: Regenerate.
1439 * gdbarch.h: Regenerate.
1440 * gdbarch.sh (handle_segmentation_fault): Remove method.
1441 * infrun.c (handle_segmentation_fault): Remove.
1442 (print_signal_received_reason): Remove call to
1443 handle_segmentation_fault.
1444
1445 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1446
1447 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1448 Rename to sparc64_linux_report_signal_info and add siggnal
1449 argument.
1450 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1451 instead of sparc64_linux_handle_segmentation_fault.
1452
1453 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1454
1455 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1456 i386_linux_report_signal_info instead of
1457 i386_linux_handle_segmentation_fault.
1458 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1459 to i386_linux_report_signal_info and add siggnal argument.
1460 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1461 of i386_linux_handle_segmentation_fault.
1462 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1463 to i386_linux_report_signal_info and add siggnal argument.
1464
1465 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1466
1467 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1468 hook if present.
1469
1470 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1471
1472 * gdbarch.c: Regenerate.
1473 * gdbarch.h: Regenerate.
1474 * gdbarch.sh (report_signal_info): New method.
1475 * infrun.c (print_signal_received_reason): Invoke gdbarch
1476 report_signal_info hook if present.
1477
1478 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1479
1480 * python/py-registers.c : Add 'unordered_map' include.
1481 (gdbpy_new_reggroup): Renamed to...
1482 (gdbpy_get_reggroup): ...this. Update to only create register
1483 group descriptors when needed.
1484 (gdbpy_reggroup_iter_next): Update.
1485
1486 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 * python/py-registers.c (gdbpy_register_object_data): New static
1489 global.
1490 (gdbpy_register_object_data_init): New function.
1491 (gdbpy_new_register_descriptor): Renamed to...
1492 (gdbpy_get_register_descriptor): ...this, and update to reuse
1493 existing register descriptors where possible.
1494 (gdbpy_register_descriptor_iter_next): Update.
1495 (gdbpy_initialize_registers): Register new gdbarch data.
1496
1497 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1498
1499 * linux-nat.c (stopped_pids): Make static.
1500
1501 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1502
1503 PR ada/26235
1504 * gdbtypes.c (ada_discrete_type_low_bound,
1505 ada_discrete_type_high_bound): Handle undefined bounds.
1506
1507 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1508
1509 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1510 declaration.
1511 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1512 function.
1513
1514 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1515
1516 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1517 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1518 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1519 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1520 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1521 method.
1522
1523 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1524
1525 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1526 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1527 which are deprecated in Guile 3.0.
1528 * configure.ac (try_guile_versions): Add "guile-3.0".
1529 * configure (try_guile_versions): Regenerate.
1530 * NEWS: Update entry.
1531
1532 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1533 Doug Evans <dje@google.com>
1534
1535 PR gdb/21104
1536 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1537 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1538 USING_GUILE_BEFORE_2_2.
1539 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1540 Change type to 'scm_t_port_type *'.
1541 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1542 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1543 parameter and honor it. Update callers.
1544 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1545 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1546 functions.
1547 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1548 USING_GUILE_BEFORE_2_2.
1549 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1550 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1551 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1552 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1553 and 'SCM_PORT_TYPE'.
1554 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1555 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1556 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1557 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1558 [!USING_GUILE_BEFORE_2_2]: New functions.
1559 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1560 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1561 'gdbscm_memory_port_read'.
1562 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1563 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1564 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1565 function.
1566 (ioscm_init_memory_port): Remove.
1567 (ioscm_init_memory_port_stream): New function
1568 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1569 function.
1570 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1571 Return scm_from_uint (0).
1572 (gdbscm_set_memory_port_read_buffer_size_x)
1573 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1574 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1575 Return scm_from_uint (0).
1576 (gdbscm_set_memory_port_write_buffer_size_x)
1577 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1578 * configure.ac (try_guile_versions): Add "guile-2.2".
1579 * configure: Regenerate.
1580 * NEWS: Add entry.
1581
1582 2020-07-18 Tom Tromey <tom@tromey.com>
1583
1584 * linux-nat.c (linux_multi_process): Remove.
1585 (linux_nat_target::supports_multi_process): Return true.
1586
1587 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1588
1589 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1590 (riscv_lookup_target_description): Return pointer out of
1591 unique_ptr.
1592 * target-descriptions.c (allocate_target_description): Add
1593 comment.
1594 (target_desc_deleter::operator()): Likewise.
1595 * target-descriptions.h (struct target_desc_deleter): Moved to
1596 gdbsupport/tdesc.h.
1597 (target_desc_up): Likewise.
1598
1599 2020-07-17 Tom Tromey <tromey@adacore.com>
1600
1601 * linux-nat.c (linux_nat_target::supports_non_stop)
1602 (linux_nat_target::always_non_stop_p): Use "true".
1603 (linux_nat_target::supports_disable_randomization): Use "true" and
1604 "false".
1605
1606 2020-07-16 Caroline Tice <cmtice@google.com>
1607
1608 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1609 (RNGLIST_HEADER_SIZE64): New constant definition.
1610 (struct dwop_section_names): Add rnglists_dwo.
1611 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1612 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1613 (struct dwo_sections): Add rnglists field.
1614 (read_attribut_reprocess): Add tag parameter.
1615 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1616 (cu_debug_rnglists_section): New function (decl & definition).
1617 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1618 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1619 die whose range is being checked; get rnglist section from
1620 cu_debug_rnglists_section, to get from either objfile or dwo file as
1621 appropriate. Add cases for DW_RLE_base_addressx,
1622 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1623 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1624 test inside if-condition and updating complaint message.
1625 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1626 dwarf2_rnglists_process.
1627 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1628 dwarf2_ranges_process.
1629 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1630 need_ranges_base and update comment appropriately. Also pass die tag
1631 to dwarf2_ranges_read.
1632 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1633 need_ranges_base and update comment appropriately. Also pass die tag
1634 to dwarf2_ranges_process.
1635 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1636 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1637 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1638 need_ranges_base and update comment appropriately. Also pass die tag
1639 to read_attribute_reprocess and dwarf2_ranges_read.
1640 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1641 and update function comment appropriately.
1642 (read_loclist_index): Call read_loclists_rnglists_header instead of
1643 read_loclist_header.
1644 (read_rnglist_index): New function.
1645 (read_attribute_reprocess): Add tag parameter. Add code for
1646 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1647 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1648
1649 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1652 being resolved.
1653
1654 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1655
1656 * arch-utils.c (show_architecture): Update formatting of messages.
1657
1658 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1659
1660 * gdbtypes.h (struct type) <bounds>: Handle array and string
1661 types.
1662 * ada-lang.c (assign_aggregate): Use type::bounds on
1663 array/string type.
1664 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1665 * c-varobj.c (c_number_of_children): Likewise.
1666 (c_describe_child): Likewise.
1667 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1668 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1669 (f_type_print_base): Likewise.
1670 * f-valprint.c (f77_array_offset_tbl): Likewise.
1671 (f77_get_upperbound): Likewise.
1672 (f77_print_array_1): Likewise.
1673 * guile/scm-type.c (gdbscm_type_range): Likewise.
1674 * m2-typeprint.c (m2_array): Likewise.
1675 (m2_is_long_set_of_type): Likewise.
1676 * m2-valprint.c (get_long_set_bounds): Likewise.
1677 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1678 * python/py-type.c (typy_range): Likewise.
1679 * rust-lang.c (rust_internal_print_type): Likewise.
1680 * type-stack.c (type_stack::follow_types): Likewise.
1681 * valarith.c (value_subscripted_rvalue): Likewise.
1682 * valops.c (value_cast): Likewise.
1683
1684 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1685
1686 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1687 callers to use the equivalent accessor methods.
1688
1689 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1690
1691 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1692 (struct type) <bit_stride>: New method.
1693 (TYPE_BIT_STRIDE): Remove.
1694 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1695
1696 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1697
1698 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1699 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1700 callers to use the equivalent accessor methods instead.
1701
1702 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1703
1704 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1705 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1706 callers to use the equivalent accessor methods instead.
1707
1708 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1709
1710 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1711 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1712 to use dynamic_prop::kind.
1713
1714 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1715
1716 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1717 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1718 to get the bound property's kind and check against
1719 PROP_UNDEFINED.
1720
1721 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1722
1723 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1724 all callers to use type::range_bounds followed by
1725 dynamic_prop::{low,high}.
1726
1727 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1728
1729 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1730 const_val, set_const_val, baton, set_locexpr, set_loclist,
1731 set_addr_offset, variant_parts, set_variant_parts,
1732 original_type, set_original_type>: New methods.
1733 <kind>: Rename to...
1734 <m_kind>: ... this. Update all users to use the new methods
1735 instead.
1736 <data>: Rename to...
1737 <m_data>: ... this. Update all users to use the new methods
1738 instead.
1739
1740 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1741
1742 * gdbtypes.c (get_discrete_bounds): Return failure if
1743 the range type's bounds are not both defined and constant
1744 values.
1745 (get_array_bounds): Update comment. Remove undefined bound check.
1746
1747 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1748
1749 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1750 the type::bounds method directly.
1751
1752 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1755 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1756 are used to set the range type's bounds to use set_bounds.
1757
1758 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1759
1760 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1761
1762 2020-07-10 Pedro Alves <pedro@palves.net>
1763
1764 * gdbthread.h (inferior_ref): Define.
1765 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1766 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1767 * thread.c
1768 (scoped_restore_current_thread::restore):
1769 Adjust to gdb::ref_ptr.
1770 (scoped_restore_current_thread::~scoped_restore_current_thread):
1771 Remove manual decref handling.
1772 (scoped_restore_current_thread::scoped_restore_current_thread):
1773 Adjust to use
1774 inferior_ref::new_reference/thread_info_ref::new_reference.
1775 Incref the thread before calling get_frame_id instead of after.
1776 Let TARGET_CLOSE_ERROR propagate.
1777
1778 2020-07-10 Pedro Alves <pedro@palves.net>
1779
1780 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1781 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1782 NOT_AVAILABLE_ERROR.
1783 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1784 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1785
1786 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1787 Pedro Alves <pedro@palves.net>
1788
1789 PR gdb/26199
1790 * infrun.c (threads_are_resumed_pending_p): Delete.
1791 (do_target_wait): Remove threads_are_executing and
1792 threads_are_resumed_pending_p checks from the inferior_matches
1793 lambda. Update comments.
1794
1795 2020-07-10 Pedro Alves <pedro@palves.net>
1796
1797 PR gdb/26199
1798 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1799 executing threads.
1800
1801 2020-07-10 Pedro Alves <pedro@palves.net>
1802
1803 PR gdb/26199
1804 * infrun.c (handle_no_resumed): Handle multiple targets.
1805
1806 2020-07-10 Pedro Alves <pedro@palves.net>
1807
1808 PR gdb/26199
1809 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1810 target_is_async_p.
1811
1812 2020-07-10 Pedro Alves <pedro@palves.net>
1813
1814 PR gdb/26199
1815 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1816 threads, not all threads.
1817
1818 2020-07-10 Pedro Alves <pedro@palves.net>
1819
1820 PR gdb/26199
1821 * remote.c (remote_target::open_1): Pass remote target pointer as
1822 data to create_async_event_handler.
1823 (remote_async_inferior_event_handler): Mark async event handler
1824 before returning if the remote target still has either pending
1825 events or unacknowledged notifications.
1826
1827 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1828
1829 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1830 declaration.
1831 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1832 function.
1833
1834 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1835
1836 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1837 inferior_ptid.
1838
1839 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1840
1841 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1842 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1843 AT_FREEBSD_PS_STRINGS.
1844
1845 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1846
1847 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1848 of debugfile path on Windows.
1849
1850 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1851
1852 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1853 argument to 'data'.
1854
1855 2020-07-08 Tom Tromey <tromey@adacore.com>
1856
1857 * ada-lang.c (ada_exception_message_1): Use read_memory.
1858
1859 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 PR python/22748
1862 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1863 special handling for inline frames.
1864 * findvar.c (value_of_register_lazy): Skip inline frames when
1865 creating lazy register values.
1866 * frame.c (frame_id_computed_p): Delete definition.
1867 * frame.h (frame_id_computed_p): Delete declaration.
1868
1869 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 * NEWS: Mention additions to Python API.
1872 * python/py-arch.c (archpy_register_groups): New function.
1873 (arch_object_methods): Add 'register_groups' method.
1874 * python/py-registers.c (reggroup_iterator_object): New struct.
1875 (reggroup_object): New struct.
1876 (gdbpy_new_reggroup): New function.
1877 (gdbpy_reggroup_to_string): New function.
1878 (gdbpy_reggroup_name): New function.
1879 (gdbpy_reggroup_iter): New function.
1880 (gdbpy_reggroup_iter_next): New function.
1881 (gdbpy_new_reggroup_iterator): New function
1882 (gdbpy_initialize_registers): Register new types.
1883 (reggroup_iterator_object_type): Define new Python type.
1884 (gdbpy_reggroup_getset): New static global.
1885 (reggroup_object_type): Define new Python type.
1886 * python/python-internal.h
1887
1888 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1889
1890 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1891 * python/py-arch.c (archpy_registers): New function.
1892 (arch_object_methods): Add 'registers' method.
1893 * python/py-registers.c: New file.
1894 * python/python-internal.h
1895 (gdbpy_new_register_descriptor_iterator): Declare.
1896 (gdbpy_initialize_registers): Declare.
1897 * python/python.c (do_start_initialization): Call
1898 gdbpy_initialize_registers.
1899 * NEWS: Mention additions to the Python API.
1900
1901 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1902
1903 * NEWS: Mention new Python API method.
1904 * python/py-unwind.c (pending_framepy_architecture): New function.
1905 (pending_frame_object_methods): Add architecture method.
1906
1907 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1908
1909 * gdbarch.c: Regenerate.
1910 * gdbarch.h: Regenerate.
1911 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1912 (gdbarch_data): Use internal_error for the case where
1913 deprecated_set_gdbarch_data was originally needed.
1914 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1915 and use passed in obstack.
1916 (libunwind_frame_set_descr): Should no longer get back NULL from
1917 gdbarch_data.
1918 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1919 type.
1920 * user-regs.c (user_regs_init): Update parameters, and use passed
1921 in obstack.
1922 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1923 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1924
1925 2020-07-06 Tom de Vries <tdevries@suse.de>
1926
1927 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1928 End-Of-Sequence in lte_is_less_than.
1929 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1930 "gdb: Don't reorder line table entries too much when sorting".
1931
1932 2020-07-06 Tom de Vries <tdevries@suse.de>
1933
1934 PR tui/26205
1935 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1936
1937 2020-07-05 Tom de Vries <tdevries@suse.de>
1938
1939 PR build/26187
1940 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1941 std::uncaught_exceptions instead of deprecated
1942 std::uncaught_exception.
1943
1944 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1945
1946 * macroexp.h (macro_stringify): Return
1947 gdb::unique_xmalloc_ptr<char>.
1948 * macroexp.c (macro_stringify): Likewise.
1949 * macrotab.c (fixup_definition): Update.
1950
1951 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1952
1953 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1954 (lex_one_token): Update.
1955 * macroexp.c (struct macro_buffer) <release>: Return
1956 gdb::unique_xmalloc_ptr<char>.
1957 (macro_stringify): Update.
1958 (macro_expand): Update.
1959 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1960 * macroexp.h (macro_expand_next): Likewise.
1961
1962 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1963
1964 * macroexp.h (macro_lookup_ftype): Remove.
1965 (macro_expand, macro_expand_once, macro_expand_next): Remove
1966 lookup function parameters, add scope parameter.
1967 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1968 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1969 * macroscope.h (standard_macro_lookup): Change parameter type
1970 to macro_scope.
1971 * macroscope.c (standard_macro_lookup): Likewise.
1972 * c-exp.y (lex_one_token): Update.
1973 * macrocmd.c (macro_expand_command): Likewise.
1974 (macro_expand_once_command): Likewise.
1975
1976 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1977
1978 * inf-loop.c (inferior_event_handler): Remove client_data param.
1979 * inf-loop.h (inferior_event_handler): Likewise.
1980 * infcmd.c (step_1): Adjust.
1981 * infrun.c (proceed): Adjust.
1982 (fetch_inferior_event): Remove client_data param.
1983 (infrun_async_inferior_event_handler): Adjust.
1984 * infrun.h (fetch_inferior_event): Remove `void *` param.
1985 * linux-nat.c (handle_target_event): Adjust.
1986 * record-btrace.c (record_btrace_handle_async_inferior_event):
1987 Adjust.
1988 * record-full.c (record_full_async_inferior_event_handler):
1989 Adjust.
1990 * remote.c (remote_async_inferior_event_handler): Adjust.
1991
1992 2020-07-01 Tom Tromey <tom@tromey.com>
1993
1994 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1995 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1996
1997 2020-07-01 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2000 tui_gen_win_info.
2001 (tui_win_info::make_window): Merge with
2002 tui_gen_win_info::make_window.
2003 (tui_win_info::make_visible): Move from tui_gen_win_info.
2004 * tui/tui-win.c (tui_win_info::max_width): Move from
2005 tui_gen_win_info.
2006 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2007 type.
2008 <window_factory>: Likewise.
2009 * tui/tui-layout.c (tui_win_info::resize): Move from
2010 tui_gen_win_info.
2011 (make_standard_window): Change return type.
2012 (get_locator_window, tui_get_window_by_name): Likewise.
2013 (tui_layout_window::apply): Remove a cast.
2014 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2015 (struct tui_win_info): Merge with tui_gen_win_info.
2016 (struct tui_gen_win_info): Remove.
2017
2018 2020-07-01 Tom Tromey <tom@tromey.com>
2019
2020 * tui/tui-stack.h (struct tui_locator_window): Derive from
2021 tui_win_info.
2022 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2023 <can_box>: New method.
2024
2025 2020-07-01 Tom Tromey <tom@tromey.com>
2026
2027 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2028
2029 2020-07-01 Tom Tromey <tom@tromey.com>
2030
2031 * tui/tui-regs.c (tui_data_window::display_registers_from)
2032 (tui_data_window::display_registers_from)
2033 (tui_data_window::first_data_item_displayed)
2034 (tui_data_window::delete_data_content_windows): Update.
2035 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2036 Remove.
2037 (tui_data_window::check_register_values): Update.
2038 (tui_data_item_window::rerender): Add parameters. Update.
2039 (tui_data_item_window::refresh_window): Remove.
2040 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2041 virtual.
2042 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2043 tui_gen_win_info.
2044 <refresh_window, max_height, min_height>: Remove.
2045 <rerender>: Add parameters.
2046 <x, y, visible>: New members.
2047 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2048 <m_item_width>: New member.
2049
2050 2020-07-01 Tom Tromey <tom@tromey.com>
2051
2052 * tui/tui-regs.c (tui_data_window::show_register_group)
2053 (tui_data_window::check_register_values): Update.
2054 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2055 from item_no.
2056
2057 2020-07-01 Tom Tromey <tom@tromey.com>
2058
2059 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2060 useless "if".
2061
2062 2020-07-01 Tom Tromey <tom@tromey.com>
2063
2064 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2065 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2066
2067 2020-07-01 Tom Tromey <tom@tromey.com>
2068
2069 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2070 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2071 (struct tui_line_or_address): Move from tui-data.h.
2072 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2073 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2074 (tui_cmd_window, tui_source_window_base, tui_source_window)
2075 (tui_disasm_window): Don't declare.
2076 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2077 to tui-winsource.h.
2078 (SINGLE_KEY): Move to tui-stack.c.
2079
2080 2020-07-01 Tom Tromey <tom@tromey.com>
2081
2082 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2083 std::string.
2084 * tui/tui-regs.c (class tab_expansion_file): New.
2085 (tab_expansion_file::write): New method.
2086 (tui_register_format): Change return type. Use
2087 tab_expansion_file.
2088 (tui_get_register, tui_data_window::display_registers_from)
2089 (tui_data_item_window::rerender): Update.
2090 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2091 * tui/tui-io.c (tui_expand_tabs): Remove.
2092
2093 2020-07-01 Tom Tromey <tom@tromey.com>
2094
2095 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2096
2097 2020-07-01 Fangrui Song <maskray@google.com>
2098
2099 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2100
2101 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2102
2103 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2104 forms for DW_AT_associated and DW_AT_allocated attributes,
2105 which is already checked in function attr_to_dynamic_prop.
2106
2107 2020-06-30 Tom Tromey <tromey@adacore.com>
2108
2109 * dwarf2/read.c (quirk_rust_enum): Correctly call
2110 alloc_rust_variant for default-less enum.
2111
2112 2020-06-30 Tom Tromey <tromey@adacore.com>
2113
2114 PR build/26183:
2115 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2116 gdb::to_string.
2117
2118 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2119
2120 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2121 * gdbarch.h: Re-generate.
2122
2123 2020-06-28 Tom Tromey <tom@tromey.com>
2124
2125 * command.h (cmd_types): Remove.
2126 (cmd_type): Don't declare.
2127 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2128 typedef.
2129 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2130 * cli/cli-decode.c (cmd_type): Remove.
2131
2132 2020-06-27 Pedro Alves <palves@redhat.com>
2133
2134 * fork-child.c (prefork_hook): Adjust.
2135 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2136 Delete.
2137 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2138 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2139 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2140 Remove declarations.
2141 (struct inferior) <set_tty, tty>: New methods.
2142 (struct inferior) <terminal>: Rename to ...
2143 (struct inferior) <m_terminal>: ... this and make private.
2144 * main.c (captured_main_1): Adjust.
2145 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2146 (mi_cmd_inferior_tty_show): Adjust.
2147 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2148 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2149
2150 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2151
2152 * configure.ac: Add --enable-libctf: handle --disable-static
2153 properly.
2154 * acinclude.m4: sinclude ../config/enable.m4.
2155 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2156 (LIBCTF): Substitute in.
2157 (CTF_DEPS): New, likewise.
2158 (CLIBS): libctf needs symbols from libbfd: move earlier.
2159 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2160 flags.
2161 * ctfread.c: Surround in ENABLE_LIBCTF.
2162 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2163 * configure: Regenerate.
2164 * config.in: Likewise.
2165
2166 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2167
2168 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2169
2170 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2171
2172 * inferior.h (struct inferior) <terminal>: Change type to
2173 gdb::unique_xmalloc_ptr<char>.
2174 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2175 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2176 field, adjust to unique pointer.
2177 (get_inferior_io_terminal): Adjust to unique pointer.
2178
2179 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2180
2181 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2182 registers, not just the known core set of registers.
2183
2184 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2185
2186 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2187 fflags, frm, and fcsr registers.
2188 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2189 restore groups.
2190 (riscv_tdesc_unknown_reg): New function.
2191 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2192 tdesc_use_registers.
2193 * riscv-tdep.h (struct gdbarch_tdep): Add
2194 unknown_csrs_first_regnum, unknown_csrs_count,
2195 duplicate_fflags_regnum, duplicate_frm_regnum, and
2196 duplicate_fcsr_regnum fields.
2197
2198 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2201 callback, use the callback (when not null) to help number unknown
2202 registers.
2203 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2204 (tdesc_use_registers): Add extra parameter to declaration.
2205
2206 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2207
2208 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2209 in the file.
2210 (class riscv_pending_register_alias): Likewise.
2211 (riscv_register_feature::register_info): Change 'required_p' field
2212 to 'required', and change its type. Add 'check' member function.
2213 (riscv_register_feature::register_info::check): Define new member
2214 function.
2215 (riscv_xreg_feature): Change initialisation of 'required' field.
2216 (riscv_freg_feature): Likewise.
2217 (riscv_virtual_feature): Likewise.
2218 (riscv_csr_feature): Likewise.
2219 (riscv_check_tdesc_feature): Take extra parameter, the csr
2220 tdesc_feature, rewrite the function to use the new
2221 riscv_register_feature::register_info::check function.
2222 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2223
2224 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2225
2226 * features/Makefile: Remove all references to the deleted files
2227 below.
2228 * features/riscv/32bit-csr.c: Deleted.
2229 * features/riscv/32bit-csr.xml: Deleted.
2230 * features/riscv/64bit-csr.c: Deleted.
2231 * features/riscv/64bit-csr.xml: Deleted.
2232 * features/riscv/rebuild-csr-xml.sh: Deleted.
2233
2234 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2235
2236 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2237 whitespace error for declaration of names member variable.
2238 (struct riscv_register_feature): Add new prefer_first_name member
2239 variable, and fix whitespace error in declaration of registers.
2240 (riscv_xreg_feature): Initialize prefer_first_name field.
2241 (riscv_freg_feature): Likewise.
2242 (riscv_virtual_feature): Likewise.
2243 (riscv_csr_feature): Likewise.
2244 (riscv_register_name): Expand on comments. Remove register name
2245 modifications for CSR and virtual registers.
2246
2247 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2248
2249 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2250 errors.
2251
2252 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2253
2254 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2255 riscv-opc.h.
2256 (class riscv_pending_register_alias): New class.
2257 (riscv_check_tdesc_feature): Take vector of pending aliases and
2258 populate it as appropriate.
2259 (riscv_setup_register_aliases): Delete.
2260 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2261 to riscv_check_tdesc_feature in all cases. Use the vector to
2262 create the register aliases.
2263
2264 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2265
2266 * sol2-tdep.c (sol2_static_transform_name): Remove.
2267 (sol2_init_abi): Don't register it.
2268 * gdbarch.sh (static_transform_name): Remove.
2269 * gdbarch.c, gdbarch.h: Regenerate.
2270
2271 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2272 gdbarch_static_transform_name.
2273 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2274 * stabsread.c (define_symbol) <'X'>: Remove.
2275 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2276 handling.
2277 <'V'>: Likewise.
2278 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2279 <'S'>: Remove call to gdbarch_static_transform_name.
2280
2281 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2282
2283 * procfs.c (procfs_pre_trace): New function.
2284 (procfs_target::create_inferior): Pass it to fork_inferior.
2285
2286 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2287
2288 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2289 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2290 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2291 sol2-tdep.o, sparc-sol2-tdep.o.
2292 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2293 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2294 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2295 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2296
2297 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2298
2299 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2300 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2301 Call sol2_init_abi.
2302 Remove calls to set_gdbarch_skip_solib_resolver,
2303 set_gdbarch_core_pid_to_str.
2304 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2305 (i386_sol2_static_transform_name): Remove.
2306 (i386_sol2_init_abi): Call sol2_init_abi.
2307 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2308 set_gdbarch_static_transform_name,
2309 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2310 Use sol2_sigtramp_p.
2311 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2312 (sol2_sigtramp_p): New function.
2313 (sol2_static_transform_name): New function.
2314 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2315 (sol2_init_abi): New function.
2316 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2317 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2318 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2319 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2320 (sparc_sol2_static_transform_name): Remove.
2321 (sparc32_sol2_init_abi): Call sol2_init_abi.
2322 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2323 set_gdbarch_static_transform_name,
2324 set_gdbarch_skip_solib_resolver,
2325 set_gdbarch_core_pid_to_str.
2326 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2327 (sparc_sol2_static_transform_name): Remove
2328 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2329 call sol2_sigtramp_p.
2330 (sparc64_sol2_init_abi): Call sol2_init_abi.
2331 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2332 set_gdbarch_static_transform_name,
2333 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2334
2335 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2336
2337 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2338 * exec.c (validate_exec_file): If from_tty, set both
2339 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2340 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2341 and from_tty, unconditionally ask a confirmation.
2342
2343 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 * target-descriptions.c (tdesc_architecture_name): Protect against
2346 NULL pointer dereference.
2347 (maint_print_xml_tdesc_cmd): New function.
2348 (_initialize_target_descriptions): Register new 'maint print
2349 xml-tdesc' command and give it the filename completer.
2350 * NEWS: Mention new 'maint print xml-tdesc' command.
2351
2352 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2353
2354 * target-descriptions.c (class tdesc_compatible_info): New class.
2355 (struct target_desc): Change type of compatible vector.
2356 (tdesc_compatible_p): Update for change in type of
2357 target_desc::compatible.
2358 (tdesc_compatible_info_list): New function.
2359 (tdesc_compatible_info_arch_name): New function.
2360 (tdesc_add_compatible): Update for change in type of
2361 target_desc::compatible.
2362 (print_c_tdesc::visit_pre): Likewise.
2363
2364 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2367 whitespace to underscore.
2368 (maint_print_c_tdesc_cmd): Use fake filename for target
2369 descriptions that came from the target.
2370 (_initialize_target_descriptions): Add filename command completion
2371 for 'maint print c-tdesc'.
2372
2373 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2374
2375 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2376 lines.
2377
2378 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2379
2380 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2381 lines.
2382 (dwarf2_find_location_expression): Likewise.
2383 (call_site_parameter_matches): Likewise.
2384 (dwarf2_compile_expr_to_ax): Likewise.
2385 (disassemble_dwarf_expression): Likewise.
2386 (loclist_describe_location): Likewise.
2387
2388 2020-06-23 Pedro Alves <palves@redhat.com>
2389
2390 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2391 progspace-and-thread.h. Include scoped-mock-context.h instead.
2392 (register_to_value_test): Use scoped_mock_context.
2393 * regcache.c: Include "scoped-mock-context.h".
2394 (cooked_read_test): Don't error out if a target is already pushed.
2395 Use scoped_mock_context. Adjust.
2396 * scoped-mock-context.h: New file.
2397
2398 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2401 initializer.
2402 (ada_language::is_string_type_p): New member function.
2403 * c-lang.c (c_language_data): Delete la_is_string_type_p
2404 initializer.
2405 (cplus_language_data): Likewise.
2406 (asm_language_data): Likewise.
2407 (minimal_language_data): Likewise.
2408 * d-lang.c (d_language_data): Likewise.
2409 * f-lang.c (f_is_string_type_p): Delete function, implementation
2410 moved to f_language::is_string_type_p.
2411 (f_language_data): Delete la_is_string_type_p initializer.
2412 (f_language::is_string_type_p): New member function,
2413 implementation from f_is_string_type_p.
2414 * go-lang.c (go_is_string_type_p): Delete function, implementation
2415 moved to go_language::is_string_type_p.
2416 (go_language_data): Delete la_is_string_type_p initializer.
2417 (go_language::is_string_type_p): New member function,
2418 implementation from go_is_string_type_p.
2419 * language.c (language_defn::is_string_type_p): Define new member
2420 function.
2421 (default_is_string_type_p): Make static, add comment copied from
2422 header file.
2423 (unknown_language_data): Delete la_is_string_type_p initializer.
2424 (unknown_language::is_string_type_p): New member function.
2425 (auto_language_data): Delete la_is_string_type_p initializer.
2426 (auto_language::is_string_type_p): New member function.
2427 * language.h (language_data): Delete la_is_string_type_p field.
2428 (language_defn::is_string_type_p): Declare new function.
2429 (default_is_string_type_p): Delete desclaration, move comment to
2430 definition.
2431 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2432 moved to m2_language::is_string_type_p.
2433 (m2_language_data): Delete la_is_string_type_p initializer.
2434 (m2_language::is_string_type_p): New member function,
2435 implementation from m2_is_string_type_p.
2436 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2437 initializer.
2438 * opencl-lang.c (opencl_language_data): Likewise.
2439 * p-lang.c (pascal_is_string_type_p): Delete function,
2440 implementation moved to pascal_language::is_string_type_p.
2441 (pascal_language_data): Delete la_is_string_type_p initializer.
2442 (pascal_language::is_string_type_p): New member function,
2443 implementation from pascal_is_string_type_p.
2444 * rust-lang.c (rust_is_string_type_p): Delete function,
2445 implementation moved to rust_language::is_string_type_p.
2446 (rust_language_data): Delete la_is_string_type_p initializer.
2447 (rust_language::is_string_type_p): New member function,
2448 implementation from rust_is_string_type_p.
2449 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2450 is_string_type_p.
2451
2452 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2453
2454 * ada-lang.c (ada_language_data): Delete la_print_typedef
2455 initializer.
2456 (ada_language::print_typedef): New member function.
2457 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2458 (cplus_language_data): Likewise.
2459 (asm_language_data): Likewise.
2460 (minimal_language_data): Likewise.
2461 * d-lang.c (d_language_data): Likewise.
2462 * f-lang.c (f_language_data): Likewise.
2463 (f_language::print_typedef): New member function.
2464 * go-lang.c (go_language_data): Delete la_print_typedef
2465 initializer.
2466 * language.c (language_defn::print_typedef): Define member
2467 function.
2468 (unknown_language_data): Delete la_print_typedef initializer.
2469 (unknown_language::print_typedef): New member function.
2470 (auto_language_data): Delete la_print_typedef initializer.
2471 (auto_language::print_typedef): New member function.
2472 * language.h (language_data): Delete la_print_typedef field.
2473 (language_defn::print_typedef): Declare new member function.
2474 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2475 (default_print_typedef): Delete declaration.
2476 * m2-lang.c (m2_language_data): Delete la_print_typedef
2477 initializer.
2478 (m2_language::print_typedef): New member function.
2479 * objc-lang.c (objc_language_data): Delete la_print_typedef
2480 initializer.
2481 * opencl-lang.c (opencl_language_data): Likewise.
2482 * p-lang.c (pascal_language_data): Likewise.
2483 (pascal_language::print_typedef): New member function.
2484 * rust-lang.c (rust_print_typedef): Delete function,
2485 implementation moved to rust_language::print_typedef.
2486 (rust_language): Delete la_print_typedef initializer.
2487 (rust_language::print_typedef): New member function,
2488 implementation from rust_print_typedef.
2489 * typeprint.c (default_print_typedef): Delete.
2490
2491 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2492
2493 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2494 (ada_language::printstr): New member function.
2495 * c-lang.c (c_language_data): Delete la_printstr initializer.
2496 (cplus_language_data): Likewise.
2497 (asm_language_data): Likewise.
2498 (minimal_language_data): Likewise.
2499 * d-lang.c (d_language_data): Likewise.
2500 * f-lang.c (f_printstr): Rename to f_language::printstr.
2501 (f_language_data): Delete la_printstr initializer.
2502 (f_language::printstr): New member function, implementation from
2503 f_printstr.
2504 * go-lang.c (go_language_data): Delete la_printstr initializer.
2505 * language.c (language_defn::printstr): Define new member
2506 function.
2507 (unk_lang_printstr): Delete.
2508 (unknown_language_data): Delete la_printstr initializer.
2509 (unknown_language::printstr): New member function.
2510 (auto_language_data): Delete la_printstr initializer.
2511 (auto_language::printstr): New member function.
2512 * language.h (language_data): Delete la_printstr field.
2513 (language_defn::printstr): Declare new member function.
2514 (LA_PRINT_STRING): Update call to printstr.
2515 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2516 (m2_language_data): Delete la_printstr initializer.
2517 (m2_language::printstr): New member function, implementation from
2518 m2_printstr.
2519 * objc-lang.c (objc_language_data): Delete la_printstr
2520 initializer.
2521 * opencl-lang.c (opencl_language_data): Likewise.
2522 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2523 (pascal_language_data): Delete la_printstr initializer.
2524 (pascal_language::printstr): New member function, implementation
2525 from pascal_printstr.
2526 * p-lang.h (pascal_printstr): Delete declaration.
2527 * rust-lang.c (rust_printstr): Update header comment.
2528 (rust_language_data): Delete la_printstr initializer.
2529 (rust_language::printstr): New member function.
2530
2531 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2532
2533 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2534 (ada_language::printchar): New member function.
2535 * c-lang.c (c_language_data): Delete la_printchar initializer.
2536 (cplus_language_data): Likewise.
2537 (asm_language_data): Likewise.
2538 (minimal_language_data): Likewise.
2539 * d-lang.c (d_language_data): Likewise.
2540 * f-lang.c (f_printchar): Rename to f_language::printchar.
2541 (f_language_data): Delete la_printchar initializer.
2542 (f_language::printchar): New member function, implementation from
2543 f_printchar.
2544 * go-lang.c (go_language_data): Delete la_printchar initializer.
2545 * language.c (unk_lang_printchar): Delete.
2546 (language_defn::printchar): Define new member function.
2547 (unknown_language_data): Delete la_printchar initializer.
2548 (unknown_language::printchar): New member function.
2549 (auto_language_data): Delete la_printchar initializer.
2550 (auto_language::printchar): New member function.
2551 * language.h (language_data): Delete la_printchar field.
2552 (language_defn::printchar): Declare new member function.
2553 (LA_PRINT_CHAR): Update call to printchar.
2554 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2555 (m2_language::printchar): New member function.
2556 * objc-lang.c (objc_language_data): Delete la_printchar
2557 initializer.
2558 * opencl-lang.c (opencl_language_data): Likewise.
2559 * p-lang.c (pascal_language_data): Delete la_printchar
2560 initializer.
2561 (pascal_language::printchar): New member function.
2562 * rust-lang.c (rust_printchar): Rename to
2563 rust_language::printchar.
2564 (rust_language_data): Delete la_printchar initializer.
2565 (rust_language::printchar): New member function, implementation
2566 from rust_printchar.
2567
2568 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2569
2570 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2571 (ada_language_data): Delete la_emitchar initializer.
2572 (ada_language::emitchar): New member function, implementation from
2573 emit_char.
2574 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2575 (cplus_language_data): Likewise.
2576 (asm_language_data): Likewise.
2577 (minimal_language_data): Likewise.
2578 * d-lang.c (d_language_data): Likewise.
2579 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2580 (f_language_data): Delete la_emitchar initializer.
2581 (f_language::emitchar): New member function, implementation from
2582 f_emit_char.
2583 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2584 * language.c (unk_lang_emit_char): Delete.
2585 (language_defn::emitchar): New member function definition.
2586 (unknown_language_data): Delete la_emitchar initializer.
2587 (unknown_language::emitchar): New member function.
2588 (auto_language_data): Delete la_emitchar initializer.
2589 (auto_language::emitchar): New member function.
2590 * language.h (language_data): Delete la_emitchar field.
2591 (language_defn::emitchar): New member field declaration.
2592 (LA_EMIT_CHAR): Update call to emitchar.
2593 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2594 (m2_language_data): Delete la_emitchar initializer.
2595 (m2_language::emitchar): New member function, implementation from
2596 m2_emit_char.
2597 * objc-lang.c (objc_language_data): Delete la_emitchar
2598 initializer.
2599 * opencl-lang.c (opencl_language_data): Likewise.
2600 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2601 (pascal_language_data): Delete la_emitchar initializer.
2602 (pascal_language::emitchar): New member function, implementation
2603 from pascal_emit_char.
2604 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2605 (rust_language_data): Delete la_emitchar initializer.
2606 (rust_language::emitchar): New member function, implementation
2607 from rust_emitchar.
2608
2609 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2610
2611 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2612 (ada_language_data): Delete la_post_parser initializer.
2613 (ada_language::post_parser): New member function.
2614 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2615 (cplus_language_data): Likewise.
2616 (asm_language_data): Likewise.
2617 (minimal_language_data): Likewise.
2618 * d-lang.c (d_language_data): Likewise.
2619 * f-lang.c (f_language_data): Likewise.
2620 * go-lang.c (go_language_data): Likewise.
2621 * language.c (unknown_language_data): Likewise.
2622 (auto_language_data): Likewise.
2623 * language.h (language_data): Delete la_post_parser field.
2624 (language_defn::post_parser): New member function.
2625 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2626 * objc-lang.c (objc_language_data): Likewise.
2627 * opencl-lang.c (opencl_language_data): Likewise.
2628 * p-lang.c (pascal_language_data): Likewise.
2629 * parse.c (parse_exp_in_context): Update call to post_parser.
2630 (null_post_parser): Delete definition.
2631 * parser-defs.h (null_post_parser): Delete declaration.
2632 * rust-lang.c (rust_language_data): Delete la_post_parser
2633 initializer.
2634
2635 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2636
2637 * ada-lang.c (parse): Rename to ada_language::parser.
2638 (ada_language_data): Delete la_parser initializer.
2639 (ada_language::parser): New member function, implementation from
2640 parse.
2641 * c-lang.c (c_language_data): Delete la_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 (d_language::parser): New member function.
2647 * f-lang.c (f_language_data): Delete la_parser initializer.
2648 (f_language::parser): New member function.
2649 * go-lang.c (go_language_data): Delete la_parser initializer.
2650 (go_language::parser): New member function.
2651 * language.c (unk_lang_parser): Delete.
2652 (language_defn::parser): Define new member function.
2653 (unknown_language_data): Delete la_parser initializer.
2654 (unknown_language::parser): New member function.
2655 (auto_language_data): Delete la_parser initializer.
2656 (auto_language::parser): New member function.
2657 * language.h (language_data): Delete la_parser field.
2658 (language_defn::parser): Declare new member function.
2659 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2660 (m2_language::parser): New member function.
2661 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2662 * opencl-lang.c (opencl_language_data): Likewise.
2663 * p-lang.c (pascal_language_data): Likewise.
2664 (pascal_language::parser): New member function.
2665 * parse.c (parse_exp_in_context): Update call to parser.
2666 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2667 (rust_language::parser): New member function.
2668
2669 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2670
2671 * top.c (print_gdb_configuration): Print --with-python-libdir
2672 configuration value.
2673
2674 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2675
2676 * NEWS: Mention change to the alias command.
2677
2678 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2679
2680 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2681 (alias_command_completer)
2682 (make_alias_options_def_group): New functions.
2683 (alias_opts, alias_option_defs): New struct and array.
2684 (alias_usage_error): Update usage.
2685 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2686 Use option framework.
2687 (_initialize_cli_cmds): Update alias command help.
2688 Update aliases command help.
2689 (show_user):
2690 Add NULL for new default_args lookup_cmd argument.
2691 (valid_command_p): Rename to validate_aliased_command.
2692 Add NULL for new default_args lookup_cmd argument. Verify that the
2693 aliased_command has no default args.
2694 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2695 (lookup_cmd_1, lookup_cmd): New argument default_args.
2696 (add_alias_cmd):
2697 Add NULL for new default_args lookup_cmd argument.
2698 (print_help_for_command): Show default args under the layout
2699 alias some_alias = some_aliased_cmd some_alias_default_arg.
2700 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2701 xfree default_args in destructor.
2702 * cli/cli-script.c (process_next_line, do_define_command):
2703 Add NULL for new default_args lookup_cmd argument.
2704 * command.h: Declare new default_args argument in lookup_cmd
2705 and lookup_cmd_1.
2706 * completer.c (complete_line_internal_1):
2707 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2708 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2709 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2710 Likewise.
2711 * infcmd.c (_initialize_infcmd): Likewise.
2712 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2713 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2714 * python/py-param.c (add_setshow_generic): Likewise.
2715 * remote.c (_initialize_remote): Likewise.
2716 * top.c (execute_command): Prepend default_args if command has some.
2717 (set_verbose):
2718 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2719 * tracepoint.c (validate_actionline, encode_actions_1):
2720 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2721
2722 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2723
2724 * jit.c (jit_read_descriptor): Use bool as the return type.
2725 (jit_breakpoint_re_set_internal): Use bool as the return type.
2726 Invert the return value logic; return true if the jit breakpoint
2727 has been successfully initialized.
2728 (jit_inferior_init): Update the call to
2729 jit_breakpoint_re_set_internal.
2730
2731 2020-06-22 Pedro Alves <palves@redhat.com>
2732
2733 PR gdb/25939
2734 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2735 Use the current inferior instead. Don't return
2736 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2737 wait again.
2738 * sol-thread.c (sol_thread_target::wait): Don't reference
2739 inferior_ptid.
2740 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2741 (sol_update_thread_list_callback): Use the current inferior's pid
2742 instead of inferior_ptid.
2743
2744 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2745
2746 * procfs.c: Cleanup many comments.
2747
2748 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2749 (AFTER_WATCHFLAG): Replace by value.
2750
2751 (MAIN_PROC_NAME_FORMAT): Inline ...
2752 (create_procinfo): ... here.
2753
2754 (procfs_debug_inferior): Remove SYS_exec handling.
2755 (syscall_is_exec): Likewise.
2756 (procfs_set_exec_trap): Likewise.
2757
2758 (syscall_is_lwp_exit): Inline in callers.
2759 (syscall_is_exit): Likewise.
2760 (syscall_is_exec): Likewise.
2761 (syscall_is_lwp_create): Likewise.
2762
2763 (invalidate_cache): Remove #if 0 code.
2764
2765 (make_signal_thread_runnable): Remove.
2766 (procfs_target::resume): Remove #if 0 code.
2767
2768 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2769
2770 PR gdb/25939
2771 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2772 call ...
2773 (procfs_target::create_inferior): ... here.
2774
2775 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2776
2777 * exec.c (validate_exec_file): Ensure the build-id is up to
2778 date by calling reopen_exec_file (that checks file timestamp
2779 to decide to re-read the file).
2780
2781 2020-06-18 Pedro Alves <palves@redhat.com>
2782
2783 PR gdb/25412
2784 * gdbthread.h (delete_thread, delete_thread_silent)
2785 (find_thread_ptid): Update comments.
2786 * thread.c (current_thread_): New global.
2787 (is_current_thread): Move higher, and reimplement.
2788 (inferior_thread): Reimplement.
2789 (set_thread_exited): Use bool. Add assertions.
2790 (add_thread_silent): Simplify thread-reuse handling by always
2791 calling delete_thread.
2792 (delete_thread): Remove intro comment.
2793 (find_thread_ptid): Skip exited threads.
2794 (switch_to_thread_no_regs): Write to current_thread_.
2795 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2796 INFERIOR_PTID. Clear current_thread_.
2797
2798 2020-06-18 Pedro Alves <palves@redhat.com>
2799
2800 * aix-thread.c (pd_update): Use switch_to_thread.
2801
2802 2020-06-18 Pedro Alves <palves@redhat.com>
2803
2804 * ravenscar-thread.c (ravenscar_thread_target): Update.
2805 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2806 (ravenscar_thread_target::add_active_thread): ... this. Don't
2807 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2808 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2809
2810 2020-06-18 Pedro Alves <palves@redhat.com>
2811
2812 * nat/windows-nat.c (current_windows_thread): Remove.
2813 * nat/windows-nat.h (current_windows_thread): Remove.
2814 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2815 Adjust.
2816 (display_selectors): Adjust to fetch the current
2817 windows_thread_info based on inferior_ptid.
2818 (fake_create_process): No longer write to current_windows_thread.
2819 (windows_nat_target::get_windows_debug_event):
2820 Don't set inferior_ptid or current_windows_thread.
2821 (windows_nat_target::wait): Adjust to not rely on
2822 current_windows_thread.
2823 (do_initial_windows_stuff): Now a method of windows_nat_target.
2824 Switch to the last_ptid thread.
2825 (windows_nat_target::attach): Adjust.
2826 (windows_nat_target::detach): Use switch_to_no_thread instead of
2827 writing to inferior_ptid directly.
2828 (windows_nat_target::create_inferior): Adjust.
2829
2830 2020-06-18 Pedro Alves <palves@redhat.com>
2831
2832 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2833
2834 2020-06-18 Pedro Alves <palves@redhat.com>
2835
2836 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2837 after creating it, instead of writing to inferior_ptid. Don't
2838 write to inferior_ptid.
2839
2840 2020-06-18 Pedro Alves <palves@redhat.com>
2841
2842 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2843
2844 2020-06-18 Pedro Alves <palves@redhat.com>
2845
2846 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2847 it, instead of writing to inferior_ptid.
2848
2849 2020-06-18 Pedro Alves <palves@redhat.com>
2850
2851 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2852 to inferior_ptid.
2853
2854 2020-06-18 Pedro Alves <palves@redhat.com>
2855
2856 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2857 instead of writing to inferior_ptid directly.
2858
2859 2020-06-18 Pedro Alves <palves@redhat.com>
2860
2861 * corelow.c (core_target::close): Use switch_to_no_thread instead
2862 of writing to inferior_ptid directly.
2863 (add_to_thread_list, core_target_open): Use switch_to_thread
2864 instead of writing to inferior_ptid directly.
2865
2866 2020-06-18 Pedro Alves <palves@redhat.com>
2867
2868 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2869 inferior_ptid.
2870 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2871 inferior_ptid.
2872 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2873 inferior_ptid directly.
2874 (darwin_nat_target::init_thread_list): Switch to thread, instead
2875 of writing to inferior_ptid.
2876 (darwin_nat_target::attach): Don't write to inferior_ptid.
2877 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2878
2879 2020-06-18 Pedro Alves <palves@redhat.com>
2880
2881 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2882 thread.
2883 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2884 Instead use switch_to_thread.
2885 (gnu_nat_target::detach): Use switch_to_no_thread
2886 instead of writing to inferior_ptid directly. Used passed-in
2887 inferior instead of looking up the inferior by pid.
2888
2889 2020-06-18 Pedro Alves <palves@redhat.com>
2890
2891 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2892 inferior_ptid.
2893
2894 2020-06-18 Pedro Alves <palves@redhat.com>
2895
2896 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2897 inferior_ptid.
2898 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2899 thread.
2900 (nto_procfs_target::detach): Avoid referencing
2901 inferior_ptid. Use switch_to_no_thread instead of writing to
2902 inferior_ptid directly.
2903 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2904 instead of writing to inferior_ptid directly.
2905 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2906 to thread.
2907
2908 2020-06-18 Pedro Alves <palves@redhat.com>
2909
2910 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2911 after creating it, instead of writing to inferior_ptid.
2912 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2913 to inferior_ptid directly.
2914 (gdbsim_target::wait): Don't write to inferior_ptid.
2915
2916 2020-06-18 Pedro Alves <palves@redhat.com>
2917
2918 * remote.c (remote_target::remote_notice_new_inferior): Use
2919 switch_to_thread instead of writing to inferior_ptid directly.
2920 (remote_target::add_current_inferior_and_thread): Use
2921 switch_to_no_thread instead of writing to inferior_ptid directly.
2922 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2923 and switch_to_thread instead of using set_current_inferior or
2924 writing to inferior_ptid directly.
2925
2926 2020-06-18 Pedro Alves <palves@redhat.com>
2927
2928 * tracectf.c (ctf_target_open): Switch to added thread instead of
2929 writing to inferior_ptid directly.
2930 (ctf_target::close): Use switch_to_no_thread instead of writing to
2931 inferior_ptid directly.
2932
2933 2020-06-18 Pedro Alves <palves@redhat.com>
2934
2935 * tracefile-tfile.c (tfile_target_open): Don't write to
2936 inferior_ptid directly, instead switch to added thread.
2937 (tfile_target::close): Use switch_to_no_thread instead of writing
2938 to inferior_ptid directly.
2939
2940 2020-06-18 Pedro Alves <palves@redhat.com>
2941
2942 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2943 (procfs_target::detach): Use switch_to_no_thread
2944 instead of writing to inferior_ptid directly.
2945 (do_attach): Change return type to void. Switch to the added
2946 thread.
2947 (procfs_target::create_inferior): Switch to the added thread.
2948 (procfs_do_thread_registers): Don't write to inferior_ptid.
2949
2950 2020-06-18 Pedro Alves <palves@redhat.com>
2951
2952 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2953 of writing to inferior_ptid.
2954 (scoped_restore_exited_inferior): Delete.
2955 (handle_vfork_child_exec_or_exit): Simplify using
2956 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2957 instead of writing to inferior_ptid.
2958 (THREAD_STOPPED_BY): Delete.
2959 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2960 (thread_stopped_by_hw_breakpoint): Delete.
2961 (save_waitstatus): Use
2962 scoped_restore_current_thread+switch_to_thread, and call
2963 target_stopped_by_watchpoint instead of
2964 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2965 instead of thread_stopped_by_sw_breakpoint, and
2966 target_stopped_by_hw_breakpoint instead of
2967 thread_stopped_by_hw_breakpoint.
2968 (handle_inferior_event)
2969 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2970 inferior_ptid directly, nor
2971 set_current_inferior/set_current_program_space. Use
2972 switch_to_thread / switch_to_inferior_no_thread instead.
2973
2974 2020-06-18 Pedro Alves <palves@redhat.com>
2975
2976 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2977 instead of writing to inferior_ptid.
2978
2979 2020-06-18 Pedro Alves <palves@redhat.com>
2980
2981 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2982 added thread.
2983 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2984 to the added thread.
2985 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2986 instead of writing to inferior_ptid.
2987
2988 2020-06-18 Pedro Alves <palves@redhat.com>
2989
2990 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2991 (register_to_value_test): Mock a program_space too. Heap-allocate
2992 the address space. Don't write to inferior_ptid. Use
2993 switch_to_thread instead.
2994
2995 2020-06-18 Pedro Alves <palves@redhat.com>
2996
2997 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2998 Delete.
2999 (find_signalled_thread()): New, factored out from
3000 linux_make_corefile_notes and adjusted to handle exited threads.
3001 (linux_make_corefile_notes): Adjust to use the new
3002 find_signalled_thread.
3003
3004 2020-06-18 Pedro Alves <palves@redhat.com>
3005
3006 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3007 of saving/restoring inferior_ptid.
3008
3009 2020-06-17 Tom Tromey <tom@tromey.com>
3010
3011 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3012 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3013 declare.
3014 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3015
3016 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3019 of partial symtabs.
3020
3021 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3022
3023 * regformats/reg-arm.dat: Remove.
3024 * regformats/reg-bfin.dat: Remove.
3025 * regformats/reg-cris.dat: Remove.
3026 * regformats/reg-crisv32.dat: Remove.
3027 * regformats/reg-m32r.dat: Remove.
3028 * regformats/reg-tilegx.dat: Remove.
3029 * regformats/reg-tilegx32.dat: Remove.
3030
3031 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3032
3033 * features/Makefile (WHICH): Remove arm files.
3034 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3035 * regformats/arm/arm-with-neon.dat: Remove.
3036 * regformats/arm/arm-with-vfpv2.dat: Remove.
3037 * regformats/arm/arm-with-vfpv3.dat: Remove.
3038
3039 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3040
3041 * features/Makefile (XMLTOC): Remove rx.xml.
3042
3043 2020-06-17 Pedro Alves <palves@redhat.com>
3044
3045 * gdbthread.h (thread_control_state) <trap_expected> Update
3046 comments.
3047
3048 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3049
3050 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3051 ada_language::lookup_symbol_nonlocal.
3052 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3053 (ada_language::lookup_symbol_nonlocal): New member function,
3054 implementation from ada_lookup_symbol_nonlocal.
3055 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3056 initializer.
3057 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3058 initializer.
3059 (cplus_language::lookup_symbol_nonlocal): New member function.
3060 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3061 (minimal_language_data) Likewise.
3062 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3063 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3064 initializer.
3065 (d_language::lookup_symbol_nonlocal): New member function.
3066 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3067 initializer.
3068 (f_language::lookup_symbol_nonlocal): New member function.
3069 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3070 initializer.
3071 * language.c (unknown_language_data): Likewise.
3072 (auto_language_data): Likewise.
3073 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3074 field.
3075 (language_defn::lookup_symbol_nonlocal): New member function.
3076 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3077 initializer.
3078 * objc-lang.c (objc_language_data): Likewise.
3079 * opencl-lang.c (opencl_language_data): Likewise.
3080 * p-lang.c (pascal_language_data): Likewise.
3081 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3082 rust_language::lookup_symbol_nonlocal.
3083 (rust_language_data): Delete la_lookup_symbol_nonlocal
3084 initializer.
3085 (rust_language::lookup_symbol_nonlocal): New member function,
3086 implementation from rust_lookup_symbol_nonlocal.
3087 * symtab.c (lookup_symbol_aux): Update call to
3088 lookup_symbol_nonlocal.
3089 (basic_lookup_symbol_nonlocal): Rename to...
3090 (language_defn::lookup_symbol_nonlocal): ...this, and update
3091 header comment. Remove language_defn parameter, and replace with
3092 uses of `this'.
3093 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3094
3095 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3096
3097 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3098 initializer.
3099 (ada_language::value_print_inner): New member function.
3100 * c-lang.c (c_language_data): Delete la_value_print_inner
3101 initializer.
3102 (cplus_language_data): Likewise.
3103 (asm_language_data): Likewise.
3104 (minimal_language_data): Likewise.
3105 * d-lang.c (d_language_data): Likewise.
3106 (d_language::value_print_inner): New member function.
3107 * f-lang.c (f_language_data): Delete la_value_print_inner
3108 initializer.
3109 (f_language::value_print_inner): New member function.
3110 * f-lang.h (f_value_print_innner): Rename to...
3111 (f_value_print_inner): ...this (note spelling of 'inner').
3112 * f-valprint.c (f_value_print_innner): Rename to...
3113 (f_value_print_inner): ...this (note spelling of 'inner').
3114 * go-lang.c (go_language_data): Delete la_value_print_inner
3115 initializer.
3116 (go_language::value_print_inner): New member function.
3117 * language.c (language_defn::value_print_inner): Define new member
3118 function.
3119 (unk_lang_value_print_inner): Delete.
3120 (unknown_language_data): Delete la_value_print_inner initializer.
3121 (unknown_language::value_print_inner): New member function.
3122 (auto_language_data): Delete la_value_print_inner initializer.
3123 (auto_language::value_print_inner): New member function.
3124 * language.h (language_data): Delete la_value_print_inner field.
3125 (language_defn::value_print_inner): Delcare new member function.
3126 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3127 initializer.
3128 (m2_language::value_print_inner): New member function.
3129 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3130 initializer.
3131 * opencl-lang.c (opencl_language_data): Likewise.
3132 * p-lang.c (pascal_language_data): Likewise.
3133 (pascal_language::value_print_inner): New member function.
3134 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3135 initializer.
3136 (rust_language::value_print_inner): New member function.
3137 * valprint.c (do_val_print): Update call to value_print_inner.
3138
3139 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3140
3141 * ada-lang.c (ada_language_data): Delete la_value_print
3142 initializer.
3143 (ada_language::value_print): New member function.
3144 * c-lang.c (c_language_data): Delete la_value_print initializer.
3145 (cplus_language_data): Likewise.
3146 (asm_language_data): Likewise.
3147 (minimal_language_data): Likewise.
3148 * d-lang.c (d_language_data): Likewise.
3149 * f-lang.c (f_language_data): Likewise.
3150 * go-lang.c (go_language_data): Likewise.
3151 * language.c (unk_lang_value_print): Delete.
3152 (language_defn::value_print): Define new member function.
3153 (unknown_language_data): Delete la_value_print initializer.
3154 (unknown_language::value_print): New member function.
3155 (auto_language_data): Delete la_value_print initializer.
3156 (auto_language::value_print): New member function.
3157 * language.h (language_data): Delete la_value_print field.
3158 (language_defn::value_print): Declare new member function.
3159 (LA_VALUE_PRINT): Update call to value_print.
3160 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3161 * objc-lang.c (objc_language_data): Likewise.
3162 * opencl-lang.c (opencl_language_data): Likewise.
3163 * p-lang.c (pascal_language_data): Likewise.
3164 (pascal_language::value_print): New member function.
3165 * rust-lang.c (rust_language_data): Delete la_value_print
3166 initializer.
3167
3168 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3169
3170 * ada-lang.c (ada_watch_location_expression): Rename to
3171 ada_language::watch_location_expression.
3172 (ada_language_data): Delete la_watch_location_expression
3173 initializer.
3174 (ada_language::watch_location_expression): New member function,
3175 implementation from ada_watch_location_expression.
3176 * breakpoint.c (watch_command_1): Update call to
3177 watch_location_expression.
3178 * c-lang.c (c_watch_location_expression): Rename to
3179 language_defn::watch_location_expression.
3180 (c_language_data): Delete la_watch_location_expression
3181 initializer.
3182 (cplus_language_data): Likewise.
3183 (asm_language_data): Likewise.
3184 (minimal_language_data): Likewise.
3185 * c-lang.h (c_watch_location_expression): Delete declaration.
3186 * d-lang.c (d_language_data): Delete la_watch_location_expression
3187 initializer.
3188 * f-lang.c (f_language_data): Likewise.
3189 * go-lang.c (go_language_data): Likewise.
3190 * language.c (language_defn::watch_location_expression): Member
3191 function implementation from c_watch_location_expression.
3192 (unknown_language_data): Delete la_watch_location_expression
3193 initializer.
3194 (auto_language_data): Likewise.
3195 * language.h (language_data): Delete la_watch_location_expression
3196 field.
3197 (language_defn::watch_location_expression): Declare new member
3198 function.
3199 * m2-lang.c (m2_language_data): Delete
3200 la_watch_location_expression initializer.
3201 * objc-lang.c (objc_language_data): Likewise.
3202 * opencl-lang.c (opencl_language_data): Likewise.
3203 * p-lang.c (pascal_language_data): Likewise.
3204 * rust-lang.c (rust_watch_location_expression): Rename to
3205 rust_language::watch_location_expression.
3206 (rust_language_data): Delete la_watch_location_expression
3207 initializer.
3208 (rust_language::watch_location_expression): New member function,
3209 implementation from rust_watch_location_expression.
3210
3211 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3212
3213 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3214 ada_language::collect_symbol_completion_matches.
3215 (ada_language_data): Delete la_collect_symbol_completion_matches
3216 initializer.
3217 (ada_language::collect_symbol_completion_matches): New member
3218 function, implementation from
3219 ada_collect_symbol_completion_matches.
3220 * c-lang.c (c_language_data): Delete
3221 la_collect_symbol_completion_matches initializer.
3222 (cplus_language_data): Likewise.
3223 (asm_language_data): Likewise.
3224 (minimal_language_data): Likewise.
3225 * d-lang.c (d_language_data): Likewise.
3226 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3227 f_language::collect_symbol_completion_matches.
3228 (f_language_data): Delete la_collect_symbol_completion_matches
3229 initializer.
3230 (f_language::collect_symbol_completion_matches) New member
3231 function, implementation from f_collect_symbol_completion_matches.
3232 * go-lang.c (go_language_data): Delete
3233 la_collect_symbol_completion_matches initializer.
3234 * language.c (unknown_language_data): Likewise.
3235 (auto_language_data): Likewise.
3236 * language.h (language_data): Delete
3237 la_collect_symbol_completion_matches field.
3238 (language_defn::collect_symbol_completion_matches): New member
3239 function.
3240 * m2-lang.c (m2_language_data): Delete
3241 la_collect_symbol_completion_matches initializer.
3242 * objc-lang.c (objc_language_data): Likewise.
3243 * opencl-lang.c (opencl_language_data): Likewise.
3244 * p-lang.c (pascal_language_data): Likewise.
3245 * rust-lang.c (rust_language_data): Likewise.
3246 * symtab.c (default_collect_symbol_completion_matches): Delete.
3247 (collect_symbol_completion_matches): Update call to
3248 collect_symbol_completion_matches.
3249 (collect_symbol_completion_matches_type): Likewise.
3250 * symtab.h (default_collect_symbol_completion_matches): Delete
3251 declaration.
3252
3253 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3256 (ada_language_data): Delete la_word_break_characters initializer.
3257 (ada_language::word_break_characters): New member function.
3258 * c-lang.c (c_language_data): Delete la_word_break_characters
3259 initializer.
3260 (cplus_language_data): Likewise.
3261 (asm_language_data): Likewise.
3262 (minimal_language_data): Likewise.
3263 * completer.c: Update global comment.
3264 (advance_to_expression_complete_word_point): Update call to
3265 word_break_characters.
3266 (complete_files_symbols): Likewise.
3267 (complete_line_internal_1): Likewise.
3268 (default_completer_handle_brkchars): Likewise.
3269 (skip_quoted_chars): Likewise.
3270 * d-lang.c (d_language_data): Delete la_word_break_characters
3271 initializer.
3272 * f-lang.c (f_word_break_characters): Delete.
3273 (f_language_data): Delete la_word_break_characters initializer.
3274 (f_language::word_break_characters): New member function.
3275 * go-lang.c (go_language_data): Delete la_word_break_characters
3276 initializer.
3277 * language.c (unknown_language_data): Likewise.
3278 (auto_language_data): Likewise.
3279 * language.h (default_word_break_characters): Move declaration to
3280 earlier in the file.
3281 (language_data): Delete la_word_break_characters field.
3282 (language_defn::word_break_characters): New member function.
3283 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3284 initializer.
3285 * objc-lang.c (objc_language_data): Likewise.
3286 * opencl-lang.c (opencl_language_data): Likewise.
3287 * p-lang.c (pascal_language_data): Likewise.
3288 * rust-lang.c (rust_language_data): Likewise.
3289
3290 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3291
3292 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3293 (ada_language_data): Delete la_get_symbol_name_matcher
3294 initializer.
3295 (language_defn::get_symbol_name_matcher_inner): New member
3296 function.
3297 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3298 initializer.
3299 (cplus_language_data): Likewise.
3300 (cplus_language::get_symbol_name_matcher_inner): New member
3301 function.
3302 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3303 (minimal_language_data): Likewise.
3304 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3305 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3306 initializer.
3307 * dictionary.c (iter_match_first_hashed): Update call to
3308 get_symbol_name_matcher.
3309 (iter_match_next_hashed): Likewise.
3310 (iter_match_next_linear): Likewise.
3311 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3312 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3313 initializer.
3314 (f_language::get_symbol_name_matcher_inner): New member function.
3315 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3316 initializer.
3317 * language.c (default_symbol_name_matcher): Update header comment,
3318 make static.
3319 (language_defn::get_symbol_name_matcher): New definition.
3320 (language_defn::get_symbol_name_matcher_inner): Likewise.
3321 (get_symbol_name_matcher): Delete.
3322 (unknown_language_data): Delete la_get_symbol_name_matcher
3323 initializer.
3324 (auto_language_data): Likewise.
3325 * language.h (language_data): Delete la_get_symbol_name_matcher
3326 field.
3327 (language_defn::get_symbol_name_matcher): New member function.
3328 (language_defn::get_symbol_name_matcher_inner): Likewise.
3329 (default_symbol_name_matcher): Delete declaration.
3330 * linespec.c (find_methods): Update call to
3331 get_symbol_name_matcher.
3332 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3333 initializer.
3334 * minsyms.c (lookup_minimal_symbol): Update call to
3335 get_symbol_name_matcher.
3336 (iterate_over_minimal_symbols): Likewise.
3337 * objc-lang.c (objc_language_data): Delete
3338 la_get_symbol_name_matcher initializer.
3339 * opencl-lang.c (opencl_language_data): Likewise.
3340 * p-lang.c (pascal_language_data): Likewise.
3341 * psymtab.c (psymbol_name_matches): Update call to
3342 get_symbol_name_matcher.
3343 * rust-lang.c (rust_language_data): Delete
3344 la_get_symbol_name_matcher initializer.
3345 * symtab.c (symbol_matches_search_name): Update call to
3346 get_symbol_name_matcher.
3347 (compare_symbol_name): Likewise.
3348
3349 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3350
3351 * ada-lang.c (ada_language_data): Delete la_compute_program
3352 initializer.
3353 * c-lang.c (c_language_data): Likewise.
3354 (c_language::compute_program): New member function.
3355 (cplus_language_data): Delete la_compute_program initializer.
3356 (cplus_language::compute_program): New member function.
3357 (asm_language_data): Delete la_compute_program initializer.
3358 (minimal_language_data): Likewise.
3359 * c-lang.h (c_compute_program): Update comment.
3360 (cplus_compute_program): Likewise.
3361 * compile/compile-c-support.c (c_compute_program): Likewise.
3362 (cplus_compute_program): Likewise.
3363 * compile/compile.c (compile_to_object): Update call to
3364 la_compute_program.
3365 * d-lang.c (d_language_data): Delete la_compute_program
3366 initializer.
3367 * f-lang.c (f_language_data): Likewise.
3368 * go-lang.c (go_language_data): Likewise.
3369 * language.c (unknown_language_data): Likewise.
3370 (auto_language_data): Likewise.
3371 * language.h (language_data): Delete la_compute_program field.
3372 (language_defn::compute_program): New member function.
3373 * m2-lang.c (m2_language_data): Delete la_compute_program
3374 initializer.
3375 * objc-lang.c (objc_language_data): Likewise.
3376 * opencl-lang.c (opencl_language_data): Likewise.
3377 * p-lang.c (pascal_language_data): Likewise.
3378 * rust-lang.c (rust_language_data): Likewise.
3379
3380 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3381
3382 * ada-lang.c (ada_language_data) Delete
3383 la_class_name_from_physname initializer.
3384 * c-lang.c (c_language_data): Likewise.
3385 (cplus_language_data): Likewise.
3386 (cplus_language::class_name_from_physname): New member function.
3387 (asm_language_data): Delete la_class_name_from_physname
3388 initializer.
3389 (minimal_language_data): Likewise.
3390 * d-lang.c (d_language_data): Likewise.
3391 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3392 method on language_defn class.
3393 (guess_full_die_structure_name): Likewise.
3394 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3395 initializer.
3396 * go-lang.c (go_language_data): Likewise.
3397 * language.c (language_class_name_from_physname): Delete.
3398 (unk_lang_class_name): Delete.
3399 (unknown_language_data): Delete la_class_name_from_physname
3400 initializer.
3401 (auto_language_data): Likewise.
3402 * language.h (language_data): Delete la_class_name_from_physname
3403 field.
3404 (language_defn::class_name_from_physname): New function.
3405 (language_class_name_from_physname): Delete declaration.
3406 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3407 initializer.
3408 * objc-lang.c (objc_language_data): Likewise.
3409 * opencl-lang.c (opencl_language_data): Likewise.
3410 * p-lang.c (pascal_language_data): Likewise.
3411 * rust-lang.c (rust_language_data): Likewise.
3412
3413 2020-06-16 Tom Tromey <tom@tromey.com>
3414
3415 * tui/tui-data.h (STATUS_NAME): New macro.
3416 * tui/tui-layout.c (tui_remove_some_windows)
3417 (initialize_known_windows, tui_register_window)
3418 (tui_layout_split::remove_windows, initialize_layouts)
3419 (tui_new_layout_command): Don't use hard-coded window names.
3420
3421 2020-06-16 Tom Tromey <tom@tromey.com>
3422
3423 PR tui/25348:
3424 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3425 tui_initialize_readline. Only run once. Call rl_initialize.
3426 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3427 tui_initialize_readline.
3428 * tui/tui-io.c (tui_setup_io): Call
3429 tui_ensure_readline_initialized.
3430 * tui/tui-interp.c (tui_interp::init): Update.
3431
3432 2020-06-16 Tom Tromey <tom@tromey.com>
3433
3434 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3435 Also preserve the status window.
3436
3437 2020-06-16 Tom Tromey <tom@tromey.com>
3438
3439 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3440 where m_window==nullptr.
3441
3442 2020-06-15 Tom Tromey <tromey@adacore.com>
3443
3444 * windows-nat.c (windows_nat::handle_output_debug_string):
3445 Update.
3446 (windows_nat::handle_ms_vc_exception): Update.
3447 * target.h (target_read_string): Change API.
3448 * target.c (target_read_string): Change API.
3449 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3450 Update.
3451 * solib-frv.c (frv_current_sos): Update.
3452 * solib-dsbt.c (dsbt_current_sos): Update.
3453 * solib-darwin.c (darwin_current_sos): Update.
3454 * linux-thread-db.c (inferior_has_bug): Update.
3455 * expprint.c (print_subexp_standard): Update.
3456 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3457 (ada_exception_message_1): Update.
3458
3459 2020-06-15 Tom Tromey <tromey@adacore.com>
3460
3461 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3462
3463 2020-06-15 Tom Tromey <tromey@adacore.com>
3464
3465 * valprint.c (read_string): Update comment.
3466 * target.c (MIN): Remove.
3467 (target_read_string): Rewrite.
3468
3469 2020-06-15 Tom Tromey <tromey@adacore.com>
3470
3471 * corefile.c (read_memory_string): Remove.
3472 * ada-valprint.c (ada_value_print_ptr): Update.
3473 * ada-lang.h (ada_tag_name): Change return type.
3474 * ada-lang.c (type_from_tag): Update.
3475 (ada_tag_name_from_tsd): Change return type. Use
3476 target_read_string.
3477 (ada_tag_name): Likewise.
3478 * gdbcore.h (read_memory_string): Don't declare.
3479
3480 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3481
3482 * symtab.c (rbreak_command): Ignore Windows drive colon.
3483
3484 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * NEWS: Mention removed GDBserver host support.
3487
3488 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3489
3490 * features/riscv/rebuild-csr-xml.sh: Updated.
3491
3492 2020-06-11 Tom Tromey <tom@tromey.com>
3493
3494 PR gdb/18318:
3495 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3496
3497 2020-06-09 Jonny Grant <jg@jguk.org>
3498 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3499
3500 * main.c (captured_main_1): Don't print new line after help.
3501 (print_gdb_help): add mailing list and IRC channel information
3502 to --help. Add new lines between items in the footer. Remove
3503 quotes around bug url.
3504
3505 2020-06-11 Keith Seitz <keiths@redhat.com>
3506
3507 PR gdb/21356
3508 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3509 Resolve typedefs for type length calculations.
3510
3511 2020-06-10 Tom de Vries <tdevries@suse.de>
3512
3513 PR ada/24713
3514 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3515 (write_psymbols): Enable .gdb_index for ada.
3516 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3517 ada.
3518
3519 2020-06-10 Tom de Vries <tdevries@suse.de>
3520
3521 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3522 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3523 namei" instead of "const char *name" argument.
3524 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3525 dw2_symtab_iter_init.
3526
3527 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3530 to use type::field and field::type instead.
3531
3532 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3533
3534 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3535 to use field::type instead.
3536
3537 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3538
3539 * gdbtypes.h (struct field) <type, set_type>: New methods.
3540 Rename `type` field to...
3541 <m_type>: ... this. Change references throughout to use type or
3542 set_type methods.
3543 (FIELD_TYPE): Use field::type. Change call sites that modify
3544 the field's type to use field::set_type instead.
3545
3546 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3547
3548 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3549 to use type::index_type instead.
3550
3551 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3554 methods.
3555 (TYPE_INDEX_TYPE): Use type::index_type.
3556 * gdbtypes.c (create_array_type_with_stride): Likewise.
3557
3558 2020-06-07 Tom Tromey <tom@tromey.com>
3559
3560 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3561 parameter.
3562 (generic_value_print): Update.
3563
3564 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3565
3566 Revert commit 982a38f60b0.
3567 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3568
3569 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3570
3571 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3572 avoid use after free.
3573
3574 2020-06-05 Tom de Vries <tdevries@suse.de>
3575
3576 * NEWS: Fix typos.
3577
3578 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3579
3580 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3581 the per_bfd object.
3582 (dwarf2_read_debug_names): Likewise.
3583 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3584 object when re-using a per_bfd object with an index.
3585
3586 2020-06-03 Tom de Vries <tdevries@suse.de>
3587
3588 PR symtab/26046
3589 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3590 children for C++.
3591 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3592 DW_TAG_subprogram.
3593
3594 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3595
3596 * ada-lang.c (ada_language_data): Delete skip_trampoline
3597 initializer.
3598 * c-lang.c (c_language_data): Likewise.
3599 (cplus_language_data): Likewise.
3600 (cplus_language::skip_trampoline): New member function.
3601 (asm_language_data): Delete skip_trampoline initializer.
3602 (minimal_language_data): Likewise.
3603 * d-lang.c (d_language_data): Likewise.
3604 * f-lang.c (f_language_data): Likewise.
3605 * go-lang.c (go_language_data): Likewise.
3606 * language.c (unk_lang_trampoline): Delete function.
3607 (skip_language_trampoline): Update.
3608 (unknown_language_data): Delete skip_trampoline initializer.
3609 (auto_language_data): Likewise.
3610 * language.h (language_data): Delete skip_trampoline field.
3611 (language_defn::skip_trampoline): New function.
3612 * m2-lang.c (m2_language_data): Delete skip_trampoline
3613 initializer.
3614 * objc-lang.c (objc_skip_trampoline): Delete function, move
3615 implementation to objc_language::skip_trampoline.
3616 (objc_language_data): Delete skip_trampoline initializer.
3617 (objc_language::skip_trampoline): New member function with
3618 implementation from objc_skip_trampoline.
3619 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3620 initializer.
3621 * p-lang.c (pascal_language_data): Likewise.
3622 * rust-lang.c (rust_language_data): Likewise.
3623
3624 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3625
3626 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3627 (ada_language::demangle): New member function.
3628 * c-lang.c (c_language_data): Delete la_demangle initializer.
3629 (cplus_language_data): Delete la_demangle initializer.
3630 (cplus_language::demangle): New member function.
3631 (asm_language_data): Delete la_demangle initializer.
3632 (minimal_language_data): Delete la_demangle initializer.
3633 * d-lang.c (d_language_data): Delete la_demangle initializer.
3634 (d_language::demangle): New member function.
3635 * f-lang.c (f_language_data): Delete la_demangle initializer.
3636 (f_language::demangle): New member function.
3637 * go-lang.c (go_language_data): Delete la_demangle initializer.
3638 (go_language::demangle): New member function.
3639 * language.c (language_demangle): Update.
3640 (unk_lang_demangle): Delete.
3641 (unknown_language_data): Delete la_demangle initializer.
3642 (unknown_language::demangle): New member function.
3643 (auto_language_data): Delete la_demangle initializer.
3644 (auto_language::demangle): New member function.
3645 * language.h (language_data): Delete la_demangle field.
3646 (language_defn::demangle): New function.
3647 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3648 * objc-lang.c (objc_language_data): Delete la_demangle
3649 initializer.
3650 (objc_language::demangle): New member function.
3651 * opencl-lang.c (opencl_language_data): Delete la_demangle
3652 initializer.
3653 * p-lang.c (pascal_language_data): Likewise.
3654 * rust-lang.c (rust_language_data): Likewise.
3655 (rust_language::demangle): New member function.
3656
3657 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3658
3659 * ada-lang.c (ada_language_data): Delete la_print_type
3660 initializer.
3661 (ada_language::print_type): New member function.
3662 * c-lang.c (c_language_data): Delete la_print_type initializer.
3663 (c_language::print_type): New member function.
3664 (cplus_language_data): Delete la_print_type initializer.
3665 (cplus_language::print_type): New member function.
3666 (asm_language_data): Delete la_print_type initializer.
3667 (asm_language::print_type): New member function.
3668 (minimal_language_data): Delete la_print_type initializer.
3669 (minimal_language::print_type): New member function.
3670 * d-lang.c (d_language_data): Delete la_print_type initializer.
3671 (d_language::print_type): New member function.
3672 * f-lang.c (f_language_data): Delete la_print_type initializer.
3673 (f_language::print_type): New member function.
3674 * go-lang.c (go_language_data): Delete la_print_type initializer.
3675 (go_language::print_type): New member function.
3676 * language.c (unk_lang_print_type): Delete.
3677 (unknown_language_data): Delete la_print_type initializer.
3678 (unknown_language::print_type): New member function.
3679 (auto_language_data): Delete la_print_type initializer.
3680 (auto_language::print_type): New member function.
3681 * language.h (language_data): Delete la_print_type field.
3682 (language_defn::print_type): New function.
3683 (LA_PRINT_TYPE): Update.
3684 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3685 (m2_language::print_type): New member function.
3686 * objc-lang.c (objc_language_data): Delete la_print_type
3687 initializer.
3688 (objc_language::print_type): New member function.
3689 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3690 to opencl_language::print_type.
3691 (opencl_language_data): Delete la_print_type initializer.
3692 (opencl_language::print_type): New member function, implementation
3693 from opencl_print_type.
3694 * p-lang.c (pascal_language_data): Delete la_print_type
3695 initializer.
3696 (pascal_language::print_type): New member function.
3697 * rust-lang.c (rust_print_type): Delete, implementation moved to
3698 rust_language::print_type.
3699 (rust_language_data): Delete la_print_type initializer.
3700 (rust_language::print_type): New member function, implementation
3701 from rust_print_type.
3702
3703 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3704
3705 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3706 implementation moves to...
3707 (ada_language::sniff_from_mangled_name): ...here. Update return
3708 type.
3709 (ada_language_data): Delete la_sniff_from_mangled_name
3710 initializer.
3711 * c-lang.c (c_language_data): Likewise.
3712 (cplus_language_data): Likewise.
3713 (cplus_language::sniff_from_mangled_name): New member function,
3714 implementation taken from gdb_sniff_from_mangled_name.
3715 (asm_language_data): Delete la_sniff_from_mangled_name
3716 initializer.
3717 (minimal_language_data): Likewise.
3718 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3719 implementation moves to cplus_language::sniff_from_mangled_name.
3720 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3721 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3722 moves to...
3723 (d_language::sniff_from_mangled_name): ...here.
3724 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3725 * f-lang.c (f_language_data): Likewise.
3726 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3727 moves to...
3728 (go_language::sniff_from_mangled_name): ...here.
3729 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3730 * language.c (language_sniff_from_mangled_name): Delete.
3731 (unknown_language_data): Delete la_sniff_from_mangled_name
3732 initializer.
3733 (auto_language_data): Likewise.
3734 * language.h (language_data): Delete la_sniff_from_mangled_name
3735 field.
3736 (language_defn::sniff_from_mangled_name): New function.
3737 (language_sniff_from_mangled_name): Delete declaration.
3738 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3739 field.
3740 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3741 implementation moves to...
3742 (objc_language::sniff_from_mangled_name): ...here.
3743 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3744 * opencl-lang.c (opencl_language_data): Likewise.
3745 * p-lang.c (pascal_language_data): Likewise.
3746 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3747 implementation moves to...
3748 (rust_language::sniff_from_mangled_name): ...here.
3749 (rust_language_data): Delete la_sniff_from_mangled_name
3750 initializer.
3751 * symtab.c (symbol_find_demangled_name): Call
3752 sniff_from_mangled_name member function.
3753
3754 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3755
3756 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3757 initializer.
3758 * c-lang.c (c_language_data): Likewise.
3759 (cplus_language_data): Likewise.
3760 (cplus_language::search_name_hash): New member function.
3761 (asm_language_data): Delete la_search_name_hash initializer.
3762 (minimal_language_data): Likewise.
3763 * d-lang.c (d_language_data): Likewise.
3764 * dictionary.c (default_search_name_hash): Rename to...
3765 (language_defn::search_name_hash): ...this.
3766 * f-lang.c (f_language_data): Likewise.
3767 (f_language::search_name_hash): New member function.
3768 * go-lang.c (go_language_data): Delete la_search_name_hash
3769 initializer.
3770 * language.c (unknown_language_data): Likewise.
3771 (auto_language_data): Likewise.
3772 * language.h (struct language_data): Delete la_search_name_hash
3773 field.
3774 (language_defn::search_name_hash): Declare new member function.
3775 (default_search_name_hash): Delete declaration.
3776 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3777 initializer.
3778 * objc-lang.c (objc_language_data): Likewise.
3779 * opencl-lang.c (opencl_language_data): Likewise.
3780 * p-lang.c (pascal_language_data): Likewise.
3781 * rust-lang.c (rust_language_data): Likewise.
3782 * symtab.c (search_name_hash): Update call.
3783
3784 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3785
3786 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3787 initializer.
3788 * c-lang.c (class compile_instance): Declare.
3789 (c_language_data): Delete la_get_compile_instance initializer.
3790 (c_language::get_compile_instance): New member function.
3791 (cplus_language_data): Delete la_get_compile_instance initializer.
3792 (cplus_language::get_compile_instance): New member function.
3793 (asm_language_data): Delete la_get_compile_instance initializer.
3794 (minimal_language_data): Likewise.
3795 * c-lang.h (c_get_compile_context): Update comment.
3796 (cplus_get_compile_context): Update comment.
3797 * compile/compile.c (compile_to_object): Update calls, don't rely
3798 on function pointer being NULL.
3799 * d-lang.c (d_language_data): Delete la_get_compile_instance
3800 initializer.
3801 * f-lang.c (f_language_data): Likewise.
3802 * go-lang.c (go_language_data): Likewise.
3803 * language.c (unknown_language_data): Likewise.
3804 (auto_language_data): Likewise.
3805 * language.h (language_data): Delete la_get_compile_instance field.
3806 (language_defn::get_compile_instance): New member function.
3807 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3808 initializer.
3809 * objc-lang.c (objc_language_data): Likewise.
3810 * opencl-lang.c (opencl_language_data): Likewise.
3811 * p-lang.c (pascal_language_data): Likewise.
3812 * rust-lang.c (rust_language_data): Likewise.
3813
3814 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3815
3816 * ada-lang.c (ada_add_all_symbols): Update comment.
3817 (ada_iterate_over_symbols): Delete, move implementation to...
3818 (ada_language::iterate_over_symbols): ...here, a new member
3819 function, rewrite to use range based for loop.
3820 (ada_language_data): Delete la_iterate_over_symbols initializer.
3821 * c-lang.c (c_language_data): Likewise.
3822 (cplus_language_data): Likewise.
3823 (asm_language_data): Likewise.
3824 (minimal_language_data): Likewise.
3825 * d-lang.c (d_language_data): Likewise.
3826 * f-lang.c (f_language_data): Likewise.
3827 * go-lang.c (go_language_data): Likewise.
3828 * language.c (unknown_language_data): Likewise.
3829 (auto_language_data): Likewise.
3830 * language.h (language_data): Delete la_iterate_over_symbols field.
3831 (language_defn::iterate_over_symbols): New member function.
3832 (LA_ITERATE_OVER_SYMBOLS): Update.
3833 * linespec.c (iterate_over_all_matching_symtabs): Update.
3834 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
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_language_data): Delete
3844 la_lookup_transparent_type initializer.
3845 * c-lang.c (c_language_data): Likewise.
3846 (cplus_language_data): Likewise.
3847 (cplus_language::lookup_transparent_type): New member function.
3848 (asm_language_data): Delete la_lookup_transparent_type
3849 initializer.
3850 (minimal_language_data): Likewise.
3851 * d-lang.c (d_language_data): Likewise.
3852 * f-lang.c (f_language_data): Likewise.
3853 * go-lang.c (go_language_data): Likewise.
3854 * language.c (unknown_language_data): Likewise.
3855 (auto_language_data): Likewise.
3856 * language.h (struct language_data): Delete
3857 la_lookup_transparent_type field.
3858 (language_defn::lookup_transparent_type): New member function.
3859 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3860 initializer.
3861 * objc-lang.c (objc_language_data): Likewise.
3862 * opencl-lang.c (opencl_language_data): Likewise.
3863 * p-lang.c (pascal_language_data): Likewise.
3864 * rust-lang.c (rust_language_data): Likewise.
3865 * symtab.c (symbol_matches_domain): Update call.
3866
3867 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3868
3869 * ada-lang.c (ada_language_arch_info): Delete function, move
3870 implementation to...
3871 (ada_language::language_arch_info): ...here, a new member
3872 function.
3873 (ada_language_data): Delete la_language_arch_info.
3874 * c-lang.c (c_language_data): Likewise.
3875 (c_language::language_arch_info): New member function.
3876 (cplus_language_arch_info): Delete function, move
3877 implementation to...
3878 (cplus_language::language_arch_info): ...here, a new member
3879 function.
3880 (cplus_language_data): Delete la_language_arch_info.
3881 (asm_language_data): Likewise.
3882 (asm_language::language_arch_info): New member function.
3883 (minimal_language_data): Delete la_language_arch_info.
3884 (minimal_language::language_arch_info): New member function.
3885 * d-lang.c (d_language_arch_info): Delete function, move
3886 implementation to...
3887 (d_language::language_arch_info): ...here, a new member
3888 function.
3889 (d_language_data): Delete la_language_arch_info.
3890 * f-lang.c (f_language_arch_info): Delete function, move
3891 implementation to...
3892 (f_language::language_arch_info): ...here, a new member
3893 function.
3894 (f_language_data): Delete la_language_arch_info.
3895 * go-lang.c (go_language_arch_info): Delete function, move
3896 implementation to...
3897 (go_language::language_arch_info): ...here, a new member
3898 function.
3899 (go_language_data): Delete la_language_arch_info.
3900 * language.c (unknown_language_data): Likewise.
3901 (unknown_language::language_arch_info): New member function.
3902 (auto_language_data): Delete la_language_arch_info.
3903 (auto_language::language_arch_info): New member function.
3904 (language_gdbarch_post_init): Update call to
3905 la_language_arch_info.
3906 * language.h (language_data): Delete la_language_arch_info
3907 function pointer.
3908 (language_defn::language_arch_info): New function.
3909 * m2-lang.c (m2_language_arch_info): Delete function, move
3910 implementation to...
3911 (m2_language::language_arch_info): ...here, a new member
3912 function.
3913 (m2_language_data): Delete la_language_arch_info.
3914 * objc-lang.c (objc_language_arch_info): Delete function, move
3915 implementation to...
3916 (objc_language::language_arch_info): ...here, a new member
3917 function.
3918 (objc_language_data): Delete la_language_arch_info.
3919 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3920 implementation to...
3921 (opencl_language::language_arch_info): ...here, a new member
3922 function.
3923 (opencl_language_data): Delete la_language_arch_info.
3924 * p-lang.c (pascal_language_arch_info): Delete function, move
3925 implementation to...
3926 (pascal_language::language_arch_info): ...here, a new member
3927 function.
3928 (pascal_language_data): Delete la_language_arch_info.
3929 * rust-lang.c (rust_language_arch_info): Delete function, move
3930 implementation to...
3931 (rust_language::language_arch_info): ...here, a new member
3932 function.
3933 (rust_language_data): Delete la_language_arch_info.
3934
3935 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3936
3937 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3938 initializer.
3939 * c-lang.c (c_language_data): Likewise.
3940 (cplus_language_data): Likewise.
3941 (cplus_language::pass_by_reference_info): New method.
3942 (asm_language_data): Delete la_pass_by_reference initializer.
3943 (minimal_language_data): Likewise.
3944 * cp-abi.c (cp_pass_by_reference): Remove use of
3945 default_pass_by_reference.
3946 * d-lang.c (d_language_data): Likewise.
3947 * f-lang.c (f_language_data): Likewise.
3948 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3949 default_pass_by_reference.
3950 * go-lang.c (go_language_data): Likewise.
3951 * language.c (language_pass_by_reference): Update.
3952 (default_pass_by_reference): Delete.
3953 (unknown_language_data): Delete la_pass_by_reference
3954 initializer.
3955 (auto_language_data): Likewise.
3956 * language.h (struct language_data): Delete la_pass_by_reference
3957 field.
3958 (language_defn::pass_by_reference_info): New member function.
3959 (default_pass_by_reference): Delete declaration.
3960 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3961 initializer.
3962 * objc-lang.c (objc_language_data): Likewise.
3963 * opencl-lang.c (opencl_language_data): Likewise.
3964 * p-lang.c (pascal_language_data): Likewise.
3965 * rust-lang.c (rust_language_data): Likewise.
3966
3967 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3968
3969 * ada-lang.c (ada_read_var_value): Delete function, move
3970 implementation to...
3971 (ada_language::read_var_value): ...here.
3972 (ada_language_data): Delete la_read_var_value initializer.
3973 * c-lang.c (c_language_data): Likewise.
3974 (cplus_language_data): Likewise.
3975 (minimal_language_data): Likewise.
3976 * d-lang.c (d_language_data): Likewise.
3977 * f-lang.c (f_language_data): Likewise.
3978 * findvar.c (default_read_var_value): Rename to...
3979 (language_defn::read_var_value): ...this.
3980 * findvar.c (read_var_value): Update header comment, and change to
3981 call member function instead of function pointer.
3982 * go-lang.c (go_language_data): Likewise.
3983 * language.c (unknown_language_data): Delete la_read_var_value
3984 initializer.
3985 (auto_language_data): Likewise.
3986 * language.h (struct language_data): Delete la_read_var_value
3987 field.
3988 (language_defn::read_var_value): New member function.
3989 (default_read_var_value): Delete declaration.
3990 * m2-lang.c (m2_language_data): Delete la_read_var_value
3991 initializer.
3992 * objc-lang.c (objc_language_data): Likewise.
3993 * opencl-lang.c (opencl_language_data): Likewise.
3994 * p-lang.c (pascal_language_data): Likewise.
3995 * rust-lang.c (rust_language_data): Likewise.
3996 * value.h (default_read_var_value): Delete declaration.
3997
3998 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3999
4000 * ada-lang.c (ada_print_array_index): Delete function, move
4001 implementation to...
4002 (ada_language::print_array_index): ...here.
4003 (ada_language_data): Delete la_print_array_index initializer.
4004 * c-lang.c (c_language_data): Likewise.
4005 (cplus_language_data): Likewise.
4006 (minimal_language_data): Likewise.
4007 * d-lang.c (d_language_data): Likewise.
4008 * f-lang.c (f_language_data): Likewise.
4009 * go-lang.c (go_language_data): Likewise.
4010 * language.c (default_print_array_index): Delete function, move
4011 implementation to...
4012 (language_defn::print_array_index): ...here.
4013 (unknown_language_data): Delete la_print_array_index initializer.
4014 (auto_language_data): Likewise.
4015 * language.h (struct language_data): Delete la_print_array_index
4016 field.
4017 (language_defn::print_array_index): New member function.
4018 (LA_PRINT_ARRAY_INDEX): Update.
4019 (default_print_array_index): Delete declaration.
4020 * m2-lang.c (m2_language_data): Delete la_print_array_index
4021 initializer.
4022 * objc-lang.c (objc_language_data): Likewise.
4023 * opencl-lang.c (opencl_language_data): Likewise.
4024 * p-lang.c (pascal_language_data): Likewise.
4025 * rust-lang.c (rust_language_data): Likewise.
4026
4027 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4028
4029 * gdb/ada-lang.c (ada_language_defn): Convert to...
4030 (ada_language_data): ...this.
4031 (class ada_language): New class.
4032 (ada_language_defn): New static global.
4033 * gdb/c-lang.c (c_language_defn): Convert to...
4034 (c_language_data): ...this.
4035 (class c_language): New class.
4036 (c_language_defn): New static global.
4037 (cplus_language_defn): Convert to...
4038 (cplus_language_data): ...this.
4039 (class cplus_language): New class.
4040 (cplus_language_defn): New static global.
4041 (asm_language_defn): Convert to...
4042 (asm_language_data): ...this.
4043 (class asm_language): New class.
4044 (asm_language_defn): New static global.
4045 (minimal_language_defn): Convert to...
4046 (minimal_language_data): ...this.
4047 (class minimal_language): New class.
4048 (minimal_language_defn): New static global.
4049 * gdb/d-lang.c (d_language_defn): Convert to...
4050 (d_language_data): ...this.
4051 (class d_language): New class.
4052 (d_language_defn): New static global.
4053 * gdb/f-lang.c (f_language_defn): Convert to...
4054 (f_language_data): ...this.
4055 (class f_language): New class.
4056 (f_language_defn): New static global.
4057 * gdb/go-lang.c (go_language_defn): Convert to...
4058 (go_language_data): ...this.
4059 (class go_language): New class.
4060 (go_language_defn): New static global.
4061 * gdb/language.c (unknown_language_defn): Remove declaration.
4062 (current_language): Initialize to nullptr, real initialization is
4063 moved to _initialize_language.
4064 (languages): Delete global.
4065 (language_defn::languages): Define.
4066 (set_language_command): Use language_defn::languages.
4067 (set_language): Likewise.
4068 (range_error): Likewise.
4069 (language_enum): Likewise.
4070 (language_def): Likewise.
4071 (add_set_language_command): Use language_def::languages for the
4072 language list, and language_def to lookup language pointers.
4073 (skip_language_trampoline): Use language_defn::languages.
4074 (unknown_language_defn): Convert to...
4075 (unknown_language_data): ...this.
4076 (class unknown_language): New class.
4077 (unknown_language_defn): New static global.
4078 (auto_language_defn): Convert to...
4079 (auto_language_data): ...this.
4080 (class auto_language): New class.
4081 (auto_language_defn): New static global.
4082 (language_gdbarch_post_init): Use language_defn::languages.
4083 (_initialize_language): Initialize current_language.
4084 * gdb/language.h (struct language_defn): Rename to...
4085 (struct language_data): ...this.
4086 (struct language_defn): New.
4087 (auto_language_defn): Delete.
4088 (unknown_language_defn): Delete.
4089 (minimal_language_defn): Delete.
4090 (ada_language_defn): Delete.
4091 (asm_language_defn): Delete.
4092 (c_language_defn): Delete.
4093 (cplus_language_defn): Delete.
4094 (d_language_defn): Delete.
4095 (f_language_defn): Delete.
4096 (go_language_defn): Delete.
4097 (m2_language_defn): Delete.
4098 (objc_language_defn): Delete.
4099 (opencl_language_defn): Delete.
4100 (pascal_language_defn): Delete.
4101 (rust_language_defn): Delete.
4102 * gdb/m2-lang.c (m2_language_defn): Convert to...
4103 (m2_language_data): ...this.
4104 (class m2_language): New class.
4105 (m2_language_defn): New static global.
4106 * gdb/objc-lang.c (objc_language_defn): Convert to...
4107 (objc_language_data): ...this.
4108 (class objc_language): New class.
4109 (objc_language_defn): New static global.
4110 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4111 (opencl_language_data): ...this.
4112 (class opencl_language): New class.
4113 (opencl_language_defn): New static global.
4114 * gdb/p-lang.c (pascal_language_defn): Convert to...
4115 (pascal_language_data): ...this.
4116 (class pascal_language): New class.
4117 (pascal_language_defn): New static global.
4118 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4119 language pointer, update comment format.
4120 * gdb/rust-lang.c (rust_language_defn): Convert to...
4121 (rust_language_data): ...this.
4122 (class rust_language): New class.
4123 (rust_language_defn): New static global.
4124
4125 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4126
4127 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4128 member variable.
4129 <m_stmt_at_address>: New member variable.
4130 (lnp_state_machine::record_line): Don't record some lines, update
4131 tracking of is_stmt at the same address.
4132 (lnp_state_machine::lnp_state_machine): Initialise new member
4133 variables.
4134
4135 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4136
4137 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4138 "-include gnu-nat-mig.h".
4139 * gnu-nat-mig.h: New file.
4140 * gnu-nat.c: Include "gnu-nat-mig.h".
4141 (exc_server, msg_reply_server, notify_server,
4142 process_reply_server): Remove declarations.
4143
4144 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4145
4146 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4147 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4148 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4149 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4150 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4151 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4152 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4153 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4154 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4155 to gnu_nat_target class.
4156 * gnu-nat.c: Likewise.
4157 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4158 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4159 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4160 object.
4161 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4162 instead of `gnu_target'.
4163
4164 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4165
4166 * i386-gnu-tdep.c: Include "gdbcore.h"
4167 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4168 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4169 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4170 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4171 i386_gnu_sigcontext_addr): New functions
4172 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4173 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4174 tdep.
4175
4176 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4177
4178 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4179 before fork_inferior call. Avoid calling it if target_is_pushed returns
4180 true.
4181
4182 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4183
4184 * gnu-nat.h (gnu_target): New variable declaration.
4185 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4186 gnu_target.
4187 * gnu-nat.c (gnu_target): New variable.
4188 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4189 add_thread_silent, and add_thread calls.
4190 (gnu_nat_target::create_inferior): Pass gnu_target to
4191 add_thread_silent, thread_change_ptid call.
4192 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4193 call.
4194
4195 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4196
4197 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4198 (gnu_nat_target::find_memory_regions): Remove unused
4199 `old_address' variable.
4200
4201 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4202
4203 * gnu-nat.c: Include "gdbarch.h".
4204
4205 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4206
4207 * reply_mig_hack.awk (Error return): Cast function through
4208 void *, to bypass compiler function call check.
4209
4210 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4211
4212 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4213 $(srcdir)/reply_mig_hack.awk.
4214
4215 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4216
4217 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4218
4219 2020-05-30 Jonny Grant <jg@jguk.org>
4220
4221 * configure.ac (ACX_BUGURL): change bug URL to https.
4222
4223 2020-05-30 Pedro Alves <palves@redhat.com>
4224
4225 * cp-support.c (replace_typedefs_template): New.
4226 (replace_typedefs_qualified_name): Handle
4227 DEMANGLE_COMPONENT_TEMPLATE.
4228
4229 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4232 dwarf2/index-cache.h, dwarf2/index-write.c,
4233 dwarf2/index-write.h, dwarf2/line-header.c,
4234 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4235 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4236 variables and fields from `dwarf2_per_objfile` to just
4237 `per_objfile` throughout.
4238
4239 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4240
4241 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4242 <push_dwarf_reg_entry_value>: Add comment.
4243
4244 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4245 Keith Seitz <keiths@redhat.com>
4246
4247 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4248 instead of PyEval_ReleaseLock.
4249 (class gdbpy_gil): Move to earlier in file.
4250 (finalize_python): Set gdb_python_initialized.
4251 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4252 when not initialized.
4253
4254 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4255
4256 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4257 <push_dwarf_reg_entry_value>: Remove assert. Override
4258 per_objfile with caller_per_objfile.
4259
4260 2020-05-28 Tom de Vries <tdevries@suse.de>
4261
4262 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4263 PR gold/15646 workaround to symbol kind "type".
4264
4265 2020-05-27 Tom Tromey <tromey@adacore.com>
4266
4267 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4268
4269 2020-05-27 Tom Tromey <tromey@adacore.com>
4270
4271 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4272 Use htab_find_with_hash.
4273 <add_abbrev>: Remove "abbrev_number" parameter.
4274 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4275 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4276 (hash_abbrev): Add comment.
4277 (abbrev_table::lookup_abbrev): Move to header file.
4278 (abbrev_table::read): Update.
4279
4280 2020-05-27 Tom Tromey <tromey@adacore.com>
4281
4282 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4283 method.
4284 <canonical_name>: New member.
4285 <raw_name>: Rename from "name".
4286 (partial_die_info): Initialize canonical_name.
4287 (scan_partial_symbols): Check raw_name.
4288 (partial_die_parent_scope, partial_die_full_name)
4289 (add_partial_symbol, add_partial_subprogram)
4290 (add_partial_enumeration, load_partial_dies): Use "name" method.
4291 (partial_die_info::name): New method.
4292 (partial_die_info::read, guess_partial_die_structure_name)
4293 (partial_die_info::fixup): Update.
4294
4295 2020-05-27 Tom Tromey <tromey@adacore.com>
4296
4297 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4298 <get_ref_die_offset>: Inline.
4299 <get_ref_die_offset_complaint>: New method.
4300 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4301 (attribute::get_ref_die_offset_complaint): Rename from
4302 get_ref_die_offset. Just issue complaint.
4303
4304 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4305
4306 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4307
4308 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4309
4310 * exec.c (exec_file_attach): Use errno value of first openp failure.
4311
4312 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4313
4314 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4315 Don't close thread handle.
4316
4317 2020-05-27 Tom Tromey <tom@tromey.com>
4318 Simon Marchi <simon.marchi@efficios.com>
4319
4320 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4321 shared_ptr.
4322 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4323 member.
4324 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4325 dwarf2_per_bfd_objfile_data_key>: New globals.
4326 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4327 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4328 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4329 shared.
4330 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4331 short-circuit when sharing.
4332 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4333 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4334
4335 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4336
4337 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4338 to...
4339 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4340 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4341
4342 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4343
4344 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4345 build_name_components, find_name_components_bounds>:
4346 Add per_objfile parameter.
4347 (struct mapped_index) <symbol_name_at>: Likewise.
4348 (struct mapped_debug_names): Remove constructor.
4349 <dwarf2_per_objfile>: Remove field.
4350 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4351 (mapped_index_base::find_name_components_bounds,
4352 mapped_index_base::build_name_components,
4353 dw2_expand_symtabs_matching_symbol): Likewise.
4354 (class mock_mapped_index) <symbol_name_at>: Likewise.
4355 (check_match): Likewise.
4356 (check_find_bounds_finds): Likewise.
4357 (test_mapped_index_find_name_component_bounds): Update.
4358 (CHECK_MATCH): Update.
4359 (dw2_expand_symtabs_matching): Update.
4360 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4361 per_objfile parameter.
4362 <find_vec_in_debug_names>: Likewise.
4363 <m_per_objfile>: New field.
4364 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4365 parameter.
4366 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4367 (dw2_debug_names_iterator::next): Update.
4368 (dw2_debug_names_lookup_symbol): Update.
4369 (dw2_debug_names_expand_symtabs_for_function): Update.
4370 (dw2_debug_names_map_matching_symbols): Update.
4371 (dw2_debug_names_expand_symtabs_matching): Update.
4372 (dwarf2_read_debug_names): Update.
4373
4374 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4375
4376 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4377 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4378 move to dwarf2_per_objfile.
4379 <read_in_chain>: Remove.
4380 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4381 remove_all_cus, age_comp_units>: New methods.
4382 <m_dwarf2_cus>: New member.
4383 (struct dwarf2_per_cu_data) <cu>: Remove.
4384 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4385 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4386 moved to methods of dwarf2_per_objfile.
4387 (dwarf2_clear_marks): Remove.
4388 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4389 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4390 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4391 (dwarf2_per_objfile::remove_all_cus): New.
4392 (class free_cached_comp_units) <~free_cached_comp_units>:
4393 Update.
4394 (load_cu): Update.
4395 (dw2_do_instantiate_symtab): Adjust.
4396 (fill_in_sig_entry_from_dwo_entry): Adjust.
4397 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4398 (cutu_reader::cutu_reader): Likewise.
4399 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4400 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4401 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4402 and dwarf2_per_objfile::age_comp_units.
4403 (load_partial_comp_unit): Update.
4404 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4405 (process_queue): Likewise.
4406 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4407 backlink.
4408 (dwarf2_read_addr_index): Likewise.
4409 (follow_die_offset): Likewise.
4410 (dwarf2_fetch_die_loc_sect_off): Likewise.
4411 (dwarf2_fetch_constant_bytes): Likewise.
4412 (dwarf2_fetch_die_type_sect_off): Likewise.
4413 (follow_die_sig_1): Likewise.
4414 (load_full_type_unit): Likewise.
4415 (read_signatured_type): Likewise.
4416 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4417 (dwarf2_cu::~dwarf2_cu): Remove.
4418 (dwarf2_per_objfile::get_cu): New.
4419 (dwarf2_per_objfile::set_cu): New.
4420 (age_cached_comp_units): Rename to...
4421 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4422 to std::unordered_map.
4423 (free_one_cached_comp_unit): Rename to...
4424 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4425 to std::unordered_map.
4426 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4427 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4428 a dwarf2_per_objfile in data.
4429 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4430 (dwarf2_clear_marks): Remove.
4431
4432 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4433
4434 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4435 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4436 (init_tu_and_read_dwo_dies): Likewise.
4437 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4438 (cutu_reader::cutu_reader): Likewise.
4439 (load_partial_comp_unit): Likewise.
4440 (process_psymtab_comp_unit): Update.
4441 (build_type_psymtabs_1): Update.
4442 (process_skeletonless_type_unit): Update.
4443 (load_full_comp_unit): Update.
4444 (find_partial_die): Update.
4445 (dwarf2_read_addr_index): Update.
4446 (read_signatured_type): Update.
4447
4448 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4449
4450 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4451 m_header_read_in>: New fields.
4452 <get_header>: New method.
4453 * dwarf2/read.c (per_cu_header_read_in): Remove.
4454 (dwarf2_per_cu_data::get_header): New.
4455 (dwarf2_per_cu_data::addr_size): Update.
4456 (dwarf2_per_cu_data::offset_size): Update.
4457 (dwarf2_per_cu_data::ref_addr_size): Update.
4458
4459 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4460
4461 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4462 (dw2_do_instantiate_symtab): Update.
4463 (queue_and_load_all_dwo_tus): Change parameter from
4464 dwarf2_per_cu_data to dwarf2_cu.
4465 (dwarf2_fetch_die_loc_sect_off): Update.
4466 (dwarf2_fetch_constant_bytes): Update.
4467 (dwarf2_fetch_die_type_sect_off): Update.
4468
4469 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4470
4471 * dwarf2/read.c (process_full_comp_unit,
4472 process_full_type_unit): Remove per_cu, per_objfile paramters.
4473 Add dwarf2_cu parameter.
4474 (process_queue): Update.
4475
4476 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4477
4478 * dwarf2/read.c (create_cu_from_index_list): Replace
4479 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4480 (create_cus_from_index_list): Likewise.
4481 (create_cus_from_index): Likewise.
4482 (create_signatured_type_table_from_index): Likewise.
4483 (create_cus_from_debug_names_list): Likewise.
4484 (create_cus_from_debug_names): Likewise.
4485 (dwarf2_read_gdb_index): Update.
4486 (dwarf2_read_debug_names): Update.
4487
4488 2020-05-27 Tom Tromey <tom@tromey.com>
4489 Simon Marchi <simon.marchi@efficios.com>
4490
4491 * dwarf2/read.h (struct dwarf2_per_objfile)
4492 <get_type_for_signatured_type, set_type_for_signatured_type>:
4493 New methods.
4494 <m_type_map>: New member.
4495 (struct signatured_type) <type>: Remove.
4496 * dwarf2/read.c
4497 (dwarf2_per_objfile::get_type_for_signatured_type,
4498 dwarf2_per_objfile::set_type_for_signatured_type): New.
4499 (get_signatured_type): Use new methods.
4500
4501 2020-05-27 Tom Tromey <tom@tromey.com>
4502 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4505 (struct dwarf2_per_objfile) <type_units>: New member.
4506 <get_type_unit_group_unshareable>: New method.
4507 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4508 num_symtabs, symtabs>: Remove; move to
4509 type_unit_group_unshareable.
4510 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4511 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4512 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4513
4514 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4515
4516 * dwarf2/read.h (struct dwarf2_per_cu_data):
4517 <dwarf2_per_objfile>: Remove.
4518 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4519 dwarf2_per_objfile.
4520 (create_signatured_type_table_from_index): Likewise.
4521 (create_signatured_type_table_from_debug_names): Likewise.
4522 (create_debug_type_hash_table): Likewise.
4523 (fill_in_sig_entry_from_dwo_entry): Likewise.
4524 (create_type_unit_group): Likewise.
4525 (read_comp_units_from_section): Likewise.
4526 (create_cus_hash_table): Likewise.
4527
4528 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4531 dwarf2_per_cu_data::dwarf2_per_objfile.
4532 (compute_compunit_symtab_includes): Likewise.
4533 (dwarf2_cu::start_symtab): Likewise.
4534
4535 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4536
4537 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4538 parameter.
4539 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4540 (read_namespace_alias): Update.
4541 (lookup_die_type): Update.
4542 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4543 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4544 Update.
4545 (disassemble_dwarf_expression): Update.
4546
4547 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4548
4549 * dwarf2/read.h (struct dwarf2_queue_item): Add
4550 dwarf2_per_objfile parameter, assign new parameter.
4551 <per_objfile>: New field.
4552 * dwarf2/read.c (free_one_cached_comp_unit): Add
4553 dwarf2_per_objfile parameter.
4554 (queue_comp_unit): Likewise.
4555 (dw2_do_instantiate_symtab): Update.
4556 (process_psymtab_comp_unit): Update.
4557 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4558 (process_imported_unit_die): Update.
4559 (queue_and_load_dwo_tu): Update.
4560 (follow_die_offset): Update.
4561 (follow_die_sig_1): Update.
4562
4563 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4566 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4567 (read_call_site_scope): Assign per_objfile.
4568 (dwarf2_per_cu_data::objfile): Remove.
4569 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4570 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4571 dwarf2_per_objfile parameter.
4572 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4573 dwarf2_per_objfile parameter.
4574 (dwarf_expr_reg_to_entry_parameter): Add output
4575 dwarf2_per_objfile parameter.
4576 (locexpr_get_frame_base): Update.
4577 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4578 <push_dwarf_reg_entry_value>: Update.
4579 <call_site_to_target_addr>: Update.
4580 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4581 parameter.
4582 (value_of_dwarf_reg_entry): Update.
4583 (rw_pieced_value): Update.
4584 (indirect_synthetic_pointer): Update.
4585 (dwarf2_evaluate_property): Update.
4586 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4587 parameter.
4588 (locexpr_read_variable): Update.
4589 (locexpr_get_symbol_read_needs): Update.
4590 (loclist_read_variable): Update.
4591
4592 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4595 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4596 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4597 parameter.
4598 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4599 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4600 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4601 parameter.
4602 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4603 sect_variable_value): Add dwarf2_per_objfile parameter.
4604 (class dwarf_evaluate_loc_desc) <dwarf_call,
4605 dwarf_variable_value>: Update.
4606 (fetch_const_value_from_synthetic_pointer): Add
4607 dwarf2_per_objfile parameter.
4608 (fetch_const_value_from_synthetic_pointer): Update.
4609 (coerced_pieced_ref): Update.
4610 (class symbol_needs_eval_context) <dwarf_call,
4611 dwarf_variable_value>: Update.
4612 (dwarf2_compile_expr_to_ax): Update.
4613
4614 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4617 parameter.
4618 (dwarf2_evaluate_loc_desc_full): Update.
4619
4620 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4623 parameter.
4624 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4625 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4626 dwarf2_per_objfile parameter.
4627 (decode_debug_loc_dwo_addresses): Likewise.
4628 (dwarf2_find_location_expression): Update.
4629 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4630 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4631 parameter.
4632 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4633 parameter.
4634 (locexpr_describe_location_1): Likewise.
4635 (locexpr_describe_location): Update.
4636
4637 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4640 Remove.
4641 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4642 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4643 (dwarf2_compile_property_to_c): Update.
4644 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4645 use text offset from objfile.
4646 (locexpr_tracepoint_var_ref): Update.
4647 (locexpr_generate_c_location): Update.
4648 (loclist_describe_location): Update.
4649 (loclist_tracepoint_var_ref): Update.
4650 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4651 dwarf2_per_objfile parameter.
4652 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4653 use text offset from objfile.
4654 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4655
4656 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4657
4658 * dwarf2/expr.h (struct dwarf_expr_context)
4659 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4660 <offset>: Remove.
4661 <per_objfile>: New member.
4662 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4663 dwarf2_per_objfile parameter. Don't set offset, set
4664 per_objfile.
4665 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4666 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4667 a dwarf2_per_objfile object instead of an offset.
4668 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4669 constructor.
4670 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4671 to dwarf2_expr_executor constructor. Don't set offset.
4672 (dwarf2_fetch_cfa_info): Update.
4673 (struct dwarf2_frame_cache) <text_offset>: Remove.
4674 <per_objfile>: New field.
4675 (dwarf2_frame_cache): Update.
4676 (dwarf2_frame_prev_register): Update.
4677 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4678 <dwarf_evaluate_loc_desc>: Add constructor.
4679 (dwarf2_evaluate_loc_desc_full): Update.
4680 (dwarf2_locexpr_baton_eval): Update.
4681 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4682 Add constructor.
4683 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4684
4685 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4686
4687 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4688 addr_sized_int_type>: Move to dwarf2_cu.
4689 <int_type>: Move to dwarf2_per_objfile.
4690 (struct dwarf2_per_objfile) <int_type>: Move here.
4691 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4692 addr_sized_int_type>: Move here.
4693 (read_func_scope): Update.
4694 (read_array_type): Update.
4695 (read_tag_string_type): Update.
4696 (attr_to_dynamic_prop): Update.
4697 (dwarf2_per_cu_data::int_type): Rename to...
4698 (dwarf2_per_objfile::int_type): ... this.
4699 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4700 (dwarf2_cu::addr_sized_int_type): ... this.
4701 (read_subrange_type): Update.
4702 (dwarf2_per_cu_data::addr_type): Rename to...
4703 (dwarf2_cu::addr_type): ... this.
4704 (set_die_type): Update.
4705
4706 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4707
4708 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4709 data through per_cu->cu.
4710
4711 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4712
4713 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4714 dwarf2_per_cu_data parameter fo dwarf2_cu.
4715 (lookup_dwo_type_unit): Likewise.
4716 (read_cutu_die_from_dwo): Likewise.
4717 (lookup_dwo_unit): Likewise.
4718 (open_and_init_dwo_file): Likewise.
4719 (lookup_dwo_cutu): Likewise.
4720 (lookup_dwo_comp_unit): Likewise.
4721 (lookup_dwo_type_unit): Likewise.
4722 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4723 (cutu_reader::cutu_reader): Update.
4724
4725 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4728 parameter.
4729 (process_full_type_unit): Likewise.
4730 (process_queue): Update.
4731
4732 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4733
4734 * dwarf2/read.c (recursively_compute_inclusions): Add
4735 dwarf2_per_objfile parameter.
4736 (compute_compunit_symtab_includes): Likewise.
4737 (process_cu_includes): Update.
4738
4739 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4742 parameter.
4743 (create_type_unit_group): Update.
4744 (process_psymtab_comp_unit_reader): Update.
4745 (build_type_psymtabs_reader): Update.
4746
4747 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4750 object through m_this_cu->cu.
4751
4752 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4753
4754 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4755 the info parameter.
4756 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4757
4758 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4759
4760 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4761 per_objfile parameter.
4762 (load_full_type_unit): Add per_objfile parameter.
4763 (read_signatured_type): Likewise.
4764 (load_full_comp_unit): Likewise.
4765 (load_cu): Likewise.
4766 (dw2_do_instantiate_symtab): Likewise.
4767 (dw2_get_file_names): Likewise.
4768 (dw2_map_symtabs_matching_filename): Update.
4769 (dw_expand_symtabs_matching_file_matcher): Update.
4770 (dw2_map_symbol_filenames): Update.
4771 (process_psymtab_comp_unit): Add per_objfile parameter.
4772 (build_type_psymtabs_1): Update.
4773 (process_skeletonless_type_unit): Update.
4774 (dwarf2_build_psymtabs_hard): Update.
4775 (load_partial_comp_unit): Add per_objfile parameter.
4776 (scan_partial_symbols): Update.
4777 (load_full_comp_unit): Add per_objfile parameter.
4778 (process_imported_unit_die): Update.
4779 (create_cus_hash_table): Update.
4780 (find_partial_die): Update.
4781 (dwarf2_read_addr_index): Update.
4782 (follow_die_offset): Update.
4783 (dwarf2_fetch_die_loc_sect_off): Update.
4784 (dwarf2_fetch_constant_bytes): Update.
4785 (dwarf2_fetch_die_type_sect_off): Update.
4786 (follow_die_sig_1): Update.
4787 (load_full_type_unit): Add per_objfile parameter.
4788 (read_signatured_type): Likewise.
4789
4790 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4791
4792 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4793 of objfile_name.
4794
4795 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4796
4797 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4798 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4799 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4800 field.
4801 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4802 (create_cus_from_index): Update.
4803 (dwarf2_read_gdb_index): Update.
4804 (create_cus_from_debug_names): Update.
4805 (dwarf2_read_debug_names): Update.
4806 (get_abbrev_section_for_cu): Update.
4807 (create_all_comp_units): Update.
4808 (read_attribute_value): Update.
4809 (get_debug_line_section): Update.
4810 * dwarf2/index-cache.c (index_cache::store): Update.
4811 * dwarf2/index-write.c (save_gdb_index_command): Update.
4812 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4813
4814 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4815
4816 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4817 member.
4818 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4819 dwarf2_per_cu_data::per_bfd.
4820 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4821 (create_type_unit_group): Likewise.
4822 (queue_comp_unit): Remove reference to
4823 per_cu->dwarf2_per_objfile.
4824 (maybe_queue_comp_unit): Likewise.
4825 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4826 (create_cus_hash_table): Assign new field.
4827
4828 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4829
4830 * dwarf2/read.c: Replace
4831 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4832 dwarf2_cu->per_objfile throughout.
4833
4834 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4835
4836 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4837 parameter, don't use per_cu->dwarf2_per_objfile.
4838 (dw2_instantiate_symtab): Likewise.
4839 (dw2_find_last_source_symtab): Update.
4840 (dw2_map_expand_apply): Update.
4841 (dw2_lookup_symbol): Update.
4842 (dw2_expand_symtabs_for_function): Update.
4843 (dw2_expand_all_symtabs): Update.
4844 (dw2_expand_symtabs_with_fullname): Update.
4845 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4846 don't use per_cu->dwarf2_per_objfile.
4847 (dw2_expand_marked_cus): Update.
4848 (dw2_find_pc_sect_compunit_symtab): Update.
4849 (dw2_debug_names_lookup_symbol): Update.
4850 (dw2_debug_names_expand_symtabs_for_function): Update.
4851 (dw2_debug_names_map_matching_symbols): Update.
4852 (dwarf2_psymtab::expand_psymtab): Update.
4853
4854 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4857 <per_objfile>: New member.
4858 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4859 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4860 call to dwarf2_cu.
4861 (cutu_reader::cutu_reader): Update.
4862 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4863
4864 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4865
4866 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4867 struct dwarf2_per_objfile.
4868 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4869 dwarf2_per_bfd.
4870 * dwarf2/read.c (set_die_type): Update.
4871 (get_die_type_at_offset): Update.
4872
4873 2020-05-27 Tom Tromey <tom@tromey.com>
4874 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4877 method.
4878 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4879 get_symtab, set_symtab>: New methods.
4880 <m_symtabs>: New field.
4881 (struct dwarf2_psymtab): Derive from partial_symtab.
4882 <readin_p, get_compunit_symtab>: Declare methods.
4883 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4884 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4885 New methods.
4886 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4887 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4888 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4889 (dw2_symtab_iter_next, dw2_print_stats)
4890 (dw2_expand_symtabs_with_fullname)
4891 (dw2_expand_symtabs_matching_one)
4892 (dw_expand_symtabs_matching_file_matcher)
4893 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4894 (dw2_debug_names_iterator::next)
4895 (dw2_debug_names_map_matching_symbols)
4896 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4897 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4898 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4899 New methods.
4900 (get_compunit_symtab, process_full_comp_unit)
4901 (process_full_type_unit): Update.
4902 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4903
4904 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4905
4906 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4907 then introduce a new dwarf2_per_objfile type.
4908 <read_line_string>: Move to the new dwarf2_per_objfile type.
4909 <objfile>: Likewise.
4910 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4911 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4912 dwarf2_per_objfile->per_bfd.
4913 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4914 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4915 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4916 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4917 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4918 (dwarf2_per_objfile::locate_sections): Rename to...
4919 (dwarf2_per_bfd::locate_sections): ... this.
4920 (dwarf2_per_objfile::get_cutu): Rename to...
4921 (dwarf2_per_bfd::get_cutu): ... this.
4922 (dwarf2_per_objfile::get_cu): Rename to...
4923 (dwarf2_per_bfd::get_cu): ... this.
4924 (dwarf2_per_objfile::get_tu): Rename to...
4925 (dwarf2_per_bfd::get_tu): ... this.
4926 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4927 (dwarf2_per_bfd::allocate_per_cu): ... this.
4928 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4929 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4930 (get_gdb_index_contents_ftype): Change parameter from
4931 dwarf2_per_objfile to dwarf2_per_bfd.
4932 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4933 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4934
4935 2020-05-27 Tom Tromey <tom@tromey.com>
4936 Simon Marchi <simon.marchi@efficios.com>
4937
4938 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4939 (allocate_piece_closure): Set "per_objfile" member.
4940 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4941 (locexpr_describe_location, loclist_describe_location): Use new
4942 member.
4943 * dwarf2/read.c (read_call_site_scope)
4944 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4945 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4946 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4947 handle_data_member_location): Set per_objfile member.
4948 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4949 member.
4950 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4951
4952 2020-05-27 Tom Tromey <tom@tromey.com>
4953
4954 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4955 allocate_signatured_type>: Declare new methods.
4956 <m_num_psymtabs>: New member.
4957 (struct dwarf2_per_cu_data) <index>: New member.
4958 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4959 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4960 (create_cu_from_index_list): Use allocate_per_cu.
4961 (create_signatured_type_table_from_index)
4962 (create_signatured_type_table_from_debug_names)
4963 (create_debug_type_hash_table, add_type_unit)
4964 (read_comp_units_from_section): Use allocate_signatured_type.
4965
4966 2020-05-27 Tom Tromey <tom@tromey.com>
4967
4968 * psymtab.c (partial_map_expand_apply)
4969 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4970 (psym_lookup_global_symbol_language)
4971 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4972 (psym_print_stats, psym_expand_symtabs_for_function)
4973 (psym_map_symbol_filenames, psym_map_matching_symbols)
4974 (psym_expand_symtabs_matching)
4975 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4976 (maintenance_check_psymtabs): Update.
4977 * psympriv.h (struct partial_symtab) <readin_p,
4978 get_compunit_symtab>: Add objfile parameter.
4979 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4980 Likewise.
4981 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4982 get_compunit_symtab>: Likewise.
4983 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4984
4985 2020-05-27 Tom Tromey <tom@tromey.com>
4986
4987 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4988 member.
4989 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4990 (create_cu_from_index_list)
4991 (create_signatured_type_table_from_index)
4992 (create_signatured_type_table_from_debug_names)
4993 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4994 (dwarf2_create_include_psymtab)
4995 (create_debug_type_hash_table, add_type_unit)
4996 (create_type_unit_group, read_comp_units_from_section)
4997 (dwarf2_compute_name, create_cus_hash_table)
4998 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4999 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5000 obstack.
5001 (dw2_get_real_path): Likewise. Change argument to
5002 dwarf2_per_objfile.
5003
5004 2020-05-27 Luis Machado <luis.machado@linaro.org>
5005
5006 PR tdep/26000
5007 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5008 for ldrd (immediate).
5009
5010 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5011
5012 * command.h: Add comment giving the name of class_tui.
5013 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5014 create the fake command for the help for class_tui.
5015
5016 2020-05-26 Tom Tromey <tromey@adacore.com>
5017
5018 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5019 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5020 (val_atr): New function.
5021 (value_val_atr): Use it.
5022 * ada-valprint.c (print_optional_low_bound): Change low bound
5023 handling for enums.
5024 (val_print_packed_array_elements): Don't call discrete_position.
5025 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5026 discrete_position for enum types.
5027 * language.c (default_print_array_index): Change type.
5028 * language.h (struct language_defn) <la_print_array_index>: Add
5029 index_type parameter, change type of index_value.
5030 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5031 (default_print_array_index): Update.
5032 * valprint.c (maybe_print_array_index): Don't call
5033 value_from_longest. Update.
5034 (value_print_array_elements): Don't call discrete_position.
5035
5036 2020-05-26 Tom Tromey <tromey@adacore.com>
5037
5038 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5039 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5040
5041 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5042
5043 PR gdb/13519
5044 * avr-tdep.c (avr_integer_to_address): Return data or code
5045 address accordingly to the second 'type' argument of the
5046 function.
5047
5048 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5049
5050 * infcmd.c, inferior.h: (construct_inferior_arguments):
5051 Moved function from here to gdbsupport/common-inferior.{h,cc}
5052
5053 2020-05-23 Tom Tromey <tom@tromey.com>
5054
5055 Revert commit eca1f90c:
5056 * NEWS: Remove entry for completion styling.
5057 * completer.c (_rl_completion_prefix_display_length): Move
5058 declaration later.
5059 (gdb_fnprint): Revert.
5060 (gdb_display_match_list_1): Likewise.
5061 * cli/cli-style.c (completion_prefix_style)
5062 (completion_difference_style, completion_suffix_style): Remove.
5063 (_initialize_cli_style): Revert.
5064 * cli/cli-style.h (completion_prefix_style)
5065 (completion_difference_style, completion_suffix_style): Don't
5066 declare.
5067
5068 2020-05-24 Pedro Alves <palves@redhat.com>
5069
5070 * symtab.c (completion_list_add_name): Return boolean indication
5071 of whether the symbol matched.
5072 (completion_list_add_symbol): Don't try to remove C++ aliases if
5073 the symbol didn't match in the first place.
5074 * symtab.h (completion_list_add_name): Return bool.
5075
5076 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5077
5078 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5079 type::field.
5080
5081 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5082
5083 GDB 9.2 released.
5084
5085 2020-05-23 Tom Tromey <tom@tromey.com>
5086
5087 * NEWS: Add entry for completion styling.
5088 * completer.c (_rl_completion_prefix_display_length): Move
5089 declaration earlier.
5090 (gdb_fnprint): Use completion_style.
5091 (gdb_display_match_list_1): Likewise.
5092 * cli/cli-style.c (completion_prefix_style)
5093 (completion_difference_style, completion_suffix_style): New
5094 globals.
5095 (_initialize_cli_style): Register new globals.
5096 * cli/cli-style.h (completion_prefix_style)
5097 (completion_difference_style, completion_suffix_style): Declare.
5098
5099 2020-05-23 Pedro Alves <palves@redhat.com>
5100
5101 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5102 (parse_escape): Use ISDIGIT instead of isdigit.
5103 (puts_debug): Use gdb_isprint instead of isprint.
5104 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5105 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5106 ISSPACE instead of isspace.
5107 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5108 instead of isspace.
5109 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5110 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5111 instead of isxdigit and ISDIGIT instead of isdigit.
5112
5113 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5114
5115 * gdbtypes.h (struct type) <field>: New method.
5116 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5117 or type::field.
5118
5119 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5120
5121 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5122 (TYPE_FIELDS): Use type::fields. Change all call sites that
5123 modify the propery to use type::set_fields instead.
5124
5125 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5126
5127 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5128 type::num_fields instead.
5129
5130 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5131
5132 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5133 methods.
5134 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5135 that modify the number of fields to use type::set_num_fields
5136 instead.
5137
5138 2020-05-22 Tom Tromey <tromey@adacore.com>
5139
5140 * compile/compile-object-load.h (munmap_list_free): Don't
5141 declare.
5142
5143 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5144
5145 * annotate.c (annotate_source_line): Update return type, add call
5146 to update current symtab and line.
5147 * annotate.h (annotate_source_line): Update return type, and
5148 extend header comment.
5149 * source.c (info_line_command): Check annotation_level before
5150 calling annotate_source_line.
5151 * stack.c (print_frame_info): If calling annotate_source_line
5152 returns true, then don't print any other source line information.
5153
5154 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5155
5156 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5157
5158 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5159
5160 * coffread.c (patch_type): Remove NULL check before xfree.
5161 * corefile.c (set_gnutarget): Likewise.
5162 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5163 * exec.c (build_section_table): Likewise.
5164 * remote.c (remote_target::pass_signals): Likewise.
5165 * utils.c (n_spaces): Likewise.
5166 * cli/cli-script.c (document_command): Likewise.
5167 * i386-windows-tdep.c (core_process_module_section): Likewise.
5168 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5169
5170 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5171
5172 * symfile.c (reread_symbols): Clear objfile's section_offsets
5173 vector and section indices, re-compute them by calling
5174 sym_offsets.
5175
5176 2020-05-20 Tom Tromey <tromey@adacore.com>
5177
5178 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5179 (desc_one_bound, desc_index_type): Compute field name.
5180
5181 2020-05-20 Tom de Vries <tdevries@suse.de>
5182
5183 PR symtab/25833
5184 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5185
5186 2020-05-20 Alan Modra <amodra@gmail.com>
5187
5188 PR 25993
5189 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5190 bfd_set_filename.
5191 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5192 passed to bfd_set_filename.
5193 * symfile-mem.c (add_vsyscall_page): Likewise for string
5194 passed to symbol_file_add_from_memory.
5195 (symbol_file_add_from_memory): Make name param a const char* and
5196 don't strdup.
5197
5198 2020-05-20 Alan Modra <amodra@gmail.com>
5199
5200 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5201 rather than accessing bfd->filename directly.
5202 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5203 and use bfd_section_name.
5204 * dwarf2/frame.c (decode_frame_entry): Likewise.
5205 * exec.c (exec_set_section_address): Likewise.
5206 * solib-aix.c (solib_aix_bfd_open): Likewise.
5207 * stap-probe.c (get_stap_base_address): Likewise.
5208 * symfile.c (reread_symbols): Likewise.
5209
5210 2020-05-19 Tom Tromey <tromey@adacore.com>
5211
5212 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5213
5214 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5215
5216 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5217
5218 2020-05-19 Pedro Alves <palves@redhat.com>
5219
5220 * NEWS (set exec-file-mismatch): Adjust entry.
5221 * exec.c: Include "build-id.h".
5222 (validate_exec_file): Try to match build IDs instead of filenames.
5223 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5224 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5225 and pass down 'warn_if_slow'.
5226 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5227 gdb_bfd_open_closure to pass it down.
5228 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5229
5230 2020-05-19 Pedro Alves <palves@redhat.com>
5231
5232 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5233 * target.c (target_fileio_open_1): Rename to target_fileio_open
5234 and make extern. Use bool.
5235 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5236 (target_fileio_read_alloc_1): Adjust.
5237 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5238 (target_fileio_open_warn_if_slow): Delete declaration.
5239
5240 2020-05-19 Pedro Alves <palves@redhat.com>
5241
5242 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5243 Adjust all callers.
5244
5245 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5246
5247 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5248 whether disp is negative.
5249
5250 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5251
5252 * symfile.h (struct symfile_segment_data)
5253 <~symfile_segment_data>: Remove.
5254 <segment_info>: Change to std::vector.
5255 * symfile.c (default_symfile_segments): Update.
5256 * elfread.c (elf_symfile_segments): Update.
5257
5258 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5259
5260 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5261 <segments>: New.
5262 <segment_bases, segment_sizes>: Remove.
5263 * symfile.c (default_symfile_segments): Update.
5264 * elfread.c (elf_symfile_segments): Update.
5265 * remote.c (remote_target::get_offsets): Update.
5266 * solib-target.c (solib_target_relocate_section_addresses):
5267 Update.
5268
5269 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5270
5271 * symfile.h (struct symfile_segment_data): Initialize fields.
5272 <~symfile_segment_data>: Add.
5273 (symfile_segment_data_up): New.
5274 (struct sym_fns) <sym_segments>: Return a
5275 symfile_segment_data_up.
5276 (default_symfile_segments): Return a symfile_segment_data_up.
5277 (free_symfile_segment_data): Remove.
5278 (get_symfile_segment_data): Return a symfile_segment_data_up.
5279 * symfile.c (default_symfile_segments): Likewise.
5280 (get_symfile_segment_data): Likewise.
5281 (free_symfile_segment_data): Remove.
5282 (symfile_find_segment_sections): Update.
5283 * elfread.c (elf_symfile_segments): Return a
5284 symfile_segment_data_up.
5285 * remote.c (remote_target::get_offsets): Update.
5286 * solib-target.c (solib_target_relocate_section_addresses):
5287 Update.
5288 * symfile-debug.c (debug_sym_segments): Return a
5289 symfile_segment_data_up.
5290
5291 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5292
5293 PR build/25981
5294 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5295 Hardcode register numbers.
5296
5297 PR build/25981
5298 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5299 procfs_find_LDT_entry): Remove.
5300 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5301 procfs_find_LDT_entry): Remove.
5302 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5303 Remove.
5304
5305 2020-05-17 Pedro Alves <palves@redhat.com>
5306 Andrew Burgess <andrew.burgess@embecosm.com>
5307 Keno Fischer <keno@juliacomputing.com>
5308
5309 PR gdb/25741
5310 * breakpoint.c (build_target_condition_list): Update comments.
5311 (build_target_command_list): Update comments and skip matching
5312 locations.
5313 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5314 a separate function. Simplify "set breakpoint auto-hw off"
5315 handling.
5316 (insert_breakpoints): Update comment.
5317 (tracepoint_locations_match): New parameter. For breakpoints,
5318 compare location types too, if the caller wants to.
5319 (handle_automatic_hardware_breakpoints): New functions.
5320 (bp_location_is_less_than): Also sort by location type and
5321 hardware breakpoint length.
5322 (update_global_location_list): Handle "set breakpoint auto-hw on"
5323 here.
5324 (update_breakpoint_locations): Ask breakpoint_locations_match to
5325 ignore location types.
5326
5327 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5328
5329 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5330 type::name instead.
5331
5332 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5333
5334 * gdbtypes.h (struct type) <name, set_name>: New methods.
5335 (TYPE_CODE): Use type::name. Change all call sites used to set
5336 the name to use type::set_name instead.
5337
5338 2020-05-16 Tom Tromey <tom@tromey.com>
5339
5340 * top.c (quit_force): Update.
5341 * infrun.c (handle_no_resumed): Update.
5342 * top.h (all_uis): New function.
5343 (ALL_UIS): Remove.
5344
5345 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5346
5347 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5348
5349 2020-05-16 Pedro Alves <palves@redhat.com>
5350
5351 * ia64-linux-nat.c
5352 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5353 Declare method.
5354 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5355
5356 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5357
5358 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5359 (sparc64_adi_info): Likewise.
5360
5361 2020-05-15 Tom Tromey <tom@tromey.com>
5362
5363 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5364 block_objfile.
5365 (lookup_objfile_from_block): Remove.
5366 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5367 (lookup_global_symbol): Use block_objfile.
5368 * symtab.h (lookup_objfile_from_block): Don't declare.
5369 * printcmd.c (clear_dangling_display_expressions): Use
5370 block_objfile.
5371 * parse.c (operator_check_standard): Use block_objfile.
5372
5373 2020-05-15 Tom Tromey <tom@tromey.com>
5374
5375 * language.c (language_alloc_type_symbol): Set
5376 SYMBOL_SECTION.
5377 * symtab.c (initialize_objfile_symbol): Remove.
5378 (allocate_symbol): Remove.
5379 (allocate_template_symbol): Remove.
5380 * dwarf2/read.c (fixup_go_packaging): Use "new".
5381 (new_symbol): Use "new".
5382 (read_variable): Don't call initialize_objfile_symbol. Use
5383 "new".
5384 (read_func_scope): Use "new".
5385 * xcoffread.c (process_xcoff_symbol): Don't call
5386 initialize_objfile_symbol.
5387 (SYMBOL_DUP): Remove.
5388 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5389 "new".
5390 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5391 (allocate_template_symbol): Don't declare.
5392 (struct symbol): Add copy constructor. Change defaults.
5393 * jit.c (finalize_symtab): Use "new".
5394 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5395 Use "new".
5396 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5397 (common_block_end): Use "new".
5398 * mdebugread.c (parse_symbol): Use "new".
5399 (new_symbol): Likewise.
5400
5401 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5402
5403 * NEWS: Mention changes to help and apropos.
5404
5405 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5406
5407 * command.h (enum command_class): Improve comments, document
5408 that class_alias is for user-defined aliases, give the class
5409 name for each class, remove unused class_xdb.
5410 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5411 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5412 by a precise class.
5413 * infcmd.c (_initialize_infcmd): Likewise.
5414 * reverse.c (_initialize_reverse): Likewise.
5415 * stack.c (_initialize_stack): Likewise.
5416 * symfile.c (_initialize_symfile): Likewise.
5417 * tracepoint.c (_initialize_tracepoint): Likewise.
5418
5419 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5420
5421 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5422 when their aliased command is traversed.
5423 (help_cmd): Add fput_command_names_styled call to
5424 output command name and aliases when command has an alias.
5425
5426 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5427
5428 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5429 * cli/cli-decode.c (help_cmd_list): Declare as static,
5430 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5431 a command together with the command.
5432 (fput_command_name_styled, fput_command_names_styled): New functions.
5433 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5434 fput_command_name_styled.
5435 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5436 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5437
5438 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5439
5440 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5441 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5442 * command.h (cmd_show_list): Likewise.
5443 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5444 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5445
5446 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5447
5448 * unittests/command-def-selftests.c (traverse_command_structure):
5449 Verify all commands of a list have the same prefix command and
5450 that only the top cmdlist commands have a null prefix.
5451
5452 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5453
5454 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5455 as prefix, not one of its aliases.
5456 (set_cmd_prefix): Remove.
5457 (do_add_cmd): Centralize the setting of the prefix of a command, when
5458 command is defined after its full chain of prefix commands.
5459 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5460 (add_setshow_cmd_full): Likewise.
5461 (update_prefix_field_of_prefixed_commands): New function.
5462 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5463 update_prefix_field_of_prefixed_commands.
5464 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5465 addresses of remote_set_cmdlist and remote_show_cmdlist given
5466 as argument, not the address of an argument.
5467 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5468 * gdb/remote.c (_initialize_remote): Likewise.
5469
5470 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5471
5472 * cli/cli-cmds.c (alias_command): Check for an existing alias
5473 using lookup_cmd_composition, as valid_command_p is too strict
5474 and forbids aliases that are the prefix of an existing alias
5475 or command.
5476 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5477 command is properly recognised as a valid command.
5478
5479 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5480
5481 * unittests/help-doc-selftests.c: Rename to
5482 unittests/command-def-selftests.c
5483 * unittests/command-def-selftests.c (help_doc_tests): Update some
5484 comments.
5485 (command_structure_tests, traverse_command_structure): New namespace
5486 and function.
5487 (command_structure_invariants_tests): New function.
5488 (_initialize_command_def_selftests) Renamed from
5489 _initialize_help_doc_selftests, register command_structure_invariants
5490 selftest.
5491
5492 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5493
5494 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5495 an alias of 'show'.
5496
5497 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5498
5499 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5500 ada_is_fixed_point_type. Update all callers.
5501 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5502 all callers.
5503 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5504 Update all callers.
5505 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5506 print_fixed_point_type. Update all callers.
5507 * ada-valprint.c (ada_value_print_num): Replace call to
5508 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5509
5510 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5511
5512 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5513 processors.
5514 (cpu_supports_bts): Add CV_AMD case.
5515
5516 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5517 Simon Marchi <simon.marchi@efficios.com>
5518
5519 * infrun.c (stop_all_threads): Collect multiple wait events at
5520 each pass.
5521
5522 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5525 type::code instead.
5526
5527 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5528
5529 * gdbtypes.h (struct type) <code, set_code>: New methods.
5530 (TYPE_CODE): Use type::code. Change all call sites used to set
5531 the code to use type::set_code instead.
5532
5533 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5534 Tom de Vries <tdevries@suse.de>
5535 Pedro Alves <palves@redhat.com>
5536
5537 PR threads/25478
5538 * infrun.c (stop_all_threads): Do NOT ignore
5539 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5540 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5541 received.
5542 (handle_no_resumed): Remove code handling a live inferior with no
5543 threads.
5544 * remote.c (has_single_non_exited_thread): New.
5545 (remote_target::update_thread_list): Do not delete a thread if is
5546 the last thread of the process.
5547 * thread.c (thread_select): Call delete_exited_threads instead of
5548 prune_threads.
5549
5550 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5551
5552 * infrun.c (stop_all_threads): Enable/disable thread events of all
5553 targets. Move a debug message denoting the end of the function
5554 into the SCOPED_EXIT block.
5555
5556 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5557
5558 * process-stratum-target.h: Include <set>.
5559 (all_non_exited_process_targets, switch_to_target_no_thread): New
5560 function declarations.
5561 * process-stratum-target.c (all_non_exited_process_targets)
5562 (switch_to_target_no_thread): New function implementations.
5563
5564 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5565
5566 * infrun.c (handle_inferior_event): Extract out a piece of code
5567 into...
5568 (mark_non_executing_threads): ...this new function.
5569
5570 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5571
5572 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5573 use.
5574
5575 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5576
5577 * regcache.c (regcache_read_pc_protected): New function
5578 implementation that returns 0 if the PC cannot read via
5579 'regcache_read_pc'.
5580 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5581 instead of 'regcache_read_pc'.
5582 (keep_going_pass_signal): Ditto.
5583
5584 2020-05-13 Tom Tromey <tromey@adacore.com>
5585
5586 * ada-lang.c (align_value): Remove.
5587 (ada_template_to_fixed_record_type_1): Use align_up.
5588
5589 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5590
5591 * async-event.c: Update the copyright year.
5592 * async-event.h: Update the copyright year.
5593
5594 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * objfiles.h (is_addr_in_objfile,
5597 shared_objfile_contains_address_p): Return bool.
5598 * objfile.c (is_addr_in_objfile,
5599 shared_objfile_contains_address_p): Return bool.
5600
5601 2020-05-11 Tom Tromey <tromey@adacore.com>
5602
5603 * cli/cli-cmds.c (info_command): Restore.
5604 (_initialize_cli_cmds): Use add_prefix_command for "info".
5605 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5606
5607 2020-05-11 Tom Tromey <tromey@adacore.com>
5608
5609 * ada-lang.c (ada_value_primitive_field): Now public.
5610 * ada-lang.h (ada_value_primitive_field): Declare.
5611 * ada-valprint.c (print_field_values): Use
5612 ada_value_primitive_field for wrapper fields.
5613
5614 2020-05-11 Tom de Vries <tdevries@suse.de>
5615
5616 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5617 MODULE_DOMAIN.
5618
5619 2020-05-11 Tom de Vries <tdevries@suse.de>
5620
5621 PR symtab/25941
5622 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5623 with length 0, if not gdb-produced.
5624 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5625
5626 2020-05-09 Tom de Vries <tdevries@suse.de>
5627
5628 PR gdb/25955
5629 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5630 calculation.
5631
5632 2020-05-09 Tom Tromey <tom@tromey.com>
5633
5634 * top.c (server_command): Now bool.
5635 * top.h (server_command): Now bool.
5636
5637 2020-05-08 Tom Tromey <tromey@adacore.com>
5638
5639 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5640 already being processed.
5641
5642 2020-05-08 Tom Tromey <tom@tromey.com>
5643
5644 * printcmd.c (struct display) <next>: Remove.
5645 <display>: New constructor.
5646 <exp_string>: Now a std::string.
5647 <enabled_p>: Now a bool.
5648 (display_number): Move definition earlier.
5649 (displays): Rename from display_chain. Now a std::vector.
5650 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5651 (display_command): Update.
5652 (do_one_display, disable_display)
5653 (enable_disable_display_command, do_enable_disable_display):
5654 Update.
5655 (free_display): Remove.
5656 (clear_displays): Rewrite.
5657 (delete_display): Update.
5658 (map_display_numbers): Use function_view. Remove "data"
5659 parameter. Update.
5660 (do_delete_display): Remove.
5661 (undisplay_command): Update.
5662 (do_one_display, do_displays, disable_display)
5663 (info_display_command): Update.
5664 (do_enable_disable_display): Remove.
5665 (enable_disable_display_command)
5666 (clear_dangling_display_expressions): Update.
5667
5668 2020-05-08 Tom Tromey <tom@tromey.com>
5669
5670 * symtab.c (set_symbol_cache_size)
5671 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5672 (maintenance_print_symbol_cache_statistics): Update.
5673 * symmisc.c (print_symbol_bcache_statistics)
5674 (print_objfile_statistics, maintenance_print_objfiles)
5675 (maintenance_info_symtabs, maintenance_check_symtabs)
5676 (maintenance_expand_symtabs, maintenance_info_line_tables):
5677 Update.
5678 * symfile-debug.c (set_debug_symfile): Update.
5679 * source.c (forget_cached_source_info): Update.
5680 * python/python.c (gdbpy_progspaces): Update.
5681 * psymtab.c (maintenance_info_psymtabs): Update.
5682 * probe.c (parse_probes): Update.
5683 * linespec.c (iterate_over_all_matching_symtabs)
5684 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5685 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5686 * exec.c (exec_target::close): Update.
5687 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5688 * breakpoint.c (print_one_breakpoint_location)
5689 (create_longjmp_master_breakpoint)
5690 (create_std_terminate_master_breakpoint): Update.
5691 * progspace.c (program_spaces): Now a std::vector.
5692 (maybe_new_address_space): Update.
5693 (add_program_space): Remove.
5694 (program_space::program_space): Update.
5695 (remove_program_space): Update.
5696 (number_of_program_spaces): Remove.
5697 (print_program_space, update_address_spaces): Update.
5698 * progspace.h (program_spaces): Change type.
5699 (ALL_PSPACES): Remove.
5700 (number_of_program_spaces): Don't declare.
5701 (struct program_space) <next>: Remove.
5702
5703 2020-05-08 Tom Tromey <tom@tromey.com>
5704
5705 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5706 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5707 (enable_break): Update.
5708 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5709 (frv_fdpic_find_canonical_descriptor): Update.
5710 (frv_fetch_objfile_link_map): Update.
5711 * progspace.c (program_space::free_all_objfiles): Update.
5712 (program_space::solibs): New method.
5713 * progspace.h (struct program_space) <solibs>: New method.
5714 * solist.h (master_so_list): Don't declare.
5715 (ALL_SO_LIBS): Remove.
5716 * solib.h (so_list_head): Remove.
5717 (update_solib_list): Update comment.
5718 * solib.c (master_so_list): Remove.
5719 (solib_used, update_solib_list, solib_add)
5720 (info_sharedlibrary_command, clear_solib)
5721 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5722
5723 2020-05-08 Tom Tromey <tom@tromey.com>
5724
5725 * extension.c (extension_languages): Now a std::array.
5726 (ALL_EXTENSION_LANGUAGES): Remove.
5727 (get_ext_lang_defn, get_ext_lang_of_file)
5728 (eval_ext_lang_from_control_command): Update.
5729 (finish_ext_lang_initialization)
5730 (auto_load_ext_lang_scripts_for_objfile)
5731 (ext_lang_type_printers::ext_lang_type_printers)
5732 (apply_ext_lang_type_printers)
5733 (ext_lang_type_printers::~ext_lang_type_printers)
5734 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5735 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5736 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5737 (get_matching_xmethod_workers, ext_lang_colorize)
5738 (ext_lang_before_prompt): Update.
5739 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5740
5741 2020-05-08 Tom Tromey <tom@tromey.com>
5742
5743 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5744 overload.
5745 <swap_string, m_string>: Remove.
5746 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5747 Update.
5748 * stabsread.c (define_symbol, read_type): Update.
5749 * linespec.c (find_linespec_symbols): Update.
5750 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5751 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5752 * dbxread.c (read_dbx_symtab): Update.
5753 * cp-support.h (cp_canonicalize_string_full)
5754 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5755 Return unique_xmalloc_ptr.
5756 * cp-support.c (inspect_type): Update.
5757 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5758 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5759 Likewise.
5760 * c-typeprint.c (print_name_maybe_canonical): Update.
5761 * break-catch-throw.c (check_status_exception_catchpoint):
5762 Update.
5763
5764 2020-05-08 Tom de Vries <tdevries@suse.de>
5765
5766 * infrun.c (follow_fork): Copy current_line and current_symtab to
5767 child thread.
5768
5769 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5770
5771 * async-event.c (struct async_signal_handler, struct
5772 async_event_handler): Reformat, remove typedef.
5773
5774 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5775
5776 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5777 access thistype->main_type->dyn_prop_list directly.
5778
5779 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5780
5781 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5782 (remove_dyn_prop): Remove. Update all users to use
5783 type::remove_dyn_prop.
5784 * gdbtypes.c (remove_dyn_prop): Rename to...
5785 (type::remove_dyn_prop): ... this.
5786
5787 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5788
5789 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5790 (add_dyn_prop): Remove. Update all users to use
5791 type::add_dyn_prop.
5792 * gdbtypes.c (add_dyn_prop): Rename to...
5793 (type::add_dyn_prop): ... this.
5794
5795 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5796
5797 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5798 (get_dyn_prop): Remove. Update all users to use
5799 type::dyn_prop.
5800 * gdbtypes.c (get_dyn_prop): Rename to...
5801 (type::dyn_prop): ... this.
5802
5803 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5804
5805 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5806
5807 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5808
5809 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5810 instruction, skip it if it's there.
5811
5812 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5813
5814 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5815
5816 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5817
5818 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5819 * gdbtypes.c (recursive_dump_type): Remove use of
5820 TYPE_INCOMPLETE.
5821
5822 2020-05-03 Tom Tromey <tom@tromey.com>
5823
5824 * breakpoint.c (catch_command, tcatch_command): Remove.
5825 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5826 add_show_prefix_cmd.
5827 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5828 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5829 Remove.
5830 (add_internal_problem_command): Use add_basic_prefix_cmd,
5831 add_show_prefix_cmd.
5832 * mips-tdep.c (set_mipsfpu_command): Remove.
5833 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5834 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5835 (_initialize_index_cache): Use add_basic_prefix_cmd.
5836 * memattr.c (dummy_cmd): Remove.
5837 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5838 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5839 (_initialize_tui_win): Use add_basic_prefix_cmd,
5840 add_show_prefix_cmd.
5841 * cli/cli-logging.c (set_logging_command): Remove.
5842 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5843 add_show_prefix_cmd.
5844 (show_logging_command): Remove.
5845 * target.c (target_command): Remove.
5846 (add_target): Use add_basic_prefix_cmd.
5847
5848 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5849
5850 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5851
5852 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5853
5854 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5855 info_command.
5856
5857 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5858
5859 * nbsd-nat.c (nbsd_enable_proc_events)
5860 (nbsd_nat_target::post_startup_inferior): Add.
5861 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5862 (nbsd_nat_target::update_thread_list): Rewrite.
5863 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5864 "PTRACE_LWP_CREATE".
5865 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5866
5867 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5868
5869 * stack.c (_initialize_stack): Remove duplicated creation
5870 of "frame" command and "f" alias.
5871
5872 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5873
5874 PR gdb/18706
5875 * gdbtypes.c (check_typedef): Calculate size of array of
5876 stubbed type.
5877
5878 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5879
5880 PR gdb/15559
5881 * i386-tdep.c (i386_push_dummy_call): Call
5882 i386_thiscall_push_dummy_call.
5883 (i386_thiscall_push_dummy_call): New function.
5884 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5885 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5886 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5887
5888 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5889
5890 * gdbarch.sh (do_read): Add shellcheck disable directive for
5891 warning SC2162.
5892
5893 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5896 "referenced but not assigned" warning.
5897
5898 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5899
5900 * gdbarch.sh: Remove code that sets fallbackdefault.
5901
5902 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5903
5904 * gdbarch.sh: Use shell operators && and || instead of
5905 -a and -o.
5906
5907 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5908
5909 * gdbarch.sh: Use $(...) instead of `...`.
5910
5911 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5912
5913 * gdbarch.sh: Use double quotes around variables.
5914
5915 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5916
5917 * gdbarch.sh: Use %s with printf, instead of variables in the
5918 format string.
5919
5920 2020-04-29 Tom Tromey <tromey@adacore.com>
5921
5922 PR ada/25875:
5923 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5924 type fields here.
5925 (read_enumeration_type): Call
5926 update_enumeration_type_from_children later. Update comments.
5927 (process_enumeration_scope): Don't create type fields.
5928
5929 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5930
5931 * nbsd-tdep.c: Include "xml-syscall.h".
5932 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5933
5934 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5935
5936 * nbsd-nat.c: Include "sys/wait.h".
5937 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5938 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5939 (nbsd_nat_target::remove_exec_catchpoint)
5940 (nbsd_nat_target::set_syscall_catchpoint): Add.
5941 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5942 (nbsd_nat_target::insert_exec_catchpoint)
5943 (nbsd_nat_target::remove_exec_catchpoint)
5944 (nbsd_nat_target::set_syscall_catchpoint): Add.
5945 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5946 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5947 `nbsd_get_syscall_number'.
5948
5949 2020-04-29 Tom Tromey <tom@tromey.com>
5950
5951 * stack.c (print_block_frame_labels): Remove.
5952
5953 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5954
5955 PR gdb/17320
5956 * ada-valprint.c (val_print_packed_array_elements): Move array
5957 end bracket to new line.
5958 (ada_val_print_string): Remove extra spaces before first array
5959 element.
5960 * c-valprint.c (c_value_print_array): Likewise.
5961 * m2-valprint.c (m2_print_array_contents): Likewise.
5962 (m2_value_print_inner): Likewise.
5963 * p-valprint.c (pascal_value_print_inner): Likewise.
5964 * valprint.c (generic_val_print_array): Likewise.
5965 (value_print_array_elements): Move first array element and array
5966 end bracket to new line.
5967
5968 2020-04-29 Tom de Vries <tdevries@suse.de>
5969
5970 PR symtab/25889
5971 * linespec.c (find_method): Fix ix calculation.
5972
5973 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5974
5975 * syscalls/update-netbsd.sh: New file.
5976 * syscalls/netbsd.xml: Regenerate.
5977 * data-directory/Makefile.in: Register `netbsd.xml' in
5978 `SYSCALLS_FILES'.
5979
5980 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5981
5982 * syscalls/update-freebsd.sh: Add double quotes.
5983
5984 2020-04-28 Tom Tromey <tom@tromey.com>
5985
5986 * NEWS: Update.
5987 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5988 (cmdpy_init): Allow class_tui.
5989
5990 2020-04-28 Mark Williams <mark@myosotissp.com>
5991
5992 PR gdb/24480
5993 * dwarf2read.c: Add missing assingments to list_in_scope when
5994 start_symtab was already called.
5995
5996 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5997
5998 PR gdb/25881
5999 * dwarf2/read.c (offset_map_type): Use
6000 gdb:hash_enum<sect_offset> as hash function.
6001
6002 2020-04-28 Tom de Vries <tdevries@suse.de>
6003
6004 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6005 with DW_AT_signature.
6006
6007 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6008
6009 * configure.ac: Remove check for fs_base/gs_base in
6010 user_regs_struct.
6011 * configure: Re-generate.
6012 * config.in: Re-generate.
6013 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6014 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6015 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6016
6017 2020-04-27 Luis Machado <luis.machado@linaro.org>
6018
6019 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6020 problematic inline frame unwinding situation.
6021 * frame.c (frame_id_computed_p): New function.
6022 * frame.h (frame_id_computed_p): New prototype.
6023
6024 2020-04-26 Tom Tromey <tom@tromey.com>
6025
6026 * command.h (enum command_class) <class_pseudo>: Remove.
6027
6028 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6029
6030 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6031 and whitespace.
6032
6033 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6034
6035 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6036 `PT_GET_PROCESS_STATE' block.
6037
6038 2020-04-24 Tom Tromey <tom@tromey.com>
6039
6040 * symtab.h (symbol_get_demangled_name): Don't declare.
6041 * symtab.c (symbol_get_demangled_name): Remove.
6042 (general_symbol_info::natural_name)
6043 (general_symbol_info::demangled_name): Update.
6044
6045 2020-04-24 Tom Tromey <tom@tromey.com>
6046
6047 PR rust/25025:
6048 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6049
6050 2020-04-24 Tom Tromey <tom@tromey.com>
6051
6052 PR symtab/12707:
6053 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6054 exists.
6055 (new_symbol): Likewise.
6056 * compile/compile-object-load.c (get_out_value_type): Use
6057 symbol_matches_search_name.
6058
6059 2020-04-24 Tom Tromey <tom@tromey.com>
6060
6061 * dwarf2/read.c (add_partial_symbol): Do not call
6062 compute_and_set_names.
6063
6064 2020-04-24 Tom Tromey <tom@tromey.com>
6065
6066 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6067 overload.
6068
6069 2020-04-24 Tom Tromey <tom@tromey.com>
6070
6071 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6072 (add_psymbol_to_list): New overload. Make old overload call new
6073 one.
6074 * psympriv.h (add_psymbol_to_list): New overload.
6075
6076 2020-04-24 Tom Tromey <tom@tromey.com>
6077
6078 * dwarf2/read.c (partial_die_info::read) <case
6079 DW_AT_linkage_name>: Use value_as_string.
6080 (dwarf2_string_attr): Use value_as_string.
6081 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6082 method.
6083 * dwarf2/attribute.c (attribute::value_as_string): New method.
6084
6085 2020-04-24 Tom Tromey <tom@tromey.com>
6086
6087 * symtab.c (general_symbol_info::natural_name)
6088 (general_symbol_info::demangled_name): Check for language_rust.
6089
6090 2020-04-24 Tom Tromey <tom@tromey.com>
6091
6092 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6093 (dwarf2_physname): ... from here.
6094 (partial_die_info::read): Add Rust "{" hack.
6095
6096 2020-04-24 Tom Tromey <tom@tromey.com>
6097
6098 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6099 method.
6100 (symbol_set_demangled_name): Don't declare.
6101 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6102 symbol_set_demangled_name.
6103 (general_symbol_info::set_language)
6104 (general_symbol_info::compute_and_set_names): Update.
6105 * minsyms.c (minimal_symbol_reader::install): Update.
6106 * dwarf2/read.c (new_symbol): Update.
6107
6108 2020-04-24 Tom Tromey <tromey@adacore.com>
6109
6110 PR python/23662:
6111 * python/py-type.c (convert_field): Handle
6112 FIELD_LOC_KIND_DWARF_BLOCK.
6113 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6114 (typy_get_dynamic): Nw function.
6115 (type_object_getset): Add "dynamic".
6116 * NEWS: Add entry.
6117
6118 2020-04-24 Tom Tromey <tromey@adacore.com>
6119
6120 * ada-typeprint.c (print_choices, print_variant_part)
6121 (print_record_field_types_dynamic): New functions.
6122 (print_record_field_types): Use print_record_field_types_dynamic.
6123
6124 2020-04-24 Tom Tromey <tromey@adacore.com>
6125
6126 * dwarf2/read.c (handle_data_member_location): New overload.
6127 (dwarf2_add_field): Use it.
6128 (decode_locdesc): Add "computed" parameter. Update comment.
6129 * gdbtypes.c (is_dynamic_type_internal): Also look for
6130 FIELD_LOC_KIND_DWARF_BLOCK.
6131 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6132 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6133 virtual base classes.
6134 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6135 FIELD_LOC_KIND_DWARF_BLOCK.
6136
6137 2020-04-24 Tom Tromey <tromey@adacore.com>
6138
6139 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6140 * gdbtypes.c (is_dynamic_type_internal): Check
6141 TYPE_HAS_DYNAMIC_LENGTH.
6142 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6143 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6144 New macros.
6145 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6146 constant.
6147
6148 2020-04-24 Tom Tromey <tromey@adacore.com>
6149
6150 * dwarf2/read.c (struct variant_field): Rewrite.
6151 (struct variant_part_builder): New.
6152 (struct nextfield): Remove "variant" field. Add "offset".
6153 (struct field_info): Add "current_variant_part" and
6154 "variant_parts".
6155 (alloc_discriminant_info): Remove.
6156 (alloc_rust_variant): New function.
6157 (quirk_rust_enum): Update.
6158 (dwarf2_add_field): Set "offset" member. Don't handle
6159 DW_TAG_variant_part.
6160 (offset_map_type): New typedef.
6161 (convert_variant_range, create_one_variant)
6162 (create_one_variant_part, create_variant_parts)
6163 (add_variant_property): New functions.
6164 (dwarf2_attach_fields_to_type): Call add_variant_property.
6165 (read_structure_type): Don't handle DW_TAG_variant_part.
6166 (handle_variant_part, handle_variant): New functions.
6167 (handle_struct_member_die): Use them.
6168 (process_structure_scope): Don't handle variant parts.
6169 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6170 (struct discriminant_info): Remove.
6171 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6172 (struct main_type) <flag_discriminated_union>: Remove.
6173 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6174 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6175 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6176 Update.
6177 * valops.c (value_union_variant): Remove.
6178 * value.h (value_union_variant): Don't declare.
6179
6180 2020-04-24 Tom Tromey <tromey@adacore.com>
6181
6182 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6183 (ada_value_primitive_packed_val): Update.
6184 * ada-valprint.c (ada_value_print_1): Update.
6185 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6186 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6187 just an address. Use evaluate_for_locexpr_baton.
6188 (dwarf2_evaluate_property): Update.
6189 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6190 array_view.
6191 * findvar.c (default_read_var_value): Update.
6192 * gdbtypes.c (compute_variant_fields_inner)
6193 (resolve_dynamic_type_internal): Update.
6194 (resolve_dynamic_type): Change type of valaddr parameter.
6195 * gdbtypes.h (resolve_dynamic_type): Update.
6196 * valarith.c (value_subscripted_rvalue): Update.
6197 * value.c (value_from_contents_and_address): Update.
6198
6199 2020-04-24 Tom Tromey <tromey@adacore.com>
6200
6201 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6202 "push_initial_value" parameter.
6203 (dwarf2_evaluate_property): Likewise.
6204 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6205
6206 2020-04-24 Tom Tromey <tromey@adacore.com>
6207
6208 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6209 (variant::matches, compute_variant_fields_recurse)
6210 (compute_variant_fields_inner, compute_variant_fields): New
6211 functions.
6212 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6213 Use resolved_type after type is made.
6214 (operator==): Add new cases.
6215 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6216 (struct discriminant_range, struct variant, struct variant_part):
6217 New.
6218 (union dynamic_prop_data) <variant_parts, original_type>: New
6219 members.
6220 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6221 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6222 constants.
6223 * value.c (unpack_bits_as_long): Now public.
6224 * value.h (unpack_bits_as_long): Declare.
6225
6226 2020-04-24 Tom Tromey <tromey@adacore.com>
6227
6228 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6229 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6230
6231 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6232
6233 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6234
6235 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6236
6237 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6238 (remove_fork_catchpoint, post_startup_inferior)
6239 (post_attach): Move...
6240 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6241 (remove_fork_catchpoint, post_startup_inferior)
6242 (post_attach): ...here.
6243 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6244 (remove_fork_catchpoint, post_startup_inferior)
6245 (post_attach): Move...
6246 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6247 (remove_fork_catchpoint, post_startup_inferior)
6248 (post_attach): ...here.
6249
6250 2020-04-24 Tom Tromey <tromey@adacore.com>
6251
6252 * nat/windows-nat.h (struct windows_thread_info)
6253 <pc_adjusted>: New member.
6254 * windows-nat.c (windows_fetch_one_register): Check
6255 pc_adjusted.
6256 (windows_nat_target::get_windows_debug_event)
6257 (windows_nat_target::wait): Set pc_adjusted.
6258
6259 2020-04-24 Tom de Vries <tdevries@suse.de>
6260
6261 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6262 Run gdb-add-index inside temp dir.
6263
6264 2020-04-23 Tom Tromey <tromey@adacore.com>
6265
6266 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6267 in loop.
6268
6269 2020-04-23 Luis Machado <luis.machado@linaro.org>
6270
6271 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6272 get_frame_register instead of gdbarch_unwind_pc.
6273
6274 2020-04-23 Tom de Vries <tdevries@suse.de>
6275
6276 * symtab.c (lookup_global_symbol): Prefer def over decl.
6277
6278 2020-04-23 Tom de Vries <tdevries@suse.de>
6279
6280 PR symtab/25807
6281 * block.c (best_symbol, better_symbol): Promote to external.
6282 * block.h (best_symbol, better_symbol): Declare.
6283 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6284 decl.
6285
6286 2020-04-23 Tom Tromey <tromey@adacore.com>
6287
6288 PR ada/25837:
6289 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6290 "const char *", not a "const std::string &".
6291 <name_and_matcher::operator==>: Update.
6292 * unittests/lookup_name_info-selftests.c: Change type of
6293 "result".
6294
6295 2020-04-23 Tom Tromey <tom@tromey.com>
6296
6297 * inferior.h (iterate_over_inferiors): Don't declare.
6298 * inferior.c (iterate_over_inferiors): Remove.
6299 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6300 Remove.
6301 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6302 use iterate_over_inferiors.
6303 (darwin_resume_inferior_it)
6304 (struct resume_inferior_threads_param)
6305 (darwin_resume_inferior_threads_it): Remove.
6306 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6307
6308 2020-04-23 Tom de Vries <tdevries@suse.de>
6309
6310 * blockframe.c (find_pc_partial_function): Use
6311 find_pc_sect_compunit_symtab rather than
6312 objfile->sf->qf->find_pc_sect_compunit_symtab.
6313
6314 2020-04-22 Tom de Vries <tdevries@suse.de>
6315
6316 PR symtab/25764
6317 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6318 in psymtabs.
6319
6320 2020-04-22 Tom de Vries <tdevries@suse.de>
6321
6322 PR symtab/25801
6323 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6324 symtabs.
6325
6326 2020-04-22 Tom de Vries <tdevries@suse.de>
6327
6328 PR symtab/25700
6329 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6330 CU if already created.
6331
6332 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6333
6334 * infrun.c (displaced_step_fixup): Switch to the event_thread
6335 before calling displaced_step_restore, not after.
6336
6337 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6338
6339 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6340 its inferior is not recorded by us.
6341 (record_btrace_target_open): Replace call to
6342 all_non_exited_threads () with call to current_inferior
6343 ()->non_exited_threads ().
6344 (record_btrace_target::stop_recording): Likewise.
6345 (record_btrace_target::close): Likewise.
6346 (record_btrace_target::wait): Likewise.
6347 (record_btrace_target::record_stop_replaying): Likewise.
6348
6349 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6350
6351 * btrace.c (btrace_enable): Throw an error on double enables and
6352 when enabling recording fails.
6353 (btrace_disable): Throw an error if the thread is not recorded.
6354
6355 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6356
6357 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6358 request if we do not have a thread_info.
6359
6360 2020-04-21 Tom de Vries <tdevries@suse.de>
6361
6362 PR gdb/25471
6363 * thread.c
6364 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6365 exception in get_frame_id.
6366
6367 2020-04-20 Tom Tromey <tromey@adacore.com>
6368
6369 * python/python.c (struct gdbpy_event): Mark move constructor as
6370 noexcept.
6371 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6372 constructor as noexcept.
6373 * completer.h (struct completion_result): Mark move constructor as
6374 noexcept.
6375 * completer.c (completion_result::completion_result): Use
6376 initialization style. Don't call reset_match_list.
6377
6378 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6379
6380 * MAINTAINERS (Write After Approval): Add myself.
6381
6382 2020-04-18 Tom Tromey <tom@tromey.com>
6383
6384 * windows-tdep.c (init_w32_command_list)
6385 (w32_prefix_command_valid): Restore.
6386 (_initialize_windows_tdep): Call init_w32_command_list.
6387
6388 2020-04-18 Tom Tromey <tom@tromey.com>
6389
6390 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6391 * value.c (value_fn_field): Update.
6392 * valops.c (find_function_in_inferior)
6393 (value_allocate_space_in_inferior): Update.
6394 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6395 Update.
6396 * tui/tui-source.c (tui_source_window::set_contents): Update.
6397 * symtab.c (lookup_global_or_static_symbol)
6398 (find_function_start_sal_1, skip_prologue_sal)
6399 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6400 * symmisc.c (dump_msymbols, dump_symtab_1)
6401 (maintenance_print_one_line_table): Update.
6402 * symfile.c (init_entry_point_info, section_is_mapped)
6403 (list_overlays_command, simple_read_overlay_table)
6404 (simple_overlay_update_1): Update.
6405 * stap-probe.c (handle_stap_probe): Update.
6406 * stabsread.c (dbx_init_float_type, define_symbol)
6407 (read_one_struct_field, read_enum_type, read_range_type): Update.
6408 * source.c (info_line_command): Update.
6409 * python/python.c (gdbpy_source_objfile_script)
6410 (gdbpy_execute_objfile_script): Update.
6411 * python/py-type.c (save_objfile_types): Update.
6412 * python/py-objfile.c (py_free_objfile): Update.
6413 * python/py-inferior.c (python_new_objfile): Update.
6414 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6415 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6416 (maintenance_check_psymtabs): Update.
6417 * printcmd.c (info_address_command): Update.
6418 * objfiles.h (struct objfile) <arch>: New method, from
6419 get_objfile_arch.
6420 (get_objfile_arch): Don't declare.
6421 * objfiles.c (get_objfile_arch): Remove.
6422 (filter_overlapping_sections): Update.
6423 * minsyms.c (msymbol_is_function): Update.
6424 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6425 (output_nondebug_symbol): Update.
6426 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6427 (mdebug_expand_psymtab): Update.
6428 * machoread.c (macho_add_oso_symfile): Update.
6429 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6430 Update.
6431 * linux-fork.c (checkpoint_command): Update.
6432 * linespec.c (convert_linespec_to_sals): Update.
6433 * jit.c (finalize_symtab): Update.
6434 * infrun.c (insert_exception_resume_from_probe): Update.
6435 * ia64-tdep.c (ia64_find_unwind_table): Update.
6436 * hppa-tdep.c (internalize_unwinds): Update.
6437 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6438 Update.
6439 * gcore.c (call_target_sbrk): Update.
6440 * elfread.c (record_minimal_symbol, elf_symtab_read)
6441 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6442 (elf_gnu_ifunc_resolve_by_got): Update.
6443 * dwarf2/read.c (create_addrmap_from_index)
6444 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6445 (read_debug_names_from_section)
6446 (process_psymtab_comp_unit_reader, add_partial_symbol)
6447 (add_partial_subprogram, process_full_comp_unit)
6448 (read_file_scope, read_func_scope, read_lexical_block_scope)
6449 (read_call_site_scope, dwarf2_ranges_read)
6450 (dwarf2_record_block_ranges, dwarf2_add_field)
6451 (mark_common_block_symbol_computed, read_tag_pointer_type)
6452 (read_tag_string_type, dwarf2_init_float_type)
6453 (dwarf2_init_complex_target_type, read_base_type)
6454 (partial_die_info::read, partial_die_info::read)
6455 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6456 (dwarf2_fetch_die_loc_sect_off): Update.
6457 * dwarf2/loc.c (dwarf2_find_location_expression)
6458 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6459 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6460 (dwarf2_loc_desc_get_symbol_read_needs)
6461 (locexpr_describe_location_piece, locexpr_describe_location_1)
6462 (loclist_describe_location): Update.
6463 * dwarf2/index-write.c (write_debug_names): Update.
6464 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6465 * dtrace-probe.c (dtrace_process_dof): Update.
6466 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6467 (process_one_symbol): Update.
6468 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6469 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6470 (coff_read_enum_type): Update.
6471 * cli/cli-cmds.c (edit_command, list_command): Update.
6472 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6473 * breakpoint.c (create_overlay_event_breakpoint)
6474 (create_longjmp_master_breakpoint)
6475 (create_std_terminate_master_breakpoint)
6476 (create_exception_master_breakpoint, get_sal_arch): Update.
6477 * block.c (block_gdbarch): Update.
6478 * annotate.c (annotate_source_line): Update.
6479
6480 2020-04-17 Tom Tromey <tromey@adacore.com>
6481
6482 * auto-load.c (show_auto_load_cmd): Remove.
6483 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6484 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6485 (maintenance_print_arc_command): Remove.
6486 * tui/tui-win.c (tui_command): Remove.
6487 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6488 * tui/tui-layout.c (tui_layout_command): Remove.
6489 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6490 * python/python.c (user_set_python, user_show_python): Remove.
6491 (_initialize_python): Use add_basic_prefix_cmd,
6492 add_show_prefix_cmd.
6493 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6494 (install_gdb_commands): Use add_basic_prefix_cmd,
6495 add_show_prefix_cmd.
6496 (info_guile_command): Remove.
6497 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6498 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6499 add_show_prefix_cmd.
6500 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6501 Remove do_set and do_show parameters.
6502 * cli/cli-style.c (set_style, show_style): Remove.
6503 (_initialize_cli_style): Use add_basic_prefix_cmd,
6504 add_show_prefix_cmd.
6505 (cli_style_option::add_setshow_commands): Remove do_set and
6506 do_show parameters.
6507 (cli_style_option::add_setshow_commands): Use
6508 add_basic_prefix_cmd, add_show_prefix_cmd.
6509 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6510 (set_style_name): Remove.
6511 * cli/cli-dump.c (dump_command, append_command): Remove.
6512 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6513 (tekhex_dump_command, binary_dump_command)
6514 (binary_append_command): Remove.
6515 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6516 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6517 (init_w32_command_list): Remove; move into ...
6518 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6519 * valprint.c (set_print, show_print, set_print_raw)
6520 (show_print_raw): Remove.
6521 (_initialize_valprint): Use add_basic_prefix_cmd,
6522 add_show_prefix_cmd.
6523 * typeprint.c (set_print_type, show_print_type): Remove.
6524 (_initialize_typeprint): Use add_basic_prefix_cmd,
6525 add_show_prefix_cmd.
6526 * record.c (set_record_command, show_record_command): Remove.
6527 (_initialize_record): Use add_basic_prefix_cmd,
6528 add_show_prefix_cmd.
6529 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6530 add_show_prefix_cmd.
6531 (info_command, show_command, set_debug, show_debug): Remove.
6532 * top.h (set_history, show_history): Don't declare.
6533 * top.c (set_history, show_history): Remove.
6534 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6535 (unset_tdesc_cmd): Remove.
6536 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6537 add_show_prefix_cmd.
6538 * symtab.c (info_module_command): Remove.
6539 (_initialize_symtab): Use add_basic_prefix_cmd.
6540 * symfile.c (overlay_command): Remove.
6541 (_initialize_symfile): Use add_basic_prefix_cmd.
6542 * sparc64-tdep.c (info_adi_command): Remove.
6543 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6544 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6545 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6546 add_show_prefix_cmd.
6547 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6548 (_initialize_serial): Use add_basic_prefix_cmd,
6549 add_show_prefix_cmd.
6550 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6551 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6552 add_show_prefix_cmd.
6553 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6554 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6555 add_show_prefix_cmd.
6556 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6557 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6558 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6559 add_show_prefix_cmd.
6560 * remote.c (remote_command, set_remote_cmd): Remove.
6561 (_initialize_remote): Use add_basic_prefix_cmd.
6562 * record-full.c (set_record_full_command)
6563 (show_record_full_command): Remove.
6564 (_initialize_record_full): Use add_basic_prefix_cmd,
6565 add_show_prefix_cmd.
6566 * record-btrace.c (cmd_set_record_btrace)
6567 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6568 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6569 (cmd_show_record_btrace_pt): Remove.
6570 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6571 add_show_prefix_cmd.
6572 * ravenscar-thread.c (set_ravenscar_command)
6573 (show_ravenscar_command): Remove.
6574 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6575 add_show_prefix_cmd.
6576 * mips-tdep.c (show_mips_command, set_mips_command)
6577 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6578 add_show_prefix_cmd.
6579 * maint.c (maintenance_command, maintenance_info_command)
6580 (maintenance_check_command, maintenance_print_command)
6581 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6582 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6583 add_show_prefix_cmd.
6584 (show_per_command_cmd): Remove.
6585 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6586 Remove.
6587 (maintenance_show_test_settings_cmd): Remove.
6588 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6589 add_show_prefix_cmd.
6590 * maint-test-options.c (maintenance_test_options_command):
6591 Remove.
6592 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6593 * macrocmd.c (macro_command): Remove
6594 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6595 * language.c (set_check, show_check): Remove.
6596 (_initialize_language): Use add_basic_prefix_cmd,
6597 add_show_prefix_cmd.
6598 * infcmd.c (unset_command): Remove.
6599 (_initialize_infcmd): Use add_basic_prefix_cmd.
6600 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6601 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6602 add_show_prefix_cmd.
6603 * go32-nat.c (go32_info_dos_command): Remove.
6604 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6605 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6606 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6607 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6608 (_initialize_frame): Use add_basic_prefix_cmd,
6609 add_show_prefix_cmd.
6610 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6611 (_initialize_dcache): Use add_basic_prefix_cmd,
6612 add_show_prefix_cmd.
6613 * cp-support.c (maint_cplus_command): Remove.
6614 (_initialize_cp_support): Use add_basic_prefix_cmd.
6615 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6616 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6617 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6618 add_basic_prefix_cmd, add_show_prefix_cmd.
6619 * breakpoint.c (save_command): Remove.
6620 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6621 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6622 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6623 add_show_prefix_cmd.
6624 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6625 (set_ada_command, show_ada_command): Remove.
6626 (_initialize_ada_language): Use add_basic_prefix_cmd,
6627 add_show_prefix_cmd.
6628 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6629
6630 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6631
6632 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6633 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6634
6635 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6636
6637 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6638 warning messages.
6639
6640 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6641
6642 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6643 import table is not at beginning of .idata section.
6644
6645 2020-04-16 Pedro Alves <palves@redhat.com>
6646
6647 * inferior.c (delete_inferior): Use delete operator directly
6648 instead of delete_program_space.
6649 * progspace.c (add_program_space): New, factored out from
6650 program_space::program_space.
6651 (remove_program_space): New, factored out from
6652 delete_program_space.
6653 (program_space::program_space): Remove intro comment. Rewrite.
6654 (program_space::~program_space): Remove intro comment. Call
6655 remove_program_space.
6656 (delete_program_space): Delete.
6657 * progspace.h (program_space::program_space): Make explicit. Move
6658 intro comment here, adjusted.
6659 (program_space::~program_space): Move intro comment here,
6660 adjusted.
6661 (delete_program_space): Remove.
6662
6663 2020-04-16 Tom Tromey <tromey@adacore.com>
6664
6665 * windows-nat.c (windows_nat::handle_access_violation): New
6666 function.
6667 * nat/windows-nat.h (handle_access_violation): Declare.
6668 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6669 windows-nat.c. Call handle_access_violation.
6670
6671 2020-04-16 Tom de Vries <tdevries@suse.de>
6672
6673 PR symtab/25791
6674 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6675 CUs without psymtab.
6676
6677 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6678
6679 * python/python.c (do_start_initialization): Don't call
6680 PyEval_InitThreads for Python 3.9 and beyond.
6681
6682 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6683
6684 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6685 thread functions.
6686 (obsd_nat_target::wait): Likewise.
6687
6688 2020-04-15 Tom Tromey <tromey@adacore.com>
6689
6690 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6691 (DEBUG_EXCEPT): Use debug_printf.
6692
6693 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6694
6695 * completer.c (class completion_tracker::completion_hash_entry)
6696 <hash_name>: New member function.
6697 (completion_tracker::discard_completions): New callback to hash a
6698 completion_hash_entry, pass this to htab_create_alloc.
6699
6700 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6701
6702 * windows-nat.c (windows_make_so): Warn rather than stopping with
6703 an error if realpath() fails.
6704
6705 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6706
6707 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6708 (nbsd_nat_target::info_proc): Add do_status.
6709
6710 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6711 Tom de Vries <tdevries@suse.de>
6712
6713 PR symtab/25718
6714 * psympriv.h (struct partial_symtab::read_symtab)
6715 (struct partial_symtab::expand_psymtab)
6716 (struct partial_symtab::read_dependencies): Update comments.
6717 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6718 read_symtab for includer.
6719 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6720 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6721 (struct dwarf2_include_psymtab::m_readin): Remove.
6722 (struct dwarf2_include_psymtab::includer): New member function.
6723 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6724
6725 2020-04-14 Tom de Vries <tdevries@suse.de>
6726
6727 PR symtab/25720
6728 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6729 with NULL symbol_matcher and lookup_name.
6730 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6731 and lookup_name.
6732 * dwarf2/read.c (dw2_expand_symtabs_matching)
6733 (dw2_debug_names_expand_symtabs_matching): Same.
6734 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6735 Make lookup_name a pointer. Update comment.
6736 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6737 lookup_name being a pointer.
6738 * symfile.c (expand_symtabs_matching): Same.
6739 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6740 * linespec.c (iterate_over_all_matching_symtabs): Same.
6741
6742 2020-04-13 Tom Tromey <tom@tromey.com>
6743
6744 * run-on-main-thread.c: Update include.
6745 * unittests/main-thread-selftests.c: Update include.
6746 * tui/tui-win.c: Update include.
6747 * tui/tui-io.c: Update include.
6748 * tui/tui-interp.c: Update include.
6749 * tui/tui-hooks.c: Update include.
6750 * top.h: Update include.
6751 * top.c: Update include.
6752 * ser-base.c: Update include.
6753 * remote.c: Update include.
6754 * remote-notif.c: Update include.
6755 * remote-fileio.c: Update include.
6756 * record-full.c: Update include.
6757 * record-btrace.c: Update include.
6758 * python/python.c: Update include.
6759 * posix-hdep.c: Update include.
6760 * mingw-hdep.c: Update include.
6761 * mi/mi-main.c: Update include.
6762 * mi/mi-interp.c: Update include.
6763 * main.c: Update include.
6764 * linux-nat.c: Update include.
6765 * interps.c: Update include.
6766 * infrun.c: Update include.
6767 * inf-loop.c: Update include.
6768 * event-top.c: Update include.
6769 * event-loop.c: Move to ../gdbsupport/.
6770 * event-loop.h: Move to ../gdbsupport/.
6771 * async-event.h: Update include.
6772 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6773
6774 2020-04-13 Tom Tromey <tom@tromey.com>
6775
6776 * tui/tui-win.c: Include async-event.h.
6777 * remote.c: Include async-event.h.
6778 * remote-notif.c: Include async-event.h.
6779 * record-full.c: Include async-event.h.
6780 * record-btrace.c: Include async-event.h.
6781 * infrun.c: Include async-event.h.
6782 * event-top.c: Include async-event.h.
6783 * event-loop.h: Move some declarations to async-event.h.
6784 * event-loop.c: Don't include ser-event.h or top.h. Move some
6785 code to async-event.c.
6786 * async-event.h: New file.
6787 * async-event.c: New file.
6788 * Makefile.in (COMMON_SFILES): Add async-event.c.
6789 (HFILES_NO_SRCDIR): Add async-event.h.
6790
6791 2020-04-13 Tom Tromey <tom@tromey.com>
6792
6793 * utils.c (flush_streams): New function.
6794 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6795
6796 2020-04-13 Tom Tromey <tom@tromey.com>
6797
6798 * event-loop.c (handle_file_event): Use warning, not
6799 printf_unfiltered.
6800
6801 2020-04-13 Tom Tromey <tom@tromey.com>
6802
6803 * event-loop.c: Include <chrono>.
6804
6805 2020-04-13 Tom Tromey <tom@tromey.com>
6806
6807 * gdb_select.h: Move to ../gdbsupport/.
6808 * event-loop.c: Update include path.
6809 * top.c: Update include path.
6810 * ser-base.c: Update include path.
6811 * ui-file.c: Update include path.
6812 * ser-tcp.c: Update include path.
6813 * guile/scm-ports.c: Update include path.
6814 * posix-hdep.c: Update include path.
6815 * ser-unix.c: Update include path.
6816 * gdb_usleep.c: Update include path.
6817 * mingw-hdep.c: Update include path.
6818 * inflow.c: Update include path.
6819 * infrun.c: Update include path.
6820 * event-top.c: Update include path.
6821
6822 2020-04-13 Tom Tromey <tom@tromey.com>
6823
6824 * configure: Rebuild.
6825 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6826
6827 2020-04-13 Tom Tromey <tom@tromey.com>
6828
6829 * event-loop.h (start_event_loop): Don't declare.
6830 * event-loop.c (start_event_loop): Move...
6831 * main.c (start_event_loop): ...here. Now static.
6832
6833 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6834
6835 * MAINTAINERS: Update my email address.
6836
6837 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6838
6839 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6840 IP_ALL.
6841
6842 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6843
6844 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6845 (nbsd_nat_target::info_proc): Add do_cmdline.
6846
6847 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6848
6849 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6850 (nbsd_nat_target::info_proc): Add do_cwd.
6851
6852 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6853
6854 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6855
6856 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6857
6858 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6859 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6860 (nbsd_nat_target::info_proc): New functions.
6861 * nbsd-nat.c (kinfo_get_vmmap): New function.
6862 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6863 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6864 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6865 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6866 functions.
6867 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6868 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6869 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6870 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6871 (KINFO_VME_FLAG_GROWS_DOWN): New.
6872
6873 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6874
6875 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6876 bit shift.
6877
6878 2020-04-10 Tom Tromey <tromey@adacore.com>
6879
6880 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6881
6882 2020-04-10 Tom Tromey <tromey@adacore.com>
6883
6884 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6885 separate debug files.
6886
6887 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6888
6889 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6890 Move to...
6891 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6892 ... here.
6893 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6894 Check for STATUS_WX86_BREAKPOINT.
6895 (windows_nat_target::wait): Same.
6896
6897 2020-04-10 Tom de Vries <tdevries@suse.de>
6898
6899 PR cli/25808
6900 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6901
6902 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6903
6904 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6905 (Write After Approval): Remove Tom de Vries.
6906
6907 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6908
6909 revert partially:
6910 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6911
6912 * buildsym.c (record_line): Fix undefined behavior and preserve
6913 lines at eof.
6914
6915 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6916
6917 * auxv.h (svr4_auxv_parse): New.
6918 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6919 and generic_auxv_parse.
6920 (svr4_auxv_parse): Add.
6921 * obsd-tdep.c: Include "auxv.h".
6922 (obsd_auxv_parse): Remove.
6923 (obsd_init_abi): Remove comment.
6924 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6925 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6926 * nbsd-tdep.c: Include "auxv.h".
6927 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6928
6929 2020-04-08 Tom Tromey <tromey@adacore.com>
6930
6931 * nat/windows-nat.h (last_wait_event): Don't declare.
6932 (wait_for_debug_event): Update comment.
6933 * nat/windows-nat.c (last_wait_event): Now static.
6934
6935 2020-04-08 Tom Tromey <tromey@adacore.com>
6936
6937 * windows-nat.c (wait_for_debug_event): Move to
6938 nat/windows-nat.c.
6939 * nat/windows-nat.h (wait_for_debug_event): Declare.
6940 * nat/windows-nat.c (wait_for_debug_event): Move from
6941 windows-nat.c. No longer static.
6942
6943 2020-04-08 Tom Tromey <tromey@adacore.com>
6944
6945 * windows-nat.c (get_windows_debug_event): Use
6946 fetch_pending_stop.
6947 * nat/windows-nat.h (fetch_pending_stop): Declare.
6948 * nat/windows-nat.c (fetch_pending_stop): New function.
6949
6950 2020-04-08 Tom Tromey <tromey@adacore.com>
6951
6952 * windows-nat.c (windows_continue): Use matching_pending_stop and
6953 continue_last_debug_event.
6954 * nat/windows-nat.h (matching_pending_stop)
6955 (continue_last_debug_event): Declare.
6956 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6957 (matching_pending_stop, continue_last_debug_event): New
6958 functions.
6959
6960 2020-04-08 Tom Tromey <tromey@adacore.com>
6961
6962 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6963 (handle_exception_result): Move to nat/windows-nat.h.
6964 (DEBUG_EXCEPTION_SIMPLE): Remove.
6965 (windows_nat::handle_ms_vc_exception): New function.
6966 (handle_exception): Move to nat/windows-nat.c.
6967 (get_windows_debug_event): Update.
6968 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6969 nat/windows-nat.c.
6970 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6971 (handle_exception_result): Move from windows-nat.c.
6972 (handle_exception): Declare.
6973 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6974 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6975 windows-nat.c.
6976
6977 2020-04-08 Tom Tromey <tromey@adacore.com>
6978
6979 * windows-nat.c (exception_count, event_count): Remove.
6980 (handle_exception, get_windows_debug_event)
6981 (do_initial_windows_stuff): Update.
6982
6983 2020-04-08 Tom Tromey <tromey@adacore.com>
6984
6985 * windows-nat.c (windows_nat::handle_load_dll)
6986 (windows_nat::handle_unload_dll): Rename. No longer static.
6987 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6988 Declare.
6989
6990 2020-04-08 Tom Tromey <tromey@adacore.com>
6991
6992 * complaints.h (stop_whining): Declare at top-level.
6993 (complaint): Don't declare stop_whining.
6994
6995 2020-04-08 Tom Tromey <tromey@adacore.com>
6996
6997 * windows-nat.c (windows_nat::handle_output_debug_string):
6998 Rename. No longer static.
6999 * nat/windows-nat.h (handle_output_debug_string): Declare.
7000
7001 2020-04-08 Tom Tromey <tromey@adacore.com>
7002
7003 * windows-nat.c (current_process_handle, current_process_id)
7004 (main_thread_id, last_sig, current_event, last_wait_event)
7005 (current_windows_thread, desired_stop_thread_id, pending_stops)
7006 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7007 (display_selectors, fake_create_process)
7008 (get_windows_debug_event): Update.
7009 * nat/windows-nat.h (current_process_handle, current_process_id)
7010 (main_thread_id, last_sig, current_event, last_wait_event)
7011 (current_windows_thread, desired_stop_thread_id, pending_stops)
7012 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7013 * nat/windows-nat.c (current_process_handle, current_process_id)
7014 (main_thread_id, last_sig, current_event, last_wait_event)
7015 (current_windows_thread, desired_stop_thread_id, pending_stops)
7016 (siginfo_er): New globals. Move from windows-nat.c.
7017
7018 2020-04-08 Tom Tromey <tromey@adacore.com>
7019
7020 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7021 (handle_load_dll): Update.
7022 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7023
7024 2020-04-08 Tom Tromey <tromey@adacore.com>
7025
7026 * windows-nat.c (enum thread_disposition_type): Move to
7027 nat/windows-nat.h.
7028 (windows_nat::thread_rec): Rename from thread_rec. No longer
7029 static.
7030 (windows_add_thread, windows_nat_target::fetch_registers)
7031 (windows_nat_target::store_registers, handle_exception)
7032 (windows_nat_target::resume, get_windows_debug_event)
7033 (windows_nat_target::get_tib_address)
7034 (windows_nat_target::thread_name)
7035 (windows_nat_target::thread_alive): Update.
7036 * nat/windows-nat.h (enum thread_disposition_type): Move from
7037 windows-nat.c.
7038 (thread_rec): Declare.
7039
7040 2020-04-08 Tom Tromey <tromey@adacore.com>
7041
7042 * windows-nat.c: Add "using namespace".
7043 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7044 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7045
7046 2020-04-08 Tom Tromey <tromey@adacore.com>
7047
7048 * nat/windows-nat.h (struct windows_thread_info): Declare
7049 destructor.
7050 * nat/windows-nat.c (~windows_thread_info): New.
7051
7052 2020-04-08 Tom Tromey <tromey@adacore.com>
7053
7054 PR gdb/22992
7055 * windows-nat.c (current_event): Update comment.
7056 (last_wait_event, desired_stop_thread_id): New globals.
7057 (struct pending_stop): New.
7058 (pending_stops): New global.
7059 (windows_nat_target) <stopped_by_sw_breakpoint>
7060 <supports_stopped_by_sw_breakpoint>: New methods.
7061 (windows_fetch_one_register): Add assertions. Adjust PC.
7062 (windows_continue): Handle pending stops. Suspend other threads
7063 when stepping. Use last_wait_event
7064 (wait_for_debug_event): New function.
7065 (get_windows_debug_event): Use wait_for_debug_event. Handle
7066 pending stops. Queue spurious stops.
7067 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7068 (windows_nat_target::kill): Use wait_for_debug_event.
7069 * nat/windows-nat.h (struct windows_thread_info)
7070 <stopped_at_software_breakpoint>: New field.
7071 * nat/windows-nat.c (windows_thread_info::resume): Clear
7072 stopped_at_software_breakpoint.
7073
7074 2020-04-08 Tom Tromey <tromey@adacore.com>
7075
7076 * windows-nat.c (enum thread_disposition_type): New.
7077 (thread_rec): Replace "get_context" parameter with "disposition";
7078 change type.
7079 (windows_add_thread, windows_nat_target::fetch_registers)
7080 (windows_nat_target::store_registers, handle_exception)
7081 (windows_nat_target::resume, get_windows_debug_event)
7082 (windows_nat_target::get_tib_address)
7083 (windows_nat_target::thread_name)
7084 (windows_nat_target::thread_alive): Update.
7085
7086 2020-04-08 Tom Tromey <tromey@adacore.com>
7087
7088 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7089 (windows_continue): Use windows_continue::resume.
7090 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7091 resume>: Declare new methods.
7092 * nat/windows-nat.c: New file.
7093 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7094
7095 2020-04-08 Tom Tromey <tromey@adacore.com>
7096
7097 * windows-nat.c (windows_add_thread, windows_delete_thread)
7098 (windows_nat_target::fetch_registers)
7099 (windows_nat_target::store_registers, fake_create_process)
7100 (windows_nat_target::resume, windows_nat_target::resume)
7101 (get_windows_debug_event, windows_nat_target::wait)
7102 (windows_nat_target::pid_to_str)
7103 (windows_nat_target::get_tib_address)
7104 (windows_nat_target::get_ada_task_ptid)
7105 (windows_nat_target::thread_name)
7106 (windows_nat_target::thread_alive): Use lwp, not tid.
7107
7108 2020-04-08 Tom Tromey <tromey@adacore.com>
7109
7110 * windows-nat.c (handle_exception)
7111 (windows_nat_target::thread_name): Update.
7112 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7113 <name>: Now unique_xmalloc_ptr.
7114
7115 2020-04-08 Tom Tromey <tromey@adacore.com>
7116
7117 * windows-nat.c (thread_rec)
7118 (windows_nat_target::fetch_registers): Update.
7119 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7120 Update comment.
7121 <debug_registers_changed, reload_context>: Now bool.
7122
7123 2020-04-08 Tom Tromey <tromey@adacore.com>
7124
7125 * windows-nat.c (windows_add_thread): Use new.
7126 (windows_init_thread_list, windows_delete_thread): Use delete.
7127 (get_windows_debug_event): Update.
7128 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7129 destructor, and initializers.
7130
7131 2020-04-08 Tom Tromey <tromey@adacore.com>
7132
7133 * windows-nat.c (struct windows_thread_info): Remove.
7134 * nat/windows-nat.h: New file.
7135
7136 2020-04-08 Tom Tromey <tromey@adacore.com>
7137
7138 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7139 (thread_rec, windows_add_thread, windows_delete_thread)
7140 (windows_continue): Update.
7141
7142 2020-04-08 Tom Tromey <tromey@adacore.com>
7143
7144 * windows-nat.c (struct windows_thread_info): Remove typedef.
7145 (thread_head): Remove.
7146 (thread_list): New global.
7147 (thread_rec, windows_add_thread, windows_init_thread_list)
7148 (windows_delete_thread, windows_continue): Update.
7149
7150 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7151
7152 * windows-tdep.h (windows_init_abi): Add comment.
7153 (cygwin_init_abi): New declaration.
7154 * windows-tdep.c: Split signal enumeration in two, one for
7155 Windows and one for Cygwin.
7156 (windows_gdb_signal_to_target): Only deal with signal of the
7157 Windows OS ABI.
7158 (cygwin_gdb_signal_to_target): New function.
7159 (windows_init_abi): Rename to windows_init_abi_common, don't set
7160 gdb_signal_to_target gdbarch method. Add new new function with
7161 this name.
7162 (cygwin_init_abi): New function.
7163 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7164 comment. Don't call windows_init_abi.
7165 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7166 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7167 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7168 i386_windows_init_abi_common, don't call windows_init_abi. Add
7169 a new function of this name.
7170 (i386_cygwin_init_abi): New function.
7171 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7172 OS ABI Cygwin.
7173
7174 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7175
7176 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7177 parameter.c.
7178 (dwarf2_read_gdb_index): Update.
7179
7180 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7181
7182 * nbsd-tdep.c: Include "objfiles.h".
7183 (nbsd_skip_solib_resolver): New.
7184 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7185
7186 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7187
7188 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7189 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7190 with DW_LLE_base_addressx are being emitted in DWARFv5.
7191 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7192 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7193 unsigned integer.
7194
7195 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7196
7197 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7198 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7199 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7200 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7201 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7202 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7203 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7204
7205
7206 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7207
7208 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7209 (read_loclist_index): New function definition.
7210 (lookup_loclist_base): New function definition.
7211 (read_loclist_header): New function definition.
7212 (dwarf2_cu): Add loclist_base and loclist_header field.
7213 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7214 (read_full_die_1): Read the value of DW_AT_loclists_base.
7215 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7216 (read_attribute_value): Handle DW_FORM_loclistx.
7217 (skip_one_die): Handle DW_FORM_loclistx.
7218 (loclist_header): New structure declaration.
7219 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7220
7221 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7222
7223 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7224 constructor. Remove `addr` parameter from other constructor and
7225 add `per_cu` parameter.
7226 * dwarf2/read.c (create_partial_symtab): Update.
7227
7228 2020-04-07 Tom de Vries <tdevries@suse.de>
7229
7230 PR symtab/25796
7231 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7232 (partial_die_info::fixup): Inherit has_const_value.
7233
7234 2020-04-07 Tom de Vries <tdevries@suse.de>
7235
7236 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7237 symbols without address.
7238
7239 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7240
7241 * nbsd-nat.h (struct thread_info): Add forward declaration.
7242 (nbsd_nat_target::thread_alive): Add.
7243 (nbsd_nat_target::thread_name): Likewise.
7244 (nbsd_nat_target::update_thread_list): Likewise.
7245 (update_thread_list::post_attach): Likewise.
7246 (post_attach::pid_to_str): Likewise.
7247 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7248 (nbsd_thread_lister): Add.
7249 (nbsd_nat_target::thread_alive): Likewise.
7250 (nbsd_nat_target::thread_name): Likewise.
7251 (nbsd_add_threads): Likewise.
7252 (update_thread_list::post_attach): Likewise.
7253 (nbsd_nat_target::update_thread_list): Likewise.
7254 (post_attach::pid_to_str): Likewise.
7255
7256 2020-04-06 Tom Tromey <tromey@adacore.com>
7257
7258 * ada-valprint.c (print_variant_part): Extract the variant field.
7259 (print_field_values): Use the field as the outer value when
7260 recursing.
7261
7262 2020-04-06 Tom Tromey <tromey@adacore.com>
7263
7264 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7265 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7266 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7267 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7268 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7269
7270 2020-04-06 Tom Tromey <tromey@adacore.com>
7271
7272 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7273 TYPE_CODE_ERROR.
7274
7275 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7276
7277 * nbsd-tdep.c: Include "gdbarch.h".
7278 Define enum with NetBSD signal numbers.
7279 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7280 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7281 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7282 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7283 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7284 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7285 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7286 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7287 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7288 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7289 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7290 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7291
7292 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7293
7294 PR gdb/25325
7295 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7296
7297 2020-04-03 Tom Tromey <tromey@adacore.com>
7298
7299 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7300 Read constant block.
7301
7302 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7303
7304 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7305 (gdb_bfd_get_full_section_contents): New declaration.
7306 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7307 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7308 gdb_bfd_get_full_section_contents.
7309
7310 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7311
7312 * exec.c (build_section_table): Replace internal_error with
7313 gdb_assert.
7314 (section_table_xfer_memory_partial): Likewise.
7315 * mdebugread.c (parse_partial_symbols): Likewise.
7316 * psymtab.c (lookup_partial_symbol): Likewise.
7317 * utils.c (wrap_here): Likewise.
7318
7319 2020-04-02 Tom Tromey <tromey@adacore.com>
7320
7321 * f-lang.c (build_fortran_types): Use arch_type to initialize
7322 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7323
7324 2020-04-02 Tom Tromey <tromey@adacore.com>
7325
7326 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7327 of attributes.
7328
7329 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7330 Bernd Edlinger <bernd.edlinger@hotmail.de>
7331 Tom Tromey <tromey@adacore.com>
7332
7333 * buildsym.c (buildsym_compunit::record_line): Remove
7334 deduplication code.
7335
7336 2020-04-02 Tom de Vries <tdevries@suse.de>
7337
7338 PR ada/24671
7339 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7340
7341 2020-04-02 Tom de Vries <tdevries@suse.de>
7342
7343 * dwarf2/read.c (dwarf2_gdb_index_functions,
7344 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7345 NULL.
7346 * psymtab.c (psym_lookup_global_symbol_language): New function.
7347 (psym_functions): Init psym_lookup_global_symbol_language with
7348 psym_lookup_global_symbol_language.
7349 * symfile-debug.c (debug_sym_quick_functions): Init
7350 lookup_global_symbol_language with NULL.
7351 * symfile.c (set_initial_language): Remove fixme comment.
7352 * symfile.h (struct quick_symbol_functions): Add
7353 lookup_global_symbol_language.
7354 * symtab.c (find_quick_global_symbol_language): New function.
7355 (find_main_name): Use find_quick_global_symbol_language.
7356
7357 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7358
7359 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7360
7361 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7362
7363 * buildsym.c (record_line): Fix undefined behavior and preserve
7364 lines at eof.
7365
7366 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7367
7368 * buildsym.c (record_line): Fix the resizing condition.
7369
7370 2020-04-01 Tom Tromey <tom@tromey.com>
7371
7372 * value.h (value_literal_complex): Add comment.
7373 * valops.c (value_literal_complex): Refer to value.h.
7374
7375 2020-04-01 Tom Tromey <tom@tromey.com>
7376
7377 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7378 (scalar_type): New rule, from typebase.
7379 (typebase): Use scalar_type. Recognize complex types.
7380 (field_name): Handle FLOAT_KEYWORD.
7381 (ident_tokens): Add _Complex and __complex__.
7382
7383 2020-04-01 Tom Tromey <tom@tromey.com>
7384
7385 PR exp/25299:
7386 * valarith.c (promotion_type, complex_binop): New functions.
7387 (scalar_binop): Handle complex numbers. Use promotion_type.
7388 (value_pos, value_neg, value_complement): Handle complex numbers.
7389
7390 2020-04-01 Tom Tromey <tom@tromey.com>
7391
7392 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7393 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7394 (parse_number): Handle complex numbers.
7395
7396 2020-04-01 Tom Tromey <tom@tromey.com>
7397
7398 * c-valprint.c (c_decorations): Change complex suffix to "i".
7399
7400 2020-04-01 Tom Tromey <tom@tromey.com>
7401
7402 * valprint.c (generic_value_print_complex): Use accessors.
7403 * value.h (value_real_part, value_imaginary_part): Declare.
7404 * valops.c (value_real_part, value_imaginary_part): New
7405 functions.
7406 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7407
7408 2020-04-01 Tom Tromey <tom@tromey.com>
7409
7410 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7411 (read_range_type): Update.
7412 * mdebugread.c (basic_type): Update.
7413 * go-lang.c (build_go_types): Use init_complex_type.
7414 * gdbtypes.h (struct main_type) <complex_type>: New member.
7415 (init_complex_type): Update.
7416 (arch_complex_type): Don't declare.
7417 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7418 Make name if none given. Use alloc_type_copy. Look for cached
7419 complex type.
7420 (arch_complex_type): Remove.
7421 (gdbtypes_post_init): Use init_complex_type.
7422 * f-lang.c (build_fortran_types): Use init_complex_type.
7423 * dwarf2/read.c (read_base_type): Update.
7424 * d-lang.c (build_d_types): Use init_complex_type.
7425 * ctfread.c (read_base_type): Update.
7426
7427 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7428
7429 * infrun.c (stop_all_threads): Update assertion, plus when
7430 stopping threads, take into account that we might be trying
7431 to stop an all-stop target.
7432 (stop_waiting): Call 'stop_all_threads' if there exists a
7433 non-stop target.
7434
7435 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7436
7437 * target.h (exists_non_stop_target): New function declaration.
7438 * target.c (exists_non_stop_target): New function.
7439
7440 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7441
7442 PR gdb/24789
7443 * eval.c (is_integral_or_integral_reference): New function.
7444 (evaluate_subexp_standard): Allow integer references in
7445 pointer arithmetic.
7446
7447 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7448
7449 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7450 check for no ptid in the stop reply when the target is non-stop.
7451
7452 2020-04-01 Tom Tromey <tromey@adacore.com>
7453
7454 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7455 "name" parameter to rvalue reference. Initialize m_name_holder.
7456 <lookup_name_info>: New overloads.
7457 <name>: Return gdb::string_view.
7458 <c_str>: New method.
7459 <make_ignore_params>: Update.
7460 <search_name_hash>: Update.
7461 <language_lookup_name>: Return const char *.
7462 <m_name>: Change type.
7463 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7464 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7465 (lookup_name_info::match_any): Update.
7466 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7467 Update.
7468 * minsyms.c (linkage_name_str): Update.
7469 * language.c (default_symbol_name_matcher): Update.
7470 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7471 Update.
7472 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7473 (ada_lookup_name_info::ada_lookup_name_info): Update.
7474 (literal_symbol_name_matcher): Update.
7475
7476 2020-04-01 Tom Tromey <tromey@adacore.com>
7477
7478 * psymtab.c (psymtab_search_name): Remove function.
7479 (psym_lookup_symbol): Create search name and lookup name here.
7480 (lookup_partial_symbol): Remove "name" parameter; add
7481 lookup_name.
7482 (psym_expand_symtabs_for_function): Update.
7483
7484 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7485
7486 PR tui/25597:
7487 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7488
7489 2020-03-31 Tom Tromey <tromey@adacore.com>
7490
7491 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7492 memcpy.
7493
7494 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7495
7496 * features/riscv/32bit-csr.xml: Regenerated.
7497 * features/riscv/64bit-csr.xml: Regenerated.
7498
7499 2020-03-30 Tom Tromey <tromey@adacore.com>
7500
7501 * ada-valprint.c (print_variant_part): Update.
7502 * ada-lang.h (ada_which_variant_applies): Update.
7503 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7504 outer_valaddr parameters; replace with "outer" value parameter.
7505 (to_fixed_variant_branch_type): Update.
7506
7507 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7508
7509 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7510 <list>. Remove inclusion of observable.h.
7511 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7512 (struct arch_lwp_info): New struct.
7513 (class ppc_linux_dreg_interface): New class.
7514 (struct ppc_linux_process_info): New struct.
7515 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7516 <low_new_clone, low_forget_process, low_prepare_to_resume>
7517 <copy_thread_dreg_state, mark_thread_stale>
7518 <mark_debug_registers_changed, register_hw_breakpoint>
7519 <clear_hw_breakpoint, register_wp, clear_wp>
7520 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7521 <num_memory_accesses, get_trigger_type>
7522 <create_watchpoint_request, hwdebug_point_cmp>
7523 <init_arch_lwp_info, get_arch_lwp_info>
7524 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7525 methods.
7526 <struct ptid_hash>: New inner struct.
7527 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7528 members.
7529 (saved_dabr_value, hwdebug_info, max_slots_number)
7530 (struct hw_break_tuple, struct thread_points, ppc_threads)
7531 (have_ptrace_hwdebug_interface)
7532 (hwdebug_find_thread_points_by_tid)
7533 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7534 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7535 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7536 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7537 use m_dreg_interface.
7538 (hwdebug_point_cmp): Change to...
7539 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7540 reference arguments instead of pointers.
7541 (ppc_linux_nat_target::ranged_break_num_registers): Use
7542 m_dreg_interface.
7543 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7544 m_dreg_interface. Call register_hw_breakpoint.
7545 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7546 m_dreg_interface. Call clear_hw_breakpoint.
7547 (get_trigger_type): Change to...
7548 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7549 comment.
7550 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7551 use m_dreg_interface. Call register_hw_breakpoint.
7552 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7553 use m_dreg_interface. Call clear_hw_breakpoint.
7554 (can_use_watchpoint_cond_accel): Change to...
7555 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7556 method. Update comment, use m_dreg_interface and
7557 m_process_info.
7558 (calculate_dvc): Change to...
7559 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7560 m_dreg_interface.
7561 (num_memory_accesses): Change to...
7562 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7563 (check_condition): Change to...
7564 (ppc_linux_nat_target::check_condition): ...this method.
7565 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7566 comment, use m_dreg_interface.
7567 (create_watchpoint_request): Change to...
7568 (ppc_linux_nat_target::create_watchpoint_request): ...this
7569 method. Use m_dreg_interface.
7570 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7571 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7572 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7573 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7574 (ppc_linux_nat_target::low_forget_process)
7575 (ppc_linux_nat_target::low_new_fork)
7576 (ppc_linux_nat_target::low_new_clone)
7577 (ppc_linux_nat_target::low_delete_thread)
7578 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7579 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7580 only call mark_thread_stale.
7581 (ppc_linux_thread_exit): Remove.
7582 (ppc_linux_nat_target::stopped_data_address): Change to...
7583 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7584 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7585 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7586 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7587 comment. Call low_stopped_data_address.
7588 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7589 m_dreg_interface.
7590 (ppc_linux_nat_target::masked_watch_num_registers): Use
7591 m_dreg_interface.
7592 (ppc_linux_nat_target::copy_thread_dreg_state)
7593 (ppc_linux_nat_target::mark_thread_stale)
7594 (ppc_linux_nat_target::mark_debug_registers_changed)
7595 (ppc_linux_nat_target::register_hw_breakpoint)
7596 (ppc_linux_nat_target::clear_hw_breakpoint)
7597 (ppc_linux_nat_target::register_wp)
7598 (ppc_linux_nat_target::clear_wp)
7599 (ppc_linux_nat_target::init_arch_lwp_info)
7600 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7601 (_initialize_ppc_linux_nat): Remove observer callback.
7602
7603 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7604
7605 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7606 (ppc_linux_nat_target::auxv_parse)
7607 (ppc_linux_nat_target::read_description)
7608 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7609 Move up.
7610
7611 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7612
7613 * linux-nat.h (low_new_clone): New method.
7614 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7615
7616 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7617
7618 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7619 (dbx_expand_psymtab): ... this.
7620 (start_psymtab): Update.
7621 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7622 (mdebug_expand_psymtab): ... this.
7623 (parse_partial_symbols): Update.
7624 (new_psymtab): Update.
7625 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7626 (xcoff_expand_psymtab): ... this.
7627 (xcoff_start_psymtab): Update.
7628
7629 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7630
7631 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7632 <expand_dependencies>: ... this.
7633 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7634 (partial_symtab::expand_dependencies): ... this.
7635 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7636 Update.
7637 (dwarf2_psymtab::expand_psymtab): Update.
7638 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7639 * mdebugread.c (psymtab_to_symtab_1): Update.
7640 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7641
7642 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7643
7644 * psympriv.h (discard_psymtab): Remove.
7645 * dbxread.c (dbx_end_psymtab): Update.
7646 * xcoffread.c (xcoff_end_psymtab): Update.
7647
7648 2020-03-28 Tom Tromey <tom@tromey.com>
7649
7650 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7651 comment.
7652
7653 2020-03-28 Tom Tromey <tom@tromey.com>
7654
7655 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7656
7657 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7658
7659 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7660
7661 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7662
7663 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7664
7665 2020-03-26 Tom Tromey <tom@tromey.com>
7666
7667 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7668 (mark_common_block_symbol_computed, read_tag_string_type)
7669 (attr_to_dynamic_prop, read_subrange_type): Update.
7670 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7671 to be methods on struct attribute.
7672 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7673 (read_call_site_scope, partial_die_info::read)
7674 (partial_die_info::read, lookup_die_type, follow_die_ref):
7675 Update.
7676 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7677 from dwarf2_get_ref_die_offset.
7678 (attribute::constant_value): New method, from
7679 dwarf2_get_attr_constant_value.
7680 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7681 Declare method.
7682 <constant_value>: New method.
7683
7684 2020-03-26 Tom Tromey <tom@tromey.com>
7685
7686 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7687 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7688 (dwarf_type_encoding_name): Move to stringify.c.
7689 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7690 * dwarf2/stringify.c: New file.
7691 * dwarf2/stringify.h: New file.
7692
7693 2020-03-26 Tom Tromey <tom@tromey.com>
7694
7695 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7696 Rewrite.
7697
7698 2020-03-26 Tom Tromey <tom@tromey.com>
7699
7700 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7701 methods.
7702 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7703 (lookup_ranges_base): Likewise.
7704 (read_cutu_die_from_dwo, read_full_die_1): Update.
7705
7706 2020-03-26 Tom Tromey <tom@tromey.com>
7707
7708 * dwarf2/read.c (read_import_statement, read_file_scope)
7709 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7710 (read_lexical_block_scope, read_call_site_scope)
7711 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7712 (handle_struct_member_die, process_structure_scope)
7713 (update_enumeration_type_from_children)
7714 (process_enumeration_scope, read_array_type, read_common_block)
7715 (read_namespace, read_module, read_subroutine_type): Update.
7716 (sibling_die): Remove.
7717
7718 2020-03-26 Tom Tromey <tom@tromey.com>
7719
7720 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7721 (build_type_psymtabs_reader, read_structure_type)
7722 (read_enumeration_type, read_full_die_1): Update.
7723 (dwarf2_attr_no_follow): Move to die.h.
7724 * dwarf2/die.h (struct die_info) <attr>: New method.
7725
7726 2020-03-26 Tom Tromey <tom@tromey.com>
7727
7728 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7729 <base_address>: Now an optional.
7730 (dwarf2_find_base_address, dwarf2_rnglists_process)
7731 (dwarf2_ranges_process, fill_in_loclist_baton)
7732 (dwarf2_symbol_mark_computed): Update.
7733
7734 2020-03-26 Tom Tromey <tom@tromey.com>
7735
7736 * dwarf2/read.c (struct die_info): Move to die.h.
7737 * dwarf2/die.h: New file.
7738
7739 2020-03-26 Tom Tromey <tom@tromey.com>
7740
7741 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7742 * dwarf2/read.c
7743 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7744 Move to line-header.c.
7745 (read_checked_initial_length_and_offset, read_formatted_entries):
7746 Likewise.
7747 (dwarf_decode_line_header): Split into two.
7748 * dwarf2/line-header.c
7749 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7750 Move from read.c.
7751 (read_checked_initial_length_and_offset, read_formatted_entries):
7752 Likewise.
7753 (dwarf_decode_line_header): New function, split from read.c.
7754
7755 2020-03-26 Tom Tromey <tom@tromey.com>
7756
7757 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7758 Declare method.
7759 * dwarf2/read.c (read_attribute_value): Update.
7760 (dwarf2_per_objfile::read_line_string): Rename from
7761 read_indirect_line_string.
7762 (read_formatted_entries): Update.
7763
7764 2020-03-26 Tom Tromey <tom@tromey.com>
7765
7766 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7767 variable.
7768
7769 2020-03-26 Tom Tromey <tom@tromey.com>
7770
7771 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7772 const.
7773 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7774 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7775 parameter const.
7776
7777 2020-03-26 Tom Tromey <tom@tromey.com>
7778
7779 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7780 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7781 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7782 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7783
7784 2020-03-26 Tom Tromey <tom@tromey.com>
7785
7786 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7787 file_names_size, file_full_name, file_file_name>: Use const.
7788 <file_name_at, file_names>: Add const overload.
7789 * dwarf2/line-header.c (line_header::file_file_name)
7790 (line_header::file_full_name): Update.
7791
7792 2020-03-26 Tom Tromey <tom@tromey.com>
7793
7794 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7795 (macro_start_file, consume_improper_spaces)
7796 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7797 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7798 (dwarf_decode_macros): Move to macro.c.
7799 * dwarf2/macro.c: New file.
7800 * dwarf2/macro.h: New file.
7801 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7802
7803 2020-03-26 Tom Tromey <tom@tromey.com>
7804
7805 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7806 method.
7807 * dwarf2/section.c: New method. From
7808 read_indirect_string_at_offset_from.
7809 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7810 (read_indirect_string_at_offset_from): Move to section.c.
7811 (read_indirect_string_at_offset): Rewrite.
7812 (read_indirect_line_string_at_offset): Remove.
7813 (read_indirect_string, read_indirect_line_string)
7814 (dwarf_decode_macro_bytes): Update.
7815
7816 2020-03-26 Tom Tromey <tom@tromey.com>
7817
7818 * dwarf2/section.h (struct dwarf2_section_info)
7819 <overload_complaint>: Declare.
7820 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7821 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7822 Rename from dwarf2_section_buffer_overflow_complaint.
7823 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7824 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7825
7826 2020-03-26 Tom Tromey <tom@tromey.com>
7827
7828 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7829 Declare.
7830 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7831 Move from read.c.
7832 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7833 to section.c.
7834
7835 2020-03-26 Tom Tromey <tom@tromey.com>
7836
7837 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7838
7839 2020-03-26 Tom Tromey <tom@tromey.com>
7840
7841 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7842 "builder".
7843 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7844 parameter.
7845 (dwarf_decode_macros): Update.
7846
7847 2020-03-26 Tom Tromey <tom@tromey.com>
7848
7849 * dwarf2/read.c (read_attribute_value): Update.
7850 (read_indirect_string_from_dwz): Move to dwz.c; change into
7851 method.
7852 (dwarf_decode_macro_bytes): Update.
7853 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7854 * dwarf2/dwz.c: New file.
7855 * Makefile.in (COMMON_SFILES): Add dwz.c.
7856
7857 2020-03-26 Tom Tromey <tom@tromey.com>
7858
7859 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7860 * dwarf2/read.c: Add include.
7861 * dwarf2/index-write.c: Add include.
7862 * dwarf2/index-cache.c: Add include.
7863 * dwarf2/dwz.h: New file.
7864
7865 2020-03-25 Tom Tromey <tom@tromey.com>
7866
7867 * compile/compile-object-load.c (get_out_value_type): Mention
7868 correct symbol name in error message.
7869
7870 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7871
7872 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7873
7874 2020-03-25 Tom de Vries <tdevries@suse.de>
7875
7876 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7877 * symmisc.c (dump_symtab_1): Print user and includes fields.
7878 (maintenance_info_symtabs): Same.
7879
7880 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 PR gdb/25534
7883 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7884 (riscv_regcache_cooked_write): New function.
7885 (riscv_push_dummy_call): Use new function.
7886 (riscv_return_value): Likewise.
7887
7888 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7889
7890 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7891 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7892 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7893 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7894 * infrun.c (follow_fork): Likewise.
7895 (follow_fork_inferior): Likewise.
7896 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7897 * linux-nat.h (class linux_nat_target): Likewise.
7898 * remote.c (class remote_target) <follow_fork>: Likewise.
7899 (remote_target::follow_fork): Likewise.
7900 * target-delegates.c: Re-generate.
7901 * target.c (default_follow_fork): Likewise.
7902 (target_follow_fork): Likewise.
7903 * target.h (struct target_ops) <follow_fork>: Likewise.
7904 (target_follow_fork): Likewise.
7905
7906 2020-03-24 Tom de Vries <tdevries@suse.de>
7907
7908 * psymtab.c (maintenance_info_psymtabs): Print user field.
7909
7910 2020-03-20 Tom Tromey <tromey@adacore.com>
7911
7912 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7913 const.
7914 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7915 const.
7916
7917 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7918
7919 * ptrace.m4: Don't check for ptrace declaration.
7920 * config.in: Re-generate.
7921 * configure: Re-generate.
7922 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7923 not defined.
7924
7925 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7926
7927 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7928 `PTRACE_TYPE_RET'.
7929 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7930 * sparc-nat.c (gdb_ptrace): Likewise.
7931 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7932
7933 2020-03-20 Tom Tromey <tromey@adacore.com>
7934
7935 * c-exp.y (lex_one_token): Fix assert.
7936
7937 2020-03-20 Tom Tromey <tromey@adacore.com>
7938
7939 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7940 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7941 strncpy call.
7942
7943 2020-03-20 Tom Tromey <tromey@adacore.com>
7944
7945 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7946
7947 2020-03-20 Tom Tromey <tromey@adacore.com>
7948
7949 * ada-valprint.c (print_variant_part): Remove parameters; switch
7950 to value-based API.
7951 (print_field_values): Likewise.
7952 (ada_val_print_struct_union): Likewise.
7953 (ada_value_print_1): Update.
7954
7955 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7956
7957 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7958 nbsd_nat_target instead of inf_ptrace_target.
7959 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7960 nbsd_nat_target.
7961
7962 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7963
7964 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7965 it to the ptrace call.
7966 * (store_registers): Likewise.
7967
7968 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7969
7970 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7971 it to the ptrace call.
7972 * (store_registers): Likewise.
7973
7974 2020-03-19 Luis Machado <luis.machado@linaro.org>
7975
7976 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7977 valid, fetch vg value from ptrace.
7978
7979 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7980 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7981 * inf-ptrace.c: Likewise.
7982 * (gdb_ptrace): Add.
7983 * (inf_ptrace_target::resume): Update.
7984 * (inf_ptrace_target::xfer_partial): Likewise.
7985 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7986 * (inf_ptrace_peek_poke): Update.
7987
7988 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7989
7990 * x86-bsd-nat.c (gdb_ptrace): New.
7991 * (x86bsd_dr_set): Add new argument `ptid'.
7992 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7993 x86bsd_dr_set_addr): Update.
7994
7995 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7996
7997 * remote.c (remote_target::process_stop_reply): Handle events for
7998 all threads differently.
7999
8000 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8001
8002 * completer.c (completion_tracker::remove_completion): Define new
8003 function.
8004 * completer.h (completion_tracker::remove_completion): Declare new
8005 function.
8006 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8007 when adding a C++ function symbol.
8008
8009 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8010
8011 * completer.c (completion_tracker::completion_hash_entry): Define
8012 new class.
8013 (advance_to_filename_complete_word_point): Call
8014 recompute_lowest_common_denominator.
8015 (completion_tracker::completion_tracker): Call discard_completions
8016 to setup the hash table.
8017 (completion_tracker::discard_completions): Allow for being called
8018 from the constructor, pass new equal function, and element deleter
8019 when constructing the hash table. Initialise new class member
8020 variables.
8021 (completion_tracker::maybe_add_completion): Remove use of
8022 m_entries_vec, and store more information into m_entries_hash.
8023 (completion_tracker::recompute_lcd_visitor): New function, most
8024 content taken from...
8025 (completion_tracker::recompute_lowest_common_denominator):
8026 ...here, this now just visits each item in the hash calling the
8027 above visitor.
8028 (completion_tracker::build_completion_result): Remove use of
8029 m_entries_vec, call recompute_lowest_common_denominator.
8030 * completer.h (completion_tracker::have_completions): Remove use
8031 of m_entries_vec.
8032 (completion_tracker::completion_hash_entry): Declare new class.
8033 (completion_tracker::recompute_lowest_common_denominator): Change
8034 function signature.
8035 (completion_tracker::recompute_lcd_visitor): Declare new function.
8036 (completion_tracker::m_entries_vec): Delete.
8037 (completion_tracker::m_entries_hash): Initialize to NULL.
8038 (completion_tracker::m_lowest_common_denominator_valid): New
8039 member variable.
8040 (completion_tracker::m_lowest_common_denominator_max_length): New
8041 member variable.
8042
8043 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8044
8045 * regformats/regdef.h: Put reg in gdb namespace.
8046
8047 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8048
8049 * i386-bsd-nat.c (gdb_ptrace): New.
8050 * (i386bsd_fetch_inferior_registers,
8051 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8052 * (i386bsd_fetch_inferior_registers,
8053 i386bsd_store_inferior_registers) Use gdb_ptrace.
8054
8055 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8056
8057 * amd64-bsd-nat.c (gdb_ptrace): New.
8058 * (amd64bsd_fetch_inferior_registers,
8059 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8060 * (amd64bsd_fetch_inferior_registers,
8061 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8062
8063 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8064
8065 * user-regs.c (user_reg::read): Rename to...
8066 (user_reg::xread): ...this.
8067 * (append_user_reg): Rename argument `read' to `xread'.
8068 * (user_reg_add_builtin): Likewise.
8069 * (user_reg_add): Likewise.
8070 * (value_of_user_reg): Likewise.
8071
8072 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8073
8074 * sparc-nat.c (gdb_ptrace): New.
8075 * sparc-nat.c (sparc_fetch_inferior_registers)
8076 (sparc_store_inferior_registers) Remove obsolete comment.
8077 * sparc-nat.c (sparc_fetch_inferior_registers)
8078 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8079 * sparc-nat.c (sparc_fetch_inferior_registers)
8080 (sparc_store_inferior_registers) Use gdb_ptrace.
8081
8082 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8083
8084 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8085 it to the ptrace call.
8086 * sh-nbsd-nat.c (store_registers): Likewise.
8087
8088 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8089
8090 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8091 nbsd_nat_target instead of inf_ptrace_target.
8092 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8093 nbsd_nat_target.
8094
8095 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8096
8097 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8098
8099 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8100
8101 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8102 <sys/sysctl.h>.
8103 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8104
8105 2020-03-17 Tom de Vries <tdevries@suse.de>
8106
8107 PR gdb/23710
8108 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8109 fields.
8110 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8111 fields.
8112 (process_imported_unit_die): Skip import of c++ CUs.
8113
8114 2020-03-16 Tom Tromey <tom@tromey.com>
8115
8116 * p-valprint.c (pascal_object_print_value): Initialize
8117 base_value.
8118
8119 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8120 Shahab Vahedi <shahab@synopsys.com>
8121
8122 * Makefile.in: Add arch/arc.o
8123 * configure.tgt: Likewise.
8124 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8125 (_initialize_arc_tdep): Don't initialize old target descriptions.
8126 (arc_read_description): New function to cache target descriptions.
8127 * arc-tdep.h (arc_read_description): Add proto type.
8128 * arch/arc.c: New file.
8129 * arch/arc.h: Likewise.
8130 * features/Makefile: Replace old target descriptions with new.
8131 * features/arc-arcompact.c: Remove.
8132 * features/arc-arcompact.xml: Likewise.
8133 * features/arc-v2.c: Likewise
8134 * features/arc-v2.xml: Likewise
8135 * features/arc/aux-arcompact.xml: New file.
8136 * features/arc/aux-v2.xml: Likewise.
8137 * features/arc/core-arcompact.xml: Likewise.
8138 * features/arc/core-v2.xml: Likewise.
8139 * features/arc/aux-arcompact.c: Generate.
8140 * features/arc/aux-v2.c: Likewise.
8141 * features/arc/core-arcompact.c: Likewise.
8142 * features/arc/core-v2.c: Likewise.
8143 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8144
8145 2020-03-16 Tom Tromey <tromey@adacore.com>
8146
8147 PR gdb/25663:
8148 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8149 putting value into bcache.
8150
8151 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8152
8153 PR gdb/21500
8154 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8155 to...
8156 (amd64_windows_init_abi_common): ... this. Don't set size of
8157 long type.
8158 (amd64_windows_init_abi): New function.
8159 (amd64_cygwin_init_abi): New function.
8160 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8161 the Cygwin OS ABI.
8162 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8163 comment.
8164
8165 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8166
8167 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8168 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8169 (pe_import_directory_entry): New struct type.
8170 (is_linked_with_cygwin_dll): New function.
8171 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8172 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8173 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8174
8175 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8176
8177 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8178 i386_cygwin_core_osabi_sniffer.
8179
8180 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8181
8182 * i386-cygwin-tdep.c: Rename to...
8183 * i386-windows-tdep.c: ... this.
8184 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8185 i386-windows-tdep.c.
8186 * configure.tgt: Likewise.
8187
8188 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8189
8190 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8191 * osabi.c (gdb_osabi_names): Add "Windows".
8192 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8193 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8194 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8195 i386_cygwin_osabi_sniffer.
8196 (_initialize_i386_cygwin_tdep): Register OS ABI
8197 GDB_OSABI_WINDOWS for i386.
8198 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8199 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8200 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8201 for x86-64.
8202 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8203 when the target matches '*-*-mingw*'.
8204
8205 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8206
8207 * defs.h (enum gdb_osabi): Move to...
8208 * osabi.h (enum gdb_osabi): ... here.
8209 * gdbarch.sh: Include osabi.h in gdbarch.h.
8210 * gdbarch.h: Re-generate.
8211
8212 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8213
8214 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8215 function.
8216 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8217
8218 2020-03-14 Tom Tromey <tom@tromey.com>
8219
8220 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8221 for C++.
8222 (c_type_print_modifier): Likewise. Add "language" parameter.
8223 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8224 (c_type_print_base_1): Update.
8225 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8226 constants.
8227 * type-stack.c (type_stack::insert): Handle tp_atomic and
8228 tp_restrict.
8229 (type_stack::follow_type_instance_flags): Likewise.
8230 (type_stack::follow_types): Likewise. Merge type-following code.
8231 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8232 (space_identifier, cv_with_space_id)
8233 (const_or_volatile_or_space_identifier_noopt)
8234 (const_or_volatile_or_space_identifier): Remove.
8235 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8236 rules.
8237 (ptr_operator, typebase): Update.
8238 (enum token_flag) <FLAG_C>: New constant.
8239 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8240 "_Atomic".
8241 (lex_one_token): Handle FLAG_C.
8242
8243 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8244
8245 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8246 it to the ptrace call.
8247 * m68k-bsd-nat.c (store_registers): Likewise.
8248
8249 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8250
8251 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8252 gdb_byte *.
8253 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8254 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8255 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8256
8257 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8258
8259 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8260 nbsd_nat_target instead of inf_ptrace_target.
8261 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8262 nbsd_nat_target.
8263
8264 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8265
8266 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8267 register_t.
8268
8269 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8270
8271 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8272 it to the ptrace call.
8273 * alpha-bsd-nat.c (store_registers): Likewise.
8274
8275 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8276
8277 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8278 includes.
8279 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8280 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8281 fill_fpregset): Likewise.
8282
8283 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8284
8285 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8286 nbsd_nat_target instead of inf_ptrace_target.
8287 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8288 nbsd_nat_target.
8289
8290 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8291
8292 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8293 register_t.
8294
8295 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8296
8297 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8298 it to the ptrace call.
8299 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8300 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8301 * arm-nbsd-nat.c (store_register): Likewise.
8302 * arm-nbsd-nat.c (store_regs): Likewise.
8303 * arm-nbsd-nat.c (store_fp_register): Likewise.
8304 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8305
8306 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8307
8308 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8309 nbsd_nat_target instead of inf_ptrace_target.
8310 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8311 nbsd_nat_target.
8312
8313 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8314
8315 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8316 it to the ptrace call.
8317 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8318
8319 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8320
8321 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8322 it to the ptrace call.
8323 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8324
8325 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8326
8327 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8328 gdb_byte *.
8329 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8330
8331 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8332
8333 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8334 instead of inf_ptrace_target.
8335 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8336 nbsd_nat_target.
8337
8338 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8339
8340 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8341 register_t.
8342
8343 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8344
8345 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8346 register_t.
8347
8348 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8349
8350 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8351 register_t.
8352
8353 2020-03-13 Tom Tromey <tom@tromey.com>
8354
8355 * value.h (val_print): Don't declare.
8356 * valprint.h (val_print_array_elements)
8357 (val_print_scalar_formatted, generic_val_print): Don't declare.
8358 * valprint.c (generic_val_print_array): Take a struct value.
8359 (generic_val_print_ptr, generic_val_print_memberptr)
8360 (generic_val_print_bool, generic_val_print_int)
8361 (generic_val_print_char, generic_val_print_complex)
8362 (generic_val_print): Remove.
8363 (generic_value_print): Update.
8364 (do_val_print): Remove unused parameters. Don't call
8365 la_val_print.
8366 (val_print): Remove.
8367 (common_val_print): Update. Don't call value_check_printable.
8368 (val_print_scalar_formatted, val_print_array_elements): Remove.
8369 * rust-lang.c (rust_val_print): Remove.
8370 (rust_language_defn): Update.
8371 * p-valprint.c (pascal_val_print): Remove.
8372 (pascal_value_print_inner): Update.
8373 (pascal_object_print_val_fields, pascal_object_print_val):
8374 Remove.
8375 (pascal_object_print_static_field): Update.
8376 * p-lang.h (pascal_val_print): Don't declare.
8377 * p-lang.c (pascal_language_defn): Update.
8378 * opencl-lang.c (opencl_language_defn): Update.
8379 * objc-lang.c (objc_language_defn): Update.
8380 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8381 * m2-lang.h (m2_val_print): Don't declare.
8382 * m2-lang.c (m2_language_defn): Update.
8383 * language.h (struct language_defn) <la_val_print>: Remove.
8384 * language.c (unk_lang_value_print_inner): Rename. Change
8385 argument types.
8386 (unknown_language_defn, auto_language_defn): Update.
8387 * go-valprint.c (go_val_print): Remove.
8388 * go-lang.h (go_val_print): Don't declare.
8389 * go-lang.c (go_language_defn): Update.
8390 * f-valprint.c (f_val_print): Remove.
8391 * f-lang.h (f_value_print): Don't declare.
8392 * f-lang.c (f_language_defn): Update.
8393 * d-valprint.c (d_val_print): Remove.
8394 * d-lang.h (d_value_print): Don't declare.
8395 * d-lang.c (d_language_defn): Update.
8396 * cp-valprint.c (cp_print_value_fields)
8397 (cp_print_value_fields_rtti, cp_print_value): Remove.
8398 (cp_print_static_field): Update.
8399 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8400 (c_val_print_struct, c_val_print_union, c_val_print_int)
8401 (c_val_print_memberptr, c_val_print): Remove.
8402 * c-lang.h (c_val_print_array, cp_print_value_fields)
8403 (cp_print_value_fields_rtti): Don't declare.
8404 * c-lang.c (c_language_defn, cplus_language_defn)
8405 (asm_language_defn, minimal_language_defn): Update.
8406 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8407 (ada_val_print_enum): Take a struct value.
8408 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8409 (ada_val_print): Remove.
8410 (ada_value_print_1): Update.
8411 (printable_val_type): Remove.
8412 * ada-lang.h (ada_val_print): Don't declare.
8413 * ada-lang.c (ada_language_defn): Update.
8414
8415 2020-03-13 Tom Tromey <tom@tromey.com>
8416
8417 * valprint.c (do_val_print): Update.
8418 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8419 a struct value.
8420 (value_to_value_object_no_release): Declare.
8421 * python/py-value.c (value_to_value_object_no_release): New
8422 function.
8423 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8424 struct value.
8425 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8426 function.
8427 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8428 a struct value.
8429 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8430 Declare.
8431 (gdbscm_apply_val_pretty_printer): Take a struct value.
8432 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8433 value.
8434 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8435 value.
8436 * extension-priv.h (struct extension_language_ops)
8437 <apply_val_pretty_printer>: Take a struct value.
8438 * cp-valprint.c (cp_print_value): Create a struct value.
8439 (cp_print_value): Update.
8440
8441 2020-03-13 Tom Tromey <tom@tromey.com>
8442
8443 * ada-valprint.c (print_field_values): Call common_val_print.
8444
8445 2020-03-13 Tom Tromey <tom@tromey.com>
8446
8447 * ada-valprint.c (val_print_packed_array_elements): Remove
8448 bitoffset and val parameters. Call common_val_print.
8449 (ada_val_print_string): Remove offset, address, and original_value
8450 parameters.
8451 (ada_val_print_array): Update.
8452 (ada_value_print_array): New function.
8453 (ada_value_print_1): Call it.
8454
8455 2020-03-13 Tom Tromey <tom@tromey.com>
8456
8457 * ada-valprint.c (ada_value_print): Use common_val_print.
8458
8459 2020-03-13 Tom Tromey <tom@tromey.com>
8460
8461 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8462
8463 2020-03-13 Tom Tromey <tom@tromey.com>
8464
8465 * ada-valprint.c (ada_value_print_num): New function.
8466 (ada_value_print_1): Use it.
8467
8468 2020-03-13 Tom Tromey <tom@tromey.com>
8469
8470 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8471
8472 2020-03-13 Tom Tromey <tom@tromey.com>
8473
8474 * ada-valprint.c (ada_value_print_ptr): New function.
8475 (ada_value_print_1): Use it.
8476
8477 2020-03-13 Tom Tromey <tom@tromey.com>
8478
8479 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8480 call common_val_print.
8481 (ada_val_print_1): Update.
8482 (ada_value_print_1): New function.
8483 (ada_value_print_inner): Rewrite.
8484
8485 2020-03-13 Tom Tromey <tom@tromey.com>
8486
8487 * cp-valprint.c (cp_print_value_fields): Update.
8488 (cp_print_value): New function.
8489
8490 2020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * m2-valprint.c (m2_value_print_inner): Use
8493 cp_print_value_fields.
8494 * cp-valprint.c (cp_print_value_fields): New function.
8495 * c-valprint.c (c_value_print_struct): New function.
8496 (c_value_print_inner): Use c_value_print_struct.
8497 * c-lang.h (cp_print_value_fields): Declare.
8498
8499 2020-03-13 Tom Tromey <tom@tromey.com>
8500
8501 * c-valprint.c (c_value_print_array): New function.
8502 (c_value_print_inner): Use it.
8503
8504 2020-03-13 Tom Tromey <tom@tromey.com>
8505
8506 * c-valprint.c (c_value_print_memberptr): New function.
8507 (c_value_print_inner): Use it.
8508
8509 2020-03-13 Tom Tromey <tom@tromey.com>
8510
8511 * c-valprint.c (c_value_print_int): New function.
8512 (c_value_print_inner): Use it.
8513
8514 2020-03-13 Tom Tromey <tom@tromey.com>
8515
8516 * c-valprint.c (c_value_print_ptr): New function.
8517 (c_value_print_inner): Use it.
8518
8519 2020-03-13 Tom Tromey <tom@tromey.com>
8520
8521 * c-valprint.c (c_value_print_inner): Rewrite.
8522
8523 2020-03-13 Tom Tromey <tom@tromey.com>
8524
8525 * valprint.c (generic_value_print_complex): New function.
8526 (generic_value_print): Use it.
8527
8528 2020-03-13 Tom Tromey <tom@tromey.com>
8529
8530 * valprint.c (generic_val_print_float): Don't call
8531 val_print_scalar_formatted.
8532 (generic_val_print, generic_value_print): Update.
8533
8534 2020-03-13 Tom Tromey <tom@tromey.com>
8535
8536 * valprint.c (generic_value_print_char): New function
8537 (generic_value_print): Use it.
8538
8539 2020-03-13 Tom Tromey <tom@tromey.com>
8540
8541 * valprint.c (generic_value_print_int): New function.
8542 (generic_value_print): Use it.
8543
8544 2020-03-13 Tom Tromey <tom@tromey.com>
8545
8546 * valprint.c (generic_value_print_bool): New function.
8547 (generic_value_print): Use it.
8548
8549 2020-03-13 Tom Tromey <tom@tromey.com>
8550
8551 * valprint.c (generic_val_print_func): Simplify.
8552 (generic_val_print, generic_value_print): Update.
8553
8554 2020-03-13 Tom Tromey <tom@tromey.com>
8555
8556 * valprint.c (generic_val_print_flags): Remove.
8557 (generic_val_print, generic_value_print): Update.
8558 (val_print_type_code_flags): Add original_value parameter.
8559
8560 2020-03-13 Tom Tromey <tom@tromey.com>
8561
8562 * valprint.c (generic_val_print): Update.
8563 (generic_value_print): Update.
8564 * valprint.c (generic_val_print_enum): Don't call
8565 val_print_scalar_formatted.
8566
8567 2020-03-13 Tom Tromey <tom@tromey.com>
8568
8569 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8570 * valprint.c (generic_value_print_ptr): New function.
8571
8572 2020-03-13 Tom Tromey <tom@tromey.com>
8573
8574 * valprint.c (generic_value_print): Rewrite.
8575
8576 2020-03-13 Tom Tromey <tom@tromey.com>
8577
8578 * p-valprint.c (pascal_object_print_value_fields)
8579 (pascal_object_print_value): New functions.
8580
8581 2020-03-13 Tom Tromey <tom@tromey.com>
8582
8583 * p-valprint.c (pascal_value_print_inner): Rewrite.
8584
8585 2020-03-13 Tom Tromey <tom@tromey.com>
8586
8587 * f-valprint.c (f_value_print_innner): Rewrite.
8588
8589 2020-03-13 Tom Tromey <tom@tromey.com>
8590
8591 * m2-valprint.c (m2_print_unbounded_array): New overload.
8592 (m2_print_unbounded_array): Update.
8593 (m2_print_array_contents): Take a struct value.
8594 (m2_value_print_inner): Rewrite.
8595
8596 2020-03-13 Tom Tromey <tom@tromey.com>
8597
8598 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8599 (d_value_print_inner): New function.
8600 * d-lang.h (d_value_print_inner): Declare.
8601 * d-lang.c (d_language_defn): Use d_value_print_inner.
8602
8603 2020-03-13 Tom Tromey <tom@tromey.com>
8604
8605 * go-valprint.c (go_value_print_inner): New function.
8606 * go-lang.h (go_value_print_inner): Declare.
8607 * go-lang.c (go_language_defn): Use go_value_print_inner.
8608
8609 2020-03-13 Tom Tromey <tom@tromey.com>
8610
8611 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8612 API.
8613 (rust_val_print): Rewrite.
8614 (rust_value_print_inner): New function, from rust_val_print.
8615 (rust_language_defn): Use rust_value_print_inner.
8616
8617 2020-03-13 Tom Tromey <tom@tromey.com>
8618
8619 * ada-valprint.c (ada_value_print_inner): New function.
8620 * ada-lang.h (ada_value_print_inner): Declare.
8621 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8622
8623 2020-03-13 Tom Tromey <tom@tromey.com>
8624
8625 * f-valprint.c (f_value_print_innner): New function.
8626 * f-lang.h (f_value_print_innner): Declare.
8627 * f-lang.c (f_language_defn): Use f_value_print_innner.
8628
8629 2020-03-13 Tom Tromey <tom@tromey.com>
8630
8631 * p-valprint.c (pascal_value_print_inner): New function.
8632 * p-lang.h (pascal_value_print_inner): Declare.
8633 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8634
8635 2020-03-13 Tom Tromey <tom@tromey.com>
8636
8637 * m2-valprint.c (m2_value_print_inner): New function.
8638 * m2-lang.h (m2_value_print_inner): Declare.
8639 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8640
8641 2020-03-13 Tom Tromey <tom@tromey.com>
8642
8643 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8644 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8645 * c-valprint.c (c_value_print_inner): New function.
8646 * c-lang.h (c_value_print_inner): Declare.
8647 * c-lang.c (c_language_defn, cplus_language_defn)
8648 (asm_language_defn, minimal_language_defn): Use
8649 c_value_print_inner.
8650
8651 2020-03-13 Tom Tromey <tom@tromey.com>
8652
8653 * p-valprint.c (pascal_object_print_value_fields): Now static.
8654 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8655
8656 2020-03-13 Tom Tromey <tom@tromey.com>
8657
8658 * c-valprint.c (c_val_print_array): Simplify.
8659
8660 2020-03-13 Tom Tromey <tom@tromey.com>
8661
8662 * valprint.c (value_print_array_elements): New function.
8663 * valprint.h (value_print_array_elements): Declare.
8664
8665 2020-03-13 Tom Tromey <tom@tromey.com>
8666
8667 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8668 * mips-tdep.c (mips_print_register): Use
8669 value_print_scalar_formatted.
8670
8671 2020-03-13 Tom Tromey <tom@tromey.com>
8672
8673 * valprint.h (value_print_scalar_formatted): Declare.
8674 * valprint.c (value_print_scalar_formatted): New function.
8675
8676 2020-03-13 Tom Tromey <tom@tromey.com>
8677
8678 * valprint.h (generic_value_print): Declare.
8679 * valprint.c (generic_value_print): New function.
8680
8681 2020-03-13 Tom Tromey <tom@tromey.com>
8682
8683 * valprint.c (do_val_print): Call la_value_print_inner, if
8684 available.
8685 * rust-lang.c (rust_language_defn): Update.
8686 * p-lang.c (pascal_language_defn): Update.
8687 * opencl-lang.c (opencl_language_defn): Update.
8688 * objc-lang.c (objc_language_defn): Update.
8689 * m2-lang.c (m2_language_defn): Update.
8690 * language.h (struct language_defn) <la_value_print_inner>: New
8691 member.
8692 * language.c (unknown_language_defn, auto_language_defn): Update.
8693 * go-lang.c (go_language_defn): Update.
8694 * f-lang.c (f_language_defn): Update.
8695 * d-lang.c (d_language_defn): Update.
8696 * c-lang.c (c_language_defn, cplus_language_defn)
8697 (asm_language_defn, minimal_language_defn): Update.
8698 * ada-lang.c (ada_language_defn): Update.
8699
8700 2020-03-13 Tom Tromey <tom@tromey.com>
8701
8702 * c-valprint.c (c_value_print): Use common_val_print.
8703
8704 2020-03-13 Tom Tromey <tom@tromey.com>
8705
8706 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8707
8708 2020-03-13 Tom Tromey <tom@tromey.com>
8709
8710 * f-valprint.c (f77_print_array_1, f_val_print): Use
8711 common_val_print.
8712
8713 2020-03-13 Tom Tromey <tom@tromey.com>
8714
8715 * riscv-tdep.c (riscv_print_one_register_info): Use
8716 common_val_print.
8717
8718 2020-03-13 Tom Tromey <tom@tromey.com>
8719
8720 * mi/mi-main.c (output_register): Use common_val_print.
8721
8722 2020-03-13 Tom Tromey <tom@tromey.com>
8723
8724 * infcmd.c (default_print_one_register_info): Use
8725 common_val_print.
8726
8727 2020-03-13 Tom Tromey <tom@tromey.com>
8728
8729 * valprint.h (common_val_print_checked): Declare.
8730 * valprint.c (common_val_print_checked): New function.
8731 * stack.c (print_frame_arg): Use common_val_print_checked.
8732
8733 2020-03-13 Tom Tromey <tom@tromey.com>
8734
8735 * valprint.c (do_val_print): New function, from val_print.
8736 (val_print): Use do_val_print.
8737 (common_val_print): Use do_val_print.
8738
8739 2020-03-13 Tom Tromey <tom@tromey.com>
8740
8741 * valprint.c (value_print): Use scoped_value_mark.
8742
8743 2020-03-13 Tom de Vries <tdevries@suse.de>
8744
8745 PR symtab/25646
8746 * psymtab.c (partial_symtab::partial_symtab): Don't set
8747 globals_offset and statics_offset. Push element onto
8748 current_global_psymbols and current_static_psymbols stacks.
8749 (concat): New function.
8750 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8751 element from current_global_psymbols and current_static_psymbols
8752 stacks. Concat popped elements to global_psymbols and
8753 static_symbols.
8754 (add_psymbol_to_list): Use current_global_psymbols and
8755 current_static_psymbols stacks.
8756 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8757 current_static_psymbols fields.
8758
8759 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8760
8761 * corelow.c (sniff_core_bfd): Remove.
8762 (class core_target) <m_core_vec>: Remove.
8763 (core_target::core_target): Update.
8764 (core_file_fns): Remove.
8765 (deprecated_add_core_fns): Remove.
8766 (default_core_sniffer): Remove.
8767 (sniff_core_bfd): Remove.
8768 (default_check_format): Remove.
8769 (gdb_check_format): Remove.
8770 (core_target_open): Update.
8771 (core_target::get_core_register_section): Update.
8772 (get_core_registers_cb): Update.
8773 (core_target::fetch_registers): Update.
8774 * gdbcore.h (struct core_fns): Remove.
8775 (deprecated_add_core_fns): Remove.
8776 (default_core_sniffer): Remove.
8777 (default_check_format): Remove.
8778
8779 2020-03-12 Tom Tromey <tom@tromey.com>
8780
8781 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8782 CORE_ADDR.
8783 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8784
8785 2020-03-12 Tom Tromey <tom@tromey.com>
8786
8787 * remote.c (remote_target::download_tracepoint)
8788 (remote_target::enable_tracepoint)
8789 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8790 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8791 sprintf_vma.
8792
8793 2020-03-12 Tom Tromey <tom@tromey.com>
8794
8795 * symfile-mem.c: Update CORE_ADDR size assert.
8796
8797 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8798
8799 * selftest.m4: Move to gdbsupport/.
8800 * acinclude.m4: Update path to selftest.m4.
8801
8802 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8803
8804 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8805 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8806 gdbarch-selfselftests.c and selftest-arch.c.
8807 (SUBDIR_UNITTESTS_OBS): Rename to...
8808 (SELFTESTS_OBS): ... this.
8809 (COMMON_SFILES): Remove disasm-selftests.c and
8810 gdbarch-selftests.c.
8811 * configure.ac: Don't add selftest-arch.{c,o} to
8812 CONFIG_{SRCS,OBS}.
8813 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8814 preprocessor conditions.
8815
8816 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8817
8818 * configure.ac: Don't source bfd/development.sh.
8819 * selftest.m4: Modify comment.
8820 * configure: Re-generate.
8821
8822 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8823
8824 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8825 not "true" or "false".
8826 * configure: Re-generate.
8827
8828 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8829
8830 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8831 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8832 renamed to arm_nbsd_supply_gregset.
8833 (fetch_register): Update to call arm_nbsd_supply_gregset.
8834 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8835 (arm_netbsd_nat_target::fetch_registers): Update.
8836 (fetch_elfcore_registers): Removed.
8837 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8838 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8839 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8840 not require NetBSD system headers.
8841 (arm_nbsd_regset): New struct.
8842 (arm_nbsd_iterate_over_regset_sections): New function.
8843 (arm_netbsd_init_abi_common): Updated to call
8844 set_gdbarch_iterate_over_regset_sections.
8845 * arm-nbsd-tdep.h: New file.
8846
8847 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8848
8849 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8850 recursion.
8851
8852 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8853
8854 * configure: Re-generate.
8855
8856 2020-03-11 Tom Tromey <tromey@adacore.com>
8857
8858 * ada-typeprint.c (print_choices): Fix comment.
8859
8860 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8861
8862 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8863 previous item in the list, when the list has no items.
8864
8865 2020-03-11 Tom de Vries <tdevries@suse.de>
8866
8867 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8868 PROP_LOCLIST handling code.
8869
8870 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8871
8872 * buildsym-legacy.c (record_line): Pass extra parameter to
8873 record_line.
8874 * buildsym.c (buildsym_compunit::record_line): Take an extra
8875 parameter, reduce duplication in the line table, and record the
8876 is_stmt flag in the line table.
8877 * buildsym.h (buildsym_compunit::record_line): Add extra
8878 parameter.
8879 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8880 non-statement lines.
8881 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8882 this to the symtab builder.
8883 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8884 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8885 through to dwarf_record_line_1.
8886 * infrun.c (process_event_stop_test): When stepping, don't stop at
8887 a non-statement instruction, and only refresh the step info when
8888 we land in the middle of a line's range. Also add an extra
8889 comment.
8890 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8891 field.
8892 * record-btrace.c (btrace_find_line_range): Only record lines
8893 marked as is-statement.
8894 * stack.c (frame_show_address): Show the frame address if we are
8895 in a non-statement sal.
8896 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8897 (maintenance_print_one_line_table): Print a header for the is_stmt
8898 column, and include is_stmt information in the output.
8899 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8900 preference to non-statements.
8901 (find_pcs_for_symtab_line): Prefer is-statement entries.
8902 (find_line_common): Likewise.
8903 * symtab.h (struct linetable_entry): Add is_stmt field.
8904 (struct symtab_and_line): Likewise.
8905 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8906 arranging the line table.
8907
8908 2020-03-07 Tom de Vries <tdevries@suse.de>
8909
8910 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8911 DIE.
8912
8913 2020-03-07 Tom Tromey <tom@tromey.com>
8914
8915 * valops.c (value_literal_complex): Remove obsolete comment.
8916 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8917 comment.
8918
8919 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8920
8921 * infrun.h: Forward-declare thread_info.
8922 (set_step_info): Add thread_info parameter, add doc.
8923 * infrun.c (set_step_info): Add thread_info parameter, move doc
8924 to header.
8925 * infrun.c (process_event_stop_test): Pass thread to
8926 set_step_info call.
8927 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8928 set_step_info.
8929 (prepare_one_step): Add thread_info parameter, pass it to
8930 set_step_frame and prepare_one_step (recursive) call.
8931 (step_1): Pass thread to prepare_one_step call.
8932 (step_command_fsm::should_stop): Pass thread to
8933 prepare_one_step.
8934 (until_next_fsm): Pass thread to set_step_frame call.
8935 (finish_command): Pass thread to set_step_info call.
8936
8937 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8938
8939 * windows-tdep.c (windows_solib_create_inferior_hook):
8940 Check if inferior is running.
8941
8942 2020-03-06 Tom de Vries <tdevries@suse.de>
8943
8944 * NEWS: Fix "the the".
8945 * ctfread.c: Same.
8946
8947 2020-03-06 Tom de Vries <tdevries@suse.de>
8948
8949 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8950
8951 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8952
8953 * .dir-locals.el: Add a comment referencing the other copies of
8954 this file.
8955
8956 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8957
8958 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8959 psargs.
8960
8961 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8962
8963 * .gitattributes: New file.
8964
8965 2020-03-04 Tom Tromey <tom@tromey.com>
8966
8967 * symmisc.c (print_symbol_bcache_statistics)
8968 (print_objfile_statistics): Update.
8969 * symfile.c (allocate_symtab): Use intern.
8970 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8971 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8972 macro_cache>: Remove.
8973 <string_cache>: New member.
8974 (struct objfile) <intern>: New methods.
8975 * elfread.c (elf_symtab_read): Use intern.
8976 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8977 (dwarf2_compute_name, dwarf2_physname)
8978 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8979 names.
8980 (guess_partial_die_structure_name): Update.
8981 (partial_die_info::fixup): Intern name.
8982 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8983 name.
8984 (dwarf2_name): Intern name. Update.
8985 * buildsym.c (buildsym_compunit::get_macro_table): Use
8986 string_cache.
8987
8988 2020-03-04 Tom Tromey <tom@tromey.com>
8989
8990 * jit.c (bfd_open_from_target_memory): Make "target" const.
8991 * corefile.c (gnutarget): Now const.
8992 * gdbcore.h (gnutarget): Now const.
8993
8994 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8995
8996 * NEWS: Mention support for WOW64 processes.
8997 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8998 (amd64_windows_segment_register_p): Remove static.
8999 (_initialize_amd64_windows_nat): Update.
9000 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9001 * i386-windows-nat.c (context_offset): Update.
9002 (i386_mappings): Rename and remove static.
9003 (i386_windows_segment_register_p): Remove static.
9004 (_initialize_i386_windows_nat): Update.
9005 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9006 (STATUS_WX86_SINGLE_STEP): New macro.
9007 (EnumProcessModulesEx): New macro.
9008 (Wow64SuspendThread): New macro.
9009 (Wow64GetThreadContext): New macro.
9010 (Wow64SetThreadContext): New macro.
9011 (Wow64GetThreadSelectorEntry): New macro.
9012 (windows_set_context_register_offsets): Add static.
9013 (windows_set_segment_register_p): Likewise.
9014 (windows_add_thread): Adapt for WOW64 processes.
9015 (windows_fetch_one_register): Likewise.
9016 (windows_nat_target::fetch_registers): Likewise.
9017 (windows_store_one_register): Likewise.
9018 (display_selector): Likewise.
9019 (display_selectors): Likewise.
9020 (handle_exception): Likewise.
9021 (windows_continue): Likewise.
9022 (windows_nat_target::resume): Likewise.
9023 (windows_add_all_dlls): Likewise.
9024 (do_initial_windows_stuff): Likewise.
9025 (windows_nat_target::attach): Likewise.
9026 (windows_get_exec_module_filename): Likewise.
9027 (windows_nat_target::create_inferior): Likewise.
9028 (windows_xfer_siginfo): Likewise.
9029 (_initialize_loadable): Initialize Wow64SuspendThread,
9030 Wow64GetThreadContext, Wow64SetThreadContext,
9031 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9032 * windows-nat.h (windows_set_context_register_offsets):
9033 Remove declaration.
9034 (windows_set_segment_register_p): Likewise.
9035 (i386_windows_segment_register_p): Add declaration.
9036 (amd64_windows_segment_register_p): Likewise.
9037
9038 2020-03-04 Luis Machado <luis.machado@linaro.org>
9039
9040 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9041 in "info registers" for AArch64/ARM.
9042
9043 The change caused "info registers" to not print GPR's.
9044
9045 gdb/ChangeLog:
9046
9047 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9048
9049 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9050 when reg->group is empty and reggroup is not.
9051
9052 2020-03-03 Tom Tromey <tromey@adacore.com>
9053
9054 * dwarf2/frame.c (struct dwarf2_frame_cache)
9055 <checked_tailcall_bottom, entry_cfa_sp_offset,
9056 entry_cfa_sp_offset_p>: Remove members.
9057 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9058 (dwarf2_frame_prev_register): Don't call
9059 dwarf2_tailcall_sniffer_first.
9060 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9061 * frame-unwind.c (add_unwinder): New fuction.
9062 (frame_unwind_init): Use it. Add tailcall unwinder.
9063
9064 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9065 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9066
9067 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9068 value should be printed as true.
9069
9070 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9071
9072 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9073 (windows_init_abi): Set and use windows_so_ops.
9074
9075 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9076
9077 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9078 when verifying if dealing with a convenience variable.
9079
9080 2020-03-03 Luis Machado <luis.machado@linaro.org>
9081
9082 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9083
9084 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9085
9086 * infrun.c (gdbarch_supports_displaced_stepping): New.
9087 (use_displaced_stepping): Break up conditions in smaller pieces.
9088 Use gdbarch_supports_displaced_stepping.
9089 (displaced_step_prepare_throw): Use
9090 gdbarch_supports_displaced_stepping.
9091
9092 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9093
9094 * NEWS: Mention new behaviour of the history filename.
9095 * top.c (write_history_p): Add comment.
9096 (show_write_history_p): Add header comment, give a different
9097 message when history writing is on, but the history filename is
9098 empty.
9099 (history_filename): Add comment.
9100 (history_filename_empty): New function.
9101 (show_history_filename): Add header comment, give a different
9102 message when the filename is empty.
9103 (init_history): Compare history_filename against nullptr, and only
9104 read history if the filename is not empty.
9105 (set_history_filename): Add header comment, and only make
9106 non-empty filenames absolute.
9107 (init_main): Make the filename argument to 'set history filename'
9108 optional.
9109
9110 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9111
9112 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9113 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9114 (fetch_fp_register): Update.
9115 (fetch_fp_regs): Update.
9116 (store_fp_register): Update.
9117 (store_fp_regs): Update.
9118 (arm_netbsd_nat_target::read_description): New function.
9119 (fetch_elfcore_registers): Update.
9120
9121 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9122
9123 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9124 general_thread if the stop reply is missing a thread-id.
9125 (remote_target::process_stop_reply): Use the first non-exited
9126 thread if the target didn't pass a thread-id.
9127 * infrun.c (do_target_wait): Move call to
9128 switch_to_inferior_no_thread to ....
9129 (do_target_wait_1): ... here.
9130
9131 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9132
9133 * debuginfod-support.c: Include defs.h first.
9134
9135 2020-02-28 Tom de Vries <tdevries@suse.de>
9136
9137 * symfile.c (set_initial_language): Use default language for lookup.
9138
9139 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9140
9141 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9142 reader variable, pass `this` to read_cutu_die_from_dwo.
9143
9144 2020-02-27 Aaron Merey <amerey@redhat.com>
9145
9146 * source.c (open_source_file): Check for nullptr when computing
9147 srcpath.
9148
9149 2020-02-27 Tom Tromey <tromey@adacore.com>
9150
9151 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9152 member.
9153 (dwarf2_add_field): Don't update nfields.
9154 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9155
9156 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9157
9158 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9159 abs.
9160
9161 2020-02-26 Tom Tromey <tom@tromey.com>
9162
9163 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9164 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9165 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9166 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9167 per_cu_data.
9168
9169 2020-02-26 Tom Tromey <tom@tromey.com>
9170
9171 * dwarf2/index-write.c (psym_index_map): Change type.
9172 (add_address_entry_worker, write_one_signatured_type)
9173 (recursively_count_psymbols, recursively_write_psymbols)
9174 (class debug_names, psyms_seen_size, write_gdbindex)
9175 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9176
9177 2020-02-26 Aaron Merey <amerey@redhat.com>
9178
9179 * Makefile.in: Handle optional debuginfod support.
9180 * NEWS: Update.
9181 * README: Add --with-debuginfod summary.
9182 * config.in: Regenerate.
9183 * configure: Regenerate.
9184 * configure.ac: Handle optional debuginfod support.
9185 * debuginfod-support.c: debuginfod helper functions.
9186 * debuginfod-support.h: Ditto.
9187 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9188 summary.
9189 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9190 when a dwz file cannot be found.
9191 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9192 debuginfo file cannot be found.
9193 * source.c (open_source_file): Query debuginfod servers when a
9194 source file cannot be found.
9195 * top.c (print_gdb_configuration): Include
9196 --{with,without}-debuginfod in the output.
9197
9198 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9199
9200 * thread.c (thr_try_catch_cmd): Print thread name.
9201
9202 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9205 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9206 dwarf2_fetch_die_type_sect_off): Move to...
9207 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9208 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9209 dwarf2_fetch_die_type_sect_off): ... here.
9210 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9211 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9212 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9213
9214 2020-02-26 Tom de Vries <tdevries@suse.de>
9215
9216 PR gdb/25603
9217 * symfile.c (set_initial_language): Exit-early if
9218 language_mode == language_mode_manual.
9219
9220 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9221
9222 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9223 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9224 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9225
9226 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9227
9228 * gdbtypes.c (create_array_type_with_stride): Handle negative
9229 array strides.
9230 * valarith.c (value_subscripted_rvalue): Likewise.
9231
9232 2020-02-25 Luis Machado <luis.machado@linaro.org>
9233
9234 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9235
9236 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9237
9238 * loc.h (dwarf2_get_die_type): Move to...
9239 * read.h (dwarf2_get_die_type): ... here.
9240 * read.c (dwarf2_get_die_type): Move doc to header.
9241
9242 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9243
9244 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9245 'gnulib/Makefile.in' to the list.
9246
9247 2020-02-24 Tom Tromey <tom@tromey.com>
9248
9249 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9250 Remove.
9251 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9252 XOBNEWVEC.
9253
9254 2020-02-24 Tom Tromey <tom@tromey.com>
9255
9256 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9257 New method.
9258 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9259 (dw2_do_instantiate_symtab, dw2_get_file_names)
9260 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9261
9262 2020-02-24 Tom Tromey <tom@tromey.com>
9263
9264 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9265 make_scoped_restore.
9266 (dwarf2_psymtab::read_symtab): Don't clear
9267 reading_partial_symbols.
9268
9269 2020-02-24 Tom de Vries <tdevries@suse.de>
9270
9271 PR gdb/25592
9272 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9273
9274 2020-02-24 Tom de Vries <tdevries@suse.de>
9275
9276 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9277 commands layout next/prev/regs.
9278
9279 2020-02-22 Tom Tromey <tom@tromey.com>
9280
9281 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9282 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9283
9284 2020-02-22 Tom Tromey <tom@tromey.com>
9285
9286 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9287
9288 2020-02-22 Tom Tromey <tom@tromey.com>
9289
9290 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9291 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9292 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9293 * tui/tui.c (_initialize_tui): Add usage text.
9294
9295 2020-02-22 Tom Tromey <tom@tromey.com>
9296
9297 * tui/tui-win.c (tui_set_focus_command)
9298 (tui_set_win_height_command): Use error_no_arg.
9299 (_initialize_tui_win): Update help text.
9300 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9301
9302 2020-02-22 Tom Tromey <tom@tromey.com>
9303
9304 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9305 * tui/tui-disasm.h (struct tui_disasm_window)
9306 <display_start_addr>: Declare.
9307 * tui/tui-source.h (struct tui_source_window)
9308 <display_start_addr>: Declare.
9309 * tui/tui-winsource.h (struct tui_source_window_base)
9310 <show_source_line, display_start_addr>: New methods.
9311 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9312 Rename and move to protected section.
9313 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9314 (tui_source_window_base::do_erase_source_content): Update.
9315 (tui_source_window_base::show_source_line): Now a method.
9316 (tui_source_window_base::show_source_content)
9317 (tui_source_window_base::tui_source_window_base)
9318 (tui_source_window_base::rerender)
9319 (tui_source_window_base::refill)
9320 (tui_source_window_base::do_scroll_horizontal)
9321 (tui_source_window_base::set_is_exec_point_at)
9322 (tui_source_window_base::update_breakpoint_info)
9323 (tui_source_window_base::update_exec_info): Update.
9324 * tui/tui-source.c (tui_source_window::set_contents)
9325 (tui_source_window::showing_source_p)
9326 (tui_source_window::do_scroll_vertical)
9327 (tui_source_window::location_matches_p)
9328 (tui_source_window::line_is_displayed): Update.
9329 (tui_source_window::display_start_addr): New method.
9330 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9331 (tui_disasm_window::do_scroll_vertical)
9332 (tui_disasm_window::location_matches_p): Update.
9333 (tui_disasm_window::display_start_addr): New method.
9334
9335 2020-02-22 Tom Tromey <tom@tromey.com>
9336
9337 * NEWS: Add entry for gdb.register_window_type.
9338 * tui/tui-layout.h (window_factory): New typedef.
9339 (tui_register_window): Declare.
9340 * tui/tui-layout.c (saved_tui_windows): New global.
9341 (tui_apply_current_layout): Use it.
9342 (tui_register_window): New function.
9343 * python/python.c (do_start_initialization): Call
9344 gdbpy_initialize_tui.
9345 (python_GdbMethods): Add "register_window_type" function.
9346 * python/python-internal.h (gdbpy_register_tui_window)
9347 (gdbpy_initialize_tui): Declare.
9348 * python/py-tui.c: New file.
9349 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9350
9351 2020-02-22 Tom Tromey <tom@tromey.com>
9352
9353 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9354
9355 2020-02-22 Tom Tromey <tom@tromey.com>
9356
9357 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9358 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9359 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9360 (tui_set_win_focus_to): Move from tui-win.c.
9361
9362 2020-02-22 Tom Tromey <tom@tromey.com>
9363
9364 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9365 functions.
9366 (known_window_types): New global.
9367 (tui_get_window_by_name): Reimplement.
9368 (initialize_known_windows): New function.
9369 (validate_window_name): Rewrite.
9370 (_initialize_tui_layout): Call initialize_known_windows.
9371
9372 2020-02-22 Tom Tromey <tom@tromey.com>
9373
9374 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9375 Remove constants.
9376 * tui/tui-winsource.h (struct tui_source_window_base)
9377 <tui_source_window_base>: Remove parameter.
9378 * tui/tui-winsource.c
9379 (tui_source_window_base::tui_source_window_base): Remove
9380 parameter.
9381 (tui_source_window_base::refill): Update.
9382 * tui/tui-stack.h (struct tui_locator_window)
9383 <tui_locator_window>: Update.
9384 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9385 Default the constructor.
9386 * tui/tui-regs.h (struct tui_data_item_window)
9387 <tui_data_item_window>: Default the constructor.
9388 (struct tui_data_window) <tui_data_window>: Likewise.
9389 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9390 Default the constructor.
9391 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9392 Default the constructor.
9393 <type>: Remove.
9394 (struct tui_win_info) <tui_win_info>: Default the constructor.
9395 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9396 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9397 Default the constructor.
9398
9399 2020-02-22 Tom Tromey <tom@tromey.com>
9400
9401 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9402 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9403 * tui/tui-win.c (tui_resize_all): Don't call
9404 tui_delete_invisible_windows.
9405 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9406 done.
9407 (tui_set_layout): Update.
9408 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9409 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9410 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9411
9412 2020-02-22 Tom Tromey <tom@tromey.com>
9413
9414 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9415 correctly.
9416
9417 2020-02-22 Tom Tromey <tom@tromey.com>
9418
9419 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9420
9421 2020-02-22 Tom Tromey <tom@tromey.com>
9422
9423 * tui/tui-winsource.h (struct tui_source_window_iterator)
9424 <inner_iterator>: New etytypedef.
9425 <tui_source_window_iterator>: Take "end" parameter.
9426 <tui_source_window_iterator>: Take iterator.
9427 <operator*, advance>: Update.
9428 <m_iter>: Change type.
9429 <m_end>: New field.
9430 (struct tui_source_windows) <begin, end>: Update.
9431 * tui/tui-layout.c (tui_windows): New global.
9432 (tui_apply_current_layout): Clear tui_windows.
9433 (tui_layout_window::apply): Update tui_windows.
9434 * tui/tui-data.h (tui_windows): Declare.
9435 (all_tui_windows): Now inline function.
9436 (class tui_window_iterator, struct all_tui_windows): Remove.
9437
9438 2020-02-22 Tom Tromey <tom@tromey.com>
9439
9440 PR tui/17850:
9441 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9442 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9443 "height" argument.
9444 (class tui_layout_window) <get_sizes>: Likewise.
9445 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9446 argument.
9447 <get_sizes>: Add "height" argument.
9448 <m_vertical>: New field.
9449 * tui/tui-layout.c (tui_layout_split::clone): Update.
9450 (tui_layout_split::get_sizes): Add "height" argument.
9451 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9452 (tui_new_layout_command): Parse "-horizontal".
9453 (_initialize_tui_layout): Update help string.
9454 (tui_layout_split::specification): Add "-horizontal" when needed.
9455 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9456 argument.
9457 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9458 New methods.
9459
9460 2020-02-22 Tom Tromey <tom@tromey.com>
9461
9462 * tui/tui-layout.h (enum tui_adjust_result): New.
9463 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9464 (class tui_layout_window) <adjust_size>: Return
9465 tui_adjust_result. Rewrite.
9466 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9467 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9468
9469 2020-02-22 Tom Tromey <tom@tromey.com>
9470
9471 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9472 parameter and return types.
9473 (class tui_layout_base) <specification>: Add "depth".
9474 (class tui_layout_window) <specification>: Add "depth".
9475 (class tui_layout_split) <specification>: Add "depth".
9476 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9477 and return types.
9478 (tui_new_layout_command): Parse sub-layouts.
9479 (_initialize_tui_layout): Update help string.
9480 (tui_layout_window::specification): Add "depth".
9481 (add_layout_command): Update.
9482
9483 2020-02-22 Tom Tromey <tom@tromey.com>
9484
9485 * NEWS: Add "tui new-layout" item.
9486 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9487 Add new-layout command to help text.
9488 (validate_window_name): New function.
9489 (tui_new_layout_command): New function.
9490 (_initialize_tui_layout): Register "new-layout".
9491 (tui_layout_window::specification): New method.
9492 (tui_layout_window::specification): New method.
9493 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9494 method.
9495 (class tui_layout_window) <specification>: New method.
9496 (class tui_layout_split) <specification>: New method.
9497
9498 2020-02-22 Tom Tromey <tom@tromey.com>
9499
9500 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9501 * tui/tui-win.c (window_name_completer): Update comment.
9502 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9503 Declare method.
9504 (class tui_layout_window) <replace_window>: Likewise.
9505 (class tui_layout_split) <replace_window>: Likewise.
9506 (tui_set_layout): Don't declare.
9507 (tui_set_initial_layout): Declare function.
9508 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9509 (asm_regs_layout): New globals.
9510 (tui_current_layout, show_layout): Remove.
9511 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9512 (find_layout, tui_apply_layout): New function.
9513 (layout_completer): Remove.
9514 (tui_next_layout): Reimplement.
9515 (tui_next_layout_command): New function.
9516 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9517 (tui_regs_layout): Reimplement.
9518 (tui_regs_layout_command): New function.
9519 (extract_display_start_addr): Rewrite.
9520 (next_layout, prev_layout): Remove.
9521 (tui_layout_window::replace_window): New method.
9522 (tui_layout_split::replace_window): New method.
9523 (destroy_layout): New function.
9524 (layout_list): New global.
9525 (add_layout_command): New function.
9526 (initialize_layouts): Update.
9527 (tui_layout_command): New function.
9528 (_initialize_tui_layout): Install "layout" commands.
9529 * tui/tui-data.h (enum tui_layout_type): Remove.
9530 (tui_current_layout): Don't declare.
9531
9532 2020-02-22 Tom Tromey <tom@tromey.com>
9533
9534 * tui/tui-regs.c (tui_reg_layout): Remove.
9535 (tui_reg_command): Use tui_regs_layout.
9536 * tui/tui-layout.h (tui_reg_command): Declare.
9537 * tui/tui-layout.c (tui_reg_command): New function.
9538
9539 2020-02-22 Tom Tromey <tom@tromey.com>
9540
9541 * tui/tui.c (tui_rl_delete_other_windows): Call
9542 tui_remove_some_windows.
9543 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9544 Declare method.
9545 (class tui_layout_window) <remove_windows>: New method.
9546 (class tui_layout_split) <remove_windows>: Declare.
9547 (tui_remove_some_windows): Declare.
9548 * tui/tui-layout.c (tui_remove_some_windows): New function.
9549 (tui_layout_split::remove_windows): New method.
9550
9551 2020-02-22 Tom Tromey <tom@tromey.com>
9552
9553 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9554 * tui/tui-layout.h (tui_next_layout): Declare.
9555 * tui/tui-layout.c (tui_next_layout): New function.
9556
9557 2020-02-22 Tom Tromey <tom@tromey.com>
9558
9559 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9560 correct coordinates.
9561
9562 2020-02-22 Tom Tromey <tom@tromey.com>
9563
9564 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9565 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9566 DATA_WIN case.
9567
9568 2020-02-22 Tom Tromey <tom@tromey.com>
9569
9570 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9571 TUI_DISASM_WIN, not tui_win_list.
9572
9573 2020-02-22 Tom Tromey <tom@tromey.com>
9574
9575 * valprint.c (generic_val_print_enum_1)
9576 (val_print_type_code_flags): Style member names.
9577 * rust-lang.c (val_print_struct, rust_print_enum)
9578 (rust_print_struct_def, rust_internal_print_type): Style member
9579 names.
9580 * p-valprint.c (pascal_object_print_value_fields): Style member
9581 names. Only call fprintf_symbol_filtered for static members.
9582 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9583 * f-valprint.c (f_val_print): Style member names.
9584 * f-typeprint.c (f_type_print_base): Style member names.
9585 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9586 call fprintf_symbol_filtered for static members.
9587 (cp_print_class_member): Style member names.
9588 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9589 member names.
9590 * ada-valprint.c (ada_print_scalar): Style enum names.
9591 (ada_val_print_enum): Likewise.
9592 * ada-typeprint.c (print_enum_type): Style enum names.
9593
9594 2020-02-21 Tom Tromey <tom@tromey.com>
9595
9596 * psympriv.h (struct partial_symtab): Update comment.
9597
9598 2020-02-21 Tom Tromey <tromey@adacore.com>
9599
9600 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9601 type is CORE_ADDR.
9602
9603 2020-02-21 Tom de Vries <tdevries@suse.de>
9604
9605 PR gdb/25534
9606 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9607 if dependencies[i]->user != NULL.
9608
9609 2020-02-21 Ali Tamur <tamur@google.com>
9610
9611 * dwarf2/read.c (dwarf2_name): Add null check.
9612
9613 2020-02-20 Tom Tromey <tom@tromey.com>
9614
9615 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9616 ">=", in binary search.
9617 (dwarf2_find_containing_comp_unit): New overload.
9618 (run_test): New self-test.
9619 (_initialize_dwarf2_read): Register new test.
9620
9621 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9622
9623 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9624 * riscv-tdep.h: Likewise.
9625 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9626 rv32-only CSR.
9627 * features/riscv/64bit-csr.xml: Regenerated.
9628
9629 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9630 Tom Tromey <tom@tromey.com>
9631
9632 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9633 of 'fputc_unfiltered'.
9634 (putchar_unfiltered): Call 'fputc_unfiltered'.
9635 (fputc_unfiltered): Call 'fputs_unfiltered'.
9636
9637 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9638
9639 * config.in: Regenerate.
9640 * configure: Regenerate.
9641 * configure.ac: Add --with-python-libdir option.
9642 * main.c: Use WITH_PYTHON_LIBDIR.
9643
9644 2020-02-19 Tom Tromey <tom@tromey.com>
9645
9646 * symtab.c (general_symbol_info::compute_and_set_names): Use
9647 obstack_strndup. Simplify call to symbol_set_demangled_name.
9648
9649 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9650
9651 * dwarf2/read.c (allocate_signatured_type_table,
9652 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9653 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9654 Remove objfile parameter, update all callers.
9655
9656 2020-02-19 Doug Evans <dje@google.com>
9657
9658 PR rust/25535
9659 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9660 rust_enum_variant calculation.
9661
9662 2020-02-19 Tom Tromey <tromey@adacore.com>
9663
9664 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9665
9666 2020-02-19 Tom Tromey <tromey@adacore.com>
9667
9668 * ada-lang.c (cache_symbol): Use obstack_strdup.
9669
9670 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9671
9672 * configure: Regenerate.
9673
9674 2020-02-19 Tom Tromey <tromey@adacore.com>
9675
9676 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9677 NULL check.
9678
9679 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9680
9681 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9682
9683 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9684
9685 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9686 if GDBSERVER is not defined.
9687 (riscv_tdesc_cache): Likewise, also store const target_desc.
9688 (STATIC_IN_GDB): Define.
9689 (riscv_create_target_description): Update declaration with
9690 STATIC_IN_GDB.
9691 (riscv_lookup_target_description): New function, only define if
9692 GDBSERVER is not defined.
9693 * arch/riscv.h (riscv_create_target_description): Declare only
9694 when GDBSERVER is defined.
9695 (riscv_lookup_target_description): New declaration when GDBSERVER
9696 is not defined.
9697 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9698 (riscv_linux_read_features): ...this, and return
9699 riscv_gdbarch_features instead of target_desc.
9700 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9701 (riscv_linux_read_description): Rename to...
9702 (riscv_linux_read_features): ...this.
9703 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9704 Update to use riscv_gdbarch_features and
9705 riscv_lookup_target_description.
9706 * riscv-tdep.c (riscv_find_default_target_description): Use
9707 riscv_lookup_target_description instead of
9708 riscv_create_target_description.
9709
9710 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * valprint.c (generic_val_print_enum_1): When printing a flag
9713 enum with value 0 and there is no enumerator with value 0, print
9714 just "0" instead of "(unknown: 0x0)".
9715
9716 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9717
9718 * valprint.c (generic_val_print_enum_1): Print unknown part of
9719 flag enum in hex.
9720
9721 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9722
9723 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9724 flag enums to contain duplicate enumerators.
9725 * valprint.c (generic_val_print_enum_1): Update comment.
9726
9727 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9728
9729 * dwarf2/read.c: Include "count-one-bits.h".
9730 (update_enumeration_type_from_children): If an enumerator has
9731 multiple bits set, don't treat the enumeration as a "flag enum".
9732 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9733 of flag enums have 0 or 1 bit set.
9734
9735 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9736
9737 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9738 conversion.
9739 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9740 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9741 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9742 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9743 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9744
9745 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9748
9749 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9752 displaced_step_closure_up.
9753 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9754 (struct displaced_step_closure_up):
9755 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9756 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9757 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9758 Likewise.
9759 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9760 * gdbarch.c, gdbarch.h: Re-generate.
9761 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9762 displaced_step_closure_up.
9763 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9764 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9765 * infrun.h (displaced_step_closure_up): New type alias.
9766 (struct displaced_step_inferior_state) <step_closure>: Change
9767 type to displaced_step_closure_up.
9768 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9769 displaced_step_closure_up.
9770 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9771
9772 2020-02-14 Tom Tromey <tom@tromey.com>
9773
9774 * minidebug.c (gnu_debug_key): New global.
9775 (find_separate_debug_file_in_section): Use it.
9776
9777 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9778
9779 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9780 std::unique_ptr.
9781 * gdbarch.c: Re-generate.
9782 * gdbarch.h: Re-generate.
9783 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9784 change.
9785 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9786 type to std::unique_ptr.
9787 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9788 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9789 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9790 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9791 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9792 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9793 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9794 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9795 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9796
9797 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9798
9799 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9800 std::unique_ptr.
9801 (displaced_step_clear): Rename to...
9802 (displaced_step_reset): ... this. Just call displaced->reset ().
9803 (displaced_step_clear_cleanup): Rename to...
9804 (displaced_step_reset_cleanup): ... this.
9805 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9806 (displaced_step_fixup): Likewise.
9807 (resume_1): Likewise.
9808 (handle_inferior_event): Restore child's memory before calling
9809 displaced_step_fixup on the parent.
9810 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9811 to std::unique_ptr.
9812 <step_closure>: Change type to std::unique_ptr.
9813
9814 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * arm-tdep.c: Include count-one-bits.h.
9817 (cleanup_block_store_pc): Use count_one_bits.
9818 (cleanup_block_load_pc): Use count_one_bits.
9819 (arm_copy_block_xfer): Use count_one_bits.
9820 (thumb2_copy_block_xfer): Use count_one_bits.
9821 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9822 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9823 (thumb_get_next_pcs_raw): Use count_one_bits.
9824 (arm_get_next_pcs_raw): Use count_one_bits_l.
9825 * arch/arm.c (bitcount): Remove.
9826 * arch/arm.h (bitcount): Remove.
9827
9828 2020-02-14 Tom Tromey <tromey@adacore.com>
9829
9830 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9831 Update.
9832 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9833 * dwarf2/loc.c (call_site_find_chain_1): Return
9834 unique_xmalloc_ptr.
9835 (call_site_find_chain): Likewise.
9836
9837 2020-02-14 Richard Biener <rguenther@suse.de>
9838
9839 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9840 on expression with division operators.
9841
9842 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9843
9844 * MAINTAINERS (Write After Approval): Adding myself.
9845
9846 2020-02-12 Tom Tromey <tom@tromey.com>
9847
9848 * event-loop.c (event_data, gdb_event, event_handler_func):
9849 Remove.
9850
9851 2020-02-12 Tom Tromey <tom@tromey.com>
9852
9853 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9854 (dwarf2_frame_objfile_data): Add comment.
9855 (find_comp_unit, set_comp_unit): New functions.
9856 (dwarf2_frame_find_fde): Use find_comp_unit.
9857 (dwarf2_build_frame_info): Use set_comp_unit.
9858
9859 2020-02-12 Tom Tromey <tom@tromey.com>
9860
9861 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9862 (comp_unit): Don't initialize objfile.
9863 (execute_cfa_program): Add text_offset parameter.
9864 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9865 (dwarf2_frame_cache): Update.
9866 (dwarf2_build_frame_info): Don't set "objfile" member.
9867
9868 2020-02-12 Tom Tromey <tom@tromey.com>
9869
9870 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9871 (decode_frame_entry): Likewise.
9872 (dwarf2_build_frame_info): Update.
9873
9874 2020-02-12 Tom Tromey <tom@tromey.com>
9875
9876 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9877 (decode_frame_entry_1): Use the comp_unit obstack.
9878
9879 2020-02-12 Tom Tromey <tom@tromey.com>
9880
9881 * dwarf2/frame.c (struct comp_unit): Add initializers and
9882 constructor.
9883 (dwarf2_frame_objfile_data): Store a comp_unit.
9884 (dwarf2_frame_find_fde): Update.
9885 (dwarf2_build_frame_info): Use "new".
9886
9887 2020-02-12 Tom Tromey <tom@tromey.com>
9888
9889 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9890 (dwarf2_fde_table): Typedef for std::vector.
9891 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9892 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9893 (decode_frame_entry): Update.
9894 (dwarf2_build_frame_info): Use "new".
9895
9896 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9897
9898 * arm-tdep.c (arm_gdbarch_init): Update.
9899 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9900 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9901 have_neon, is_m>: Change to bool.
9902
9903 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9904
9905 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9906
9907 2020-02-12 Tom Tromey <tom@tromey.com>
9908
9909 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9910
9911 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9912
9913 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9914 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9915
9916 2020-02-11 Tom Tromey <tom@tromey.com>
9917
9918 * psymtab.h: Update comment.
9919
9920 2020-02-11 Tom Tromey <tom@tromey.com>
9921
9922 * gdb_obstack.h (struct auto_obstack): Use
9923 DISABLE_COPY_AND_ASSIGN.
9924
9925 2020-02-11 Tom Tromey <tom@tromey.com>
9926
9927 * dwarf2/frame.h (struct objfile): Don't forward declare.
9928
9929 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9930
9931 * cris-tdep.c (cris_supply_gregset): Change signature to match
9932 what struct regset expects.
9933 (cris_regset): New struct.
9934 (fetch_core_registers): Remove.
9935 (cris_iterate_over_regset_sections): New function.
9936 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9937 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9938
9939 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9940
9941 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9942 registers.
9943
9944 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9945
9946 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9947
9948 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9949
9950 * configure: Re-generate.
9951
9952 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * configure: Re-generate.
9955
9956 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9957
9958 * acinclude: Update warning.m4 path.
9959 * warning.m4: Move to gdbsupport.
9960
9961 2020-02-11 Tom Tromey <tromey@adacore.com>
9962
9963 * remote.c (remote_console_output): Update.
9964 * printcmd.c (printf_command): Update.
9965 * event-loop.c (gdb_wait_for_event): Update.
9966 * linux-nat.c (sigchld_handler): Update.
9967 * remote-sim.c (gdb_os_write_stdout): Update.
9968 (gdb_os_flush_stdout): Update.
9969 (gdb_os_flush_stderr): Update.
9970 (gdb_os_write_stderr): Update.
9971 * exceptions.c (print_exception): Update.
9972 * remote-fileio.c (remote_fileio_func_read): Update.
9973 (remote_fileio_func_write): Update.
9974 * tui/tui.c (tui_enable): Update.
9975 * tui/tui-interp.c (tui_interp::init): Update.
9976 * utils.c (init_page_info): Update.
9977 (putchar_unfiltered, fputc_unfiltered): Update.
9978 (gdb_flush): Update.
9979 (emit_style_escape): Update.
9980 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9981 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9982 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9983 (stderr_file::write): Update.
9984 (stderr_file::puts): Update.
9985 * ui-file.h (ui_file_isatty, ui_file_write)
9986 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9987 (ui_file_puts): Don't declare.
9988
9989 2020-02-10 Tom de Vries <tdevries@suse.de>
9990
9991 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9992 sentinel to char *.
9993
9994 2020-02-09 Tom de Vries <tdevries@suse.de>
9995
9996 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9997 filename if it matches "<artificial>".
9998
9999 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10000
10001 * windows-tdep.c (struct enum_value_name): New struct.
10002 (create_enum): New function.
10003 (windows_get_siginfo_type): Create and use enum types.
10004
10005 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10006
10007 * NEWS: Mention $_siginfo support for Windows.
10008 * windows-nat.c (handle_exception): Set siginfo_er.
10009 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10010 (windows_xfer_siginfo): New function.
10011 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10012 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10013 (init_windows_gdbarch_data): New function.
10014 (get_windows_gdbarch_data): New function.
10015 (windows_get_siginfo_type): New function.
10016 (windows_init_abi): Register windows_get_siginfo_type.
10017 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10018
10019 2020-02-08 Tom Tromey <tom@tromey.com>
10020
10021 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10022 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10023 <keep>: Declare method.
10024 <m_keep>: Remove member.
10025 <~cutu_reader>: Remove.
10026 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10027 (cutu_reader::cutu_reader): Update.
10028 (cutu_reader::keep): Rename from ~cutu_reader.
10029 (process_psymtab_comp_unit, build_type_psymtabs_1)
10030 (process_skeletonless_type_unit, load_partial_comp_unit)
10031 (load_full_comp_unit, dwarf2_read_addr_index)
10032 (read_signatured_type): Update.
10033
10034 2020-02-08 Tom Tromey <tom@tromey.com>
10035
10036 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10037 "want_partial_unit" parameter.
10038 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10039 Inline check for DW_TAG_partial_unit.
10040 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10041
10042 2020-02-08 Tom Tromey <tom@tromey.com>
10043
10044 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10045 read.c.
10046 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10047 read.c.
10048
10049 2020-02-08 Tom Tromey <tom@tromey.com>
10050
10051 * dwarf2/read.c (read_address): Move to comp-unit.c.
10052 (dwarf2_rnglists_process, dwarf2_ranges_process)
10053 (read_attribute_value, dwarf_decode_lines_1)
10054 (var_decode_location, decode_locdesc): Update.
10055 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10056 read.c. Remove "cu" parameter.
10057 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10058 method.
10059
10060 2020-02-08 Tom Tromey <tom@tromey.com>
10061
10062 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10063 (read_indirect_line_string): Update.
10064 * dwarf2/comp-unit.c (read_offset): Remove.
10065 (read_comp_unit_head): Update.
10066 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10067 method.
10068 (read_offset): Don't declare.
10069
10070 2020-02-08 Tom Tromey <tom@tromey.com>
10071
10072 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10073 * dwarf2/read.c (struct comp_unit_head): Move to
10074 dwarf2/comp-unit.h.
10075 (enum class rcuh_kind): Move to comp-unit.h.
10076 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10077 (read_comp_unit_head, error_check_comp_unit_head)
10078 (read_and_check_comp_unit_head): Move to comp-unit.c.
10079 (read_offset, dwarf_unit_type_name): Likewise.
10080 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10081 (cutu_reader::cutu_reader, read_call_site_scope)
10082 (find_partial_die, follow_die_offset): Update.
10083 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10084
10085 2020-02-08 Tom Tromey <tom@tromey.com>
10086
10087 * dwarf2/read.c (read_offset_1): Move to leb.c.
10088 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10089 (dwarf_decode_macro_bytes): Update.
10090 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10091 * dwarf2/leb.h (read_offset): Declare.
10092
10093 2020-02-08 Tom Tromey <tom@tromey.com>
10094
10095 * dwarf2/read.c (dwarf2_section_size): Remove.
10096 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10097 Update.
10098 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10099
10100 2020-02-08 Tom Tromey <tom@tromey.com>
10101
10102 * dwarf2/read.c (read_initial_length): Move to leb.c.
10103 * dwarf2/leb.h (read_initial_length): Declare.
10104 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10105 handle_nonstd parameter.
10106 * dwarf2/frame.c (read_initial_length): Remove.
10107 (decode_frame_entry_1): Update.
10108
10109 2020-02-08 Tom Tromey <tom@tromey.com>
10110
10111 * dwarf2/loc.c (dwarf2_find_location_expression)
10112 (dwarf_evaluate_loc_desc::get_tls_address)
10113 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10114 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10115 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10116 (dwarf2_compile_property_to_c)
10117 (dwarf2_loc_desc_get_symbol_read_needs)
10118 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10119 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10120 (loclist_describe_location, loclist_tracepoint_var_ref)
10121 (loclist_generate_c_location): Update.
10122 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10123 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10124 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10125 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10126 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10127 (dwarf2_per_cu_data::addr_size)
10128 (dwarf2_per_cu_data::ref_addr_size)
10129 (dwarf2_per_cu_data::text_offset)
10130 (dwarf2_per_cu_data::addr_type): Now methods.
10131 (per_cu_header_read_in): Make per_cu "const".
10132 (dwarf2_version): Remove.
10133 (dwarf2_per_cu_data::int_type): Now a method.
10134 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10135 (set_die_type, read_array_type, read_subrange_index_type)
10136 (read_tag_string_type, read_subrange_type): Update.
10137 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10138 offset_size, ref_addr_size, text_offset, addr_type, version,
10139 objfile, int_type, addr_sized_int_type>: Declare methods.
10140
10141 2020-02-08 Tom Tromey <tom@tromey.com>
10142
10143 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10144 Move earlier.
10145
10146 2020-02-08 Tom Tromey <tom@tromey.com>
10147
10148 * dwarf2/read.h (dwarf_line_debug): Declare.
10149 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10150 * dwarf2/read.c: Move line_header code to new files.
10151 (dwarf_line_debug): No longer static.
10152 * dwarf2/line-header.c: New file.
10153 * dwarf2/line-header.h: New file.
10154
10155 2020-02-08 Tom Tromey <tom@tromey.com>
10156
10157 * dwarf2/read.c (struct line_header) <file_full_name,
10158 file_file_name>: Return unique_xmalloc_ptr.
10159 (line_header::file_file_name): Update.
10160 (line_header::file_full_name): Update.
10161 (dw2_get_file_names_reader): Update.
10162 (macro_start_file): Update.
10163
10164 2020-02-08 Tom Tromey <tom@tromey.com>
10165
10166 * dwarf2/read.c (struct line_header) <file_full_name,
10167 file_file_name>: Declare methods.
10168 (dw2_get_file_names_reader): Update.
10169 (file_file_name): Now a method.
10170 (file_full_name): Likewise.
10171 (macro_start_file): Update.
10172
10173 2020-02-08 Tom Tromey <tom@tromey.com>
10174
10175 * dwarf2/read.c (dwarf_always_disassemble)
10176 (show_dwarf_always_disassemble): Move to loc.c.
10177 (_initialize_dwarf2_read): Move "always-disassemble" registration
10178 to loc.c.
10179 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10180 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10181 static.
10182 (show_dwarf_always_disassemble): Move from read.c.
10183 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10184
10185 2020-02-08 Tom Tromey <tom@tromey.com>
10186
10187 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10188 (create_quick_file_names_table): Return htab_up.
10189 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10190 Update.
10191 * dwarf2/read.h (struct dwarf2_per_objfile)
10192 <quick_file_names_table>: Now htab_up.
10193
10194 2020-02-08 Tom Tromey <tom@tromey.com>
10195
10196 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10197
10198 2020-02-08 Tom Tromey <tom@tromey.com>
10199
10200 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10201 Rewrite.
10202 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10203 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10204 (abbrev_table::abbrev_table): No longer inline.
10205 (ABBREV_HASH_SIZE): Remove.
10206 (abbrev_table::m_abbrevs): Now an htab_up.
10207
10208 2020-02-08 Tom Tromey <tom@tromey.com>
10209
10210 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10211 (cutu_reader): Update.
10212 (build_type_psymtabs_1): Update.
10213 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10214 (abbrev_table::alloc_abbrev): Update.
10215 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10216 (abbrev_table::read): New static method, renamed from
10217 abbrev_table_read_table.
10218 (abbrev_table::alloc_abbrev)
10219 (abbrev_table::add_abbrev): Now private.
10220 (abbrev_table::abbrev_table): Now private.
10221 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10222
10223 2020-02-08 Tom Tromey <tom@tromey.com>
10224
10225 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10226 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10227 htab_up.
10228
10229 2020-02-08 Tom Tromey <tom@tromey.com>
10230
10231 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10232 htab_up.
10233 (lookup_dwo_unit_in_dwp): Update.
10234 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10235 on obstack.
10236
10237 2020-02-08 Tom Tromey <tom@tromey.com>
10238
10239 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10240 obstack.
10241
10242 2020-02-08 Tom Tromey <tom@tromey.com>
10243
10244 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10245 line_header_hash.
10246 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10247 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10248 Change type to htab_up.
10249
10250 2020-02-08 Tom Tromey <tom@tromey.com>
10251
10252 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10253 htab_up. Don't allocate on obstack.
10254 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10255 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10256 Change type to htab_up.
10257
10258 2020-02-08 Tom Tromey <tom@tromey.com>
10259
10260 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10261 Change type to htab_up.
10262 * dwarf2/read.c (create_signatured_type_table_from_index)
10263 (create_signatured_type_table_from_debug_names)
10264 (create_all_type_units, add_type_unit)
10265 (lookup_dwo_signatured_type, lookup_signatured_type)
10266 (process_skeletonless_type_unit): Update.
10267 (create_debug_type_hash_table, create_debug_types_hash_table):
10268 Change type of types_htab.
10269 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10270 htab_up. Don't allocate on obstack.
10271 (create_cus_hash_table): Change type of cus_htab parameter.
10272 (struct dwo_file) <cus, tus>: Now htab_up.
10273 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10274 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10275 (queue_and_load_all_dwo_tus): Update.
10276 * dwarf2/index-write.c (write_gdbindex): Update.
10277 (write_debug_names): Update.
10278
10279 2020-02-08 Tom Tromey <tom@tromey.com>
10280
10281 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10282 dwarf2/read.c. Remove "next" member. Add constructor ntad
10283 destructor.
10284 (struct dwarf2_per_objfile) <queue>: New member.
10285 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10286 dwarf2/read.h.
10287 (dwarf2_queue, dwarf2_queue_tail): Remove.
10288 (class dwarf2_queue_guard): Add parameter to constructor. Use
10289 DISABLE_COPY_AND_ASSIGN.
10290 <m_per_objfile>: New member.
10291 <~dwarf2_queue_guard>: Rewrite.
10292 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10293 Update.
10294 (~dwarf2_queue_item): New.
10295
10296 2020-02-08 Tom Tromey <tom@tromey.com>
10297
10298 * dwarf2/read.c (struct die_info) <has_children>: New member.
10299 (dw2_get_file_names_reader): Remove has_children.
10300 (dw2_get_file_names): Update.
10301 (read_cutu_die_from_dwo): Remove has_children.
10302 (cutu_reader::init_tu_and_read_dwo_dies)
10303 (cutu_reader::cutu_reader): Update.
10304 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10305 Remove has_children.
10306 (build_type_psymtabs_1, process_skeletonless_type_unit)
10307 (load_partial_comp_unit, load_full_comp_unit): Update.
10308 (create_dwo_cu_reader): Remove has_children.
10309 (create_cus_hash_table, read_die_and_children): Update.
10310 (read_full_die_1,read_full_die): Remove has_children.
10311 (read_signatured_type): Update.
10312 (class cutu_reader) <has_children>: Remove.
10313
10314 2020-02-08 Tom Tromey <tom@tromey.com>
10315
10316 * dwarf2/expr.c: Rename from dwarf2expr.c.
10317 * dwarf2/expr.h: Rename from dwarf2expr.h.
10318 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10319 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10320 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10321 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10322 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10323 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10324 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10325 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10326 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10327 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10328 * dwarf2/loc.c: Rename from dwarf2loc.c.
10329 * dwarf2/loc.h: Rename from dwarf2loc.h.
10330 * dwarf2/read.c: Rename from dwarf2read.c.
10331 * dwarf2/read.h: Rename from dwarf2read.h.
10332 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10333 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10334 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10335 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10336 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10337 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10338 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10339 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10340 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10341 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10342 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10343 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10344 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10345 Update.
10346 * Makefile.in (COMMON_SFILES): Update.
10347 (HFILES_NO_SRCDIR): Update.
10348
10349 2020-02-08 Tom Tromey <tom@tromey.com>
10350
10351 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10352 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10353
10354 2020-02-08 Tom Tromey <tom@tromey.com>
10355
10356 * dwarf2read.h (struct die_info): Don't declare.
10357
10358 2020-02-08 Tom Tromey <tom@tromey.com>
10359
10360 * dwarf2read.h (die_info_ptr): Remove typedef.
10361
10362 2020-02-08 Tom Tromey <tom@tromey.com>
10363
10364 * dwarf2read.c (read_call_site_scope)
10365 (handle_data_member_location, dwarf2_add_member_fn)
10366 (mark_common_block_symbol_computed, read_common_block)
10367 (attr_to_dynamic_prop, partial_die_info::read)
10368 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10369 (dwarf2_symbol_mark_computed, set_die_type): Update.
10370 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10371 method.
10372 (attr_form_is_block): Don't declare.
10373 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10374
10375 2020-02-08 Tom Tromey <tom@tromey.com>
10376
10377 * dwarf2read.c (dwarf2_find_base_address, )
10378 (read_call_site_scope, rust_containing_type)
10379 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10380 (handle_data_member_location, dwarf2_add_member_fn)
10381 (get_alignment, read_structure_type, process_structure_scope)
10382 (mark_common_block_symbol_computed, read_common_block)
10383 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10384 (partial_die_info::read, read_attribute_value, new_symbol)
10385 (lookup_die_type, dwarf2_get_ref_die_offset)
10386 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10387 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10388 (dwarf2_symbol_mark_computed): Update.
10389 * dwarf2/attribute.h (struct attribute) <value_as_address,
10390 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10391 methods.
10392 (value_as_address, attr_form_is_section_offset)
10393 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10394 * dwarf2/attribute.c (attribute::value_as_address)
10395 (attribute::form_is_section_offset, attribute::form_is_constant)
10396 (attribute::form_is_ref): Now methods.
10397
10398 2020-02-08 Tom Tromey <tom@tromey.com>
10399
10400 * dwarf2read.c (struct attribute, DW_STRING)
10401 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10402 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10403 (attr_form_is_block, attr_form_is_section_offset)
10404 (attr_form_is_constant, attr_form_is_ref): Move.
10405 * dwarf2/attribute.h: New file.
10406 * dwarf2/attribute.c: New file, from dwarf2read.c.
10407 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10408
10409 2020-02-08 Tom Tromey <tom@tromey.com>
10410
10411 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10412 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10413 Move.
10414 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10415 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10416 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10417 abbrev.c.
10418 * dwarf2/abbrev.h: New file.
10419 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10420 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10421
10422 2020-02-08 Tom Tromey <tom@tromey.com>
10423
10424 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10425 (dwarf2_section_size, dwarf2_get_section_info)
10426 (create_signatured_type_table_from_debug_names)
10427 (create_addrmap_from_aranges, read_debug_names_from_section)
10428 (get_gdb_index_contents_from_section, read_comp_unit_head)
10429 (error_check_comp_unit_head, read_abbrev_offset)
10430 (create_debug_type_hash_table, init_cu_die_reader)
10431 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10432 (read_comp_units_from_section, create_cus_hash_table)
10433 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10434 (create_dwp_v2_section, dwarf2_rnglists_process)
10435 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10436 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10437 (read_indirect_string_from_dwz, read_addr_index_1)
10438 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10439 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10440 (fill_in_loclist_baton): Update.
10441 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10442 get_containing_section, get_bfd_owner, get_bfd_section,
10443 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10444 (dwarf2_read_section, get_section_name, get_section_file_name)
10445 (get_containing_section, get_section_bfd_owner)
10446 (get_section_bfd_section, get_section_name, get_section_file_name)
10447 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10448 declare.
10449 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10450 (dwarf2_section_info::get_bfd_owner)
10451 (dwarf2_section_info::get_bfd_section)
10452 (dwarf2_section_info::get_name)
10453 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10454 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10455 (dwarf2_section_info::read): Now methods.
10456 * dwarf-index-write.c (class debug_names): Update.
10457
10458 2020-02-08 Tom Tromey <tom@tromey.com>
10459
10460 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10461 Move to dwarf2/section.h.
10462 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10463 (get_section_bfd_section, get_section_name)
10464 (get_section_file_name, get_section_id, get_section_flags)
10465 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10466 dwarf2/section.c.
10467 * dwarf2/section.h: New file.
10468 * dwarf2/section.c: New file, from dwarf2read.c.
10469 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10470
10471 2020-02-08 Tom Tromey <tom@tromey.com>
10472
10473 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10474 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10475 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10476 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10477 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10478 * dwarf2/leb.h: New file, from dwarf2read.c.
10479 * dwarf2/leb.c: New file, from dwarf2read.c.
10480 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10481 Remove.
10482 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10483 (COMMON_SFILES): Add dwarf2/leb.c.
10484
10485 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10486
10487 GDB 9.1 released.
10488
10489 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10490
10491 PR gdb/25190:
10492 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10493 * gdb/remote.c (remote_console_output): Update.
10494 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10495 (ui_file_puts): ...this.
10496 * gdb/ui-file.h (ui_file_puts): Add declaration.
10497 * gdb/utils.c (emit_style_escape): Update.
10498 (flush_wrap_buffer): Update.
10499 (fputs_maybe_filtered): Update.
10500 (fputs_unfiltered): Add function.
10501
10502 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10503
10504 * gdb/event-loop.c (gdb_wait_for_event): Update.
10505 * gdb/printcmd.c (printf_command): Update.
10506 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10507 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10508 (gdb_os_flush_stderr): Update.
10509 * gdb/remote.c (remote_console_output): Update.
10510 * gdb/ui-file.c (gdb_flush): Rename to...
10511 (ui_file_flush): ...this.
10512 (stderr_file::write): Update.
10513 (stderr_file::puts): Update.
10514 * gdb/ui-file.h (gdb_flush): Rename to...
10515 (ui_file_flush): ...this.
10516 * gdb/utils.c (gdb_flush): Add function.
10517 * gdb/utils.h (gdb_flush): Add declaration.
10518
10519 2020-02-07 Tom Tromey <tromey@adacore.com>
10520
10521 PR breakpoints/24915:
10522 * source.c (find_and_open_source): Do not check basenames_may_differ.
10523
10524 2020-02-07 Tom Tromey <tom@tromey.com>
10525
10526 * README: Update gdbserver documentation.
10527 * gdbserver: Move to top level.
10528 * configure.tgt (build_gdbserver): Remove.
10529 * configure.ac: Remove --enable-gdbserver.
10530 * configure: Rebuild.
10531 * Makefile.in (distclean): Don't mention gdbserver.
10532
10533 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10534
10535 * source-cache.c (source_cache::ensure): Surround
10536 get_plain_source_lines with a try/catch.
10537 (source_cache::get_line_charpos): Get rid of try/catch
10538 and only check for the return value of "ensure".
10539 * tui/tui-source.c (tui_source_window::set_contents):
10540 Simplify "nlines" calculation.
10541
10542 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10543
10544 * MAINTAINERS (Write After Approval): Add myself.
10545
10546 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10547
10548 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10549 function call.
10550
10551 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10552
10553 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10554
10555 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10556
10557 * nat/riscv-linux-tdesc.h: New file.
10558 * nat/riscv-linux-tdesc.c: New file, taking code from...
10559 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10560 ... here.
10561 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10562 NATDEPFILES.
10563
10564 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10565
10566 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10567 we don't set the fake simulator ptid to the null_ptid.
10568
10569 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10570
10571 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10572 * gdbthread.h (class thread_info) <resumed>: Likewise.
10573 * infrun.c (resume_1): Likewise.
10574 (proceed): Likewise.
10575 (infrun_thread_stop_requested): Likewise.
10576 (stop_all_threads): Likewise.
10577 (handle_inferior_event): Likewise.
10578 (restart_threads): Likewise.
10579 (finish_step_over): Likewise.
10580 (keep_going_stepped_thread): Likewise.
10581 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10582 (linux_handle_extended_wait): Likewise.
10583 * record-btrace.c (get_thread_current_frame_id): Likewise.
10584 * record-full.c (record_full_wait_1): Likewise.
10585 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10586 * target.c (target_resume): Likewise.
10587 * thread.c (set_running_thread): Likewise.
10588
10589 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10590
10591 * f-valprint.c (f77_print_array_1): Changed datatype of index
10592 variable to LONGEST from int to enable it to contain bound
10593 values correctly.
10594
10595 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10596
10597 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10598 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10599 offsets according to FLEN determined.
10600 (riscv_linux_nat_target::read_description): Determine FLEN
10601 dynamically.
10602 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10603 according to FLEN determined.
10604 (riscv_linux_nat_target::store_registers): Likewise.
10605
10606 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10607
10608 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10609 when reg->group is empty and reggroup is not.
10610
10611 2020-01-31 Tom Tromey <tromey@adacore.com>
10612
10613 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10614 Call beneath target's mourn_inferior after unpushing.
10615
10616 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10617
10618 PR tui/9765
10619 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10620 have enough lines to fill the screen, still return the lowest
10621 address we found.
10622
10623 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10624
10625 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10626 '-', '<', and '>' commands.
10627
10628 2020-01-29 Pedro Alves <palves@redhat.com>
10629 Sergio Durigan Junior <sergiodj@redhat.com>
10630
10631 * infcmd.c (construct_inferior_arguments): Assert that
10632 'argc' is greater than 0.
10633
10634 2020-01-29 Luis Machado <luis.machado@linaro.org>
10635
10636 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10637 (BRK_INSN_MASK): Define to 0xd4200000.
10638 (aarch64_program_breakpoint_here_p): New function.
10639 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10640 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10641 breakpoint.c.
10642 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10643 breakpoint.h
10644 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10645 call gdbarch_program_breakpoint_here_p.
10646 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10647 default_program_breakpoint_here_p, changed return type to bool and
10648 simplified.
10649 * breakpoint.h (program_breakpoint_here): Moved prototype to
10650 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10651 return type to bool.
10652 * gdbarch.c: Regenerate.
10653 * gdbarch.h: Regenerate.
10654 * gdbarch.sh (program_breakpoint_here_p): New method.
10655 * infrun.c (handle_signal_stop): Call
10656 gdbarch_program_breakpoint_here_p.
10657
10658 2020-01-26 Tom Tromey <tom@tromey.com>
10659
10660 * ctfread.c (struct ctf_fp_info): Reindent.
10661 (_initialize_ctfread): Remove.
10662
10663 2020-01-26 Tom Tromey <tom@tromey.com>
10664
10665 * psymtab.c (partial_map_expand_apply)
10666 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10667 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10668 (psym_print_stats, psym_expand_symtabs_for_function)
10669 (psym_map_symbol_filenames, psym_map_matching_symbols)
10670 (psym_expand_symtabs_matching)
10671 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10672 (maintenance_check_psymtabs): Use new methods.
10673 * psympriv.h (struct partial_symtab) <readin_p,
10674 get_compunit_symtab>: New methods.
10675 <readin, compunit_symtab>: Remove members.
10676 (struct standard_psymtab): New.
10677 (struct legacy_psymtab): Derive from standard_psymtab.
10678 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10679 standard_psymtab.
10680 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10681
10682 2020-01-26 Tom Tromey <tom@tromey.com>
10683
10684 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10685 read_dependencies. Add assert.
10686 * psymtab.c (partial_symtab::read_dependencies): New method.
10687 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10688 method.
10689 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10690 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10691 read_dependencies.
10692 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10693 Add assert.
10694
10695 2020-01-26 Tom Tromey <tom@tromey.com>
10696
10697 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10698 Call expand_psymtab.
10699 (xcoff_read_symtab): Call expand_psymtab.
10700 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10701 legacy_expand_psymtab.
10702 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10703 method.
10704 (struct legacy_psymtab) <expand_psymtab>: Implement.
10705 <legacy_expand_psymtab>: New member.
10706 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10707 (parse_partial_symbols): Set legacy_expand_psymtab.
10708 (psymtab_to_symtab_1): Change argument order. Call
10709 expand_psymtab.
10710 (new_psymtab): Set legacy_expand_psymtab.
10711 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10712 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10713 expand_psymtab.
10714 (dwarf2_psymtab::expand_psymtab): Rename from
10715 psymtab_to_symtab_1. Call expand_psymtab.
10716 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10717 (dbx_end_psymtab): Likewise.
10718 (dbx_psymtab_to_symtab_1): Change argument order. Call
10719 expand_psymtab.
10720 (dbx_read_symtab): Call expand_psymtab.
10721 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10722 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10723 (ctf_psymtab::read_symtab): Call expand_psymtab.
10724
10725 2020-01-26 Tom Tromey <tom@tromey.com>
10726
10727 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10728 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10729 messages.
10730 * mdebugread.c (mdebug_read_symtab): Remove prints.
10731 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10732 assert.
10733 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10734
10735 2020-01-26 Tom Tromey <tom@tromey.com>
10736
10737 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10738 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10739 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10740 legacy_symtab.
10741 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10742 * psymtab.c (psymtab_to_symtab): Call method.
10743 (dump_psymtab): Update.
10744 * psympriv.h (struct partial_symtab): Add virtual destructor.
10745 <read_symtab>: New method.
10746 (struct legacy_symtab): New.
10747 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10748 (struct pst_map) <pst>: Now a legacy_psymtab.
10749 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10750 (new_psymtab): Use legacy_psymtab.
10751 * dwarf2read.h (struct dwarf2_psymtab): New.
10752 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10753 * dwarf2read.c (dwarf2_create_include_psymtab)
10754 (dwarf2_build_include_psymtabs, create_type_unit_group)
10755 (create_partial_symtab, process_psymtab_comp_unit_reader)
10756 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10757 (set_partial_user): Use dwarf2_psymtab.
10758 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10759 (psymtab_to_symtab_1, process_full_comp_unit)
10760 (process_full_type_unit, dwarf2_ranges_read)
10761 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10762 (dwarf_decode_lines): Use dwarf2_psymtab.
10763 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10764 (add_address_entry_worker, write_one_signatured_type)
10765 (recursively_count_psymbols, recursively_write_psymbols)
10766 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10767 (write_debug_names): Likewise.
10768 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10769 <pst>: Now a legacy_psymtab.
10770 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10771 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10772 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10773 * ctfread.c (struct ctf_psymtab): New.
10774 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10775 ctf_psymtab.
10776 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10777 (create_partial_symtab): Return a ctf_psymtab.
10778 (scan_partial_symbols): Update.
10779
10780 2020-01-26 Tom Tromey <tom@tromey.com>
10781
10782 * xcoffread.c (xcoff_start_psymtab): Use new.
10783 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10784 renamed from start_psymtab_common.
10785 * psympriv.h (struct partial_symtab): Add new constructor.
10786 (start_psymtab_common): Don't declare.
10787 * mdebugread.c (parse_partial_symbols): Use new.
10788 * dwarf2read.c (create_partial_symtab): Use new.
10789 * dbxread.c (start_psymtab): Use new.
10790 * ctfread.c (create_partial_symtab): Use new.
10791
10792 2020-01-26 Tom Tromey <tom@tromey.com>
10793
10794 * xcoffread.c (xcoff_end_psymtab): Use new.
10795 * psymtab.c (start_psymtab_common): Use new.
10796 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10797 Update.
10798 * psympriv.h (struct partial_symtab): Add parameters to
10799 constructor. Don't inline.
10800 (allocate_psymtab): Don't declare.
10801 * mdebugread.c (new_psymtab): Use new.
10802 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10803 * dbxread.c (dbx_end_psymtab): Use new.
10804
10805 2020-01-26 Tom Tromey <tom@tromey.com>
10806
10807 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10808 allocate_psymtab. Update documentation.
10809 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10810 allocate_psymtab. Do not use new.
10811 (allocate_psymtab): Use new. Update.
10812
10813 2020-01-26 Tom Tromey <tom@tromey.com>
10814
10815 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10816 * psymtab.c (psym_print_stats): Update.
10817 * psympriv.h (struct partial_symtab) <readin,
10818 psymtabs_addrmap_supported, anonymous>: Now bool.
10819 * mdebugread.c (psymtab_to_symtab_1): Update.
10820 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10821 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10822 (process_full_comp_unit, process_full_type_unit): Update.
10823 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10824 * ctfread.c (psymtab_to_symtab): Update.
10825
10826 2020-01-26 Tom Tromey <tom@tromey.com>
10827
10828 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10829 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10830 * psymtab.c (psymtab_storage): Delete psymtabs.
10831 (psymtab_storage::allocate_psymtab): Use new.
10832 (psymtab_storage::discard_psymtab): Use delete.
10833 * psympriv.h (struct partial_symtab): Add constructor and
10834 initializers.
10835
10836 2020-01-26 Tom Tromey <tom@tromey.com>
10837
10838 * machoread.c: Do not include psympriv.h.
10839
10840 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10841
10842 * NEWS: Mention the new option and the set/show commands.
10843
10844 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10845
10846 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10847 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10848 (validate_exec_file): New variables, enums, functions.
10849 (exec_file_locate_attach, print_section_info): Style the filenames.
10850 (_initialize_exec): Install show_exec_file_mismatch_command and
10851 set_exec_file_mismatch_command.
10852 * gdbcore.h (validate_exec_file): Declare.
10853 * infcmd.c (attach_command): Call validate_exec_file.
10854 * remote.c ( remote_target::remote_add_inferior): Likewise.
10855
10856 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10857
10858 * frame.c (find_frame_sal): Move call to get_next_frame into more
10859 inner scope.
10860 * inline-frame.c (inilne_state) <inline_state>: Update argument
10861 types.
10862 (inilne_state) <skipped_symbol>: Rename to...
10863 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10864 (skip_inline_frames): Build vector of skipped symbols and use this
10865 to reate the inline_state.
10866 (inline_skipped_symbol): Add a comment and some assertions, fetch
10867 skipped symbol from the list.
10868
10869 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10870
10871 * buildsym.c (lte_is_less_than): Delete.
10872 (buildsym_compunit::end_symtab_with_blockvector): Create local
10873 lambda function to sort line table entries, and use
10874 std::stable_sort instead of std::sort.
10875 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10876 markers when looking for a previous line.
10877
10878 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10879
10880 * dwarf2read.c (lnp_state_machine::record_line): Include
10881 end_sequence parameter in debug print out. Record the line if we
10882 are at an end_sequence marker even if it's not the start of a
10883 statement.
10884 * symmisc.c (maintenance_print_one_line_table): Print end of
10885 sequence markers with 'END' not '0'.
10886
10887 2020-01-24 Pedro Alves <palves@redhat.com>
10888
10889 PR gdb/25410
10890 * thread.c (scoped_restore_current_thread::restore): Use
10891 switch_to_inferior_no_thread.
10892 * exec.c: Include "progspace-and-thread.h".
10893 (add_target_sections, remove_target_sections):
10894 scoped_restore_current_pspace_and_thread instead of
10895 scoped_restore_current_thread.
10896 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10897 and aspace to the inferior before calling clone_program_space.
10898 Remove stale comment.
10899
10900 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10901
10902 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10903 (arm_netbsd_nat_target::fetch_registers): ...this.
10904 (arm_nbsd_nat_target::store_registers): Rename to...
10905 (arm_netbsd_nat_target::store_registers): ...this.
10906
10907 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10908
10909 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10910 register_t.
10911
10912 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10913
10914 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10915 Update comment.
10916 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10917 Likewise.
10918 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10919 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10920 the correct replacement (iterate_over_regset_sections).
10921 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10922 Update comment.
10923
10924 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10925
10926 PR gdb/23718
10927 * gdb/python/python.c (execute_gdb_command): Call
10928 async_enable_stdin in catch block.
10929
10930 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10931
10932 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10933 SWITCH_THRU_ALL_UIS.
10934
10935 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10936
10937 PR tui/9765
10938 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10939 comment, add extra parameter, and update to store previous symbol
10940 when appropriate.
10941 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10942 add extra parameter.
10943 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10944 remove unneeded parameter, add try/catch around gdb_print_insn,
10945 rewrite to add items to asm_lines vector.
10946 (tui_find_backward_disassembly_start_address): New function.
10947 (tui_find_disassembly_address): Updated throughout.
10948 (tui_disasm_window::set_contents): Update for changes to
10949 tui_disassemble.
10950 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10951 number of lines to scroll.
10952
10953 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10954
10955 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10956 (SECT_OFF_DATA): Likewise.
10957 (SECT_OFF_RODATA): Likewise.
10958 (SECT_OFF_TEXT): Likewise.
10959 (SECT_OFF_BSS): Likewise.
10960 (struct objfile) <text_section_offset, data_section_offset>: New
10961 methods.
10962 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10963 objfile::text_section_offset.
10964 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10965 * coffread.c (coff_symtab_read): Likewise.
10966 (enter_linenos): Likewise.
10967 (process_coff_symbol): Likewise.
10968 * ctfread.c (get_objfile_text_range): Likewise.
10969 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10970 Use objfile::data_section_offset.
10971 * dwarf2-frame.c (execute_cfa_program): Use
10972 objfile::text_section_offset.
10973 (dwarf2_frame_find_fde): Likewise.
10974 * dwarf2read.c (create_addrmap_from_index): Likewise.
10975 (create_addrmap_from_aranges): Likewise.
10976 (dw2_find_pc_sect_compunit_symtab): Likewise.
10977 (process_psymtab_comp_unit_reader): Likewise.
10978 (add_partial_symbol): Likewise.
10979 (add_partial_subprogram): Likewise.
10980 (process_full_comp_unit): Likewise.
10981 (read_file_scope): Likewise.
10982 (read_func_scope): Likewise.
10983 (read_lexical_block_scope): Likewise.
10984 (read_call_site_scope): Likewise.
10985 (dwarf2_rnglists_process): Likewise.
10986 (dwarf2_ranges_process): Likewise.
10987 (dwarf2_ranges_read): Likewise.
10988 (dwarf_decode_lines_1): Likewise.
10989 (new_symbol): Likewise.
10990 (dwarf2_fetch_die_loc_sect_off): Likewise.
10991 (dwarf2_per_cu_text_offset): Likewise.
10992 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10993 * hppa-tdep.c (read_unwind_info): Likewise.
10994 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10995 * psympriv.h (struct partial_symtab): Likewise.
10996 * psymtab.c (find_pc_sect_psymtab): Likewise.
10997 * solib-svr4.c (enable_break): Likewise.
10998 * stap-probe.c (relocate_address): Use
10999 objfile::data_section_offset.
11000 * xcoffread.c (enter_line_range): Use
11001 objfile::text_section_offset.
11002 (read_xcoff_symtab): Likewise.
11003
11004 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11005
11006 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11007 declaration to narrower scopes.
11008
11009 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11010
11011 * darwin-nat.h (struct darwin_exception_msg, enum
11012 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11013 Move up.
11014 (class darwin_nat_target) <wait_1, check_new_threads,
11015 decode_exception_message, decode_message, stop_inferior,
11016 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11017 * darwin-nat.c (darwin_check_new_threads): Rename to...
11018 (darwin_nat_target::check_new_threads): ... this.
11019 (darwin_suspend_inferior_it): Remove.
11020 (darwin_decode_exception_message): Rename to...
11021 (darwin_nat_target::decode_exception_message): ... this.
11022 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11023 (darwin_decode_message): Rename to...
11024 (darwin_nat_target::decode_message): ... this.
11025 (cancel_breakpoint): Rename to...
11026 (darwin_nat_target::cancel_breakpoint): ... this.
11027 (darwin_wait): Rename to...
11028 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11029 instead of iterate_over_inferiors.
11030 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11031 (darwin_stop_inferior): Rename to...
11032 (darwin_nat_target::stop_inferior): ... this.
11033 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11034 (darwin_init_thread_list): Rename to...
11035 (darwin_nat_target::init_thread_list): ... this.
11036 (darwin_ptrace_him): Rename to...
11037 (darwin_nat_target::ptrace_him): ... this.
11038 (darwin_nat_target::create_inferior): Pass lambda function to
11039 fork_inferior.
11040 (darwin_nat_target::detach): Call stop_inferior instead of
11041 darwin_stop_inferior.
11042 * fork-inferior.h (fork_inferior): Change init_trace_fun
11043 parameter to gdb::function_view.
11044 * fork-inferior.c (fork_inferior): Likewise.
11045
11046 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11047
11048 * i386-cygwin-tdep.c (core_process_module_section): Update.
11049 * windows-nat.c (struct lm_info_windows): Add text_offset.
11050 (windows_xfer_shared_libraries): Update.
11051 * windows-tdep.c (windows_xfer_shared_library):
11052 Add text_offset_cached argument.
11053 * windows-tdep.h (windows_xfer_shared_library): Update.
11054
11055 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11058
11059 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11060
11061 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11062 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11063 replace with range-based for.
11064 (gdbsim_interrupt_inferior): Remove.
11065 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11066 with a range-based for. Inline code from
11067 gdbsim_interrupt_inferior.
11068
11069 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11070
11071 * infrun.c (proceed): Fix indentation.
11072
11073 2020-01-21 Tom Tromey <tromey@adacore.com>
11074
11075 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11076 * python/python.c (python_extension_ops): Update.
11077 (gdbpy_colorize): New function.
11078 * python/lib/gdb/__init__.py (colorize): New function.
11079 * extension.h (ext_lang_colorize): Declare.
11080 * extension.c (ext_lang_colorize): New function.
11081 * extension-priv.h (struct extension_language_ops) <colorize>: New
11082 member.
11083 * cli/cli-style.c (_initialize_cli_style): Update help text.
11084
11085 2020-01-21 Luis Machado <luis.machado@linaro.org>
11086
11087 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11088 <cond>: Change type to bool.
11089 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11090 (aarch64_displaced_step_cb): Likewise.
11091 (aarch64_displaced_step_tb): Likewise.
11092
11093 2020-01-21 Luis Machado <luis.machado@linaro.org>
11094
11095 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11096 output.
11097
11098 2020-01-21 Luis Machado <luis.machado@linaro.org>
11099
11100 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11101 <pc_adjust>: Adjust the documentation.
11102 (aarch64_displaced_step_fixup): Check if PC really moved before
11103 adjusting it.
11104
11105 2020-01-19 Tom Tromey <tom@tromey.com>
11106
11107 * disasm.c (~gdb_disassembler): New destructor.
11108 (gdb_buffered_insn_length): Call disassemble_free_target.
11109 * disasm.h (class gdb_disassembler): Declare destructor. Use
11110 DISABLE_COPY_AND_ASSIGN.
11111
11112 2020-01-19 Tom Tromey <tom@tromey.com>
11113
11114 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11115 (die_reader_func_ftype): Remove.
11116 (cutu_reader): New class.
11117 (dw2_get_file_names_reader): Remove "data" parameter.
11118 (dw2_get_file_names): Use cutu_reader.
11119 (create_debug_type_hash_table): Update.
11120 (read_cutu_die_from_dwo): Update comment.
11121 (lookup_dwo_unit): Add dwo_name parameter.
11122 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11123 die_reader_func_ftype and data parameters.
11124 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11125 Remove die_reader_func_ftype and data parameters.
11126 (~cutu_reader): New; from init_cutu_and_read_dies.
11127 (cutu_reader::cutu_reader): Rename from
11128 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11129 and data parameters.
11130 (init_cutu_and_read_dies_simple): Remove.
11131 (struct process_psymtab_comp_unit_data): Remove.
11132 (process_psymtab_comp_unit_reader): Remove data parameter; add
11133 want_partial_unit and pretend_language parameters.
11134 (process_psymtab_comp_unit): Use cutu_reader.
11135 (build_type_psymtabs_reader): Remove data parameter.
11136 (build_type_psymtabs_1): Use cutu_reader.
11137 (process_skeletonless_type_unit): Likewise.
11138 (load_partial_comp_unit_reader): Remove.
11139 (load_partial_comp_unit): Use cutu_reader.
11140 (load_full_comp_unit_reader): Remove.
11141 (load_full_comp_unit): Use cutu_reader.
11142 (struct create_dwo_cu_data): Remove.
11143 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11144 dwo_unit parameters.
11145 (create_cus_hash_table): Use cutu_reader.
11146 (struct dwarf2_read_addr_index_data): Remove.
11147 (dwarf2_read_addr_index_reader): Remove.
11148 (dwarf2_read_addr_index): Use cutu_reader.
11149 (read_signatured_type_reader): Remove.
11150 (read_signatured_type): Use cutu_reader.
11151
11152 2020-01-19 Tom Tromey <tom@tromey.com>
11153
11154 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11155 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11156 (tui_wrefresh): Declare.
11157 * tui/tui-wingeneral.c (suppress_output): New global.
11158 (tui_suppress_output, ~tui_suppress_output): New constructor and
11159 destructor.
11160 (tui_wrefresh): New function.
11161 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11162 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11163 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11164 method.
11165 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11166 tui_wrefresh.
11167 (tui_data_window::no_refresh): New method.
11168 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11169 (tui_reg_command): Use tui_suppress_output
11170 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11171 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11172 method.
11173 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11174
11175 2020-01-19 Tom Tromey <tom@tromey.com>
11176
11177 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11178 Handle case where symtab is null.
11179
11180 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11181
11182 * linux-fork.c (one_fork_p): Simplify.
11183
11184 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11185
11186 * top.c (struct qt_args): Remove.
11187 (kill_or_detach): Change return type to void, replace `void *`
11188 parameter with a proper one.
11189 (print_inferior_quit_action): Likewise.
11190 (quit_confirm): Use range-based for loop to iterate over inferiors.
11191 (quit_force): Likewise.
11192
11193 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11194
11195 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11196 `void *` parameter with proper parameters.
11197 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11198 (print_one_inferior): Change return type to void, replace `void *`
11199 parameter with proper parameters.
11200 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11201 inferiors.
11202 (get_other_inferior): Remove.
11203 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11204 inferiors.
11205
11206 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11207
11208 * mi/mi-interp.c (report_initial_inferior): Remove.
11209 (mi_interp::init): Use range-based for to iterate over inferiors.
11210
11211 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11212
11213 * python/py-inferior.c (build_inferior_list): Remove.
11214 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11215
11216 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11217
11218 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11219 (btrace_stitch_trace): Likewise.
11220 * charset.c (intermediate_encoding): Likewise (vaild).
11221 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11222 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11223 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11224
11225 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11226
11227 * windows-tdep.c (windows_get_tlb_type):
11228 Add rtl_user_process_parameters type.
11229
11230 2020-01-16 Pedro Alves <palves@redhat.com>
11231 Norbert Lange <nolange79@gmail.com>
11232
11233 PR build/24805
11234 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11235 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11236 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11237 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11238 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11239 (ps_plog): Redeclare exported functions with default visibility.
11240
11241 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11242
11243 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11244 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11245
11246 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11247
11248 * infcmd.c (post_create_inferior): Use get_thread_regcache
11249 instead of get_current_regcache.
11250
11251 2020-01-14 Tom Tromey <tom@tromey.com>
11252
11253 PR symtab/12535:
11254 * python/python.c (gdbpy_decode_line): Treat empty string the same
11255 as no argument.
11256
11257 2020-01-14 Tom Tromey <tom@tromey.com>
11258
11259 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11260
11261 2020-01-14 Tom Tromey <tom@tromey.com>
11262
11263 * nat/linux-btrace.c: Don't include <config.h>.
11264 * nat/linux-ptrace.c: Don't include <config.h>.
11265 * nat/x86-linux-dregs.c: Don't include <config.h>.
11266
11267 2020-01-14 Tom Tromey <tom@tromey.com>
11268
11269 * configure: Rebuild.
11270 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11271
11272 2020-01-14 Tom Tromey <tom@tromey.com>
11273
11274 * nat/x86-linux-dregs.c: Include configh.h.
11275 * nat/linux-ptrace.c: Include configh.h.
11276 * nat/linux-btrace.c: Include configh.h.
11277 * defs.h: Include config.h, bfd.h.
11278 * configure.ac: Don't source common.host.
11279 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11280 * configure: Rebuild.
11281 * acinclude.m4: Update path.
11282 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11283 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11284 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11285 (CLIBS): Add LIBSUPPORT.
11286 (CDEPS): Likewise.
11287 (COMMON_SFILES): Remove gdbsupport files.
11288 (HFILES_NO_SRCDIR): Likewise.
11289 (stamp-version): Update path to create-version.sh.
11290 (ALLDEPFILES): Remove gdbsupport files.
11291
11292 2020-01-14 Tom Tromey <tom@tromey.com>
11293
11294 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11295 USE_WIN32API when needed.
11296 * configure.ac (USE_WIN32API): Don't define.
11297 (WIN32LIBS): Use WIN32APILIBS.
11298 * configure: Rebuild.
11299
11300 2020-01-14 Tom Tromey <tom@tromey.com>
11301
11302 * configure: Rebuild.
11303 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11304
11305 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11306
11307 * skip.c (skip_function_command): Make skip w/o arguments use the
11308 name of the inlined function if pc is inside any inlined function.
11309
11310 2020-01-14 Luis Machado <luis.machado@linaro.org>
11311
11312 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11313 * infrun.c (resume_1): Likewise.
11314 (handle_inferior_event): Remove stale comment.
11315 * linux-nat.c (linux_nat_target::resume): Update comments.
11316 (save_stop_reason): Likewise.
11317 (linux_nat_filter_event): Likewise.
11318 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11319
11320 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11321
11322 * elfread.c (record_minimal_symbol): Set section index to 0 for
11323 non-allocatable sections.
11324
11325
11326 2020-01-13 Ali Tamur <tamur@google.com>
11327
11328 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11329 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11330 to gdb::optional. Update comments.
11331 (dwo_file): Update comments.
11332 (read_attribute): Update API to take an additional out parameter,
11333 need_reprocess. This is used to mark attributes that need other
11334 attributes (e.g. str_offsets_base) for correct computation which may not
11335 have been read yet.
11336 (read_attribute_reprocess): New function declaration.
11337 (read_addr_index): Likewise.
11338 (read_dwo_str_index): Likewise.
11339 (read_stub_str_index): Likewise.
11340 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11341 (lookup_addr_base): New function definition.
11342 (lookup_ranges_base): Likewise.
11343 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11344 lookup_ranges_base.
11345 (init_cutu_and_read_dies): Update comments.
11346 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11347 unit. This is used to inherit parent's str_offsets_base and addr_base.
11348 Update comments.
11349 (init_cutu_and_read_dies_simple): Reflect API changes.
11350 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11351 (create_cus_hash_table): Change API to take parent compile unit.
11352 Reflect API changes.
11353 (open_and_init_dwo_file): Reflect API changes.
11354 (dwarf2_get_pc_bounds): Update comments.
11355 (dwarf2_record_block_ranges): Likewise.
11356 (read_full_die_1): Change implementation to reprocess attributes that
11357 need str_offsets_base and addr_base.
11358 (partial_die_info::read): Likewise.
11359 (read_attribute_reprocess): New function definition.
11360 (read_attribute_value): Change API to take an additional out parameter,
11361 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11362 when a non-dwo compile unit has index based attributes.
11363 (read_attribute): Reflect API changes.
11364 (read_addr_index_1): Reflect API changes. Update comments.
11365 (dwarf2_read_addr_index_data): Reflect API changes.
11366 (dwarf2_read_addr_index): Likewise.
11367 (read_str_index): Change API and implementation. This becomes a helper
11368 to be used by the new string index related methods. Update error
11369 message and comments.
11370 (read_dwo_str_index): New function definition.
11371 (read_stub_str_index): Likewise.
11372 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11373 * symfile.h (dwarf2_debug_sections): Likewise.
11374 * xcoffread.c (dwarf2_debug_sections): Likewise.
11375
11376 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11377
11378 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11379 core_reg_sect type to gdb_byte *.
11380 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11381 * cris-tdep.c (fetch_core_registers): Likewise.
11382 * corelow.c (core_target::get_core_register_section): Change
11383 type of `contents` to gdb::byte_vector.
11384
11385 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11386
11387 * tui/tui-wingeneral.c (box_win): Position the title in the center
11388 of the border.
11389
11390 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11391
11392 * corelow.c (core_target::get_core_register_section): Use
11393 std::vector instead of alloca.
11394
11395 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11396
11397 * warning.m4: Add -Wmissing-declarations to build_warnings.
11398 * configure: Re-generate.
11399
11400 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11401
11402 * python/python.c (init__gdb_module): Add declaration.
11403
11404 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11405
11406 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11407 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11408 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11409 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11410 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11411 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11412 * ada-exp.y (_initialize_ada_exp): Add declaration.
11413 * ada-lang.c (_initialize_ada_language): Add declaration.
11414 * ada-tasks.c (_initialize_tasks): Add declaration.
11415 * agent.c (_initialize_agent): Add declaration.
11416 * aix-thread.c (_initialize_aix_thread): Add declaration.
11417 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11418 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11419 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11420 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11421 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11422 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11423 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11424 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11425 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11426 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11427 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11428 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11429 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11430 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11431 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11432 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11433 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11434 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11435 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11436 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11437 * annotate.c (_initialize_annotate): Add declaration.
11438 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11439 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11440 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11441 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11442 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11443 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11444 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11445 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11446 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11447 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11448 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11449 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11450 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11451 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11452 * auto-load.c (_initialize_auto_load): Add declaration.
11453 * auxv.c (_initialize_auxv): Add declaration.
11454 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11455 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11456 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11457 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11458 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11459 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11460 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11461 * breakpoint.c (_initialize_breakpoint): Add declaration.
11462 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11463 * btrace.c (_initialize_btrace): Add declaration.
11464 * charset.c (_initialize_charset): Add declaration.
11465 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11466 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11467 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11468 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11469 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11470 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11471 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11472 * coffread.c (_initialize_coffread): Add declaration.
11473 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11474 * compile/compile.c (_initialize_compile): Add declaration.
11475 * complaints.c (_initialize_complaints): Add declaration.
11476 * completer.c (_initialize_completer): Add declaration.
11477 * copying.c (_initialize_copying): Add declaration.
11478 * corefile.c (_initialize_core): Add declaration.
11479 * corelow.c (_initialize_corelow): Add declaration.
11480 * cp-abi.c (_initialize_cp_abi): Add declaration.
11481 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11482 * cp-support.c (_initialize_cp_support): Add declaration.
11483 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11484 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11485 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11486 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11487 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11488 * ctfread.c (_initialize_ctfread): Add declaration.
11489 * d-lang.c (_initialize_d_language): Add declaration.
11490 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11491 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11492 * dbxread.c (_initialize_dbxread): Add declaration.
11493 * dcache.c (_initialize_dcache): Add declaration.
11494 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11495 * disasm.c (_initialize_disasm): Add declaration.
11496 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11497 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11498 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11499 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11500 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11501 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11502 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11503 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11504 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11505 * elfread.c (_initialize_elfread): Add declaration.
11506 * exec.c (_initialize_exec): Add declaration.
11507 * extension.c (_initialize_extension): Add declaration.
11508 * f-lang.c (_initialize_f_language): Add declaration.
11509 * f-valprint.c (_initialize_f_valprint): Add declaration.
11510 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11511 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11512 * filesystem.c (_initialize_filesystem): Add declaration.
11513 * findcmd.c (_initialize_mem_search): Add declaration.
11514 * findvar.c (_initialize_findvar): Add declaration.
11515 * fork-child.c (_initialize_fork_child): Add declaration.
11516 * frame-base.c (_initialize_frame_base): Add declaration.
11517 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11518 * frame.c (_initialize_frame): Add declaration.
11519 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11520 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11521 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11522 * gcore.c (_initialize_gcore): Add declaration.
11523 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11524 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11525 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11526 * gdbarch.c (_initialize_gdbarch): Add declaration.
11527 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11528 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11529 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11530 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11531 * go-lang.c (_initialize_go_language): Add declaration.
11532 * go32-nat.c (_initialize_go32_nat): Add declaration.
11533 * guile/guile.c (_initialize_guile): Add declaration.
11534 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11535 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11536 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11537 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11538 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11539 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11540 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11541 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11542 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11543 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11544 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11545 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11546 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11547 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11548 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11549 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11550 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11551 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11552 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11553 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11554 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11555 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11556 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11557 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11558 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11559 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11560 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11561 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11562 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11563 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11564 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11565 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11566 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11567 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11568 * infcall.c (_initialize_infcall): Add declaration.
11569 * infcmd.c (_initialize_infcmd): Add declaration.
11570 * inflow.c (_initialize_inflow): Add declaration.
11571 * infrun.c (_initialize_infrun): Add declaration.
11572 * interps.c (_initialize_interpreter): Add declaration.
11573 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11574 * jit.c (_initialize_jit): Add declaration.
11575 * language.c (_initialize_language): Add declaration.
11576 * linux-fork.c (_initialize_linux_fork): Add declaration.
11577 * linux-nat.c (_initialize_linux_nat): Add declaration.
11578 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11579 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11580 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11581 * m2-lang.c (_initialize_m2_language): Add declaration.
11582 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11583 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11584 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11585 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11586 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11587 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11588 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11589 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11590 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11591 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11592 * machoread.c (_initialize_machoread): Add declaration.
11593 * macrocmd.c (_initialize_macrocmd): Add declaration.
11594 * macroscope.c (_initialize_macroscope): Add declaration.
11595 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11596 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11597 * maint.c (_initialize_maint_cmds): Add declaration.
11598 * mdebugread.c (_initialize_mdebugread): Add declaration.
11599 * memattr.c (_initialize_mem): Add declaration.
11600 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11601 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11602 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11603 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11604 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11605 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11606 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11607 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11608 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11609 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11610 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11611 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11612 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11613 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11614 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11615 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11616 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11617 * mipsread.c (_initialize_mipsread): Add declaration.
11618 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11619 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11620 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11621 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11622 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11623 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11624 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11625 * nto-procfs.c (_initialize_procfs): Add declaration.
11626 * objc-lang.c (_initialize_objc_language): Add declaration.
11627 * observable.c (_initialize_observer): Add declaration.
11628 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11629 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11630 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11631 * osabi.c (_initialize_gdb_osabi): Add declaration.
11632 * osdata.c (_initialize_osdata): Add declaration.
11633 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11634 * parse.c (_initialize_parse): Add declaration.
11635 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11636 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11637 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11638 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11639 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11640 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11641 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11642 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11643 * printcmd.c (_initialize_printcmd): Add declaration.
11644 * probe.c (_initialize_probe): Add declaration.
11645 * proc-api.c (_initialize_proc_api): Add declaration.
11646 * proc-events.c (_initialize_proc_events): Add declaration.
11647 * proc-service.c (_initialize_proc_service): Add declaration.
11648 * procfs.c (_initialize_procfs): Add declaration.
11649 * producer.c (_initialize_producer): Add declaration.
11650 * psymtab.c (_initialize_psymtab): Add declaration.
11651 * python/python.c (_initialize_python): Add declaration.
11652 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11653 * record-btrace.c (_initialize_record_btrace): Add declaration.
11654 * record-full.c (_initialize_record_full): Add declaration.
11655 * record.c (_initialize_record): Add declaration.
11656 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11657 * regcache.c (_initialize_regcache): Add declaration.
11658 * reggroups.c (_initialize_reggroup): Add declaration.
11659 * remote-notif.c (_initialize_notif): Add declaration.
11660 * remote-sim.c (_initialize_remote_sim): Add declaration.
11661 * remote.c (_initialize_remote): Add declaration.
11662 * reverse.c (_initialize_reverse): Add declaration.
11663 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11664 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11665 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11666 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11667 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11668 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11669 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11670 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11671 Add declaration.
11672 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11673 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11674 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11675 * rust-exp.y (_initialize_rust_exp): Add declaration.
11676 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11677 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11678 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11679 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11680 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11681 * score-tdep.c (_initialize_score_tdep): Add declaration.
11682 * ser-go32.c (_initialize_ser_dos): Add declaration.
11683 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11684 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11685 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11686 * ser-uds.c (_initialize_ser_socket): Add declaration.
11687 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11688 * serial.c (_initialize_serial): Add declaration.
11689 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11690 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11691 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11692 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11693 * skip.c (_initialize_step_skip): Add declaration.
11694 * sol-thread.c (_initialize_sol_thread): Add declaration.
11695 * solib-aix.c (_initialize_solib_aix): Add declaration.
11696 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11697 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11698 * solib-frv.c (_initialize_frv_solib): Add declaration.
11699 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11700 * solib-target.c (_initialize_solib_target): Add declaration.
11701 * solib.c (_initialize_solib): Add declaration.
11702 * source-cache.c (_initialize_source_cache): Add declaration.
11703 * source.c (_initialize_source): Add declaration.
11704 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11705 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11706 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11707 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11708 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11709 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11710 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11711 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11712 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11713 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11714 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11715 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11716 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11717 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11718 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11719 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11720 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11721 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11722 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11723 * stabsread.c (_initialize_stabsread): Add declaration.
11724 * stack.c (_initialize_stack): Add declaration.
11725 * stap-probe.c (_initialize_stap_probe): Add declaration.
11726 * std-regs.c (_initialize_frame_reg): Add declaration.
11727 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11728 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11729 * symfile.c (_initialize_symfile): Add declaration.
11730 * symmisc.c (_initialize_symmisc): Add declaration.
11731 * symtab.c (_initialize_symtab): Add declaration.
11732 * target.c (_initialize_target): Add declaration.
11733 * target-connection.c (_initialize_target_connection): Add
11734 declaration.
11735 * target-dcache.c (_initialize_target_dcache): Add declaration.
11736 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11737 * thread.c (_initialize_thread): Add declaration.
11738 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11739 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11740 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11741 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11742 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11743 * tracectf.c (_initialize_ctf): Add declaration.
11744 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11745 * tracefile.c (_initialize_tracefile): Add declaration.
11746 * tracepoint.c (_initialize_tracepoint): Add declaration.
11747 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11748 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11749 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11750 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11751 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11752 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11753 * tui/tui.c (_initialize_tui): Add declaration.
11754 * typeprint.c (_initialize_typeprint): Add declaration.
11755 * ui-style.c (_initialize_ui_style): Add declaration.
11756 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11757 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11758 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11759 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11760 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11761 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11762 * unittests/filtered_iterator-selftests.c
11763 (_initialize_filtered_iterator_selftests): Add declaration.
11764 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11765 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11766 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11767 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11768 * unittests/main-thread-selftests.c
11769 (_initialize_main_thread_selftests): Add declaration.
11770 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11771 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11772 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11773 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11774 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11775 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11776 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11777 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11778 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11779 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11780 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11781 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11782 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11783 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11784 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11785 declaration.
11786 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11787 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11788 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11789 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11790 * user-regs.c (_initialize_user_regs): Add declaration.
11791 * utils.c (_initialize_utils): Add declaration.
11792 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11793 * valops.c (_initialize_valops): Add declaration.
11794 * valprint.c (_initialize_valprint): Add declaration.
11795 * value.c (_initialize_values): Add declaration.
11796 * varobj.c (_initialize_varobj): Add declaration.
11797 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11798 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11799 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11800 * windows-nat.c (_initialize_windows_nat): Add declaration.
11801 (_initialize_check_for_gdb_ini): Add declaration.
11802 (_initialize_loadable): Add declaration.
11803 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11804 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11805 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11806 * xcoffread.c (_initialize_xcoffread): Add declaration.
11807 * xml-support.c (_initialize_xml_support): Add declaration.
11808 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11809 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11810 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11811 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11812
11813 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11814
11815 * regformats/regdat.sh: Generate declaration for init function.
11816
11817 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11818
11819 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11820 up.
11821 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11822 close_one_inferior>: New methods.
11823 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11824 pass down target to find_inferior_pid.
11825 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11826 Pass down target to find_inferior_ptid.
11827 (gdbsim_target::create_inferior): Pass down target to
11828 add_thread_silent.
11829 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11830 target down to find_inferior_ptid and switch_to_thread.
11831 (gdbsim_target::close): Update to call close_one_inferior.
11832 (struct resume_data): Remove.
11833 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11834 directly, rather than through a void pointer.
11835 (gdbsim_target::resume): Update to call resume_one_inferior.
11836
11837 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11838
11839 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11840
11841 2020-01-12 Pedro Alves <palves@redhat.com>
11842
11843 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11844 directly for the current inferior instead of
11845 discard_all_inferiors.
11846 (discard_all_inferiors): Delete.
11847
11848 2020-01-11 Tom Tromey <tom@tromey.com>
11849
11850 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11851 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11852 deprecated_safe_get_selected_frame.
11853
11854 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11855
11856 * inferior.c (print_inferior): Switch inferior before printing it.
11857
11858 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11859 Pedro Alves <palves@redhat.com>
11860
11861 * progspace-and-thread.c (switch_to_program_space_and_thread):
11862 Assert there's an inferior for PSPACE. Use
11863 switch_to_inferior_no_thread to switch the inferior too.
11864 * progspace.c (program_space::~program_space): Call
11865 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11866 (program_space::free_all_objfiles): Don't call clear_symtab_users
11867 here.
11868 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11869
11870 2020-01-10 Pedro Alves <palves@redhat.com>
11871
11872 * NEWS: Mention multi-target debugging, "info connections", and
11873 "add-inferior -no-connection".
11874
11875 2020-01-10 Pedro Alves <palves@redhat.com>
11876
11877 * infrun.c: Include "target-connection.h".
11878 (check_multi_target_resumption): New.
11879 (proceed): Call it.
11880 * target-connection.c (make_target_connection_string): Make
11881 extern.
11882 * target-connection.h (make_target_connection_string): Declare.
11883
11884 2020-01-10 Pedro Alves <palves@redhat.com>
11885
11886 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11887 * inferior.c (uiout_field_connection): New function.
11888 (print_inferior): Add new "connection-id" column.
11889 (add_inferior_command): Show connection number/string of added
11890 inferior.
11891 * process-stratum-target.h
11892 (process_stratum_target::connection_string): New virtual method.
11893 (process_stratum_target::connection_number): New field.
11894 * remote.c (remote_target::connection_string): New override.
11895 * target-connection.c: New file.
11896 * target-connection.h: New file.
11897 * target.c (decref_target): Remove process_stratum targets from
11898 the connection list.
11899 (target_stack::push): Add process_stratum targets to the
11900 connection list.
11901
11902 2020-01-10 Pedro Alves <palves@redhat.com>
11903
11904 Revert:
11905 2016-04-12 Pedro Alves <palves@redhat.com>
11906 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11907 Remove references to name.
11908 * serial.h (struct serial) <name>: Delete.
11909
11910 2020-01-10 Pedro Alves <palves@redhat.com>
11911
11912 * gdbarch-selftests.c (register_to_value_test): Remove "target
11913 already pushed" check.
11914
11915 2020-01-10 Pedro Alves <palves@redhat.com>
11916 John Baldwin <jhb@FreeBSD.org>
11917
11918 * aarch64-linux-nat.c
11919 (aarch64_linux_nat_target::thread_architecture): Adjust.
11920 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11921 (task_command_1): Likewise.
11922 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11923 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11924 (aix_thread_target::store_registers)
11925 (aix_thread_target::thread_alive): Adjust.
11926 * amd64-fbsd-tdep.c: Include "inferior.h".
11927 (amd64fbsd_get_thread_local_address): Pass down target.
11928 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11929 thread's gdbarch instead of target_gdbarch.
11930 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11931 get_last_target_status.
11932 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11933 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11934 inferiors.
11935 (update_inserted_breakpoint_locations): Skip if inferiors with no
11936 execution.
11937 (update_global_location_list): When handling moribund locations,
11938 find representative inferior for location's pspace, and use thread
11939 count of its process_stratum target.
11940 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11941 * bsd-uthread.c (bsd_uthread_target::wait): Use
11942 as_process_stratum_target and adjust thread_change_ptid and
11943 add_thread calls.
11944 (bsd_uthread_target::update_thread_list): Use
11945 as_process_stratum_target and adjust find_thread_ptid,
11946 thread_change_ptid and add_thread calls.
11947 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11948 find_thread_ptid call.
11949 * corelow.c (add_to_thread_list): Adjust add_thread call.
11950 (core_target_open): Adjust add_thread_silent and thread_count
11951 calls.
11952 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11953 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11954 * event-top.c (async_disconnect): Pop targets from all inferiors.
11955 * exec.c (add_target_sections): Push exec target on all inferiors
11956 sharing the program space.
11957 (remove_target_sections): Remove the exec target from all
11958 inferiors sharing the program space.
11959 (exec_on_vfork): New.
11960 * exec.h (exec_on_vfork): Declare.
11961 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11962 Pass it down.
11963 (fbsd_nat_target::update_thread_list): Adjust.
11964 (fbsd_nat_target::resume): Adjust.
11965 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11966 down.
11967 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11968 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11969 get_thread_arch_regcache call.
11970 * fork-child.c (gdb_startup_inferior): Pass target down to
11971 startup_inferior and set_executing.
11972 * gdbthread.h (struct process_stratum_target): Forward declare.
11973 (add_thread, add_thread_silent, add_thread_with_info)
11974 (in_thread_list): Add process_stratum_target parameter.
11975 (find_thread_ptid(inferior*, ptid_t)): New overload.
11976 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11977 parameter.
11978 (all_threads()): Delete overload.
11979 (all_threads, all_non_exited_threads): Add process_stratum_target
11980 parameter.
11981 (all_threads_safe): Use brace initialization.
11982 (thread_count): Add process_stratum_target parameter.
11983 (set_resumed, set_running, set_stop_requested, set_executing)
11984 (threads_are_executing, finish_thread_state): Add
11985 process_stratum_target parameter.
11986 (switch_to_thread): Use is_current_thread.
11987 * i386-fbsd-tdep.c: Include "inferior.h".
11988 (i386fbsd_get_thread_local_address): Pass down target.
11989 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11990 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11991 have_inferiors check.
11992 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11993 (inf_ptrace_target::attach): Adjust.
11994 * infcall.c (run_inferior_call): Adjust.
11995 * infcmd.c (run_command_1): Pass target to
11996 scoped_finish_thread_state.
11997 (proceed_thread_callback): Skip inferiors with no execution.
11998 (continue_command): Rename 'all_threads' local to avoid hiding
11999 'all_threads' function. Adjust get_last_target_status call.
12000 (prepare_one_step): Adjust set_running call.
12001 (signal_command): Use user_visible_resume_target. Compare thread
12002 pointers instead of inferior_ptid.
12003 (info_program_command): Adjust to pass down target.
12004 (attach_command): Mark target's 'thread_executing' flag.
12005 (stop_current_target_threads_ns): New, factored out from ...
12006 (interrupt_target_1): ... this. Switch inferior before making
12007 target calls.
12008 * inferior-iter.h
12009 (struct all_inferiors_iterator, struct all_inferiors_range)
12010 (struct all_inferiors_safe_range)
12011 (struct all_non_exited_inferiors_range): Filter on
12012 process_stratum_target too. Remove explicit.
12013 * inferior.c (inferior::inferior): Push dummy target on target
12014 stack.
12015 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12016 Add process_stratum_target parameter, and pass it down.
12017 (have_live_inferiors): Adjust.
12018 (switch_to_inferior_and_push_target): New.
12019 (add_inferior_command, clone_inferior_command): Handle
12020 "-no-connection" parameter. Use
12021 switch_to_inferior_and_push_target.
12022 (_initialize_inferior): Mention "-no-connection" option in
12023 the help of "add-inferior" and "clone-inferior" commands.
12024 * inferior.h: Include "process-stratum-target.h".
12025 (interrupt_target_1): Use bool.
12026 (struct inferior) <push_target, unpush_target, target_is_pushed,
12027 find_target_beneath, top_target, process_target, target_at,
12028 m_stack>: New.
12029 (discard_all_inferiors): Delete.
12030 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12031 (all_inferiors, all_non_exited_inferiors): Add
12032 process_stratum_target parameter.
12033 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12034 (target_last_proc_target): New global.
12035 (follow_fork_inferior): Push target on new inferior. Pass target
12036 to add_thread_silent. Call exec_on_vfork. Handle target's
12037 reference count.
12038 (follow_fork): Adjust get_last_target_status call. Also consider
12039 target.
12040 (follow_exec): Push target on new inferior.
12041 (struct execution_control_state) <target>: New field.
12042 (user_visible_resume_target): New.
12043 (do_target_resume): Call target_async.
12044 (resume_1): Set target's threads_executing flag. Consider resume
12045 target.
12046 (commit_resume_all_targets): New.
12047 (proceed): Also consider resume target. Skip threads of inferiors
12048 with no execution. Commit resumtion in all targets.
12049 (start_remote): Pass current inferior to wait_for_inferior.
12050 (infrun_thread_stop_requested): Consider target as well. Pass
12051 thread_info pointer to clear_inline_frame_state instead of ptid.
12052 (infrun_thread_thread_exit): Consider target as well.
12053 (random_pending_event_thread): New inferior parameter. Use it.
12054 (do_target_wait): Rename to ...
12055 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12056 down.
12057 (threads_are_resumed_pending_p, do_target_wait): New.
12058 (prepare_for_detach): Adjust calls.
12059 (wait_for_inferior): New inferior parameter. Handle it. Use
12060 do_target_wait_1 instead of do_target_wait.
12061 (fetch_inferior_event): Adjust. Switch to representative
12062 inferior. Pass target down.
12063 (set_last_target_status): Add process_stratum_target parameter.
12064 Save target in global.
12065 (get_last_target_status): Add process_stratum_target parameter and
12066 handle it.
12067 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12068 (context_switch): Check inferior_ptid == null_ptid before calling
12069 inferior_thread().
12070 (get_inferior_stop_soon): Pass down target.
12071 (wait_one): Rename to ...
12072 (poll_one_curr_target): ... this.
12073 (struct wait_one_event): New.
12074 (wait_one): New.
12075 (stop_all_threads): Adjust.
12076 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12077 event's target.
12078 (switch_back_to_stepped_thread): Also consider target.
12079 (print_stop_event): Update.
12080 (normal_stop): Update. Also consider the resume target.
12081 * infrun.h (wait_for_inferior): Remove declaration.
12082 (user_visible_resume_target): New declaration.
12083 (get_last_target_status, set_last_target_status): New
12084 process_stratum_target parameter.
12085 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12086 process_stratum_target parameter, and use it.
12087 (clear_inline_frame_state (thread_info*)): New.
12088 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12089 process_stratum_target parameter.
12090 (clear_inline_frame_state (thread_info*)): Declare.
12091 * linux-fork.c (delete_checkpoint_command): Pass target down to
12092 find_thread_ptid.
12093 (checkpoint_command): Adjust.
12094 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12095 instead of just tweaking inferior_ptid.
12096 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12097 (exit_lwp): Pass target down to find_thread_ptid.
12098 (attach_proc_task_lwp_callback): Pass target down to
12099 add_thread/set_running/set_executing.
12100 (linux_nat_target::attach): Pass target down to
12101 thread_change_ptid.
12102 (get_detach_signal): Pass target down to find_thread_ptid.
12103 Consider last target status's target.
12104 (linux_resume_one_lwp_throw, resume_lwp)
12105 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12106 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12107 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12108 (linux_nat_target::async_wait_fd): New.
12109 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12110 target down.
12111 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12112 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12113 * linux-thread-db.c (struct thread_db_info::process_target): New
12114 field.
12115 (add_thread_db_info): Save target.
12116 (get_thread_db_info): New process_stratum_target parameter. Also
12117 match target.
12118 (delete_thread_db_info): New process_stratum_target parameter.
12119 Also match target.
12120 (thread_from_lwp): Adjust to pass down target.
12121 (thread_db_notice_clone): Pass down target.
12122 (check_thread_db_callback): Pass down target.
12123 (try_thread_db_load_1): Always push the thread_db target.
12124 (try_thread_db_load, record_thread): Pass target down.
12125 (thread_db_target::detach): Pass target down. Always unpush the
12126 thread_db target.
12127 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12128 target down. Always unpush the thread_db target.
12129 (find_new_threads_callback, thread_db_find_new_threads_2)
12130 (thread_db_target::update_thread_list): Pass target down.
12131 (thread_db_target::pid_to_str): Pass current inferior down.
12132 (thread_db_target::get_thread_local_address): Pass target down.
12133 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12134 target down.
12135 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12136 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12137 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12138 (procfs_init_inferior): Rename to ...
12139 (procfs_target::procfs_init_inferior): ... this and adjust.
12140 (procfs_target::create_inferior, procfs_notice_thread)
12141 (procfs_do_thread_registers): Adjust.
12142 * ppc-fbsd-tdep.c: Include "inferior.h".
12143 (ppcfbsd_get_thread_local_address): Pass down target.
12144 * proc-service.c (ps_xfer_memory): Switch current inferior and
12145 program space as well.
12146 (get_ps_regcache): Pass target down.
12147 * process-stratum-target.c
12148 (process_stratum_target::thread_address_space)
12149 (process_stratum_target::thread_architecture): Pass target down.
12150 * process-stratum-target.h
12151 (process_stratum_target::threads_executing): New field.
12152 (as_process_stratum_target): New.
12153 * ravenscar-thread.c
12154 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12155 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12156 down.
12157 * record-btrace.c (record_btrace_target::info_record): Adjust.
12158 (record_btrace_target::record_method)
12159 (record_btrace_target::record_is_replaying)
12160 (record_btrace_target::fetch_registers)
12161 (get_thread_current_frame_id, record_btrace_target::resume)
12162 (record_btrace_target::wait, record_btrace_target::stop): Pass
12163 target down.
12164 * record-full.c (record_full_wait_1): Switch to event thread.
12165 Pass target down.
12166 * regcache.c (regcache::regcache)
12167 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12168 process_stratum_target parameter and handle it.
12169 (current_thread_target): New global.
12170 (get_thread_regcache): Add process_stratum_target parameter and
12171 handle it. Switch inferior before calling target method.
12172 (get_thread_regcache): Pass target down.
12173 (get_thread_regcache_for_ptid): Pass target down.
12174 (registers_changed_ptid): Add process_stratum_target parameter and
12175 handle it.
12176 (registers_changed_thread, registers_changed): Pass target down.
12177 (test_get_thread_arch_aspace_regcache): New.
12178 (current_regcache_test): Define a couple local test_target_ops
12179 instances and use them for testing.
12180 (readwrite_regcache): Pass process_stratum_target parameter.
12181 (cooked_read_test, cooked_write_test): Pass mock_target down.
12182 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12183 (get_thread_arch_aspace_regcache): Add process_stratum_target
12184 parameter.
12185 (regcache::target): New method.
12186 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12187 (regcache::registers_changed_ptid): Add process_stratum_target
12188 parameter.
12189 (regcache::m_target): New field.
12190 (registers_changed_ptid): Add process_stratum_target parameter.
12191 * remote.c (remote_state::supports_vCont_probed): New field.
12192 (remote_target::async_wait_fd): New method.
12193 (remote_unpush_and_throw): Add remote_target parameter.
12194 (get_current_remote_target): Adjust.
12195 (remote_target::remote_add_inferior): Push target.
12196 (remote_target::remote_add_thread)
12197 (remote_target::remote_notice_new_inferior)
12198 (get_remote_thread_info): Pass target down.
12199 (remote_target::update_thread_list): Skip threads of inferiors
12200 bound to other targets. (remote_target::close): Don't discard
12201 inferiors. (remote_target::add_current_inferior_and_thread)
12202 (remote_target::process_initial_stop_replies)
12203 (remote_target::start_remote)
12204 (remote_target::remote_serial_quit_handler): Pass down target.
12205 (remote_target::remote_unpush_target): New remote_target
12206 parameter. Unpush the target from all inferiors.
12207 (remote_target::remote_unpush_and_throw): New remote_target
12208 parameter. Pass it down.
12209 (remote_target::open_1): Check whether the current inferior has
12210 execution instead of checking whether any inferior is live. Pass
12211 target down.
12212 (remote_target::remote_detach_1): Pass down target. Use
12213 remote_unpush_target.
12214 (extended_remote_target::attach): Pass down target.
12215 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12216 (remote_target::append_resumption): Pass down target.
12217 (remote_target::append_pending_thread_resumptions)
12218 (remote_target::remote_resume_with_hc, remote_target::resume)
12219 (remote_target::commit_resume): Pass down target.
12220 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12221 (remote_target::interrupt_query)
12222 (remote_target::remove_new_fork_children)
12223 (remote_target::check_pending_events_prevent_wildcard_vcont)
12224 (remote_target::remote_parse_stop_reply)
12225 (remote_target::process_stop_reply): Pass down target.
12226 (first_remote_resumed_thread): New remote_target parameter. Pass
12227 it down.
12228 (remote_target::wait_as): Pass down target.
12229 (unpush_and_perror): New remote_target parameter. Pass it down.
12230 (remote_target::readchar, remote_target::remote_serial_write)
12231 (remote_target::getpkt_or_notif_sane_1)
12232 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12233 down target.
12234 (remote_target::mourn_inferior): Pass down target. Use
12235 remote_unpush_target.
12236 (remote_target::core_of_thread)
12237 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12238 (remote_target::pid_to_exec_file)
12239 (remote_target::thread_handle_to_thread_info): Pass down target.
12240 (remote_target::async_wait_fd): New.
12241 * riscv-fbsd-tdep.c: Include "inferior.h".
12242 (riscv_fbsd_get_thread_local_address): Pass down target.
12243 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12244 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12245 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12246 Adjust.
12247 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12248 * solib-svr4.c (enable_break): Pass down target.
12249 * spu-multiarch.c (parse_spufs_run): Pass down target.
12250 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12251 * target-delegates.c: Regenerate.
12252 * target.c (g_target_stack): Delete.
12253 (current_top_target): Return the current inferior's top target.
12254 (target_has_execution_1): Refer to the passed-in inferior's top
12255 target.
12256 (target_supports_terminal_ours): Check whether the initial
12257 inferior was already created.
12258 (decref_target): New.
12259 (target_stack::push): Incref/decref the target.
12260 (push_target, push_target, unpush_target): Adjust.
12261 (target_stack::unpush): Defref target.
12262 (target_is_pushed): Return bool. Adjust to refer to the current
12263 inferior's target stack.
12264 (dispose_inferior): Delete, and inline parts ...
12265 (target_preopen): ... here. Only dispose of the current inferior.
12266 (target_detach): Hold strong target reference while detaching.
12267 Pass target down.
12268 (target_thread_name): Add assertion.
12269 (target_resume): Pass down target.
12270 (target_ops::beneath, find_target_at): Adjust to refer to the
12271 current inferior's target stack.
12272 (get_dummy_target): New.
12273 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12274 has a thread running.
12275 (initialize_targets): Rename to ...
12276 (_initialize_target): ... this.
12277 * target.h: Include "gdbsupport/refcounted-object.h".
12278 (struct target_ops): Inherit refcounted_object.
12279 (target_ops::shortname, target_ops::longname): Make const.
12280 (target_ops::async_wait_fd): New method.
12281 (decref_target): Declare.
12282 (struct target_ops_ref_policy): New.
12283 (target_ops_ref): New typedef.
12284 (get_dummy_target): Declare function.
12285 (target_is_pushed): Return bool.
12286 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12287 (all_matching_threads_iterator::all_matching_threads_iterator):
12288 Handle filter target.
12289 * thread-iter.h (struct all_matching_threads_iterator, struct
12290 all_matching_threads_range, class all_non_exited_threads_range):
12291 Filter by target too. Remove explicit.
12292 * thread.c (threads_executing): Delete.
12293 (inferior_thread): Pass down current inferior.
12294 (clear_thread_inferior_resources): Pass down thread pointer
12295 instead of ptid_t.
12296 (add_thread_silent, add_thread_with_info, add_thread): Add
12297 process_stratum_target parameter. Use it for thread and inferior
12298 searches.
12299 (is_current_thread): New.
12300 (thread_info::deletable): Use it.
12301 (find_thread_ptid, thread_count, in_thread_list)
12302 (thread_change_ptid, set_resumed, set_running): New
12303 process_stratum_target parameter. Pass it down.
12304 (set_executing): New process_stratum_target parameter. Pass it
12305 down. Adjust reference to 'threads_executing'.
12306 (threads_are_executing): New process_stratum_target parameter.
12307 Adjust reference to 'threads_executing'.
12308 (set_stop_requested, finish_thread_state): New
12309 process_stratum_target parameter. Pass it down.
12310 (switch_to_thread): Also match inferior.
12311 (switch_to_thread): New process_stratum_target parameter. Pass it
12312 down.
12313 (update_threads_executing): Reimplement.
12314 * top.c (quit_force): Pop targets from all inferior.
12315 (gdb_init): Don't call initialize_targets.
12316 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12317 Declare.
12318 (windows_add_thread, windows_delete_thread): Adjust.
12319 (get_windows_debug_event): Rename to ...
12320 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12321 * tracefile-tfile.c (tfile_target_open): Pass down target.
12322 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12323 Forward declare.
12324 (switch_to_thread): Add process_stratum_target parameter.
12325 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12326 parameter. Use it.
12327 (mi_on_resume): Pass target down.
12328 * nat/fork-inferior.c (startup_inferior): Add
12329 process_stratum_target parameter. Pass it down.
12330 * nat/fork-inferior.h (startup_inferior): Add
12331 process_stratum_target parameter.
12332 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12333
12334 2020-01-10 Pedro Alves <palves@redhat.com>
12335
12336 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12337 directly. Instead find the first thread in the thread list and
12338 use switch_to_thread.
12339
12340 2020-01-10 Pedro Alves <palves@redhat.com>
12341
12342 * remote.c (remote_target::remote_add_inferior): Don't bind a
12343 process to the current inferior if the current inferior is already
12344 bound to a process.
12345
12346 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12347 Pedro Alves <palves@redhat.com>
12348
12349 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12350 If no process is specified, return null_ptid instead of
12351 inferior_ptid.
12352 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12353 TARGET_WAITKIND_SIGNALLED with no pid.
12354
12355 2020-01-10 Pedro Alves <palves@redhat.com>
12356
12357 * remote.c (first_remote_resumed_thread): New.
12358 (remote_target::wait_as): Use it as default event_ptid instead of
12359 inferior_ptid.
12360
12361 2020-01-10 Pedro Alves <palves@redhat.com>
12362
12363 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12364
12365 2020-01-10 Pedro Alves <palves@redhat.com>
12366
12367 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12368 not -1.
12369
12370 2020-01-10 Pedro Alves <palves@redhat.com>
12371
12372 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12373 ptid to get_last_target_status.
12374 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12375 ptid to get_last_target_status.
12376 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12377 get_last_target_status.
12378 (info_program_command): Don't pass a target_waitstatus to
12379 get_last_target_status.
12380 * infrun.c (init_wait_for_inferior): Use
12381 nullify_last_target_wait_ptid.
12382 (get_last_target_status): Handle nullptr arguments.
12383 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12384 (print_stop_event): Don't pass a ptid to get_last_target_status.
12385 (normal_stop): Don't pass a ptid to get_last_target_status.
12386 * infrun.h (get_last_target_status, set_last_target_status): Move
12387 comments here and update.
12388 (nullify_last_target_wait_ptid): Declare.
12389 * linux-fork.c (fork_load_infrun_state): Remove local extern
12390 declaration of nullify_last_target_wait_ptid.
12391 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12392 to get_last_target_status.
12393
12394 2020-01-10 Pedro Alves <palves@redhat.com>
12395
12396 * gdbthread.h (scoped_restore_current_thread)
12397 <dont_restore, restore, m_dont_restore>: Declare.
12398 * thread.c (thread_alive): Add assertion. Return bool.
12399 (switch_to_thread_if_alive): New.
12400 (prune_threads): Switch inferior/thread.
12401 (print_thread_info_1): Switch thread before calling target methods.
12402 (scoped_restore_current_thread::restore): New, factored out from
12403 ...
12404 (scoped_restore_current_thread::~scoped_restore_current_thread):
12405 ... this.
12406 (scoped_restore_current_thread::scoped_restore_current_thread):
12407 Add assertion.
12408 (thread_apply_all_command, thread_select): Use
12409 switch_to_thread_if_alive.
12410 * infrun.c (proceed, restart_threads, handle_signal_stop)
12411 (switch_back_to_stepped_thread): Switch current thread before
12412 calling target methods.
12413
12414 2020-01-10 Pedro Alves <palves@redhat.com>
12415
12416 * inferior.c (switch_to_inferior_no_thread): New function,
12417 factored out from ...
12418 (inferior_command): ... here.
12419 * inferior.h (switch_to_inferior_no_thread): Declare.
12420 * mi/mi-main.c (run_one_inferior): Use
12421 switch_to_inferior_no_thread.
12422
12423 2020-01-10 Pedro Alves <palves@redhat.com>
12424
12425 * infcmd.c (kill_command): Remove dead code.
12426
12427 2020-01-10 Pedro Alves <palves@redhat.com>
12428
12429 * remote.c (remote_target::mourn_inferior): No longer check
12430 whether the target is running.
12431
12432 2020-01-10 Pedro Alves <palves@redhat.com>
12433
12434 * corelow.c (core_target::has_execution): Change parameter type to
12435 inferior pointer.
12436 * inferior.c (number_of_live_inferiors): Use
12437 inferior::has_execution instead of target_has_execution_1.
12438 * inferior.h (inferior::has_execution): New.
12439 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12440 inferior::has_execution instead of target_has_execution_1.
12441 * process-stratum-target.c
12442 (process_stratum_target::has_execution): Change parameter type to
12443 inferior pointer. Check the inferior's PID instead of
12444 inferior_ptid.
12445 * process-stratum-target.h
12446 (process_stratum_target::has_execution): Change parameter type to
12447 inferior pointer.
12448 * record-full.c (record_full_core_target::has_execution): Change
12449 parameter type to inferior pointer.
12450 * target.c (target_has_execution_1): Change parameter type to
12451 inferior pointer.
12452 (target_has_execution_current): Adjust.
12453 * target.h (target_ops::has_execution): Change parameter type to
12454 inferior pointer.
12455 (target_has_execution_1): Change parameter type to inferior
12456 pointer. Change return type to bool.
12457 * tracefile.h (tracefile_target::has_execution): Change parameter
12458 type to inferior pointer.
12459
12460 2020-01-10 Pedro Alves <palves@redhat.com>
12461
12462 * exceptions.c (print_flush): Remove current_top_target() check.
12463
12464 2020-01-10 Pedro Alves <palves@redhat.com>
12465
12466 * remote.c (show_remote_exec_file): Show the current inferior's
12467 exec-file instead of the command variable's value.
12468
12469 2020-01-10 Pedro Alves <palves@redhat.com>
12470
12471 * record-full.c (record_full_resume_ptid): New global.
12472 (record_full_target::resume): Set it.
12473 (record_full_wait_1): Use record_full_resume_ptid instead of
12474 inferior_ptid.
12475
12476 2020-01-10 Pedro Alves <palves@redhat.com>
12477
12478 * gdbthread.h (scoped_restore_current_thread)
12479 <dont_restore, restore, m_dont_restore>: Declare.
12480 * thread.c (thread_alive): Add assertion. Return bool.
12481 (switch_to_thread_if_alive): New.
12482 (prune_threads): Switch inferior/thread.
12483 (print_thread_info_1): Switch thread before calling target methods.
12484 (scoped_restore_current_thread::restore): New, factored out from
12485 ...
12486 (scoped_restore_current_thread::~scoped_restore_current_thread):
12487 ... this.
12488 (scoped_restore_current_thread::scoped_restore_current_thread):
12489 Add assertion.
12490 (thread_apply_all_command, thread_select): Use
12491 switch_to_thread_if_alive.
12492
12493 2020-01-10 George Barrett <bob@bob131.so>
12494
12495 * stap-probe.c (stap_modify_semaphore): Don't check for null
12496 semaphores.
12497 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12498 for null semaphores.
12499
12500 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12501
12502 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12503 all source windows, and maintain horizontal scroll status while
12504 doing so.
12505
12506 2020-01-09 Tom Tromey <tom@tromey.com>
12507
12508 PR tui/18932:
12509 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12510 update_source_window, not print_source_lines.
12511
12512 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12513
12514 * tui/tui.c (tui_enable): Register tui hooks after calling
12515 tui_display_main.
12516
12517 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12518
12519 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12520
12521 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12522
12523 * thread.c (print_thread_info_1): Fix indentation.
12524
12525 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12526
12527 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12528 unique_xmalloc_ptr outside the if to always free the demangled name.
12529
12530 2020-01-08 Tom Tromey <tromey@adacore.com>
12531
12532 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12533 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12534 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12535 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12536 Remove.
12537 (section_offsets): New typedef.
12538 * symtab.c (fixup_section, get_msymbol_address): Update.
12539 * symmisc.c (dump_msymbols): Update.
12540 * symfile.h (relative_addr_info_to_section_offsets)
12541 (symfile_map_offsets_to_segments): Update.
12542 * symfile.c (build_section_addr_info_from_objfile)
12543 (init_objfile_sect_indices): Update.
12544 (struct place_section_arg): Change type of "offsets".
12545 (place_section): Update.
12546 (relative_addr_info_to_section_offsets): Change type of
12547 "section_offsets". Remove "num_sections" parameter.
12548 (default_symfile_offsets, syms_from_objfile_1)
12549 (set_objfile_default_section_offset): Update.
12550 (reread_symbols): No need to preserve section offsets by hand.
12551 (symfile_map_offsets_to_segments): Change type of "offsets".
12552 * stap-probe.c (relocate_address): Update.
12553 * stabsread.h (process_one_symbol): Update.
12554 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12555 (solib_target_relocate_section_addresses): Update.
12556 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12557 Update.
12558 * solib-frv.c (frv_relocate_main_executable): Update.
12559 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12560 * solib-aix.c (solib_aix_get_section_offsets): Change return
12561 type.
12562 (solib_aix_solib_create_inferior_hook): Update.
12563 * remote.c (remote_target::get_offsets): Update.
12564 * psymtab.c (find_pc_sect_psymtab): Update.
12565 * psympriv.h (struct partial_symbol) <address, text_low,
12566 text_high>: Update.
12567 * objfiles.h (obj_section_offset): Update.
12568 (struct objfile) <section_offsets>: Change type.
12569 <num_sections>: Remove.
12570 (objfile_relocate): Update.
12571 * objfiles.c (entry_point_address_query): Update
12572 (relocate_one_symbol): Change type of "section_offsets".
12573 (objfile_relocate1, objfile_relocate1): Change type of
12574 "new_offsets".
12575 (objfile_rebase1): Update.
12576 * mipsread.c (mipscoff_symfile_read): Update.
12577 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12578 parameter.
12579 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12580 (parse_external, psymtab_to_symtab_1): Update.
12581 * machoread.c (macho_symfile_offsets): Update.
12582 * ia64-tdep.c (ia64_find_unwind_table): Update.
12583 * hppa-tdep.c (read_unwind_info): Update.
12584 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12585 * dwarf2read.c (create_addrmap_from_index)
12586 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12587 (process_psymtab_comp_unit_reader, add_partial_symbol)
12588 (add_partial_subprogram, process_full_comp_unit)
12589 (read_file_scope, read_func_scope, read_lexical_block_scope)
12590 (read_call_site_scope, dwarf2_rnglists_process)
12591 (dwarf2_ranges_process, dwarf2_ranges_read)
12592 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12593 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12594 Update.
12595 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12596 Update.
12597 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12598 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12599 (process_one_symbol): Change type of "section_offsets".
12600 * ctfread.c (get_objfile_text_range): Update.
12601 * coffread.c (coff_symtab_read, enter_linenos)
12602 (process_coff_symbol): Update.
12603 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12604 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12605
12606 2020-01-08 Tom Tromey <tromey@adacore.com>
12607
12608 * dwarf2read.c (parse_macro_definition): Use std::string.
12609 (parse_macro_definition): Likewise.
12610
12611 2020-01-08 Tom Tromey <tromey@adacore.com>
12612
12613 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12614 (ATTR_ALLOC_CHUNK): Remove.
12615
12616 2020-01-08 Tom Tromey <tromey@adacore.com>
12617
12618 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12619
12620 2020-01-08 Tom Tromey <tromey@adacore.com>
12621
12622 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12623 (dwarf2_compute_name, open_dwo_file): Likewise.
12624 (process_enumeration_scope): Use std::vector.
12625 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12626 (partial_die_info::fixup, dwarf2_start_subfile)
12627 (guess_full_die_structure_name, dwarf2_name): Likewise.
12628 (determine_prefix): Update.
12629 (guess_full_die_structure_name): Make return type const.
12630 (partial_die_full_name): Return unique_xmalloc_ptr.
12631 (DW_FIELD_ALLOC_CHUNK): Remove.
12632
12633 2020-01-07 Tom Tromey <tromey@adacore.com>
12634
12635 PR build/24937:
12636 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12637
12638 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12639
12640 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12641
12642 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12643
12644 * stack.c (print_frame_info): Move disassemble_next_line code
12645 inside source_print block.
12646
12647 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12648
12649 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12650 gdb/signals.h, as we are now using native signal symbols.
12651
12652 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12653
12654 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12655 overflow by an early check of content vs threshold.
12656 * tui/tui-source.c (tui_source_window::line_is_displayed):
12657 Likewise.
12658
12659 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12660
12661 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12662
12663 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12664
12665 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12666 export table if no section contains it's RVA.
12667
12668 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12669
12670 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12671
12672 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12673
12674 * source.c (print_source_lines_base): Set last_line_listed.
12675
12676 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12677
12678 * tui/tui-disasm.c: Remove trailing spaces.
12679
12680 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12681 Pedro Alves <palves@redhat.com>
12682
12683 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12684 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12685 (windows_gdb_signal_to_target): New function, uses the above
12686 enumeration to convert GDB internal signal codes to equivalent
12687 Windows codes.
12688 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12689 * windows-nat.c: Include "gdb_wait.h".
12690 (get_windows_debug_event): Extract the fatal exception from the
12691 exit status and convert to the equivalent Posix signal number.
12692 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12693 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12694 * gdbsupport/gdb_wait.c: New file, implements
12695 windows_status_to_termsig.
12696 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12697 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12698
12699 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12700
12701 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12702 show_layout.
12703
12704 2020-01-05 Luis Machado <luis.machado@linaro.org>
12705
12706 * aarch64-linux-nat.c
12707 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12708 and bfd_mach_aarch64.
12709
12710 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12711
12712 * ui-file.c (stdio_file::can_emit_style_escape)
12713 (tee_file::can_emit_style_escape): Ensure style is used also on
12714 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12715 to gdb_stdout.
12716 * main.c (set_gdb_data_directory): Use file style to output the
12717 warning that the given pathname is not a directory.
12718 * top.c (show_history_filename, gdb_safe_append_history)
12719 (show_gdb_datadir): Use file style.
12720
12721 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12722
12723 * solib-target.c (struct lm_info_target):
12724 Change offsets to be a unique_xmalloc_ptr.
12725 (solib_target_relocate_section_addresses): Update.
12726
12727 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12728
12729 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12730
12731 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12732
12733 * MAINTAINERS (Write After Approval): Add myself.
12734
12735 2020-01-02 Luis Machado <luis.machado@linaro.org>
12736
12737 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12738 Cell BE architecture.
12739 * target.h (struct target_ops) <thread_architecture>: Likewise.
12740
12741 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12742
12743 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12744
12745 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12746
12747 * MAINTAINERS (Write After Approval): Add myself.
12748
12749 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12750
12751 * gdbarch.sh: Update copyright year range of generated files.
12752
12753 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12754
12755 Update copyright year range in all GDB files.
12756
12757 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12758
12759 * copyright.py: Convert to Python 3.
12760
12761 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12762
12763 * copyright.py: Adapt after move of gnulib directory from gdb
12764 directory to toplevel directory.
12765
12766 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12767
12768 * copyright.py (main): Exit if run from the wrong directory.
12769
12770 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12771
12772 * top.c (print_gdb_version): Change copyright year to 2020.
12773
12774 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12775
12776 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12777
12778 For older changes see ChangeLog-2019.
12779 \f
12780 Local Variables:
12781 mode: change-log
12782 left-margin: 8
12783 fill-column: 74
12784 version-control: never
12785 coding: utf-8
12786 End: