gdb: remove xfree in xml-support.c
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4 with gdb::unique_xmalloc_ptr<char>.
5
6 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * xml-support.h (xml_fetch_another): Change type to be a
9 function_view.
10 (xml_process_xincludes): Remove baton parameter.
11 (xml_fetch_content_from_file): Change baton parameter to
12 dirname.
13 * xml-support.c (struct xinclude_parsing_data)
14 <xinclude_parsing_data>: Remove baton parameter.
15 <fetcher_baton>: Remove.
16 (xinclude_start_include): Adjust.
17 (xml_process_xincludes): Adjust.
18 (xml_fetch_content_from_file): Replace baton parameter with
19 dirname.
20 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
21 (xml_init_syscalls_info): Use a lambda.
22 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
23 (file_read_description_xml): Use a lambda.
24 (fetch_available_features_from_target): Change baton parameter
25 to target_ops.
26 (target_read_description_xml): Use a lambda.
27 (target_fetch_description_xml): Use a lambda.
28 (string_read_description_xml): Update.
29
30 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
33 uses with type::endianity_is_not_default.
34
35 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
36
37 * gdbtypes.h (struct type) <endianity_is_not_default,
38 set_endianity_is_not_default>: New methods.
39 (TYPE_ENDIANITY_NOT_DEFAULT): Use
40 type::endianity_is_not_default, change all write call sites to
41 use type::set_endianity_is_not_default.
42
43 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
44
45 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
46 uses with type::is_fixed_instance.
47
48 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
49
50 * gdbtypes.h (struct type) <is_fixed_instance,
51 set_is_fixed_instance>: New methods.
52 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
53 write call sites to use type::set_is_fixed_instance.
54
55 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
56
57 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
58 uses with type::is_gnu_ifunc.
59
60 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
61
62 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
63 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
64 use type::set_is_gnu_ifunc.
65
66 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
67
68 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
69 uses with type::stub_is_supported.
70
71 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
72
73 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
74 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
75 use type::set_stub_is_supported.
76
77 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
78
79 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
80 uses with type::is_vector.
81
82 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
83
84 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
85 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
86 use type::set_is_vector.
87
88 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
89
90 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
91 uses with type::has_varargs.
92
93 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
94
95 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
96 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
97 use type::set_has_varargs.
98
99 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
100
101 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
102 uses with type::is_prototyped.
103
104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
105
106 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
107 New methods.
108 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
109 call sites to use type::set_is_prototyped.
110
111 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
112
113 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
114 uses with type::target_is_stub.
115
116 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
117
118 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
119 New methods.
120 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
121 sites to use type::set_target_is_stub.
122
123 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
124
125 * gdbtypes.h (TYPE_STUB): Remove, replace all
126 uses with type::is_stub.
127
128 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
129
130 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
131 (TYPE_STUB): Use type::is_stub, change all write call sites to
132 use type::set_is_stub.
133
134 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
135
136 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
137 type::has_no_signedness.
138
139 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
140
141 * gdbtypes.h (struct type) <has_no_signedness,
142 set_has_no_signedness>: New methods.
143 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
144 call sites to use type::set_has_no_signedness.
145
146 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
147
148 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
149 type::is_unsigned.
150
151 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
152
153 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
154 methods.
155 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
156 sites to use type::set_is_unsigned.
157
158 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
159 Adam Renquinha <arenquinha@cimeq.qc.ca>
160
161 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
162 pointer and stack frame offset when unwinding.
163
164 2020-09-13 Pedro Alves <pedro@palves.net>
165
166 * NEWS: Document "-break-insert --qualified".
167 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
168
169 2020-09-13 Pedro Alves <pedro@palves.net>
170
171 * linespec.c (classify_mtype, compare_msyms): Delete.
172 (search_minsyms_for_name): Remove classification logic. Instead
173 filter out trampoline symbols if we also found an external
174 function of the same name.
175
176 2020-09-13 Joel Brobecker <brobecker@adacore.com>
177
178 * NEWS: Create a new section for the next release branch.
179 Rename the section of the current branch, now that it has
180 been cut.
181
182 2020-09-13 Joel Brobecker <brobecker@adacore.com>
183
184 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
185 * version.in: Bump version to 11.0.50.DATE-git.
186
187 2020-09-12 Joel Brobecker <brobecker@adacore.com>
188
189 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
190
191 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
192 Felix Willgerodt <Felix.Willgerodt@intel.com>
193
194 * gdbarch.sh: Added bfloat16 type.
195 * gdbarch.c: Regenerated.
196 * gdbarch.h: Regenerated.
197 * gdbtypes.c (floatformats_bfloat16): New struct.
198 (gdbtypes_post_init): Add builtin_bfloat16.
199 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
200 (floatformats_bfloat16): New struct.
201 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
202 (i386_ymm_type): Add field "v16_bfloat16"
203 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
204 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
205 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
206 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
207 * features/i386/64bit-avx512.xml: Add bfloat16 type.
208 * features/i386/64bit-avx512.c: Regenerated.
209 * features/i386/64bit-sse.xml: Add bfloat16 type.
210 * features/i386/64bit-sse.c: Regenerated.
211
212 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
213
214 * i386-tdep.c (i386_zmm_type): Fix field names.
215 (i386_ymm_type): Fix field names.
216
217 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
218
219 * breakpoint.c: Fix typo in the help message of the
220 "set breakpoint condition-evaluation" command.
221
222 2020-09-10 Kamil Rytarowski <n54@gmx.com>
223
224 * nbsd-nat.c: Include "nat/netbsd-nat.h".
225 * (nbsd_nat_target::pid_to_exec_file)
226 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
227 (nbsd_nat_target::post_startup_inferior)
228 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
229 (nbsd_add_threads): Switch local code to common gdb/nat functions.
230 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
231 * (nbsd_thread_lister): Remove.
232
233 2020-09-10 Kamil Rytarowski <n54@gmx.com>
234
235 * fork-inferior.c (startup_inferior): Avoid double free.
236
237 2020-09-10 Kamil Rytarowski <n54@gmx.com>
238
239 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
240 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
241
242 2020-09-10 Kamil Rytarowski <n54@gmx.com>
243
244 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
245 * netbsd-nat.c: Include <sys/ptrace.h>.
246 * (netbsd_nat::enable_proc_events): Add.
247
248 2020-09-10 Kamil Rytarowski <n54@gmx.com>
249
250 * netbsd-nat.h: Include "gdbsupport/function-view.h".
251 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
252 (netbsd_nat::for_each_thread): Add.
253 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
254 "gdbsupport/common-debug.h".
255 * (netbsd_nat::netbsd_thread_lister)
256 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
257 (netbsd_nat::for_each_thread): Add.
258
259 2020-09-10 Kamil Rytarowski <n54@gmx.com>
260
261 * netbsd-nat.h: Include <unistd.h>.
262 * (netbsd_nat::pid_to_exec_file): Add.
263 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
264 * (netbsd_nat::pid_to_exec_file) Add.
265
266 2020-09-10 Kamil Rytarowski <n54@gmx.com>
267
268 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
269
270 2020-09-10 Kamil Rytarowski <n54@gmx.com>
271
272 * netbsd-nat.h: New file.
273 * netbsd-nat.c: Likewise.
274
275 2020-09-09 Tom Tromey <tromey@adacore.com>
276
277 * ada-lang.c (remove_extra_symbols): Do not increment when
278 removing an element
279
280 2020-09-08 Tom Tromey <tromey@adacore.com>
281
282 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
283
284 2020-09-08 Tom Tromey <tromey@adacore.com>
285
286 PR win32/25302:
287 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
288 (gdb_bfd_init_data): New function.
289 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
290
291 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
292
293 * infrun.c (fetch_inferior_event): Use
294 `switch_to_target_no_thread` to switch the target.
295
296 2020-09-06 Tom Tromey <tom@tromey.com>
297
298 * symfile.h (dwarf2_free_objfile): Don't declare.
299
300 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
301
302 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
303 to match 16 byte real/complex type generated by Flang compiler.
304
305 2020-09-03 Tom de Vries <tdevries@suse.de>
306
307 PR breakpoint/26546
308 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
309 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
310
311 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
312
313 * maint.c (index_digits): New function.
314 (struct maint_print_section_data): Remove.
315 (print_bfd_section_info): Remove print_data parameter, add arg
316 and index_digits.
317 (print_objfile_section_info): Likewise.
318 (print_bfd_section_info_maybe_relocated): Likewise (plus
319 objfile).
320 (maintenance_info_sections): Adjust calls.
321
322 2020-09-02 Tom Tromey <tromey@adacore.com>
323
324 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
325 for null pointers.
326 (ada_varobj_adjust_for_child_access): Special-case null pointers.
327
328 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
329
330 * bcache.h (struct bcache) <insert>: Change type of `added` to
331 pointer to bool.
332 * bcache.c (bcache::insert): Likewise.
333 * gdbtypes.c (check_types_worklist): Adjust.
334 * psymtab.c (add_psymbol_to_bcache): Adjust.
335
336 2020-08-31 Kevin Buettner <kevinb@redhat.com>
337
338 * corelow.c (unordered_set): Include.
339 (class core_target): Add field 'm_core_unavailable_mappings'.
340 (core_target::build_file_mappings): Print only one warning
341 per inaccessible file. Add unavailable/broken mappings
342 to m_core_unavailable_mappings.
343 (core_target::xfer_partial): Call...
344 (core_target::xfer_memory_via_mappings): New method.
345
346 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
349 type to bool.
350
351 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
352
353 * dwarf2/read.c (struct field_info): Fix indentation.
354
355 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
356
357 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
358 ordering in comment.
359 * frame.c (frame_id_eq): Fix indentation.
360
361 2020-08-31 Scott Linder <scott@scottlinder.com>
362 Simon Marchi <simon.marchi@efficios.com>
363
364 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
365 inline frame ids in outer frame.
366
367 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
368
369 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
370 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
371 (outer_frame_id): Use FID_STACK_OUTER instead of
372 FID_STACK_INVALID.
373 (frame_id_p): Don't check for outer_frame_id.
374
375 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
376
377 * frame-unwind.c (frame_unwind_got_optimized): Don't set
378 regnum/frame in value. Call allocate_value_lazy.
379 * frame.c (frame_unwind_register_value): Use
380 val_print_not_saved.
381
382 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
383
384 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
385
386 2020-08-29 Pedro Alves <pedro@palves.net>
387
388 * progspace.c (print_program_space): Use all_inferiors. Switch to
389 the inferior before calling target_pid_to_str.
390
391 2020-08-28 Tom Tromey <tom@tromey.com>
392
393 * xcoffread.c (xcoff_end_psymtab): Update comment.
394 * dbxread.c (dbx_end_psymtab): Update comment.
395
396 2020-08-28 Tom de Vries <tdevries@suse.de>
397
398 PR breakpoint/26544
399 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
400 event_location.
401 (create_breakpoint): Same.
402 (base_breakpoint_decode_location): Same.
403 (bkpt_create_sals_from_location): Same.
404 (bkpt_decode_location): Same.
405 (bkpt_probe_create_sals_from_location): Same.
406 (bkpt_probe_decode_location): Same.
407 (tracepoint_create_sals_from_location): Same.
408 (tracepoint_decode_location): Same.
409 (tracepoint_probe_decode_location): Same.
410 (strace_marker_create_sals_from_location): Same.
411 (strace_marker_decode_location): Same.
412 (create_sals_from_location_default): Same.
413 (decode_location_default): Same.
414 * breakpoint.h (struct breakpoint_ops): Same.
415 (create_breakpoint): Same.
416 * linespec.h (decode_line_full): Same.
417 * linespec.c (decode_line_full): Same. Throw error if
418 result.size () == 0.
419
420 2020-08-27 Pedro Alves <pedro@palves.net>
421
422 PR gdb/26524
423 * breakpoint.c (until_break_fsm) <location_breakpoint,
424 caller_breakpoint>: Delete fields.
425 <breakpoints>: New field.
426 <until_break_fsm>: Adjust to save a breakpoint vector instead of
427 two individual breakpoints.
428 (until_break_fsm::should_stop): Loop over breakpoints in the
429 breakpoint vector.
430 (until_break_fsm::clean_up): Adjust to clear the breakpoints
431 vector.
432 (until_break_command): Handle location expanding into multiple
433 sals.
434
435 2020-08-27 Pedro Alves <pedro@palves.net>
436
437 PR gdb/26523
438 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
439 bp_until breakpoints user-specified locations. Update intro
440 comment.
441
442 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
443
444 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
445 gdb_bfd_sections): New.
446 * maint.c (print_bfd_section_info): Change param type to
447 maint_print_section_data.
448 (print_objfile_section_info): Likewise.
449 (print_bfd_section_info_maybe_relocated): Likewise.
450 (maintenance_info_sections): Use gdb_bfd_sections.
451
452 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
453
454 * MAINTAINERS: Add ARC target and maintainer.
455
456 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
457
458 * configure.tgt: ARC support for GNU/Linux.
459 * Makefile.in (ALL_TARGET_OBJS): Likewise.
460 * arc-linux-tdep.c: New file.
461 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
462 * arc-tdep.c (arc_write_pc): Use it.
463
464 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
465
466 * arc-tdep.c (arc_check_for_hardware_loop): New.
467 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
468
469 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
470
471 * arc-tdep.h: Include "gdbarch.h".
472
473 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
474
475 * arch/arc.h
476 (arc_gdbarch_features): New class to stir the selection of target XML.
477 (arc_create_target_description): Use FEATURES to choose XML target.
478 (arc_lookup_target_description): Use arc_create_target_description
479 to create _new_ target descriptions or return the already created
480 ones if the FEATURES is the same.
481 * arch/arc.c: Implementation of prototypes described above.
482 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
483 (arc_gdbarch_features_init): Initialize the FEATURES struct.
484 * arc-tdep.c (*_feature_name): Make feature names consistent.
485 (arc_register_feature): A new struct to hold information about
486 registers of a particular target/feature.
487 (arc_check_tdesc_feature): Check if XML provides registers in
488 compliance with ARC_REGISTER_FEATURE structs.
489 (arc_update_acc_reg_names): Add aliases for r58 and r59.
490 (determine_*_reg_feature_set): Which feature name to look for.
491 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
492 (mach_type_to_arc_isa): Convert from a set of binutils machine types
493 to expected ISA enums to be used in arc_gdbarch_features structs.
494 * features/Makefile (FEATURE_XMLFILES): Add new files.
495 * gdb/features/arc/v1-aux.c: New file.
496 * gdb/features/arc/v1-aux.xml: Likewise.
497 * gdb/features/arc/v1-core.c: Likewise.
498 * gdb/features/arc/v1-core.xml: Likewise.
499 * gdb/features/arc/v2-aux.c: Likewise.
500 * gdb/features/arc/v2-aux.xml: Likewise.
501 * gdb/features/arc/v2-core.c: Likewise.
502 * gdb/features/arc/v2-core.xml: Likewise.
503 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
504
505 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
506 Andrew Burgess <andrew.burgess@embecosm.com>
507
508 PR m2/26372
509 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
510 an assert. Remove single element array indexing pattern as the
511 MULTI_SUBSCRIPT support will handle this case too.
512
513 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
514
515 * value.h (valprint_check_validity): Move declaration from
516 here...
517 * valprint.h (valprint_check_validity): ... to here.
518
519 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
520
521 * debug.h: New file.
522 * debug.c (debug_prefixed_vprintf): New function.
523 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
524 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
525
526 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
527
528 * infrun.h (infrun_debug_printf_1): New function declaration.
529 (infrun_debug_printf): New macro.
530 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
531 throughout.
532 (infrun_debug_printf): New function.
533 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
534 (handle_jit_event): Likewise.
535
536 2020-08-21 Mark Wielaard <mark@klomp.org>
537
538 * ada-lex.l: Extend register warnings diagnostics comment for g++.
539
540 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
541
542 * frame.c (enum class frame_id_status): New.
543 (struct frame_info) <this_id::p>: Change type to frame_id_status.
544 (fprintf_frame): Update.
545 (compute_frame_id): Set frame id status to "computing" on entry.
546 Set it back to "not_computed" on failure and to "computed" on
547 success.
548 (get_frame_id): Assert the frame id is not being computed.
549 (create_sentinel_frame): Use frame_id_status::COMPUTED.
550 (create_new_frame): Likewise.
551 (frame_cleanup_after_sniffer): Update assert.
552
553 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
554
555 * regcache.c (pid_ptid_regcache_map): New type.
556 (target_ptid_regcache_map): Remove.
557 (target_pid_ptid_regcache_map): New type.
558 (regcaches): Change type to target_pid_ptid_regcache_map.
559 (get_thread_arch_aspace_regcache): Update.
560 (regcache_thread_ptid_changed): Update, handle pid-like ptid
561 case.
562 (regcaches_size): Update.
563 (regcache_count): Update.
564 (registers_changed_ptid_target_pid_test): New.
565 (_initialize_regcache): Register new test.
566
567 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
568
569 * regcache.c (regcache_count): New.
570 (struct regcache_test_data): New.
571 (regcache_test_data_up): New.
572 (populate_regcaches_for_test): New.
573 (regcaches_test): Remove.
574 (get_thread_arch_aspace_regcache_test): New.
575 (registers_changed_ptid_all_test): New.
576 (registers_changed_ptid_target_test): New.
577 (registers_changed_ptid_target_ptid_test): New.
578 (regcache_thread_ptid_changed): Remove regcache_count lambda.
579 (_initialize_regcache): Register new tests.
580
581 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
584 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
585 gdbarch and aspace parameter. Use current inferior's aspace.
586 Validate regcache's arch value.
587 (regcaches_test): Update.
588
589 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
590
591 * regcache.c (regcaches_test): Call registers_changed.
592
593 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
594
595 * infrun.c (process_event_stop_test): Fix typo "breapoint".
596
597 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
598
599 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
600 to find the end of prologue for flang compiled binaries.
601 * arm-tdep.c (arm_skip_prologue): Likewise.
602 * i386-tdep.c (i386_skip_prologue): Likewise.
603 * producer.c (producer_is_llvm): New function.
604 (producer_parsing_tests): Added new tests for clang/flang.
605 * producer.h (producer_is_llvm): New declaration.
606
607 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
608
609 * linux-nat.c (linux_nat_debug_printf): New function.
610 (linux_nat_debug_printf_1): New macro. Use throughout the file.
611
612 2020-08-18 Aaron Merey <amerey@redhat.com>
613
614 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
615 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
616 (CLIBS): Add DEBUGINFOD_LIBS.
617
618 2020-08-17 Sergei Trofimovich <siarheit@google.com>
619
620 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
621 'gdbarch_num_regs'.
622
623 2020-08-17 Tom Tromey <tromey@adacore.com>
624
625 * ada-varobj.c (ada_varobj_decode_var): Handle case where
626 ada_get_decoded_value returns NULL.
627
628 2020-08-17 Tom Tromey <tromey@adacore.com>
629
630 * python/py-inferior.c (infpy_search_memory): Use
631 gdb_py_object_from_ulongest.
632 * python/py-infevents.c (create_inferior_call_event_object)
633 (create_memory_changed_event_object): Use
634 gdb_py_object_from_ulongest.
635 * python/py-linetable.c (ltpy_entry_get_pc): Use
636 gdb_py_object_from_ulongest.
637
638 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
639
640 * loc.c (class symbol_needs_eval_context): Fix indentation.
641
642 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
645 bool.
646
647 2020-08-17 Tom de Vries <tdevries@suse.de>
648
649 PR gdb/26393
650 * gdbtypes.c (dump_dynamic_prop): New function.
651 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
652
653 2020-08-15 Tom de Vries <tdevries@suse.de>
654
655 PR backtrace/26390
656 * stack.c (print_frame_args): Temporarily set the selected
657 frame to FRAME while printing the frame's arguments.
658
659 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
660
661 PR breakpoints/26385
662 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
663 Always clear watchpoint with PTRACE_SET_DEBUGREG.
664
665 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
666
667 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
668 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
669 and >= to check return value instead of == -1 and != -1.
670
671 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
672
673 * utils.h (class gdb_argv) <as_array_view>: New method.
674 * utils.c (gdb_argv_as_array_view_test): New.
675 (_initialize_utils): Register selftest.
676 * maint.c (maintenance_selftest): Use the new method.
677
678 2020-08-13 Kamil Rytarowski <n54@gmx.com>
679
680 * target.h (supports_dumpcore, dumpcore): New
681 function declarations.
682 * target.c (supports_dumpcore, dumpcore): New
683 functions.
684 * target-delegates.c: Rebuild.
685 * gcore.c (gcore_command): Use target_supports_dumpcore ()
686 and target_dumpcore ().
687
688 2020-08-13 Aaron Merey <amerey@redhat.com>
689
690 * debuginfod-support.c: Replace global variables with user_data.
691
692 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
693
694 * maint.c (maintenance_selftest): Split args and pass array_view
695 to run_tests.
696
697 2020-08-12 Luis Machado <luis.machado@linaro.org>
698
699 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
700 type's length.
701 Use %s and pulongest to print the length.
702
703 2020-08-12 Pedro Alves <palves@redhat.com>
704
705 * NEWS: Move "Multi-target debugging support" item to the
706 "Changes since GDB 9" section.
707
708 2020-08-12 Pedro Alves <palves@redhat.com>
709
710 PR gdb/26336
711 * progspace.c (program_space::remove_objfile): Invalidate the
712 frame cache.
713
714 2020-08-11 Tom de Vries <tdevries@suse.de>
715
716 * MAINTAINERS: Mark ms1 as deleted.
717
718 2020-08-10 Luis Machado <luis.machado@linaro.org>
719
720 PR gdb/26310
721
722 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
723 act accordingly.
724 (aarch64_analyze_prologue_test): Add more unit tests to exercise
725 movz/str/stur/stp skipping behavior.
726
727 2020-08-10 Luis Machado <luis.machado@linaro.org>
728
729 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
730 struct user_sve_header instead of struct sve_context.
731
732 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
733
734 * read.h (dwarf2_fetch_die_loc_sect_off,
735 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
736 `void *` parameter with function_view.
737 * read.c (dwarf2_fetch_die_loc_sect_off,
738 dwarf2_fetch_die_loc_cu_off): Likewise.
739 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
740 (per_cu_dwarf_call): Adjust.
741 (get_frame_address_in_block_wrapper): Remove.
742 (indirect_synthetic_pointer): Adjust.
743 (get_ax_pc): Remove.
744 (dwarf2_compile_expr_to_ax): Adjust.
745
746 2020-08-08 Tom de Vries <tdevries@suse.de>
747
748 PR build/26344
749 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
750 constructor.
751 * regcache.c (get_thread_arch_aspace_regcache): Same.
752
753 2020-08-07 Tom Tromey <tromey@adacore.com>
754
755 * ravenscar-thread.c
756 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
757 New method.
758 (ravenscar_thread_target::wait): Check
759 runtime_initialized.
760 (ravenscar_thread_target::prepare_to_store)
761 (ravenscar_thread_target::stopped_by_sw_breakpoint)
762 (ravenscar_thread_target::stopped_by_hw_breakpoint)
763 (ravenscar_thread_target::stopped_by_watchpoint)
764 (ravenscar_thread_target::stopped_data_address)
765 (ravenscar_thread_target::core_of_thread): Use
766 scoped_restore_current_thread and
767 set_base_thread_from_ravenscar_task.
768
769 2020-08-07 Tom Tromey <tromey@adacore.com>
770
771 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
772
773 2020-08-07 Tom Tromey <tromey@adacore.com>
774
775 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
776 update_inferior_ptid before update_thread_list.
777 (temporarily_change_regcache_ptid): New class.
778 (ravenscar_thread_target::fetch_registers)
779 (ravenscar_thread_target::store_registers)
780 (ravenscar_thread_target::prepare_to_store): Use base thread when
781 forwarding operation.
782
783 2020-08-07 Tom Tromey <tromey@adacore.com>
784
785 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
786 "is_pid" case.
787
788 2020-08-07 Tom Tromey <tromey@adacore.com>
789
790 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
791 New methods.
792 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
793 first.
794 (ravenscar_thread_target::add_thread): Rename from
795 ravenscar_add_thread.
796 (ravenscar_thread_target::update_thread_list): Use a lambda.
797 (ravenscar_thread_target::xfer_partial): New method.
798
799 2020-08-07 Tom Tromey <tromey@adacore.com>
800
801 * ada-lang.h (ada_task_list_iterator_ftype): Now a
802 gdb::function_view.
803 (iterate_over_live_ada_tasks): Change type of argument.
804 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
805 of argument.
806
807 2020-08-07 Tom Tromey <tromey@adacore.com>
808
809 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
810 Remove.
811 (ravenscar_thread_target::extra_thread_info): Remove.
812 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
813 defer to target beneath for non-Ravenscar threads.
814
815 2020-08-07 Tom Tromey <tromey@adacore.com>
816
817 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
818 get_base_thread_from_ravenscar_task>: Now methods.
819 <m_cpu_map>: New member.
820 (ravenscar_thread_target::get_thread_base_cpu): Rename from
821 ravenscar_get_thread_base_cpu. Check m_cpu_map.
822 (ravenscar_thread_target::task_is_currently_active): Update.
823 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
824 Now a method.
825 (ravenscar_thread_target::add_active_thread): Put initial thread
826 into the m_cpu_map.
827
828 2020-08-07 Tom Tromey <tromey@adacore.com>
829
830 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
831 event_ptid.
832
833 2020-08-07 Tom Tromey <tromey@adacore.com>
834
835 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
836 runtime_initialized.
837
838 2020-08-07 Tom Tromey <tromey@adacore.com>
839
840 * ravenscar-thread.c (ravenscar_thread_target): Don't call
841 add_active_thread.
842 (ravenscar_thread_target::add_active_thread): Now public.
843 (ravenscar_inferior_created): Call add_active_thread after pushing
844 the target.
845
846 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
847
848 * regcache.c (ptid_regcache_map): New type.
849 (target_ptid_regcache_map): New type.
850 (regcaches): Change type to target_ptid_regcache_map.
851 (get_thread_arch_aspace_regcache): Update to regcaches' new
852 type.
853 (regcache_thread_ptid_changed): Likewise.
854 (registers_changed_ptid): Likewise.
855 (regcaches_size): Likewise.
856 (regcaches_test): Update.
857 (regcache_thread_ptid_changed): Update.
858 * regcache.h (regcache_up): New type.
859 * gdbsupport/ptid.h (hash_ptid): New struct.
860
861 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
862
863 * observable.h (thread_ptid_changed): Add parameter
864 `process_stratum_target *`.
865 * infrun.c (infrun_thread_ptid_changed): Add parameter
866 `process_stratum_target *` and use it.
867 (selftests): New namespace.
868 (infrun_thread_ptid_changed): New function.
869 (_initialize_infrun): Register selftest.
870 * regcache.c (regcache_thread_ptid_changed): Add parameter
871 `process_stratum_target *` and use it.
872 (regcache_thread_ptid_changed): New function.
873 (_initialize_regcache): Register selftest.
874 * thread.c (thread_change_ptid): Pass target to
875 thread_ptid_changed observable.
876
877 2020-08-06 Caroline Tice <cmtice@google.com>
878
879 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
880 (struct dwp_sections): Update field comments. Add loclists and
881 rnglists fields.
882 (struct virtual_v2_dwo_sections): Rename struct to
883 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
884 size & offset fields for loclists and rnglists.
885 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
886 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
887 skipping dummy type units.
888 (create_dwp_hash_table): Update the large comment above the function to
889 discuss Version 5 DWP files as well, with references. Update all the
890 version checks in the function to check for version 5 as well. Add new
891 section at the end to create dwp hash table for version 5.
892 (create_dwp_v2_section): Rename function to
893 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
894 Add V5 to error message text.
895 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
896 into calls to create_dwp_v2_or_v5_section.
897 (create_dwo_unit_in_dwp_v5): New function.
898 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
899 check for version2; add else clause to handle version 5.
900 (open_and_init_dwo_file): Add code to check dwarf version & only call
901 create_debug_types_hash_table (with sections.types) if version is not 5;
902 else call create_debug_type_hash_table, with sections.info.
903 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
904 version 5.
905 (dwarf2_locate_v5_dwp_sections): New function.
906 (open_and_init_dwp_file): Add else-if clause for version 5 to call
907 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
908
909 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
910
911 * regcache.h (class regcache): Remove friend
912 registers_changed_ptid.
913 <regcache_thread_ptid_changed>: Remove.
914 <regcaches>: Remove.
915 * regcache.c (regcache::regcaches): Rename to...
916 (regcaches): ... this. Make static.
917 (get_thread_arch_aspace_regcache): Update.
918 (regcache::regcache_thread_ptid_changed): Rename to...
919 (regcache_thread_ptid_changed): ... this. Update.
920 (class regcache_access): Remove.
921 (regcaches_test): Update.
922 (_initialize_regcache): Update.
923 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
924 <forward_list>.
925
926 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
927
928 * regcache.h (class regcache) <current_regcache>: Rename to...
929 <regcaches>: ... this. Move doc here.
930 * regcache.c (regcache::current_regcache) Rename to...
931 (regcache::regcaches): ... this. Move doc to header.
932 (get_thread_arch_aspace_regcache): Update.
933 (regcache::regcache_thread_ptid_changed): Update.
934 (registers_changed_ptid): Update.
935 (class regcache_access) <current_regcache_size>: Rename to...
936 <regcaches_size>: ... this.
937 (current_regcache_test): Rename to...
938 (regcaches_test): ... this.
939 (_initialize_regcache): Update.
940
941 2020-08-06 Victor Collod <vcollod@nvidia.com>
942
943 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
944
945 2020-08-05 Kevin Buettner <kevinb@redhat.com>
946
947 * corelow.c (core_target::build_file_mappings): Don't output
948 null pathname in warning.
949
950 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
951
952 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
953 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
954 gdb.dwarf2/dw2-single-line-discriminators.exp,
955 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
956
957 2020-08-05 Tom Tromey <tromey@adacore.com>
958
959 PR rust/26197:
960 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
961 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
962 Fix off-by-one and type size errors in ordinary case.
963
964 2020-08-05 Tom de Vries <tdevries@suse.de>
965
966 * gdbtypes.c (type_not_allocated, type_not_associated): Use
967 "prop->const_val () == 0" instead of "prop->const_val () != 0".
968
969 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
970
971 * frame.h (frame_id_p): Return bool.
972 (frame_id_artificial_p): Return bool.
973 (frame_id_eq): Return bool.
974 (has_stack_frames): Return bool.
975 (get_selected_frame): Fix typo in comment.
976 (get_frame_pc_if_available): Return bool.
977 (get_frame_address_in_block_if_available): Return bool.
978 (get_frame_func_if_available): Return bool.
979 (read_frame_register_unsigned): Return bool.
980 (get_frame_register_bytes): Return bool.
981 (safe_frame_unwind_memory): Return bool.
982 (deprecated_frame_register_read): Return bool.
983 (frame_unwinder_is): Return bool.
984 * frame.c (struct frame_info) <prev_arch::p>: Change type to
985 bool.
986 <this_id::p>: Likewise.
987 <prev_p>: Likewise.
988 (frame_stash_add): Return bool.
989 (get_frame_id): Use bool.
990 (frame_id_build_special) Use bool.
991 (frame_id_build_unavailable_stack): Use bool.
992 (frame_id_build): Use bool.
993 (frame_id_p): Return bool, use true/false instead of 1/0.
994 (frame_id_artificial_p): Likewise.
995 (frame_id_eq): Likewise.
996 (frame_id_inner): Likewise.
997 (get_frame_func_if_available): Likewise.
998 (read_frame_register_unsigned): Likewise.
999 (deprecated_frame_register_read): Likewise.
1000 (get_frame_register_bytes): Likewise.
1001 (has_stack_frames): Likewise.
1002 (inside_main_func): Likewise.
1003 (inside_entry_func): Likewise.
1004 (get_frame_pc_if_available): Likewise.
1005 (get_frame_address_in_block_if_available): Likewise.
1006 (frame_unwinder_is): Likewise.
1007 (safe_frame_unwind_memory): Likewise.
1008 (frame_unwind_arch): Likewise.
1009
1010 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1011
1012 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1013 type to cached_copy_status.
1014 (fprintf_frame): Adjust.
1015 (get_frame_func_if_available): Adjust.
1016 (frame_cleanup_after_sniffer): Adjust.
1017
1018 2020-08-04 Mark Wielaard <mark@klomp.org>
1019
1020 * MAINTAINERS (Write After Approval): Update email address.
1021
1022 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1023
1024 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1025 dynamic_prop::const_val.
1026
1027 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1028
1029 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1030 dynamic_prop::kind.
1031
1032 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1033
1034 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1035
1036 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1037
1038 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1039
1040 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1041 Jose E. Marchesi <jose.marchesi@oracle.com>
1042
1043 * configure.tgt: Add entry for bpf-*-*.
1044 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1045 (ALLDEPFILES): Add bpf-tdep.c.
1046 * bpf-tdep.c: New file.
1047 * MAINTAINERS: Add bpf target and maintainer.
1048 * NEWS: Mention the support for the new target.
1049
1050 2020-08-04 Tom de Vries <tdevries@suse.de>
1051
1052 PR symtab/23270
1053 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1054 Error.
1055
1056 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1057
1058 * syscalls/freebsd.xml: Regenerate.
1059
1060 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1061
1062 * syscalls/update-freebsd.sh: Fix usage and year range.
1063
1064 2020-08-03 Tom de Vries <tdevries@suse.de>
1065
1066 PR symtab/26333
1067 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1068 DW_LNE_lo_user/DW_LNE_hi_user range.
1069
1070 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1071
1072 PR ada/26318
1073 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1074 kind.
1075
1076 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1077
1078 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1079
1080 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1081
1082 * breakpoint.c (set_breakpoint_condition): Update the condition
1083 expressions after checking that the input condition string parses
1084 successfully and does not contain junk at the end.
1085
1086 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1087
1088 * breakpoint.c (set_breakpoint_condition): Update the
1089 condition string after parsing the new condition successfully.
1090
1091 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1092
1093 * proc-api.c (_STRUCTURED_PROC): Don't define.
1094 * proc-events.c: Likewise.
1095 * proc-flags.c: Likewise.
1096 * proc-why.c: Likewise.
1097 * procfs.c: Likewise.
1098
1099 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1100 * configure, config.in: Regenerate.
1101
1102 2020-07-30 Tom de Vries <tdevries@suse.de>
1103
1104 PR build/26320
1105 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1106 m_red/m_green/m_blue in a union.
1107
1108 2020-07-29 Tom de Vries <tdevries@suse.de>
1109
1110 PR tdep/26280
1111 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1112
1113 2020-07-28 Tom Tromey <tromey@adacore.com>
1114
1115 PR symtab/26270:
1116 * symtab.h (find_pc_partial_function_sym): Declare.
1117 * cli/cli-cmds.c (disassemble_command): Use
1118 find_pc_partial_function_sym. Check asm_demangle.
1119 * blockframe.c (cache_pc_function_sym): New global.
1120 (cache_pc_function_name): Remove.
1121 (clear_pc_function_cache): Update.
1122 (find_pc_partial_function_sym): New function, from
1123 find_pc_partial_function.
1124 (find_pc_partial_function): Rewrite using
1125 find_pc_partial_function_sym.
1126
1127 2020-07-28 Tom Tromey <tromey@adacore.com>
1128
1129 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1130 help. Add usage.
1131
1132 2020-07-28 Tom Tromey <tromey@adacore.com>
1133
1134 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1135 <DW_OP_GNU_variable_value>: Cast to address type.
1136
1137 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1138
1139 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1140 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1141 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1142 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1143 (nbsd_get_siginfo_type): New.
1144 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1145 (_initialize_nbsd_tdep): New.
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 H.J. Lu <hongjiu.lu@intel.com>
1153
1154 PR binutils/26301
1155 * configure: Regenerated.
1156
1157 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1158
1159 * python/py-frame.c: Remove 'user-regs.h' include.
1160 (frapy_read_register): Rewrite to make use of
1161 gdbpy_parse_register_id.
1162 * python/py-registers.c (gdbpy_parse_register_id): New function,
1163 moved here from python/py-unwind.c. Updated the return type, and
1164 also accepts register descriptor objects.
1165 * python/py-unwind.c: Remove 'user-regs.h' include.
1166 (pyuw_parse_register_id): Moved to python/py-registers.c.
1167 (unwind_infopy_add_saved_register): Update to use
1168 gdbpy_parse_register_id.
1169 (pending_framepy_read_register): Likewise.
1170 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1171
1172 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * python/py-registers.c: Add 'user-regs.h' include.
1175 (register_descriptor_iter_find): New function.
1176 (register_descriptor_iterator_object_methods): New static global
1177 methods array.
1178 (register_descriptor_iterator_object_type): Add pointer to methods
1179 array.
1180
1181 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1182
1183 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1184 for all architectures on FreeBSD 11.3 and later.
1185
1186 2020-07-27 Tom Tromey <tromey@adacore.com>
1187
1188 * gcore.h (load_corefile): Don't declare.
1189
1190 2020-07-27 Tom de Vries <tdevries@suse.de>
1191
1192 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1193 * config.in: Regenerate.
1194 * configure: Regenerate.
1195
1196 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1197
1198 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1199 ws2tcpip.h. When checking whether socklen_t type is defined, use
1200 ws2tcpip.h if it is available and sys/socket.h isn't.
1201 * configure: Regenerate.
1202 * config.in: Regenerate.
1203
1204 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 PR fortran/23051
1207 PR fortran/26139
1208 * valops.c (value_ind): Pass address to
1209 readjust_indirect_value_type.
1210 * value.c (readjust_indirect_value_type): Make parameter
1211 non-const, and add extra address parameter. Resolve original type
1212 before using it.
1213 * value.h (readjust_indirect_value_type): Update function
1214 signature and comment.
1215
1216 2020-07-25 Tom de Vries <tdevries@suse.de>
1217
1218 PR symtab/26243
1219 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1220 entries.
1221
1222 2020-07-24 Aaron Merey <amerey@redhat.com>
1223
1224 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1225 * configure: Rebuild.
1226
1227 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1228
1229 PR corefiles/26294
1230 * corelow.c (_initialize_corelow): Add period to help text
1231 for "maintenance print core-file-backed-mappings".
1232
1233 2020-07-23 Pedro Alves <pedro@palves.net>
1234
1235 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1236 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1237 meanwhile.
1238 * frame.c (frame_cache_generation, get_frame_cache_generation):
1239 New.
1240 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1241 (get_prev_frame_if_no_cycle): On exception, don't touch
1242 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1243 * frame.h (get_frame_cache_generation): Declare.
1244
1245 2020-07-23 Tom de Vries <tdevries@suse.de>
1246
1247 PR tui/26282
1248 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1249 New default constructor.
1250
1251 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1254 exclude non-statement entries.
1255
1256 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1257
1258 * NEWS (New commands): Mention new command
1259 "maintenance print core-file-backed-mappings".
1260
1261 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1262
1263 * corelow.c (gdbcmd.h): Include.
1264 (core_target::info_proc_mappings): New method.
1265 (get_current_core_target): New function.
1266 (maintenance_print_core_file_backed_mappings): New function.
1267 (_initialize_corelow): Add core-file-backed-mappings to
1268 "maint print" commands.
1269
1270 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1271
1272 * linux-tdep.c (dump_note_entry_p): New function.
1273 (linux_dump_mapping_p_ftype): New typedef.
1274 (linux_find_memory_regions_full): Add new parameter,
1275 should_dump_mapping_p.
1276 (linux_find_memory_regions): Adjust call to
1277 linux_find_memory_regions_full.
1278 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1279 call to linux_find_memory_regions_full.
1280
1281 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1282
1283 * corelow.c (solist.h, unordered_map): Include.
1284 (class core_target): Add field m_core_file_mappings and
1285 method build_file_mappings.
1286 (core_target::core_target): Call build_file_mappings.
1287 (core_target::~core_target): Free memory associated with
1288 m_core_file_mappings.
1289 (core_target::build_file_mappings): New method.
1290 (core_target::xfer_partial): Use m_core_file_mappings
1291 for memory transfers.
1292 * linux-tdep.c (linux_read_core_file_mappings): New
1293 function.
1294 (linux_core_info_proc_mappings): Rewrite to use
1295 linux_read_core_file_mappings.
1296 (linux_init_abi): Register linux_read_core_file_mappings.
1297
1298 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1299
1300 * arch-utils.c (default_read_core_file_mappings): New function.
1301 * arch-utils.c (default_read_core_file_mappings): Declare.
1302 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1303 * gdbarch.h, gdbarch.c: Regenerate.
1304
1305 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1306
1307 PR corefiles/25631
1308 * corelow.c (core_target:xfer_partial): Revise
1309 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1310 case after first checking the stratum beneath the core
1311 target.
1312 (has_all_memory): Return true.
1313 * target.c (raw_memory_xfer_partial): Revise comment
1314 regarding use of has_all_memory.
1315
1316 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1317
1318 * exec.h (section_table_xfer_memory): Revise declaration,
1319 replacing section name parameter with an optional callback
1320 predicate.
1321 * exec.c (section_table_xfer_memory): Likewise.
1322 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1323 of section_table_xfer_memory.
1324
1325 2020-07-22 Tom Tromey <tromey@adacore.com>
1326
1327 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1328 lookup_symbol_search_name.
1329
1330 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1331
1332 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1333 redundant local variable.
1334 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1335 reference, not pointer, update code accordingly.
1336
1337 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1338 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1339
1340 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1341 * jit.c (jit_breakpoint_re_set_internal): Use the
1342 `skip_jit_symbol_lookup` field.
1343
1344 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1345 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1346
1347 * jit.c (jit_read_descriptor): Define the descriptor address once,
1348 use twice.
1349 (jit_breakpoint_deleted): Move the declaration of the loop variable
1350 `iter` into the loop header.
1351 (jit_breakpoint_re_set_internal): Move the declaration of the local
1352 variable `objf_data` to the first point of definition.
1353 (jit_event_handler): Move the declaration of local variables
1354 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1355 Rename `objf` to `jited`.
1356
1357 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1360 Remove.
1361 * jit.c (get_jiter_objfile_data): Update.
1362
1363 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1364 Simon Marchi <simon.marchi@polymtl.ca>
1365
1366 * jit.c (struct jit_program_space_data): Remove.
1367 (jit_program_space_key): Remove.
1368 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1369 stuff.
1370 (get_jit_program_space_data): Remove.
1371 (jit_breakpoint_deleted): Iterate on all of the program space's
1372 objfiles.
1373 (jit_inferior_init): Likewise.
1374 (jit_breakpoint_re_set_internal): Likewise. Also change return
1375 type to void.
1376 (jit_breakpoint_re_set): Pass current_program_space to
1377 jit_breakpoint_re_set_internal.
1378
1379 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 * jit.h (struct jiter_objfile_data) <cached_code_address,
1382 jit_breakpoint>: Move to here from ...
1383 * jit.c (jit_program_space_data): ... here.
1384 (jiter_objfile_data::~jiter_objfile_data): Update.
1385 (jit_breakpoint_deleted): Update.
1386 (jit_breakpoint_re_set_internal): Update.
1387
1388 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1389
1390 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1391 checks.
1392 (jit_read_descriptor): Remove NULL check.
1393 (jit_event_handler): Add an assertion.
1394
1395 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1396
1397 * jit.h (struct jit_objfile_data): Split into...
1398 (struct jiter_objfile_data): ... this ...
1399 (struct jited_objfile_data): ... and this.
1400 * objfiles.h (struct objfile) <jit_data>: Remove.
1401 <jiter_data, jited_data>: New fields.
1402 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1403 (jiter_objfile_data::~jiter_objfile_data): ... this.
1404 (get_jit_objfile_data): Rename to ...
1405 (get_jiter_objfile_data): ... this.
1406 (add_objfile_entry): Update.
1407 (jit_read_descriptor): Use get_jiter_objfile_data.
1408 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1409 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1410 (jit_inferior_exit_hook): Use objfile's jited_data field.
1411
1412 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1413
1414 * jit.h: Forward-declare `struct minimal_symbol`.
1415 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1416 constructor, destructor, and an objfile* field.
1417 * jit.c (jit_objfile_data): Remove.
1418 (struct jit_objfile_data): Migrate from here to jit.h.
1419 (jit_objfile_data::~jit_objfile_data): New destructor
1420 implementation with code moved from free_objfile_data.
1421 (free_objfile_data): Delete.
1422 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1423 (jit_find_objf_with_entry_addr): Ditto.
1424 (jit_inferior_exit_hook): Ditto.
1425 (_initialize_jit): Remove the call to
1426 register_objfile_data_with_cleanup.
1427 * objfiles.h (struct objfile) <jit_data>: New field.
1428
1429 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1430
1431 * jit.h: Forward-declare `struct objfile`.
1432 (jit_event_handler): Add a second parameter, the JITer objfile.
1433 * jit.c (jit_read_descriptor): Change the signature to take the
1434 JITer objfile as an argument instead of the jit_program_space_data.
1435 (jit_inferior_init): Update the call to jit_read_descriptor.
1436 (jit_event_handler): Use the new JITer objfile argument when calling
1437 jit_read_descriptor.
1438 * breakpoint.c (handle_jit_event): Update the call to
1439 jit_event_handler to pass the JITer objfile.
1440
1441 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1442
1443 * gdbarch.c: Regenerate.
1444 * gdbarch.h: Regenerate.
1445 * gdbarch.sh (handle_segmentation_fault): Remove method.
1446 * infrun.c (handle_segmentation_fault): Remove.
1447 (print_signal_received_reason): Remove call to
1448 handle_segmentation_fault.
1449
1450 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1451
1452 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1453 Rename to sparc64_linux_report_signal_info and add siggnal
1454 argument.
1455 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1456 instead of sparc64_linux_handle_segmentation_fault.
1457
1458 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1459
1460 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1461 i386_linux_report_signal_info instead of
1462 i386_linux_handle_segmentation_fault.
1463 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1464 to i386_linux_report_signal_info and add siggnal argument.
1465 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1466 of i386_linux_handle_segmentation_fault.
1467 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1468 to i386_linux_report_signal_info and add siggnal argument.
1469
1470 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1471
1472 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1473 hook if present.
1474
1475 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1476
1477 * gdbarch.c: Regenerate.
1478 * gdbarch.h: Regenerate.
1479 * gdbarch.sh (report_signal_info): New method.
1480 * infrun.c (print_signal_received_reason): Invoke gdbarch
1481 report_signal_info hook if present.
1482
1483 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1484
1485 * python/py-registers.c : Add 'unordered_map' include.
1486 (gdbpy_new_reggroup): Renamed to...
1487 (gdbpy_get_reggroup): ...this. Update to only create register
1488 group descriptors when needed.
1489 (gdbpy_reggroup_iter_next): Update.
1490
1491 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1492
1493 * python/py-registers.c (gdbpy_register_object_data): New static
1494 global.
1495 (gdbpy_register_object_data_init): New function.
1496 (gdbpy_new_register_descriptor): Renamed to...
1497 (gdbpy_get_register_descriptor): ...this, and update to reuse
1498 existing register descriptors where possible.
1499 (gdbpy_register_descriptor_iter_next): Update.
1500 (gdbpy_initialize_registers): Register new gdbarch data.
1501
1502 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1503
1504 * linux-nat.c (stopped_pids): Make static.
1505
1506 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1507
1508 PR ada/26235
1509 * gdbtypes.c (ada_discrete_type_low_bound,
1510 ada_discrete_type_high_bound): Handle undefined bounds.
1511
1512 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1513
1514 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1515 declaration.
1516 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1517 function.
1518
1519 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1520
1521 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1522 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1523 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1524 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1525 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1526 method.
1527
1528 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1529
1530 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1531 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1532 which are deprecated in Guile 3.0.
1533 * configure.ac (try_guile_versions): Add "guile-3.0".
1534 * configure (try_guile_versions): Regenerate.
1535 * NEWS: Update entry.
1536
1537 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1538 Doug Evans <dje@google.com>
1539
1540 PR gdb/21104
1541 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1542 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1543 USING_GUILE_BEFORE_2_2.
1544 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1545 Change type to 'scm_t_port_type *'.
1546 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1547 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1548 parameter and honor it. Update callers.
1549 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1550 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1551 functions.
1552 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1553 USING_GUILE_BEFORE_2_2.
1554 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1555 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1556 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1557 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1558 and 'SCM_PORT_TYPE'.
1559 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1560 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1561 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1562 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1563 [!USING_GUILE_BEFORE_2_2]: New functions.
1564 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1565 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1566 'gdbscm_memory_port_read'.
1567 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1568 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1569 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1570 function.
1571 (ioscm_init_memory_port): Remove.
1572 (ioscm_init_memory_port_stream): New function
1573 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1574 function.
1575 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1576 Return scm_from_uint (0).
1577 (gdbscm_set_memory_port_read_buffer_size_x)
1578 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1579 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1580 Return scm_from_uint (0).
1581 (gdbscm_set_memory_port_write_buffer_size_x)
1582 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1583 * configure.ac (try_guile_versions): Add "guile-2.2".
1584 * configure: Regenerate.
1585 * NEWS: Add entry.
1586
1587 2020-07-18 Tom Tromey <tom@tromey.com>
1588
1589 * linux-nat.c (linux_multi_process): Remove.
1590 (linux_nat_target::supports_multi_process): Return true.
1591
1592 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1595 (riscv_lookup_target_description): Return pointer out of
1596 unique_ptr.
1597 * target-descriptions.c (allocate_target_description): Add
1598 comment.
1599 (target_desc_deleter::operator()): Likewise.
1600 * target-descriptions.h (struct target_desc_deleter): Moved to
1601 gdbsupport/tdesc.h.
1602 (target_desc_up): Likewise.
1603
1604 2020-07-17 Tom Tromey <tromey@adacore.com>
1605
1606 * linux-nat.c (linux_nat_target::supports_non_stop)
1607 (linux_nat_target::always_non_stop_p): Use "true".
1608 (linux_nat_target::supports_disable_randomization): Use "true" and
1609 "false".
1610
1611 2020-07-16 Caroline Tice <cmtice@google.com>
1612
1613 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1614 (RNGLIST_HEADER_SIZE64): New constant definition.
1615 (struct dwop_section_names): Add rnglists_dwo.
1616 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1617 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1618 (struct dwo_sections): Add rnglists field.
1619 (read_attribut_reprocess): Add tag parameter.
1620 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1621 (cu_debug_rnglists_section): New function (decl & definition).
1622 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1623 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1624 die whose range is being checked; get rnglist section from
1625 cu_debug_rnglists_section, to get from either objfile or dwo file as
1626 appropriate. Add cases for DW_RLE_base_addressx,
1627 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1628 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1629 test inside if-condition and updating complaint message.
1630 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1631 dwarf2_rnglists_process.
1632 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1633 dwarf2_ranges_process.
1634 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1635 need_ranges_base and update comment appropriately. Also pass die tag
1636 to dwarf2_ranges_read.
1637 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1638 need_ranges_base and update comment appropriately. Also pass die tag
1639 to dwarf2_ranges_process.
1640 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1641 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1642 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1643 need_ranges_base and update comment appropriately. Also pass die tag
1644 to read_attribute_reprocess and dwarf2_ranges_read.
1645 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1646 and update function comment appropriately.
1647 (read_loclist_index): Call read_loclists_rnglists_header instead of
1648 read_loclist_header.
1649 (read_rnglist_index): New function.
1650 (read_attribute_reprocess): Add tag parameter. Add code for
1651 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1652 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1653
1654 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1655
1656 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1657 being resolved.
1658
1659 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * arch-utils.c (show_architecture): Update formatting of messages.
1662
1663 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1664
1665 * gdbtypes.h (struct type) <bounds>: Handle array and string
1666 types.
1667 * ada-lang.c (assign_aggregate): Use type::bounds on
1668 array/string type.
1669 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1670 * c-varobj.c (c_number_of_children): Likewise.
1671 (c_describe_child): Likewise.
1672 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1673 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1674 (f_type_print_base): Likewise.
1675 * f-valprint.c (f77_array_offset_tbl): Likewise.
1676 (f77_get_upperbound): Likewise.
1677 (f77_print_array_1): Likewise.
1678 * guile/scm-type.c (gdbscm_type_range): Likewise.
1679 * m2-typeprint.c (m2_array): Likewise.
1680 (m2_is_long_set_of_type): Likewise.
1681 * m2-valprint.c (get_long_set_bounds): Likewise.
1682 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1683 * python/py-type.c (typy_range): Likewise.
1684 * rust-lang.c (rust_internal_print_type): Likewise.
1685 * type-stack.c (type_stack::follow_types): Likewise.
1686 * valarith.c (value_subscripted_rvalue): Likewise.
1687 * valops.c (value_cast): Likewise.
1688
1689 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1690
1691 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1692 callers to use the equivalent accessor methods.
1693
1694 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1695
1696 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1697 (struct type) <bit_stride>: New method.
1698 (TYPE_BIT_STRIDE): Remove.
1699 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1700
1701 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1702
1703 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1704 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1705 callers to use the equivalent accessor methods instead.
1706
1707 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1708
1709 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1710 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1711 callers to use the equivalent accessor methods instead.
1712
1713 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1714
1715 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1716 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1717 to use dynamic_prop::kind.
1718
1719 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1720
1721 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1722 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1723 to get the bound property's kind and check against
1724 PROP_UNDEFINED.
1725
1726 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1727
1728 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1729 all callers to use type::range_bounds followed by
1730 dynamic_prop::{low,high}.
1731
1732 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1733
1734 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1735 const_val, set_const_val, baton, set_locexpr, set_loclist,
1736 set_addr_offset, variant_parts, set_variant_parts,
1737 original_type, set_original_type>: New methods.
1738 <kind>: Rename to...
1739 <m_kind>: ... this. Update all users to use the new methods
1740 instead.
1741 <data>: Rename to...
1742 <m_data>: ... this. Update all users to use the new methods
1743 instead.
1744
1745 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1746
1747 * gdbtypes.c (get_discrete_bounds): Return failure if
1748 the range type's bounds are not both defined and constant
1749 values.
1750 (get_array_bounds): Update comment. Remove undefined bound check.
1751
1752 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1753
1754 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1755 the type::bounds method directly.
1756
1757 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1758
1759 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1760 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1761 are used to set the range type's bounds to use set_bounds.
1762
1763 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1764
1765 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1766
1767 2020-07-10 Pedro Alves <pedro@palves.net>
1768
1769 * gdbthread.h (inferior_ref): Define.
1770 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1771 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1772 * thread.c
1773 (scoped_restore_current_thread::restore):
1774 Adjust to gdb::ref_ptr.
1775 (scoped_restore_current_thread::~scoped_restore_current_thread):
1776 Remove manual decref handling.
1777 (scoped_restore_current_thread::scoped_restore_current_thread):
1778 Adjust to use
1779 inferior_ref::new_reference/thread_info_ref::new_reference.
1780 Incref the thread before calling get_frame_id instead of after.
1781 Let TARGET_CLOSE_ERROR propagate.
1782
1783 2020-07-10 Pedro Alves <pedro@palves.net>
1784
1785 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1786 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1787 NOT_AVAILABLE_ERROR.
1788 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1789 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1790
1791 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1792 Pedro Alves <pedro@palves.net>
1793
1794 PR gdb/26199
1795 * infrun.c (threads_are_resumed_pending_p): Delete.
1796 (do_target_wait): Remove threads_are_executing and
1797 threads_are_resumed_pending_p checks from the inferior_matches
1798 lambda. Update comments.
1799
1800 2020-07-10 Pedro Alves <pedro@palves.net>
1801
1802 PR gdb/26199
1803 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1804 executing threads.
1805
1806 2020-07-10 Pedro Alves <pedro@palves.net>
1807
1808 PR gdb/26199
1809 * infrun.c (handle_no_resumed): Handle multiple targets.
1810
1811 2020-07-10 Pedro Alves <pedro@palves.net>
1812
1813 PR gdb/26199
1814 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1815 target_is_async_p.
1816
1817 2020-07-10 Pedro Alves <pedro@palves.net>
1818
1819 PR gdb/26199
1820 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1821 threads, not all threads.
1822
1823 2020-07-10 Pedro Alves <pedro@palves.net>
1824
1825 PR gdb/26199
1826 * remote.c (remote_target::open_1): Pass remote target pointer as
1827 data to create_async_event_handler.
1828 (remote_async_inferior_event_handler): Mark async event handler
1829 before returning if the remote target still has either pending
1830 events or unacknowledged notifications.
1831
1832 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1833
1834 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1835 declaration.
1836 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1837 function.
1838
1839 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1840
1841 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1842 inferior_ptid.
1843
1844 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1845
1846 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1847 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1848 AT_FREEBSD_PS_STRINGS.
1849
1850 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1851
1852 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1853 of debugfile path on Windows.
1854
1855 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1856
1857 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1858 argument to 'data'.
1859
1860 2020-07-08 Tom Tromey <tromey@adacore.com>
1861
1862 * ada-lang.c (ada_exception_message_1): Use read_memory.
1863
1864 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 PR python/22748
1867 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1868 special handling for inline frames.
1869 * findvar.c (value_of_register_lazy): Skip inline frames when
1870 creating lazy register values.
1871 * frame.c (frame_id_computed_p): Delete definition.
1872 * frame.h (frame_id_computed_p): Delete declaration.
1873
1874 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1875
1876 * NEWS: Mention additions to Python API.
1877 * python/py-arch.c (archpy_register_groups): New function.
1878 (arch_object_methods): Add 'register_groups' method.
1879 * python/py-registers.c (reggroup_iterator_object): New struct.
1880 (reggroup_object): New struct.
1881 (gdbpy_new_reggroup): New function.
1882 (gdbpy_reggroup_to_string): New function.
1883 (gdbpy_reggroup_name): New function.
1884 (gdbpy_reggroup_iter): New function.
1885 (gdbpy_reggroup_iter_next): New function.
1886 (gdbpy_new_reggroup_iterator): New function
1887 (gdbpy_initialize_registers): Register new types.
1888 (reggroup_iterator_object_type): Define new Python type.
1889 (gdbpy_reggroup_getset): New static global.
1890 (reggroup_object_type): Define new Python type.
1891 * python/python-internal.h
1892
1893 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1894
1895 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1896 * python/py-arch.c (archpy_registers): New function.
1897 (arch_object_methods): Add 'registers' method.
1898 * python/py-registers.c: New file.
1899 * python/python-internal.h
1900 (gdbpy_new_register_descriptor_iterator): Declare.
1901 (gdbpy_initialize_registers): Declare.
1902 * python/python.c (do_start_initialization): Call
1903 gdbpy_initialize_registers.
1904 * NEWS: Mention additions to the Python API.
1905
1906 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 * NEWS: Mention new Python API method.
1909 * python/py-unwind.c (pending_framepy_architecture): New function.
1910 (pending_frame_object_methods): Add architecture method.
1911
1912 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * gdbarch.c: Regenerate.
1915 * gdbarch.h: Regenerate.
1916 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1917 (gdbarch_data): Use internal_error for the case where
1918 deprecated_set_gdbarch_data was originally needed.
1919 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1920 and use passed in obstack.
1921 (libunwind_frame_set_descr): Should no longer get back NULL from
1922 gdbarch_data.
1923 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1924 type.
1925 * user-regs.c (user_regs_init): Update parameters, and use passed
1926 in obstack.
1927 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1928 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1929
1930 2020-07-06 Tom de Vries <tdevries@suse.de>
1931
1932 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1933 End-Of-Sequence in lte_is_less_than.
1934 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1935 "gdb: Don't reorder line table entries too much when sorting".
1936
1937 2020-07-06 Tom de Vries <tdevries@suse.de>
1938
1939 PR tui/26205
1940 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1941
1942 2020-07-05 Tom de Vries <tdevries@suse.de>
1943
1944 PR build/26187
1945 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1946 std::uncaught_exceptions instead of deprecated
1947 std::uncaught_exception.
1948
1949 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1950
1951 * macroexp.h (macro_stringify): Return
1952 gdb::unique_xmalloc_ptr<char>.
1953 * macroexp.c (macro_stringify): Likewise.
1954 * macrotab.c (fixup_definition): Update.
1955
1956 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1957
1958 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1959 (lex_one_token): Update.
1960 * macroexp.c (struct macro_buffer) <release>: Return
1961 gdb::unique_xmalloc_ptr<char>.
1962 (macro_stringify): Update.
1963 (macro_expand): Update.
1964 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1965 * macroexp.h (macro_expand_next): Likewise.
1966
1967 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1968
1969 * macroexp.h (macro_lookup_ftype): Remove.
1970 (macro_expand, macro_expand_once, macro_expand_next): Remove
1971 lookup function parameters, add scope parameter.
1972 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1973 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1974 * macroscope.h (standard_macro_lookup): Change parameter type
1975 to macro_scope.
1976 * macroscope.c (standard_macro_lookup): Likewise.
1977 * c-exp.y (lex_one_token): Update.
1978 * macrocmd.c (macro_expand_command): Likewise.
1979 (macro_expand_once_command): Likewise.
1980
1981 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1982
1983 * inf-loop.c (inferior_event_handler): Remove client_data param.
1984 * inf-loop.h (inferior_event_handler): Likewise.
1985 * infcmd.c (step_1): Adjust.
1986 * infrun.c (proceed): Adjust.
1987 (fetch_inferior_event): Remove client_data param.
1988 (infrun_async_inferior_event_handler): Adjust.
1989 * infrun.h (fetch_inferior_event): Remove `void *` param.
1990 * linux-nat.c (handle_target_event): Adjust.
1991 * record-btrace.c (record_btrace_handle_async_inferior_event):
1992 Adjust.
1993 * record-full.c (record_full_async_inferior_event_handler):
1994 Adjust.
1995 * remote.c (remote_async_inferior_event_handler): Adjust.
1996
1997 2020-07-01 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2000 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2001
2002 2020-07-01 Tom Tromey <tom@tromey.com>
2003
2004 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2005 tui_gen_win_info.
2006 (tui_win_info::make_window): Merge with
2007 tui_gen_win_info::make_window.
2008 (tui_win_info::make_visible): Move from tui_gen_win_info.
2009 * tui/tui-win.c (tui_win_info::max_width): Move from
2010 tui_gen_win_info.
2011 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2012 type.
2013 <window_factory>: Likewise.
2014 * tui/tui-layout.c (tui_win_info::resize): Move from
2015 tui_gen_win_info.
2016 (make_standard_window): Change return type.
2017 (get_locator_window, tui_get_window_by_name): Likewise.
2018 (tui_layout_window::apply): Remove a cast.
2019 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2020 (struct tui_win_info): Merge with tui_gen_win_info.
2021 (struct tui_gen_win_info): Remove.
2022
2023 2020-07-01 Tom Tromey <tom@tromey.com>
2024
2025 * tui/tui-stack.h (struct tui_locator_window): Derive from
2026 tui_win_info.
2027 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2028 <can_box>: New method.
2029
2030 2020-07-01 Tom Tromey <tom@tromey.com>
2031
2032 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2033
2034 2020-07-01 Tom Tromey <tom@tromey.com>
2035
2036 * tui/tui-regs.c (tui_data_window::display_registers_from)
2037 (tui_data_window::display_registers_from)
2038 (tui_data_window::first_data_item_displayed)
2039 (tui_data_window::delete_data_content_windows): Update.
2040 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2041 Remove.
2042 (tui_data_window::check_register_values): Update.
2043 (tui_data_item_window::rerender): Add parameters. Update.
2044 (tui_data_item_window::refresh_window): Remove.
2045 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2046 virtual.
2047 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2048 tui_gen_win_info.
2049 <refresh_window, max_height, min_height>: Remove.
2050 <rerender>: Add parameters.
2051 <x, y, visible>: New members.
2052 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2053 <m_item_width>: New member.
2054
2055 2020-07-01 Tom Tromey <tom@tromey.com>
2056
2057 * tui/tui-regs.c (tui_data_window::show_register_group)
2058 (tui_data_window::check_register_values): Update.
2059 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2060 from item_no.
2061
2062 2020-07-01 Tom Tromey <tom@tromey.com>
2063
2064 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2065 useless "if".
2066
2067 2020-07-01 Tom Tromey <tom@tromey.com>
2068
2069 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2070 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2071
2072 2020-07-01 Tom Tromey <tom@tromey.com>
2073
2074 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2075 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2076 (struct tui_line_or_address): Move from tui-data.h.
2077 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2078 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2079 (tui_cmd_window, tui_source_window_base, tui_source_window)
2080 (tui_disasm_window): Don't declare.
2081 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2082 to tui-winsource.h.
2083 (SINGLE_KEY): Move to tui-stack.c.
2084
2085 2020-07-01 Tom Tromey <tom@tromey.com>
2086
2087 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2088 std::string.
2089 * tui/tui-regs.c (class tab_expansion_file): New.
2090 (tab_expansion_file::write): New method.
2091 (tui_register_format): Change return type. Use
2092 tab_expansion_file.
2093 (tui_get_register, tui_data_window::display_registers_from)
2094 (tui_data_item_window::rerender): Update.
2095 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2096 * tui/tui-io.c (tui_expand_tabs): Remove.
2097
2098 2020-07-01 Tom Tromey <tom@tromey.com>
2099
2100 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2101
2102 2020-07-01 Fangrui Song <maskray@google.com>
2103
2104 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2105
2106 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2107
2108 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2109 forms for DW_AT_associated and DW_AT_allocated attributes,
2110 which is already checked in function attr_to_dynamic_prop.
2111
2112 2020-06-30 Tom Tromey <tromey@adacore.com>
2113
2114 * dwarf2/read.c (quirk_rust_enum): Correctly call
2115 alloc_rust_variant for default-less enum.
2116
2117 2020-06-30 Tom Tromey <tromey@adacore.com>
2118
2119 PR build/26183:
2120 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2121 gdb::to_string.
2122
2123 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2124
2125 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2126 * gdbarch.h: Re-generate.
2127
2128 2020-06-28 Tom Tromey <tom@tromey.com>
2129
2130 * command.h (cmd_types): Remove.
2131 (cmd_type): Don't declare.
2132 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2133 typedef.
2134 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2135 * cli/cli-decode.c (cmd_type): Remove.
2136
2137 2020-06-27 Pedro Alves <palves@redhat.com>
2138
2139 * fork-child.c (prefork_hook): Adjust.
2140 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2141 Delete.
2142 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2143 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2144 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2145 Remove declarations.
2146 (struct inferior) <set_tty, tty>: New methods.
2147 (struct inferior) <terminal>: Rename to ...
2148 (struct inferior) <m_terminal>: ... this and make private.
2149 * main.c (captured_main_1): Adjust.
2150 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2151 (mi_cmd_inferior_tty_show): Adjust.
2152 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2153 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2154
2155 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2156
2157 * configure.ac: Add --enable-libctf: handle --disable-static
2158 properly.
2159 * acinclude.m4: sinclude ../config/enable.m4.
2160 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2161 (LIBCTF): Substitute in.
2162 (CTF_DEPS): New, likewise.
2163 (CLIBS): libctf needs symbols from libbfd: move earlier.
2164 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2165 flags.
2166 * ctfread.c: Surround in ENABLE_LIBCTF.
2167 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2168 * configure: Regenerate.
2169 * config.in: Likewise.
2170
2171 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2172
2173 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2174
2175 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2176
2177 * inferior.h (struct inferior) <terminal>: Change type to
2178 gdb::unique_xmalloc_ptr<char>.
2179 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2180 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2181 field, adjust to unique pointer.
2182 (get_inferior_io_terminal): Adjust to unique pointer.
2183
2184 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2185
2186 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2187 registers, not just the known core set of registers.
2188
2189 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2190
2191 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2192 fflags, frm, and fcsr registers.
2193 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2194 restore groups.
2195 (riscv_tdesc_unknown_reg): New function.
2196 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2197 tdesc_use_registers.
2198 * riscv-tdep.h (struct gdbarch_tdep): Add
2199 unknown_csrs_first_regnum, unknown_csrs_count,
2200 duplicate_fflags_regnum, duplicate_frm_regnum, and
2201 duplicate_fcsr_regnum fields.
2202
2203 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2204
2205 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2206 callback, use the callback (when not null) to help number unknown
2207 registers.
2208 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2209 (tdesc_use_registers): Add extra parameter to declaration.
2210
2211 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2212
2213 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2214 in the file.
2215 (class riscv_pending_register_alias): Likewise.
2216 (riscv_register_feature::register_info): Change 'required_p' field
2217 to 'required', and change its type. Add 'check' member function.
2218 (riscv_register_feature::register_info::check): Define new member
2219 function.
2220 (riscv_xreg_feature): Change initialisation of 'required' field.
2221 (riscv_freg_feature): Likewise.
2222 (riscv_virtual_feature): Likewise.
2223 (riscv_csr_feature): Likewise.
2224 (riscv_check_tdesc_feature): Take extra parameter, the csr
2225 tdesc_feature, rewrite the function to use the new
2226 riscv_register_feature::register_info::check function.
2227 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2228
2229 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * features/Makefile: Remove all references to the deleted files
2232 below.
2233 * features/riscv/32bit-csr.c: Deleted.
2234 * features/riscv/32bit-csr.xml: Deleted.
2235 * features/riscv/64bit-csr.c: Deleted.
2236 * features/riscv/64bit-csr.xml: Deleted.
2237 * features/riscv/rebuild-csr-xml.sh: Deleted.
2238
2239 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2240
2241 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2242 whitespace error for declaration of names member variable.
2243 (struct riscv_register_feature): Add new prefer_first_name member
2244 variable, and fix whitespace error in declaration of registers.
2245 (riscv_xreg_feature): Initialize prefer_first_name field.
2246 (riscv_freg_feature): Likewise.
2247 (riscv_virtual_feature): Likewise.
2248 (riscv_csr_feature): Likewise.
2249 (riscv_register_name): Expand on comments. Remove register name
2250 modifications for CSR and virtual registers.
2251
2252 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2253
2254 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2255 errors.
2256
2257 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2258
2259 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2260 riscv-opc.h.
2261 (class riscv_pending_register_alias): New class.
2262 (riscv_check_tdesc_feature): Take vector of pending aliases and
2263 populate it as appropriate.
2264 (riscv_setup_register_aliases): Delete.
2265 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2266 to riscv_check_tdesc_feature in all cases. Use the vector to
2267 create the register aliases.
2268
2269 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2270
2271 * sol2-tdep.c (sol2_static_transform_name): Remove.
2272 (sol2_init_abi): Don't register it.
2273 * gdbarch.sh (static_transform_name): Remove.
2274 * gdbarch.c, gdbarch.h: Regenerate.
2275
2276 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2277 gdbarch_static_transform_name.
2278 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2279 * stabsread.c (define_symbol) <'X'>: Remove.
2280 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2281 handling.
2282 <'V'>: Likewise.
2283 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2284 <'S'>: Remove call to gdbarch_static_transform_name.
2285
2286 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2287
2288 * procfs.c (procfs_pre_trace): New function.
2289 (procfs_target::create_inferior): Pass it to fork_inferior.
2290
2291 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2292
2293 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2294 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2295 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2296 sol2-tdep.o, sparc-sol2-tdep.o.
2297 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2298 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2299 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2300 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2301
2302 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2303
2304 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2305 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2306 Call sol2_init_abi.
2307 Remove calls to set_gdbarch_skip_solib_resolver,
2308 set_gdbarch_core_pid_to_str.
2309 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2310 (i386_sol2_static_transform_name): Remove.
2311 (i386_sol2_init_abi): Call sol2_init_abi.
2312 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2313 set_gdbarch_static_transform_name,
2314 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2315 Use sol2_sigtramp_p.
2316 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2317 (sol2_sigtramp_p): New function.
2318 (sol2_static_transform_name): New function.
2319 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2320 (sol2_init_abi): New function.
2321 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2322 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2323 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2324 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2325 (sparc_sol2_static_transform_name): Remove.
2326 (sparc32_sol2_init_abi): Call sol2_init_abi.
2327 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2328 set_gdbarch_static_transform_name,
2329 set_gdbarch_skip_solib_resolver,
2330 set_gdbarch_core_pid_to_str.
2331 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2332 (sparc_sol2_static_transform_name): Remove
2333 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2334 call sol2_sigtramp_p.
2335 (sparc64_sol2_init_abi): Call sol2_init_abi.
2336 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2337 set_gdbarch_static_transform_name,
2338 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2339
2340 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2341
2342 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2343 * exec.c (validate_exec_file): If from_tty, set both
2344 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2345 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2346 and from_tty, unconditionally ask a confirmation.
2347
2348 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * target-descriptions.c (tdesc_architecture_name): Protect against
2351 NULL pointer dereference.
2352 (maint_print_xml_tdesc_cmd): New function.
2353 (_initialize_target_descriptions): Register new 'maint print
2354 xml-tdesc' command and give it the filename completer.
2355 * NEWS: Mention new 'maint print xml-tdesc' command.
2356
2357 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 * target-descriptions.c (class tdesc_compatible_info): New class.
2360 (struct target_desc): Change type of compatible vector.
2361 (tdesc_compatible_p): Update for change in type of
2362 target_desc::compatible.
2363 (tdesc_compatible_info_list): New function.
2364 (tdesc_compatible_info_arch_name): New function.
2365 (tdesc_add_compatible): Update for change in type of
2366 target_desc::compatible.
2367 (print_c_tdesc::visit_pre): Likewise.
2368
2369 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2372 whitespace to underscore.
2373 (maint_print_c_tdesc_cmd): Use fake filename for target
2374 descriptions that came from the target.
2375 (_initialize_target_descriptions): Add filename command completion
2376 for 'maint print c-tdesc'.
2377
2378 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2379
2380 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2381 lines.
2382
2383 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2384
2385 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2386 lines.
2387 (dwarf2_find_location_expression): Likewise.
2388 (call_site_parameter_matches): Likewise.
2389 (dwarf2_compile_expr_to_ax): Likewise.
2390 (disassemble_dwarf_expression): Likewise.
2391 (loclist_describe_location): Likewise.
2392
2393 2020-06-23 Pedro Alves <palves@redhat.com>
2394
2395 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2396 progspace-and-thread.h. Include scoped-mock-context.h instead.
2397 (register_to_value_test): Use scoped_mock_context.
2398 * regcache.c: Include "scoped-mock-context.h".
2399 (cooked_read_test): Don't error out if a target is already pushed.
2400 Use scoped_mock_context. Adjust.
2401 * scoped-mock-context.h: New file.
2402
2403 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2404
2405 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2406 initializer.
2407 (ada_language::is_string_type_p): New member function.
2408 * c-lang.c (c_language_data): Delete la_is_string_type_p
2409 initializer.
2410 (cplus_language_data): Likewise.
2411 (asm_language_data): Likewise.
2412 (minimal_language_data): Likewise.
2413 * d-lang.c (d_language_data): Likewise.
2414 * f-lang.c (f_is_string_type_p): Delete function, implementation
2415 moved to f_language::is_string_type_p.
2416 (f_language_data): Delete la_is_string_type_p initializer.
2417 (f_language::is_string_type_p): New member function,
2418 implementation from f_is_string_type_p.
2419 * go-lang.c (go_is_string_type_p): Delete function, implementation
2420 moved to go_language::is_string_type_p.
2421 (go_language_data): Delete la_is_string_type_p initializer.
2422 (go_language::is_string_type_p): New member function,
2423 implementation from go_is_string_type_p.
2424 * language.c (language_defn::is_string_type_p): Define new member
2425 function.
2426 (default_is_string_type_p): Make static, add comment copied from
2427 header file.
2428 (unknown_language_data): Delete la_is_string_type_p initializer.
2429 (unknown_language::is_string_type_p): New member function.
2430 (auto_language_data): Delete la_is_string_type_p initializer.
2431 (auto_language::is_string_type_p): New member function.
2432 * language.h (language_data): Delete la_is_string_type_p field.
2433 (language_defn::is_string_type_p): Declare new function.
2434 (default_is_string_type_p): Delete desclaration, move comment to
2435 definition.
2436 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2437 moved to m2_language::is_string_type_p.
2438 (m2_language_data): Delete la_is_string_type_p initializer.
2439 (m2_language::is_string_type_p): New member function,
2440 implementation from m2_is_string_type_p.
2441 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2442 initializer.
2443 * opencl-lang.c (opencl_language_data): Likewise.
2444 * p-lang.c (pascal_is_string_type_p): Delete function,
2445 implementation moved to pascal_language::is_string_type_p.
2446 (pascal_language_data): Delete la_is_string_type_p initializer.
2447 (pascal_language::is_string_type_p): New member function,
2448 implementation from pascal_is_string_type_p.
2449 * rust-lang.c (rust_is_string_type_p): Delete function,
2450 implementation moved to rust_language::is_string_type_p.
2451 (rust_language_data): Delete la_is_string_type_p initializer.
2452 (rust_language::is_string_type_p): New member function,
2453 implementation from rust_is_string_type_p.
2454 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2455 is_string_type_p.
2456
2457 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2458
2459 * ada-lang.c (ada_language_data): Delete la_print_typedef
2460 initializer.
2461 (ada_language::print_typedef): New member function.
2462 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2463 (cplus_language_data): Likewise.
2464 (asm_language_data): Likewise.
2465 (minimal_language_data): Likewise.
2466 * d-lang.c (d_language_data): Likewise.
2467 * f-lang.c (f_language_data): Likewise.
2468 (f_language::print_typedef): New member function.
2469 * go-lang.c (go_language_data): Delete la_print_typedef
2470 initializer.
2471 * language.c (language_defn::print_typedef): Define member
2472 function.
2473 (unknown_language_data): Delete la_print_typedef initializer.
2474 (unknown_language::print_typedef): New member function.
2475 (auto_language_data): Delete la_print_typedef initializer.
2476 (auto_language::print_typedef): New member function.
2477 * language.h (language_data): Delete la_print_typedef field.
2478 (language_defn::print_typedef): Declare new member function.
2479 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2480 (default_print_typedef): Delete declaration.
2481 * m2-lang.c (m2_language_data): Delete la_print_typedef
2482 initializer.
2483 (m2_language::print_typedef): New member function.
2484 * objc-lang.c (objc_language_data): Delete la_print_typedef
2485 initializer.
2486 * opencl-lang.c (opencl_language_data): Likewise.
2487 * p-lang.c (pascal_language_data): Likewise.
2488 (pascal_language::print_typedef): New member function.
2489 * rust-lang.c (rust_print_typedef): Delete function,
2490 implementation moved to rust_language::print_typedef.
2491 (rust_language): Delete la_print_typedef initializer.
2492 (rust_language::print_typedef): New member function,
2493 implementation from rust_print_typedef.
2494 * typeprint.c (default_print_typedef): Delete.
2495
2496 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2499 (ada_language::printstr): New member function.
2500 * c-lang.c (c_language_data): Delete la_printstr initializer.
2501 (cplus_language_data): Likewise.
2502 (asm_language_data): Likewise.
2503 (minimal_language_data): Likewise.
2504 * d-lang.c (d_language_data): Likewise.
2505 * f-lang.c (f_printstr): Rename to f_language::printstr.
2506 (f_language_data): Delete la_printstr initializer.
2507 (f_language::printstr): New member function, implementation from
2508 f_printstr.
2509 * go-lang.c (go_language_data): Delete la_printstr initializer.
2510 * language.c (language_defn::printstr): Define new member
2511 function.
2512 (unk_lang_printstr): Delete.
2513 (unknown_language_data): Delete la_printstr initializer.
2514 (unknown_language::printstr): New member function.
2515 (auto_language_data): Delete la_printstr initializer.
2516 (auto_language::printstr): New member function.
2517 * language.h (language_data): Delete la_printstr field.
2518 (language_defn::printstr): Declare new member function.
2519 (LA_PRINT_STRING): Update call to printstr.
2520 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2521 (m2_language_data): Delete la_printstr initializer.
2522 (m2_language::printstr): New member function, implementation from
2523 m2_printstr.
2524 * objc-lang.c (objc_language_data): Delete la_printstr
2525 initializer.
2526 * opencl-lang.c (opencl_language_data): Likewise.
2527 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2528 (pascal_language_data): Delete la_printstr initializer.
2529 (pascal_language::printstr): New member function, implementation
2530 from pascal_printstr.
2531 * p-lang.h (pascal_printstr): Delete declaration.
2532 * rust-lang.c (rust_printstr): Update header comment.
2533 (rust_language_data): Delete la_printstr initializer.
2534 (rust_language::printstr): New member function.
2535
2536 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2537
2538 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2539 (ada_language::printchar): New member function.
2540 * c-lang.c (c_language_data): Delete la_printchar initializer.
2541 (cplus_language_data): Likewise.
2542 (asm_language_data): Likewise.
2543 (minimal_language_data): Likewise.
2544 * d-lang.c (d_language_data): Likewise.
2545 * f-lang.c (f_printchar): Rename to f_language::printchar.
2546 (f_language_data): Delete la_printchar initializer.
2547 (f_language::printchar): New member function, implementation from
2548 f_printchar.
2549 * go-lang.c (go_language_data): Delete la_printchar initializer.
2550 * language.c (unk_lang_printchar): Delete.
2551 (language_defn::printchar): Define new member function.
2552 (unknown_language_data): Delete la_printchar initializer.
2553 (unknown_language::printchar): New member function.
2554 (auto_language_data): Delete la_printchar initializer.
2555 (auto_language::printchar): New member function.
2556 * language.h (language_data): Delete la_printchar field.
2557 (language_defn::printchar): Declare new member function.
2558 (LA_PRINT_CHAR): Update call to printchar.
2559 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2560 (m2_language::printchar): New member function.
2561 * objc-lang.c (objc_language_data): Delete la_printchar
2562 initializer.
2563 * opencl-lang.c (opencl_language_data): Likewise.
2564 * p-lang.c (pascal_language_data): Delete la_printchar
2565 initializer.
2566 (pascal_language::printchar): New member function.
2567 * rust-lang.c (rust_printchar): Rename to
2568 rust_language::printchar.
2569 (rust_language_data): Delete la_printchar initializer.
2570 (rust_language::printchar): New member function, implementation
2571 from rust_printchar.
2572
2573 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2574
2575 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2576 (ada_language_data): Delete la_emitchar initializer.
2577 (ada_language::emitchar): New member function, implementation from
2578 emit_char.
2579 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2580 (cplus_language_data): Likewise.
2581 (asm_language_data): Likewise.
2582 (minimal_language_data): Likewise.
2583 * d-lang.c (d_language_data): Likewise.
2584 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2585 (f_language_data): Delete la_emitchar initializer.
2586 (f_language::emitchar): New member function, implementation from
2587 f_emit_char.
2588 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2589 * language.c (unk_lang_emit_char): Delete.
2590 (language_defn::emitchar): New member function definition.
2591 (unknown_language_data): Delete la_emitchar initializer.
2592 (unknown_language::emitchar): New member function.
2593 (auto_language_data): Delete la_emitchar initializer.
2594 (auto_language::emitchar): New member function.
2595 * language.h (language_data): Delete la_emitchar field.
2596 (language_defn::emitchar): New member field declaration.
2597 (LA_EMIT_CHAR): Update call to emitchar.
2598 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2599 (m2_language_data): Delete la_emitchar initializer.
2600 (m2_language::emitchar): New member function, implementation from
2601 m2_emit_char.
2602 * objc-lang.c (objc_language_data): Delete la_emitchar
2603 initializer.
2604 * opencl-lang.c (opencl_language_data): Likewise.
2605 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2606 (pascal_language_data): Delete la_emitchar initializer.
2607 (pascal_language::emitchar): New member function, implementation
2608 from pascal_emit_char.
2609 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2610 (rust_language_data): Delete la_emitchar initializer.
2611 (rust_language::emitchar): New member function, implementation
2612 from rust_emitchar.
2613
2614 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2615
2616 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2617 (ada_language_data): Delete la_post_parser initializer.
2618 (ada_language::post_parser): New member function.
2619 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2620 (cplus_language_data): Likewise.
2621 (asm_language_data): Likewise.
2622 (minimal_language_data): Likewise.
2623 * d-lang.c (d_language_data): Likewise.
2624 * f-lang.c (f_language_data): Likewise.
2625 * go-lang.c (go_language_data): Likewise.
2626 * language.c (unknown_language_data): Likewise.
2627 (auto_language_data): Likewise.
2628 * language.h (language_data): Delete la_post_parser field.
2629 (language_defn::post_parser): New member function.
2630 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2631 * objc-lang.c (objc_language_data): Likewise.
2632 * opencl-lang.c (opencl_language_data): Likewise.
2633 * p-lang.c (pascal_language_data): Likewise.
2634 * parse.c (parse_exp_in_context): Update call to post_parser.
2635 (null_post_parser): Delete definition.
2636 * parser-defs.h (null_post_parser): Delete declaration.
2637 * rust-lang.c (rust_language_data): Delete la_post_parser
2638 initializer.
2639
2640 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * ada-lang.c (parse): Rename to ada_language::parser.
2643 (ada_language_data): Delete la_parser initializer.
2644 (ada_language::parser): New member function, implementation from
2645 parse.
2646 * c-lang.c (c_language_data): Delete la_parser initializer.
2647 (cplus_language_data): Likewise.
2648 (asm_language_data): Likewise.
2649 (minimal_language_data): Likewise.
2650 * d-lang.c (d_language_data): Likewise.
2651 (d_language::parser): New member function.
2652 * f-lang.c (f_language_data): Delete la_parser initializer.
2653 (f_language::parser): New member function.
2654 * go-lang.c (go_language_data): Delete la_parser initializer.
2655 (go_language::parser): New member function.
2656 * language.c (unk_lang_parser): Delete.
2657 (language_defn::parser): Define new member function.
2658 (unknown_language_data): Delete la_parser initializer.
2659 (unknown_language::parser): New member function.
2660 (auto_language_data): Delete la_parser initializer.
2661 (auto_language::parser): New member function.
2662 * language.h (language_data): Delete la_parser field.
2663 (language_defn::parser): Declare new member function.
2664 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2665 (m2_language::parser): New member function.
2666 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2667 * opencl-lang.c (opencl_language_data): Likewise.
2668 * p-lang.c (pascal_language_data): Likewise.
2669 (pascal_language::parser): New member function.
2670 * parse.c (parse_exp_in_context): Update call to parser.
2671 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2672 (rust_language::parser): New member function.
2673
2674 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * top.c (print_gdb_configuration): Print --with-python-libdir
2677 configuration value.
2678
2679 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2680
2681 * NEWS: Mention change to the alias command.
2682
2683 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2684
2685 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2686 (alias_command_completer)
2687 (make_alias_options_def_group): New functions.
2688 (alias_opts, alias_option_defs): New struct and array.
2689 (alias_usage_error): Update usage.
2690 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2691 Use option framework.
2692 (_initialize_cli_cmds): Update alias command help.
2693 Update aliases command help.
2694 (show_user):
2695 Add NULL for new default_args lookup_cmd argument.
2696 (valid_command_p): Rename to validate_aliased_command.
2697 Add NULL for new default_args lookup_cmd argument. Verify that the
2698 aliased_command has no default args.
2699 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2700 (lookup_cmd_1, lookup_cmd): New argument default_args.
2701 (add_alias_cmd):
2702 Add NULL for new default_args lookup_cmd argument.
2703 (print_help_for_command): Show default args under the layout
2704 alias some_alias = some_aliased_cmd some_alias_default_arg.
2705 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2706 xfree default_args in destructor.
2707 * cli/cli-script.c (process_next_line, do_define_command):
2708 Add NULL for new default_args lookup_cmd argument.
2709 * command.h: Declare new default_args argument in lookup_cmd
2710 and lookup_cmd_1.
2711 * completer.c (complete_line_internal_1):
2712 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2713 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2714 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2715 Likewise.
2716 * infcmd.c (_initialize_infcmd): Likewise.
2717 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2718 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2719 * python/py-param.c (add_setshow_generic): Likewise.
2720 * remote.c (_initialize_remote): Likewise.
2721 * top.c (execute_command): Prepend default_args if command has some.
2722 (set_verbose):
2723 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2724 * tracepoint.c (validate_actionline, encode_actions_1):
2725 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2726
2727 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2728
2729 * jit.c (jit_read_descriptor): Use bool as the return type.
2730 (jit_breakpoint_re_set_internal): Use bool as the return type.
2731 Invert the return value logic; return true if the jit breakpoint
2732 has been successfully initialized.
2733 (jit_inferior_init): Update the call to
2734 jit_breakpoint_re_set_internal.
2735
2736 2020-06-22 Pedro Alves <palves@redhat.com>
2737
2738 PR gdb/25939
2739 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2740 Use the current inferior instead. Don't return
2741 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2742 wait again.
2743 * sol-thread.c (sol_thread_target::wait): Don't reference
2744 inferior_ptid.
2745 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2746 (sol_update_thread_list_callback): Use the current inferior's pid
2747 instead of inferior_ptid.
2748
2749 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2750
2751 * procfs.c: Cleanup many comments.
2752
2753 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2754 (AFTER_WATCHFLAG): Replace by value.
2755
2756 (MAIN_PROC_NAME_FORMAT): Inline ...
2757 (create_procinfo): ... here.
2758
2759 (procfs_debug_inferior): Remove SYS_exec handling.
2760 (syscall_is_exec): Likewise.
2761 (procfs_set_exec_trap): Likewise.
2762
2763 (syscall_is_lwp_exit): Inline in callers.
2764 (syscall_is_exit): Likewise.
2765 (syscall_is_exec): Likewise.
2766 (syscall_is_lwp_create): Likewise.
2767
2768 (invalidate_cache): Remove #if 0 code.
2769
2770 (make_signal_thread_runnable): Remove.
2771 (procfs_target::resume): Remove #if 0 code.
2772
2773 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2774
2775 PR gdb/25939
2776 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2777 call ...
2778 (procfs_target::create_inferior): ... here.
2779
2780 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2781
2782 * exec.c (validate_exec_file): Ensure the build-id is up to
2783 date by calling reopen_exec_file (that checks file timestamp
2784 to decide to re-read the file).
2785
2786 2020-06-18 Pedro Alves <palves@redhat.com>
2787
2788 PR gdb/25412
2789 * gdbthread.h (delete_thread, delete_thread_silent)
2790 (find_thread_ptid): Update comments.
2791 * thread.c (current_thread_): New global.
2792 (is_current_thread): Move higher, and reimplement.
2793 (inferior_thread): Reimplement.
2794 (set_thread_exited): Use bool. Add assertions.
2795 (add_thread_silent): Simplify thread-reuse handling by always
2796 calling delete_thread.
2797 (delete_thread): Remove intro comment.
2798 (find_thread_ptid): Skip exited threads.
2799 (switch_to_thread_no_regs): Write to current_thread_.
2800 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2801 INFERIOR_PTID. Clear current_thread_.
2802
2803 2020-06-18 Pedro Alves <palves@redhat.com>
2804
2805 * aix-thread.c (pd_update): Use switch_to_thread.
2806
2807 2020-06-18 Pedro Alves <palves@redhat.com>
2808
2809 * ravenscar-thread.c (ravenscar_thread_target): Update.
2810 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2811 (ravenscar_thread_target::add_active_thread): ... this. Don't
2812 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2813 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2814
2815 2020-06-18 Pedro Alves <palves@redhat.com>
2816
2817 * nat/windows-nat.c (current_windows_thread): Remove.
2818 * nat/windows-nat.h (current_windows_thread): Remove.
2819 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2820 Adjust.
2821 (display_selectors): Adjust to fetch the current
2822 windows_thread_info based on inferior_ptid.
2823 (fake_create_process): No longer write to current_windows_thread.
2824 (windows_nat_target::get_windows_debug_event):
2825 Don't set inferior_ptid or current_windows_thread.
2826 (windows_nat_target::wait): Adjust to not rely on
2827 current_windows_thread.
2828 (do_initial_windows_stuff): Now a method of windows_nat_target.
2829 Switch to the last_ptid thread.
2830 (windows_nat_target::attach): Adjust.
2831 (windows_nat_target::detach): Use switch_to_no_thread instead of
2832 writing to inferior_ptid directly.
2833 (windows_nat_target::create_inferior): Adjust.
2834
2835 2020-06-18 Pedro Alves <palves@redhat.com>
2836
2837 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2838
2839 2020-06-18 Pedro Alves <palves@redhat.com>
2840
2841 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2842 after creating it, instead of writing to inferior_ptid. Don't
2843 write to inferior_ptid.
2844
2845 2020-06-18 Pedro Alves <palves@redhat.com>
2846
2847 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2848
2849 2020-06-18 Pedro Alves <palves@redhat.com>
2850
2851 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2852 it, instead of writing to inferior_ptid.
2853
2854 2020-06-18 Pedro Alves <palves@redhat.com>
2855
2856 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2857 to inferior_ptid.
2858
2859 2020-06-18 Pedro Alves <palves@redhat.com>
2860
2861 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2862 instead of writing to inferior_ptid directly.
2863
2864 2020-06-18 Pedro Alves <palves@redhat.com>
2865
2866 * corelow.c (core_target::close): Use switch_to_no_thread instead
2867 of writing to inferior_ptid directly.
2868 (add_to_thread_list, core_target_open): Use switch_to_thread
2869 instead of writing to inferior_ptid directly.
2870
2871 2020-06-18 Pedro Alves <palves@redhat.com>
2872
2873 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2874 inferior_ptid.
2875 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2876 inferior_ptid.
2877 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2878 inferior_ptid directly.
2879 (darwin_nat_target::init_thread_list): Switch to thread, instead
2880 of writing to inferior_ptid.
2881 (darwin_nat_target::attach): Don't write to inferior_ptid.
2882 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2883
2884 2020-06-18 Pedro Alves <palves@redhat.com>
2885
2886 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2887 thread.
2888 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2889 Instead use switch_to_thread.
2890 (gnu_nat_target::detach): Use switch_to_no_thread
2891 instead of writing to inferior_ptid directly. Used passed-in
2892 inferior instead of looking up the inferior by pid.
2893
2894 2020-06-18 Pedro Alves <palves@redhat.com>
2895
2896 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2897 inferior_ptid.
2898
2899 2020-06-18 Pedro Alves <palves@redhat.com>
2900
2901 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2902 inferior_ptid.
2903 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2904 thread.
2905 (nto_procfs_target::detach): Avoid referencing
2906 inferior_ptid. Use switch_to_no_thread instead of writing to
2907 inferior_ptid directly.
2908 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2909 instead of writing to inferior_ptid directly.
2910 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2911 to thread.
2912
2913 2020-06-18 Pedro Alves <palves@redhat.com>
2914
2915 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2916 after creating it, instead of writing to inferior_ptid.
2917 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2918 to inferior_ptid directly.
2919 (gdbsim_target::wait): Don't write to inferior_ptid.
2920
2921 2020-06-18 Pedro Alves <palves@redhat.com>
2922
2923 * remote.c (remote_target::remote_notice_new_inferior): Use
2924 switch_to_thread instead of writing to inferior_ptid directly.
2925 (remote_target::add_current_inferior_and_thread): Use
2926 switch_to_no_thread instead of writing to inferior_ptid directly.
2927 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2928 and switch_to_thread instead of using set_current_inferior or
2929 writing to inferior_ptid directly.
2930
2931 2020-06-18 Pedro Alves <palves@redhat.com>
2932
2933 * tracectf.c (ctf_target_open): Switch to added thread instead of
2934 writing to inferior_ptid directly.
2935 (ctf_target::close): Use switch_to_no_thread instead of writing to
2936 inferior_ptid directly.
2937
2938 2020-06-18 Pedro Alves <palves@redhat.com>
2939
2940 * tracefile-tfile.c (tfile_target_open): Don't write to
2941 inferior_ptid directly, instead switch to added thread.
2942 (tfile_target::close): Use switch_to_no_thread instead of writing
2943 to inferior_ptid directly.
2944
2945 2020-06-18 Pedro Alves <palves@redhat.com>
2946
2947 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2948 (procfs_target::detach): Use switch_to_no_thread
2949 instead of writing to inferior_ptid directly.
2950 (do_attach): Change return type to void. Switch to the added
2951 thread.
2952 (procfs_target::create_inferior): Switch to the added thread.
2953 (procfs_do_thread_registers): Don't write to inferior_ptid.
2954
2955 2020-06-18 Pedro Alves <palves@redhat.com>
2956
2957 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2958 of writing to inferior_ptid.
2959 (scoped_restore_exited_inferior): Delete.
2960 (handle_vfork_child_exec_or_exit): Simplify using
2961 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2962 instead of writing to inferior_ptid.
2963 (THREAD_STOPPED_BY): Delete.
2964 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2965 (thread_stopped_by_hw_breakpoint): Delete.
2966 (save_waitstatus): Use
2967 scoped_restore_current_thread+switch_to_thread, and call
2968 target_stopped_by_watchpoint instead of
2969 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2970 instead of thread_stopped_by_sw_breakpoint, and
2971 target_stopped_by_hw_breakpoint instead of
2972 thread_stopped_by_hw_breakpoint.
2973 (handle_inferior_event)
2974 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2975 inferior_ptid directly, nor
2976 set_current_inferior/set_current_program_space. Use
2977 switch_to_thread / switch_to_inferior_no_thread instead.
2978
2979 2020-06-18 Pedro Alves <palves@redhat.com>
2980
2981 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2982 instead of writing to inferior_ptid.
2983
2984 2020-06-18 Pedro Alves <palves@redhat.com>
2985
2986 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2987 added thread.
2988 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2989 to the added thread.
2990 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2991 instead of writing to inferior_ptid.
2992
2993 2020-06-18 Pedro Alves <palves@redhat.com>
2994
2995 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2996 (register_to_value_test): Mock a program_space too. Heap-allocate
2997 the address space. Don't write to inferior_ptid. Use
2998 switch_to_thread instead.
2999
3000 2020-06-18 Pedro Alves <palves@redhat.com>
3001
3002 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3003 Delete.
3004 (find_signalled_thread()): New, factored out from
3005 linux_make_corefile_notes and adjusted to handle exited threads.
3006 (linux_make_corefile_notes): Adjust to use the new
3007 find_signalled_thread.
3008
3009 2020-06-18 Pedro Alves <palves@redhat.com>
3010
3011 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3012 of saving/restoring inferior_ptid.
3013
3014 2020-06-17 Tom Tromey <tom@tromey.com>
3015
3016 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3017 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3018 declare.
3019 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3020
3021 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3022
3023 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3024 of partial symtabs.
3025
3026 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3027
3028 * regformats/reg-arm.dat: Remove.
3029 * regformats/reg-bfin.dat: Remove.
3030 * regformats/reg-cris.dat: Remove.
3031 * regformats/reg-crisv32.dat: Remove.
3032 * regformats/reg-m32r.dat: Remove.
3033 * regformats/reg-tilegx.dat: Remove.
3034 * regformats/reg-tilegx32.dat: Remove.
3035
3036 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3037
3038 * features/Makefile (WHICH): Remove arm files.
3039 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3040 * regformats/arm/arm-with-neon.dat: Remove.
3041 * regformats/arm/arm-with-vfpv2.dat: Remove.
3042 * regformats/arm/arm-with-vfpv3.dat: Remove.
3043
3044 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * features/Makefile (XMLTOC): Remove rx.xml.
3047
3048 2020-06-17 Pedro Alves <palves@redhat.com>
3049
3050 * gdbthread.h (thread_control_state) <trap_expected> Update
3051 comments.
3052
3053 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3054
3055 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3056 ada_language::lookup_symbol_nonlocal.
3057 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3058 (ada_language::lookup_symbol_nonlocal): New member function,
3059 implementation from ada_lookup_symbol_nonlocal.
3060 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3061 initializer.
3062 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3063 initializer.
3064 (cplus_language::lookup_symbol_nonlocal): New member function.
3065 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3066 (minimal_language_data) Likewise.
3067 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3068 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3069 initializer.
3070 (d_language::lookup_symbol_nonlocal): New member function.
3071 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3072 initializer.
3073 (f_language::lookup_symbol_nonlocal): New member function.
3074 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3075 initializer.
3076 * language.c (unknown_language_data): Likewise.
3077 (auto_language_data): Likewise.
3078 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3079 field.
3080 (language_defn::lookup_symbol_nonlocal): New member function.
3081 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3082 initializer.
3083 * objc-lang.c (objc_language_data): Likewise.
3084 * opencl-lang.c (opencl_language_data): Likewise.
3085 * p-lang.c (pascal_language_data): Likewise.
3086 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3087 rust_language::lookup_symbol_nonlocal.
3088 (rust_language_data): Delete la_lookup_symbol_nonlocal
3089 initializer.
3090 (rust_language::lookup_symbol_nonlocal): New member function,
3091 implementation from rust_lookup_symbol_nonlocal.
3092 * symtab.c (lookup_symbol_aux): Update call to
3093 lookup_symbol_nonlocal.
3094 (basic_lookup_symbol_nonlocal): Rename to...
3095 (language_defn::lookup_symbol_nonlocal): ...this, and update
3096 header comment. Remove language_defn parameter, and replace with
3097 uses of `this'.
3098 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3099
3100 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3101
3102 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3103 initializer.
3104 (ada_language::value_print_inner): New member function.
3105 * c-lang.c (c_language_data): Delete la_value_print_inner
3106 initializer.
3107 (cplus_language_data): Likewise.
3108 (asm_language_data): Likewise.
3109 (minimal_language_data): Likewise.
3110 * d-lang.c (d_language_data): Likewise.
3111 (d_language::value_print_inner): New member function.
3112 * f-lang.c (f_language_data): Delete la_value_print_inner
3113 initializer.
3114 (f_language::value_print_inner): New member function.
3115 * f-lang.h (f_value_print_innner): Rename to...
3116 (f_value_print_inner): ...this (note spelling of 'inner').
3117 * f-valprint.c (f_value_print_innner): Rename to...
3118 (f_value_print_inner): ...this (note spelling of 'inner').
3119 * go-lang.c (go_language_data): Delete la_value_print_inner
3120 initializer.
3121 (go_language::value_print_inner): New member function.
3122 * language.c (language_defn::value_print_inner): Define new member
3123 function.
3124 (unk_lang_value_print_inner): Delete.
3125 (unknown_language_data): Delete la_value_print_inner initializer.
3126 (unknown_language::value_print_inner): New member function.
3127 (auto_language_data): Delete la_value_print_inner initializer.
3128 (auto_language::value_print_inner): New member function.
3129 * language.h (language_data): Delete la_value_print_inner field.
3130 (language_defn::value_print_inner): Delcare new member function.
3131 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3132 initializer.
3133 (m2_language::value_print_inner): New member function.
3134 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3135 initializer.
3136 * opencl-lang.c (opencl_language_data): Likewise.
3137 * p-lang.c (pascal_language_data): Likewise.
3138 (pascal_language::value_print_inner): New member function.
3139 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3140 initializer.
3141 (rust_language::value_print_inner): New member function.
3142 * valprint.c (do_val_print): Update call to value_print_inner.
3143
3144 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * ada-lang.c (ada_language_data): Delete la_value_print
3147 initializer.
3148 (ada_language::value_print): New member function.
3149 * c-lang.c (c_language_data): Delete la_value_print initializer.
3150 (cplus_language_data): Likewise.
3151 (asm_language_data): Likewise.
3152 (minimal_language_data): Likewise.
3153 * d-lang.c (d_language_data): Likewise.
3154 * f-lang.c (f_language_data): Likewise.
3155 * go-lang.c (go_language_data): Likewise.
3156 * language.c (unk_lang_value_print): Delete.
3157 (language_defn::value_print): Define new member function.
3158 (unknown_language_data): Delete la_value_print initializer.
3159 (unknown_language::value_print): New member function.
3160 (auto_language_data): Delete la_value_print initializer.
3161 (auto_language::value_print): New member function.
3162 * language.h (language_data): Delete la_value_print field.
3163 (language_defn::value_print): Declare new member function.
3164 (LA_VALUE_PRINT): Update call to value_print.
3165 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3166 * objc-lang.c (objc_language_data): Likewise.
3167 * opencl-lang.c (opencl_language_data): Likewise.
3168 * p-lang.c (pascal_language_data): Likewise.
3169 (pascal_language::value_print): New member function.
3170 * rust-lang.c (rust_language_data): Delete la_value_print
3171 initializer.
3172
3173 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3174
3175 * ada-lang.c (ada_watch_location_expression): Rename to
3176 ada_language::watch_location_expression.
3177 (ada_language_data): Delete la_watch_location_expression
3178 initializer.
3179 (ada_language::watch_location_expression): New member function,
3180 implementation from ada_watch_location_expression.
3181 * breakpoint.c (watch_command_1): Update call to
3182 watch_location_expression.
3183 * c-lang.c (c_watch_location_expression): Rename to
3184 language_defn::watch_location_expression.
3185 (c_language_data): Delete la_watch_location_expression
3186 initializer.
3187 (cplus_language_data): Likewise.
3188 (asm_language_data): Likewise.
3189 (minimal_language_data): Likewise.
3190 * c-lang.h (c_watch_location_expression): Delete declaration.
3191 * d-lang.c (d_language_data): Delete la_watch_location_expression
3192 initializer.
3193 * f-lang.c (f_language_data): Likewise.
3194 * go-lang.c (go_language_data): Likewise.
3195 * language.c (language_defn::watch_location_expression): Member
3196 function implementation from c_watch_location_expression.
3197 (unknown_language_data): Delete la_watch_location_expression
3198 initializer.
3199 (auto_language_data): Likewise.
3200 * language.h (language_data): Delete la_watch_location_expression
3201 field.
3202 (language_defn::watch_location_expression): Declare new member
3203 function.
3204 * m2-lang.c (m2_language_data): Delete
3205 la_watch_location_expression initializer.
3206 * objc-lang.c (objc_language_data): Likewise.
3207 * opencl-lang.c (opencl_language_data): Likewise.
3208 * p-lang.c (pascal_language_data): Likewise.
3209 * rust-lang.c (rust_watch_location_expression): Rename to
3210 rust_language::watch_location_expression.
3211 (rust_language_data): Delete la_watch_location_expression
3212 initializer.
3213 (rust_language::watch_location_expression): New member function,
3214 implementation from rust_watch_location_expression.
3215
3216 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3219 ada_language::collect_symbol_completion_matches.
3220 (ada_language_data): Delete la_collect_symbol_completion_matches
3221 initializer.
3222 (ada_language::collect_symbol_completion_matches): New member
3223 function, implementation from
3224 ada_collect_symbol_completion_matches.
3225 * c-lang.c (c_language_data): Delete
3226 la_collect_symbol_completion_matches initializer.
3227 (cplus_language_data): Likewise.
3228 (asm_language_data): Likewise.
3229 (minimal_language_data): Likewise.
3230 * d-lang.c (d_language_data): Likewise.
3231 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3232 f_language::collect_symbol_completion_matches.
3233 (f_language_data): Delete la_collect_symbol_completion_matches
3234 initializer.
3235 (f_language::collect_symbol_completion_matches) New member
3236 function, implementation from f_collect_symbol_completion_matches.
3237 * go-lang.c (go_language_data): Delete
3238 la_collect_symbol_completion_matches initializer.
3239 * language.c (unknown_language_data): Likewise.
3240 (auto_language_data): Likewise.
3241 * language.h (language_data): Delete
3242 la_collect_symbol_completion_matches field.
3243 (language_defn::collect_symbol_completion_matches): New member
3244 function.
3245 * m2-lang.c (m2_language_data): Delete
3246 la_collect_symbol_completion_matches initializer.
3247 * objc-lang.c (objc_language_data): Likewise.
3248 * opencl-lang.c (opencl_language_data): Likewise.
3249 * p-lang.c (pascal_language_data): Likewise.
3250 * rust-lang.c (rust_language_data): Likewise.
3251 * symtab.c (default_collect_symbol_completion_matches): Delete.
3252 (collect_symbol_completion_matches): Update call to
3253 collect_symbol_completion_matches.
3254 (collect_symbol_completion_matches_type): Likewise.
3255 * symtab.h (default_collect_symbol_completion_matches): Delete
3256 declaration.
3257
3258 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3259
3260 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3261 (ada_language_data): Delete la_word_break_characters initializer.
3262 (ada_language::word_break_characters): New member function.
3263 * c-lang.c (c_language_data): Delete la_word_break_characters
3264 initializer.
3265 (cplus_language_data): Likewise.
3266 (asm_language_data): Likewise.
3267 (minimal_language_data): Likewise.
3268 * completer.c: Update global comment.
3269 (advance_to_expression_complete_word_point): Update call to
3270 word_break_characters.
3271 (complete_files_symbols): Likewise.
3272 (complete_line_internal_1): Likewise.
3273 (default_completer_handle_brkchars): Likewise.
3274 (skip_quoted_chars): Likewise.
3275 * d-lang.c (d_language_data): Delete la_word_break_characters
3276 initializer.
3277 * f-lang.c (f_word_break_characters): Delete.
3278 (f_language_data): Delete la_word_break_characters initializer.
3279 (f_language::word_break_characters): New member function.
3280 * go-lang.c (go_language_data): Delete la_word_break_characters
3281 initializer.
3282 * language.c (unknown_language_data): Likewise.
3283 (auto_language_data): Likewise.
3284 * language.h (default_word_break_characters): Move declaration to
3285 earlier in the file.
3286 (language_data): Delete la_word_break_characters field.
3287 (language_defn::word_break_characters): New member function.
3288 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3289 initializer.
3290 * objc-lang.c (objc_language_data): Likewise.
3291 * opencl-lang.c (opencl_language_data): Likewise.
3292 * p-lang.c (pascal_language_data): Likewise.
3293 * rust-lang.c (rust_language_data): Likewise.
3294
3295 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3298 (ada_language_data): Delete la_get_symbol_name_matcher
3299 initializer.
3300 (language_defn::get_symbol_name_matcher_inner): New member
3301 function.
3302 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3303 initializer.
3304 (cplus_language_data): Likewise.
3305 (cplus_language::get_symbol_name_matcher_inner): New member
3306 function.
3307 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3308 (minimal_language_data): Likewise.
3309 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3310 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3311 initializer.
3312 * dictionary.c (iter_match_first_hashed): Update call to
3313 get_symbol_name_matcher.
3314 (iter_match_next_hashed): Likewise.
3315 (iter_match_next_linear): Likewise.
3316 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3317 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3318 initializer.
3319 (f_language::get_symbol_name_matcher_inner): New member function.
3320 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3321 initializer.
3322 * language.c (default_symbol_name_matcher): Update header comment,
3323 make static.
3324 (language_defn::get_symbol_name_matcher): New definition.
3325 (language_defn::get_symbol_name_matcher_inner): Likewise.
3326 (get_symbol_name_matcher): Delete.
3327 (unknown_language_data): Delete la_get_symbol_name_matcher
3328 initializer.
3329 (auto_language_data): Likewise.
3330 * language.h (language_data): Delete la_get_symbol_name_matcher
3331 field.
3332 (language_defn::get_symbol_name_matcher): New member function.
3333 (language_defn::get_symbol_name_matcher_inner): Likewise.
3334 (default_symbol_name_matcher): Delete declaration.
3335 * linespec.c (find_methods): Update call to
3336 get_symbol_name_matcher.
3337 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3338 initializer.
3339 * minsyms.c (lookup_minimal_symbol): Update call to
3340 get_symbol_name_matcher.
3341 (iterate_over_minimal_symbols): Likewise.
3342 * objc-lang.c (objc_language_data): Delete
3343 la_get_symbol_name_matcher initializer.
3344 * opencl-lang.c (opencl_language_data): Likewise.
3345 * p-lang.c (pascal_language_data): Likewise.
3346 * psymtab.c (psymbol_name_matches): Update call to
3347 get_symbol_name_matcher.
3348 * rust-lang.c (rust_language_data): Delete
3349 la_get_symbol_name_matcher initializer.
3350 * symtab.c (symbol_matches_search_name): Update call to
3351 get_symbol_name_matcher.
3352 (compare_symbol_name): Likewise.
3353
3354 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3355
3356 * ada-lang.c (ada_language_data): Delete la_compute_program
3357 initializer.
3358 * c-lang.c (c_language_data): Likewise.
3359 (c_language::compute_program): New member function.
3360 (cplus_language_data): Delete la_compute_program initializer.
3361 (cplus_language::compute_program): New member function.
3362 (asm_language_data): Delete la_compute_program initializer.
3363 (minimal_language_data): Likewise.
3364 * c-lang.h (c_compute_program): Update comment.
3365 (cplus_compute_program): Likewise.
3366 * compile/compile-c-support.c (c_compute_program): Likewise.
3367 (cplus_compute_program): Likewise.
3368 * compile/compile.c (compile_to_object): Update call to
3369 la_compute_program.
3370 * d-lang.c (d_language_data): Delete la_compute_program
3371 initializer.
3372 * f-lang.c (f_language_data): Likewise.
3373 * go-lang.c (go_language_data): Likewise.
3374 * language.c (unknown_language_data): Likewise.
3375 (auto_language_data): Likewise.
3376 * language.h (language_data): Delete la_compute_program field.
3377 (language_defn::compute_program): New member function.
3378 * m2-lang.c (m2_language_data): Delete la_compute_program
3379 initializer.
3380 * objc-lang.c (objc_language_data): Likewise.
3381 * opencl-lang.c (opencl_language_data): Likewise.
3382 * p-lang.c (pascal_language_data): Likewise.
3383 * rust-lang.c (rust_language_data): Likewise.
3384
3385 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * ada-lang.c (ada_language_data) Delete
3388 la_class_name_from_physname initializer.
3389 * c-lang.c (c_language_data): Likewise.
3390 (cplus_language_data): Likewise.
3391 (cplus_language::class_name_from_physname): New member function.
3392 (asm_language_data): Delete la_class_name_from_physname
3393 initializer.
3394 (minimal_language_data): Likewise.
3395 * d-lang.c (d_language_data): Likewise.
3396 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3397 method on language_defn class.
3398 (guess_full_die_structure_name): Likewise.
3399 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3400 initializer.
3401 * go-lang.c (go_language_data): Likewise.
3402 * language.c (language_class_name_from_physname): Delete.
3403 (unk_lang_class_name): Delete.
3404 (unknown_language_data): Delete la_class_name_from_physname
3405 initializer.
3406 (auto_language_data): Likewise.
3407 * language.h (language_data): Delete la_class_name_from_physname
3408 field.
3409 (language_defn::class_name_from_physname): New function.
3410 (language_class_name_from_physname): Delete declaration.
3411 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3412 initializer.
3413 * objc-lang.c (objc_language_data): Likewise.
3414 * opencl-lang.c (opencl_language_data): Likewise.
3415 * p-lang.c (pascal_language_data): Likewise.
3416 * rust-lang.c (rust_language_data): Likewise.
3417
3418 2020-06-16 Tom Tromey <tom@tromey.com>
3419
3420 * tui/tui-data.h (STATUS_NAME): New macro.
3421 * tui/tui-layout.c (tui_remove_some_windows)
3422 (initialize_known_windows, tui_register_window)
3423 (tui_layout_split::remove_windows, initialize_layouts)
3424 (tui_new_layout_command): Don't use hard-coded window names.
3425
3426 2020-06-16 Tom Tromey <tom@tromey.com>
3427
3428 PR tui/25348:
3429 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3430 tui_initialize_readline. Only run once. Call rl_initialize.
3431 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3432 tui_initialize_readline.
3433 * tui/tui-io.c (tui_setup_io): Call
3434 tui_ensure_readline_initialized.
3435 * tui/tui-interp.c (tui_interp::init): Update.
3436
3437 2020-06-16 Tom Tromey <tom@tromey.com>
3438
3439 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3440 Also preserve the status window.
3441
3442 2020-06-16 Tom Tromey <tom@tromey.com>
3443
3444 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3445 where m_window==nullptr.
3446
3447 2020-06-15 Tom Tromey <tromey@adacore.com>
3448
3449 * windows-nat.c (windows_nat::handle_output_debug_string):
3450 Update.
3451 (windows_nat::handle_ms_vc_exception): Update.
3452 * target.h (target_read_string): Change API.
3453 * target.c (target_read_string): Change API.
3454 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3455 Update.
3456 * solib-frv.c (frv_current_sos): Update.
3457 * solib-dsbt.c (dsbt_current_sos): Update.
3458 * solib-darwin.c (darwin_current_sos): Update.
3459 * linux-thread-db.c (inferior_has_bug): Update.
3460 * expprint.c (print_subexp_standard): Update.
3461 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3462 (ada_exception_message_1): Update.
3463
3464 2020-06-15 Tom Tromey <tromey@adacore.com>
3465
3466 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3467
3468 2020-06-15 Tom Tromey <tromey@adacore.com>
3469
3470 * valprint.c (read_string): Update comment.
3471 * target.c (MIN): Remove.
3472 (target_read_string): Rewrite.
3473
3474 2020-06-15 Tom Tromey <tromey@adacore.com>
3475
3476 * corefile.c (read_memory_string): Remove.
3477 * ada-valprint.c (ada_value_print_ptr): Update.
3478 * ada-lang.h (ada_tag_name): Change return type.
3479 * ada-lang.c (type_from_tag): Update.
3480 (ada_tag_name_from_tsd): Change return type. Use
3481 target_read_string.
3482 (ada_tag_name): Likewise.
3483 * gdbcore.h (read_memory_string): Don't declare.
3484
3485 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3486
3487 * symtab.c (rbreak_command): Ignore Windows drive colon.
3488
3489 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3490
3491 * NEWS: Mention removed GDBserver host support.
3492
3493 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3494
3495 * features/riscv/rebuild-csr-xml.sh: Updated.
3496
3497 2020-06-11 Tom Tromey <tom@tromey.com>
3498
3499 PR gdb/18318:
3500 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3501
3502 2020-06-09 Jonny Grant <jg@jguk.org>
3503 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3504
3505 * main.c (captured_main_1): Don't print new line after help.
3506 (print_gdb_help): add mailing list and IRC channel information
3507 to --help. Add new lines between items in the footer. Remove
3508 quotes around bug url.
3509
3510 2020-06-11 Keith Seitz <keiths@redhat.com>
3511
3512 PR gdb/21356
3513 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3514 Resolve typedefs for type length calculations.
3515
3516 2020-06-10 Tom de Vries <tdevries@suse.de>
3517
3518 PR ada/24713
3519 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3520 (write_psymbols): Enable .gdb_index for ada.
3521 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3522 ada.
3523
3524 2020-06-10 Tom de Vries <tdevries@suse.de>
3525
3526 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3527 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3528 namei" instead of "const char *name" argument.
3529 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3530 dw2_symtab_iter_init.
3531
3532 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3533
3534 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3535 to use type::field and field::type instead.
3536
3537 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3538
3539 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3540 to use field::type instead.
3541
3542 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3543
3544 * gdbtypes.h (struct field) <type, set_type>: New methods.
3545 Rename `type` field to...
3546 <m_type>: ... this. Change references throughout to use type or
3547 set_type methods.
3548 (FIELD_TYPE): Use field::type. Change call sites that modify
3549 the field's type to use field::set_type instead.
3550
3551 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3554 to use type::index_type instead.
3555
3556 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3557
3558 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3559 methods.
3560 (TYPE_INDEX_TYPE): Use type::index_type.
3561 * gdbtypes.c (create_array_type_with_stride): Likewise.
3562
3563 2020-06-07 Tom Tromey <tom@tromey.com>
3564
3565 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3566 parameter.
3567 (generic_value_print): Update.
3568
3569 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3570
3571 Revert commit 982a38f60b0.
3572 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3573
3574 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3575
3576 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3577 avoid use after free.
3578
3579 2020-06-05 Tom de Vries <tdevries@suse.de>
3580
3581 * NEWS: Fix typos.
3582
3583 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3584
3585 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3586 the per_bfd object.
3587 (dwarf2_read_debug_names): Likewise.
3588 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3589 object when re-using a per_bfd object with an index.
3590
3591 2020-06-03 Tom de Vries <tdevries@suse.de>
3592
3593 PR symtab/26046
3594 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3595 children for C++.
3596 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3597 DW_TAG_subprogram.
3598
3599 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3600
3601 * ada-lang.c (ada_language_data): Delete skip_trampoline
3602 initializer.
3603 * c-lang.c (c_language_data): Likewise.
3604 (cplus_language_data): Likewise.
3605 (cplus_language::skip_trampoline): New member function.
3606 (asm_language_data): Delete skip_trampoline initializer.
3607 (minimal_language_data): Likewise.
3608 * d-lang.c (d_language_data): Likewise.
3609 * f-lang.c (f_language_data): Likewise.
3610 * go-lang.c (go_language_data): Likewise.
3611 * language.c (unk_lang_trampoline): Delete function.
3612 (skip_language_trampoline): Update.
3613 (unknown_language_data): Delete skip_trampoline initializer.
3614 (auto_language_data): Likewise.
3615 * language.h (language_data): Delete skip_trampoline field.
3616 (language_defn::skip_trampoline): New function.
3617 * m2-lang.c (m2_language_data): Delete skip_trampoline
3618 initializer.
3619 * objc-lang.c (objc_skip_trampoline): Delete function, move
3620 implementation to objc_language::skip_trampoline.
3621 (objc_language_data): Delete skip_trampoline initializer.
3622 (objc_language::skip_trampoline): New member function with
3623 implementation from objc_skip_trampoline.
3624 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3625 initializer.
3626 * p-lang.c (pascal_language_data): Likewise.
3627 * rust-lang.c (rust_language_data): Likewise.
3628
3629 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3630
3631 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3632 (ada_language::demangle): New member function.
3633 * c-lang.c (c_language_data): Delete la_demangle initializer.
3634 (cplus_language_data): Delete la_demangle initializer.
3635 (cplus_language::demangle): New member function.
3636 (asm_language_data): Delete la_demangle initializer.
3637 (minimal_language_data): Delete la_demangle initializer.
3638 * d-lang.c (d_language_data): Delete la_demangle initializer.
3639 (d_language::demangle): New member function.
3640 * f-lang.c (f_language_data): Delete la_demangle initializer.
3641 (f_language::demangle): New member function.
3642 * go-lang.c (go_language_data): Delete la_demangle initializer.
3643 (go_language::demangle): New member function.
3644 * language.c (language_demangle): Update.
3645 (unk_lang_demangle): Delete.
3646 (unknown_language_data): Delete la_demangle initializer.
3647 (unknown_language::demangle): New member function.
3648 (auto_language_data): Delete la_demangle initializer.
3649 (auto_language::demangle): New member function.
3650 * language.h (language_data): Delete la_demangle field.
3651 (language_defn::demangle): New function.
3652 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3653 * objc-lang.c (objc_language_data): Delete la_demangle
3654 initializer.
3655 (objc_language::demangle): New member function.
3656 * opencl-lang.c (opencl_language_data): Delete la_demangle
3657 initializer.
3658 * p-lang.c (pascal_language_data): Likewise.
3659 * rust-lang.c (rust_language_data): Likewise.
3660 (rust_language::demangle): New member function.
3661
3662 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3663
3664 * ada-lang.c (ada_language_data): Delete la_print_type
3665 initializer.
3666 (ada_language::print_type): New member function.
3667 * c-lang.c (c_language_data): Delete la_print_type initializer.
3668 (c_language::print_type): New member function.
3669 (cplus_language_data): Delete la_print_type initializer.
3670 (cplus_language::print_type): New member function.
3671 (asm_language_data): Delete la_print_type initializer.
3672 (asm_language::print_type): New member function.
3673 (minimal_language_data): Delete la_print_type initializer.
3674 (minimal_language::print_type): New member function.
3675 * d-lang.c (d_language_data): Delete la_print_type initializer.
3676 (d_language::print_type): New member function.
3677 * f-lang.c (f_language_data): Delete la_print_type initializer.
3678 (f_language::print_type): New member function.
3679 * go-lang.c (go_language_data): Delete la_print_type initializer.
3680 (go_language::print_type): New member function.
3681 * language.c (unk_lang_print_type): Delete.
3682 (unknown_language_data): Delete la_print_type initializer.
3683 (unknown_language::print_type): New member function.
3684 (auto_language_data): Delete la_print_type initializer.
3685 (auto_language::print_type): New member function.
3686 * language.h (language_data): Delete la_print_type field.
3687 (language_defn::print_type): New function.
3688 (LA_PRINT_TYPE): Update.
3689 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3690 (m2_language::print_type): New member function.
3691 * objc-lang.c (objc_language_data): Delete la_print_type
3692 initializer.
3693 (objc_language::print_type): New member function.
3694 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3695 to opencl_language::print_type.
3696 (opencl_language_data): Delete la_print_type initializer.
3697 (opencl_language::print_type): New member function, implementation
3698 from opencl_print_type.
3699 * p-lang.c (pascal_language_data): Delete la_print_type
3700 initializer.
3701 (pascal_language::print_type): New member function.
3702 * rust-lang.c (rust_print_type): Delete, implementation moved to
3703 rust_language::print_type.
3704 (rust_language_data): Delete la_print_type initializer.
3705 (rust_language::print_type): New member function, implementation
3706 from rust_print_type.
3707
3708 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3709
3710 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3711 implementation moves to...
3712 (ada_language::sniff_from_mangled_name): ...here. Update return
3713 type.
3714 (ada_language_data): Delete la_sniff_from_mangled_name
3715 initializer.
3716 * c-lang.c (c_language_data): Likewise.
3717 (cplus_language_data): Likewise.
3718 (cplus_language::sniff_from_mangled_name): New member function,
3719 implementation taken from gdb_sniff_from_mangled_name.
3720 (asm_language_data): Delete la_sniff_from_mangled_name
3721 initializer.
3722 (minimal_language_data): Likewise.
3723 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3724 implementation moves to cplus_language::sniff_from_mangled_name.
3725 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3726 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3727 moves to...
3728 (d_language::sniff_from_mangled_name): ...here.
3729 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3730 * f-lang.c (f_language_data): Likewise.
3731 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3732 moves to...
3733 (go_language::sniff_from_mangled_name): ...here.
3734 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3735 * language.c (language_sniff_from_mangled_name): Delete.
3736 (unknown_language_data): Delete la_sniff_from_mangled_name
3737 initializer.
3738 (auto_language_data): Likewise.
3739 * language.h (language_data): Delete la_sniff_from_mangled_name
3740 field.
3741 (language_defn::sniff_from_mangled_name): New function.
3742 (language_sniff_from_mangled_name): Delete declaration.
3743 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3744 field.
3745 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3746 implementation moves to...
3747 (objc_language::sniff_from_mangled_name): ...here.
3748 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3749 * opencl-lang.c (opencl_language_data): Likewise.
3750 * p-lang.c (pascal_language_data): Likewise.
3751 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3752 implementation moves to...
3753 (rust_language::sniff_from_mangled_name): ...here.
3754 (rust_language_data): Delete la_sniff_from_mangled_name
3755 initializer.
3756 * symtab.c (symbol_find_demangled_name): Call
3757 sniff_from_mangled_name member function.
3758
3759 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3760
3761 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3762 initializer.
3763 * c-lang.c (c_language_data): Likewise.
3764 (cplus_language_data): Likewise.
3765 (cplus_language::search_name_hash): New member function.
3766 (asm_language_data): Delete la_search_name_hash initializer.
3767 (minimal_language_data): Likewise.
3768 * d-lang.c (d_language_data): Likewise.
3769 * dictionary.c (default_search_name_hash): Rename to...
3770 (language_defn::search_name_hash): ...this.
3771 * f-lang.c (f_language_data): Likewise.
3772 (f_language::search_name_hash): New member function.
3773 * go-lang.c (go_language_data): Delete la_search_name_hash
3774 initializer.
3775 * language.c (unknown_language_data): Likewise.
3776 (auto_language_data): Likewise.
3777 * language.h (struct language_data): Delete la_search_name_hash
3778 field.
3779 (language_defn::search_name_hash): Declare new member function.
3780 (default_search_name_hash): Delete declaration.
3781 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3782 initializer.
3783 * objc-lang.c (objc_language_data): Likewise.
3784 * opencl-lang.c (opencl_language_data): Likewise.
3785 * p-lang.c (pascal_language_data): Likewise.
3786 * rust-lang.c (rust_language_data): Likewise.
3787 * symtab.c (search_name_hash): Update call.
3788
3789 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3790
3791 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3792 initializer.
3793 * c-lang.c (class compile_instance): Declare.
3794 (c_language_data): Delete la_get_compile_instance initializer.
3795 (c_language::get_compile_instance): New member function.
3796 (cplus_language_data): Delete la_get_compile_instance initializer.
3797 (cplus_language::get_compile_instance): New member function.
3798 (asm_language_data): Delete la_get_compile_instance initializer.
3799 (minimal_language_data): Likewise.
3800 * c-lang.h (c_get_compile_context): Update comment.
3801 (cplus_get_compile_context): Update comment.
3802 * compile/compile.c (compile_to_object): Update calls, don't rely
3803 on function pointer being NULL.
3804 * d-lang.c (d_language_data): Delete la_get_compile_instance
3805 initializer.
3806 * f-lang.c (f_language_data): Likewise.
3807 * go-lang.c (go_language_data): Likewise.
3808 * language.c (unknown_language_data): Likewise.
3809 (auto_language_data): Likewise.
3810 * language.h (language_data): Delete la_get_compile_instance field.
3811 (language_defn::get_compile_instance): New member function.
3812 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3813 initializer.
3814 * objc-lang.c (objc_language_data): Likewise.
3815 * opencl-lang.c (opencl_language_data): Likewise.
3816 * p-lang.c (pascal_language_data): Likewise.
3817 * rust-lang.c (rust_language_data): Likewise.
3818
3819 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * ada-lang.c (ada_add_all_symbols): Update comment.
3822 (ada_iterate_over_symbols): Delete, move implementation to...
3823 (ada_language::iterate_over_symbols): ...here, a new member
3824 function, rewrite to use range based for loop.
3825 (ada_language_data): Delete la_iterate_over_symbols initializer.
3826 * c-lang.c (c_language_data): Likewise.
3827 (cplus_language_data): Likewise.
3828 (asm_language_data): Likewise.
3829 (minimal_language_data): Likewise.
3830 * d-lang.c (d_language_data): Likewise.
3831 * f-lang.c (f_language_data): Likewise.
3832 * go-lang.c (go_language_data): Likewise.
3833 * language.c (unknown_language_data): Likewise.
3834 (auto_language_data): Likewise.
3835 * language.h (language_data): Delete la_iterate_over_symbols field.
3836 (language_defn::iterate_over_symbols): New member function.
3837 (LA_ITERATE_OVER_SYMBOLS): Update.
3838 * linespec.c (iterate_over_all_matching_symtabs): Update.
3839 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3840 initializer.
3841 * objc-lang.c (objc_language_data): Likewise.
3842 * opencl-lang.c (opencl_language_data): Likewise.
3843 * p-lang.c (pascal_language_data): Likewise.
3844 * rust-lang.c (rust_language_data): Likewise.
3845
3846 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3847
3848 * ada-lang.c (ada_language_data): Delete
3849 la_lookup_transparent_type initializer.
3850 * c-lang.c (c_language_data): Likewise.
3851 (cplus_language_data): Likewise.
3852 (cplus_language::lookup_transparent_type): New member function.
3853 (asm_language_data): Delete la_lookup_transparent_type
3854 initializer.
3855 (minimal_language_data): Likewise.
3856 * d-lang.c (d_language_data): Likewise.
3857 * f-lang.c (f_language_data): Likewise.
3858 * go-lang.c (go_language_data): Likewise.
3859 * language.c (unknown_language_data): Likewise.
3860 (auto_language_data): Likewise.
3861 * language.h (struct language_data): Delete
3862 la_lookup_transparent_type field.
3863 (language_defn::lookup_transparent_type): New member function.
3864 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3865 initializer.
3866 * objc-lang.c (objc_language_data): Likewise.
3867 * opencl-lang.c (opencl_language_data): Likewise.
3868 * p-lang.c (pascal_language_data): Likewise.
3869 * rust-lang.c (rust_language_data): Likewise.
3870 * symtab.c (symbol_matches_domain): Update call.
3871
3872 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3873
3874 * ada-lang.c (ada_language_arch_info): Delete function, move
3875 implementation to...
3876 (ada_language::language_arch_info): ...here, a new member
3877 function.
3878 (ada_language_data): Delete la_language_arch_info.
3879 * c-lang.c (c_language_data): Likewise.
3880 (c_language::language_arch_info): New member function.
3881 (cplus_language_arch_info): Delete function, move
3882 implementation to...
3883 (cplus_language::language_arch_info): ...here, a new member
3884 function.
3885 (cplus_language_data): Delete la_language_arch_info.
3886 (asm_language_data): Likewise.
3887 (asm_language::language_arch_info): New member function.
3888 (minimal_language_data): Delete la_language_arch_info.
3889 (minimal_language::language_arch_info): New member function.
3890 * d-lang.c (d_language_arch_info): Delete function, move
3891 implementation to...
3892 (d_language::language_arch_info): ...here, a new member
3893 function.
3894 (d_language_data): Delete la_language_arch_info.
3895 * f-lang.c (f_language_arch_info): Delete function, move
3896 implementation to...
3897 (f_language::language_arch_info): ...here, a new member
3898 function.
3899 (f_language_data): Delete la_language_arch_info.
3900 * go-lang.c (go_language_arch_info): Delete function, move
3901 implementation to...
3902 (go_language::language_arch_info): ...here, a new member
3903 function.
3904 (go_language_data): Delete la_language_arch_info.
3905 * language.c (unknown_language_data): Likewise.
3906 (unknown_language::language_arch_info): New member function.
3907 (auto_language_data): Delete la_language_arch_info.
3908 (auto_language::language_arch_info): New member function.
3909 (language_gdbarch_post_init): Update call to
3910 la_language_arch_info.
3911 * language.h (language_data): Delete la_language_arch_info
3912 function pointer.
3913 (language_defn::language_arch_info): New function.
3914 * m2-lang.c (m2_language_arch_info): Delete function, move
3915 implementation to...
3916 (m2_language::language_arch_info): ...here, a new member
3917 function.
3918 (m2_language_data): Delete la_language_arch_info.
3919 * objc-lang.c (objc_language_arch_info): Delete function, move
3920 implementation to...
3921 (objc_language::language_arch_info): ...here, a new member
3922 function.
3923 (objc_language_data): Delete la_language_arch_info.
3924 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3925 implementation to...
3926 (opencl_language::language_arch_info): ...here, a new member
3927 function.
3928 (opencl_language_data): Delete la_language_arch_info.
3929 * p-lang.c (pascal_language_arch_info): Delete function, move
3930 implementation to...
3931 (pascal_language::language_arch_info): ...here, a new member
3932 function.
3933 (pascal_language_data): Delete la_language_arch_info.
3934 * rust-lang.c (rust_language_arch_info): Delete function, move
3935 implementation to...
3936 (rust_language::language_arch_info): ...here, a new member
3937 function.
3938 (rust_language_data): Delete la_language_arch_info.
3939
3940 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3941
3942 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3943 initializer.
3944 * c-lang.c (c_language_data): Likewise.
3945 (cplus_language_data): Likewise.
3946 (cplus_language::pass_by_reference_info): New method.
3947 (asm_language_data): Delete la_pass_by_reference initializer.
3948 (minimal_language_data): Likewise.
3949 * cp-abi.c (cp_pass_by_reference): Remove use of
3950 default_pass_by_reference.
3951 * d-lang.c (d_language_data): Likewise.
3952 * f-lang.c (f_language_data): Likewise.
3953 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3954 default_pass_by_reference.
3955 * go-lang.c (go_language_data): Likewise.
3956 * language.c (language_pass_by_reference): Update.
3957 (default_pass_by_reference): Delete.
3958 (unknown_language_data): Delete la_pass_by_reference
3959 initializer.
3960 (auto_language_data): Likewise.
3961 * language.h (struct language_data): Delete la_pass_by_reference
3962 field.
3963 (language_defn::pass_by_reference_info): New member function.
3964 (default_pass_by_reference): Delete declaration.
3965 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3966 initializer.
3967 * objc-lang.c (objc_language_data): Likewise.
3968 * opencl-lang.c (opencl_language_data): Likewise.
3969 * p-lang.c (pascal_language_data): Likewise.
3970 * rust-lang.c (rust_language_data): Likewise.
3971
3972 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * ada-lang.c (ada_read_var_value): Delete function, move
3975 implementation to...
3976 (ada_language::read_var_value): ...here.
3977 (ada_language_data): Delete la_read_var_value initializer.
3978 * c-lang.c (c_language_data): Likewise.
3979 (cplus_language_data): Likewise.
3980 (minimal_language_data): Likewise.
3981 * d-lang.c (d_language_data): Likewise.
3982 * f-lang.c (f_language_data): Likewise.
3983 * findvar.c (default_read_var_value): Rename to...
3984 (language_defn::read_var_value): ...this.
3985 * findvar.c (read_var_value): Update header comment, and change to
3986 call member function instead of function pointer.
3987 * go-lang.c (go_language_data): Likewise.
3988 * language.c (unknown_language_data): Delete la_read_var_value
3989 initializer.
3990 (auto_language_data): Likewise.
3991 * language.h (struct language_data): Delete la_read_var_value
3992 field.
3993 (language_defn::read_var_value): New member function.
3994 (default_read_var_value): Delete declaration.
3995 * m2-lang.c (m2_language_data): Delete la_read_var_value
3996 initializer.
3997 * objc-lang.c (objc_language_data): Likewise.
3998 * opencl-lang.c (opencl_language_data): Likewise.
3999 * p-lang.c (pascal_language_data): Likewise.
4000 * rust-lang.c (rust_language_data): Likewise.
4001 * value.h (default_read_var_value): Delete declaration.
4002
4003 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4004
4005 * ada-lang.c (ada_print_array_index): Delete function, move
4006 implementation to...
4007 (ada_language::print_array_index): ...here.
4008 (ada_language_data): Delete la_print_array_index initializer.
4009 * c-lang.c (c_language_data): Likewise.
4010 (cplus_language_data): Likewise.
4011 (minimal_language_data): Likewise.
4012 * d-lang.c (d_language_data): Likewise.
4013 * f-lang.c (f_language_data): Likewise.
4014 * go-lang.c (go_language_data): Likewise.
4015 * language.c (default_print_array_index): Delete function, move
4016 implementation to...
4017 (language_defn::print_array_index): ...here.
4018 (unknown_language_data): Delete la_print_array_index initializer.
4019 (auto_language_data): Likewise.
4020 * language.h (struct language_data): Delete la_print_array_index
4021 field.
4022 (language_defn::print_array_index): New member function.
4023 (LA_PRINT_ARRAY_INDEX): Update.
4024 (default_print_array_index): Delete declaration.
4025 * m2-lang.c (m2_language_data): Delete la_print_array_index
4026 initializer.
4027 * objc-lang.c (objc_language_data): Likewise.
4028 * opencl-lang.c (opencl_language_data): Likewise.
4029 * p-lang.c (pascal_language_data): Likewise.
4030 * rust-lang.c (rust_language_data): Likewise.
4031
4032 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * gdb/ada-lang.c (ada_language_defn): Convert to...
4035 (ada_language_data): ...this.
4036 (class ada_language): New class.
4037 (ada_language_defn): New static global.
4038 * gdb/c-lang.c (c_language_defn): Convert to...
4039 (c_language_data): ...this.
4040 (class c_language): New class.
4041 (c_language_defn): New static global.
4042 (cplus_language_defn): Convert to...
4043 (cplus_language_data): ...this.
4044 (class cplus_language): New class.
4045 (cplus_language_defn): New static global.
4046 (asm_language_defn): Convert to...
4047 (asm_language_data): ...this.
4048 (class asm_language): New class.
4049 (asm_language_defn): New static global.
4050 (minimal_language_defn): Convert to...
4051 (minimal_language_data): ...this.
4052 (class minimal_language): New class.
4053 (minimal_language_defn): New static global.
4054 * gdb/d-lang.c (d_language_defn): Convert to...
4055 (d_language_data): ...this.
4056 (class d_language): New class.
4057 (d_language_defn): New static global.
4058 * gdb/f-lang.c (f_language_defn): Convert to...
4059 (f_language_data): ...this.
4060 (class f_language): New class.
4061 (f_language_defn): New static global.
4062 * gdb/go-lang.c (go_language_defn): Convert to...
4063 (go_language_data): ...this.
4064 (class go_language): New class.
4065 (go_language_defn): New static global.
4066 * gdb/language.c (unknown_language_defn): Remove declaration.
4067 (current_language): Initialize to nullptr, real initialization is
4068 moved to _initialize_language.
4069 (languages): Delete global.
4070 (language_defn::languages): Define.
4071 (set_language_command): Use language_defn::languages.
4072 (set_language): Likewise.
4073 (range_error): Likewise.
4074 (language_enum): Likewise.
4075 (language_def): Likewise.
4076 (add_set_language_command): Use language_def::languages for the
4077 language list, and language_def to lookup language pointers.
4078 (skip_language_trampoline): Use language_defn::languages.
4079 (unknown_language_defn): Convert to...
4080 (unknown_language_data): ...this.
4081 (class unknown_language): New class.
4082 (unknown_language_defn): New static global.
4083 (auto_language_defn): Convert to...
4084 (auto_language_data): ...this.
4085 (class auto_language): New class.
4086 (auto_language_defn): New static global.
4087 (language_gdbarch_post_init): Use language_defn::languages.
4088 (_initialize_language): Initialize current_language.
4089 * gdb/language.h (struct language_defn): Rename to...
4090 (struct language_data): ...this.
4091 (struct language_defn): New.
4092 (auto_language_defn): Delete.
4093 (unknown_language_defn): Delete.
4094 (minimal_language_defn): Delete.
4095 (ada_language_defn): Delete.
4096 (asm_language_defn): Delete.
4097 (c_language_defn): Delete.
4098 (cplus_language_defn): Delete.
4099 (d_language_defn): Delete.
4100 (f_language_defn): Delete.
4101 (go_language_defn): Delete.
4102 (m2_language_defn): Delete.
4103 (objc_language_defn): Delete.
4104 (opencl_language_defn): Delete.
4105 (pascal_language_defn): Delete.
4106 (rust_language_defn): Delete.
4107 * gdb/m2-lang.c (m2_language_defn): Convert to...
4108 (m2_language_data): ...this.
4109 (class m2_language): New class.
4110 (m2_language_defn): New static global.
4111 * gdb/objc-lang.c (objc_language_defn): Convert to...
4112 (objc_language_data): ...this.
4113 (class objc_language): New class.
4114 (objc_language_defn): New static global.
4115 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4116 (opencl_language_data): ...this.
4117 (class opencl_language): New class.
4118 (opencl_language_defn): New static global.
4119 * gdb/p-lang.c (pascal_language_defn): Convert to...
4120 (pascal_language_data): ...this.
4121 (class pascal_language): New class.
4122 (pascal_language_defn): New static global.
4123 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4124 language pointer, update comment format.
4125 * gdb/rust-lang.c (rust_language_defn): Convert to...
4126 (rust_language_data): ...this.
4127 (class rust_language): New class.
4128 (rust_language_defn): New static global.
4129
4130 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4131
4132 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4133 member variable.
4134 <m_stmt_at_address>: New member variable.
4135 (lnp_state_machine::record_line): Don't record some lines, update
4136 tracking of is_stmt at the same address.
4137 (lnp_state_machine::lnp_state_machine): Initialise new member
4138 variables.
4139
4140 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4141
4142 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4143 "-include gnu-nat-mig.h".
4144 * gnu-nat-mig.h: New file.
4145 * gnu-nat.c: Include "gnu-nat-mig.h".
4146 (exc_server, msg_reply_server, notify_server,
4147 process_reply_server): Remove declarations.
4148
4149 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4150
4151 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4152 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4153 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4154 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4155 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4156 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4157 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4158 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4159 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4160 to gnu_nat_target class.
4161 * gnu-nat.c: Likewise.
4162 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4163 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4164 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4165 object.
4166 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4167 instead of `gnu_target'.
4168
4169 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4170
4171 * i386-gnu-tdep.c: Include "gdbcore.h"
4172 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4173 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4174 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4175 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4176 i386_gnu_sigcontext_addr): New functions
4177 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4178 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4179 tdep.
4180
4181 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4182
4183 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4184 before fork_inferior call. Avoid calling it if target_is_pushed returns
4185 true.
4186
4187 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4188
4189 * gnu-nat.h (gnu_target): New variable declaration.
4190 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4191 gnu_target.
4192 * gnu-nat.c (gnu_target): New variable.
4193 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4194 add_thread_silent, and add_thread calls.
4195 (gnu_nat_target::create_inferior): Pass gnu_target to
4196 add_thread_silent, thread_change_ptid call.
4197 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4198 call.
4199
4200 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4201
4202 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4203 (gnu_nat_target::find_memory_regions): Remove unused
4204 `old_address' variable.
4205
4206 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4207
4208 * gnu-nat.c: Include "gdbarch.h".
4209
4210 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4211
4212 * reply_mig_hack.awk (Error return): Cast function through
4213 void *, to bypass compiler function call check.
4214
4215 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4216
4217 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4218 $(srcdir)/reply_mig_hack.awk.
4219
4220 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4221
4222 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4223
4224 2020-05-30 Jonny Grant <jg@jguk.org>
4225
4226 * configure.ac (ACX_BUGURL): change bug URL to https.
4227
4228 2020-05-30 Pedro Alves <palves@redhat.com>
4229
4230 * cp-support.c (replace_typedefs_template): New.
4231 (replace_typedefs_qualified_name): Handle
4232 DEMANGLE_COMPONENT_TEMPLATE.
4233
4234 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4237 dwarf2/index-cache.h, dwarf2/index-write.c,
4238 dwarf2/index-write.h, dwarf2/line-header.c,
4239 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4240 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4241 variables and fields from `dwarf2_per_objfile` to just
4242 `per_objfile` throughout.
4243
4244 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4245
4246 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4247 <push_dwarf_reg_entry_value>: Add comment.
4248
4249 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4250 Keith Seitz <keiths@redhat.com>
4251
4252 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4253 instead of PyEval_ReleaseLock.
4254 (class gdbpy_gil): Move to earlier in file.
4255 (finalize_python): Set gdb_python_initialized.
4256 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4257 when not initialized.
4258
4259 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4260
4261 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4262 <push_dwarf_reg_entry_value>: Remove assert. Override
4263 per_objfile with caller_per_objfile.
4264
4265 2020-05-28 Tom de Vries <tdevries@suse.de>
4266
4267 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4268 PR gold/15646 workaround to symbol kind "type".
4269
4270 2020-05-27 Tom Tromey <tromey@adacore.com>
4271
4272 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4273
4274 2020-05-27 Tom Tromey <tromey@adacore.com>
4275
4276 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4277 Use htab_find_with_hash.
4278 <add_abbrev>: Remove "abbrev_number" parameter.
4279 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4280 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4281 (hash_abbrev): Add comment.
4282 (abbrev_table::lookup_abbrev): Move to header file.
4283 (abbrev_table::read): Update.
4284
4285 2020-05-27 Tom Tromey <tromey@adacore.com>
4286
4287 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4288 method.
4289 <canonical_name>: New member.
4290 <raw_name>: Rename from "name".
4291 (partial_die_info): Initialize canonical_name.
4292 (scan_partial_symbols): Check raw_name.
4293 (partial_die_parent_scope, partial_die_full_name)
4294 (add_partial_symbol, add_partial_subprogram)
4295 (add_partial_enumeration, load_partial_dies): Use "name" method.
4296 (partial_die_info::name): New method.
4297 (partial_die_info::read, guess_partial_die_structure_name)
4298 (partial_die_info::fixup): Update.
4299
4300 2020-05-27 Tom Tromey <tromey@adacore.com>
4301
4302 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4303 <get_ref_die_offset>: Inline.
4304 <get_ref_die_offset_complaint>: New method.
4305 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4306 (attribute::get_ref_die_offset_complaint): Rename from
4307 get_ref_die_offset. Just issue complaint.
4308
4309 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4310
4311 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4312
4313 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4314
4315 * exec.c (exec_file_attach): Use errno value of first openp failure.
4316
4317 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4318
4319 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4320 Don't close thread handle.
4321
4322 2020-05-27 Tom Tromey <tom@tromey.com>
4323 Simon Marchi <simon.marchi@efficios.com>
4324
4325 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4326 shared_ptr.
4327 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4328 member.
4329 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4330 dwarf2_per_bfd_objfile_data_key>: New globals.
4331 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4332 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4333 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4334 shared.
4335 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4336 short-circuit when sharing.
4337 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4338 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4339
4340 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4341
4342 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4343 to...
4344 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4345 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4346
4347 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4348
4349 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4350 build_name_components, find_name_components_bounds>:
4351 Add per_objfile parameter.
4352 (struct mapped_index) <symbol_name_at>: Likewise.
4353 (struct mapped_debug_names): Remove constructor.
4354 <dwarf2_per_objfile>: Remove field.
4355 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4356 (mapped_index_base::find_name_components_bounds,
4357 mapped_index_base::build_name_components,
4358 dw2_expand_symtabs_matching_symbol): Likewise.
4359 (class mock_mapped_index) <symbol_name_at>: Likewise.
4360 (check_match): Likewise.
4361 (check_find_bounds_finds): Likewise.
4362 (test_mapped_index_find_name_component_bounds): Update.
4363 (CHECK_MATCH): Update.
4364 (dw2_expand_symtabs_matching): Update.
4365 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4366 per_objfile parameter.
4367 <find_vec_in_debug_names>: Likewise.
4368 <m_per_objfile>: New field.
4369 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4370 parameter.
4371 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4372 (dw2_debug_names_iterator::next): Update.
4373 (dw2_debug_names_lookup_symbol): Update.
4374 (dw2_debug_names_expand_symtabs_for_function): Update.
4375 (dw2_debug_names_map_matching_symbols): Update.
4376 (dw2_debug_names_expand_symtabs_matching): Update.
4377 (dwarf2_read_debug_names): Update.
4378
4379 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4380
4381 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4382 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4383 move to dwarf2_per_objfile.
4384 <read_in_chain>: Remove.
4385 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4386 remove_all_cus, age_comp_units>: New methods.
4387 <m_dwarf2_cus>: New member.
4388 (struct dwarf2_per_cu_data) <cu>: Remove.
4389 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4390 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4391 moved to methods of dwarf2_per_objfile.
4392 (dwarf2_clear_marks): Remove.
4393 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4394 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4395 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4396 (dwarf2_per_objfile::remove_all_cus): New.
4397 (class free_cached_comp_units) <~free_cached_comp_units>:
4398 Update.
4399 (load_cu): Update.
4400 (dw2_do_instantiate_symtab): Adjust.
4401 (fill_in_sig_entry_from_dwo_entry): Adjust.
4402 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4403 (cutu_reader::cutu_reader): Likewise.
4404 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4405 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4406 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4407 and dwarf2_per_objfile::age_comp_units.
4408 (load_partial_comp_unit): Update.
4409 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4410 (process_queue): Likewise.
4411 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4412 backlink.
4413 (dwarf2_read_addr_index): Likewise.
4414 (follow_die_offset): Likewise.
4415 (dwarf2_fetch_die_loc_sect_off): Likewise.
4416 (dwarf2_fetch_constant_bytes): Likewise.
4417 (dwarf2_fetch_die_type_sect_off): Likewise.
4418 (follow_die_sig_1): Likewise.
4419 (load_full_type_unit): Likewise.
4420 (read_signatured_type): Likewise.
4421 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4422 (dwarf2_cu::~dwarf2_cu): Remove.
4423 (dwarf2_per_objfile::get_cu): New.
4424 (dwarf2_per_objfile::set_cu): New.
4425 (age_cached_comp_units): Rename to...
4426 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4427 to std::unordered_map.
4428 (free_one_cached_comp_unit): Rename to...
4429 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4430 to std::unordered_map.
4431 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4432 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4433 a dwarf2_per_objfile in data.
4434 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4435 (dwarf2_clear_marks): Remove.
4436
4437 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4440 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4441 (init_tu_and_read_dwo_dies): Likewise.
4442 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4443 (cutu_reader::cutu_reader): Likewise.
4444 (load_partial_comp_unit): Likewise.
4445 (process_psymtab_comp_unit): Update.
4446 (build_type_psymtabs_1): Update.
4447 (process_skeletonless_type_unit): Update.
4448 (load_full_comp_unit): Update.
4449 (find_partial_die): Update.
4450 (dwarf2_read_addr_index): Update.
4451 (read_signatured_type): Update.
4452
4453 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4454
4455 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4456 m_header_read_in>: New fields.
4457 <get_header>: New method.
4458 * dwarf2/read.c (per_cu_header_read_in): Remove.
4459 (dwarf2_per_cu_data::get_header): New.
4460 (dwarf2_per_cu_data::addr_size): Update.
4461 (dwarf2_per_cu_data::offset_size): Update.
4462 (dwarf2_per_cu_data::ref_addr_size): Update.
4463
4464 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4465
4466 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4467 (dw2_do_instantiate_symtab): Update.
4468 (queue_and_load_all_dwo_tus): Change parameter from
4469 dwarf2_per_cu_data to dwarf2_cu.
4470 (dwarf2_fetch_die_loc_sect_off): Update.
4471 (dwarf2_fetch_constant_bytes): Update.
4472 (dwarf2_fetch_die_type_sect_off): Update.
4473
4474 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4475
4476 * dwarf2/read.c (process_full_comp_unit,
4477 process_full_type_unit): Remove per_cu, per_objfile paramters.
4478 Add dwarf2_cu parameter.
4479 (process_queue): Update.
4480
4481 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4482
4483 * dwarf2/read.c (create_cu_from_index_list): Replace
4484 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4485 (create_cus_from_index_list): Likewise.
4486 (create_cus_from_index): Likewise.
4487 (create_signatured_type_table_from_index): Likewise.
4488 (create_cus_from_debug_names_list): Likewise.
4489 (create_cus_from_debug_names): Likewise.
4490 (dwarf2_read_gdb_index): Update.
4491 (dwarf2_read_debug_names): Update.
4492
4493 2020-05-27 Tom Tromey <tom@tromey.com>
4494 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * dwarf2/read.h (struct dwarf2_per_objfile)
4497 <get_type_for_signatured_type, set_type_for_signatured_type>:
4498 New methods.
4499 <m_type_map>: New member.
4500 (struct signatured_type) <type>: Remove.
4501 * dwarf2/read.c
4502 (dwarf2_per_objfile::get_type_for_signatured_type,
4503 dwarf2_per_objfile::set_type_for_signatured_type): New.
4504 (get_signatured_type): Use new methods.
4505
4506 2020-05-27 Tom Tromey <tom@tromey.com>
4507 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4510 (struct dwarf2_per_objfile) <type_units>: New member.
4511 <get_type_unit_group_unshareable>: New method.
4512 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4513 num_symtabs, symtabs>: Remove; move to
4514 type_unit_group_unshareable.
4515 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4516 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4517 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4518
4519 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4520
4521 * dwarf2/read.h (struct dwarf2_per_cu_data):
4522 <dwarf2_per_objfile>: Remove.
4523 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4524 dwarf2_per_objfile.
4525 (create_signatured_type_table_from_index): Likewise.
4526 (create_signatured_type_table_from_debug_names): Likewise.
4527 (create_debug_type_hash_table): Likewise.
4528 (fill_in_sig_entry_from_dwo_entry): Likewise.
4529 (create_type_unit_group): Likewise.
4530 (read_comp_units_from_section): Likewise.
4531 (create_cus_hash_table): Likewise.
4532
4533 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4536 dwarf2_per_cu_data::dwarf2_per_objfile.
4537 (compute_compunit_symtab_includes): Likewise.
4538 (dwarf2_cu::start_symtab): Likewise.
4539
4540 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4541
4542 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4543 parameter.
4544 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4545 (read_namespace_alias): Update.
4546 (lookup_die_type): Update.
4547 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4548 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4549 Update.
4550 (disassemble_dwarf_expression): Update.
4551
4552 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4553
4554 * dwarf2/read.h (struct dwarf2_queue_item): Add
4555 dwarf2_per_objfile parameter, assign new parameter.
4556 <per_objfile>: New field.
4557 * dwarf2/read.c (free_one_cached_comp_unit): Add
4558 dwarf2_per_objfile parameter.
4559 (queue_comp_unit): Likewise.
4560 (dw2_do_instantiate_symtab): Update.
4561 (process_psymtab_comp_unit): Update.
4562 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4563 (process_imported_unit_die): Update.
4564 (queue_and_load_dwo_tu): Update.
4565 (follow_die_offset): Update.
4566 (follow_die_sig_1): Update.
4567
4568 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4571 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4572 (read_call_site_scope): Assign per_objfile.
4573 (dwarf2_per_cu_data::objfile): Remove.
4574 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4575 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4576 dwarf2_per_objfile parameter.
4577 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4578 dwarf2_per_objfile parameter.
4579 (dwarf_expr_reg_to_entry_parameter): Add output
4580 dwarf2_per_objfile parameter.
4581 (locexpr_get_frame_base): Update.
4582 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4583 <push_dwarf_reg_entry_value>: Update.
4584 <call_site_to_target_addr>: Update.
4585 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4586 parameter.
4587 (value_of_dwarf_reg_entry): Update.
4588 (rw_pieced_value): Update.
4589 (indirect_synthetic_pointer): Update.
4590 (dwarf2_evaluate_property): Update.
4591 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4592 parameter.
4593 (locexpr_read_variable): Update.
4594 (locexpr_get_symbol_read_needs): Update.
4595 (loclist_read_variable): Update.
4596
4597 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4600 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4601 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4602 parameter.
4603 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4604 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4605 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4606 parameter.
4607 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4608 sect_variable_value): Add dwarf2_per_objfile parameter.
4609 (class dwarf_evaluate_loc_desc) <dwarf_call,
4610 dwarf_variable_value>: Update.
4611 (fetch_const_value_from_synthetic_pointer): Add
4612 dwarf2_per_objfile parameter.
4613 (fetch_const_value_from_synthetic_pointer): Update.
4614 (coerced_pieced_ref): Update.
4615 (class symbol_needs_eval_context) <dwarf_call,
4616 dwarf_variable_value>: Update.
4617 (dwarf2_compile_expr_to_ax): Update.
4618
4619 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4622 parameter.
4623 (dwarf2_evaluate_loc_desc_full): Update.
4624
4625 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4628 parameter.
4629 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4630 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4631 dwarf2_per_objfile parameter.
4632 (decode_debug_loc_dwo_addresses): Likewise.
4633 (dwarf2_find_location_expression): Update.
4634 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4635 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4636 parameter.
4637 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4638 parameter.
4639 (locexpr_describe_location_1): Likewise.
4640 (locexpr_describe_location): Update.
4641
4642 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4643
4644 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4645 Remove.
4646 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4647 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4648 (dwarf2_compile_property_to_c): Update.
4649 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4650 use text offset from objfile.
4651 (locexpr_tracepoint_var_ref): Update.
4652 (locexpr_generate_c_location): Update.
4653 (loclist_describe_location): Update.
4654 (loclist_tracepoint_var_ref): Update.
4655 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4656 dwarf2_per_objfile parameter.
4657 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4658 use text offset from objfile.
4659 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4660
4661 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4662
4663 * dwarf2/expr.h (struct dwarf_expr_context)
4664 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4665 <offset>: Remove.
4666 <per_objfile>: New member.
4667 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4668 dwarf2_per_objfile parameter. Don't set offset, set
4669 per_objfile.
4670 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4671 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4672 a dwarf2_per_objfile object instead of an offset.
4673 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4674 constructor.
4675 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4676 to dwarf2_expr_executor constructor. Don't set offset.
4677 (dwarf2_fetch_cfa_info): Update.
4678 (struct dwarf2_frame_cache) <text_offset>: Remove.
4679 <per_objfile>: New field.
4680 (dwarf2_frame_cache): Update.
4681 (dwarf2_frame_prev_register): Update.
4682 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4683 <dwarf_evaluate_loc_desc>: Add constructor.
4684 (dwarf2_evaluate_loc_desc_full): Update.
4685 (dwarf2_locexpr_baton_eval): Update.
4686 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4687 Add constructor.
4688 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4689
4690 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4693 addr_sized_int_type>: Move to dwarf2_cu.
4694 <int_type>: Move to dwarf2_per_objfile.
4695 (struct dwarf2_per_objfile) <int_type>: Move here.
4696 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4697 addr_sized_int_type>: Move here.
4698 (read_func_scope): Update.
4699 (read_array_type): Update.
4700 (read_tag_string_type): Update.
4701 (attr_to_dynamic_prop): Update.
4702 (dwarf2_per_cu_data::int_type): Rename to...
4703 (dwarf2_per_objfile::int_type): ... this.
4704 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4705 (dwarf2_cu::addr_sized_int_type): ... this.
4706 (read_subrange_type): Update.
4707 (dwarf2_per_cu_data::addr_type): Rename to...
4708 (dwarf2_cu::addr_type): ... this.
4709 (set_die_type): Update.
4710
4711 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4712
4713 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4714 data through per_cu->cu.
4715
4716 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4719 dwarf2_per_cu_data parameter fo dwarf2_cu.
4720 (lookup_dwo_type_unit): Likewise.
4721 (read_cutu_die_from_dwo): Likewise.
4722 (lookup_dwo_unit): Likewise.
4723 (open_and_init_dwo_file): Likewise.
4724 (lookup_dwo_cutu): Likewise.
4725 (lookup_dwo_comp_unit): Likewise.
4726 (lookup_dwo_type_unit): Likewise.
4727 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4728 (cutu_reader::cutu_reader): Update.
4729
4730 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4733 parameter.
4734 (process_full_type_unit): Likewise.
4735 (process_queue): Update.
4736
4737 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * dwarf2/read.c (recursively_compute_inclusions): Add
4740 dwarf2_per_objfile parameter.
4741 (compute_compunit_symtab_includes): Likewise.
4742 (process_cu_includes): Update.
4743
4744 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4747 parameter.
4748 (create_type_unit_group): Update.
4749 (process_psymtab_comp_unit_reader): Update.
4750 (build_type_psymtabs_reader): Update.
4751
4752 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4753
4754 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4755 object through m_this_cu->cu.
4756
4757 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4758
4759 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4760 the info parameter.
4761 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4762
4763 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4764
4765 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4766 per_objfile parameter.
4767 (load_full_type_unit): Add per_objfile parameter.
4768 (read_signatured_type): Likewise.
4769 (load_full_comp_unit): Likewise.
4770 (load_cu): Likewise.
4771 (dw2_do_instantiate_symtab): Likewise.
4772 (dw2_get_file_names): Likewise.
4773 (dw2_map_symtabs_matching_filename): Update.
4774 (dw_expand_symtabs_matching_file_matcher): Update.
4775 (dw2_map_symbol_filenames): Update.
4776 (process_psymtab_comp_unit): Add per_objfile parameter.
4777 (build_type_psymtabs_1): Update.
4778 (process_skeletonless_type_unit): Update.
4779 (dwarf2_build_psymtabs_hard): Update.
4780 (load_partial_comp_unit): Add per_objfile parameter.
4781 (scan_partial_symbols): Update.
4782 (load_full_comp_unit): Add per_objfile parameter.
4783 (process_imported_unit_die): Update.
4784 (create_cus_hash_table): Update.
4785 (find_partial_die): Update.
4786 (dwarf2_read_addr_index): Update.
4787 (follow_die_offset): Update.
4788 (dwarf2_fetch_die_loc_sect_off): Update.
4789 (dwarf2_fetch_constant_bytes): Update.
4790 (dwarf2_fetch_die_type_sect_off): Update.
4791 (follow_die_sig_1): Update.
4792 (load_full_type_unit): Add per_objfile parameter.
4793 (read_signatured_type): Likewise.
4794
4795 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4796
4797 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4798 of objfile_name.
4799
4800 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4801
4802 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4803 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4804 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4805 field.
4806 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4807 (create_cus_from_index): Update.
4808 (dwarf2_read_gdb_index): Update.
4809 (create_cus_from_debug_names): Update.
4810 (dwarf2_read_debug_names): Update.
4811 (get_abbrev_section_for_cu): Update.
4812 (create_all_comp_units): Update.
4813 (read_attribute_value): Update.
4814 (get_debug_line_section): Update.
4815 * dwarf2/index-cache.c (index_cache::store): Update.
4816 * dwarf2/index-write.c (save_gdb_index_command): Update.
4817 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4818
4819 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4820
4821 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4822 member.
4823 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4824 dwarf2_per_cu_data::per_bfd.
4825 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4826 (create_type_unit_group): Likewise.
4827 (queue_comp_unit): Remove reference to
4828 per_cu->dwarf2_per_objfile.
4829 (maybe_queue_comp_unit): Likewise.
4830 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4831 (create_cus_hash_table): Assign new field.
4832
4833 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4834
4835 * dwarf2/read.c: Replace
4836 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4837 dwarf2_cu->per_objfile throughout.
4838
4839 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4840
4841 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4842 parameter, don't use per_cu->dwarf2_per_objfile.
4843 (dw2_instantiate_symtab): Likewise.
4844 (dw2_find_last_source_symtab): Update.
4845 (dw2_map_expand_apply): Update.
4846 (dw2_lookup_symbol): Update.
4847 (dw2_expand_symtabs_for_function): Update.
4848 (dw2_expand_all_symtabs): Update.
4849 (dw2_expand_symtabs_with_fullname): Update.
4850 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4851 don't use per_cu->dwarf2_per_objfile.
4852 (dw2_expand_marked_cus): Update.
4853 (dw2_find_pc_sect_compunit_symtab): Update.
4854 (dw2_debug_names_lookup_symbol): Update.
4855 (dw2_debug_names_expand_symtabs_for_function): Update.
4856 (dw2_debug_names_map_matching_symbols): Update.
4857 (dwarf2_psymtab::expand_psymtab): Update.
4858
4859 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4862 <per_objfile>: New member.
4863 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4864 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4865 call to dwarf2_cu.
4866 (cutu_reader::cutu_reader): Update.
4867 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4868
4869 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4870
4871 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4872 struct dwarf2_per_objfile.
4873 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4874 dwarf2_per_bfd.
4875 * dwarf2/read.c (set_die_type): Update.
4876 (get_die_type_at_offset): Update.
4877
4878 2020-05-27 Tom Tromey <tom@tromey.com>
4879 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4882 method.
4883 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4884 get_symtab, set_symtab>: New methods.
4885 <m_symtabs>: New field.
4886 (struct dwarf2_psymtab): Derive from partial_symtab.
4887 <readin_p, get_compunit_symtab>: Declare methods.
4888 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4889 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4890 New methods.
4891 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4892 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4893 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4894 (dw2_symtab_iter_next, dw2_print_stats)
4895 (dw2_expand_symtabs_with_fullname)
4896 (dw2_expand_symtabs_matching_one)
4897 (dw_expand_symtabs_matching_file_matcher)
4898 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4899 (dw2_debug_names_iterator::next)
4900 (dw2_debug_names_map_matching_symbols)
4901 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4902 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4903 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4904 New methods.
4905 (get_compunit_symtab, process_full_comp_unit)
4906 (process_full_type_unit): Update.
4907 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4908
4909 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4910
4911 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4912 then introduce a new dwarf2_per_objfile type.
4913 <read_line_string>: Move to the new dwarf2_per_objfile type.
4914 <objfile>: Likewise.
4915 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4916 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4917 dwarf2_per_objfile->per_bfd.
4918 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4919 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4920 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4921 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4922 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4923 (dwarf2_per_objfile::locate_sections): Rename to...
4924 (dwarf2_per_bfd::locate_sections): ... this.
4925 (dwarf2_per_objfile::get_cutu): Rename to...
4926 (dwarf2_per_bfd::get_cutu): ... this.
4927 (dwarf2_per_objfile::get_cu): Rename to...
4928 (dwarf2_per_bfd::get_cu): ... this.
4929 (dwarf2_per_objfile::get_tu): Rename to...
4930 (dwarf2_per_bfd::get_tu): ... this.
4931 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4932 (dwarf2_per_bfd::allocate_per_cu): ... this.
4933 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4934 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4935 (get_gdb_index_contents_ftype): Change parameter from
4936 dwarf2_per_objfile to dwarf2_per_bfd.
4937 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4938 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4939
4940 2020-05-27 Tom Tromey <tom@tromey.com>
4941 Simon Marchi <simon.marchi@efficios.com>
4942
4943 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4944 (allocate_piece_closure): Set "per_objfile" member.
4945 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4946 (locexpr_describe_location, loclist_describe_location): Use new
4947 member.
4948 * dwarf2/read.c (read_call_site_scope)
4949 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4950 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4951 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4952 handle_data_member_location): Set per_objfile member.
4953 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4954 member.
4955 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4956
4957 2020-05-27 Tom Tromey <tom@tromey.com>
4958
4959 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4960 allocate_signatured_type>: Declare new methods.
4961 <m_num_psymtabs>: New member.
4962 (struct dwarf2_per_cu_data) <index>: New member.
4963 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4964 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4965 (create_cu_from_index_list): Use allocate_per_cu.
4966 (create_signatured_type_table_from_index)
4967 (create_signatured_type_table_from_debug_names)
4968 (create_debug_type_hash_table, add_type_unit)
4969 (read_comp_units_from_section): Use allocate_signatured_type.
4970
4971 2020-05-27 Tom Tromey <tom@tromey.com>
4972
4973 * psymtab.c (partial_map_expand_apply)
4974 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4975 (psym_lookup_global_symbol_language)
4976 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4977 (psym_print_stats, psym_expand_symtabs_for_function)
4978 (psym_map_symbol_filenames, psym_map_matching_symbols)
4979 (psym_expand_symtabs_matching)
4980 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4981 (maintenance_check_psymtabs): Update.
4982 * psympriv.h (struct partial_symtab) <readin_p,
4983 get_compunit_symtab>: Add objfile parameter.
4984 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4985 Likewise.
4986 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4987 get_compunit_symtab>: Likewise.
4988 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4989
4990 2020-05-27 Tom Tromey <tom@tromey.com>
4991
4992 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4993 member.
4994 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4995 (create_cu_from_index_list)
4996 (create_signatured_type_table_from_index)
4997 (create_signatured_type_table_from_debug_names)
4998 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4999 (dwarf2_create_include_psymtab)
5000 (create_debug_type_hash_table, add_type_unit)
5001 (create_type_unit_group, read_comp_units_from_section)
5002 (dwarf2_compute_name, create_cus_hash_table)
5003 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5004 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5005 obstack.
5006 (dw2_get_real_path): Likewise. Change argument to
5007 dwarf2_per_objfile.
5008
5009 2020-05-27 Luis Machado <luis.machado@linaro.org>
5010
5011 PR tdep/26000
5012 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5013 for ldrd (immediate).
5014
5015 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5016
5017 * command.h: Add comment giving the name of class_tui.
5018 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5019 create the fake command for the help for class_tui.
5020
5021 2020-05-26 Tom Tromey <tromey@adacore.com>
5022
5023 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5024 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5025 (val_atr): New function.
5026 (value_val_atr): Use it.
5027 * ada-valprint.c (print_optional_low_bound): Change low bound
5028 handling for enums.
5029 (val_print_packed_array_elements): Don't call discrete_position.
5030 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5031 discrete_position for enum types.
5032 * language.c (default_print_array_index): Change type.
5033 * language.h (struct language_defn) <la_print_array_index>: Add
5034 index_type parameter, change type of index_value.
5035 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5036 (default_print_array_index): Update.
5037 * valprint.c (maybe_print_array_index): Don't call
5038 value_from_longest. Update.
5039 (value_print_array_elements): Don't call discrete_position.
5040
5041 2020-05-26 Tom Tromey <tromey@adacore.com>
5042
5043 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5044 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5045
5046 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5047
5048 PR gdb/13519
5049 * avr-tdep.c (avr_integer_to_address): Return data or code
5050 address accordingly to the second 'type' argument of the
5051 function.
5052
5053 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5054
5055 * infcmd.c, inferior.h: (construct_inferior_arguments):
5056 Moved function from here to gdbsupport/common-inferior.{h,cc}
5057
5058 2020-05-23 Tom Tromey <tom@tromey.com>
5059
5060 Revert commit eca1f90c:
5061 * NEWS: Remove entry for completion styling.
5062 * completer.c (_rl_completion_prefix_display_length): Move
5063 declaration later.
5064 (gdb_fnprint): Revert.
5065 (gdb_display_match_list_1): Likewise.
5066 * cli/cli-style.c (completion_prefix_style)
5067 (completion_difference_style, completion_suffix_style): Remove.
5068 (_initialize_cli_style): Revert.
5069 * cli/cli-style.h (completion_prefix_style)
5070 (completion_difference_style, completion_suffix_style): Don't
5071 declare.
5072
5073 2020-05-24 Pedro Alves <palves@redhat.com>
5074
5075 * symtab.c (completion_list_add_name): Return boolean indication
5076 of whether the symbol matched.
5077 (completion_list_add_symbol): Don't try to remove C++ aliases if
5078 the symbol didn't match in the first place.
5079 * symtab.h (completion_list_add_name): Return bool.
5080
5081 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5082
5083 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5084 type::field.
5085
5086 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5087
5088 GDB 9.2 released.
5089
5090 2020-05-23 Tom Tromey <tom@tromey.com>
5091
5092 * NEWS: Add entry for completion styling.
5093 * completer.c (_rl_completion_prefix_display_length): Move
5094 declaration earlier.
5095 (gdb_fnprint): Use completion_style.
5096 (gdb_display_match_list_1): Likewise.
5097 * cli/cli-style.c (completion_prefix_style)
5098 (completion_difference_style, completion_suffix_style): New
5099 globals.
5100 (_initialize_cli_style): Register new globals.
5101 * cli/cli-style.h (completion_prefix_style)
5102 (completion_difference_style, completion_suffix_style): Declare.
5103
5104 2020-05-23 Pedro Alves <palves@redhat.com>
5105
5106 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5107 (parse_escape): Use ISDIGIT instead of isdigit.
5108 (puts_debug): Use gdb_isprint instead of isprint.
5109 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5110 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5111 ISSPACE instead of isspace.
5112 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5113 instead of isspace.
5114 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5115 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5116 instead of isxdigit and ISDIGIT instead of isdigit.
5117
5118 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5119
5120 * gdbtypes.h (struct type) <field>: New method.
5121 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5122 or type::field.
5123
5124 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5125
5126 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5127 (TYPE_FIELDS): Use type::fields. Change all call sites that
5128 modify the propery to use type::set_fields instead.
5129
5130 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5131
5132 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5133 type::num_fields instead.
5134
5135 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5136
5137 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5138 methods.
5139 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5140 that modify the number of fields to use type::set_num_fields
5141 instead.
5142
5143 2020-05-22 Tom Tromey <tromey@adacore.com>
5144
5145 * compile/compile-object-load.h (munmap_list_free): Don't
5146 declare.
5147
5148 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5149
5150 * annotate.c (annotate_source_line): Update return type, add call
5151 to update current symtab and line.
5152 * annotate.h (annotate_source_line): Update return type, and
5153 extend header comment.
5154 * source.c (info_line_command): Check annotation_level before
5155 calling annotate_source_line.
5156 * stack.c (print_frame_info): If calling annotate_source_line
5157 returns true, then don't print any other source line information.
5158
5159 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5160
5161 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5162
5163 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5164
5165 * coffread.c (patch_type): Remove NULL check before xfree.
5166 * corefile.c (set_gnutarget): Likewise.
5167 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5168 * exec.c (build_section_table): Likewise.
5169 * remote.c (remote_target::pass_signals): Likewise.
5170 * utils.c (n_spaces): Likewise.
5171 * cli/cli-script.c (document_command): Likewise.
5172 * i386-windows-tdep.c (core_process_module_section): Likewise.
5173 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5174
5175 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5176
5177 * symfile.c (reread_symbols): Clear objfile's section_offsets
5178 vector and section indices, re-compute them by calling
5179 sym_offsets.
5180
5181 2020-05-20 Tom Tromey <tromey@adacore.com>
5182
5183 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5184 (desc_one_bound, desc_index_type): Compute field name.
5185
5186 2020-05-20 Tom de Vries <tdevries@suse.de>
5187
5188 PR symtab/25833
5189 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5190
5191 2020-05-20 Alan Modra <amodra@gmail.com>
5192
5193 PR 25993
5194 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5195 bfd_set_filename.
5196 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5197 passed to bfd_set_filename.
5198 * symfile-mem.c (add_vsyscall_page): Likewise for string
5199 passed to symbol_file_add_from_memory.
5200 (symbol_file_add_from_memory): Make name param a const char* and
5201 don't strdup.
5202
5203 2020-05-20 Alan Modra <amodra@gmail.com>
5204
5205 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5206 rather than accessing bfd->filename directly.
5207 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5208 and use bfd_section_name.
5209 * dwarf2/frame.c (decode_frame_entry): Likewise.
5210 * exec.c (exec_set_section_address): Likewise.
5211 * solib-aix.c (solib_aix_bfd_open): Likewise.
5212 * stap-probe.c (get_stap_base_address): Likewise.
5213 * symfile.c (reread_symbols): Likewise.
5214
5215 2020-05-19 Tom Tromey <tromey@adacore.com>
5216
5217 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5218
5219 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5220
5221 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5222
5223 2020-05-19 Pedro Alves <palves@redhat.com>
5224
5225 * NEWS (set exec-file-mismatch): Adjust entry.
5226 * exec.c: Include "build-id.h".
5227 (validate_exec_file): Try to match build IDs instead of filenames.
5228 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5229 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5230 and pass down 'warn_if_slow'.
5231 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5232 gdb_bfd_open_closure to pass it down.
5233 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5234
5235 2020-05-19 Pedro Alves <palves@redhat.com>
5236
5237 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5238 * target.c (target_fileio_open_1): Rename to target_fileio_open
5239 and make extern. Use bool.
5240 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5241 (target_fileio_read_alloc_1): Adjust.
5242 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5243 (target_fileio_open_warn_if_slow): Delete declaration.
5244
5245 2020-05-19 Pedro Alves <palves@redhat.com>
5246
5247 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5248 Adjust all callers.
5249
5250 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5251
5252 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5253 whether disp is negative.
5254
5255 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5256
5257 * symfile.h (struct symfile_segment_data)
5258 <~symfile_segment_data>: Remove.
5259 <segment_info>: Change to std::vector.
5260 * symfile.c (default_symfile_segments): Update.
5261 * elfread.c (elf_symfile_segments): Update.
5262
5263 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5264
5265 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5266 <segments>: New.
5267 <segment_bases, segment_sizes>: Remove.
5268 * symfile.c (default_symfile_segments): Update.
5269 * elfread.c (elf_symfile_segments): Update.
5270 * remote.c (remote_target::get_offsets): Update.
5271 * solib-target.c (solib_target_relocate_section_addresses):
5272 Update.
5273
5274 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5275
5276 * symfile.h (struct symfile_segment_data): Initialize fields.
5277 <~symfile_segment_data>: Add.
5278 (symfile_segment_data_up): New.
5279 (struct sym_fns) <sym_segments>: Return a
5280 symfile_segment_data_up.
5281 (default_symfile_segments): Return a symfile_segment_data_up.
5282 (free_symfile_segment_data): Remove.
5283 (get_symfile_segment_data): Return a symfile_segment_data_up.
5284 * symfile.c (default_symfile_segments): Likewise.
5285 (get_symfile_segment_data): Likewise.
5286 (free_symfile_segment_data): Remove.
5287 (symfile_find_segment_sections): Update.
5288 * elfread.c (elf_symfile_segments): Return a
5289 symfile_segment_data_up.
5290 * remote.c (remote_target::get_offsets): Update.
5291 * solib-target.c (solib_target_relocate_section_addresses):
5292 Update.
5293 * symfile-debug.c (debug_sym_segments): Return a
5294 symfile_segment_data_up.
5295
5296 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5297
5298 PR build/25981
5299 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5300 Hardcode register numbers.
5301
5302 PR build/25981
5303 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5304 procfs_find_LDT_entry): Remove.
5305 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5306 procfs_find_LDT_entry): Remove.
5307 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5308 Remove.
5309
5310 2020-05-17 Pedro Alves <palves@redhat.com>
5311 Andrew Burgess <andrew.burgess@embecosm.com>
5312 Keno Fischer <keno@juliacomputing.com>
5313
5314 PR gdb/25741
5315 * breakpoint.c (build_target_condition_list): Update comments.
5316 (build_target_command_list): Update comments and skip matching
5317 locations.
5318 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5319 a separate function. Simplify "set breakpoint auto-hw off"
5320 handling.
5321 (insert_breakpoints): Update comment.
5322 (tracepoint_locations_match): New parameter. For breakpoints,
5323 compare location types too, if the caller wants to.
5324 (handle_automatic_hardware_breakpoints): New functions.
5325 (bp_location_is_less_than): Also sort by location type and
5326 hardware breakpoint length.
5327 (update_global_location_list): Handle "set breakpoint auto-hw on"
5328 here.
5329 (update_breakpoint_locations): Ask breakpoint_locations_match to
5330 ignore location types.
5331
5332 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5333
5334 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5335 type::name instead.
5336
5337 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5338
5339 * gdbtypes.h (struct type) <name, set_name>: New methods.
5340 (TYPE_CODE): Use type::name. Change all call sites used to set
5341 the name to use type::set_name instead.
5342
5343 2020-05-16 Tom Tromey <tom@tromey.com>
5344
5345 * top.c (quit_force): Update.
5346 * infrun.c (handle_no_resumed): Update.
5347 * top.h (all_uis): New function.
5348 (ALL_UIS): Remove.
5349
5350 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5351
5352 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5353
5354 2020-05-16 Pedro Alves <palves@redhat.com>
5355
5356 * ia64-linux-nat.c
5357 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5358 Declare method.
5359 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5360
5361 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5362
5363 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5364 (sparc64_adi_info): Likewise.
5365
5366 2020-05-15 Tom Tromey <tom@tromey.com>
5367
5368 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5369 block_objfile.
5370 (lookup_objfile_from_block): Remove.
5371 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5372 (lookup_global_symbol): Use block_objfile.
5373 * symtab.h (lookup_objfile_from_block): Don't declare.
5374 * printcmd.c (clear_dangling_display_expressions): Use
5375 block_objfile.
5376 * parse.c (operator_check_standard): Use block_objfile.
5377
5378 2020-05-15 Tom Tromey <tom@tromey.com>
5379
5380 * language.c (language_alloc_type_symbol): Set
5381 SYMBOL_SECTION.
5382 * symtab.c (initialize_objfile_symbol): Remove.
5383 (allocate_symbol): Remove.
5384 (allocate_template_symbol): Remove.
5385 * dwarf2/read.c (fixup_go_packaging): Use "new".
5386 (new_symbol): Use "new".
5387 (read_variable): Don't call initialize_objfile_symbol. Use
5388 "new".
5389 (read_func_scope): Use "new".
5390 * xcoffread.c (process_xcoff_symbol): Don't call
5391 initialize_objfile_symbol.
5392 (SYMBOL_DUP): Remove.
5393 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5394 "new".
5395 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5396 (allocate_template_symbol): Don't declare.
5397 (struct symbol): Add copy constructor. Change defaults.
5398 * jit.c (finalize_symtab): Use "new".
5399 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5400 Use "new".
5401 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5402 (common_block_end): Use "new".
5403 * mdebugread.c (parse_symbol): Use "new".
5404 (new_symbol): Likewise.
5405
5406 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5407
5408 * NEWS: Mention changes to help and apropos.
5409
5410 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5411
5412 * command.h (enum command_class): Improve comments, document
5413 that class_alias is for user-defined aliases, give the class
5414 name for each class, remove unused class_xdb.
5415 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5416 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5417 by a precise class.
5418 * infcmd.c (_initialize_infcmd): Likewise.
5419 * reverse.c (_initialize_reverse): Likewise.
5420 * stack.c (_initialize_stack): Likewise.
5421 * symfile.c (_initialize_symfile): Likewise.
5422 * tracepoint.c (_initialize_tracepoint): Likewise.
5423
5424 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5425
5426 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5427 when their aliased command is traversed.
5428 (help_cmd): Add fput_command_names_styled call to
5429 output command name and aliases when command has an alias.
5430
5431 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5432
5433 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5434 * cli/cli-decode.c (help_cmd_list): Declare as static,
5435 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5436 a command together with the command.
5437 (fput_command_name_styled, fput_command_names_styled): New functions.
5438 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5439 fput_command_name_styled.
5440 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5441 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5442
5443 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5444
5445 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5446 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5447 * command.h (cmd_show_list): Likewise.
5448 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5449 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5450
5451 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5452
5453 * unittests/command-def-selftests.c (traverse_command_structure):
5454 Verify all commands of a list have the same prefix command and
5455 that only the top cmdlist commands have a null prefix.
5456
5457 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5458
5459 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5460 as prefix, not one of its aliases.
5461 (set_cmd_prefix): Remove.
5462 (do_add_cmd): Centralize the setting of the prefix of a command, when
5463 command is defined after its full chain of prefix commands.
5464 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5465 (add_setshow_cmd_full): Likewise.
5466 (update_prefix_field_of_prefixed_commands): New function.
5467 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5468 update_prefix_field_of_prefixed_commands.
5469 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5470 addresses of remote_set_cmdlist and remote_show_cmdlist given
5471 as argument, not the address of an argument.
5472 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5473 * gdb/remote.c (_initialize_remote): Likewise.
5474
5475 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5476
5477 * cli/cli-cmds.c (alias_command): Check for an existing alias
5478 using lookup_cmd_composition, as valid_command_p is too strict
5479 and forbids aliases that are the prefix of an existing alias
5480 or command.
5481 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5482 command is properly recognised as a valid command.
5483
5484 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5485
5486 * unittests/help-doc-selftests.c: Rename to
5487 unittests/command-def-selftests.c
5488 * unittests/command-def-selftests.c (help_doc_tests): Update some
5489 comments.
5490 (command_structure_tests, traverse_command_structure): New namespace
5491 and function.
5492 (command_structure_invariants_tests): New function.
5493 (_initialize_command_def_selftests) Renamed from
5494 _initialize_help_doc_selftests, register command_structure_invariants
5495 selftest.
5496
5497 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5498
5499 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5500 an alias of 'show'.
5501
5502 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5503
5504 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5505 ada_is_fixed_point_type. Update all callers.
5506 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5507 all callers.
5508 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5509 Update all callers.
5510 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5511 print_fixed_point_type. Update all callers.
5512 * ada-valprint.c (ada_value_print_num): Replace call to
5513 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5514
5515 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5516
5517 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5518 processors.
5519 (cpu_supports_bts): Add CV_AMD case.
5520
5521 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5522 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * infrun.c (stop_all_threads): Collect multiple wait events at
5525 each pass.
5526
5527 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5528
5529 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5530 type::code instead.
5531
5532 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5533
5534 * gdbtypes.h (struct type) <code, set_code>: New methods.
5535 (TYPE_CODE): Use type::code. Change all call sites used to set
5536 the code to use type::set_code instead.
5537
5538 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5539 Tom de Vries <tdevries@suse.de>
5540 Pedro Alves <palves@redhat.com>
5541
5542 PR threads/25478
5543 * infrun.c (stop_all_threads): Do NOT ignore
5544 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5545 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5546 received.
5547 (handle_no_resumed): Remove code handling a live inferior with no
5548 threads.
5549 * remote.c (has_single_non_exited_thread): New.
5550 (remote_target::update_thread_list): Do not delete a thread if is
5551 the last thread of the process.
5552 * thread.c (thread_select): Call delete_exited_threads instead of
5553 prune_threads.
5554
5555 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5556
5557 * infrun.c (stop_all_threads): Enable/disable thread events of all
5558 targets. Move a debug message denoting the end of the function
5559 into the SCOPED_EXIT block.
5560
5561 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5562
5563 * process-stratum-target.h: Include <set>.
5564 (all_non_exited_process_targets, switch_to_target_no_thread): New
5565 function declarations.
5566 * process-stratum-target.c (all_non_exited_process_targets)
5567 (switch_to_target_no_thread): New function implementations.
5568
5569 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5570
5571 * infrun.c (handle_inferior_event): Extract out a piece of code
5572 into...
5573 (mark_non_executing_threads): ...this new function.
5574
5575 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5576
5577 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5578 use.
5579
5580 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5581
5582 * regcache.c (regcache_read_pc_protected): New function
5583 implementation that returns 0 if the PC cannot read via
5584 'regcache_read_pc'.
5585 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5586 instead of 'regcache_read_pc'.
5587 (keep_going_pass_signal): Ditto.
5588
5589 2020-05-13 Tom Tromey <tromey@adacore.com>
5590
5591 * ada-lang.c (align_value): Remove.
5592 (ada_template_to_fixed_record_type_1): Use align_up.
5593
5594 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5595
5596 * async-event.c: Update the copyright year.
5597 * async-event.h: Update the copyright year.
5598
5599 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5600
5601 * objfiles.h (is_addr_in_objfile,
5602 shared_objfile_contains_address_p): Return bool.
5603 * objfile.c (is_addr_in_objfile,
5604 shared_objfile_contains_address_p): Return bool.
5605
5606 2020-05-11 Tom Tromey <tromey@adacore.com>
5607
5608 * cli/cli-cmds.c (info_command): Restore.
5609 (_initialize_cli_cmds): Use add_prefix_command for "info".
5610 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5611
5612 2020-05-11 Tom Tromey <tromey@adacore.com>
5613
5614 * ada-lang.c (ada_value_primitive_field): Now public.
5615 * ada-lang.h (ada_value_primitive_field): Declare.
5616 * ada-valprint.c (print_field_values): Use
5617 ada_value_primitive_field for wrapper fields.
5618
5619 2020-05-11 Tom de Vries <tdevries@suse.de>
5620
5621 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5622 MODULE_DOMAIN.
5623
5624 2020-05-11 Tom de Vries <tdevries@suse.de>
5625
5626 PR symtab/25941
5627 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5628 with length 0, if not gdb-produced.
5629 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5630
5631 2020-05-09 Tom de Vries <tdevries@suse.de>
5632
5633 PR gdb/25955
5634 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5635 calculation.
5636
5637 2020-05-09 Tom Tromey <tom@tromey.com>
5638
5639 * top.c (server_command): Now bool.
5640 * top.h (server_command): Now bool.
5641
5642 2020-05-08 Tom Tromey <tromey@adacore.com>
5643
5644 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5645 already being processed.
5646
5647 2020-05-08 Tom Tromey <tom@tromey.com>
5648
5649 * printcmd.c (struct display) <next>: Remove.
5650 <display>: New constructor.
5651 <exp_string>: Now a std::string.
5652 <enabled_p>: Now a bool.
5653 (display_number): Move definition earlier.
5654 (displays): Rename from display_chain. Now a std::vector.
5655 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5656 (display_command): Update.
5657 (do_one_display, disable_display)
5658 (enable_disable_display_command, do_enable_disable_display):
5659 Update.
5660 (free_display): Remove.
5661 (clear_displays): Rewrite.
5662 (delete_display): Update.
5663 (map_display_numbers): Use function_view. Remove "data"
5664 parameter. Update.
5665 (do_delete_display): Remove.
5666 (undisplay_command): Update.
5667 (do_one_display, do_displays, disable_display)
5668 (info_display_command): Update.
5669 (do_enable_disable_display): Remove.
5670 (enable_disable_display_command)
5671 (clear_dangling_display_expressions): Update.
5672
5673 2020-05-08 Tom Tromey <tom@tromey.com>
5674
5675 * symtab.c (set_symbol_cache_size)
5676 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5677 (maintenance_print_symbol_cache_statistics): Update.
5678 * symmisc.c (print_symbol_bcache_statistics)
5679 (print_objfile_statistics, maintenance_print_objfiles)
5680 (maintenance_info_symtabs, maintenance_check_symtabs)
5681 (maintenance_expand_symtabs, maintenance_info_line_tables):
5682 Update.
5683 * symfile-debug.c (set_debug_symfile): Update.
5684 * source.c (forget_cached_source_info): Update.
5685 * python/python.c (gdbpy_progspaces): Update.
5686 * psymtab.c (maintenance_info_psymtabs): Update.
5687 * probe.c (parse_probes): Update.
5688 * linespec.c (iterate_over_all_matching_symtabs)
5689 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5690 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5691 * exec.c (exec_target::close): Update.
5692 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5693 * breakpoint.c (print_one_breakpoint_location)
5694 (create_longjmp_master_breakpoint)
5695 (create_std_terminate_master_breakpoint): Update.
5696 * progspace.c (program_spaces): Now a std::vector.
5697 (maybe_new_address_space): Update.
5698 (add_program_space): Remove.
5699 (program_space::program_space): Update.
5700 (remove_program_space): Update.
5701 (number_of_program_spaces): Remove.
5702 (print_program_space, update_address_spaces): Update.
5703 * progspace.h (program_spaces): Change type.
5704 (ALL_PSPACES): Remove.
5705 (number_of_program_spaces): Don't declare.
5706 (struct program_space) <next>: Remove.
5707
5708 2020-05-08 Tom Tromey <tom@tromey.com>
5709
5710 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5711 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5712 (enable_break): Update.
5713 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5714 (frv_fdpic_find_canonical_descriptor): Update.
5715 (frv_fetch_objfile_link_map): Update.
5716 * progspace.c (program_space::free_all_objfiles): Update.
5717 (program_space::solibs): New method.
5718 * progspace.h (struct program_space) <solibs>: New method.
5719 * solist.h (master_so_list): Don't declare.
5720 (ALL_SO_LIBS): Remove.
5721 * solib.h (so_list_head): Remove.
5722 (update_solib_list): Update comment.
5723 * solib.c (master_so_list): Remove.
5724 (solib_used, update_solib_list, solib_add)
5725 (info_sharedlibrary_command, clear_solib)
5726 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5727
5728 2020-05-08 Tom Tromey <tom@tromey.com>
5729
5730 * extension.c (extension_languages): Now a std::array.
5731 (ALL_EXTENSION_LANGUAGES): Remove.
5732 (get_ext_lang_defn, get_ext_lang_of_file)
5733 (eval_ext_lang_from_control_command): Update.
5734 (finish_ext_lang_initialization)
5735 (auto_load_ext_lang_scripts_for_objfile)
5736 (ext_lang_type_printers::ext_lang_type_printers)
5737 (apply_ext_lang_type_printers)
5738 (ext_lang_type_printers::~ext_lang_type_printers)
5739 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5740 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5741 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5742 (get_matching_xmethod_workers, ext_lang_colorize)
5743 (ext_lang_before_prompt): Update.
5744 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5745
5746 2020-05-08 Tom Tromey <tom@tromey.com>
5747
5748 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5749 overload.
5750 <swap_string, m_string>: Remove.
5751 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5752 Update.
5753 * stabsread.c (define_symbol, read_type): Update.
5754 * linespec.c (find_linespec_symbols): Update.
5755 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5756 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5757 * dbxread.c (read_dbx_symtab): Update.
5758 * cp-support.h (cp_canonicalize_string_full)
5759 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5760 Return unique_xmalloc_ptr.
5761 * cp-support.c (inspect_type): Update.
5762 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5763 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5764 Likewise.
5765 * c-typeprint.c (print_name_maybe_canonical): Update.
5766 * break-catch-throw.c (check_status_exception_catchpoint):
5767 Update.
5768
5769 2020-05-08 Tom de Vries <tdevries@suse.de>
5770
5771 * infrun.c (follow_fork): Copy current_line and current_symtab to
5772 child thread.
5773
5774 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5775
5776 * async-event.c (struct async_signal_handler, struct
5777 async_event_handler): Reformat, remove typedef.
5778
5779 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5780
5781 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5782 access thistype->main_type->dyn_prop_list directly.
5783
5784 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5785
5786 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5787 (remove_dyn_prop): Remove. Update all users to use
5788 type::remove_dyn_prop.
5789 * gdbtypes.c (remove_dyn_prop): Rename to...
5790 (type::remove_dyn_prop): ... this.
5791
5792 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5793
5794 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5795 (add_dyn_prop): Remove. Update all users to use
5796 type::add_dyn_prop.
5797 * gdbtypes.c (add_dyn_prop): Rename to...
5798 (type::add_dyn_prop): ... this.
5799
5800 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5801
5802 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5803 (get_dyn_prop): Remove. Update all users to use
5804 type::dyn_prop.
5805 * gdbtypes.c (get_dyn_prop): Rename to...
5806 (type::dyn_prop): ... this.
5807
5808 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5809
5810 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5811
5812 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5813
5814 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5815 instruction, skip it if it's there.
5816
5817 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5818
5819 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5820
5821 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5822
5823 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5824 * gdbtypes.c (recursive_dump_type): Remove use of
5825 TYPE_INCOMPLETE.
5826
5827 2020-05-03 Tom Tromey <tom@tromey.com>
5828
5829 * breakpoint.c (catch_command, tcatch_command): Remove.
5830 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5831 add_show_prefix_cmd.
5832 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5833 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5834 Remove.
5835 (add_internal_problem_command): Use add_basic_prefix_cmd,
5836 add_show_prefix_cmd.
5837 * mips-tdep.c (set_mipsfpu_command): Remove.
5838 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5839 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5840 (_initialize_index_cache): Use add_basic_prefix_cmd.
5841 * memattr.c (dummy_cmd): Remove.
5842 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5843 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5844 (_initialize_tui_win): Use add_basic_prefix_cmd,
5845 add_show_prefix_cmd.
5846 * cli/cli-logging.c (set_logging_command): Remove.
5847 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5848 add_show_prefix_cmd.
5849 (show_logging_command): Remove.
5850 * target.c (target_command): Remove.
5851 (add_target): Use add_basic_prefix_cmd.
5852
5853 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5854
5855 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5856
5857 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5858
5859 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5860 info_command.
5861
5862 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5863
5864 * nbsd-nat.c (nbsd_enable_proc_events)
5865 (nbsd_nat_target::post_startup_inferior): Add.
5866 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5867 (nbsd_nat_target::update_thread_list): Rewrite.
5868 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5869 "PTRACE_LWP_CREATE".
5870 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5871
5872 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5873
5874 * stack.c (_initialize_stack): Remove duplicated creation
5875 of "frame" command and "f" alias.
5876
5877 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5878
5879 PR gdb/18706
5880 * gdbtypes.c (check_typedef): Calculate size of array of
5881 stubbed type.
5882
5883 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5884
5885 PR gdb/15559
5886 * i386-tdep.c (i386_push_dummy_call): Call
5887 i386_thiscall_push_dummy_call.
5888 (i386_thiscall_push_dummy_call): New function.
5889 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5890 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5891 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5892
5893 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * gdbarch.sh (do_read): Add shellcheck disable directive for
5896 warning SC2162.
5897
5898 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5899
5900 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5901 "referenced but not assigned" warning.
5902
5903 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5904
5905 * gdbarch.sh: Remove code that sets fallbackdefault.
5906
5907 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5908
5909 * gdbarch.sh: Use shell operators && and || instead of
5910 -a and -o.
5911
5912 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5913
5914 * gdbarch.sh: Use $(...) instead of `...`.
5915
5916 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5917
5918 * gdbarch.sh: Use double quotes around variables.
5919
5920 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * gdbarch.sh: Use %s with printf, instead of variables in the
5923 format string.
5924
5925 2020-04-29 Tom Tromey <tromey@adacore.com>
5926
5927 PR ada/25875:
5928 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5929 type fields here.
5930 (read_enumeration_type): Call
5931 update_enumeration_type_from_children later. Update comments.
5932 (process_enumeration_scope): Don't create type fields.
5933
5934 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5935
5936 * nbsd-tdep.c: Include "xml-syscall.h".
5937 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5938
5939 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5940
5941 * nbsd-nat.c: Include "sys/wait.h".
5942 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5943 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5944 (nbsd_nat_target::remove_exec_catchpoint)
5945 (nbsd_nat_target::set_syscall_catchpoint): Add.
5946 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5947 (nbsd_nat_target::insert_exec_catchpoint)
5948 (nbsd_nat_target::remove_exec_catchpoint)
5949 (nbsd_nat_target::set_syscall_catchpoint): Add.
5950 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5951 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5952 `nbsd_get_syscall_number'.
5953
5954 2020-04-29 Tom Tromey <tom@tromey.com>
5955
5956 * stack.c (print_block_frame_labels): Remove.
5957
5958 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5959
5960 PR gdb/17320
5961 * ada-valprint.c (val_print_packed_array_elements): Move array
5962 end bracket to new line.
5963 (ada_val_print_string): Remove extra spaces before first array
5964 element.
5965 * c-valprint.c (c_value_print_array): Likewise.
5966 * m2-valprint.c (m2_print_array_contents): Likewise.
5967 (m2_value_print_inner): Likewise.
5968 * p-valprint.c (pascal_value_print_inner): Likewise.
5969 * valprint.c (generic_val_print_array): Likewise.
5970 (value_print_array_elements): Move first array element and array
5971 end bracket to new line.
5972
5973 2020-04-29 Tom de Vries <tdevries@suse.de>
5974
5975 PR symtab/25889
5976 * linespec.c (find_method): Fix ix calculation.
5977
5978 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5979
5980 * syscalls/update-netbsd.sh: New file.
5981 * syscalls/netbsd.xml: Regenerate.
5982 * data-directory/Makefile.in: Register `netbsd.xml' in
5983 `SYSCALLS_FILES'.
5984
5985 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5986
5987 * syscalls/update-freebsd.sh: Add double quotes.
5988
5989 2020-04-28 Tom Tromey <tom@tromey.com>
5990
5991 * NEWS: Update.
5992 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5993 (cmdpy_init): Allow class_tui.
5994
5995 2020-04-28 Mark Williams <mark@myosotissp.com>
5996
5997 PR gdb/24480
5998 * dwarf2read.c: Add missing assingments to list_in_scope when
5999 start_symtab was already called.
6000
6001 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6002
6003 PR gdb/25881
6004 * dwarf2/read.c (offset_map_type): Use
6005 gdb:hash_enum<sect_offset> as hash function.
6006
6007 2020-04-28 Tom de Vries <tdevries@suse.de>
6008
6009 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6010 with DW_AT_signature.
6011
6012 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * configure.ac: Remove check for fs_base/gs_base in
6015 user_regs_struct.
6016 * configure: Re-generate.
6017 * config.in: Re-generate.
6018 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6019 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6020 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6021
6022 2020-04-27 Luis Machado <luis.machado@linaro.org>
6023
6024 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6025 problematic inline frame unwinding situation.
6026 * frame.c (frame_id_computed_p): New function.
6027 * frame.h (frame_id_computed_p): New prototype.
6028
6029 2020-04-26 Tom Tromey <tom@tromey.com>
6030
6031 * command.h (enum command_class) <class_pseudo>: Remove.
6032
6033 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6034
6035 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6036 and whitespace.
6037
6038 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6039
6040 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6041 `PT_GET_PROCESS_STATE' block.
6042
6043 2020-04-24 Tom Tromey <tom@tromey.com>
6044
6045 * symtab.h (symbol_get_demangled_name): Don't declare.
6046 * symtab.c (symbol_get_demangled_name): Remove.
6047 (general_symbol_info::natural_name)
6048 (general_symbol_info::demangled_name): Update.
6049
6050 2020-04-24 Tom Tromey <tom@tromey.com>
6051
6052 PR rust/25025:
6053 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6054
6055 2020-04-24 Tom Tromey <tom@tromey.com>
6056
6057 PR symtab/12707:
6058 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6059 exists.
6060 (new_symbol): Likewise.
6061 * compile/compile-object-load.c (get_out_value_type): Use
6062 symbol_matches_search_name.
6063
6064 2020-04-24 Tom Tromey <tom@tromey.com>
6065
6066 * dwarf2/read.c (add_partial_symbol): Do not call
6067 compute_and_set_names.
6068
6069 2020-04-24 Tom Tromey <tom@tromey.com>
6070
6071 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6072 overload.
6073
6074 2020-04-24 Tom Tromey <tom@tromey.com>
6075
6076 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6077 (add_psymbol_to_list): New overload. Make old overload call new
6078 one.
6079 * psympriv.h (add_psymbol_to_list): New overload.
6080
6081 2020-04-24 Tom Tromey <tom@tromey.com>
6082
6083 * dwarf2/read.c (partial_die_info::read) <case
6084 DW_AT_linkage_name>: Use value_as_string.
6085 (dwarf2_string_attr): Use value_as_string.
6086 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6087 method.
6088 * dwarf2/attribute.c (attribute::value_as_string): New method.
6089
6090 2020-04-24 Tom Tromey <tom@tromey.com>
6091
6092 * symtab.c (general_symbol_info::natural_name)
6093 (general_symbol_info::demangled_name): Check for language_rust.
6094
6095 2020-04-24 Tom Tromey <tom@tromey.com>
6096
6097 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6098 (dwarf2_physname): ... from here.
6099 (partial_die_info::read): Add Rust "{" hack.
6100
6101 2020-04-24 Tom Tromey <tom@tromey.com>
6102
6103 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6104 method.
6105 (symbol_set_demangled_name): Don't declare.
6106 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6107 symbol_set_demangled_name.
6108 (general_symbol_info::set_language)
6109 (general_symbol_info::compute_and_set_names): Update.
6110 * minsyms.c (minimal_symbol_reader::install): Update.
6111 * dwarf2/read.c (new_symbol): Update.
6112
6113 2020-04-24 Tom Tromey <tromey@adacore.com>
6114
6115 PR python/23662:
6116 * python/py-type.c (convert_field): Handle
6117 FIELD_LOC_KIND_DWARF_BLOCK.
6118 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6119 (typy_get_dynamic): Nw function.
6120 (type_object_getset): Add "dynamic".
6121 * NEWS: Add entry.
6122
6123 2020-04-24 Tom Tromey <tromey@adacore.com>
6124
6125 * ada-typeprint.c (print_choices, print_variant_part)
6126 (print_record_field_types_dynamic): New functions.
6127 (print_record_field_types): Use print_record_field_types_dynamic.
6128
6129 2020-04-24 Tom Tromey <tromey@adacore.com>
6130
6131 * dwarf2/read.c (handle_data_member_location): New overload.
6132 (dwarf2_add_field): Use it.
6133 (decode_locdesc): Add "computed" parameter. Update comment.
6134 * gdbtypes.c (is_dynamic_type_internal): Also look for
6135 FIELD_LOC_KIND_DWARF_BLOCK.
6136 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6137 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6138 virtual base classes.
6139 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6140 FIELD_LOC_KIND_DWARF_BLOCK.
6141
6142 2020-04-24 Tom Tromey <tromey@adacore.com>
6143
6144 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6145 * gdbtypes.c (is_dynamic_type_internal): Check
6146 TYPE_HAS_DYNAMIC_LENGTH.
6147 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6148 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6149 New macros.
6150 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6151 constant.
6152
6153 2020-04-24 Tom Tromey <tromey@adacore.com>
6154
6155 * dwarf2/read.c (struct variant_field): Rewrite.
6156 (struct variant_part_builder): New.
6157 (struct nextfield): Remove "variant" field. Add "offset".
6158 (struct field_info): Add "current_variant_part" and
6159 "variant_parts".
6160 (alloc_discriminant_info): Remove.
6161 (alloc_rust_variant): New function.
6162 (quirk_rust_enum): Update.
6163 (dwarf2_add_field): Set "offset" member. Don't handle
6164 DW_TAG_variant_part.
6165 (offset_map_type): New typedef.
6166 (convert_variant_range, create_one_variant)
6167 (create_one_variant_part, create_variant_parts)
6168 (add_variant_property): New functions.
6169 (dwarf2_attach_fields_to_type): Call add_variant_property.
6170 (read_structure_type): Don't handle DW_TAG_variant_part.
6171 (handle_variant_part, handle_variant): New functions.
6172 (handle_struct_member_die): Use them.
6173 (process_structure_scope): Don't handle variant parts.
6174 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6175 (struct discriminant_info): Remove.
6176 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6177 (struct main_type) <flag_discriminated_union>: Remove.
6178 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6179 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6180 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6181 Update.
6182 * valops.c (value_union_variant): Remove.
6183 * value.h (value_union_variant): Don't declare.
6184
6185 2020-04-24 Tom Tromey <tromey@adacore.com>
6186
6187 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6188 (ada_value_primitive_packed_val): Update.
6189 * ada-valprint.c (ada_value_print_1): Update.
6190 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6191 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6192 just an address. Use evaluate_for_locexpr_baton.
6193 (dwarf2_evaluate_property): Update.
6194 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6195 array_view.
6196 * findvar.c (default_read_var_value): Update.
6197 * gdbtypes.c (compute_variant_fields_inner)
6198 (resolve_dynamic_type_internal): Update.
6199 (resolve_dynamic_type): Change type of valaddr parameter.
6200 * gdbtypes.h (resolve_dynamic_type): Update.
6201 * valarith.c (value_subscripted_rvalue): Update.
6202 * value.c (value_from_contents_and_address): Update.
6203
6204 2020-04-24 Tom Tromey <tromey@adacore.com>
6205
6206 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6207 "push_initial_value" parameter.
6208 (dwarf2_evaluate_property): Likewise.
6209 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6210
6211 2020-04-24 Tom Tromey <tromey@adacore.com>
6212
6213 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6214 (variant::matches, compute_variant_fields_recurse)
6215 (compute_variant_fields_inner, compute_variant_fields): New
6216 functions.
6217 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6218 Use resolved_type after type is made.
6219 (operator==): Add new cases.
6220 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6221 (struct discriminant_range, struct variant, struct variant_part):
6222 New.
6223 (union dynamic_prop_data) <variant_parts, original_type>: New
6224 members.
6225 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6226 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6227 constants.
6228 * value.c (unpack_bits_as_long): Now public.
6229 * value.h (unpack_bits_as_long): Declare.
6230
6231 2020-04-24 Tom Tromey <tromey@adacore.com>
6232
6233 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6234 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6235
6236 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6237
6238 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6239
6240 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6241
6242 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6243 (remove_fork_catchpoint, post_startup_inferior)
6244 (post_attach): Move...
6245 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6246 (remove_fork_catchpoint, post_startup_inferior)
6247 (post_attach): ...here.
6248 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6249 (remove_fork_catchpoint, post_startup_inferior)
6250 (post_attach): Move...
6251 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6252 (remove_fork_catchpoint, post_startup_inferior)
6253 (post_attach): ...here.
6254
6255 2020-04-24 Tom Tromey <tromey@adacore.com>
6256
6257 * nat/windows-nat.h (struct windows_thread_info)
6258 <pc_adjusted>: New member.
6259 * windows-nat.c (windows_fetch_one_register): Check
6260 pc_adjusted.
6261 (windows_nat_target::get_windows_debug_event)
6262 (windows_nat_target::wait): Set pc_adjusted.
6263
6264 2020-04-24 Tom de Vries <tdevries@suse.de>
6265
6266 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6267 Run gdb-add-index inside temp dir.
6268
6269 2020-04-23 Tom Tromey <tromey@adacore.com>
6270
6271 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6272 in loop.
6273
6274 2020-04-23 Luis Machado <luis.machado@linaro.org>
6275
6276 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6277 get_frame_register instead of gdbarch_unwind_pc.
6278
6279 2020-04-23 Tom de Vries <tdevries@suse.de>
6280
6281 * symtab.c (lookup_global_symbol): Prefer def over decl.
6282
6283 2020-04-23 Tom de Vries <tdevries@suse.de>
6284
6285 PR symtab/25807
6286 * block.c (best_symbol, better_symbol): Promote to external.
6287 * block.h (best_symbol, better_symbol): Declare.
6288 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6289 decl.
6290
6291 2020-04-23 Tom Tromey <tromey@adacore.com>
6292
6293 PR ada/25837:
6294 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6295 "const char *", not a "const std::string &".
6296 <name_and_matcher::operator==>: Update.
6297 * unittests/lookup_name_info-selftests.c: Change type of
6298 "result".
6299
6300 2020-04-23 Tom Tromey <tom@tromey.com>
6301
6302 * inferior.h (iterate_over_inferiors): Don't declare.
6303 * inferior.c (iterate_over_inferiors): Remove.
6304 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6305 Remove.
6306 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6307 use iterate_over_inferiors.
6308 (darwin_resume_inferior_it)
6309 (struct resume_inferior_threads_param)
6310 (darwin_resume_inferior_threads_it): Remove.
6311 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6312
6313 2020-04-23 Tom de Vries <tdevries@suse.de>
6314
6315 * blockframe.c (find_pc_partial_function): Use
6316 find_pc_sect_compunit_symtab rather than
6317 objfile->sf->qf->find_pc_sect_compunit_symtab.
6318
6319 2020-04-22 Tom de Vries <tdevries@suse.de>
6320
6321 PR symtab/25764
6322 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6323 in psymtabs.
6324
6325 2020-04-22 Tom de Vries <tdevries@suse.de>
6326
6327 PR symtab/25801
6328 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6329 symtabs.
6330
6331 2020-04-22 Tom de Vries <tdevries@suse.de>
6332
6333 PR symtab/25700
6334 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6335 CU if already created.
6336
6337 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6338
6339 * infrun.c (displaced_step_fixup): Switch to the event_thread
6340 before calling displaced_step_restore, not after.
6341
6342 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6343
6344 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6345 its inferior is not recorded by us.
6346 (record_btrace_target_open): Replace call to
6347 all_non_exited_threads () with call to current_inferior
6348 ()->non_exited_threads ().
6349 (record_btrace_target::stop_recording): Likewise.
6350 (record_btrace_target::close): Likewise.
6351 (record_btrace_target::wait): Likewise.
6352 (record_btrace_target::record_stop_replaying): Likewise.
6353
6354 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6355
6356 * btrace.c (btrace_enable): Throw an error on double enables and
6357 when enabling recording fails.
6358 (btrace_disable): Throw an error if the thread is not recorded.
6359
6360 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6361
6362 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6363 request if we do not have a thread_info.
6364
6365 2020-04-21 Tom de Vries <tdevries@suse.de>
6366
6367 PR gdb/25471
6368 * thread.c
6369 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6370 exception in get_frame_id.
6371
6372 2020-04-20 Tom Tromey <tromey@adacore.com>
6373
6374 * python/python.c (struct gdbpy_event): Mark move constructor as
6375 noexcept.
6376 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6377 constructor as noexcept.
6378 * completer.h (struct completion_result): Mark move constructor as
6379 noexcept.
6380 * completer.c (completion_result::completion_result): Use
6381 initialization style. Don't call reset_match_list.
6382
6383 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6384
6385 * MAINTAINERS (Write After Approval): Add myself.
6386
6387 2020-04-18 Tom Tromey <tom@tromey.com>
6388
6389 * windows-tdep.c (init_w32_command_list)
6390 (w32_prefix_command_valid): Restore.
6391 (_initialize_windows_tdep): Call init_w32_command_list.
6392
6393 2020-04-18 Tom Tromey <tom@tromey.com>
6394
6395 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6396 * value.c (value_fn_field): Update.
6397 * valops.c (find_function_in_inferior)
6398 (value_allocate_space_in_inferior): Update.
6399 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6400 Update.
6401 * tui/tui-source.c (tui_source_window::set_contents): Update.
6402 * symtab.c (lookup_global_or_static_symbol)
6403 (find_function_start_sal_1, skip_prologue_sal)
6404 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6405 * symmisc.c (dump_msymbols, dump_symtab_1)
6406 (maintenance_print_one_line_table): Update.
6407 * symfile.c (init_entry_point_info, section_is_mapped)
6408 (list_overlays_command, simple_read_overlay_table)
6409 (simple_overlay_update_1): Update.
6410 * stap-probe.c (handle_stap_probe): Update.
6411 * stabsread.c (dbx_init_float_type, define_symbol)
6412 (read_one_struct_field, read_enum_type, read_range_type): Update.
6413 * source.c (info_line_command): Update.
6414 * python/python.c (gdbpy_source_objfile_script)
6415 (gdbpy_execute_objfile_script): Update.
6416 * python/py-type.c (save_objfile_types): Update.
6417 * python/py-objfile.c (py_free_objfile): Update.
6418 * python/py-inferior.c (python_new_objfile): Update.
6419 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6420 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6421 (maintenance_check_psymtabs): Update.
6422 * printcmd.c (info_address_command): Update.
6423 * objfiles.h (struct objfile) <arch>: New method, from
6424 get_objfile_arch.
6425 (get_objfile_arch): Don't declare.
6426 * objfiles.c (get_objfile_arch): Remove.
6427 (filter_overlapping_sections): Update.
6428 * minsyms.c (msymbol_is_function): Update.
6429 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6430 (output_nondebug_symbol): Update.
6431 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6432 (mdebug_expand_psymtab): Update.
6433 * machoread.c (macho_add_oso_symfile): Update.
6434 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6435 Update.
6436 * linux-fork.c (checkpoint_command): Update.
6437 * linespec.c (convert_linespec_to_sals): Update.
6438 * jit.c (finalize_symtab): Update.
6439 * infrun.c (insert_exception_resume_from_probe): Update.
6440 * ia64-tdep.c (ia64_find_unwind_table): Update.
6441 * hppa-tdep.c (internalize_unwinds): Update.
6442 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6443 Update.
6444 * gcore.c (call_target_sbrk): Update.
6445 * elfread.c (record_minimal_symbol, elf_symtab_read)
6446 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6447 (elf_gnu_ifunc_resolve_by_got): Update.
6448 * dwarf2/read.c (create_addrmap_from_index)
6449 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6450 (read_debug_names_from_section)
6451 (process_psymtab_comp_unit_reader, add_partial_symbol)
6452 (add_partial_subprogram, process_full_comp_unit)
6453 (read_file_scope, read_func_scope, read_lexical_block_scope)
6454 (read_call_site_scope, dwarf2_ranges_read)
6455 (dwarf2_record_block_ranges, dwarf2_add_field)
6456 (mark_common_block_symbol_computed, read_tag_pointer_type)
6457 (read_tag_string_type, dwarf2_init_float_type)
6458 (dwarf2_init_complex_target_type, read_base_type)
6459 (partial_die_info::read, partial_die_info::read)
6460 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6461 (dwarf2_fetch_die_loc_sect_off): Update.
6462 * dwarf2/loc.c (dwarf2_find_location_expression)
6463 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6464 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6465 (dwarf2_loc_desc_get_symbol_read_needs)
6466 (locexpr_describe_location_piece, locexpr_describe_location_1)
6467 (loclist_describe_location): Update.
6468 * dwarf2/index-write.c (write_debug_names): Update.
6469 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6470 * dtrace-probe.c (dtrace_process_dof): Update.
6471 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6472 (process_one_symbol): Update.
6473 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6474 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6475 (coff_read_enum_type): Update.
6476 * cli/cli-cmds.c (edit_command, list_command): Update.
6477 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6478 * breakpoint.c (create_overlay_event_breakpoint)
6479 (create_longjmp_master_breakpoint)
6480 (create_std_terminate_master_breakpoint)
6481 (create_exception_master_breakpoint, get_sal_arch): Update.
6482 * block.c (block_gdbarch): Update.
6483 * annotate.c (annotate_source_line): Update.
6484
6485 2020-04-17 Tom Tromey <tromey@adacore.com>
6486
6487 * auto-load.c (show_auto_load_cmd): Remove.
6488 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6489 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6490 (maintenance_print_arc_command): Remove.
6491 * tui/tui-win.c (tui_command): Remove.
6492 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6493 * tui/tui-layout.c (tui_layout_command): Remove.
6494 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6495 * python/python.c (user_set_python, user_show_python): Remove.
6496 (_initialize_python): Use add_basic_prefix_cmd,
6497 add_show_prefix_cmd.
6498 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6499 (install_gdb_commands): Use add_basic_prefix_cmd,
6500 add_show_prefix_cmd.
6501 (info_guile_command): Remove.
6502 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6503 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6504 add_show_prefix_cmd.
6505 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6506 Remove do_set and do_show parameters.
6507 * cli/cli-style.c (set_style, show_style): Remove.
6508 (_initialize_cli_style): Use add_basic_prefix_cmd,
6509 add_show_prefix_cmd.
6510 (cli_style_option::add_setshow_commands): Remove do_set and
6511 do_show parameters.
6512 (cli_style_option::add_setshow_commands): Use
6513 add_basic_prefix_cmd, add_show_prefix_cmd.
6514 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6515 (set_style_name): Remove.
6516 * cli/cli-dump.c (dump_command, append_command): Remove.
6517 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6518 (tekhex_dump_command, binary_dump_command)
6519 (binary_append_command): Remove.
6520 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6521 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6522 (init_w32_command_list): Remove; move into ...
6523 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6524 * valprint.c (set_print, show_print, set_print_raw)
6525 (show_print_raw): Remove.
6526 (_initialize_valprint): Use add_basic_prefix_cmd,
6527 add_show_prefix_cmd.
6528 * typeprint.c (set_print_type, show_print_type): Remove.
6529 (_initialize_typeprint): Use add_basic_prefix_cmd,
6530 add_show_prefix_cmd.
6531 * record.c (set_record_command, show_record_command): Remove.
6532 (_initialize_record): Use add_basic_prefix_cmd,
6533 add_show_prefix_cmd.
6534 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6535 add_show_prefix_cmd.
6536 (info_command, show_command, set_debug, show_debug): Remove.
6537 * top.h (set_history, show_history): Don't declare.
6538 * top.c (set_history, show_history): Remove.
6539 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6540 (unset_tdesc_cmd): Remove.
6541 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6542 add_show_prefix_cmd.
6543 * symtab.c (info_module_command): Remove.
6544 (_initialize_symtab): Use add_basic_prefix_cmd.
6545 * symfile.c (overlay_command): Remove.
6546 (_initialize_symfile): Use add_basic_prefix_cmd.
6547 * sparc64-tdep.c (info_adi_command): Remove.
6548 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6549 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6550 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6551 add_show_prefix_cmd.
6552 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6553 (_initialize_serial): Use add_basic_prefix_cmd,
6554 add_show_prefix_cmd.
6555 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6556 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6557 add_show_prefix_cmd.
6558 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6559 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6560 add_show_prefix_cmd.
6561 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6562 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6563 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6564 add_show_prefix_cmd.
6565 * remote.c (remote_command, set_remote_cmd): Remove.
6566 (_initialize_remote): Use add_basic_prefix_cmd.
6567 * record-full.c (set_record_full_command)
6568 (show_record_full_command): Remove.
6569 (_initialize_record_full): Use add_basic_prefix_cmd,
6570 add_show_prefix_cmd.
6571 * record-btrace.c (cmd_set_record_btrace)
6572 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6573 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6574 (cmd_show_record_btrace_pt): Remove.
6575 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6576 add_show_prefix_cmd.
6577 * ravenscar-thread.c (set_ravenscar_command)
6578 (show_ravenscar_command): Remove.
6579 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6580 add_show_prefix_cmd.
6581 * mips-tdep.c (show_mips_command, set_mips_command)
6582 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6583 add_show_prefix_cmd.
6584 * maint.c (maintenance_command, maintenance_info_command)
6585 (maintenance_check_command, maintenance_print_command)
6586 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6587 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6588 add_show_prefix_cmd.
6589 (show_per_command_cmd): Remove.
6590 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6591 Remove.
6592 (maintenance_show_test_settings_cmd): Remove.
6593 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6594 add_show_prefix_cmd.
6595 * maint-test-options.c (maintenance_test_options_command):
6596 Remove.
6597 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6598 * macrocmd.c (macro_command): Remove
6599 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6600 * language.c (set_check, show_check): Remove.
6601 (_initialize_language): Use add_basic_prefix_cmd,
6602 add_show_prefix_cmd.
6603 * infcmd.c (unset_command): Remove.
6604 (_initialize_infcmd): Use add_basic_prefix_cmd.
6605 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6606 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6607 add_show_prefix_cmd.
6608 * go32-nat.c (go32_info_dos_command): Remove.
6609 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6610 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6611 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6612 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6613 (_initialize_frame): Use add_basic_prefix_cmd,
6614 add_show_prefix_cmd.
6615 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6616 (_initialize_dcache): Use add_basic_prefix_cmd,
6617 add_show_prefix_cmd.
6618 * cp-support.c (maint_cplus_command): Remove.
6619 (_initialize_cp_support): Use add_basic_prefix_cmd.
6620 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6621 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6622 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6623 add_basic_prefix_cmd, add_show_prefix_cmd.
6624 * breakpoint.c (save_command): Remove.
6625 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6626 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6627 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6628 add_show_prefix_cmd.
6629 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6630 (set_ada_command, show_ada_command): Remove.
6631 (_initialize_ada_language): Use add_basic_prefix_cmd,
6632 add_show_prefix_cmd.
6633 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6634
6635 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6636
6637 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6638 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6639
6640 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6641
6642 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6643 warning messages.
6644
6645 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6646
6647 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6648 import table is not at beginning of .idata section.
6649
6650 2020-04-16 Pedro Alves <palves@redhat.com>
6651
6652 * inferior.c (delete_inferior): Use delete operator directly
6653 instead of delete_program_space.
6654 * progspace.c (add_program_space): New, factored out from
6655 program_space::program_space.
6656 (remove_program_space): New, factored out from
6657 delete_program_space.
6658 (program_space::program_space): Remove intro comment. Rewrite.
6659 (program_space::~program_space): Remove intro comment. Call
6660 remove_program_space.
6661 (delete_program_space): Delete.
6662 * progspace.h (program_space::program_space): Make explicit. Move
6663 intro comment here, adjusted.
6664 (program_space::~program_space): Move intro comment here,
6665 adjusted.
6666 (delete_program_space): Remove.
6667
6668 2020-04-16 Tom Tromey <tromey@adacore.com>
6669
6670 * windows-nat.c (windows_nat::handle_access_violation): New
6671 function.
6672 * nat/windows-nat.h (handle_access_violation): Declare.
6673 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6674 windows-nat.c. Call handle_access_violation.
6675
6676 2020-04-16 Tom de Vries <tdevries@suse.de>
6677
6678 PR symtab/25791
6679 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6680 CUs without psymtab.
6681
6682 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6683
6684 * python/python.c (do_start_initialization): Don't call
6685 PyEval_InitThreads for Python 3.9 and beyond.
6686
6687 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6688
6689 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6690 thread functions.
6691 (obsd_nat_target::wait): Likewise.
6692
6693 2020-04-15 Tom Tromey <tromey@adacore.com>
6694
6695 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6696 (DEBUG_EXCEPT): Use debug_printf.
6697
6698 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6699
6700 * completer.c (class completion_tracker::completion_hash_entry)
6701 <hash_name>: New member function.
6702 (completion_tracker::discard_completions): New callback to hash a
6703 completion_hash_entry, pass this to htab_create_alloc.
6704
6705 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6706
6707 * windows-nat.c (windows_make_so): Warn rather than stopping with
6708 an error if realpath() fails.
6709
6710 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6711
6712 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6713 (nbsd_nat_target::info_proc): Add do_status.
6714
6715 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6716 Tom de Vries <tdevries@suse.de>
6717
6718 PR symtab/25718
6719 * psympriv.h (struct partial_symtab::read_symtab)
6720 (struct partial_symtab::expand_psymtab)
6721 (struct partial_symtab::read_dependencies): Update comments.
6722 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6723 read_symtab for includer.
6724 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6725 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6726 (struct dwarf2_include_psymtab::m_readin): Remove.
6727 (struct dwarf2_include_psymtab::includer): New member function.
6728 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6729
6730 2020-04-14 Tom de Vries <tdevries@suse.de>
6731
6732 PR symtab/25720
6733 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6734 with NULL symbol_matcher and lookup_name.
6735 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6736 and lookup_name.
6737 * dwarf2/read.c (dw2_expand_symtabs_matching)
6738 (dw2_debug_names_expand_symtabs_matching): Same.
6739 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6740 Make lookup_name a pointer. Update comment.
6741 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6742 lookup_name being a pointer.
6743 * symfile.c (expand_symtabs_matching): Same.
6744 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6745 * linespec.c (iterate_over_all_matching_symtabs): Same.
6746
6747 2020-04-13 Tom Tromey <tom@tromey.com>
6748
6749 * run-on-main-thread.c: Update include.
6750 * unittests/main-thread-selftests.c: Update include.
6751 * tui/tui-win.c: Update include.
6752 * tui/tui-io.c: Update include.
6753 * tui/tui-interp.c: Update include.
6754 * tui/tui-hooks.c: Update include.
6755 * top.h: Update include.
6756 * top.c: Update include.
6757 * ser-base.c: Update include.
6758 * remote.c: Update include.
6759 * remote-notif.c: Update include.
6760 * remote-fileio.c: Update include.
6761 * record-full.c: Update include.
6762 * record-btrace.c: Update include.
6763 * python/python.c: Update include.
6764 * posix-hdep.c: Update include.
6765 * mingw-hdep.c: Update include.
6766 * mi/mi-main.c: Update include.
6767 * mi/mi-interp.c: Update include.
6768 * main.c: Update include.
6769 * linux-nat.c: Update include.
6770 * interps.c: Update include.
6771 * infrun.c: Update include.
6772 * inf-loop.c: Update include.
6773 * event-top.c: Update include.
6774 * event-loop.c: Move to ../gdbsupport/.
6775 * event-loop.h: Move to ../gdbsupport/.
6776 * async-event.h: Update include.
6777 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6778
6779 2020-04-13 Tom Tromey <tom@tromey.com>
6780
6781 * tui/tui-win.c: Include async-event.h.
6782 * remote.c: Include async-event.h.
6783 * remote-notif.c: Include async-event.h.
6784 * record-full.c: Include async-event.h.
6785 * record-btrace.c: Include async-event.h.
6786 * infrun.c: Include async-event.h.
6787 * event-top.c: Include async-event.h.
6788 * event-loop.h: Move some declarations to async-event.h.
6789 * event-loop.c: Don't include ser-event.h or top.h. Move some
6790 code to async-event.c.
6791 * async-event.h: New file.
6792 * async-event.c: New file.
6793 * Makefile.in (COMMON_SFILES): Add async-event.c.
6794 (HFILES_NO_SRCDIR): Add async-event.h.
6795
6796 2020-04-13 Tom Tromey <tom@tromey.com>
6797
6798 * utils.c (flush_streams): New function.
6799 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6800
6801 2020-04-13 Tom Tromey <tom@tromey.com>
6802
6803 * event-loop.c (handle_file_event): Use warning, not
6804 printf_unfiltered.
6805
6806 2020-04-13 Tom Tromey <tom@tromey.com>
6807
6808 * event-loop.c: Include <chrono>.
6809
6810 2020-04-13 Tom Tromey <tom@tromey.com>
6811
6812 * gdb_select.h: Move to ../gdbsupport/.
6813 * event-loop.c: Update include path.
6814 * top.c: Update include path.
6815 * ser-base.c: Update include path.
6816 * ui-file.c: Update include path.
6817 * ser-tcp.c: Update include path.
6818 * guile/scm-ports.c: Update include path.
6819 * posix-hdep.c: Update include path.
6820 * ser-unix.c: Update include path.
6821 * gdb_usleep.c: Update include path.
6822 * mingw-hdep.c: Update include path.
6823 * inflow.c: Update include path.
6824 * infrun.c: Update include path.
6825 * event-top.c: Update include path.
6826
6827 2020-04-13 Tom Tromey <tom@tromey.com>
6828
6829 * configure: Rebuild.
6830 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6831
6832 2020-04-13 Tom Tromey <tom@tromey.com>
6833
6834 * event-loop.h (start_event_loop): Don't declare.
6835 * event-loop.c (start_event_loop): Move...
6836 * main.c (start_event_loop): ...here. Now static.
6837
6838 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6839
6840 * MAINTAINERS: Update my email address.
6841
6842 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6843
6844 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6845 IP_ALL.
6846
6847 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6848
6849 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6850 (nbsd_nat_target::info_proc): Add do_cmdline.
6851
6852 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6853
6854 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6855 (nbsd_nat_target::info_proc): Add do_cwd.
6856
6857 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6858
6859 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6860
6861 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6862
6863 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6864 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6865 (nbsd_nat_target::info_proc): New functions.
6866 * nbsd-nat.c (kinfo_get_vmmap): New function.
6867 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6868 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6869 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6870 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6871 functions.
6872 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6873 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6874 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6875 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6876 (KINFO_VME_FLAG_GROWS_DOWN): New.
6877
6878 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6879
6880 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6881 bit shift.
6882
6883 2020-04-10 Tom Tromey <tromey@adacore.com>
6884
6885 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6886
6887 2020-04-10 Tom Tromey <tromey@adacore.com>
6888
6889 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6890 separate debug files.
6891
6892 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6893
6894 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6895 Move to...
6896 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6897 ... here.
6898 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6899 Check for STATUS_WX86_BREAKPOINT.
6900 (windows_nat_target::wait): Same.
6901
6902 2020-04-10 Tom de Vries <tdevries@suse.de>
6903
6904 PR cli/25808
6905 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6906
6907 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6908
6909 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6910 (Write After Approval): Remove Tom de Vries.
6911
6912 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6913
6914 revert partially:
6915 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6916
6917 * buildsym.c (record_line): Fix undefined behavior and preserve
6918 lines at eof.
6919
6920 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6921
6922 * auxv.h (svr4_auxv_parse): New.
6923 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6924 and generic_auxv_parse.
6925 (svr4_auxv_parse): Add.
6926 * obsd-tdep.c: Include "auxv.h".
6927 (obsd_auxv_parse): Remove.
6928 (obsd_init_abi): Remove comment.
6929 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6930 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6931 * nbsd-tdep.c: Include "auxv.h".
6932 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6933
6934 2020-04-08 Tom Tromey <tromey@adacore.com>
6935
6936 * nat/windows-nat.h (last_wait_event): Don't declare.
6937 (wait_for_debug_event): Update comment.
6938 * nat/windows-nat.c (last_wait_event): Now static.
6939
6940 2020-04-08 Tom Tromey <tromey@adacore.com>
6941
6942 * windows-nat.c (wait_for_debug_event): Move to
6943 nat/windows-nat.c.
6944 * nat/windows-nat.h (wait_for_debug_event): Declare.
6945 * nat/windows-nat.c (wait_for_debug_event): Move from
6946 windows-nat.c. No longer static.
6947
6948 2020-04-08 Tom Tromey <tromey@adacore.com>
6949
6950 * windows-nat.c (get_windows_debug_event): Use
6951 fetch_pending_stop.
6952 * nat/windows-nat.h (fetch_pending_stop): Declare.
6953 * nat/windows-nat.c (fetch_pending_stop): New function.
6954
6955 2020-04-08 Tom Tromey <tromey@adacore.com>
6956
6957 * windows-nat.c (windows_continue): Use matching_pending_stop and
6958 continue_last_debug_event.
6959 * nat/windows-nat.h (matching_pending_stop)
6960 (continue_last_debug_event): Declare.
6961 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6962 (matching_pending_stop, continue_last_debug_event): New
6963 functions.
6964
6965 2020-04-08 Tom Tromey <tromey@adacore.com>
6966
6967 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6968 (handle_exception_result): Move to nat/windows-nat.h.
6969 (DEBUG_EXCEPTION_SIMPLE): Remove.
6970 (windows_nat::handle_ms_vc_exception): New function.
6971 (handle_exception): Move to nat/windows-nat.c.
6972 (get_windows_debug_event): Update.
6973 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6974 nat/windows-nat.c.
6975 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6976 (handle_exception_result): Move from windows-nat.c.
6977 (handle_exception): Declare.
6978 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6979 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6980 windows-nat.c.
6981
6982 2020-04-08 Tom Tromey <tromey@adacore.com>
6983
6984 * windows-nat.c (exception_count, event_count): Remove.
6985 (handle_exception, get_windows_debug_event)
6986 (do_initial_windows_stuff): Update.
6987
6988 2020-04-08 Tom Tromey <tromey@adacore.com>
6989
6990 * windows-nat.c (windows_nat::handle_load_dll)
6991 (windows_nat::handle_unload_dll): Rename. No longer static.
6992 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6993 Declare.
6994
6995 2020-04-08 Tom Tromey <tromey@adacore.com>
6996
6997 * complaints.h (stop_whining): Declare at top-level.
6998 (complaint): Don't declare stop_whining.
6999
7000 2020-04-08 Tom Tromey <tromey@adacore.com>
7001
7002 * windows-nat.c (windows_nat::handle_output_debug_string):
7003 Rename. No longer static.
7004 * nat/windows-nat.h (handle_output_debug_string): Declare.
7005
7006 2020-04-08 Tom Tromey <tromey@adacore.com>
7007
7008 * windows-nat.c (current_process_handle, current_process_id)
7009 (main_thread_id, last_sig, current_event, last_wait_event)
7010 (current_windows_thread, desired_stop_thread_id, pending_stops)
7011 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7012 (display_selectors, fake_create_process)
7013 (get_windows_debug_event): Update.
7014 * nat/windows-nat.h (current_process_handle, current_process_id)
7015 (main_thread_id, last_sig, current_event, last_wait_event)
7016 (current_windows_thread, desired_stop_thread_id, pending_stops)
7017 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7018 * nat/windows-nat.c (current_process_handle, current_process_id)
7019 (main_thread_id, last_sig, current_event, last_wait_event)
7020 (current_windows_thread, desired_stop_thread_id, pending_stops)
7021 (siginfo_er): New globals. Move from windows-nat.c.
7022
7023 2020-04-08 Tom Tromey <tromey@adacore.com>
7024
7025 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7026 (handle_load_dll): Update.
7027 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7028
7029 2020-04-08 Tom Tromey <tromey@adacore.com>
7030
7031 * windows-nat.c (enum thread_disposition_type): Move to
7032 nat/windows-nat.h.
7033 (windows_nat::thread_rec): Rename from thread_rec. No longer
7034 static.
7035 (windows_add_thread, windows_nat_target::fetch_registers)
7036 (windows_nat_target::store_registers, handle_exception)
7037 (windows_nat_target::resume, get_windows_debug_event)
7038 (windows_nat_target::get_tib_address)
7039 (windows_nat_target::thread_name)
7040 (windows_nat_target::thread_alive): Update.
7041 * nat/windows-nat.h (enum thread_disposition_type): Move from
7042 windows-nat.c.
7043 (thread_rec): Declare.
7044
7045 2020-04-08 Tom Tromey <tromey@adacore.com>
7046
7047 * windows-nat.c: Add "using namespace".
7048 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7049 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7050
7051 2020-04-08 Tom Tromey <tromey@adacore.com>
7052
7053 * nat/windows-nat.h (struct windows_thread_info): Declare
7054 destructor.
7055 * nat/windows-nat.c (~windows_thread_info): New.
7056
7057 2020-04-08 Tom Tromey <tromey@adacore.com>
7058
7059 PR gdb/22992
7060 * windows-nat.c (current_event): Update comment.
7061 (last_wait_event, desired_stop_thread_id): New globals.
7062 (struct pending_stop): New.
7063 (pending_stops): New global.
7064 (windows_nat_target) <stopped_by_sw_breakpoint>
7065 <supports_stopped_by_sw_breakpoint>: New methods.
7066 (windows_fetch_one_register): Add assertions. Adjust PC.
7067 (windows_continue): Handle pending stops. Suspend other threads
7068 when stepping. Use last_wait_event
7069 (wait_for_debug_event): New function.
7070 (get_windows_debug_event): Use wait_for_debug_event. Handle
7071 pending stops. Queue spurious stops.
7072 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7073 (windows_nat_target::kill): Use wait_for_debug_event.
7074 * nat/windows-nat.h (struct windows_thread_info)
7075 <stopped_at_software_breakpoint>: New field.
7076 * nat/windows-nat.c (windows_thread_info::resume): Clear
7077 stopped_at_software_breakpoint.
7078
7079 2020-04-08 Tom Tromey <tromey@adacore.com>
7080
7081 * windows-nat.c (enum thread_disposition_type): New.
7082 (thread_rec): Replace "get_context" parameter with "disposition";
7083 change type.
7084 (windows_add_thread, windows_nat_target::fetch_registers)
7085 (windows_nat_target::store_registers, handle_exception)
7086 (windows_nat_target::resume, get_windows_debug_event)
7087 (windows_nat_target::get_tib_address)
7088 (windows_nat_target::thread_name)
7089 (windows_nat_target::thread_alive): Update.
7090
7091 2020-04-08 Tom Tromey <tromey@adacore.com>
7092
7093 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7094 (windows_continue): Use windows_continue::resume.
7095 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7096 resume>: Declare new methods.
7097 * nat/windows-nat.c: New file.
7098 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7099
7100 2020-04-08 Tom Tromey <tromey@adacore.com>
7101
7102 * windows-nat.c (windows_add_thread, windows_delete_thread)
7103 (windows_nat_target::fetch_registers)
7104 (windows_nat_target::store_registers, fake_create_process)
7105 (windows_nat_target::resume, windows_nat_target::resume)
7106 (get_windows_debug_event, windows_nat_target::wait)
7107 (windows_nat_target::pid_to_str)
7108 (windows_nat_target::get_tib_address)
7109 (windows_nat_target::get_ada_task_ptid)
7110 (windows_nat_target::thread_name)
7111 (windows_nat_target::thread_alive): Use lwp, not tid.
7112
7113 2020-04-08 Tom Tromey <tromey@adacore.com>
7114
7115 * windows-nat.c (handle_exception)
7116 (windows_nat_target::thread_name): Update.
7117 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7118 <name>: Now unique_xmalloc_ptr.
7119
7120 2020-04-08 Tom Tromey <tromey@adacore.com>
7121
7122 * windows-nat.c (thread_rec)
7123 (windows_nat_target::fetch_registers): Update.
7124 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7125 Update comment.
7126 <debug_registers_changed, reload_context>: Now bool.
7127
7128 2020-04-08 Tom Tromey <tromey@adacore.com>
7129
7130 * windows-nat.c (windows_add_thread): Use new.
7131 (windows_init_thread_list, windows_delete_thread): Use delete.
7132 (get_windows_debug_event): Update.
7133 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7134 destructor, and initializers.
7135
7136 2020-04-08 Tom Tromey <tromey@adacore.com>
7137
7138 * windows-nat.c (struct windows_thread_info): Remove.
7139 * nat/windows-nat.h: New file.
7140
7141 2020-04-08 Tom Tromey <tromey@adacore.com>
7142
7143 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7144 (thread_rec, windows_add_thread, windows_delete_thread)
7145 (windows_continue): Update.
7146
7147 2020-04-08 Tom Tromey <tromey@adacore.com>
7148
7149 * windows-nat.c (struct windows_thread_info): Remove typedef.
7150 (thread_head): Remove.
7151 (thread_list): New global.
7152 (thread_rec, windows_add_thread, windows_init_thread_list)
7153 (windows_delete_thread, windows_continue): Update.
7154
7155 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7156
7157 * windows-tdep.h (windows_init_abi): Add comment.
7158 (cygwin_init_abi): New declaration.
7159 * windows-tdep.c: Split signal enumeration in two, one for
7160 Windows and one for Cygwin.
7161 (windows_gdb_signal_to_target): Only deal with signal of the
7162 Windows OS ABI.
7163 (cygwin_gdb_signal_to_target): New function.
7164 (windows_init_abi): Rename to windows_init_abi_common, don't set
7165 gdb_signal_to_target gdbarch method. Add new new function with
7166 this name.
7167 (cygwin_init_abi): New function.
7168 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7169 comment. Don't call windows_init_abi.
7170 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7171 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7172 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7173 i386_windows_init_abi_common, don't call windows_init_abi. Add
7174 a new function of this name.
7175 (i386_cygwin_init_abi): New function.
7176 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7177 OS ABI Cygwin.
7178
7179 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7180
7181 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7182 parameter.c.
7183 (dwarf2_read_gdb_index): Update.
7184
7185 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7186
7187 * nbsd-tdep.c: Include "objfiles.h".
7188 (nbsd_skip_solib_resolver): New.
7189 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7190
7191 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7192
7193 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7194 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7195 with DW_LLE_base_addressx are being emitted in DWARFv5.
7196 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7197 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7198 unsigned integer.
7199
7200 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7201
7202 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7203 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7204 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7205 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7206 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7207 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7208 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7209
7210
7211 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7212
7213 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7214 (read_loclist_index): New function definition.
7215 (lookup_loclist_base): New function definition.
7216 (read_loclist_header): New function definition.
7217 (dwarf2_cu): Add loclist_base and loclist_header field.
7218 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7219 (read_full_die_1): Read the value of DW_AT_loclists_base.
7220 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7221 (read_attribute_value): Handle DW_FORM_loclistx.
7222 (skip_one_die): Handle DW_FORM_loclistx.
7223 (loclist_header): New structure declaration.
7224 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7225
7226 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7227
7228 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7229 constructor. Remove `addr` parameter from other constructor and
7230 add `per_cu` parameter.
7231 * dwarf2/read.c (create_partial_symtab): Update.
7232
7233 2020-04-07 Tom de Vries <tdevries@suse.de>
7234
7235 PR symtab/25796
7236 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7237 (partial_die_info::fixup): Inherit has_const_value.
7238
7239 2020-04-07 Tom de Vries <tdevries@suse.de>
7240
7241 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7242 symbols without address.
7243
7244 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7245
7246 * nbsd-nat.h (struct thread_info): Add forward declaration.
7247 (nbsd_nat_target::thread_alive): Add.
7248 (nbsd_nat_target::thread_name): Likewise.
7249 (nbsd_nat_target::update_thread_list): Likewise.
7250 (update_thread_list::post_attach): Likewise.
7251 (post_attach::pid_to_str): Likewise.
7252 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7253 (nbsd_thread_lister): Add.
7254 (nbsd_nat_target::thread_alive): Likewise.
7255 (nbsd_nat_target::thread_name): Likewise.
7256 (nbsd_add_threads): Likewise.
7257 (update_thread_list::post_attach): Likewise.
7258 (nbsd_nat_target::update_thread_list): Likewise.
7259 (post_attach::pid_to_str): Likewise.
7260
7261 2020-04-06 Tom Tromey <tromey@adacore.com>
7262
7263 * ada-valprint.c (print_variant_part): Extract the variant field.
7264 (print_field_values): Use the field as the outer value when
7265 recursing.
7266
7267 2020-04-06 Tom Tromey <tromey@adacore.com>
7268
7269 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7270 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7271 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7272 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7273 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7274
7275 2020-04-06 Tom Tromey <tromey@adacore.com>
7276
7277 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7278 TYPE_CODE_ERROR.
7279
7280 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7281
7282 * nbsd-tdep.c: Include "gdbarch.h".
7283 Define enum with NetBSD signal numbers.
7284 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7285 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7286 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7287 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7288 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7289 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7290 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7291 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7292 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7293 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7294 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7295 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7296
7297 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7298
7299 PR gdb/25325
7300 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7301
7302 2020-04-03 Tom Tromey <tromey@adacore.com>
7303
7304 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7305 Read constant block.
7306
7307 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7308
7309 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7310 (gdb_bfd_get_full_section_contents): New declaration.
7311 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7312 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7313 gdb_bfd_get_full_section_contents.
7314
7315 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7316
7317 * exec.c (build_section_table): Replace internal_error with
7318 gdb_assert.
7319 (section_table_xfer_memory_partial): Likewise.
7320 * mdebugread.c (parse_partial_symbols): Likewise.
7321 * psymtab.c (lookup_partial_symbol): Likewise.
7322 * utils.c (wrap_here): Likewise.
7323
7324 2020-04-02 Tom Tromey <tromey@adacore.com>
7325
7326 * f-lang.c (build_fortran_types): Use arch_type to initialize
7327 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7328
7329 2020-04-02 Tom Tromey <tromey@adacore.com>
7330
7331 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7332 of attributes.
7333
7334 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7335 Bernd Edlinger <bernd.edlinger@hotmail.de>
7336 Tom Tromey <tromey@adacore.com>
7337
7338 * buildsym.c (buildsym_compunit::record_line): Remove
7339 deduplication code.
7340
7341 2020-04-02 Tom de Vries <tdevries@suse.de>
7342
7343 PR ada/24671
7344 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7345
7346 2020-04-02 Tom de Vries <tdevries@suse.de>
7347
7348 * dwarf2/read.c (dwarf2_gdb_index_functions,
7349 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7350 NULL.
7351 * psymtab.c (psym_lookup_global_symbol_language): New function.
7352 (psym_functions): Init psym_lookup_global_symbol_language with
7353 psym_lookup_global_symbol_language.
7354 * symfile-debug.c (debug_sym_quick_functions): Init
7355 lookup_global_symbol_language with NULL.
7356 * symfile.c (set_initial_language): Remove fixme comment.
7357 * symfile.h (struct quick_symbol_functions): Add
7358 lookup_global_symbol_language.
7359 * symtab.c (find_quick_global_symbol_language): New function.
7360 (find_main_name): Use find_quick_global_symbol_language.
7361
7362 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7363
7364 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7365
7366 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7367
7368 * buildsym.c (record_line): Fix undefined behavior and preserve
7369 lines at eof.
7370
7371 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7372
7373 * buildsym.c (record_line): Fix the resizing condition.
7374
7375 2020-04-01 Tom Tromey <tom@tromey.com>
7376
7377 * value.h (value_literal_complex): Add comment.
7378 * valops.c (value_literal_complex): Refer to value.h.
7379
7380 2020-04-01 Tom Tromey <tom@tromey.com>
7381
7382 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7383 (scalar_type): New rule, from typebase.
7384 (typebase): Use scalar_type. Recognize complex types.
7385 (field_name): Handle FLOAT_KEYWORD.
7386 (ident_tokens): Add _Complex and __complex__.
7387
7388 2020-04-01 Tom Tromey <tom@tromey.com>
7389
7390 PR exp/25299:
7391 * valarith.c (promotion_type, complex_binop): New functions.
7392 (scalar_binop): Handle complex numbers. Use promotion_type.
7393 (value_pos, value_neg, value_complement): Handle complex numbers.
7394
7395 2020-04-01 Tom Tromey <tom@tromey.com>
7396
7397 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7398 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7399 (parse_number): Handle complex numbers.
7400
7401 2020-04-01 Tom Tromey <tom@tromey.com>
7402
7403 * c-valprint.c (c_decorations): Change complex suffix to "i".
7404
7405 2020-04-01 Tom Tromey <tom@tromey.com>
7406
7407 * valprint.c (generic_value_print_complex): Use accessors.
7408 * value.h (value_real_part, value_imaginary_part): Declare.
7409 * valops.c (value_real_part, value_imaginary_part): New
7410 functions.
7411 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7412
7413 2020-04-01 Tom Tromey <tom@tromey.com>
7414
7415 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7416 (read_range_type): Update.
7417 * mdebugread.c (basic_type): Update.
7418 * go-lang.c (build_go_types): Use init_complex_type.
7419 * gdbtypes.h (struct main_type) <complex_type>: New member.
7420 (init_complex_type): Update.
7421 (arch_complex_type): Don't declare.
7422 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7423 Make name if none given. Use alloc_type_copy. Look for cached
7424 complex type.
7425 (arch_complex_type): Remove.
7426 (gdbtypes_post_init): Use init_complex_type.
7427 * f-lang.c (build_fortran_types): Use init_complex_type.
7428 * dwarf2/read.c (read_base_type): Update.
7429 * d-lang.c (build_d_types): Use init_complex_type.
7430 * ctfread.c (read_base_type): Update.
7431
7432 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7433
7434 * infrun.c (stop_all_threads): Update assertion, plus when
7435 stopping threads, take into account that we might be trying
7436 to stop an all-stop target.
7437 (stop_waiting): Call 'stop_all_threads' if there exists a
7438 non-stop target.
7439
7440 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7441
7442 * target.h (exists_non_stop_target): New function declaration.
7443 * target.c (exists_non_stop_target): New function.
7444
7445 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7446
7447 PR gdb/24789
7448 * eval.c (is_integral_or_integral_reference): New function.
7449 (evaluate_subexp_standard): Allow integer references in
7450 pointer arithmetic.
7451
7452 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7453
7454 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7455 check for no ptid in the stop reply when the target is non-stop.
7456
7457 2020-04-01 Tom Tromey <tromey@adacore.com>
7458
7459 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7460 "name" parameter to rvalue reference. Initialize m_name_holder.
7461 <lookup_name_info>: New overloads.
7462 <name>: Return gdb::string_view.
7463 <c_str>: New method.
7464 <make_ignore_params>: Update.
7465 <search_name_hash>: Update.
7466 <language_lookup_name>: Return const char *.
7467 <m_name>: Change type.
7468 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7469 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7470 (lookup_name_info::match_any): Update.
7471 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7472 Update.
7473 * minsyms.c (linkage_name_str): Update.
7474 * language.c (default_symbol_name_matcher): Update.
7475 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7476 Update.
7477 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7478 (ada_lookup_name_info::ada_lookup_name_info): Update.
7479 (literal_symbol_name_matcher): Update.
7480
7481 2020-04-01 Tom Tromey <tromey@adacore.com>
7482
7483 * psymtab.c (psymtab_search_name): Remove function.
7484 (psym_lookup_symbol): Create search name and lookup name here.
7485 (lookup_partial_symbol): Remove "name" parameter; add
7486 lookup_name.
7487 (psym_expand_symtabs_for_function): Update.
7488
7489 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7490
7491 PR tui/25597:
7492 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7493
7494 2020-03-31 Tom Tromey <tromey@adacore.com>
7495
7496 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7497 memcpy.
7498
7499 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7500
7501 * features/riscv/32bit-csr.xml: Regenerated.
7502 * features/riscv/64bit-csr.xml: Regenerated.
7503
7504 2020-03-30 Tom Tromey <tromey@adacore.com>
7505
7506 * ada-valprint.c (print_variant_part): Update.
7507 * ada-lang.h (ada_which_variant_applies): Update.
7508 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7509 outer_valaddr parameters; replace with "outer" value parameter.
7510 (to_fixed_variant_branch_type): Update.
7511
7512 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7513
7514 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7515 <list>. Remove inclusion of observable.h.
7516 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7517 (struct arch_lwp_info): New struct.
7518 (class ppc_linux_dreg_interface): New class.
7519 (struct ppc_linux_process_info): New struct.
7520 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7521 <low_new_clone, low_forget_process, low_prepare_to_resume>
7522 <copy_thread_dreg_state, mark_thread_stale>
7523 <mark_debug_registers_changed, register_hw_breakpoint>
7524 <clear_hw_breakpoint, register_wp, clear_wp>
7525 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7526 <num_memory_accesses, get_trigger_type>
7527 <create_watchpoint_request, hwdebug_point_cmp>
7528 <init_arch_lwp_info, get_arch_lwp_info>
7529 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7530 methods.
7531 <struct ptid_hash>: New inner struct.
7532 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7533 members.
7534 (saved_dabr_value, hwdebug_info, max_slots_number)
7535 (struct hw_break_tuple, struct thread_points, ppc_threads)
7536 (have_ptrace_hwdebug_interface)
7537 (hwdebug_find_thread_points_by_tid)
7538 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7539 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7540 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7541 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7542 use m_dreg_interface.
7543 (hwdebug_point_cmp): Change to...
7544 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7545 reference arguments instead of pointers.
7546 (ppc_linux_nat_target::ranged_break_num_registers): Use
7547 m_dreg_interface.
7548 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7549 m_dreg_interface. Call register_hw_breakpoint.
7550 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7551 m_dreg_interface. Call clear_hw_breakpoint.
7552 (get_trigger_type): Change to...
7553 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7554 comment.
7555 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7556 use m_dreg_interface. Call register_hw_breakpoint.
7557 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7558 use m_dreg_interface. Call clear_hw_breakpoint.
7559 (can_use_watchpoint_cond_accel): Change to...
7560 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7561 method. Update comment, use m_dreg_interface and
7562 m_process_info.
7563 (calculate_dvc): Change to...
7564 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7565 m_dreg_interface.
7566 (num_memory_accesses): Change to...
7567 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7568 (check_condition): Change to...
7569 (ppc_linux_nat_target::check_condition): ...this method.
7570 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7571 comment, use m_dreg_interface.
7572 (create_watchpoint_request): Change to...
7573 (ppc_linux_nat_target::create_watchpoint_request): ...this
7574 method. Use m_dreg_interface.
7575 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7576 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7577 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7578 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7579 (ppc_linux_nat_target::low_forget_process)
7580 (ppc_linux_nat_target::low_new_fork)
7581 (ppc_linux_nat_target::low_new_clone)
7582 (ppc_linux_nat_target::low_delete_thread)
7583 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7584 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7585 only call mark_thread_stale.
7586 (ppc_linux_thread_exit): Remove.
7587 (ppc_linux_nat_target::stopped_data_address): Change to...
7588 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7589 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7590 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7591 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7592 comment. Call low_stopped_data_address.
7593 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7594 m_dreg_interface.
7595 (ppc_linux_nat_target::masked_watch_num_registers): Use
7596 m_dreg_interface.
7597 (ppc_linux_nat_target::copy_thread_dreg_state)
7598 (ppc_linux_nat_target::mark_thread_stale)
7599 (ppc_linux_nat_target::mark_debug_registers_changed)
7600 (ppc_linux_nat_target::register_hw_breakpoint)
7601 (ppc_linux_nat_target::clear_hw_breakpoint)
7602 (ppc_linux_nat_target::register_wp)
7603 (ppc_linux_nat_target::clear_wp)
7604 (ppc_linux_nat_target::init_arch_lwp_info)
7605 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7606 (_initialize_ppc_linux_nat): Remove observer callback.
7607
7608 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7609
7610 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7611 (ppc_linux_nat_target::auxv_parse)
7612 (ppc_linux_nat_target::read_description)
7613 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7614 Move up.
7615
7616 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7617
7618 * linux-nat.h (low_new_clone): New method.
7619 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7620
7621 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7622
7623 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7624 (dbx_expand_psymtab): ... this.
7625 (start_psymtab): Update.
7626 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7627 (mdebug_expand_psymtab): ... this.
7628 (parse_partial_symbols): Update.
7629 (new_psymtab): Update.
7630 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7631 (xcoff_expand_psymtab): ... this.
7632 (xcoff_start_psymtab): Update.
7633
7634 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7635
7636 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7637 <expand_dependencies>: ... this.
7638 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7639 (partial_symtab::expand_dependencies): ... this.
7640 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7641 Update.
7642 (dwarf2_psymtab::expand_psymtab): Update.
7643 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7644 * mdebugread.c (psymtab_to_symtab_1): Update.
7645 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7646
7647 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7648
7649 * psympriv.h (discard_psymtab): Remove.
7650 * dbxread.c (dbx_end_psymtab): Update.
7651 * xcoffread.c (xcoff_end_psymtab): Update.
7652
7653 2020-03-28 Tom Tromey <tom@tromey.com>
7654
7655 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7656 comment.
7657
7658 2020-03-28 Tom Tromey <tom@tromey.com>
7659
7660 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7661
7662 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7663
7664 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7665
7666 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7667
7668 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7669
7670 2020-03-26 Tom Tromey <tom@tromey.com>
7671
7672 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7673 (mark_common_block_symbol_computed, read_tag_string_type)
7674 (attr_to_dynamic_prop, read_subrange_type): Update.
7675 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7676 to be methods on struct attribute.
7677 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7678 (read_call_site_scope, partial_die_info::read)
7679 (partial_die_info::read, lookup_die_type, follow_die_ref):
7680 Update.
7681 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7682 from dwarf2_get_ref_die_offset.
7683 (attribute::constant_value): New method, from
7684 dwarf2_get_attr_constant_value.
7685 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7686 Declare method.
7687 <constant_value>: New method.
7688
7689 2020-03-26 Tom Tromey <tom@tromey.com>
7690
7691 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7692 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7693 (dwarf_type_encoding_name): Move to stringify.c.
7694 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7695 * dwarf2/stringify.c: New file.
7696 * dwarf2/stringify.h: New file.
7697
7698 2020-03-26 Tom Tromey <tom@tromey.com>
7699
7700 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7701 Rewrite.
7702
7703 2020-03-26 Tom Tromey <tom@tromey.com>
7704
7705 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7706 methods.
7707 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7708 (lookup_ranges_base): Likewise.
7709 (read_cutu_die_from_dwo, read_full_die_1): Update.
7710
7711 2020-03-26 Tom Tromey <tom@tromey.com>
7712
7713 * dwarf2/read.c (read_import_statement, read_file_scope)
7714 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7715 (read_lexical_block_scope, read_call_site_scope)
7716 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7717 (handle_struct_member_die, process_structure_scope)
7718 (update_enumeration_type_from_children)
7719 (process_enumeration_scope, read_array_type, read_common_block)
7720 (read_namespace, read_module, read_subroutine_type): Update.
7721 (sibling_die): Remove.
7722
7723 2020-03-26 Tom Tromey <tom@tromey.com>
7724
7725 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7726 (build_type_psymtabs_reader, read_structure_type)
7727 (read_enumeration_type, read_full_die_1): Update.
7728 (dwarf2_attr_no_follow): Move to die.h.
7729 * dwarf2/die.h (struct die_info) <attr>: New method.
7730
7731 2020-03-26 Tom Tromey <tom@tromey.com>
7732
7733 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7734 <base_address>: Now an optional.
7735 (dwarf2_find_base_address, dwarf2_rnglists_process)
7736 (dwarf2_ranges_process, fill_in_loclist_baton)
7737 (dwarf2_symbol_mark_computed): Update.
7738
7739 2020-03-26 Tom Tromey <tom@tromey.com>
7740
7741 * dwarf2/read.c (struct die_info): Move to die.h.
7742 * dwarf2/die.h: New file.
7743
7744 2020-03-26 Tom Tromey <tom@tromey.com>
7745
7746 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7747 * dwarf2/read.c
7748 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7749 Move to line-header.c.
7750 (read_checked_initial_length_and_offset, read_formatted_entries):
7751 Likewise.
7752 (dwarf_decode_line_header): Split into two.
7753 * dwarf2/line-header.c
7754 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7755 Move from read.c.
7756 (read_checked_initial_length_and_offset, read_formatted_entries):
7757 Likewise.
7758 (dwarf_decode_line_header): New function, split from read.c.
7759
7760 2020-03-26 Tom Tromey <tom@tromey.com>
7761
7762 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7763 Declare method.
7764 * dwarf2/read.c (read_attribute_value): Update.
7765 (dwarf2_per_objfile::read_line_string): Rename from
7766 read_indirect_line_string.
7767 (read_formatted_entries): Update.
7768
7769 2020-03-26 Tom Tromey <tom@tromey.com>
7770
7771 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7772 variable.
7773
7774 2020-03-26 Tom Tromey <tom@tromey.com>
7775
7776 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7777 const.
7778 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7779 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7780 parameter const.
7781
7782 2020-03-26 Tom Tromey <tom@tromey.com>
7783
7784 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7785 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7786 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7787 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7788
7789 2020-03-26 Tom Tromey <tom@tromey.com>
7790
7791 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7792 file_names_size, file_full_name, file_file_name>: Use const.
7793 <file_name_at, file_names>: Add const overload.
7794 * dwarf2/line-header.c (line_header::file_file_name)
7795 (line_header::file_full_name): Update.
7796
7797 2020-03-26 Tom Tromey <tom@tromey.com>
7798
7799 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7800 (macro_start_file, consume_improper_spaces)
7801 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7802 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7803 (dwarf_decode_macros): Move to macro.c.
7804 * dwarf2/macro.c: New file.
7805 * dwarf2/macro.h: New file.
7806 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7807
7808 2020-03-26 Tom Tromey <tom@tromey.com>
7809
7810 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7811 method.
7812 * dwarf2/section.c: New method. From
7813 read_indirect_string_at_offset_from.
7814 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7815 (read_indirect_string_at_offset_from): Move to section.c.
7816 (read_indirect_string_at_offset): Rewrite.
7817 (read_indirect_line_string_at_offset): Remove.
7818 (read_indirect_string, read_indirect_line_string)
7819 (dwarf_decode_macro_bytes): Update.
7820
7821 2020-03-26 Tom Tromey <tom@tromey.com>
7822
7823 * dwarf2/section.h (struct dwarf2_section_info)
7824 <overload_complaint>: Declare.
7825 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7826 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7827 Rename from dwarf2_section_buffer_overflow_complaint.
7828 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7829 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7830
7831 2020-03-26 Tom Tromey <tom@tromey.com>
7832
7833 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7834 Declare.
7835 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7836 Move from read.c.
7837 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7838 to section.c.
7839
7840 2020-03-26 Tom Tromey <tom@tromey.com>
7841
7842 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7843
7844 2020-03-26 Tom Tromey <tom@tromey.com>
7845
7846 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7847 "builder".
7848 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7849 parameter.
7850 (dwarf_decode_macros): Update.
7851
7852 2020-03-26 Tom Tromey <tom@tromey.com>
7853
7854 * dwarf2/read.c (read_attribute_value): Update.
7855 (read_indirect_string_from_dwz): Move to dwz.c; change into
7856 method.
7857 (dwarf_decode_macro_bytes): Update.
7858 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7859 * dwarf2/dwz.c: New file.
7860 * Makefile.in (COMMON_SFILES): Add dwz.c.
7861
7862 2020-03-26 Tom Tromey <tom@tromey.com>
7863
7864 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7865 * dwarf2/read.c: Add include.
7866 * dwarf2/index-write.c: Add include.
7867 * dwarf2/index-cache.c: Add include.
7868 * dwarf2/dwz.h: New file.
7869
7870 2020-03-25 Tom Tromey <tom@tromey.com>
7871
7872 * compile/compile-object-load.c (get_out_value_type): Mention
7873 correct symbol name in error message.
7874
7875 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7876
7877 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7878
7879 2020-03-25 Tom de Vries <tdevries@suse.de>
7880
7881 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7882 * symmisc.c (dump_symtab_1): Print user and includes fields.
7883 (maintenance_info_symtabs): Same.
7884
7885 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7886
7887 PR gdb/25534
7888 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7889 (riscv_regcache_cooked_write): New function.
7890 (riscv_push_dummy_call): Use new function.
7891 (riscv_return_value): Likewise.
7892
7893 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7894
7895 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7896 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7897 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7898 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7899 * infrun.c (follow_fork): Likewise.
7900 (follow_fork_inferior): Likewise.
7901 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7902 * linux-nat.h (class linux_nat_target): Likewise.
7903 * remote.c (class remote_target) <follow_fork>: Likewise.
7904 (remote_target::follow_fork): Likewise.
7905 * target-delegates.c: Re-generate.
7906 * target.c (default_follow_fork): Likewise.
7907 (target_follow_fork): Likewise.
7908 * target.h (struct target_ops) <follow_fork>: Likewise.
7909 (target_follow_fork): Likewise.
7910
7911 2020-03-24 Tom de Vries <tdevries@suse.de>
7912
7913 * psymtab.c (maintenance_info_psymtabs): Print user field.
7914
7915 2020-03-20 Tom Tromey <tromey@adacore.com>
7916
7917 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7918 const.
7919 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7920 const.
7921
7922 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7923
7924 * ptrace.m4: Don't check for ptrace declaration.
7925 * config.in: Re-generate.
7926 * configure: Re-generate.
7927 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7928 not defined.
7929
7930 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7931
7932 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7933 `PTRACE_TYPE_RET'.
7934 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7935 * sparc-nat.c (gdb_ptrace): Likewise.
7936 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7937
7938 2020-03-20 Tom Tromey <tromey@adacore.com>
7939
7940 * c-exp.y (lex_one_token): Fix assert.
7941
7942 2020-03-20 Tom Tromey <tromey@adacore.com>
7943
7944 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7945 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7946 strncpy call.
7947
7948 2020-03-20 Tom Tromey <tromey@adacore.com>
7949
7950 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7951
7952 2020-03-20 Tom Tromey <tromey@adacore.com>
7953
7954 * ada-valprint.c (print_variant_part): Remove parameters; switch
7955 to value-based API.
7956 (print_field_values): Likewise.
7957 (ada_val_print_struct_union): Likewise.
7958 (ada_value_print_1): Update.
7959
7960 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7961
7962 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7963 nbsd_nat_target instead of inf_ptrace_target.
7964 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7965 nbsd_nat_target.
7966
7967 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7968
7969 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7970 it to the ptrace call.
7971 * (store_registers): Likewise.
7972
7973 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7974
7975 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7976 it to the ptrace call.
7977 * (store_registers): Likewise.
7978
7979 2020-03-19 Luis Machado <luis.machado@linaro.org>
7980
7981 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7982 valid, fetch vg value from ptrace.
7983
7984 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7985 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7986 * inf-ptrace.c: Likewise.
7987 * (gdb_ptrace): Add.
7988 * (inf_ptrace_target::resume): Update.
7989 * (inf_ptrace_target::xfer_partial): Likewise.
7990 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7991 * (inf_ptrace_peek_poke): Update.
7992
7993 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7994
7995 * x86-bsd-nat.c (gdb_ptrace): New.
7996 * (x86bsd_dr_set): Add new argument `ptid'.
7997 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7998 x86bsd_dr_set_addr): Update.
7999
8000 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8001
8002 * remote.c (remote_target::process_stop_reply): Handle events for
8003 all threads differently.
8004
8005 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8006
8007 * completer.c (completion_tracker::remove_completion): Define new
8008 function.
8009 * completer.h (completion_tracker::remove_completion): Declare new
8010 function.
8011 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8012 when adding a C++ function symbol.
8013
8014 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8015
8016 * completer.c (completion_tracker::completion_hash_entry): Define
8017 new class.
8018 (advance_to_filename_complete_word_point): Call
8019 recompute_lowest_common_denominator.
8020 (completion_tracker::completion_tracker): Call discard_completions
8021 to setup the hash table.
8022 (completion_tracker::discard_completions): Allow for being called
8023 from the constructor, pass new equal function, and element deleter
8024 when constructing the hash table. Initialise new class member
8025 variables.
8026 (completion_tracker::maybe_add_completion): Remove use of
8027 m_entries_vec, and store more information into m_entries_hash.
8028 (completion_tracker::recompute_lcd_visitor): New function, most
8029 content taken from...
8030 (completion_tracker::recompute_lowest_common_denominator):
8031 ...here, this now just visits each item in the hash calling the
8032 above visitor.
8033 (completion_tracker::build_completion_result): Remove use of
8034 m_entries_vec, call recompute_lowest_common_denominator.
8035 * completer.h (completion_tracker::have_completions): Remove use
8036 of m_entries_vec.
8037 (completion_tracker::completion_hash_entry): Declare new class.
8038 (completion_tracker::recompute_lowest_common_denominator): Change
8039 function signature.
8040 (completion_tracker::recompute_lcd_visitor): Declare new function.
8041 (completion_tracker::m_entries_vec): Delete.
8042 (completion_tracker::m_entries_hash): Initialize to NULL.
8043 (completion_tracker::m_lowest_common_denominator_valid): New
8044 member variable.
8045 (completion_tracker::m_lowest_common_denominator_max_length): New
8046 member variable.
8047
8048 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8049
8050 * regformats/regdef.h: Put reg in gdb namespace.
8051
8052 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8053
8054 * i386-bsd-nat.c (gdb_ptrace): New.
8055 * (i386bsd_fetch_inferior_registers,
8056 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8057 * (i386bsd_fetch_inferior_registers,
8058 i386bsd_store_inferior_registers) Use gdb_ptrace.
8059
8060 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8061
8062 * amd64-bsd-nat.c (gdb_ptrace): New.
8063 * (amd64bsd_fetch_inferior_registers,
8064 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8065 * (amd64bsd_fetch_inferior_registers,
8066 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8067
8068 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8069
8070 * user-regs.c (user_reg::read): Rename to...
8071 (user_reg::xread): ...this.
8072 * (append_user_reg): Rename argument `read' to `xread'.
8073 * (user_reg_add_builtin): Likewise.
8074 * (user_reg_add): Likewise.
8075 * (value_of_user_reg): Likewise.
8076
8077 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8078
8079 * sparc-nat.c (gdb_ptrace): New.
8080 * sparc-nat.c (sparc_fetch_inferior_registers)
8081 (sparc_store_inferior_registers) Remove obsolete comment.
8082 * sparc-nat.c (sparc_fetch_inferior_registers)
8083 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8084 * sparc-nat.c (sparc_fetch_inferior_registers)
8085 (sparc_store_inferior_registers) Use gdb_ptrace.
8086
8087 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8088
8089 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8090 it to the ptrace call.
8091 * sh-nbsd-nat.c (store_registers): Likewise.
8092
8093 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8094
8095 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8096 nbsd_nat_target instead of inf_ptrace_target.
8097 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8098 nbsd_nat_target.
8099
8100 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8101
8102 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8103
8104 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8105
8106 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8107 <sys/sysctl.h>.
8108 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8109
8110 2020-03-17 Tom de Vries <tdevries@suse.de>
8111
8112 PR gdb/23710
8113 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8114 fields.
8115 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8116 fields.
8117 (process_imported_unit_die): Skip import of c++ CUs.
8118
8119 2020-03-16 Tom Tromey <tom@tromey.com>
8120
8121 * p-valprint.c (pascal_object_print_value): Initialize
8122 base_value.
8123
8124 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8125 Shahab Vahedi <shahab@synopsys.com>
8126
8127 * Makefile.in: Add arch/arc.o
8128 * configure.tgt: Likewise.
8129 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8130 (_initialize_arc_tdep): Don't initialize old target descriptions.
8131 (arc_read_description): New function to cache target descriptions.
8132 * arc-tdep.h (arc_read_description): Add proto type.
8133 * arch/arc.c: New file.
8134 * arch/arc.h: Likewise.
8135 * features/Makefile: Replace old target descriptions with new.
8136 * features/arc-arcompact.c: Remove.
8137 * features/arc-arcompact.xml: Likewise.
8138 * features/arc-v2.c: Likewise
8139 * features/arc-v2.xml: Likewise
8140 * features/arc/aux-arcompact.xml: New file.
8141 * features/arc/aux-v2.xml: Likewise.
8142 * features/arc/core-arcompact.xml: Likewise.
8143 * features/arc/core-v2.xml: Likewise.
8144 * features/arc/aux-arcompact.c: Generate.
8145 * features/arc/aux-v2.c: Likewise.
8146 * features/arc/core-arcompact.c: Likewise.
8147 * features/arc/core-v2.c: Likewise.
8148 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8149
8150 2020-03-16 Tom Tromey <tromey@adacore.com>
8151
8152 PR gdb/25663:
8153 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8154 putting value into bcache.
8155
8156 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8157
8158 PR gdb/21500
8159 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8160 to...
8161 (amd64_windows_init_abi_common): ... this. Don't set size of
8162 long type.
8163 (amd64_windows_init_abi): New function.
8164 (amd64_cygwin_init_abi): New function.
8165 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8166 the Cygwin OS ABI.
8167 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8168 comment.
8169
8170 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8171
8172 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8173 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8174 (pe_import_directory_entry): New struct type.
8175 (is_linked_with_cygwin_dll): New function.
8176 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8177 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8178 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8179
8180 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8181
8182 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8183 i386_cygwin_core_osabi_sniffer.
8184
8185 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8186
8187 * i386-cygwin-tdep.c: Rename to...
8188 * i386-windows-tdep.c: ... this.
8189 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8190 i386-windows-tdep.c.
8191 * configure.tgt: Likewise.
8192
8193 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8194
8195 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8196 * osabi.c (gdb_osabi_names): Add "Windows".
8197 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8198 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8199 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8200 i386_cygwin_osabi_sniffer.
8201 (_initialize_i386_cygwin_tdep): Register OS ABI
8202 GDB_OSABI_WINDOWS for i386.
8203 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8204 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8205 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8206 for x86-64.
8207 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8208 when the target matches '*-*-mingw*'.
8209
8210 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8211
8212 * defs.h (enum gdb_osabi): Move to...
8213 * osabi.h (enum gdb_osabi): ... here.
8214 * gdbarch.sh: Include osabi.h in gdbarch.h.
8215 * gdbarch.h: Re-generate.
8216
8217 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8218
8219 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8220 function.
8221 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8222
8223 2020-03-14 Tom Tromey <tom@tromey.com>
8224
8225 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8226 for C++.
8227 (c_type_print_modifier): Likewise. Add "language" parameter.
8228 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8229 (c_type_print_base_1): Update.
8230 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8231 constants.
8232 * type-stack.c (type_stack::insert): Handle tp_atomic and
8233 tp_restrict.
8234 (type_stack::follow_type_instance_flags): Likewise.
8235 (type_stack::follow_types): Likewise. Merge type-following code.
8236 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8237 (space_identifier, cv_with_space_id)
8238 (const_or_volatile_or_space_identifier_noopt)
8239 (const_or_volatile_or_space_identifier): Remove.
8240 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8241 rules.
8242 (ptr_operator, typebase): Update.
8243 (enum token_flag) <FLAG_C>: New constant.
8244 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8245 "_Atomic".
8246 (lex_one_token): Handle FLAG_C.
8247
8248 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8249
8250 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8251 it to the ptrace call.
8252 * m68k-bsd-nat.c (store_registers): Likewise.
8253
8254 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8255
8256 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8257 gdb_byte *.
8258 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8259 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8260 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8261
8262 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8263
8264 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8265 nbsd_nat_target instead of inf_ptrace_target.
8266 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8267 nbsd_nat_target.
8268
8269 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8270
8271 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8272 register_t.
8273
8274 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8275
8276 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8277 it to the ptrace call.
8278 * alpha-bsd-nat.c (store_registers): Likewise.
8279
8280 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8281
8282 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8283 includes.
8284 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8285 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8286 fill_fpregset): Likewise.
8287
8288 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8289
8290 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8291 nbsd_nat_target instead of inf_ptrace_target.
8292 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8293 nbsd_nat_target.
8294
8295 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8296
8297 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8298 register_t.
8299
8300 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8301
8302 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8303 it to the ptrace call.
8304 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8305 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8306 * arm-nbsd-nat.c (store_register): Likewise.
8307 * arm-nbsd-nat.c (store_regs): Likewise.
8308 * arm-nbsd-nat.c (store_fp_register): Likewise.
8309 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8310
8311 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8312
8313 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8314 nbsd_nat_target instead of inf_ptrace_target.
8315 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8316 nbsd_nat_target.
8317
8318 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8319
8320 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8321 it to the ptrace call.
8322 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8323
8324 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8325
8326 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8327 it to the ptrace call.
8328 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8329
8330 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8331
8332 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8333 gdb_byte *.
8334 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8335
8336 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8337
8338 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8339 instead of inf_ptrace_target.
8340 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8341 nbsd_nat_target.
8342
8343 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8344
8345 * mips-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 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8351 register_t.
8352
8353 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8354
8355 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8356 register_t.
8357
8358 2020-03-13 Tom Tromey <tom@tromey.com>
8359
8360 * value.h (val_print): Don't declare.
8361 * valprint.h (val_print_array_elements)
8362 (val_print_scalar_formatted, generic_val_print): Don't declare.
8363 * valprint.c (generic_val_print_array): Take a struct value.
8364 (generic_val_print_ptr, generic_val_print_memberptr)
8365 (generic_val_print_bool, generic_val_print_int)
8366 (generic_val_print_char, generic_val_print_complex)
8367 (generic_val_print): Remove.
8368 (generic_value_print): Update.
8369 (do_val_print): Remove unused parameters. Don't call
8370 la_val_print.
8371 (val_print): Remove.
8372 (common_val_print): Update. Don't call value_check_printable.
8373 (val_print_scalar_formatted, val_print_array_elements): Remove.
8374 * rust-lang.c (rust_val_print): Remove.
8375 (rust_language_defn): Update.
8376 * p-valprint.c (pascal_val_print): Remove.
8377 (pascal_value_print_inner): Update.
8378 (pascal_object_print_val_fields, pascal_object_print_val):
8379 Remove.
8380 (pascal_object_print_static_field): Update.
8381 * p-lang.h (pascal_val_print): Don't declare.
8382 * p-lang.c (pascal_language_defn): Update.
8383 * opencl-lang.c (opencl_language_defn): Update.
8384 * objc-lang.c (objc_language_defn): Update.
8385 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8386 * m2-lang.h (m2_val_print): Don't declare.
8387 * m2-lang.c (m2_language_defn): Update.
8388 * language.h (struct language_defn) <la_val_print>: Remove.
8389 * language.c (unk_lang_value_print_inner): Rename. Change
8390 argument types.
8391 (unknown_language_defn, auto_language_defn): Update.
8392 * go-valprint.c (go_val_print): Remove.
8393 * go-lang.h (go_val_print): Don't declare.
8394 * go-lang.c (go_language_defn): Update.
8395 * f-valprint.c (f_val_print): Remove.
8396 * f-lang.h (f_value_print): Don't declare.
8397 * f-lang.c (f_language_defn): Update.
8398 * d-valprint.c (d_val_print): Remove.
8399 * d-lang.h (d_value_print): Don't declare.
8400 * d-lang.c (d_language_defn): Update.
8401 * cp-valprint.c (cp_print_value_fields)
8402 (cp_print_value_fields_rtti, cp_print_value): Remove.
8403 (cp_print_static_field): Update.
8404 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8405 (c_val_print_struct, c_val_print_union, c_val_print_int)
8406 (c_val_print_memberptr, c_val_print): Remove.
8407 * c-lang.h (c_val_print_array, cp_print_value_fields)
8408 (cp_print_value_fields_rtti): Don't declare.
8409 * c-lang.c (c_language_defn, cplus_language_defn)
8410 (asm_language_defn, minimal_language_defn): Update.
8411 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8412 (ada_val_print_enum): Take a struct value.
8413 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8414 (ada_val_print): Remove.
8415 (ada_value_print_1): Update.
8416 (printable_val_type): Remove.
8417 * ada-lang.h (ada_val_print): Don't declare.
8418 * ada-lang.c (ada_language_defn): Update.
8419
8420 2020-03-13 Tom Tromey <tom@tromey.com>
8421
8422 * valprint.c (do_val_print): Update.
8423 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8424 a struct value.
8425 (value_to_value_object_no_release): Declare.
8426 * python/py-value.c (value_to_value_object_no_release): New
8427 function.
8428 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8429 struct value.
8430 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8431 function.
8432 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8433 a struct value.
8434 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8435 Declare.
8436 (gdbscm_apply_val_pretty_printer): Take a struct value.
8437 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8438 value.
8439 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8440 value.
8441 * extension-priv.h (struct extension_language_ops)
8442 <apply_val_pretty_printer>: Take a struct value.
8443 * cp-valprint.c (cp_print_value): Create a struct value.
8444 (cp_print_value): Update.
8445
8446 2020-03-13 Tom Tromey <tom@tromey.com>
8447
8448 * ada-valprint.c (print_field_values): Call common_val_print.
8449
8450 2020-03-13 Tom Tromey <tom@tromey.com>
8451
8452 * ada-valprint.c (val_print_packed_array_elements): Remove
8453 bitoffset and val parameters. Call common_val_print.
8454 (ada_val_print_string): Remove offset, address, and original_value
8455 parameters.
8456 (ada_val_print_array): Update.
8457 (ada_value_print_array): New function.
8458 (ada_value_print_1): Call it.
8459
8460 2020-03-13 Tom Tromey <tom@tromey.com>
8461
8462 * ada-valprint.c (ada_value_print): Use common_val_print.
8463
8464 2020-03-13 Tom Tromey <tom@tromey.com>
8465
8466 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8467
8468 2020-03-13 Tom Tromey <tom@tromey.com>
8469
8470 * ada-valprint.c (ada_value_print_num): New function.
8471 (ada_value_print_1): Use it.
8472
8473 2020-03-13 Tom Tromey <tom@tromey.com>
8474
8475 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8476
8477 2020-03-13 Tom Tromey <tom@tromey.com>
8478
8479 * ada-valprint.c (ada_value_print_ptr): New function.
8480 (ada_value_print_1): Use it.
8481
8482 2020-03-13 Tom Tromey <tom@tromey.com>
8483
8484 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8485 call common_val_print.
8486 (ada_val_print_1): Update.
8487 (ada_value_print_1): New function.
8488 (ada_value_print_inner): Rewrite.
8489
8490 2020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * cp-valprint.c (cp_print_value_fields): Update.
8493 (cp_print_value): New function.
8494
8495 2020-03-13 Tom Tromey <tom@tromey.com>
8496
8497 * m2-valprint.c (m2_value_print_inner): Use
8498 cp_print_value_fields.
8499 * cp-valprint.c (cp_print_value_fields): New function.
8500 * c-valprint.c (c_value_print_struct): New function.
8501 (c_value_print_inner): Use c_value_print_struct.
8502 * c-lang.h (cp_print_value_fields): Declare.
8503
8504 2020-03-13 Tom Tromey <tom@tromey.com>
8505
8506 * c-valprint.c (c_value_print_array): 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_memberptr): 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_int): 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_ptr): New function.
8522 (c_value_print_inner): Use it.
8523
8524 2020-03-13 Tom Tromey <tom@tromey.com>
8525
8526 * c-valprint.c (c_value_print_inner): Rewrite.
8527
8528 2020-03-13 Tom Tromey <tom@tromey.com>
8529
8530 * valprint.c (generic_value_print_complex): New function.
8531 (generic_value_print): Use it.
8532
8533 2020-03-13 Tom Tromey <tom@tromey.com>
8534
8535 * valprint.c (generic_val_print_float): Don't call
8536 val_print_scalar_formatted.
8537 (generic_val_print, generic_value_print): Update.
8538
8539 2020-03-13 Tom Tromey <tom@tromey.com>
8540
8541 * valprint.c (generic_value_print_char): 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_int): New function.
8547 (generic_value_print): Use it.
8548
8549 2020-03-13 Tom Tromey <tom@tromey.com>
8550
8551 * valprint.c (generic_value_print_bool): New function.
8552 (generic_value_print): Use it.
8553
8554 2020-03-13 Tom Tromey <tom@tromey.com>
8555
8556 * valprint.c (generic_val_print_func): Simplify.
8557 (generic_val_print, generic_value_print): Update.
8558
8559 2020-03-13 Tom Tromey <tom@tromey.com>
8560
8561 * valprint.c (generic_val_print_flags): Remove.
8562 (generic_val_print, generic_value_print): Update.
8563 (val_print_type_code_flags): Add original_value parameter.
8564
8565 2020-03-13 Tom Tromey <tom@tromey.com>
8566
8567 * valprint.c (generic_val_print): Update.
8568 (generic_value_print): Update.
8569 * valprint.c (generic_val_print_enum): Don't call
8570 val_print_scalar_formatted.
8571
8572 2020-03-13 Tom Tromey <tom@tromey.com>
8573
8574 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8575 * valprint.c (generic_value_print_ptr): New function.
8576
8577 2020-03-13 Tom Tromey <tom@tromey.com>
8578
8579 * valprint.c (generic_value_print): Rewrite.
8580
8581 2020-03-13 Tom Tromey <tom@tromey.com>
8582
8583 * p-valprint.c (pascal_object_print_value_fields)
8584 (pascal_object_print_value): New functions.
8585
8586 2020-03-13 Tom Tromey <tom@tromey.com>
8587
8588 * p-valprint.c (pascal_value_print_inner): Rewrite.
8589
8590 2020-03-13 Tom Tromey <tom@tromey.com>
8591
8592 * f-valprint.c (f_value_print_innner): Rewrite.
8593
8594 2020-03-13 Tom Tromey <tom@tromey.com>
8595
8596 * m2-valprint.c (m2_print_unbounded_array): New overload.
8597 (m2_print_unbounded_array): Update.
8598 (m2_print_array_contents): Take a struct value.
8599 (m2_value_print_inner): Rewrite.
8600
8601 2020-03-13 Tom Tromey <tom@tromey.com>
8602
8603 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8604 (d_value_print_inner): New function.
8605 * d-lang.h (d_value_print_inner): Declare.
8606 * d-lang.c (d_language_defn): Use d_value_print_inner.
8607
8608 2020-03-13 Tom Tromey <tom@tromey.com>
8609
8610 * go-valprint.c (go_value_print_inner): New function.
8611 * go-lang.h (go_value_print_inner): Declare.
8612 * go-lang.c (go_language_defn): Use go_value_print_inner.
8613
8614 2020-03-13 Tom Tromey <tom@tromey.com>
8615
8616 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8617 API.
8618 (rust_val_print): Rewrite.
8619 (rust_value_print_inner): New function, from rust_val_print.
8620 (rust_language_defn): Use rust_value_print_inner.
8621
8622 2020-03-13 Tom Tromey <tom@tromey.com>
8623
8624 * ada-valprint.c (ada_value_print_inner): New function.
8625 * ada-lang.h (ada_value_print_inner): Declare.
8626 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8627
8628 2020-03-13 Tom Tromey <tom@tromey.com>
8629
8630 * f-valprint.c (f_value_print_innner): New function.
8631 * f-lang.h (f_value_print_innner): Declare.
8632 * f-lang.c (f_language_defn): Use f_value_print_innner.
8633
8634 2020-03-13 Tom Tromey <tom@tromey.com>
8635
8636 * p-valprint.c (pascal_value_print_inner): New function.
8637 * p-lang.h (pascal_value_print_inner): Declare.
8638 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8639
8640 2020-03-13 Tom Tromey <tom@tromey.com>
8641
8642 * m2-valprint.c (m2_value_print_inner): New function.
8643 * m2-lang.h (m2_value_print_inner): Declare.
8644 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8645
8646 2020-03-13 Tom Tromey <tom@tromey.com>
8647
8648 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8649 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8650 * c-valprint.c (c_value_print_inner): New function.
8651 * c-lang.h (c_value_print_inner): Declare.
8652 * c-lang.c (c_language_defn, cplus_language_defn)
8653 (asm_language_defn, minimal_language_defn): Use
8654 c_value_print_inner.
8655
8656 2020-03-13 Tom Tromey <tom@tromey.com>
8657
8658 * p-valprint.c (pascal_object_print_value_fields): Now static.
8659 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8660
8661 2020-03-13 Tom Tromey <tom@tromey.com>
8662
8663 * c-valprint.c (c_val_print_array): Simplify.
8664
8665 2020-03-13 Tom Tromey <tom@tromey.com>
8666
8667 * valprint.c (value_print_array_elements): New function.
8668 * valprint.h (value_print_array_elements): Declare.
8669
8670 2020-03-13 Tom Tromey <tom@tromey.com>
8671
8672 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8673 * mips-tdep.c (mips_print_register): Use
8674 value_print_scalar_formatted.
8675
8676 2020-03-13 Tom Tromey <tom@tromey.com>
8677
8678 * valprint.h (value_print_scalar_formatted): Declare.
8679 * valprint.c (value_print_scalar_formatted): New function.
8680
8681 2020-03-13 Tom Tromey <tom@tromey.com>
8682
8683 * valprint.h (generic_value_print): Declare.
8684 * valprint.c (generic_value_print): New function.
8685
8686 2020-03-13 Tom Tromey <tom@tromey.com>
8687
8688 * valprint.c (do_val_print): Call la_value_print_inner, if
8689 available.
8690 * rust-lang.c (rust_language_defn): Update.
8691 * p-lang.c (pascal_language_defn): Update.
8692 * opencl-lang.c (opencl_language_defn): Update.
8693 * objc-lang.c (objc_language_defn): Update.
8694 * m2-lang.c (m2_language_defn): Update.
8695 * language.h (struct language_defn) <la_value_print_inner>: New
8696 member.
8697 * language.c (unknown_language_defn, auto_language_defn): Update.
8698 * go-lang.c (go_language_defn): Update.
8699 * f-lang.c (f_language_defn): Update.
8700 * d-lang.c (d_language_defn): Update.
8701 * c-lang.c (c_language_defn, cplus_language_defn)
8702 (asm_language_defn, minimal_language_defn): Update.
8703 * ada-lang.c (ada_language_defn): Update.
8704
8705 2020-03-13 Tom Tromey <tom@tromey.com>
8706
8707 * c-valprint.c (c_value_print): Use common_val_print.
8708
8709 2020-03-13 Tom Tromey <tom@tromey.com>
8710
8711 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8712
8713 2020-03-13 Tom Tromey <tom@tromey.com>
8714
8715 * f-valprint.c (f77_print_array_1, f_val_print): Use
8716 common_val_print.
8717
8718 2020-03-13 Tom Tromey <tom@tromey.com>
8719
8720 * riscv-tdep.c (riscv_print_one_register_info): Use
8721 common_val_print.
8722
8723 2020-03-13 Tom Tromey <tom@tromey.com>
8724
8725 * mi/mi-main.c (output_register): Use common_val_print.
8726
8727 2020-03-13 Tom Tromey <tom@tromey.com>
8728
8729 * infcmd.c (default_print_one_register_info): Use
8730 common_val_print.
8731
8732 2020-03-13 Tom Tromey <tom@tromey.com>
8733
8734 * valprint.h (common_val_print_checked): Declare.
8735 * valprint.c (common_val_print_checked): New function.
8736 * stack.c (print_frame_arg): Use common_val_print_checked.
8737
8738 2020-03-13 Tom Tromey <tom@tromey.com>
8739
8740 * valprint.c (do_val_print): New function, from val_print.
8741 (val_print): Use do_val_print.
8742 (common_val_print): Use do_val_print.
8743
8744 2020-03-13 Tom Tromey <tom@tromey.com>
8745
8746 * valprint.c (value_print): Use scoped_value_mark.
8747
8748 2020-03-13 Tom de Vries <tdevries@suse.de>
8749
8750 PR symtab/25646
8751 * psymtab.c (partial_symtab::partial_symtab): Don't set
8752 globals_offset and statics_offset. Push element onto
8753 current_global_psymbols and current_static_psymbols stacks.
8754 (concat): New function.
8755 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8756 element from current_global_psymbols and current_static_psymbols
8757 stacks. Concat popped elements to global_psymbols and
8758 static_symbols.
8759 (add_psymbol_to_list): Use current_global_psymbols and
8760 current_static_psymbols stacks.
8761 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8762 current_static_psymbols fields.
8763
8764 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8765
8766 * corelow.c (sniff_core_bfd): Remove.
8767 (class core_target) <m_core_vec>: Remove.
8768 (core_target::core_target): Update.
8769 (core_file_fns): Remove.
8770 (deprecated_add_core_fns): Remove.
8771 (default_core_sniffer): Remove.
8772 (sniff_core_bfd): Remove.
8773 (default_check_format): Remove.
8774 (gdb_check_format): Remove.
8775 (core_target_open): Update.
8776 (core_target::get_core_register_section): Update.
8777 (get_core_registers_cb): Update.
8778 (core_target::fetch_registers): Update.
8779 * gdbcore.h (struct core_fns): Remove.
8780 (deprecated_add_core_fns): Remove.
8781 (default_core_sniffer): Remove.
8782 (default_check_format): Remove.
8783
8784 2020-03-12 Tom Tromey <tom@tromey.com>
8785
8786 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8787 CORE_ADDR.
8788 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8789
8790 2020-03-12 Tom Tromey <tom@tromey.com>
8791
8792 * remote.c (remote_target::download_tracepoint)
8793 (remote_target::enable_tracepoint)
8794 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8795 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8796 sprintf_vma.
8797
8798 2020-03-12 Tom Tromey <tom@tromey.com>
8799
8800 * symfile-mem.c: Update CORE_ADDR size assert.
8801
8802 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8803
8804 * selftest.m4: Move to gdbsupport/.
8805 * acinclude.m4: Update path to selftest.m4.
8806
8807 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8808
8809 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8810 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8811 gdbarch-selfselftests.c and selftest-arch.c.
8812 (SUBDIR_UNITTESTS_OBS): Rename to...
8813 (SELFTESTS_OBS): ... this.
8814 (COMMON_SFILES): Remove disasm-selftests.c and
8815 gdbarch-selftests.c.
8816 * configure.ac: Don't add selftest-arch.{c,o} to
8817 CONFIG_{SRCS,OBS}.
8818 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8819 preprocessor conditions.
8820
8821 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8822
8823 * configure.ac: Don't source bfd/development.sh.
8824 * selftest.m4: Modify comment.
8825 * configure: Re-generate.
8826
8827 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8828
8829 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8830 not "true" or "false".
8831 * configure: Re-generate.
8832
8833 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8834
8835 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8836 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8837 renamed to arm_nbsd_supply_gregset.
8838 (fetch_register): Update to call arm_nbsd_supply_gregset.
8839 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8840 (arm_netbsd_nat_target::fetch_registers): Update.
8841 (fetch_elfcore_registers): Removed.
8842 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8843 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8844 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8845 not require NetBSD system headers.
8846 (arm_nbsd_regset): New struct.
8847 (arm_nbsd_iterate_over_regset_sections): New function.
8848 (arm_netbsd_init_abi_common): Updated to call
8849 set_gdbarch_iterate_over_regset_sections.
8850 * arm-nbsd-tdep.h: New file.
8851
8852 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8853
8854 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8855 recursion.
8856
8857 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8858
8859 * configure: Re-generate.
8860
8861 2020-03-11 Tom Tromey <tromey@adacore.com>
8862
8863 * ada-typeprint.c (print_choices): Fix comment.
8864
8865 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8866
8867 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8868 previous item in the list, when the list has no items.
8869
8870 2020-03-11 Tom de Vries <tdevries@suse.de>
8871
8872 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8873 PROP_LOCLIST handling code.
8874
8875 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8876
8877 * buildsym-legacy.c (record_line): Pass extra parameter to
8878 record_line.
8879 * buildsym.c (buildsym_compunit::record_line): Take an extra
8880 parameter, reduce duplication in the line table, and record the
8881 is_stmt flag in the line table.
8882 * buildsym.h (buildsym_compunit::record_line): Add extra
8883 parameter.
8884 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8885 non-statement lines.
8886 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8887 this to the symtab builder.
8888 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8889 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8890 through to dwarf_record_line_1.
8891 * infrun.c (process_event_stop_test): When stepping, don't stop at
8892 a non-statement instruction, and only refresh the step info when
8893 we land in the middle of a line's range. Also add an extra
8894 comment.
8895 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8896 field.
8897 * record-btrace.c (btrace_find_line_range): Only record lines
8898 marked as is-statement.
8899 * stack.c (frame_show_address): Show the frame address if we are
8900 in a non-statement sal.
8901 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8902 (maintenance_print_one_line_table): Print a header for the is_stmt
8903 column, and include is_stmt information in the output.
8904 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8905 preference to non-statements.
8906 (find_pcs_for_symtab_line): Prefer is-statement entries.
8907 (find_line_common): Likewise.
8908 * symtab.h (struct linetable_entry): Add is_stmt field.
8909 (struct symtab_and_line): Likewise.
8910 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8911 arranging the line table.
8912
8913 2020-03-07 Tom de Vries <tdevries@suse.de>
8914
8915 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8916 DIE.
8917
8918 2020-03-07 Tom Tromey <tom@tromey.com>
8919
8920 * valops.c (value_literal_complex): Remove obsolete comment.
8921 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8922 comment.
8923
8924 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8925
8926 * infrun.h: Forward-declare thread_info.
8927 (set_step_info): Add thread_info parameter, add doc.
8928 * infrun.c (set_step_info): Add thread_info parameter, move doc
8929 to header.
8930 * infrun.c (process_event_stop_test): Pass thread to
8931 set_step_info call.
8932 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8933 set_step_info.
8934 (prepare_one_step): Add thread_info parameter, pass it to
8935 set_step_frame and prepare_one_step (recursive) call.
8936 (step_1): Pass thread to prepare_one_step call.
8937 (step_command_fsm::should_stop): Pass thread to
8938 prepare_one_step.
8939 (until_next_fsm): Pass thread to set_step_frame call.
8940 (finish_command): Pass thread to set_step_info call.
8941
8942 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8943
8944 * windows-tdep.c (windows_solib_create_inferior_hook):
8945 Check if inferior is running.
8946
8947 2020-03-06 Tom de Vries <tdevries@suse.de>
8948
8949 * NEWS: Fix "the the".
8950 * ctfread.c: Same.
8951
8952 2020-03-06 Tom de Vries <tdevries@suse.de>
8953
8954 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8955
8956 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8957
8958 * .dir-locals.el: Add a comment referencing the other copies of
8959 this file.
8960
8961 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8962
8963 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8964 psargs.
8965
8966 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8967
8968 * .gitattributes: New file.
8969
8970 2020-03-04 Tom Tromey <tom@tromey.com>
8971
8972 * symmisc.c (print_symbol_bcache_statistics)
8973 (print_objfile_statistics): Update.
8974 * symfile.c (allocate_symtab): Use intern.
8975 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8976 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8977 macro_cache>: Remove.
8978 <string_cache>: New member.
8979 (struct objfile) <intern>: New methods.
8980 * elfread.c (elf_symtab_read): Use intern.
8981 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8982 (dwarf2_compute_name, dwarf2_physname)
8983 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8984 names.
8985 (guess_partial_die_structure_name): Update.
8986 (partial_die_info::fixup): Intern name.
8987 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8988 name.
8989 (dwarf2_name): Intern name. Update.
8990 * buildsym.c (buildsym_compunit::get_macro_table): Use
8991 string_cache.
8992
8993 2020-03-04 Tom Tromey <tom@tromey.com>
8994
8995 * jit.c (bfd_open_from_target_memory): Make "target" const.
8996 * corefile.c (gnutarget): Now const.
8997 * gdbcore.h (gnutarget): Now const.
8998
8999 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9000
9001 * NEWS: Mention support for WOW64 processes.
9002 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9003 (amd64_windows_segment_register_p): Remove static.
9004 (_initialize_amd64_windows_nat): Update.
9005 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9006 * i386-windows-nat.c (context_offset): Update.
9007 (i386_mappings): Rename and remove static.
9008 (i386_windows_segment_register_p): Remove static.
9009 (_initialize_i386_windows_nat): Update.
9010 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9011 (STATUS_WX86_SINGLE_STEP): New macro.
9012 (EnumProcessModulesEx): New macro.
9013 (Wow64SuspendThread): New macro.
9014 (Wow64GetThreadContext): New macro.
9015 (Wow64SetThreadContext): New macro.
9016 (Wow64GetThreadSelectorEntry): New macro.
9017 (windows_set_context_register_offsets): Add static.
9018 (windows_set_segment_register_p): Likewise.
9019 (windows_add_thread): Adapt for WOW64 processes.
9020 (windows_fetch_one_register): Likewise.
9021 (windows_nat_target::fetch_registers): Likewise.
9022 (windows_store_one_register): Likewise.
9023 (display_selector): Likewise.
9024 (display_selectors): Likewise.
9025 (handle_exception): Likewise.
9026 (windows_continue): Likewise.
9027 (windows_nat_target::resume): Likewise.
9028 (windows_add_all_dlls): Likewise.
9029 (do_initial_windows_stuff): Likewise.
9030 (windows_nat_target::attach): Likewise.
9031 (windows_get_exec_module_filename): Likewise.
9032 (windows_nat_target::create_inferior): Likewise.
9033 (windows_xfer_siginfo): Likewise.
9034 (_initialize_loadable): Initialize Wow64SuspendThread,
9035 Wow64GetThreadContext, Wow64SetThreadContext,
9036 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9037 * windows-nat.h (windows_set_context_register_offsets):
9038 Remove declaration.
9039 (windows_set_segment_register_p): Likewise.
9040 (i386_windows_segment_register_p): Add declaration.
9041 (amd64_windows_segment_register_p): Likewise.
9042
9043 2020-03-04 Luis Machado <luis.machado@linaro.org>
9044
9045 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9046 in "info registers" for AArch64/ARM.
9047
9048 The change caused "info registers" to not print GPR's.
9049
9050 gdb/ChangeLog:
9051
9052 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9053
9054 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9055 when reg->group is empty and reggroup is not.
9056
9057 2020-03-03 Tom Tromey <tromey@adacore.com>
9058
9059 * dwarf2/frame.c (struct dwarf2_frame_cache)
9060 <checked_tailcall_bottom, entry_cfa_sp_offset,
9061 entry_cfa_sp_offset_p>: Remove members.
9062 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9063 (dwarf2_frame_prev_register): Don't call
9064 dwarf2_tailcall_sniffer_first.
9065 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9066 * frame-unwind.c (add_unwinder): New fuction.
9067 (frame_unwind_init): Use it. Add tailcall unwinder.
9068
9069 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9070 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9071
9072 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9073 value should be printed as true.
9074
9075 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9076
9077 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9078 (windows_init_abi): Set and use windows_so_ops.
9079
9080 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9081
9082 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9083 when verifying if dealing with a convenience variable.
9084
9085 2020-03-03 Luis Machado <luis.machado@linaro.org>
9086
9087 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9088
9089 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9090
9091 * infrun.c (gdbarch_supports_displaced_stepping): New.
9092 (use_displaced_stepping): Break up conditions in smaller pieces.
9093 Use gdbarch_supports_displaced_stepping.
9094 (displaced_step_prepare_throw): Use
9095 gdbarch_supports_displaced_stepping.
9096
9097 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9098
9099 * NEWS: Mention new behaviour of the history filename.
9100 * top.c (write_history_p): Add comment.
9101 (show_write_history_p): Add header comment, give a different
9102 message when history writing is on, but the history filename is
9103 empty.
9104 (history_filename): Add comment.
9105 (history_filename_empty): New function.
9106 (show_history_filename): Add header comment, give a different
9107 message when the filename is empty.
9108 (init_history): Compare history_filename against nullptr, and only
9109 read history if the filename is not empty.
9110 (set_history_filename): Add header comment, and only make
9111 non-empty filenames absolute.
9112 (init_main): Make the filename argument to 'set history filename'
9113 optional.
9114
9115 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9116
9117 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9118 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9119 (fetch_fp_register): Update.
9120 (fetch_fp_regs): Update.
9121 (store_fp_register): Update.
9122 (store_fp_regs): Update.
9123 (arm_netbsd_nat_target::read_description): New function.
9124 (fetch_elfcore_registers): Update.
9125
9126 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9127
9128 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9129 general_thread if the stop reply is missing a thread-id.
9130 (remote_target::process_stop_reply): Use the first non-exited
9131 thread if the target didn't pass a thread-id.
9132 * infrun.c (do_target_wait): Move call to
9133 switch_to_inferior_no_thread to ....
9134 (do_target_wait_1): ... here.
9135
9136 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9137
9138 * debuginfod-support.c: Include defs.h first.
9139
9140 2020-02-28 Tom de Vries <tdevries@suse.de>
9141
9142 * symfile.c (set_initial_language): Use default language for lookup.
9143
9144 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9145
9146 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9147 reader variable, pass `this` to read_cutu_die_from_dwo.
9148
9149 2020-02-27 Aaron Merey <amerey@redhat.com>
9150
9151 * source.c (open_source_file): Check for nullptr when computing
9152 srcpath.
9153
9154 2020-02-27 Tom Tromey <tromey@adacore.com>
9155
9156 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9157 member.
9158 (dwarf2_add_field): Don't update nfields.
9159 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9160
9161 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9162
9163 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9164 abs.
9165
9166 2020-02-26 Tom Tromey <tom@tromey.com>
9167
9168 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9169 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9170 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9171 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9172 per_cu_data.
9173
9174 2020-02-26 Tom Tromey <tom@tromey.com>
9175
9176 * dwarf2/index-write.c (psym_index_map): Change type.
9177 (add_address_entry_worker, write_one_signatured_type)
9178 (recursively_count_psymbols, recursively_write_psymbols)
9179 (class debug_names, psyms_seen_size, write_gdbindex)
9180 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9181
9182 2020-02-26 Aaron Merey <amerey@redhat.com>
9183
9184 * Makefile.in: Handle optional debuginfod support.
9185 * NEWS: Update.
9186 * README: Add --with-debuginfod summary.
9187 * config.in: Regenerate.
9188 * configure: Regenerate.
9189 * configure.ac: Handle optional debuginfod support.
9190 * debuginfod-support.c: debuginfod helper functions.
9191 * debuginfod-support.h: Ditto.
9192 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9193 summary.
9194 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9195 when a dwz file cannot be found.
9196 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9197 debuginfo file cannot be found.
9198 * source.c (open_source_file): Query debuginfod servers when a
9199 source file cannot be found.
9200 * top.c (print_gdb_configuration): Include
9201 --{with,without}-debuginfod in the output.
9202
9203 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9204
9205 * thread.c (thr_try_catch_cmd): Print thread name.
9206
9207 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9208
9209 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9210 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9211 dwarf2_fetch_die_type_sect_off): Move to...
9212 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9213 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9214 dwarf2_fetch_die_type_sect_off): ... here.
9215 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9216 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9217 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9218
9219 2020-02-26 Tom de Vries <tdevries@suse.de>
9220
9221 PR gdb/25603
9222 * symfile.c (set_initial_language): Exit-early if
9223 language_mode == language_mode_manual.
9224
9225 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9226
9227 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9228 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9229 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9230
9231 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9232
9233 * gdbtypes.c (create_array_type_with_stride): Handle negative
9234 array strides.
9235 * valarith.c (value_subscripted_rvalue): Likewise.
9236
9237 2020-02-25 Luis Machado <luis.machado@linaro.org>
9238
9239 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9240
9241 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9242
9243 * loc.h (dwarf2_get_die_type): Move to...
9244 * read.h (dwarf2_get_die_type): ... here.
9245 * read.c (dwarf2_get_die_type): Move doc to header.
9246
9247 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9248
9249 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9250 'gnulib/Makefile.in' to the list.
9251
9252 2020-02-24 Tom Tromey <tom@tromey.com>
9253
9254 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9255 Remove.
9256 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9257 XOBNEWVEC.
9258
9259 2020-02-24 Tom Tromey <tom@tromey.com>
9260
9261 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9262 New method.
9263 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9264 (dw2_do_instantiate_symtab, dw2_get_file_names)
9265 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9266
9267 2020-02-24 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9270 make_scoped_restore.
9271 (dwarf2_psymtab::read_symtab): Don't clear
9272 reading_partial_symbols.
9273
9274 2020-02-24 Tom de Vries <tdevries@suse.de>
9275
9276 PR gdb/25592
9277 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9278
9279 2020-02-24 Tom de Vries <tdevries@suse.de>
9280
9281 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9282 commands layout next/prev/regs.
9283
9284 2020-02-22 Tom Tromey <tom@tromey.com>
9285
9286 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9287 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9288
9289 2020-02-22 Tom Tromey <tom@tromey.com>
9290
9291 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9292
9293 2020-02-22 Tom Tromey <tom@tromey.com>
9294
9295 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9296 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9297 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9298 * tui/tui.c (_initialize_tui): Add usage text.
9299
9300 2020-02-22 Tom Tromey <tom@tromey.com>
9301
9302 * tui/tui-win.c (tui_set_focus_command)
9303 (tui_set_win_height_command): Use error_no_arg.
9304 (_initialize_tui_win): Update help text.
9305 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9306
9307 2020-02-22 Tom Tromey <tom@tromey.com>
9308
9309 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9310 * tui/tui-disasm.h (struct tui_disasm_window)
9311 <display_start_addr>: Declare.
9312 * tui/tui-source.h (struct tui_source_window)
9313 <display_start_addr>: Declare.
9314 * tui/tui-winsource.h (struct tui_source_window_base)
9315 <show_source_line, display_start_addr>: New methods.
9316 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9317 Rename and move to protected section.
9318 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9319 (tui_source_window_base::do_erase_source_content): Update.
9320 (tui_source_window_base::show_source_line): Now a method.
9321 (tui_source_window_base::show_source_content)
9322 (tui_source_window_base::tui_source_window_base)
9323 (tui_source_window_base::rerender)
9324 (tui_source_window_base::refill)
9325 (tui_source_window_base::do_scroll_horizontal)
9326 (tui_source_window_base::set_is_exec_point_at)
9327 (tui_source_window_base::update_breakpoint_info)
9328 (tui_source_window_base::update_exec_info): Update.
9329 * tui/tui-source.c (tui_source_window::set_contents)
9330 (tui_source_window::showing_source_p)
9331 (tui_source_window::do_scroll_vertical)
9332 (tui_source_window::location_matches_p)
9333 (tui_source_window::line_is_displayed): Update.
9334 (tui_source_window::display_start_addr): New method.
9335 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9336 (tui_disasm_window::do_scroll_vertical)
9337 (tui_disasm_window::location_matches_p): Update.
9338 (tui_disasm_window::display_start_addr): New method.
9339
9340 2020-02-22 Tom Tromey <tom@tromey.com>
9341
9342 * NEWS: Add entry for gdb.register_window_type.
9343 * tui/tui-layout.h (window_factory): New typedef.
9344 (tui_register_window): Declare.
9345 * tui/tui-layout.c (saved_tui_windows): New global.
9346 (tui_apply_current_layout): Use it.
9347 (tui_register_window): New function.
9348 * python/python.c (do_start_initialization): Call
9349 gdbpy_initialize_tui.
9350 (python_GdbMethods): Add "register_window_type" function.
9351 * python/python-internal.h (gdbpy_register_tui_window)
9352 (gdbpy_initialize_tui): Declare.
9353 * python/py-tui.c: New file.
9354 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9355
9356 2020-02-22 Tom Tromey <tom@tromey.com>
9357
9358 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9359
9360 2020-02-22 Tom Tromey <tom@tromey.com>
9361
9362 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9363 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9364 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9365 (tui_set_win_focus_to): Move from tui-win.c.
9366
9367 2020-02-22 Tom Tromey <tom@tromey.com>
9368
9369 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9370 functions.
9371 (known_window_types): New global.
9372 (tui_get_window_by_name): Reimplement.
9373 (initialize_known_windows): New function.
9374 (validate_window_name): Rewrite.
9375 (_initialize_tui_layout): Call initialize_known_windows.
9376
9377 2020-02-22 Tom Tromey <tom@tromey.com>
9378
9379 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9380 Remove constants.
9381 * tui/tui-winsource.h (struct tui_source_window_base)
9382 <tui_source_window_base>: Remove parameter.
9383 * tui/tui-winsource.c
9384 (tui_source_window_base::tui_source_window_base): Remove
9385 parameter.
9386 (tui_source_window_base::refill): Update.
9387 * tui/tui-stack.h (struct tui_locator_window)
9388 <tui_locator_window>: Update.
9389 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9390 Default the constructor.
9391 * tui/tui-regs.h (struct tui_data_item_window)
9392 <tui_data_item_window>: Default the constructor.
9393 (struct tui_data_window) <tui_data_window>: Likewise.
9394 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9395 Default the constructor.
9396 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9397 Default the constructor.
9398 <type>: Remove.
9399 (struct tui_win_info) <tui_win_info>: Default the constructor.
9400 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9401 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9402 Default the constructor.
9403
9404 2020-02-22 Tom Tromey <tom@tromey.com>
9405
9406 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9407 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9408 * tui/tui-win.c (tui_resize_all): Don't call
9409 tui_delete_invisible_windows.
9410 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9411 done.
9412 (tui_set_layout): Update.
9413 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9414 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9415 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9416
9417 2020-02-22 Tom Tromey <tom@tromey.com>
9418
9419 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9420 correctly.
9421
9422 2020-02-22 Tom Tromey <tom@tromey.com>
9423
9424 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9425
9426 2020-02-22 Tom Tromey <tom@tromey.com>
9427
9428 * tui/tui-winsource.h (struct tui_source_window_iterator)
9429 <inner_iterator>: New etytypedef.
9430 <tui_source_window_iterator>: Take "end" parameter.
9431 <tui_source_window_iterator>: Take iterator.
9432 <operator*, advance>: Update.
9433 <m_iter>: Change type.
9434 <m_end>: New field.
9435 (struct tui_source_windows) <begin, end>: Update.
9436 * tui/tui-layout.c (tui_windows): New global.
9437 (tui_apply_current_layout): Clear tui_windows.
9438 (tui_layout_window::apply): Update tui_windows.
9439 * tui/tui-data.h (tui_windows): Declare.
9440 (all_tui_windows): Now inline function.
9441 (class tui_window_iterator, struct all_tui_windows): Remove.
9442
9443 2020-02-22 Tom Tromey <tom@tromey.com>
9444
9445 PR tui/17850:
9446 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9447 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9448 "height" argument.
9449 (class tui_layout_window) <get_sizes>: Likewise.
9450 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9451 argument.
9452 <get_sizes>: Add "height" argument.
9453 <m_vertical>: New field.
9454 * tui/tui-layout.c (tui_layout_split::clone): Update.
9455 (tui_layout_split::get_sizes): Add "height" argument.
9456 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9457 (tui_new_layout_command): Parse "-horizontal".
9458 (_initialize_tui_layout): Update help string.
9459 (tui_layout_split::specification): Add "-horizontal" when needed.
9460 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9461 argument.
9462 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9463 New methods.
9464
9465 2020-02-22 Tom Tromey <tom@tromey.com>
9466
9467 * tui/tui-layout.h (enum tui_adjust_result): New.
9468 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9469 (class tui_layout_window) <adjust_size>: Return
9470 tui_adjust_result. Rewrite.
9471 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9472 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9473
9474 2020-02-22 Tom Tromey <tom@tromey.com>
9475
9476 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9477 parameter and return types.
9478 (class tui_layout_base) <specification>: Add "depth".
9479 (class tui_layout_window) <specification>: Add "depth".
9480 (class tui_layout_split) <specification>: Add "depth".
9481 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9482 and return types.
9483 (tui_new_layout_command): Parse sub-layouts.
9484 (_initialize_tui_layout): Update help string.
9485 (tui_layout_window::specification): Add "depth".
9486 (add_layout_command): Update.
9487
9488 2020-02-22 Tom Tromey <tom@tromey.com>
9489
9490 * NEWS: Add "tui new-layout" item.
9491 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9492 Add new-layout command to help text.
9493 (validate_window_name): New function.
9494 (tui_new_layout_command): New function.
9495 (_initialize_tui_layout): Register "new-layout".
9496 (tui_layout_window::specification): New method.
9497 (tui_layout_window::specification): New method.
9498 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9499 method.
9500 (class tui_layout_window) <specification>: New method.
9501 (class tui_layout_split) <specification>: New method.
9502
9503 2020-02-22 Tom Tromey <tom@tromey.com>
9504
9505 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9506 * tui/tui-win.c (window_name_completer): Update comment.
9507 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9508 Declare method.
9509 (class tui_layout_window) <replace_window>: Likewise.
9510 (class tui_layout_split) <replace_window>: Likewise.
9511 (tui_set_layout): Don't declare.
9512 (tui_set_initial_layout): Declare function.
9513 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9514 (asm_regs_layout): New globals.
9515 (tui_current_layout, show_layout): Remove.
9516 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9517 (find_layout, tui_apply_layout): New function.
9518 (layout_completer): Remove.
9519 (tui_next_layout): Reimplement.
9520 (tui_next_layout_command): New function.
9521 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9522 (tui_regs_layout): Reimplement.
9523 (tui_regs_layout_command): New function.
9524 (extract_display_start_addr): Rewrite.
9525 (next_layout, prev_layout): Remove.
9526 (tui_layout_window::replace_window): New method.
9527 (tui_layout_split::replace_window): New method.
9528 (destroy_layout): New function.
9529 (layout_list): New global.
9530 (add_layout_command): New function.
9531 (initialize_layouts): Update.
9532 (tui_layout_command): New function.
9533 (_initialize_tui_layout): Install "layout" commands.
9534 * tui/tui-data.h (enum tui_layout_type): Remove.
9535 (tui_current_layout): Don't declare.
9536
9537 2020-02-22 Tom Tromey <tom@tromey.com>
9538
9539 * tui/tui-regs.c (tui_reg_layout): Remove.
9540 (tui_reg_command): Use tui_regs_layout.
9541 * tui/tui-layout.h (tui_reg_command): Declare.
9542 * tui/tui-layout.c (tui_reg_command): New function.
9543
9544 2020-02-22 Tom Tromey <tom@tromey.com>
9545
9546 * tui/tui.c (tui_rl_delete_other_windows): Call
9547 tui_remove_some_windows.
9548 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9549 Declare method.
9550 (class tui_layout_window) <remove_windows>: New method.
9551 (class tui_layout_split) <remove_windows>: Declare.
9552 (tui_remove_some_windows): Declare.
9553 * tui/tui-layout.c (tui_remove_some_windows): New function.
9554 (tui_layout_split::remove_windows): New method.
9555
9556 2020-02-22 Tom Tromey <tom@tromey.com>
9557
9558 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9559 * tui/tui-layout.h (tui_next_layout): Declare.
9560 * tui/tui-layout.c (tui_next_layout): New function.
9561
9562 2020-02-22 Tom Tromey <tom@tromey.com>
9563
9564 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9565 correct coordinates.
9566
9567 2020-02-22 Tom Tromey <tom@tromey.com>
9568
9569 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9570 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9571 DATA_WIN case.
9572
9573 2020-02-22 Tom Tromey <tom@tromey.com>
9574
9575 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9576 TUI_DISASM_WIN, not tui_win_list.
9577
9578 2020-02-22 Tom Tromey <tom@tromey.com>
9579
9580 * valprint.c (generic_val_print_enum_1)
9581 (val_print_type_code_flags): Style member names.
9582 * rust-lang.c (val_print_struct, rust_print_enum)
9583 (rust_print_struct_def, rust_internal_print_type): Style member
9584 names.
9585 * p-valprint.c (pascal_object_print_value_fields): Style member
9586 names. Only call fprintf_symbol_filtered for static members.
9587 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9588 * f-valprint.c (f_val_print): Style member names.
9589 * f-typeprint.c (f_type_print_base): Style member names.
9590 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9591 call fprintf_symbol_filtered for static members.
9592 (cp_print_class_member): Style member names.
9593 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9594 member names.
9595 * ada-valprint.c (ada_print_scalar): Style enum names.
9596 (ada_val_print_enum): Likewise.
9597 * ada-typeprint.c (print_enum_type): Style enum names.
9598
9599 2020-02-21 Tom Tromey <tom@tromey.com>
9600
9601 * psympriv.h (struct partial_symtab): Update comment.
9602
9603 2020-02-21 Tom Tromey <tromey@adacore.com>
9604
9605 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9606 type is CORE_ADDR.
9607
9608 2020-02-21 Tom de Vries <tdevries@suse.de>
9609
9610 PR gdb/25534
9611 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9612 if dependencies[i]->user != NULL.
9613
9614 2020-02-21 Ali Tamur <tamur@google.com>
9615
9616 * dwarf2/read.c (dwarf2_name): Add null check.
9617
9618 2020-02-20 Tom Tromey <tom@tromey.com>
9619
9620 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9621 ">=", in binary search.
9622 (dwarf2_find_containing_comp_unit): New overload.
9623 (run_test): New self-test.
9624 (_initialize_dwarf2_read): Register new test.
9625
9626 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9627
9628 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9629 * riscv-tdep.h: Likewise.
9630 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9631 rv32-only CSR.
9632 * features/riscv/64bit-csr.xml: Regenerated.
9633
9634 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9635 Tom Tromey <tom@tromey.com>
9636
9637 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9638 of 'fputc_unfiltered'.
9639 (putchar_unfiltered): Call 'fputc_unfiltered'.
9640 (fputc_unfiltered): Call 'fputs_unfiltered'.
9641
9642 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9643
9644 * config.in: Regenerate.
9645 * configure: Regenerate.
9646 * configure.ac: Add --with-python-libdir option.
9647 * main.c: Use WITH_PYTHON_LIBDIR.
9648
9649 2020-02-19 Tom Tromey <tom@tromey.com>
9650
9651 * symtab.c (general_symbol_info::compute_and_set_names): Use
9652 obstack_strndup. Simplify call to symbol_set_demangled_name.
9653
9654 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9655
9656 * dwarf2/read.c (allocate_signatured_type_table,
9657 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9658 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9659 Remove objfile parameter, update all callers.
9660
9661 2020-02-19 Doug Evans <dje@google.com>
9662
9663 PR rust/25535
9664 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9665 rust_enum_variant calculation.
9666
9667 2020-02-19 Tom Tromey <tromey@adacore.com>
9668
9669 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9670
9671 2020-02-19 Tom Tromey <tromey@adacore.com>
9672
9673 * ada-lang.c (cache_symbol): Use obstack_strdup.
9674
9675 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9676
9677 * configure: Regenerate.
9678
9679 2020-02-19 Tom Tromey <tromey@adacore.com>
9680
9681 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9682 NULL check.
9683
9684 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9685
9686 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9687
9688 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9689
9690 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9691 if GDBSERVER is not defined.
9692 (riscv_tdesc_cache): Likewise, also store const target_desc.
9693 (STATIC_IN_GDB): Define.
9694 (riscv_create_target_description): Update declaration with
9695 STATIC_IN_GDB.
9696 (riscv_lookup_target_description): New function, only define if
9697 GDBSERVER is not defined.
9698 * arch/riscv.h (riscv_create_target_description): Declare only
9699 when GDBSERVER is defined.
9700 (riscv_lookup_target_description): New declaration when GDBSERVER
9701 is not defined.
9702 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9703 (riscv_linux_read_features): ...this, and return
9704 riscv_gdbarch_features instead of target_desc.
9705 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9706 (riscv_linux_read_description): Rename to...
9707 (riscv_linux_read_features): ...this.
9708 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9709 Update to use riscv_gdbarch_features and
9710 riscv_lookup_target_description.
9711 * riscv-tdep.c (riscv_find_default_target_description): Use
9712 riscv_lookup_target_description instead of
9713 riscv_create_target_description.
9714
9715 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9716
9717 * valprint.c (generic_val_print_enum_1): When printing a flag
9718 enum with value 0 and there is no enumerator with value 0, print
9719 just "0" instead of "(unknown: 0x0)".
9720
9721 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9722
9723 * valprint.c (generic_val_print_enum_1): Print unknown part of
9724 flag enum in hex.
9725
9726 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9727
9728 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9729 flag enums to contain duplicate enumerators.
9730 * valprint.c (generic_val_print_enum_1): Update comment.
9731
9732 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * dwarf2/read.c: Include "count-one-bits.h".
9735 (update_enumeration_type_from_children): If an enumerator has
9736 multiple bits set, don't treat the enumeration as a "flag enum".
9737 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9738 of flag enums have 0 or 1 bit set.
9739
9740 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9741
9742 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9743 conversion.
9744 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9745 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9746 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9747 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9748 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9749
9750 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9751
9752 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9753
9754 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9757 displaced_step_closure_up.
9758 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9759 (struct displaced_step_closure_up):
9760 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9761 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9762 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9763 Likewise.
9764 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9765 * gdbarch.c, gdbarch.h: Re-generate.
9766 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9767 displaced_step_closure_up.
9768 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9769 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9770 * infrun.h (displaced_step_closure_up): New type alias.
9771 (struct displaced_step_inferior_state) <step_closure>: Change
9772 type to displaced_step_closure_up.
9773 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9774 displaced_step_closure_up.
9775 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9776
9777 2020-02-14 Tom Tromey <tom@tromey.com>
9778
9779 * minidebug.c (gnu_debug_key): New global.
9780 (find_separate_debug_file_in_section): Use it.
9781
9782 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9785 std::unique_ptr.
9786 * gdbarch.c: Re-generate.
9787 * gdbarch.h: Re-generate.
9788 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9789 change.
9790 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9791 type to std::unique_ptr.
9792 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9793 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9794 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9795 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9796 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9797 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9798 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9799 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9800 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9801
9802 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9805 std::unique_ptr.
9806 (displaced_step_clear): Rename to...
9807 (displaced_step_reset): ... this. Just call displaced->reset ().
9808 (displaced_step_clear_cleanup): Rename to...
9809 (displaced_step_reset_cleanup): ... this.
9810 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9811 (displaced_step_fixup): Likewise.
9812 (resume_1): Likewise.
9813 (handle_inferior_event): Restore child's memory before calling
9814 displaced_step_fixup on the parent.
9815 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9816 to std::unique_ptr.
9817 <step_closure>: Change type to std::unique_ptr.
9818
9819 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9820
9821 * arm-tdep.c: Include count-one-bits.h.
9822 (cleanup_block_store_pc): Use count_one_bits.
9823 (cleanup_block_load_pc): Use count_one_bits.
9824 (arm_copy_block_xfer): Use count_one_bits.
9825 (thumb2_copy_block_xfer): Use count_one_bits.
9826 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9827 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9828 (thumb_get_next_pcs_raw): Use count_one_bits.
9829 (arm_get_next_pcs_raw): Use count_one_bits_l.
9830 * arch/arm.c (bitcount): Remove.
9831 * arch/arm.h (bitcount): Remove.
9832
9833 2020-02-14 Tom Tromey <tromey@adacore.com>
9834
9835 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9836 Update.
9837 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9838 * dwarf2/loc.c (call_site_find_chain_1): Return
9839 unique_xmalloc_ptr.
9840 (call_site_find_chain): Likewise.
9841
9842 2020-02-14 Richard Biener <rguenther@suse.de>
9843
9844 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9845 on expression with division operators.
9846
9847 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9848
9849 * MAINTAINERS (Write After Approval): Adding myself.
9850
9851 2020-02-12 Tom Tromey <tom@tromey.com>
9852
9853 * event-loop.c (event_data, gdb_event, event_handler_func):
9854 Remove.
9855
9856 2020-02-12 Tom Tromey <tom@tromey.com>
9857
9858 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9859 (dwarf2_frame_objfile_data): Add comment.
9860 (find_comp_unit, set_comp_unit): New functions.
9861 (dwarf2_frame_find_fde): Use find_comp_unit.
9862 (dwarf2_build_frame_info): Use set_comp_unit.
9863
9864 2020-02-12 Tom Tromey <tom@tromey.com>
9865
9866 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9867 (comp_unit): Don't initialize objfile.
9868 (execute_cfa_program): Add text_offset parameter.
9869 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9870 (dwarf2_frame_cache): Update.
9871 (dwarf2_build_frame_info): Don't set "objfile" member.
9872
9873 2020-02-12 Tom Tromey <tom@tromey.com>
9874
9875 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9876 (decode_frame_entry): Likewise.
9877 (dwarf2_build_frame_info): Update.
9878
9879 2020-02-12 Tom Tromey <tom@tromey.com>
9880
9881 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9882 (decode_frame_entry_1): Use the comp_unit obstack.
9883
9884 2020-02-12 Tom Tromey <tom@tromey.com>
9885
9886 * dwarf2/frame.c (struct comp_unit): Add initializers and
9887 constructor.
9888 (dwarf2_frame_objfile_data): Store a comp_unit.
9889 (dwarf2_frame_find_fde): Update.
9890 (dwarf2_build_frame_info): Use "new".
9891
9892 2020-02-12 Tom Tromey <tom@tromey.com>
9893
9894 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9895 (dwarf2_fde_table): Typedef for std::vector.
9896 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9897 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9898 (decode_frame_entry): Update.
9899 (dwarf2_build_frame_info): Use "new".
9900
9901 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9902
9903 * arm-tdep.c (arm_gdbarch_init): Update.
9904 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9905 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9906 have_neon, is_m>: Change to bool.
9907
9908 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9909
9910 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9911
9912 2020-02-12 Tom Tromey <tom@tromey.com>
9913
9914 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9915
9916 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9917
9918 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9919 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9920
9921 2020-02-11 Tom Tromey <tom@tromey.com>
9922
9923 * psymtab.h: Update comment.
9924
9925 2020-02-11 Tom Tromey <tom@tromey.com>
9926
9927 * gdb_obstack.h (struct auto_obstack): Use
9928 DISABLE_COPY_AND_ASSIGN.
9929
9930 2020-02-11 Tom Tromey <tom@tromey.com>
9931
9932 * dwarf2/frame.h (struct objfile): Don't forward declare.
9933
9934 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9935
9936 * cris-tdep.c (cris_supply_gregset): Change signature to match
9937 what struct regset expects.
9938 (cris_regset): New struct.
9939 (fetch_core_registers): Remove.
9940 (cris_iterate_over_regset_sections): New function.
9941 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9942 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9943
9944 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9945
9946 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9947 registers.
9948
9949 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9950
9951 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9952
9953 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9954
9955 * configure: Re-generate.
9956
9957 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9958
9959 * configure: Re-generate.
9960
9961 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9962
9963 * acinclude: Update warning.m4 path.
9964 * warning.m4: Move to gdbsupport.
9965
9966 2020-02-11 Tom Tromey <tromey@adacore.com>
9967
9968 * remote.c (remote_console_output): Update.
9969 * printcmd.c (printf_command): Update.
9970 * event-loop.c (gdb_wait_for_event): Update.
9971 * linux-nat.c (sigchld_handler): Update.
9972 * remote-sim.c (gdb_os_write_stdout): Update.
9973 (gdb_os_flush_stdout): Update.
9974 (gdb_os_flush_stderr): Update.
9975 (gdb_os_write_stderr): Update.
9976 * exceptions.c (print_exception): Update.
9977 * remote-fileio.c (remote_fileio_func_read): Update.
9978 (remote_fileio_func_write): Update.
9979 * tui/tui.c (tui_enable): Update.
9980 * tui/tui-interp.c (tui_interp::init): Update.
9981 * utils.c (init_page_info): Update.
9982 (putchar_unfiltered, fputc_unfiltered): Update.
9983 (gdb_flush): Update.
9984 (emit_style_escape): Update.
9985 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9986 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9987 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9988 (stderr_file::write): Update.
9989 (stderr_file::puts): Update.
9990 * ui-file.h (ui_file_isatty, ui_file_write)
9991 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9992 (ui_file_puts): Don't declare.
9993
9994 2020-02-10 Tom de Vries <tdevries@suse.de>
9995
9996 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9997 sentinel to char *.
9998
9999 2020-02-09 Tom de Vries <tdevries@suse.de>
10000
10001 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10002 filename if it matches "<artificial>".
10003
10004 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10005
10006 * windows-tdep.c (struct enum_value_name): New struct.
10007 (create_enum): New function.
10008 (windows_get_siginfo_type): Create and use enum types.
10009
10010 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10011
10012 * NEWS: Mention $_siginfo support for Windows.
10013 * windows-nat.c (handle_exception): Set siginfo_er.
10014 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10015 (windows_xfer_siginfo): New function.
10016 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10017 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10018 (init_windows_gdbarch_data): New function.
10019 (get_windows_gdbarch_data): New function.
10020 (windows_get_siginfo_type): New function.
10021 (windows_init_abi): Register windows_get_siginfo_type.
10022 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10023
10024 2020-02-08 Tom Tromey <tom@tromey.com>
10025
10026 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10027 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10028 <keep>: Declare method.
10029 <m_keep>: Remove member.
10030 <~cutu_reader>: Remove.
10031 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10032 (cutu_reader::cutu_reader): Update.
10033 (cutu_reader::keep): Rename from ~cutu_reader.
10034 (process_psymtab_comp_unit, build_type_psymtabs_1)
10035 (process_skeletonless_type_unit, load_partial_comp_unit)
10036 (load_full_comp_unit, dwarf2_read_addr_index)
10037 (read_signatured_type): Update.
10038
10039 2020-02-08 Tom Tromey <tom@tromey.com>
10040
10041 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10042 "want_partial_unit" parameter.
10043 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10044 Inline check for DW_TAG_partial_unit.
10045 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10046
10047 2020-02-08 Tom Tromey <tom@tromey.com>
10048
10049 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10050 read.c.
10051 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10052 read.c.
10053
10054 2020-02-08 Tom Tromey <tom@tromey.com>
10055
10056 * dwarf2/read.c (read_address): Move to comp-unit.c.
10057 (dwarf2_rnglists_process, dwarf2_ranges_process)
10058 (read_attribute_value, dwarf_decode_lines_1)
10059 (var_decode_location, decode_locdesc): Update.
10060 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10061 read.c. Remove "cu" parameter.
10062 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10063 method.
10064
10065 2020-02-08 Tom Tromey <tom@tromey.com>
10066
10067 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10068 (read_indirect_line_string): Update.
10069 * dwarf2/comp-unit.c (read_offset): Remove.
10070 (read_comp_unit_head): Update.
10071 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10072 method.
10073 (read_offset): Don't declare.
10074
10075 2020-02-08 Tom Tromey <tom@tromey.com>
10076
10077 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10078 * dwarf2/read.c (struct comp_unit_head): Move to
10079 dwarf2/comp-unit.h.
10080 (enum class rcuh_kind): Move to comp-unit.h.
10081 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10082 (read_comp_unit_head, error_check_comp_unit_head)
10083 (read_and_check_comp_unit_head): Move to comp-unit.c.
10084 (read_offset, dwarf_unit_type_name): Likewise.
10085 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10086 (cutu_reader::cutu_reader, read_call_site_scope)
10087 (find_partial_die, follow_die_offset): Update.
10088 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10089
10090 2020-02-08 Tom Tromey <tom@tromey.com>
10091
10092 * dwarf2/read.c (read_offset_1): Move to leb.c.
10093 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10094 (dwarf_decode_macro_bytes): Update.
10095 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10096 * dwarf2/leb.h (read_offset): Declare.
10097
10098 2020-02-08 Tom Tromey <tom@tromey.com>
10099
10100 * dwarf2/read.c (dwarf2_section_size): Remove.
10101 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10102 Update.
10103 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10104
10105 2020-02-08 Tom Tromey <tom@tromey.com>
10106
10107 * dwarf2/read.c (read_initial_length): Move to leb.c.
10108 * dwarf2/leb.h (read_initial_length): Declare.
10109 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10110 handle_nonstd parameter.
10111 * dwarf2/frame.c (read_initial_length): Remove.
10112 (decode_frame_entry_1): Update.
10113
10114 2020-02-08 Tom Tromey <tom@tromey.com>
10115
10116 * dwarf2/loc.c (dwarf2_find_location_expression)
10117 (dwarf_evaluate_loc_desc::get_tls_address)
10118 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10119 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10120 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10121 (dwarf2_compile_property_to_c)
10122 (dwarf2_loc_desc_get_symbol_read_needs)
10123 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10124 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10125 (loclist_describe_location, loclist_tracepoint_var_ref)
10126 (loclist_generate_c_location): Update.
10127 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10128 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10129 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10130 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10131 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10132 (dwarf2_per_cu_data::addr_size)
10133 (dwarf2_per_cu_data::ref_addr_size)
10134 (dwarf2_per_cu_data::text_offset)
10135 (dwarf2_per_cu_data::addr_type): Now methods.
10136 (per_cu_header_read_in): Make per_cu "const".
10137 (dwarf2_version): Remove.
10138 (dwarf2_per_cu_data::int_type): Now a method.
10139 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10140 (set_die_type, read_array_type, read_subrange_index_type)
10141 (read_tag_string_type, read_subrange_type): Update.
10142 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10143 offset_size, ref_addr_size, text_offset, addr_type, version,
10144 objfile, int_type, addr_sized_int_type>: Declare methods.
10145
10146 2020-02-08 Tom Tromey <tom@tromey.com>
10147
10148 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10149 Move earlier.
10150
10151 2020-02-08 Tom Tromey <tom@tromey.com>
10152
10153 * dwarf2/read.h (dwarf_line_debug): Declare.
10154 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10155 * dwarf2/read.c: Move line_header code to new files.
10156 (dwarf_line_debug): No longer static.
10157 * dwarf2/line-header.c: New file.
10158 * dwarf2/line-header.h: New file.
10159
10160 2020-02-08 Tom Tromey <tom@tromey.com>
10161
10162 * dwarf2/read.c (struct line_header) <file_full_name,
10163 file_file_name>: Return unique_xmalloc_ptr.
10164 (line_header::file_file_name): Update.
10165 (line_header::file_full_name): Update.
10166 (dw2_get_file_names_reader): Update.
10167 (macro_start_file): Update.
10168
10169 2020-02-08 Tom Tromey <tom@tromey.com>
10170
10171 * dwarf2/read.c (struct line_header) <file_full_name,
10172 file_file_name>: Declare methods.
10173 (dw2_get_file_names_reader): Update.
10174 (file_file_name): Now a method.
10175 (file_full_name): Likewise.
10176 (macro_start_file): Update.
10177
10178 2020-02-08 Tom Tromey <tom@tromey.com>
10179
10180 * dwarf2/read.c (dwarf_always_disassemble)
10181 (show_dwarf_always_disassemble): Move to loc.c.
10182 (_initialize_dwarf2_read): Move "always-disassemble" registration
10183 to loc.c.
10184 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10185 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10186 static.
10187 (show_dwarf_always_disassemble): Move from read.c.
10188 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10189
10190 2020-02-08 Tom Tromey <tom@tromey.com>
10191
10192 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10193 (create_quick_file_names_table): Return htab_up.
10194 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10195 Update.
10196 * dwarf2/read.h (struct dwarf2_per_objfile)
10197 <quick_file_names_table>: Now htab_up.
10198
10199 2020-02-08 Tom Tromey <tom@tromey.com>
10200
10201 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10202
10203 2020-02-08 Tom Tromey <tom@tromey.com>
10204
10205 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10206 Rewrite.
10207 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10208 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10209 (abbrev_table::abbrev_table): No longer inline.
10210 (ABBREV_HASH_SIZE): Remove.
10211 (abbrev_table::m_abbrevs): Now an htab_up.
10212
10213 2020-02-08 Tom Tromey <tom@tromey.com>
10214
10215 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10216 (cutu_reader): Update.
10217 (build_type_psymtabs_1): Update.
10218 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10219 (abbrev_table::alloc_abbrev): Update.
10220 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10221 (abbrev_table::read): New static method, renamed from
10222 abbrev_table_read_table.
10223 (abbrev_table::alloc_abbrev)
10224 (abbrev_table::add_abbrev): Now private.
10225 (abbrev_table::abbrev_table): Now private.
10226 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10227
10228 2020-02-08 Tom Tromey <tom@tromey.com>
10229
10230 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10231 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10232 htab_up.
10233
10234 2020-02-08 Tom Tromey <tom@tromey.com>
10235
10236 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10237 htab_up.
10238 (lookup_dwo_unit_in_dwp): Update.
10239 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10240 on obstack.
10241
10242 2020-02-08 Tom Tromey <tom@tromey.com>
10243
10244 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10245 obstack.
10246
10247 2020-02-08 Tom Tromey <tom@tromey.com>
10248
10249 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10250 line_header_hash.
10251 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10252 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10253 Change type to htab_up.
10254
10255 2020-02-08 Tom Tromey <tom@tromey.com>
10256
10257 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10258 htab_up. Don't allocate on obstack.
10259 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10260 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10261 Change type to htab_up.
10262
10263 2020-02-08 Tom Tromey <tom@tromey.com>
10264
10265 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10266 Change type to htab_up.
10267 * dwarf2/read.c (create_signatured_type_table_from_index)
10268 (create_signatured_type_table_from_debug_names)
10269 (create_all_type_units, add_type_unit)
10270 (lookup_dwo_signatured_type, lookup_signatured_type)
10271 (process_skeletonless_type_unit): Update.
10272 (create_debug_type_hash_table, create_debug_types_hash_table):
10273 Change type of types_htab.
10274 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10275 htab_up. Don't allocate on obstack.
10276 (create_cus_hash_table): Change type of cus_htab parameter.
10277 (struct dwo_file) <cus, tus>: Now htab_up.
10278 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10279 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10280 (queue_and_load_all_dwo_tus): Update.
10281 * dwarf2/index-write.c (write_gdbindex): Update.
10282 (write_debug_names): Update.
10283
10284 2020-02-08 Tom Tromey <tom@tromey.com>
10285
10286 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10287 dwarf2/read.c. Remove "next" member. Add constructor ntad
10288 destructor.
10289 (struct dwarf2_per_objfile) <queue>: New member.
10290 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10291 dwarf2/read.h.
10292 (dwarf2_queue, dwarf2_queue_tail): Remove.
10293 (class dwarf2_queue_guard): Add parameter to constructor. Use
10294 DISABLE_COPY_AND_ASSIGN.
10295 <m_per_objfile>: New member.
10296 <~dwarf2_queue_guard>: Rewrite.
10297 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10298 Update.
10299 (~dwarf2_queue_item): New.
10300
10301 2020-02-08 Tom Tromey <tom@tromey.com>
10302
10303 * dwarf2/read.c (struct die_info) <has_children>: New member.
10304 (dw2_get_file_names_reader): Remove has_children.
10305 (dw2_get_file_names): Update.
10306 (read_cutu_die_from_dwo): Remove has_children.
10307 (cutu_reader::init_tu_and_read_dwo_dies)
10308 (cutu_reader::cutu_reader): Update.
10309 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10310 Remove has_children.
10311 (build_type_psymtabs_1, process_skeletonless_type_unit)
10312 (load_partial_comp_unit, load_full_comp_unit): Update.
10313 (create_dwo_cu_reader): Remove has_children.
10314 (create_cus_hash_table, read_die_and_children): Update.
10315 (read_full_die_1,read_full_die): Remove has_children.
10316 (read_signatured_type): Update.
10317 (class cutu_reader) <has_children>: Remove.
10318
10319 2020-02-08 Tom Tromey <tom@tromey.com>
10320
10321 * dwarf2/expr.c: Rename from dwarf2expr.c.
10322 * dwarf2/expr.h: Rename from dwarf2expr.h.
10323 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10324 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10325 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10326 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10327 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10328 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10329 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10330 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10331 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10332 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10333 * dwarf2/loc.c: Rename from dwarf2loc.c.
10334 * dwarf2/loc.h: Rename from dwarf2loc.h.
10335 * dwarf2/read.c: Rename from dwarf2read.c.
10336 * dwarf2/read.h: Rename from dwarf2read.h.
10337 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10338 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10339 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10340 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10341 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10342 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10343 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10344 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10345 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10346 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10347 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10348 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10349 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10350 Update.
10351 * Makefile.in (COMMON_SFILES): Update.
10352 (HFILES_NO_SRCDIR): Update.
10353
10354 2020-02-08 Tom Tromey <tom@tromey.com>
10355
10356 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10357 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10358
10359 2020-02-08 Tom Tromey <tom@tromey.com>
10360
10361 * dwarf2read.h (struct die_info): Don't declare.
10362
10363 2020-02-08 Tom Tromey <tom@tromey.com>
10364
10365 * dwarf2read.h (die_info_ptr): Remove typedef.
10366
10367 2020-02-08 Tom Tromey <tom@tromey.com>
10368
10369 * dwarf2read.c (read_call_site_scope)
10370 (handle_data_member_location, dwarf2_add_member_fn)
10371 (mark_common_block_symbol_computed, read_common_block)
10372 (attr_to_dynamic_prop, partial_die_info::read)
10373 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10374 (dwarf2_symbol_mark_computed, set_die_type): Update.
10375 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10376 method.
10377 (attr_form_is_block): Don't declare.
10378 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10379
10380 2020-02-08 Tom Tromey <tom@tromey.com>
10381
10382 * dwarf2read.c (dwarf2_find_base_address, )
10383 (read_call_site_scope, rust_containing_type)
10384 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10385 (handle_data_member_location, dwarf2_add_member_fn)
10386 (get_alignment, read_structure_type, process_structure_scope)
10387 (mark_common_block_symbol_computed, read_common_block)
10388 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10389 (partial_die_info::read, read_attribute_value, new_symbol)
10390 (lookup_die_type, dwarf2_get_ref_die_offset)
10391 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10392 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10393 (dwarf2_symbol_mark_computed): Update.
10394 * dwarf2/attribute.h (struct attribute) <value_as_address,
10395 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10396 methods.
10397 (value_as_address, attr_form_is_section_offset)
10398 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10399 * dwarf2/attribute.c (attribute::value_as_address)
10400 (attribute::form_is_section_offset, attribute::form_is_constant)
10401 (attribute::form_is_ref): Now methods.
10402
10403 2020-02-08 Tom Tromey <tom@tromey.com>
10404
10405 * dwarf2read.c (struct attribute, DW_STRING)
10406 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10407 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10408 (attr_form_is_block, attr_form_is_section_offset)
10409 (attr_form_is_constant, attr_form_is_ref): Move.
10410 * dwarf2/attribute.h: New file.
10411 * dwarf2/attribute.c: New file, from dwarf2read.c.
10412 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10413
10414 2020-02-08 Tom Tromey <tom@tromey.com>
10415
10416 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10417 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10418 Move.
10419 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10420 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10421 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10422 abbrev.c.
10423 * dwarf2/abbrev.h: New file.
10424 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10425 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10426
10427 2020-02-08 Tom Tromey <tom@tromey.com>
10428
10429 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10430 (dwarf2_section_size, dwarf2_get_section_info)
10431 (create_signatured_type_table_from_debug_names)
10432 (create_addrmap_from_aranges, read_debug_names_from_section)
10433 (get_gdb_index_contents_from_section, read_comp_unit_head)
10434 (error_check_comp_unit_head, read_abbrev_offset)
10435 (create_debug_type_hash_table, init_cu_die_reader)
10436 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10437 (read_comp_units_from_section, create_cus_hash_table)
10438 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10439 (create_dwp_v2_section, dwarf2_rnglists_process)
10440 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10441 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10442 (read_indirect_string_from_dwz, read_addr_index_1)
10443 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10444 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10445 (fill_in_loclist_baton): Update.
10446 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10447 get_containing_section, get_bfd_owner, get_bfd_section,
10448 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10449 (dwarf2_read_section, get_section_name, get_section_file_name)
10450 (get_containing_section, get_section_bfd_owner)
10451 (get_section_bfd_section, get_section_name, get_section_file_name)
10452 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10453 declare.
10454 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10455 (dwarf2_section_info::get_bfd_owner)
10456 (dwarf2_section_info::get_bfd_section)
10457 (dwarf2_section_info::get_name)
10458 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10459 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10460 (dwarf2_section_info::read): Now methods.
10461 * dwarf-index-write.c (class debug_names): Update.
10462
10463 2020-02-08 Tom Tromey <tom@tromey.com>
10464
10465 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10466 Move to dwarf2/section.h.
10467 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10468 (get_section_bfd_section, get_section_name)
10469 (get_section_file_name, get_section_id, get_section_flags)
10470 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10471 dwarf2/section.c.
10472 * dwarf2/section.h: New file.
10473 * dwarf2/section.c: New file, from dwarf2read.c.
10474 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10475
10476 2020-02-08 Tom Tromey <tom@tromey.com>
10477
10478 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10479 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10480 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10481 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10482 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10483 * dwarf2/leb.h: New file, from dwarf2read.c.
10484 * dwarf2/leb.c: New file, from dwarf2read.c.
10485 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10486 Remove.
10487 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10488 (COMMON_SFILES): Add dwarf2/leb.c.
10489
10490 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10491
10492 GDB 9.1 released.
10493
10494 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10495
10496 PR gdb/25190:
10497 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10498 * gdb/remote.c (remote_console_output): Update.
10499 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10500 (ui_file_puts): ...this.
10501 * gdb/ui-file.h (ui_file_puts): Add declaration.
10502 * gdb/utils.c (emit_style_escape): Update.
10503 (flush_wrap_buffer): Update.
10504 (fputs_maybe_filtered): Update.
10505 (fputs_unfiltered): Add function.
10506
10507 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10508
10509 * gdb/event-loop.c (gdb_wait_for_event): Update.
10510 * gdb/printcmd.c (printf_command): Update.
10511 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10512 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10513 (gdb_os_flush_stderr): Update.
10514 * gdb/remote.c (remote_console_output): Update.
10515 * gdb/ui-file.c (gdb_flush): Rename to...
10516 (ui_file_flush): ...this.
10517 (stderr_file::write): Update.
10518 (stderr_file::puts): Update.
10519 * gdb/ui-file.h (gdb_flush): Rename to...
10520 (ui_file_flush): ...this.
10521 * gdb/utils.c (gdb_flush): Add function.
10522 * gdb/utils.h (gdb_flush): Add declaration.
10523
10524 2020-02-07 Tom Tromey <tromey@adacore.com>
10525
10526 PR breakpoints/24915:
10527 * source.c (find_and_open_source): Do not check basenames_may_differ.
10528
10529 2020-02-07 Tom Tromey <tom@tromey.com>
10530
10531 * README: Update gdbserver documentation.
10532 * gdbserver: Move to top level.
10533 * configure.tgt (build_gdbserver): Remove.
10534 * configure.ac: Remove --enable-gdbserver.
10535 * configure: Rebuild.
10536 * Makefile.in (distclean): Don't mention gdbserver.
10537
10538 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10539
10540 * source-cache.c (source_cache::ensure): Surround
10541 get_plain_source_lines with a try/catch.
10542 (source_cache::get_line_charpos): Get rid of try/catch
10543 and only check for the return value of "ensure".
10544 * tui/tui-source.c (tui_source_window::set_contents):
10545 Simplify "nlines" calculation.
10546
10547 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10548
10549 * MAINTAINERS (Write After Approval): Add myself.
10550
10551 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10552
10553 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10554 function call.
10555
10556 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10557
10558 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10559
10560 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10561
10562 * nat/riscv-linux-tdesc.h: New file.
10563 * nat/riscv-linux-tdesc.c: New file, taking code from...
10564 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10565 ... here.
10566 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10567 NATDEPFILES.
10568
10569 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10570
10571 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10572 we don't set the fake simulator ptid to the null_ptid.
10573
10574 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10575
10576 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10577 * gdbthread.h (class thread_info) <resumed>: Likewise.
10578 * infrun.c (resume_1): Likewise.
10579 (proceed): Likewise.
10580 (infrun_thread_stop_requested): Likewise.
10581 (stop_all_threads): Likewise.
10582 (handle_inferior_event): Likewise.
10583 (restart_threads): Likewise.
10584 (finish_step_over): Likewise.
10585 (keep_going_stepped_thread): Likewise.
10586 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10587 (linux_handle_extended_wait): Likewise.
10588 * record-btrace.c (get_thread_current_frame_id): Likewise.
10589 * record-full.c (record_full_wait_1): Likewise.
10590 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10591 * target.c (target_resume): Likewise.
10592 * thread.c (set_running_thread): Likewise.
10593
10594 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10595
10596 * f-valprint.c (f77_print_array_1): Changed datatype of index
10597 variable to LONGEST from int to enable it to contain bound
10598 values correctly.
10599
10600 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10601
10602 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10603 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10604 offsets according to FLEN determined.
10605 (riscv_linux_nat_target::read_description): Determine FLEN
10606 dynamically.
10607 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10608 according to FLEN determined.
10609 (riscv_linux_nat_target::store_registers): Likewise.
10610
10611 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10612
10613 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10614 when reg->group is empty and reggroup is not.
10615
10616 2020-01-31 Tom Tromey <tromey@adacore.com>
10617
10618 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10619 Call beneath target's mourn_inferior after unpushing.
10620
10621 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10622
10623 PR tui/9765
10624 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10625 have enough lines to fill the screen, still return the lowest
10626 address we found.
10627
10628 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10629
10630 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10631 '-', '<', and '>' commands.
10632
10633 2020-01-29 Pedro Alves <palves@redhat.com>
10634 Sergio Durigan Junior <sergiodj@redhat.com>
10635
10636 * infcmd.c (construct_inferior_arguments): Assert that
10637 'argc' is greater than 0.
10638
10639 2020-01-29 Luis Machado <luis.machado@linaro.org>
10640
10641 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10642 (BRK_INSN_MASK): Define to 0xd4200000.
10643 (aarch64_program_breakpoint_here_p): New function.
10644 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10645 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10646 breakpoint.c.
10647 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10648 breakpoint.h
10649 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10650 call gdbarch_program_breakpoint_here_p.
10651 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10652 default_program_breakpoint_here_p, changed return type to bool and
10653 simplified.
10654 * breakpoint.h (program_breakpoint_here): Moved prototype to
10655 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10656 return type to bool.
10657 * gdbarch.c: Regenerate.
10658 * gdbarch.h: Regenerate.
10659 * gdbarch.sh (program_breakpoint_here_p): New method.
10660 * infrun.c (handle_signal_stop): Call
10661 gdbarch_program_breakpoint_here_p.
10662
10663 2020-01-26 Tom Tromey <tom@tromey.com>
10664
10665 * ctfread.c (struct ctf_fp_info): Reindent.
10666 (_initialize_ctfread): Remove.
10667
10668 2020-01-26 Tom Tromey <tom@tromey.com>
10669
10670 * psymtab.c (partial_map_expand_apply)
10671 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10672 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10673 (psym_print_stats, psym_expand_symtabs_for_function)
10674 (psym_map_symbol_filenames, psym_map_matching_symbols)
10675 (psym_expand_symtabs_matching)
10676 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10677 (maintenance_check_psymtabs): Use new methods.
10678 * psympriv.h (struct partial_symtab) <readin_p,
10679 get_compunit_symtab>: New methods.
10680 <readin, compunit_symtab>: Remove members.
10681 (struct standard_psymtab): New.
10682 (struct legacy_psymtab): Derive from standard_psymtab.
10683 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10684 standard_psymtab.
10685 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10686
10687 2020-01-26 Tom Tromey <tom@tromey.com>
10688
10689 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10690 read_dependencies. Add assert.
10691 * psymtab.c (partial_symtab::read_dependencies): New method.
10692 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10693 method.
10694 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10695 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10696 read_dependencies.
10697 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10698 Add assert.
10699
10700 2020-01-26 Tom Tromey <tom@tromey.com>
10701
10702 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10703 Call expand_psymtab.
10704 (xcoff_read_symtab): Call expand_psymtab.
10705 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10706 legacy_expand_psymtab.
10707 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10708 method.
10709 (struct legacy_psymtab) <expand_psymtab>: Implement.
10710 <legacy_expand_psymtab>: New member.
10711 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10712 (parse_partial_symbols): Set legacy_expand_psymtab.
10713 (psymtab_to_symtab_1): Change argument order. Call
10714 expand_psymtab.
10715 (new_psymtab): Set legacy_expand_psymtab.
10716 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10717 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10718 expand_psymtab.
10719 (dwarf2_psymtab::expand_psymtab): Rename from
10720 psymtab_to_symtab_1. Call expand_psymtab.
10721 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10722 (dbx_end_psymtab): Likewise.
10723 (dbx_psymtab_to_symtab_1): Change argument order. Call
10724 expand_psymtab.
10725 (dbx_read_symtab): Call expand_psymtab.
10726 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10727 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10728 (ctf_psymtab::read_symtab): Call expand_psymtab.
10729
10730 2020-01-26 Tom Tromey <tom@tromey.com>
10731
10732 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10733 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10734 messages.
10735 * mdebugread.c (mdebug_read_symtab): Remove prints.
10736 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10737 assert.
10738 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10739
10740 2020-01-26 Tom Tromey <tom@tromey.com>
10741
10742 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10743 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10744 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10745 legacy_symtab.
10746 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10747 * psymtab.c (psymtab_to_symtab): Call method.
10748 (dump_psymtab): Update.
10749 * psympriv.h (struct partial_symtab): Add virtual destructor.
10750 <read_symtab>: New method.
10751 (struct legacy_symtab): New.
10752 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10753 (struct pst_map) <pst>: Now a legacy_psymtab.
10754 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10755 (new_psymtab): Use legacy_psymtab.
10756 * dwarf2read.h (struct dwarf2_psymtab): New.
10757 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10758 * dwarf2read.c (dwarf2_create_include_psymtab)
10759 (dwarf2_build_include_psymtabs, create_type_unit_group)
10760 (create_partial_symtab, process_psymtab_comp_unit_reader)
10761 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10762 (set_partial_user): Use dwarf2_psymtab.
10763 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10764 (psymtab_to_symtab_1, process_full_comp_unit)
10765 (process_full_type_unit, dwarf2_ranges_read)
10766 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10767 (dwarf_decode_lines): Use dwarf2_psymtab.
10768 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10769 (add_address_entry_worker, write_one_signatured_type)
10770 (recursively_count_psymbols, recursively_write_psymbols)
10771 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10772 (write_debug_names): Likewise.
10773 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10774 <pst>: Now a legacy_psymtab.
10775 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10776 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10777 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10778 * ctfread.c (struct ctf_psymtab): New.
10779 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10780 ctf_psymtab.
10781 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10782 (create_partial_symtab): Return a ctf_psymtab.
10783 (scan_partial_symbols): Update.
10784
10785 2020-01-26 Tom Tromey <tom@tromey.com>
10786
10787 * xcoffread.c (xcoff_start_psymtab): Use new.
10788 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10789 renamed from start_psymtab_common.
10790 * psympriv.h (struct partial_symtab): Add new constructor.
10791 (start_psymtab_common): Don't declare.
10792 * mdebugread.c (parse_partial_symbols): Use new.
10793 * dwarf2read.c (create_partial_symtab): Use new.
10794 * dbxread.c (start_psymtab): Use new.
10795 * ctfread.c (create_partial_symtab): Use new.
10796
10797 2020-01-26 Tom Tromey <tom@tromey.com>
10798
10799 * xcoffread.c (xcoff_end_psymtab): Use new.
10800 * psymtab.c (start_psymtab_common): Use new.
10801 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10802 Update.
10803 * psympriv.h (struct partial_symtab): Add parameters to
10804 constructor. Don't inline.
10805 (allocate_psymtab): Don't declare.
10806 * mdebugread.c (new_psymtab): Use new.
10807 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10808 * dbxread.c (dbx_end_psymtab): Use new.
10809
10810 2020-01-26 Tom Tromey <tom@tromey.com>
10811
10812 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10813 allocate_psymtab. Update documentation.
10814 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10815 allocate_psymtab. Do not use new.
10816 (allocate_psymtab): Use new. Update.
10817
10818 2020-01-26 Tom Tromey <tom@tromey.com>
10819
10820 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10821 * psymtab.c (psym_print_stats): Update.
10822 * psympriv.h (struct partial_symtab) <readin,
10823 psymtabs_addrmap_supported, anonymous>: Now bool.
10824 * mdebugread.c (psymtab_to_symtab_1): Update.
10825 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10826 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10827 (process_full_comp_unit, process_full_type_unit): Update.
10828 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10829 * ctfread.c (psymtab_to_symtab): Update.
10830
10831 2020-01-26 Tom Tromey <tom@tromey.com>
10832
10833 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10834 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10835 * psymtab.c (psymtab_storage): Delete psymtabs.
10836 (psymtab_storage::allocate_psymtab): Use new.
10837 (psymtab_storage::discard_psymtab): Use delete.
10838 * psympriv.h (struct partial_symtab): Add constructor and
10839 initializers.
10840
10841 2020-01-26 Tom Tromey <tom@tromey.com>
10842
10843 * machoread.c: Do not include psympriv.h.
10844
10845 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10846
10847 * NEWS: Mention the new option and the set/show commands.
10848
10849 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10850
10851 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10852 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10853 (validate_exec_file): New variables, enums, functions.
10854 (exec_file_locate_attach, print_section_info): Style the filenames.
10855 (_initialize_exec): Install show_exec_file_mismatch_command and
10856 set_exec_file_mismatch_command.
10857 * gdbcore.h (validate_exec_file): Declare.
10858 * infcmd.c (attach_command): Call validate_exec_file.
10859 * remote.c ( remote_target::remote_add_inferior): Likewise.
10860
10861 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10862
10863 * frame.c (find_frame_sal): Move call to get_next_frame into more
10864 inner scope.
10865 * inline-frame.c (inilne_state) <inline_state>: Update argument
10866 types.
10867 (inilne_state) <skipped_symbol>: Rename to...
10868 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10869 (skip_inline_frames): Build vector of skipped symbols and use this
10870 to reate the inline_state.
10871 (inline_skipped_symbol): Add a comment and some assertions, fetch
10872 skipped symbol from the list.
10873
10874 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10875
10876 * buildsym.c (lte_is_less_than): Delete.
10877 (buildsym_compunit::end_symtab_with_blockvector): Create local
10878 lambda function to sort line table entries, and use
10879 std::stable_sort instead of std::sort.
10880 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10881 markers when looking for a previous line.
10882
10883 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10884
10885 * dwarf2read.c (lnp_state_machine::record_line): Include
10886 end_sequence parameter in debug print out. Record the line if we
10887 are at an end_sequence marker even if it's not the start of a
10888 statement.
10889 * symmisc.c (maintenance_print_one_line_table): Print end of
10890 sequence markers with 'END' not '0'.
10891
10892 2020-01-24 Pedro Alves <palves@redhat.com>
10893
10894 PR gdb/25410
10895 * thread.c (scoped_restore_current_thread::restore): Use
10896 switch_to_inferior_no_thread.
10897 * exec.c: Include "progspace-and-thread.h".
10898 (add_target_sections, remove_target_sections):
10899 scoped_restore_current_pspace_and_thread instead of
10900 scoped_restore_current_thread.
10901 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10902 and aspace to the inferior before calling clone_program_space.
10903 Remove stale comment.
10904
10905 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10906
10907 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10908 (arm_netbsd_nat_target::fetch_registers): ...this.
10909 (arm_nbsd_nat_target::store_registers): Rename to...
10910 (arm_netbsd_nat_target::store_registers): ...this.
10911
10912 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10913
10914 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10915 register_t.
10916
10917 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10918
10919 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10920 Update comment.
10921 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10922 Likewise.
10923 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10924 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10925 the correct replacement (iterate_over_regset_sections).
10926 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10927 Update comment.
10928
10929 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10930
10931 PR gdb/23718
10932 * gdb/python/python.c (execute_gdb_command): Call
10933 async_enable_stdin in catch block.
10934
10935 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10936
10937 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10938 SWITCH_THRU_ALL_UIS.
10939
10940 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10941
10942 PR tui/9765
10943 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10944 comment, add extra parameter, and update to store previous symbol
10945 when appropriate.
10946 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10947 add extra parameter.
10948 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10949 remove unneeded parameter, add try/catch around gdb_print_insn,
10950 rewrite to add items to asm_lines vector.
10951 (tui_find_backward_disassembly_start_address): New function.
10952 (tui_find_disassembly_address): Updated throughout.
10953 (tui_disasm_window::set_contents): Update for changes to
10954 tui_disassemble.
10955 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10956 number of lines to scroll.
10957
10958 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10959
10960 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10961 (SECT_OFF_DATA): Likewise.
10962 (SECT_OFF_RODATA): Likewise.
10963 (SECT_OFF_TEXT): Likewise.
10964 (SECT_OFF_BSS): Likewise.
10965 (struct objfile) <text_section_offset, data_section_offset>: New
10966 methods.
10967 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10968 objfile::text_section_offset.
10969 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10970 * coffread.c (coff_symtab_read): Likewise.
10971 (enter_linenos): Likewise.
10972 (process_coff_symbol): Likewise.
10973 * ctfread.c (get_objfile_text_range): Likewise.
10974 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10975 Use objfile::data_section_offset.
10976 * dwarf2-frame.c (execute_cfa_program): Use
10977 objfile::text_section_offset.
10978 (dwarf2_frame_find_fde): Likewise.
10979 * dwarf2read.c (create_addrmap_from_index): Likewise.
10980 (create_addrmap_from_aranges): Likewise.
10981 (dw2_find_pc_sect_compunit_symtab): Likewise.
10982 (process_psymtab_comp_unit_reader): Likewise.
10983 (add_partial_symbol): Likewise.
10984 (add_partial_subprogram): Likewise.
10985 (process_full_comp_unit): Likewise.
10986 (read_file_scope): Likewise.
10987 (read_func_scope): Likewise.
10988 (read_lexical_block_scope): Likewise.
10989 (read_call_site_scope): Likewise.
10990 (dwarf2_rnglists_process): Likewise.
10991 (dwarf2_ranges_process): Likewise.
10992 (dwarf2_ranges_read): Likewise.
10993 (dwarf_decode_lines_1): Likewise.
10994 (new_symbol): Likewise.
10995 (dwarf2_fetch_die_loc_sect_off): Likewise.
10996 (dwarf2_per_cu_text_offset): Likewise.
10997 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10998 * hppa-tdep.c (read_unwind_info): Likewise.
10999 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11000 * psympriv.h (struct partial_symtab): Likewise.
11001 * psymtab.c (find_pc_sect_psymtab): Likewise.
11002 * solib-svr4.c (enable_break): Likewise.
11003 * stap-probe.c (relocate_address): Use
11004 objfile::data_section_offset.
11005 * xcoffread.c (enter_line_range): Use
11006 objfile::text_section_offset.
11007 (read_xcoff_symtab): Likewise.
11008
11009 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11010
11011 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11012 declaration to narrower scopes.
11013
11014 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11015
11016 * darwin-nat.h (struct darwin_exception_msg, enum
11017 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11018 Move up.
11019 (class darwin_nat_target) <wait_1, check_new_threads,
11020 decode_exception_message, decode_message, stop_inferior,
11021 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11022 * darwin-nat.c (darwin_check_new_threads): Rename to...
11023 (darwin_nat_target::check_new_threads): ... this.
11024 (darwin_suspend_inferior_it): Remove.
11025 (darwin_decode_exception_message): Rename to...
11026 (darwin_nat_target::decode_exception_message): ... this.
11027 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11028 (darwin_decode_message): Rename to...
11029 (darwin_nat_target::decode_message): ... this.
11030 (cancel_breakpoint): Rename to...
11031 (darwin_nat_target::cancel_breakpoint): ... this.
11032 (darwin_wait): Rename to...
11033 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11034 instead of iterate_over_inferiors.
11035 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11036 (darwin_stop_inferior): Rename to...
11037 (darwin_nat_target::stop_inferior): ... this.
11038 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11039 (darwin_init_thread_list): Rename to...
11040 (darwin_nat_target::init_thread_list): ... this.
11041 (darwin_ptrace_him): Rename to...
11042 (darwin_nat_target::ptrace_him): ... this.
11043 (darwin_nat_target::create_inferior): Pass lambda function to
11044 fork_inferior.
11045 (darwin_nat_target::detach): Call stop_inferior instead of
11046 darwin_stop_inferior.
11047 * fork-inferior.h (fork_inferior): Change init_trace_fun
11048 parameter to gdb::function_view.
11049 * fork-inferior.c (fork_inferior): Likewise.
11050
11051 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11052
11053 * i386-cygwin-tdep.c (core_process_module_section): Update.
11054 * windows-nat.c (struct lm_info_windows): Add text_offset.
11055 (windows_xfer_shared_libraries): Update.
11056 * windows-tdep.c (windows_xfer_shared_library):
11057 Add text_offset_cached argument.
11058 * windows-tdep.h (windows_xfer_shared_library): Update.
11059
11060 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11061
11062 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11063
11064 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11065
11066 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11067 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11068 replace with range-based for.
11069 (gdbsim_interrupt_inferior): Remove.
11070 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11071 with a range-based for. Inline code from
11072 gdbsim_interrupt_inferior.
11073
11074 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11075
11076 * infrun.c (proceed): Fix indentation.
11077
11078 2020-01-21 Tom Tromey <tromey@adacore.com>
11079
11080 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11081 * python/python.c (python_extension_ops): Update.
11082 (gdbpy_colorize): New function.
11083 * python/lib/gdb/__init__.py (colorize): New function.
11084 * extension.h (ext_lang_colorize): Declare.
11085 * extension.c (ext_lang_colorize): New function.
11086 * extension-priv.h (struct extension_language_ops) <colorize>: New
11087 member.
11088 * cli/cli-style.c (_initialize_cli_style): Update help text.
11089
11090 2020-01-21 Luis Machado <luis.machado@linaro.org>
11091
11092 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11093 <cond>: Change type to bool.
11094 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11095 (aarch64_displaced_step_cb): Likewise.
11096 (aarch64_displaced_step_tb): Likewise.
11097
11098 2020-01-21 Luis Machado <luis.machado@linaro.org>
11099
11100 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11101 output.
11102
11103 2020-01-21 Luis Machado <luis.machado@linaro.org>
11104
11105 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11106 <pc_adjust>: Adjust the documentation.
11107 (aarch64_displaced_step_fixup): Check if PC really moved before
11108 adjusting it.
11109
11110 2020-01-19 Tom Tromey <tom@tromey.com>
11111
11112 * disasm.c (~gdb_disassembler): New destructor.
11113 (gdb_buffered_insn_length): Call disassemble_free_target.
11114 * disasm.h (class gdb_disassembler): Declare destructor. Use
11115 DISABLE_COPY_AND_ASSIGN.
11116
11117 2020-01-19 Tom Tromey <tom@tromey.com>
11118
11119 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11120 (die_reader_func_ftype): Remove.
11121 (cutu_reader): New class.
11122 (dw2_get_file_names_reader): Remove "data" parameter.
11123 (dw2_get_file_names): Use cutu_reader.
11124 (create_debug_type_hash_table): Update.
11125 (read_cutu_die_from_dwo): Update comment.
11126 (lookup_dwo_unit): Add dwo_name parameter.
11127 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11128 die_reader_func_ftype and data parameters.
11129 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11130 Remove die_reader_func_ftype and data parameters.
11131 (~cutu_reader): New; from init_cutu_and_read_dies.
11132 (cutu_reader::cutu_reader): Rename from
11133 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11134 and data parameters.
11135 (init_cutu_and_read_dies_simple): Remove.
11136 (struct process_psymtab_comp_unit_data): Remove.
11137 (process_psymtab_comp_unit_reader): Remove data parameter; add
11138 want_partial_unit and pretend_language parameters.
11139 (process_psymtab_comp_unit): Use cutu_reader.
11140 (build_type_psymtabs_reader): Remove data parameter.
11141 (build_type_psymtabs_1): Use cutu_reader.
11142 (process_skeletonless_type_unit): Likewise.
11143 (load_partial_comp_unit_reader): Remove.
11144 (load_partial_comp_unit): Use cutu_reader.
11145 (load_full_comp_unit_reader): Remove.
11146 (load_full_comp_unit): Use cutu_reader.
11147 (struct create_dwo_cu_data): Remove.
11148 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11149 dwo_unit parameters.
11150 (create_cus_hash_table): Use cutu_reader.
11151 (struct dwarf2_read_addr_index_data): Remove.
11152 (dwarf2_read_addr_index_reader): Remove.
11153 (dwarf2_read_addr_index): Use cutu_reader.
11154 (read_signatured_type_reader): Remove.
11155 (read_signatured_type): Use cutu_reader.
11156
11157 2020-01-19 Tom Tromey <tom@tromey.com>
11158
11159 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11160 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11161 (tui_wrefresh): Declare.
11162 * tui/tui-wingeneral.c (suppress_output): New global.
11163 (tui_suppress_output, ~tui_suppress_output): New constructor and
11164 destructor.
11165 (tui_wrefresh): New function.
11166 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11167 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11168 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11169 method.
11170 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11171 tui_wrefresh.
11172 (tui_data_window::no_refresh): New method.
11173 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11174 (tui_reg_command): Use tui_suppress_output
11175 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11176 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11177 method.
11178 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11179
11180 2020-01-19 Tom Tromey <tom@tromey.com>
11181
11182 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11183 Handle case where symtab is null.
11184
11185 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11186
11187 * linux-fork.c (one_fork_p): Simplify.
11188
11189 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11190
11191 * top.c (struct qt_args): Remove.
11192 (kill_or_detach): Change return type to void, replace `void *`
11193 parameter with a proper one.
11194 (print_inferior_quit_action): Likewise.
11195 (quit_confirm): Use range-based for loop to iterate over inferiors.
11196 (quit_force): Likewise.
11197
11198 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11199
11200 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11201 `void *` parameter with proper parameters.
11202 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11203 (print_one_inferior): Change return type to void, replace `void *`
11204 parameter with proper parameters.
11205 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11206 inferiors.
11207 (get_other_inferior): Remove.
11208 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11209 inferiors.
11210
11211 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11212
11213 * mi/mi-interp.c (report_initial_inferior): Remove.
11214 (mi_interp::init): Use range-based for to iterate over inferiors.
11215
11216 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11217
11218 * python/py-inferior.c (build_inferior_list): Remove.
11219 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11220
11221 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11222
11223 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11224 (btrace_stitch_trace): Likewise.
11225 * charset.c (intermediate_encoding): Likewise (vaild).
11226 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11227 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11228 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11229
11230 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11231
11232 * windows-tdep.c (windows_get_tlb_type):
11233 Add rtl_user_process_parameters type.
11234
11235 2020-01-16 Pedro Alves <palves@redhat.com>
11236 Norbert Lange <nolange79@gmail.com>
11237
11238 PR build/24805
11239 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11240 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11241 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11242 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11243 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11244 (ps_plog): Redeclare exported functions with default visibility.
11245
11246 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11247
11248 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11249 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11250
11251 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11252
11253 * infcmd.c (post_create_inferior): Use get_thread_regcache
11254 instead of get_current_regcache.
11255
11256 2020-01-14 Tom Tromey <tom@tromey.com>
11257
11258 PR symtab/12535:
11259 * python/python.c (gdbpy_decode_line): Treat empty string the same
11260 as no argument.
11261
11262 2020-01-14 Tom Tromey <tom@tromey.com>
11263
11264 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11265
11266 2020-01-14 Tom Tromey <tom@tromey.com>
11267
11268 * nat/linux-btrace.c: Don't include <config.h>.
11269 * nat/linux-ptrace.c: Don't include <config.h>.
11270 * nat/x86-linux-dregs.c: Don't include <config.h>.
11271
11272 2020-01-14 Tom Tromey <tom@tromey.com>
11273
11274 * configure: Rebuild.
11275 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11276
11277 2020-01-14 Tom Tromey <tom@tromey.com>
11278
11279 * nat/x86-linux-dregs.c: Include configh.h.
11280 * nat/linux-ptrace.c: Include configh.h.
11281 * nat/linux-btrace.c: Include configh.h.
11282 * defs.h: Include config.h, bfd.h.
11283 * configure.ac: Don't source common.host.
11284 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11285 * configure: Rebuild.
11286 * acinclude.m4: Update path.
11287 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11288 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11289 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11290 (CLIBS): Add LIBSUPPORT.
11291 (CDEPS): Likewise.
11292 (COMMON_SFILES): Remove gdbsupport files.
11293 (HFILES_NO_SRCDIR): Likewise.
11294 (stamp-version): Update path to create-version.sh.
11295 (ALLDEPFILES): Remove gdbsupport files.
11296
11297 2020-01-14 Tom Tromey <tom@tromey.com>
11298
11299 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11300 USE_WIN32API when needed.
11301 * configure.ac (USE_WIN32API): Don't define.
11302 (WIN32LIBS): Use WIN32APILIBS.
11303 * configure: Rebuild.
11304
11305 2020-01-14 Tom Tromey <tom@tromey.com>
11306
11307 * configure: Rebuild.
11308 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11309
11310 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11311
11312 * skip.c (skip_function_command): Make skip w/o arguments use the
11313 name of the inlined function if pc is inside any inlined function.
11314
11315 2020-01-14 Luis Machado <luis.machado@linaro.org>
11316
11317 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11318 * infrun.c (resume_1): Likewise.
11319 (handle_inferior_event): Remove stale comment.
11320 * linux-nat.c (linux_nat_target::resume): Update comments.
11321 (save_stop_reason): Likewise.
11322 (linux_nat_filter_event): Likewise.
11323 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11324
11325 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11326
11327 * elfread.c (record_minimal_symbol): Set section index to 0 for
11328 non-allocatable sections.
11329
11330
11331 2020-01-13 Ali Tamur <tamur@google.com>
11332
11333 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11334 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11335 to gdb::optional. Update comments.
11336 (dwo_file): Update comments.
11337 (read_attribute): Update API to take an additional out parameter,
11338 need_reprocess. This is used to mark attributes that need other
11339 attributes (e.g. str_offsets_base) for correct computation which may not
11340 have been read yet.
11341 (read_attribute_reprocess): New function declaration.
11342 (read_addr_index): Likewise.
11343 (read_dwo_str_index): Likewise.
11344 (read_stub_str_index): Likewise.
11345 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11346 (lookup_addr_base): New function definition.
11347 (lookup_ranges_base): Likewise.
11348 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11349 lookup_ranges_base.
11350 (init_cutu_and_read_dies): Update comments.
11351 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11352 unit. This is used to inherit parent's str_offsets_base and addr_base.
11353 Update comments.
11354 (init_cutu_and_read_dies_simple): Reflect API changes.
11355 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11356 (create_cus_hash_table): Change API to take parent compile unit.
11357 Reflect API changes.
11358 (open_and_init_dwo_file): Reflect API changes.
11359 (dwarf2_get_pc_bounds): Update comments.
11360 (dwarf2_record_block_ranges): Likewise.
11361 (read_full_die_1): Change implementation to reprocess attributes that
11362 need str_offsets_base and addr_base.
11363 (partial_die_info::read): Likewise.
11364 (read_attribute_reprocess): New function definition.
11365 (read_attribute_value): Change API to take an additional out parameter,
11366 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11367 when a non-dwo compile unit has index based attributes.
11368 (read_attribute): Reflect API changes.
11369 (read_addr_index_1): Reflect API changes. Update comments.
11370 (dwarf2_read_addr_index_data): Reflect API changes.
11371 (dwarf2_read_addr_index): Likewise.
11372 (read_str_index): Change API and implementation. This becomes a helper
11373 to be used by the new string index related methods. Update error
11374 message and comments.
11375 (read_dwo_str_index): New function definition.
11376 (read_stub_str_index): Likewise.
11377 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11378 * symfile.h (dwarf2_debug_sections): Likewise.
11379 * xcoffread.c (dwarf2_debug_sections): Likewise.
11380
11381 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11382
11383 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11384 core_reg_sect type to gdb_byte *.
11385 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11386 * cris-tdep.c (fetch_core_registers): Likewise.
11387 * corelow.c (core_target::get_core_register_section): Change
11388 type of `contents` to gdb::byte_vector.
11389
11390 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11391
11392 * tui/tui-wingeneral.c (box_win): Position the title in the center
11393 of the border.
11394
11395 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11396
11397 * corelow.c (core_target::get_core_register_section): Use
11398 std::vector instead of alloca.
11399
11400 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11401
11402 * warning.m4: Add -Wmissing-declarations to build_warnings.
11403 * configure: Re-generate.
11404
11405 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11406
11407 * python/python.c (init__gdb_module): Add declaration.
11408
11409 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11410
11411 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11412 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11413 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11414 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11415 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11416 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11417 * ada-exp.y (_initialize_ada_exp): Add declaration.
11418 * ada-lang.c (_initialize_ada_language): Add declaration.
11419 * ada-tasks.c (_initialize_tasks): Add declaration.
11420 * agent.c (_initialize_agent): Add declaration.
11421 * aix-thread.c (_initialize_aix_thread): Add declaration.
11422 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11423 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11424 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11425 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11426 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11427 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11428 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11429 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11430 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11431 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11432 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11433 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11434 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11435 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11436 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11437 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11438 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11439 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11440 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11441 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11442 * annotate.c (_initialize_annotate): Add declaration.
11443 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11444 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11445 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11446 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11447 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11448 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11449 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11450 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11451 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11452 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11453 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11454 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11455 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11456 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11457 * auto-load.c (_initialize_auto_load): Add declaration.
11458 * auxv.c (_initialize_auxv): Add declaration.
11459 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11460 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11461 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11462 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11463 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11464 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11465 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11466 * breakpoint.c (_initialize_breakpoint): Add declaration.
11467 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11468 * btrace.c (_initialize_btrace): Add declaration.
11469 * charset.c (_initialize_charset): Add declaration.
11470 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11471 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11472 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11473 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11474 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11475 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11476 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11477 * coffread.c (_initialize_coffread): Add declaration.
11478 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11479 * compile/compile.c (_initialize_compile): Add declaration.
11480 * complaints.c (_initialize_complaints): Add declaration.
11481 * completer.c (_initialize_completer): Add declaration.
11482 * copying.c (_initialize_copying): Add declaration.
11483 * corefile.c (_initialize_core): Add declaration.
11484 * corelow.c (_initialize_corelow): Add declaration.
11485 * cp-abi.c (_initialize_cp_abi): Add declaration.
11486 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11487 * cp-support.c (_initialize_cp_support): Add declaration.
11488 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11489 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11490 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11491 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11492 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11493 * ctfread.c (_initialize_ctfread): Add declaration.
11494 * d-lang.c (_initialize_d_language): Add declaration.
11495 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11496 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11497 * dbxread.c (_initialize_dbxread): Add declaration.
11498 * dcache.c (_initialize_dcache): Add declaration.
11499 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11500 * disasm.c (_initialize_disasm): Add declaration.
11501 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11502 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11503 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11504 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11505 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11506 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11507 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11508 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11509 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11510 * elfread.c (_initialize_elfread): Add declaration.
11511 * exec.c (_initialize_exec): Add declaration.
11512 * extension.c (_initialize_extension): Add declaration.
11513 * f-lang.c (_initialize_f_language): Add declaration.
11514 * f-valprint.c (_initialize_f_valprint): Add declaration.
11515 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11516 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11517 * filesystem.c (_initialize_filesystem): Add declaration.
11518 * findcmd.c (_initialize_mem_search): Add declaration.
11519 * findvar.c (_initialize_findvar): Add declaration.
11520 * fork-child.c (_initialize_fork_child): Add declaration.
11521 * frame-base.c (_initialize_frame_base): Add declaration.
11522 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11523 * frame.c (_initialize_frame): Add declaration.
11524 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11525 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11526 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11527 * gcore.c (_initialize_gcore): Add declaration.
11528 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11529 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11530 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11531 * gdbarch.c (_initialize_gdbarch): Add declaration.
11532 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11533 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11534 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11535 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11536 * go-lang.c (_initialize_go_language): Add declaration.
11537 * go32-nat.c (_initialize_go32_nat): Add declaration.
11538 * guile/guile.c (_initialize_guile): Add declaration.
11539 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11540 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11541 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11542 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11543 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11544 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11545 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11546 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11547 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11548 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11549 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11550 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11551 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11552 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11553 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11554 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11555 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11556 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11557 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11558 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11559 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11560 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11561 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11562 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11563 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11564 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11565 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11566 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11567 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11568 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11569 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11570 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11571 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11572 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11573 * infcall.c (_initialize_infcall): Add declaration.
11574 * infcmd.c (_initialize_infcmd): Add declaration.
11575 * inflow.c (_initialize_inflow): Add declaration.
11576 * infrun.c (_initialize_infrun): Add declaration.
11577 * interps.c (_initialize_interpreter): Add declaration.
11578 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11579 * jit.c (_initialize_jit): Add declaration.
11580 * language.c (_initialize_language): Add declaration.
11581 * linux-fork.c (_initialize_linux_fork): Add declaration.
11582 * linux-nat.c (_initialize_linux_nat): Add declaration.
11583 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11584 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11585 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11586 * m2-lang.c (_initialize_m2_language): Add declaration.
11587 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11588 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11589 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11590 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11591 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11592 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11593 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11594 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11595 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11596 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11597 * machoread.c (_initialize_machoread): Add declaration.
11598 * macrocmd.c (_initialize_macrocmd): Add declaration.
11599 * macroscope.c (_initialize_macroscope): Add declaration.
11600 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11601 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11602 * maint.c (_initialize_maint_cmds): Add declaration.
11603 * mdebugread.c (_initialize_mdebugread): Add declaration.
11604 * memattr.c (_initialize_mem): Add declaration.
11605 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11606 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11607 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11608 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11609 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11610 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11611 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11612 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11613 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11614 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11615 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11616 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11617 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11618 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11619 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11620 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11621 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11622 * mipsread.c (_initialize_mipsread): Add declaration.
11623 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11624 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11625 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11626 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11627 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11628 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11629 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11630 * nto-procfs.c (_initialize_procfs): Add declaration.
11631 * objc-lang.c (_initialize_objc_language): Add declaration.
11632 * observable.c (_initialize_observer): Add declaration.
11633 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11634 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11635 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11636 * osabi.c (_initialize_gdb_osabi): Add declaration.
11637 * osdata.c (_initialize_osdata): Add declaration.
11638 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11639 * parse.c (_initialize_parse): Add declaration.
11640 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11641 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11642 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11643 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11644 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11645 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11646 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11647 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11648 * printcmd.c (_initialize_printcmd): Add declaration.
11649 * probe.c (_initialize_probe): Add declaration.
11650 * proc-api.c (_initialize_proc_api): Add declaration.
11651 * proc-events.c (_initialize_proc_events): Add declaration.
11652 * proc-service.c (_initialize_proc_service): Add declaration.
11653 * procfs.c (_initialize_procfs): Add declaration.
11654 * producer.c (_initialize_producer): Add declaration.
11655 * psymtab.c (_initialize_psymtab): Add declaration.
11656 * python/python.c (_initialize_python): Add declaration.
11657 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11658 * record-btrace.c (_initialize_record_btrace): Add declaration.
11659 * record-full.c (_initialize_record_full): Add declaration.
11660 * record.c (_initialize_record): Add declaration.
11661 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11662 * regcache.c (_initialize_regcache): Add declaration.
11663 * reggroups.c (_initialize_reggroup): Add declaration.
11664 * remote-notif.c (_initialize_notif): Add declaration.
11665 * remote-sim.c (_initialize_remote_sim): Add declaration.
11666 * remote.c (_initialize_remote): Add declaration.
11667 * reverse.c (_initialize_reverse): Add declaration.
11668 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11669 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11670 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11671 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11672 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11673 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11674 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11675 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11676 Add declaration.
11677 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11678 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11679 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11680 * rust-exp.y (_initialize_rust_exp): Add declaration.
11681 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11682 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11683 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11684 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11685 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11686 * score-tdep.c (_initialize_score_tdep): Add declaration.
11687 * ser-go32.c (_initialize_ser_dos): Add declaration.
11688 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11689 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11690 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11691 * ser-uds.c (_initialize_ser_socket): Add declaration.
11692 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11693 * serial.c (_initialize_serial): Add declaration.
11694 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11695 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11696 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11697 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11698 * skip.c (_initialize_step_skip): Add declaration.
11699 * sol-thread.c (_initialize_sol_thread): Add declaration.
11700 * solib-aix.c (_initialize_solib_aix): Add declaration.
11701 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11702 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11703 * solib-frv.c (_initialize_frv_solib): Add declaration.
11704 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11705 * solib-target.c (_initialize_solib_target): Add declaration.
11706 * solib.c (_initialize_solib): Add declaration.
11707 * source-cache.c (_initialize_source_cache): Add declaration.
11708 * source.c (_initialize_source): Add declaration.
11709 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11710 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11711 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11712 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11713 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11714 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11715 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11716 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11717 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11718 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11719 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11720 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11721 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11722 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11723 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11724 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11725 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11726 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11727 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11728 * stabsread.c (_initialize_stabsread): Add declaration.
11729 * stack.c (_initialize_stack): Add declaration.
11730 * stap-probe.c (_initialize_stap_probe): Add declaration.
11731 * std-regs.c (_initialize_frame_reg): Add declaration.
11732 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11733 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11734 * symfile.c (_initialize_symfile): Add declaration.
11735 * symmisc.c (_initialize_symmisc): Add declaration.
11736 * symtab.c (_initialize_symtab): Add declaration.
11737 * target.c (_initialize_target): Add declaration.
11738 * target-connection.c (_initialize_target_connection): Add
11739 declaration.
11740 * target-dcache.c (_initialize_target_dcache): Add declaration.
11741 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11742 * thread.c (_initialize_thread): Add declaration.
11743 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11744 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11745 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11746 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11747 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11748 * tracectf.c (_initialize_ctf): Add declaration.
11749 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11750 * tracefile.c (_initialize_tracefile): Add declaration.
11751 * tracepoint.c (_initialize_tracepoint): Add declaration.
11752 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11753 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11754 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11755 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11756 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11757 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11758 * tui/tui.c (_initialize_tui): Add declaration.
11759 * typeprint.c (_initialize_typeprint): Add declaration.
11760 * ui-style.c (_initialize_ui_style): Add declaration.
11761 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11762 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11763 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11764 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11765 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11766 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11767 * unittests/filtered_iterator-selftests.c
11768 (_initialize_filtered_iterator_selftests): Add declaration.
11769 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11770 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11771 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11772 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11773 * unittests/main-thread-selftests.c
11774 (_initialize_main_thread_selftests): Add declaration.
11775 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11776 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11777 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11778 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11779 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11780 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11781 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11782 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11783 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11784 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11785 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11786 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11787 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11788 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11789 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11790 declaration.
11791 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11792 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11793 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11794 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11795 * user-regs.c (_initialize_user_regs): Add declaration.
11796 * utils.c (_initialize_utils): Add declaration.
11797 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11798 * valops.c (_initialize_valops): Add declaration.
11799 * valprint.c (_initialize_valprint): Add declaration.
11800 * value.c (_initialize_values): Add declaration.
11801 * varobj.c (_initialize_varobj): Add declaration.
11802 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11803 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11804 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11805 * windows-nat.c (_initialize_windows_nat): Add declaration.
11806 (_initialize_check_for_gdb_ini): Add declaration.
11807 (_initialize_loadable): Add declaration.
11808 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11809 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11810 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11811 * xcoffread.c (_initialize_xcoffread): Add declaration.
11812 * xml-support.c (_initialize_xml_support): Add declaration.
11813 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11814 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11815 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11816 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11817
11818 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11819
11820 * regformats/regdat.sh: Generate declaration for init function.
11821
11822 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11823
11824 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11825 up.
11826 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11827 close_one_inferior>: New methods.
11828 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11829 pass down target to find_inferior_pid.
11830 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11831 Pass down target to find_inferior_ptid.
11832 (gdbsim_target::create_inferior): Pass down target to
11833 add_thread_silent.
11834 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11835 target down to find_inferior_ptid and switch_to_thread.
11836 (gdbsim_target::close): Update to call close_one_inferior.
11837 (struct resume_data): Remove.
11838 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11839 directly, rather than through a void pointer.
11840 (gdbsim_target::resume): Update to call resume_one_inferior.
11841
11842 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11843
11844 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11845
11846 2020-01-12 Pedro Alves <palves@redhat.com>
11847
11848 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11849 directly for the current inferior instead of
11850 discard_all_inferiors.
11851 (discard_all_inferiors): Delete.
11852
11853 2020-01-11 Tom Tromey <tom@tromey.com>
11854
11855 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11856 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11857 deprecated_safe_get_selected_frame.
11858
11859 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11860
11861 * inferior.c (print_inferior): Switch inferior before printing it.
11862
11863 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11864 Pedro Alves <palves@redhat.com>
11865
11866 * progspace-and-thread.c (switch_to_program_space_and_thread):
11867 Assert there's an inferior for PSPACE. Use
11868 switch_to_inferior_no_thread to switch the inferior too.
11869 * progspace.c (program_space::~program_space): Call
11870 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11871 (program_space::free_all_objfiles): Don't call clear_symtab_users
11872 here.
11873 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11874
11875 2020-01-10 Pedro Alves <palves@redhat.com>
11876
11877 * NEWS: Mention multi-target debugging, "info connections", and
11878 "add-inferior -no-connection".
11879
11880 2020-01-10 Pedro Alves <palves@redhat.com>
11881
11882 * infrun.c: Include "target-connection.h".
11883 (check_multi_target_resumption): New.
11884 (proceed): Call it.
11885 * target-connection.c (make_target_connection_string): Make
11886 extern.
11887 * target-connection.h (make_target_connection_string): Declare.
11888
11889 2020-01-10 Pedro Alves <palves@redhat.com>
11890
11891 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11892 * inferior.c (uiout_field_connection): New function.
11893 (print_inferior): Add new "connection-id" column.
11894 (add_inferior_command): Show connection number/string of added
11895 inferior.
11896 * process-stratum-target.h
11897 (process_stratum_target::connection_string): New virtual method.
11898 (process_stratum_target::connection_number): New field.
11899 * remote.c (remote_target::connection_string): New override.
11900 * target-connection.c: New file.
11901 * target-connection.h: New file.
11902 * target.c (decref_target): Remove process_stratum targets from
11903 the connection list.
11904 (target_stack::push): Add process_stratum targets to the
11905 connection list.
11906
11907 2020-01-10 Pedro Alves <palves@redhat.com>
11908
11909 Revert:
11910 2016-04-12 Pedro Alves <palves@redhat.com>
11911 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11912 Remove references to name.
11913 * serial.h (struct serial) <name>: Delete.
11914
11915 2020-01-10 Pedro Alves <palves@redhat.com>
11916
11917 * gdbarch-selftests.c (register_to_value_test): Remove "target
11918 already pushed" check.
11919
11920 2020-01-10 Pedro Alves <palves@redhat.com>
11921 John Baldwin <jhb@FreeBSD.org>
11922
11923 * aarch64-linux-nat.c
11924 (aarch64_linux_nat_target::thread_architecture): Adjust.
11925 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11926 (task_command_1): Likewise.
11927 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11928 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11929 (aix_thread_target::store_registers)
11930 (aix_thread_target::thread_alive): Adjust.
11931 * amd64-fbsd-tdep.c: Include "inferior.h".
11932 (amd64fbsd_get_thread_local_address): Pass down target.
11933 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11934 thread's gdbarch instead of target_gdbarch.
11935 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11936 get_last_target_status.
11937 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11938 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11939 inferiors.
11940 (update_inserted_breakpoint_locations): Skip if inferiors with no
11941 execution.
11942 (update_global_location_list): When handling moribund locations,
11943 find representative inferior for location's pspace, and use thread
11944 count of its process_stratum target.
11945 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11946 * bsd-uthread.c (bsd_uthread_target::wait): Use
11947 as_process_stratum_target and adjust thread_change_ptid and
11948 add_thread calls.
11949 (bsd_uthread_target::update_thread_list): Use
11950 as_process_stratum_target and adjust find_thread_ptid,
11951 thread_change_ptid and add_thread calls.
11952 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11953 find_thread_ptid call.
11954 * corelow.c (add_to_thread_list): Adjust add_thread call.
11955 (core_target_open): Adjust add_thread_silent and thread_count
11956 calls.
11957 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11958 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11959 * event-top.c (async_disconnect): Pop targets from all inferiors.
11960 * exec.c (add_target_sections): Push exec target on all inferiors
11961 sharing the program space.
11962 (remove_target_sections): Remove the exec target from all
11963 inferiors sharing the program space.
11964 (exec_on_vfork): New.
11965 * exec.h (exec_on_vfork): Declare.
11966 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11967 Pass it down.
11968 (fbsd_nat_target::update_thread_list): Adjust.
11969 (fbsd_nat_target::resume): Adjust.
11970 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11971 down.
11972 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11973 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11974 get_thread_arch_regcache call.
11975 * fork-child.c (gdb_startup_inferior): Pass target down to
11976 startup_inferior and set_executing.
11977 * gdbthread.h (struct process_stratum_target): Forward declare.
11978 (add_thread, add_thread_silent, add_thread_with_info)
11979 (in_thread_list): Add process_stratum_target parameter.
11980 (find_thread_ptid(inferior*, ptid_t)): New overload.
11981 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11982 parameter.
11983 (all_threads()): Delete overload.
11984 (all_threads, all_non_exited_threads): Add process_stratum_target
11985 parameter.
11986 (all_threads_safe): Use brace initialization.
11987 (thread_count): Add process_stratum_target parameter.
11988 (set_resumed, set_running, set_stop_requested, set_executing)
11989 (threads_are_executing, finish_thread_state): Add
11990 process_stratum_target parameter.
11991 (switch_to_thread): Use is_current_thread.
11992 * i386-fbsd-tdep.c: Include "inferior.h".
11993 (i386fbsd_get_thread_local_address): Pass down target.
11994 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11995 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11996 have_inferiors check.
11997 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11998 (inf_ptrace_target::attach): Adjust.
11999 * infcall.c (run_inferior_call): Adjust.
12000 * infcmd.c (run_command_1): Pass target to
12001 scoped_finish_thread_state.
12002 (proceed_thread_callback): Skip inferiors with no execution.
12003 (continue_command): Rename 'all_threads' local to avoid hiding
12004 'all_threads' function. Adjust get_last_target_status call.
12005 (prepare_one_step): Adjust set_running call.
12006 (signal_command): Use user_visible_resume_target. Compare thread
12007 pointers instead of inferior_ptid.
12008 (info_program_command): Adjust to pass down target.
12009 (attach_command): Mark target's 'thread_executing' flag.
12010 (stop_current_target_threads_ns): New, factored out from ...
12011 (interrupt_target_1): ... this. Switch inferior before making
12012 target calls.
12013 * inferior-iter.h
12014 (struct all_inferiors_iterator, struct all_inferiors_range)
12015 (struct all_inferiors_safe_range)
12016 (struct all_non_exited_inferiors_range): Filter on
12017 process_stratum_target too. Remove explicit.
12018 * inferior.c (inferior::inferior): Push dummy target on target
12019 stack.
12020 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12021 Add process_stratum_target parameter, and pass it down.
12022 (have_live_inferiors): Adjust.
12023 (switch_to_inferior_and_push_target): New.
12024 (add_inferior_command, clone_inferior_command): Handle
12025 "-no-connection" parameter. Use
12026 switch_to_inferior_and_push_target.
12027 (_initialize_inferior): Mention "-no-connection" option in
12028 the help of "add-inferior" and "clone-inferior" commands.
12029 * inferior.h: Include "process-stratum-target.h".
12030 (interrupt_target_1): Use bool.
12031 (struct inferior) <push_target, unpush_target, target_is_pushed,
12032 find_target_beneath, top_target, process_target, target_at,
12033 m_stack>: New.
12034 (discard_all_inferiors): Delete.
12035 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12036 (all_inferiors, all_non_exited_inferiors): Add
12037 process_stratum_target parameter.
12038 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12039 (target_last_proc_target): New global.
12040 (follow_fork_inferior): Push target on new inferior. Pass target
12041 to add_thread_silent. Call exec_on_vfork. Handle target's
12042 reference count.
12043 (follow_fork): Adjust get_last_target_status call. Also consider
12044 target.
12045 (follow_exec): Push target on new inferior.
12046 (struct execution_control_state) <target>: New field.
12047 (user_visible_resume_target): New.
12048 (do_target_resume): Call target_async.
12049 (resume_1): Set target's threads_executing flag. Consider resume
12050 target.
12051 (commit_resume_all_targets): New.
12052 (proceed): Also consider resume target. Skip threads of inferiors
12053 with no execution. Commit resumtion in all targets.
12054 (start_remote): Pass current inferior to wait_for_inferior.
12055 (infrun_thread_stop_requested): Consider target as well. Pass
12056 thread_info pointer to clear_inline_frame_state instead of ptid.
12057 (infrun_thread_thread_exit): Consider target as well.
12058 (random_pending_event_thread): New inferior parameter. Use it.
12059 (do_target_wait): Rename to ...
12060 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12061 down.
12062 (threads_are_resumed_pending_p, do_target_wait): New.
12063 (prepare_for_detach): Adjust calls.
12064 (wait_for_inferior): New inferior parameter. Handle it. Use
12065 do_target_wait_1 instead of do_target_wait.
12066 (fetch_inferior_event): Adjust. Switch to representative
12067 inferior. Pass target down.
12068 (set_last_target_status): Add process_stratum_target parameter.
12069 Save target in global.
12070 (get_last_target_status): Add process_stratum_target parameter and
12071 handle it.
12072 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12073 (context_switch): Check inferior_ptid == null_ptid before calling
12074 inferior_thread().
12075 (get_inferior_stop_soon): Pass down target.
12076 (wait_one): Rename to ...
12077 (poll_one_curr_target): ... this.
12078 (struct wait_one_event): New.
12079 (wait_one): New.
12080 (stop_all_threads): Adjust.
12081 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12082 event's target.
12083 (switch_back_to_stepped_thread): Also consider target.
12084 (print_stop_event): Update.
12085 (normal_stop): Update. Also consider the resume target.
12086 * infrun.h (wait_for_inferior): Remove declaration.
12087 (user_visible_resume_target): New declaration.
12088 (get_last_target_status, set_last_target_status): New
12089 process_stratum_target parameter.
12090 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12091 process_stratum_target parameter, and use it.
12092 (clear_inline_frame_state (thread_info*)): New.
12093 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12094 process_stratum_target parameter.
12095 (clear_inline_frame_state (thread_info*)): Declare.
12096 * linux-fork.c (delete_checkpoint_command): Pass target down to
12097 find_thread_ptid.
12098 (checkpoint_command): Adjust.
12099 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12100 instead of just tweaking inferior_ptid.
12101 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12102 (exit_lwp): Pass target down to find_thread_ptid.
12103 (attach_proc_task_lwp_callback): Pass target down to
12104 add_thread/set_running/set_executing.
12105 (linux_nat_target::attach): Pass target down to
12106 thread_change_ptid.
12107 (get_detach_signal): Pass target down to find_thread_ptid.
12108 Consider last target status's target.
12109 (linux_resume_one_lwp_throw, resume_lwp)
12110 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12111 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12112 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12113 (linux_nat_target::async_wait_fd): New.
12114 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12115 target down.
12116 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12117 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12118 * linux-thread-db.c (struct thread_db_info::process_target): New
12119 field.
12120 (add_thread_db_info): Save target.
12121 (get_thread_db_info): New process_stratum_target parameter. Also
12122 match target.
12123 (delete_thread_db_info): New process_stratum_target parameter.
12124 Also match target.
12125 (thread_from_lwp): Adjust to pass down target.
12126 (thread_db_notice_clone): Pass down target.
12127 (check_thread_db_callback): Pass down target.
12128 (try_thread_db_load_1): Always push the thread_db target.
12129 (try_thread_db_load, record_thread): Pass target down.
12130 (thread_db_target::detach): Pass target down. Always unpush the
12131 thread_db target.
12132 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12133 target down. Always unpush the thread_db target.
12134 (find_new_threads_callback, thread_db_find_new_threads_2)
12135 (thread_db_target::update_thread_list): Pass target down.
12136 (thread_db_target::pid_to_str): Pass current inferior down.
12137 (thread_db_target::get_thread_local_address): Pass target down.
12138 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12139 target down.
12140 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12141 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12142 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12143 (procfs_init_inferior): Rename to ...
12144 (procfs_target::procfs_init_inferior): ... this and adjust.
12145 (procfs_target::create_inferior, procfs_notice_thread)
12146 (procfs_do_thread_registers): Adjust.
12147 * ppc-fbsd-tdep.c: Include "inferior.h".
12148 (ppcfbsd_get_thread_local_address): Pass down target.
12149 * proc-service.c (ps_xfer_memory): Switch current inferior and
12150 program space as well.
12151 (get_ps_regcache): Pass target down.
12152 * process-stratum-target.c
12153 (process_stratum_target::thread_address_space)
12154 (process_stratum_target::thread_architecture): Pass target down.
12155 * process-stratum-target.h
12156 (process_stratum_target::threads_executing): New field.
12157 (as_process_stratum_target): New.
12158 * ravenscar-thread.c
12159 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12160 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12161 down.
12162 * record-btrace.c (record_btrace_target::info_record): Adjust.
12163 (record_btrace_target::record_method)
12164 (record_btrace_target::record_is_replaying)
12165 (record_btrace_target::fetch_registers)
12166 (get_thread_current_frame_id, record_btrace_target::resume)
12167 (record_btrace_target::wait, record_btrace_target::stop): Pass
12168 target down.
12169 * record-full.c (record_full_wait_1): Switch to event thread.
12170 Pass target down.
12171 * regcache.c (regcache::regcache)
12172 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12173 process_stratum_target parameter and handle it.
12174 (current_thread_target): New global.
12175 (get_thread_regcache): Add process_stratum_target parameter and
12176 handle it. Switch inferior before calling target method.
12177 (get_thread_regcache): Pass target down.
12178 (get_thread_regcache_for_ptid): Pass target down.
12179 (registers_changed_ptid): Add process_stratum_target parameter and
12180 handle it.
12181 (registers_changed_thread, registers_changed): Pass target down.
12182 (test_get_thread_arch_aspace_regcache): New.
12183 (current_regcache_test): Define a couple local test_target_ops
12184 instances and use them for testing.
12185 (readwrite_regcache): Pass process_stratum_target parameter.
12186 (cooked_read_test, cooked_write_test): Pass mock_target down.
12187 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12188 (get_thread_arch_aspace_regcache): Add process_stratum_target
12189 parameter.
12190 (regcache::target): New method.
12191 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12192 (regcache::registers_changed_ptid): Add process_stratum_target
12193 parameter.
12194 (regcache::m_target): New field.
12195 (registers_changed_ptid): Add process_stratum_target parameter.
12196 * remote.c (remote_state::supports_vCont_probed): New field.
12197 (remote_target::async_wait_fd): New method.
12198 (remote_unpush_and_throw): Add remote_target parameter.
12199 (get_current_remote_target): Adjust.
12200 (remote_target::remote_add_inferior): Push target.
12201 (remote_target::remote_add_thread)
12202 (remote_target::remote_notice_new_inferior)
12203 (get_remote_thread_info): Pass target down.
12204 (remote_target::update_thread_list): Skip threads of inferiors
12205 bound to other targets. (remote_target::close): Don't discard
12206 inferiors. (remote_target::add_current_inferior_and_thread)
12207 (remote_target::process_initial_stop_replies)
12208 (remote_target::start_remote)
12209 (remote_target::remote_serial_quit_handler): Pass down target.
12210 (remote_target::remote_unpush_target): New remote_target
12211 parameter. Unpush the target from all inferiors.
12212 (remote_target::remote_unpush_and_throw): New remote_target
12213 parameter. Pass it down.
12214 (remote_target::open_1): Check whether the current inferior has
12215 execution instead of checking whether any inferior is live. Pass
12216 target down.
12217 (remote_target::remote_detach_1): Pass down target. Use
12218 remote_unpush_target.
12219 (extended_remote_target::attach): Pass down target.
12220 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12221 (remote_target::append_resumption): Pass down target.
12222 (remote_target::append_pending_thread_resumptions)
12223 (remote_target::remote_resume_with_hc, remote_target::resume)
12224 (remote_target::commit_resume): Pass down target.
12225 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12226 (remote_target::interrupt_query)
12227 (remote_target::remove_new_fork_children)
12228 (remote_target::check_pending_events_prevent_wildcard_vcont)
12229 (remote_target::remote_parse_stop_reply)
12230 (remote_target::process_stop_reply): Pass down target.
12231 (first_remote_resumed_thread): New remote_target parameter. Pass
12232 it down.
12233 (remote_target::wait_as): Pass down target.
12234 (unpush_and_perror): New remote_target parameter. Pass it down.
12235 (remote_target::readchar, remote_target::remote_serial_write)
12236 (remote_target::getpkt_or_notif_sane_1)
12237 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12238 down target.
12239 (remote_target::mourn_inferior): Pass down target. Use
12240 remote_unpush_target.
12241 (remote_target::core_of_thread)
12242 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12243 (remote_target::pid_to_exec_file)
12244 (remote_target::thread_handle_to_thread_info): Pass down target.
12245 (remote_target::async_wait_fd): New.
12246 * riscv-fbsd-tdep.c: Include "inferior.h".
12247 (riscv_fbsd_get_thread_local_address): Pass down target.
12248 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12249 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12250 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12251 Adjust.
12252 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12253 * solib-svr4.c (enable_break): Pass down target.
12254 * spu-multiarch.c (parse_spufs_run): Pass down target.
12255 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12256 * target-delegates.c: Regenerate.
12257 * target.c (g_target_stack): Delete.
12258 (current_top_target): Return the current inferior's top target.
12259 (target_has_execution_1): Refer to the passed-in inferior's top
12260 target.
12261 (target_supports_terminal_ours): Check whether the initial
12262 inferior was already created.
12263 (decref_target): New.
12264 (target_stack::push): Incref/decref the target.
12265 (push_target, push_target, unpush_target): Adjust.
12266 (target_stack::unpush): Defref target.
12267 (target_is_pushed): Return bool. Adjust to refer to the current
12268 inferior's target stack.
12269 (dispose_inferior): Delete, and inline parts ...
12270 (target_preopen): ... here. Only dispose of the current inferior.
12271 (target_detach): Hold strong target reference while detaching.
12272 Pass target down.
12273 (target_thread_name): Add assertion.
12274 (target_resume): Pass down target.
12275 (target_ops::beneath, find_target_at): Adjust to refer to the
12276 current inferior's target stack.
12277 (get_dummy_target): New.
12278 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12279 has a thread running.
12280 (initialize_targets): Rename to ...
12281 (_initialize_target): ... this.
12282 * target.h: Include "gdbsupport/refcounted-object.h".
12283 (struct target_ops): Inherit refcounted_object.
12284 (target_ops::shortname, target_ops::longname): Make const.
12285 (target_ops::async_wait_fd): New method.
12286 (decref_target): Declare.
12287 (struct target_ops_ref_policy): New.
12288 (target_ops_ref): New typedef.
12289 (get_dummy_target): Declare function.
12290 (target_is_pushed): Return bool.
12291 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12292 (all_matching_threads_iterator::all_matching_threads_iterator):
12293 Handle filter target.
12294 * thread-iter.h (struct all_matching_threads_iterator, struct
12295 all_matching_threads_range, class all_non_exited_threads_range):
12296 Filter by target too. Remove explicit.
12297 * thread.c (threads_executing): Delete.
12298 (inferior_thread): Pass down current inferior.
12299 (clear_thread_inferior_resources): Pass down thread pointer
12300 instead of ptid_t.
12301 (add_thread_silent, add_thread_with_info, add_thread): Add
12302 process_stratum_target parameter. Use it for thread and inferior
12303 searches.
12304 (is_current_thread): New.
12305 (thread_info::deletable): Use it.
12306 (find_thread_ptid, thread_count, in_thread_list)
12307 (thread_change_ptid, set_resumed, set_running): New
12308 process_stratum_target parameter. Pass it down.
12309 (set_executing): New process_stratum_target parameter. Pass it
12310 down. Adjust reference to 'threads_executing'.
12311 (threads_are_executing): New process_stratum_target parameter.
12312 Adjust reference to 'threads_executing'.
12313 (set_stop_requested, finish_thread_state): New
12314 process_stratum_target parameter. Pass it down.
12315 (switch_to_thread): Also match inferior.
12316 (switch_to_thread): New process_stratum_target parameter. Pass it
12317 down.
12318 (update_threads_executing): Reimplement.
12319 * top.c (quit_force): Pop targets from all inferior.
12320 (gdb_init): Don't call initialize_targets.
12321 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12322 Declare.
12323 (windows_add_thread, windows_delete_thread): Adjust.
12324 (get_windows_debug_event): Rename to ...
12325 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12326 * tracefile-tfile.c (tfile_target_open): Pass down target.
12327 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12328 Forward declare.
12329 (switch_to_thread): Add process_stratum_target parameter.
12330 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12331 parameter. Use it.
12332 (mi_on_resume): Pass target down.
12333 * nat/fork-inferior.c (startup_inferior): Add
12334 process_stratum_target parameter. Pass it down.
12335 * nat/fork-inferior.h (startup_inferior): Add
12336 process_stratum_target parameter.
12337 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12338
12339 2020-01-10 Pedro Alves <palves@redhat.com>
12340
12341 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12342 directly. Instead find the first thread in the thread list and
12343 use switch_to_thread.
12344
12345 2020-01-10 Pedro Alves <palves@redhat.com>
12346
12347 * remote.c (remote_target::remote_add_inferior): Don't bind a
12348 process to the current inferior if the current inferior is already
12349 bound to a process.
12350
12351 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12352 Pedro Alves <palves@redhat.com>
12353
12354 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12355 If no process is specified, return null_ptid instead of
12356 inferior_ptid.
12357 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12358 TARGET_WAITKIND_SIGNALLED with no pid.
12359
12360 2020-01-10 Pedro Alves <palves@redhat.com>
12361
12362 * remote.c (first_remote_resumed_thread): New.
12363 (remote_target::wait_as): Use it as default event_ptid instead of
12364 inferior_ptid.
12365
12366 2020-01-10 Pedro Alves <palves@redhat.com>
12367
12368 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12369
12370 2020-01-10 Pedro Alves <palves@redhat.com>
12371
12372 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12373 not -1.
12374
12375 2020-01-10 Pedro Alves <palves@redhat.com>
12376
12377 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12378 ptid to get_last_target_status.
12379 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12380 ptid to get_last_target_status.
12381 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12382 get_last_target_status.
12383 (info_program_command): Don't pass a target_waitstatus to
12384 get_last_target_status.
12385 * infrun.c (init_wait_for_inferior): Use
12386 nullify_last_target_wait_ptid.
12387 (get_last_target_status): Handle nullptr arguments.
12388 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12389 (print_stop_event): Don't pass a ptid to get_last_target_status.
12390 (normal_stop): Don't pass a ptid to get_last_target_status.
12391 * infrun.h (get_last_target_status, set_last_target_status): Move
12392 comments here and update.
12393 (nullify_last_target_wait_ptid): Declare.
12394 * linux-fork.c (fork_load_infrun_state): Remove local extern
12395 declaration of nullify_last_target_wait_ptid.
12396 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12397 to get_last_target_status.
12398
12399 2020-01-10 Pedro Alves <palves@redhat.com>
12400
12401 * gdbthread.h (scoped_restore_current_thread)
12402 <dont_restore, restore, m_dont_restore>: Declare.
12403 * thread.c (thread_alive): Add assertion. Return bool.
12404 (switch_to_thread_if_alive): New.
12405 (prune_threads): Switch inferior/thread.
12406 (print_thread_info_1): Switch thread before calling target methods.
12407 (scoped_restore_current_thread::restore): New, factored out from
12408 ...
12409 (scoped_restore_current_thread::~scoped_restore_current_thread):
12410 ... this.
12411 (scoped_restore_current_thread::scoped_restore_current_thread):
12412 Add assertion.
12413 (thread_apply_all_command, thread_select): Use
12414 switch_to_thread_if_alive.
12415 * infrun.c (proceed, restart_threads, handle_signal_stop)
12416 (switch_back_to_stepped_thread): Switch current thread before
12417 calling target methods.
12418
12419 2020-01-10 Pedro Alves <palves@redhat.com>
12420
12421 * inferior.c (switch_to_inferior_no_thread): New function,
12422 factored out from ...
12423 (inferior_command): ... here.
12424 * inferior.h (switch_to_inferior_no_thread): Declare.
12425 * mi/mi-main.c (run_one_inferior): Use
12426 switch_to_inferior_no_thread.
12427
12428 2020-01-10 Pedro Alves <palves@redhat.com>
12429
12430 * infcmd.c (kill_command): Remove dead code.
12431
12432 2020-01-10 Pedro Alves <palves@redhat.com>
12433
12434 * remote.c (remote_target::mourn_inferior): No longer check
12435 whether the target is running.
12436
12437 2020-01-10 Pedro Alves <palves@redhat.com>
12438
12439 * corelow.c (core_target::has_execution): Change parameter type to
12440 inferior pointer.
12441 * inferior.c (number_of_live_inferiors): Use
12442 inferior::has_execution instead of target_has_execution_1.
12443 * inferior.h (inferior::has_execution): New.
12444 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12445 inferior::has_execution instead of target_has_execution_1.
12446 * process-stratum-target.c
12447 (process_stratum_target::has_execution): Change parameter type to
12448 inferior pointer. Check the inferior's PID instead of
12449 inferior_ptid.
12450 * process-stratum-target.h
12451 (process_stratum_target::has_execution): Change parameter type to
12452 inferior pointer.
12453 * record-full.c (record_full_core_target::has_execution): Change
12454 parameter type to inferior pointer.
12455 * target.c (target_has_execution_1): Change parameter type to
12456 inferior pointer.
12457 (target_has_execution_current): Adjust.
12458 * target.h (target_ops::has_execution): Change parameter type to
12459 inferior pointer.
12460 (target_has_execution_1): Change parameter type to inferior
12461 pointer. Change return type to bool.
12462 * tracefile.h (tracefile_target::has_execution): Change parameter
12463 type to inferior pointer.
12464
12465 2020-01-10 Pedro Alves <palves@redhat.com>
12466
12467 * exceptions.c (print_flush): Remove current_top_target() check.
12468
12469 2020-01-10 Pedro Alves <palves@redhat.com>
12470
12471 * remote.c (show_remote_exec_file): Show the current inferior's
12472 exec-file instead of the command variable's value.
12473
12474 2020-01-10 Pedro Alves <palves@redhat.com>
12475
12476 * record-full.c (record_full_resume_ptid): New global.
12477 (record_full_target::resume): Set it.
12478 (record_full_wait_1): Use record_full_resume_ptid instead of
12479 inferior_ptid.
12480
12481 2020-01-10 Pedro Alves <palves@redhat.com>
12482
12483 * gdbthread.h (scoped_restore_current_thread)
12484 <dont_restore, restore, m_dont_restore>: Declare.
12485 * thread.c (thread_alive): Add assertion. Return bool.
12486 (switch_to_thread_if_alive): New.
12487 (prune_threads): Switch inferior/thread.
12488 (print_thread_info_1): Switch thread before calling target methods.
12489 (scoped_restore_current_thread::restore): New, factored out from
12490 ...
12491 (scoped_restore_current_thread::~scoped_restore_current_thread):
12492 ... this.
12493 (scoped_restore_current_thread::scoped_restore_current_thread):
12494 Add assertion.
12495 (thread_apply_all_command, thread_select): Use
12496 switch_to_thread_if_alive.
12497
12498 2020-01-10 George Barrett <bob@bob131.so>
12499
12500 * stap-probe.c (stap_modify_semaphore): Don't check for null
12501 semaphores.
12502 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12503 for null semaphores.
12504
12505 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12506
12507 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12508 all source windows, and maintain horizontal scroll status while
12509 doing so.
12510
12511 2020-01-09 Tom Tromey <tom@tromey.com>
12512
12513 PR tui/18932:
12514 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12515 update_source_window, not print_source_lines.
12516
12517 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12518
12519 * tui/tui.c (tui_enable): Register tui hooks after calling
12520 tui_display_main.
12521
12522 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12523
12524 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12525
12526 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12527
12528 * thread.c (print_thread_info_1): Fix indentation.
12529
12530 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12531
12532 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12533 unique_xmalloc_ptr outside the if to always free the demangled name.
12534
12535 2020-01-08 Tom Tromey <tromey@adacore.com>
12536
12537 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12538 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12539 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12540 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12541 Remove.
12542 (section_offsets): New typedef.
12543 * symtab.c (fixup_section, get_msymbol_address): Update.
12544 * symmisc.c (dump_msymbols): Update.
12545 * symfile.h (relative_addr_info_to_section_offsets)
12546 (symfile_map_offsets_to_segments): Update.
12547 * symfile.c (build_section_addr_info_from_objfile)
12548 (init_objfile_sect_indices): Update.
12549 (struct place_section_arg): Change type of "offsets".
12550 (place_section): Update.
12551 (relative_addr_info_to_section_offsets): Change type of
12552 "section_offsets". Remove "num_sections" parameter.
12553 (default_symfile_offsets, syms_from_objfile_1)
12554 (set_objfile_default_section_offset): Update.
12555 (reread_symbols): No need to preserve section offsets by hand.
12556 (symfile_map_offsets_to_segments): Change type of "offsets".
12557 * stap-probe.c (relocate_address): Update.
12558 * stabsread.h (process_one_symbol): Update.
12559 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12560 (solib_target_relocate_section_addresses): Update.
12561 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12562 Update.
12563 * solib-frv.c (frv_relocate_main_executable): Update.
12564 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12565 * solib-aix.c (solib_aix_get_section_offsets): Change return
12566 type.
12567 (solib_aix_solib_create_inferior_hook): Update.
12568 * remote.c (remote_target::get_offsets): Update.
12569 * psymtab.c (find_pc_sect_psymtab): Update.
12570 * psympriv.h (struct partial_symbol) <address, text_low,
12571 text_high>: Update.
12572 * objfiles.h (obj_section_offset): Update.
12573 (struct objfile) <section_offsets>: Change type.
12574 <num_sections>: Remove.
12575 (objfile_relocate): Update.
12576 * objfiles.c (entry_point_address_query): Update
12577 (relocate_one_symbol): Change type of "section_offsets".
12578 (objfile_relocate1, objfile_relocate1): Change type of
12579 "new_offsets".
12580 (objfile_rebase1): Update.
12581 * mipsread.c (mipscoff_symfile_read): Update.
12582 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12583 parameter.
12584 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12585 (parse_external, psymtab_to_symtab_1): Update.
12586 * machoread.c (macho_symfile_offsets): Update.
12587 * ia64-tdep.c (ia64_find_unwind_table): Update.
12588 * hppa-tdep.c (read_unwind_info): Update.
12589 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12590 * dwarf2read.c (create_addrmap_from_index)
12591 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12592 (process_psymtab_comp_unit_reader, add_partial_symbol)
12593 (add_partial_subprogram, process_full_comp_unit)
12594 (read_file_scope, read_func_scope, read_lexical_block_scope)
12595 (read_call_site_scope, dwarf2_rnglists_process)
12596 (dwarf2_ranges_process, dwarf2_ranges_read)
12597 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12598 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12599 Update.
12600 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12601 Update.
12602 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12603 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12604 (process_one_symbol): Change type of "section_offsets".
12605 * ctfread.c (get_objfile_text_range): Update.
12606 * coffread.c (coff_symtab_read, enter_linenos)
12607 (process_coff_symbol): Update.
12608 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12609 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12610
12611 2020-01-08 Tom Tromey <tromey@adacore.com>
12612
12613 * dwarf2read.c (parse_macro_definition): Use std::string.
12614 (parse_macro_definition): Likewise.
12615
12616 2020-01-08 Tom Tromey <tromey@adacore.com>
12617
12618 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12619 (ATTR_ALLOC_CHUNK): Remove.
12620
12621 2020-01-08 Tom Tromey <tromey@adacore.com>
12622
12623 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12624
12625 2020-01-08 Tom Tromey <tromey@adacore.com>
12626
12627 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12628 (dwarf2_compute_name, open_dwo_file): Likewise.
12629 (process_enumeration_scope): Use std::vector.
12630 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12631 (partial_die_info::fixup, dwarf2_start_subfile)
12632 (guess_full_die_structure_name, dwarf2_name): Likewise.
12633 (determine_prefix): Update.
12634 (guess_full_die_structure_name): Make return type const.
12635 (partial_die_full_name): Return unique_xmalloc_ptr.
12636 (DW_FIELD_ALLOC_CHUNK): Remove.
12637
12638 2020-01-07 Tom Tromey <tromey@adacore.com>
12639
12640 PR build/24937:
12641 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12642
12643 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12644
12645 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12646
12647 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12648
12649 * stack.c (print_frame_info): Move disassemble_next_line code
12650 inside source_print block.
12651
12652 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12653
12654 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12655 gdb/signals.h, as we are now using native signal symbols.
12656
12657 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12658
12659 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12660 overflow by an early check of content vs threshold.
12661 * tui/tui-source.c (tui_source_window::line_is_displayed):
12662 Likewise.
12663
12664 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12665
12666 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12667
12668 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12669
12670 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12671 export table if no section contains it's RVA.
12672
12673 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12674
12675 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12676
12677 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12678
12679 * source.c (print_source_lines_base): Set last_line_listed.
12680
12681 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12682
12683 * tui/tui-disasm.c: Remove trailing spaces.
12684
12685 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12686 Pedro Alves <palves@redhat.com>
12687
12688 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12689 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12690 (windows_gdb_signal_to_target): New function, uses the above
12691 enumeration to convert GDB internal signal codes to equivalent
12692 Windows codes.
12693 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12694 * windows-nat.c: Include "gdb_wait.h".
12695 (get_windows_debug_event): Extract the fatal exception from the
12696 exit status and convert to the equivalent Posix signal number.
12697 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12698 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12699 * gdbsupport/gdb_wait.c: New file, implements
12700 windows_status_to_termsig.
12701 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12702 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12703
12704 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12705
12706 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12707 show_layout.
12708
12709 2020-01-05 Luis Machado <luis.machado@linaro.org>
12710
12711 * aarch64-linux-nat.c
12712 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12713 and bfd_mach_aarch64.
12714
12715 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12716
12717 * ui-file.c (stdio_file::can_emit_style_escape)
12718 (tee_file::can_emit_style_escape): Ensure style is used also on
12719 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12720 to gdb_stdout.
12721 * main.c (set_gdb_data_directory): Use file style to output the
12722 warning that the given pathname is not a directory.
12723 * top.c (show_history_filename, gdb_safe_append_history)
12724 (show_gdb_datadir): Use file style.
12725
12726 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12727
12728 * solib-target.c (struct lm_info_target):
12729 Change offsets to be a unique_xmalloc_ptr.
12730 (solib_target_relocate_section_addresses): Update.
12731
12732 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12733
12734 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12735
12736 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12737
12738 * MAINTAINERS (Write After Approval): Add myself.
12739
12740 2020-01-02 Luis Machado <luis.machado@linaro.org>
12741
12742 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12743 Cell BE architecture.
12744 * target.h (struct target_ops) <thread_architecture>: Likewise.
12745
12746 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12747
12748 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12749
12750 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12751
12752 * MAINTAINERS (Write After Approval): Add myself.
12753
12754 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12755
12756 * gdbarch.sh: Update copyright year range of generated files.
12757
12758 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12759
12760 Update copyright year range in all GDB files.
12761
12762 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12763
12764 * copyright.py: Convert to Python 3.
12765
12766 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12767
12768 * copyright.py: Adapt after move of gnulib directory from gdb
12769 directory to toplevel directory.
12770
12771 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12772
12773 * copyright.py (main): Exit if run from the wrong directory.
12774
12775 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12776
12777 * top.c (print_gdb_version): Change copyright year to 2020.
12778
12779 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12780
12781 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12782
12783 For older changes see ChangeLog-2019.
12784 \f
12785 Local Variables:
12786 mode: change-log
12787 left-margin: 8
12788 fill-column: 74
12789 version-control: never
12790 coding: utf-8
12791 End: