Various m68k fixes for gdb
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Tom Tromey <tromey@adacore.com>
2
3 * m68k-tdep.c (m68k_extract_return_value): Use
4 pointer_result_regnum.
5 (m68k_store_return_value): Likewise.
6 (m68k_reg_struct_return_p): Handle vectors and arrays.
7 (m68k_return_value): Handle arrays.
8 (m68k_svr4_return_value): Fix single-element aggregate handling.
9 Handle long double. Adjust for embedded ABI.
10 (m68k_svr4_init_abi): Set pointer_result_regnum.
11 (m68k_embedded_init_abi): New function.
12 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
13 (m68k_osabi_sniffer): New function.
14 (_initialize_m68k_tdep): Register osabi sniffer.
15 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
16 member.
17
18 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
19
20 * xml-support.c (xml_fetch_content_from_file): Replace xfree
21 with gdb::unique_xmalloc_ptr<char>.
22
23 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * xml-support.h (xml_fetch_another): Change type to be a
26 function_view.
27 (xml_process_xincludes): Remove baton parameter.
28 (xml_fetch_content_from_file): Change baton parameter to
29 dirname.
30 * xml-support.c (struct xinclude_parsing_data)
31 <xinclude_parsing_data>: Remove baton parameter.
32 <fetcher_baton>: Remove.
33 (xinclude_start_include): Adjust.
34 (xml_process_xincludes): Adjust.
35 (xml_fetch_content_from_file): Replace baton parameter with
36 dirname.
37 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
38 (xml_init_syscalls_info): Use a lambda.
39 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
40 (file_read_description_xml): Use a lambda.
41 (fetch_available_features_from_target): Change baton parameter
42 to target_ops.
43 (target_read_description_xml): Use a lambda.
44 (target_fetch_description_xml): Use a lambda.
45 (string_read_description_xml): Update.
46
47 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
50 uses with type::endianity_is_not_default.
51
52 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
53
54 * gdbtypes.h (struct type) <endianity_is_not_default,
55 set_endianity_is_not_default>: New methods.
56 (TYPE_ENDIANITY_NOT_DEFAULT): Use
57 type::endianity_is_not_default, change all write call sites to
58 use type::set_endianity_is_not_default.
59
60 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
61
62 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
63 uses with type::is_fixed_instance.
64
65 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
66
67 * gdbtypes.h (struct type) <is_fixed_instance,
68 set_is_fixed_instance>: New methods.
69 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
70 write call sites to use type::set_is_fixed_instance.
71
72 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
73
74 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
75 uses with type::is_gnu_ifunc.
76
77 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
78
79 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
80 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
81 use type::set_is_gnu_ifunc.
82
83 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
84
85 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
86 uses with type::stub_is_supported.
87
88 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
89
90 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
91 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
92 use type::set_stub_is_supported.
93
94 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
95
96 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
97 uses with type::is_vector.
98
99 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
100
101 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
102 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
103 use type::set_is_vector.
104
105 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
106
107 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
108 uses with type::has_varargs.
109
110 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
111
112 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
113 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
114 use type::set_has_varargs.
115
116 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
117
118 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
119 uses with type::is_prototyped.
120
121 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
122
123 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
124 New methods.
125 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
126 call sites to use type::set_is_prototyped.
127
128 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
129
130 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
131 uses with type::target_is_stub.
132
133 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
134
135 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
136 New methods.
137 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
138 sites to use type::set_target_is_stub.
139
140 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
141
142 * gdbtypes.h (TYPE_STUB): Remove, replace all
143 uses with type::is_stub.
144
145 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
146
147 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
148 (TYPE_STUB): Use type::is_stub, change all write call sites to
149 use type::set_is_stub.
150
151 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
152
153 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
154 type::has_no_signedness.
155
156 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
157
158 * gdbtypes.h (struct type) <has_no_signedness,
159 set_has_no_signedness>: New methods.
160 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
161 call sites to use type::set_has_no_signedness.
162
163 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
164
165 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
166 type::is_unsigned.
167
168 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
169
170 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
171 methods.
172 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
173 sites to use type::set_is_unsigned.
174
175 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
176 Adam Renquinha <arenquinha@cimeq.qc.ca>
177
178 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
179 pointer and stack frame offset when unwinding.
180
181 2020-09-13 Pedro Alves <pedro@palves.net>
182
183 * NEWS: Document "-break-insert --qualified".
184 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
185
186 2020-09-13 Pedro Alves <pedro@palves.net>
187
188 * linespec.c (classify_mtype, compare_msyms): Delete.
189 (search_minsyms_for_name): Remove classification logic. Instead
190 filter out trampoline symbols if we also found an external
191 function of the same name.
192
193 2020-09-13 Joel Brobecker <brobecker@adacore.com>
194
195 * NEWS: Create a new section for the next release branch.
196 Rename the section of the current branch, now that it has
197 been cut.
198
199 2020-09-13 Joel Brobecker <brobecker@adacore.com>
200
201 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
202 * version.in: Bump version to 11.0.50.DATE-git.
203
204 2020-09-12 Joel Brobecker <brobecker@adacore.com>
205
206 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
207
208 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
209 Felix Willgerodt <Felix.Willgerodt@intel.com>
210
211 * gdbarch.sh: Added bfloat16 type.
212 * gdbarch.c: Regenerated.
213 * gdbarch.h: Regenerated.
214 * gdbtypes.c (floatformats_bfloat16): New struct.
215 (gdbtypes_post_init): Add builtin_bfloat16.
216 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
217 (floatformats_bfloat16): New struct.
218 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
219 (i386_ymm_type): Add field "v16_bfloat16"
220 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
221 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
222 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
223 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
224 * features/i386/64bit-avx512.xml: Add bfloat16 type.
225 * features/i386/64bit-avx512.c: Regenerated.
226 * features/i386/64bit-sse.xml: Add bfloat16 type.
227 * features/i386/64bit-sse.c: Regenerated.
228
229 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
230
231 * i386-tdep.c (i386_zmm_type): Fix field names.
232 (i386_ymm_type): Fix field names.
233
234 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
235
236 * breakpoint.c: Fix typo in the help message of the
237 "set breakpoint condition-evaluation" command.
238
239 2020-09-10 Kamil Rytarowski <n54@gmx.com>
240
241 * nbsd-nat.c: Include "nat/netbsd-nat.h".
242 * (nbsd_nat_target::pid_to_exec_file)
243 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
244 (nbsd_nat_target::post_startup_inferior)
245 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
246 (nbsd_add_threads): Switch local code to common gdb/nat functions.
247 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
248 * (nbsd_thread_lister): Remove.
249
250 2020-09-10 Kamil Rytarowski <n54@gmx.com>
251
252 * fork-inferior.c (startup_inferior): Avoid double free.
253
254 2020-09-10 Kamil Rytarowski <n54@gmx.com>
255
256 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
257 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
258
259 2020-09-10 Kamil Rytarowski <n54@gmx.com>
260
261 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
262 * netbsd-nat.c: Include <sys/ptrace.h>.
263 * (netbsd_nat::enable_proc_events): Add.
264
265 2020-09-10 Kamil Rytarowski <n54@gmx.com>
266
267 * netbsd-nat.h: Include "gdbsupport/function-view.h".
268 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
269 (netbsd_nat::for_each_thread): Add.
270 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
271 "gdbsupport/common-debug.h".
272 * (netbsd_nat::netbsd_thread_lister)
273 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
274 (netbsd_nat::for_each_thread): Add.
275
276 2020-09-10 Kamil Rytarowski <n54@gmx.com>
277
278 * netbsd-nat.h: Include <unistd.h>.
279 * (netbsd_nat::pid_to_exec_file): Add.
280 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
281 * (netbsd_nat::pid_to_exec_file) Add.
282
283 2020-09-10 Kamil Rytarowski <n54@gmx.com>
284
285 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
286
287 2020-09-10 Kamil Rytarowski <n54@gmx.com>
288
289 * netbsd-nat.h: New file.
290 * netbsd-nat.c: Likewise.
291
292 2020-09-09 Tom Tromey <tromey@adacore.com>
293
294 * ada-lang.c (remove_extra_symbols): Do not increment when
295 removing an element
296
297 2020-09-08 Tom Tromey <tromey@adacore.com>
298
299 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
300
301 2020-09-08 Tom Tromey <tromey@adacore.com>
302
303 PR win32/25302:
304 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
305 (gdb_bfd_init_data): New function.
306 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
307
308 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
309
310 * infrun.c (fetch_inferior_event): Use
311 `switch_to_target_no_thread` to switch the target.
312
313 2020-09-06 Tom Tromey <tom@tromey.com>
314
315 * symfile.h (dwarf2_free_objfile): Don't declare.
316
317 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
318
319 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
320 to match 16 byte real/complex type generated by Flang compiler.
321
322 2020-09-03 Tom de Vries <tdevries@suse.de>
323
324 PR breakpoint/26546
325 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
326 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
327
328 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
329
330 * maint.c (index_digits): New function.
331 (struct maint_print_section_data): Remove.
332 (print_bfd_section_info): Remove print_data parameter, add arg
333 and index_digits.
334 (print_objfile_section_info): Likewise.
335 (print_bfd_section_info_maybe_relocated): Likewise (plus
336 objfile).
337 (maintenance_info_sections): Adjust calls.
338
339 2020-09-02 Tom Tromey <tromey@adacore.com>
340
341 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
342 for null pointers.
343 (ada_varobj_adjust_for_child_access): Special-case null pointers.
344
345 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
346
347 * bcache.h (struct bcache) <insert>: Change type of `added` to
348 pointer to bool.
349 * bcache.c (bcache::insert): Likewise.
350 * gdbtypes.c (check_types_worklist): Adjust.
351 * psymtab.c (add_psymbol_to_bcache): Adjust.
352
353 2020-08-31 Kevin Buettner <kevinb@redhat.com>
354
355 * corelow.c (unordered_set): Include.
356 (class core_target): Add field 'm_core_unavailable_mappings'.
357 (core_target::build_file_mappings): Print only one warning
358 per inaccessible file. Add unavailable/broken mappings
359 to m_core_unavailable_mappings.
360 (core_target::xfer_partial): Call...
361 (core_target::xfer_memory_via_mappings): New method.
362
363 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
366 type to bool.
367
368 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * dwarf2/read.c (struct field_info): Fix indentation.
371
372 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
373
374 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
375 ordering in comment.
376 * frame.c (frame_id_eq): Fix indentation.
377
378 2020-08-31 Scott Linder <scott@scottlinder.com>
379 Simon Marchi <simon.marchi@efficios.com>
380
381 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
382 inline frame ids in outer frame.
383
384 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
385
386 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
387 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
388 (outer_frame_id): Use FID_STACK_OUTER instead of
389 FID_STACK_INVALID.
390 (frame_id_p): Don't check for outer_frame_id.
391
392 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
393
394 * frame-unwind.c (frame_unwind_got_optimized): Don't set
395 regnum/frame in value. Call allocate_value_lazy.
396 * frame.c (frame_unwind_register_value): Use
397 val_print_not_saved.
398
399 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
400
401 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
402
403 2020-08-29 Pedro Alves <pedro@palves.net>
404
405 * progspace.c (print_program_space): Use all_inferiors. Switch to
406 the inferior before calling target_pid_to_str.
407
408 2020-08-28 Tom Tromey <tom@tromey.com>
409
410 * xcoffread.c (xcoff_end_psymtab): Update comment.
411 * dbxread.c (dbx_end_psymtab): Update comment.
412
413 2020-08-28 Tom de Vries <tdevries@suse.de>
414
415 PR breakpoint/26544
416 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
417 event_location.
418 (create_breakpoint): Same.
419 (base_breakpoint_decode_location): Same.
420 (bkpt_create_sals_from_location): Same.
421 (bkpt_decode_location): Same.
422 (bkpt_probe_create_sals_from_location): Same.
423 (bkpt_probe_decode_location): Same.
424 (tracepoint_create_sals_from_location): Same.
425 (tracepoint_decode_location): Same.
426 (tracepoint_probe_decode_location): Same.
427 (strace_marker_create_sals_from_location): Same.
428 (strace_marker_decode_location): Same.
429 (create_sals_from_location_default): Same.
430 (decode_location_default): Same.
431 * breakpoint.h (struct breakpoint_ops): Same.
432 (create_breakpoint): Same.
433 * linespec.h (decode_line_full): Same.
434 * linespec.c (decode_line_full): Same. Throw error if
435 result.size () == 0.
436
437 2020-08-27 Pedro Alves <pedro@palves.net>
438
439 PR gdb/26524
440 * breakpoint.c (until_break_fsm) <location_breakpoint,
441 caller_breakpoint>: Delete fields.
442 <breakpoints>: New field.
443 <until_break_fsm>: Adjust to save a breakpoint vector instead of
444 two individual breakpoints.
445 (until_break_fsm::should_stop): Loop over breakpoints in the
446 breakpoint vector.
447 (until_break_fsm::clean_up): Adjust to clear the breakpoints
448 vector.
449 (until_break_command): Handle location expanding into multiple
450 sals.
451
452 2020-08-27 Pedro Alves <pedro@palves.net>
453
454 PR gdb/26523
455 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
456 bp_until breakpoints user-specified locations. Update intro
457 comment.
458
459 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
460
461 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
462 gdb_bfd_sections): New.
463 * maint.c (print_bfd_section_info): Change param type to
464 maint_print_section_data.
465 (print_objfile_section_info): Likewise.
466 (print_bfd_section_info_maybe_relocated): Likewise.
467 (maintenance_info_sections): Use gdb_bfd_sections.
468
469 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
470
471 * MAINTAINERS: Add ARC target and maintainer.
472
473 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
474
475 * configure.tgt: ARC support for GNU/Linux.
476 * Makefile.in (ALL_TARGET_OBJS): Likewise.
477 * arc-linux-tdep.c: New file.
478 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
479 * arc-tdep.c (arc_write_pc): Use it.
480
481 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
482
483 * arc-tdep.c (arc_check_for_hardware_loop): New.
484 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
485
486 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
487
488 * arc-tdep.h: Include "gdbarch.h".
489
490 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
491
492 * arch/arc.h
493 (arc_gdbarch_features): New class to stir the selection of target XML.
494 (arc_create_target_description): Use FEATURES to choose XML target.
495 (arc_lookup_target_description): Use arc_create_target_description
496 to create _new_ target descriptions or return the already created
497 ones if the FEATURES is the same.
498 * arch/arc.c: Implementation of prototypes described above.
499 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
500 (arc_gdbarch_features_init): Initialize the FEATURES struct.
501 * arc-tdep.c (*_feature_name): Make feature names consistent.
502 (arc_register_feature): A new struct to hold information about
503 registers of a particular target/feature.
504 (arc_check_tdesc_feature): Check if XML provides registers in
505 compliance with ARC_REGISTER_FEATURE structs.
506 (arc_update_acc_reg_names): Add aliases for r58 and r59.
507 (determine_*_reg_feature_set): Which feature name to look for.
508 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
509 (mach_type_to_arc_isa): Convert from a set of binutils machine types
510 to expected ISA enums to be used in arc_gdbarch_features structs.
511 * features/Makefile (FEATURE_XMLFILES): Add new files.
512 * gdb/features/arc/v1-aux.c: New file.
513 * gdb/features/arc/v1-aux.xml: Likewise.
514 * gdb/features/arc/v1-core.c: Likewise.
515 * gdb/features/arc/v1-core.xml: Likewise.
516 * gdb/features/arc/v2-aux.c: Likewise.
517 * gdb/features/arc/v2-aux.xml: Likewise.
518 * gdb/features/arc/v2-core.c: Likewise.
519 * gdb/features/arc/v2-core.xml: Likewise.
520 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
521
522 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
523 Andrew Burgess <andrew.burgess@embecosm.com>
524
525 PR m2/26372
526 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
527 an assert. Remove single element array indexing pattern as the
528 MULTI_SUBSCRIPT support will handle this case too.
529
530 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
531
532 * value.h (valprint_check_validity): Move declaration from
533 here...
534 * valprint.h (valprint_check_validity): ... to here.
535
536 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
537
538 * debug.h: New file.
539 * debug.c (debug_prefixed_vprintf): New function.
540 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
541 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
542
543 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
544
545 * infrun.h (infrun_debug_printf_1): New function declaration.
546 (infrun_debug_printf): New macro.
547 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
548 throughout.
549 (infrun_debug_printf): New function.
550 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
551 (handle_jit_event): Likewise.
552
553 2020-08-21 Mark Wielaard <mark@klomp.org>
554
555 * ada-lex.l: Extend register warnings diagnostics comment for g++.
556
557 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
558
559 * frame.c (enum class frame_id_status): New.
560 (struct frame_info) <this_id::p>: Change type to frame_id_status.
561 (fprintf_frame): Update.
562 (compute_frame_id): Set frame id status to "computing" on entry.
563 Set it back to "not_computed" on failure and to "computed" on
564 success.
565 (get_frame_id): Assert the frame id is not being computed.
566 (create_sentinel_frame): Use frame_id_status::COMPUTED.
567 (create_new_frame): Likewise.
568 (frame_cleanup_after_sniffer): Update assert.
569
570 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
571
572 * regcache.c (pid_ptid_regcache_map): New type.
573 (target_ptid_regcache_map): Remove.
574 (target_pid_ptid_regcache_map): New type.
575 (regcaches): Change type to target_pid_ptid_regcache_map.
576 (get_thread_arch_aspace_regcache): Update.
577 (regcache_thread_ptid_changed): Update, handle pid-like ptid
578 case.
579 (regcaches_size): Update.
580 (regcache_count): Update.
581 (registers_changed_ptid_target_pid_test): New.
582 (_initialize_regcache): Register new test.
583
584 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
585
586 * regcache.c (regcache_count): New.
587 (struct regcache_test_data): New.
588 (regcache_test_data_up): New.
589 (populate_regcaches_for_test): New.
590 (regcaches_test): Remove.
591 (get_thread_arch_aspace_regcache_test): New.
592 (registers_changed_ptid_all_test): New.
593 (registers_changed_ptid_target_test): New.
594 (registers_changed_ptid_target_ptid_test): New.
595 (regcache_thread_ptid_changed): Remove regcache_count lambda.
596 (_initialize_regcache): Register new tests.
597
598 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
599
600 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
601 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
602 gdbarch and aspace parameter. Use current inferior's aspace.
603 Validate regcache's arch value.
604 (regcaches_test): Update.
605
606 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
607
608 * regcache.c (regcaches_test): Call registers_changed.
609
610 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
611
612 * infrun.c (process_event_stop_test): Fix typo "breapoint".
613
614 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
615
616 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
617 to find the end of prologue for flang compiled binaries.
618 * arm-tdep.c (arm_skip_prologue): Likewise.
619 * i386-tdep.c (i386_skip_prologue): Likewise.
620 * producer.c (producer_is_llvm): New function.
621 (producer_parsing_tests): Added new tests for clang/flang.
622 * producer.h (producer_is_llvm): New declaration.
623
624 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
625
626 * linux-nat.c (linux_nat_debug_printf): New function.
627 (linux_nat_debug_printf_1): New macro. Use throughout the file.
628
629 2020-08-18 Aaron Merey <amerey@redhat.com>
630
631 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
632 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
633 (CLIBS): Add DEBUGINFOD_LIBS.
634
635 2020-08-17 Sergei Trofimovich <siarheit@google.com>
636
637 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
638 'gdbarch_num_regs'.
639
640 2020-08-17 Tom Tromey <tromey@adacore.com>
641
642 * ada-varobj.c (ada_varobj_decode_var): Handle case where
643 ada_get_decoded_value returns NULL.
644
645 2020-08-17 Tom Tromey <tromey@adacore.com>
646
647 * python/py-inferior.c (infpy_search_memory): Use
648 gdb_py_object_from_ulongest.
649 * python/py-infevents.c (create_inferior_call_event_object)
650 (create_memory_changed_event_object): Use
651 gdb_py_object_from_ulongest.
652 * python/py-linetable.c (ltpy_entry_get_pc): Use
653 gdb_py_object_from_ulongest.
654
655 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
656
657 * loc.c (class symbol_needs_eval_context): Fix indentation.
658
659 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
660
661 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
662 bool.
663
664 2020-08-17 Tom de Vries <tdevries@suse.de>
665
666 PR gdb/26393
667 * gdbtypes.c (dump_dynamic_prop): New function.
668 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
669
670 2020-08-15 Tom de Vries <tdevries@suse.de>
671
672 PR backtrace/26390
673 * stack.c (print_frame_args): Temporarily set the selected
674 frame to FRAME while printing the frame's arguments.
675
676 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
677
678 PR breakpoints/26385
679 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
680 Always clear watchpoint with PTRACE_SET_DEBUGREG.
681
682 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
683
684 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
685 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
686 and >= to check return value instead of == -1 and != -1.
687
688 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
689
690 * utils.h (class gdb_argv) <as_array_view>: New method.
691 * utils.c (gdb_argv_as_array_view_test): New.
692 (_initialize_utils): Register selftest.
693 * maint.c (maintenance_selftest): Use the new method.
694
695 2020-08-13 Kamil Rytarowski <n54@gmx.com>
696
697 * target.h (supports_dumpcore, dumpcore): New
698 function declarations.
699 * target.c (supports_dumpcore, dumpcore): New
700 functions.
701 * target-delegates.c: Rebuild.
702 * gcore.c (gcore_command): Use target_supports_dumpcore ()
703 and target_dumpcore ().
704
705 2020-08-13 Aaron Merey <amerey@redhat.com>
706
707 * debuginfod-support.c: Replace global variables with user_data.
708
709 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
710
711 * maint.c (maintenance_selftest): Split args and pass array_view
712 to run_tests.
713
714 2020-08-12 Luis Machado <luis.machado@linaro.org>
715
716 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
717 type's length.
718 Use %s and pulongest to print the length.
719
720 2020-08-12 Pedro Alves <palves@redhat.com>
721
722 * NEWS: Move "Multi-target debugging support" item to the
723 "Changes since GDB 9" section.
724
725 2020-08-12 Pedro Alves <palves@redhat.com>
726
727 PR gdb/26336
728 * progspace.c (program_space::remove_objfile): Invalidate the
729 frame cache.
730
731 2020-08-11 Tom de Vries <tdevries@suse.de>
732
733 * MAINTAINERS: Mark ms1 as deleted.
734
735 2020-08-10 Luis Machado <luis.machado@linaro.org>
736
737 PR gdb/26310
738
739 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
740 act accordingly.
741 (aarch64_analyze_prologue_test): Add more unit tests to exercise
742 movz/str/stur/stp skipping behavior.
743
744 2020-08-10 Luis Machado <luis.machado@linaro.org>
745
746 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
747 struct user_sve_header instead of struct sve_context.
748
749 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * read.h (dwarf2_fetch_die_loc_sect_off,
752 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
753 `void *` parameter with function_view.
754 * read.c (dwarf2_fetch_die_loc_sect_off,
755 dwarf2_fetch_die_loc_cu_off): Likewise.
756 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
757 (per_cu_dwarf_call): Adjust.
758 (get_frame_address_in_block_wrapper): Remove.
759 (indirect_synthetic_pointer): Adjust.
760 (get_ax_pc): Remove.
761 (dwarf2_compile_expr_to_ax): Adjust.
762
763 2020-08-08 Tom de Vries <tdevries@suse.de>
764
765 PR build/26344
766 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
767 constructor.
768 * regcache.c (get_thread_arch_aspace_regcache): Same.
769
770 2020-08-07 Tom Tromey <tromey@adacore.com>
771
772 * ravenscar-thread.c
773 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
774 New method.
775 (ravenscar_thread_target::wait): Check
776 runtime_initialized.
777 (ravenscar_thread_target::prepare_to_store)
778 (ravenscar_thread_target::stopped_by_sw_breakpoint)
779 (ravenscar_thread_target::stopped_by_hw_breakpoint)
780 (ravenscar_thread_target::stopped_by_watchpoint)
781 (ravenscar_thread_target::stopped_data_address)
782 (ravenscar_thread_target::core_of_thread): Use
783 scoped_restore_current_thread and
784 set_base_thread_from_ravenscar_task.
785
786 2020-08-07 Tom Tromey <tromey@adacore.com>
787
788 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
789
790 2020-08-07 Tom Tromey <tromey@adacore.com>
791
792 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
793 update_inferior_ptid before update_thread_list.
794 (temporarily_change_regcache_ptid): New class.
795 (ravenscar_thread_target::fetch_registers)
796 (ravenscar_thread_target::store_registers)
797 (ravenscar_thread_target::prepare_to_store): Use base thread when
798 forwarding operation.
799
800 2020-08-07 Tom Tromey <tromey@adacore.com>
801
802 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
803 "is_pid" case.
804
805 2020-08-07 Tom Tromey <tromey@adacore.com>
806
807 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
808 New methods.
809 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
810 first.
811 (ravenscar_thread_target::add_thread): Rename from
812 ravenscar_add_thread.
813 (ravenscar_thread_target::update_thread_list): Use a lambda.
814 (ravenscar_thread_target::xfer_partial): New method.
815
816 2020-08-07 Tom Tromey <tromey@adacore.com>
817
818 * ada-lang.h (ada_task_list_iterator_ftype): Now a
819 gdb::function_view.
820 (iterate_over_live_ada_tasks): Change type of argument.
821 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
822 of argument.
823
824 2020-08-07 Tom Tromey <tromey@adacore.com>
825
826 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
827 Remove.
828 (ravenscar_thread_target::extra_thread_info): Remove.
829 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
830 defer to target beneath for non-Ravenscar threads.
831
832 2020-08-07 Tom Tromey <tromey@adacore.com>
833
834 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
835 get_base_thread_from_ravenscar_task>: Now methods.
836 <m_cpu_map>: New member.
837 (ravenscar_thread_target::get_thread_base_cpu): Rename from
838 ravenscar_get_thread_base_cpu. Check m_cpu_map.
839 (ravenscar_thread_target::task_is_currently_active): Update.
840 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
841 Now a method.
842 (ravenscar_thread_target::add_active_thread): Put initial thread
843 into the m_cpu_map.
844
845 2020-08-07 Tom Tromey <tromey@adacore.com>
846
847 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
848 event_ptid.
849
850 2020-08-07 Tom Tromey <tromey@adacore.com>
851
852 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
853 runtime_initialized.
854
855 2020-08-07 Tom Tromey <tromey@adacore.com>
856
857 * ravenscar-thread.c (ravenscar_thread_target): Don't call
858 add_active_thread.
859 (ravenscar_thread_target::add_active_thread): Now public.
860 (ravenscar_inferior_created): Call add_active_thread after pushing
861 the target.
862
863 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
864
865 * regcache.c (ptid_regcache_map): New type.
866 (target_ptid_regcache_map): New type.
867 (regcaches): Change type to target_ptid_regcache_map.
868 (get_thread_arch_aspace_regcache): Update to regcaches' new
869 type.
870 (regcache_thread_ptid_changed): Likewise.
871 (registers_changed_ptid): Likewise.
872 (regcaches_size): Likewise.
873 (regcaches_test): Update.
874 (regcache_thread_ptid_changed): Update.
875 * regcache.h (regcache_up): New type.
876 * gdbsupport/ptid.h (hash_ptid): New struct.
877
878 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
879
880 * observable.h (thread_ptid_changed): Add parameter
881 `process_stratum_target *`.
882 * infrun.c (infrun_thread_ptid_changed): Add parameter
883 `process_stratum_target *` and use it.
884 (selftests): New namespace.
885 (infrun_thread_ptid_changed): New function.
886 (_initialize_infrun): Register selftest.
887 * regcache.c (regcache_thread_ptid_changed): Add parameter
888 `process_stratum_target *` and use it.
889 (regcache_thread_ptid_changed): New function.
890 (_initialize_regcache): Register selftest.
891 * thread.c (thread_change_ptid): Pass target to
892 thread_ptid_changed observable.
893
894 2020-08-06 Caroline Tice <cmtice@google.com>
895
896 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
897 (struct dwp_sections): Update field comments. Add loclists and
898 rnglists fields.
899 (struct virtual_v2_dwo_sections): Rename struct to
900 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
901 size & offset fields for loclists and rnglists.
902 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
903 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
904 skipping dummy type units.
905 (create_dwp_hash_table): Update the large comment above the function to
906 discuss Version 5 DWP files as well, with references. Update all the
907 version checks in the function to check for version 5 as well. Add new
908 section at the end to create dwp hash table for version 5.
909 (create_dwp_v2_section): Rename function to
910 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
911 Add V5 to error message text.
912 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
913 into calls to create_dwp_v2_or_v5_section.
914 (create_dwo_unit_in_dwp_v5): New function.
915 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
916 check for version2; add else clause to handle version 5.
917 (open_and_init_dwo_file): Add code to check dwarf version & only call
918 create_debug_types_hash_table (with sections.types) if version is not 5;
919 else call create_debug_type_hash_table, with sections.info.
920 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
921 version 5.
922 (dwarf2_locate_v5_dwp_sections): New function.
923 (open_and_init_dwp_file): Add else-if clause for version 5 to call
924 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
925
926 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
927
928 * regcache.h (class regcache): Remove friend
929 registers_changed_ptid.
930 <regcache_thread_ptid_changed>: Remove.
931 <regcaches>: Remove.
932 * regcache.c (regcache::regcaches): Rename to...
933 (regcaches): ... this. Make static.
934 (get_thread_arch_aspace_regcache): Update.
935 (regcache::regcache_thread_ptid_changed): Rename to...
936 (regcache_thread_ptid_changed): ... this. Update.
937 (class regcache_access): Remove.
938 (regcaches_test): Update.
939 (_initialize_regcache): Update.
940 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
941 <forward_list>.
942
943 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
944
945 * regcache.h (class regcache) <current_regcache>: Rename to...
946 <regcaches>: ... this. Move doc here.
947 * regcache.c (regcache::current_regcache) Rename to...
948 (regcache::regcaches): ... this. Move doc to header.
949 (get_thread_arch_aspace_regcache): Update.
950 (regcache::regcache_thread_ptid_changed): Update.
951 (registers_changed_ptid): Update.
952 (class regcache_access) <current_regcache_size>: Rename to...
953 <regcaches_size>: ... this.
954 (current_regcache_test): Rename to...
955 (regcaches_test): ... this.
956 (_initialize_regcache): Update.
957
958 2020-08-06 Victor Collod <vcollod@nvidia.com>
959
960 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
961
962 2020-08-05 Kevin Buettner <kevinb@redhat.com>
963
964 * corelow.c (core_target::build_file_mappings): Don't output
965 null pathname in warning.
966
967 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
968
969 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
970 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
971 gdb.dwarf2/dw2-single-line-discriminators.exp,
972 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
973
974 2020-08-05 Tom Tromey <tromey@adacore.com>
975
976 PR rust/26197:
977 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
978 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
979 Fix off-by-one and type size errors in ordinary case.
980
981 2020-08-05 Tom de Vries <tdevries@suse.de>
982
983 * gdbtypes.c (type_not_allocated, type_not_associated): Use
984 "prop->const_val () == 0" instead of "prop->const_val () != 0".
985
986 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
987
988 * frame.h (frame_id_p): Return bool.
989 (frame_id_artificial_p): Return bool.
990 (frame_id_eq): Return bool.
991 (has_stack_frames): Return bool.
992 (get_selected_frame): Fix typo in comment.
993 (get_frame_pc_if_available): Return bool.
994 (get_frame_address_in_block_if_available): Return bool.
995 (get_frame_func_if_available): Return bool.
996 (read_frame_register_unsigned): Return bool.
997 (get_frame_register_bytes): Return bool.
998 (safe_frame_unwind_memory): Return bool.
999 (deprecated_frame_register_read): Return bool.
1000 (frame_unwinder_is): Return bool.
1001 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1002 bool.
1003 <this_id::p>: Likewise.
1004 <prev_p>: Likewise.
1005 (frame_stash_add): Return bool.
1006 (get_frame_id): Use bool.
1007 (frame_id_build_special) Use bool.
1008 (frame_id_build_unavailable_stack): Use bool.
1009 (frame_id_build): Use bool.
1010 (frame_id_p): Return bool, use true/false instead of 1/0.
1011 (frame_id_artificial_p): Likewise.
1012 (frame_id_eq): Likewise.
1013 (frame_id_inner): Likewise.
1014 (get_frame_func_if_available): Likewise.
1015 (read_frame_register_unsigned): Likewise.
1016 (deprecated_frame_register_read): Likewise.
1017 (get_frame_register_bytes): Likewise.
1018 (has_stack_frames): Likewise.
1019 (inside_main_func): Likewise.
1020 (inside_entry_func): Likewise.
1021 (get_frame_pc_if_available): Likewise.
1022 (get_frame_address_in_block_if_available): Likewise.
1023 (frame_unwinder_is): Likewise.
1024 (safe_frame_unwind_memory): Likewise.
1025 (frame_unwind_arch): Likewise.
1026
1027 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1028
1029 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1030 type to cached_copy_status.
1031 (fprintf_frame): Adjust.
1032 (get_frame_func_if_available): Adjust.
1033 (frame_cleanup_after_sniffer): Adjust.
1034
1035 2020-08-04 Mark Wielaard <mark@klomp.org>
1036
1037 * MAINTAINERS (Write After Approval): Update email address.
1038
1039 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1040
1041 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1042 dynamic_prop::const_val.
1043
1044 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1045
1046 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1047 dynamic_prop::kind.
1048
1049 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1050
1051 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1052
1053 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1054
1055 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1056
1057 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1058 Jose E. Marchesi <jose.marchesi@oracle.com>
1059
1060 * configure.tgt: Add entry for bpf-*-*.
1061 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1062 (ALLDEPFILES): Add bpf-tdep.c.
1063 * bpf-tdep.c: New file.
1064 * MAINTAINERS: Add bpf target and maintainer.
1065 * NEWS: Mention the support for the new target.
1066
1067 2020-08-04 Tom de Vries <tdevries@suse.de>
1068
1069 PR symtab/23270
1070 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1071 Error.
1072
1073 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1074
1075 * syscalls/freebsd.xml: Regenerate.
1076
1077 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1078
1079 * syscalls/update-freebsd.sh: Fix usage and year range.
1080
1081 2020-08-03 Tom de Vries <tdevries@suse.de>
1082
1083 PR symtab/26333
1084 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1085 DW_LNE_lo_user/DW_LNE_hi_user range.
1086
1087 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1088
1089 PR ada/26318
1090 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1091 kind.
1092
1093 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1094
1095 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1096
1097 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1098
1099 * breakpoint.c (set_breakpoint_condition): Update the condition
1100 expressions after checking that the input condition string parses
1101 successfully and does not contain junk at the end.
1102
1103 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1104
1105 * breakpoint.c (set_breakpoint_condition): Update the
1106 condition string after parsing the new condition successfully.
1107
1108 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1109
1110 * proc-api.c (_STRUCTURED_PROC): Don't define.
1111 * proc-events.c: Likewise.
1112 * proc-flags.c: Likewise.
1113 * proc-why.c: Likewise.
1114 * procfs.c: Likewise.
1115
1116 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1117 * configure, config.in: Regenerate.
1118
1119 2020-07-30 Tom de Vries <tdevries@suse.de>
1120
1121 PR build/26320
1122 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1123 m_red/m_green/m_blue in a union.
1124
1125 2020-07-29 Tom de Vries <tdevries@suse.de>
1126
1127 PR tdep/26280
1128 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1129
1130 2020-07-28 Tom Tromey <tromey@adacore.com>
1131
1132 PR symtab/26270:
1133 * symtab.h (find_pc_partial_function_sym): Declare.
1134 * cli/cli-cmds.c (disassemble_command): Use
1135 find_pc_partial_function_sym. Check asm_demangle.
1136 * blockframe.c (cache_pc_function_sym): New global.
1137 (cache_pc_function_name): Remove.
1138 (clear_pc_function_cache): Update.
1139 (find_pc_partial_function_sym): New function, from
1140 find_pc_partial_function.
1141 (find_pc_partial_function): Rewrite using
1142 find_pc_partial_function_sym.
1143
1144 2020-07-28 Tom Tromey <tromey@adacore.com>
1145
1146 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1147 help. Add usage.
1148
1149 2020-07-28 Tom Tromey <tromey@adacore.com>
1150
1151 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1152 <DW_OP_GNU_variable_value>: Cast to address type.
1153
1154 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1155
1156 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1157 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1158 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1159 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1160 (nbsd_get_siginfo_type): New.
1161 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1162 (_initialize_nbsd_tdep): New.
1163
1164 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1165
1166 PR binutils/26301
1167 * configure: Regenerated.
1168
1169 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1170
1171 PR binutils/26301
1172 * configure: Regenerated.
1173
1174 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1175
1176 * python/py-frame.c: Remove 'user-regs.h' include.
1177 (frapy_read_register): Rewrite to make use of
1178 gdbpy_parse_register_id.
1179 * python/py-registers.c (gdbpy_parse_register_id): New function,
1180 moved here from python/py-unwind.c. Updated the return type, and
1181 also accepts register descriptor objects.
1182 * python/py-unwind.c: Remove 'user-regs.h' include.
1183 (pyuw_parse_register_id): Moved to python/py-registers.c.
1184 (unwind_infopy_add_saved_register): Update to use
1185 gdbpy_parse_register_id.
1186 (pending_framepy_read_register): Likewise.
1187 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1188
1189 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1190
1191 * python/py-registers.c: Add 'user-regs.h' include.
1192 (register_descriptor_iter_find): New function.
1193 (register_descriptor_iterator_object_methods): New static global
1194 methods array.
1195 (register_descriptor_iterator_object_type): Add pointer to methods
1196 array.
1197
1198 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1199
1200 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1201 for all architectures on FreeBSD 11.3 and later.
1202
1203 2020-07-27 Tom Tromey <tromey@adacore.com>
1204
1205 * gcore.h (load_corefile): Don't declare.
1206
1207 2020-07-27 Tom de Vries <tdevries@suse.de>
1208
1209 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1210 * config.in: Regenerate.
1211 * configure: Regenerate.
1212
1213 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1214
1215 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1216 ws2tcpip.h. When checking whether socklen_t type is defined, use
1217 ws2tcpip.h if it is available and sys/socket.h isn't.
1218 * configure: Regenerate.
1219 * config.in: Regenerate.
1220
1221 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 PR fortran/23051
1224 PR fortran/26139
1225 * valops.c (value_ind): Pass address to
1226 readjust_indirect_value_type.
1227 * value.c (readjust_indirect_value_type): Make parameter
1228 non-const, and add extra address parameter. Resolve original type
1229 before using it.
1230 * value.h (readjust_indirect_value_type): Update function
1231 signature and comment.
1232
1233 2020-07-25 Tom de Vries <tdevries@suse.de>
1234
1235 PR symtab/26243
1236 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1237 entries.
1238
1239 2020-07-24 Aaron Merey <amerey@redhat.com>
1240
1241 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1242 * configure: Rebuild.
1243
1244 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1245
1246 PR corefiles/26294
1247 * corelow.c (_initialize_corelow): Add period to help text
1248 for "maintenance print core-file-backed-mappings".
1249
1250 2020-07-23 Pedro Alves <pedro@palves.net>
1251
1252 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1253 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1254 meanwhile.
1255 * frame.c (frame_cache_generation, get_frame_cache_generation):
1256 New.
1257 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1258 (get_prev_frame_if_no_cycle): On exception, don't touch
1259 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1260 * frame.h (get_frame_cache_generation): Declare.
1261
1262 2020-07-23 Tom de Vries <tdevries@suse.de>
1263
1264 PR tui/26282
1265 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1266 New default constructor.
1267
1268 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1271 exclude non-statement entries.
1272
1273 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1274
1275 * NEWS (New commands): Mention new command
1276 "maintenance print core-file-backed-mappings".
1277
1278 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1279
1280 * corelow.c (gdbcmd.h): Include.
1281 (core_target::info_proc_mappings): New method.
1282 (get_current_core_target): New function.
1283 (maintenance_print_core_file_backed_mappings): New function.
1284 (_initialize_corelow): Add core-file-backed-mappings to
1285 "maint print" commands.
1286
1287 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1288
1289 * linux-tdep.c (dump_note_entry_p): New function.
1290 (linux_dump_mapping_p_ftype): New typedef.
1291 (linux_find_memory_regions_full): Add new parameter,
1292 should_dump_mapping_p.
1293 (linux_find_memory_regions): Adjust call to
1294 linux_find_memory_regions_full.
1295 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1296 call to linux_find_memory_regions_full.
1297
1298 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1299
1300 * corelow.c (solist.h, unordered_map): Include.
1301 (class core_target): Add field m_core_file_mappings and
1302 method build_file_mappings.
1303 (core_target::core_target): Call build_file_mappings.
1304 (core_target::~core_target): Free memory associated with
1305 m_core_file_mappings.
1306 (core_target::build_file_mappings): New method.
1307 (core_target::xfer_partial): Use m_core_file_mappings
1308 for memory transfers.
1309 * linux-tdep.c (linux_read_core_file_mappings): New
1310 function.
1311 (linux_core_info_proc_mappings): Rewrite to use
1312 linux_read_core_file_mappings.
1313 (linux_init_abi): Register linux_read_core_file_mappings.
1314
1315 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1316
1317 * arch-utils.c (default_read_core_file_mappings): New function.
1318 * arch-utils.c (default_read_core_file_mappings): Declare.
1319 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1320 * gdbarch.h, gdbarch.c: Regenerate.
1321
1322 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1323
1324 PR corefiles/25631
1325 * corelow.c (core_target:xfer_partial): Revise
1326 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1327 case after first checking the stratum beneath the core
1328 target.
1329 (has_all_memory): Return true.
1330 * target.c (raw_memory_xfer_partial): Revise comment
1331 regarding use of has_all_memory.
1332
1333 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1334
1335 * exec.h (section_table_xfer_memory): Revise declaration,
1336 replacing section name parameter with an optional callback
1337 predicate.
1338 * exec.c (section_table_xfer_memory): Likewise.
1339 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1340 of section_table_xfer_memory.
1341
1342 2020-07-22 Tom Tromey <tromey@adacore.com>
1343
1344 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1345 lookup_symbol_search_name.
1346
1347 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1350 redundant local variable.
1351 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1352 reference, not pointer, update code accordingly.
1353
1354 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1355 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1356
1357 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1358 * jit.c (jit_breakpoint_re_set_internal): Use the
1359 `skip_jit_symbol_lookup` field.
1360
1361 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1362 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1363
1364 * jit.c (jit_read_descriptor): Define the descriptor address once,
1365 use twice.
1366 (jit_breakpoint_deleted): Move the declaration of the loop variable
1367 `iter` into the loop header.
1368 (jit_breakpoint_re_set_internal): Move the declaration of the local
1369 variable `objf_data` to the first point of definition.
1370 (jit_event_handler): Move the declaration of local variables
1371 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1372 Rename `objf` to `jited`.
1373
1374 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1375
1376 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1377 Remove.
1378 * jit.c (get_jiter_objfile_data): Update.
1379
1380 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1381 Simon Marchi <simon.marchi@polymtl.ca>
1382
1383 * jit.c (struct jit_program_space_data): Remove.
1384 (jit_program_space_key): Remove.
1385 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1386 stuff.
1387 (get_jit_program_space_data): Remove.
1388 (jit_breakpoint_deleted): Iterate on all of the program space's
1389 objfiles.
1390 (jit_inferior_init): Likewise.
1391 (jit_breakpoint_re_set_internal): Likewise. Also change return
1392 type to void.
1393 (jit_breakpoint_re_set): Pass current_program_space to
1394 jit_breakpoint_re_set_internal.
1395
1396 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1397
1398 * jit.h (struct jiter_objfile_data) <cached_code_address,
1399 jit_breakpoint>: Move to here from ...
1400 * jit.c (jit_program_space_data): ... here.
1401 (jiter_objfile_data::~jiter_objfile_data): Update.
1402 (jit_breakpoint_deleted): Update.
1403 (jit_breakpoint_re_set_internal): Update.
1404
1405 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1406
1407 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1408 checks.
1409 (jit_read_descriptor): Remove NULL check.
1410 (jit_event_handler): Add an assertion.
1411
1412 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1413
1414 * jit.h (struct jit_objfile_data): Split into...
1415 (struct jiter_objfile_data): ... this ...
1416 (struct jited_objfile_data): ... and this.
1417 * objfiles.h (struct objfile) <jit_data>: Remove.
1418 <jiter_data, jited_data>: New fields.
1419 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1420 (jiter_objfile_data::~jiter_objfile_data): ... this.
1421 (get_jit_objfile_data): Rename to ...
1422 (get_jiter_objfile_data): ... this.
1423 (add_objfile_entry): Update.
1424 (jit_read_descriptor): Use get_jiter_objfile_data.
1425 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1426 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1427 (jit_inferior_exit_hook): Use objfile's jited_data field.
1428
1429 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1430
1431 * jit.h: Forward-declare `struct minimal_symbol`.
1432 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1433 constructor, destructor, and an objfile* field.
1434 * jit.c (jit_objfile_data): Remove.
1435 (struct jit_objfile_data): Migrate from here to jit.h.
1436 (jit_objfile_data::~jit_objfile_data): New destructor
1437 implementation with code moved from free_objfile_data.
1438 (free_objfile_data): Delete.
1439 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1440 (jit_find_objf_with_entry_addr): Ditto.
1441 (jit_inferior_exit_hook): Ditto.
1442 (_initialize_jit): Remove the call to
1443 register_objfile_data_with_cleanup.
1444 * objfiles.h (struct objfile) <jit_data>: New field.
1445
1446 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1447
1448 * jit.h: Forward-declare `struct objfile`.
1449 (jit_event_handler): Add a second parameter, the JITer objfile.
1450 * jit.c (jit_read_descriptor): Change the signature to take the
1451 JITer objfile as an argument instead of the jit_program_space_data.
1452 (jit_inferior_init): Update the call to jit_read_descriptor.
1453 (jit_event_handler): Use the new JITer objfile argument when calling
1454 jit_read_descriptor.
1455 * breakpoint.c (handle_jit_event): Update the call to
1456 jit_event_handler to pass the JITer objfile.
1457
1458 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1459
1460 * gdbarch.c: Regenerate.
1461 * gdbarch.h: Regenerate.
1462 * gdbarch.sh (handle_segmentation_fault): Remove method.
1463 * infrun.c (handle_segmentation_fault): Remove.
1464 (print_signal_received_reason): Remove call to
1465 handle_segmentation_fault.
1466
1467 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1468
1469 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1470 Rename to sparc64_linux_report_signal_info and add siggnal
1471 argument.
1472 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1473 instead of sparc64_linux_handle_segmentation_fault.
1474
1475 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1476
1477 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1478 i386_linux_report_signal_info instead of
1479 i386_linux_handle_segmentation_fault.
1480 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1481 to i386_linux_report_signal_info and add siggnal argument.
1482 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1483 of i386_linux_handle_segmentation_fault.
1484 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1485 to i386_linux_report_signal_info and add siggnal argument.
1486
1487 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1488
1489 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1490 hook if present.
1491
1492 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1493
1494 * gdbarch.c: Regenerate.
1495 * gdbarch.h: Regenerate.
1496 * gdbarch.sh (report_signal_info): New method.
1497 * infrun.c (print_signal_received_reason): Invoke gdbarch
1498 report_signal_info hook if present.
1499
1500 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1501
1502 * python/py-registers.c : Add 'unordered_map' include.
1503 (gdbpy_new_reggroup): Renamed to...
1504 (gdbpy_get_reggroup): ...this. Update to only create register
1505 group descriptors when needed.
1506 (gdbpy_reggroup_iter_next): Update.
1507
1508 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * python/py-registers.c (gdbpy_register_object_data): New static
1511 global.
1512 (gdbpy_register_object_data_init): New function.
1513 (gdbpy_new_register_descriptor): Renamed to...
1514 (gdbpy_get_register_descriptor): ...this, and update to reuse
1515 existing register descriptors where possible.
1516 (gdbpy_register_descriptor_iter_next): Update.
1517 (gdbpy_initialize_registers): Register new gdbarch data.
1518
1519 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1520
1521 * linux-nat.c (stopped_pids): Make static.
1522
1523 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1524
1525 PR ada/26235
1526 * gdbtypes.c (ada_discrete_type_low_bound,
1527 ada_discrete_type_high_bound): Handle undefined bounds.
1528
1529 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1530
1531 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1532 declaration.
1533 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1534 function.
1535
1536 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1537
1538 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1539 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1540 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1541 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1542 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1543 method.
1544
1545 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1546
1547 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1548 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1549 which are deprecated in Guile 3.0.
1550 * configure.ac (try_guile_versions): Add "guile-3.0".
1551 * configure (try_guile_versions): Regenerate.
1552 * NEWS: Update entry.
1553
1554 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1555 Doug Evans <dje@google.com>
1556
1557 PR gdb/21104
1558 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1559 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1560 USING_GUILE_BEFORE_2_2.
1561 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1562 Change type to 'scm_t_port_type *'.
1563 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1564 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1565 parameter and honor it. Update callers.
1566 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1567 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1568 functions.
1569 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1570 USING_GUILE_BEFORE_2_2.
1571 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1572 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1573 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1574 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1575 and 'SCM_PORT_TYPE'.
1576 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1577 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1578 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1579 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1580 [!USING_GUILE_BEFORE_2_2]: New functions.
1581 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1582 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1583 'gdbscm_memory_port_read'.
1584 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1585 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1586 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1587 function.
1588 (ioscm_init_memory_port): Remove.
1589 (ioscm_init_memory_port_stream): New function
1590 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1591 function.
1592 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1593 Return scm_from_uint (0).
1594 (gdbscm_set_memory_port_read_buffer_size_x)
1595 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1596 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1597 Return scm_from_uint (0).
1598 (gdbscm_set_memory_port_write_buffer_size_x)
1599 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1600 * configure.ac (try_guile_versions): Add "guile-2.2".
1601 * configure: Regenerate.
1602 * NEWS: Add entry.
1603
1604 2020-07-18 Tom Tromey <tom@tromey.com>
1605
1606 * linux-nat.c (linux_multi_process): Remove.
1607 (linux_nat_target::supports_multi_process): Return true.
1608
1609 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1610
1611 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1612 (riscv_lookup_target_description): Return pointer out of
1613 unique_ptr.
1614 * target-descriptions.c (allocate_target_description): Add
1615 comment.
1616 (target_desc_deleter::operator()): Likewise.
1617 * target-descriptions.h (struct target_desc_deleter): Moved to
1618 gdbsupport/tdesc.h.
1619 (target_desc_up): Likewise.
1620
1621 2020-07-17 Tom Tromey <tromey@adacore.com>
1622
1623 * linux-nat.c (linux_nat_target::supports_non_stop)
1624 (linux_nat_target::always_non_stop_p): Use "true".
1625 (linux_nat_target::supports_disable_randomization): Use "true" and
1626 "false".
1627
1628 2020-07-16 Caroline Tice <cmtice@google.com>
1629
1630 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1631 (RNGLIST_HEADER_SIZE64): New constant definition.
1632 (struct dwop_section_names): Add rnglists_dwo.
1633 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1634 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1635 (struct dwo_sections): Add rnglists field.
1636 (read_attribut_reprocess): Add tag parameter.
1637 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1638 (cu_debug_rnglists_section): New function (decl & definition).
1639 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1640 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1641 die whose range is being checked; get rnglist section from
1642 cu_debug_rnglists_section, to get from either objfile or dwo file as
1643 appropriate. Add cases for DW_RLE_base_addressx,
1644 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1645 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1646 test inside if-condition and updating complaint message.
1647 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1648 dwarf2_rnglists_process.
1649 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1650 dwarf2_ranges_process.
1651 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1652 need_ranges_base and update comment appropriately. Also pass die tag
1653 to dwarf2_ranges_read.
1654 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1655 need_ranges_base and update comment appropriately. Also pass die tag
1656 to dwarf2_ranges_process.
1657 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1658 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1659 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1660 need_ranges_base and update comment appropriately. Also pass die tag
1661 to read_attribute_reprocess and dwarf2_ranges_read.
1662 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1663 and update function comment appropriately.
1664 (read_loclist_index): Call read_loclists_rnglists_header instead of
1665 read_loclist_header.
1666 (read_rnglist_index): New function.
1667 (read_attribute_reprocess): Add tag parameter. Add code for
1668 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1669 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1670
1671 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1672
1673 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1674 being resolved.
1675
1676 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1677
1678 * arch-utils.c (show_architecture): Update formatting of messages.
1679
1680 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1681
1682 * gdbtypes.h (struct type) <bounds>: Handle array and string
1683 types.
1684 * ada-lang.c (assign_aggregate): Use type::bounds on
1685 array/string type.
1686 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1687 * c-varobj.c (c_number_of_children): Likewise.
1688 (c_describe_child): Likewise.
1689 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1690 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1691 (f_type_print_base): Likewise.
1692 * f-valprint.c (f77_array_offset_tbl): Likewise.
1693 (f77_get_upperbound): Likewise.
1694 (f77_print_array_1): Likewise.
1695 * guile/scm-type.c (gdbscm_type_range): Likewise.
1696 * m2-typeprint.c (m2_array): Likewise.
1697 (m2_is_long_set_of_type): Likewise.
1698 * m2-valprint.c (get_long_set_bounds): Likewise.
1699 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1700 * python/py-type.c (typy_range): Likewise.
1701 * rust-lang.c (rust_internal_print_type): Likewise.
1702 * type-stack.c (type_stack::follow_types): Likewise.
1703 * valarith.c (value_subscripted_rvalue): Likewise.
1704 * valops.c (value_cast): Likewise.
1705
1706 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1707
1708 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1709 callers to use the equivalent accessor methods.
1710
1711 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1712
1713 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1714 (struct type) <bit_stride>: New method.
1715 (TYPE_BIT_STRIDE): Remove.
1716 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1717
1718 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1719
1720 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1721 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1722 callers to use the equivalent accessor methods instead.
1723
1724 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1725
1726 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1727 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1728 callers to use the equivalent accessor methods instead.
1729
1730 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1731
1732 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1733 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1734 to use dynamic_prop::kind.
1735
1736 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1737
1738 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1739 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1740 to get the bound property's kind and check against
1741 PROP_UNDEFINED.
1742
1743 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1744
1745 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1746 all callers to use type::range_bounds followed by
1747 dynamic_prop::{low,high}.
1748
1749 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1750
1751 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1752 const_val, set_const_val, baton, set_locexpr, set_loclist,
1753 set_addr_offset, variant_parts, set_variant_parts,
1754 original_type, set_original_type>: New methods.
1755 <kind>: Rename to...
1756 <m_kind>: ... this. Update all users to use the new methods
1757 instead.
1758 <data>: Rename to...
1759 <m_data>: ... this. Update all users to use the new methods
1760 instead.
1761
1762 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1763
1764 * gdbtypes.c (get_discrete_bounds): Return failure if
1765 the range type's bounds are not both defined and constant
1766 values.
1767 (get_array_bounds): Update comment. Remove undefined bound check.
1768
1769 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1770
1771 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1772 the type::bounds method directly.
1773
1774 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1775
1776 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1777 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1778 are used to set the range type's bounds to use set_bounds.
1779
1780 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1781
1782 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1783
1784 2020-07-10 Pedro Alves <pedro@palves.net>
1785
1786 * gdbthread.h (inferior_ref): Define.
1787 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1788 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1789 * thread.c
1790 (scoped_restore_current_thread::restore):
1791 Adjust to gdb::ref_ptr.
1792 (scoped_restore_current_thread::~scoped_restore_current_thread):
1793 Remove manual decref handling.
1794 (scoped_restore_current_thread::scoped_restore_current_thread):
1795 Adjust to use
1796 inferior_ref::new_reference/thread_info_ref::new_reference.
1797 Incref the thread before calling get_frame_id instead of after.
1798 Let TARGET_CLOSE_ERROR propagate.
1799
1800 2020-07-10 Pedro Alves <pedro@palves.net>
1801
1802 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1803 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1804 NOT_AVAILABLE_ERROR.
1805 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1806 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1807
1808 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1809 Pedro Alves <pedro@palves.net>
1810
1811 PR gdb/26199
1812 * infrun.c (threads_are_resumed_pending_p): Delete.
1813 (do_target_wait): Remove threads_are_executing and
1814 threads_are_resumed_pending_p checks from the inferior_matches
1815 lambda. Update comments.
1816
1817 2020-07-10 Pedro Alves <pedro@palves.net>
1818
1819 PR gdb/26199
1820 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1821 executing threads.
1822
1823 2020-07-10 Pedro Alves <pedro@palves.net>
1824
1825 PR gdb/26199
1826 * infrun.c (handle_no_resumed): Handle multiple targets.
1827
1828 2020-07-10 Pedro Alves <pedro@palves.net>
1829
1830 PR gdb/26199
1831 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1832 target_is_async_p.
1833
1834 2020-07-10 Pedro Alves <pedro@palves.net>
1835
1836 PR gdb/26199
1837 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1838 threads, not all threads.
1839
1840 2020-07-10 Pedro Alves <pedro@palves.net>
1841
1842 PR gdb/26199
1843 * remote.c (remote_target::open_1): Pass remote target pointer as
1844 data to create_async_event_handler.
1845 (remote_async_inferior_event_handler): Mark async event handler
1846 before returning if the remote target still has either pending
1847 events or unacknowledged notifications.
1848
1849 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1850
1851 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1852 declaration.
1853 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1854 function.
1855
1856 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1857
1858 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1859 inferior_ptid.
1860
1861 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1862
1863 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1864 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1865 AT_FREEBSD_PS_STRINGS.
1866
1867 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1868
1869 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1870 of debugfile path on Windows.
1871
1872 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1873
1874 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1875 argument to 'data'.
1876
1877 2020-07-08 Tom Tromey <tromey@adacore.com>
1878
1879 * ada-lang.c (ada_exception_message_1): Use read_memory.
1880
1881 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1882
1883 PR python/22748
1884 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1885 special handling for inline frames.
1886 * findvar.c (value_of_register_lazy): Skip inline frames when
1887 creating lazy register values.
1888 * frame.c (frame_id_computed_p): Delete definition.
1889 * frame.h (frame_id_computed_p): Delete declaration.
1890
1891 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1892
1893 * NEWS: Mention additions to Python API.
1894 * python/py-arch.c (archpy_register_groups): New function.
1895 (arch_object_methods): Add 'register_groups' method.
1896 * python/py-registers.c (reggroup_iterator_object): New struct.
1897 (reggroup_object): New struct.
1898 (gdbpy_new_reggroup): New function.
1899 (gdbpy_reggroup_to_string): New function.
1900 (gdbpy_reggroup_name): New function.
1901 (gdbpy_reggroup_iter): New function.
1902 (gdbpy_reggroup_iter_next): New function.
1903 (gdbpy_new_reggroup_iterator): New function
1904 (gdbpy_initialize_registers): Register new types.
1905 (reggroup_iterator_object_type): Define new Python type.
1906 (gdbpy_reggroup_getset): New static global.
1907 (reggroup_object_type): Define new Python type.
1908 * python/python-internal.h
1909
1910 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1911
1912 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1913 * python/py-arch.c (archpy_registers): New function.
1914 (arch_object_methods): Add 'registers' method.
1915 * python/py-registers.c: New file.
1916 * python/python-internal.h
1917 (gdbpy_new_register_descriptor_iterator): Declare.
1918 (gdbpy_initialize_registers): Declare.
1919 * python/python.c (do_start_initialization): Call
1920 gdbpy_initialize_registers.
1921 * NEWS: Mention additions to the Python API.
1922
1923 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1924
1925 * NEWS: Mention new Python API method.
1926 * python/py-unwind.c (pending_framepy_architecture): New function.
1927 (pending_frame_object_methods): Add architecture method.
1928
1929 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1930
1931 * gdbarch.c: Regenerate.
1932 * gdbarch.h: Regenerate.
1933 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1934 (gdbarch_data): Use internal_error for the case where
1935 deprecated_set_gdbarch_data was originally needed.
1936 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1937 and use passed in obstack.
1938 (libunwind_frame_set_descr): Should no longer get back NULL from
1939 gdbarch_data.
1940 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1941 type.
1942 * user-regs.c (user_regs_init): Update parameters, and use passed
1943 in obstack.
1944 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1945 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1946
1947 2020-07-06 Tom de Vries <tdevries@suse.de>
1948
1949 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1950 End-Of-Sequence in lte_is_less_than.
1951 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1952 "gdb: Don't reorder line table entries too much when sorting".
1953
1954 2020-07-06 Tom de Vries <tdevries@suse.de>
1955
1956 PR tui/26205
1957 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1958
1959 2020-07-05 Tom de Vries <tdevries@suse.de>
1960
1961 PR build/26187
1962 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1963 std::uncaught_exceptions instead of deprecated
1964 std::uncaught_exception.
1965
1966 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1967
1968 * macroexp.h (macro_stringify): Return
1969 gdb::unique_xmalloc_ptr<char>.
1970 * macroexp.c (macro_stringify): Likewise.
1971 * macrotab.c (fixup_definition): Update.
1972
1973 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1974
1975 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1976 (lex_one_token): Update.
1977 * macroexp.c (struct macro_buffer) <release>: Return
1978 gdb::unique_xmalloc_ptr<char>.
1979 (macro_stringify): Update.
1980 (macro_expand): Update.
1981 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1982 * macroexp.h (macro_expand_next): Likewise.
1983
1984 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1985
1986 * macroexp.h (macro_lookup_ftype): Remove.
1987 (macro_expand, macro_expand_once, macro_expand_next): Remove
1988 lookup function parameters, add scope parameter.
1989 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1990 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1991 * macroscope.h (standard_macro_lookup): Change parameter type
1992 to macro_scope.
1993 * macroscope.c (standard_macro_lookup): Likewise.
1994 * c-exp.y (lex_one_token): Update.
1995 * macrocmd.c (macro_expand_command): Likewise.
1996 (macro_expand_once_command): Likewise.
1997
1998 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1999
2000 * inf-loop.c (inferior_event_handler): Remove client_data param.
2001 * inf-loop.h (inferior_event_handler): Likewise.
2002 * infcmd.c (step_1): Adjust.
2003 * infrun.c (proceed): Adjust.
2004 (fetch_inferior_event): Remove client_data param.
2005 (infrun_async_inferior_event_handler): Adjust.
2006 * infrun.h (fetch_inferior_event): Remove `void *` param.
2007 * linux-nat.c (handle_target_event): Adjust.
2008 * record-btrace.c (record_btrace_handle_async_inferior_event):
2009 Adjust.
2010 * record-full.c (record_full_async_inferior_event_handler):
2011 Adjust.
2012 * remote.c (remote_async_inferior_event_handler): Adjust.
2013
2014 2020-07-01 Tom Tromey <tom@tromey.com>
2015
2016 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2017 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2018
2019 2020-07-01 Tom Tromey <tom@tromey.com>
2020
2021 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2022 tui_gen_win_info.
2023 (tui_win_info::make_window): Merge with
2024 tui_gen_win_info::make_window.
2025 (tui_win_info::make_visible): Move from tui_gen_win_info.
2026 * tui/tui-win.c (tui_win_info::max_width): Move from
2027 tui_gen_win_info.
2028 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2029 type.
2030 <window_factory>: Likewise.
2031 * tui/tui-layout.c (tui_win_info::resize): Move from
2032 tui_gen_win_info.
2033 (make_standard_window): Change return type.
2034 (get_locator_window, tui_get_window_by_name): Likewise.
2035 (tui_layout_window::apply): Remove a cast.
2036 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2037 (struct tui_win_info): Merge with tui_gen_win_info.
2038 (struct tui_gen_win_info): Remove.
2039
2040 2020-07-01 Tom Tromey <tom@tromey.com>
2041
2042 * tui/tui-stack.h (struct tui_locator_window): Derive from
2043 tui_win_info.
2044 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2045 <can_box>: New method.
2046
2047 2020-07-01 Tom Tromey <tom@tromey.com>
2048
2049 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2050
2051 2020-07-01 Tom Tromey <tom@tromey.com>
2052
2053 * tui/tui-regs.c (tui_data_window::display_registers_from)
2054 (tui_data_window::display_registers_from)
2055 (tui_data_window::first_data_item_displayed)
2056 (tui_data_window::delete_data_content_windows): Update.
2057 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2058 Remove.
2059 (tui_data_window::check_register_values): Update.
2060 (tui_data_item_window::rerender): Add parameters. Update.
2061 (tui_data_item_window::refresh_window): Remove.
2062 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2063 virtual.
2064 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2065 tui_gen_win_info.
2066 <refresh_window, max_height, min_height>: Remove.
2067 <rerender>: Add parameters.
2068 <x, y, visible>: New members.
2069 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2070 <m_item_width>: New member.
2071
2072 2020-07-01 Tom Tromey <tom@tromey.com>
2073
2074 * tui/tui-regs.c (tui_data_window::show_register_group)
2075 (tui_data_window::check_register_values): Update.
2076 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2077 from item_no.
2078
2079 2020-07-01 Tom Tromey <tom@tromey.com>
2080
2081 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2082 useless "if".
2083
2084 2020-07-01 Tom Tromey <tom@tromey.com>
2085
2086 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2087 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2088
2089 2020-07-01 Tom Tromey <tom@tromey.com>
2090
2091 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2092 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2093 (struct tui_line_or_address): Move from tui-data.h.
2094 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2095 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2096 (tui_cmd_window, tui_source_window_base, tui_source_window)
2097 (tui_disasm_window): Don't declare.
2098 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2099 to tui-winsource.h.
2100 (SINGLE_KEY): Move to tui-stack.c.
2101
2102 2020-07-01 Tom Tromey <tom@tromey.com>
2103
2104 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2105 std::string.
2106 * tui/tui-regs.c (class tab_expansion_file): New.
2107 (tab_expansion_file::write): New method.
2108 (tui_register_format): Change return type. Use
2109 tab_expansion_file.
2110 (tui_get_register, tui_data_window::display_registers_from)
2111 (tui_data_item_window::rerender): Update.
2112 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2113 * tui/tui-io.c (tui_expand_tabs): Remove.
2114
2115 2020-07-01 Tom Tromey <tom@tromey.com>
2116
2117 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2118
2119 2020-07-01 Fangrui Song <maskray@google.com>
2120
2121 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2122
2123 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2124
2125 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2126 forms for DW_AT_associated and DW_AT_allocated attributes,
2127 which is already checked in function attr_to_dynamic_prop.
2128
2129 2020-06-30 Tom Tromey <tromey@adacore.com>
2130
2131 * dwarf2/read.c (quirk_rust_enum): Correctly call
2132 alloc_rust_variant for default-less enum.
2133
2134 2020-06-30 Tom Tromey <tromey@adacore.com>
2135
2136 PR build/26183:
2137 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2138 gdb::to_string.
2139
2140 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2141
2142 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2143 * gdbarch.h: Re-generate.
2144
2145 2020-06-28 Tom Tromey <tom@tromey.com>
2146
2147 * command.h (cmd_types): Remove.
2148 (cmd_type): Don't declare.
2149 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2150 typedef.
2151 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2152 * cli/cli-decode.c (cmd_type): Remove.
2153
2154 2020-06-27 Pedro Alves <palves@redhat.com>
2155
2156 * fork-child.c (prefork_hook): Adjust.
2157 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2158 Delete.
2159 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2160 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2161 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2162 Remove declarations.
2163 (struct inferior) <set_tty, tty>: New methods.
2164 (struct inferior) <terminal>: Rename to ...
2165 (struct inferior) <m_terminal>: ... this and make private.
2166 * main.c (captured_main_1): Adjust.
2167 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2168 (mi_cmd_inferior_tty_show): Adjust.
2169 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2170 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2171
2172 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2173
2174 * configure.ac: Add --enable-libctf: handle --disable-static
2175 properly.
2176 * acinclude.m4: sinclude ../config/enable.m4.
2177 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2178 (LIBCTF): Substitute in.
2179 (CTF_DEPS): New, likewise.
2180 (CLIBS): libctf needs symbols from libbfd: move earlier.
2181 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2182 flags.
2183 * ctfread.c: Surround in ENABLE_LIBCTF.
2184 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2185 * configure: Regenerate.
2186 * config.in: Likewise.
2187
2188 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2189
2190 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2191
2192 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2193
2194 * inferior.h (struct inferior) <terminal>: Change type to
2195 gdb::unique_xmalloc_ptr<char>.
2196 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2197 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2198 field, adjust to unique pointer.
2199 (get_inferior_io_terminal): Adjust to unique pointer.
2200
2201 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2204 registers, not just the known core set of registers.
2205
2206 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2207
2208 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2209 fflags, frm, and fcsr registers.
2210 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2211 restore groups.
2212 (riscv_tdesc_unknown_reg): New function.
2213 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2214 tdesc_use_registers.
2215 * riscv-tdep.h (struct gdbarch_tdep): Add
2216 unknown_csrs_first_regnum, unknown_csrs_count,
2217 duplicate_fflags_regnum, duplicate_frm_regnum, and
2218 duplicate_fcsr_regnum fields.
2219
2220 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2221
2222 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2223 callback, use the callback (when not null) to help number unknown
2224 registers.
2225 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2226 (tdesc_use_registers): Add extra parameter to declaration.
2227
2228 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2231 in the file.
2232 (class riscv_pending_register_alias): Likewise.
2233 (riscv_register_feature::register_info): Change 'required_p' field
2234 to 'required', and change its type. Add 'check' member function.
2235 (riscv_register_feature::register_info::check): Define new member
2236 function.
2237 (riscv_xreg_feature): Change initialisation of 'required' field.
2238 (riscv_freg_feature): Likewise.
2239 (riscv_virtual_feature): Likewise.
2240 (riscv_csr_feature): Likewise.
2241 (riscv_check_tdesc_feature): Take extra parameter, the csr
2242 tdesc_feature, rewrite the function to use the new
2243 riscv_register_feature::register_info::check function.
2244 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2245
2246 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2247
2248 * features/Makefile: Remove all references to the deleted files
2249 below.
2250 * features/riscv/32bit-csr.c: Deleted.
2251 * features/riscv/32bit-csr.xml: Deleted.
2252 * features/riscv/64bit-csr.c: Deleted.
2253 * features/riscv/64bit-csr.xml: Deleted.
2254 * features/riscv/rebuild-csr-xml.sh: Deleted.
2255
2256 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2257
2258 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2259 whitespace error for declaration of names member variable.
2260 (struct riscv_register_feature): Add new prefer_first_name member
2261 variable, and fix whitespace error in declaration of registers.
2262 (riscv_xreg_feature): Initialize prefer_first_name field.
2263 (riscv_freg_feature): Likewise.
2264 (riscv_virtual_feature): Likewise.
2265 (riscv_csr_feature): Likewise.
2266 (riscv_register_name): Expand on comments. Remove register name
2267 modifications for CSR and virtual registers.
2268
2269 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2270
2271 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2272 errors.
2273
2274 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2275
2276 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2277 riscv-opc.h.
2278 (class riscv_pending_register_alias): New class.
2279 (riscv_check_tdesc_feature): Take vector of pending aliases and
2280 populate it as appropriate.
2281 (riscv_setup_register_aliases): Delete.
2282 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2283 to riscv_check_tdesc_feature in all cases. Use the vector to
2284 create the register aliases.
2285
2286 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2287
2288 * sol2-tdep.c (sol2_static_transform_name): Remove.
2289 (sol2_init_abi): Don't register it.
2290 * gdbarch.sh (static_transform_name): Remove.
2291 * gdbarch.c, gdbarch.h: Regenerate.
2292
2293 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2294 gdbarch_static_transform_name.
2295 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2296 * stabsread.c (define_symbol) <'X'>: Remove.
2297 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2298 handling.
2299 <'V'>: Likewise.
2300 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2301 <'S'>: Remove call to gdbarch_static_transform_name.
2302
2303 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2304
2305 * procfs.c (procfs_pre_trace): New function.
2306 (procfs_target::create_inferior): Pass it to fork_inferior.
2307
2308 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2309
2310 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2311 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2312 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2313 sol2-tdep.o, sparc-sol2-tdep.o.
2314 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2315 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2316 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2317 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2318
2319 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2320
2321 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2322 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2323 Call sol2_init_abi.
2324 Remove calls to set_gdbarch_skip_solib_resolver,
2325 set_gdbarch_core_pid_to_str.
2326 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2327 (i386_sol2_static_transform_name): Remove.
2328 (i386_sol2_init_abi): Call sol2_init_abi.
2329 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2330 set_gdbarch_static_transform_name,
2331 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2332 Use sol2_sigtramp_p.
2333 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2334 (sol2_sigtramp_p): New function.
2335 (sol2_static_transform_name): New function.
2336 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2337 (sol2_init_abi): New function.
2338 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2339 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2340 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2341 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2342 (sparc_sol2_static_transform_name): Remove.
2343 (sparc32_sol2_init_abi): Call sol2_init_abi.
2344 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2345 set_gdbarch_static_transform_name,
2346 set_gdbarch_skip_solib_resolver,
2347 set_gdbarch_core_pid_to_str.
2348 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2349 (sparc_sol2_static_transform_name): Remove
2350 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2351 call sol2_sigtramp_p.
2352 (sparc64_sol2_init_abi): Call sol2_init_abi.
2353 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2354 set_gdbarch_static_transform_name,
2355 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2356
2357 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2358
2359 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2360 * exec.c (validate_exec_file): If from_tty, set both
2361 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2362 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2363 and from_tty, unconditionally ask a confirmation.
2364
2365 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2366
2367 * target-descriptions.c (tdesc_architecture_name): Protect against
2368 NULL pointer dereference.
2369 (maint_print_xml_tdesc_cmd): New function.
2370 (_initialize_target_descriptions): Register new 'maint print
2371 xml-tdesc' command and give it the filename completer.
2372 * NEWS: Mention new 'maint print xml-tdesc' command.
2373
2374 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 * target-descriptions.c (class tdesc_compatible_info): New class.
2377 (struct target_desc): Change type of compatible vector.
2378 (tdesc_compatible_p): Update for change in type of
2379 target_desc::compatible.
2380 (tdesc_compatible_info_list): New function.
2381 (tdesc_compatible_info_arch_name): New function.
2382 (tdesc_add_compatible): Update for change in type of
2383 target_desc::compatible.
2384 (print_c_tdesc::visit_pre): Likewise.
2385
2386 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2389 whitespace to underscore.
2390 (maint_print_c_tdesc_cmd): Use fake filename for target
2391 descriptions that came from the target.
2392 (_initialize_target_descriptions): Add filename command completion
2393 for 'maint print c-tdesc'.
2394
2395 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2396
2397 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2398 lines.
2399
2400 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2401
2402 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2403 lines.
2404 (dwarf2_find_location_expression): Likewise.
2405 (call_site_parameter_matches): Likewise.
2406 (dwarf2_compile_expr_to_ax): Likewise.
2407 (disassemble_dwarf_expression): Likewise.
2408 (loclist_describe_location): Likewise.
2409
2410 2020-06-23 Pedro Alves <palves@redhat.com>
2411
2412 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2413 progspace-and-thread.h. Include scoped-mock-context.h instead.
2414 (register_to_value_test): Use scoped_mock_context.
2415 * regcache.c: Include "scoped-mock-context.h".
2416 (cooked_read_test): Don't error out if a target is already pushed.
2417 Use scoped_mock_context. Adjust.
2418 * scoped-mock-context.h: New file.
2419
2420 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2421
2422 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2423 initializer.
2424 (ada_language::is_string_type_p): New member function.
2425 * c-lang.c (c_language_data): Delete la_is_string_type_p
2426 initializer.
2427 (cplus_language_data): Likewise.
2428 (asm_language_data): Likewise.
2429 (minimal_language_data): Likewise.
2430 * d-lang.c (d_language_data): Likewise.
2431 * f-lang.c (f_is_string_type_p): Delete function, implementation
2432 moved to f_language::is_string_type_p.
2433 (f_language_data): Delete la_is_string_type_p initializer.
2434 (f_language::is_string_type_p): New member function,
2435 implementation from f_is_string_type_p.
2436 * go-lang.c (go_is_string_type_p): Delete function, implementation
2437 moved to go_language::is_string_type_p.
2438 (go_language_data): Delete la_is_string_type_p initializer.
2439 (go_language::is_string_type_p): New member function,
2440 implementation from go_is_string_type_p.
2441 * language.c (language_defn::is_string_type_p): Define new member
2442 function.
2443 (default_is_string_type_p): Make static, add comment copied from
2444 header file.
2445 (unknown_language_data): Delete la_is_string_type_p initializer.
2446 (unknown_language::is_string_type_p): New member function.
2447 (auto_language_data): Delete la_is_string_type_p initializer.
2448 (auto_language::is_string_type_p): New member function.
2449 * language.h (language_data): Delete la_is_string_type_p field.
2450 (language_defn::is_string_type_p): Declare new function.
2451 (default_is_string_type_p): Delete desclaration, move comment to
2452 definition.
2453 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2454 moved to m2_language::is_string_type_p.
2455 (m2_language_data): Delete la_is_string_type_p initializer.
2456 (m2_language::is_string_type_p): New member function,
2457 implementation from m2_is_string_type_p.
2458 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2459 initializer.
2460 * opencl-lang.c (opencl_language_data): Likewise.
2461 * p-lang.c (pascal_is_string_type_p): Delete function,
2462 implementation moved to pascal_language::is_string_type_p.
2463 (pascal_language_data): Delete la_is_string_type_p initializer.
2464 (pascal_language::is_string_type_p): New member function,
2465 implementation from pascal_is_string_type_p.
2466 * rust-lang.c (rust_is_string_type_p): Delete function,
2467 implementation moved to rust_language::is_string_type_p.
2468 (rust_language_data): Delete la_is_string_type_p initializer.
2469 (rust_language::is_string_type_p): New member function,
2470 implementation from rust_is_string_type_p.
2471 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2472 is_string_type_p.
2473
2474 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2475
2476 * ada-lang.c (ada_language_data): Delete la_print_typedef
2477 initializer.
2478 (ada_language::print_typedef): New member function.
2479 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2480 (cplus_language_data): Likewise.
2481 (asm_language_data): Likewise.
2482 (minimal_language_data): Likewise.
2483 * d-lang.c (d_language_data): Likewise.
2484 * f-lang.c (f_language_data): Likewise.
2485 (f_language::print_typedef): New member function.
2486 * go-lang.c (go_language_data): Delete la_print_typedef
2487 initializer.
2488 * language.c (language_defn::print_typedef): Define member
2489 function.
2490 (unknown_language_data): Delete la_print_typedef initializer.
2491 (unknown_language::print_typedef): New member function.
2492 (auto_language_data): Delete la_print_typedef initializer.
2493 (auto_language::print_typedef): New member function.
2494 * language.h (language_data): Delete la_print_typedef field.
2495 (language_defn::print_typedef): Declare new member function.
2496 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2497 (default_print_typedef): Delete declaration.
2498 * m2-lang.c (m2_language_data): Delete la_print_typedef
2499 initializer.
2500 (m2_language::print_typedef): New member function.
2501 * objc-lang.c (objc_language_data): Delete la_print_typedef
2502 initializer.
2503 * opencl-lang.c (opencl_language_data): Likewise.
2504 * p-lang.c (pascal_language_data): Likewise.
2505 (pascal_language::print_typedef): New member function.
2506 * rust-lang.c (rust_print_typedef): Delete function,
2507 implementation moved to rust_language::print_typedef.
2508 (rust_language): Delete la_print_typedef initializer.
2509 (rust_language::print_typedef): New member function,
2510 implementation from rust_print_typedef.
2511 * typeprint.c (default_print_typedef): Delete.
2512
2513 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2514
2515 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2516 (ada_language::printstr): New member function.
2517 * c-lang.c (c_language_data): Delete la_printstr initializer.
2518 (cplus_language_data): Likewise.
2519 (asm_language_data): Likewise.
2520 (minimal_language_data): Likewise.
2521 * d-lang.c (d_language_data): Likewise.
2522 * f-lang.c (f_printstr): Rename to f_language::printstr.
2523 (f_language_data): Delete la_printstr initializer.
2524 (f_language::printstr): New member function, implementation from
2525 f_printstr.
2526 * go-lang.c (go_language_data): Delete la_printstr initializer.
2527 * language.c (language_defn::printstr): Define new member
2528 function.
2529 (unk_lang_printstr): Delete.
2530 (unknown_language_data): Delete la_printstr initializer.
2531 (unknown_language::printstr): New member function.
2532 (auto_language_data): Delete la_printstr initializer.
2533 (auto_language::printstr): New member function.
2534 * language.h (language_data): Delete la_printstr field.
2535 (language_defn::printstr): Declare new member function.
2536 (LA_PRINT_STRING): Update call to printstr.
2537 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2538 (m2_language_data): Delete la_printstr initializer.
2539 (m2_language::printstr): New member function, implementation from
2540 m2_printstr.
2541 * objc-lang.c (objc_language_data): Delete la_printstr
2542 initializer.
2543 * opencl-lang.c (opencl_language_data): Likewise.
2544 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2545 (pascal_language_data): Delete la_printstr initializer.
2546 (pascal_language::printstr): New member function, implementation
2547 from pascal_printstr.
2548 * p-lang.h (pascal_printstr): Delete declaration.
2549 * rust-lang.c (rust_printstr): Update header comment.
2550 (rust_language_data): Delete la_printstr initializer.
2551 (rust_language::printstr): New member function.
2552
2553 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2554
2555 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2556 (ada_language::printchar): New member function.
2557 * c-lang.c (c_language_data): Delete la_printchar initializer.
2558 (cplus_language_data): Likewise.
2559 (asm_language_data): Likewise.
2560 (minimal_language_data): Likewise.
2561 * d-lang.c (d_language_data): Likewise.
2562 * f-lang.c (f_printchar): Rename to f_language::printchar.
2563 (f_language_data): Delete la_printchar initializer.
2564 (f_language::printchar): New member function, implementation from
2565 f_printchar.
2566 * go-lang.c (go_language_data): Delete la_printchar initializer.
2567 * language.c (unk_lang_printchar): Delete.
2568 (language_defn::printchar): Define new member function.
2569 (unknown_language_data): Delete la_printchar initializer.
2570 (unknown_language::printchar): New member function.
2571 (auto_language_data): Delete la_printchar initializer.
2572 (auto_language::printchar): New member function.
2573 * language.h (language_data): Delete la_printchar field.
2574 (language_defn::printchar): Declare new member function.
2575 (LA_PRINT_CHAR): Update call to printchar.
2576 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2577 (m2_language::printchar): New member function.
2578 * objc-lang.c (objc_language_data): Delete la_printchar
2579 initializer.
2580 * opencl-lang.c (opencl_language_data): Likewise.
2581 * p-lang.c (pascal_language_data): Delete la_printchar
2582 initializer.
2583 (pascal_language::printchar): New member function.
2584 * rust-lang.c (rust_printchar): Rename to
2585 rust_language::printchar.
2586 (rust_language_data): Delete la_printchar initializer.
2587 (rust_language::printchar): New member function, implementation
2588 from rust_printchar.
2589
2590 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2591
2592 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2593 (ada_language_data): Delete la_emitchar initializer.
2594 (ada_language::emitchar): New member function, implementation from
2595 emit_char.
2596 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2597 (cplus_language_data): Likewise.
2598 (asm_language_data): Likewise.
2599 (minimal_language_data): Likewise.
2600 * d-lang.c (d_language_data): Likewise.
2601 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2602 (f_language_data): Delete la_emitchar initializer.
2603 (f_language::emitchar): New member function, implementation from
2604 f_emit_char.
2605 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2606 * language.c (unk_lang_emit_char): Delete.
2607 (language_defn::emitchar): New member function definition.
2608 (unknown_language_data): Delete la_emitchar initializer.
2609 (unknown_language::emitchar): New member function.
2610 (auto_language_data): Delete la_emitchar initializer.
2611 (auto_language::emitchar): New member function.
2612 * language.h (language_data): Delete la_emitchar field.
2613 (language_defn::emitchar): New member field declaration.
2614 (LA_EMIT_CHAR): Update call to emitchar.
2615 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2616 (m2_language_data): Delete la_emitchar initializer.
2617 (m2_language::emitchar): New member function, implementation from
2618 m2_emit_char.
2619 * objc-lang.c (objc_language_data): Delete la_emitchar
2620 initializer.
2621 * opencl-lang.c (opencl_language_data): Likewise.
2622 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2623 (pascal_language_data): Delete la_emitchar initializer.
2624 (pascal_language::emitchar): New member function, implementation
2625 from pascal_emit_char.
2626 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2627 (rust_language_data): Delete la_emitchar initializer.
2628 (rust_language::emitchar): New member function, implementation
2629 from rust_emitchar.
2630
2631 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2634 (ada_language_data): Delete la_post_parser initializer.
2635 (ada_language::post_parser): New member function.
2636 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2637 (cplus_language_data): Likewise.
2638 (asm_language_data): Likewise.
2639 (minimal_language_data): Likewise.
2640 * d-lang.c (d_language_data): Likewise.
2641 * f-lang.c (f_language_data): Likewise.
2642 * go-lang.c (go_language_data): Likewise.
2643 * language.c (unknown_language_data): Likewise.
2644 (auto_language_data): Likewise.
2645 * language.h (language_data): Delete la_post_parser field.
2646 (language_defn::post_parser): New member function.
2647 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2648 * objc-lang.c (objc_language_data): Likewise.
2649 * opencl-lang.c (opencl_language_data): Likewise.
2650 * p-lang.c (pascal_language_data): Likewise.
2651 * parse.c (parse_exp_in_context): Update call to post_parser.
2652 (null_post_parser): Delete definition.
2653 * parser-defs.h (null_post_parser): Delete declaration.
2654 * rust-lang.c (rust_language_data): Delete la_post_parser
2655 initializer.
2656
2657 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * ada-lang.c (parse): Rename to ada_language::parser.
2660 (ada_language_data): Delete la_parser initializer.
2661 (ada_language::parser): New member function, implementation from
2662 parse.
2663 * c-lang.c (c_language_data): Delete la_parser initializer.
2664 (cplus_language_data): Likewise.
2665 (asm_language_data): Likewise.
2666 (minimal_language_data): Likewise.
2667 * d-lang.c (d_language_data): Likewise.
2668 (d_language::parser): New member function.
2669 * f-lang.c (f_language_data): Delete la_parser initializer.
2670 (f_language::parser): New member function.
2671 * go-lang.c (go_language_data): Delete la_parser initializer.
2672 (go_language::parser): New member function.
2673 * language.c (unk_lang_parser): Delete.
2674 (language_defn::parser): Define new member function.
2675 (unknown_language_data): Delete la_parser initializer.
2676 (unknown_language::parser): New member function.
2677 (auto_language_data): Delete la_parser initializer.
2678 (auto_language::parser): New member function.
2679 * language.h (language_data): Delete la_parser field.
2680 (language_defn::parser): Declare new member function.
2681 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2682 (m2_language::parser): New member function.
2683 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2684 * opencl-lang.c (opencl_language_data): Likewise.
2685 * p-lang.c (pascal_language_data): Likewise.
2686 (pascal_language::parser): New member function.
2687 * parse.c (parse_exp_in_context): Update call to parser.
2688 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2689 (rust_language::parser): New member function.
2690
2691 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2692
2693 * top.c (print_gdb_configuration): Print --with-python-libdir
2694 configuration value.
2695
2696 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2697
2698 * NEWS: Mention change to the alias command.
2699
2700 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2701
2702 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2703 (alias_command_completer)
2704 (make_alias_options_def_group): New functions.
2705 (alias_opts, alias_option_defs): New struct and array.
2706 (alias_usage_error): Update usage.
2707 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2708 Use option framework.
2709 (_initialize_cli_cmds): Update alias command help.
2710 Update aliases command help.
2711 (show_user):
2712 Add NULL for new default_args lookup_cmd argument.
2713 (valid_command_p): Rename to validate_aliased_command.
2714 Add NULL for new default_args lookup_cmd argument. Verify that the
2715 aliased_command has no default args.
2716 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2717 (lookup_cmd_1, lookup_cmd): New argument default_args.
2718 (add_alias_cmd):
2719 Add NULL for new default_args lookup_cmd argument.
2720 (print_help_for_command): Show default args under the layout
2721 alias some_alias = some_aliased_cmd some_alias_default_arg.
2722 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2723 xfree default_args in destructor.
2724 * cli/cli-script.c (process_next_line, do_define_command):
2725 Add NULL for new default_args lookup_cmd argument.
2726 * command.h: Declare new default_args argument in lookup_cmd
2727 and lookup_cmd_1.
2728 * completer.c (complete_line_internal_1):
2729 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2730 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2731 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2732 Likewise.
2733 * infcmd.c (_initialize_infcmd): Likewise.
2734 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2735 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2736 * python/py-param.c (add_setshow_generic): Likewise.
2737 * remote.c (_initialize_remote): Likewise.
2738 * top.c (execute_command): Prepend default_args if command has some.
2739 (set_verbose):
2740 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2741 * tracepoint.c (validate_actionline, encode_actions_1):
2742 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2743
2744 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2745
2746 * jit.c (jit_read_descriptor): Use bool as the return type.
2747 (jit_breakpoint_re_set_internal): Use bool as the return type.
2748 Invert the return value logic; return true if the jit breakpoint
2749 has been successfully initialized.
2750 (jit_inferior_init): Update the call to
2751 jit_breakpoint_re_set_internal.
2752
2753 2020-06-22 Pedro Alves <palves@redhat.com>
2754
2755 PR gdb/25939
2756 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2757 Use the current inferior instead. Don't return
2758 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2759 wait again.
2760 * sol-thread.c (sol_thread_target::wait): Don't reference
2761 inferior_ptid.
2762 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2763 (sol_update_thread_list_callback): Use the current inferior's pid
2764 instead of inferior_ptid.
2765
2766 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2767
2768 * procfs.c: Cleanup many comments.
2769
2770 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2771 (AFTER_WATCHFLAG): Replace by value.
2772
2773 (MAIN_PROC_NAME_FORMAT): Inline ...
2774 (create_procinfo): ... here.
2775
2776 (procfs_debug_inferior): Remove SYS_exec handling.
2777 (syscall_is_exec): Likewise.
2778 (procfs_set_exec_trap): Likewise.
2779
2780 (syscall_is_lwp_exit): Inline in callers.
2781 (syscall_is_exit): Likewise.
2782 (syscall_is_exec): Likewise.
2783 (syscall_is_lwp_create): Likewise.
2784
2785 (invalidate_cache): Remove #if 0 code.
2786
2787 (make_signal_thread_runnable): Remove.
2788 (procfs_target::resume): Remove #if 0 code.
2789
2790 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2791
2792 PR gdb/25939
2793 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2794 call ...
2795 (procfs_target::create_inferior): ... here.
2796
2797 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2798
2799 * exec.c (validate_exec_file): Ensure the build-id is up to
2800 date by calling reopen_exec_file (that checks file timestamp
2801 to decide to re-read the file).
2802
2803 2020-06-18 Pedro Alves <palves@redhat.com>
2804
2805 PR gdb/25412
2806 * gdbthread.h (delete_thread, delete_thread_silent)
2807 (find_thread_ptid): Update comments.
2808 * thread.c (current_thread_): New global.
2809 (is_current_thread): Move higher, and reimplement.
2810 (inferior_thread): Reimplement.
2811 (set_thread_exited): Use bool. Add assertions.
2812 (add_thread_silent): Simplify thread-reuse handling by always
2813 calling delete_thread.
2814 (delete_thread): Remove intro comment.
2815 (find_thread_ptid): Skip exited threads.
2816 (switch_to_thread_no_regs): Write to current_thread_.
2817 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2818 INFERIOR_PTID. Clear current_thread_.
2819
2820 2020-06-18 Pedro Alves <palves@redhat.com>
2821
2822 * aix-thread.c (pd_update): Use switch_to_thread.
2823
2824 2020-06-18 Pedro Alves <palves@redhat.com>
2825
2826 * ravenscar-thread.c (ravenscar_thread_target): Update.
2827 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2828 (ravenscar_thread_target::add_active_thread): ... this. Don't
2829 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2830 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2831
2832 2020-06-18 Pedro Alves <palves@redhat.com>
2833
2834 * nat/windows-nat.c (current_windows_thread): Remove.
2835 * nat/windows-nat.h (current_windows_thread): Remove.
2836 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2837 Adjust.
2838 (display_selectors): Adjust to fetch the current
2839 windows_thread_info based on inferior_ptid.
2840 (fake_create_process): No longer write to current_windows_thread.
2841 (windows_nat_target::get_windows_debug_event):
2842 Don't set inferior_ptid or current_windows_thread.
2843 (windows_nat_target::wait): Adjust to not rely on
2844 current_windows_thread.
2845 (do_initial_windows_stuff): Now a method of windows_nat_target.
2846 Switch to the last_ptid thread.
2847 (windows_nat_target::attach): Adjust.
2848 (windows_nat_target::detach): Use switch_to_no_thread instead of
2849 writing to inferior_ptid directly.
2850 (windows_nat_target::create_inferior): Adjust.
2851
2852 2020-06-18 Pedro Alves <palves@redhat.com>
2853
2854 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2855
2856 2020-06-18 Pedro Alves <palves@redhat.com>
2857
2858 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2859 after creating it, instead of writing to inferior_ptid. Don't
2860 write to inferior_ptid.
2861
2862 2020-06-18 Pedro Alves <palves@redhat.com>
2863
2864 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2865
2866 2020-06-18 Pedro Alves <palves@redhat.com>
2867
2868 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2869 it, instead of writing to inferior_ptid.
2870
2871 2020-06-18 Pedro Alves <palves@redhat.com>
2872
2873 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2874 to inferior_ptid.
2875
2876 2020-06-18 Pedro Alves <palves@redhat.com>
2877
2878 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2879 instead of writing to inferior_ptid directly.
2880
2881 2020-06-18 Pedro Alves <palves@redhat.com>
2882
2883 * corelow.c (core_target::close): Use switch_to_no_thread instead
2884 of writing to inferior_ptid directly.
2885 (add_to_thread_list, core_target_open): Use switch_to_thread
2886 instead of writing to inferior_ptid directly.
2887
2888 2020-06-18 Pedro Alves <palves@redhat.com>
2889
2890 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2891 inferior_ptid.
2892 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2893 inferior_ptid.
2894 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2895 inferior_ptid directly.
2896 (darwin_nat_target::init_thread_list): Switch to thread, instead
2897 of writing to inferior_ptid.
2898 (darwin_nat_target::attach): Don't write to inferior_ptid.
2899 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2900
2901 2020-06-18 Pedro Alves <palves@redhat.com>
2902
2903 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2904 thread.
2905 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2906 Instead use switch_to_thread.
2907 (gnu_nat_target::detach): Use switch_to_no_thread
2908 instead of writing to inferior_ptid directly. Used passed-in
2909 inferior instead of looking up the inferior by pid.
2910
2911 2020-06-18 Pedro Alves <palves@redhat.com>
2912
2913 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2914 inferior_ptid.
2915
2916 2020-06-18 Pedro Alves <palves@redhat.com>
2917
2918 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2919 inferior_ptid.
2920 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2921 thread.
2922 (nto_procfs_target::detach): Avoid referencing
2923 inferior_ptid. Use switch_to_no_thread instead of writing to
2924 inferior_ptid directly.
2925 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2926 instead of writing to inferior_ptid directly.
2927 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2928 to thread.
2929
2930 2020-06-18 Pedro Alves <palves@redhat.com>
2931
2932 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2933 after creating it, instead of writing to inferior_ptid.
2934 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2935 to inferior_ptid directly.
2936 (gdbsim_target::wait): Don't write to inferior_ptid.
2937
2938 2020-06-18 Pedro Alves <palves@redhat.com>
2939
2940 * remote.c (remote_target::remote_notice_new_inferior): Use
2941 switch_to_thread instead of writing to inferior_ptid directly.
2942 (remote_target::add_current_inferior_and_thread): Use
2943 switch_to_no_thread instead of writing to inferior_ptid directly.
2944 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2945 and switch_to_thread instead of using set_current_inferior or
2946 writing to inferior_ptid directly.
2947
2948 2020-06-18 Pedro Alves <palves@redhat.com>
2949
2950 * tracectf.c (ctf_target_open): Switch to added thread instead of
2951 writing to inferior_ptid directly.
2952 (ctf_target::close): Use switch_to_no_thread instead of writing to
2953 inferior_ptid directly.
2954
2955 2020-06-18 Pedro Alves <palves@redhat.com>
2956
2957 * tracefile-tfile.c (tfile_target_open): Don't write to
2958 inferior_ptid directly, instead switch to added thread.
2959 (tfile_target::close): Use switch_to_no_thread instead of writing
2960 to inferior_ptid directly.
2961
2962 2020-06-18 Pedro Alves <palves@redhat.com>
2963
2964 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2965 (procfs_target::detach): Use switch_to_no_thread
2966 instead of writing to inferior_ptid directly.
2967 (do_attach): Change return type to void. Switch to the added
2968 thread.
2969 (procfs_target::create_inferior): Switch to the added thread.
2970 (procfs_do_thread_registers): Don't write to inferior_ptid.
2971
2972 2020-06-18 Pedro Alves <palves@redhat.com>
2973
2974 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2975 of writing to inferior_ptid.
2976 (scoped_restore_exited_inferior): Delete.
2977 (handle_vfork_child_exec_or_exit): Simplify using
2978 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2979 instead of writing to inferior_ptid.
2980 (THREAD_STOPPED_BY): Delete.
2981 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2982 (thread_stopped_by_hw_breakpoint): Delete.
2983 (save_waitstatus): Use
2984 scoped_restore_current_thread+switch_to_thread, and call
2985 target_stopped_by_watchpoint instead of
2986 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2987 instead of thread_stopped_by_sw_breakpoint, and
2988 target_stopped_by_hw_breakpoint instead of
2989 thread_stopped_by_hw_breakpoint.
2990 (handle_inferior_event)
2991 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2992 inferior_ptid directly, nor
2993 set_current_inferior/set_current_program_space. Use
2994 switch_to_thread / switch_to_inferior_no_thread instead.
2995
2996 2020-06-18 Pedro Alves <palves@redhat.com>
2997
2998 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2999 instead of writing to inferior_ptid.
3000
3001 2020-06-18 Pedro Alves <palves@redhat.com>
3002
3003 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3004 added thread.
3005 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3006 to the added thread.
3007 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3008 instead of writing to inferior_ptid.
3009
3010 2020-06-18 Pedro Alves <palves@redhat.com>
3011
3012 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3013 (register_to_value_test): Mock a program_space too. Heap-allocate
3014 the address space. Don't write to inferior_ptid. Use
3015 switch_to_thread instead.
3016
3017 2020-06-18 Pedro Alves <palves@redhat.com>
3018
3019 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3020 Delete.
3021 (find_signalled_thread()): New, factored out from
3022 linux_make_corefile_notes and adjusted to handle exited threads.
3023 (linux_make_corefile_notes): Adjust to use the new
3024 find_signalled_thread.
3025
3026 2020-06-18 Pedro Alves <palves@redhat.com>
3027
3028 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3029 of saving/restoring inferior_ptid.
3030
3031 2020-06-17 Tom Tromey <tom@tromey.com>
3032
3033 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3034 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3035 declare.
3036 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3037
3038 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3041 of partial symtabs.
3042
3043 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * regformats/reg-arm.dat: Remove.
3046 * regformats/reg-bfin.dat: Remove.
3047 * regformats/reg-cris.dat: Remove.
3048 * regformats/reg-crisv32.dat: Remove.
3049 * regformats/reg-m32r.dat: Remove.
3050 * regformats/reg-tilegx.dat: Remove.
3051 * regformats/reg-tilegx32.dat: Remove.
3052
3053 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3054
3055 * features/Makefile (WHICH): Remove arm files.
3056 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3057 * regformats/arm/arm-with-neon.dat: Remove.
3058 * regformats/arm/arm-with-vfpv2.dat: Remove.
3059 * regformats/arm/arm-with-vfpv3.dat: Remove.
3060
3061 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3062
3063 * features/Makefile (XMLTOC): Remove rx.xml.
3064
3065 2020-06-17 Pedro Alves <palves@redhat.com>
3066
3067 * gdbthread.h (thread_control_state) <trap_expected> Update
3068 comments.
3069
3070 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3071
3072 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3073 ada_language::lookup_symbol_nonlocal.
3074 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3075 (ada_language::lookup_symbol_nonlocal): New member function,
3076 implementation from ada_lookup_symbol_nonlocal.
3077 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3078 initializer.
3079 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3080 initializer.
3081 (cplus_language::lookup_symbol_nonlocal): New member function.
3082 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3083 (minimal_language_data) Likewise.
3084 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3085 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3086 initializer.
3087 (d_language::lookup_symbol_nonlocal): New member function.
3088 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3089 initializer.
3090 (f_language::lookup_symbol_nonlocal): New member function.
3091 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3092 initializer.
3093 * language.c (unknown_language_data): Likewise.
3094 (auto_language_data): Likewise.
3095 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3096 field.
3097 (language_defn::lookup_symbol_nonlocal): New member function.
3098 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3099 initializer.
3100 * objc-lang.c (objc_language_data): Likewise.
3101 * opencl-lang.c (opencl_language_data): Likewise.
3102 * p-lang.c (pascal_language_data): Likewise.
3103 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3104 rust_language::lookup_symbol_nonlocal.
3105 (rust_language_data): Delete la_lookup_symbol_nonlocal
3106 initializer.
3107 (rust_language::lookup_symbol_nonlocal): New member function,
3108 implementation from rust_lookup_symbol_nonlocal.
3109 * symtab.c (lookup_symbol_aux): Update call to
3110 lookup_symbol_nonlocal.
3111 (basic_lookup_symbol_nonlocal): Rename to...
3112 (language_defn::lookup_symbol_nonlocal): ...this, and update
3113 header comment. Remove language_defn parameter, and replace with
3114 uses of `this'.
3115 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3116
3117 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3118
3119 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3120 initializer.
3121 (ada_language::value_print_inner): New member function.
3122 * c-lang.c (c_language_data): Delete la_value_print_inner
3123 initializer.
3124 (cplus_language_data): Likewise.
3125 (asm_language_data): Likewise.
3126 (minimal_language_data): Likewise.
3127 * d-lang.c (d_language_data): Likewise.
3128 (d_language::value_print_inner): New member function.
3129 * f-lang.c (f_language_data): Delete la_value_print_inner
3130 initializer.
3131 (f_language::value_print_inner): New member function.
3132 * f-lang.h (f_value_print_innner): Rename to...
3133 (f_value_print_inner): ...this (note spelling of 'inner').
3134 * f-valprint.c (f_value_print_innner): Rename to...
3135 (f_value_print_inner): ...this (note spelling of 'inner').
3136 * go-lang.c (go_language_data): Delete la_value_print_inner
3137 initializer.
3138 (go_language::value_print_inner): New member function.
3139 * language.c (language_defn::value_print_inner): Define new member
3140 function.
3141 (unk_lang_value_print_inner): Delete.
3142 (unknown_language_data): Delete la_value_print_inner initializer.
3143 (unknown_language::value_print_inner): New member function.
3144 (auto_language_data): Delete la_value_print_inner initializer.
3145 (auto_language::value_print_inner): New member function.
3146 * language.h (language_data): Delete la_value_print_inner field.
3147 (language_defn::value_print_inner): Delcare new member function.
3148 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3149 initializer.
3150 (m2_language::value_print_inner): New member function.
3151 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3152 initializer.
3153 * opencl-lang.c (opencl_language_data): Likewise.
3154 * p-lang.c (pascal_language_data): Likewise.
3155 (pascal_language::value_print_inner): New member function.
3156 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3157 initializer.
3158 (rust_language::value_print_inner): New member function.
3159 * valprint.c (do_val_print): Update call to value_print_inner.
3160
3161 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3162
3163 * ada-lang.c (ada_language_data): Delete la_value_print
3164 initializer.
3165 (ada_language::value_print): New member function.
3166 * c-lang.c (c_language_data): Delete la_value_print initializer.
3167 (cplus_language_data): Likewise.
3168 (asm_language_data): Likewise.
3169 (minimal_language_data): Likewise.
3170 * d-lang.c (d_language_data): Likewise.
3171 * f-lang.c (f_language_data): Likewise.
3172 * go-lang.c (go_language_data): Likewise.
3173 * language.c (unk_lang_value_print): Delete.
3174 (language_defn::value_print): Define new member function.
3175 (unknown_language_data): Delete la_value_print initializer.
3176 (unknown_language::value_print): New member function.
3177 (auto_language_data): Delete la_value_print initializer.
3178 (auto_language::value_print): New member function.
3179 * language.h (language_data): Delete la_value_print field.
3180 (language_defn::value_print): Declare new member function.
3181 (LA_VALUE_PRINT): Update call to value_print.
3182 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3183 * objc-lang.c (objc_language_data): Likewise.
3184 * opencl-lang.c (opencl_language_data): Likewise.
3185 * p-lang.c (pascal_language_data): Likewise.
3186 (pascal_language::value_print): New member function.
3187 * rust-lang.c (rust_language_data): Delete la_value_print
3188 initializer.
3189
3190 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3191
3192 * ada-lang.c (ada_watch_location_expression): Rename to
3193 ada_language::watch_location_expression.
3194 (ada_language_data): Delete la_watch_location_expression
3195 initializer.
3196 (ada_language::watch_location_expression): New member function,
3197 implementation from ada_watch_location_expression.
3198 * breakpoint.c (watch_command_1): Update call to
3199 watch_location_expression.
3200 * c-lang.c (c_watch_location_expression): Rename to
3201 language_defn::watch_location_expression.
3202 (c_language_data): Delete la_watch_location_expression
3203 initializer.
3204 (cplus_language_data): Likewise.
3205 (asm_language_data): Likewise.
3206 (minimal_language_data): Likewise.
3207 * c-lang.h (c_watch_location_expression): Delete declaration.
3208 * d-lang.c (d_language_data): Delete la_watch_location_expression
3209 initializer.
3210 * f-lang.c (f_language_data): Likewise.
3211 * go-lang.c (go_language_data): Likewise.
3212 * language.c (language_defn::watch_location_expression): Member
3213 function implementation from c_watch_location_expression.
3214 (unknown_language_data): Delete la_watch_location_expression
3215 initializer.
3216 (auto_language_data): Likewise.
3217 * language.h (language_data): Delete la_watch_location_expression
3218 field.
3219 (language_defn::watch_location_expression): Declare new member
3220 function.
3221 * m2-lang.c (m2_language_data): Delete
3222 la_watch_location_expression initializer.
3223 * objc-lang.c (objc_language_data): Likewise.
3224 * opencl-lang.c (opencl_language_data): Likewise.
3225 * p-lang.c (pascal_language_data): Likewise.
3226 * rust-lang.c (rust_watch_location_expression): Rename to
3227 rust_language::watch_location_expression.
3228 (rust_language_data): Delete la_watch_location_expression
3229 initializer.
3230 (rust_language::watch_location_expression): New member function,
3231 implementation from rust_watch_location_expression.
3232
3233 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3234
3235 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3236 ada_language::collect_symbol_completion_matches.
3237 (ada_language_data): Delete la_collect_symbol_completion_matches
3238 initializer.
3239 (ada_language::collect_symbol_completion_matches): New member
3240 function, implementation from
3241 ada_collect_symbol_completion_matches.
3242 * c-lang.c (c_language_data): Delete
3243 la_collect_symbol_completion_matches initializer.
3244 (cplus_language_data): Likewise.
3245 (asm_language_data): Likewise.
3246 (minimal_language_data): Likewise.
3247 * d-lang.c (d_language_data): Likewise.
3248 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3249 f_language::collect_symbol_completion_matches.
3250 (f_language_data): Delete la_collect_symbol_completion_matches
3251 initializer.
3252 (f_language::collect_symbol_completion_matches) New member
3253 function, implementation from f_collect_symbol_completion_matches.
3254 * go-lang.c (go_language_data): Delete
3255 la_collect_symbol_completion_matches initializer.
3256 * language.c (unknown_language_data): Likewise.
3257 (auto_language_data): Likewise.
3258 * language.h (language_data): Delete
3259 la_collect_symbol_completion_matches field.
3260 (language_defn::collect_symbol_completion_matches): New member
3261 function.
3262 * m2-lang.c (m2_language_data): Delete
3263 la_collect_symbol_completion_matches initializer.
3264 * objc-lang.c (objc_language_data): Likewise.
3265 * opencl-lang.c (opencl_language_data): Likewise.
3266 * p-lang.c (pascal_language_data): Likewise.
3267 * rust-lang.c (rust_language_data): Likewise.
3268 * symtab.c (default_collect_symbol_completion_matches): Delete.
3269 (collect_symbol_completion_matches): Update call to
3270 collect_symbol_completion_matches.
3271 (collect_symbol_completion_matches_type): Likewise.
3272 * symtab.h (default_collect_symbol_completion_matches): Delete
3273 declaration.
3274
3275 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3276
3277 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3278 (ada_language_data): Delete la_word_break_characters initializer.
3279 (ada_language::word_break_characters): New member function.
3280 * c-lang.c (c_language_data): Delete la_word_break_characters
3281 initializer.
3282 (cplus_language_data): Likewise.
3283 (asm_language_data): Likewise.
3284 (minimal_language_data): Likewise.
3285 * completer.c: Update global comment.
3286 (advance_to_expression_complete_word_point): Update call to
3287 word_break_characters.
3288 (complete_files_symbols): Likewise.
3289 (complete_line_internal_1): Likewise.
3290 (default_completer_handle_brkchars): Likewise.
3291 (skip_quoted_chars): Likewise.
3292 * d-lang.c (d_language_data): Delete la_word_break_characters
3293 initializer.
3294 * f-lang.c (f_word_break_characters): Delete.
3295 (f_language_data): Delete la_word_break_characters initializer.
3296 (f_language::word_break_characters): New member function.
3297 * go-lang.c (go_language_data): Delete la_word_break_characters
3298 initializer.
3299 * language.c (unknown_language_data): Likewise.
3300 (auto_language_data): Likewise.
3301 * language.h (default_word_break_characters): Move declaration to
3302 earlier in the file.
3303 (language_data): Delete la_word_break_characters field.
3304 (language_defn::word_break_characters): New member function.
3305 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3306 initializer.
3307 * objc-lang.c (objc_language_data): Likewise.
3308 * opencl-lang.c (opencl_language_data): Likewise.
3309 * p-lang.c (pascal_language_data): Likewise.
3310 * rust-lang.c (rust_language_data): Likewise.
3311
3312 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3313
3314 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3315 (ada_language_data): Delete la_get_symbol_name_matcher
3316 initializer.
3317 (language_defn::get_symbol_name_matcher_inner): New member
3318 function.
3319 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3320 initializer.
3321 (cplus_language_data): Likewise.
3322 (cplus_language::get_symbol_name_matcher_inner): New member
3323 function.
3324 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3325 (minimal_language_data): Likewise.
3326 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3327 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3328 initializer.
3329 * dictionary.c (iter_match_first_hashed): Update call to
3330 get_symbol_name_matcher.
3331 (iter_match_next_hashed): Likewise.
3332 (iter_match_next_linear): Likewise.
3333 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3334 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3335 initializer.
3336 (f_language::get_symbol_name_matcher_inner): New member function.
3337 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3338 initializer.
3339 * language.c (default_symbol_name_matcher): Update header comment,
3340 make static.
3341 (language_defn::get_symbol_name_matcher): New definition.
3342 (language_defn::get_symbol_name_matcher_inner): Likewise.
3343 (get_symbol_name_matcher): Delete.
3344 (unknown_language_data): Delete la_get_symbol_name_matcher
3345 initializer.
3346 (auto_language_data): Likewise.
3347 * language.h (language_data): Delete la_get_symbol_name_matcher
3348 field.
3349 (language_defn::get_symbol_name_matcher): New member function.
3350 (language_defn::get_symbol_name_matcher_inner): Likewise.
3351 (default_symbol_name_matcher): Delete declaration.
3352 * linespec.c (find_methods): Update call to
3353 get_symbol_name_matcher.
3354 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3355 initializer.
3356 * minsyms.c (lookup_minimal_symbol): Update call to
3357 get_symbol_name_matcher.
3358 (iterate_over_minimal_symbols): Likewise.
3359 * objc-lang.c (objc_language_data): Delete
3360 la_get_symbol_name_matcher initializer.
3361 * opencl-lang.c (opencl_language_data): Likewise.
3362 * p-lang.c (pascal_language_data): Likewise.
3363 * psymtab.c (psymbol_name_matches): Update call to
3364 get_symbol_name_matcher.
3365 * rust-lang.c (rust_language_data): Delete
3366 la_get_symbol_name_matcher initializer.
3367 * symtab.c (symbol_matches_search_name): Update call to
3368 get_symbol_name_matcher.
3369 (compare_symbol_name): Likewise.
3370
3371 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3372
3373 * ada-lang.c (ada_language_data): Delete la_compute_program
3374 initializer.
3375 * c-lang.c (c_language_data): Likewise.
3376 (c_language::compute_program): New member function.
3377 (cplus_language_data): Delete la_compute_program initializer.
3378 (cplus_language::compute_program): New member function.
3379 (asm_language_data): Delete la_compute_program initializer.
3380 (minimal_language_data): Likewise.
3381 * c-lang.h (c_compute_program): Update comment.
3382 (cplus_compute_program): Likewise.
3383 * compile/compile-c-support.c (c_compute_program): Likewise.
3384 (cplus_compute_program): Likewise.
3385 * compile/compile.c (compile_to_object): Update call to
3386 la_compute_program.
3387 * d-lang.c (d_language_data): Delete la_compute_program
3388 initializer.
3389 * f-lang.c (f_language_data): Likewise.
3390 * go-lang.c (go_language_data): Likewise.
3391 * language.c (unknown_language_data): Likewise.
3392 (auto_language_data): Likewise.
3393 * language.h (language_data): Delete la_compute_program field.
3394 (language_defn::compute_program): New member function.
3395 * m2-lang.c (m2_language_data): Delete la_compute_program
3396 initializer.
3397 * objc-lang.c (objc_language_data): Likewise.
3398 * opencl-lang.c (opencl_language_data): Likewise.
3399 * p-lang.c (pascal_language_data): Likewise.
3400 * rust-lang.c (rust_language_data): Likewise.
3401
3402 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3403
3404 * ada-lang.c (ada_language_data) Delete
3405 la_class_name_from_physname initializer.
3406 * c-lang.c (c_language_data): Likewise.
3407 (cplus_language_data): Likewise.
3408 (cplus_language::class_name_from_physname): New member function.
3409 (asm_language_data): Delete la_class_name_from_physname
3410 initializer.
3411 (minimal_language_data): Likewise.
3412 * d-lang.c (d_language_data): Likewise.
3413 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3414 method on language_defn class.
3415 (guess_full_die_structure_name): Likewise.
3416 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3417 initializer.
3418 * go-lang.c (go_language_data): Likewise.
3419 * language.c (language_class_name_from_physname): Delete.
3420 (unk_lang_class_name): Delete.
3421 (unknown_language_data): Delete la_class_name_from_physname
3422 initializer.
3423 (auto_language_data): Likewise.
3424 * language.h (language_data): Delete la_class_name_from_physname
3425 field.
3426 (language_defn::class_name_from_physname): New function.
3427 (language_class_name_from_physname): Delete declaration.
3428 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3429 initializer.
3430 * objc-lang.c (objc_language_data): Likewise.
3431 * opencl-lang.c (opencl_language_data): Likewise.
3432 * p-lang.c (pascal_language_data): Likewise.
3433 * rust-lang.c (rust_language_data): Likewise.
3434
3435 2020-06-16 Tom Tromey <tom@tromey.com>
3436
3437 * tui/tui-data.h (STATUS_NAME): New macro.
3438 * tui/tui-layout.c (tui_remove_some_windows)
3439 (initialize_known_windows, tui_register_window)
3440 (tui_layout_split::remove_windows, initialize_layouts)
3441 (tui_new_layout_command): Don't use hard-coded window names.
3442
3443 2020-06-16 Tom Tromey <tom@tromey.com>
3444
3445 PR tui/25348:
3446 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3447 tui_initialize_readline. Only run once. Call rl_initialize.
3448 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3449 tui_initialize_readline.
3450 * tui/tui-io.c (tui_setup_io): Call
3451 tui_ensure_readline_initialized.
3452 * tui/tui-interp.c (tui_interp::init): Update.
3453
3454 2020-06-16 Tom Tromey <tom@tromey.com>
3455
3456 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3457 Also preserve the status window.
3458
3459 2020-06-16 Tom Tromey <tom@tromey.com>
3460
3461 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3462 where m_window==nullptr.
3463
3464 2020-06-15 Tom Tromey <tromey@adacore.com>
3465
3466 * windows-nat.c (windows_nat::handle_output_debug_string):
3467 Update.
3468 (windows_nat::handle_ms_vc_exception): Update.
3469 * target.h (target_read_string): Change API.
3470 * target.c (target_read_string): Change API.
3471 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3472 Update.
3473 * solib-frv.c (frv_current_sos): Update.
3474 * solib-dsbt.c (dsbt_current_sos): Update.
3475 * solib-darwin.c (darwin_current_sos): Update.
3476 * linux-thread-db.c (inferior_has_bug): Update.
3477 * expprint.c (print_subexp_standard): Update.
3478 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3479 (ada_exception_message_1): Update.
3480
3481 2020-06-15 Tom Tromey <tromey@adacore.com>
3482
3483 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3484
3485 2020-06-15 Tom Tromey <tromey@adacore.com>
3486
3487 * valprint.c (read_string): Update comment.
3488 * target.c (MIN): Remove.
3489 (target_read_string): Rewrite.
3490
3491 2020-06-15 Tom Tromey <tromey@adacore.com>
3492
3493 * corefile.c (read_memory_string): Remove.
3494 * ada-valprint.c (ada_value_print_ptr): Update.
3495 * ada-lang.h (ada_tag_name): Change return type.
3496 * ada-lang.c (type_from_tag): Update.
3497 (ada_tag_name_from_tsd): Change return type. Use
3498 target_read_string.
3499 (ada_tag_name): Likewise.
3500 * gdbcore.h (read_memory_string): Don't declare.
3501
3502 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3503
3504 * symtab.c (rbreak_command): Ignore Windows drive colon.
3505
3506 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3507
3508 * NEWS: Mention removed GDBserver host support.
3509
3510 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3511
3512 * features/riscv/rebuild-csr-xml.sh: Updated.
3513
3514 2020-06-11 Tom Tromey <tom@tromey.com>
3515
3516 PR gdb/18318:
3517 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3518
3519 2020-06-09 Jonny Grant <jg@jguk.org>
3520 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3521
3522 * main.c (captured_main_1): Don't print new line after help.
3523 (print_gdb_help): add mailing list and IRC channel information
3524 to --help. Add new lines between items in the footer. Remove
3525 quotes around bug url.
3526
3527 2020-06-11 Keith Seitz <keiths@redhat.com>
3528
3529 PR gdb/21356
3530 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3531 Resolve typedefs for type length calculations.
3532
3533 2020-06-10 Tom de Vries <tdevries@suse.de>
3534
3535 PR ada/24713
3536 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3537 (write_psymbols): Enable .gdb_index for ada.
3538 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3539 ada.
3540
3541 2020-06-10 Tom de Vries <tdevries@suse.de>
3542
3543 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3544 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3545 namei" instead of "const char *name" argument.
3546 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3547 dw2_symtab_iter_init.
3548
3549 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3550
3551 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3552 to use type::field and field::type instead.
3553
3554 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3555
3556 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3557 to use field::type instead.
3558
3559 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3560
3561 * gdbtypes.h (struct field) <type, set_type>: New methods.
3562 Rename `type` field to...
3563 <m_type>: ... this. Change references throughout to use type or
3564 set_type methods.
3565 (FIELD_TYPE): Use field::type. Change call sites that modify
3566 the field's type to use field::set_type instead.
3567
3568 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3569
3570 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3571 to use type::index_type instead.
3572
3573 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3574
3575 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3576 methods.
3577 (TYPE_INDEX_TYPE): Use type::index_type.
3578 * gdbtypes.c (create_array_type_with_stride): Likewise.
3579
3580 2020-06-07 Tom Tromey <tom@tromey.com>
3581
3582 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3583 parameter.
3584 (generic_value_print): Update.
3585
3586 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3587
3588 Revert commit 982a38f60b0.
3589 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3590
3591 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3592
3593 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3594 avoid use after free.
3595
3596 2020-06-05 Tom de Vries <tdevries@suse.de>
3597
3598 * NEWS: Fix typos.
3599
3600 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3601
3602 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3603 the per_bfd object.
3604 (dwarf2_read_debug_names): Likewise.
3605 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3606 object when re-using a per_bfd object with an index.
3607
3608 2020-06-03 Tom de Vries <tdevries@suse.de>
3609
3610 PR symtab/26046
3611 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3612 children for C++.
3613 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3614 DW_TAG_subprogram.
3615
3616 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3617
3618 * ada-lang.c (ada_language_data): Delete skip_trampoline
3619 initializer.
3620 * c-lang.c (c_language_data): Likewise.
3621 (cplus_language_data): Likewise.
3622 (cplus_language::skip_trampoline): New member function.
3623 (asm_language_data): Delete skip_trampoline initializer.
3624 (minimal_language_data): Likewise.
3625 * d-lang.c (d_language_data): Likewise.
3626 * f-lang.c (f_language_data): Likewise.
3627 * go-lang.c (go_language_data): Likewise.
3628 * language.c (unk_lang_trampoline): Delete function.
3629 (skip_language_trampoline): Update.
3630 (unknown_language_data): Delete skip_trampoline initializer.
3631 (auto_language_data): Likewise.
3632 * language.h (language_data): Delete skip_trampoline field.
3633 (language_defn::skip_trampoline): New function.
3634 * m2-lang.c (m2_language_data): Delete skip_trampoline
3635 initializer.
3636 * objc-lang.c (objc_skip_trampoline): Delete function, move
3637 implementation to objc_language::skip_trampoline.
3638 (objc_language_data): Delete skip_trampoline initializer.
3639 (objc_language::skip_trampoline): New member function with
3640 implementation from objc_skip_trampoline.
3641 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3642 initializer.
3643 * p-lang.c (pascal_language_data): Likewise.
3644 * rust-lang.c (rust_language_data): Likewise.
3645
3646 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3647
3648 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3649 (ada_language::demangle): New member function.
3650 * c-lang.c (c_language_data): Delete la_demangle initializer.
3651 (cplus_language_data): Delete la_demangle initializer.
3652 (cplus_language::demangle): New member function.
3653 (asm_language_data): Delete la_demangle initializer.
3654 (minimal_language_data): Delete la_demangle initializer.
3655 * d-lang.c (d_language_data): Delete la_demangle initializer.
3656 (d_language::demangle): New member function.
3657 * f-lang.c (f_language_data): Delete la_demangle initializer.
3658 (f_language::demangle): New member function.
3659 * go-lang.c (go_language_data): Delete la_demangle initializer.
3660 (go_language::demangle): New member function.
3661 * language.c (language_demangle): Update.
3662 (unk_lang_demangle): Delete.
3663 (unknown_language_data): Delete la_demangle initializer.
3664 (unknown_language::demangle): New member function.
3665 (auto_language_data): Delete la_demangle initializer.
3666 (auto_language::demangle): New member function.
3667 * language.h (language_data): Delete la_demangle field.
3668 (language_defn::demangle): New function.
3669 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3670 * objc-lang.c (objc_language_data): Delete la_demangle
3671 initializer.
3672 (objc_language::demangle): New member function.
3673 * opencl-lang.c (opencl_language_data): Delete la_demangle
3674 initializer.
3675 * p-lang.c (pascal_language_data): Likewise.
3676 * rust-lang.c (rust_language_data): Likewise.
3677 (rust_language::demangle): New member function.
3678
3679 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3680
3681 * ada-lang.c (ada_language_data): Delete la_print_type
3682 initializer.
3683 (ada_language::print_type): New member function.
3684 * c-lang.c (c_language_data): Delete la_print_type initializer.
3685 (c_language::print_type): New member function.
3686 (cplus_language_data): Delete la_print_type initializer.
3687 (cplus_language::print_type): New member function.
3688 (asm_language_data): Delete la_print_type initializer.
3689 (asm_language::print_type): New member function.
3690 (minimal_language_data): Delete la_print_type initializer.
3691 (minimal_language::print_type): New member function.
3692 * d-lang.c (d_language_data): Delete la_print_type initializer.
3693 (d_language::print_type): New member function.
3694 * f-lang.c (f_language_data): Delete la_print_type initializer.
3695 (f_language::print_type): New member function.
3696 * go-lang.c (go_language_data): Delete la_print_type initializer.
3697 (go_language::print_type): New member function.
3698 * language.c (unk_lang_print_type): Delete.
3699 (unknown_language_data): Delete la_print_type initializer.
3700 (unknown_language::print_type): New member function.
3701 (auto_language_data): Delete la_print_type initializer.
3702 (auto_language::print_type): New member function.
3703 * language.h (language_data): Delete la_print_type field.
3704 (language_defn::print_type): New function.
3705 (LA_PRINT_TYPE): Update.
3706 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3707 (m2_language::print_type): New member function.
3708 * objc-lang.c (objc_language_data): Delete la_print_type
3709 initializer.
3710 (objc_language::print_type): New member function.
3711 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3712 to opencl_language::print_type.
3713 (opencl_language_data): Delete la_print_type initializer.
3714 (opencl_language::print_type): New member function, implementation
3715 from opencl_print_type.
3716 * p-lang.c (pascal_language_data): Delete la_print_type
3717 initializer.
3718 (pascal_language::print_type): New member function.
3719 * rust-lang.c (rust_print_type): Delete, implementation moved to
3720 rust_language::print_type.
3721 (rust_language_data): Delete la_print_type initializer.
3722 (rust_language::print_type): New member function, implementation
3723 from rust_print_type.
3724
3725 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3726
3727 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3728 implementation moves to...
3729 (ada_language::sniff_from_mangled_name): ...here. Update return
3730 type.
3731 (ada_language_data): Delete la_sniff_from_mangled_name
3732 initializer.
3733 * c-lang.c (c_language_data): Likewise.
3734 (cplus_language_data): Likewise.
3735 (cplus_language::sniff_from_mangled_name): New member function,
3736 implementation taken from gdb_sniff_from_mangled_name.
3737 (asm_language_data): Delete la_sniff_from_mangled_name
3738 initializer.
3739 (minimal_language_data): Likewise.
3740 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3741 implementation moves to cplus_language::sniff_from_mangled_name.
3742 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3743 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3744 moves to...
3745 (d_language::sniff_from_mangled_name): ...here.
3746 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3747 * f-lang.c (f_language_data): Likewise.
3748 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3749 moves to...
3750 (go_language::sniff_from_mangled_name): ...here.
3751 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3752 * language.c (language_sniff_from_mangled_name): Delete.
3753 (unknown_language_data): Delete la_sniff_from_mangled_name
3754 initializer.
3755 (auto_language_data): Likewise.
3756 * language.h (language_data): Delete la_sniff_from_mangled_name
3757 field.
3758 (language_defn::sniff_from_mangled_name): New function.
3759 (language_sniff_from_mangled_name): Delete declaration.
3760 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3761 field.
3762 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3763 implementation moves to...
3764 (objc_language::sniff_from_mangled_name): ...here.
3765 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3766 * opencl-lang.c (opencl_language_data): Likewise.
3767 * p-lang.c (pascal_language_data): Likewise.
3768 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3769 implementation moves to...
3770 (rust_language::sniff_from_mangled_name): ...here.
3771 (rust_language_data): Delete la_sniff_from_mangled_name
3772 initializer.
3773 * symtab.c (symbol_find_demangled_name): Call
3774 sniff_from_mangled_name member function.
3775
3776 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3777
3778 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3779 initializer.
3780 * c-lang.c (c_language_data): Likewise.
3781 (cplus_language_data): Likewise.
3782 (cplus_language::search_name_hash): New member function.
3783 (asm_language_data): Delete la_search_name_hash initializer.
3784 (minimal_language_data): Likewise.
3785 * d-lang.c (d_language_data): Likewise.
3786 * dictionary.c (default_search_name_hash): Rename to...
3787 (language_defn::search_name_hash): ...this.
3788 * f-lang.c (f_language_data): Likewise.
3789 (f_language::search_name_hash): New member function.
3790 * go-lang.c (go_language_data): Delete la_search_name_hash
3791 initializer.
3792 * language.c (unknown_language_data): Likewise.
3793 (auto_language_data): Likewise.
3794 * language.h (struct language_data): Delete la_search_name_hash
3795 field.
3796 (language_defn::search_name_hash): Declare new member function.
3797 (default_search_name_hash): Delete declaration.
3798 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3799 initializer.
3800 * objc-lang.c (objc_language_data): Likewise.
3801 * opencl-lang.c (opencl_language_data): Likewise.
3802 * p-lang.c (pascal_language_data): Likewise.
3803 * rust-lang.c (rust_language_data): Likewise.
3804 * symtab.c (search_name_hash): Update call.
3805
3806 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3807
3808 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3809 initializer.
3810 * c-lang.c (class compile_instance): Declare.
3811 (c_language_data): Delete la_get_compile_instance initializer.
3812 (c_language::get_compile_instance): New member function.
3813 (cplus_language_data): Delete la_get_compile_instance initializer.
3814 (cplus_language::get_compile_instance): New member function.
3815 (asm_language_data): Delete la_get_compile_instance initializer.
3816 (minimal_language_data): Likewise.
3817 * c-lang.h (c_get_compile_context): Update comment.
3818 (cplus_get_compile_context): Update comment.
3819 * compile/compile.c (compile_to_object): Update calls, don't rely
3820 on function pointer being NULL.
3821 * d-lang.c (d_language_data): Delete la_get_compile_instance
3822 initializer.
3823 * f-lang.c (f_language_data): Likewise.
3824 * go-lang.c (go_language_data): Likewise.
3825 * language.c (unknown_language_data): Likewise.
3826 (auto_language_data): Likewise.
3827 * language.h (language_data): Delete la_get_compile_instance field.
3828 (language_defn::get_compile_instance): New member function.
3829 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3830 initializer.
3831 * objc-lang.c (objc_language_data): Likewise.
3832 * opencl-lang.c (opencl_language_data): Likewise.
3833 * p-lang.c (pascal_language_data): Likewise.
3834 * rust-lang.c (rust_language_data): Likewise.
3835
3836 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3837
3838 * ada-lang.c (ada_add_all_symbols): Update comment.
3839 (ada_iterate_over_symbols): Delete, move implementation to...
3840 (ada_language::iterate_over_symbols): ...here, a new member
3841 function, rewrite to use range based for loop.
3842 (ada_language_data): Delete la_iterate_over_symbols initializer.
3843 * c-lang.c (c_language_data): Likewise.
3844 (cplus_language_data): Likewise.
3845 (asm_language_data): Likewise.
3846 (minimal_language_data): Likewise.
3847 * d-lang.c (d_language_data): Likewise.
3848 * f-lang.c (f_language_data): Likewise.
3849 * go-lang.c (go_language_data): Likewise.
3850 * language.c (unknown_language_data): Likewise.
3851 (auto_language_data): Likewise.
3852 * language.h (language_data): Delete la_iterate_over_symbols field.
3853 (language_defn::iterate_over_symbols): New member function.
3854 (LA_ITERATE_OVER_SYMBOLS): Update.
3855 * linespec.c (iterate_over_all_matching_symtabs): Update.
3856 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3857 initializer.
3858 * objc-lang.c (objc_language_data): Likewise.
3859 * opencl-lang.c (opencl_language_data): Likewise.
3860 * p-lang.c (pascal_language_data): Likewise.
3861 * rust-lang.c (rust_language_data): Likewise.
3862
3863 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3864
3865 * ada-lang.c (ada_language_data): Delete
3866 la_lookup_transparent_type initializer.
3867 * c-lang.c (c_language_data): Likewise.
3868 (cplus_language_data): Likewise.
3869 (cplus_language::lookup_transparent_type): New member function.
3870 (asm_language_data): Delete la_lookup_transparent_type
3871 initializer.
3872 (minimal_language_data): Likewise.
3873 * d-lang.c (d_language_data): Likewise.
3874 * f-lang.c (f_language_data): Likewise.
3875 * go-lang.c (go_language_data): Likewise.
3876 * language.c (unknown_language_data): Likewise.
3877 (auto_language_data): Likewise.
3878 * language.h (struct language_data): Delete
3879 la_lookup_transparent_type field.
3880 (language_defn::lookup_transparent_type): New member function.
3881 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3882 initializer.
3883 * objc-lang.c (objc_language_data): Likewise.
3884 * opencl-lang.c (opencl_language_data): Likewise.
3885 * p-lang.c (pascal_language_data): Likewise.
3886 * rust-lang.c (rust_language_data): Likewise.
3887 * symtab.c (symbol_matches_domain): Update call.
3888
3889 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3890
3891 * ada-lang.c (ada_language_arch_info): Delete function, move
3892 implementation to...
3893 (ada_language::language_arch_info): ...here, a new member
3894 function.
3895 (ada_language_data): Delete la_language_arch_info.
3896 * c-lang.c (c_language_data): Likewise.
3897 (c_language::language_arch_info): New member function.
3898 (cplus_language_arch_info): Delete function, move
3899 implementation to...
3900 (cplus_language::language_arch_info): ...here, a new member
3901 function.
3902 (cplus_language_data): Delete la_language_arch_info.
3903 (asm_language_data): Likewise.
3904 (asm_language::language_arch_info): New member function.
3905 (minimal_language_data): Delete la_language_arch_info.
3906 (minimal_language::language_arch_info): New member function.
3907 * d-lang.c (d_language_arch_info): Delete function, move
3908 implementation to...
3909 (d_language::language_arch_info): ...here, a new member
3910 function.
3911 (d_language_data): Delete la_language_arch_info.
3912 * f-lang.c (f_language_arch_info): Delete function, move
3913 implementation to...
3914 (f_language::language_arch_info): ...here, a new member
3915 function.
3916 (f_language_data): Delete la_language_arch_info.
3917 * go-lang.c (go_language_arch_info): Delete function, move
3918 implementation to...
3919 (go_language::language_arch_info): ...here, a new member
3920 function.
3921 (go_language_data): Delete la_language_arch_info.
3922 * language.c (unknown_language_data): Likewise.
3923 (unknown_language::language_arch_info): New member function.
3924 (auto_language_data): Delete la_language_arch_info.
3925 (auto_language::language_arch_info): New member function.
3926 (language_gdbarch_post_init): Update call to
3927 la_language_arch_info.
3928 * language.h (language_data): Delete la_language_arch_info
3929 function pointer.
3930 (language_defn::language_arch_info): New function.
3931 * m2-lang.c (m2_language_arch_info): Delete function, move
3932 implementation to...
3933 (m2_language::language_arch_info): ...here, a new member
3934 function.
3935 (m2_language_data): Delete la_language_arch_info.
3936 * objc-lang.c (objc_language_arch_info): Delete function, move
3937 implementation to...
3938 (objc_language::language_arch_info): ...here, a new member
3939 function.
3940 (objc_language_data): Delete la_language_arch_info.
3941 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3942 implementation to...
3943 (opencl_language::language_arch_info): ...here, a new member
3944 function.
3945 (opencl_language_data): Delete la_language_arch_info.
3946 * p-lang.c (pascal_language_arch_info): Delete function, move
3947 implementation to...
3948 (pascal_language::language_arch_info): ...here, a new member
3949 function.
3950 (pascal_language_data): Delete la_language_arch_info.
3951 * rust-lang.c (rust_language_arch_info): Delete function, move
3952 implementation to...
3953 (rust_language::language_arch_info): ...here, a new member
3954 function.
3955 (rust_language_data): Delete la_language_arch_info.
3956
3957 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3958
3959 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3960 initializer.
3961 * c-lang.c (c_language_data): Likewise.
3962 (cplus_language_data): Likewise.
3963 (cplus_language::pass_by_reference_info): New method.
3964 (asm_language_data): Delete la_pass_by_reference initializer.
3965 (minimal_language_data): Likewise.
3966 * cp-abi.c (cp_pass_by_reference): Remove use of
3967 default_pass_by_reference.
3968 * d-lang.c (d_language_data): Likewise.
3969 * f-lang.c (f_language_data): Likewise.
3970 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3971 default_pass_by_reference.
3972 * go-lang.c (go_language_data): Likewise.
3973 * language.c (language_pass_by_reference): Update.
3974 (default_pass_by_reference): Delete.
3975 (unknown_language_data): Delete la_pass_by_reference
3976 initializer.
3977 (auto_language_data): Likewise.
3978 * language.h (struct language_data): Delete la_pass_by_reference
3979 field.
3980 (language_defn::pass_by_reference_info): New member function.
3981 (default_pass_by_reference): Delete declaration.
3982 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3983 initializer.
3984 * objc-lang.c (objc_language_data): Likewise.
3985 * opencl-lang.c (opencl_language_data): Likewise.
3986 * p-lang.c (pascal_language_data): Likewise.
3987 * rust-lang.c (rust_language_data): Likewise.
3988
3989 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3990
3991 * ada-lang.c (ada_read_var_value): Delete function, move
3992 implementation to...
3993 (ada_language::read_var_value): ...here.
3994 (ada_language_data): Delete la_read_var_value initializer.
3995 * c-lang.c (c_language_data): Likewise.
3996 (cplus_language_data): Likewise.
3997 (minimal_language_data): Likewise.
3998 * d-lang.c (d_language_data): Likewise.
3999 * f-lang.c (f_language_data): Likewise.
4000 * findvar.c (default_read_var_value): Rename to...
4001 (language_defn::read_var_value): ...this.
4002 * findvar.c (read_var_value): Update header comment, and change to
4003 call member function instead of function pointer.
4004 * go-lang.c (go_language_data): Likewise.
4005 * language.c (unknown_language_data): Delete la_read_var_value
4006 initializer.
4007 (auto_language_data): Likewise.
4008 * language.h (struct language_data): Delete la_read_var_value
4009 field.
4010 (language_defn::read_var_value): New member function.
4011 (default_read_var_value): Delete declaration.
4012 * m2-lang.c (m2_language_data): Delete la_read_var_value
4013 initializer.
4014 * objc-lang.c (objc_language_data): Likewise.
4015 * opencl-lang.c (opencl_language_data): Likewise.
4016 * p-lang.c (pascal_language_data): Likewise.
4017 * rust-lang.c (rust_language_data): Likewise.
4018 * value.h (default_read_var_value): Delete declaration.
4019
4020 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4021
4022 * ada-lang.c (ada_print_array_index): Delete function, move
4023 implementation to...
4024 (ada_language::print_array_index): ...here.
4025 (ada_language_data): Delete la_print_array_index initializer.
4026 * c-lang.c (c_language_data): Likewise.
4027 (cplus_language_data): Likewise.
4028 (minimal_language_data): Likewise.
4029 * d-lang.c (d_language_data): Likewise.
4030 * f-lang.c (f_language_data): Likewise.
4031 * go-lang.c (go_language_data): Likewise.
4032 * language.c (default_print_array_index): Delete function, move
4033 implementation to...
4034 (language_defn::print_array_index): ...here.
4035 (unknown_language_data): Delete la_print_array_index initializer.
4036 (auto_language_data): Likewise.
4037 * language.h (struct language_data): Delete la_print_array_index
4038 field.
4039 (language_defn::print_array_index): New member function.
4040 (LA_PRINT_ARRAY_INDEX): Update.
4041 (default_print_array_index): Delete declaration.
4042 * m2-lang.c (m2_language_data): Delete la_print_array_index
4043 initializer.
4044 * objc-lang.c (objc_language_data): Likewise.
4045 * opencl-lang.c (opencl_language_data): Likewise.
4046 * p-lang.c (pascal_language_data): Likewise.
4047 * rust-lang.c (rust_language_data): Likewise.
4048
4049 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4050
4051 * gdb/ada-lang.c (ada_language_defn): Convert to...
4052 (ada_language_data): ...this.
4053 (class ada_language): New class.
4054 (ada_language_defn): New static global.
4055 * gdb/c-lang.c (c_language_defn): Convert to...
4056 (c_language_data): ...this.
4057 (class c_language): New class.
4058 (c_language_defn): New static global.
4059 (cplus_language_defn): Convert to...
4060 (cplus_language_data): ...this.
4061 (class cplus_language): New class.
4062 (cplus_language_defn): New static global.
4063 (asm_language_defn): Convert to...
4064 (asm_language_data): ...this.
4065 (class asm_language): New class.
4066 (asm_language_defn): New static global.
4067 (minimal_language_defn): Convert to...
4068 (minimal_language_data): ...this.
4069 (class minimal_language): New class.
4070 (minimal_language_defn): New static global.
4071 * gdb/d-lang.c (d_language_defn): Convert to...
4072 (d_language_data): ...this.
4073 (class d_language): New class.
4074 (d_language_defn): New static global.
4075 * gdb/f-lang.c (f_language_defn): Convert to...
4076 (f_language_data): ...this.
4077 (class f_language): New class.
4078 (f_language_defn): New static global.
4079 * gdb/go-lang.c (go_language_defn): Convert to...
4080 (go_language_data): ...this.
4081 (class go_language): New class.
4082 (go_language_defn): New static global.
4083 * gdb/language.c (unknown_language_defn): Remove declaration.
4084 (current_language): Initialize to nullptr, real initialization is
4085 moved to _initialize_language.
4086 (languages): Delete global.
4087 (language_defn::languages): Define.
4088 (set_language_command): Use language_defn::languages.
4089 (set_language): Likewise.
4090 (range_error): Likewise.
4091 (language_enum): Likewise.
4092 (language_def): Likewise.
4093 (add_set_language_command): Use language_def::languages for the
4094 language list, and language_def to lookup language pointers.
4095 (skip_language_trampoline): Use language_defn::languages.
4096 (unknown_language_defn): Convert to...
4097 (unknown_language_data): ...this.
4098 (class unknown_language): New class.
4099 (unknown_language_defn): New static global.
4100 (auto_language_defn): Convert to...
4101 (auto_language_data): ...this.
4102 (class auto_language): New class.
4103 (auto_language_defn): New static global.
4104 (language_gdbarch_post_init): Use language_defn::languages.
4105 (_initialize_language): Initialize current_language.
4106 * gdb/language.h (struct language_defn): Rename to...
4107 (struct language_data): ...this.
4108 (struct language_defn): New.
4109 (auto_language_defn): Delete.
4110 (unknown_language_defn): Delete.
4111 (minimal_language_defn): Delete.
4112 (ada_language_defn): Delete.
4113 (asm_language_defn): Delete.
4114 (c_language_defn): Delete.
4115 (cplus_language_defn): Delete.
4116 (d_language_defn): Delete.
4117 (f_language_defn): Delete.
4118 (go_language_defn): Delete.
4119 (m2_language_defn): Delete.
4120 (objc_language_defn): Delete.
4121 (opencl_language_defn): Delete.
4122 (pascal_language_defn): Delete.
4123 (rust_language_defn): Delete.
4124 * gdb/m2-lang.c (m2_language_defn): Convert to...
4125 (m2_language_data): ...this.
4126 (class m2_language): New class.
4127 (m2_language_defn): New static global.
4128 * gdb/objc-lang.c (objc_language_defn): Convert to...
4129 (objc_language_data): ...this.
4130 (class objc_language): New class.
4131 (objc_language_defn): New static global.
4132 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4133 (opencl_language_data): ...this.
4134 (class opencl_language): New class.
4135 (opencl_language_defn): New static global.
4136 * gdb/p-lang.c (pascal_language_defn): Convert to...
4137 (pascal_language_data): ...this.
4138 (class pascal_language): New class.
4139 (pascal_language_defn): New static global.
4140 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4141 language pointer, update comment format.
4142 * gdb/rust-lang.c (rust_language_defn): Convert to...
4143 (rust_language_data): ...this.
4144 (class rust_language): New class.
4145 (rust_language_defn): New static global.
4146
4147 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4148
4149 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4150 member variable.
4151 <m_stmt_at_address>: New member variable.
4152 (lnp_state_machine::record_line): Don't record some lines, update
4153 tracking of is_stmt at the same address.
4154 (lnp_state_machine::lnp_state_machine): Initialise new member
4155 variables.
4156
4157 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4158
4159 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4160 "-include gnu-nat-mig.h".
4161 * gnu-nat-mig.h: New file.
4162 * gnu-nat.c: Include "gnu-nat-mig.h".
4163 (exc_server, msg_reply_server, notify_server,
4164 process_reply_server): Remove declarations.
4165
4166 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4167
4168 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4169 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4170 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4171 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4172 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4173 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4174 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4175 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4176 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4177 to gnu_nat_target class.
4178 * gnu-nat.c: Likewise.
4179 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4180 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4181 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4182 object.
4183 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4184 instead of `gnu_target'.
4185
4186 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4187
4188 * i386-gnu-tdep.c: Include "gdbcore.h"
4189 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4190 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4191 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4192 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4193 i386_gnu_sigcontext_addr): New functions
4194 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4195 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4196 tdep.
4197
4198 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4199
4200 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4201 before fork_inferior call. Avoid calling it if target_is_pushed returns
4202 true.
4203
4204 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4205
4206 * gnu-nat.h (gnu_target): New variable declaration.
4207 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4208 gnu_target.
4209 * gnu-nat.c (gnu_target): New variable.
4210 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4211 add_thread_silent, and add_thread calls.
4212 (gnu_nat_target::create_inferior): Pass gnu_target to
4213 add_thread_silent, thread_change_ptid call.
4214 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4215 call.
4216
4217 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4218
4219 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4220 (gnu_nat_target::find_memory_regions): Remove unused
4221 `old_address' variable.
4222
4223 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4224
4225 * gnu-nat.c: Include "gdbarch.h".
4226
4227 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4228
4229 * reply_mig_hack.awk (Error return): Cast function through
4230 void *, to bypass compiler function call check.
4231
4232 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4233
4234 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4235 $(srcdir)/reply_mig_hack.awk.
4236
4237 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4238
4239 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4240
4241 2020-05-30 Jonny Grant <jg@jguk.org>
4242
4243 * configure.ac (ACX_BUGURL): change bug URL to https.
4244
4245 2020-05-30 Pedro Alves <palves@redhat.com>
4246
4247 * cp-support.c (replace_typedefs_template): New.
4248 (replace_typedefs_qualified_name): Handle
4249 DEMANGLE_COMPONENT_TEMPLATE.
4250
4251 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4252
4253 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4254 dwarf2/index-cache.h, dwarf2/index-write.c,
4255 dwarf2/index-write.h, dwarf2/line-header.c,
4256 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4257 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4258 variables and fields from `dwarf2_per_objfile` to just
4259 `per_objfile` throughout.
4260
4261 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4262
4263 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4264 <push_dwarf_reg_entry_value>: Add comment.
4265
4266 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4267 Keith Seitz <keiths@redhat.com>
4268
4269 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4270 instead of PyEval_ReleaseLock.
4271 (class gdbpy_gil): Move to earlier in file.
4272 (finalize_python): Set gdb_python_initialized.
4273 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4274 when not initialized.
4275
4276 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4279 <push_dwarf_reg_entry_value>: Remove assert. Override
4280 per_objfile with caller_per_objfile.
4281
4282 2020-05-28 Tom de Vries <tdevries@suse.de>
4283
4284 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4285 PR gold/15646 workaround to symbol kind "type".
4286
4287 2020-05-27 Tom Tromey <tromey@adacore.com>
4288
4289 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4290
4291 2020-05-27 Tom Tromey <tromey@adacore.com>
4292
4293 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4294 Use htab_find_with_hash.
4295 <add_abbrev>: Remove "abbrev_number" parameter.
4296 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4297 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4298 (hash_abbrev): Add comment.
4299 (abbrev_table::lookup_abbrev): Move to header file.
4300 (abbrev_table::read): Update.
4301
4302 2020-05-27 Tom Tromey <tromey@adacore.com>
4303
4304 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4305 method.
4306 <canonical_name>: New member.
4307 <raw_name>: Rename from "name".
4308 (partial_die_info): Initialize canonical_name.
4309 (scan_partial_symbols): Check raw_name.
4310 (partial_die_parent_scope, partial_die_full_name)
4311 (add_partial_symbol, add_partial_subprogram)
4312 (add_partial_enumeration, load_partial_dies): Use "name" method.
4313 (partial_die_info::name): New method.
4314 (partial_die_info::read, guess_partial_die_structure_name)
4315 (partial_die_info::fixup): Update.
4316
4317 2020-05-27 Tom Tromey <tromey@adacore.com>
4318
4319 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4320 <get_ref_die_offset>: Inline.
4321 <get_ref_die_offset_complaint>: New method.
4322 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4323 (attribute::get_ref_die_offset_complaint): Rename from
4324 get_ref_die_offset. Just issue complaint.
4325
4326 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4327
4328 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4329
4330 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4331
4332 * exec.c (exec_file_attach): Use errno value of first openp failure.
4333
4334 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4335
4336 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4337 Don't close thread handle.
4338
4339 2020-05-27 Tom Tromey <tom@tromey.com>
4340 Simon Marchi <simon.marchi@efficios.com>
4341
4342 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4343 shared_ptr.
4344 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4345 member.
4346 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4347 dwarf2_per_bfd_objfile_data_key>: New globals.
4348 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4349 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4350 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4351 shared.
4352 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4353 short-circuit when sharing.
4354 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4355 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4356
4357 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4360 to...
4361 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4362 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4363
4364 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4365
4366 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4367 build_name_components, find_name_components_bounds>:
4368 Add per_objfile parameter.
4369 (struct mapped_index) <symbol_name_at>: Likewise.
4370 (struct mapped_debug_names): Remove constructor.
4371 <dwarf2_per_objfile>: Remove field.
4372 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4373 (mapped_index_base::find_name_components_bounds,
4374 mapped_index_base::build_name_components,
4375 dw2_expand_symtabs_matching_symbol): Likewise.
4376 (class mock_mapped_index) <symbol_name_at>: Likewise.
4377 (check_match): Likewise.
4378 (check_find_bounds_finds): Likewise.
4379 (test_mapped_index_find_name_component_bounds): Update.
4380 (CHECK_MATCH): Update.
4381 (dw2_expand_symtabs_matching): Update.
4382 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4383 per_objfile parameter.
4384 <find_vec_in_debug_names>: Likewise.
4385 <m_per_objfile>: New field.
4386 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4387 parameter.
4388 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4389 (dw2_debug_names_iterator::next): Update.
4390 (dw2_debug_names_lookup_symbol): Update.
4391 (dw2_debug_names_expand_symtabs_for_function): Update.
4392 (dw2_debug_names_map_matching_symbols): Update.
4393 (dw2_debug_names_expand_symtabs_matching): Update.
4394 (dwarf2_read_debug_names): Update.
4395
4396 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4399 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4400 move to dwarf2_per_objfile.
4401 <read_in_chain>: Remove.
4402 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4403 remove_all_cus, age_comp_units>: New methods.
4404 <m_dwarf2_cus>: New member.
4405 (struct dwarf2_per_cu_data) <cu>: Remove.
4406 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4407 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4408 moved to methods of dwarf2_per_objfile.
4409 (dwarf2_clear_marks): Remove.
4410 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4411 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4412 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4413 (dwarf2_per_objfile::remove_all_cus): New.
4414 (class free_cached_comp_units) <~free_cached_comp_units>:
4415 Update.
4416 (load_cu): Update.
4417 (dw2_do_instantiate_symtab): Adjust.
4418 (fill_in_sig_entry_from_dwo_entry): Adjust.
4419 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4420 (cutu_reader::cutu_reader): Likewise.
4421 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4422 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4423 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4424 and dwarf2_per_objfile::age_comp_units.
4425 (load_partial_comp_unit): Update.
4426 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4427 (process_queue): Likewise.
4428 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4429 backlink.
4430 (dwarf2_read_addr_index): Likewise.
4431 (follow_die_offset): Likewise.
4432 (dwarf2_fetch_die_loc_sect_off): Likewise.
4433 (dwarf2_fetch_constant_bytes): Likewise.
4434 (dwarf2_fetch_die_type_sect_off): Likewise.
4435 (follow_die_sig_1): Likewise.
4436 (load_full_type_unit): Likewise.
4437 (read_signatured_type): Likewise.
4438 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4439 (dwarf2_cu::~dwarf2_cu): Remove.
4440 (dwarf2_per_objfile::get_cu): New.
4441 (dwarf2_per_objfile::set_cu): New.
4442 (age_cached_comp_units): Rename to...
4443 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4444 to std::unordered_map.
4445 (free_one_cached_comp_unit): Rename to...
4446 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4447 to std::unordered_map.
4448 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4449 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4450 a dwarf2_per_objfile in data.
4451 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4452 (dwarf2_clear_marks): Remove.
4453
4454 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4457 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4458 (init_tu_and_read_dwo_dies): Likewise.
4459 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4460 (cutu_reader::cutu_reader): Likewise.
4461 (load_partial_comp_unit): Likewise.
4462 (process_psymtab_comp_unit): Update.
4463 (build_type_psymtabs_1): Update.
4464 (process_skeletonless_type_unit): Update.
4465 (load_full_comp_unit): Update.
4466 (find_partial_die): Update.
4467 (dwarf2_read_addr_index): Update.
4468 (read_signatured_type): Update.
4469
4470 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4471
4472 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4473 m_header_read_in>: New fields.
4474 <get_header>: New method.
4475 * dwarf2/read.c (per_cu_header_read_in): Remove.
4476 (dwarf2_per_cu_data::get_header): New.
4477 (dwarf2_per_cu_data::addr_size): Update.
4478 (dwarf2_per_cu_data::offset_size): Update.
4479 (dwarf2_per_cu_data::ref_addr_size): Update.
4480
4481 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4482
4483 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4484 (dw2_do_instantiate_symtab): Update.
4485 (queue_and_load_all_dwo_tus): Change parameter from
4486 dwarf2_per_cu_data to dwarf2_cu.
4487 (dwarf2_fetch_die_loc_sect_off): Update.
4488 (dwarf2_fetch_constant_bytes): Update.
4489 (dwarf2_fetch_die_type_sect_off): Update.
4490
4491 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4492
4493 * dwarf2/read.c (process_full_comp_unit,
4494 process_full_type_unit): Remove per_cu, per_objfile paramters.
4495 Add dwarf2_cu parameter.
4496 (process_queue): Update.
4497
4498 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4499
4500 * dwarf2/read.c (create_cu_from_index_list): Replace
4501 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4502 (create_cus_from_index_list): Likewise.
4503 (create_cus_from_index): Likewise.
4504 (create_signatured_type_table_from_index): Likewise.
4505 (create_cus_from_debug_names_list): Likewise.
4506 (create_cus_from_debug_names): Likewise.
4507 (dwarf2_read_gdb_index): Update.
4508 (dwarf2_read_debug_names): Update.
4509
4510 2020-05-27 Tom Tromey <tom@tromey.com>
4511 Simon Marchi <simon.marchi@efficios.com>
4512
4513 * dwarf2/read.h (struct dwarf2_per_objfile)
4514 <get_type_for_signatured_type, set_type_for_signatured_type>:
4515 New methods.
4516 <m_type_map>: New member.
4517 (struct signatured_type) <type>: Remove.
4518 * dwarf2/read.c
4519 (dwarf2_per_objfile::get_type_for_signatured_type,
4520 dwarf2_per_objfile::set_type_for_signatured_type): New.
4521 (get_signatured_type): Use new methods.
4522
4523 2020-05-27 Tom Tromey <tom@tromey.com>
4524 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4527 (struct dwarf2_per_objfile) <type_units>: New member.
4528 <get_type_unit_group_unshareable>: New method.
4529 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4530 num_symtabs, symtabs>: Remove; move to
4531 type_unit_group_unshareable.
4532 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4533 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4534 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4535
4536 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * dwarf2/read.h (struct dwarf2_per_cu_data):
4539 <dwarf2_per_objfile>: Remove.
4540 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4541 dwarf2_per_objfile.
4542 (create_signatured_type_table_from_index): Likewise.
4543 (create_signatured_type_table_from_debug_names): Likewise.
4544 (create_debug_type_hash_table): Likewise.
4545 (fill_in_sig_entry_from_dwo_entry): Likewise.
4546 (create_type_unit_group): Likewise.
4547 (read_comp_units_from_section): Likewise.
4548 (create_cus_hash_table): Likewise.
4549
4550 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4553 dwarf2_per_cu_data::dwarf2_per_objfile.
4554 (compute_compunit_symtab_includes): Likewise.
4555 (dwarf2_cu::start_symtab): Likewise.
4556
4557 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4558
4559 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4560 parameter.
4561 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4562 (read_namespace_alias): Update.
4563 (lookup_die_type): Update.
4564 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4565 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4566 Update.
4567 (disassemble_dwarf_expression): Update.
4568
4569 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * dwarf2/read.h (struct dwarf2_queue_item): Add
4572 dwarf2_per_objfile parameter, assign new parameter.
4573 <per_objfile>: New field.
4574 * dwarf2/read.c (free_one_cached_comp_unit): Add
4575 dwarf2_per_objfile parameter.
4576 (queue_comp_unit): Likewise.
4577 (dw2_do_instantiate_symtab): Update.
4578 (process_psymtab_comp_unit): Update.
4579 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4580 (process_imported_unit_die): Update.
4581 (queue_and_load_dwo_tu): Update.
4582 (follow_die_offset): Update.
4583 (follow_die_sig_1): Update.
4584
4585 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4588 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4589 (read_call_site_scope): Assign per_objfile.
4590 (dwarf2_per_cu_data::objfile): Remove.
4591 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4592 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4593 dwarf2_per_objfile parameter.
4594 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4595 dwarf2_per_objfile parameter.
4596 (dwarf_expr_reg_to_entry_parameter): Add output
4597 dwarf2_per_objfile parameter.
4598 (locexpr_get_frame_base): Update.
4599 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4600 <push_dwarf_reg_entry_value>: Update.
4601 <call_site_to_target_addr>: Update.
4602 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4603 parameter.
4604 (value_of_dwarf_reg_entry): Update.
4605 (rw_pieced_value): Update.
4606 (indirect_synthetic_pointer): Update.
4607 (dwarf2_evaluate_property): Update.
4608 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4609 parameter.
4610 (locexpr_read_variable): Update.
4611 (locexpr_get_symbol_read_needs): Update.
4612 (loclist_read_variable): Update.
4613
4614 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4617 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4618 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4619 parameter.
4620 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4621 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4622 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4623 parameter.
4624 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4625 sect_variable_value): Add dwarf2_per_objfile parameter.
4626 (class dwarf_evaluate_loc_desc) <dwarf_call,
4627 dwarf_variable_value>: Update.
4628 (fetch_const_value_from_synthetic_pointer): Add
4629 dwarf2_per_objfile parameter.
4630 (fetch_const_value_from_synthetic_pointer): Update.
4631 (coerced_pieced_ref): Update.
4632 (class symbol_needs_eval_context) <dwarf_call,
4633 dwarf_variable_value>: Update.
4634 (dwarf2_compile_expr_to_ax): Update.
4635
4636 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4637
4638 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4639 parameter.
4640 (dwarf2_evaluate_loc_desc_full): Update.
4641
4642 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4643
4644 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4645 parameter.
4646 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4647 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4648 dwarf2_per_objfile parameter.
4649 (decode_debug_loc_dwo_addresses): Likewise.
4650 (dwarf2_find_location_expression): Update.
4651 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4652 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4653 parameter.
4654 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4655 parameter.
4656 (locexpr_describe_location_1): Likewise.
4657 (locexpr_describe_location): Update.
4658
4659 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4662 Remove.
4663 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4664 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4665 (dwarf2_compile_property_to_c): Update.
4666 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4667 use text offset from objfile.
4668 (locexpr_tracepoint_var_ref): Update.
4669 (locexpr_generate_c_location): Update.
4670 (loclist_describe_location): Update.
4671 (loclist_tracepoint_var_ref): Update.
4672 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4673 dwarf2_per_objfile parameter.
4674 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4675 use text offset from objfile.
4676 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4677
4678 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4679
4680 * dwarf2/expr.h (struct dwarf_expr_context)
4681 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4682 <offset>: Remove.
4683 <per_objfile>: New member.
4684 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4685 dwarf2_per_objfile parameter. Don't set offset, set
4686 per_objfile.
4687 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4688 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4689 a dwarf2_per_objfile object instead of an offset.
4690 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4691 constructor.
4692 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4693 to dwarf2_expr_executor constructor. Don't set offset.
4694 (dwarf2_fetch_cfa_info): Update.
4695 (struct dwarf2_frame_cache) <text_offset>: Remove.
4696 <per_objfile>: New field.
4697 (dwarf2_frame_cache): Update.
4698 (dwarf2_frame_prev_register): Update.
4699 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4700 <dwarf_evaluate_loc_desc>: Add constructor.
4701 (dwarf2_evaluate_loc_desc_full): Update.
4702 (dwarf2_locexpr_baton_eval): Update.
4703 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4704 Add constructor.
4705 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4706
4707 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4708
4709 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4710 addr_sized_int_type>: Move to dwarf2_cu.
4711 <int_type>: Move to dwarf2_per_objfile.
4712 (struct dwarf2_per_objfile) <int_type>: Move here.
4713 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4714 addr_sized_int_type>: Move here.
4715 (read_func_scope): Update.
4716 (read_array_type): Update.
4717 (read_tag_string_type): Update.
4718 (attr_to_dynamic_prop): Update.
4719 (dwarf2_per_cu_data::int_type): Rename to...
4720 (dwarf2_per_objfile::int_type): ... this.
4721 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4722 (dwarf2_cu::addr_sized_int_type): ... this.
4723 (read_subrange_type): Update.
4724 (dwarf2_per_cu_data::addr_type): Rename to...
4725 (dwarf2_cu::addr_type): ... this.
4726 (set_die_type): Update.
4727
4728 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4729
4730 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4731 data through per_cu->cu.
4732
4733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4734
4735 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4736 dwarf2_per_cu_data parameter fo dwarf2_cu.
4737 (lookup_dwo_type_unit): Likewise.
4738 (read_cutu_die_from_dwo): Likewise.
4739 (lookup_dwo_unit): Likewise.
4740 (open_and_init_dwo_file): Likewise.
4741 (lookup_dwo_cutu): Likewise.
4742 (lookup_dwo_comp_unit): Likewise.
4743 (lookup_dwo_type_unit): Likewise.
4744 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4745 (cutu_reader::cutu_reader): Update.
4746
4747 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4750 parameter.
4751 (process_full_type_unit): Likewise.
4752 (process_queue): Update.
4753
4754 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * dwarf2/read.c (recursively_compute_inclusions): Add
4757 dwarf2_per_objfile parameter.
4758 (compute_compunit_symtab_includes): Likewise.
4759 (process_cu_includes): Update.
4760
4761 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4762
4763 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4764 parameter.
4765 (create_type_unit_group): Update.
4766 (process_psymtab_comp_unit_reader): Update.
4767 (build_type_psymtabs_reader): Update.
4768
4769 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4770
4771 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4772 object through m_this_cu->cu.
4773
4774 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4775
4776 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4777 the info parameter.
4778 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4779
4780 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4781
4782 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4783 per_objfile parameter.
4784 (load_full_type_unit): Add per_objfile parameter.
4785 (read_signatured_type): Likewise.
4786 (load_full_comp_unit): Likewise.
4787 (load_cu): Likewise.
4788 (dw2_do_instantiate_symtab): Likewise.
4789 (dw2_get_file_names): Likewise.
4790 (dw2_map_symtabs_matching_filename): Update.
4791 (dw_expand_symtabs_matching_file_matcher): Update.
4792 (dw2_map_symbol_filenames): Update.
4793 (process_psymtab_comp_unit): Add per_objfile parameter.
4794 (build_type_psymtabs_1): Update.
4795 (process_skeletonless_type_unit): Update.
4796 (dwarf2_build_psymtabs_hard): Update.
4797 (load_partial_comp_unit): Add per_objfile parameter.
4798 (scan_partial_symbols): Update.
4799 (load_full_comp_unit): Add per_objfile parameter.
4800 (process_imported_unit_die): Update.
4801 (create_cus_hash_table): Update.
4802 (find_partial_die): Update.
4803 (dwarf2_read_addr_index): Update.
4804 (follow_die_offset): Update.
4805 (dwarf2_fetch_die_loc_sect_off): Update.
4806 (dwarf2_fetch_constant_bytes): Update.
4807 (dwarf2_fetch_die_type_sect_off): Update.
4808 (follow_die_sig_1): Update.
4809 (load_full_type_unit): Add per_objfile parameter.
4810 (read_signatured_type): Likewise.
4811
4812 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4813
4814 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4815 of objfile_name.
4816
4817 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4818
4819 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4820 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4821 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4822 field.
4823 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4824 (create_cus_from_index): Update.
4825 (dwarf2_read_gdb_index): Update.
4826 (create_cus_from_debug_names): Update.
4827 (dwarf2_read_debug_names): Update.
4828 (get_abbrev_section_for_cu): Update.
4829 (create_all_comp_units): Update.
4830 (read_attribute_value): Update.
4831 (get_debug_line_section): Update.
4832 * dwarf2/index-cache.c (index_cache::store): Update.
4833 * dwarf2/index-write.c (save_gdb_index_command): Update.
4834 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4835
4836 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4837
4838 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4839 member.
4840 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4841 dwarf2_per_cu_data::per_bfd.
4842 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4843 (create_type_unit_group): Likewise.
4844 (queue_comp_unit): Remove reference to
4845 per_cu->dwarf2_per_objfile.
4846 (maybe_queue_comp_unit): Likewise.
4847 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4848 (create_cus_hash_table): Assign new field.
4849
4850 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4851
4852 * dwarf2/read.c: Replace
4853 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4854 dwarf2_cu->per_objfile throughout.
4855
4856 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4857
4858 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4859 parameter, don't use per_cu->dwarf2_per_objfile.
4860 (dw2_instantiate_symtab): Likewise.
4861 (dw2_find_last_source_symtab): Update.
4862 (dw2_map_expand_apply): Update.
4863 (dw2_lookup_symbol): Update.
4864 (dw2_expand_symtabs_for_function): Update.
4865 (dw2_expand_all_symtabs): Update.
4866 (dw2_expand_symtabs_with_fullname): Update.
4867 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4868 don't use per_cu->dwarf2_per_objfile.
4869 (dw2_expand_marked_cus): Update.
4870 (dw2_find_pc_sect_compunit_symtab): Update.
4871 (dw2_debug_names_lookup_symbol): Update.
4872 (dw2_debug_names_expand_symtabs_for_function): Update.
4873 (dw2_debug_names_map_matching_symbols): Update.
4874 (dwarf2_psymtab::expand_psymtab): Update.
4875
4876 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4877
4878 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4879 <per_objfile>: New member.
4880 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4881 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4882 call to dwarf2_cu.
4883 (cutu_reader::cutu_reader): Update.
4884 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4885
4886 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4889 struct dwarf2_per_objfile.
4890 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4891 dwarf2_per_bfd.
4892 * dwarf2/read.c (set_die_type): Update.
4893 (get_die_type_at_offset): Update.
4894
4895 2020-05-27 Tom Tromey <tom@tromey.com>
4896 Simon Marchi <simon.marchi@efficios.com>
4897
4898 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4899 method.
4900 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4901 get_symtab, set_symtab>: New methods.
4902 <m_symtabs>: New field.
4903 (struct dwarf2_psymtab): Derive from partial_symtab.
4904 <readin_p, get_compunit_symtab>: Declare methods.
4905 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4906 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4907 New methods.
4908 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4909 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4910 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4911 (dw2_symtab_iter_next, dw2_print_stats)
4912 (dw2_expand_symtabs_with_fullname)
4913 (dw2_expand_symtabs_matching_one)
4914 (dw_expand_symtabs_matching_file_matcher)
4915 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4916 (dw2_debug_names_iterator::next)
4917 (dw2_debug_names_map_matching_symbols)
4918 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4919 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4920 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4921 New methods.
4922 (get_compunit_symtab, process_full_comp_unit)
4923 (process_full_type_unit): Update.
4924 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4925
4926 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4927
4928 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4929 then introduce a new dwarf2_per_objfile type.
4930 <read_line_string>: Move to the new dwarf2_per_objfile type.
4931 <objfile>: Likewise.
4932 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4933 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4934 dwarf2_per_objfile->per_bfd.
4935 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4936 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4937 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4938 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4939 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4940 (dwarf2_per_objfile::locate_sections): Rename to...
4941 (dwarf2_per_bfd::locate_sections): ... this.
4942 (dwarf2_per_objfile::get_cutu): Rename to...
4943 (dwarf2_per_bfd::get_cutu): ... this.
4944 (dwarf2_per_objfile::get_cu): Rename to...
4945 (dwarf2_per_bfd::get_cu): ... this.
4946 (dwarf2_per_objfile::get_tu): Rename to...
4947 (dwarf2_per_bfd::get_tu): ... this.
4948 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4949 (dwarf2_per_bfd::allocate_per_cu): ... this.
4950 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4951 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4952 (get_gdb_index_contents_ftype): Change parameter from
4953 dwarf2_per_objfile to dwarf2_per_bfd.
4954 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4955 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4956
4957 2020-05-27 Tom Tromey <tom@tromey.com>
4958 Simon Marchi <simon.marchi@efficios.com>
4959
4960 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4961 (allocate_piece_closure): Set "per_objfile" member.
4962 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4963 (locexpr_describe_location, loclist_describe_location): Use new
4964 member.
4965 * dwarf2/read.c (read_call_site_scope)
4966 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4967 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4968 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4969 handle_data_member_location): Set per_objfile member.
4970 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4971 member.
4972 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4973
4974 2020-05-27 Tom Tromey <tom@tromey.com>
4975
4976 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4977 allocate_signatured_type>: Declare new methods.
4978 <m_num_psymtabs>: New member.
4979 (struct dwarf2_per_cu_data) <index>: New member.
4980 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4981 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4982 (create_cu_from_index_list): Use allocate_per_cu.
4983 (create_signatured_type_table_from_index)
4984 (create_signatured_type_table_from_debug_names)
4985 (create_debug_type_hash_table, add_type_unit)
4986 (read_comp_units_from_section): Use allocate_signatured_type.
4987
4988 2020-05-27 Tom Tromey <tom@tromey.com>
4989
4990 * psymtab.c (partial_map_expand_apply)
4991 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4992 (psym_lookup_global_symbol_language)
4993 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4994 (psym_print_stats, psym_expand_symtabs_for_function)
4995 (psym_map_symbol_filenames, psym_map_matching_symbols)
4996 (psym_expand_symtabs_matching)
4997 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4998 (maintenance_check_psymtabs): Update.
4999 * psympriv.h (struct partial_symtab) <readin_p,
5000 get_compunit_symtab>: Add objfile parameter.
5001 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5002 Likewise.
5003 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5004 get_compunit_symtab>: Likewise.
5005 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5006
5007 2020-05-27 Tom Tromey <tom@tromey.com>
5008
5009 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5010 member.
5011 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5012 (create_cu_from_index_list)
5013 (create_signatured_type_table_from_index)
5014 (create_signatured_type_table_from_debug_names)
5015 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5016 (dwarf2_create_include_psymtab)
5017 (create_debug_type_hash_table, add_type_unit)
5018 (create_type_unit_group, read_comp_units_from_section)
5019 (dwarf2_compute_name, create_cus_hash_table)
5020 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5021 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5022 obstack.
5023 (dw2_get_real_path): Likewise. Change argument to
5024 dwarf2_per_objfile.
5025
5026 2020-05-27 Luis Machado <luis.machado@linaro.org>
5027
5028 PR tdep/26000
5029 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5030 for ldrd (immediate).
5031
5032 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5033
5034 * command.h: Add comment giving the name of class_tui.
5035 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5036 create the fake command for the help for class_tui.
5037
5038 2020-05-26 Tom Tromey <tromey@adacore.com>
5039
5040 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5041 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5042 (val_atr): New function.
5043 (value_val_atr): Use it.
5044 * ada-valprint.c (print_optional_low_bound): Change low bound
5045 handling for enums.
5046 (val_print_packed_array_elements): Don't call discrete_position.
5047 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5048 discrete_position for enum types.
5049 * language.c (default_print_array_index): Change type.
5050 * language.h (struct language_defn) <la_print_array_index>: Add
5051 index_type parameter, change type of index_value.
5052 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5053 (default_print_array_index): Update.
5054 * valprint.c (maybe_print_array_index): Don't call
5055 value_from_longest. Update.
5056 (value_print_array_elements): Don't call discrete_position.
5057
5058 2020-05-26 Tom Tromey <tromey@adacore.com>
5059
5060 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5061 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5062
5063 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5064
5065 PR gdb/13519
5066 * avr-tdep.c (avr_integer_to_address): Return data or code
5067 address accordingly to the second 'type' argument of the
5068 function.
5069
5070 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5071
5072 * infcmd.c, inferior.h: (construct_inferior_arguments):
5073 Moved function from here to gdbsupport/common-inferior.{h,cc}
5074
5075 2020-05-23 Tom Tromey <tom@tromey.com>
5076
5077 Revert commit eca1f90c:
5078 * NEWS: Remove entry for completion styling.
5079 * completer.c (_rl_completion_prefix_display_length): Move
5080 declaration later.
5081 (gdb_fnprint): Revert.
5082 (gdb_display_match_list_1): Likewise.
5083 * cli/cli-style.c (completion_prefix_style)
5084 (completion_difference_style, completion_suffix_style): Remove.
5085 (_initialize_cli_style): Revert.
5086 * cli/cli-style.h (completion_prefix_style)
5087 (completion_difference_style, completion_suffix_style): Don't
5088 declare.
5089
5090 2020-05-24 Pedro Alves <palves@redhat.com>
5091
5092 * symtab.c (completion_list_add_name): Return boolean indication
5093 of whether the symbol matched.
5094 (completion_list_add_symbol): Don't try to remove C++ aliases if
5095 the symbol didn't match in the first place.
5096 * symtab.h (completion_list_add_name): Return bool.
5097
5098 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5099
5100 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5101 type::field.
5102
5103 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5104
5105 GDB 9.2 released.
5106
5107 2020-05-23 Tom Tromey <tom@tromey.com>
5108
5109 * NEWS: Add entry for completion styling.
5110 * completer.c (_rl_completion_prefix_display_length): Move
5111 declaration earlier.
5112 (gdb_fnprint): Use completion_style.
5113 (gdb_display_match_list_1): Likewise.
5114 * cli/cli-style.c (completion_prefix_style)
5115 (completion_difference_style, completion_suffix_style): New
5116 globals.
5117 (_initialize_cli_style): Register new globals.
5118 * cli/cli-style.h (completion_prefix_style)
5119 (completion_difference_style, completion_suffix_style): Declare.
5120
5121 2020-05-23 Pedro Alves <palves@redhat.com>
5122
5123 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5124 (parse_escape): Use ISDIGIT instead of isdigit.
5125 (puts_debug): Use gdb_isprint instead of isprint.
5126 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5127 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5128 ISSPACE instead of isspace.
5129 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5130 instead of isspace.
5131 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5132 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5133 instead of isxdigit and ISDIGIT instead of isdigit.
5134
5135 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5136
5137 * gdbtypes.h (struct type) <field>: New method.
5138 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5139 or type::field.
5140
5141 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5142
5143 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5144 (TYPE_FIELDS): Use type::fields. Change all call sites that
5145 modify the propery to use type::set_fields instead.
5146
5147 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5148
5149 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5150 type::num_fields instead.
5151
5152 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5153
5154 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5155 methods.
5156 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5157 that modify the number of fields to use type::set_num_fields
5158 instead.
5159
5160 2020-05-22 Tom Tromey <tromey@adacore.com>
5161
5162 * compile/compile-object-load.h (munmap_list_free): Don't
5163 declare.
5164
5165 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5166
5167 * annotate.c (annotate_source_line): Update return type, add call
5168 to update current symtab and line.
5169 * annotate.h (annotate_source_line): Update return type, and
5170 extend header comment.
5171 * source.c (info_line_command): Check annotation_level before
5172 calling annotate_source_line.
5173 * stack.c (print_frame_info): If calling annotate_source_line
5174 returns true, then don't print any other source line information.
5175
5176 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5177
5178 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5179
5180 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5181
5182 * coffread.c (patch_type): Remove NULL check before xfree.
5183 * corefile.c (set_gnutarget): Likewise.
5184 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5185 * exec.c (build_section_table): Likewise.
5186 * remote.c (remote_target::pass_signals): Likewise.
5187 * utils.c (n_spaces): Likewise.
5188 * cli/cli-script.c (document_command): Likewise.
5189 * i386-windows-tdep.c (core_process_module_section): Likewise.
5190 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5191
5192 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5193
5194 * symfile.c (reread_symbols): Clear objfile's section_offsets
5195 vector and section indices, re-compute them by calling
5196 sym_offsets.
5197
5198 2020-05-20 Tom Tromey <tromey@adacore.com>
5199
5200 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5201 (desc_one_bound, desc_index_type): Compute field name.
5202
5203 2020-05-20 Tom de Vries <tdevries@suse.de>
5204
5205 PR symtab/25833
5206 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5207
5208 2020-05-20 Alan Modra <amodra@gmail.com>
5209
5210 PR 25993
5211 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5212 bfd_set_filename.
5213 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5214 passed to bfd_set_filename.
5215 * symfile-mem.c (add_vsyscall_page): Likewise for string
5216 passed to symbol_file_add_from_memory.
5217 (symbol_file_add_from_memory): Make name param a const char* and
5218 don't strdup.
5219
5220 2020-05-20 Alan Modra <amodra@gmail.com>
5221
5222 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5223 rather than accessing bfd->filename directly.
5224 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5225 and use bfd_section_name.
5226 * dwarf2/frame.c (decode_frame_entry): Likewise.
5227 * exec.c (exec_set_section_address): Likewise.
5228 * solib-aix.c (solib_aix_bfd_open): Likewise.
5229 * stap-probe.c (get_stap_base_address): Likewise.
5230 * symfile.c (reread_symbols): Likewise.
5231
5232 2020-05-19 Tom Tromey <tromey@adacore.com>
5233
5234 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5235
5236 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5237
5238 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5239
5240 2020-05-19 Pedro Alves <palves@redhat.com>
5241
5242 * NEWS (set exec-file-mismatch): Adjust entry.
5243 * exec.c: Include "build-id.h".
5244 (validate_exec_file): Try to match build IDs instead of filenames.
5245 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5246 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5247 and pass down 'warn_if_slow'.
5248 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5249 gdb_bfd_open_closure to pass it down.
5250 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5251
5252 2020-05-19 Pedro Alves <palves@redhat.com>
5253
5254 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5255 * target.c (target_fileio_open_1): Rename to target_fileio_open
5256 and make extern. Use bool.
5257 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5258 (target_fileio_read_alloc_1): Adjust.
5259 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5260 (target_fileio_open_warn_if_slow): Delete declaration.
5261
5262 2020-05-19 Pedro Alves <palves@redhat.com>
5263
5264 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5265 Adjust all callers.
5266
5267 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5268
5269 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5270 whether disp is negative.
5271
5272 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5273
5274 * symfile.h (struct symfile_segment_data)
5275 <~symfile_segment_data>: Remove.
5276 <segment_info>: Change to std::vector.
5277 * symfile.c (default_symfile_segments): Update.
5278 * elfread.c (elf_symfile_segments): Update.
5279
5280 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5281
5282 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5283 <segments>: New.
5284 <segment_bases, segment_sizes>: Remove.
5285 * symfile.c (default_symfile_segments): Update.
5286 * elfread.c (elf_symfile_segments): Update.
5287 * remote.c (remote_target::get_offsets): Update.
5288 * solib-target.c (solib_target_relocate_section_addresses):
5289 Update.
5290
5291 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5292
5293 * symfile.h (struct symfile_segment_data): Initialize fields.
5294 <~symfile_segment_data>: Add.
5295 (symfile_segment_data_up): New.
5296 (struct sym_fns) <sym_segments>: Return a
5297 symfile_segment_data_up.
5298 (default_symfile_segments): Return a symfile_segment_data_up.
5299 (free_symfile_segment_data): Remove.
5300 (get_symfile_segment_data): Return a symfile_segment_data_up.
5301 * symfile.c (default_symfile_segments): Likewise.
5302 (get_symfile_segment_data): Likewise.
5303 (free_symfile_segment_data): Remove.
5304 (symfile_find_segment_sections): Update.
5305 * elfread.c (elf_symfile_segments): Return a
5306 symfile_segment_data_up.
5307 * remote.c (remote_target::get_offsets): Update.
5308 * solib-target.c (solib_target_relocate_section_addresses):
5309 Update.
5310 * symfile-debug.c (debug_sym_segments): Return a
5311 symfile_segment_data_up.
5312
5313 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5314
5315 PR build/25981
5316 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5317 Hardcode register numbers.
5318
5319 PR build/25981
5320 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5321 procfs_find_LDT_entry): Remove.
5322 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5323 procfs_find_LDT_entry): Remove.
5324 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5325 Remove.
5326
5327 2020-05-17 Pedro Alves <palves@redhat.com>
5328 Andrew Burgess <andrew.burgess@embecosm.com>
5329 Keno Fischer <keno@juliacomputing.com>
5330
5331 PR gdb/25741
5332 * breakpoint.c (build_target_condition_list): Update comments.
5333 (build_target_command_list): Update comments and skip matching
5334 locations.
5335 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5336 a separate function. Simplify "set breakpoint auto-hw off"
5337 handling.
5338 (insert_breakpoints): Update comment.
5339 (tracepoint_locations_match): New parameter. For breakpoints,
5340 compare location types too, if the caller wants to.
5341 (handle_automatic_hardware_breakpoints): New functions.
5342 (bp_location_is_less_than): Also sort by location type and
5343 hardware breakpoint length.
5344 (update_global_location_list): Handle "set breakpoint auto-hw on"
5345 here.
5346 (update_breakpoint_locations): Ask breakpoint_locations_match to
5347 ignore location types.
5348
5349 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5350
5351 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5352 type::name instead.
5353
5354 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5355
5356 * gdbtypes.h (struct type) <name, set_name>: New methods.
5357 (TYPE_CODE): Use type::name. Change all call sites used to set
5358 the name to use type::set_name instead.
5359
5360 2020-05-16 Tom Tromey <tom@tromey.com>
5361
5362 * top.c (quit_force): Update.
5363 * infrun.c (handle_no_resumed): Update.
5364 * top.h (all_uis): New function.
5365 (ALL_UIS): Remove.
5366
5367 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5368
5369 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5370
5371 2020-05-16 Pedro Alves <palves@redhat.com>
5372
5373 * ia64-linux-nat.c
5374 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5375 Declare method.
5376 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5377
5378 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5379
5380 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5381 (sparc64_adi_info): Likewise.
5382
5383 2020-05-15 Tom Tromey <tom@tromey.com>
5384
5385 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5386 block_objfile.
5387 (lookup_objfile_from_block): Remove.
5388 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5389 (lookup_global_symbol): Use block_objfile.
5390 * symtab.h (lookup_objfile_from_block): Don't declare.
5391 * printcmd.c (clear_dangling_display_expressions): Use
5392 block_objfile.
5393 * parse.c (operator_check_standard): Use block_objfile.
5394
5395 2020-05-15 Tom Tromey <tom@tromey.com>
5396
5397 * language.c (language_alloc_type_symbol): Set
5398 SYMBOL_SECTION.
5399 * symtab.c (initialize_objfile_symbol): Remove.
5400 (allocate_symbol): Remove.
5401 (allocate_template_symbol): Remove.
5402 * dwarf2/read.c (fixup_go_packaging): Use "new".
5403 (new_symbol): Use "new".
5404 (read_variable): Don't call initialize_objfile_symbol. Use
5405 "new".
5406 (read_func_scope): Use "new".
5407 * xcoffread.c (process_xcoff_symbol): Don't call
5408 initialize_objfile_symbol.
5409 (SYMBOL_DUP): Remove.
5410 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5411 "new".
5412 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5413 (allocate_template_symbol): Don't declare.
5414 (struct symbol): Add copy constructor. Change defaults.
5415 * jit.c (finalize_symtab): Use "new".
5416 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5417 Use "new".
5418 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5419 (common_block_end): Use "new".
5420 * mdebugread.c (parse_symbol): Use "new".
5421 (new_symbol): Likewise.
5422
5423 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5424
5425 * NEWS: Mention changes to help and apropos.
5426
5427 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5428
5429 * command.h (enum command_class): Improve comments, document
5430 that class_alias is for user-defined aliases, give the class
5431 name for each class, remove unused class_xdb.
5432 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5433 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5434 by a precise class.
5435 * infcmd.c (_initialize_infcmd): Likewise.
5436 * reverse.c (_initialize_reverse): Likewise.
5437 * stack.c (_initialize_stack): Likewise.
5438 * symfile.c (_initialize_symfile): Likewise.
5439 * tracepoint.c (_initialize_tracepoint): Likewise.
5440
5441 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5442
5443 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5444 when their aliased command is traversed.
5445 (help_cmd): Add fput_command_names_styled call to
5446 output command name and aliases when command has an alias.
5447
5448 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5449
5450 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5451 * cli/cli-decode.c (help_cmd_list): Declare as static,
5452 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5453 a command together with the command.
5454 (fput_command_name_styled, fput_command_names_styled): New functions.
5455 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5456 fput_command_name_styled.
5457 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5458 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5459
5460 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5461
5462 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5463 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5464 * command.h (cmd_show_list): Likewise.
5465 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5466 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5467
5468 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5469
5470 * unittests/command-def-selftests.c (traverse_command_structure):
5471 Verify all commands of a list have the same prefix command and
5472 that only the top cmdlist commands have a null prefix.
5473
5474 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5475
5476 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5477 as prefix, not one of its aliases.
5478 (set_cmd_prefix): Remove.
5479 (do_add_cmd): Centralize the setting of the prefix of a command, when
5480 command is defined after its full chain of prefix commands.
5481 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5482 (add_setshow_cmd_full): Likewise.
5483 (update_prefix_field_of_prefixed_commands): New function.
5484 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5485 update_prefix_field_of_prefixed_commands.
5486 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5487 addresses of remote_set_cmdlist and remote_show_cmdlist given
5488 as argument, not the address of an argument.
5489 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5490 * gdb/remote.c (_initialize_remote): Likewise.
5491
5492 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5493
5494 * cli/cli-cmds.c (alias_command): Check for an existing alias
5495 using lookup_cmd_composition, as valid_command_p is too strict
5496 and forbids aliases that are the prefix of an existing alias
5497 or command.
5498 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5499 command is properly recognised as a valid command.
5500
5501 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5502
5503 * unittests/help-doc-selftests.c: Rename to
5504 unittests/command-def-selftests.c
5505 * unittests/command-def-selftests.c (help_doc_tests): Update some
5506 comments.
5507 (command_structure_tests, traverse_command_structure): New namespace
5508 and function.
5509 (command_structure_invariants_tests): New function.
5510 (_initialize_command_def_selftests) Renamed from
5511 _initialize_help_doc_selftests, register command_structure_invariants
5512 selftest.
5513
5514 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5515
5516 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5517 an alias of 'show'.
5518
5519 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5520
5521 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5522 ada_is_fixed_point_type. Update all callers.
5523 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5524 all callers.
5525 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5526 Update all callers.
5527 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5528 print_fixed_point_type. Update all callers.
5529 * ada-valprint.c (ada_value_print_num): Replace call to
5530 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5531
5532 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5533
5534 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5535 processors.
5536 (cpu_supports_bts): Add CV_AMD case.
5537
5538 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5539 Simon Marchi <simon.marchi@efficios.com>
5540
5541 * infrun.c (stop_all_threads): Collect multiple wait events at
5542 each pass.
5543
5544 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5545
5546 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5547 type::code instead.
5548
5549 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5550
5551 * gdbtypes.h (struct type) <code, set_code>: New methods.
5552 (TYPE_CODE): Use type::code. Change all call sites used to set
5553 the code to use type::set_code instead.
5554
5555 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5556 Tom de Vries <tdevries@suse.de>
5557 Pedro Alves <palves@redhat.com>
5558
5559 PR threads/25478
5560 * infrun.c (stop_all_threads): Do NOT ignore
5561 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5562 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5563 received.
5564 (handle_no_resumed): Remove code handling a live inferior with no
5565 threads.
5566 * remote.c (has_single_non_exited_thread): New.
5567 (remote_target::update_thread_list): Do not delete a thread if is
5568 the last thread of the process.
5569 * thread.c (thread_select): Call delete_exited_threads instead of
5570 prune_threads.
5571
5572 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5573
5574 * infrun.c (stop_all_threads): Enable/disable thread events of all
5575 targets. Move a debug message denoting the end of the function
5576 into the SCOPED_EXIT block.
5577
5578 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5579
5580 * process-stratum-target.h: Include <set>.
5581 (all_non_exited_process_targets, switch_to_target_no_thread): New
5582 function declarations.
5583 * process-stratum-target.c (all_non_exited_process_targets)
5584 (switch_to_target_no_thread): New function implementations.
5585
5586 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5587
5588 * infrun.c (handle_inferior_event): Extract out a piece of code
5589 into...
5590 (mark_non_executing_threads): ...this new function.
5591
5592 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5593
5594 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5595 use.
5596
5597 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5598
5599 * regcache.c (regcache_read_pc_protected): New function
5600 implementation that returns 0 if the PC cannot read via
5601 'regcache_read_pc'.
5602 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5603 instead of 'regcache_read_pc'.
5604 (keep_going_pass_signal): Ditto.
5605
5606 2020-05-13 Tom Tromey <tromey@adacore.com>
5607
5608 * ada-lang.c (align_value): Remove.
5609 (ada_template_to_fixed_record_type_1): Use align_up.
5610
5611 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5612
5613 * async-event.c: Update the copyright year.
5614 * async-event.h: Update the copyright year.
5615
5616 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5617
5618 * objfiles.h (is_addr_in_objfile,
5619 shared_objfile_contains_address_p): Return bool.
5620 * objfile.c (is_addr_in_objfile,
5621 shared_objfile_contains_address_p): Return bool.
5622
5623 2020-05-11 Tom Tromey <tromey@adacore.com>
5624
5625 * cli/cli-cmds.c (info_command): Restore.
5626 (_initialize_cli_cmds): Use add_prefix_command for "info".
5627 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5628
5629 2020-05-11 Tom Tromey <tromey@adacore.com>
5630
5631 * ada-lang.c (ada_value_primitive_field): Now public.
5632 * ada-lang.h (ada_value_primitive_field): Declare.
5633 * ada-valprint.c (print_field_values): Use
5634 ada_value_primitive_field for wrapper fields.
5635
5636 2020-05-11 Tom de Vries <tdevries@suse.de>
5637
5638 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5639 MODULE_DOMAIN.
5640
5641 2020-05-11 Tom de Vries <tdevries@suse.de>
5642
5643 PR symtab/25941
5644 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5645 with length 0, if not gdb-produced.
5646 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5647
5648 2020-05-09 Tom de Vries <tdevries@suse.de>
5649
5650 PR gdb/25955
5651 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5652 calculation.
5653
5654 2020-05-09 Tom Tromey <tom@tromey.com>
5655
5656 * top.c (server_command): Now bool.
5657 * top.h (server_command): Now bool.
5658
5659 2020-05-08 Tom Tromey <tromey@adacore.com>
5660
5661 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5662 already being processed.
5663
5664 2020-05-08 Tom Tromey <tom@tromey.com>
5665
5666 * printcmd.c (struct display) <next>: Remove.
5667 <display>: New constructor.
5668 <exp_string>: Now a std::string.
5669 <enabled_p>: Now a bool.
5670 (display_number): Move definition earlier.
5671 (displays): Rename from display_chain. Now a std::vector.
5672 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5673 (display_command): Update.
5674 (do_one_display, disable_display)
5675 (enable_disable_display_command, do_enable_disable_display):
5676 Update.
5677 (free_display): Remove.
5678 (clear_displays): Rewrite.
5679 (delete_display): Update.
5680 (map_display_numbers): Use function_view. Remove "data"
5681 parameter. Update.
5682 (do_delete_display): Remove.
5683 (undisplay_command): Update.
5684 (do_one_display, do_displays, disable_display)
5685 (info_display_command): Update.
5686 (do_enable_disable_display): Remove.
5687 (enable_disable_display_command)
5688 (clear_dangling_display_expressions): Update.
5689
5690 2020-05-08 Tom Tromey <tom@tromey.com>
5691
5692 * symtab.c (set_symbol_cache_size)
5693 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5694 (maintenance_print_symbol_cache_statistics): Update.
5695 * symmisc.c (print_symbol_bcache_statistics)
5696 (print_objfile_statistics, maintenance_print_objfiles)
5697 (maintenance_info_symtabs, maintenance_check_symtabs)
5698 (maintenance_expand_symtabs, maintenance_info_line_tables):
5699 Update.
5700 * symfile-debug.c (set_debug_symfile): Update.
5701 * source.c (forget_cached_source_info): Update.
5702 * python/python.c (gdbpy_progspaces): Update.
5703 * psymtab.c (maintenance_info_psymtabs): Update.
5704 * probe.c (parse_probes): Update.
5705 * linespec.c (iterate_over_all_matching_symtabs)
5706 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5707 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5708 * exec.c (exec_target::close): Update.
5709 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5710 * breakpoint.c (print_one_breakpoint_location)
5711 (create_longjmp_master_breakpoint)
5712 (create_std_terminate_master_breakpoint): Update.
5713 * progspace.c (program_spaces): Now a std::vector.
5714 (maybe_new_address_space): Update.
5715 (add_program_space): Remove.
5716 (program_space::program_space): Update.
5717 (remove_program_space): Update.
5718 (number_of_program_spaces): Remove.
5719 (print_program_space, update_address_spaces): Update.
5720 * progspace.h (program_spaces): Change type.
5721 (ALL_PSPACES): Remove.
5722 (number_of_program_spaces): Don't declare.
5723 (struct program_space) <next>: Remove.
5724
5725 2020-05-08 Tom Tromey <tom@tromey.com>
5726
5727 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5728 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5729 (enable_break): Update.
5730 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5731 (frv_fdpic_find_canonical_descriptor): Update.
5732 (frv_fetch_objfile_link_map): Update.
5733 * progspace.c (program_space::free_all_objfiles): Update.
5734 (program_space::solibs): New method.
5735 * progspace.h (struct program_space) <solibs>: New method.
5736 * solist.h (master_so_list): Don't declare.
5737 (ALL_SO_LIBS): Remove.
5738 * solib.h (so_list_head): Remove.
5739 (update_solib_list): Update comment.
5740 * solib.c (master_so_list): Remove.
5741 (solib_used, update_solib_list, solib_add)
5742 (info_sharedlibrary_command, clear_solib)
5743 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5744
5745 2020-05-08 Tom Tromey <tom@tromey.com>
5746
5747 * extension.c (extension_languages): Now a std::array.
5748 (ALL_EXTENSION_LANGUAGES): Remove.
5749 (get_ext_lang_defn, get_ext_lang_of_file)
5750 (eval_ext_lang_from_control_command): Update.
5751 (finish_ext_lang_initialization)
5752 (auto_load_ext_lang_scripts_for_objfile)
5753 (ext_lang_type_printers::ext_lang_type_printers)
5754 (apply_ext_lang_type_printers)
5755 (ext_lang_type_printers::~ext_lang_type_printers)
5756 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5757 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5758 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5759 (get_matching_xmethod_workers, ext_lang_colorize)
5760 (ext_lang_before_prompt): Update.
5761 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5762
5763 2020-05-08 Tom Tromey <tom@tromey.com>
5764
5765 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5766 overload.
5767 <swap_string, m_string>: Remove.
5768 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5769 Update.
5770 * stabsread.c (define_symbol, read_type): Update.
5771 * linespec.c (find_linespec_symbols): Update.
5772 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5773 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5774 * dbxread.c (read_dbx_symtab): Update.
5775 * cp-support.h (cp_canonicalize_string_full)
5776 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5777 Return unique_xmalloc_ptr.
5778 * cp-support.c (inspect_type): Update.
5779 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5780 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5781 Likewise.
5782 * c-typeprint.c (print_name_maybe_canonical): Update.
5783 * break-catch-throw.c (check_status_exception_catchpoint):
5784 Update.
5785
5786 2020-05-08 Tom de Vries <tdevries@suse.de>
5787
5788 * infrun.c (follow_fork): Copy current_line and current_symtab to
5789 child thread.
5790
5791 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5792
5793 * async-event.c (struct async_signal_handler, struct
5794 async_event_handler): Reformat, remove typedef.
5795
5796 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5797
5798 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5799 access thistype->main_type->dyn_prop_list directly.
5800
5801 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5802
5803 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5804 (remove_dyn_prop): Remove. Update all users to use
5805 type::remove_dyn_prop.
5806 * gdbtypes.c (remove_dyn_prop): Rename to...
5807 (type::remove_dyn_prop): ... this.
5808
5809 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5810
5811 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5812 (add_dyn_prop): Remove. Update all users to use
5813 type::add_dyn_prop.
5814 * gdbtypes.c (add_dyn_prop): Rename to...
5815 (type::add_dyn_prop): ... this.
5816
5817 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5818
5819 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5820 (get_dyn_prop): Remove. Update all users to use
5821 type::dyn_prop.
5822 * gdbtypes.c (get_dyn_prop): Rename to...
5823 (type::dyn_prop): ... this.
5824
5825 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5828
5829 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5830
5831 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5832 instruction, skip it if it's there.
5833
5834 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5835
5836 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5837
5838 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5839
5840 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5841 * gdbtypes.c (recursive_dump_type): Remove use of
5842 TYPE_INCOMPLETE.
5843
5844 2020-05-03 Tom Tromey <tom@tromey.com>
5845
5846 * breakpoint.c (catch_command, tcatch_command): Remove.
5847 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5848 add_show_prefix_cmd.
5849 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5850 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5851 Remove.
5852 (add_internal_problem_command): Use add_basic_prefix_cmd,
5853 add_show_prefix_cmd.
5854 * mips-tdep.c (set_mipsfpu_command): Remove.
5855 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5856 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5857 (_initialize_index_cache): Use add_basic_prefix_cmd.
5858 * memattr.c (dummy_cmd): Remove.
5859 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5860 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5861 (_initialize_tui_win): Use add_basic_prefix_cmd,
5862 add_show_prefix_cmd.
5863 * cli/cli-logging.c (set_logging_command): Remove.
5864 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5865 add_show_prefix_cmd.
5866 (show_logging_command): Remove.
5867 * target.c (target_command): Remove.
5868 (add_target): Use add_basic_prefix_cmd.
5869
5870 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5871
5872 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5873
5874 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5875
5876 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5877 info_command.
5878
5879 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5880
5881 * nbsd-nat.c (nbsd_enable_proc_events)
5882 (nbsd_nat_target::post_startup_inferior): Add.
5883 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5884 (nbsd_nat_target::update_thread_list): Rewrite.
5885 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5886 "PTRACE_LWP_CREATE".
5887 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5888
5889 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5890
5891 * stack.c (_initialize_stack): Remove duplicated creation
5892 of "frame" command and "f" alias.
5893
5894 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5895
5896 PR gdb/18706
5897 * gdbtypes.c (check_typedef): Calculate size of array of
5898 stubbed type.
5899
5900 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5901
5902 PR gdb/15559
5903 * i386-tdep.c (i386_push_dummy_call): Call
5904 i386_thiscall_push_dummy_call.
5905 (i386_thiscall_push_dummy_call): New function.
5906 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5907 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5908 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5909
5910 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5911
5912 * gdbarch.sh (do_read): Add shellcheck disable directive for
5913 warning SC2162.
5914
5915 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5916
5917 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5918 "referenced but not assigned" warning.
5919
5920 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * gdbarch.sh: Remove code that sets fallbackdefault.
5923
5924 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5925
5926 * gdbarch.sh: Use shell operators && and || instead of
5927 -a and -o.
5928
5929 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5930
5931 * gdbarch.sh: Use $(...) instead of `...`.
5932
5933 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5934
5935 * gdbarch.sh: Use double quotes around variables.
5936
5937 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5938
5939 * gdbarch.sh: Use %s with printf, instead of variables in the
5940 format string.
5941
5942 2020-04-29 Tom Tromey <tromey@adacore.com>
5943
5944 PR ada/25875:
5945 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5946 type fields here.
5947 (read_enumeration_type): Call
5948 update_enumeration_type_from_children later. Update comments.
5949 (process_enumeration_scope): Don't create type fields.
5950
5951 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5952
5953 * nbsd-tdep.c: Include "xml-syscall.h".
5954 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5955
5956 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5957
5958 * nbsd-nat.c: Include "sys/wait.h".
5959 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5960 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5961 (nbsd_nat_target::remove_exec_catchpoint)
5962 (nbsd_nat_target::set_syscall_catchpoint): Add.
5963 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5964 (nbsd_nat_target::insert_exec_catchpoint)
5965 (nbsd_nat_target::remove_exec_catchpoint)
5966 (nbsd_nat_target::set_syscall_catchpoint): Add.
5967 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5968 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5969 `nbsd_get_syscall_number'.
5970
5971 2020-04-29 Tom Tromey <tom@tromey.com>
5972
5973 * stack.c (print_block_frame_labels): Remove.
5974
5975 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5976
5977 PR gdb/17320
5978 * ada-valprint.c (val_print_packed_array_elements): Move array
5979 end bracket to new line.
5980 (ada_val_print_string): Remove extra spaces before first array
5981 element.
5982 * c-valprint.c (c_value_print_array): Likewise.
5983 * m2-valprint.c (m2_print_array_contents): Likewise.
5984 (m2_value_print_inner): Likewise.
5985 * p-valprint.c (pascal_value_print_inner): Likewise.
5986 * valprint.c (generic_val_print_array): Likewise.
5987 (value_print_array_elements): Move first array element and array
5988 end bracket to new line.
5989
5990 2020-04-29 Tom de Vries <tdevries@suse.de>
5991
5992 PR symtab/25889
5993 * linespec.c (find_method): Fix ix calculation.
5994
5995 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5996
5997 * syscalls/update-netbsd.sh: New file.
5998 * syscalls/netbsd.xml: Regenerate.
5999 * data-directory/Makefile.in: Register `netbsd.xml' in
6000 `SYSCALLS_FILES'.
6001
6002 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6003
6004 * syscalls/update-freebsd.sh: Add double quotes.
6005
6006 2020-04-28 Tom Tromey <tom@tromey.com>
6007
6008 * NEWS: Update.
6009 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6010 (cmdpy_init): Allow class_tui.
6011
6012 2020-04-28 Mark Williams <mark@myosotissp.com>
6013
6014 PR gdb/24480
6015 * dwarf2read.c: Add missing assingments to list_in_scope when
6016 start_symtab was already called.
6017
6018 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6019
6020 PR gdb/25881
6021 * dwarf2/read.c (offset_map_type): Use
6022 gdb:hash_enum<sect_offset> as hash function.
6023
6024 2020-04-28 Tom de Vries <tdevries@suse.de>
6025
6026 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6027 with DW_AT_signature.
6028
6029 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6030
6031 * configure.ac: Remove check for fs_base/gs_base in
6032 user_regs_struct.
6033 * configure: Re-generate.
6034 * config.in: Re-generate.
6035 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6036 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6037 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6038
6039 2020-04-27 Luis Machado <luis.machado@linaro.org>
6040
6041 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6042 problematic inline frame unwinding situation.
6043 * frame.c (frame_id_computed_p): New function.
6044 * frame.h (frame_id_computed_p): New prototype.
6045
6046 2020-04-26 Tom Tromey <tom@tromey.com>
6047
6048 * command.h (enum command_class) <class_pseudo>: Remove.
6049
6050 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6051
6052 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6053 and whitespace.
6054
6055 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6056
6057 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6058 `PT_GET_PROCESS_STATE' block.
6059
6060 2020-04-24 Tom Tromey <tom@tromey.com>
6061
6062 * symtab.h (symbol_get_demangled_name): Don't declare.
6063 * symtab.c (symbol_get_demangled_name): Remove.
6064 (general_symbol_info::natural_name)
6065 (general_symbol_info::demangled_name): Update.
6066
6067 2020-04-24 Tom Tromey <tom@tromey.com>
6068
6069 PR rust/25025:
6070 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6071
6072 2020-04-24 Tom Tromey <tom@tromey.com>
6073
6074 PR symtab/12707:
6075 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6076 exists.
6077 (new_symbol): Likewise.
6078 * compile/compile-object-load.c (get_out_value_type): Use
6079 symbol_matches_search_name.
6080
6081 2020-04-24 Tom Tromey <tom@tromey.com>
6082
6083 * dwarf2/read.c (add_partial_symbol): Do not call
6084 compute_and_set_names.
6085
6086 2020-04-24 Tom Tromey <tom@tromey.com>
6087
6088 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6089 overload.
6090
6091 2020-04-24 Tom Tromey <tom@tromey.com>
6092
6093 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6094 (add_psymbol_to_list): New overload. Make old overload call new
6095 one.
6096 * psympriv.h (add_psymbol_to_list): New overload.
6097
6098 2020-04-24 Tom Tromey <tom@tromey.com>
6099
6100 * dwarf2/read.c (partial_die_info::read) <case
6101 DW_AT_linkage_name>: Use value_as_string.
6102 (dwarf2_string_attr): Use value_as_string.
6103 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6104 method.
6105 * dwarf2/attribute.c (attribute::value_as_string): New method.
6106
6107 2020-04-24 Tom Tromey <tom@tromey.com>
6108
6109 * symtab.c (general_symbol_info::natural_name)
6110 (general_symbol_info::demangled_name): Check for language_rust.
6111
6112 2020-04-24 Tom Tromey <tom@tromey.com>
6113
6114 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6115 (dwarf2_physname): ... from here.
6116 (partial_die_info::read): Add Rust "{" hack.
6117
6118 2020-04-24 Tom Tromey <tom@tromey.com>
6119
6120 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6121 method.
6122 (symbol_set_demangled_name): Don't declare.
6123 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6124 symbol_set_demangled_name.
6125 (general_symbol_info::set_language)
6126 (general_symbol_info::compute_and_set_names): Update.
6127 * minsyms.c (minimal_symbol_reader::install): Update.
6128 * dwarf2/read.c (new_symbol): Update.
6129
6130 2020-04-24 Tom Tromey <tromey@adacore.com>
6131
6132 PR python/23662:
6133 * python/py-type.c (convert_field): Handle
6134 FIELD_LOC_KIND_DWARF_BLOCK.
6135 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6136 (typy_get_dynamic): Nw function.
6137 (type_object_getset): Add "dynamic".
6138 * NEWS: Add entry.
6139
6140 2020-04-24 Tom Tromey <tromey@adacore.com>
6141
6142 * ada-typeprint.c (print_choices, print_variant_part)
6143 (print_record_field_types_dynamic): New functions.
6144 (print_record_field_types): Use print_record_field_types_dynamic.
6145
6146 2020-04-24 Tom Tromey <tromey@adacore.com>
6147
6148 * dwarf2/read.c (handle_data_member_location): New overload.
6149 (dwarf2_add_field): Use it.
6150 (decode_locdesc): Add "computed" parameter. Update comment.
6151 * gdbtypes.c (is_dynamic_type_internal): Also look for
6152 FIELD_LOC_KIND_DWARF_BLOCK.
6153 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6154 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6155 virtual base classes.
6156 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6157 FIELD_LOC_KIND_DWARF_BLOCK.
6158
6159 2020-04-24 Tom Tromey <tromey@adacore.com>
6160
6161 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6162 * gdbtypes.c (is_dynamic_type_internal): Check
6163 TYPE_HAS_DYNAMIC_LENGTH.
6164 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6165 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6166 New macros.
6167 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6168 constant.
6169
6170 2020-04-24 Tom Tromey <tromey@adacore.com>
6171
6172 * dwarf2/read.c (struct variant_field): Rewrite.
6173 (struct variant_part_builder): New.
6174 (struct nextfield): Remove "variant" field. Add "offset".
6175 (struct field_info): Add "current_variant_part" and
6176 "variant_parts".
6177 (alloc_discriminant_info): Remove.
6178 (alloc_rust_variant): New function.
6179 (quirk_rust_enum): Update.
6180 (dwarf2_add_field): Set "offset" member. Don't handle
6181 DW_TAG_variant_part.
6182 (offset_map_type): New typedef.
6183 (convert_variant_range, create_one_variant)
6184 (create_one_variant_part, create_variant_parts)
6185 (add_variant_property): New functions.
6186 (dwarf2_attach_fields_to_type): Call add_variant_property.
6187 (read_structure_type): Don't handle DW_TAG_variant_part.
6188 (handle_variant_part, handle_variant): New functions.
6189 (handle_struct_member_die): Use them.
6190 (process_structure_scope): Don't handle variant parts.
6191 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6192 (struct discriminant_info): Remove.
6193 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6194 (struct main_type) <flag_discriminated_union>: Remove.
6195 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6196 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6197 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6198 Update.
6199 * valops.c (value_union_variant): Remove.
6200 * value.h (value_union_variant): Don't declare.
6201
6202 2020-04-24 Tom Tromey <tromey@adacore.com>
6203
6204 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6205 (ada_value_primitive_packed_val): Update.
6206 * ada-valprint.c (ada_value_print_1): Update.
6207 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6208 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6209 just an address. Use evaluate_for_locexpr_baton.
6210 (dwarf2_evaluate_property): Update.
6211 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6212 array_view.
6213 * findvar.c (default_read_var_value): Update.
6214 * gdbtypes.c (compute_variant_fields_inner)
6215 (resolve_dynamic_type_internal): Update.
6216 (resolve_dynamic_type): Change type of valaddr parameter.
6217 * gdbtypes.h (resolve_dynamic_type): Update.
6218 * valarith.c (value_subscripted_rvalue): Update.
6219 * value.c (value_from_contents_and_address): Update.
6220
6221 2020-04-24 Tom Tromey <tromey@adacore.com>
6222
6223 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6224 "push_initial_value" parameter.
6225 (dwarf2_evaluate_property): Likewise.
6226 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6227
6228 2020-04-24 Tom Tromey <tromey@adacore.com>
6229
6230 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6231 (variant::matches, compute_variant_fields_recurse)
6232 (compute_variant_fields_inner, compute_variant_fields): New
6233 functions.
6234 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6235 Use resolved_type after type is made.
6236 (operator==): Add new cases.
6237 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6238 (struct discriminant_range, struct variant, struct variant_part):
6239 New.
6240 (union dynamic_prop_data) <variant_parts, original_type>: New
6241 members.
6242 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6243 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6244 constants.
6245 * value.c (unpack_bits_as_long): Now public.
6246 * value.h (unpack_bits_as_long): Declare.
6247
6248 2020-04-24 Tom Tromey <tromey@adacore.com>
6249
6250 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6251 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6252
6253 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6254
6255 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6256
6257 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6258
6259 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6260 (remove_fork_catchpoint, post_startup_inferior)
6261 (post_attach): Move...
6262 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6263 (remove_fork_catchpoint, post_startup_inferior)
6264 (post_attach): ...here.
6265 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6266 (remove_fork_catchpoint, post_startup_inferior)
6267 (post_attach): Move...
6268 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6269 (remove_fork_catchpoint, post_startup_inferior)
6270 (post_attach): ...here.
6271
6272 2020-04-24 Tom Tromey <tromey@adacore.com>
6273
6274 * nat/windows-nat.h (struct windows_thread_info)
6275 <pc_adjusted>: New member.
6276 * windows-nat.c (windows_fetch_one_register): Check
6277 pc_adjusted.
6278 (windows_nat_target::get_windows_debug_event)
6279 (windows_nat_target::wait): Set pc_adjusted.
6280
6281 2020-04-24 Tom de Vries <tdevries@suse.de>
6282
6283 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6284 Run gdb-add-index inside temp dir.
6285
6286 2020-04-23 Tom Tromey <tromey@adacore.com>
6287
6288 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6289 in loop.
6290
6291 2020-04-23 Luis Machado <luis.machado@linaro.org>
6292
6293 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6294 get_frame_register instead of gdbarch_unwind_pc.
6295
6296 2020-04-23 Tom de Vries <tdevries@suse.de>
6297
6298 * symtab.c (lookup_global_symbol): Prefer def over decl.
6299
6300 2020-04-23 Tom de Vries <tdevries@suse.de>
6301
6302 PR symtab/25807
6303 * block.c (best_symbol, better_symbol): Promote to external.
6304 * block.h (best_symbol, better_symbol): Declare.
6305 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6306 decl.
6307
6308 2020-04-23 Tom Tromey <tromey@adacore.com>
6309
6310 PR ada/25837:
6311 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6312 "const char *", not a "const std::string &".
6313 <name_and_matcher::operator==>: Update.
6314 * unittests/lookup_name_info-selftests.c: Change type of
6315 "result".
6316
6317 2020-04-23 Tom Tromey <tom@tromey.com>
6318
6319 * inferior.h (iterate_over_inferiors): Don't declare.
6320 * inferior.c (iterate_over_inferiors): Remove.
6321 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6322 Remove.
6323 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6324 use iterate_over_inferiors.
6325 (darwin_resume_inferior_it)
6326 (struct resume_inferior_threads_param)
6327 (darwin_resume_inferior_threads_it): Remove.
6328 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6329
6330 2020-04-23 Tom de Vries <tdevries@suse.de>
6331
6332 * blockframe.c (find_pc_partial_function): Use
6333 find_pc_sect_compunit_symtab rather than
6334 objfile->sf->qf->find_pc_sect_compunit_symtab.
6335
6336 2020-04-22 Tom de Vries <tdevries@suse.de>
6337
6338 PR symtab/25764
6339 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6340 in psymtabs.
6341
6342 2020-04-22 Tom de Vries <tdevries@suse.de>
6343
6344 PR symtab/25801
6345 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6346 symtabs.
6347
6348 2020-04-22 Tom de Vries <tdevries@suse.de>
6349
6350 PR symtab/25700
6351 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6352 CU if already created.
6353
6354 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6355
6356 * infrun.c (displaced_step_fixup): Switch to the event_thread
6357 before calling displaced_step_restore, not after.
6358
6359 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6360
6361 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6362 its inferior is not recorded by us.
6363 (record_btrace_target_open): Replace call to
6364 all_non_exited_threads () with call to current_inferior
6365 ()->non_exited_threads ().
6366 (record_btrace_target::stop_recording): Likewise.
6367 (record_btrace_target::close): Likewise.
6368 (record_btrace_target::wait): Likewise.
6369 (record_btrace_target::record_stop_replaying): Likewise.
6370
6371 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6372
6373 * btrace.c (btrace_enable): Throw an error on double enables and
6374 when enabling recording fails.
6375 (btrace_disable): Throw an error if the thread is not recorded.
6376
6377 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6378
6379 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6380 request if we do not have a thread_info.
6381
6382 2020-04-21 Tom de Vries <tdevries@suse.de>
6383
6384 PR gdb/25471
6385 * thread.c
6386 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6387 exception in get_frame_id.
6388
6389 2020-04-20 Tom Tromey <tromey@adacore.com>
6390
6391 * python/python.c (struct gdbpy_event): Mark move constructor as
6392 noexcept.
6393 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6394 constructor as noexcept.
6395 * completer.h (struct completion_result): Mark move constructor as
6396 noexcept.
6397 * completer.c (completion_result::completion_result): Use
6398 initialization style. Don't call reset_match_list.
6399
6400 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6401
6402 * MAINTAINERS (Write After Approval): Add myself.
6403
6404 2020-04-18 Tom Tromey <tom@tromey.com>
6405
6406 * windows-tdep.c (init_w32_command_list)
6407 (w32_prefix_command_valid): Restore.
6408 (_initialize_windows_tdep): Call init_w32_command_list.
6409
6410 2020-04-18 Tom Tromey <tom@tromey.com>
6411
6412 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6413 * value.c (value_fn_field): Update.
6414 * valops.c (find_function_in_inferior)
6415 (value_allocate_space_in_inferior): Update.
6416 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6417 Update.
6418 * tui/tui-source.c (tui_source_window::set_contents): Update.
6419 * symtab.c (lookup_global_or_static_symbol)
6420 (find_function_start_sal_1, skip_prologue_sal)
6421 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6422 * symmisc.c (dump_msymbols, dump_symtab_1)
6423 (maintenance_print_one_line_table): Update.
6424 * symfile.c (init_entry_point_info, section_is_mapped)
6425 (list_overlays_command, simple_read_overlay_table)
6426 (simple_overlay_update_1): Update.
6427 * stap-probe.c (handle_stap_probe): Update.
6428 * stabsread.c (dbx_init_float_type, define_symbol)
6429 (read_one_struct_field, read_enum_type, read_range_type): Update.
6430 * source.c (info_line_command): Update.
6431 * python/python.c (gdbpy_source_objfile_script)
6432 (gdbpy_execute_objfile_script): Update.
6433 * python/py-type.c (save_objfile_types): Update.
6434 * python/py-objfile.c (py_free_objfile): Update.
6435 * python/py-inferior.c (python_new_objfile): Update.
6436 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6437 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6438 (maintenance_check_psymtabs): Update.
6439 * printcmd.c (info_address_command): Update.
6440 * objfiles.h (struct objfile) <arch>: New method, from
6441 get_objfile_arch.
6442 (get_objfile_arch): Don't declare.
6443 * objfiles.c (get_objfile_arch): Remove.
6444 (filter_overlapping_sections): Update.
6445 * minsyms.c (msymbol_is_function): Update.
6446 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6447 (output_nondebug_symbol): Update.
6448 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6449 (mdebug_expand_psymtab): Update.
6450 * machoread.c (macho_add_oso_symfile): Update.
6451 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6452 Update.
6453 * linux-fork.c (checkpoint_command): Update.
6454 * linespec.c (convert_linespec_to_sals): Update.
6455 * jit.c (finalize_symtab): Update.
6456 * infrun.c (insert_exception_resume_from_probe): Update.
6457 * ia64-tdep.c (ia64_find_unwind_table): Update.
6458 * hppa-tdep.c (internalize_unwinds): Update.
6459 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6460 Update.
6461 * gcore.c (call_target_sbrk): Update.
6462 * elfread.c (record_minimal_symbol, elf_symtab_read)
6463 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6464 (elf_gnu_ifunc_resolve_by_got): Update.
6465 * dwarf2/read.c (create_addrmap_from_index)
6466 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6467 (read_debug_names_from_section)
6468 (process_psymtab_comp_unit_reader, add_partial_symbol)
6469 (add_partial_subprogram, process_full_comp_unit)
6470 (read_file_scope, read_func_scope, read_lexical_block_scope)
6471 (read_call_site_scope, dwarf2_ranges_read)
6472 (dwarf2_record_block_ranges, dwarf2_add_field)
6473 (mark_common_block_symbol_computed, read_tag_pointer_type)
6474 (read_tag_string_type, dwarf2_init_float_type)
6475 (dwarf2_init_complex_target_type, read_base_type)
6476 (partial_die_info::read, partial_die_info::read)
6477 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6478 (dwarf2_fetch_die_loc_sect_off): Update.
6479 * dwarf2/loc.c (dwarf2_find_location_expression)
6480 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6481 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6482 (dwarf2_loc_desc_get_symbol_read_needs)
6483 (locexpr_describe_location_piece, locexpr_describe_location_1)
6484 (loclist_describe_location): Update.
6485 * dwarf2/index-write.c (write_debug_names): Update.
6486 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6487 * dtrace-probe.c (dtrace_process_dof): Update.
6488 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6489 (process_one_symbol): Update.
6490 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6491 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6492 (coff_read_enum_type): Update.
6493 * cli/cli-cmds.c (edit_command, list_command): Update.
6494 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6495 * breakpoint.c (create_overlay_event_breakpoint)
6496 (create_longjmp_master_breakpoint)
6497 (create_std_terminate_master_breakpoint)
6498 (create_exception_master_breakpoint, get_sal_arch): Update.
6499 * block.c (block_gdbarch): Update.
6500 * annotate.c (annotate_source_line): Update.
6501
6502 2020-04-17 Tom Tromey <tromey@adacore.com>
6503
6504 * auto-load.c (show_auto_load_cmd): Remove.
6505 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6506 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6507 (maintenance_print_arc_command): Remove.
6508 * tui/tui-win.c (tui_command): Remove.
6509 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6510 * tui/tui-layout.c (tui_layout_command): Remove.
6511 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6512 * python/python.c (user_set_python, user_show_python): Remove.
6513 (_initialize_python): Use add_basic_prefix_cmd,
6514 add_show_prefix_cmd.
6515 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6516 (install_gdb_commands): Use add_basic_prefix_cmd,
6517 add_show_prefix_cmd.
6518 (info_guile_command): Remove.
6519 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6520 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6521 add_show_prefix_cmd.
6522 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6523 Remove do_set and do_show parameters.
6524 * cli/cli-style.c (set_style, show_style): Remove.
6525 (_initialize_cli_style): Use add_basic_prefix_cmd,
6526 add_show_prefix_cmd.
6527 (cli_style_option::add_setshow_commands): Remove do_set and
6528 do_show parameters.
6529 (cli_style_option::add_setshow_commands): Use
6530 add_basic_prefix_cmd, add_show_prefix_cmd.
6531 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6532 (set_style_name): Remove.
6533 * cli/cli-dump.c (dump_command, append_command): Remove.
6534 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6535 (tekhex_dump_command, binary_dump_command)
6536 (binary_append_command): Remove.
6537 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6538 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6539 (init_w32_command_list): Remove; move into ...
6540 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6541 * valprint.c (set_print, show_print, set_print_raw)
6542 (show_print_raw): Remove.
6543 (_initialize_valprint): Use add_basic_prefix_cmd,
6544 add_show_prefix_cmd.
6545 * typeprint.c (set_print_type, show_print_type): Remove.
6546 (_initialize_typeprint): Use add_basic_prefix_cmd,
6547 add_show_prefix_cmd.
6548 * record.c (set_record_command, show_record_command): Remove.
6549 (_initialize_record): Use add_basic_prefix_cmd,
6550 add_show_prefix_cmd.
6551 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6552 add_show_prefix_cmd.
6553 (info_command, show_command, set_debug, show_debug): Remove.
6554 * top.h (set_history, show_history): Don't declare.
6555 * top.c (set_history, show_history): Remove.
6556 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6557 (unset_tdesc_cmd): Remove.
6558 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6559 add_show_prefix_cmd.
6560 * symtab.c (info_module_command): Remove.
6561 (_initialize_symtab): Use add_basic_prefix_cmd.
6562 * symfile.c (overlay_command): Remove.
6563 (_initialize_symfile): Use add_basic_prefix_cmd.
6564 * sparc64-tdep.c (info_adi_command): Remove.
6565 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6566 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6567 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6568 add_show_prefix_cmd.
6569 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6570 (_initialize_serial): Use add_basic_prefix_cmd,
6571 add_show_prefix_cmd.
6572 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6573 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6574 add_show_prefix_cmd.
6575 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6576 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6577 add_show_prefix_cmd.
6578 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6579 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6580 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6581 add_show_prefix_cmd.
6582 * remote.c (remote_command, set_remote_cmd): Remove.
6583 (_initialize_remote): Use add_basic_prefix_cmd.
6584 * record-full.c (set_record_full_command)
6585 (show_record_full_command): Remove.
6586 (_initialize_record_full): Use add_basic_prefix_cmd,
6587 add_show_prefix_cmd.
6588 * record-btrace.c (cmd_set_record_btrace)
6589 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6590 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6591 (cmd_show_record_btrace_pt): Remove.
6592 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6593 add_show_prefix_cmd.
6594 * ravenscar-thread.c (set_ravenscar_command)
6595 (show_ravenscar_command): Remove.
6596 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6597 add_show_prefix_cmd.
6598 * mips-tdep.c (show_mips_command, set_mips_command)
6599 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6600 add_show_prefix_cmd.
6601 * maint.c (maintenance_command, maintenance_info_command)
6602 (maintenance_check_command, maintenance_print_command)
6603 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6604 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6605 add_show_prefix_cmd.
6606 (show_per_command_cmd): Remove.
6607 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6608 Remove.
6609 (maintenance_show_test_settings_cmd): Remove.
6610 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6611 add_show_prefix_cmd.
6612 * maint-test-options.c (maintenance_test_options_command):
6613 Remove.
6614 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6615 * macrocmd.c (macro_command): Remove
6616 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6617 * language.c (set_check, show_check): Remove.
6618 (_initialize_language): Use add_basic_prefix_cmd,
6619 add_show_prefix_cmd.
6620 * infcmd.c (unset_command): Remove.
6621 (_initialize_infcmd): Use add_basic_prefix_cmd.
6622 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6623 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6624 add_show_prefix_cmd.
6625 * go32-nat.c (go32_info_dos_command): Remove.
6626 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6627 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6628 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6629 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6630 (_initialize_frame): Use add_basic_prefix_cmd,
6631 add_show_prefix_cmd.
6632 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6633 (_initialize_dcache): Use add_basic_prefix_cmd,
6634 add_show_prefix_cmd.
6635 * cp-support.c (maint_cplus_command): Remove.
6636 (_initialize_cp_support): Use add_basic_prefix_cmd.
6637 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6638 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6639 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6640 add_basic_prefix_cmd, add_show_prefix_cmd.
6641 * breakpoint.c (save_command): Remove.
6642 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6643 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6644 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6645 add_show_prefix_cmd.
6646 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6647 (set_ada_command, show_ada_command): Remove.
6648 (_initialize_ada_language): Use add_basic_prefix_cmd,
6649 add_show_prefix_cmd.
6650 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6651
6652 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6653
6654 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6655 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6656
6657 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6658
6659 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6660 warning messages.
6661
6662 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6663
6664 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6665 import table is not at beginning of .idata section.
6666
6667 2020-04-16 Pedro Alves <palves@redhat.com>
6668
6669 * inferior.c (delete_inferior): Use delete operator directly
6670 instead of delete_program_space.
6671 * progspace.c (add_program_space): New, factored out from
6672 program_space::program_space.
6673 (remove_program_space): New, factored out from
6674 delete_program_space.
6675 (program_space::program_space): Remove intro comment. Rewrite.
6676 (program_space::~program_space): Remove intro comment. Call
6677 remove_program_space.
6678 (delete_program_space): Delete.
6679 * progspace.h (program_space::program_space): Make explicit. Move
6680 intro comment here, adjusted.
6681 (program_space::~program_space): Move intro comment here,
6682 adjusted.
6683 (delete_program_space): Remove.
6684
6685 2020-04-16 Tom Tromey <tromey@adacore.com>
6686
6687 * windows-nat.c (windows_nat::handle_access_violation): New
6688 function.
6689 * nat/windows-nat.h (handle_access_violation): Declare.
6690 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6691 windows-nat.c. Call handle_access_violation.
6692
6693 2020-04-16 Tom de Vries <tdevries@suse.de>
6694
6695 PR symtab/25791
6696 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6697 CUs without psymtab.
6698
6699 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6700
6701 * python/python.c (do_start_initialization): Don't call
6702 PyEval_InitThreads for Python 3.9 and beyond.
6703
6704 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6705
6706 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6707 thread functions.
6708 (obsd_nat_target::wait): Likewise.
6709
6710 2020-04-15 Tom Tromey <tromey@adacore.com>
6711
6712 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6713 (DEBUG_EXCEPT): Use debug_printf.
6714
6715 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6716
6717 * completer.c (class completion_tracker::completion_hash_entry)
6718 <hash_name>: New member function.
6719 (completion_tracker::discard_completions): New callback to hash a
6720 completion_hash_entry, pass this to htab_create_alloc.
6721
6722 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6723
6724 * windows-nat.c (windows_make_so): Warn rather than stopping with
6725 an error if realpath() fails.
6726
6727 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6728
6729 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6730 (nbsd_nat_target::info_proc): Add do_status.
6731
6732 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6733 Tom de Vries <tdevries@suse.de>
6734
6735 PR symtab/25718
6736 * psympriv.h (struct partial_symtab::read_symtab)
6737 (struct partial_symtab::expand_psymtab)
6738 (struct partial_symtab::read_dependencies): Update comments.
6739 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6740 read_symtab for includer.
6741 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6742 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6743 (struct dwarf2_include_psymtab::m_readin): Remove.
6744 (struct dwarf2_include_psymtab::includer): New member function.
6745 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6746
6747 2020-04-14 Tom de Vries <tdevries@suse.de>
6748
6749 PR symtab/25720
6750 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6751 with NULL symbol_matcher and lookup_name.
6752 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6753 and lookup_name.
6754 * dwarf2/read.c (dw2_expand_symtabs_matching)
6755 (dw2_debug_names_expand_symtabs_matching): Same.
6756 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6757 Make lookup_name a pointer. Update comment.
6758 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6759 lookup_name being a pointer.
6760 * symfile.c (expand_symtabs_matching): Same.
6761 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6762 * linespec.c (iterate_over_all_matching_symtabs): Same.
6763
6764 2020-04-13 Tom Tromey <tom@tromey.com>
6765
6766 * run-on-main-thread.c: Update include.
6767 * unittests/main-thread-selftests.c: Update include.
6768 * tui/tui-win.c: Update include.
6769 * tui/tui-io.c: Update include.
6770 * tui/tui-interp.c: Update include.
6771 * tui/tui-hooks.c: Update include.
6772 * top.h: Update include.
6773 * top.c: Update include.
6774 * ser-base.c: Update include.
6775 * remote.c: Update include.
6776 * remote-notif.c: Update include.
6777 * remote-fileio.c: Update include.
6778 * record-full.c: Update include.
6779 * record-btrace.c: Update include.
6780 * python/python.c: Update include.
6781 * posix-hdep.c: Update include.
6782 * mingw-hdep.c: Update include.
6783 * mi/mi-main.c: Update include.
6784 * mi/mi-interp.c: Update include.
6785 * main.c: Update include.
6786 * linux-nat.c: Update include.
6787 * interps.c: Update include.
6788 * infrun.c: Update include.
6789 * inf-loop.c: Update include.
6790 * event-top.c: Update include.
6791 * event-loop.c: Move to ../gdbsupport/.
6792 * event-loop.h: Move to ../gdbsupport/.
6793 * async-event.h: Update include.
6794 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6795
6796 2020-04-13 Tom Tromey <tom@tromey.com>
6797
6798 * tui/tui-win.c: Include async-event.h.
6799 * remote.c: Include async-event.h.
6800 * remote-notif.c: Include async-event.h.
6801 * record-full.c: Include async-event.h.
6802 * record-btrace.c: Include async-event.h.
6803 * infrun.c: Include async-event.h.
6804 * event-top.c: Include async-event.h.
6805 * event-loop.h: Move some declarations to async-event.h.
6806 * event-loop.c: Don't include ser-event.h or top.h. Move some
6807 code to async-event.c.
6808 * async-event.h: New file.
6809 * async-event.c: New file.
6810 * Makefile.in (COMMON_SFILES): Add async-event.c.
6811 (HFILES_NO_SRCDIR): Add async-event.h.
6812
6813 2020-04-13 Tom Tromey <tom@tromey.com>
6814
6815 * utils.c (flush_streams): New function.
6816 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6817
6818 2020-04-13 Tom Tromey <tom@tromey.com>
6819
6820 * event-loop.c (handle_file_event): Use warning, not
6821 printf_unfiltered.
6822
6823 2020-04-13 Tom Tromey <tom@tromey.com>
6824
6825 * event-loop.c: Include <chrono>.
6826
6827 2020-04-13 Tom Tromey <tom@tromey.com>
6828
6829 * gdb_select.h: Move to ../gdbsupport/.
6830 * event-loop.c: Update include path.
6831 * top.c: Update include path.
6832 * ser-base.c: Update include path.
6833 * ui-file.c: Update include path.
6834 * ser-tcp.c: Update include path.
6835 * guile/scm-ports.c: Update include path.
6836 * posix-hdep.c: Update include path.
6837 * ser-unix.c: Update include path.
6838 * gdb_usleep.c: Update include path.
6839 * mingw-hdep.c: Update include path.
6840 * inflow.c: Update include path.
6841 * infrun.c: Update include path.
6842 * event-top.c: Update include path.
6843
6844 2020-04-13 Tom Tromey <tom@tromey.com>
6845
6846 * configure: Rebuild.
6847 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6848
6849 2020-04-13 Tom Tromey <tom@tromey.com>
6850
6851 * event-loop.h (start_event_loop): Don't declare.
6852 * event-loop.c (start_event_loop): Move...
6853 * main.c (start_event_loop): ...here. Now static.
6854
6855 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6856
6857 * MAINTAINERS: Update my email address.
6858
6859 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6860
6861 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6862 IP_ALL.
6863
6864 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6865
6866 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6867 (nbsd_nat_target::info_proc): Add do_cmdline.
6868
6869 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6870
6871 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6872 (nbsd_nat_target::info_proc): Add do_cwd.
6873
6874 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6875
6876 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6877
6878 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6879
6880 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6881 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6882 (nbsd_nat_target::info_proc): New functions.
6883 * nbsd-nat.c (kinfo_get_vmmap): New function.
6884 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6885 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6886 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6887 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6888 functions.
6889 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6890 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6891 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6892 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6893 (KINFO_VME_FLAG_GROWS_DOWN): New.
6894
6895 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6896
6897 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6898 bit shift.
6899
6900 2020-04-10 Tom Tromey <tromey@adacore.com>
6901
6902 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6903
6904 2020-04-10 Tom Tromey <tromey@adacore.com>
6905
6906 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6907 separate debug files.
6908
6909 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6910
6911 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6912 Move to...
6913 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6914 ... here.
6915 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6916 Check for STATUS_WX86_BREAKPOINT.
6917 (windows_nat_target::wait): Same.
6918
6919 2020-04-10 Tom de Vries <tdevries@suse.de>
6920
6921 PR cli/25808
6922 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6923
6924 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6925
6926 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6927 (Write After Approval): Remove Tom de Vries.
6928
6929 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6930
6931 revert partially:
6932 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6933
6934 * buildsym.c (record_line): Fix undefined behavior and preserve
6935 lines at eof.
6936
6937 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6938
6939 * auxv.h (svr4_auxv_parse): New.
6940 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6941 and generic_auxv_parse.
6942 (svr4_auxv_parse): Add.
6943 * obsd-tdep.c: Include "auxv.h".
6944 (obsd_auxv_parse): Remove.
6945 (obsd_init_abi): Remove comment.
6946 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6947 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6948 * nbsd-tdep.c: Include "auxv.h".
6949 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6950
6951 2020-04-08 Tom Tromey <tromey@adacore.com>
6952
6953 * nat/windows-nat.h (last_wait_event): Don't declare.
6954 (wait_for_debug_event): Update comment.
6955 * nat/windows-nat.c (last_wait_event): Now static.
6956
6957 2020-04-08 Tom Tromey <tromey@adacore.com>
6958
6959 * windows-nat.c (wait_for_debug_event): Move to
6960 nat/windows-nat.c.
6961 * nat/windows-nat.h (wait_for_debug_event): Declare.
6962 * nat/windows-nat.c (wait_for_debug_event): Move from
6963 windows-nat.c. No longer static.
6964
6965 2020-04-08 Tom Tromey <tromey@adacore.com>
6966
6967 * windows-nat.c (get_windows_debug_event): Use
6968 fetch_pending_stop.
6969 * nat/windows-nat.h (fetch_pending_stop): Declare.
6970 * nat/windows-nat.c (fetch_pending_stop): New function.
6971
6972 2020-04-08 Tom Tromey <tromey@adacore.com>
6973
6974 * windows-nat.c (windows_continue): Use matching_pending_stop and
6975 continue_last_debug_event.
6976 * nat/windows-nat.h (matching_pending_stop)
6977 (continue_last_debug_event): Declare.
6978 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6979 (matching_pending_stop, continue_last_debug_event): New
6980 functions.
6981
6982 2020-04-08 Tom Tromey <tromey@adacore.com>
6983
6984 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6985 (handle_exception_result): Move to nat/windows-nat.h.
6986 (DEBUG_EXCEPTION_SIMPLE): Remove.
6987 (windows_nat::handle_ms_vc_exception): New function.
6988 (handle_exception): Move to nat/windows-nat.c.
6989 (get_windows_debug_event): Update.
6990 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6991 nat/windows-nat.c.
6992 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6993 (handle_exception_result): Move from windows-nat.c.
6994 (handle_exception): Declare.
6995 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6996 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6997 windows-nat.c.
6998
6999 2020-04-08 Tom Tromey <tromey@adacore.com>
7000
7001 * windows-nat.c (exception_count, event_count): Remove.
7002 (handle_exception, get_windows_debug_event)
7003 (do_initial_windows_stuff): Update.
7004
7005 2020-04-08 Tom Tromey <tromey@adacore.com>
7006
7007 * windows-nat.c (windows_nat::handle_load_dll)
7008 (windows_nat::handle_unload_dll): Rename. No longer static.
7009 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7010 Declare.
7011
7012 2020-04-08 Tom Tromey <tromey@adacore.com>
7013
7014 * complaints.h (stop_whining): Declare at top-level.
7015 (complaint): Don't declare stop_whining.
7016
7017 2020-04-08 Tom Tromey <tromey@adacore.com>
7018
7019 * windows-nat.c (windows_nat::handle_output_debug_string):
7020 Rename. No longer static.
7021 * nat/windows-nat.h (handle_output_debug_string): Declare.
7022
7023 2020-04-08 Tom Tromey <tromey@adacore.com>
7024
7025 * windows-nat.c (current_process_handle, current_process_id)
7026 (main_thread_id, last_sig, current_event, last_wait_event)
7027 (current_windows_thread, desired_stop_thread_id, pending_stops)
7028 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7029 (display_selectors, fake_create_process)
7030 (get_windows_debug_event): Update.
7031 * nat/windows-nat.h (current_process_handle, current_process_id)
7032 (main_thread_id, last_sig, current_event, last_wait_event)
7033 (current_windows_thread, desired_stop_thread_id, pending_stops)
7034 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7035 * nat/windows-nat.c (current_process_handle, current_process_id)
7036 (main_thread_id, last_sig, current_event, last_wait_event)
7037 (current_windows_thread, desired_stop_thread_id, pending_stops)
7038 (siginfo_er): New globals. Move from windows-nat.c.
7039
7040 2020-04-08 Tom Tromey <tromey@adacore.com>
7041
7042 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7043 (handle_load_dll): Update.
7044 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7045
7046 2020-04-08 Tom Tromey <tromey@adacore.com>
7047
7048 * windows-nat.c (enum thread_disposition_type): Move to
7049 nat/windows-nat.h.
7050 (windows_nat::thread_rec): Rename from thread_rec. No longer
7051 static.
7052 (windows_add_thread, windows_nat_target::fetch_registers)
7053 (windows_nat_target::store_registers, handle_exception)
7054 (windows_nat_target::resume, get_windows_debug_event)
7055 (windows_nat_target::get_tib_address)
7056 (windows_nat_target::thread_name)
7057 (windows_nat_target::thread_alive): Update.
7058 * nat/windows-nat.h (enum thread_disposition_type): Move from
7059 windows-nat.c.
7060 (thread_rec): Declare.
7061
7062 2020-04-08 Tom Tromey <tromey@adacore.com>
7063
7064 * windows-nat.c: Add "using namespace".
7065 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7066 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7067
7068 2020-04-08 Tom Tromey <tromey@adacore.com>
7069
7070 * nat/windows-nat.h (struct windows_thread_info): Declare
7071 destructor.
7072 * nat/windows-nat.c (~windows_thread_info): New.
7073
7074 2020-04-08 Tom Tromey <tromey@adacore.com>
7075
7076 PR gdb/22992
7077 * windows-nat.c (current_event): Update comment.
7078 (last_wait_event, desired_stop_thread_id): New globals.
7079 (struct pending_stop): New.
7080 (pending_stops): New global.
7081 (windows_nat_target) <stopped_by_sw_breakpoint>
7082 <supports_stopped_by_sw_breakpoint>: New methods.
7083 (windows_fetch_one_register): Add assertions. Adjust PC.
7084 (windows_continue): Handle pending stops. Suspend other threads
7085 when stepping. Use last_wait_event
7086 (wait_for_debug_event): New function.
7087 (get_windows_debug_event): Use wait_for_debug_event. Handle
7088 pending stops. Queue spurious stops.
7089 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7090 (windows_nat_target::kill): Use wait_for_debug_event.
7091 * nat/windows-nat.h (struct windows_thread_info)
7092 <stopped_at_software_breakpoint>: New field.
7093 * nat/windows-nat.c (windows_thread_info::resume): Clear
7094 stopped_at_software_breakpoint.
7095
7096 2020-04-08 Tom Tromey <tromey@adacore.com>
7097
7098 * windows-nat.c (enum thread_disposition_type): New.
7099 (thread_rec): Replace "get_context" parameter with "disposition";
7100 change type.
7101 (windows_add_thread, windows_nat_target::fetch_registers)
7102 (windows_nat_target::store_registers, handle_exception)
7103 (windows_nat_target::resume, get_windows_debug_event)
7104 (windows_nat_target::get_tib_address)
7105 (windows_nat_target::thread_name)
7106 (windows_nat_target::thread_alive): Update.
7107
7108 2020-04-08 Tom Tromey <tromey@adacore.com>
7109
7110 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7111 (windows_continue): Use windows_continue::resume.
7112 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7113 resume>: Declare new methods.
7114 * nat/windows-nat.c: New file.
7115 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7116
7117 2020-04-08 Tom Tromey <tromey@adacore.com>
7118
7119 * windows-nat.c (windows_add_thread, windows_delete_thread)
7120 (windows_nat_target::fetch_registers)
7121 (windows_nat_target::store_registers, fake_create_process)
7122 (windows_nat_target::resume, windows_nat_target::resume)
7123 (get_windows_debug_event, windows_nat_target::wait)
7124 (windows_nat_target::pid_to_str)
7125 (windows_nat_target::get_tib_address)
7126 (windows_nat_target::get_ada_task_ptid)
7127 (windows_nat_target::thread_name)
7128 (windows_nat_target::thread_alive): Use lwp, not tid.
7129
7130 2020-04-08 Tom Tromey <tromey@adacore.com>
7131
7132 * windows-nat.c (handle_exception)
7133 (windows_nat_target::thread_name): Update.
7134 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7135 <name>: Now unique_xmalloc_ptr.
7136
7137 2020-04-08 Tom Tromey <tromey@adacore.com>
7138
7139 * windows-nat.c (thread_rec)
7140 (windows_nat_target::fetch_registers): Update.
7141 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7142 Update comment.
7143 <debug_registers_changed, reload_context>: Now bool.
7144
7145 2020-04-08 Tom Tromey <tromey@adacore.com>
7146
7147 * windows-nat.c (windows_add_thread): Use new.
7148 (windows_init_thread_list, windows_delete_thread): Use delete.
7149 (get_windows_debug_event): Update.
7150 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7151 destructor, and initializers.
7152
7153 2020-04-08 Tom Tromey <tromey@adacore.com>
7154
7155 * windows-nat.c (struct windows_thread_info): Remove.
7156 * nat/windows-nat.h: New file.
7157
7158 2020-04-08 Tom Tromey <tromey@adacore.com>
7159
7160 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7161 (thread_rec, windows_add_thread, windows_delete_thread)
7162 (windows_continue): Update.
7163
7164 2020-04-08 Tom Tromey <tromey@adacore.com>
7165
7166 * windows-nat.c (struct windows_thread_info): Remove typedef.
7167 (thread_head): Remove.
7168 (thread_list): New global.
7169 (thread_rec, windows_add_thread, windows_init_thread_list)
7170 (windows_delete_thread, windows_continue): Update.
7171
7172 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7173
7174 * windows-tdep.h (windows_init_abi): Add comment.
7175 (cygwin_init_abi): New declaration.
7176 * windows-tdep.c: Split signal enumeration in two, one for
7177 Windows and one for Cygwin.
7178 (windows_gdb_signal_to_target): Only deal with signal of the
7179 Windows OS ABI.
7180 (cygwin_gdb_signal_to_target): New function.
7181 (windows_init_abi): Rename to windows_init_abi_common, don't set
7182 gdb_signal_to_target gdbarch method. Add new new function with
7183 this name.
7184 (cygwin_init_abi): New function.
7185 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7186 comment. Don't call windows_init_abi.
7187 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7188 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7189 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7190 i386_windows_init_abi_common, don't call windows_init_abi. Add
7191 a new function of this name.
7192 (i386_cygwin_init_abi): New function.
7193 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7194 OS ABI Cygwin.
7195
7196 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7197
7198 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7199 parameter.c.
7200 (dwarf2_read_gdb_index): Update.
7201
7202 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7203
7204 * nbsd-tdep.c: Include "objfiles.h".
7205 (nbsd_skip_solib_resolver): New.
7206 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7207
7208 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7209
7210 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7211 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7212 with DW_LLE_base_addressx are being emitted in DWARFv5.
7213 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7214 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7215 unsigned integer.
7216
7217 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7218
7219 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7220 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7221 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7222 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7223 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7224 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7225 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7226
7227
7228 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7229
7230 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7231 (read_loclist_index): New function definition.
7232 (lookup_loclist_base): New function definition.
7233 (read_loclist_header): New function definition.
7234 (dwarf2_cu): Add loclist_base and loclist_header field.
7235 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7236 (read_full_die_1): Read the value of DW_AT_loclists_base.
7237 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7238 (read_attribute_value): Handle DW_FORM_loclistx.
7239 (skip_one_die): Handle DW_FORM_loclistx.
7240 (loclist_header): New structure declaration.
7241 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7242
7243 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7244
7245 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7246 constructor. Remove `addr` parameter from other constructor and
7247 add `per_cu` parameter.
7248 * dwarf2/read.c (create_partial_symtab): Update.
7249
7250 2020-04-07 Tom de Vries <tdevries@suse.de>
7251
7252 PR symtab/25796
7253 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7254 (partial_die_info::fixup): Inherit has_const_value.
7255
7256 2020-04-07 Tom de Vries <tdevries@suse.de>
7257
7258 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7259 symbols without address.
7260
7261 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7262
7263 * nbsd-nat.h (struct thread_info): Add forward declaration.
7264 (nbsd_nat_target::thread_alive): Add.
7265 (nbsd_nat_target::thread_name): Likewise.
7266 (nbsd_nat_target::update_thread_list): Likewise.
7267 (update_thread_list::post_attach): Likewise.
7268 (post_attach::pid_to_str): Likewise.
7269 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7270 (nbsd_thread_lister): Add.
7271 (nbsd_nat_target::thread_alive): Likewise.
7272 (nbsd_nat_target::thread_name): Likewise.
7273 (nbsd_add_threads): Likewise.
7274 (update_thread_list::post_attach): Likewise.
7275 (nbsd_nat_target::update_thread_list): Likewise.
7276 (post_attach::pid_to_str): Likewise.
7277
7278 2020-04-06 Tom Tromey <tromey@adacore.com>
7279
7280 * ada-valprint.c (print_variant_part): Extract the variant field.
7281 (print_field_values): Use the field as the outer value when
7282 recursing.
7283
7284 2020-04-06 Tom Tromey <tromey@adacore.com>
7285
7286 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7287 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7288 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7289 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7290 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7291
7292 2020-04-06 Tom Tromey <tromey@adacore.com>
7293
7294 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7295 TYPE_CODE_ERROR.
7296
7297 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7298
7299 * nbsd-tdep.c: Include "gdbarch.h".
7300 Define enum with NetBSD signal numbers.
7301 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7302 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7303 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7304 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7305 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7306 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7307 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7308 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7309 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7310 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7311 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7312 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7313
7314 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7315
7316 PR gdb/25325
7317 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7318
7319 2020-04-03 Tom Tromey <tromey@adacore.com>
7320
7321 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7322 Read constant block.
7323
7324 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7325
7326 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7327 (gdb_bfd_get_full_section_contents): New declaration.
7328 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7329 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7330 gdb_bfd_get_full_section_contents.
7331
7332 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7333
7334 * exec.c (build_section_table): Replace internal_error with
7335 gdb_assert.
7336 (section_table_xfer_memory_partial): Likewise.
7337 * mdebugread.c (parse_partial_symbols): Likewise.
7338 * psymtab.c (lookup_partial_symbol): Likewise.
7339 * utils.c (wrap_here): Likewise.
7340
7341 2020-04-02 Tom Tromey <tromey@adacore.com>
7342
7343 * f-lang.c (build_fortran_types): Use arch_type to initialize
7344 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7345
7346 2020-04-02 Tom Tromey <tromey@adacore.com>
7347
7348 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7349 of attributes.
7350
7351 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7352 Bernd Edlinger <bernd.edlinger@hotmail.de>
7353 Tom Tromey <tromey@adacore.com>
7354
7355 * buildsym.c (buildsym_compunit::record_line): Remove
7356 deduplication code.
7357
7358 2020-04-02 Tom de Vries <tdevries@suse.de>
7359
7360 PR ada/24671
7361 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7362
7363 2020-04-02 Tom de Vries <tdevries@suse.de>
7364
7365 * dwarf2/read.c (dwarf2_gdb_index_functions,
7366 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7367 NULL.
7368 * psymtab.c (psym_lookup_global_symbol_language): New function.
7369 (psym_functions): Init psym_lookup_global_symbol_language with
7370 psym_lookup_global_symbol_language.
7371 * symfile-debug.c (debug_sym_quick_functions): Init
7372 lookup_global_symbol_language with NULL.
7373 * symfile.c (set_initial_language): Remove fixme comment.
7374 * symfile.h (struct quick_symbol_functions): Add
7375 lookup_global_symbol_language.
7376 * symtab.c (find_quick_global_symbol_language): New function.
7377 (find_main_name): Use find_quick_global_symbol_language.
7378
7379 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7380
7381 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7382
7383 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7384
7385 * buildsym.c (record_line): Fix undefined behavior and preserve
7386 lines at eof.
7387
7388 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7389
7390 * buildsym.c (record_line): Fix the resizing condition.
7391
7392 2020-04-01 Tom Tromey <tom@tromey.com>
7393
7394 * value.h (value_literal_complex): Add comment.
7395 * valops.c (value_literal_complex): Refer to value.h.
7396
7397 2020-04-01 Tom Tromey <tom@tromey.com>
7398
7399 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7400 (scalar_type): New rule, from typebase.
7401 (typebase): Use scalar_type. Recognize complex types.
7402 (field_name): Handle FLOAT_KEYWORD.
7403 (ident_tokens): Add _Complex and __complex__.
7404
7405 2020-04-01 Tom Tromey <tom@tromey.com>
7406
7407 PR exp/25299:
7408 * valarith.c (promotion_type, complex_binop): New functions.
7409 (scalar_binop): Handle complex numbers. Use promotion_type.
7410 (value_pos, value_neg, value_complement): Handle complex numbers.
7411
7412 2020-04-01 Tom Tromey <tom@tromey.com>
7413
7414 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7415 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7416 (parse_number): Handle complex numbers.
7417
7418 2020-04-01 Tom Tromey <tom@tromey.com>
7419
7420 * c-valprint.c (c_decorations): Change complex suffix to "i".
7421
7422 2020-04-01 Tom Tromey <tom@tromey.com>
7423
7424 * valprint.c (generic_value_print_complex): Use accessors.
7425 * value.h (value_real_part, value_imaginary_part): Declare.
7426 * valops.c (value_real_part, value_imaginary_part): New
7427 functions.
7428 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7429
7430 2020-04-01 Tom Tromey <tom@tromey.com>
7431
7432 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7433 (read_range_type): Update.
7434 * mdebugread.c (basic_type): Update.
7435 * go-lang.c (build_go_types): Use init_complex_type.
7436 * gdbtypes.h (struct main_type) <complex_type>: New member.
7437 (init_complex_type): Update.
7438 (arch_complex_type): Don't declare.
7439 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7440 Make name if none given. Use alloc_type_copy. Look for cached
7441 complex type.
7442 (arch_complex_type): Remove.
7443 (gdbtypes_post_init): Use init_complex_type.
7444 * f-lang.c (build_fortran_types): Use init_complex_type.
7445 * dwarf2/read.c (read_base_type): Update.
7446 * d-lang.c (build_d_types): Use init_complex_type.
7447 * ctfread.c (read_base_type): Update.
7448
7449 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7450
7451 * infrun.c (stop_all_threads): Update assertion, plus when
7452 stopping threads, take into account that we might be trying
7453 to stop an all-stop target.
7454 (stop_waiting): Call 'stop_all_threads' if there exists a
7455 non-stop target.
7456
7457 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7458
7459 * target.h (exists_non_stop_target): New function declaration.
7460 * target.c (exists_non_stop_target): New function.
7461
7462 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7463
7464 PR gdb/24789
7465 * eval.c (is_integral_or_integral_reference): New function.
7466 (evaluate_subexp_standard): Allow integer references in
7467 pointer arithmetic.
7468
7469 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7470
7471 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7472 check for no ptid in the stop reply when the target is non-stop.
7473
7474 2020-04-01 Tom Tromey <tromey@adacore.com>
7475
7476 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7477 "name" parameter to rvalue reference. Initialize m_name_holder.
7478 <lookup_name_info>: New overloads.
7479 <name>: Return gdb::string_view.
7480 <c_str>: New method.
7481 <make_ignore_params>: Update.
7482 <search_name_hash>: Update.
7483 <language_lookup_name>: Return const char *.
7484 <m_name>: Change type.
7485 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7486 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7487 (lookup_name_info::match_any): Update.
7488 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7489 Update.
7490 * minsyms.c (linkage_name_str): Update.
7491 * language.c (default_symbol_name_matcher): Update.
7492 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7493 Update.
7494 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7495 (ada_lookup_name_info::ada_lookup_name_info): Update.
7496 (literal_symbol_name_matcher): Update.
7497
7498 2020-04-01 Tom Tromey <tromey@adacore.com>
7499
7500 * psymtab.c (psymtab_search_name): Remove function.
7501 (psym_lookup_symbol): Create search name and lookup name here.
7502 (lookup_partial_symbol): Remove "name" parameter; add
7503 lookup_name.
7504 (psym_expand_symtabs_for_function): Update.
7505
7506 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7507
7508 PR tui/25597:
7509 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7510
7511 2020-03-31 Tom Tromey <tromey@adacore.com>
7512
7513 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7514 memcpy.
7515
7516 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7517
7518 * features/riscv/32bit-csr.xml: Regenerated.
7519 * features/riscv/64bit-csr.xml: Regenerated.
7520
7521 2020-03-30 Tom Tromey <tromey@adacore.com>
7522
7523 * ada-valprint.c (print_variant_part): Update.
7524 * ada-lang.h (ada_which_variant_applies): Update.
7525 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7526 outer_valaddr parameters; replace with "outer" value parameter.
7527 (to_fixed_variant_branch_type): Update.
7528
7529 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7530
7531 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7532 <list>. Remove inclusion of observable.h.
7533 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7534 (struct arch_lwp_info): New struct.
7535 (class ppc_linux_dreg_interface): New class.
7536 (struct ppc_linux_process_info): New struct.
7537 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7538 <low_new_clone, low_forget_process, low_prepare_to_resume>
7539 <copy_thread_dreg_state, mark_thread_stale>
7540 <mark_debug_registers_changed, register_hw_breakpoint>
7541 <clear_hw_breakpoint, register_wp, clear_wp>
7542 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7543 <num_memory_accesses, get_trigger_type>
7544 <create_watchpoint_request, hwdebug_point_cmp>
7545 <init_arch_lwp_info, get_arch_lwp_info>
7546 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7547 methods.
7548 <struct ptid_hash>: New inner struct.
7549 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7550 members.
7551 (saved_dabr_value, hwdebug_info, max_slots_number)
7552 (struct hw_break_tuple, struct thread_points, ppc_threads)
7553 (have_ptrace_hwdebug_interface)
7554 (hwdebug_find_thread_points_by_tid)
7555 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7556 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7557 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7558 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7559 use m_dreg_interface.
7560 (hwdebug_point_cmp): Change to...
7561 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7562 reference arguments instead of pointers.
7563 (ppc_linux_nat_target::ranged_break_num_registers): Use
7564 m_dreg_interface.
7565 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7566 m_dreg_interface. Call register_hw_breakpoint.
7567 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7568 m_dreg_interface. Call clear_hw_breakpoint.
7569 (get_trigger_type): Change to...
7570 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7571 comment.
7572 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7573 use m_dreg_interface. Call register_hw_breakpoint.
7574 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7575 use m_dreg_interface. Call clear_hw_breakpoint.
7576 (can_use_watchpoint_cond_accel): Change to...
7577 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7578 method. Update comment, use m_dreg_interface and
7579 m_process_info.
7580 (calculate_dvc): Change to...
7581 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7582 m_dreg_interface.
7583 (num_memory_accesses): Change to...
7584 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7585 (check_condition): Change to...
7586 (ppc_linux_nat_target::check_condition): ...this method.
7587 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7588 comment, use m_dreg_interface.
7589 (create_watchpoint_request): Change to...
7590 (ppc_linux_nat_target::create_watchpoint_request): ...this
7591 method. Use m_dreg_interface.
7592 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7593 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7594 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7595 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7596 (ppc_linux_nat_target::low_forget_process)
7597 (ppc_linux_nat_target::low_new_fork)
7598 (ppc_linux_nat_target::low_new_clone)
7599 (ppc_linux_nat_target::low_delete_thread)
7600 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7601 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7602 only call mark_thread_stale.
7603 (ppc_linux_thread_exit): Remove.
7604 (ppc_linux_nat_target::stopped_data_address): Change to...
7605 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7606 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7607 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7608 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7609 comment. Call low_stopped_data_address.
7610 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7611 m_dreg_interface.
7612 (ppc_linux_nat_target::masked_watch_num_registers): Use
7613 m_dreg_interface.
7614 (ppc_linux_nat_target::copy_thread_dreg_state)
7615 (ppc_linux_nat_target::mark_thread_stale)
7616 (ppc_linux_nat_target::mark_debug_registers_changed)
7617 (ppc_linux_nat_target::register_hw_breakpoint)
7618 (ppc_linux_nat_target::clear_hw_breakpoint)
7619 (ppc_linux_nat_target::register_wp)
7620 (ppc_linux_nat_target::clear_wp)
7621 (ppc_linux_nat_target::init_arch_lwp_info)
7622 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7623 (_initialize_ppc_linux_nat): Remove observer callback.
7624
7625 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7626
7627 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7628 (ppc_linux_nat_target::auxv_parse)
7629 (ppc_linux_nat_target::read_description)
7630 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7631 Move up.
7632
7633 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7634
7635 * linux-nat.h (low_new_clone): New method.
7636 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7637
7638 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7639
7640 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7641 (dbx_expand_psymtab): ... this.
7642 (start_psymtab): Update.
7643 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7644 (mdebug_expand_psymtab): ... this.
7645 (parse_partial_symbols): Update.
7646 (new_psymtab): Update.
7647 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7648 (xcoff_expand_psymtab): ... this.
7649 (xcoff_start_psymtab): Update.
7650
7651 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7652
7653 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7654 <expand_dependencies>: ... this.
7655 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7656 (partial_symtab::expand_dependencies): ... this.
7657 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7658 Update.
7659 (dwarf2_psymtab::expand_psymtab): Update.
7660 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7661 * mdebugread.c (psymtab_to_symtab_1): Update.
7662 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7663
7664 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7665
7666 * psympriv.h (discard_psymtab): Remove.
7667 * dbxread.c (dbx_end_psymtab): Update.
7668 * xcoffread.c (xcoff_end_psymtab): Update.
7669
7670 2020-03-28 Tom Tromey <tom@tromey.com>
7671
7672 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7673 comment.
7674
7675 2020-03-28 Tom Tromey <tom@tromey.com>
7676
7677 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7678
7679 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7680
7681 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7682
7683 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7684
7685 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7686
7687 2020-03-26 Tom Tromey <tom@tromey.com>
7688
7689 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7690 (mark_common_block_symbol_computed, read_tag_string_type)
7691 (attr_to_dynamic_prop, read_subrange_type): Update.
7692 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7693 to be methods on struct attribute.
7694 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7695 (read_call_site_scope, partial_die_info::read)
7696 (partial_die_info::read, lookup_die_type, follow_die_ref):
7697 Update.
7698 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7699 from dwarf2_get_ref_die_offset.
7700 (attribute::constant_value): New method, from
7701 dwarf2_get_attr_constant_value.
7702 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7703 Declare method.
7704 <constant_value>: New method.
7705
7706 2020-03-26 Tom Tromey <tom@tromey.com>
7707
7708 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7709 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7710 (dwarf_type_encoding_name): Move to stringify.c.
7711 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7712 * dwarf2/stringify.c: New file.
7713 * dwarf2/stringify.h: New file.
7714
7715 2020-03-26 Tom Tromey <tom@tromey.com>
7716
7717 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7718 Rewrite.
7719
7720 2020-03-26 Tom Tromey <tom@tromey.com>
7721
7722 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7723 methods.
7724 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7725 (lookup_ranges_base): Likewise.
7726 (read_cutu_die_from_dwo, read_full_die_1): Update.
7727
7728 2020-03-26 Tom Tromey <tom@tromey.com>
7729
7730 * dwarf2/read.c (read_import_statement, read_file_scope)
7731 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7732 (read_lexical_block_scope, read_call_site_scope)
7733 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7734 (handle_struct_member_die, process_structure_scope)
7735 (update_enumeration_type_from_children)
7736 (process_enumeration_scope, read_array_type, read_common_block)
7737 (read_namespace, read_module, read_subroutine_type): Update.
7738 (sibling_die): Remove.
7739
7740 2020-03-26 Tom Tromey <tom@tromey.com>
7741
7742 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7743 (build_type_psymtabs_reader, read_structure_type)
7744 (read_enumeration_type, read_full_die_1): Update.
7745 (dwarf2_attr_no_follow): Move to die.h.
7746 * dwarf2/die.h (struct die_info) <attr>: New method.
7747
7748 2020-03-26 Tom Tromey <tom@tromey.com>
7749
7750 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7751 <base_address>: Now an optional.
7752 (dwarf2_find_base_address, dwarf2_rnglists_process)
7753 (dwarf2_ranges_process, fill_in_loclist_baton)
7754 (dwarf2_symbol_mark_computed): Update.
7755
7756 2020-03-26 Tom Tromey <tom@tromey.com>
7757
7758 * dwarf2/read.c (struct die_info): Move to die.h.
7759 * dwarf2/die.h: New file.
7760
7761 2020-03-26 Tom Tromey <tom@tromey.com>
7762
7763 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7764 * dwarf2/read.c
7765 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7766 Move to line-header.c.
7767 (read_checked_initial_length_and_offset, read_formatted_entries):
7768 Likewise.
7769 (dwarf_decode_line_header): Split into two.
7770 * dwarf2/line-header.c
7771 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7772 Move from read.c.
7773 (read_checked_initial_length_and_offset, read_formatted_entries):
7774 Likewise.
7775 (dwarf_decode_line_header): New function, split from read.c.
7776
7777 2020-03-26 Tom Tromey <tom@tromey.com>
7778
7779 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7780 Declare method.
7781 * dwarf2/read.c (read_attribute_value): Update.
7782 (dwarf2_per_objfile::read_line_string): Rename from
7783 read_indirect_line_string.
7784 (read_formatted_entries): Update.
7785
7786 2020-03-26 Tom Tromey <tom@tromey.com>
7787
7788 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7789 variable.
7790
7791 2020-03-26 Tom Tromey <tom@tromey.com>
7792
7793 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7794 const.
7795 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7796 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7797 parameter const.
7798
7799 2020-03-26 Tom Tromey <tom@tromey.com>
7800
7801 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7802 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7803 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7804 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7805
7806 2020-03-26 Tom Tromey <tom@tromey.com>
7807
7808 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7809 file_names_size, file_full_name, file_file_name>: Use const.
7810 <file_name_at, file_names>: Add const overload.
7811 * dwarf2/line-header.c (line_header::file_file_name)
7812 (line_header::file_full_name): Update.
7813
7814 2020-03-26 Tom Tromey <tom@tromey.com>
7815
7816 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7817 (macro_start_file, consume_improper_spaces)
7818 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7819 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7820 (dwarf_decode_macros): Move to macro.c.
7821 * dwarf2/macro.c: New file.
7822 * dwarf2/macro.h: New file.
7823 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7824
7825 2020-03-26 Tom Tromey <tom@tromey.com>
7826
7827 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7828 method.
7829 * dwarf2/section.c: New method. From
7830 read_indirect_string_at_offset_from.
7831 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7832 (read_indirect_string_at_offset_from): Move to section.c.
7833 (read_indirect_string_at_offset): Rewrite.
7834 (read_indirect_line_string_at_offset): Remove.
7835 (read_indirect_string, read_indirect_line_string)
7836 (dwarf_decode_macro_bytes): Update.
7837
7838 2020-03-26 Tom Tromey <tom@tromey.com>
7839
7840 * dwarf2/section.h (struct dwarf2_section_info)
7841 <overload_complaint>: Declare.
7842 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7843 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7844 Rename from dwarf2_section_buffer_overflow_complaint.
7845 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7846 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7847
7848 2020-03-26 Tom Tromey <tom@tromey.com>
7849
7850 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7851 Declare.
7852 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7853 Move from read.c.
7854 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7855 to section.c.
7856
7857 2020-03-26 Tom Tromey <tom@tromey.com>
7858
7859 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7860
7861 2020-03-26 Tom Tromey <tom@tromey.com>
7862
7863 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7864 "builder".
7865 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7866 parameter.
7867 (dwarf_decode_macros): Update.
7868
7869 2020-03-26 Tom Tromey <tom@tromey.com>
7870
7871 * dwarf2/read.c (read_attribute_value): Update.
7872 (read_indirect_string_from_dwz): Move to dwz.c; change into
7873 method.
7874 (dwarf_decode_macro_bytes): Update.
7875 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7876 * dwarf2/dwz.c: New file.
7877 * Makefile.in (COMMON_SFILES): Add dwz.c.
7878
7879 2020-03-26 Tom Tromey <tom@tromey.com>
7880
7881 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7882 * dwarf2/read.c: Add include.
7883 * dwarf2/index-write.c: Add include.
7884 * dwarf2/index-cache.c: Add include.
7885 * dwarf2/dwz.h: New file.
7886
7887 2020-03-25 Tom Tromey <tom@tromey.com>
7888
7889 * compile/compile-object-load.c (get_out_value_type): Mention
7890 correct symbol name in error message.
7891
7892 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7893
7894 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7895
7896 2020-03-25 Tom de Vries <tdevries@suse.de>
7897
7898 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7899 * symmisc.c (dump_symtab_1): Print user and includes fields.
7900 (maintenance_info_symtabs): Same.
7901
7902 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 PR gdb/25534
7905 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7906 (riscv_regcache_cooked_write): New function.
7907 (riscv_push_dummy_call): Use new function.
7908 (riscv_return_value): Likewise.
7909
7910 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7911
7912 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7913 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7914 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7915 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7916 * infrun.c (follow_fork): Likewise.
7917 (follow_fork_inferior): Likewise.
7918 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7919 * linux-nat.h (class linux_nat_target): Likewise.
7920 * remote.c (class remote_target) <follow_fork>: Likewise.
7921 (remote_target::follow_fork): Likewise.
7922 * target-delegates.c: Re-generate.
7923 * target.c (default_follow_fork): Likewise.
7924 (target_follow_fork): Likewise.
7925 * target.h (struct target_ops) <follow_fork>: Likewise.
7926 (target_follow_fork): Likewise.
7927
7928 2020-03-24 Tom de Vries <tdevries@suse.de>
7929
7930 * psymtab.c (maintenance_info_psymtabs): Print user field.
7931
7932 2020-03-20 Tom Tromey <tromey@adacore.com>
7933
7934 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7935 const.
7936 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7937 const.
7938
7939 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7940
7941 * ptrace.m4: Don't check for ptrace declaration.
7942 * config.in: Re-generate.
7943 * configure: Re-generate.
7944 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7945 not defined.
7946
7947 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7948
7949 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7950 `PTRACE_TYPE_RET'.
7951 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7952 * sparc-nat.c (gdb_ptrace): Likewise.
7953 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7954
7955 2020-03-20 Tom Tromey <tromey@adacore.com>
7956
7957 * c-exp.y (lex_one_token): Fix assert.
7958
7959 2020-03-20 Tom Tromey <tromey@adacore.com>
7960
7961 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7962 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7963 strncpy call.
7964
7965 2020-03-20 Tom Tromey <tromey@adacore.com>
7966
7967 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7968
7969 2020-03-20 Tom Tromey <tromey@adacore.com>
7970
7971 * ada-valprint.c (print_variant_part): Remove parameters; switch
7972 to value-based API.
7973 (print_field_values): Likewise.
7974 (ada_val_print_struct_union): Likewise.
7975 (ada_value_print_1): Update.
7976
7977 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7978
7979 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7980 nbsd_nat_target instead of inf_ptrace_target.
7981 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7982 nbsd_nat_target.
7983
7984 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7985
7986 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7987 it to the ptrace call.
7988 * (store_registers): Likewise.
7989
7990 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7991
7992 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7993 it to the ptrace call.
7994 * (store_registers): Likewise.
7995
7996 2020-03-19 Luis Machado <luis.machado@linaro.org>
7997
7998 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7999 valid, fetch vg value from ptrace.
8000
8001 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8002 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8003 * inf-ptrace.c: Likewise.
8004 * (gdb_ptrace): Add.
8005 * (inf_ptrace_target::resume): Update.
8006 * (inf_ptrace_target::xfer_partial): Likewise.
8007 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8008 * (inf_ptrace_peek_poke): Update.
8009
8010 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8011
8012 * x86-bsd-nat.c (gdb_ptrace): New.
8013 * (x86bsd_dr_set): Add new argument `ptid'.
8014 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8015 x86bsd_dr_set_addr): Update.
8016
8017 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8018
8019 * remote.c (remote_target::process_stop_reply): Handle events for
8020 all threads differently.
8021
8022 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8023
8024 * completer.c (completion_tracker::remove_completion): Define new
8025 function.
8026 * completer.h (completion_tracker::remove_completion): Declare new
8027 function.
8028 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8029 when adding a C++ function symbol.
8030
8031 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8032
8033 * completer.c (completion_tracker::completion_hash_entry): Define
8034 new class.
8035 (advance_to_filename_complete_word_point): Call
8036 recompute_lowest_common_denominator.
8037 (completion_tracker::completion_tracker): Call discard_completions
8038 to setup the hash table.
8039 (completion_tracker::discard_completions): Allow for being called
8040 from the constructor, pass new equal function, and element deleter
8041 when constructing the hash table. Initialise new class member
8042 variables.
8043 (completion_tracker::maybe_add_completion): Remove use of
8044 m_entries_vec, and store more information into m_entries_hash.
8045 (completion_tracker::recompute_lcd_visitor): New function, most
8046 content taken from...
8047 (completion_tracker::recompute_lowest_common_denominator):
8048 ...here, this now just visits each item in the hash calling the
8049 above visitor.
8050 (completion_tracker::build_completion_result): Remove use of
8051 m_entries_vec, call recompute_lowest_common_denominator.
8052 * completer.h (completion_tracker::have_completions): Remove use
8053 of m_entries_vec.
8054 (completion_tracker::completion_hash_entry): Declare new class.
8055 (completion_tracker::recompute_lowest_common_denominator): Change
8056 function signature.
8057 (completion_tracker::recompute_lcd_visitor): Declare new function.
8058 (completion_tracker::m_entries_vec): Delete.
8059 (completion_tracker::m_entries_hash): Initialize to NULL.
8060 (completion_tracker::m_lowest_common_denominator_valid): New
8061 member variable.
8062 (completion_tracker::m_lowest_common_denominator_max_length): New
8063 member variable.
8064
8065 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8066
8067 * regformats/regdef.h: Put reg in gdb namespace.
8068
8069 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8070
8071 * i386-bsd-nat.c (gdb_ptrace): New.
8072 * (i386bsd_fetch_inferior_registers,
8073 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8074 * (i386bsd_fetch_inferior_registers,
8075 i386bsd_store_inferior_registers) Use gdb_ptrace.
8076
8077 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8078
8079 * amd64-bsd-nat.c (gdb_ptrace): New.
8080 * (amd64bsd_fetch_inferior_registers,
8081 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8082 * (amd64bsd_fetch_inferior_registers,
8083 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8084
8085 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8086
8087 * user-regs.c (user_reg::read): Rename to...
8088 (user_reg::xread): ...this.
8089 * (append_user_reg): Rename argument `read' to `xread'.
8090 * (user_reg_add_builtin): Likewise.
8091 * (user_reg_add): Likewise.
8092 * (value_of_user_reg): Likewise.
8093
8094 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8095
8096 * sparc-nat.c (gdb_ptrace): New.
8097 * sparc-nat.c (sparc_fetch_inferior_registers)
8098 (sparc_store_inferior_registers) Remove obsolete comment.
8099 * sparc-nat.c (sparc_fetch_inferior_registers)
8100 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8101 * sparc-nat.c (sparc_fetch_inferior_registers)
8102 (sparc_store_inferior_registers) Use gdb_ptrace.
8103
8104 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8105
8106 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8107 it to the ptrace call.
8108 * sh-nbsd-nat.c (store_registers): Likewise.
8109
8110 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8111
8112 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8113 nbsd_nat_target instead of inf_ptrace_target.
8114 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8115 nbsd_nat_target.
8116
8117 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8118
8119 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8120
8121 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8122
8123 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8124 <sys/sysctl.h>.
8125 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8126
8127 2020-03-17 Tom de Vries <tdevries@suse.de>
8128
8129 PR gdb/23710
8130 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8131 fields.
8132 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8133 fields.
8134 (process_imported_unit_die): Skip import of c++ CUs.
8135
8136 2020-03-16 Tom Tromey <tom@tromey.com>
8137
8138 * p-valprint.c (pascal_object_print_value): Initialize
8139 base_value.
8140
8141 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8142 Shahab Vahedi <shahab@synopsys.com>
8143
8144 * Makefile.in: Add arch/arc.o
8145 * configure.tgt: Likewise.
8146 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8147 (_initialize_arc_tdep): Don't initialize old target descriptions.
8148 (arc_read_description): New function to cache target descriptions.
8149 * arc-tdep.h (arc_read_description): Add proto type.
8150 * arch/arc.c: New file.
8151 * arch/arc.h: Likewise.
8152 * features/Makefile: Replace old target descriptions with new.
8153 * features/arc-arcompact.c: Remove.
8154 * features/arc-arcompact.xml: Likewise.
8155 * features/arc-v2.c: Likewise
8156 * features/arc-v2.xml: Likewise
8157 * features/arc/aux-arcompact.xml: New file.
8158 * features/arc/aux-v2.xml: Likewise.
8159 * features/arc/core-arcompact.xml: Likewise.
8160 * features/arc/core-v2.xml: Likewise.
8161 * features/arc/aux-arcompact.c: Generate.
8162 * features/arc/aux-v2.c: Likewise.
8163 * features/arc/core-arcompact.c: Likewise.
8164 * features/arc/core-v2.c: Likewise.
8165 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8166
8167 2020-03-16 Tom Tromey <tromey@adacore.com>
8168
8169 PR gdb/25663:
8170 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8171 putting value into bcache.
8172
8173 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8174
8175 PR gdb/21500
8176 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8177 to...
8178 (amd64_windows_init_abi_common): ... this. Don't set size of
8179 long type.
8180 (amd64_windows_init_abi): New function.
8181 (amd64_cygwin_init_abi): New function.
8182 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8183 the Cygwin OS ABI.
8184 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8185 comment.
8186
8187 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8188
8189 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8190 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8191 (pe_import_directory_entry): New struct type.
8192 (is_linked_with_cygwin_dll): New function.
8193 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8194 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8195 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8196
8197 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8198
8199 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8200 i386_cygwin_core_osabi_sniffer.
8201
8202 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8203
8204 * i386-cygwin-tdep.c: Rename to...
8205 * i386-windows-tdep.c: ... this.
8206 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8207 i386-windows-tdep.c.
8208 * configure.tgt: Likewise.
8209
8210 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8211
8212 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8213 * osabi.c (gdb_osabi_names): Add "Windows".
8214 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8215 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8216 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8217 i386_cygwin_osabi_sniffer.
8218 (_initialize_i386_cygwin_tdep): Register OS ABI
8219 GDB_OSABI_WINDOWS for i386.
8220 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8221 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8222 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8223 for x86-64.
8224 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8225 when the target matches '*-*-mingw*'.
8226
8227 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8228
8229 * defs.h (enum gdb_osabi): Move to...
8230 * osabi.h (enum gdb_osabi): ... here.
8231 * gdbarch.sh: Include osabi.h in gdbarch.h.
8232 * gdbarch.h: Re-generate.
8233
8234 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8235
8236 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8237 function.
8238 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8239
8240 2020-03-14 Tom Tromey <tom@tromey.com>
8241
8242 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8243 for C++.
8244 (c_type_print_modifier): Likewise. Add "language" parameter.
8245 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8246 (c_type_print_base_1): Update.
8247 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8248 constants.
8249 * type-stack.c (type_stack::insert): Handle tp_atomic and
8250 tp_restrict.
8251 (type_stack::follow_type_instance_flags): Likewise.
8252 (type_stack::follow_types): Likewise. Merge type-following code.
8253 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8254 (space_identifier, cv_with_space_id)
8255 (const_or_volatile_or_space_identifier_noopt)
8256 (const_or_volatile_or_space_identifier): Remove.
8257 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8258 rules.
8259 (ptr_operator, typebase): Update.
8260 (enum token_flag) <FLAG_C>: New constant.
8261 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8262 "_Atomic".
8263 (lex_one_token): Handle FLAG_C.
8264
8265 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8266
8267 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8268 it to the ptrace call.
8269 * m68k-bsd-nat.c (store_registers): Likewise.
8270
8271 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8272
8273 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8274 gdb_byte *.
8275 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8276 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8277 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8278
8279 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8280
8281 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8282 nbsd_nat_target instead of inf_ptrace_target.
8283 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8284 nbsd_nat_target.
8285
8286 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8287
8288 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8289 register_t.
8290
8291 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8292
8293 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8294 it to the ptrace call.
8295 * alpha-bsd-nat.c (store_registers): Likewise.
8296
8297 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8298
8299 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8300 includes.
8301 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8302 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8303 fill_fpregset): Likewise.
8304
8305 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8306
8307 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8308 nbsd_nat_target instead of inf_ptrace_target.
8309 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8310 nbsd_nat_target.
8311
8312 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8313
8314 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8315 register_t.
8316
8317 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8318
8319 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8320 it to the ptrace call.
8321 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8322 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8323 * arm-nbsd-nat.c (store_register): Likewise.
8324 * arm-nbsd-nat.c (store_regs): Likewise.
8325 * arm-nbsd-nat.c (store_fp_register): Likewise.
8326 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8327
8328 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8329
8330 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8331 nbsd_nat_target instead of inf_ptrace_target.
8332 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8333 nbsd_nat_target.
8334
8335 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8336
8337 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8338 it to the ptrace call.
8339 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8340
8341 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8342
8343 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8344 it to the ptrace call.
8345 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8346
8347 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8348
8349 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8350 gdb_byte *.
8351 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8352
8353 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8354
8355 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8356 instead of inf_ptrace_target.
8357 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8358 nbsd_nat_target.
8359
8360 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8361
8362 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8363 register_t.
8364
8365 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8366
8367 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8368 register_t.
8369
8370 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8371
8372 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8373 register_t.
8374
8375 2020-03-13 Tom Tromey <tom@tromey.com>
8376
8377 * value.h (val_print): Don't declare.
8378 * valprint.h (val_print_array_elements)
8379 (val_print_scalar_formatted, generic_val_print): Don't declare.
8380 * valprint.c (generic_val_print_array): Take a struct value.
8381 (generic_val_print_ptr, generic_val_print_memberptr)
8382 (generic_val_print_bool, generic_val_print_int)
8383 (generic_val_print_char, generic_val_print_complex)
8384 (generic_val_print): Remove.
8385 (generic_value_print): Update.
8386 (do_val_print): Remove unused parameters. Don't call
8387 la_val_print.
8388 (val_print): Remove.
8389 (common_val_print): Update. Don't call value_check_printable.
8390 (val_print_scalar_formatted, val_print_array_elements): Remove.
8391 * rust-lang.c (rust_val_print): Remove.
8392 (rust_language_defn): Update.
8393 * p-valprint.c (pascal_val_print): Remove.
8394 (pascal_value_print_inner): Update.
8395 (pascal_object_print_val_fields, pascal_object_print_val):
8396 Remove.
8397 (pascal_object_print_static_field): Update.
8398 * p-lang.h (pascal_val_print): Don't declare.
8399 * p-lang.c (pascal_language_defn): Update.
8400 * opencl-lang.c (opencl_language_defn): Update.
8401 * objc-lang.c (objc_language_defn): Update.
8402 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8403 * m2-lang.h (m2_val_print): Don't declare.
8404 * m2-lang.c (m2_language_defn): Update.
8405 * language.h (struct language_defn) <la_val_print>: Remove.
8406 * language.c (unk_lang_value_print_inner): Rename. Change
8407 argument types.
8408 (unknown_language_defn, auto_language_defn): Update.
8409 * go-valprint.c (go_val_print): Remove.
8410 * go-lang.h (go_val_print): Don't declare.
8411 * go-lang.c (go_language_defn): Update.
8412 * f-valprint.c (f_val_print): Remove.
8413 * f-lang.h (f_value_print): Don't declare.
8414 * f-lang.c (f_language_defn): Update.
8415 * d-valprint.c (d_val_print): Remove.
8416 * d-lang.h (d_value_print): Don't declare.
8417 * d-lang.c (d_language_defn): Update.
8418 * cp-valprint.c (cp_print_value_fields)
8419 (cp_print_value_fields_rtti, cp_print_value): Remove.
8420 (cp_print_static_field): Update.
8421 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8422 (c_val_print_struct, c_val_print_union, c_val_print_int)
8423 (c_val_print_memberptr, c_val_print): Remove.
8424 * c-lang.h (c_val_print_array, cp_print_value_fields)
8425 (cp_print_value_fields_rtti): Don't declare.
8426 * c-lang.c (c_language_defn, cplus_language_defn)
8427 (asm_language_defn, minimal_language_defn): Update.
8428 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8429 (ada_val_print_enum): Take a struct value.
8430 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8431 (ada_val_print): Remove.
8432 (ada_value_print_1): Update.
8433 (printable_val_type): Remove.
8434 * ada-lang.h (ada_val_print): Don't declare.
8435 * ada-lang.c (ada_language_defn): Update.
8436
8437 2020-03-13 Tom Tromey <tom@tromey.com>
8438
8439 * valprint.c (do_val_print): Update.
8440 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8441 a struct value.
8442 (value_to_value_object_no_release): Declare.
8443 * python/py-value.c (value_to_value_object_no_release): New
8444 function.
8445 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8446 struct value.
8447 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8448 function.
8449 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8450 a struct value.
8451 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8452 Declare.
8453 (gdbscm_apply_val_pretty_printer): Take a struct value.
8454 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8455 value.
8456 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8457 value.
8458 * extension-priv.h (struct extension_language_ops)
8459 <apply_val_pretty_printer>: Take a struct value.
8460 * cp-valprint.c (cp_print_value): Create a struct value.
8461 (cp_print_value): Update.
8462
8463 2020-03-13 Tom Tromey <tom@tromey.com>
8464
8465 * ada-valprint.c (print_field_values): Call common_val_print.
8466
8467 2020-03-13 Tom Tromey <tom@tromey.com>
8468
8469 * ada-valprint.c (val_print_packed_array_elements): Remove
8470 bitoffset and val parameters. Call common_val_print.
8471 (ada_val_print_string): Remove offset, address, and original_value
8472 parameters.
8473 (ada_val_print_array): Update.
8474 (ada_value_print_array): New function.
8475 (ada_value_print_1): Call it.
8476
8477 2020-03-13 Tom Tromey <tom@tromey.com>
8478
8479 * ada-valprint.c (ada_value_print): Use common_val_print.
8480
8481 2020-03-13 Tom Tromey <tom@tromey.com>
8482
8483 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8484
8485 2020-03-13 Tom Tromey <tom@tromey.com>
8486
8487 * ada-valprint.c (ada_value_print_num): New function.
8488 (ada_value_print_1): Use it.
8489
8490 2020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8493
8494 2020-03-13 Tom Tromey <tom@tromey.com>
8495
8496 * ada-valprint.c (ada_value_print_ptr): New function.
8497 (ada_value_print_1): Use it.
8498
8499 2020-03-13 Tom Tromey <tom@tromey.com>
8500
8501 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8502 call common_val_print.
8503 (ada_val_print_1): Update.
8504 (ada_value_print_1): New function.
8505 (ada_value_print_inner): Rewrite.
8506
8507 2020-03-13 Tom Tromey <tom@tromey.com>
8508
8509 * cp-valprint.c (cp_print_value_fields): Update.
8510 (cp_print_value): New function.
8511
8512 2020-03-13 Tom Tromey <tom@tromey.com>
8513
8514 * m2-valprint.c (m2_value_print_inner): Use
8515 cp_print_value_fields.
8516 * cp-valprint.c (cp_print_value_fields): New function.
8517 * c-valprint.c (c_value_print_struct): New function.
8518 (c_value_print_inner): Use c_value_print_struct.
8519 * c-lang.h (cp_print_value_fields): Declare.
8520
8521 2020-03-13 Tom Tromey <tom@tromey.com>
8522
8523 * c-valprint.c (c_value_print_array): New function.
8524 (c_value_print_inner): Use it.
8525
8526 2020-03-13 Tom Tromey <tom@tromey.com>
8527
8528 * c-valprint.c (c_value_print_memberptr): New function.
8529 (c_value_print_inner): Use it.
8530
8531 2020-03-13 Tom Tromey <tom@tromey.com>
8532
8533 * c-valprint.c (c_value_print_int): New function.
8534 (c_value_print_inner): Use it.
8535
8536 2020-03-13 Tom Tromey <tom@tromey.com>
8537
8538 * c-valprint.c (c_value_print_ptr): New function.
8539 (c_value_print_inner): Use it.
8540
8541 2020-03-13 Tom Tromey <tom@tromey.com>
8542
8543 * c-valprint.c (c_value_print_inner): Rewrite.
8544
8545 2020-03-13 Tom Tromey <tom@tromey.com>
8546
8547 * valprint.c (generic_value_print_complex): New function.
8548 (generic_value_print): Use it.
8549
8550 2020-03-13 Tom Tromey <tom@tromey.com>
8551
8552 * valprint.c (generic_val_print_float): Don't call
8553 val_print_scalar_formatted.
8554 (generic_val_print, generic_value_print): Update.
8555
8556 2020-03-13 Tom Tromey <tom@tromey.com>
8557
8558 * valprint.c (generic_value_print_char): New function
8559 (generic_value_print): Use it.
8560
8561 2020-03-13 Tom Tromey <tom@tromey.com>
8562
8563 * valprint.c (generic_value_print_int): New function.
8564 (generic_value_print): Use it.
8565
8566 2020-03-13 Tom Tromey <tom@tromey.com>
8567
8568 * valprint.c (generic_value_print_bool): New function.
8569 (generic_value_print): Use it.
8570
8571 2020-03-13 Tom Tromey <tom@tromey.com>
8572
8573 * valprint.c (generic_val_print_func): Simplify.
8574 (generic_val_print, generic_value_print): Update.
8575
8576 2020-03-13 Tom Tromey <tom@tromey.com>
8577
8578 * valprint.c (generic_val_print_flags): Remove.
8579 (generic_val_print, generic_value_print): Update.
8580 (val_print_type_code_flags): Add original_value parameter.
8581
8582 2020-03-13 Tom Tromey <tom@tromey.com>
8583
8584 * valprint.c (generic_val_print): Update.
8585 (generic_value_print): Update.
8586 * valprint.c (generic_val_print_enum): Don't call
8587 val_print_scalar_formatted.
8588
8589 2020-03-13 Tom Tromey <tom@tromey.com>
8590
8591 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8592 * valprint.c (generic_value_print_ptr): New function.
8593
8594 2020-03-13 Tom Tromey <tom@tromey.com>
8595
8596 * valprint.c (generic_value_print): Rewrite.
8597
8598 2020-03-13 Tom Tromey <tom@tromey.com>
8599
8600 * p-valprint.c (pascal_object_print_value_fields)
8601 (pascal_object_print_value): New functions.
8602
8603 2020-03-13 Tom Tromey <tom@tromey.com>
8604
8605 * p-valprint.c (pascal_value_print_inner): Rewrite.
8606
8607 2020-03-13 Tom Tromey <tom@tromey.com>
8608
8609 * f-valprint.c (f_value_print_innner): Rewrite.
8610
8611 2020-03-13 Tom Tromey <tom@tromey.com>
8612
8613 * m2-valprint.c (m2_print_unbounded_array): New overload.
8614 (m2_print_unbounded_array): Update.
8615 (m2_print_array_contents): Take a struct value.
8616 (m2_value_print_inner): Rewrite.
8617
8618 2020-03-13 Tom Tromey <tom@tromey.com>
8619
8620 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8621 (d_value_print_inner): New function.
8622 * d-lang.h (d_value_print_inner): Declare.
8623 * d-lang.c (d_language_defn): Use d_value_print_inner.
8624
8625 2020-03-13 Tom Tromey <tom@tromey.com>
8626
8627 * go-valprint.c (go_value_print_inner): New function.
8628 * go-lang.h (go_value_print_inner): Declare.
8629 * go-lang.c (go_language_defn): Use go_value_print_inner.
8630
8631 2020-03-13 Tom Tromey <tom@tromey.com>
8632
8633 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8634 API.
8635 (rust_val_print): Rewrite.
8636 (rust_value_print_inner): New function, from rust_val_print.
8637 (rust_language_defn): Use rust_value_print_inner.
8638
8639 2020-03-13 Tom Tromey <tom@tromey.com>
8640
8641 * ada-valprint.c (ada_value_print_inner): New function.
8642 * ada-lang.h (ada_value_print_inner): Declare.
8643 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8644
8645 2020-03-13 Tom Tromey <tom@tromey.com>
8646
8647 * f-valprint.c (f_value_print_innner): New function.
8648 * f-lang.h (f_value_print_innner): Declare.
8649 * f-lang.c (f_language_defn): Use f_value_print_innner.
8650
8651 2020-03-13 Tom Tromey <tom@tromey.com>
8652
8653 * p-valprint.c (pascal_value_print_inner): New function.
8654 * p-lang.h (pascal_value_print_inner): Declare.
8655 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8656
8657 2020-03-13 Tom Tromey <tom@tromey.com>
8658
8659 * m2-valprint.c (m2_value_print_inner): New function.
8660 * m2-lang.h (m2_value_print_inner): Declare.
8661 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8662
8663 2020-03-13 Tom Tromey <tom@tromey.com>
8664
8665 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8666 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8667 * c-valprint.c (c_value_print_inner): New function.
8668 * c-lang.h (c_value_print_inner): Declare.
8669 * c-lang.c (c_language_defn, cplus_language_defn)
8670 (asm_language_defn, minimal_language_defn): Use
8671 c_value_print_inner.
8672
8673 2020-03-13 Tom Tromey <tom@tromey.com>
8674
8675 * p-valprint.c (pascal_object_print_value_fields): Now static.
8676 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8677
8678 2020-03-13 Tom Tromey <tom@tromey.com>
8679
8680 * c-valprint.c (c_val_print_array): Simplify.
8681
8682 2020-03-13 Tom Tromey <tom@tromey.com>
8683
8684 * valprint.c (value_print_array_elements): New function.
8685 * valprint.h (value_print_array_elements): Declare.
8686
8687 2020-03-13 Tom Tromey <tom@tromey.com>
8688
8689 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8690 * mips-tdep.c (mips_print_register): Use
8691 value_print_scalar_formatted.
8692
8693 2020-03-13 Tom Tromey <tom@tromey.com>
8694
8695 * valprint.h (value_print_scalar_formatted): Declare.
8696 * valprint.c (value_print_scalar_formatted): New function.
8697
8698 2020-03-13 Tom Tromey <tom@tromey.com>
8699
8700 * valprint.h (generic_value_print): Declare.
8701 * valprint.c (generic_value_print): New function.
8702
8703 2020-03-13 Tom Tromey <tom@tromey.com>
8704
8705 * valprint.c (do_val_print): Call la_value_print_inner, if
8706 available.
8707 * rust-lang.c (rust_language_defn): Update.
8708 * p-lang.c (pascal_language_defn): Update.
8709 * opencl-lang.c (opencl_language_defn): Update.
8710 * objc-lang.c (objc_language_defn): Update.
8711 * m2-lang.c (m2_language_defn): Update.
8712 * language.h (struct language_defn) <la_value_print_inner>: New
8713 member.
8714 * language.c (unknown_language_defn, auto_language_defn): Update.
8715 * go-lang.c (go_language_defn): Update.
8716 * f-lang.c (f_language_defn): Update.
8717 * d-lang.c (d_language_defn): Update.
8718 * c-lang.c (c_language_defn, cplus_language_defn)
8719 (asm_language_defn, minimal_language_defn): Update.
8720 * ada-lang.c (ada_language_defn): Update.
8721
8722 2020-03-13 Tom Tromey <tom@tromey.com>
8723
8724 * c-valprint.c (c_value_print): Use common_val_print.
8725
8726 2020-03-13 Tom Tromey <tom@tromey.com>
8727
8728 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8729
8730 2020-03-13 Tom Tromey <tom@tromey.com>
8731
8732 * f-valprint.c (f77_print_array_1, f_val_print): Use
8733 common_val_print.
8734
8735 2020-03-13 Tom Tromey <tom@tromey.com>
8736
8737 * riscv-tdep.c (riscv_print_one_register_info): Use
8738 common_val_print.
8739
8740 2020-03-13 Tom Tromey <tom@tromey.com>
8741
8742 * mi/mi-main.c (output_register): Use common_val_print.
8743
8744 2020-03-13 Tom Tromey <tom@tromey.com>
8745
8746 * infcmd.c (default_print_one_register_info): Use
8747 common_val_print.
8748
8749 2020-03-13 Tom Tromey <tom@tromey.com>
8750
8751 * valprint.h (common_val_print_checked): Declare.
8752 * valprint.c (common_val_print_checked): New function.
8753 * stack.c (print_frame_arg): Use common_val_print_checked.
8754
8755 2020-03-13 Tom Tromey <tom@tromey.com>
8756
8757 * valprint.c (do_val_print): New function, from val_print.
8758 (val_print): Use do_val_print.
8759 (common_val_print): Use do_val_print.
8760
8761 2020-03-13 Tom Tromey <tom@tromey.com>
8762
8763 * valprint.c (value_print): Use scoped_value_mark.
8764
8765 2020-03-13 Tom de Vries <tdevries@suse.de>
8766
8767 PR symtab/25646
8768 * psymtab.c (partial_symtab::partial_symtab): Don't set
8769 globals_offset and statics_offset. Push element onto
8770 current_global_psymbols and current_static_psymbols stacks.
8771 (concat): New function.
8772 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8773 element from current_global_psymbols and current_static_psymbols
8774 stacks. Concat popped elements to global_psymbols and
8775 static_symbols.
8776 (add_psymbol_to_list): Use current_global_psymbols and
8777 current_static_psymbols stacks.
8778 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8779 current_static_psymbols fields.
8780
8781 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8782
8783 * corelow.c (sniff_core_bfd): Remove.
8784 (class core_target) <m_core_vec>: Remove.
8785 (core_target::core_target): Update.
8786 (core_file_fns): Remove.
8787 (deprecated_add_core_fns): Remove.
8788 (default_core_sniffer): Remove.
8789 (sniff_core_bfd): Remove.
8790 (default_check_format): Remove.
8791 (gdb_check_format): Remove.
8792 (core_target_open): Update.
8793 (core_target::get_core_register_section): Update.
8794 (get_core_registers_cb): Update.
8795 (core_target::fetch_registers): Update.
8796 * gdbcore.h (struct core_fns): Remove.
8797 (deprecated_add_core_fns): Remove.
8798 (default_core_sniffer): Remove.
8799 (default_check_format): Remove.
8800
8801 2020-03-12 Tom Tromey <tom@tromey.com>
8802
8803 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8804 CORE_ADDR.
8805 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8806
8807 2020-03-12 Tom Tromey <tom@tromey.com>
8808
8809 * remote.c (remote_target::download_tracepoint)
8810 (remote_target::enable_tracepoint)
8811 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8812 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8813 sprintf_vma.
8814
8815 2020-03-12 Tom Tromey <tom@tromey.com>
8816
8817 * symfile-mem.c: Update CORE_ADDR size assert.
8818
8819 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8820
8821 * selftest.m4: Move to gdbsupport/.
8822 * acinclude.m4: Update path to selftest.m4.
8823
8824 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8825
8826 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8827 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8828 gdbarch-selfselftests.c and selftest-arch.c.
8829 (SUBDIR_UNITTESTS_OBS): Rename to...
8830 (SELFTESTS_OBS): ... this.
8831 (COMMON_SFILES): Remove disasm-selftests.c and
8832 gdbarch-selftests.c.
8833 * configure.ac: Don't add selftest-arch.{c,o} to
8834 CONFIG_{SRCS,OBS}.
8835 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8836 preprocessor conditions.
8837
8838 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8839
8840 * configure.ac: Don't source bfd/development.sh.
8841 * selftest.m4: Modify comment.
8842 * configure: Re-generate.
8843
8844 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8845
8846 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8847 not "true" or "false".
8848 * configure: Re-generate.
8849
8850 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8851
8852 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8853 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8854 renamed to arm_nbsd_supply_gregset.
8855 (fetch_register): Update to call arm_nbsd_supply_gregset.
8856 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8857 (arm_netbsd_nat_target::fetch_registers): Update.
8858 (fetch_elfcore_registers): Removed.
8859 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8860 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8861 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8862 not require NetBSD system headers.
8863 (arm_nbsd_regset): New struct.
8864 (arm_nbsd_iterate_over_regset_sections): New function.
8865 (arm_netbsd_init_abi_common): Updated to call
8866 set_gdbarch_iterate_over_regset_sections.
8867 * arm-nbsd-tdep.h: New file.
8868
8869 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8870
8871 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8872 recursion.
8873
8874 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8875
8876 * configure: Re-generate.
8877
8878 2020-03-11 Tom Tromey <tromey@adacore.com>
8879
8880 * ada-typeprint.c (print_choices): Fix comment.
8881
8882 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8883
8884 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8885 previous item in the list, when the list has no items.
8886
8887 2020-03-11 Tom de Vries <tdevries@suse.de>
8888
8889 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8890 PROP_LOCLIST handling code.
8891
8892 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8893
8894 * buildsym-legacy.c (record_line): Pass extra parameter to
8895 record_line.
8896 * buildsym.c (buildsym_compunit::record_line): Take an extra
8897 parameter, reduce duplication in the line table, and record the
8898 is_stmt flag in the line table.
8899 * buildsym.h (buildsym_compunit::record_line): Add extra
8900 parameter.
8901 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8902 non-statement lines.
8903 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8904 this to the symtab builder.
8905 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8906 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8907 through to dwarf_record_line_1.
8908 * infrun.c (process_event_stop_test): When stepping, don't stop at
8909 a non-statement instruction, and only refresh the step info when
8910 we land in the middle of a line's range. Also add an extra
8911 comment.
8912 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8913 field.
8914 * record-btrace.c (btrace_find_line_range): Only record lines
8915 marked as is-statement.
8916 * stack.c (frame_show_address): Show the frame address if we are
8917 in a non-statement sal.
8918 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8919 (maintenance_print_one_line_table): Print a header for the is_stmt
8920 column, and include is_stmt information in the output.
8921 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8922 preference to non-statements.
8923 (find_pcs_for_symtab_line): Prefer is-statement entries.
8924 (find_line_common): Likewise.
8925 * symtab.h (struct linetable_entry): Add is_stmt field.
8926 (struct symtab_and_line): Likewise.
8927 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8928 arranging the line table.
8929
8930 2020-03-07 Tom de Vries <tdevries@suse.de>
8931
8932 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8933 DIE.
8934
8935 2020-03-07 Tom Tromey <tom@tromey.com>
8936
8937 * valops.c (value_literal_complex): Remove obsolete comment.
8938 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8939 comment.
8940
8941 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8942
8943 * infrun.h: Forward-declare thread_info.
8944 (set_step_info): Add thread_info parameter, add doc.
8945 * infrun.c (set_step_info): Add thread_info parameter, move doc
8946 to header.
8947 * infrun.c (process_event_stop_test): Pass thread to
8948 set_step_info call.
8949 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8950 set_step_info.
8951 (prepare_one_step): Add thread_info parameter, pass it to
8952 set_step_frame and prepare_one_step (recursive) call.
8953 (step_1): Pass thread to prepare_one_step call.
8954 (step_command_fsm::should_stop): Pass thread to
8955 prepare_one_step.
8956 (until_next_fsm): Pass thread to set_step_frame call.
8957 (finish_command): Pass thread to set_step_info call.
8958
8959 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8960
8961 * windows-tdep.c (windows_solib_create_inferior_hook):
8962 Check if inferior is running.
8963
8964 2020-03-06 Tom de Vries <tdevries@suse.de>
8965
8966 * NEWS: Fix "the the".
8967 * ctfread.c: Same.
8968
8969 2020-03-06 Tom de Vries <tdevries@suse.de>
8970
8971 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8972
8973 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8974
8975 * .dir-locals.el: Add a comment referencing the other copies of
8976 this file.
8977
8978 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8979
8980 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8981 psargs.
8982
8983 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8984
8985 * .gitattributes: New file.
8986
8987 2020-03-04 Tom Tromey <tom@tromey.com>
8988
8989 * symmisc.c (print_symbol_bcache_statistics)
8990 (print_objfile_statistics): Update.
8991 * symfile.c (allocate_symtab): Use intern.
8992 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8993 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8994 macro_cache>: Remove.
8995 <string_cache>: New member.
8996 (struct objfile) <intern>: New methods.
8997 * elfread.c (elf_symtab_read): Use intern.
8998 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8999 (dwarf2_compute_name, dwarf2_physname)
9000 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9001 names.
9002 (guess_partial_die_structure_name): Update.
9003 (partial_die_info::fixup): Intern name.
9004 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9005 name.
9006 (dwarf2_name): Intern name. Update.
9007 * buildsym.c (buildsym_compunit::get_macro_table): Use
9008 string_cache.
9009
9010 2020-03-04 Tom Tromey <tom@tromey.com>
9011
9012 * jit.c (bfd_open_from_target_memory): Make "target" const.
9013 * corefile.c (gnutarget): Now const.
9014 * gdbcore.h (gnutarget): Now const.
9015
9016 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9017
9018 * NEWS: Mention support for WOW64 processes.
9019 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9020 (amd64_windows_segment_register_p): Remove static.
9021 (_initialize_amd64_windows_nat): Update.
9022 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9023 * i386-windows-nat.c (context_offset): Update.
9024 (i386_mappings): Rename and remove static.
9025 (i386_windows_segment_register_p): Remove static.
9026 (_initialize_i386_windows_nat): Update.
9027 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9028 (STATUS_WX86_SINGLE_STEP): New macro.
9029 (EnumProcessModulesEx): New macro.
9030 (Wow64SuspendThread): New macro.
9031 (Wow64GetThreadContext): New macro.
9032 (Wow64SetThreadContext): New macro.
9033 (Wow64GetThreadSelectorEntry): New macro.
9034 (windows_set_context_register_offsets): Add static.
9035 (windows_set_segment_register_p): Likewise.
9036 (windows_add_thread): Adapt for WOW64 processes.
9037 (windows_fetch_one_register): Likewise.
9038 (windows_nat_target::fetch_registers): Likewise.
9039 (windows_store_one_register): Likewise.
9040 (display_selector): Likewise.
9041 (display_selectors): Likewise.
9042 (handle_exception): Likewise.
9043 (windows_continue): Likewise.
9044 (windows_nat_target::resume): Likewise.
9045 (windows_add_all_dlls): Likewise.
9046 (do_initial_windows_stuff): Likewise.
9047 (windows_nat_target::attach): Likewise.
9048 (windows_get_exec_module_filename): Likewise.
9049 (windows_nat_target::create_inferior): Likewise.
9050 (windows_xfer_siginfo): Likewise.
9051 (_initialize_loadable): Initialize Wow64SuspendThread,
9052 Wow64GetThreadContext, Wow64SetThreadContext,
9053 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9054 * windows-nat.h (windows_set_context_register_offsets):
9055 Remove declaration.
9056 (windows_set_segment_register_p): Likewise.
9057 (i386_windows_segment_register_p): Add declaration.
9058 (amd64_windows_segment_register_p): Likewise.
9059
9060 2020-03-04 Luis Machado <luis.machado@linaro.org>
9061
9062 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9063 in "info registers" for AArch64/ARM.
9064
9065 The change caused "info registers" to not print GPR's.
9066
9067 gdb/ChangeLog:
9068
9069 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9070
9071 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9072 when reg->group is empty and reggroup is not.
9073
9074 2020-03-03 Tom Tromey <tromey@adacore.com>
9075
9076 * dwarf2/frame.c (struct dwarf2_frame_cache)
9077 <checked_tailcall_bottom, entry_cfa_sp_offset,
9078 entry_cfa_sp_offset_p>: Remove members.
9079 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9080 (dwarf2_frame_prev_register): Don't call
9081 dwarf2_tailcall_sniffer_first.
9082 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9083 * frame-unwind.c (add_unwinder): New fuction.
9084 (frame_unwind_init): Use it. Add tailcall unwinder.
9085
9086 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9087 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9088
9089 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9090 value should be printed as true.
9091
9092 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9093
9094 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9095 (windows_init_abi): Set and use windows_so_ops.
9096
9097 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9098
9099 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9100 when verifying if dealing with a convenience variable.
9101
9102 2020-03-03 Luis Machado <luis.machado@linaro.org>
9103
9104 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9105
9106 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9107
9108 * infrun.c (gdbarch_supports_displaced_stepping): New.
9109 (use_displaced_stepping): Break up conditions in smaller pieces.
9110 Use gdbarch_supports_displaced_stepping.
9111 (displaced_step_prepare_throw): Use
9112 gdbarch_supports_displaced_stepping.
9113
9114 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9115
9116 * NEWS: Mention new behaviour of the history filename.
9117 * top.c (write_history_p): Add comment.
9118 (show_write_history_p): Add header comment, give a different
9119 message when history writing is on, but the history filename is
9120 empty.
9121 (history_filename): Add comment.
9122 (history_filename_empty): New function.
9123 (show_history_filename): Add header comment, give a different
9124 message when the filename is empty.
9125 (init_history): Compare history_filename against nullptr, and only
9126 read history if the filename is not empty.
9127 (set_history_filename): Add header comment, and only make
9128 non-empty filenames absolute.
9129 (init_main): Make the filename argument to 'set history filename'
9130 optional.
9131
9132 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9133
9134 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9135 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9136 (fetch_fp_register): Update.
9137 (fetch_fp_regs): Update.
9138 (store_fp_register): Update.
9139 (store_fp_regs): Update.
9140 (arm_netbsd_nat_target::read_description): New function.
9141 (fetch_elfcore_registers): Update.
9142
9143 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9144
9145 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9146 general_thread if the stop reply is missing a thread-id.
9147 (remote_target::process_stop_reply): Use the first non-exited
9148 thread if the target didn't pass a thread-id.
9149 * infrun.c (do_target_wait): Move call to
9150 switch_to_inferior_no_thread to ....
9151 (do_target_wait_1): ... here.
9152
9153 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9154
9155 * debuginfod-support.c: Include defs.h first.
9156
9157 2020-02-28 Tom de Vries <tdevries@suse.de>
9158
9159 * symfile.c (set_initial_language): Use default language for lookup.
9160
9161 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9162
9163 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9164 reader variable, pass `this` to read_cutu_die_from_dwo.
9165
9166 2020-02-27 Aaron Merey <amerey@redhat.com>
9167
9168 * source.c (open_source_file): Check for nullptr when computing
9169 srcpath.
9170
9171 2020-02-27 Tom Tromey <tromey@adacore.com>
9172
9173 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9174 member.
9175 (dwarf2_add_field): Don't update nfields.
9176 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9177
9178 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9179
9180 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9181 abs.
9182
9183 2020-02-26 Tom Tromey <tom@tromey.com>
9184
9185 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9186 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9187 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9188 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9189 per_cu_data.
9190
9191 2020-02-26 Tom Tromey <tom@tromey.com>
9192
9193 * dwarf2/index-write.c (psym_index_map): Change type.
9194 (add_address_entry_worker, write_one_signatured_type)
9195 (recursively_count_psymbols, recursively_write_psymbols)
9196 (class debug_names, psyms_seen_size, write_gdbindex)
9197 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9198
9199 2020-02-26 Aaron Merey <amerey@redhat.com>
9200
9201 * Makefile.in: Handle optional debuginfod support.
9202 * NEWS: Update.
9203 * README: Add --with-debuginfod summary.
9204 * config.in: Regenerate.
9205 * configure: Regenerate.
9206 * configure.ac: Handle optional debuginfod support.
9207 * debuginfod-support.c: debuginfod helper functions.
9208 * debuginfod-support.h: Ditto.
9209 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9210 summary.
9211 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9212 when a dwz file cannot be found.
9213 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9214 debuginfo file cannot be found.
9215 * source.c (open_source_file): Query debuginfod servers when a
9216 source file cannot be found.
9217 * top.c (print_gdb_configuration): Include
9218 --{with,without}-debuginfod in the output.
9219
9220 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9221
9222 * thread.c (thr_try_catch_cmd): Print thread name.
9223
9224 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9225
9226 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9227 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9228 dwarf2_fetch_die_type_sect_off): Move to...
9229 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9230 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9231 dwarf2_fetch_die_type_sect_off): ... here.
9232 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9233 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9234 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9235
9236 2020-02-26 Tom de Vries <tdevries@suse.de>
9237
9238 PR gdb/25603
9239 * symfile.c (set_initial_language): Exit-early if
9240 language_mode == language_mode_manual.
9241
9242 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9243
9244 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9245 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9246 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9247
9248 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9249
9250 * gdbtypes.c (create_array_type_with_stride): Handle negative
9251 array strides.
9252 * valarith.c (value_subscripted_rvalue): Likewise.
9253
9254 2020-02-25 Luis Machado <luis.machado@linaro.org>
9255
9256 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9257
9258 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9259
9260 * loc.h (dwarf2_get_die_type): Move to...
9261 * read.h (dwarf2_get_die_type): ... here.
9262 * read.c (dwarf2_get_die_type): Move doc to header.
9263
9264 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9265
9266 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9267 'gnulib/Makefile.in' to the list.
9268
9269 2020-02-24 Tom Tromey <tom@tromey.com>
9270
9271 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9272 Remove.
9273 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9274 XOBNEWVEC.
9275
9276 2020-02-24 Tom Tromey <tom@tromey.com>
9277
9278 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9279 New method.
9280 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9281 (dw2_do_instantiate_symtab, dw2_get_file_names)
9282 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9283
9284 2020-02-24 Tom Tromey <tom@tromey.com>
9285
9286 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9287 make_scoped_restore.
9288 (dwarf2_psymtab::read_symtab): Don't clear
9289 reading_partial_symbols.
9290
9291 2020-02-24 Tom de Vries <tdevries@suse.de>
9292
9293 PR gdb/25592
9294 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9295
9296 2020-02-24 Tom de Vries <tdevries@suse.de>
9297
9298 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9299 commands layout next/prev/regs.
9300
9301 2020-02-22 Tom Tromey <tom@tromey.com>
9302
9303 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9304 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9305
9306 2020-02-22 Tom Tromey <tom@tromey.com>
9307
9308 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9309
9310 2020-02-22 Tom Tromey <tom@tromey.com>
9311
9312 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9313 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9314 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9315 * tui/tui.c (_initialize_tui): Add usage text.
9316
9317 2020-02-22 Tom Tromey <tom@tromey.com>
9318
9319 * tui/tui-win.c (tui_set_focus_command)
9320 (tui_set_win_height_command): Use error_no_arg.
9321 (_initialize_tui_win): Update help text.
9322 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9323
9324 2020-02-22 Tom Tromey <tom@tromey.com>
9325
9326 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9327 * tui/tui-disasm.h (struct tui_disasm_window)
9328 <display_start_addr>: Declare.
9329 * tui/tui-source.h (struct tui_source_window)
9330 <display_start_addr>: Declare.
9331 * tui/tui-winsource.h (struct tui_source_window_base)
9332 <show_source_line, display_start_addr>: New methods.
9333 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9334 Rename and move to protected section.
9335 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9336 (tui_source_window_base::do_erase_source_content): Update.
9337 (tui_source_window_base::show_source_line): Now a method.
9338 (tui_source_window_base::show_source_content)
9339 (tui_source_window_base::tui_source_window_base)
9340 (tui_source_window_base::rerender)
9341 (tui_source_window_base::refill)
9342 (tui_source_window_base::do_scroll_horizontal)
9343 (tui_source_window_base::set_is_exec_point_at)
9344 (tui_source_window_base::update_breakpoint_info)
9345 (tui_source_window_base::update_exec_info): Update.
9346 * tui/tui-source.c (tui_source_window::set_contents)
9347 (tui_source_window::showing_source_p)
9348 (tui_source_window::do_scroll_vertical)
9349 (tui_source_window::location_matches_p)
9350 (tui_source_window::line_is_displayed): Update.
9351 (tui_source_window::display_start_addr): New method.
9352 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9353 (tui_disasm_window::do_scroll_vertical)
9354 (tui_disasm_window::location_matches_p): Update.
9355 (tui_disasm_window::display_start_addr): New method.
9356
9357 2020-02-22 Tom Tromey <tom@tromey.com>
9358
9359 * NEWS: Add entry for gdb.register_window_type.
9360 * tui/tui-layout.h (window_factory): New typedef.
9361 (tui_register_window): Declare.
9362 * tui/tui-layout.c (saved_tui_windows): New global.
9363 (tui_apply_current_layout): Use it.
9364 (tui_register_window): New function.
9365 * python/python.c (do_start_initialization): Call
9366 gdbpy_initialize_tui.
9367 (python_GdbMethods): Add "register_window_type" function.
9368 * python/python-internal.h (gdbpy_register_tui_window)
9369 (gdbpy_initialize_tui): Declare.
9370 * python/py-tui.c: New file.
9371 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9372
9373 2020-02-22 Tom Tromey <tom@tromey.com>
9374
9375 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9376
9377 2020-02-22 Tom Tromey <tom@tromey.com>
9378
9379 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9380 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9381 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9382 (tui_set_win_focus_to): Move from tui-win.c.
9383
9384 2020-02-22 Tom Tromey <tom@tromey.com>
9385
9386 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9387 functions.
9388 (known_window_types): New global.
9389 (tui_get_window_by_name): Reimplement.
9390 (initialize_known_windows): New function.
9391 (validate_window_name): Rewrite.
9392 (_initialize_tui_layout): Call initialize_known_windows.
9393
9394 2020-02-22 Tom Tromey <tom@tromey.com>
9395
9396 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9397 Remove constants.
9398 * tui/tui-winsource.h (struct tui_source_window_base)
9399 <tui_source_window_base>: Remove parameter.
9400 * tui/tui-winsource.c
9401 (tui_source_window_base::tui_source_window_base): Remove
9402 parameter.
9403 (tui_source_window_base::refill): Update.
9404 * tui/tui-stack.h (struct tui_locator_window)
9405 <tui_locator_window>: Update.
9406 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9407 Default the constructor.
9408 * tui/tui-regs.h (struct tui_data_item_window)
9409 <tui_data_item_window>: Default the constructor.
9410 (struct tui_data_window) <tui_data_window>: Likewise.
9411 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9412 Default the constructor.
9413 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9414 Default the constructor.
9415 <type>: Remove.
9416 (struct tui_win_info) <tui_win_info>: Default the constructor.
9417 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9418 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9419 Default the constructor.
9420
9421 2020-02-22 Tom Tromey <tom@tromey.com>
9422
9423 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9424 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9425 * tui/tui-win.c (tui_resize_all): Don't call
9426 tui_delete_invisible_windows.
9427 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9428 done.
9429 (tui_set_layout): Update.
9430 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9431 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9432 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9433
9434 2020-02-22 Tom Tromey <tom@tromey.com>
9435
9436 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9437 correctly.
9438
9439 2020-02-22 Tom Tromey <tom@tromey.com>
9440
9441 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9442
9443 2020-02-22 Tom Tromey <tom@tromey.com>
9444
9445 * tui/tui-winsource.h (struct tui_source_window_iterator)
9446 <inner_iterator>: New etytypedef.
9447 <tui_source_window_iterator>: Take "end" parameter.
9448 <tui_source_window_iterator>: Take iterator.
9449 <operator*, advance>: Update.
9450 <m_iter>: Change type.
9451 <m_end>: New field.
9452 (struct tui_source_windows) <begin, end>: Update.
9453 * tui/tui-layout.c (tui_windows): New global.
9454 (tui_apply_current_layout): Clear tui_windows.
9455 (tui_layout_window::apply): Update tui_windows.
9456 * tui/tui-data.h (tui_windows): Declare.
9457 (all_tui_windows): Now inline function.
9458 (class tui_window_iterator, struct all_tui_windows): Remove.
9459
9460 2020-02-22 Tom Tromey <tom@tromey.com>
9461
9462 PR tui/17850:
9463 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9464 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9465 "height" argument.
9466 (class tui_layout_window) <get_sizes>: Likewise.
9467 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9468 argument.
9469 <get_sizes>: Add "height" argument.
9470 <m_vertical>: New field.
9471 * tui/tui-layout.c (tui_layout_split::clone): Update.
9472 (tui_layout_split::get_sizes): Add "height" argument.
9473 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9474 (tui_new_layout_command): Parse "-horizontal".
9475 (_initialize_tui_layout): Update help string.
9476 (tui_layout_split::specification): Add "-horizontal" when needed.
9477 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9478 argument.
9479 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9480 New methods.
9481
9482 2020-02-22 Tom Tromey <tom@tromey.com>
9483
9484 * tui/tui-layout.h (enum tui_adjust_result): New.
9485 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9486 (class tui_layout_window) <adjust_size>: Return
9487 tui_adjust_result. Rewrite.
9488 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9489 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9490
9491 2020-02-22 Tom Tromey <tom@tromey.com>
9492
9493 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9494 parameter and return types.
9495 (class tui_layout_base) <specification>: Add "depth".
9496 (class tui_layout_window) <specification>: Add "depth".
9497 (class tui_layout_split) <specification>: Add "depth".
9498 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9499 and return types.
9500 (tui_new_layout_command): Parse sub-layouts.
9501 (_initialize_tui_layout): Update help string.
9502 (tui_layout_window::specification): Add "depth".
9503 (add_layout_command): Update.
9504
9505 2020-02-22 Tom Tromey <tom@tromey.com>
9506
9507 * NEWS: Add "tui new-layout" item.
9508 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9509 Add new-layout command to help text.
9510 (validate_window_name): New function.
9511 (tui_new_layout_command): New function.
9512 (_initialize_tui_layout): Register "new-layout".
9513 (tui_layout_window::specification): New method.
9514 (tui_layout_window::specification): New method.
9515 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9516 method.
9517 (class tui_layout_window) <specification>: New method.
9518 (class tui_layout_split) <specification>: New method.
9519
9520 2020-02-22 Tom Tromey <tom@tromey.com>
9521
9522 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9523 * tui/tui-win.c (window_name_completer): Update comment.
9524 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9525 Declare method.
9526 (class tui_layout_window) <replace_window>: Likewise.
9527 (class tui_layout_split) <replace_window>: Likewise.
9528 (tui_set_layout): Don't declare.
9529 (tui_set_initial_layout): Declare function.
9530 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9531 (asm_regs_layout): New globals.
9532 (tui_current_layout, show_layout): Remove.
9533 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9534 (find_layout, tui_apply_layout): New function.
9535 (layout_completer): Remove.
9536 (tui_next_layout): Reimplement.
9537 (tui_next_layout_command): New function.
9538 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9539 (tui_regs_layout): Reimplement.
9540 (tui_regs_layout_command): New function.
9541 (extract_display_start_addr): Rewrite.
9542 (next_layout, prev_layout): Remove.
9543 (tui_layout_window::replace_window): New method.
9544 (tui_layout_split::replace_window): New method.
9545 (destroy_layout): New function.
9546 (layout_list): New global.
9547 (add_layout_command): New function.
9548 (initialize_layouts): Update.
9549 (tui_layout_command): New function.
9550 (_initialize_tui_layout): Install "layout" commands.
9551 * tui/tui-data.h (enum tui_layout_type): Remove.
9552 (tui_current_layout): Don't declare.
9553
9554 2020-02-22 Tom Tromey <tom@tromey.com>
9555
9556 * tui/tui-regs.c (tui_reg_layout): Remove.
9557 (tui_reg_command): Use tui_regs_layout.
9558 * tui/tui-layout.h (tui_reg_command): Declare.
9559 * tui/tui-layout.c (tui_reg_command): New function.
9560
9561 2020-02-22 Tom Tromey <tom@tromey.com>
9562
9563 * tui/tui.c (tui_rl_delete_other_windows): Call
9564 tui_remove_some_windows.
9565 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9566 Declare method.
9567 (class tui_layout_window) <remove_windows>: New method.
9568 (class tui_layout_split) <remove_windows>: Declare.
9569 (tui_remove_some_windows): Declare.
9570 * tui/tui-layout.c (tui_remove_some_windows): New function.
9571 (tui_layout_split::remove_windows): New method.
9572
9573 2020-02-22 Tom Tromey <tom@tromey.com>
9574
9575 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9576 * tui/tui-layout.h (tui_next_layout): Declare.
9577 * tui/tui-layout.c (tui_next_layout): New function.
9578
9579 2020-02-22 Tom Tromey <tom@tromey.com>
9580
9581 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9582 correct coordinates.
9583
9584 2020-02-22 Tom Tromey <tom@tromey.com>
9585
9586 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9587 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9588 DATA_WIN case.
9589
9590 2020-02-22 Tom Tromey <tom@tromey.com>
9591
9592 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9593 TUI_DISASM_WIN, not tui_win_list.
9594
9595 2020-02-22 Tom Tromey <tom@tromey.com>
9596
9597 * valprint.c (generic_val_print_enum_1)
9598 (val_print_type_code_flags): Style member names.
9599 * rust-lang.c (val_print_struct, rust_print_enum)
9600 (rust_print_struct_def, rust_internal_print_type): Style member
9601 names.
9602 * p-valprint.c (pascal_object_print_value_fields): Style member
9603 names. Only call fprintf_symbol_filtered for static members.
9604 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9605 * f-valprint.c (f_val_print): Style member names.
9606 * f-typeprint.c (f_type_print_base): Style member names.
9607 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9608 call fprintf_symbol_filtered for static members.
9609 (cp_print_class_member): Style member names.
9610 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9611 member names.
9612 * ada-valprint.c (ada_print_scalar): Style enum names.
9613 (ada_val_print_enum): Likewise.
9614 * ada-typeprint.c (print_enum_type): Style enum names.
9615
9616 2020-02-21 Tom Tromey <tom@tromey.com>
9617
9618 * psympriv.h (struct partial_symtab): Update comment.
9619
9620 2020-02-21 Tom Tromey <tromey@adacore.com>
9621
9622 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9623 type is CORE_ADDR.
9624
9625 2020-02-21 Tom de Vries <tdevries@suse.de>
9626
9627 PR gdb/25534
9628 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9629 if dependencies[i]->user != NULL.
9630
9631 2020-02-21 Ali Tamur <tamur@google.com>
9632
9633 * dwarf2/read.c (dwarf2_name): Add null check.
9634
9635 2020-02-20 Tom Tromey <tom@tromey.com>
9636
9637 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9638 ">=", in binary search.
9639 (dwarf2_find_containing_comp_unit): New overload.
9640 (run_test): New self-test.
9641 (_initialize_dwarf2_read): Register new test.
9642
9643 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9644
9645 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9646 * riscv-tdep.h: Likewise.
9647 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9648 rv32-only CSR.
9649 * features/riscv/64bit-csr.xml: Regenerated.
9650
9651 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9652 Tom Tromey <tom@tromey.com>
9653
9654 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9655 of 'fputc_unfiltered'.
9656 (putchar_unfiltered): Call 'fputc_unfiltered'.
9657 (fputc_unfiltered): Call 'fputs_unfiltered'.
9658
9659 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9660
9661 * config.in: Regenerate.
9662 * configure: Regenerate.
9663 * configure.ac: Add --with-python-libdir option.
9664 * main.c: Use WITH_PYTHON_LIBDIR.
9665
9666 2020-02-19 Tom Tromey <tom@tromey.com>
9667
9668 * symtab.c (general_symbol_info::compute_and_set_names): Use
9669 obstack_strndup. Simplify call to symbol_set_demangled_name.
9670
9671 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9672
9673 * dwarf2/read.c (allocate_signatured_type_table,
9674 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9675 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9676 Remove objfile parameter, update all callers.
9677
9678 2020-02-19 Doug Evans <dje@google.com>
9679
9680 PR rust/25535
9681 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9682 rust_enum_variant calculation.
9683
9684 2020-02-19 Tom Tromey <tromey@adacore.com>
9685
9686 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9687
9688 2020-02-19 Tom Tromey <tromey@adacore.com>
9689
9690 * ada-lang.c (cache_symbol): Use obstack_strdup.
9691
9692 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9693
9694 * configure: Regenerate.
9695
9696 2020-02-19 Tom Tromey <tromey@adacore.com>
9697
9698 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9699 NULL check.
9700
9701 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9702
9703 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9704
9705 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9706
9707 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9708 if GDBSERVER is not defined.
9709 (riscv_tdesc_cache): Likewise, also store const target_desc.
9710 (STATIC_IN_GDB): Define.
9711 (riscv_create_target_description): Update declaration with
9712 STATIC_IN_GDB.
9713 (riscv_lookup_target_description): New function, only define if
9714 GDBSERVER is not defined.
9715 * arch/riscv.h (riscv_create_target_description): Declare only
9716 when GDBSERVER is defined.
9717 (riscv_lookup_target_description): New declaration when GDBSERVER
9718 is not defined.
9719 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9720 (riscv_linux_read_features): ...this, and return
9721 riscv_gdbarch_features instead of target_desc.
9722 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9723 (riscv_linux_read_description): Rename to...
9724 (riscv_linux_read_features): ...this.
9725 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9726 Update to use riscv_gdbarch_features and
9727 riscv_lookup_target_description.
9728 * riscv-tdep.c (riscv_find_default_target_description): Use
9729 riscv_lookup_target_description instead of
9730 riscv_create_target_description.
9731
9732 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * valprint.c (generic_val_print_enum_1): When printing a flag
9735 enum with value 0 and there is no enumerator with value 0, print
9736 just "0" instead of "(unknown: 0x0)".
9737
9738 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * valprint.c (generic_val_print_enum_1): Print unknown part of
9741 flag enum in hex.
9742
9743 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9746 flag enums to contain duplicate enumerators.
9747 * valprint.c (generic_val_print_enum_1): Update comment.
9748
9749 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * dwarf2/read.c: Include "count-one-bits.h".
9752 (update_enumeration_type_from_children): If an enumerator has
9753 multiple bits set, don't treat the enumeration as a "flag enum".
9754 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9755 of flag enums have 0 or 1 bit set.
9756
9757 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9758
9759 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9760 conversion.
9761 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9762 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9763 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9764 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9765 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9766
9767 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9768
9769 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9770
9771 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9772
9773 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9774 displaced_step_closure_up.
9775 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9776 (struct displaced_step_closure_up):
9777 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9778 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9779 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9780 Likewise.
9781 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9782 * gdbarch.c, gdbarch.h: Re-generate.
9783 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9784 displaced_step_closure_up.
9785 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9786 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9787 * infrun.h (displaced_step_closure_up): New type alias.
9788 (struct displaced_step_inferior_state) <step_closure>: Change
9789 type to displaced_step_closure_up.
9790 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9791 displaced_step_closure_up.
9792 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9793
9794 2020-02-14 Tom Tromey <tom@tromey.com>
9795
9796 * minidebug.c (gnu_debug_key): New global.
9797 (find_separate_debug_file_in_section): Use it.
9798
9799 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9800
9801 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9802 std::unique_ptr.
9803 * gdbarch.c: Re-generate.
9804 * gdbarch.h: Re-generate.
9805 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9806 change.
9807 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9808 type to std::unique_ptr.
9809 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9810 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9811 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9812 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9813 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9814 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9815 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9816 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9817 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9818
9819 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9820
9821 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9822 std::unique_ptr.
9823 (displaced_step_clear): Rename to...
9824 (displaced_step_reset): ... this. Just call displaced->reset ().
9825 (displaced_step_clear_cleanup): Rename to...
9826 (displaced_step_reset_cleanup): ... this.
9827 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9828 (displaced_step_fixup): Likewise.
9829 (resume_1): Likewise.
9830 (handle_inferior_event): Restore child's memory before calling
9831 displaced_step_fixup on the parent.
9832 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9833 to std::unique_ptr.
9834 <step_closure>: Change type to std::unique_ptr.
9835
9836 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9837
9838 * arm-tdep.c: Include count-one-bits.h.
9839 (cleanup_block_store_pc): Use count_one_bits.
9840 (cleanup_block_load_pc): Use count_one_bits.
9841 (arm_copy_block_xfer): Use count_one_bits.
9842 (thumb2_copy_block_xfer): Use count_one_bits.
9843 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9844 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9845 (thumb_get_next_pcs_raw): Use count_one_bits.
9846 (arm_get_next_pcs_raw): Use count_one_bits_l.
9847 * arch/arm.c (bitcount): Remove.
9848 * arch/arm.h (bitcount): Remove.
9849
9850 2020-02-14 Tom Tromey <tromey@adacore.com>
9851
9852 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9853 Update.
9854 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9855 * dwarf2/loc.c (call_site_find_chain_1): Return
9856 unique_xmalloc_ptr.
9857 (call_site_find_chain): Likewise.
9858
9859 2020-02-14 Richard Biener <rguenther@suse.de>
9860
9861 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9862 on expression with division operators.
9863
9864 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9865
9866 * MAINTAINERS (Write After Approval): Adding myself.
9867
9868 2020-02-12 Tom Tromey <tom@tromey.com>
9869
9870 * event-loop.c (event_data, gdb_event, event_handler_func):
9871 Remove.
9872
9873 2020-02-12 Tom Tromey <tom@tromey.com>
9874
9875 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9876 (dwarf2_frame_objfile_data): Add comment.
9877 (find_comp_unit, set_comp_unit): New functions.
9878 (dwarf2_frame_find_fde): Use find_comp_unit.
9879 (dwarf2_build_frame_info): Use set_comp_unit.
9880
9881 2020-02-12 Tom Tromey <tom@tromey.com>
9882
9883 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9884 (comp_unit): Don't initialize objfile.
9885 (execute_cfa_program): Add text_offset parameter.
9886 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9887 (dwarf2_frame_cache): Update.
9888 (dwarf2_build_frame_info): Don't set "objfile" member.
9889
9890 2020-02-12 Tom Tromey <tom@tromey.com>
9891
9892 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9893 (decode_frame_entry): Likewise.
9894 (dwarf2_build_frame_info): Update.
9895
9896 2020-02-12 Tom Tromey <tom@tromey.com>
9897
9898 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9899 (decode_frame_entry_1): Use the comp_unit obstack.
9900
9901 2020-02-12 Tom Tromey <tom@tromey.com>
9902
9903 * dwarf2/frame.c (struct comp_unit): Add initializers and
9904 constructor.
9905 (dwarf2_frame_objfile_data): Store a comp_unit.
9906 (dwarf2_frame_find_fde): Update.
9907 (dwarf2_build_frame_info): Use "new".
9908
9909 2020-02-12 Tom Tromey <tom@tromey.com>
9910
9911 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9912 (dwarf2_fde_table): Typedef for std::vector.
9913 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9914 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9915 (decode_frame_entry): Update.
9916 (dwarf2_build_frame_info): Use "new".
9917
9918 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9919
9920 * arm-tdep.c (arm_gdbarch_init): Update.
9921 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9922 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9923 have_neon, is_m>: Change to bool.
9924
9925 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9926
9927 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9928
9929 2020-02-12 Tom Tromey <tom@tromey.com>
9930
9931 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9932
9933 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9934
9935 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9936 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9937
9938 2020-02-11 Tom Tromey <tom@tromey.com>
9939
9940 * psymtab.h: Update comment.
9941
9942 2020-02-11 Tom Tromey <tom@tromey.com>
9943
9944 * gdb_obstack.h (struct auto_obstack): Use
9945 DISABLE_COPY_AND_ASSIGN.
9946
9947 2020-02-11 Tom Tromey <tom@tromey.com>
9948
9949 * dwarf2/frame.h (struct objfile): Don't forward declare.
9950
9951 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9952
9953 * cris-tdep.c (cris_supply_gregset): Change signature to match
9954 what struct regset expects.
9955 (cris_regset): New struct.
9956 (fetch_core_registers): Remove.
9957 (cris_iterate_over_regset_sections): New function.
9958 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9959 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9960
9961 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9962
9963 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9964 registers.
9965
9966 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9967
9968 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9969
9970 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9971
9972 * configure: Re-generate.
9973
9974 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9975
9976 * configure: Re-generate.
9977
9978 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9979
9980 * acinclude: Update warning.m4 path.
9981 * warning.m4: Move to gdbsupport.
9982
9983 2020-02-11 Tom Tromey <tromey@adacore.com>
9984
9985 * remote.c (remote_console_output): Update.
9986 * printcmd.c (printf_command): Update.
9987 * event-loop.c (gdb_wait_for_event): Update.
9988 * linux-nat.c (sigchld_handler): Update.
9989 * remote-sim.c (gdb_os_write_stdout): Update.
9990 (gdb_os_flush_stdout): Update.
9991 (gdb_os_flush_stderr): Update.
9992 (gdb_os_write_stderr): Update.
9993 * exceptions.c (print_exception): Update.
9994 * remote-fileio.c (remote_fileio_func_read): Update.
9995 (remote_fileio_func_write): Update.
9996 * tui/tui.c (tui_enable): Update.
9997 * tui/tui-interp.c (tui_interp::init): Update.
9998 * utils.c (init_page_info): Update.
9999 (putchar_unfiltered, fputc_unfiltered): Update.
10000 (gdb_flush): Update.
10001 (emit_style_escape): Update.
10002 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10003 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10004 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10005 (stderr_file::write): Update.
10006 (stderr_file::puts): Update.
10007 * ui-file.h (ui_file_isatty, ui_file_write)
10008 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10009 (ui_file_puts): Don't declare.
10010
10011 2020-02-10 Tom de Vries <tdevries@suse.de>
10012
10013 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10014 sentinel to char *.
10015
10016 2020-02-09 Tom de Vries <tdevries@suse.de>
10017
10018 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10019 filename if it matches "<artificial>".
10020
10021 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10022
10023 * windows-tdep.c (struct enum_value_name): New struct.
10024 (create_enum): New function.
10025 (windows_get_siginfo_type): Create and use enum types.
10026
10027 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10028
10029 * NEWS: Mention $_siginfo support for Windows.
10030 * windows-nat.c (handle_exception): Set siginfo_er.
10031 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10032 (windows_xfer_siginfo): New function.
10033 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10034 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10035 (init_windows_gdbarch_data): New function.
10036 (get_windows_gdbarch_data): New function.
10037 (windows_get_siginfo_type): New function.
10038 (windows_init_abi): Register windows_get_siginfo_type.
10039 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10040
10041 2020-02-08 Tom Tromey <tom@tromey.com>
10042
10043 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10044 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10045 <keep>: Declare method.
10046 <m_keep>: Remove member.
10047 <~cutu_reader>: Remove.
10048 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10049 (cutu_reader::cutu_reader): Update.
10050 (cutu_reader::keep): Rename from ~cutu_reader.
10051 (process_psymtab_comp_unit, build_type_psymtabs_1)
10052 (process_skeletonless_type_unit, load_partial_comp_unit)
10053 (load_full_comp_unit, dwarf2_read_addr_index)
10054 (read_signatured_type): Update.
10055
10056 2020-02-08 Tom Tromey <tom@tromey.com>
10057
10058 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10059 "want_partial_unit" parameter.
10060 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10061 Inline check for DW_TAG_partial_unit.
10062 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10063
10064 2020-02-08 Tom Tromey <tom@tromey.com>
10065
10066 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10067 read.c.
10068 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10069 read.c.
10070
10071 2020-02-08 Tom Tromey <tom@tromey.com>
10072
10073 * dwarf2/read.c (read_address): Move to comp-unit.c.
10074 (dwarf2_rnglists_process, dwarf2_ranges_process)
10075 (read_attribute_value, dwarf_decode_lines_1)
10076 (var_decode_location, decode_locdesc): Update.
10077 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10078 read.c. Remove "cu" parameter.
10079 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10080 method.
10081
10082 2020-02-08 Tom Tromey <tom@tromey.com>
10083
10084 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10085 (read_indirect_line_string): Update.
10086 * dwarf2/comp-unit.c (read_offset): Remove.
10087 (read_comp_unit_head): Update.
10088 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10089 method.
10090 (read_offset): Don't declare.
10091
10092 2020-02-08 Tom Tromey <tom@tromey.com>
10093
10094 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10095 * dwarf2/read.c (struct comp_unit_head): Move to
10096 dwarf2/comp-unit.h.
10097 (enum class rcuh_kind): Move to comp-unit.h.
10098 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10099 (read_comp_unit_head, error_check_comp_unit_head)
10100 (read_and_check_comp_unit_head): Move to comp-unit.c.
10101 (read_offset, dwarf_unit_type_name): Likewise.
10102 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10103 (cutu_reader::cutu_reader, read_call_site_scope)
10104 (find_partial_die, follow_die_offset): Update.
10105 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10106
10107 2020-02-08 Tom Tromey <tom@tromey.com>
10108
10109 * dwarf2/read.c (read_offset_1): Move to leb.c.
10110 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10111 (dwarf_decode_macro_bytes): Update.
10112 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10113 * dwarf2/leb.h (read_offset): Declare.
10114
10115 2020-02-08 Tom Tromey <tom@tromey.com>
10116
10117 * dwarf2/read.c (dwarf2_section_size): Remove.
10118 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10119 Update.
10120 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10121
10122 2020-02-08 Tom Tromey <tom@tromey.com>
10123
10124 * dwarf2/read.c (read_initial_length): Move to leb.c.
10125 * dwarf2/leb.h (read_initial_length): Declare.
10126 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10127 handle_nonstd parameter.
10128 * dwarf2/frame.c (read_initial_length): Remove.
10129 (decode_frame_entry_1): Update.
10130
10131 2020-02-08 Tom Tromey <tom@tromey.com>
10132
10133 * dwarf2/loc.c (dwarf2_find_location_expression)
10134 (dwarf_evaluate_loc_desc::get_tls_address)
10135 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10136 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10137 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10138 (dwarf2_compile_property_to_c)
10139 (dwarf2_loc_desc_get_symbol_read_needs)
10140 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10141 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10142 (loclist_describe_location, loclist_tracepoint_var_ref)
10143 (loclist_generate_c_location): Update.
10144 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10145 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10146 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10147 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10148 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10149 (dwarf2_per_cu_data::addr_size)
10150 (dwarf2_per_cu_data::ref_addr_size)
10151 (dwarf2_per_cu_data::text_offset)
10152 (dwarf2_per_cu_data::addr_type): Now methods.
10153 (per_cu_header_read_in): Make per_cu "const".
10154 (dwarf2_version): Remove.
10155 (dwarf2_per_cu_data::int_type): Now a method.
10156 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10157 (set_die_type, read_array_type, read_subrange_index_type)
10158 (read_tag_string_type, read_subrange_type): Update.
10159 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10160 offset_size, ref_addr_size, text_offset, addr_type, version,
10161 objfile, int_type, addr_sized_int_type>: Declare methods.
10162
10163 2020-02-08 Tom Tromey <tom@tromey.com>
10164
10165 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10166 Move earlier.
10167
10168 2020-02-08 Tom Tromey <tom@tromey.com>
10169
10170 * dwarf2/read.h (dwarf_line_debug): Declare.
10171 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10172 * dwarf2/read.c: Move line_header code to new files.
10173 (dwarf_line_debug): No longer static.
10174 * dwarf2/line-header.c: New file.
10175 * dwarf2/line-header.h: New file.
10176
10177 2020-02-08 Tom Tromey <tom@tromey.com>
10178
10179 * dwarf2/read.c (struct line_header) <file_full_name,
10180 file_file_name>: Return unique_xmalloc_ptr.
10181 (line_header::file_file_name): Update.
10182 (line_header::file_full_name): Update.
10183 (dw2_get_file_names_reader): Update.
10184 (macro_start_file): Update.
10185
10186 2020-02-08 Tom Tromey <tom@tromey.com>
10187
10188 * dwarf2/read.c (struct line_header) <file_full_name,
10189 file_file_name>: Declare methods.
10190 (dw2_get_file_names_reader): Update.
10191 (file_file_name): Now a method.
10192 (file_full_name): Likewise.
10193 (macro_start_file): Update.
10194
10195 2020-02-08 Tom Tromey <tom@tromey.com>
10196
10197 * dwarf2/read.c (dwarf_always_disassemble)
10198 (show_dwarf_always_disassemble): Move to loc.c.
10199 (_initialize_dwarf2_read): Move "always-disassemble" registration
10200 to loc.c.
10201 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10202 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10203 static.
10204 (show_dwarf_always_disassemble): Move from read.c.
10205 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10206
10207 2020-02-08 Tom Tromey <tom@tromey.com>
10208
10209 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10210 (create_quick_file_names_table): Return htab_up.
10211 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10212 Update.
10213 * dwarf2/read.h (struct dwarf2_per_objfile)
10214 <quick_file_names_table>: Now htab_up.
10215
10216 2020-02-08 Tom Tromey <tom@tromey.com>
10217
10218 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10219
10220 2020-02-08 Tom Tromey <tom@tromey.com>
10221
10222 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10223 Rewrite.
10224 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10225 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10226 (abbrev_table::abbrev_table): No longer inline.
10227 (ABBREV_HASH_SIZE): Remove.
10228 (abbrev_table::m_abbrevs): Now an htab_up.
10229
10230 2020-02-08 Tom Tromey <tom@tromey.com>
10231
10232 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10233 (cutu_reader): Update.
10234 (build_type_psymtabs_1): Update.
10235 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10236 (abbrev_table::alloc_abbrev): Update.
10237 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10238 (abbrev_table::read): New static method, renamed from
10239 abbrev_table_read_table.
10240 (abbrev_table::alloc_abbrev)
10241 (abbrev_table::add_abbrev): Now private.
10242 (abbrev_table::abbrev_table): Now private.
10243 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10244
10245 2020-02-08 Tom Tromey <tom@tromey.com>
10246
10247 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10248 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10249 htab_up.
10250
10251 2020-02-08 Tom Tromey <tom@tromey.com>
10252
10253 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10254 htab_up.
10255 (lookup_dwo_unit_in_dwp): Update.
10256 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10257 on obstack.
10258
10259 2020-02-08 Tom Tromey <tom@tromey.com>
10260
10261 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10262 obstack.
10263
10264 2020-02-08 Tom Tromey <tom@tromey.com>
10265
10266 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10267 line_header_hash.
10268 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10269 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10270 Change type to htab_up.
10271
10272 2020-02-08 Tom Tromey <tom@tromey.com>
10273
10274 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10275 htab_up. Don't allocate on obstack.
10276 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10277 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10278 Change type to htab_up.
10279
10280 2020-02-08 Tom Tromey <tom@tromey.com>
10281
10282 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10283 Change type to htab_up.
10284 * dwarf2/read.c (create_signatured_type_table_from_index)
10285 (create_signatured_type_table_from_debug_names)
10286 (create_all_type_units, add_type_unit)
10287 (lookup_dwo_signatured_type, lookup_signatured_type)
10288 (process_skeletonless_type_unit): Update.
10289 (create_debug_type_hash_table, create_debug_types_hash_table):
10290 Change type of types_htab.
10291 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10292 htab_up. Don't allocate on obstack.
10293 (create_cus_hash_table): Change type of cus_htab parameter.
10294 (struct dwo_file) <cus, tus>: Now htab_up.
10295 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10296 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10297 (queue_and_load_all_dwo_tus): Update.
10298 * dwarf2/index-write.c (write_gdbindex): Update.
10299 (write_debug_names): Update.
10300
10301 2020-02-08 Tom Tromey <tom@tromey.com>
10302
10303 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10304 dwarf2/read.c. Remove "next" member. Add constructor ntad
10305 destructor.
10306 (struct dwarf2_per_objfile) <queue>: New member.
10307 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10308 dwarf2/read.h.
10309 (dwarf2_queue, dwarf2_queue_tail): Remove.
10310 (class dwarf2_queue_guard): Add parameter to constructor. Use
10311 DISABLE_COPY_AND_ASSIGN.
10312 <m_per_objfile>: New member.
10313 <~dwarf2_queue_guard>: Rewrite.
10314 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10315 Update.
10316 (~dwarf2_queue_item): New.
10317
10318 2020-02-08 Tom Tromey <tom@tromey.com>
10319
10320 * dwarf2/read.c (struct die_info) <has_children>: New member.
10321 (dw2_get_file_names_reader): Remove has_children.
10322 (dw2_get_file_names): Update.
10323 (read_cutu_die_from_dwo): Remove has_children.
10324 (cutu_reader::init_tu_and_read_dwo_dies)
10325 (cutu_reader::cutu_reader): Update.
10326 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10327 Remove has_children.
10328 (build_type_psymtabs_1, process_skeletonless_type_unit)
10329 (load_partial_comp_unit, load_full_comp_unit): Update.
10330 (create_dwo_cu_reader): Remove has_children.
10331 (create_cus_hash_table, read_die_and_children): Update.
10332 (read_full_die_1,read_full_die): Remove has_children.
10333 (read_signatured_type): Update.
10334 (class cutu_reader) <has_children>: Remove.
10335
10336 2020-02-08 Tom Tromey <tom@tromey.com>
10337
10338 * dwarf2/expr.c: Rename from dwarf2expr.c.
10339 * dwarf2/expr.h: Rename from dwarf2expr.h.
10340 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10341 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10342 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10343 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10344 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10345 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10346 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10347 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10348 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10349 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10350 * dwarf2/loc.c: Rename from dwarf2loc.c.
10351 * dwarf2/loc.h: Rename from dwarf2loc.h.
10352 * dwarf2/read.c: Rename from dwarf2read.c.
10353 * dwarf2/read.h: Rename from dwarf2read.h.
10354 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10355 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10356 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10357 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10358 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10359 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10360 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10361 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10362 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10363 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10364 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10365 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10366 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10367 Update.
10368 * Makefile.in (COMMON_SFILES): Update.
10369 (HFILES_NO_SRCDIR): Update.
10370
10371 2020-02-08 Tom Tromey <tom@tromey.com>
10372
10373 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10374 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10375
10376 2020-02-08 Tom Tromey <tom@tromey.com>
10377
10378 * dwarf2read.h (struct die_info): Don't declare.
10379
10380 2020-02-08 Tom Tromey <tom@tromey.com>
10381
10382 * dwarf2read.h (die_info_ptr): Remove typedef.
10383
10384 2020-02-08 Tom Tromey <tom@tromey.com>
10385
10386 * dwarf2read.c (read_call_site_scope)
10387 (handle_data_member_location, dwarf2_add_member_fn)
10388 (mark_common_block_symbol_computed, read_common_block)
10389 (attr_to_dynamic_prop, partial_die_info::read)
10390 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10391 (dwarf2_symbol_mark_computed, set_die_type): Update.
10392 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10393 method.
10394 (attr_form_is_block): Don't declare.
10395 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10396
10397 2020-02-08 Tom Tromey <tom@tromey.com>
10398
10399 * dwarf2read.c (dwarf2_find_base_address, )
10400 (read_call_site_scope, rust_containing_type)
10401 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10402 (handle_data_member_location, dwarf2_add_member_fn)
10403 (get_alignment, read_structure_type, process_structure_scope)
10404 (mark_common_block_symbol_computed, read_common_block)
10405 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10406 (partial_die_info::read, read_attribute_value, new_symbol)
10407 (lookup_die_type, dwarf2_get_ref_die_offset)
10408 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10409 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10410 (dwarf2_symbol_mark_computed): Update.
10411 * dwarf2/attribute.h (struct attribute) <value_as_address,
10412 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10413 methods.
10414 (value_as_address, attr_form_is_section_offset)
10415 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10416 * dwarf2/attribute.c (attribute::value_as_address)
10417 (attribute::form_is_section_offset, attribute::form_is_constant)
10418 (attribute::form_is_ref): Now methods.
10419
10420 2020-02-08 Tom Tromey <tom@tromey.com>
10421
10422 * dwarf2read.c (struct attribute, DW_STRING)
10423 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10424 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10425 (attr_form_is_block, attr_form_is_section_offset)
10426 (attr_form_is_constant, attr_form_is_ref): Move.
10427 * dwarf2/attribute.h: New file.
10428 * dwarf2/attribute.c: New file, from dwarf2read.c.
10429 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10430
10431 2020-02-08 Tom Tromey <tom@tromey.com>
10432
10433 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10434 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10435 Move.
10436 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10437 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10438 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10439 abbrev.c.
10440 * dwarf2/abbrev.h: New file.
10441 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10442 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10443
10444 2020-02-08 Tom Tromey <tom@tromey.com>
10445
10446 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10447 (dwarf2_section_size, dwarf2_get_section_info)
10448 (create_signatured_type_table_from_debug_names)
10449 (create_addrmap_from_aranges, read_debug_names_from_section)
10450 (get_gdb_index_contents_from_section, read_comp_unit_head)
10451 (error_check_comp_unit_head, read_abbrev_offset)
10452 (create_debug_type_hash_table, init_cu_die_reader)
10453 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10454 (read_comp_units_from_section, create_cus_hash_table)
10455 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10456 (create_dwp_v2_section, dwarf2_rnglists_process)
10457 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10458 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10459 (read_indirect_string_from_dwz, read_addr_index_1)
10460 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10461 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10462 (fill_in_loclist_baton): Update.
10463 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10464 get_containing_section, get_bfd_owner, get_bfd_section,
10465 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10466 (dwarf2_read_section, get_section_name, get_section_file_name)
10467 (get_containing_section, get_section_bfd_owner)
10468 (get_section_bfd_section, get_section_name, get_section_file_name)
10469 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10470 declare.
10471 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10472 (dwarf2_section_info::get_bfd_owner)
10473 (dwarf2_section_info::get_bfd_section)
10474 (dwarf2_section_info::get_name)
10475 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10476 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10477 (dwarf2_section_info::read): Now methods.
10478 * dwarf-index-write.c (class debug_names): Update.
10479
10480 2020-02-08 Tom Tromey <tom@tromey.com>
10481
10482 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10483 Move to dwarf2/section.h.
10484 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10485 (get_section_bfd_section, get_section_name)
10486 (get_section_file_name, get_section_id, get_section_flags)
10487 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10488 dwarf2/section.c.
10489 * dwarf2/section.h: New file.
10490 * dwarf2/section.c: New file, from dwarf2read.c.
10491 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10492
10493 2020-02-08 Tom Tromey <tom@tromey.com>
10494
10495 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10496 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10497 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10498 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10499 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10500 * dwarf2/leb.h: New file, from dwarf2read.c.
10501 * dwarf2/leb.c: New file, from dwarf2read.c.
10502 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10503 Remove.
10504 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10505 (COMMON_SFILES): Add dwarf2/leb.c.
10506
10507 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10508
10509 GDB 9.1 released.
10510
10511 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10512
10513 PR gdb/25190:
10514 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10515 * gdb/remote.c (remote_console_output): Update.
10516 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10517 (ui_file_puts): ...this.
10518 * gdb/ui-file.h (ui_file_puts): Add declaration.
10519 * gdb/utils.c (emit_style_escape): Update.
10520 (flush_wrap_buffer): Update.
10521 (fputs_maybe_filtered): Update.
10522 (fputs_unfiltered): Add function.
10523
10524 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10525
10526 * gdb/event-loop.c (gdb_wait_for_event): Update.
10527 * gdb/printcmd.c (printf_command): Update.
10528 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10529 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10530 (gdb_os_flush_stderr): Update.
10531 * gdb/remote.c (remote_console_output): Update.
10532 * gdb/ui-file.c (gdb_flush): Rename to...
10533 (ui_file_flush): ...this.
10534 (stderr_file::write): Update.
10535 (stderr_file::puts): Update.
10536 * gdb/ui-file.h (gdb_flush): Rename to...
10537 (ui_file_flush): ...this.
10538 * gdb/utils.c (gdb_flush): Add function.
10539 * gdb/utils.h (gdb_flush): Add declaration.
10540
10541 2020-02-07 Tom Tromey <tromey@adacore.com>
10542
10543 PR breakpoints/24915:
10544 * source.c (find_and_open_source): Do not check basenames_may_differ.
10545
10546 2020-02-07 Tom Tromey <tom@tromey.com>
10547
10548 * README: Update gdbserver documentation.
10549 * gdbserver: Move to top level.
10550 * configure.tgt (build_gdbserver): Remove.
10551 * configure.ac: Remove --enable-gdbserver.
10552 * configure: Rebuild.
10553 * Makefile.in (distclean): Don't mention gdbserver.
10554
10555 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10556
10557 * source-cache.c (source_cache::ensure): Surround
10558 get_plain_source_lines with a try/catch.
10559 (source_cache::get_line_charpos): Get rid of try/catch
10560 and only check for the return value of "ensure".
10561 * tui/tui-source.c (tui_source_window::set_contents):
10562 Simplify "nlines" calculation.
10563
10564 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10565
10566 * MAINTAINERS (Write After Approval): Add myself.
10567
10568 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10569
10570 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10571 function call.
10572
10573 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10574
10575 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10576
10577 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10578
10579 * nat/riscv-linux-tdesc.h: New file.
10580 * nat/riscv-linux-tdesc.c: New file, taking code from...
10581 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10582 ... here.
10583 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10584 NATDEPFILES.
10585
10586 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10587
10588 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10589 we don't set the fake simulator ptid to the null_ptid.
10590
10591 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10592
10593 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10594 * gdbthread.h (class thread_info) <resumed>: Likewise.
10595 * infrun.c (resume_1): Likewise.
10596 (proceed): Likewise.
10597 (infrun_thread_stop_requested): Likewise.
10598 (stop_all_threads): Likewise.
10599 (handle_inferior_event): Likewise.
10600 (restart_threads): Likewise.
10601 (finish_step_over): Likewise.
10602 (keep_going_stepped_thread): Likewise.
10603 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10604 (linux_handle_extended_wait): Likewise.
10605 * record-btrace.c (get_thread_current_frame_id): Likewise.
10606 * record-full.c (record_full_wait_1): Likewise.
10607 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10608 * target.c (target_resume): Likewise.
10609 * thread.c (set_running_thread): Likewise.
10610
10611 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10612
10613 * f-valprint.c (f77_print_array_1): Changed datatype of index
10614 variable to LONGEST from int to enable it to contain bound
10615 values correctly.
10616
10617 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10618
10619 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10620 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10621 offsets according to FLEN determined.
10622 (riscv_linux_nat_target::read_description): Determine FLEN
10623 dynamically.
10624 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10625 according to FLEN determined.
10626 (riscv_linux_nat_target::store_registers): Likewise.
10627
10628 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10629
10630 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10631 when reg->group is empty and reggroup is not.
10632
10633 2020-01-31 Tom Tromey <tromey@adacore.com>
10634
10635 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10636 Call beneath target's mourn_inferior after unpushing.
10637
10638 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10639
10640 PR tui/9765
10641 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10642 have enough lines to fill the screen, still return the lowest
10643 address we found.
10644
10645 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10646
10647 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10648 '-', '<', and '>' commands.
10649
10650 2020-01-29 Pedro Alves <palves@redhat.com>
10651 Sergio Durigan Junior <sergiodj@redhat.com>
10652
10653 * infcmd.c (construct_inferior_arguments): Assert that
10654 'argc' is greater than 0.
10655
10656 2020-01-29 Luis Machado <luis.machado@linaro.org>
10657
10658 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10659 (BRK_INSN_MASK): Define to 0xd4200000.
10660 (aarch64_program_breakpoint_here_p): New function.
10661 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10662 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10663 breakpoint.c.
10664 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10665 breakpoint.h
10666 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10667 call gdbarch_program_breakpoint_here_p.
10668 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10669 default_program_breakpoint_here_p, changed return type to bool and
10670 simplified.
10671 * breakpoint.h (program_breakpoint_here): Moved prototype to
10672 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10673 return type to bool.
10674 * gdbarch.c: Regenerate.
10675 * gdbarch.h: Regenerate.
10676 * gdbarch.sh (program_breakpoint_here_p): New method.
10677 * infrun.c (handle_signal_stop): Call
10678 gdbarch_program_breakpoint_here_p.
10679
10680 2020-01-26 Tom Tromey <tom@tromey.com>
10681
10682 * ctfread.c (struct ctf_fp_info): Reindent.
10683 (_initialize_ctfread): Remove.
10684
10685 2020-01-26 Tom Tromey <tom@tromey.com>
10686
10687 * psymtab.c (partial_map_expand_apply)
10688 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10689 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10690 (psym_print_stats, psym_expand_symtabs_for_function)
10691 (psym_map_symbol_filenames, psym_map_matching_symbols)
10692 (psym_expand_symtabs_matching)
10693 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10694 (maintenance_check_psymtabs): Use new methods.
10695 * psympriv.h (struct partial_symtab) <readin_p,
10696 get_compunit_symtab>: New methods.
10697 <readin, compunit_symtab>: Remove members.
10698 (struct standard_psymtab): New.
10699 (struct legacy_psymtab): Derive from standard_psymtab.
10700 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10701 standard_psymtab.
10702 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10703
10704 2020-01-26 Tom Tromey <tom@tromey.com>
10705
10706 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10707 read_dependencies. Add assert.
10708 * psymtab.c (partial_symtab::read_dependencies): New method.
10709 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10710 method.
10711 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10712 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10713 read_dependencies.
10714 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10715 Add assert.
10716
10717 2020-01-26 Tom Tromey <tom@tromey.com>
10718
10719 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10720 Call expand_psymtab.
10721 (xcoff_read_symtab): Call expand_psymtab.
10722 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10723 legacy_expand_psymtab.
10724 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10725 method.
10726 (struct legacy_psymtab) <expand_psymtab>: Implement.
10727 <legacy_expand_psymtab>: New member.
10728 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10729 (parse_partial_symbols): Set legacy_expand_psymtab.
10730 (psymtab_to_symtab_1): Change argument order. Call
10731 expand_psymtab.
10732 (new_psymtab): Set legacy_expand_psymtab.
10733 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10734 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10735 expand_psymtab.
10736 (dwarf2_psymtab::expand_psymtab): Rename from
10737 psymtab_to_symtab_1. Call expand_psymtab.
10738 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10739 (dbx_end_psymtab): Likewise.
10740 (dbx_psymtab_to_symtab_1): Change argument order. Call
10741 expand_psymtab.
10742 (dbx_read_symtab): Call expand_psymtab.
10743 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10744 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10745 (ctf_psymtab::read_symtab): Call expand_psymtab.
10746
10747 2020-01-26 Tom Tromey <tom@tromey.com>
10748
10749 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10750 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10751 messages.
10752 * mdebugread.c (mdebug_read_symtab): Remove prints.
10753 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10754 assert.
10755 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10756
10757 2020-01-26 Tom Tromey <tom@tromey.com>
10758
10759 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10760 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10761 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10762 legacy_symtab.
10763 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10764 * psymtab.c (psymtab_to_symtab): Call method.
10765 (dump_psymtab): Update.
10766 * psympriv.h (struct partial_symtab): Add virtual destructor.
10767 <read_symtab>: New method.
10768 (struct legacy_symtab): New.
10769 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10770 (struct pst_map) <pst>: Now a legacy_psymtab.
10771 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10772 (new_psymtab): Use legacy_psymtab.
10773 * dwarf2read.h (struct dwarf2_psymtab): New.
10774 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10775 * dwarf2read.c (dwarf2_create_include_psymtab)
10776 (dwarf2_build_include_psymtabs, create_type_unit_group)
10777 (create_partial_symtab, process_psymtab_comp_unit_reader)
10778 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10779 (set_partial_user): Use dwarf2_psymtab.
10780 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10781 (psymtab_to_symtab_1, process_full_comp_unit)
10782 (process_full_type_unit, dwarf2_ranges_read)
10783 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10784 (dwarf_decode_lines): Use dwarf2_psymtab.
10785 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10786 (add_address_entry_worker, write_one_signatured_type)
10787 (recursively_count_psymbols, recursively_write_psymbols)
10788 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10789 (write_debug_names): Likewise.
10790 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10791 <pst>: Now a legacy_psymtab.
10792 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10793 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10794 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10795 * ctfread.c (struct ctf_psymtab): New.
10796 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10797 ctf_psymtab.
10798 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10799 (create_partial_symtab): Return a ctf_psymtab.
10800 (scan_partial_symbols): Update.
10801
10802 2020-01-26 Tom Tromey <tom@tromey.com>
10803
10804 * xcoffread.c (xcoff_start_psymtab): Use new.
10805 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10806 renamed from start_psymtab_common.
10807 * psympriv.h (struct partial_symtab): Add new constructor.
10808 (start_psymtab_common): Don't declare.
10809 * mdebugread.c (parse_partial_symbols): Use new.
10810 * dwarf2read.c (create_partial_symtab): Use new.
10811 * dbxread.c (start_psymtab): Use new.
10812 * ctfread.c (create_partial_symtab): Use new.
10813
10814 2020-01-26 Tom Tromey <tom@tromey.com>
10815
10816 * xcoffread.c (xcoff_end_psymtab): Use new.
10817 * psymtab.c (start_psymtab_common): Use new.
10818 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10819 Update.
10820 * psympriv.h (struct partial_symtab): Add parameters to
10821 constructor. Don't inline.
10822 (allocate_psymtab): Don't declare.
10823 * mdebugread.c (new_psymtab): Use new.
10824 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10825 * dbxread.c (dbx_end_psymtab): Use new.
10826
10827 2020-01-26 Tom Tromey <tom@tromey.com>
10828
10829 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10830 allocate_psymtab. Update documentation.
10831 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10832 allocate_psymtab. Do not use new.
10833 (allocate_psymtab): Use new. Update.
10834
10835 2020-01-26 Tom Tromey <tom@tromey.com>
10836
10837 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10838 * psymtab.c (psym_print_stats): Update.
10839 * psympriv.h (struct partial_symtab) <readin,
10840 psymtabs_addrmap_supported, anonymous>: Now bool.
10841 * mdebugread.c (psymtab_to_symtab_1): Update.
10842 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10843 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10844 (process_full_comp_unit, process_full_type_unit): Update.
10845 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10846 * ctfread.c (psymtab_to_symtab): Update.
10847
10848 2020-01-26 Tom Tromey <tom@tromey.com>
10849
10850 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10851 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10852 * psymtab.c (psymtab_storage): Delete psymtabs.
10853 (psymtab_storage::allocate_psymtab): Use new.
10854 (psymtab_storage::discard_psymtab): Use delete.
10855 * psympriv.h (struct partial_symtab): Add constructor and
10856 initializers.
10857
10858 2020-01-26 Tom Tromey <tom@tromey.com>
10859
10860 * machoread.c: Do not include psympriv.h.
10861
10862 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10863
10864 * NEWS: Mention the new option and the set/show commands.
10865
10866 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10867
10868 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10869 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10870 (validate_exec_file): New variables, enums, functions.
10871 (exec_file_locate_attach, print_section_info): Style the filenames.
10872 (_initialize_exec): Install show_exec_file_mismatch_command and
10873 set_exec_file_mismatch_command.
10874 * gdbcore.h (validate_exec_file): Declare.
10875 * infcmd.c (attach_command): Call validate_exec_file.
10876 * remote.c ( remote_target::remote_add_inferior): Likewise.
10877
10878 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10879
10880 * frame.c (find_frame_sal): Move call to get_next_frame into more
10881 inner scope.
10882 * inline-frame.c (inilne_state) <inline_state>: Update argument
10883 types.
10884 (inilne_state) <skipped_symbol>: Rename to...
10885 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10886 (skip_inline_frames): Build vector of skipped symbols and use this
10887 to reate the inline_state.
10888 (inline_skipped_symbol): Add a comment and some assertions, fetch
10889 skipped symbol from the list.
10890
10891 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10892
10893 * buildsym.c (lte_is_less_than): Delete.
10894 (buildsym_compunit::end_symtab_with_blockvector): Create local
10895 lambda function to sort line table entries, and use
10896 std::stable_sort instead of std::sort.
10897 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10898 markers when looking for a previous line.
10899
10900 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10901
10902 * dwarf2read.c (lnp_state_machine::record_line): Include
10903 end_sequence parameter in debug print out. Record the line if we
10904 are at an end_sequence marker even if it's not the start of a
10905 statement.
10906 * symmisc.c (maintenance_print_one_line_table): Print end of
10907 sequence markers with 'END' not '0'.
10908
10909 2020-01-24 Pedro Alves <palves@redhat.com>
10910
10911 PR gdb/25410
10912 * thread.c (scoped_restore_current_thread::restore): Use
10913 switch_to_inferior_no_thread.
10914 * exec.c: Include "progspace-and-thread.h".
10915 (add_target_sections, remove_target_sections):
10916 scoped_restore_current_pspace_and_thread instead of
10917 scoped_restore_current_thread.
10918 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10919 and aspace to the inferior before calling clone_program_space.
10920 Remove stale comment.
10921
10922 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10923
10924 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10925 (arm_netbsd_nat_target::fetch_registers): ...this.
10926 (arm_nbsd_nat_target::store_registers): Rename to...
10927 (arm_netbsd_nat_target::store_registers): ...this.
10928
10929 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10930
10931 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10932 register_t.
10933
10934 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10935
10936 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10937 Update comment.
10938 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10939 Likewise.
10940 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10941 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10942 the correct replacement (iterate_over_regset_sections).
10943 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10944 Update comment.
10945
10946 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10947
10948 PR gdb/23718
10949 * gdb/python/python.c (execute_gdb_command): Call
10950 async_enable_stdin in catch block.
10951
10952 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10953
10954 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10955 SWITCH_THRU_ALL_UIS.
10956
10957 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10958
10959 PR tui/9765
10960 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10961 comment, add extra parameter, and update to store previous symbol
10962 when appropriate.
10963 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10964 add extra parameter.
10965 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10966 remove unneeded parameter, add try/catch around gdb_print_insn,
10967 rewrite to add items to asm_lines vector.
10968 (tui_find_backward_disassembly_start_address): New function.
10969 (tui_find_disassembly_address): Updated throughout.
10970 (tui_disasm_window::set_contents): Update for changes to
10971 tui_disassemble.
10972 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10973 number of lines to scroll.
10974
10975 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10976
10977 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10978 (SECT_OFF_DATA): Likewise.
10979 (SECT_OFF_RODATA): Likewise.
10980 (SECT_OFF_TEXT): Likewise.
10981 (SECT_OFF_BSS): Likewise.
10982 (struct objfile) <text_section_offset, data_section_offset>: New
10983 methods.
10984 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10985 objfile::text_section_offset.
10986 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10987 * coffread.c (coff_symtab_read): Likewise.
10988 (enter_linenos): Likewise.
10989 (process_coff_symbol): Likewise.
10990 * ctfread.c (get_objfile_text_range): Likewise.
10991 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10992 Use objfile::data_section_offset.
10993 * dwarf2-frame.c (execute_cfa_program): Use
10994 objfile::text_section_offset.
10995 (dwarf2_frame_find_fde): Likewise.
10996 * dwarf2read.c (create_addrmap_from_index): Likewise.
10997 (create_addrmap_from_aranges): Likewise.
10998 (dw2_find_pc_sect_compunit_symtab): Likewise.
10999 (process_psymtab_comp_unit_reader): Likewise.
11000 (add_partial_symbol): Likewise.
11001 (add_partial_subprogram): Likewise.
11002 (process_full_comp_unit): Likewise.
11003 (read_file_scope): Likewise.
11004 (read_func_scope): Likewise.
11005 (read_lexical_block_scope): Likewise.
11006 (read_call_site_scope): Likewise.
11007 (dwarf2_rnglists_process): Likewise.
11008 (dwarf2_ranges_process): Likewise.
11009 (dwarf2_ranges_read): Likewise.
11010 (dwarf_decode_lines_1): Likewise.
11011 (new_symbol): Likewise.
11012 (dwarf2_fetch_die_loc_sect_off): Likewise.
11013 (dwarf2_per_cu_text_offset): Likewise.
11014 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11015 * hppa-tdep.c (read_unwind_info): Likewise.
11016 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11017 * psympriv.h (struct partial_symtab): Likewise.
11018 * psymtab.c (find_pc_sect_psymtab): Likewise.
11019 * solib-svr4.c (enable_break): Likewise.
11020 * stap-probe.c (relocate_address): Use
11021 objfile::data_section_offset.
11022 * xcoffread.c (enter_line_range): Use
11023 objfile::text_section_offset.
11024 (read_xcoff_symtab): Likewise.
11025
11026 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11027
11028 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11029 declaration to narrower scopes.
11030
11031 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11032
11033 * darwin-nat.h (struct darwin_exception_msg, enum
11034 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11035 Move up.
11036 (class darwin_nat_target) <wait_1, check_new_threads,
11037 decode_exception_message, decode_message, stop_inferior,
11038 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11039 * darwin-nat.c (darwin_check_new_threads): Rename to...
11040 (darwin_nat_target::check_new_threads): ... this.
11041 (darwin_suspend_inferior_it): Remove.
11042 (darwin_decode_exception_message): Rename to...
11043 (darwin_nat_target::decode_exception_message): ... this.
11044 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11045 (darwin_decode_message): Rename to...
11046 (darwin_nat_target::decode_message): ... this.
11047 (cancel_breakpoint): Rename to...
11048 (darwin_nat_target::cancel_breakpoint): ... this.
11049 (darwin_wait): Rename to...
11050 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11051 instead of iterate_over_inferiors.
11052 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11053 (darwin_stop_inferior): Rename to...
11054 (darwin_nat_target::stop_inferior): ... this.
11055 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11056 (darwin_init_thread_list): Rename to...
11057 (darwin_nat_target::init_thread_list): ... this.
11058 (darwin_ptrace_him): Rename to...
11059 (darwin_nat_target::ptrace_him): ... this.
11060 (darwin_nat_target::create_inferior): Pass lambda function to
11061 fork_inferior.
11062 (darwin_nat_target::detach): Call stop_inferior instead of
11063 darwin_stop_inferior.
11064 * fork-inferior.h (fork_inferior): Change init_trace_fun
11065 parameter to gdb::function_view.
11066 * fork-inferior.c (fork_inferior): Likewise.
11067
11068 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11069
11070 * i386-cygwin-tdep.c (core_process_module_section): Update.
11071 * windows-nat.c (struct lm_info_windows): Add text_offset.
11072 (windows_xfer_shared_libraries): Update.
11073 * windows-tdep.c (windows_xfer_shared_library):
11074 Add text_offset_cached argument.
11075 * windows-tdep.h (windows_xfer_shared_library): Update.
11076
11077 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11078
11079 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11080
11081 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11082
11083 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11084 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11085 replace with range-based for.
11086 (gdbsim_interrupt_inferior): Remove.
11087 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11088 with a range-based for. Inline code from
11089 gdbsim_interrupt_inferior.
11090
11091 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11092
11093 * infrun.c (proceed): Fix indentation.
11094
11095 2020-01-21 Tom Tromey <tromey@adacore.com>
11096
11097 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11098 * python/python.c (python_extension_ops): Update.
11099 (gdbpy_colorize): New function.
11100 * python/lib/gdb/__init__.py (colorize): New function.
11101 * extension.h (ext_lang_colorize): Declare.
11102 * extension.c (ext_lang_colorize): New function.
11103 * extension-priv.h (struct extension_language_ops) <colorize>: New
11104 member.
11105 * cli/cli-style.c (_initialize_cli_style): Update help text.
11106
11107 2020-01-21 Luis Machado <luis.machado@linaro.org>
11108
11109 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11110 <cond>: Change type to bool.
11111 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11112 (aarch64_displaced_step_cb): Likewise.
11113 (aarch64_displaced_step_tb): Likewise.
11114
11115 2020-01-21 Luis Machado <luis.machado@linaro.org>
11116
11117 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11118 output.
11119
11120 2020-01-21 Luis Machado <luis.machado@linaro.org>
11121
11122 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11123 <pc_adjust>: Adjust the documentation.
11124 (aarch64_displaced_step_fixup): Check if PC really moved before
11125 adjusting it.
11126
11127 2020-01-19 Tom Tromey <tom@tromey.com>
11128
11129 * disasm.c (~gdb_disassembler): New destructor.
11130 (gdb_buffered_insn_length): Call disassemble_free_target.
11131 * disasm.h (class gdb_disassembler): Declare destructor. Use
11132 DISABLE_COPY_AND_ASSIGN.
11133
11134 2020-01-19 Tom Tromey <tom@tromey.com>
11135
11136 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11137 (die_reader_func_ftype): Remove.
11138 (cutu_reader): New class.
11139 (dw2_get_file_names_reader): Remove "data" parameter.
11140 (dw2_get_file_names): Use cutu_reader.
11141 (create_debug_type_hash_table): Update.
11142 (read_cutu_die_from_dwo): Update comment.
11143 (lookup_dwo_unit): Add dwo_name parameter.
11144 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11145 die_reader_func_ftype and data parameters.
11146 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11147 Remove die_reader_func_ftype and data parameters.
11148 (~cutu_reader): New; from init_cutu_and_read_dies.
11149 (cutu_reader::cutu_reader): Rename from
11150 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11151 and data parameters.
11152 (init_cutu_and_read_dies_simple): Remove.
11153 (struct process_psymtab_comp_unit_data): Remove.
11154 (process_psymtab_comp_unit_reader): Remove data parameter; add
11155 want_partial_unit and pretend_language parameters.
11156 (process_psymtab_comp_unit): Use cutu_reader.
11157 (build_type_psymtabs_reader): Remove data parameter.
11158 (build_type_psymtabs_1): Use cutu_reader.
11159 (process_skeletonless_type_unit): Likewise.
11160 (load_partial_comp_unit_reader): Remove.
11161 (load_partial_comp_unit): Use cutu_reader.
11162 (load_full_comp_unit_reader): Remove.
11163 (load_full_comp_unit): Use cutu_reader.
11164 (struct create_dwo_cu_data): Remove.
11165 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11166 dwo_unit parameters.
11167 (create_cus_hash_table): Use cutu_reader.
11168 (struct dwarf2_read_addr_index_data): Remove.
11169 (dwarf2_read_addr_index_reader): Remove.
11170 (dwarf2_read_addr_index): Use cutu_reader.
11171 (read_signatured_type_reader): Remove.
11172 (read_signatured_type): Use cutu_reader.
11173
11174 2020-01-19 Tom Tromey <tom@tromey.com>
11175
11176 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11177 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11178 (tui_wrefresh): Declare.
11179 * tui/tui-wingeneral.c (suppress_output): New global.
11180 (tui_suppress_output, ~tui_suppress_output): New constructor and
11181 destructor.
11182 (tui_wrefresh): New function.
11183 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11184 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11185 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11186 method.
11187 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11188 tui_wrefresh.
11189 (tui_data_window::no_refresh): New method.
11190 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11191 (tui_reg_command): Use tui_suppress_output
11192 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11193 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11194 method.
11195 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11196
11197 2020-01-19 Tom Tromey <tom@tromey.com>
11198
11199 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11200 Handle case where symtab is null.
11201
11202 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11203
11204 * linux-fork.c (one_fork_p): Simplify.
11205
11206 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11207
11208 * top.c (struct qt_args): Remove.
11209 (kill_or_detach): Change return type to void, replace `void *`
11210 parameter with a proper one.
11211 (print_inferior_quit_action): Likewise.
11212 (quit_confirm): Use range-based for loop to iterate over inferiors.
11213 (quit_force): Likewise.
11214
11215 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11216
11217 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11218 `void *` parameter with proper parameters.
11219 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11220 (print_one_inferior): Change return type to void, replace `void *`
11221 parameter with proper parameters.
11222 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11223 inferiors.
11224 (get_other_inferior): Remove.
11225 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11226 inferiors.
11227
11228 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11229
11230 * mi/mi-interp.c (report_initial_inferior): Remove.
11231 (mi_interp::init): Use range-based for to iterate over inferiors.
11232
11233 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11234
11235 * python/py-inferior.c (build_inferior_list): Remove.
11236 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11237
11238 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11239
11240 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11241 (btrace_stitch_trace): Likewise.
11242 * charset.c (intermediate_encoding): Likewise (vaild).
11243 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11244 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11245 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11246
11247 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11248
11249 * windows-tdep.c (windows_get_tlb_type):
11250 Add rtl_user_process_parameters type.
11251
11252 2020-01-16 Pedro Alves <palves@redhat.com>
11253 Norbert Lange <nolange79@gmail.com>
11254
11255 PR build/24805
11256 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11257 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11258 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11259 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11260 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11261 (ps_plog): Redeclare exported functions with default visibility.
11262
11263 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11264
11265 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11266 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11267
11268 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11269
11270 * infcmd.c (post_create_inferior): Use get_thread_regcache
11271 instead of get_current_regcache.
11272
11273 2020-01-14 Tom Tromey <tom@tromey.com>
11274
11275 PR symtab/12535:
11276 * python/python.c (gdbpy_decode_line): Treat empty string the same
11277 as no argument.
11278
11279 2020-01-14 Tom Tromey <tom@tromey.com>
11280
11281 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11282
11283 2020-01-14 Tom Tromey <tom@tromey.com>
11284
11285 * nat/linux-btrace.c: Don't include <config.h>.
11286 * nat/linux-ptrace.c: Don't include <config.h>.
11287 * nat/x86-linux-dregs.c: Don't include <config.h>.
11288
11289 2020-01-14 Tom Tromey <tom@tromey.com>
11290
11291 * configure: Rebuild.
11292 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11293
11294 2020-01-14 Tom Tromey <tom@tromey.com>
11295
11296 * nat/x86-linux-dregs.c: Include configh.h.
11297 * nat/linux-ptrace.c: Include configh.h.
11298 * nat/linux-btrace.c: Include configh.h.
11299 * defs.h: Include config.h, bfd.h.
11300 * configure.ac: Don't source common.host.
11301 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11302 * configure: Rebuild.
11303 * acinclude.m4: Update path.
11304 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11305 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11306 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11307 (CLIBS): Add LIBSUPPORT.
11308 (CDEPS): Likewise.
11309 (COMMON_SFILES): Remove gdbsupport files.
11310 (HFILES_NO_SRCDIR): Likewise.
11311 (stamp-version): Update path to create-version.sh.
11312 (ALLDEPFILES): Remove gdbsupport files.
11313
11314 2020-01-14 Tom Tromey <tom@tromey.com>
11315
11316 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11317 USE_WIN32API when needed.
11318 * configure.ac (USE_WIN32API): Don't define.
11319 (WIN32LIBS): Use WIN32APILIBS.
11320 * configure: Rebuild.
11321
11322 2020-01-14 Tom Tromey <tom@tromey.com>
11323
11324 * configure: Rebuild.
11325 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11326
11327 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11328
11329 * skip.c (skip_function_command): Make skip w/o arguments use the
11330 name of the inlined function if pc is inside any inlined function.
11331
11332 2020-01-14 Luis Machado <luis.machado@linaro.org>
11333
11334 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11335 * infrun.c (resume_1): Likewise.
11336 (handle_inferior_event): Remove stale comment.
11337 * linux-nat.c (linux_nat_target::resume): Update comments.
11338 (save_stop_reason): Likewise.
11339 (linux_nat_filter_event): Likewise.
11340 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11341
11342 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11343
11344 * elfread.c (record_minimal_symbol): Set section index to 0 for
11345 non-allocatable sections.
11346
11347
11348 2020-01-13 Ali Tamur <tamur@google.com>
11349
11350 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11351 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11352 to gdb::optional. Update comments.
11353 (dwo_file): Update comments.
11354 (read_attribute): Update API to take an additional out parameter,
11355 need_reprocess. This is used to mark attributes that need other
11356 attributes (e.g. str_offsets_base) for correct computation which may not
11357 have been read yet.
11358 (read_attribute_reprocess): New function declaration.
11359 (read_addr_index): Likewise.
11360 (read_dwo_str_index): Likewise.
11361 (read_stub_str_index): Likewise.
11362 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11363 (lookup_addr_base): New function definition.
11364 (lookup_ranges_base): Likewise.
11365 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11366 lookup_ranges_base.
11367 (init_cutu_and_read_dies): Update comments.
11368 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11369 unit. This is used to inherit parent's str_offsets_base and addr_base.
11370 Update comments.
11371 (init_cutu_and_read_dies_simple): Reflect API changes.
11372 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11373 (create_cus_hash_table): Change API to take parent compile unit.
11374 Reflect API changes.
11375 (open_and_init_dwo_file): Reflect API changes.
11376 (dwarf2_get_pc_bounds): Update comments.
11377 (dwarf2_record_block_ranges): Likewise.
11378 (read_full_die_1): Change implementation to reprocess attributes that
11379 need str_offsets_base and addr_base.
11380 (partial_die_info::read): Likewise.
11381 (read_attribute_reprocess): New function definition.
11382 (read_attribute_value): Change API to take an additional out parameter,
11383 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11384 when a non-dwo compile unit has index based attributes.
11385 (read_attribute): Reflect API changes.
11386 (read_addr_index_1): Reflect API changes. Update comments.
11387 (dwarf2_read_addr_index_data): Reflect API changes.
11388 (dwarf2_read_addr_index): Likewise.
11389 (read_str_index): Change API and implementation. This becomes a helper
11390 to be used by the new string index related methods. Update error
11391 message and comments.
11392 (read_dwo_str_index): New function definition.
11393 (read_stub_str_index): Likewise.
11394 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11395 * symfile.h (dwarf2_debug_sections): Likewise.
11396 * xcoffread.c (dwarf2_debug_sections): Likewise.
11397
11398 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11399
11400 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11401 core_reg_sect type to gdb_byte *.
11402 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11403 * cris-tdep.c (fetch_core_registers): Likewise.
11404 * corelow.c (core_target::get_core_register_section): Change
11405 type of `contents` to gdb::byte_vector.
11406
11407 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11408
11409 * tui/tui-wingeneral.c (box_win): Position the title in the center
11410 of the border.
11411
11412 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11413
11414 * corelow.c (core_target::get_core_register_section): Use
11415 std::vector instead of alloca.
11416
11417 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11418
11419 * warning.m4: Add -Wmissing-declarations to build_warnings.
11420 * configure: Re-generate.
11421
11422 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11423
11424 * python/python.c (init__gdb_module): Add declaration.
11425
11426 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11427
11428 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11429 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11430 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11431 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11432 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11433 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11434 * ada-exp.y (_initialize_ada_exp): Add declaration.
11435 * ada-lang.c (_initialize_ada_language): Add declaration.
11436 * ada-tasks.c (_initialize_tasks): Add declaration.
11437 * agent.c (_initialize_agent): Add declaration.
11438 * aix-thread.c (_initialize_aix_thread): Add declaration.
11439 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11440 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11441 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11442 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11443 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11444 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11445 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11446 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11447 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11448 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11449 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11450 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11451 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11452 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11453 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11454 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11455 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11456 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11457 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11458 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11459 * annotate.c (_initialize_annotate): Add declaration.
11460 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11461 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11462 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11463 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11464 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11465 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11466 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11467 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11468 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11469 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11470 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11471 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11472 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11473 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11474 * auto-load.c (_initialize_auto_load): Add declaration.
11475 * auxv.c (_initialize_auxv): Add declaration.
11476 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11477 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11478 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11479 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11480 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11481 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11482 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11483 * breakpoint.c (_initialize_breakpoint): Add declaration.
11484 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11485 * btrace.c (_initialize_btrace): Add declaration.
11486 * charset.c (_initialize_charset): Add declaration.
11487 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11488 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11489 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11490 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11491 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11492 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11493 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11494 * coffread.c (_initialize_coffread): Add declaration.
11495 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11496 * compile/compile.c (_initialize_compile): Add declaration.
11497 * complaints.c (_initialize_complaints): Add declaration.
11498 * completer.c (_initialize_completer): Add declaration.
11499 * copying.c (_initialize_copying): Add declaration.
11500 * corefile.c (_initialize_core): Add declaration.
11501 * corelow.c (_initialize_corelow): Add declaration.
11502 * cp-abi.c (_initialize_cp_abi): Add declaration.
11503 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11504 * cp-support.c (_initialize_cp_support): Add declaration.
11505 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11506 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11507 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11508 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11509 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11510 * ctfread.c (_initialize_ctfread): Add declaration.
11511 * d-lang.c (_initialize_d_language): Add declaration.
11512 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11513 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11514 * dbxread.c (_initialize_dbxread): Add declaration.
11515 * dcache.c (_initialize_dcache): Add declaration.
11516 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11517 * disasm.c (_initialize_disasm): Add declaration.
11518 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11519 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11520 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11521 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11522 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11523 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11524 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11525 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11526 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11527 * elfread.c (_initialize_elfread): Add declaration.
11528 * exec.c (_initialize_exec): Add declaration.
11529 * extension.c (_initialize_extension): Add declaration.
11530 * f-lang.c (_initialize_f_language): Add declaration.
11531 * f-valprint.c (_initialize_f_valprint): Add declaration.
11532 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11533 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11534 * filesystem.c (_initialize_filesystem): Add declaration.
11535 * findcmd.c (_initialize_mem_search): Add declaration.
11536 * findvar.c (_initialize_findvar): Add declaration.
11537 * fork-child.c (_initialize_fork_child): Add declaration.
11538 * frame-base.c (_initialize_frame_base): Add declaration.
11539 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11540 * frame.c (_initialize_frame): Add declaration.
11541 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11542 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11543 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11544 * gcore.c (_initialize_gcore): Add declaration.
11545 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11546 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11547 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11548 * gdbarch.c (_initialize_gdbarch): Add declaration.
11549 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11550 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11551 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11552 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11553 * go-lang.c (_initialize_go_language): Add declaration.
11554 * go32-nat.c (_initialize_go32_nat): Add declaration.
11555 * guile/guile.c (_initialize_guile): Add declaration.
11556 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11557 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11558 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11559 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11560 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11561 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11562 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11563 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11564 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11565 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11566 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11567 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11568 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11569 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11570 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11571 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11572 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11573 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11574 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11575 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11576 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11577 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11578 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11579 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11580 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11581 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11582 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11583 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11584 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11585 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11586 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11587 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11588 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11589 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11590 * infcall.c (_initialize_infcall): Add declaration.
11591 * infcmd.c (_initialize_infcmd): Add declaration.
11592 * inflow.c (_initialize_inflow): Add declaration.
11593 * infrun.c (_initialize_infrun): Add declaration.
11594 * interps.c (_initialize_interpreter): Add declaration.
11595 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11596 * jit.c (_initialize_jit): Add declaration.
11597 * language.c (_initialize_language): Add declaration.
11598 * linux-fork.c (_initialize_linux_fork): Add declaration.
11599 * linux-nat.c (_initialize_linux_nat): Add declaration.
11600 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11601 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11602 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11603 * m2-lang.c (_initialize_m2_language): Add declaration.
11604 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11605 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11606 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11607 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11608 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11609 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11610 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11611 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11612 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11613 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11614 * machoread.c (_initialize_machoread): Add declaration.
11615 * macrocmd.c (_initialize_macrocmd): Add declaration.
11616 * macroscope.c (_initialize_macroscope): Add declaration.
11617 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11618 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11619 * maint.c (_initialize_maint_cmds): Add declaration.
11620 * mdebugread.c (_initialize_mdebugread): Add declaration.
11621 * memattr.c (_initialize_mem): Add declaration.
11622 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11623 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11624 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11625 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11626 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11627 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11628 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11629 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11630 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11631 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11632 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11633 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11634 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11635 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11636 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11637 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11638 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11639 * mipsread.c (_initialize_mipsread): Add declaration.
11640 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11641 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11642 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11643 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11644 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11645 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11646 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11647 * nto-procfs.c (_initialize_procfs): Add declaration.
11648 * objc-lang.c (_initialize_objc_language): Add declaration.
11649 * observable.c (_initialize_observer): Add declaration.
11650 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11651 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11652 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11653 * osabi.c (_initialize_gdb_osabi): Add declaration.
11654 * osdata.c (_initialize_osdata): Add declaration.
11655 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11656 * parse.c (_initialize_parse): Add declaration.
11657 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11658 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11659 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11660 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11661 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11662 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11663 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11664 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11665 * printcmd.c (_initialize_printcmd): Add declaration.
11666 * probe.c (_initialize_probe): Add declaration.
11667 * proc-api.c (_initialize_proc_api): Add declaration.
11668 * proc-events.c (_initialize_proc_events): Add declaration.
11669 * proc-service.c (_initialize_proc_service): Add declaration.
11670 * procfs.c (_initialize_procfs): Add declaration.
11671 * producer.c (_initialize_producer): Add declaration.
11672 * psymtab.c (_initialize_psymtab): Add declaration.
11673 * python/python.c (_initialize_python): Add declaration.
11674 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11675 * record-btrace.c (_initialize_record_btrace): Add declaration.
11676 * record-full.c (_initialize_record_full): Add declaration.
11677 * record.c (_initialize_record): Add declaration.
11678 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11679 * regcache.c (_initialize_regcache): Add declaration.
11680 * reggroups.c (_initialize_reggroup): Add declaration.
11681 * remote-notif.c (_initialize_notif): Add declaration.
11682 * remote-sim.c (_initialize_remote_sim): Add declaration.
11683 * remote.c (_initialize_remote): Add declaration.
11684 * reverse.c (_initialize_reverse): Add declaration.
11685 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11686 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11687 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11688 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11689 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11690 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11691 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11692 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11693 Add declaration.
11694 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11695 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11696 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11697 * rust-exp.y (_initialize_rust_exp): Add declaration.
11698 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11699 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11700 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11701 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11702 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11703 * score-tdep.c (_initialize_score_tdep): Add declaration.
11704 * ser-go32.c (_initialize_ser_dos): Add declaration.
11705 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11706 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11707 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11708 * ser-uds.c (_initialize_ser_socket): Add declaration.
11709 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11710 * serial.c (_initialize_serial): Add declaration.
11711 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11712 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11713 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11714 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11715 * skip.c (_initialize_step_skip): Add declaration.
11716 * sol-thread.c (_initialize_sol_thread): Add declaration.
11717 * solib-aix.c (_initialize_solib_aix): Add declaration.
11718 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11719 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11720 * solib-frv.c (_initialize_frv_solib): Add declaration.
11721 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11722 * solib-target.c (_initialize_solib_target): Add declaration.
11723 * solib.c (_initialize_solib): Add declaration.
11724 * source-cache.c (_initialize_source_cache): Add declaration.
11725 * source.c (_initialize_source): Add declaration.
11726 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11727 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11728 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11729 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11730 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11731 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11732 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11733 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11734 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11735 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11736 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11737 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11738 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11739 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11740 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11741 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11742 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11743 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11744 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11745 * stabsread.c (_initialize_stabsread): Add declaration.
11746 * stack.c (_initialize_stack): Add declaration.
11747 * stap-probe.c (_initialize_stap_probe): Add declaration.
11748 * std-regs.c (_initialize_frame_reg): Add declaration.
11749 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11750 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11751 * symfile.c (_initialize_symfile): Add declaration.
11752 * symmisc.c (_initialize_symmisc): Add declaration.
11753 * symtab.c (_initialize_symtab): Add declaration.
11754 * target.c (_initialize_target): Add declaration.
11755 * target-connection.c (_initialize_target_connection): Add
11756 declaration.
11757 * target-dcache.c (_initialize_target_dcache): Add declaration.
11758 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11759 * thread.c (_initialize_thread): Add declaration.
11760 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11761 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11762 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11763 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11764 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11765 * tracectf.c (_initialize_ctf): Add declaration.
11766 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11767 * tracefile.c (_initialize_tracefile): Add declaration.
11768 * tracepoint.c (_initialize_tracepoint): Add declaration.
11769 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11770 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11771 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11772 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11773 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11774 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11775 * tui/tui.c (_initialize_tui): Add declaration.
11776 * typeprint.c (_initialize_typeprint): Add declaration.
11777 * ui-style.c (_initialize_ui_style): Add declaration.
11778 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11779 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11780 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11781 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11782 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11783 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11784 * unittests/filtered_iterator-selftests.c
11785 (_initialize_filtered_iterator_selftests): Add declaration.
11786 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11787 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11788 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11789 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11790 * unittests/main-thread-selftests.c
11791 (_initialize_main_thread_selftests): Add declaration.
11792 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11793 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11794 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11795 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11796 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11797 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11798 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11799 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11800 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11801 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11802 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11803 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11804 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11805 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11806 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11807 declaration.
11808 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11809 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11810 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11811 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11812 * user-regs.c (_initialize_user_regs): Add declaration.
11813 * utils.c (_initialize_utils): Add declaration.
11814 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11815 * valops.c (_initialize_valops): Add declaration.
11816 * valprint.c (_initialize_valprint): Add declaration.
11817 * value.c (_initialize_values): Add declaration.
11818 * varobj.c (_initialize_varobj): Add declaration.
11819 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11820 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11821 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11822 * windows-nat.c (_initialize_windows_nat): Add declaration.
11823 (_initialize_check_for_gdb_ini): Add declaration.
11824 (_initialize_loadable): Add declaration.
11825 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11826 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11827 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11828 * xcoffread.c (_initialize_xcoffread): Add declaration.
11829 * xml-support.c (_initialize_xml_support): Add declaration.
11830 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11831 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11832 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11833 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11834
11835 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11836
11837 * regformats/regdat.sh: Generate declaration for init function.
11838
11839 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11840
11841 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11842 up.
11843 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11844 close_one_inferior>: New methods.
11845 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11846 pass down target to find_inferior_pid.
11847 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11848 Pass down target to find_inferior_ptid.
11849 (gdbsim_target::create_inferior): Pass down target to
11850 add_thread_silent.
11851 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11852 target down to find_inferior_ptid and switch_to_thread.
11853 (gdbsim_target::close): Update to call close_one_inferior.
11854 (struct resume_data): Remove.
11855 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11856 directly, rather than through a void pointer.
11857 (gdbsim_target::resume): Update to call resume_one_inferior.
11858
11859 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11860
11861 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11862
11863 2020-01-12 Pedro Alves <palves@redhat.com>
11864
11865 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11866 directly for the current inferior instead of
11867 discard_all_inferiors.
11868 (discard_all_inferiors): Delete.
11869
11870 2020-01-11 Tom Tromey <tom@tromey.com>
11871
11872 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11873 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11874 deprecated_safe_get_selected_frame.
11875
11876 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11877
11878 * inferior.c (print_inferior): Switch inferior before printing it.
11879
11880 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11881 Pedro Alves <palves@redhat.com>
11882
11883 * progspace-and-thread.c (switch_to_program_space_and_thread):
11884 Assert there's an inferior for PSPACE. Use
11885 switch_to_inferior_no_thread to switch the inferior too.
11886 * progspace.c (program_space::~program_space): Call
11887 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11888 (program_space::free_all_objfiles): Don't call clear_symtab_users
11889 here.
11890 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11891
11892 2020-01-10 Pedro Alves <palves@redhat.com>
11893
11894 * NEWS: Mention multi-target debugging, "info connections", and
11895 "add-inferior -no-connection".
11896
11897 2020-01-10 Pedro Alves <palves@redhat.com>
11898
11899 * infrun.c: Include "target-connection.h".
11900 (check_multi_target_resumption): New.
11901 (proceed): Call it.
11902 * target-connection.c (make_target_connection_string): Make
11903 extern.
11904 * target-connection.h (make_target_connection_string): Declare.
11905
11906 2020-01-10 Pedro Alves <palves@redhat.com>
11907
11908 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11909 * inferior.c (uiout_field_connection): New function.
11910 (print_inferior): Add new "connection-id" column.
11911 (add_inferior_command): Show connection number/string of added
11912 inferior.
11913 * process-stratum-target.h
11914 (process_stratum_target::connection_string): New virtual method.
11915 (process_stratum_target::connection_number): New field.
11916 * remote.c (remote_target::connection_string): New override.
11917 * target-connection.c: New file.
11918 * target-connection.h: New file.
11919 * target.c (decref_target): Remove process_stratum targets from
11920 the connection list.
11921 (target_stack::push): Add process_stratum targets to the
11922 connection list.
11923
11924 2020-01-10 Pedro Alves <palves@redhat.com>
11925
11926 Revert:
11927 2016-04-12 Pedro Alves <palves@redhat.com>
11928 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11929 Remove references to name.
11930 * serial.h (struct serial) <name>: Delete.
11931
11932 2020-01-10 Pedro Alves <palves@redhat.com>
11933
11934 * gdbarch-selftests.c (register_to_value_test): Remove "target
11935 already pushed" check.
11936
11937 2020-01-10 Pedro Alves <palves@redhat.com>
11938 John Baldwin <jhb@FreeBSD.org>
11939
11940 * aarch64-linux-nat.c
11941 (aarch64_linux_nat_target::thread_architecture): Adjust.
11942 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11943 (task_command_1): Likewise.
11944 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11945 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11946 (aix_thread_target::store_registers)
11947 (aix_thread_target::thread_alive): Adjust.
11948 * amd64-fbsd-tdep.c: Include "inferior.h".
11949 (amd64fbsd_get_thread_local_address): Pass down target.
11950 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11951 thread's gdbarch instead of target_gdbarch.
11952 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11953 get_last_target_status.
11954 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11955 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11956 inferiors.
11957 (update_inserted_breakpoint_locations): Skip if inferiors with no
11958 execution.
11959 (update_global_location_list): When handling moribund locations,
11960 find representative inferior for location's pspace, and use thread
11961 count of its process_stratum target.
11962 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11963 * bsd-uthread.c (bsd_uthread_target::wait): Use
11964 as_process_stratum_target and adjust thread_change_ptid and
11965 add_thread calls.
11966 (bsd_uthread_target::update_thread_list): Use
11967 as_process_stratum_target and adjust find_thread_ptid,
11968 thread_change_ptid and add_thread calls.
11969 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11970 find_thread_ptid call.
11971 * corelow.c (add_to_thread_list): Adjust add_thread call.
11972 (core_target_open): Adjust add_thread_silent and thread_count
11973 calls.
11974 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11975 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11976 * event-top.c (async_disconnect): Pop targets from all inferiors.
11977 * exec.c (add_target_sections): Push exec target on all inferiors
11978 sharing the program space.
11979 (remove_target_sections): Remove the exec target from all
11980 inferiors sharing the program space.
11981 (exec_on_vfork): New.
11982 * exec.h (exec_on_vfork): Declare.
11983 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11984 Pass it down.
11985 (fbsd_nat_target::update_thread_list): Adjust.
11986 (fbsd_nat_target::resume): Adjust.
11987 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11988 down.
11989 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11990 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11991 get_thread_arch_regcache call.
11992 * fork-child.c (gdb_startup_inferior): Pass target down to
11993 startup_inferior and set_executing.
11994 * gdbthread.h (struct process_stratum_target): Forward declare.
11995 (add_thread, add_thread_silent, add_thread_with_info)
11996 (in_thread_list): Add process_stratum_target parameter.
11997 (find_thread_ptid(inferior*, ptid_t)): New overload.
11998 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11999 parameter.
12000 (all_threads()): Delete overload.
12001 (all_threads, all_non_exited_threads): Add process_stratum_target
12002 parameter.
12003 (all_threads_safe): Use brace initialization.
12004 (thread_count): Add process_stratum_target parameter.
12005 (set_resumed, set_running, set_stop_requested, set_executing)
12006 (threads_are_executing, finish_thread_state): Add
12007 process_stratum_target parameter.
12008 (switch_to_thread): Use is_current_thread.
12009 * i386-fbsd-tdep.c: Include "inferior.h".
12010 (i386fbsd_get_thread_local_address): Pass down target.
12011 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12012 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12013 have_inferiors check.
12014 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12015 (inf_ptrace_target::attach): Adjust.
12016 * infcall.c (run_inferior_call): Adjust.
12017 * infcmd.c (run_command_1): Pass target to
12018 scoped_finish_thread_state.
12019 (proceed_thread_callback): Skip inferiors with no execution.
12020 (continue_command): Rename 'all_threads' local to avoid hiding
12021 'all_threads' function. Adjust get_last_target_status call.
12022 (prepare_one_step): Adjust set_running call.
12023 (signal_command): Use user_visible_resume_target. Compare thread
12024 pointers instead of inferior_ptid.
12025 (info_program_command): Adjust to pass down target.
12026 (attach_command): Mark target's 'thread_executing' flag.
12027 (stop_current_target_threads_ns): New, factored out from ...
12028 (interrupt_target_1): ... this. Switch inferior before making
12029 target calls.
12030 * inferior-iter.h
12031 (struct all_inferiors_iterator, struct all_inferiors_range)
12032 (struct all_inferiors_safe_range)
12033 (struct all_non_exited_inferiors_range): Filter on
12034 process_stratum_target too. Remove explicit.
12035 * inferior.c (inferior::inferior): Push dummy target on target
12036 stack.
12037 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12038 Add process_stratum_target parameter, and pass it down.
12039 (have_live_inferiors): Adjust.
12040 (switch_to_inferior_and_push_target): New.
12041 (add_inferior_command, clone_inferior_command): Handle
12042 "-no-connection" parameter. Use
12043 switch_to_inferior_and_push_target.
12044 (_initialize_inferior): Mention "-no-connection" option in
12045 the help of "add-inferior" and "clone-inferior" commands.
12046 * inferior.h: Include "process-stratum-target.h".
12047 (interrupt_target_1): Use bool.
12048 (struct inferior) <push_target, unpush_target, target_is_pushed,
12049 find_target_beneath, top_target, process_target, target_at,
12050 m_stack>: New.
12051 (discard_all_inferiors): Delete.
12052 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12053 (all_inferiors, all_non_exited_inferiors): Add
12054 process_stratum_target parameter.
12055 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12056 (target_last_proc_target): New global.
12057 (follow_fork_inferior): Push target on new inferior. Pass target
12058 to add_thread_silent. Call exec_on_vfork. Handle target's
12059 reference count.
12060 (follow_fork): Adjust get_last_target_status call. Also consider
12061 target.
12062 (follow_exec): Push target on new inferior.
12063 (struct execution_control_state) <target>: New field.
12064 (user_visible_resume_target): New.
12065 (do_target_resume): Call target_async.
12066 (resume_1): Set target's threads_executing flag. Consider resume
12067 target.
12068 (commit_resume_all_targets): New.
12069 (proceed): Also consider resume target. Skip threads of inferiors
12070 with no execution. Commit resumtion in all targets.
12071 (start_remote): Pass current inferior to wait_for_inferior.
12072 (infrun_thread_stop_requested): Consider target as well. Pass
12073 thread_info pointer to clear_inline_frame_state instead of ptid.
12074 (infrun_thread_thread_exit): Consider target as well.
12075 (random_pending_event_thread): New inferior parameter. Use it.
12076 (do_target_wait): Rename to ...
12077 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12078 down.
12079 (threads_are_resumed_pending_p, do_target_wait): New.
12080 (prepare_for_detach): Adjust calls.
12081 (wait_for_inferior): New inferior parameter. Handle it. Use
12082 do_target_wait_1 instead of do_target_wait.
12083 (fetch_inferior_event): Adjust. Switch to representative
12084 inferior. Pass target down.
12085 (set_last_target_status): Add process_stratum_target parameter.
12086 Save target in global.
12087 (get_last_target_status): Add process_stratum_target parameter and
12088 handle it.
12089 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12090 (context_switch): Check inferior_ptid == null_ptid before calling
12091 inferior_thread().
12092 (get_inferior_stop_soon): Pass down target.
12093 (wait_one): Rename to ...
12094 (poll_one_curr_target): ... this.
12095 (struct wait_one_event): New.
12096 (wait_one): New.
12097 (stop_all_threads): Adjust.
12098 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12099 event's target.
12100 (switch_back_to_stepped_thread): Also consider target.
12101 (print_stop_event): Update.
12102 (normal_stop): Update. Also consider the resume target.
12103 * infrun.h (wait_for_inferior): Remove declaration.
12104 (user_visible_resume_target): New declaration.
12105 (get_last_target_status, set_last_target_status): New
12106 process_stratum_target parameter.
12107 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12108 process_stratum_target parameter, and use it.
12109 (clear_inline_frame_state (thread_info*)): New.
12110 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12111 process_stratum_target parameter.
12112 (clear_inline_frame_state (thread_info*)): Declare.
12113 * linux-fork.c (delete_checkpoint_command): Pass target down to
12114 find_thread_ptid.
12115 (checkpoint_command): Adjust.
12116 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12117 instead of just tweaking inferior_ptid.
12118 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12119 (exit_lwp): Pass target down to find_thread_ptid.
12120 (attach_proc_task_lwp_callback): Pass target down to
12121 add_thread/set_running/set_executing.
12122 (linux_nat_target::attach): Pass target down to
12123 thread_change_ptid.
12124 (get_detach_signal): Pass target down to find_thread_ptid.
12125 Consider last target status's target.
12126 (linux_resume_one_lwp_throw, resume_lwp)
12127 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12128 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12129 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12130 (linux_nat_target::async_wait_fd): New.
12131 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12132 target down.
12133 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12134 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12135 * linux-thread-db.c (struct thread_db_info::process_target): New
12136 field.
12137 (add_thread_db_info): Save target.
12138 (get_thread_db_info): New process_stratum_target parameter. Also
12139 match target.
12140 (delete_thread_db_info): New process_stratum_target parameter.
12141 Also match target.
12142 (thread_from_lwp): Adjust to pass down target.
12143 (thread_db_notice_clone): Pass down target.
12144 (check_thread_db_callback): Pass down target.
12145 (try_thread_db_load_1): Always push the thread_db target.
12146 (try_thread_db_load, record_thread): Pass target down.
12147 (thread_db_target::detach): Pass target down. Always unpush the
12148 thread_db target.
12149 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12150 target down. Always unpush the thread_db target.
12151 (find_new_threads_callback, thread_db_find_new_threads_2)
12152 (thread_db_target::update_thread_list): Pass target down.
12153 (thread_db_target::pid_to_str): Pass current inferior down.
12154 (thread_db_target::get_thread_local_address): Pass target down.
12155 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12156 target down.
12157 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12158 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12159 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12160 (procfs_init_inferior): Rename to ...
12161 (procfs_target::procfs_init_inferior): ... this and adjust.
12162 (procfs_target::create_inferior, procfs_notice_thread)
12163 (procfs_do_thread_registers): Adjust.
12164 * ppc-fbsd-tdep.c: Include "inferior.h".
12165 (ppcfbsd_get_thread_local_address): Pass down target.
12166 * proc-service.c (ps_xfer_memory): Switch current inferior and
12167 program space as well.
12168 (get_ps_regcache): Pass target down.
12169 * process-stratum-target.c
12170 (process_stratum_target::thread_address_space)
12171 (process_stratum_target::thread_architecture): Pass target down.
12172 * process-stratum-target.h
12173 (process_stratum_target::threads_executing): New field.
12174 (as_process_stratum_target): New.
12175 * ravenscar-thread.c
12176 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12177 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12178 down.
12179 * record-btrace.c (record_btrace_target::info_record): Adjust.
12180 (record_btrace_target::record_method)
12181 (record_btrace_target::record_is_replaying)
12182 (record_btrace_target::fetch_registers)
12183 (get_thread_current_frame_id, record_btrace_target::resume)
12184 (record_btrace_target::wait, record_btrace_target::stop): Pass
12185 target down.
12186 * record-full.c (record_full_wait_1): Switch to event thread.
12187 Pass target down.
12188 * regcache.c (regcache::regcache)
12189 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12190 process_stratum_target parameter and handle it.
12191 (current_thread_target): New global.
12192 (get_thread_regcache): Add process_stratum_target parameter and
12193 handle it. Switch inferior before calling target method.
12194 (get_thread_regcache): Pass target down.
12195 (get_thread_regcache_for_ptid): Pass target down.
12196 (registers_changed_ptid): Add process_stratum_target parameter and
12197 handle it.
12198 (registers_changed_thread, registers_changed): Pass target down.
12199 (test_get_thread_arch_aspace_regcache): New.
12200 (current_regcache_test): Define a couple local test_target_ops
12201 instances and use them for testing.
12202 (readwrite_regcache): Pass process_stratum_target parameter.
12203 (cooked_read_test, cooked_write_test): Pass mock_target down.
12204 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12205 (get_thread_arch_aspace_regcache): Add process_stratum_target
12206 parameter.
12207 (regcache::target): New method.
12208 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12209 (regcache::registers_changed_ptid): Add process_stratum_target
12210 parameter.
12211 (regcache::m_target): New field.
12212 (registers_changed_ptid): Add process_stratum_target parameter.
12213 * remote.c (remote_state::supports_vCont_probed): New field.
12214 (remote_target::async_wait_fd): New method.
12215 (remote_unpush_and_throw): Add remote_target parameter.
12216 (get_current_remote_target): Adjust.
12217 (remote_target::remote_add_inferior): Push target.
12218 (remote_target::remote_add_thread)
12219 (remote_target::remote_notice_new_inferior)
12220 (get_remote_thread_info): Pass target down.
12221 (remote_target::update_thread_list): Skip threads of inferiors
12222 bound to other targets. (remote_target::close): Don't discard
12223 inferiors. (remote_target::add_current_inferior_and_thread)
12224 (remote_target::process_initial_stop_replies)
12225 (remote_target::start_remote)
12226 (remote_target::remote_serial_quit_handler): Pass down target.
12227 (remote_target::remote_unpush_target): New remote_target
12228 parameter. Unpush the target from all inferiors.
12229 (remote_target::remote_unpush_and_throw): New remote_target
12230 parameter. Pass it down.
12231 (remote_target::open_1): Check whether the current inferior has
12232 execution instead of checking whether any inferior is live. Pass
12233 target down.
12234 (remote_target::remote_detach_1): Pass down target. Use
12235 remote_unpush_target.
12236 (extended_remote_target::attach): Pass down target.
12237 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12238 (remote_target::append_resumption): Pass down target.
12239 (remote_target::append_pending_thread_resumptions)
12240 (remote_target::remote_resume_with_hc, remote_target::resume)
12241 (remote_target::commit_resume): Pass down target.
12242 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12243 (remote_target::interrupt_query)
12244 (remote_target::remove_new_fork_children)
12245 (remote_target::check_pending_events_prevent_wildcard_vcont)
12246 (remote_target::remote_parse_stop_reply)
12247 (remote_target::process_stop_reply): Pass down target.
12248 (first_remote_resumed_thread): New remote_target parameter. Pass
12249 it down.
12250 (remote_target::wait_as): Pass down target.
12251 (unpush_and_perror): New remote_target parameter. Pass it down.
12252 (remote_target::readchar, remote_target::remote_serial_write)
12253 (remote_target::getpkt_or_notif_sane_1)
12254 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12255 down target.
12256 (remote_target::mourn_inferior): Pass down target. Use
12257 remote_unpush_target.
12258 (remote_target::core_of_thread)
12259 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12260 (remote_target::pid_to_exec_file)
12261 (remote_target::thread_handle_to_thread_info): Pass down target.
12262 (remote_target::async_wait_fd): New.
12263 * riscv-fbsd-tdep.c: Include "inferior.h".
12264 (riscv_fbsd_get_thread_local_address): Pass down target.
12265 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12266 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12267 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12268 Adjust.
12269 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12270 * solib-svr4.c (enable_break): Pass down target.
12271 * spu-multiarch.c (parse_spufs_run): Pass down target.
12272 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12273 * target-delegates.c: Regenerate.
12274 * target.c (g_target_stack): Delete.
12275 (current_top_target): Return the current inferior's top target.
12276 (target_has_execution_1): Refer to the passed-in inferior's top
12277 target.
12278 (target_supports_terminal_ours): Check whether the initial
12279 inferior was already created.
12280 (decref_target): New.
12281 (target_stack::push): Incref/decref the target.
12282 (push_target, push_target, unpush_target): Adjust.
12283 (target_stack::unpush): Defref target.
12284 (target_is_pushed): Return bool. Adjust to refer to the current
12285 inferior's target stack.
12286 (dispose_inferior): Delete, and inline parts ...
12287 (target_preopen): ... here. Only dispose of the current inferior.
12288 (target_detach): Hold strong target reference while detaching.
12289 Pass target down.
12290 (target_thread_name): Add assertion.
12291 (target_resume): Pass down target.
12292 (target_ops::beneath, find_target_at): Adjust to refer to the
12293 current inferior's target stack.
12294 (get_dummy_target): New.
12295 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12296 has a thread running.
12297 (initialize_targets): Rename to ...
12298 (_initialize_target): ... this.
12299 * target.h: Include "gdbsupport/refcounted-object.h".
12300 (struct target_ops): Inherit refcounted_object.
12301 (target_ops::shortname, target_ops::longname): Make const.
12302 (target_ops::async_wait_fd): New method.
12303 (decref_target): Declare.
12304 (struct target_ops_ref_policy): New.
12305 (target_ops_ref): New typedef.
12306 (get_dummy_target): Declare function.
12307 (target_is_pushed): Return bool.
12308 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12309 (all_matching_threads_iterator::all_matching_threads_iterator):
12310 Handle filter target.
12311 * thread-iter.h (struct all_matching_threads_iterator, struct
12312 all_matching_threads_range, class all_non_exited_threads_range):
12313 Filter by target too. Remove explicit.
12314 * thread.c (threads_executing): Delete.
12315 (inferior_thread): Pass down current inferior.
12316 (clear_thread_inferior_resources): Pass down thread pointer
12317 instead of ptid_t.
12318 (add_thread_silent, add_thread_with_info, add_thread): Add
12319 process_stratum_target parameter. Use it for thread and inferior
12320 searches.
12321 (is_current_thread): New.
12322 (thread_info::deletable): Use it.
12323 (find_thread_ptid, thread_count, in_thread_list)
12324 (thread_change_ptid, set_resumed, set_running): New
12325 process_stratum_target parameter. Pass it down.
12326 (set_executing): New process_stratum_target parameter. Pass it
12327 down. Adjust reference to 'threads_executing'.
12328 (threads_are_executing): New process_stratum_target parameter.
12329 Adjust reference to 'threads_executing'.
12330 (set_stop_requested, finish_thread_state): New
12331 process_stratum_target parameter. Pass it down.
12332 (switch_to_thread): Also match inferior.
12333 (switch_to_thread): New process_stratum_target parameter. Pass it
12334 down.
12335 (update_threads_executing): Reimplement.
12336 * top.c (quit_force): Pop targets from all inferior.
12337 (gdb_init): Don't call initialize_targets.
12338 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12339 Declare.
12340 (windows_add_thread, windows_delete_thread): Adjust.
12341 (get_windows_debug_event): Rename to ...
12342 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12343 * tracefile-tfile.c (tfile_target_open): Pass down target.
12344 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12345 Forward declare.
12346 (switch_to_thread): Add process_stratum_target parameter.
12347 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12348 parameter. Use it.
12349 (mi_on_resume): Pass target down.
12350 * nat/fork-inferior.c (startup_inferior): Add
12351 process_stratum_target parameter. Pass it down.
12352 * nat/fork-inferior.h (startup_inferior): Add
12353 process_stratum_target parameter.
12354 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12355
12356 2020-01-10 Pedro Alves <palves@redhat.com>
12357
12358 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12359 directly. Instead find the first thread in the thread list and
12360 use switch_to_thread.
12361
12362 2020-01-10 Pedro Alves <palves@redhat.com>
12363
12364 * remote.c (remote_target::remote_add_inferior): Don't bind a
12365 process to the current inferior if the current inferior is already
12366 bound to a process.
12367
12368 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12369 Pedro Alves <palves@redhat.com>
12370
12371 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12372 If no process is specified, return null_ptid instead of
12373 inferior_ptid.
12374 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12375 TARGET_WAITKIND_SIGNALLED with no pid.
12376
12377 2020-01-10 Pedro Alves <palves@redhat.com>
12378
12379 * remote.c (first_remote_resumed_thread): New.
12380 (remote_target::wait_as): Use it as default event_ptid instead of
12381 inferior_ptid.
12382
12383 2020-01-10 Pedro Alves <palves@redhat.com>
12384
12385 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12386
12387 2020-01-10 Pedro Alves <palves@redhat.com>
12388
12389 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12390 not -1.
12391
12392 2020-01-10 Pedro Alves <palves@redhat.com>
12393
12394 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12395 ptid to get_last_target_status.
12396 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12397 ptid to get_last_target_status.
12398 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12399 get_last_target_status.
12400 (info_program_command): Don't pass a target_waitstatus to
12401 get_last_target_status.
12402 * infrun.c (init_wait_for_inferior): Use
12403 nullify_last_target_wait_ptid.
12404 (get_last_target_status): Handle nullptr arguments.
12405 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12406 (print_stop_event): Don't pass a ptid to get_last_target_status.
12407 (normal_stop): Don't pass a ptid to get_last_target_status.
12408 * infrun.h (get_last_target_status, set_last_target_status): Move
12409 comments here and update.
12410 (nullify_last_target_wait_ptid): Declare.
12411 * linux-fork.c (fork_load_infrun_state): Remove local extern
12412 declaration of nullify_last_target_wait_ptid.
12413 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12414 to get_last_target_status.
12415
12416 2020-01-10 Pedro Alves <palves@redhat.com>
12417
12418 * gdbthread.h (scoped_restore_current_thread)
12419 <dont_restore, restore, m_dont_restore>: Declare.
12420 * thread.c (thread_alive): Add assertion. Return bool.
12421 (switch_to_thread_if_alive): New.
12422 (prune_threads): Switch inferior/thread.
12423 (print_thread_info_1): Switch thread before calling target methods.
12424 (scoped_restore_current_thread::restore): New, factored out from
12425 ...
12426 (scoped_restore_current_thread::~scoped_restore_current_thread):
12427 ... this.
12428 (scoped_restore_current_thread::scoped_restore_current_thread):
12429 Add assertion.
12430 (thread_apply_all_command, thread_select): Use
12431 switch_to_thread_if_alive.
12432 * infrun.c (proceed, restart_threads, handle_signal_stop)
12433 (switch_back_to_stepped_thread): Switch current thread before
12434 calling target methods.
12435
12436 2020-01-10 Pedro Alves <palves@redhat.com>
12437
12438 * inferior.c (switch_to_inferior_no_thread): New function,
12439 factored out from ...
12440 (inferior_command): ... here.
12441 * inferior.h (switch_to_inferior_no_thread): Declare.
12442 * mi/mi-main.c (run_one_inferior): Use
12443 switch_to_inferior_no_thread.
12444
12445 2020-01-10 Pedro Alves <palves@redhat.com>
12446
12447 * infcmd.c (kill_command): Remove dead code.
12448
12449 2020-01-10 Pedro Alves <palves@redhat.com>
12450
12451 * remote.c (remote_target::mourn_inferior): No longer check
12452 whether the target is running.
12453
12454 2020-01-10 Pedro Alves <palves@redhat.com>
12455
12456 * corelow.c (core_target::has_execution): Change parameter type to
12457 inferior pointer.
12458 * inferior.c (number_of_live_inferiors): Use
12459 inferior::has_execution instead of target_has_execution_1.
12460 * inferior.h (inferior::has_execution): New.
12461 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12462 inferior::has_execution instead of target_has_execution_1.
12463 * process-stratum-target.c
12464 (process_stratum_target::has_execution): Change parameter type to
12465 inferior pointer. Check the inferior's PID instead of
12466 inferior_ptid.
12467 * process-stratum-target.h
12468 (process_stratum_target::has_execution): Change parameter type to
12469 inferior pointer.
12470 * record-full.c (record_full_core_target::has_execution): Change
12471 parameter type to inferior pointer.
12472 * target.c (target_has_execution_1): Change parameter type to
12473 inferior pointer.
12474 (target_has_execution_current): Adjust.
12475 * target.h (target_ops::has_execution): Change parameter type to
12476 inferior pointer.
12477 (target_has_execution_1): Change parameter type to inferior
12478 pointer. Change return type to bool.
12479 * tracefile.h (tracefile_target::has_execution): Change parameter
12480 type to inferior pointer.
12481
12482 2020-01-10 Pedro Alves <palves@redhat.com>
12483
12484 * exceptions.c (print_flush): Remove current_top_target() check.
12485
12486 2020-01-10 Pedro Alves <palves@redhat.com>
12487
12488 * remote.c (show_remote_exec_file): Show the current inferior's
12489 exec-file instead of the command variable's value.
12490
12491 2020-01-10 Pedro Alves <palves@redhat.com>
12492
12493 * record-full.c (record_full_resume_ptid): New global.
12494 (record_full_target::resume): Set it.
12495 (record_full_wait_1): Use record_full_resume_ptid instead of
12496 inferior_ptid.
12497
12498 2020-01-10 Pedro Alves <palves@redhat.com>
12499
12500 * gdbthread.h (scoped_restore_current_thread)
12501 <dont_restore, restore, m_dont_restore>: Declare.
12502 * thread.c (thread_alive): Add assertion. Return bool.
12503 (switch_to_thread_if_alive): New.
12504 (prune_threads): Switch inferior/thread.
12505 (print_thread_info_1): Switch thread before calling target methods.
12506 (scoped_restore_current_thread::restore): New, factored out from
12507 ...
12508 (scoped_restore_current_thread::~scoped_restore_current_thread):
12509 ... this.
12510 (scoped_restore_current_thread::scoped_restore_current_thread):
12511 Add assertion.
12512 (thread_apply_all_command, thread_select): Use
12513 switch_to_thread_if_alive.
12514
12515 2020-01-10 George Barrett <bob@bob131.so>
12516
12517 * stap-probe.c (stap_modify_semaphore): Don't check for null
12518 semaphores.
12519 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12520 for null semaphores.
12521
12522 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12523
12524 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12525 all source windows, and maintain horizontal scroll status while
12526 doing so.
12527
12528 2020-01-09 Tom Tromey <tom@tromey.com>
12529
12530 PR tui/18932:
12531 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12532 update_source_window, not print_source_lines.
12533
12534 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12535
12536 * tui/tui.c (tui_enable): Register tui hooks after calling
12537 tui_display_main.
12538
12539 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12540
12541 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12542
12543 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12544
12545 * thread.c (print_thread_info_1): Fix indentation.
12546
12547 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12548
12549 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12550 unique_xmalloc_ptr outside the if to always free the demangled name.
12551
12552 2020-01-08 Tom Tromey <tromey@adacore.com>
12553
12554 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12555 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12556 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12557 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12558 Remove.
12559 (section_offsets): New typedef.
12560 * symtab.c (fixup_section, get_msymbol_address): Update.
12561 * symmisc.c (dump_msymbols): Update.
12562 * symfile.h (relative_addr_info_to_section_offsets)
12563 (symfile_map_offsets_to_segments): Update.
12564 * symfile.c (build_section_addr_info_from_objfile)
12565 (init_objfile_sect_indices): Update.
12566 (struct place_section_arg): Change type of "offsets".
12567 (place_section): Update.
12568 (relative_addr_info_to_section_offsets): Change type of
12569 "section_offsets". Remove "num_sections" parameter.
12570 (default_symfile_offsets, syms_from_objfile_1)
12571 (set_objfile_default_section_offset): Update.
12572 (reread_symbols): No need to preserve section offsets by hand.
12573 (symfile_map_offsets_to_segments): Change type of "offsets".
12574 * stap-probe.c (relocate_address): Update.
12575 * stabsread.h (process_one_symbol): Update.
12576 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12577 (solib_target_relocate_section_addresses): Update.
12578 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12579 Update.
12580 * solib-frv.c (frv_relocate_main_executable): Update.
12581 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12582 * solib-aix.c (solib_aix_get_section_offsets): Change return
12583 type.
12584 (solib_aix_solib_create_inferior_hook): Update.
12585 * remote.c (remote_target::get_offsets): Update.
12586 * psymtab.c (find_pc_sect_psymtab): Update.
12587 * psympriv.h (struct partial_symbol) <address, text_low,
12588 text_high>: Update.
12589 * objfiles.h (obj_section_offset): Update.
12590 (struct objfile) <section_offsets>: Change type.
12591 <num_sections>: Remove.
12592 (objfile_relocate): Update.
12593 * objfiles.c (entry_point_address_query): Update
12594 (relocate_one_symbol): Change type of "section_offsets".
12595 (objfile_relocate1, objfile_relocate1): Change type of
12596 "new_offsets".
12597 (objfile_rebase1): Update.
12598 * mipsread.c (mipscoff_symfile_read): Update.
12599 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12600 parameter.
12601 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12602 (parse_external, psymtab_to_symtab_1): Update.
12603 * machoread.c (macho_symfile_offsets): Update.
12604 * ia64-tdep.c (ia64_find_unwind_table): Update.
12605 * hppa-tdep.c (read_unwind_info): Update.
12606 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12607 * dwarf2read.c (create_addrmap_from_index)
12608 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12609 (process_psymtab_comp_unit_reader, add_partial_symbol)
12610 (add_partial_subprogram, process_full_comp_unit)
12611 (read_file_scope, read_func_scope, read_lexical_block_scope)
12612 (read_call_site_scope, dwarf2_rnglists_process)
12613 (dwarf2_ranges_process, dwarf2_ranges_read)
12614 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12615 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12616 Update.
12617 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12618 Update.
12619 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12620 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12621 (process_one_symbol): Change type of "section_offsets".
12622 * ctfread.c (get_objfile_text_range): Update.
12623 * coffread.c (coff_symtab_read, enter_linenos)
12624 (process_coff_symbol): Update.
12625 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12626 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12627
12628 2020-01-08 Tom Tromey <tromey@adacore.com>
12629
12630 * dwarf2read.c (parse_macro_definition): Use std::string.
12631 (parse_macro_definition): Likewise.
12632
12633 2020-01-08 Tom Tromey <tromey@adacore.com>
12634
12635 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12636 (ATTR_ALLOC_CHUNK): Remove.
12637
12638 2020-01-08 Tom Tromey <tromey@adacore.com>
12639
12640 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12641
12642 2020-01-08 Tom Tromey <tromey@adacore.com>
12643
12644 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12645 (dwarf2_compute_name, open_dwo_file): Likewise.
12646 (process_enumeration_scope): Use std::vector.
12647 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12648 (partial_die_info::fixup, dwarf2_start_subfile)
12649 (guess_full_die_structure_name, dwarf2_name): Likewise.
12650 (determine_prefix): Update.
12651 (guess_full_die_structure_name): Make return type const.
12652 (partial_die_full_name): Return unique_xmalloc_ptr.
12653 (DW_FIELD_ALLOC_CHUNK): Remove.
12654
12655 2020-01-07 Tom Tromey <tromey@adacore.com>
12656
12657 PR build/24937:
12658 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12659
12660 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12661
12662 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12663
12664 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12665
12666 * stack.c (print_frame_info): Move disassemble_next_line code
12667 inside source_print block.
12668
12669 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12670
12671 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12672 gdb/signals.h, as we are now using native signal symbols.
12673
12674 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12675
12676 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12677 overflow by an early check of content vs threshold.
12678 * tui/tui-source.c (tui_source_window::line_is_displayed):
12679 Likewise.
12680
12681 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12682
12683 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12684
12685 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12686
12687 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12688 export table if no section contains it's RVA.
12689
12690 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12691
12692 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12693
12694 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12695
12696 * source.c (print_source_lines_base): Set last_line_listed.
12697
12698 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12699
12700 * tui/tui-disasm.c: Remove trailing spaces.
12701
12702 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12703 Pedro Alves <palves@redhat.com>
12704
12705 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12706 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12707 (windows_gdb_signal_to_target): New function, uses the above
12708 enumeration to convert GDB internal signal codes to equivalent
12709 Windows codes.
12710 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12711 * windows-nat.c: Include "gdb_wait.h".
12712 (get_windows_debug_event): Extract the fatal exception from the
12713 exit status and convert to the equivalent Posix signal number.
12714 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12715 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12716 * gdbsupport/gdb_wait.c: New file, implements
12717 windows_status_to_termsig.
12718 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12719 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12720
12721 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12722
12723 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12724 show_layout.
12725
12726 2020-01-05 Luis Machado <luis.machado@linaro.org>
12727
12728 * aarch64-linux-nat.c
12729 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12730 and bfd_mach_aarch64.
12731
12732 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12733
12734 * ui-file.c (stdio_file::can_emit_style_escape)
12735 (tee_file::can_emit_style_escape): Ensure style is used also on
12736 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12737 to gdb_stdout.
12738 * main.c (set_gdb_data_directory): Use file style to output the
12739 warning that the given pathname is not a directory.
12740 * top.c (show_history_filename, gdb_safe_append_history)
12741 (show_gdb_datadir): Use file style.
12742
12743 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12744
12745 * solib-target.c (struct lm_info_target):
12746 Change offsets to be a unique_xmalloc_ptr.
12747 (solib_target_relocate_section_addresses): Update.
12748
12749 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12750
12751 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12752
12753 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12754
12755 * MAINTAINERS (Write After Approval): Add myself.
12756
12757 2020-01-02 Luis Machado <luis.machado@linaro.org>
12758
12759 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12760 Cell BE architecture.
12761 * target.h (struct target_ops) <thread_architecture>: Likewise.
12762
12763 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12764
12765 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12766
12767 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12768
12769 * MAINTAINERS (Write After Approval): Add myself.
12770
12771 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12772
12773 * gdbarch.sh: Update copyright year range of generated files.
12774
12775 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12776
12777 Update copyright year range in all GDB files.
12778
12779 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12780
12781 * copyright.py: Convert to Python 3.
12782
12783 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12784
12785 * copyright.py: Adapt after move of gnulib directory from gdb
12786 directory to toplevel directory.
12787
12788 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12789
12790 * copyright.py (main): Exit if run from the wrong directory.
12791
12792 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12793
12794 * top.c (print_gdb_version): Change copyright year to 2020.
12795
12796 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12797
12798 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12799
12800 For older changes see ChangeLog-2019.
12801 \f
12802 Local Variables:
12803 mode: change-log
12804 left-margin: 8
12805 fill-column: 74
12806 version-control: never
12807 coding: utf-8
12808 End: