gdb: turn gdb::bcache's function pointers into virtual methods
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * bcache.h (struct bcache) <bcache>: Remove constructor.
4 <m_hash_function, m_compare_function>: Remove.
5 <~bcache>: Make virtual.
6 <compare>: Remove static method, introduce virtual method.
7 <default_hash>: Remove.
8 <hash>: New virtual method.
9 * bcache.c (bcache::expand_hash_table): Update.
10 (bcache::insert): Update.
11 (bcache::hash): New.
12 (bcache::compare): Update comment and parameter names.
13 * gdbtypes.c (types_deeply_equal): Update.
14 * psymtab.h (struct psymbol_bcache): New struct.
15 (class psymtab_storage) <psymtab_storage>: Make default.
16 <psymbol_cache>: Change type to psymbol_bcache.
17 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
18 (psymbol_hash): Change to...
19 (psymbol_bcache::hash): ... this.
20 (psymbol_compare): Change to...
21 (psymbol_bcache::compare): ... this.
22
23 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
26 checking for initial lwp.
27
28 2020-09-14 Tom Tromey <tromey@adacore.com>
29
30 * m68k-tdep.c (m68k_extract_return_value): Use
31 pointer_result_regnum.
32 (m68k_store_return_value): Likewise.
33 (m68k_reg_struct_return_p): Handle vectors and arrays.
34 (m68k_return_value): Handle arrays.
35 (m68k_svr4_return_value): Fix single-element aggregate handling.
36 Handle long double. Adjust for embedded ABI.
37 (m68k_svr4_init_abi): Set pointer_result_regnum.
38 (m68k_embedded_init_abi): New function.
39 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
40 (m68k_osabi_sniffer): New function.
41 (_initialize_m68k_tdep): Register osabi sniffer.
42 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
43 member.
44
45 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * xml-support.c (xml_fetch_content_from_file): Replace xfree
48 with gdb::unique_xmalloc_ptr<char>.
49
50 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * xml-support.h (xml_fetch_another): Change type to be a
53 function_view.
54 (xml_process_xincludes): Remove baton parameter.
55 (xml_fetch_content_from_file): Change baton parameter to
56 dirname.
57 * xml-support.c (struct xinclude_parsing_data)
58 <xinclude_parsing_data>: Remove baton parameter.
59 <fetcher_baton>: Remove.
60 (xinclude_start_include): Adjust.
61 (xml_process_xincludes): Adjust.
62 (xml_fetch_content_from_file): Replace baton parameter with
63 dirname.
64 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
65 (xml_init_syscalls_info): Use a lambda.
66 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
67 (file_read_description_xml): Use a lambda.
68 (fetch_available_features_from_target): Change baton parameter
69 to target_ops.
70 (target_read_description_xml): Use a lambda.
71 (target_fetch_description_xml): Use a lambda.
72 (string_read_description_xml): Update.
73
74 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
75
76 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
77 uses with type::endianity_is_not_default.
78
79 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
80
81 * gdbtypes.h (struct type) <endianity_is_not_default,
82 set_endianity_is_not_default>: New methods.
83 (TYPE_ENDIANITY_NOT_DEFAULT): Use
84 type::endianity_is_not_default, change all write call sites to
85 use type::set_endianity_is_not_default.
86
87 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
88
89 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
90 uses with type::is_fixed_instance.
91
92 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
93
94 * gdbtypes.h (struct type) <is_fixed_instance,
95 set_is_fixed_instance>: New methods.
96 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
97 write call sites to use type::set_is_fixed_instance.
98
99 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
100
101 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
102 uses with type::is_gnu_ifunc.
103
104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
105
106 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
107 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
108 use type::set_is_gnu_ifunc.
109
110 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
111
112 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
113 uses with type::stub_is_supported.
114
115 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
116
117 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
118 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
119 use type::set_stub_is_supported.
120
121 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
122
123 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
124 uses with type::is_vector.
125
126 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
127
128 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
129 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
130 use type::set_is_vector.
131
132 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
133
134 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
135 uses with type::has_varargs.
136
137 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
138
139 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
140 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
141 use type::set_has_varargs.
142
143 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
144
145 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
146 uses with type::is_prototyped.
147
148 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
149
150 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
151 New methods.
152 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
153 call sites to use type::set_is_prototyped.
154
155 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
156
157 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
158 uses with type::target_is_stub.
159
160 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
161
162 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
163 New methods.
164 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
165 sites to use type::set_target_is_stub.
166
167 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
168
169 * gdbtypes.h (TYPE_STUB): Remove, replace all
170 uses with type::is_stub.
171
172 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
173
174 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
175 (TYPE_STUB): Use type::is_stub, change all write call sites to
176 use type::set_is_stub.
177
178 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
179
180 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
181 type::has_no_signedness.
182
183 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
184
185 * gdbtypes.h (struct type) <has_no_signedness,
186 set_has_no_signedness>: New methods.
187 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
188 call sites to use type::set_has_no_signedness.
189
190 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
191
192 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
193 type::is_unsigned.
194
195 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
196
197 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
198 methods.
199 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
200 sites to use type::set_is_unsigned.
201
202 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
203 Adam Renquinha <arenquinha@cimeq.qc.ca>
204
205 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
206 pointer and stack frame offset when unwinding.
207
208 2020-09-13 Pedro Alves <pedro@palves.net>
209
210 * NEWS: Document "-break-insert --qualified".
211 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
212
213 2020-09-13 Pedro Alves <pedro@palves.net>
214
215 * linespec.c (classify_mtype, compare_msyms): Delete.
216 (search_minsyms_for_name): Remove classification logic. Instead
217 filter out trampoline symbols if we also found an external
218 function of the same name.
219
220 2020-09-13 Joel Brobecker <brobecker@adacore.com>
221
222 * NEWS: Create a new section for the next release branch.
223 Rename the section of the current branch, now that it has
224 been cut.
225
226 2020-09-13 Joel Brobecker <brobecker@adacore.com>
227
228 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
229 * version.in: Bump version to 11.0.50.DATE-git.
230
231 2020-09-12 Joel Brobecker <brobecker@adacore.com>
232
233 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
234
235 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
236 Felix Willgerodt <Felix.Willgerodt@intel.com>
237
238 * gdbarch.sh: Added bfloat16 type.
239 * gdbarch.c: Regenerated.
240 * gdbarch.h: Regenerated.
241 * gdbtypes.c (floatformats_bfloat16): New struct.
242 (gdbtypes_post_init): Add builtin_bfloat16.
243 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
244 (floatformats_bfloat16): New struct.
245 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
246 (i386_ymm_type): Add field "v16_bfloat16"
247 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
248 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
249 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
250 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
251 * features/i386/64bit-avx512.xml: Add bfloat16 type.
252 * features/i386/64bit-avx512.c: Regenerated.
253 * features/i386/64bit-sse.xml: Add bfloat16 type.
254 * features/i386/64bit-sse.c: Regenerated.
255
256 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
257
258 * i386-tdep.c (i386_zmm_type): Fix field names.
259 (i386_ymm_type): Fix field names.
260
261 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
262
263 * breakpoint.c: Fix typo in the help message of the
264 "set breakpoint condition-evaluation" command.
265
266 2020-09-10 Kamil Rytarowski <n54@gmx.com>
267
268 * nbsd-nat.c: Include "nat/netbsd-nat.h".
269 * (nbsd_nat_target::pid_to_exec_file)
270 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
271 (nbsd_nat_target::post_startup_inferior)
272 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
273 (nbsd_add_threads): Switch local code to common gdb/nat functions.
274 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
275 * (nbsd_thread_lister): Remove.
276
277 2020-09-10 Kamil Rytarowski <n54@gmx.com>
278
279 * fork-inferior.c (startup_inferior): Avoid double free.
280
281 2020-09-10 Kamil Rytarowski <n54@gmx.com>
282
283 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
284 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
285
286 2020-09-10 Kamil Rytarowski <n54@gmx.com>
287
288 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
289 * netbsd-nat.c: Include <sys/ptrace.h>.
290 * (netbsd_nat::enable_proc_events): Add.
291
292 2020-09-10 Kamil Rytarowski <n54@gmx.com>
293
294 * netbsd-nat.h: Include "gdbsupport/function-view.h".
295 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
296 (netbsd_nat::for_each_thread): Add.
297 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
298 "gdbsupport/common-debug.h".
299 * (netbsd_nat::netbsd_thread_lister)
300 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
301 (netbsd_nat::for_each_thread): Add.
302
303 2020-09-10 Kamil Rytarowski <n54@gmx.com>
304
305 * netbsd-nat.h: Include <unistd.h>.
306 * (netbsd_nat::pid_to_exec_file): Add.
307 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
308 * (netbsd_nat::pid_to_exec_file) Add.
309
310 2020-09-10 Kamil Rytarowski <n54@gmx.com>
311
312 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
313
314 2020-09-10 Kamil Rytarowski <n54@gmx.com>
315
316 * netbsd-nat.h: New file.
317 * netbsd-nat.c: Likewise.
318
319 2020-09-09 Tom Tromey <tromey@adacore.com>
320
321 * ada-lang.c (remove_extra_symbols): Do not increment when
322 removing an element
323
324 2020-09-08 Tom Tromey <tromey@adacore.com>
325
326 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
327
328 2020-09-08 Tom Tromey <tromey@adacore.com>
329
330 PR win32/25302:
331 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
332 (gdb_bfd_init_data): New function.
333 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
334
335 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
336
337 * infrun.c (fetch_inferior_event): Use
338 `switch_to_target_no_thread` to switch the target.
339
340 2020-09-06 Tom Tromey <tom@tromey.com>
341
342 * symfile.h (dwarf2_free_objfile): Don't declare.
343
344 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
345
346 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
347 to match 16 byte real/complex type generated by Flang compiler.
348
349 2020-09-03 Tom de Vries <tdevries@suse.de>
350
351 PR breakpoint/26546
352 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
353 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
354
355 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
356
357 * maint.c (index_digits): New function.
358 (struct maint_print_section_data): Remove.
359 (print_bfd_section_info): Remove print_data parameter, add arg
360 and index_digits.
361 (print_objfile_section_info): Likewise.
362 (print_bfd_section_info_maybe_relocated): Likewise (plus
363 objfile).
364 (maintenance_info_sections): Adjust calls.
365
366 2020-09-02 Tom Tromey <tromey@adacore.com>
367
368 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
369 for null pointers.
370 (ada_varobj_adjust_for_child_access): Special-case null pointers.
371
372 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
373
374 * bcache.h (struct bcache) <insert>: Change type of `added` to
375 pointer to bool.
376 * bcache.c (bcache::insert): Likewise.
377 * gdbtypes.c (check_types_worklist): Adjust.
378 * psymtab.c (add_psymbol_to_bcache): Adjust.
379
380 2020-08-31 Kevin Buettner <kevinb@redhat.com>
381
382 * corelow.c (unordered_set): Include.
383 (class core_target): Add field 'm_core_unavailable_mappings'.
384 (core_target::build_file_mappings): Print only one warning
385 per inaccessible file. Add unavailable/broken mappings
386 to m_core_unavailable_mappings.
387 (core_target::xfer_partial): Call...
388 (core_target::xfer_memory_via_mappings): New method.
389
390 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
391
392 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
393 type to bool.
394
395 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * dwarf2/read.c (struct field_info): Fix indentation.
398
399 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
400
401 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
402 ordering in comment.
403 * frame.c (frame_id_eq): Fix indentation.
404
405 2020-08-31 Scott Linder <scott@scottlinder.com>
406 Simon Marchi <simon.marchi@efficios.com>
407
408 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
409 inline frame ids in outer frame.
410
411 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
412
413 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
414 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
415 (outer_frame_id): Use FID_STACK_OUTER instead of
416 FID_STACK_INVALID.
417 (frame_id_p): Don't check for outer_frame_id.
418
419 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
420
421 * frame-unwind.c (frame_unwind_got_optimized): Don't set
422 regnum/frame in value. Call allocate_value_lazy.
423 * frame.c (frame_unwind_register_value): Use
424 val_print_not_saved.
425
426 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
427
428 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
429
430 2020-08-29 Pedro Alves <pedro@palves.net>
431
432 * progspace.c (print_program_space): Use all_inferiors. Switch to
433 the inferior before calling target_pid_to_str.
434
435 2020-08-28 Tom Tromey <tom@tromey.com>
436
437 * xcoffread.c (xcoff_end_psymtab): Update comment.
438 * dbxread.c (dbx_end_psymtab): Update comment.
439
440 2020-08-28 Tom de Vries <tdevries@suse.de>
441
442 PR breakpoint/26544
443 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
444 event_location.
445 (create_breakpoint): Same.
446 (base_breakpoint_decode_location): Same.
447 (bkpt_create_sals_from_location): Same.
448 (bkpt_decode_location): Same.
449 (bkpt_probe_create_sals_from_location): Same.
450 (bkpt_probe_decode_location): Same.
451 (tracepoint_create_sals_from_location): Same.
452 (tracepoint_decode_location): Same.
453 (tracepoint_probe_decode_location): Same.
454 (strace_marker_create_sals_from_location): Same.
455 (strace_marker_decode_location): Same.
456 (create_sals_from_location_default): Same.
457 (decode_location_default): Same.
458 * breakpoint.h (struct breakpoint_ops): Same.
459 (create_breakpoint): Same.
460 * linespec.h (decode_line_full): Same.
461 * linespec.c (decode_line_full): Same. Throw error if
462 result.size () == 0.
463
464 2020-08-27 Pedro Alves <pedro@palves.net>
465
466 PR gdb/26524
467 * breakpoint.c (until_break_fsm) <location_breakpoint,
468 caller_breakpoint>: Delete fields.
469 <breakpoints>: New field.
470 <until_break_fsm>: Adjust to save a breakpoint vector instead of
471 two individual breakpoints.
472 (until_break_fsm::should_stop): Loop over breakpoints in the
473 breakpoint vector.
474 (until_break_fsm::clean_up): Adjust to clear the breakpoints
475 vector.
476 (until_break_command): Handle location expanding into multiple
477 sals.
478
479 2020-08-27 Pedro Alves <pedro@palves.net>
480
481 PR gdb/26523
482 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
483 bp_until breakpoints user-specified locations. Update intro
484 comment.
485
486 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
487
488 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
489 gdb_bfd_sections): New.
490 * maint.c (print_bfd_section_info): Change param type to
491 maint_print_section_data.
492 (print_objfile_section_info): Likewise.
493 (print_bfd_section_info_maybe_relocated): Likewise.
494 (maintenance_info_sections): Use gdb_bfd_sections.
495
496 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
497
498 * MAINTAINERS: Add ARC target and maintainer.
499
500 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
501
502 * configure.tgt: ARC support for GNU/Linux.
503 * Makefile.in (ALL_TARGET_OBJS): Likewise.
504 * arc-linux-tdep.c: New file.
505 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
506 * arc-tdep.c (arc_write_pc): Use it.
507
508 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
509
510 * arc-tdep.c (arc_check_for_hardware_loop): New.
511 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
512
513 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
514
515 * arc-tdep.h: Include "gdbarch.h".
516
517 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
518
519 * arch/arc.h
520 (arc_gdbarch_features): New class to stir the selection of target XML.
521 (arc_create_target_description): Use FEATURES to choose XML target.
522 (arc_lookup_target_description): Use arc_create_target_description
523 to create _new_ target descriptions or return the already created
524 ones if the FEATURES is the same.
525 * arch/arc.c: Implementation of prototypes described above.
526 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
527 (arc_gdbarch_features_init): Initialize the FEATURES struct.
528 * arc-tdep.c (*_feature_name): Make feature names consistent.
529 (arc_register_feature): A new struct to hold information about
530 registers of a particular target/feature.
531 (arc_check_tdesc_feature): Check if XML provides registers in
532 compliance with ARC_REGISTER_FEATURE structs.
533 (arc_update_acc_reg_names): Add aliases for r58 and r59.
534 (determine_*_reg_feature_set): Which feature name to look for.
535 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
536 (mach_type_to_arc_isa): Convert from a set of binutils machine types
537 to expected ISA enums to be used in arc_gdbarch_features structs.
538 * features/Makefile (FEATURE_XMLFILES): Add new files.
539 * gdb/features/arc/v1-aux.c: New file.
540 * gdb/features/arc/v1-aux.xml: Likewise.
541 * gdb/features/arc/v1-core.c: Likewise.
542 * gdb/features/arc/v1-core.xml: Likewise.
543 * gdb/features/arc/v2-aux.c: Likewise.
544 * gdb/features/arc/v2-aux.xml: Likewise.
545 * gdb/features/arc/v2-core.c: Likewise.
546 * gdb/features/arc/v2-core.xml: Likewise.
547 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
548
549 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
550 Andrew Burgess <andrew.burgess@embecosm.com>
551
552 PR m2/26372
553 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
554 an assert. Remove single element array indexing pattern as the
555 MULTI_SUBSCRIPT support will handle this case too.
556
557 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
558
559 * value.h (valprint_check_validity): Move declaration from
560 here...
561 * valprint.h (valprint_check_validity): ... to here.
562
563 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
564
565 * debug.h: New file.
566 * debug.c (debug_prefixed_vprintf): New function.
567 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
568 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
569
570 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
571
572 * infrun.h (infrun_debug_printf_1): New function declaration.
573 (infrun_debug_printf): New macro.
574 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
575 throughout.
576 (infrun_debug_printf): New function.
577 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
578 (handle_jit_event): Likewise.
579
580 2020-08-21 Mark Wielaard <mark@klomp.org>
581
582 * ada-lex.l: Extend register warnings diagnostics comment for g++.
583
584 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
585
586 * frame.c (enum class frame_id_status): New.
587 (struct frame_info) <this_id::p>: Change type to frame_id_status.
588 (fprintf_frame): Update.
589 (compute_frame_id): Set frame id status to "computing" on entry.
590 Set it back to "not_computed" on failure and to "computed" on
591 success.
592 (get_frame_id): Assert the frame id is not being computed.
593 (create_sentinel_frame): Use frame_id_status::COMPUTED.
594 (create_new_frame): Likewise.
595 (frame_cleanup_after_sniffer): Update assert.
596
597 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
598
599 * regcache.c (pid_ptid_regcache_map): New type.
600 (target_ptid_regcache_map): Remove.
601 (target_pid_ptid_regcache_map): New type.
602 (regcaches): Change type to target_pid_ptid_regcache_map.
603 (get_thread_arch_aspace_regcache): Update.
604 (regcache_thread_ptid_changed): Update, handle pid-like ptid
605 case.
606 (regcaches_size): Update.
607 (regcache_count): Update.
608 (registers_changed_ptid_target_pid_test): New.
609 (_initialize_regcache): Register new test.
610
611 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
612
613 * regcache.c (regcache_count): New.
614 (struct regcache_test_data): New.
615 (regcache_test_data_up): New.
616 (populate_regcaches_for_test): New.
617 (regcaches_test): Remove.
618 (get_thread_arch_aspace_regcache_test): New.
619 (registers_changed_ptid_all_test): New.
620 (registers_changed_ptid_target_test): New.
621 (registers_changed_ptid_target_ptid_test): New.
622 (regcache_thread_ptid_changed): Remove regcache_count lambda.
623 (_initialize_regcache): Register new tests.
624
625 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
626
627 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
628 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
629 gdbarch and aspace parameter. Use current inferior's aspace.
630 Validate regcache's arch value.
631 (regcaches_test): Update.
632
633 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
634
635 * regcache.c (regcaches_test): Call registers_changed.
636
637 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
638
639 * infrun.c (process_event_stop_test): Fix typo "breapoint".
640
641 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
642
643 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
644 to find the end of prologue for flang compiled binaries.
645 * arm-tdep.c (arm_skip_prologue): Likewise.
646 * i386-tdep.c (i386_skip_prologue): Likewise.
647 * producer.c (producer_is_llvm): New function.
648 (producer_parsing_tests): Added new tests for clang/flang.
649 * producer.h (producer_is_llvm): New declaration.
650
651 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
652
653 * linux-nat.c (linux_nat_debug_printf): New function.
654 (linux_nat_debug_printf_1): New macro. Use throughout the file.
655
656 2020-08-18 Aaron Merey <amerey@redhat.com>
657
658 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
659 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
660 (CLIBS): Add DEBUGINFOD_LIBS.
661
662 2020-08-17 Sergei Trofimovich <siarheit@google.com>
663
664 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
665 'gdbarch_num_regs'.
666
667 2020-08-17 Tom Tromey <tromey@adacore.com>
668
669 * ada-varobj.c (ada_varobj_decode_var): Handle case where
670 ada_get_decoded_value returns NULL.
671
672 2020-08-17 Tom Tromey <tromey@adacore.com>
673
674 * python/py-inferior.c (infpy_search_memory): Use
675 gdb_py_object_from_ulongest.
676 * python/py-infevents.c (create_inferior_call_event_object)
677 (create_memory_changed_event_object): Use
678 gdb_py_object_from_ulongest.
679 * python/py-linetable.c (ltpy_entry_get_pc): Use
680 gdb_py_object_from_ulongest.
681
682 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
683
684 * loc.c (class symbol_needs_eval_context): Fix indentation.
685
686 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
687
688 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
689 bool.
690
691 2020-08-17 Tom de Vries <tdevries@suse.de>
692
693 PR gdb/26393
694 * gdbtypes.c (dump_dynamic_prop): New function.
695 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
696
697 2020-08-15 Tom de Vries <tdevries@suse.de>
698
699 PR backtrace/26390
700 * stack.c (print_frame_args): Temporarily set the selected
701 frame to FRAME while printing the frame's arguments.
702
703 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
704
705 PR breakpoints/26385
706 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
707 Always clear watchpoint with PTRACE_SET_DEBUGREG.
708
709 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
710
711 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
712 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
713 and >= to check return value instead of == -1 and != -1.
714
715 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
716
717 * utils.h (class gdb_argv) <as_array_view>: New method.
718 * utils.c (gdb_argv_as_array_view_test): New.
719 (_initialize_utils): Register selftest.
720 * maint.c (maintenance_selftest): Use the new method.
721
722 2020-08-13 Kamil Rytarowski <n54@gmx.com>
723
724 * target.h (supports_dumpcore, dumpcore): New
725 function declarations.
726 * target.c (supports_dumpcore, dumpcore): New
727 functions.
728 * target-delegates.c: Rebuild.
729 * gcore.c (gcore_command): Use target_supports_dumpcore ()
730 and target_dumpcore ().
731
732 2020-08-13 Aaron Merey <amerey@redhat.com>
733
734 * debuginfod-support.c: Replace global variables with user_data.
735
736 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
737
738 * maint.c (maintenance_selftest): Split args and pass array_view
739 to run_tests.
740
741 2020-08-12 Luis Machado <luis.machado@linaro.org>
742
743 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
744 type's length.
745 Use %s and pulongest to print the length.
746
747 2020-08-12 Pedro Alves <palves@redhat.com>
748
749 * NEWS: Move "Multi-target debugging support" item to the
750 "Changes since GDB 9" section.
751
752 2020-08-12 Pedro Alves <palves@redhat.com>
753
754 PR gdb/26336
755 * progspace.c (program_space::remove_objfile): Invalidate the
756 frame cache.
757
758 2020-08-11 Tom de Vries <tdevries@suse.de>
759
760 * MAINTAINERS: Mark ms1 as deleted.
761
762 2020-08-10 Luis Machado <luis.machado@linaro.org>
763
764 PR gdb/26310
765
766 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
767 act accordingly.
768 (aarch64_analyze_prologue_test): Add more unit tests to exercise
769 movz/str/stur/stp skipping behavior.
770
771 2020-08-10 Luis Machado <luis.machado@linaro.org>
772
773 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
774 struct user_sve_header instead of struct sve_context.
775
776 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * read.h (dwarf2_fetch_die_loc_sect_off,
779 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
780 `void *` parameter with function_view.
781 * read.c (dwarf2_fetch_die_loc_sect_off,
782 dwarf2_fetch_die_loc_cu_off): Likewise.
783 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
784 (per_cu_dwarf_call): Adjust.
785 (get_frame_address_in_block_wrapper): Remove.
786 (indirect_synthetic_pointer): Adjust.
787 (get_ax_pc): Remove.
788 (dwarf2_compile_expr_to_ax): Adjust.
789
790 2020-08-08 Tom de Vries <tdevries@suse.de>
791
792 PR build/26344
793 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
794 constructor.
795 * regcache.c (get_thread_arch_aspace_regcache): Same.
796
797 2020-08-07 Tom Tromey <tromey@adacore.com>
798
799 * ravenscar-thread.c
800 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
801 New method.
802 (ravenscar_thread_target::wait): Check
803 runtime_initialized.
804 (ravenscar_thread_target::prepare_to_store)
805 (ravenscar_thread_target::stopped_by_sw_breakpoint)
806 (ravenscar_thread_target::stopped_by_hw_breakpoint)
807 (ravenscar_thread_target::stopped_by_watchpoint)
808 (ravenscar_thread_target::stopped_data_address)
809 (ravenscar_thread_target::core_of_thread): Use
810 scoped_restore_current_thread and
811 set_base_thread_from_ravenscar_task.
812
813 2020-08-07 Tom Tromey <tromey@adacore.com>
814
815 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
816
817 2020-08-07 Tom Tromey <tromey@adacore.com>
818
819 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
820 update_inferior_ptid before update_thread_list.
821 (temporarily_change_regcache_ptid): New class.
822 (ravenscar_thread_target::fetch_registers)
823 (ravenscar_thread_target::store_registers)
824 (ravenscar_thread_target::prepare_to_store): Use base thread when
825 forwarding operation.
826
827 2020-08-07 Tom Tromey <tromey@adacore.com>
828
829 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
830 "is_pid" case.
831
832 2020-08-07 Tom Tromey <tromey@adacore.com>
833
834 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
835 New methods.
836 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
837 first.
838 (ravenscar_thread_target::add_thread): Rename from
839 ravenscar_add_thread.
840 (ravenscar_thread_target::update_thread_list): Use a lambda.
841 (ravenscar_thread_target::xfer_partial): New method.
842
843 2020-08-07 Tom Tromey <tromey@adacore.com>
844
845 * ada-lang.h (ada_task_list_iterator_ftype): Now a
846 gdb::function_view.
847 (iterate_over_live_ada_tasks): Change type of argument.
848 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
849 of argument.
850
851 2020-08-07 Tom Tromey <tromey@adacore.com>
852
853 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
854 Remove.
855 (ravenscar_thread_target::extra_thread_info): Remove.
856 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
857 defer to target beneath for non-Ravenscar threads.
858
859 2020-08-07 Tom Tromey <tromey@adacore.com>
860
861 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
862 get_base_thread_from_ravenscar_task>: Now methods.
863 <m_cpu_map>: New member.
864 (ravenscar_thread_target::get_thread_base_cpu): Rename from
865 ravenscar_get_thread_base_cpu. Check m_cpu_map.
866 (ravenscar_thread_target::task_is_currently_active): Update.
867 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
868 Now a method.
869 (ravenscar_thread_target::add_active_thread): Put initial thread
870 into the m_cpu_map.
871
872 2020-08-07 Tom Tromey <tromey@adacore.com>
873
874 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
875 event_ptid.
876
877 2020-08-07 Tom Tromey <tromey@adacore.com>
878
879 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
880 runtime_initialized.
881
882 2020-08-07 Tom Tromey <tromey@adacore.com>
883
884 * ravenscar-thread.c (ravenscar_thread_target): Don't call
885 add_active_thread.
886 (ravenscar_thread_target::add_active_thread): Now public.
887 (ravenscar_inferior_created): Call add_active_thread after pushing
888 the target.
889
890 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
891
892 * regcache.c (ptid_regcache_map): New type.
893 (target_ptid_regcache_map): New type.
894 (regcaches): Change type to target_ptid_regcache_map.
895 (get_thread_arch_aspace_regcache): Update to regcaches' new
896 type.
897 (regcache_thread_ptid_changed): Likewise.
898 (registers_changed_ptid): Likewise.
899 (regcaches_size): Likewise.
900 (regcaches_test): Update.
901 (regcache_thread_ptid_changed): Update.
902 * regcache.h (regcache_up): New type.
903 * gdbsupport/ptid.h (hash_ptid): New struct.
904
905 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
906
907 * observable.h (thread_ptid_changed): Add parameter
908 `process_stratum_target *`.
909 * infrun.c (infrun_thread_ptid_changed): Add parameter
910 `process_stratum_target *` and use it.
911 (selftests): New namespace.
912 (infrun_thread_ptid_changed): New function.
913 (_initialize_infrun): Register selftest.
914 * regcache.c (regcache_thread_ptid_changed): Add parameter
915 `process_stratum_target *` and use it.
916 (regcache_thread_ptid_changed): New function.
917 (_initialize_regcache): Register selftest.
918 * thread.c (thread_change_ptid): Pass target to
919 thread_ptid_changed observable.
920
921 2020-08-06 Caroline Tice <cmtice@google.com>
922
923 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
924 (struct dwp_sections): Update field comments. Add loclists and
925 rnglists fields.
926 (struct virtual_v2_dwo_sections): Rename struct to
927 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
928 size & offset fields for loclists and rnglists.
929 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
930 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
931 skipping dummy type units.
932 (create_dwp_hash_table): Update the large comment above the function to
933 discuss Version 5 DWP files as well, with references. Update all the
934 version checks in the function to check for version 5 as well. Add new
935 section at the end to create dwp hash table for version 5.
936 (create_dwp_v2_section): Rename function to
937 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
938 Add V5 to error message text.
939 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
940 into calls to create_dwp_v2_or_v5_section.
941 (create_dwo_unit_in_dwp_v5): New function.
942 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
943 check for version2; add else clause to handle version 5.
944 (open_and_init_dwo_file): Add code to check dwarf version & only call
945 create_debug_types_hash_table (with sections.types) if version is not 5;
946 else call create_debug_type_hash_table, with sections.info.
947 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
948 version 5.
949 (dwarf2_locate_v5_dwp_sections): New function.
950 (open_and_init_dwp_file): Add else-if clause for version 5 to call
951 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
952
953 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
954
955 * regcache.h (class regcache): Remove friend
956 registers_changed_ptid.
957 <regcache_thread_ptid_changed>: Remove.
958 <regcaches>: Remove.
959 * regcache.c (regcache::regcaches): Rename to...
960 (regcaches): ... this. Make static.
961 (get_thread_arch_aspace_regcache): Update.
962 (regcache::regcache_thread_ptid_changed): Rename to...
963 (regcache_thread_ptid_changed): ... this. Update.
964 (class regcache_access): Remove.
965 (regcaches_test): Update.
966 (_initialize_regcache): Update.
967 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
968 <forward_list>.
969
970 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
971
972 * regcache.h (class regcache) <current_regcache>: Rename to...
973 <regcaches>: ... this. Move doc here.
974 * regcache.c (regcache::current_regcache) Rename to...
975 (regcache::regcaches): ... this. Move doc to header.
976 (get_thread_arch_aspace_regcache): Update.
977 (regcache::regcache_thread_ptid_changed): Update.
978 (registers_changed_ptid): Update.
979 (class regcache_access) <current_regcache_size>: Rename to...
980 <regcaches_size>: ... this.
981 (current_regcache_test): Rename to...
982 (regcaches_test): ... this.
983 (_initialize_regcache): Update.
984
985 2020-08-06 Victor Collod <vcollod@nvidia.com>
986
987 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
988
989 2020-08-05 Kevin Buettner <kevinb@redhat.com>
990
991 * corelow.c (core_target::build_file_mappings): Don't output
992 null pathname in warning.
993
994 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
995
996 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
997 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
998 gdb.dwarf2/dw2-single-line-discriminators.exp,
999 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1000
1001 2020-08-05 Tom Tromey <tromey@adacore.com>
1002
1003 PR rust/26197:
1004 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1005 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1006 Fix off-by-one and type size errors in ordinary case.
1007
1008 2020-08-05 Tom de Vries <tdevries@suse.de>
1009
1010 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1011 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1012
1013 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1014
1015 * frame.h (frame_id_p): Return bool.
1016 (frame_id_artificial_p): Return bool.
1017 (frame_id_eq): Return bool.
1018 (has_stack_frames): Return bool.
1019 (get_selected_frame): Fix typo in comment.
1020 (get_frame_pc_if_available): Return bool.
1021 (get_frame_address_in_block_if_available): Return bool.
1022 (get_frame_func_if_available): Return bool.
1023 (read_frame_register_unsigned): Return bool.
1024 (get_frame_register_bytes): Return bool.
1025 (safe_frame_unwind_memory): Return bool.
1026 (deprecated_frame_register_read): Return bool.
1027 (frame_unwinder_is): Return bool.
1028 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1029 bool.
1030 <this_id::p>: Likewise.
1031 <prev_p>: Likewise.
1032 (frame_stash_add): Return bool.
1033 (get_frame_id): Use bool.
1034 (frame_id_build_special) Use bool.
1035 (frame_id_build_unavailable_stack): Use bool.
1036 (frame_id_build): Use bool.
1037 (frame_id_p): Return bool, use true/false instead of 1/0.
1038 (frame_id_artificial_p): Likewise.
1039 (frame_id_eq): Likewise.
1040 (frame_id_inner): Likewise.
1041 (get_frame_func_if_available): Likewise.
1042 (read_frame_register_unsigned): Likewise.
1043 (deprecated_frame_register_read): Likewise.
1044 (get_frame_register_bytes): Likewise.
1045 (has_stack_frames): Likewise.
1046 (inside_main_func): Likewise.
1047 (inside_entry_func): Likewise.
1048 (get_frame_pc_if_available): Likewise.
1049 (get_frame_address_in_block_if_available): Likewise.
1050 (frame_unwinder_is): Likewise.
1051 (safe_frame_unwind_memory): Likewise.
1052 (frame_unwind_arch): Likewise.
1053
1054 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1055
1056 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1057 type to cached_copy_status.
1058 (fprintf_frame): Adjust.
1059 (get_frame_func_if_available): Adjust.
1060 (frame_cleanup_after_sniffer): Adjust.
1061
1062 2020-08-04 Mark Wielaard <mark@klomp.org>
1063
1064 * MAINTAINERS (Write After Approval): Update email address.
1065
1066 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1067
1068 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1069 dynamic_prop::const_val.
1070
1071 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1072
1073 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1074 dynamic_prop::kind.
1075
1076 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1077
1078 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1079
1080 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1081
1082 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1083
1084 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1085 Jose E. Marchesi <jose.marchesi@oracle.com>
1086
1087 * configure.tgt: Add entry for bpf-*-*.
1088 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1089 (ALLDEPFILES): Add bpf-tdep.c.
1090 * bpf-tdep.c: New file.
1091 * MAINTAINERS: Add bpf target and maintainer.
1092 * NEWS: Mention the support for the new target.
1093
1094 2020-08-04 Tom de Vries <tdevries@suse.de>
1095
1096 PR symtab/23270
1097 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1098 Error.
1099
1100 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1101
1102 * syscalls/freebsd.xml: Regenerate.
1103
1104 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1105
1106 * syscalls/update-freebsd.sh: Fix usage and year range.
1107
1108 2020-08-03 Tom de Vries <tdevries@suse.de>
1109
1110 PR symtab/26333
1111 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1112 DW_LNE_lo_user/DW_LNE_hi_user range.
1113
1114 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1115
1116 PR ada/26318
1117 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1118 kind.
1119
1120 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1121
1122 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1123
1124 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1125
1126 * breakpoint.c (set_breakpoint_condition): Update the condition
1127 expressions after checking that the input condition string parses
1128 successfully and does not contain junk at the end.
1129
1130 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1131
1132 * breakpoint.c (set_breakpoint_condition): Update the
1133 condition string after parsing the new condition successfully.
1134
1135 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1136
1137 * proc-api.c (_STRUCTURED_PROC): Don't define.
1138 * proc-events.c: Likewise.
1139 * proc-flags.c: Likewise.
1140 * proc-why.c: Likewise.
1141 * procfs.c: Likewise.
1142
1143 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1144 * configure, config.in: Regenerate.
1145
1146 2020-07-30 Tom de Vries <tdevries@suse.de>
1147
1148 PR build/26320
1149 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1150 m_red/m_green/m_blue in a union.
1151
1152 2020-07-29 Tom de Vries <tdevries@suse.de>
1153
1154 PR tdep/26280
1155 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1156
1157 2020-07-28 Tom Tromey <tromey@adacore.com>
1158
1159 PR symtab/26270:
1160 * symtab.h (find_pc_partial_function_sym): Declare.
1161 * cli/cli-cmds.c (disassemble_command): Use
1162 find_pc_partial_function_sym. Check asm_demangle.
1163 * blockframe.c (cache_pc_function_sym): New global.
1164 (cache_pc_function_name): Remove.
1165 (clear_pc_function_cache): Update.
1166 (find_pc_partial_function_sym): New function, from
1167 find_pc_partial_function.
1168 (find_pc_partial_function): Rewrite using
1169 find_pc_partial_function_sym.
1170
1171 2020-07-28 Tom Tromey <tromey@adacore.com>
1172
1173 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1174 help. Add usage.
1175
1176 2020-07-28 Tom Tromey <tromey@adacore.com>
1177
1178 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1179 <DW_OP_GNU_variable_value>: Cast to address type.
1180
1181 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1182
1183 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1184 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1185 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1186 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1187 (nbsd_get_siginfo_type): New.
1188 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1189 (_initialize_nbsd_tdep): New.
1190
1191 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1192
1193 PR binutils/26301
1194 * configure: Regenerated.
1195
1196 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1197
1198 PR binutils/26301
1199 * configure: Regenerated.
1200
1201 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * python/py-frame.c: Remove 'user-regs.h' include.
1204 (frapy_read_register): Rewrite to make use of
1205 gdbpy_parse_register_id.
1206 * python/py-registers.c (gdbpy_parse_register_id): New function,
1207 moved here from python/py-unwind.c. Updated the return type, and
1208 also accepts register descriptor objects.
1209 * python/py-unwind.c: Remove 'user-regs.h' include.
1210 (pyuw_parse_register_id): Moved to python/py-registers.c.
1211 (unwind_infopy_add_saved_register): Update to use
1212 gdbpy_parse_register_id.
1213 (pending_framepy_read_register): Likewise.
1214 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1215
1216 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * python/py-registers.c: Add 'user-regs.h' include.
1219 (register_descriptor_iter_find): New function.
1220 (register_descriptor_iterator_object_methods): New static global
1221 methods array.
1222 (register_descriptor_iterator_object_type): Add pointer to methods
1223 array.
1224
1225 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1226
1227 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1228 for all architectures on FreeBSD 11.3 and later.
1229
1230 2020-07-27 Tom Tromey <tromey@adacore.com>
1231
1232 * gcore.h (load_corefile): Don't declare.
1233
1234 2020-07-27 Tom de Vries <tdevries@suse.de>
1235
1236 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1237 * config.in: Regenerate.
1238 * configure: Regenerate.
1239
1240 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1241
1242 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1243 ws2tcpip.h. When checking whether socklen_t type is defined, use
1244 ws2tcpip.h if it is available and sys/socket.h isn't.
1245 * configure: Regenerate.
1246 * config.in: Regenerate.
1247
1248 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1249
1250 PR fortran/23051
1251 PR fortran/26139
1252 * valops.c (value_ind): Pass address to
1253 readjust_indirect_value_type.
1254 * value.c (readjust_indirect_value_type): Make parameter
1255 non-const, and add extra address parameter. Resolve original type
1256 before using it.
1257 * value.h (readjust_indirect_value_type): Update function
1258 signature and comment.
1259
1260 2020-07-25 Tom de Vries <tdevries@suse.de>
1261
1262 PR symtab/26243
1263 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1264 entries.
1265
1266 2020-07-24 Aaron Merey <amerey@redhat.com>
1267
1268 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1269 * configure: Rebuild.
1270
1271 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1272
1273 PR corefiles/26294
1274 * corelow.c (_initialize_corelow): Add period to help text
1275 for "maintenance print core-file-backed-mappings".
1276
1277 2020-07-23 Pedro Alves <pedro@palves.net>
1278
1279 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1280 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1281 meanwhile.
1282 * frame.c (frame_cache_generation, get_frame_cache_generation):
1283 New.
1284 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1285 (get_prev_frame_if_no_cycle): On exception, don't touch
1286 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1287 * frame.h (get_frame_cache_generation): Declare.
1288
1289 2020-07-23 Tom de Vries <tdevries@suse.de>
1290
1291 PR tui/26282
1292 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1293 New default constructor.
1294
1295 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1296
1297 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1298 exclude non-statement entries.
1299
1300 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1301
1302 * NEWS (New commands): Mention new command
1303 "maintenance print core-file-backed-mappings".
1304
1305 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1306
1307 * corelow.c (gdbcmd.h): Include.
1308 (core_target::info_proc_mappings): New method.
1309 (get_current_core_target): New function.
1310 (maintenance_print_core_file_backed_mappings): New function.
1311 (_initialize_corelow): Add core-file-backed-mappings to
1312 "maint print" commands.
1313
1314 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1315
1316 * linux-tdep.c (dump_note_entry_p): New function.
1317 (linux_dump_mapping_p_ftype): New typedef.
1318 (linux_find_memory_regions_full): Add new parameter,
1319 should_dump_mapping_p.
1320 (linux_find_memory_regions): Adjust call to
1321 linux_find_memory_regions_full.
1322 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1323 call to linux_find_memory_regions_full.
1324
1325 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1326
1327 * corelow.c (solist.h, unordered_map): Include.
1328 (class core_target): Add field m_core_file_mappings and
1329 method build_file_mappings.
1330 (core_target::core_target): Call build_file_mappings.
1331 (core_target::~core_target): Free memory associated with
1332 m_core_file_mappings.
1333 (core_target::build_file_mappings): New method.
1334 (core_target::xfer_partial): Use m_core_file_mappings
1335 for memory transfers.
1336 * linux-tdep.c (linux_read_core_file_mappings): New
1337 function.
1338 (linux_core_info_proc_mappings): Rewrite to use
1339 linux_read_core_file_mappings.
1340 (linux_init_abi): Register linux_read_core_file_mappings.
1341
1342 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1343
1344 * arch-utils.c (default_read_core_file_mappings): New function.
1345 * arch-utils.c (default_read_core_file_mappings): Declare.
1346 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1347 * gdbarch.h, gdbarch.c: Regenerate.
1348
1349 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1350
1351 PR corefiles/25631
1352 * corelow.c (core_target:xfer_partial): Revise
1353 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1354 case after first checking the stratum beneath the core
1355 target.
1356 (has_all_memory): Return true.
1357 * target.c (raw_memory_xfer_partial): Revise comment
1358 regarding use of has_all_memory.
1359
1360 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1361
1362 * exec.h (section_table_xfer_memory): Revise declaration,
1363 replacing section name parameter with an optional callback
1364 predicate.
1365 * exec.c (section_table_xfer_memory): Likewise.
1366 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1367 of section_table_xfer_memory.
1368
1369 2020-07-22 Tom Tromey <tromey@adacore.com>
1370
1371 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1372 lookup_symbol_search_name.
1373
1374 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1375
1376 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1377 redundant local variable.
1378 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1379 reference, not pointer, update code accordingly.
1380
1381 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1382 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1383
1384 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1385 * jit.c (jit_breakpoint_re_set_internal): Use the
1386 `skip_jit_symbol_lookup` field.
1387
1388 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1389 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1390
1391 * jit.c (jit_read_descriptor): Define the descriptor address once,
1392 use twice.
1393 (jit_breakpoint_deleted): Move the declaration of the loop variable
1394 `iter` into the loop header.
1395 (jit_breakpoint_re_set_internal): Move the declaration of the local
1396 variable `objf_data` to the first point of definition.
1397 (jit_event_handler): Move the declaration of local variables
1398 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1399 Rename `objf` to `jited`.
1400
1401 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1404 Remove.
1405 * jit.c (get_jiter_objfile_data): Update.
1406
1407 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1408 Simon Marchi <simon.marchi@polymtl.ca>
1409
1410 * jit.c (struct jit_program_space_data): Remove.
1411 (jit_program_space_key): Remove.
1412 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1413 stuff.
1414 (get_jit_program_space_data): Remove.
1415 (jit_breakpoint_deleted): Iterate on all of the program space's
1416 objfiles.
1417 (jit_inferior_init): Likewise.
1418 (jit_breakpoint_re_set_internal): Likewise. Also change return
1419 type to void.
1420 (jit_breakpoint_re_set): Pass current_program_space to
1421 jit_breakpoint_re_set_internal.
1422
1423 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1424
1425 * jit.h (struct jiter_objfile_data) <cached_code_address,
1426 jit_breakpoint>: Move to here from ...
1427 * jit.c (jit_program_space_data): ... here.
1428 (jiter_objfile_data::~jiter_objfile_data): Update.
1429 (jit_breakpoint_deleted): Update.
1430 (jit_breakpoint_re_set_internal): Update.
1431
1432 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1433
1434 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1435 checks.
1436 (jit_read_descriptor): Remove NULL check.
1437 (jit_event_handler): Add an assertion.
1438
1439 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1440
1441 * jit.h (struct jit_objfile_data): Split into...
1442 (struct jiter_objfile_data): ... this ...
1443 (struct jited_objfile_data): ... and this.
1444 * objfiles.h (struct objfile) <jit_data>: Remove.
1445 <jiter_data, jited_data>: New fields.
1446 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1447 (jiter_objfile_data::~jiter_objfile_data): ... this.
1448 (get_jit_objfile_data): Rename to ...
1449 (get_jiter_objfile_data): ... this.
1450 (add_objfile_entry): Update.
1451 (jit_read_descriptor): Use get_jiter_objfile_data.
1452 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1453 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1454 (jit_inferior_exit_hook): Use objfile's jited_data field.
1455
1456 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1457
1458 * jit.h: Forward-declare `struct minimal_symbol`.
1459 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1460 constructor, destructor, and an objfile* field.
1461 * jit.c (jit_objfile_data): Remove.
1462 (struct jit_objfile_data): Migrate from here to jit.h.
1463 (jit_objfile_data::~jit_objfile_data): New destructor
1464 implementation with code moved from free_objfile_data.
1465 (free_objfile_data): Delete.
1466 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1467 (jit_find_objf_with_entry_addr): Ditto.
1468 (jit_inferior_exit_hook): Ditto.
1469 (_initialize_jit): Remove the call to
1470 register_objfile_data_with_cleanup.
1471 * objfiles.h (struct objfile) <jit_data>: New field.
1472
1473 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1474
1475 * jit.h: Forward-declare `struct objfile`.
1476 (jit_event_handler): Add a second parameter, the JITer objfile.
1477 * jit.c (jit_read_descriptor): Change the signature to take the
1478 JITer objfile as an argument instead of the jit_program_space_data.
1479 (jit_inferior_init): Update the call to jit_read_descriptor.
1480 (jit_event_handler): Use the new JITer objfile argument when calling
1481 jit_read_descriptor.
1482 * breakpoint.c (handle_jit_event): Update the call to
1483 jit_event_handler to pass the JITer objfile.
1484
1485 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1486
1487 * gdbarch.c: Regenerate.
1488 * gdbarch.h: Regenerate.
1489 * gdbarch.sh (handle_segmentation_fault): Remove method.
1490 * infrun.c (handle_segmentation_fault): Remove.
1491 (print_signal_received_reason): Remove call to
1492 handle_segmentation_fault.
1493
1494 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1495
1496 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1497 Rename to sparc64_linux_report_signal_info and add siggnal
1498 argument.
1499 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1500 instead of sparc64_linux_handle_segmentation_fault.
1501
1502 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1503
1504 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1505 i386_linux_report_signal_info instead of
1506 i386_linux_handle_segmentation_fault.
1507 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1508 to i386_linux_report_signal_info and add siggnal argument.
1509 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1510 of i386_linux_handle_segmentation_fault.
1511 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1512 to i386_linux_report_signal_info and add siggnal argument.
1513
1514 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1515
1516 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1517 hook if present.
1518
1519 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1520
1521 * gdbarch.c: Regenerate.
1522 * gdbarch.h: Regenerate.
1523 * gdbarch.sh (report_signal_info): New method.
1524 * infrun.c (print_signal_received_reason): Invoke gdbarch
1525 report_signal_info hook if present.
1526
1527 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * python/py-registers.c : Add 'unordered_map' include.
1530 (gdbpy_new_reggroup): Renamed to...
1531 (gdbpy_get_reggroup): ...this. Update to only create register
1532 group descriptors when needed.
1533 (gdbpy_reggroup_iter_next): Update.
1534
1535 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1536
1537 * python/py-registers.c (gdbpy_register_object_data): New static
1538 global.
1539 (gdbpy_register_object_data_init): New function.
1540 (gdbpy_new_register_descriptor): Renamed to...
1541 (gdbpy_get_register_descriptor): ...this, and update to reuse
1542 existing register descriptors where possible.
1543 (gdbpy_register_descriptor_iter_next): Update.
1544 (gdbpy_initialize_registers): Register new gdbarch data.
1545
1546 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1547
1548 * linux-nat.c (stopped_pids): Make static.
1549
1550 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1551
1552 PR ada/26235
1553 * gdbtypes.c (ada_discrete_type_low_bound,
1554 ada_discrete_type_high_bound): Handle undefined bounds.
1555
1556 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1557
1558 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1559 declaration.
1560 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1561 function.
1562
1563 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1564
1565 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1566 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1567 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1568 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1569 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1570 method.
1571
1572 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1573
1574 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1575 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1576 which are deprecated in Guile 3.0.
1577 * configure.ac (try_guile_versions): Add "guile-3.0".
1578 * configure (try_guile_versions): Regenerate.
1579 * NEWS: Update entry.
1580
1581 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1582 Doug Evans <dje@google.com>
1583
1584 PR gdb/21104
1585 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1586 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1587 USING_GUILE_BEFORE_2_2.
1588 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1589 Change type to 'scm_t_port_type *'.
1590 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1591 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1592 parameter and honor it. Update callers.
1593 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1594 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1595 functions.
1596 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1597 USING_GUILE_BEFORE_2_2.
1598 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1599 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1600 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1601 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1602 and 'SCM_PORT_TYPE'.
1603 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1604 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1605 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1606 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1607 [!USING_GUILE_BEFORE_2_2]: New functions.
1608 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1609 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1610 'gdbscm_memory_port_read'.
1611 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1612 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1613 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1614 function.
1615 (ioscm_init_memory_port): Remove.
1616 (ioscm_init_memory_port_stream): New function
1617 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1618 function.
1619 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1620 Return scm_from_uint (0).
1621 (gdbscm_set_memory_port_read_buffer_size_x)
1622 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1623 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1624 Return scm_from_uint (0).
1625 (gdbscm_set_memory_port_write_buffer_size_x)
1626 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1627 * configure.ac (try_guile_versions): Add "guile-2.2".
1628 * configure: Regenerate.
1629 * NEWS: Add entry.
1630
1631 2020-07-18 Tom Tromey <tom@tromey.com>
1632
1633 * linux-nat.c (linux_multi_process): Remove.
1634 (linux_nat_target::supports_multi_process): Return true.
1635
1636 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1637
1638 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1639 (riscv_lookup_target_description): Return pointer out of
1640 unique_ptr.
1641 * target-descriptions.c (allocate_target_description): Add
1642 comment.
1643 (target_desc_deleter::operator()): Likewise.
1644 * target-descriptions.h (struct target_desc_deleter): Moved to
1645 gdbsupport/tdesc.h.
1646 (target_desc_up): Likewise.
1647
1648 2020-07-17 Tom Tromey <tromey@adacore.com>
1649
1650 * linux-nat.c (linux_nat_target::supports_non_stop)
1651 (linux_nat_target::always_non_stop_p): Use "true".
1652 (linux_nat_target::supports_disable_randomization): Use "true" and
1653 "false".
1654
1655 2020-07-16 Caroline Tice <cmtice@google.com>
1656
1657 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1658 (RNGLIST_HEADER_SIZE64): New constant definition.
1659 (struct dwop_section_names): Add rnglists_dwo.
1660 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1661 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1662 (struct dwo_sections): Add rnglists field.
1663 (read_attribut_reprocess): Add tag parameter.
1664 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1665 (cu_debug_rnglists_section): New function (decl & definition).
1666 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1667 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1668 die whose range is being checked; get rnglist section from
1669 cu_debug_rnglists_section, to get from either objfile or dwo file as
1670 appropriate. Add cases for DW_RLE_base_addressx,
1671 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1672 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1673 test inside if-condition and updating complaint message.
1674 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1675 dwarf2_rnglists_process.
1676 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1677 dwarf2_ranges_process.
1678 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1679 need_ranges_base and update comment appropriately. Also pass die tag
1680 to dwarf2_ranges_read.
1681 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1682 need_ranges_base and update comment appropriately. Also pass die tag
1683 to dwarf2_ranges_process.
1684 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1685 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1686 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1687 need_ranges_base and update comment appropriately. Also pass die tag
1688 to read_attribute_reprocess and dwarf2_ranges_read.
1689 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1690 and update function comment appropriately.
1691 (read_loclist_index): Call read_loclists_rnglists_header instead of
1692 read_loclist_header.
1693 (read_rnglist_index): New function.
1694 (read_attribute_reprocess): Add tag parameter. Add code for
1695 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1696 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1697
1698 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1701 being resolved.
1702
1703 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1704
1705 * arch-utils.c (show_architecture): Update formatting of messages.
1706
1707 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1708
1709 * gdbtypes.h (struct type) <bounds>: Handle array and string
1710 types.
1711 * ada-lang.c (assign_aggregate): Use type::bounds on
1712 array/string type.
1713 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1714 * c-varobj.c (c_number_of_children): Likewise.
1715 (c_describe_child): Likewise.
1716 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1717 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1718 (f_type_print_base): Likewise.
1719 * f-valprint.c (f77_array_offset_tbl): Likewise.
1720 (f77_get_upperbound): Likewise.
1721 (f77_print_array_1): Likewise.
1722 * guile/scm-type.c (gdbscm_type_range): Likewise.
1723 * m2-typeprint.c (m2_array): Likewise.
1724 (m2_is_long_set_of_type): Likewise.
1725 * m2-valprint.c (get_long_set_bounds): Likewise.
1726 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1727 * python/py-type.c (typy_range): Likewise.
1728 * rust-lang.c (rust_internal_print_type): Likewise.
1729 * type-stack.c (type_stack::follow_types): Likewise.
1730 * valarith.c (value_subscripted_rvalue): Likewise.
1731 * valops.c (value_cast): Likewise.
1732
1733 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1734
1735 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1736 callers to use the equivalent accessor methods.
1737
1738 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1739
1740 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1741 (struct type) <bit_stride>: New method.
1742 (TYPE_BIT_STRIDE): Remove.
1743 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1744
1745 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1746
1747 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1748 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1749 callers to use the equivalent accessor methods instead.
1750
1751 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1752
1753 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1754 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1755 callers to use the equivalent accessor methods instead.
1756
1757 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1758
1759 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1760 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1761 to use dynamic_prop::kind.
1762
1763 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1764
1765 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1766 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1767 to get the bound property's kind and check against
1768 PROP_UNDEFINED.
1769
1770 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1771
1772 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1773 all callers to use type::range_bounds followed by
1774 dynamic_prop::{low,high}.
1775
1776 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1777
1778 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1779 const_val, set_const_val, baton, set_locexpr, set_loclist,
1780 set_addr_offset, variant_parts, set_variant_parts,
1781 original_type, set_original_type>: New methods.
1782 <kind>: Rename to...
1783 <m_kind>: ... this. Update all users to use the new methods
1784 instead.
1785 <data>: Rename to...
1786 <m_data>: ... this. Update all users to use the new methods
1787 instead.
1788
1789 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1790
1791 * gdbtypes.c (get_discrete_bounds): Return failure if
1792 the range type's bounds are not both defined and constant
1793 values.
1794 (get_array_bounds): Update comment. Remove undefined bound check.
1795
1796 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1797
1798 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1799 the type::bounds method directly.
1800
1801 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1804 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1805 are used to set the range type's bounds to use set_bounds.
1806
1807 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1808
1809 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1810
1811 2020-07-10 Pedro Alves <pedro@palves.net>
1812
1813 * gdbthread.h (inferior_ref): Define.
1814 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1815 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1816 * thread.c
1817 (scoped_restore_current_thread::restore):
1818 Adjust to gdb::ref_ptr.
1819 (scoped_restore_current_thread::~scoped_restore_current_thread):
1820 Remove manual decref handling.
1821 (scoped_restore_current_thread::scoped_restore_current_thread):
1822 Adjust to use
1823 inferior_ref::new_reference/thread_info_ref::new_reference.
1824 Incref the thread before calling get_frame_id instead of after.
1825 Let TARGET_CLOSE_ERROR propagate.
1826
1827 2020-07-10 Pedro Alves <pedro@palves.net>
1828
1829 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1830 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1831 NOT_AVAILABLE_ERROR.
1832 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1833 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1834
1835 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1836 Pedro Alves <pedro@palves.net>
1837
1838 PR gdb/26199
1839 * infrun.c (threads_are_resumed_pending_p): Delete.
1840 (do_target_wait): Remove threads_are_executing and
1841 threads_are_resumed_pending_p checks from the inferior_matches
1842 lambda. Update comments.
1843
1844 2020-07-10 Pedro Alves <pedro@palves.net>
1845
1846 PR gdb/26199
1847 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1848 executing threads.
1849
1850 2020-07-10 Pedro Alves <pedro@palves.net>
1851
1852 PR gdb/26199
1853 * infrun.c (handle_no_resumed): Handle multiple targets.
1854
1855 2020-07-10 Pedro Alves <pedro@palves.net>
1856
1857 PR gdb/26199
1858 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1859 target_is_async_p.
1860
1861 2020-07-10 Pedro Alves <pedro@palves.net>
1862
1863 PR gdb/26199
1864 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1865 threads, not all threads.
1866
1867 2020-07-10 Pedro Alves <pedro@palves.net>
1868
1869 PR gdb/26199
1870 * remote.c (remote_target::open_1): Pass remote target pointer as
1871 data to create_async_event_handler.
1872 (remote_async_inferior_event_handler): Mark async event handler
1873 before returning if the remote target still has either pending
1874 events or unacknowledged notifications.
1875
1876 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1877
1878 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1879 declaration.
1880 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1881 function.
1882
1883 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1884
1885 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1886 inferior_ptid.
1887
1888 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1889
1890 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1891 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1892 AT_FREEBSD_PS_STRINGS.
1893
1894 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1895
1896 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1897 of debugfile path on Windows.
1898
1899 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1900
1901 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1902 argument to 'data'.
1903
1904 2020-07-08 Tom Tromey <tromey@adacore.com>
1905
1906 * ada-lang.c (ada_exception_message_1): Use read_memory.
1907
1908 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 PR python/22748
1911 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1912 special handling for inline frames.
1913 * findvar.c (value_of_register_lazy): Skip inline frames when
1914 creating lazy register values.
1915 * frame.c (frame_id_computed_p): Delete definition.
1916 * frame.h (frame_id_computed_p): Delete declaration.
1917
1918 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * NEWS: Mention additions to Python API.
1921 * python/py-arch.c (archpy_register_groups): New function.
1922 (arch_object_methods): Add 'register_groups' method.
1923 * python/py-registers.c (reggroup_iterator_object): New struct.
1924 (reggroup_object): New struct.
1925 (gdbpy_new_reggroup): New function.
1926 (gdbpy_reggroup_to_string): New function.
1927 (gdbpy_reggroup_name): New function.
1928 (gdbpy_reggroup_iter): New function.
1929 (gdbpy_reggroup_iter_next): New function.
1930 (gdbpy_new_reggroup_iterator): New function
1931 (gdbpy_initialize_registers): Register new types.
1932 (reggroup_iterator_object_type): Define new Python type.
1933 (gdbpy_reggroup_getset): New static global.
1934 (reggroup_object_type): Define new Python type.
1935 * python/python-internal.h
1936
1937 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1940 * python/py-arch.c (archpy_registers): New function.
1941 (arch_object_methods): Add 'registers' method.
1942 * python/py-registers.c: New file.
1943 * python/python-internal.h
1944 (gdbpy_new_register_descriptor_iterator): Declare.
1945 (gdbpy_initialize_registers): Declare.
1946 * python/python.c (do_start_initialization): Call
1947 gdbpy_initialize_registers.
1948 * NEWS: Mention additions to the Python API.
1949
1950 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1951
1952 * NEWS: Mention new Python API method.
1953 * python/py-unwind.c (pending_framepy_architecture): New function.
1954 (pending_frame_object_methods): Add architecture method.
1955
1956 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * gdbarch.c: Regenerate.
1959 * gdbarch.h: Regenerate.
1960 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1961 (gdbarch_data): Use internal_error for the case where
1962 deprecated_set_gdbarch_data was originally needed.
1963 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1964 and use passed in obstack.
1965 (libunwind_frame_set_descr): Should no longer get back NULL from
1966 gdbarch_data.
1967 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1968 type.
1969 * user-regs.c (user_regs_init): Update parameters, and use passed
1970 in obstack.
1971 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1972 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1973
1974 2020-07-06 Tom de Vries <tdevries@suse.de>
1975
1976 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1977 End-Of-Sequence in lte_is_less_than.
1978 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1979 "gdb: Don't reorder line table entries too much when sorting".
1980
1981 2020-07-06 Tom de Vries <tdevries@suse.de>
1982
1983 PR tui/26205
1984 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1985
1986 2020-07-05 Tom de Vries <tdevries@suse.de>
1987
1988 PR build/26187
1989 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1990 std::uncaught_exceptions instead of deprecated
1991 std::uncaught_exception.
1992
1993 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1994
1995 * macroexp.h (macro_stringify): Return
1996 gdb::unique_xmalloc_ptr<char>.
1997 * macroexp.c (macro_stringify): Likewise.
1998 * macrotab.c (fixup_definition): Update.
1999
2000 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2001
2002 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2003 (lex_one_token): Update.
2004 * macroexp.c (struct macro_buffer) <release>: Return
2005 gdb::unique_xmalloc_ptr<char>.
2006 (macro_stringify): Update.
2007 (macro_expand): Update.
2008 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2009 * macroexp.h (macro_expand_next): Likewise.
2010
2011 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2012
2013 * macroexp.h (macro_lookup_ftype): Remove.
2014 (macro_expand, macro_expand_once, macro_expand_next): Remove
2015 lookup function parameters, add scope parameter.
2016 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2017 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2018 * macroscope.h (standard_macro_lookup): Change parameter type
2019 to macro_scope.
2020 * macroscope.c (standard_macro_lookup): Likewise.
2021 * c-exp.y (lex_one_token): Update.
2022 * macrocmd.c (macro_expand_command): Likewise.
2023 (macro_expand_once_command): Likewise.
2024
2025 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * inf-loop.c (inferior_event_handler): Remove client_data param.
2028 * inf-loop.h (inferior_event_handler): Likewise.
2029 * infcmd.c (step_1): Adjust.
2030 * infrun.c (proceed): Adjust.
2031 (fetch_inferior_event): Remove client_data param.
2032 (infrun_async_inferior_event_handler): Adjust.
2033 * infrun.h (fetch_inferior_event): Remove `void *` param.
2034 * linux-nat.c (handle_target_event): Adjust.
2035 * record-btrace.c (record_btrace_handle_async_inferior_event):
2036 Adjust.
2037 * record-full.c (record_full_async_inferior_event_handler):
2038 Adjust.
2039 * remote.c (remote_async_inferior_event_handler): Adjust.
2040
2041 2020-07-01 Tom Tromey <tom@tromey.com>
2042
2043 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2044 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2045
2046 2020-07-01 Tom Tromey <tom@tromey.com>
2047
2048 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2049 tui_gen_win_info.
2050 (tui_win_info::make_window): Merge with
2051 tui_gen_win_info::make_window.
2052 (tui_win_info::make_visible): Move from tui_gen_win_info.
2053 * tui/tui-win.c (tui_win_info::max_width): Move from
2054 tui_gen_win_info.
2055 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2056 type.
2057 <window_factory>: Likewise.
2058 * tui/tui-layout.c (tui_win_info::resize): Move from
2059 tui_gen_win_info.
2060 (make_standard_window): Change return type.
2061 (get_locator_window, tui_get_window_by_name): Likewise.
2062 (tui_layout_window::apply): Remove a cast.
2063 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2064 (struct tui_win_info): Merge with tui_gen_win_info.
2065 (struct tui_gen_win_info): Remove.
2066
2067 2020-07-01 Tom Tromey <tom@tromey.com>
2068
2069 * tui/tui-stack.h (struct tui_locator_window): Derive from
2070 tui_win_info.
2071 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2072 <can_box>: New method.
2073
2074 2020-07-01 Tom Tromey <tom@tromey.com>
2075
2076 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2077
2078 2020-07-01 Tom Tromey <tom@tromey.com>
2079
2080 * tui/tui-regs.c (tui_data_window::display_registers_from)
2081 (tui_data_window::display_registers_from)
2082 (tui_data_window::first_data_item_displayed)
2083 (tui_data_window::delete_data_content_windows): Update.
2084 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2085 Remove.
2086 (tui_data_window::check_register_values): Update.
2087 (tui_data_item_window::rerender): Add parameters. Update.
2088 (tui_data_item_window::refresh_window): Remove.
2089 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2090 virtual.
2091 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2092 tui_gen_win_info.
2093 <refresh_window, max_height, min_height>: Remove.
2094 <rerender>: Add parameters.
2095 <x, y, visible>: New members.
2096 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2097 <m_item_width>: New member.
2098
2099 2020-07-01 Tom Tromey <tom@tromey.com>
2100
2101 * tui/tui-regs.c (tui_data_window::show_register_group)
2102 (tui_data_window::check_register_values): Update.
2103 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2104 from item_no.
2105
2106 2020-07-01 Tom Tromey <tom@tromey.com>
2107
2108 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2109 useless "if".
2110
2111 2020-07-01 Tom Tromey <tom@tromey.com>
2112
2113 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2114 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2115
2116 2020-07-01 Tom Tromey <tom@tromey.com>
2117
2118 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2119 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2120 (struct tui_line_or_address): Move from tui-data.h.
2121 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2122 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2123 (tui_cmd_window, tui_source_window_base, tui_source_window)
2124 (tui_disasm_window): Don't declare.
2125 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2126 to tui-winsource.h.
2127 (SINGLE_KEY): Move to tui-stack.c.
2128
2129 2020-07-01 Tom Tromey <tom@tromey.com>
2130
2131 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2132 std::string.
2133 * tui/tui-regs.c (class tab_expansion_file): New.
2134 (tab_expansion_file::write): New method.
2135 (tui_register_format): Change return type. Use
2136 tab_expansion_file.
2137 (tui_get_register, tui_data_window::display_registers_from)
2138 (tui_data_item_window::rerender): Update.
2139 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2140 * tui/tui-io.c (tui_expand_tabs): Remove.
2141
2142 2020-07-01 Tom Tromey <tom@tromey.com>
2143
2144 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2145
2146 2020-07-01 Fangrui Song <maskray@google.com>
2147
2148 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2149
2150 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2151
2152 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2153 forms for DW_AT_associated and DW_AT_allocated attributes,
2154 which is already checked in function attr_to_dynamic_prop.
2155
2156 2020-06-30 Tom Tromey <tromey@adacore.com>
2157
2158 * dwarf2/read.c (quirk_rust_enum): Correctly call
2159 alloc_rust_variant for default-less enum.
2160
2161 2020-06-30 Tom Tromey <tromey@adacore.com>
2162
2163 PR build/26183:
2164 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2165 gdb::to_string.
2166
2167 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2168
2169 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2170 * gdbarch.h: Re-generate.
2171
2172 2020-06-28 Tom Tromey <tom@tromey.com>
2173
2174 * command.h (cmd_types): Remove.
2175 (cmd_type): Don't declare.
2176 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2177 typedef.
2178 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2179 * cli/cli-decode.c (cmd_type): Remove.
2180
2181 2020-06-27 Pedro Alves <palves@redhat.com>
2182
2183 * fork-child.c (prefork_hook): Adjust.
2184 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2185 Delete.
2186 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2187 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2188 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2189 Remove declarations.
2190 (struct inferior) <set_tty, tty>: New methods.
2191 (struct inferior) <terminal>: Rename to ...
2192 (struct inferior) <m_terminal>: ... this and make private.
2193 * main.c (captured_main_1): Adjust.
2194 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2195 (mi_cmd_inferior_tty_show): Adjust.
2196 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2197 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2198
2199 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2200
2201 * configure.ac: Add --enable-libctf: handle --disable-static
2202 properly.
2203 * acinclude.m4: sinclude ../config/enable.m4.
2204 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2205 (LIBCTF): Substitute in.
2206 (CTF_DEPS): New, likewise.
2207 (CLIBS): libctf needs symbols from libbfd: move earlier.
2208 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2209 flags.
2210 * ctfread.c: Surround in ENABLE_LIBCTF.
2211 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2212 * configure: Regenerate.
2213 * config.in: Likewise.
2214
2215 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2216
2217 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2218
2219 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2220
2221 * inferior.h (struct inferior) <terminal>: Change type to
2222 gdb::unique_xmalloc_ptr<char>.
2223 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2224 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2225 field, adjust to unique pointer.
2226 (get_inferior_io_terminal): Adjust to unique pointer.
2227
2228 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2231 registers, not just the known core set of registers.
2232
2233 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2234
2235 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2236 fflags, frm, and fcsr registers.
2237 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2238 restore groups.
2239 (riscv_tdesc_unknown_reg): New function.
2240 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2241 tdesc_use_registers.
2242 * riscv-tdep.h (struct gdbarch_tdep): Add
2243 unknown_csrs_first_regnum, unknown_csrs_count,
2244 duplicate_fflags_regnum, duplicate_frm_regnum, and
2245 duplicate_fcsr_regnum fields.
2246
2247 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2248
2249 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2250 callback, use the callback (when not null) to help number unknown
2251 registers.
2252 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2253 (tdesc_use_registers): Add extra parameter to declaration.
2254
2255 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2258 in the file.
2259 (class riscv_pending_register_alias): Likewise.
2260 (riscv_register_feature::register_info): Change 'required_p' field
2261 to 'required', and change its type. Add 'check' member function.
2262 (riscv_register_feature::register_info::check): Define new member
2263 function.
2264 (riscv_xreg_feature): Change initialisation of 'required' field.
2265 (riscv_freg_feature): Likewise.
2266 (riscv_virtual_feature): Likewise.
2267 (riscv_csr_feature): Likewise.
2268 (riscv_check_tdesc_feature): Take extra parameter, the csr
2269 tdesc_feature, rewrite the function to use the new
2270 riscv_register_feature::register_info::check function.
2271 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2272
2273 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2274
2275 * features/Makefile: Remove all references to the deleted files
2276 below.
2277 * features/riscv/32bit-csr.c: Deleted.
2278 * features/riscv/32bit-csr.xml: Deleted.
2279 * features/riscv/64bit-csr.c: Deleted.
2280 * features/riscv/64bit-csr.xml: Deleted.
2281 * features/riscv/rebuild-csr-xml.sh: Deleted.
2282
2283 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2284
2285 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2286 whitespace error for declaration of names member variable.
2287 (struct riscv_register_feature): Add new prefer_first_name member
2288 variable, and fix whitespace error in declaration of registers.
2289 (riscv_xreg_feature): Initialize prefer_first_name field.
2290 (riscv_freg_feature): Likewise.
2291 (riscv_virtual_feature): Likewise.
2292 (riscv_csr_feature): Likewise.
2293 (riscv_register_name): Expand on comments. Remove register name
2294 modifications for CSR and virtual registers.
2295
2296 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2297
2298 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2299 errors.
2300
2301 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2302
2303 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2304 riscv-opc.h.
2305 (class riscv_pending_register_alias): New class.
2306 (riscv_check_tdesc_feature): Take vector of pending aliases and
2307 populate it as appropriate.
2308 (riscv_setup_register_aliases): Delete.
2309 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2310 to riscv_check_tdesc_feature in all cases. Use the vector to
2311 create the register aliases.
2312
2313 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2314
2315 * sol2-tdep.c (sol2_static_transform_name): Remove.
2316 (sol2_init_abi): Don't register it.
2317 * gdbarch.sh (static_transform_name): Remove.
2318 * gdbarch.c, gdbarch.h: Regenerate.
2319
2320 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2321 gdbarch_static_transform_name.
2322 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2323 * stabsread.c (define_symbol) <'X'>: Remove.
2324 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2325 handling.
2326 <'V'>: Likewise.
2327 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2328 <'S'>: Remove call to gdbarch_static_transform_name.
2329
2330 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2331
2332 * procfs.c (procfs_pre_trace): New function.
2333 (procfs_target::create_inferior): Pass it to fork_inferior.
2334
2335 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2336
2337 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2338 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2339 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2340 sol2-tdep.o, sparc-sol2-tdep.o.
2341 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2342 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2343 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2344 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2345
2346 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2347
2348 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2349 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2350 Call sol2_init_abi.
2351 Remove calls to set_gdbarch_skip_solib_resolver,
2352 set_gdbarch_core_pid_to_str.
2353 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2354 (i386_sol2_static_transform_name): Remove.
2355 (i386_sol2_init_abi): Call sol2_init_abi.
2356 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2357 set_gdbarch_static_transform_name,
2358 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2359 Use sol2_sigtramp_p.
2360 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2361 (sol2_sigtramp_p): New function.
2362 (sol2_static_transform_name): New function.
2363 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2364 (sol2_init_abi): New function.
2365 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2366 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2367 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2368 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2369 (sparc_sol2_static_transform_name): Remove.
2370 (sparc32_sol2_init_abi): Call sol2_init_abi.
2371 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2372 set_gdbarch_static_transform_name,
2373 set_gdbarch_skip_solib_resolver,
2374 set_gdbarch_core_pid_to_str.
2375 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2376 (sparc_sol2_static_transform_name): Remove
2377 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2378 call sol2_sigtramp_p.
2379 (sparc64_sol2_init_abi): Call sol2_init_abi.
2380 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2381 set_gdbarch_static_transform_name,
2382 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2383
2384 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2385
2386 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2387 * exec.c (validate_exec_file): If from_tty, set both
2388 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2389 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2390 and from_tty, unconditionally ask a confirmation.
2391
2392 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * target-descriptions.c (tdesc_architecture_name): Protect against
2395 NULL pointer dereference.
2396 (maint_print_xml_tdesc_cmd): New function.
2397 (_initialize_target_descriptions): Register new 'maint print
2398 xml-tdesc' command and give it the filename completer.
2399 * NEWS: Mention new 'maint print xml-tdesc' command.
2400
2401 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2402
2403 * target-descriptions.c (class tdesc_compatible_info): New class.
2404 (struct target_desc): Change type of compatible vector.
2405 (tdesc_compatible_p): Update for change in type of
2406 target_desc::compatible.
2407 (tdesc_compatible_info_list): New function.
2408 (tdesc_compatible_info_arch_name): New function.
2409 (tdesc_add_compatible): Update for change in type of
2410 target_desc::compatible.
2411 (print_c_tdesc::visit_pre): Likewise.
2412
2413 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2414
2415 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2416 whitespace to underscore.
2417 (maint_print_c_tdesc_cmd): Use fake filename for target
2418 descriptions that came from the target.
2419 (_initialize_target_descriptions): Add filename command completion
2420 for 'maint print c-tdesc'.
2421
2422 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2423
2424 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2425 lines.
2426
2427 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2428
2429 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2430 lines.
2431 (dwarf2_find_location_expression): Likewise.
2432 (call_site_parameter_matches): Likewise.
2433 (dwarf2_compile_expr_to_ax): Likewise.
2434 (disassemble_dwarf_expression): Likewise.
2435 (loclist_describe_location): Likewise.
2436
2437 2020-06-23 Pedro Alves <palves@redhat.com>
2438
2439 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2440 progspace-and-thread.h. Include scoped-mock-context.h instead.
2441 (register_to_value_test): Use scoped_mock_context.
2442 * regcache.c: Include "scoped-mock-context.h".
2443 (cooked_read_test): Don't error out if a target is already pushed.
2444 Use scoped_mock_context. Adjust.
2445 * scoped-mock-context.h: New file.
2446
2447 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2448
2449 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2450 initializer.
2451 (ada_language::is_string_type_p): New member function.
2452 * c-lang.c (c_language_data): Delete la_is_string_type_p
2453 initializer.
2454 (cplus_language_data): Likewise.
2455 (asm_language_data): Likewise.
2456 (minimal_language_data): Likewise.
2457 * d-lang.c (d_language_data): Likewise.
2458 * f-lang.c (f_is_string_type_p): Delete function, implementation
2459 moved to f_language::is_string_type_p.
2460 (f_language_data): Delete la_is_string_type_p initializer.
2461 (f_language::is_string_type_p): New member function,
2462 implementation from f_is_string_type_p.
2463 * go-lang.c (go_is_string_type_p): Delete function, implementation
2464 moved to go_language::is_string_type_p.
2465 (go_language_data): Delete la_is_string_type_p initializer.
2466 (go_language::is_string_type_p): New member function,
2467 implementation from go_is_string_type_p.
2468 * language.c (language_defn::is_string_type_p): Define new member
2469 function.
2470 (default_is_string_type_p): Make static, add comment copied from
2471 header file.
2472 (unknown_language_data): Delete la_is_string_type_p initializer.
2473 (unknown_language::is_string_type_p): New member function.
2474 (auto_language_data): Delete la_is_string_type_p initializer.
2475 (auto_language::is_string_type_p): New member function.
2476 * language.h (language_data): Delete la_is_string_type_p field.
2477 (language_defn::is_string_type_p): Declare new function.
2478 (default_is_string_type_p): Delete desclaration, move comment to
2479 definition.
2480 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2481 moved to m2_language::is_string_type_p.
2482 (m2_language_data): Delete la_is_string_type_p initializer.
2483 (m2_language::is_string_type_p): New member function,
2484 implementation from m2_is_string_type_p.
2485 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2486 initializer.
2487 * opencl-lang.c (opencl_language_data): Likewise.
2488 * p-lang.c (pascal_is_string_type_p): Delete function,
2489 implementation moved to pascal_language::is_string_type_p.
2490 (pascal_language_data): Delete la_is_string_type_p initializer.
2491 (pascal_language::is_string_type_p): New member function,
2492 implementation from pascal_is_string_type_p.
2493 * rust-lang.c (rust_is_string_type_p): Delete function,
2494 implementation moved to rust_language::is_string_type_p.
2495 (rust_language_data): Delete la_is_string_type_p initializer.
2496 (rust_language::is_string_type_p): New member function,
2497 implementation from rust_is_string_type_p.
2498 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2499 is_string_type_p.
2500
2501 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2502
2503 * ada-lang.c (ada_language_data): Delete la_print_typedef
2504 initializer.
2505 (ada_language::print_typedef): New member function.
2506 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2507 (cplus_language_data): Likewise.
2508 (asm_language_data): Likewise.
2509 (minimal_language_data): Likewise.
2510 * d-lang.c (d_language_data): Likewise.
2511 * f-lang.c (f_language_data): Likewise.
2512 (f_language::print_typedef): New member function.
2513 * go-lang.c (go_language_data): Delete la_print_typedef
2514 initializer.
2515 * language.c (language_defn::print_typedef): Define member
2516 function.
2517 (unknown_language_data): Delete la_print_typedef initializer.
2518 (unknown_language::print_typedef): New member function.
2519 (auto_language_data): Delete la_print_typedef initializer.
2520 (auto_language::print_typedef): New member function.
2521 * language.h (language_data): Delete la_print_typedef field.
2522 (language_defn::print_typedef): Declare new member function.
2523 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2524 (default_print_typedef): Delete declaration.
2525 * m2-lang.c (m2_language_data): Delete la_print_typedef
2526 initializer.
2527 (m2_language::print_typedef): New member function.
2528 * objc-lang.c (objc_language_data): Delete la_print_typedef
2529 initializer.
2530 * opencl-lang.c (opencl_language_data): Likewise.
2531 * p-lang.c (pascal_language_data): Likewise.
2532 (pascal_language::print_typedef): New member function.
2533 * rust-lang.c (rust_print_typedef): Delete function,
2534 implementation moved to rust_language::print_typedef.
2535 (rust_language): Delete la_print_typedef initializer.
2536 (rust_language::print_typedef): New member function,
2537 implementation from rust_print_typedef.
2538 * typeprint.c (default_print_typedef): Delete.
2539
2540 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2543 (ada_language::printstr): New member function.
2544 * c-lang.c (c_language_data): Delete la_printstr initializer.
2545 (cplus_language_data): Likewise.
2546 (asm_language_data): Likewise.
2547 (minimal_language_data): Likewise.
2548 * d-lang.c (d_language_data): Likewise.
2549 * f-lang.c (f_printstr): Rename to f_language::printstr.
2550 (f_language_data): Delete la_printstr initializer.
2551 (f_language::printstr): New member function, implementation from
2552 f_printstr.
2553 * go-lang.c (go_language_data): Delete la_printstr initializer.
2554 * language.c (language_defn::printstr): Define new member
2555 function.
2556 (unk_lang_printstr): Delete.
2557 (unknown_language_data): Delete la_printstr initializer.
2558 (unknown_language::printstr): New member function.
2559 (auto_language_data): Delete la_printstr initializer.
2560 (auto_language::printstr): New member function.
2561 * language.h (language_data): Delete la_printstr field.
2562 (language_defn::printstr): Declare new member function.
2563 (LA_PRINT_STRING): Update call to printstr.
2564 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2565 (m2_language_data): Delete la_printstr initializer.
2566 (m2_language::printstr): New member function, implementation from
2567 m2_printstr.
2568 * objc-lang.c (objc_language_data): Delete la_printstr
2569 initializer.
2570 * opencl-lang.c (opencl_language_data): Likewise.
2571 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2572 (pascal_language_data): Delete la_printstr initializer.
2573 (pascal_language::printstr): New member function, implementation
2574 from pascal_printstr.
2575 * p-lang.h (pascal_printstr): Delete declaration.
2576 * rust-lang.c (rust_printstr): Update header comment.
2577 (rust_language_data): Delete la_printstr initializer.
2578 (rust_language::printstr): New member function.
2579
2580 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2581
2582 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2583 (ada_language::printchar): New member function.
2584 * c-lang.c (c_language_data): Delete la_printchar initializer.
2585 (cplus_language_data): Likewise.
2586 (asm_language_data): Likewise.
2587 (minimal_language_data): Likewise.
2588 * d-lang.c (d_language_data): Likewise.
2589 * f-lang.c (f_printchar): Rename to f_language::printchar.
2590 (f_language_data): Delete la_printchar initializer.
2591 (f_language::printchar): New member function, implementation from
2592 f_printchar.
2593 * go-lang.c (go_language_data): Delete la_printchar initializer.
2594 * language.c (unk_lang_printchar): Delete.
2595 (language_defn::printchar): Define new member function.
2596 (unknown_language_data): Delete la_printchar initializer.
2597 (unknown_language::printchar): New member function.
2598 (auto_language_data): Delete la_printchar initializer.
2599 (auto_language::printchar): New member function.
2600 * language.h (language_data): Delete la_printchar field.
2601 (language_defn::printchar): Declare new member function.
2602 (LA_PRINT_CHAR): Update call to printchar.
2603 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2604 (m2_language::printchar): New member function.
2605 * objc-lang.c (objc_language_data): Delete la_printchar
2606 initializer.
2607 * opencl-lang.c (opencl_language_data): Likewise.
2608 * p-lang.c (pascal_language_data): Delete la_printchar
2609 initializer.
2610 (pascal_language::printchar): New member function.
2611 * rust-lang.c (rust_printchar): Rename to
2612 rust_language::printchar.
2613 (rust_language_data): Delete la_printchar initializer.
2614 (rust_language::printchar): New member function, implementation
2615 from rust_printchar.
2616
2617 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2618
2619 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2620 (ada_language_data): Delete la_emitchar initializer.
2621 (ada_language::emitchar): New member function, implementation from
2622 emit_char.
2623 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2624 (cplus_language_data): Likewise.
2625 (asm_language_data): Likewise.
2626 (minimal_language_data): Likewise.
2627 * d-lang.c (d_language_data): Likewise.
2628 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2629 (f_language_data): Delete la_emitchar initializer.
2630 (f_language::emitchar): New member function, implementation from
2631 f_emit_char.
2632 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2633 * language.c (unk_lang_emit_char): Delete.
2634 (language_defn::emitchar): New member function definition.
2635 (unknown_language_data): Delete la_emitchar initializer.
2636 (unknown_language::emitchar): New member function.
2637 (auto_language_data): Delete la_emitchar initializer.
2638 (auto_language::emitchar): New member function.
2639 * language.h (language_data): Delete la_emitchar field.
2640 (language_defn::emitchar): New member field declaration.
2641 (LA_EMIT_CHAR): Update call to emitchar.
2642 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2643 (m2_language_data): Delete la_emitchar initializer.
2644 (m2_language::emitchar): New member function, implementation from
2645 m2_emit_char.
2646 * objc-lang.c (objc_language_data): Delete la_emitchar
2647 initializer.
2648 * opencl-lang.c (opencl_language_data): Likewise.
2649 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2650 (pascal_language_data): Delete la_emitchar initializer.
2651 (pascal_language::emitchar): New member function, implementation
2652 from pascal_emit_char.
2653 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2654 (rust_language_data): Delete la_emitchar initializer.
2655 (rust_language::emitchar): New member function, implementation
2656 from rust_emitchar.
2657
2658 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2659
2660 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2661 (ada_language_data): Delete la_post_parser initializer.
2662 (ada_language::post_parser): New member function.
2663 * c-lang.c (c_language_data): Delete la_post_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 * f-lang.c (f_language_data): Likewise.
2669 * go-lang.c (go_language_data): Likewise.
2670 * language.c (unknown_language_data): Likewise.
2671 (auto_language_data): Likewise.
2672 * language.h (language_data): Delete la_post_parser field.
2673 (language_defn::post_parser): New member function.
2674 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2675 * objc-lang.c (objc_language_data): Likewise.
2676 * opencl-lang.c (opencl_language_data): Likewise.
2677 * p-lang.c (pascal_language_data): Likewise.
2678 * parse.c (parse_exp_in_context): Update call to post_parser.
2679 (null_post_parser): Delete definition.
2680 * parser-defs.h (null_post_parser): Delete declaration.
2681 * rust-lang.c (rust_language_data): Delete la_post_parser
2682 initializer.
2683
2684 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2685
2686 * ada-lang.c (parse): Rename to ada_language::parser.
2687 (ada_language_data): Delete la_parser initializer.
2688 (ada_language::parser): New member function, implementation from
2689 parse.
2690 * c-lang.c (c_language_data): Delete la_parser initializer.
2691 (cplus_language_data): Likewise.
2692 (asm_language_data): Likewise.
2693 (minimal_language_data): Likewise.
2694 * d-lang.c (d_language_data): Likewise.
2695 (d_language::parser): New member function.
2696 * f-lang.c (f_language_data): Delete la_parser initializer.
2697 (f_language::parser): New member function.
2698 * go-lang.c (go_language_data): Delete la_parser initializer.
2699 (go_language::parser): New member function.
2700 * language.c (unk_lang_parser): Delete.
2701 (language_defn::parser): Define new member function.
2702 (unknown_language_data): Delete la_parser initializer.
2703 (unknown_language::parser): New member function.
2704 (auto_language_data): Delete la_parser initializer.
2705 (auto_language::parser): New member function.
2706 * language.h (language_data): Delete la_parser field.
2707 (language_defn::parser): Declare new member function.
2708 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2709 (m2_language::parser): New member function.
2710 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2711 * opencl-lang.c (opencl_language_data): Likewise.
2712 * p-lang.c (pascal_language_data): Likewise.
2713 (pascal_language::parser): New member function.
2714 * parse.c (parse_exp_in_context): Update call to parser.
2715 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2716 (rust_language::parser): New member function.
2717
2718 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2719
2720 * top.c (print_gdb_configuration): Print --with-python-libdir
2721 configuration value.
2722
2723 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2724
2725 * NEWS: Mention change to the alias command.
2726
2727 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2728
2729 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2730 (alias_command_completer)
2731 (make_alias_options_def_group): New functions.
2732 (alias_opts, alias_option_defs): New struct and array.
2733 (alias_usage_error): Update usage.
2734 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2735 Use option framework.
2736 (_initialize_cli_cmds): Update alias command help.
2737 Update aliases command help.
2738 (show_user):
2739 Add NULL for new default_args lookup_cmd argument.
2740 (valid_command_p): Rename to validate_aliased_command.
2741 Add NULL for new default_args lookup_cmd argument. Verify that the
2742 aliased_command has no default args.
2743 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2744 (lookup_cmd_1, lookup_cmd): New argument default_args.
2745 (add_alias_cmd):
2746 Add NULL for new default_args lookup_cmd argument.
2747 (print_help_for_command): Show default args under the layout
2748 alias some_alias = some_aliased_cmd some_alias_default_arg.
2749 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2750 xfree default_args in destructor.
2751 * cli/cli-script.c (process_next_line, do_define_command):
2752 Add NULL for new default_args lookup_cmd argument.
2753 * command.h: Declare new default_args argument in lookup_cmd
2754 and lookup_cmd_1.
2755 * completer.c (complete_line_internal_1):
2756 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2757 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2758 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2759 Likewise.
2760 * infcmd.c (_initialize_infcmd): Likewise.
2761 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2762 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2763 * python/py-param.c (add_setshow_generic): Likewise.
2764 * remote.c (_initialize_remote): Likewise.
2765 * top.c (execute_command): Prepend default_args if command has some.
2766 (set_verbose):
2767 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2768 * tracepoint.c (validate_actionline, encode_actions_1):
2769 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2770
2771 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2772
2773 * jit.c (jit_read_descriptor): Use bool as the return type.
2774 (jit_breakpoint_re_set_internal): Use bool as the return type.
2775 Invert the return value logic; return true if the jit breakpoint
2776 has been successfully initialized.
2777 (jit_inferior_init): Update the call to
2778 jit_breakpoint_re_set_internal.
2779
2780 2020-06-22 Pedro Alves <palves@redhat.com>
2781
2782 PR gdb/25939
2783 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2784 Use the current inferior instead. Don't return
2785 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2786 wait again.
2787 * sol-thread.c (sol_thread_target::wait): Don't reference
2788 inferior_ptid.
2789 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2790 (sol_update_thread_list_callback): Use the current inferior's pid
2791 instead of inferior_ptid.
2792
2793 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2794
2795 * procfs.c: Cleanup many comments.
2796
2797 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2798 (AFTER_WATCHFLAG): Replace by value.
2799
2800 (MAIN_PROC_NAME_FORMAT): Inline ...
2801 (create_procinfo): ... here.
2802
2803 (procfs_debug_inferior): Remove SYS_exec handling.
2804 (syscall_is_exec): Likewise.
2805 (procfs_set_exec_trap): Likewise.
2806
2807 (syscall_is_lwp_exit): Inline in callers.
2808 (syscall_is_exit): Likewise.
2809 (syscall_is_exec): Likewise.
2810 (syscall_is_lwp_create): Likewise.
2811
2812 (invalidate_cache): Remove #if 0 code.
2813
2814 (make_signal_thread_runnable): Remove.
2815 (procfs_target::resume): Remove #if 0 code.
2816
2817 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2818
2819 PR gdb/25939
2820 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2821 call ...
2822 (procfs_target::create_inferior): ... here.
2823
2824 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2825
2826 * exec.c (validate_exec_file): Ensure the build-id is up to
2827 date by calling reopen_exec_file (that checks file timestamp
2828 to decide to re-read the file).
2829
2830 2020-06-18 Pedro Alves <palves@redhat.com>
2831
2832 PR gdb/25412
2833 * gdbthread.h (delete_thread, delete_thread_silent)
2834 (find_thread_ptid): Update comments.
2835 * thread.c (current_thread_): New global.
2836 (is_current_thread): Move higher, and reimplement.
2837 (inferior_thread): Reimplement.
2838 (set_thread_exited): Use bool. Add assertions.
2839 (add_thread_silent): Simplify thread-reuse handling by always
2840 calling delete_thread.
2841 (delete_thread): Remove intro comment.
2842 (find_thread_ptid): Skip exited threads.
2843 (switch_to_thread_no_regs): Write to current_thread_.
2844 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2845 INFERIOR_PTID. Clear current_thread_.
2846
2847 2020-06-18 Pedro Alves <palves@redhat.com>
2848
2849 * aix-thread.c (pd_update): Use switch_to_thread.
2850
2851 2020-06-18 Pedro Alves <palves@redhat.com>
2852
2853 * ravenscar-thread.c (ravenscar_thread_target): Update.
2854 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2855 (ravenscar_thread_target::add_active_thread): ... this. Don't
2856 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2857 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2858
2859 2020-06-18 Pedro Alves <palves@redhat.com>
2860
2861 * nat/windows-nat.c (current_windows_thread): Remove.
2862 * nat/windows-nat.h (current_windows_thread): Remove.
2863 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2864 Adjust.
2865 (display_selectors): Adjust to fetch the current
2866 windows_thread_info based on inferior_ptid.
2867 (fake_create_process): No longer write to current_windows_thread.
2868 (windows_nat_target::get_windows_debug_event):
2869 Don't set inferior_ptid or current_windows_thread.
2870 (windows_nat_target::wait): Adjust to not rely on
2871 current_windows_thread.
2872 (do_initial_windows_stuff): Now a method of windows_nat_target.
2873 Switch to the last_ptid thread.
2874 (windows_nat_target::attach): Adjust.
2875 (windows_nat_target::detach): Use switch_to_no_thread instead of
2876 writing to inferior_ptid directly.
2877 (windows_nat_target::create_inferior): Adjust.
2878
2879 2020-06-18 Pedro Alves <palves@redhat.com>
2880
2881 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2882
2883 2020-06-18 Pedro Alves <palves@redhat.com>
2884
2885 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2886 after creating it, instead of writing to inferior_ptid. Don't
2887 write to inferior_ptid.
2888
2889 2020-06-18 Pedro Alves <palves@redhat.com>
2890
2891 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2892
2893 2020-06-18 Pedro Alves <palves@redhat.com>
2894
2895 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2896 it, instead of writing to inferior_ptid.
2897
2898 2020-06-18 Pedro Alves <palves@redhat.com>
2899
2900 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2901 to inferior_ptid.
2902
2903 2020-06-18 Pedro Alves <palves@redhat.com>
2904
2905 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2906 instead of writing to inferior_ptid directly.
2907
2908 2020-06-18 Pedro Alves <palves@redhat.com>
2909
2910 * corelow.c (core_target::close): Use switch_to_no_thread instead
2911 of writing to inferior_ptid directly.
2912 (add_to_thread_list, core_target_open): Use switch_to_thread
2913 instead of writing to inferior_ptid directly.
2914
2915 2020-06-18 Pedro Alves <palves@redhat.com>
2916
2917 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2918 inferior_ptid.
2919 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2920 inferior_ptid.
2921 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2922 inferior_ptid directly.
2923 (darwin_nat_target::init_thread_list): Switch to thread, instead
2924 of writing to inferior_ptid.
2925 (darwin_nat_target::attach): Don't write to inferior_ptid.
2926 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2927
2928 2020-06-18 Pedro Alves <palves@redhat.com>
2929
2930 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2931 thread.
2932 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2933 Instead use switch_to_thread.
2934 (gnu_nat_target::detach): Use switch_to_no_thread
2935 instead of writing to inferior_ptid directly. Used passed-in
2936 inferior instead of looking up the inferior by pid.
2937
2938 2020-06-18 Pedro Alves <palves@redhat.com>
2939
2940 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2941 inferior_ptid.
2942
2943 2020-06-18 Pedro Alves <palves@redhat.com>
2944
2945 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2946 inferior_ptid.
2947 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2948 thread.
2949 (nto_procfs_target::detach): Avoid referencing
2950 inferior_ptid. Use switch_to_no_thread instead of writing to
2951 inferior_ptid directly.
2952 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2953 instead of writing to inferior_ptid directly.
2954 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2955 to thread.
2956
2957 2020-06-18 Pedro Alves <palves@redhat.com>
2958
2959 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2960 after creating it, instead of writing to inferior_ptid.
2961 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2962 to inferior_ptid directly.
2963 (gdbsim_target::wait): Don't write to inferior_ptid.
2964
2965 2020-06-18 Pedro Alves <palves@redhat.com>
2966
2967 * remote.c (remote_target::remote_notice_new_inferior): Use
2968 switch_to_thread instead of writing to inferior_ptid directly.
2969 (remote_target::add_current_inferior_and_thread): Use
2970 switch_to_no_thread instead of writing to inferior_ptid directly.
2971 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2972 and switch_to_thread instead of using set_current_inferior or
2973 writing to inferior_ptid directly.
2974
2975 2020-06-18 Pedro Alves <palves@redhat.com>
2976
2977 * tracectf.c (ctf_target_open): Switch to added thread instead of
2978 writing to inferior_ptid directly.
2979 (ctf_target::close): Use switch_to_no_thread instead of writing to
2980 inferior_ptid directly.
2981
2982 2020-06-18 Pedro Alves <palves@redhat.com>
2983
2984 * tracefile-tfile.c (tfile_target_open): Don't write to
2985 inferior_ptid directly, instead switch to added thread.
2986 (tfile_target::close): Use switch_to_no_thread instead of writing
2987 to inferior_ptid directly.
2988
2989 2020-06-18 Pedro Alves <palves@redhat.com>
2990
2991 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2992 (procfs_target::detach): Use switch_to_no_thread
2993 instead of writing to inferior_ptid directly.
2994 (do_attach): Change return type to void. Switch to the added
2995 thread.
2996 (procfs_target::create_inferior): Switch to the added thread.
2997 (procfs_do_thread_registers): Don't write to inferior_ptid.
2998
2999 2020-06-18 Pedro Alves <palves@redhat.com>
3000
3001 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3002 of writing to inferior_ptid.
3003 (scoped_restore_exited_inferior): Delete.
3004 (handle_vfork_child_exec_or_exit): Simplify using
3005 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3006 instead of writing to inferior_ptid.
3007 (THREAD_STOPPED_BY): Delete.
3008 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3009 (thread_stopped_by_hw_breakpoint): Delete.
3010 (save_waitstatus): Use
3011 scoped_restore_current_thread+switch_to_thread, and call
3012 target_stopped_by_watchpoint instead of
3013 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3014 instead of thread_stopped_by_sw_breakpoint, and
3015 target_stopped_by_hw_breakpoint instead of
3016 thread_stopped_by_hw_breakpoint.
3017 (handle_inferior_event)
3018 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3019 inferior_ptid directly, nor
3020 set_current_inferior/set_current_program_space. Use
3021 switch_to_thread / switch_to_inferior_no_thread instead.
3022
3023 2020-06-18 Pedro Alves <palves@redhat.com>
3024
3025 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3026 instead of writing to inferior_ptid.
3027
3028 2020-06-18 Pedro Alves <palves@redhat.com>
3029
3030 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3031 added thread.
3032 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3033 to the added thread.
3034 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3035 instead of writing to inferior_ptid.
3036
3037 2020-06-18 Pedro Alves <palves@redhat.com>
3038
3039 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3040 (register_to_value_test): Mock a program_space too. Heap-allocate
3041 the address space. Don't write to inferior_ptid. Use
3042 switch_to_thread instead.
3043
3044 2020-06-18 Pedro Alves <palves@redhat.com>
3045
3046 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3047 Delete.
3048 (find_signalled_thread()): New, factored out from
3049 linux_make_corefile_notes and adjusted to handle exited threads.
3050 (linux_make_corefile_notes): Adjust to use the new
3051 find_signalled_thread.
3052
3053 2020-06-18 Pedro Alves <palves@redhat.com>
3054
3055 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3056 of saving/restoring inferior_ptid.
3057
3058 2020-06-17 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3061 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3062 declare.
3063 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3064
3065 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3066
3067 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3068 of partial symtabs.
3069
3070 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * regformats/reg-arm.dat: Remove.
3073 * regformats/reg-bfin.dat: Remove.
3074 * regformats/reg-cris.dat: Remove.
3075 * regformats/reg-crisv32.dat: Remove.
3076 * regformats/reg-m32r.dat: Remove.
3077 * regformats/reg-tilegx.dat: Remove.
3078 * regformats/reg-tilegx32.dat: Remove.
3079
3080 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3081
3082 * features/Makefile (WHICH): Remove arm files.
3083 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3084 * regformats/arm/arm-with-neon.dat: Remove.
3085 * regformats/arm/arm-with-vfpv2.dat: Remove.
3086 * regformats/arm/arm-with-vfpv3.dat: Remove.
3087
3088 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3089
3090 * features/Makefile (XMLTOC): Remove rx.xml.
3091
3092 2020-06-17 Pedro Alves <palves@redhat.com>
3093
3094 * gdbthread.h (thread_control_state) <trap_expected> Update
3095 comments.
3096
3097 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3098
3099 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3100 ada_language::lookup_symbol_nonlocal.
3101 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3102 (ada_language::lookup_symbol_nonlocal): New member function,
3103 implementation from ada_lookup_symbol_nonlocal.
3104 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3105 initializer.
3106 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3107 initializer.
3108 (cplus_language::lookup_symbol_nonlocal): New member function.
3109 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3110 (minimal_language_data) Likewise.
3111 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3112 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3113 initializer.
3114 (d_language::lookup_symbol_nonlocal): New member function.
3115 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3116 initializer.
3117 (f_language::lookup_symbol_nonlocal): New member function.
3118 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3119 initializer.
3120 * language.c (unknown_language_data): Likewise.
3121 (auto_language_data): Likewise.
3122 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3123 field.
3124 (language_defn::lookup_symbol_nonlocal): New member function.
3125 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3126 initializer.
3127 * objc-lang.c (objc_language_data): Likewise.
3128 * opencl-lang.c (opencl_language_data): Likewise.
3129 * p-lang.c (pascal_language_data): Likewise.
3130 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3131 rust_language::lookup_symbol_nonlocal.
3132 (rust_language_data): Delete la_lookup_symbol_nonlocal
3133 initializer.
3134 (rust_language::lookup_symbol_nonlocal): New member function,
3135 implementation from rust_lookup_symbol_nonlocal.
3136 * symtab.c (lookup_symbol_aux): Update call to
3137 lookup_symbol_nonlocal.
3138 (basic_lookup_symbol_nonlocal): Rename to...
3139 (language_defn::lookup_symbol_nonlocal): ...this, and update
3140 header comment. Remove language_defn parameter, and replace with
3141 uses of `this'.
3142 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3143
3144 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3147 initializer.
3148 (ada_language::value_print_inner): New member function.
3149 * c-lang.c (c_language_data): Delete la_value_print_inner
3150 initializer.
3151 (cplus_language_data): Likewise.
3152 (asm_language_data): Likewise.
3153 (minimal_language_data): Likewise.
3154 * d-lang.c (d_language_data): Likewise.
3155 (d_language::value_print_inner): New member function.
3156 * f-lang.c (f_language_data): Delete la_value_print_inner
3157 initializer.
3158 (f_language::value_print_inner): New member function.
3159 * f-lang.h (f_value_print_innner): Rename to...
3160 (f_value_print_inner): ...this (note spelling of 'inner').
3161 * f-valprint.c (f_value_print_innner): Rename to...
3162 (f_value_print_inner): ...this (note spelling of 'inner').
3163 * go-lang.c (go_language_data): Delete la_value_print_inner
3164 initializer.
3165 (go_language::value_print_inner): New member function.
3166 * language.c (language_defn::value_print_inner): Define new member
3167 function.
3168 (unk_lang_value_print_inner): Delete.
3169 (unknown_language_data): Delete la_value_print_inner initializer.
3170 (unknown_language::value_print_inner): New member function.
3171 (auto_language_data): Delete la_value_print_inner initializer.
3172 (auto_language::value_print_inner): New member function.
3173 * language.h (language_data): Delete la_value_print_inner field.
3174 (language_defn::value_print_inner): Delcare new member function.
3175 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3176 initializer.
3177 (m2_language::value_print_inner): New member function.
3178 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3179 initializer.
3180 * opencl-lang.c (opencl_language_data): Likewise.
3181 * p-lang.c (pascal_language_data): Likewise.
3182 (pascal_language::value_print_inner): New member function.
3183 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3184 initializer.
3185 (rust_language::value_print_inner): New member function.
3186 * valprint.c (do_val_print): Update call to value_print_inner.
3187
3188 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3189
3190 * ada-lang.c (ada_language_data): Delete la_value_print
3191 initializer.
3192 (ada_language::value_print): New member function.
3193 * c-lang.c (c_language_data): Delete la_value_print initializer.
3194 (cplus_language_data): Likewise.
3195 (asm_language_data): Likewise.
3196 (minimal_language_data): Likewise.
3197 * d-lang.c (d_language_data): Likewise.
3198 * f-lang.c (f_language_data): Likewise.
3199 * go-lang.c (go_language_data): Likewise.
3200 * language.c (unk_lang_value_print): Delete.
3201 (language_defn::value_print): Define new member function.
3202 (unknown_language_data): Delete la_value_print initializer.
3203 (unknown_language::value_print): New member function.
3204 (auto_language_data): Delete la_value_print initializer.
3205 (auto_language::value_print): New member function.
3206 * language.h (language_data): Delete la_value_print field.
3207 (language_defn::value_print): Declare new member function.
3208 (LA_VALUE_PRINT): Update call to value_print.
3209 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3210 * objc-lang.c (objc_language_data): Likewise.
3211 * opencl-lang.c (opencl_language_data): Likewise.
3212 * p-lang.c (pascal_language_data): Likewise.
3213 (pascal_language::value_print): New member function.
3214 * rust-lang.c (rust_language_data): Delete la_value_print
3215 initializer.
3216
3217 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3218
3219 * ada-lang.c (ada_watch_location_expression): Rename to
3220 ada_language::watch_location_expression.
3221 (ada_language_data): Delete la_watch_location_expression
3222 initializer.
3223 (ada_language::watch_location_expression): New member function,
3224 implementation from ada_watch_location_expression.
3225 * breakpoint.c (watch_command_1): Update call to
3226 watch_location_expression.
3227 * c-lang.c (c_watch_location_expression): Rename to
3228 language_defn::watch_location_expression.
3229 (c_language_data): Delete la_watch_location_expression
3230 initializer.
3231 (cplus_language_data): Likewise.
3232 (asm_language_data): Likewise.
3233 (minimal_language_data): Likewise.
3234 * c-lang.h (c_watch_location_expression): Delete declaration.
3235 * d-lang.c (d_language_data): Delete la_watch_location_expression
3236 initializer.
3237 * f-lang.c (f_language_data): Likewise.
3238 * go-lang.c (go_language_data): Likewise.
3239 * language.c (language_defn::watch_location_expression): Member
3240 function implementation from c_watch_location_expression.
3241 (unknown_language_data): Delete la_watch_location_expression
3242 initializer.
3243 (auto_language_data): Likewise.
3244 * language.h (language_data): Delete la_watch_location_expression
3245 field.
3246 (language_defn::watch_location_expression): Declare new member
3247 function.
3248 * m2-lang.c (m2_language_data): Delete
3249 la_watch_location_expression initializer.
3250 * objc-lang.c (objc_language_data): Likewise.
3251 * opencl-lang.c (opencl_language_data): Likewise.
3252 * p-lang.c (pascal_language_data): Likewise.
3253 * rust-lang.c (rust_watch_location_expression): Rename to
3254 rust_language::watch_location_expression.
3255 (rust_language_data): Delete la_watch_location_expression
3256 initializer.
3257 (rust_language::watch_location_expression): New member function,
3258 implementation from rust_watch_location_expression.
3259
3260 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3261
3262 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3263 ada_language::collect_symbol_completion_matches.
3264 (ada_language_data): Delete la_collect_symbol_completion_matches
3265 initializer.
3266 (ada_language::collect_symbol_completion_matches): New member
3267 function, implementation from
3268 ada_collect_symbol_completion_matches.
3269 * c-lang.c (c_language_data): Delete
3270 la_collect_symbol_completion_matches initializer.
3271 (cplus_language_data): Likewise.
3272 (asm_language_data): Likewise.
3273 (minimal_language_data): Likewise.
3274 * d-lang.c (d_language_data): Likewise.
3275 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3276 f_language::collect_symbol_completion_matches.
3277 (f_language_data): Delete la_collect_symbol_completion_matches
3278 initializer.
3279 (f_language::collect_symbol_completion_matches) New member
3280 function, implementation from f_collect_symbol_completion_matches.
3281 * go-lang.c (go_language_data): Delete
3282 la_collect_symbol_completion_matches initializer.
3283 * language.c (unknown_language_data): Likewise.
3284 (auto_language_data): Likewise.
3285 * language.h (language_data): Delete
3286 la_collect_symbol_completion_matches field.
3287 (language_defn::collect_symbol_completion_matches): New member
3288 function.
3289 * m2-lang.c (m2_language_data): Delete
3290 la_collect_symbol_completion_matches initializer.
3291 * objc-lang.c (objc_language_data): Likewise.
3292 * opencl-lang.c (opencl_language_data): Likewise.
3293 * p-lang.c (pascal_language_data): Likewise.
3294 * rust-lang.c (rust_language_data): Likewise.
3295 * symtab.c (default_collect_symbol_completion_matches): Delete.
3296 (collect_symbol_completion_matches): Update call to
3297 collect_symbol_completion_matches.
3298 (collect_symbol_completion_matches_type): Likewise.
3299 * symtab.h (default_collect_symbol_completion_matches): Delete
3300 declaration.
3301
3302 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3303
3304 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3305 (ada_language_data): Delete la_word_break_characters initializer.
3306 (ada_language::word_break_characters): New member function.
3307 * c-lang.c (c_language_data): Delete la_word_break_characters
3308 initializer.
3309 (cplus_language_data): Likewise.
3310 (asm_language_data): Likewise.
3311 (minimal_language_data): Likewise.
3312 * completer.c: Update global comment.
3313 (advance_to_expression_complete_word_point): Update call to
3314 word_break_characters.
3315 (complete_files_symbols): Likewise.
3316 (complete_line_internal_1): Likewise.
3317 (default_completer_handle_brkchars): Likewise.
3318 (skip_quoted_chars): Likewise.
3319 * d-lang.c (d_language_data): Delete la_word_break_characters
3320 initializer.
3321 * f-lang.c (f_word_break_characters): Delete.
3322 (f_language_data): Delete la_word_break_characters initializer.
3323 (f_language::word_break_characters): New member function.
3324 * go-lang.c (go_language_data): Delete la_word_break_characters
3325 initializer.
3326 * language.c (unknown_language_data): Likewise.
3327 (auto_language_data): Likewise.
3328 * language.h (default_word_break_characters): Move declaration to
3329 earlier in the file.
3330 (language_data): Delete la_word_break_characters field.
3331 (language_defn::word_break_characters): New member function.
3332 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3333 initializer.
3334 * objc-lang.c (objc_language_data): Likewise.
3335 * opencl-lang.c (opencl_language_data): Likewise.
3336 * p-lang.c (pascal_language_data): Likewise.
3337 * rust-lang.c (rust_language_data): Likewise.
3338
3339 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3340
3341 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3342 (ada_language_data): Delete la_get_symbol_name_matcher
3343 initializer.
3344 (language_defn::get_symbol_name_matcher_inner): New member
3345 function.
3346 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3347 initializer.
3348 (cplus_language_data): Likewise.
3349 (cplus_language::get_symbol_name_matcher_inner): New member
3350 function.
3351 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3352 (minimal_language_data): Likewise.
3353 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3354 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3355 initializer.
3356 * dictionary.c (iter_match_first_hashed): Update call to
3357 get_symbol_name_matcher.
3358 (iter_match_next_hashed): Likewise.
3359 (iter_match_next_linear): Likewise.
3360 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3361 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3362 initializer.
3363 (f_language::get_symbol_name_matcher_inner): New member function.
3364 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3365 initializer.
3366 * language.c (default_symbol_name_matcher): Update header comment,
3367 make static.
3368 (language_defn::get_symbol_name_matcher): New definition.
3369 (language_defn::get_symbol_name_matcher_inner): Likewise.
3370 (get_symbol_name_matcher): Delete.
3371 (unknown_language_data): Delete la_get_symbol_name_matcher
3372 initializer.
3373 (auto_language_data): Likewise.
3374 * language.h (language_data): Delete la_get_symbol_name_matcher
3375 field.
3376 (language_defn::get_symbol_name_matcher): New member function.
3377 (language_defn::get_symbol_name_matcher_inner): Likewise.
3378 (default_symbol_name_matcher): Delete declaration.
3379 * linespec.c (find_methods): Update call to
3380 get_symbol_name_matcher.
3381 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3382 initializer.
3383 * minsyms.c (lookup_minimal_symbol): Update call to
3384 get_symbol_name_matcher.
3385 (iterate_over_minimal_symbols): Likewise.
3386 * objc-lang.c (objc_language_data): Delete
3387 la_get_symbol_name_matcher initializer.
3388 * opencl-lang.c (opencl_language_data): Likewise.
3389 * p-lang.c (pascal_language_data): Likewise.
3390 * psymtab.c (psymbol_name_matches): Update call to
3391 get_symbol_name_matcher.
3392 * rust-lang.c (rust_language_data): Delete
3393 la_get_symbol_name_matcher initializer.
3394 * symtab.c (symbol_matches_search_name): Update call to
3395 get_symbol_name_matcher.
3396 (compare_symbol_name): Likewise.
3397
3398 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3399
3400 * ada-lang.c (ada_language_data): Delete la_compute_program
3401 initializer.
3402 * c-lang.c (c_language_data): Likewise.
3403 (c_language::compute_program): New member function.
3404 (cplus_language_data): Delete la_compute_program initializer.
3405 (cplus_language::compute_program): New member function.
3406 (asm_language_data): Delete la_compute_program initializer.
3407 (minimal_language_data): Likewise.
3408 * c-lang.h (c_compute_program): Update comment.
3409 (cplus_compute_program): Likewise.
3410 * compile/compile-c-support.c (c_compute_program): Likewise.
3411 (cplus_compute_program): Likewise.
3412 * compile/compile.c (compile_to_object): Update call to
3413 la_compute_program.
3414 * d-lang.c (d_language_data): Delete la_compute_program
3415 initializer.
3416 * f-lang.c (f_language_data): Likewise.
3417 * go-lang.c (go_language_data): Likewise.
3418 * language.c (unknown_language_data): Likewise.
3419 (auto_language_data): Likewise.
3420 * language.h (language_data): Delete la_compute_program field.
3421 (language_defn::compute_program): New member function.
3422 * m2-lang.c (m2_language_data): Delete la_compute_program
3423 initializer.
3424 * objc-lang.c (objc_language_data): Likewise.
3425 * opencl-lang.c (opencl_language_data): Likewise.
3426 * p-lang.c (pascal_language_data): Likewise.
3427 * rust-lang.c (rust_language_data): Likewise.
3428
3429 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * ada-lang.c (ada_language_data) Delete
3432 la_class_name_from_physname initializer.
3433 * c-lang.c (c_language_data): Likewise.
3434 (cplus_language_data): Likewise.
3435 (cplus_language::class_name_from_physname): New member function.
3436 (asm_language_data): Delete la_class_name_from_physname
3437 initializer.
3438 (minimal_language_data): Likewise.
3439 * d-lang.c (d_language_data): Likewise.
3440 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3441 method on language_defn class.
3442 (guess_full_die_structure_name): Likewise.
3443 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3444 initializer.
3445 * go-lang.c (go_language_data): Likewise.
3446 * language.c (language_class_name_from_physname): Delete.
3447 (unk_lang_class_name): Delete.
3448 (unknown_language_data): Delete la_class_name_from_physname
3449 initializer.
3450 (auto_language_data): Likewise.
3451 * language.h (language_data): Delete la_class_name_from_physname
3452 field.
3453 (language_defn::class_name_from_physname): New function.
3454 (language_class_name_from_physname): Delete declaration.
3455 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3456 initializer.
3457 * objc-lang.c (objc_language_data): Likewise.
3458 * opencl-lang.c (opencl_language_data): Likewise.
3459 * p-lang.c (pascal_language_data): Likewise.
3460 * rust-lang.c (rust_language_data): Likewise.
3461
3462 2020-06-16 Tom Tromey <tom@tromey.com>
3463
3464 * tui/tui-data.h (STATUS_NAME): New macro.
3465 * tui/tui-layout.c (tui_remove_some_windows)
3466 (initialize_known_windows, tui_register_window)
3467 (tui_layout_split::remove_windows, initialize_layouts)
3468 (tui_new_layout_command): Don't use hard-coded window names.
3469
3470 2020-06-16 Tom Tromey <tom@tromey.com>
3471
3472 PR tui/25348:
3473 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3474 tui_initialize_readline. Only run once. Call rl_initialize.
3475 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3476 tui_initialize_readline.
3477 * tui/tui-io.c (tui_setup_io): Call
3478 tui_ensure_readline_initialized.
3479 * tui/tui-interp.c (tui_interp::init): Update.
3480
3481 2020-06-16 Tom Tromey <tom@tromey.com>
3482
3483 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3484 Also preserve the status window.
3485
3486 2020-06-16 Tom Tromey <tom@tromey.com>
3487
3488 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3489 where m_window==nullptr.
3490
3491 2020-06-15 Tom Tromey <tromey@adacore.com>
3492
3493 * windows-nat.c (windows_nat::handle_output_debug_string):
3494 Update.
3495 (windows_nat::handle_ms_vc_exception): Update.
3496 * target.h (target_read_string): Change API.
3497 * target.c (target_read_string): Change API.
3498 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3499 Update.
3500 * solib-frv.c (frv_current_sos): Update.
3501 * solib-dsbt.c (dsbt_current_sos): Update.
3502 * solib-darwin.c (darwin_current_sos): Update.
3503 * linux-thread-db.c (inferior_has_bug): Update.
3504 * expprint.c (print_subexp_standard): Update.
3505 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3506 (ada_exception_message_1): Update.
3507
3508 2020-06-15 Tom Tromey <tromey@adacore.com>
3509
3510 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3511
3512 2020-06-15 Tom Tromey <tromey@adacore.com>
3513
3514 * valprint.c (read_string): Update comment.
3515 * target.c (MIN): Remove.
3516 (target_read_string): Rewrite.
3517
3518 2020-06-15 Tom Tromey <tromey@adacore.com>
3519
3520 * corefile.c (read_memory_string): Remove.
3521 * ada-valprint.c (ada_value_print_ptr): Update.
3522 * ada-lang.h (ada_tag_name): Change return type.
3523 * ada-lang.c (type_from_tag): Update.
3524 (ada_tag_name_from_tsd): Change return type. Use
3525 target_read_string.
3526 (ada_tag_name): Likewise.
3527 * gdbcore.h (read_memory_string): Don't declare.
3528
3529 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3530
3531 * symtab.c (rbreak_command): Ignore Windows drive colon.
3532
3533 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3534
3535 * NEWS: Mention removed GDBserver host support.
3536
3537 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3538
3539 * features/riscv/rebuild-csr-xml.sh: Updated.
3540
3541 2020-06-11 Tom Tromey <tom@tromey.com>
3542
3543 PR gdb/18318:
3544 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3545
3546 2020-06-09 Jonny Grant <jg@jguk.org>
3547 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3548
3549 * main.c (captured_main_1): Don't print new line after help.
3550 (print_gdb_help): add mailing list and IRC channel information
3551 to --help. Add new lines between items in the footer. Remove
3552 quotes around bug url.
3553
3554 2020-06-11 Keith Seitz <keiths@redhat.com>
3555
3556 PR gdb/21356
3557 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3558 Resolve typedefs for type length calculations.
3559
3560 2020-06-10 Tom de Vries <tdevries@suse.de>
3561
3562 PR ada/24713
3563 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3564 (write_psymbols): Enable .gdb_index for ada.
3565 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3566 ada.
3567
3568 2020-06-10 Tom de Vries <tdevries@suse.de>
3569
3570 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3571 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3572 namei" instead of "const char *name" argument.
3573 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3574 dw2_symtab_iter_init.
3575
3576 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3577
3578 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3579 to use type::field and field::type instead.
3580
3581 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3582
3583 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3584 to use field::type instead.
3585
3586 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * gdbtypes.h (struct field) <type, set_type>: New methods.
3589 Rename `type` field to...
3590 <m_type>: ... this. Change references throughout to use type or
3591 set_type methods.
3592 (FIELD_TYPE): Use field::type. Change call sites that modify
3593 the field's type to use field::set_type instead.
3594
3595 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3596
3597 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3598 to use type::index_type instead.
3599
3600 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3601
3602 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3603 methods.
3604 (TYPE_INDEX_TYPE): Use type::index_type.
3605 * gdbtypes.c (create_array_type_with_stride): Likewise.
3606
3607 2020-06-07 Tom Tromey <tom@tromey.com>
3608
3609 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3610 parameter.
3611 (generic_value_print): Update.
3612
3613 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 Revert commit 982a38f60b0.
3616 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3617
3618 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3619
3620 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3621 avoid use after free.
3622
3623 2020-06-05 Tom de Vries <tdevries@suse.de>
3624
3625 * NEWS: Fix typos.
3626
3627 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3628
3629 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3630 the per_bfd object.
3631 (dwarf2_read_debug_names): Likewise.
3632 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3633 object when re-using a per_bfd object with an index.
3634
3635 2020-06-03 Tom de Vries <tdevries@suse.de>
3636
3637 PR symtab/26046
3638 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3639 children for C++.
3640 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3641 DW_TAG_subprogram.
3642
3643 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * ada-lang.c (ada_language_data): Delete skip_trampoline
3646 initializer.
3647 * c-lang.c (c_language_data): Likewise.
3648 (cplus_language_data): Likewise.
3649 (cplus_language::skip_trampoline): New member function.
3650 (asm_language_data): Delete skip_trampoline initializer.
3651 (minimal_language_data): Likewise.
3652 * d-lang.c (d_language_data): Likewise.
3653 * f-lang.c (f_language_data): Likewise.
3654 * go-lang.c (go_language_data): Likewise.
3655 * language.c (unk_lang_trampoline): Delete function.
3656 (skip_language_trampoline): Update.
3657 (unknown_language_data): Delete skip_trampoline initializer.
3658 (auto_language_data): Likewise.
3659 * language.h (language_data): Delete skip_trampoline field.
3660 (language_defn::skip_trampoline): New function.
3661 * m2-lang.c (m2_language_data): Delete skip_trampoline
3662 initializer.
3663 * objc-lang.c (objc_skip_trampoline): Delete function, move
3664 implementation to objc_language::skip_trampoline.
3665 (objc_language_data): Delete skip_trampoline initializer.
3666 (objc_language::skip_trampoline): New member function with
3667 implementation from objc_skip_trampoline.
3668 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3669 initializer.
3670 * p-lang.c (pascal_language_data): Likewise.
3671 * rust-lang.c (rust_language_data): Likewise.
3672
3673 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3674
3675 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3676 (ada_language::demangle): New member function.
3677 * c-lang.c (c_language_data): Delete la_demangle initializer.
3678 (cplus_language_data): Delete la_demangle initializer.
3679 (cplus_language::demangle): New member function.
3680 (asm_language_data): Delete la_demangle initializer.
3681 (minimal_language_data): Delete la_demangle initializer.
3682 * d-lang.c (d_language_data): Delete la_demangle initializer.
3683 (d_language::demangle): New member function.
3684 * f-lang.c (f_language_data): Delete la_demangle initializer.
3685 (f_language::demangle): New member function.
3686 * go-lang.c (go_language_data): Delete la_demangle initializer.
3687 (go_language::demangle): New member function.
3688 * language.c (language_demangle): Update.
3689 (unk_lang_demangle): Delete.
3690 (unknown_language_data): Delete la_demangle initializer.
3691 (unknown_language::demangle): New member function.
3692 (auto_language_data): Delete la_demangle initializer.
3693 (auto_language::demangle): New member function.
3694 * language.h (language_data): Delete la_demangle field.
3695 (language_defn::demangle): New function.
3696 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3697 * objc-lang.c (objc_language_data): Delete la_demangle
3698 initializer.
3699 (objc_language::demangle): New member function.
3700 * opencl-lang.c (opencl_language_data): Delete la_demangle
3701 initializer.
3702 * p-lang.c (pascal_language_data): Likewise.
3703 * rust-lang.c (rust_language_data): Likewise.
3704 (rust_language::demangle): New member function.
3705
3706 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3707
3708 * ada-lang.c (ada_language_data): Delete la_print_type
3709 initializer.
3710 (ada_language::print_type): New member function.
3711 * c-lang.c (c_language_data): Delete la_print_type initializer.
3712 (c_language::print_type): New member function.
3713 (cplus_language_data): Delete la_print_type initializer.
3714 (cplus_language::print_type): New member function.
3715 (asm_language_data): Delete la_print_type initializer.
3716 (asm_language::print_type): New member function.
3717 (minimal_language_data): Delete la_print_type initializer.
3718 (minimal_language::print_type): New member function.
3719 * d-lang.c (d_language_data): Delete la_print_type initializer.
3720 (d_language::print_type): New member function.
3721 * f-lang.c (f_language_data): Delete la_print_type initializer.
3722 (f_language::print_type): New member function.
3723 * go-lang.c (go_language_data): Delete la_print_type initializer.
3724 (go_language::print_type): New member function.
3725 * language.c (unk_lang_print_type): Delete.
3726 (unknown_language_data): Delete la_print_type initializer.
3727 (unknown_language::print_type): New member function.
3728 (auto_language_data): Delete la_print_type initializer.
3729 (auto_language::print_type): New member function.
3730 * language.h (language_data): Delete la_print_type field.
3731 (language_defn::print_type): New function.
3732 (LA_PRINT_TYPE): Update.
3733 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3734 (m2_language::print_type): New member function.
3735 * objc-lang.c (objc_language_data): Delete la_print_type
3736 initializer.
3737 (objc_language::print_type): New member function.
3738 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3739 to opencl_language::print_type.
3740 (opencl_language_data): Delete la_print_type initializer.
3741 (opencl_language::print_type): New member function, implementation
3742 from opencl_print_type.
3743 * p-lang.c (pascal_language_data): Delete la_print_type
3744 initializer.
3745 (pascal_language::print_type): New member function.
3746 * rust-lang.c (rust_print_type): Delete, implementation moved to
3747 rust_language::print_type.
3748 (rust_language_data): Delete la_print_type initializer.
3749 (rust_language::print_type): New member function, implementation
3750 from rust_print_type.
3751
3752 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3753
3754 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3755 implementation moves to...
3756 (ada_language::sniff_from_mangled_name): ...here. Update return
3757 type.
3758 (ada_language_data): Delete la_sniff_from_mangled_name
3759 initializer.
3760 * c-lang.c (c_language_data): Likewise.
3761 (cplus_language_data): Likewise.
3762 (cplus_language::sniff_from_mangled_name): New member function,
3763 implementation taken from gdb_sniff_from_mangled_name.
3764 (asm_language_data): Delete la_sniff_from_mangled_name
3765 initializer.
3766 (minimal_language_data): Likewise.
3767 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3768 implementation moves to cplus_language::sniff_from_mangled_name.
3769 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3770 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3771 moves to...
3772 (d_language::sniff_from_mangled_name): ...here.
3773 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3774 * f-lang.c (f_language_data): Likewise.
3775 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3776 moves to...
3777 (go_language::sniff_from_mangled_name): ...here.
3778 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3779 * language.c (language_sniff_from_mangled_name): Delete.
3780 (unknown_language_data): Delete la_sniff_from_mangled_name
3781 initializer.
3782 (auto_language_data): Likewise.
3783 * language.h (language_data): Delete la_sniff_from_mangled_name
3784 field.
3785 (language_defn::sniff_from_mangled_name): New function.
3786 (language_sniff_from_mangled_name): Delete declaration.
3787 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3788 field.
3789 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3790 implementation moves to...
3791 (objc_language::sniff_from_mangled_name): ...here.
3792 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3793 * opencl-lang.c (opencl_language_data): Likewise.
3794 * p-lang.c (pascal_language_data): Likewise.
3795 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3796 implementation moves to...
3797 (rust_language::sniff_from_mangled_name): ...here.
3798 (rust_language_data): Delete la_sniff_from_mangled_name
3799 initializer.
3800 * symtab.c (symbol_find_demangled_name): Call
3801 sniff_from_mangled_name member function.
3802
3803 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3804
3805 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3806 initializer.
3807 * c-lang.c (c_language_data): Likewise.
3808 (cplus_language_data): Likewise.
3809 (cplus_language::search_name_hash): New member function.
3810 (asm_language_data): Delete la_search_name_hash initializer.
3811 (minimal_language_data): Likewise.
3812 * d-lang.c (d_language_data): Likewise.
3813 * dictionary.c (default_search_name_hash): Rename to...
3814 (language_defn::search_name_hash): ...this.
3815 * f-lang.c (f_language_data): Likewise.
3816 (f_language::search_name_hash): New member function.
3817 * go-lang.c (go_language_data): Delete la_search_name_hash
3818 initializer.
3819 * language.c (unknown_language_data): Likewise.
3820 (auto_language_data): Likewise.
3821 * language.h (struct language_data): Delete la_search_name_hash
3822 field.
3823 (language_defn::search_name_hash): Declare new member function.
3824 (default_search_name_hash): Delete declaration.
3825 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3826 initializer.
3827 * objc-lang.c (objc_language_data): Likewise.
3828 * opencl-lang.c (opencl_language_data): Likewise.
3829 * p-lang.c (pascal_language_data): Likewise.
3830 * rust-lang.c (rust_language_data): Likewise.
3831 * symtab.c (search_name_hash): Update call.
3832
3833 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3834
3835 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3836 initializer.
3837 * c-lang.c (class compile_instance): Declare.
3838 (c_language_data): Delete la_get_compile_instance initializer.
3839 (c_language::get_compile_instance): New member function.
3840 (cplus_language_data): Delete la_get_compile_instance initializer.
3841 (cplus_language::get_compile_instance): New member function.
3842 (asm_language_data): Delete la_get_compile_instance initializer.
3843 (minimal_language_data): Likewise.
3844 * c-lang.h (c_get_compile_context): Update comment.
3845 (cplus_get_compile_context): Update comment.
3846 * compile/compile.c (compile_to_object): Update calls, don't rely
3847 on function pointer being NULL.
3848 * d-lang.c (d_language_data): Delete la_get_compile_instance
3849 initializer.
3850 * f-lang.c (f_language_data): Likewise.
3851 * go-lang.c (go_language_data): Likewise.
3852 * language.c (unknown_language_data): Likewise.
3853 (auto_language_data): Likewise.
3854 * language.h (language_data): Delete la_get_compile_instance field.
3855 (language_defn::get_compile_instance): New member function.
3856 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
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_add_all_symbols): Update comment.
3866 (ada_iterate_over_symbols): Delete, move implementation to...
3867 (ada_language::iterate_over_symbols): ...here, a new member
3868 function, rewrite to use range based for loop.
3869 (ada_language_data): Delete la_iterate_over_symbols initializer.
3870 * c-lang.c (c_language_data): Likewise.
3871 (cplus_language_data): Likewise.
3872 (asm_language_data): Likewise.
3873 (minimal_language_data): Likewise.
3874 * d-lang.c (d_language_data): Likewise.
3875 * f-lang.c (f_language_data): Likewise.
3876 * go-lang.c (go_language_data): Likewise.
3877 * language.c (unknown_language_data): Likewise.
3878 (auto_language_data): Likewise.
3879 * language.h (language_data): Delete la_iterate_over_symbols field.
3880 (language_defn::iterate_over_symbols): New member function.
3881 (LA_ITERATE_OVER_SYMBOLS): Update.
3882 * linespec.c (iterate_over_all_matching_symtabs): Update.
3883 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3884 initializer.
3885 * objc-lang.c (objc_language_data): Likewise.
3886 * opencl-lang.c (opencl_language_data): Likewise.
3887 * p-lang.c (pascal_language_data): Likewise.
3888 * rust-lang.c (rust_language_data): Likewise.
3889
3890 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3891
3892 * ada-lang.c (ada_language_data): Delete
3893 la_lookup_transparent_type initializer.
3894 * c-lang.c (c_language_data): Likewise.
3895 (cplus_language_data): Likewise.
3896 (cplus_language::lookup_transparent_type): New member function.
3897 (asm_language_data): Delete la_lookup_transparent_type
3898 initializer.
3899 (minimal_language_data): Likewise.
3900 * d-lang.c (d_language_data): Likewise.
3901 * f-lang.c (f_language_data): Likewise.
3902 * go-lang.c (go_language_data): Likewise.
3903 * language.c (unknown_language_data): Likewise.
3904 (auto_language_data): Likewise.
3905 * language.h (struct language_data): Delete
3906 la_lookup_transparent_type field.
3907 (language_defn::lookup_transparent_type): New member function.
3908 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3909 initializer.
3910 * objc-lang.c (objc_language_data): Likewise.
3911 * opencl-lang.c (opencl_language_data): Likewise.
3912 * p-lang.c (pascal_language_data): Likewise.
3913 * rust-lang.c (rust_language_data): Likewise.
3914 * symtab.c (symbol_matches_domain): Update call.
3915
3916 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3917
3918 * ada-lang.c (ada_language_arch_info): Delete function, move
3919 implementation to...
3920 (ada_language::language_arch_info): ...here, a new member
3921 function.
3922 (ada_language_data): Delete la_language_arch_info.
3923 * c-lang.c (c_language_data): Likewise.
3924 (c_language::language_arch_info): New member function.
3925 (cplus_language_arch_info): Delete function, move
3926 implementation to...
3927 (cplus_language::language_arch_info): ...here, a new member
3928 function.
3929 (cplus_language_data): Delete la_language_arch_info.
3930 (asm_language_data): Likewise.
3931 (asm_language::language_arch_info): New member function.
3932 (minimal_language_data): Delete la_language_arch_info.
3933 (minimal_language::language_arch_info): New member function.
3934 * d-lang.c (d_language_arch_info): Delete function, move
3935 implementation to...
3936 (d_language::language_arch_info): ...here, a new member
3937 function.
3938 (d_language_data): Delete la_language_arch_info.
3939 * f-lang.c (f_language_arch_info): Delete function, move
3940 implementation to...
3941 (f_language::language_arch_info): ...here, a new member
3942 function.
3943 (f_language_data): Delete la_language_arch_info.
3944 * go-lang.c (go_language_arch_info): Delete function, move
3945 implementation to...
3946 (go_language::language_arch_info): ...here, a new member
3947 function.
3948 (go_language_data): Delete la_language_arch_info.
3949 * language.c (unknown_language_data): Likewise.
3950 (unknown_language::language_arch_info): New member function.
3951 (auto_language_data): Delete la_language_arch_info.
3952 (auto_language::language_arch_info): New member function.
3953 (language_gdbarch_post_init): Update call to
3954 la_language_arch_info.
3955 * language.h (language_data): Delete la_language_arch_info
3956 function pointer.
3957 (language_defn::language_arch_info): New function.
3958 * m2-lang.c (m2_language_arch_info): Delete function, move
3959 implementation to...
3960 (m2_language::language_arch_info): ...here, a new member
3961 function.
3962 (m2_language_data): Delete la_language_arch_info.
3963 * objc-lang.c (objc_language_arch_info): Delete function, move
3964 implementation to...
3965 (objc_language::language_arch_info): ...here, a new member
3966 function.
3967 (objc_language_data): Delete la_language_arch_info.
3968 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3969 implementation to...
3970 (opencl_language::language_arch_info): ...here, a new member
3971 function.
3972 (opencl_language_data): Delete la_language_arch_info.
3973 * p-lang.c (pascal_language_arch_info): Delete function, move
3974 implementation to...
3975 (pascal_language::language_arch_info): ...here, a new member
3976 function.
3977 (pascal_language_data): Delete la_language_arch_info.
3978 * rust-lang.c (rust_language_arch_info): Delete function, move
3979 implementation to...
3980 (rust_language::language_arch_info): ...here, a new member
3981 function.
3982 (rust_language_data): Delete la_language_arch_info.
3983
3984 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3985
3986 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3987 initializer.
3988 * c-lang.c (c_language_data): Likewise.
3989 (cplus_language_data): Likewise.
3990 (cplus_language::pass_by_reference_info): New method.
3991 (asm_language_data): Delete la_pass_by_reference initializer.
3992 (minimal_language_data): Likewise.
3993 * cp-abi.c (cp_pass_by_reference): Remove use of
3994 default_pass_by_reference.
3995 * d-lang.c (d_language_data): Likewise.
3996 * f-lang.c (f_language_data): Likewise.
3997 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3998 default_pass_by_reference.
3999 * go-lang.c (go_language_data): Likewise.
4000 * language.c (language_pass_by_reference): Update.
4001 (default_pass_by_reference): Delete.
4002 (unknown_language_data): Delete la_pass_by_reference
4003 initializer.
4004 (auto_language_data): Likewise.
4005 * language.h (struct language_data): Delete la_pass_by_reference
4006 field.
4007 (language_defn::pass_by_reference_info): New member function.
4008 (default_pass_by_reference): Delete declaration.
4009 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4010 initializer.
4011 * objc-lang.c (objc_language_data): Likewise.
4012 * opencl-lang.c (opencl_language_data): Likewise.
4013 * p-lang.c (pascal_language_data): Likewise.
4014 * rust-lang.c (rust_language_data): Likewise.
4015
4016 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4017
4018 * ada-lang.c (ada_read_var_value): Delete function, move
4019 implementation to...
4020 (ada_language::read_var_value): ...here.
4021 (ada_language_data): Delete la_read_var_value initializer.
4022 * c-lang.c (c_language_data): Likewise.
4023 (cplus_language_data): Likewise.
4024 (minimal_language_data): Likewise.
4025 * d-lang.c (d_language_data): Likewise.
4026 * f-lang.c (f_language_data): Likewise.
4027 * findvar.c (default_read_var_value): Rename to...
4028 (language_defn::read_var_value): ...this.
4029 * findvar.c (read_var_value): Update header comment, and change to
4030 call member function instead of function pointer.
4031 * go-lang.c (go_language_data): Likewise.
4032 * language.c (unknown_language_data): Delete la_read_var_value
4033 initializer.
4034 (auto_language_data): Likewise.
4035 * language.h (struct language_data): Delete la_read_var_value
4036 field.
4037 (language_defn::read_var_value): New member function.
4038 (default_read_var_value): Delete declaration.
4039 * m2-lang.c (m2_language_data): Delete la_read_var_value
4040 initializer.
4041 * objc-lang.c (objc_language_data): Likewise.
4042 * opencl-lang.c (opencl_language_data): Likewise.
4043 * p-lang.c (pascal_language_data): Likewise.
4044 * rust-lang.c (rust_language_data): Likewise.
4045 * value.h (default_read_var_value): Delete declaration.
4046
4047 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4048
4049 * ada-lang.c (ada_print_array_index): Delete function, move
4050 implementation to...
4051 (ada_language::print_array_index): ...here.
4052 (ada_language_data): Delete la_print_array_index initializer.
4053 * c-lang.c (c_language_data): Likewise.
4054 (cplus_language_data): Likewise.
4055 (minimal_language_data): Likewise.
4056 * d-lang.c (d_language_data): Likewise.
4057 * f-lang.c (f_language_data): Likewise.
4058 * go-lang.c (go_language_data): Likewise.
4059 * language.c (default_print_array_index): Delete function, move
4060 implementation to...
4061 (language_defn::print_array_index): ...here.
4062 (unknown_language_data): Delete la_print_array_index initializer.
4063 (auto_language_data): Likewise.
4064 * language.h (struct language_data): Delete la_print_array_index
4065 field.
4066 (language_defn::print_array_index): New member function.
4067 (LA_PRINT_ARRAY_INDEX): Update.
4068 (default_print_array_index): Delete declaration.
4069 * m2-lang.c (m2_language_data): Delete la_print_array_index
4070 initializer.
4071 * objc-lang.c (objc_language_data): Likewise.
4072 * opencl-lang.c (opencl_language_data): Likewise.
4073 * p-lang.c (pascal_language_data): Likewise.
4074 * rust-lang.c (rust_language_data): Likewise.
4075
4076 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4077
4078 * gdb/ada-lang.c (ada_language_defn): Convert to...
4079 (ada_language_data): ...this.
4080 (class ada_language): New class.
4081 (ada_language_defn): New static global.
4082 * gdb/c-lang.c (c_language_defn): Convert to...
4083 (c_language_data): ...this.
4084 (class c_language): New class.
4085 (c_language_defn): New static global.
4086 (cplus_language_defn): Convert to...
4087 (cplus_language_data): ...this.
4088 (class cplus_language): New class.
4089 (cplus_language_defn): New static global.
4090 (asm_language_defn): Convert to...
4091 (asm_language_data): ...this.
4092 (class asm_language): New class.
4093 (asm_language_defn): New static global.
4094 (minimal_language_defn): Convert to...
4095 (minimal_language_data): ...this.
4096 (class minimal_language): New class.
4097 (minimal_language_defn): New static global.
4098 * gdb/d-lang.c (d_language_defn): Convert to...
4099 (d_language_data): ...this.
4100 (class d_language): New class.
4101 (d_language_defn): New static global.
4102 * gdb/f-lang.c (f_language_defn): Convert to...
4103 (f_language_data): ...this.
4104 (class f_language): New class.
4105 (f_language_defn): New static global.
4106 * gdb/go-lang.c (go_language_defn): Convert to...
4107 (go_language_data): ...this.
4108 (class go_language): New class.
4109 (go_language_defn): New static global.
4110 * gdb/language.c (unknown_language_defn): Remove declaration.
4111 (current_language): Initialize to nullptr, real initialization is
4112 moved to _initialize_language.
4113 (languages): Delete global.
4114 (language_defn::languages): Define.
4115 (set_language_command): Use language_defn::languages.
4116 (set_language): Likewise.
4117 (range_error): Likewise.
4118 (language_enum): Likewise.
4119 (language_def): Likewise.
4120 (add_set_language_command): Use language_def::languages for the
4121 language list, and language_def to lookup language pointers.
4122 (skip_language_trampoline): Use language_defn::languages.
4123 (unknown_language_defn): Convert to...
4124 (unknown_language_data): ...this.
4125 (class unknown_language): New class.
4126 (unknown_language_defn): New static global.
4127 (auto_language_defn): Convert to...
4128 (auto_language_data): ...this.
4129 (class auto_language): New class.
4130 (auto_language_defn): New static global.
4131 (language_gdbarch_post_init): Use language_defn::languages.
4132 (_initialize_language): Initialize current_language.
4133 * gdb/language.h (struct language_defn): Rename to...
4134 (struct language_data): ...this.
4135 (struct language_defn): New.
4136 (auto_language_defn): Delete.
4137 (unknown_language_defn): Delete.
4138 (minimal_language_defn): Delete.
4139 (ada_language_defn): Delete.
4140 (asm_language_defn): Delete.
4141 (c_language_defn): Delete.
4142 (cplus_language_defn): Delete.
4143 (d_language_defn): Delete.
4144 (f_language_defn): Delete.
4145 (go_language_defn): Delete.
4146 (m2_language_defn): Delete.
4147 (objc_language_defn): Delete.
4148 (opencl_language_defn): Delete.
4149 (pascal_language_defn): Delete.
4150 (rust_language_defn): Delete.
4151 * gdb/m2-lang.c (m2_language_defn): Convert to...
4152 (m2_language_data): ...this.
4153 (class m2_language): New class.
4154 (m2_language_defn): New static global.
4155 * gdb/objc-lang.c (objc_language_defn): Convert to...
4156 (objc_language_data): ...this.
4157 (class objc_language): New class.
4158 (objc_language_defn): New static global.
4159 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4160 (opencl_language_data): ...this.
4161 (class opencl_language): New class.
4162 (opencl_language_defn): New static global.
4163 * gdb/p-lang.c (pascal_language_defn): Convert to...
4164 (pascal_language_data): ...this.
4165 (class pascal_language): New class.
4166 (pascal_language_defn): New static global.
4167 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4168 language pointer, update comment format.
4169 * gdb/rust-lang.c (rust_language_defn): Convert to...
4170 (rust_language_data): ...this.
4171 (class rust_language): New class.
4172 (rust_language_defn): New static global.
4173
4174 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4175
4176 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4177 member variable.
4178 <m_stmt_at_address>: New member variable.
4179 (lnp_state_machine::record_line): Don't record some lines, update
4180 tracking of is_stmt at the same address.
4181 (lnp_state_machine::lnp_state_machine): Initialise new member
4182 variables.
4183
4184 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4185
4186 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4187 "-include gnu-nat-mig.h".
4188 * gnu-nat-mig.h: New file.
4189 * gnu-nat.c: Include "gnu-nat-mig.h".
4190 (exc_server, msg_reply_server, notify_server,
4191 process_reply_server): Remove declarations.
4192
4193 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4194
4195 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4196 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4197 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4198 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4199 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4200 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4201 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4202 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4203 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4204 to gnu_nat_target class.
4205 * gnu-nat.c: Likewise.
4206 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4207 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4208 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4209 object.
4210 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4211 instead of `gnu_target'.
4212
4213 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4214
4215 * i386-gnu-tdep.c: Include "gdbcore.h"
4216 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4217 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4218 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4219 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4220 i386_gnu_sigcontext_addr): New functions
4221 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4222 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4223 tdep.
4224
4225 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4226
4227 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4228 before fork_inferior call. Avoid calling it if target_is_pushed returns
4229 true.
4230
4231 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4232
4233 * gnu-nat.h (gnu_target): New variable declaration.
4234 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4235 gnu_target.
4236 * gnu-nat.c (gnu_target): New variable.
4237 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4238 add_thread_silent, and add_thread calls.
4239 (gnu_nat_target::create_inferior): Pass gnu_target to
4240 add_thread_silent, thread_change_ptid call.
4241 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4242 call.
4243
4244 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4245
4246 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4247 (gnu_nat_target::find_memory_regions): Remove unused
4248 `old_address' variable.
4249
4250 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4251
4252 * gnu-nat.c: Include "gdbarch.h".
4253
4254 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4255
4256 * reply_mig_hack.awk (Error return): Cast function through
4257 void *, to bypass compiler function call check.
4258
4259 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4260
4261 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4262 $(srcdir)/reply_mig_hack.awk.
4263
4264 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4265
4266 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4267
4268 2020-05-30 Jonny Grant <jg@jguk.org>
4269
4270 * configure.ac (ACX_BUGURL): change bug URL to https.
4271
4272 2020-05-30 Pedro Alves <palves@redhat.com>
4273
4274 * cp-support.c (replace_typedefs_template): New.
4275 (replace_typedefs_qualified_name): Handle
4276 DEMANGLE_COMPONENT_TEMPLATE.
4277
4278 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4279
4280 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4281 dwarf2/index-cache.h, dwarf2/index-write.c,
4282 dwarf2/index-write.h, dwarf2/line-header.c,
4283 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4284 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4285 variables and fields from `dwarf2_per_objfile` to just
4286 `per_objfile` throughout.
4287
4288 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4289
4290 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4291 <push_dwarf_reg_entry_value>: Add comment.
4292
4293 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4294 Keith Seitz <keiths@redhat.com>
4295
4296 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4297 instead of PyEval_ReleaseLock.
4298 (class gdbpy_gil): Move to earlier in file.
4299 (finalize_python): Set gdb_python_initialized.
4300 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4301 when not initialized.
4302
4303 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4306 <push_dwarf_reg_entry_value>: Remove assert. Override
4307 per_objfile with caller_per_objfile.
4308
4309 2020-05-28 Tom de Vries <tdevries@suse.de>
4310
4311 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4312 PR gold/15646 workaround to symbol kind "type".
4313
4314 2020-05-27 Tom Tromey <tromey@adacore.com>
4315
4316 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4317
4318 2020-05-27 Tom Tromey <tromey@adacore.com>
4319
4320 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4321 Use htab_find_with_hash.
4322 <add_abbrev>: Remove "abbrev_number" parameter.
4323 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4324 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4325 (hash_abbrev): Add comment.
4326 (abbrev_table::lookup_abbrev): Move to header file.
4327 (abbrev_table::read): Update.
4328
4329 2020-05-27 Tom Tromey <tromey@adacore.com>
4330
4331 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4332 method.
4333 <canonical_name>: New member.
4334 <raw_name>: Rename from "name".
4335 (partial_die_info): Initialize canonical_name.
4336 (scan_partial_symbols): Check raw_name.
4337 (partial_die_parent_scope, partial_die_full_name)
4338 (add_partial_symbol, add_partial_subprogram)
4339 (add_partial_enumeration, load_partial_dies): Use "name" method.
4340 (partial_die_info::name): New method.
4341 (partial_die_info::read, guess_partial_die_structure_name)
4342 (partial_die_info::fixup): Update.
4343
4344 2020-05-27 Tom Tromey <tromey@adacore.com>
4345
4346 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4347 <get_ref_die_offset>: Inline.
4348 <get_ref_die_offset_complaint>: New method.
4349 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4350 (attribute::get_ref_die_offset_complaint): Rename from
4351 get_ref_die_offset. Just issue complaint.
4352
4353 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4354
4355 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4356
4357 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4358
4359 * exec.c (exec_file_attach): Use errno value of first openp failure.
4360
4361 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4362
4363 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4364 Don't close thread handle.
4365
4366 2020-05-27 Tom Tromey <tom@tromey.com>
4367 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4370 shared_ptr.
4371 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4372 member.
4373 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4374 dwarf2_per_bfd_objfile_data_key>: New globals.
4375 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4376 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4377 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4378 shared.
4379 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4380 short-circuit when sharing.
4381 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4382 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4383
4384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4387 to...
4388 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4389 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4390
4391 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4394 build_name_components, find_name_components_bounds>:
4395 Add per_objfile parameter.
4396 (struct mapped_index) <symbol_name_at>: Likewise.
4397 (struct mapped_debug_names): Remove constructor.
4398 <dwarf2_per_objfile>: Remove field.
4399 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4400 (mapped_index_base::find_name_components_bounds,
4401 mapped_index_base::build_name_components,
4402 dw2_expand_symtabs_matching_symbol): Likewise.
4403 (class mock_mapped_index) <symbol_name_at>: Likewise.
4404 (check_match): Likewise.
4405 (check_find_bounds_finds): Likewise.
4406 (test_mapped_index_find_name_component_bounds): Update.
4407 (CHECK_MATCH): Update.
4408 (dw2_expand_symtabs_matching): Update.
4409 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4410 per_objfile parameter.
4411 <find_vec_in_debug_names>: Likewise.
4412 <m_per_objfile>: New field.
4413 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4414 parameter.
4415 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4416 (dw2_debug_names_iterator::next): Update.
4417 (dw2_debug_names_lookup_symbol): Update.
4418 (dw2_debug_names_expand_symtabs_for_function): Update.
4419 (dw2_debug_names_map_matching_symbols): Update.
4420 (dw2_debug_names_expand_symtabs_matching): Update.
4421 (dwarf2_read_debug_names): Update.
4422
4423 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4424
4425 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4426 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4427 move to dwarf2_per_objfile.
4428 <read_in_chain>: Remove.
4429 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4430 remove_all_cus, age_comp_units>: New methods.
4431 <m_dwarf2_cus>: New member.
4432 (struct dwarf2_per_cu_data) <cu>: Remove.
4433 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4434 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4435 moved to methods of dwarf2_per_objfile.
4436 (dwarf2_clear_marks): Remove.
4437 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4438 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4439 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4440 (dwarf2_per_objfile::remove_all_cus): New.
4441 (class free_cached_comp_units) <~free_cached_comp_units>:
4442 Update.
4443 (load_cu): Update.
4444 (dw2_do_instantiate_symtab): Adjust.
4445 (fill_in_sig_entry_from_dwo_entry): Adjust.
4446 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4447 (cutu_reader::cutu_reader): Likewise.
4448 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4449 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4450 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4451 and dwarf2_per_objfile::age_comp_units.
4452 (load_partial_comp_unit): Update.
4453 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4454 (process_queue): Likewise.
4455 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4456 backlink.
4457 (dwarf2_read_addr_index): Likewise.
4458 (follow_die_offset): Likewise.
4459 (dwarf2_fetch_die_loc_sect_off): Likewise.
4460 (dwarf2_fetch_constant_bytes): Likewise.
4461 (dwarf2_fetch_die_type_sect_off): Likewise.
4462 (follow_die_sig_1): Likewise.
4463 (load_full_type_unit): Likewise.
4464 (read_signatured_type): Likewise.
4465 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4466 (dwarf2_cu::~dwarf2_cu): Remove.
4467 (dwarf2_per_objfile::get_cu): New.
4468 (dwarf2_per_objfile::set_cu): New.
4469 (age_cached_comp_units): Rename to...
4470 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4471 to std::unordered_map.
4472 (free_one_cached_comp_unit): Rename to...
4473 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4474 to std::unordered_map.
4475 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4476 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4477 a dwarf2_per_objfile in data.
4478 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4479 (dwarf2_clear_marks): Remove.
4480
4481 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4482
4483 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4484 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4485 (init_tu_and_read_dwo_dies): Likewise.
4486 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4487 (cutu_reader::cutu_reader): Likewise.
4488 (load_partial_comp_unit): Likewise.
4489 (process_psymtab_comp_unit): Update.
4490 (build_type_psymtabs_1): Update.
4491 (process_skeletonless_type_unit): Update.
4492 (load_full_comp_unit): Update.
4493 (find_partial_die): Update.
4494 (dwarf2_read_addr_index): Update.
4495 (read_signatured_type): Update.
4496
4497 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4498
4499 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4500 m_header_read_in>: New fields.
4501 <get_header>: New method.
4502 * dwarf2/read.c (per_cu_header_read_in): Remove.
4503 (dwarf2_per_cu_data::get_header): New.
4504 (dwarf2_per_cu_data::addr_size): Update.
4505 (dwarf2_per_cu_data::offset_size): Update.
4506 (dwarf2_per_cu_data::ref_addr_size): Update.
4507
4508 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4509
4510 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4511 (dw2_do_instantiate_symtab): Update.
4512 (queue_and_load_all_dwo_tus): Change parameter from
4513 dwarf2_per_cu_data to dwarf2_cu.
4514 (dwarf2_fetch_die_loc_sect_off): Update.
4515 (dwarf2_fetch_constant_bytes): Update.
4516 (dwarf2_fetch_die_type_sect_off): Update.
4517
4518 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4519
4520 * dwarf2/read.c (process_full_comp_unit,
4521 process_full_type_unit): Remove per_cu, per_objfile paramters.
4522 Add dwarf2_cu parameter.
4523 (process_queue): Update.
4524
4525 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4526
4527 * dwarf2/read.c (create_cu_from_index_list): Replace
4528 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4529 (create_cus_from_index_list): Likewise.
4530 (create_cus_from_index): Likewise.
4531 (create_signatured_type_table_from_index): Likewise.
4532 (create_cus_from_debug_names_list): Likewise.
4533 (create_cus_from_debug_names): Likewise.
4534 (dwarf2_read_gdb_index): Update.
4535 (dwarf2_read_debug_names): Update.
4536
4537 2020-05-27 Tom Tromey <tom@tromey.com>
4538 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * dwarf2/read.h (struct dwarf2_per_objfile)
4541 <get_type_for_signatured_type, set_type_for_signatured_type>:
4542 New methods.
4543 <m_type_map>: New member.
4544 (struct signatured_type) <type>: Remove.
4545 * dwarf2/read.c
4546 (dwarf2_per_objfile::get_type_for_signatured_type,
4547 dwarf2_per_objfile::set_type_for_signatured_type): New.
4548 (get_signatured_type): Use new methods.
4549
4550 2020-05-27 Tom Tromey <tom@tromey.com>
4551 Simon Marchi <simon.marchi@efficios.com>
4552
4553 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4554 (struct dwarf2_per_objfile) <type_units>: New member.
4555 <get_type_unit_group_unshareable>: New method.
4556 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4557 num_symtabs, symtabs>: Remove; move to
4558 type_unit_group_unshareable.
4559 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4560 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4561 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4562
4563 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * dwarf2/read.h (struct dwarf2_per_cu_data):
4566 <dwarf2_per_objfile>: Remove.
4567 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4568 dwarf2_per_objfile.
4569 (create_signatured_type_table_from_index): Likewise.
4570 (create_signatured_type_table_from_debug_names): Likewise.
4571 (create_debug_type_hash_table): Likewise.
4572 (fill_in_sig_entry_from_dwo_entry): Likewise.
4573 (create_type_unit_group): Likewise.
4574 (read_comp_units_from_section): Likewise.
4575 (create_cus_hash_table): Likewise.
4576
4577 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4578
4579 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4580 dwarf2_per_cu_data::dwarf2_per_objfile.
4581 (compute_compunit_symtab_includes): Likewise.
4582 (dwarf2_cu::start_symtab): Likewise.
4583
4584 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4585
4586 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4587 parameter.
4588 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4589 (read_namespace_alias): Update.
4590 (lookup_die_type): Update.
4591 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4592 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4593 Update.
4594 (disassemble_dwarf_expression): Update.
4595
4596 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4597
4598 * dwarf2/read.h (struct dwarf2_queue_item): Add
4599 dwarf2_per_objfile parameter, assign new parameter.
4600 <per_objfile>: New field.
4601 * dwarf2/read.c (free_one_cached_comp_unit): Add
4602 dwarf2_per_objfile parameter.
4603 (queue_comp_unit): Likewise.
4604 (dw2_do_instantiate_symtab): Update.
4605 (process_psymtab_comp_unit): Update.
4606 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4607 (process_imported_unit_die): Update.
4608 (queue_and_load_dwo_tu): Update.
4609 (follow_die_offset): Update.
4610 (follow_die_sig_1): Update.
4611
4612 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4613
4614 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4615 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4616 (read_call_site_scope): Assign per_objfile.
4617 (dwarf2_per_cu_data::objfile): Remove.
4618 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4619 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4620 dwarf2_per_objfile parameter.
4621 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4622 dwarf2_per_objfile parameter.
4623 (dwarf_expr_reg_to_entry_parameter): Add output
4624 dwarf2_per_objfile parameter.
4625 (locexpr_get_frame_base): Update.
4626 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4627 <push_dwarf_reg_entry_value>: Update.
4628 <call_site_to_target_addr>: Update.
4629 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4630 parameter.
4631 (value_of_dwarf_reg_entry): Update.
4632 (rw_pieced_value): Update.
4633 (indirect_synthetic_pointer): Update.
4634 (dwarf2_evaluate_property): Update.
4635 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4636 parameter.
4637 (locexpr_read_variable): Update.
4638 (locexpr_get_symbol_read_needs): Update.
4639 (loclist_read_variable): Update.
4640
4641 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4644 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4645 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4646 parameter.
4647 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4648 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4649 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4650 parameter.
4651 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4652 sect_variable_value): Add dwarf2_per_objfile parameter.
4653 (class dwarf_evaluate_loc_desc) <dwarf_call,
4654 dwarf_variable_value>: Update.
4655 (fetch_const_value_from_synthetic_pointer): Add
4656 dwarf2_per_objfile parameter.
4657 (fetch_const_value_from_synthetic_pointer): Update.
4658 (coerced_pieced_ref): Update.
4659 (class symbol_needs_eval_context) <dwarf_call,
4660 dwarf_variable_value>: Update.
4661 (dwarf2_compile_expr_to_ax): Update.
4662
4663 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4666 parameter.
4667 (dwarf2_evaluate_loc_desc_full): Update.
4668
4669 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4672 parameter.
4673 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4674 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4675 dwarf2_per_objfile parameter.
4676 (decode_debug_loc_dwo_addresses): Likewise.
4677 (dwarf2_find_location_expression): Update.
4678 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4679 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4680 parameter.
4681 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4682 parameter.
4683 (locexpr_describe_location_1): Likewise.
4684 (locexpr_describe_location): Update.
4685
4686 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4689 Remove.
4690 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4691 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4692 (dwarf2_compile_property_to_c): Update.
4693 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4694 use text offset from objfile.
4695 (locexpr_tracepoint_var_ref): Update.
4696 (locexpr_generate_c_location): Update.
4697 (loclist_describe_location): Update.
4698 (loclist_tracepoint_var_ref): Update.
4699 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4700 dwarf2_per_objfile parameter.
4701 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4702 use text offset from objfile.
4703 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4704
4705 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4706
4707 * dwarf2/expr.h (struct dwarf_expr_context)
4708 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4709 <offset>: Remove.
4710 <per_objfile>: New member.
4711 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4712 dwarf2_per_objfile parameter. Don't set offset, set
4713 per_objfile.
4714 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4715 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4716 a dwarf2_per_objfile object instead of an offset.
4717 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4718 constructor.
4719 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4720 to dwarf2_expr_executor constructor. Don't set offset.
4721 (dwarf2_fetch_cfa_info): Update.
4722 (struct dwarf2_frame_cache) <text_offset>: Remove.
4723 <per_objfile>: New field.
4724 (dwarf2_frame_cache): Update.
4725 (dwarf2_frame_prev_register): Update.
4726 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4727 <dwarf_evaluate_loc_desc>: Add constructor.
4728 (dwarf2_evaluate_loc_desc_full): Update.
4729 (dwarf2_locexpr_baton_eval): Update.
4730 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4731 Add constructor.
4732 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4733
4734 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4737 addr_sized_int_type>: Move to dwarf2_cu.
4738 <int_type>: Move to dwarf2_per_objfile.
4739 (struct dwarf2_per_objfile) <int_type>: Move here.
4740 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4741 addr_sized_int_type>: Move here.
4742 (read_func_scope): Update.
4743 (read_array_type): Update.
4744 (read_tag_string_type): Update.
4745 (attr_to_dynamic_prop): Update.
4746 (dwarf2_per_cu_data::int_type): Rename to...
4747 (dwarf2_per_objfile::int_type): ... this.
4748 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4749 (dwarf2_cu::addr_sized_int_type): ... this.
4750 (read_subrange_type): Update.
4751 (dwarf2_per_cu_data::addr_type): Rename to...
4752 (dwarf2_cu::addr_type): ... this.
4753 (set_die_type): Update.
4754
4755 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4756
4757 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4758 data through per_cu->cu.
4759
4760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4761
4762 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4763 dwarf2_per_cu_data parameter fo dwarf2_cu.
4764 (lookup_dwo_type_unit): Likewise.
4765 (read_cutu_die_from_dwo): Likewise.
4766 (lookup_dwo_unit): Likewise.
4767 (open_and_init_dwo_file): Likewise.
4768 (lookup_dwo_cutu): Likewise.
4769 (lookup_dwo_comp_unit): Likewise.
4770 (lookup_dwo_type_unit): Likewise.
4771 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4772 (cutu_reader::cutu_reader): Update.
4773
4774 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4775
4776 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4777 parameter.
4778 (process_full_type_unit): Likewise.
4779 (process_queue): Update.
4780
4781 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4782
4783 * dwarf2/read.c (recursively_compute_inclusions): Add
4784 dwarf2_per_objfile parameter.
4785 (compute_compunit_symtab_includes): Likewise.
4786 (process_cu_includes): Update.
4787
4788 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4789
4790 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4791 parameter.
4792 (create_type_unit_group): Update.
4793 (process_psymtab_comp_unit_reader): Update.
4794 (build_type_psymtabs_reader): Update.
4795
4796 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4797
4798 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4799 object through m_this_cu->cu.
4800
4801 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4802
4803 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4804 the info parameter.
4805 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4806
4807 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4808
4809 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4810 per_objfile parameter.
4811 (load_full_type_unit): Add per_objfile parameter.
4812 (read_signatured_type): Likewise.
4813 (load_full_comp_unit): Likewise.
4814 (load_cu): Likewise.
4815 (dw2_do_instantiate_symtab): Likewise.
4816 (dw2_get_file_names): Likewise.
4817 (dw2_map_symtabs_matching_filename): Update.
4818 (dw_expand_symtabs_matching_file_matcher): Update.
4819 (dw2_map_symbol_filenames): Update.
4820 (process_psymtab_comp_unit): Add per_objfile parameter.
4821 (build_type_psymtabs_1): Update.
4822 (process_skeletonless_type_unit): Update.
4823 (dwarf2_build_psymtabs_hard): Update.
4824 (load_partial_comp_unit): Add per_objfile parameter.
4825 (scan_partial_symbols): Update.
4826 (load_full_comp_unit): Add per_objfile parameter.
4827 (process_imported_unit_die): Update.
4828 (create_cus_hash_table): Update.
4829 (find_partial_die): Update.
4830 (dwarf2_read_addr_index): Update.
4831 (follow_die_offset): Update.
4832 (dwarf2_fetch_die_loc_sect_off): Update.
4833 (dwarf2_fetch_constant_bytes): Update.
4834 (dwarf2_fetch_die_type_sect_off): Update.
4835 (follow_die_sig_1): Update.
4836 (load_full_type_unit): Add per_objfile parameter.
4837 (read_signatured_type): Likewise.
4838
4839 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4840
4841 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4842 of objfile_name.
4843
4844 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4845
4846 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4847 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4848 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4849 field.
4850 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4851 (create_cus_from_index): Update.
4852 (dwarf2_read_gdb_index): Update.
4853 (create_cus_from_debug_names): Update.
4854 (dwarf2_read_debug_names): Update.
4855 (get_abbrev_section_for_cu): Update.
4856 (create_all_comp_units): Update.
4857 (read_attribute_value): Update.
4858 (get_debug_line_section): Update.
4859 * dwarf2/index-cache.c (index_cache::store): Update.
4860 * dwarf2/index-write.c (save_gdb_index_command): Update.
4861 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4862
4863 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4864
4865 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4866 member.
4867 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4868 dwarf2_per_cu_data::per_bfd.
4869 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4870 (create_type_unit_group): Likewise.
4871 (queue_comp_unit): Remove reference to
4872 per_cu->dwarf2_per_objfile.
4873 (maybe_queue_comp_unit): Likewise.
4874 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4875 (create_cus_hash_table): Assign new field.
4876
4877 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * dwarf2/read.c: Replace
4880 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4881 dwarf2_cu->per_objfile throughout.
4882
4883 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4884
4885 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4886 parameter, don't use per_cu->dwarf2_per_objfile.
4887 (dw2_instantiate_symtab): Likewise.
4888 (dw2_find_last_source_symtab): Update.
4889 (dw2_map_expand_apply): Update.
4890 (dw2_lookup_symbol): Update.
4891 (dw2_expand_symtabs_for_function): Update.
4892 (dw2_expand_all_symtabs): Update.
4893 (dw2_expand_symtabs_with_fullname): Update.
4894 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4895 don't use per_cu->dwarf2_per_objfile.
4896 (dw2_expand_marked_cus): Update.
4897 (dw2_find_pc_sect_compunit_symtab): Update.
4898 (dw2_debug_names_lookup_symbol): Update.
4899 (dw2_debug_names_expand_symtabs_for_function): Update.
4900 (dw2_debug_names_map_matching_symbols): Update.
4901 (dwarf2_psymtab::expand_psymtab): Update.
4902
4903 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4906 <per_objfile>: New member.
4907 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4908 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4909 call to dwarf2_cu.
4910 (cutu_reader::cutu_reader): Update.
4911 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4912
4913 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4914
4915 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4916 struct dwarf2_per_objfile.
4917 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4918 dwarf2_per_bfd.
4919 * dwarf2/read.c (set_die_type): Update.
4920 (get_die_type_at_offset): Update.
4921
4922 2020-05-27 Tom Tromey <tom@tromey.com>
4923 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4926 method.
4927 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4928 get_symtab, set_symtab>: New methods.
4929 <m_symtabs>: New field.
4930 (struct dwarf2_psymtab): Derive from partial_symtab.
4931 <readin_p, get_compunit_symtab>: Declare methods.
4932 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4933 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4934 New methods.
4935 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4936 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4937 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4938 (dw2_symtab_iter_next, dw2_print_stats)
4939 (dw2_expand_symtabs_with_fullname)
4940 (dw2_expand_symtabs_matching_one)
4941 (dw_expand_symtabs_matching_file_matcher)
4942 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4943 (dw2_debug_names_iterator::next)
4944 (dw2_debug_names_map_matching_symbols)
4945 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4946 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4947 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4948 New methods.
4949 (get_compunit_symtab, process_full_comp_unit)
4950 (process_full_type_unit): Update.
4951 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4952
4953 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4954
4955 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4956 then introduce a new dwarf2_per_objfile type.
4957 <read_line_string>: Move to the new dwarf2_per_objfile type.
4958 <objfile>: Likewise.
4959 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4960 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4961 dwarf2_per_objfile->per_bfd.
4962 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4963 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4964 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4965 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4966 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4967 (dwarf2_per_objfile::locate_sections): Rename to...
4968 (dwarf2_per_bfd::locate_sections): ... this.
4969 (dwarf2_per_objfile::get_cutu): Rename to...
4970 (dwarf2_per_bfd::get_cutu): ... this.
4971 (dwarf2_per_objfile::get_cu): Rename to...
4972 (dwarf2_per_bfd::get_cu): ... this.
4973 (dwarf2_per_objfile::get_tu): Rename to...
4974 (dwarf2_per_bfd::get_tu): ... this.
4975 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4976 (dwarf2_per_bfd::allocate_per_cu): ... this.
4977 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4978 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4979 (get_gdb_index_contents_ftype): Change parameter from
4980 dwarf2_per_objfile to dwarf2_per_bfd.
4981 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4982 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4983
4984 2020-05-27 Tom Tromey <tom@tromey.com>
4985 Simon Marchi <simon.marchi@efficios.com>
4986
4987 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4988 (allocate_piece_closure): Set "per_objfile" member.
4989 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4990 (locexpr_describe_location, loclist_describe_location): Use new
4991 member.
4992 * dwarf2/read.c (read_call_site_scope)
4993 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4994 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4995 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4996 handle_data_member_location): Set per_objfile member.
4997 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4998 member.
4999 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5000
5001 2020-05-27 Tom Tromey <tom@tromey.com>
5002
5003 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5004 allocate_signatured_type>: Declare new methods.
5005 <m_num_psymtabs>: New member.
5006 (struct dwarf2_per_cu_data) <index>: New member.
5007 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5008 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5009 (create_cu_from_index_list): Use allocate_per_cu.
5010 (create_signatured_type_table_from_index)
5011 (create_signatured_type_table_from_debug_names)
5012 (create_debug_type_hash_table, add_type_unit)
5013 (read_comp_units_from_section): Use allocate_signatured_type.
5014
5015 2020-05-27 Tom Tromey <tom@tromey.com>
5016
5017 * psymtab.c (partial_map_expand_apply)
5018 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5019 (psym_lookup_global_symbol_language)
5020 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5021 (psym_print_stats, psym_expand_symtabs_for_function)
5022 (psym_map_symbol_filenames, psym_map_matching_symbols)
5023 (psym_expand_symtabs_matching)
5024 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5025 (maintenance_check_psymtabs): Update.
5026 * psympriv.h (struct partial_symtab) <readin_p,
5027 get_compunit_symtab>: Add objfile parameter.
5028 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5029 Likewise.
5030 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5031 get_compunit_symtab>: Likewise.
5032 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5033
5034 2020-05-27 Tom Tromey <tom@tromey.com>
5035
5036 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5037 member.
5038 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5039 (create_cu_from_index_list)
5040 (create_signatured_type_table_from_index)
5041 (create_signatured_type_table_from_debug_names)
5042 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5043 (dwarf2_create_include_psymtab)
5044 (create_debug_type_hash_table, add_type_unit)
5045 (create_type_unit_group, read_comp_units_from_section)
5046 (dwarf2_compute_name, create_cus_hash_table)
5047 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5048 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5049 obstack.
5050 (dw2_get_real_path): Likewise. Change argument to
5051 dwarf2_per_objfile.
5052
5053 2020-05-27 Luis Machado <luis.machado@linaro.org>
5054
5055 PR tdep/26000
5056 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5057 for ldrd (immediate).
5058
5059 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5060
5061 * command.h: Add comment giving the name of class_tui.
5062 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5063 create the fake command for the help for class_tui.
5064
5065 2020-05-26 Tom Tromey <tromey@adacore.com>
5066
5067 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5068 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5069 (val_atr): New function.
5070 (value_val_atr): Use it.
5071 * ada-valprint.c (print_optional_low_bound): Change low bound
5072 handling for enums.
5073 (val_print_packed_array_elements): Don't call discrete_position.
5074 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5075 discrete_position for enum types.
5076 * language.c (default_print_array_index): Change type.
5077 * language.h (struct language_defn) <la_print_array_index>: Add
5078 index_type parameter, change type of index_value.
5079 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5080 (default_print_array_index): Update.
5081 * valprint.c (maybe_print_array_index): Don't call
5082 value_from_longest. Update.
5083 (value_print_array_elements): Don't call discrete_position.
5084
5085 2020-05-26 Tom Tromey <tromey@adacore.com>
5086
5087 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5088 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5089
5090 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5091
5092 PR gdb/13519
5093 * avr-tdep.c (avr_integer_to_address): Return data or code
5094 address accordingly to the second 'type' argument of the
5095 function.
5096
5097 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5098
5099 * infcmd.c, inferior.h: (construct_inferior_arguments):
5100 Moved function from here to gdbsupport/common-inferior.{h,cc}
5101
5102 2020-05-23 Tom Tromey <tom@tromey.com>
5103
5104 Revert commit eca1f90c:
5105 * NEWS: Remove entry for completion styling.
5106 * completer.c (_rl_completion_prefix_display_length): Move
5107 declaration later.
5108 (gdb_fnprint): Revert.
5109 (gdb_display_match_list_1): Likewise.
5110 * cli/cli-style.c (completion_prefix_style)
5111 (completion_difference_style, completion_suffix_style): Remove.
5112 (_initialize_cli_style): Revert.
5113 * cli/cli-style.h (completion_prefix_style)
5114 (completion_difference_style, completion_suffix_style): Don't
5115 declare.
5116
5117 2020-05-24 Pedro Alves <palves@redhat.com>
5118
5119 * symtab.c (completion_list_add_name): Return boolean indication
5120 of whether the symbol matched.
5121 (completion_list_add_symbol): Don't try to remove C++ aliases if
5122 the symbol didn't match in the first place.
5123 * symtab.h (completion_list_add_name): Return bool.
5124
5125 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5126
5127 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5128 type::field.
5129
5130 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5131
5132 GDB 9.2 released.
5133
5134 2020-05-23 Tom Tromey <tom@tromey.com>
5135
5136 * NEWS: Add entry for completion styling.
5137 * completer.c (_rl_completion_prefix_display_length): Move
5138 declaration earlier.
5139 (gdb_fnprint): Use completion_style.
5140 (gdb_display_match_list_1): Likewise.
5141 * cli/cli-style.c (completion_prefix_style)
5142 (completion_difference_style, completion_suffix_style): New
5143 globals.
5144 (_initialize_cli_style): Register new globals.
5145 * cli/cli-style.h (completion_prefix_style)
5146 (completion_difference_style, completion_suffix_style): Declare.
5147
5148 2020-05-23 Pedro Alves <palves@redhat.com>
5149
5150 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5151 (parse_escape): Use ISDIGIT instead of isdigit.
5152 (puts_debug): Use gdb_isprint instead of isprint.
5153 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5154 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5155 ISSPACE instead of isspace.
5156 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5157 instead of isspace.
5158 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5159 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5160 instead of isxdigit and ISDIGIT instead of isdigit.
5161
5162 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * gdbtypes.h (struct type) <field>: New method.
5165 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5166 or type::field.
5167
5168 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5169
5170 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5171 (TYPE_FIELDS): Use type::fields. Change all call sites that
5172 modify the propery to use type::set_fields instead.
5173
5174 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5175
5176 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5177 type::num_fields instead.
5178
5179 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5180
5181 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5182 methods.
5183 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5184 that modify the number of fields to use type::set_num_fields
5185 instead.
5186
5187 2020-05-22 Tom Tromey <tromey@adacore.com>
5188
5189 * compile/compile-object-load.h (munmap_list_free): Don't
5190 declare.
5191
5192 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5193
5194 * annotate.c (annotate_source_line): Update return type, add call
5195 to update current symtab and line.
5196 * annotate.h (annotate_source_line): Update return type, and
5197 extend header comment.
5198 * source.c (info_line_command): Check annotation_level before
5199 calling annotate_source_line.
5200 * stack.c (print_frame_info): If calling annotate_source_line
5201 returns true, then don't print any other source line information.
5202
5203 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5204
5205 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5206
5207 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5208
5209 * coffread.c (patch_type): Remove NULL check before xfree.
5210 * corefile.c (set_gnutarget): Likewise.
5211 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5212 * exec.c (build_section_table): Likewise.
5213 * remote.c (remote_target::pass_signals): Likewise.
5214 * utils.c (n_spaces): Likewise.
5215 * cli/cli-script.c (document_command): Likewise.
5216 * i386-windows-tdep.c (core_process_module_section): Likewise.
5217 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5218
5219 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5220
5221 * symfile.c (reread_symbols): Clear objfile's section_offsets
5222 vector and section indices, re-compute them by calling
5223 sym_offsets.
5224
5225 2020-05-20 Tom Tromey <tromey@adacore.com>
5226
5227 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5228 (desc_one_bound, desc_index_type): Compute field name.
5229
5230 2020-05-20 Tom de Vries <tdevries@suse.de>
5231
5232 PR symtab/25833
5233 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5234
5235 2020-05-20 Alan Modra <amodra@gmail.com>
5236
5237 PR 25993
5238 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5239 bfd_set_filename.
5240 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5241 passed to bfd_set_filename.
5242 * symfile-mem.c (add_vsyscall_page): Likewise for string
5243 passed to symbol_file_add_from_memory.
5244 (symbol_file_add_from_memory): Make name param a const char* and
5245 don't strdup.
5246
5247 2020-05-20 Alan Modra <amodra@gmail.com>
5248
5249 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5250 rather than accessing bfd->filename directly.
5251 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5252 and use bfd_section_name.
5253 * dwarf2/frame.c (decode_frame_entry): Likewise.
5254 * exec.c (exec_set_section_address): Likewise.
5255 * solib-aix.c (solib_aix_bfd_open): Likewise.
5256 * stap-probe.c (get_stap_base_address): Likewise.
5257 * symfile.c (reread_symbols): Likewise.
5258
5259 2020-05-19 Tom Tromey <tromey@adacore.com>
5260
5261 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5262
5263 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5264
5265 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5266
5267 2020-05-19 Pedro Alves <palves@redhat.com>
5268
5269 * NEWS (set exec-file-mismatch): Adjust entry.
5270 * exec.c: Include "build-id.h".
5271 (validate_exec_file): Try to match build IDs instead of filenames.
5272 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5273 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5274 and pass down 'warn_if_slow'.
5275 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5276 gdb_bfd_open_closure to pass it down.
5277 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5278
5279 2020-05-19 Pedro Alves <palves@redhat.com>
5280
5281 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5282 * target.c (target_fileio_open_1): Rename to target_fileio_open
5283 and make extern. Use bool.
5284 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5285 (target_fileio_read_alloc_1): Adjust.
5286 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5287 (target_fileio_open_warn_if_slow): Delete declaration.
5288
5289 2020-05-19 Pedro Alves <palves@redhat.com>
5290
5291 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5292 Adjust all callers.
5293
5294 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5295
5296 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5297 whether disp is negative.
5298
5299 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5300
5301 * symfile.h (struct symfile_segment_data)
5302 <~symfile_segment_data>: Remove.
5303 <segment_info>: Change to std::vector.
5304 * symfile.c (default_symfile_segments): Update.
5305 * elfread.c (elf_symfile_segments): Update.
5306
5307 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5308
5309 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5310 <segments>: New.
5311 <segment_bases, segment_sizes>: Remove.
5312 * symfile.c (default_symfile_segments): Update.
5313 * elfread.c (elf_symfile_segments): Update.
5314 * remote.c (remote_target::get_offsets): Update.
5315 * solib-target.c (solib_target_relocate_section_addresses):
5316 Update.
5317
5318 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5319
5320 * symfile.h (struct symfile_segment_data): Initialize fields.
5321 <~symfile_segment_data>: Add.
5322 (symfile_segment_data_up): New.
5323 (struct sym_fns) <sym_segments>: Return a
5324 symfile_segment_data_up.
5325 (default_symfile_segments): Return a symfile_segment_data_up.
5326 (free_symfile_segment_data): Remove.
5327 (get_symfile_segment_data): Return a symfile_segment_data_up.
5328 * symfile.c (default_symfile_segments): Likewise.
5329 (get_symfile_segment_data): Likewise.
5330 (free_symfile_segment_data): Remove.
5331 (symfile_find_segment_sections): Update.
5332 * elfread.c (elf_symfile_segments): Return a
5333 symfile_segment_data_up.
5334 * remote.c (remote_target::get_offsets): Update.
5335 * solib-target.c (solib_target_relocate_section_addresses):
5336 Update.
5337 * symfile-debug.c (debug_sym_segments): Return a
5338 symfile_segment_data_up.
5339
5340 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5341
5342 PR build/25981
5343 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5344 Hardcode register numbers.
5345
5346 PR build/25981
5347 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5348 procfs_find_LDT_entry): Remove.
5349 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5350 procfs_find_LDT_entry): Remove.
5351 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5352 Remove.
5353
5354 2020-05-17 Pedro Alves <palves@redhat.com>
5355 Andrew Burgess <andrew.burgess@embecosm.com>
5356 Keno Fischer <keno@juliacomputing.com>
5357
5358 PR gdb/25741
5359 * breakpoint.c (build_target_condition_list): Update comments.
5360 (build_target_command_list): Update comments and skip matching
5361 locations.
5362 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5363 a separate function. Simplify "set breakpoint auto-hw off"
5364 handling.
5365 (insert_breakpoints): Update comment.
5366 (tracepoint_locations_match): New parameter. For breakpoints,
5367 compare location types too, if the caller wants to.
5368 (handle_automatic_hardware_breakpoints): New functions.
5369 (bp_location_is_less_than): Also sort by location type and
5370 hardware breakpoint length.
5371 (update_global_location_list): Handle "set breakpoint auto-hw on"
5372 here.
5373 (update_breakpoint_locations): Ask breakpoint_locations_match to
5374 ignore location types.
5375
5376 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5377
5378 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5379 type::name instead.
5380
5381 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5382
5383 * gdbtypes.h (struct type) <name, set_name>: New methods.
5384 (TYPE_CODE): Use type::name. Change all call sites used to set
5385 the name to use type::set_name instead.
5386
5387 2020-05-16 Tom Tromey <tom@tromey.com>
5388
5389 * top.c (quit_force): Update.
5390 * infrun.c (handle_no_resumed): Update.
5391 * top.h (all_uis): New function.
5392 (ALL_UIS): Remove.
5393
5394 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5397
5398 2020-05-16 Pedro Alves <palves@redhat.com>
5399
5400 * ia64-linux-nat.c
5401 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5402 Declare method.
5403 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5404
5405 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5406
5407 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5408 (sparc64_adi_info): Likewise.
5409
5410 2020-05-15 Tom Tromey <tom@tromey.com>
5411
5412 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5413 block_objfile.
5414 (lookup_objfile_from_block): Remove.
5415 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5416 (lookup_global_symbol): Use block_objfile.
5417 * symtab.h (lookup_objfile_from_block): Don't declare.
5418 * printcmd.c (clear_dangling_display_expressions): Use
5419 block_objfile.
5420 * parse.c (operator_check_standard): Use block_objfile.
5421
5422 2020-05-15 Tom Tromey <tom@tromey.com>
5423
5424 * language.c (language_alloc_type_symbol): Set
5425 SYMBOL_SECTION.
5426 * symtab.c (initialize_objfile_symbol): Remove.
5427 (allocate_symbol): Remove.
5428 (allocate_template_symbol): Remove.
5429 * dwarf2/read.c (fixup_go_packaging): Use "new".
5430 (new_symbol): Use "new".
5431 (read_variable): Don't call initialize_objfile_symbol. Use
5432 "new".
5433 (read_func_scope): Use "new".
5434 * xcoffread.c (process_xcoff_symbol): Don't call
5435 initialize_objfile_symbol.
5436 (SYMBOL_DUP): Remove.
5437 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5438 "new".
5439 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5440 (allocate_template_symbol): Don't declare.
5441 (struct symbol): Add copy constructor. Change defaults.
5442 * jit.c (finalize_symtab): Use "new".
5443 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5444 Use "new".
5445 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5446 (common_block_end): Use "new".
5447 * mdebugread.c (parse_symbol): Use "new".
5448 (new_symbol): Likewise.
5449
5450 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5451
5452 * NEWS: Mention changes to help and apropos.
5453
5454 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5455
5456 * command.h (enum command_class): Improve comments, document
5457 that class_alias is for user-defined aliases, give the class
5458 name for each class, remove unused class_xdb.
5459 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5460 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5461 by a precise class.
5462 * infcmd.c (_initialize_infcmd): Likewise.
5463 * reverse.c (_initialize_reverse): Likewise.
5464 * stack.c (_initialize_stack): Likewise.
5465 * symfile.c (_initialize_symfile): Likewise.
5466 * tracepoint.c (_initialize_tracepoint): Likewise.
5467
5468 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5469
5470 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5471 when their aliased command is traversed.
5472 (help_cmd): Add fput_command_names_styled call to
5473 output command name and aliases when command has an alias.
5474
5475 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5476
5477 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5478 * cli/cli-decode.c (help_cmd_list): Declare as static,
5479 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5480 a command together with the command.
5481 (fput_command_name_styled, fput_command_names_styled): New functions.
5482 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5483 fput_command_name_styled.
5484 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5485 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5486
5487 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5488
5489 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5490 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5491 * command.h (cmd_show_list): Likewise.
5492 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5493 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5494
5495 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5496
5497 * unittests/command-def-selftests.c (traverse_command_structure):
5498 Verify all commands of a list have the same prefix command and
5499 that only the top cmdlist commands have a null prefix.
5500
5501 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5502
5503 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5504 as prefix, not one of its aliases.
5505 (set_cmd_prefix): Remove.
5506 (do_add_cmd): Centralize the setting of the prefix of a command, when
5507 command is defined after its full chain of prefix commands.
5508 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5509 (add_setshow_cmd_full): Likewise.
5510 (update_prefix_field_of_prefixed_commands): New function.
5511 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5512 update_prefix_field_of_prefixed_commands.
5513 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5514 addresses of remote_set_cmdlist and remote_show_cmdlist given
5515 as argument, not the address of an argument.
5516 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5517 * gdb/remote.c (_initialize_remote): Likewise.
5518
5519 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5520
5521 * cli/cli-cmds.c (alias_command): Check for an existing alias
5522 using lookup_cmd_composition, as valid_command_p is too strict
5523 and forbids aliases that are the prefix of an existing alias
5524 or command.
5525 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5526 command is properly recognised as a valid command.
5527
5528 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5529
5530 * unittests/help-doc-selftests.c: Rename to
5531 unittests/command-def-selftests.c
5532 * unittests/command-def-selftests.c (help_doc_tests): Update some
5533 comments.
5534 (command_structure_tests, traverse_command_structure): New namespace
5535 and function.
5536 (command_structure_invariants_tests): New function.
5537 (_initialize_command_def_selftests) Renamed from
5538 _initialize_help_doc_selftests, register command_structure_invariants
5539 selftest.
5540
5541 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5542
5543 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5544 an alias of 'show'.
5545
5546 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5547
5548 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5549 ada_is_fixed_point_type. Update all callers.
5550 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5551 all callers.
5552 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5553 Update all callers.
5554 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5555 print_fixed_point_type. Update all callers.
5556 * ada-valprint.c (ada_value_print_num): Replace call to
5557 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5558
5559 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5560
5561 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5562 processors.
5563 (cpu_supports_bts): Add CV_AMD case.
5564
5565 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5566 Simon Marchi <simon.marchi@efficios.com>
5567
5568 * infrun.c (stop_all_threads): Collect multiple wait events at
5569 each pass.
5570
5571 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5572
5573 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5574 type::code instead.
5575
5576 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5577
5578 * gdbtypes.h (struct type) <code, set_code>: New methods.
5579 (TYPE_CODE): Use type::code. Change all call sites used to set
5580 the code to use type::set_code instead.
5581
5582 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5583 Tom de Vries <tdevries@suse.de>
5584 Pedro Alves <palves@redhat.com>
5585
5586 PR threads/25478
5587 * infrun.c (stop_all_threads): Do NOT ignore
5588 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5589 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5590 received.
5591 (handle_no_resumed): Remove code handling a live inferior with no
5592 threads.
5593 * remote.c (has_single_non_exited_thread): New.
5594 (remote_target::update_thread_list): Do not delete a thread if is
5595 the last thread of the process.
5596 * thread.c (thread_select): Call delete_exited_threads instead of
5597 prune_threads.
5598
5599 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5600
5601 * infrun.c (stop_all_threads): Enable/disable thread events of all
5602 targets. Move a debug message denoting the end of the function
5603 into the SCOPED_EXIT block.
5604
5605 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5606
5607 * process-stratum-target.h: Include <set>.
5608 (all_non_exited_process_targets, switch_to_target_no_thread): New
5609 function declarations.
5610 * process-stratum-target.c (all_non_exited_process_targets)
5611 (switch_to_target_no_thread): New function implementations.
5612
5613 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5614
5615 * infrun.c (handle_inferior_event): Extract out a piece of code
5616 into...
5617 (mark_non_executing_threads): ...this new function.
5618
5619 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5620
5621 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5622 use.
5623
5624 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5625
5626 * regcache.c (regcache_read_pc_protected): New function
5627 implementation that returns 0 if the PC cannot read via
5628 'regcache_read_pc'.
5629 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5630 instead of 'regcache_read_pc'.
5631 (keep_going_pass_signal): Ditto.
5632
5633 2020-05-13 Tom Tromey <tromey@adacore.com>
5634
5635 * ada-lang.c (align_value): Remove.
5636 (ada_template_to_fixed_record_type_1): Use align_up.
5637
5638 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5639
5640 * async-event.c: Update the copyright year.
5641 * async-event.h: Update the copyright year.
5642
5643 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * objfiles.h (is_addr_in_objfile,
5646 shared_objfile_contains_address_p): Return bool.
5647 * objfile.c (is_addr_in_objfile,
5648 shared_objfile_contains_address_p): Return bool.
5649
5650 2020-05-11 Tom Tromey <tromey@adacore.com>
5651
5652 * cli/cli-cmds.c (info_command): Restore.
5653 (_initialize_cli_cmds): Use add_prefix_command for "info".
5654 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5655
5656 2020-05-11 Tom Tromey <tromey@adacore.com>
5657
5658 * ada-lang.c (ada_value_primitive_field): Now public.
5659 * ada-lang.h (ada_value_primitive_field): Declare.
5660 * ada-valprint.c (print_field_values): Use
5661 ada_value_primitive_field for wrapper fields.
5662
5663 2020-05-11 Tom de Vries <tdevries@suse.de>
5664
5665 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5666 MODULE_DOMAIN.
5667
5668 2020-05-11 Tom de Vries <tdevries@suse.de>
5669
5670 PR symtab/25941
5671 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5672 with length 0, if not gdb-produced.
5673 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5674
5675 2020-05-09 Tom de Vries <tdevries@suse.de>
5676
5677 PR gdb/25955
5678 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5679 calculation.
5680
5681 2020-05-09 Tom Tromey <tom@tromey.com>
5682
5683 * top.c (server_command): Now bool.
5684 * top.h (server_command): Now bool.
5685
5686 2020-05-08 Tom Tromey <tromey@adacore.com>
5687
5688 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5689 already being processed.
5690
5691 2020-05-08 Tom Tromey <tom@tromey.com>
5692
5693 * printcmd.c (struct display) <next>: Remove.
5694 <display>: New constructor.
5695 <exp_string>: Now a std::string.
5696 <enabled_p>: Now a bool.
5697 (display_number): Move definition earlier.
5698 (displays): Rename from display_chain. Now a std::vector.
5699 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5700 (display_command): Update.
5701 (do_one_display, disable_display)
5702 (enable_disable_display_command, do_enable_disable_display):
5703 Update.
5704 (free_display): Remove.
5705 (clear_displays): Rewrite.
5706 (delete_display): Update.
5707 (map_display_numbers): Use function_view. Remove "data"
5708 parameter. Update.
5709 (do_delete_display): Remove.
5710 (undisplay_command): Update.
5711 (do_one_display, do_displays, disable_display)
5712 (info_display_command): Update.
5713 (do_enable_disable_display): Remove.
5714 (enable_disable_display_command)
5715 (clear_dangling_display_expressions): Update.
5716
5717 2020-05-08 Tom Tromey <tom@tromey.com>
5718
5719 * symtab.c (set_symbol_cache_size)
5720 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5721 (maintenance_print_symbol_cache_statistics): Update.
5722 * symmisc.c (print_symbol_bcache_statistics)
5723 (print_objfile_statistics, maintenance_print_objfiles)
5724 (maintenance_info_symtabs, maintenance_check_symtabs)
5725 (maintenance_expand_symtabs, maintenance_info_line_tables):
5726 Update.
5727 * symfile-debug.c (set_debug_symfile): Update.
5728 * source.c (forget_cached_source_info): Update.
5729 * python/python.c (gdbpy_progspaces): Update.
5730 * psymtab.c (maintenance_info_psymtabs): Update.
5731 * probe.c (parse_probes): Update.
5732 * linespec.c (iterate_over_all_matching_symtabs)
5733 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5734 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5735 * exec.c (exec_target::close): Update.
5736 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5737 * breakpoint.c (print_one_breakpoint_location)
5738 (create_longjmp_master_breakpoint)
5739 (create_std_terminate_master_breakpoint): Update.
5740 * progspace.c (program_spaces): Now a std::vector.
5741 (maybe_new_address_space): Update.
5742 (add_program_space): Remove.
5743 (program_space::program_space): Update.
5744 (remove_program_space): Update.
5745 (number_of_program_spaces): Remove.
5746 (print_program_space, update_address_spaces): Update.
5747 * progspace.h (program_spaces): Change type.
5748 (ALL_PSPACES): Remove.
5749 (number_of_program_spaces): Don't declare.
5750 (struct program_space) <next>: Remove.
5751
5752 2020-05-08 Tom Tromey <tom@tromey.com>
5753
5754 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5755 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5756 (enable_break): Update.
5757 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5758 (frv_fdpic_find_canonical_descriptor): Update.
5759 (frv_fetch_objfile_link_map): Update.
5760 * progspace.c (program_space::free_all_objfiles): Update.
5761 (program_space::solibs): New method.
5762 * progspace.h (struct program_space) <solibs>: New method.
5763 * solist.h (master_so_list): Don't declare.
5764 (ALL_SO_LIBS): Remove.
5765 * solib.h (so_list_head): Remove.
5766 (update_solib_list): Update comment.
5767 * solib.c (master_so_list): Remove.
5768 (solib_used, update_solib_list, solib_add)
5769 (info_sharedlibrary_command, clear_solib)
5770 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5771
5772 2020-05-08 Tom Tromey <tom@tromey.com>
5773
5774 * extension.c (extension_languages): Now a std::array.
5775 (ALL_EXTENSION_LANGUAGES): Remove.
5776 (get_ext_lang_defn, get_ext_lang_of_file)
5777 (eval_ext_lang_from_control_command): Update.
5778 (finish_ext_lang_initialization)
5779 (auto_load_ext_lang_scripts_for_objfile)
5780 (ext_lang_type_printers::ext_lang_type_printers)
5781 (apply_ext_lang_type_printers)
5782 (ext_lang_type_printers::~ext_lang_type_printers)
5783 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5784 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5785 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5786 (get_matching_xmethod_workers, ext_lang_colorize)
5787 (ext_lang_before_prompt): Update.
5788 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5789
5790 2020-05-08 Tom Tromey <tom@tromey.com>
5791
5792 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5793 overload.
5794 <swap_string, m_string>: Remove.
5795 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5796 Update.
5797 * stabsread.c (define_symbol, read_type): Update.
5798 * linespec.c (find_linespec_symbols): Update.
5799 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5800 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5801 * dbxread.c (read_dbx_symtab): Update.
5802 * cp-support.h (cp_canonicalize_string_full)
5803 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5804 Return unique_xmalloc_ptr.
5805 * cp-support.c (inspect_type): Update.
5806 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5807 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5808 Likewise.
5809 * c-typeprint.c (print_name_maybe_canonical): Update.
5810 * break-catch-throw.c (check_status_exception_catchpoint):
5811 Update.
5812
5813 2020-05-08 Tom de Vries <tdevries@suse.de>
5814
5815 * infrun.c (follow_fork): Copy current_line and current_symtab to
5816 child thread.
5817
5818 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5819
5820 * async-event.c (struct async_signal_handler, struct
5821 async_event_handler): Reformat, remove typedef.
5822
5823 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5824
5825 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5826 access thistype->main_type->dyn_prop_list directly.
5827
5828 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5829
5830 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5831 (remove_dyn_prop): Remove. Update all users to use
5832 type::remove_dyn_prop.
5833 * gdbtypes.c (remove_dyn_prop): Rename to...
5834 (type::remove_dyn_prop): ... this.
5835
5836 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5837
5838 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5839 (add_dyn_prop): Remove. Update all users to use
5840 type::add_dyn_prop.
5841 * gdbtypes.c (add_dyn_prop): Rename to...
5842 (type::add_dyn_prop): ... this.
5843
5844 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5847 (get_dyn_prop): Remove. Update all users to use
5848 type::dyn_prop.
5849 * gdbtypes.c (get_dyn_prop): Rename to...
5850 (type::dyn_prop): ... this.
5851
5852 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5853
5854 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5855
5856 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5857
5858 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5859 instruction, skip it if it's there.
5860
5861 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5864
5865 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5866
5867 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5868 * gdbtypes.c (recursive_dump_type): Remove use of
5869 TYPE_INCOMPLETE.
5870
5871 2020-05-03 Tom Tromey <tom@tromey.com>
5872
5873 * breakpoint.c (catch_command, tcatch_command): Remove.
5874 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5875 add_show_prefix_cmd.
5876 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5877 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5878 Remove.
5879 (add_internal_problem_command): Use add_basic_prefix_cmd,
5880 add_show_prefix_cmd.
5881 * mips-tdep.c (set_mipsfpu_command): Remove.
5882 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5883 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5884 (_initialize_index_cache): Use add_basic_prefix_cmd.
5885 * memattr.c (dummy_cmd): Remove.
5886 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5887 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5888 (_initialize_tui_win): Use add_basic_prefix_cmd,
5889 add_show_prefix_cmd.
5890 * cli/cli-logging.c (set_logging_command): Remove.
5891 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5892 add_show_prefix_cmd.
5893 (show_logging_command): Remove.
5894 * target.c (target_command): Remove.
5895 (add_target): Use add_basic_prefix_cmd.
5896
5897 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5898
5899 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5900
5901 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5902
5903 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5904 info_command.
5905
5906 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5907
5908 * nbsd-nat.c (nbsd_enable_proc_events)
5909 (nbsd_nat_target::post_startup_inferior): Add.
5910 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5911 (nbsd_nat_target::update_thread_list): Rewrite.
5912 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5913 "PTRACE_LWP_CREATE".
5914 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5915
5916 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5917
5918 * stack.c (_initialize_stack): Remove duplicated creation
5919 of "frame" command and "f" alias.
5920
5921 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5922
5923 PR gdb/18706
5924 * gdbtypes.c (check_typedef): Calculate size of array of
5925 stubbed type.
5926
5927 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5928
5929 PR gdb/15559
5930 * i386-tdep.c (i386_push_dummy_call): Call
5931 i386_thiscall_push_dummy_call.
5932 (i386_thiscall_push_dummy_call): New function.
5933 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5934 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5935 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5936
5937 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5938
5939 * gdbarch.sh (do_read): Add shellcheck disable directive for
5940 warning SC2162.
5941
5942 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5945 "referenced but not assigned" warning.
5946
5947 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5948
5949 * gdbarch.sh: Remove code that sets fallbackdefault.
5950
5951 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5952
5953 * gdbarch.sh: Use shell operators && and || instead of
5954 -a and -o.
5955
5956 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5957
5958 * gdbarch.sh: Use $(...) instead of `...`.
5959
5960 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5961
5962 * gdbarch.sh: Use double quotes around variables.
5963
5964 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5965
5966 * gdbarch.sh: Use %s with printf, instead of variables in the
5967 format string.
5968
5969 2020-04-29 Tom Tromey <tromey@adacore.com>
5970
5971 PR ada/25875:
5972 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5973 type fields here.
5974 (read_enumeration_type): Call
5975 update_enumeration_type_from_children later. Update comments.
5976 (process_enumeration_scope): Don't create type fields.
5977
5978 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5979
5980 * nbsd-tdep.c: Include "xml-syscall.h".
5981 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5982
5983 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5984
5985 * nbsd-nat.c: Include "sys/wait.h".
5986 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5987 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5988 (nbsd_nat_target::remove_exec_catchpoint)
5989 (nbsd_nat_target::set_syscall_catchpoint): Add.
5990 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5991 (nbsd_nat_target::insert_exec_catchpoint)
5992 (nbsd_nat_target::remove_exec_catchpoint)
5993 (nbsd_nat_target::set_syscall_catchpoint): Add.
5994 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5995 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5996 `nbsd_get_syscall_number'.
5997
5998 2020-04-29 Tom Tromey <tom@tromey.com>
5999
6000 * stack.c (print_block_frame_labels): Remove.
6001
6002 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6003
6004 PR gdb/17320
6005 * ada-valprint.c (val_print_packed_array_elements): Move array
6006 end bracket to new line.
6007 (ada_val_print_string): Remove extra spaces before first array
6008 element.
6009 * c-valprint.c (c_value_print_array): Likewise.
6010 * m2-valprint.c (m2_print_array_contents): Likewise.
6011 (m2_value_print_inner): Likewise.
6012 * p-valprint.c (pascal_value_print_inner): Likewise.
6013 * valprint.c (generic_val_print_array): Likewise.
6014 (value_print_array_elements): Move first array element and array
6015 end bracket to new line.
6016
6017 2020-04-29 Tom de Vries <tdevries@suse.de>
6018
6019 PR symtab/25889
6020 * linespec.c (find_method): Fix ix calculation.
6021
6022 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6023
6024 * syscalls/update-netbsd.sh: New file.
6025 * syscalls/netbsd.xml: Regenerate.
6026 * data-directory/Makefile.in: Register `netbsd.xml' in
6027 `SYSCALLS_FILES'.
6028
6029 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6030
6031 * syscalls/update-freebsd.sh: Add double quotes.
6032
6033 2020-04-28 Tom Tromey <tom@tromey.com>
6034
6035 * NEWS: Update.
6036 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6037 (cmdpy_init): Allow class_tui.
6038
6039 2020-04-28 Mark Williams <mark@myosotissp.com>
6040
6041 PR gdb/24480
6042 * dwarf2read.c: Add missing assingments to list_in_scope when
6043 start_symtab was already called.
6044
6045 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6046
6047 PR gdb/25881
6048 * dwarf2/read.c (offset_map_type): Use
6049 gdb:hash_enum<sect_offset> as hash function.
6050
6051 2020-04-28 Tom de Vries <tdevries@suse.de>
6052
6053 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6054 with DW_AT_signature.
6055
6056 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6057
6058 * configure.ac: Remove check for fs_base/gs_base in
6059 user_regs_struct.
6060 * configure: Re-generate.
6061 * config.in: Re-generate.
6062 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6063 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6064 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6065
6066 2020-04-27 Luis Machado <luis.machado@linaro.org>
6067
6068 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6069 problematic inline frame unwinding situation.
6070 * frame.c (frame_id_computed_p): New function.
6071 * frame.h (frame_id_computed_p): New prototype.
6072
6073 2020-04-26 Tom Tromey <tom@tromey.com>
6074
6075 * command.h (enum command_class) <class_pseudo>: Remove.
6076
6077 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6078
6079 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6080 and whitespace.
6081
6082 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6083
6084 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6085 `PT_GET_PROCESS_STATE' block.
6086
6087 2020-04-24 Tom Tromey <tom@tromey.com>
6088
6089 * symtab.h (symbol_get_demangled_name): Don't declare.
6090 * symtab.c (symbol_get_demangled_name): Remove.
6091 (general_symbol_info::natural_name)
6092 (general_symbol_info::demangled_name): Update.
6093
6094 2020-04-24 Tom Tromey <tom@tromey.com>
6095
6096 PR rust/25025:
6097 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6098
6099 2020-04-24 Tom Tromey <tom@tromey.com>
6100
6101 PR symtab/12707:
6102 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6103 exists.
6104 (new_symbol): Likewise.
6105 * compile/compile-object-load.c (get_out_value_type): Use
6106 symbol_matches_search_name.
6107
6108 2020-04-24 Tom Tromey <tom@tromey.com>
6109
6110 * dwarf2/read.c (add_partial_symbol): Do not call
6111 compute_and_set_names.
6112
6113 2020-04-24 Tom Tromey <tom@tromey.com>
6114
6115 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6116 overload.
6117
6118 2020-04-24 Tom Tromey <tom@tromey.com>
6119
6120 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6121 (add_psymbol_to_list): New overload. Make old overload call new
6122 one.
6123 * psympriv.h (add_psymbol_to_list): New overload.
6124
6125 2020-04-24 Tom Tromey <tom@tromey.com>
6126
6127 * dwarf2/read.c (partial_die_info::read) <case
6128 DW_AT_linkage_name>: Use value_as_string.
6129 (dwarf2_string_attr): Use value_as_string.
6130 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6131 method.
6132 * dwarf2/attribute.c (attribute::value_as_string): New method.
6133
6134 2020-04-24 Tom Tromey <tom@tromey.com>
6135
6136 * symtab.c (general_symbol_info::natural_name)
6137 (general_symbol_info::demangled_name): Check for language_rust.
6138
6139 2020-04-24 Tom Tromey <tom@tromey.com>
6140
6141 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6142 (dwarf2_physname): ... from here.
6143 (partial_die_info::read): Add Rust "{" hack.
6144
6145 2020-04-24 Tom Tromey <tom@tromey.com>
6146
6147 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6148 method.
6149 (symbol_set_demangled_name): Don't declare.
6150 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6151 symbol_set_demangled_name.
6152 (general_symbol_info::set_language)
6153 (general_symbol_info::compute_and_set_names): Update.
6154 * minsyms.c (minimal_symbol_reader::install): Update.
6155 * dwarf2/read.c (new_symbol): Update.
6156
6157 2020-04-24 Tom Tromey <tromey@adacore.com>
6158
6159 PR python/23662:
6160 * python/py-type.c (convert_field): Handle
6161 FIELD_LOC_KIND_DWARF_BLOCK.
6162 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6163 (typy_get_dynamic): Nw function.
6164 (type_object_getset): Add "dynamic".
6165 * NEWS: Add entry.
6166
6167 2020-04-24 Tom Tromey <tromey@adacore.com>
6168
6169 * ada-typeprint.c (print_choices, print_variant_part)
6170 (print_record_field_types_dynamic): New functions.
6171 (print_record_field_types): Use print_record_field_types_dynamic.
6172
6173 2020-04-24 Tom Tromey <tromey@adacore.com>
6174
6175 * dwarf2/read.c (handle_data_member_location): New overload.
6176 (dwarf2_add_field): Use it.
6177 (decode_locdesc): Add "computed" parameter. Update comment.
6178 * gdbtypes.c (is_dynamic_type_internal): Also look for
6179 FIELD_LOC_KIND_DWARF_BLOCK.
6180 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6181 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6182 virtual base classes.
6183 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6184 FIELD_LOC_KIND_DWARF_BLOCK.
6185
6186 2020-04-24 Tom Tromey <tromey@adacore.com>
6187
6188 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6189 * gdbtypes.c (is_dynamic_type_internal): Check
6190 TYPE_HAS_DYNAMIC_LENGTH.
6191 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6192 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6193 New macros.
6194 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6195 constant.
6196
6197 2020-04-24 Tom Tromey <tromey@adacore.com>
6198
6199 * dwarf2/read.c (struct variant_field): Rewrite.
6200 (struct variant_part_builder): New.
6201 (struct nextfield): Remove "variant" field. Add "offset".
6202 (struct field_info): Add "current_variant_part" and
6203 "variant_parts".
6204 (alloc_discriminant_info): Remove.
6205 (alloc_rust_variant): New function.
6206 (quirk_rust_enum): Update.
6207 (dwarf2_add_field): Set "offset" member. Don't handle
6208 DW_TAG_variant_part.
6209 (offset_map_type): New typedef.
6210 (convert_variant_range, create_one_variant)
6211 (create_one_variant_part, create_variant_parts)
6212 (add_variant_property): New functions.
6213 (dwarf2_attach_fields_to_type): Call add_variant_property.
6214 (read_structure_type): Don't handle DW_TAG_variant_part.
6215 (handle_variant_part, handle_variant): New functions.
6216 (handle_struct_member_die): Use them.
6217 (process_structure_scope): Don't handle variant parts.
6218 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6219 (struct discriminant_info): Remove.
6220 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6221 (struct main_type) <flag_discriminated_union>: Remove.
6222 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6223 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6224 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6225 Update.
6226 * valops.c (value_union_variant): Remove.
6227 * value.h (value_union_variant): Don't declare.
6228
6229 2020-04-24 Tom Tromey <tromey@adacore.com>
6230
6231 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6232 (ada_value_primitive_packed_val): Update.
6233 * ada-valprint.c (ada_value_print_1): Update.
6234 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6235 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6236 just an address. Use evaluate_for_locexpr_baton.
6237 (dwarf2_evaluate_property): Update.
6238 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6239 array_view.
6240 * findvar.c (default_read_var_value): Update.
6241 * gdbtypes.c (compute_variant_fields_inner)
6242 (resolve_dynamic_type_internal): Update.
6243 (resolve_dynamic_type): Change type of valaddr parameter.
6244 * gdbtypes.h (resolve_dynamic_type): Update.
6245 * valarith.c (value_subscripted_rvalue): Update.
6246 * value.c (value_from_contents_and_address): Update.
6247
6248 2020-04-24 Tom Tromey <tromey@adacore.com>
6249
6250 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6251 "push_initial_value" parameter.
6252 (dwarf2_evaluate_property): Likewise.
6253 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6254
6255 2020-04-24 Tom Tromey <tromey@adacore.com>
6256
6257 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6258 (variant::matches, compute_variant_fields_recurse)
6259 (compute_variant_fields_inner, compute_variant_fields): New
6260 functions.
6261 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6262 Use resolved_type after type is made.
6263 (operator==): Add new cases.
6264 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6265 (struct discriminant_range, struct variant, struct variant_part):
6266 New.
6267 (union dynamic_prop_data) <variant_parts, original_type>: New
6268 members.
6269 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6270 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6271 constants.
6272 * value.c (unpack_bits_as_long): Now public.
6273 * value.h (unpack_bits_as_long): Declare.
6274
6275 2020-04-24 Tom Tromey <tromey@adacore.com>
6276
6277 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6278 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6279
6280 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6281
6282 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6283
6284 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6285
6286 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6287 (remove_fork_catchpoint, post_startup_inferior)
6288 (post_attach): Move...
6289 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6290 (remove_fork_catchpoint, post_startup_inferior)
6291 (post_attach): ...here.
6292 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6293 (remove_fork_catchpoint, post_startup_inferior)
6294 (post_attach): Move...
6295 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6296 (remove_fork_catchpoint, post_startup_inferior)
6297 (post_attach): ...here.
6298
6299 2020-04-24 Tom Tromey <tromey@adacore.com>
6300
6301 * nat/windows-nat.h (struct windows_thread_info)
6302 <pc_adjusted>: New member.
6303 * windows-nat.c (windows_fetch_one_register): Check
6304 pc_adjusted.
6305 (windows_nat_target::get_windows_debug_event)
6306 (windows_nat_target::wait): Set pc_adjusted.
6307
6308 2020-04-24 Tom de Vries <tdevries@suse.de>
6309
6310 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6311 Run gdb-add-index inside temp dir.
6312
6313 2020-04-23 Tom Tromey <tromey@adacore.com>
6314
6315 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6316 in loop.
6317
6318 2020-04-23 Luis Machado <luis.machado@linaro.org>
6319
6320 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6321 get_frame_register instead of gdbarch_unwind_pc.
6322
6323 2020-04-23 Tom de Vries <tdevries@suse.de>
6324
6325 * symtab.c (lookup_global_symbol): Prefer def over decl.
6326
6327 2020-04-23 Tom de Vries <tdevries@suse.de>
6328
6329 PR symtab/25807
6330 * block.c (best_symbol, better_symbol): Promote to external.
6331 * block.h (best_symbol, better_symbol): Declare.
6332 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6333 decl.
6334
6335 2020-04-23 Tom Tromey <tromey@adacore.com>
6336
6337 PR ada/25837:
6338 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6339 "const char *", not a "const std::string &".
6340 <name_and_matcher::operator==>: Update.
6341 * unittests/lookup_name_info-selftests.c: Change type of
6342 "result".
6343
6344 2020-04-23 Tom Tromey <tom@tromey.com>
6345
6346 * inferior.h (iterate_over_inferiors): Don't declare.
6347 * inferior.c (iterate_over_inferiors): Remove.
6348 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6349 Remove.
6350 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6351 use iterate_over_inferiors.
6352 (darwin_resume_inferior_it)
6353 (struct resume_inferior_threads_param)
6354 (darwin_resume_inferior_threads_it): Remove.
6355 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6356
6357 2020-04-23 Tom de Vries <tdevries@suse.de>
6358
6359 * blockframe.c (find_pc_partial_function): Use
6360 find_pc_sect_compunit_symtab rather than
6361 objfile->sf->qf->find_pc_sect_compunit_symtab.
6362
6363 2020-04-22 Tom de Vries <tdevries@suse.de>
6364
6365 PR symtab/25764
6366 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6367 in psymtabs.
6368
6369 2020-04-22 Tom de Vries <tdevries@suse.de>
6370
6371 PR symtab/25801
6372 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6373 symtabs.
6374
6375 2020-04-22 Tom de Vries <tdevries@suse.de>
6376
6377 PR symtab/25700
6378 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6379 CU if already created.
6380
6381 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6382
6383 * infrun.c (displaced_step_fixup): Switch to the event_thread
6384 before calling displaced_step_restore, not after.
6385
6386 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6387
6388 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6389 its inferior is not recorded by us.
6390 (record_btrace_target_open): Replace call to
6391 all_non_exited_threads () with call to current_inferior
6392 ()->non_exited_threads ().
6393 (record_btrace_target::stop_recording): Likewise.
6394 (record_btrace_target::close): Likewise.
6395 (record_btrace_target::wait): Likewise.
6396 (record_btrace_target::record_stop_replaying): Likewise.
6397
6398 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6399
6400 * btrace.c (btrace_enable): Throw an error on double enables and
6401 when enabling recording fails.
6402 (btrace_disable): Throw an error if the thread is not recorded.
6403
6404 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6405
6406 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6407 request if we do not have a thread_info.
6408
6409 2020-04-21 Tom de Vries <tdevries@suse.de>
6410
6411 PR gdb/25471
6412 * thread.c
6413 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6414 exception in get_frame_id.
6415
6416 2020-04-20 Tom Tromey <tromey@adacore.com>
6417
6418 * python/python.c (struct gdbpy_event): Mark move constructor as
6419 noexcept.
6420 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6421 constructor as noexcept.
6422 * completer.h (struct completion_result): Mark move constructor as
6423 noexcept.
6424 * completer.c (completion_result::completion_result): Use
6425 initialization style. Don't call reset_match_list.
6426
6427 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6428
6429 * MAINTAINERS (Write After Approval): Add myself.
6430
6431 2020-04-18 Tom Tromey <tom@tromey.com>
6432
6433 * windows-tdep.c (init_w32_command_list)
6434 (w32_prefix_command_valid): Restore.
6435 (_initialize_windows_tdep): Call init_w32_command_list.
6436
6437 2020-04-18 Tom Tromey <tom@tromey.com>
6438
6439 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6440 * value.c (value_fn_field): Update.
6441 * valops.c (find_function_in_inferior)
6442 (value_allocate_space_in_inferior): Update.
6443 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6444 Update.
6445 * tui/tui-source.c (tui_source_window::set_contents): Update.
6446 * symtab.c (lookup_global_or_static_symbol)
6447 (find_function_start_sal_1, skip_prologue_sal)
6448 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6449 * symmisc.c (dump_msymbols, dump_symtab_1)
6450 (maintenance_print_one_line_table): Update.
6451 * symfile.c (init_entry_point_info, section_is_mapped)
6452 (list_overlays_command, simple_read_overlay_table)
6453 (simple_overlay_update_1): Update.
6454 * stap-probe.c (handle_stap_probe): Update.
6455 * stabsread.c (dbx_init_float_type, define_symbol)
6456 (read_one_struct_field, read_enum_type, read_range_type): Update.
6457 * source.c (info_line_command): Update.
6458 * python/python.c (gdbpy_source_objfile_script)
6459 (gdbpy_execute_objfile_script): Update.
6460 * python/py-type.c (save_objfile_types): Update.
6461 * python/py-objfile.c (py_free_objfile): Update.
6462 * python/py-inferior.c (python_new_objfile): Update.
6463 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6464 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6465 (maintenance_check_psymtabs): Update.
6466 * printcmd.c (info_address_command): Update.
6467 * objfiles.h (struct objfile) <arch>: New method, from
6468 get_objfile_arch.
6469 (get_objfile_arch): Don't declare.
6470 * objfiles.c (get_objfile_arch): Remove.
6471 (filter_overlapping_sections): Update.
6472 * minsyms.c (msymbol_is_function): Update.
6473 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6474 (output_nondebug_symbol): Update.
6475 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6476 (mdebug_expand_psymtab): Update.
6477 * machoread.c (macho_add_oso_symfile): Update.
6478 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6479 Update.
6480 * linux-fork.c (checkpoint_command): Update.
6481 * linespec.c (convert_linespec_to_sals): Update.
6482 * jit.c (finalize_symtab): Update.
6483 * infrun.c (insert_exception_resume_from_probe): Update.
6484 * ia64-tdep.c (ia64_find_unwind_table): Update.
6485 * hppa-tdep.c (internalize_unwinds): Update.
6486 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6487 Update.
6488 * gcore.c (call_target_sbrk): Update.
6489 * elfread.c (record_minimal_symbol, elf_symtab_read)
6490 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6491 (elf_gnu_ifunc_resolve_by_got): Update.
6492 * dwarf2/read.c (create_addrmap_from_index)
6493 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6494 (read_debug_names_from_section)
6495 (process_psymtab_comp_unit_reader, add_partial_symbol)
6496 (add_partial_subprogram, process_full_comp_unit)
6497 (read_file_scope, read_func_scope, read_lexical_block_scope)
6498 (read_call_site_scope, dwarf2_ranges_read)
6499 (dwarf2_record_block_ranges, dwarf2_add_field)
6500 (mark_common_block_symbol_computed, read_tag_pointer_type)
6501 (read_tag_string_type, dwarf2_init_float_type)
6502 (dwarf2_init_complex_target_type, read_base_type)
6503 (partial_die_info::read, partial_die_info::read)
6504 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6505 (dwarf2_fetch_die_loc_sect_off): Update.
6506 * dwarf2/loc.c (dwarf2_find_location_expression)
6507 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6508 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6509 (dwarf2_loc_desc_get_symbol_read_needs)
6510 (locexpr_describe_location_piece, locexpr_describe_location_1)
6511 (loclist_describe_location): Update.
6512 * dwarf2/index-write.c (write_debug_names): Update.
6513 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6514 * dtrace-probe.c (dtrace_process_dof): Update.
6515 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6516 (process_one_symbol): Update.
6517 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6518 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6519 (coff_read_enum_type): Update.
6520 * cli/cli-cmds.c (edit_command, list_command): Update.
6521 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6522 * breakpoint.c (create_overlay_event_breakpoint)
6523 (create_longjmp_master_breakpoint)
6524 (create_std_terminate_master_breakpoint)
6525 (create_exception_master_breakpoint, get_sal_arch): Update.
6526 * block.c (block_gdbarch): Update.
6527 * annotate.c (annotate_source_line): Update.
6528
6529 2020-04-17 Tom Tromey <tromey@adacore.com>
6530
6531 * auto-load.c (show_auto_load_cmd): Remove.
6532 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6533 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6534 (maintenance_print_arc_command): Remove.
6535 * tui/tui-win.c (tui_command): Remove.
6536 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6537 * tui/tui-layout.c (tui_layout_command): Remove.
6538 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6539 * python/python.c (user_set_python, user_show_python): Remove.
6540 (_initialize_python): Use add_basic_prefix_cmd,
6541 add_show_prefix_cmd.
6542 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6543 (install_gdb_commands): Use add_basic_prefix_cmd,
6544 add_show_prefix_cmd.
6545 (info_guile_command): Remove.
6546 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6547 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6548 add_show_prefix_cmd.
6549 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6550 Remove do_set and do_show parameters.
6551 * cli/cli-style.c (set_style, show_style): Remove.
6552 (_initialize_cli_style): Use add_basic_prefix_cmd,
6553 add_show_prefix_cmd.
6554 (cli_style_option::add_setshow_commands): Remove do_set and
6555 do_show parameters.
6556 (cli_style_option::add_setshow_commands): Use
6557 add_basic_prefix_cmd, add_show_prefix_cmd.
6558 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6559 (set_style_name): Remove.
6560 * cli/cli-dump.c (dump_command, append_command): Remove.
6561 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6562 (tekhex_dump_command, binary_dump_command)
6563 (binary_append_command): Remove.
6564 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6565 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6566 (init_w32_command_list): Remove; move into ...
6567 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6568 * valprint.c (set_print, show_print, set_print_raw)
6569 (show_print_raw): Remove.
6570 (_initialize_valprint): Use add_basic_prefix_cmd,
6571 add_show_prefix_cmd.
6572 * typeprint.c (set_print_type, show_print_type): Remove.
6573 (_initialize_typeprint): Use add_basic_prefix_cmd,
6574 add_show_prefix_cmd.
6575 * record.c (set_record_command, show_record_command): Remove.
6576 (_initialize_record): Use add_basic_prefix_cmd,
6577 add_show_prefix_cmd.
6578 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6579 add_show_prefix_cmd.
6580 (info_command, show_command, set_debug, show_debug): Remove.
6581 * top.h (set_history, show_history): Don't declare.
6582 * top.c (set_history, show_history): Remove.
6583 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6584 (unset_tdesc_cmd): Remove.
6585 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6586 add_show_prefix_cmd.
6587 * symtab.c (info_module_command): Remove.
6588 (_initialize_symtab): Use add_basic_prefix_cmd.
6589 * symfile.c (overlay_command): Remove.
6590 (_initialize_symfile): Use add_basic_prefix_cmd.
6591 * sparc64-tdep.c (info_adi_command): Remove.
6592 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6593 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6594 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6595 add_show_prefix_cmd.
6596 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6597 (_initialize_serial): Use add_basic_prefix_cmd,
6598 add_show_prefix_cmd.
6599 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6600 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6601 add_show_prefix_cmd.
6602 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6603 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6604 add_show_prefix_cmd.
6605 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6606 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6607 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6608 add_show_prefix_cmd.
6609 * remote.c (remote_command, set_remote_cmd): Remove.
6610 (_initialize_remote): Use add_basic_prefix_cmd.
6611 * record-full.c (set_record_full_command)
6612 (show_record_full_command): Remove.
6613 (_initialize_record_full): Use add_basic_prefix_cmd,
6614 add_show_prefix_cmd.
6615 * record-btrace.c (cmd_set_record_btrace)
6616 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6617 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6618 (cmd_show_record_btrace_pt): Remove.
6619 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6620 add_show_prefix_cmd.
6621 * ravenscar-thread.c (set_ravenscar_command)
6622 (show_ravenscar_command): Remove.
6623 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6624 add_show_prefix_cmd.
6625 * mips-tdep.c (show_mips_command, set_mips_command)
6626 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6627 add_show_prefix_cmd.
6628 * maint.c (maintenance_command, maintenance_info_command)
6629 (maintenance_check_command, maintenance_print_command)
6630 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6631 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6632 add_show_prefix_cmd.
6633 (show_per_command_cmd): Remove.
6634 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6635 Remove.
6636 (maintenance_show_test_settings_cmd): Remove.
6637 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6638 add_show_prefix_cmd.
6639 * maint-test-options.c (maintenance_test_options_command):
6640 Remove.
6641 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6642 * macrocmd.c (macro_command): Remove
6643 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6644 * language.c (set_check, show_check): Remove.
6645 (_initialize_language): Use add_basic_prefix_cmd,
6646 add_show_prefix_cmd.
6647 * infcmd.c (unset_command): Remove.
6648 (_initialize_infcmd): Use add_basic_prefix_cmd.
6649 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6650 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6651 add_show_prefix_cmd.
6652 * go32-nat.c (go32_info_dos_command): Remove.
6653 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6654 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6655 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6656 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6657 (_initialize_frame): Use add_basic_prefix_cmd,
6658 add_show_prefix_cmd.
6659 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6660 (_initialize_dcache): Use add_basic_prefix_cmd,
6661 add_show_prefix_cmd.
6662 * cp-support.c (maint_cplus_command): Remove.
6663 (_initialize_cp_support): Use add_basic_prefix_cmd.
6664 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6665 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6666 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6667 add_basic_prefix_cmd, add_show_prefix_cmd.
6668 * breakpoint.c (save_command): Remove.
6669 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6670 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6671 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6672 add_show_prefix_cmd.
6673 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6674 (set_ada_command, show_ada_command): Remove.
6675 (_initialize_ada_language): Use add_basic_prefix_cmd,
6676 add_show_prefix_cmd.
6677 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6678
6679 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6680
6681 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6682 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6683
6684 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6685
6686 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6687 warning messages.
6688
6689 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6690
6691 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6692 import table is not at beginning of .idata section.
6693
6694 2020-04-16 Pedro Alves <palves@redhat.com>
6695
6696 * inferior.c (delete_inferior): Use delete operator directly
6697 instead of delete_program_space.
6698 * progspace.c (add_program_space): New, factored out from
6699 program_space::program_space.
6700 (remove_program_space): New, factored out from
6701 delete_program_space.
6702 (program_space::program_space): Remove intro comment. Rewrite.
6703 (program_space::~program_space): Remove intro comment. Call
6704 remove_program_space.
6705 (delete_program_space): Delete.
6706 * progspace.h (program_space::program_space): Make explicit. Move
6707 intro comment here, adjusted.
6708 (program_space::~program_space): Move intro comment here,
6709 adjusted.
6710 (delete_program_space): Remove.
6711
6712 2020-04-16 Tom Tromey <tromey@adacore.com>
6713
6714 * windows-nat.c (windows_nat::handle_access_violation): New
6715 function.
6716 * nat/windows-nat.h (handle_access_violation): Declare.
6717 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6718 windows-nat.c. Call handle_access_violation.
6719
6720 2020-04-16 Tom de Vries <tdevries@suse.de>
6721
6722 PR symtab/25791
6723 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6724 CUs without psymtab.
6725
6726 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6727
6728 * python/python.c (do_start_initialization): Don't call
6729 PyEval_InitThreads for Python 3.9 and beyond.
6730
6731 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6732
6733 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6734 thread functions.
6735 (obsd_nat_target::wait): Likewise.
6736
6737 2020-04-15 Tom Tromey <tromey@adacore.com>
6738
6739 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6740 (DEBUG_EXCEPT): Use debug_printf.
6741
6742 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6743
6744 * completer.c (class completion_tracker::completion_hash_entry)
6745 <hash_name>: New member function.
6746 (completion_tracker::discard_completions): New callback to hash a
6747 completion_hash_entry, pass this to htab_create_alloc.
6748
6749 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6750
6751 * windows-nat.c (windows_make_so): Warn rather than stopping with
6752 an error if realpath() fails.
6753
6754 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6755
6756 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6757 (nbsd_nat_target::info_proc): Add do_status.
6758
6759 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6760 Tom de Vries <tdevries@suse.de>
6761
6762 PR symtab/25718
6763 * psympriv.h (struct partial_symtab::read_symtab)
6764 (struct partial_symtab::expand_psymtab)
6765 (struct partial_symtab::read_dependencies): Update comments.
6766 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6767 read_symtab for includer.
6768 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6769 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6770 (struct dwarf2_include_psymtab::m_readin): Remove.
6771 (struct dwarf2_include_psymtab::includer): New member function.
6772 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6773
6774 2020-04-14 Tom de Vries <tdevries@suse.de>
6775
6776 PR symtab/25720
6777 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6778 with NULL symbol_matcher and lookup_name.
6779 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6780 and lookup_name.
6781 * dwarf2/read.c (dw2_expand_symtabs_matching)
6782 (dw2_debug_names_expand_symtabs_matching): Same.
6783 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6784 Make lookup_name a pointer. Update comment.
6785 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6786 lookup_name being a pointer.
6787 * symfile.c (expand_symtabs_matching): Same.
6788 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6789 * linespec.c (iterate_over_all_matching_symtabs): Same.
6790
6791 2020-04-13 Tom Tromey <tom@tromey.com>
6792
6793 * run-on-main-thread.c: Update include.
6794 * unittests/main-thread-selftests.c: Update include.
6795 * tui/tui-win.c: Update include.
6796 * tui/tui-io.c: Update include.
6797 * tui/tui-interp.c: Update include.
6798 * tui/tui-hooks.c: Update include.
6799 * top.h: Update include.
6800 * top.c: Update include.
6801 * ser-base.c: Update include.
6802 * remote.c: Update include.
6803 * remote-notif.c: Update include.
6804 * remote-fileio.c: Update include.
6805 * record-full.c: Update include.
6806 * record-btrace.c: Update include.
6807 * python/python.c: Update include.
6808 * posix-hdep.c: Update include.
6809 * mingw-hdep.c: Update include.
6810 * mi/mi-main.c: Update include.
6811 * mi/mi-interp.c: Update include.
6812 * main.c: Update include.
6813 * linux-nat.c: Update include.
6814 * interps.c: Update include.
6815 * infrun.c: Update include.
6816 * inf-loop.c: Update include.
6817 * event-top.c: Update include.
6818 * event-loop.c: Move to ../gdbsupport/.
6819 * event-loop.h: Move to ../gdbsupport/.
6820 * async-event.h: Update include.
6821 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6822
6823 2020-04-13 Tom Tromey <tom@tromey.com>
6824
6825 * tui/tui-win.c: Include async-event.h.
6826 * remote.c: Include async-event.h.
6827 * remote-notif.c: Include async-event.h.
6828 * record-full.c: Include async-event.h.
6829 * record-btrace.c: Include async-event.h.
6830 * infrun.c: Include async-event.h.
6831 * event-top.c: Include async-event.h.
6832 * event-loop.h: Move some declarations to async-event.h.
6833 * event-loop.c: Don't include ser-event.h or top.h. Move some
6834 code to async-event.c.
6835 * async-event.h: New file.
6836 * async-event.c: New file.
6837 * Makefile.in (COMMON_SFILES): Add async-event.c.
6838 (HFILES_NO_SRCDIR): Add async-event.h.
6839
6840 2020-04-13 Tom Tromey <tom@tromey.com>
6841
6842 * utils.c (flush_streams): New function.
6843 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6844
6845 2020-04-13 Tom Tromey <tom@tromey.com>
6846
6847 * event-loop.c (handle_file_event): Use warning, not
6848 printf_unfiltered.
6849
6850 2020-04-13 Tom Tromey <tom@tromey.com>
6851
6852 * event-loop.c: Include <chrono>.
6853
6854 2020-04-13 Tom Tromey <tom@tromey.com>
6855
6856 * gdb_select.h: Move to ../gdbsupport/.
6857 * event-loop.c: Update include path.
6858 * top.c: Update include path.
6859 * ser-base.c: Update include path.
6860 * ui-file.c: Update include path.
6861 * ser-tcp.c: Update include path.
6862 * guile/scm-ports.c: Update include path.
6863 * posix-hdep.c: Update include path.
6864 * ser-unix.c: Update include path.
6865 * gdb_usleep.c: Update include path.
6866 * mingw-hdep.c: Update include path.
6867 * inflow.c: Update include path.
6868 * infrun.c: Update include path.
6869 * event-top.c: Update include path.
6870
6871 2020-04-13 Tom Tromey <tom@tromey.com>
6872
6873 * configure: Rebuild.
6874 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6875
6876 2020-04-13 Tom Tromey <tom@tromey.com>
6877
6878 * event-loop.h (start_event_loop): Don't declare.
6879 * event-loop.c (start_event_loop): Move...
6880 * main.c (start_event_loop): ...here. Now static.
6881
6882 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6883
6884 * MAINTAINERS: Update my email address.
6885
6886 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6887
6888 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6889 IP_ALL.
6890
6891 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6892
6893 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6894 (nbsd_nat_target::info_proc): Add do_cmdline.
6895
6896 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6897
6898 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6899 (nbsd_nat_target::info_proc): Add do_cwd.
6900
6901 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6902
6903 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6904
6905 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6906
6907 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6908 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6909 (nbsd_nat_target::info_proc): New functions.
6910 * nbsd-nat.c (kinfo_get_vmmap): New function.
6911 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6912 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6913 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6914 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6915 functions.
6916 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6917 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6918 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6919 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6920 (KINFO_VME_FLAG_GROWS_DOWN): New.
6921
6922 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6923
6924 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6925 bit shift.
6926
6927 2020-04-10 Tom Tromey <tromey@adacore.com>
6928
6929 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6930
6931 2020-04-10 Tom Tromey <tromey@adacore.com>
6932
6933 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6934 separate debug files.
6935
6936 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6937
6938 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6939 Move to...
6940 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6941 ... here.
6942 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6943 Check for STATUS_WX86_BREAKPOINT.
6944 (windows_nat_target::wait): Same.
6945
6946 2020-04-10 Tom de Vries <tdevries@suse.de>
6947
6948 PR cli/25808
6949 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6950
6951 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6952
6953 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6954 (Write After Approval): Remove Tom de Vries.
6955
6956 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6957
6958 revert partially:
6959 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6960
6961 * buildsym.c (record_line): Fix undefined behavior and preserve
6962 lines at eof.
6963
6964 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6965
6966 * auxv.h (svr4_auxv_parse): New.
6967 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6968 and generic_auxv_parse.
6969 (svr4_auxv_parse): Add.
6970 * obsd-tdep.c: Include "auxv.h".
6971 (obsd_auxv_parse): Remove.
6972 (obsd_init_abi): Remove comment.
6973 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6974 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6975 * nbsd-tdep.c: Include "auxv.h".
6976 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6977
6978 2020-04-08 Tom Tromey <tromey@adacore.com>
6979
6980 * nat/windows-nat.h (last_wait_event): Don't declare.
6981 (wait_for_debug_event): Update comment.
6982 * nat/windows-nat.c (last_wait_event): Now static.
6983
6984 2020-04-08 Tom Tromey <tromey@adacore.com>
6985
6986 * windows-nat.c (wait_for_debug_event): Move to
6987 nat/windows-nat.c.
6988 * nat/windows-nat.h (wait_for_debug_event): Declare.
6989 * nat/windows-nat.c (wait_for_debug_event): Move from
6990 windows-nat.c. No longer static.
6991
6992 2020-04-08 Tom Tromey <tromey@adacore.com>
6993
6994 * windows-nat.c (get_windows_debug_event): Use
6995 fetch_pending_stop.
6996 * nat/windows-nat.h (fetch_pending_stop): Declare.
6997 * nat/windows-nat.c (fetch_pending_stop): New function.
6998
6999 2020-04-08 Tom Tromey <tromey@adacore.com>
7000
7001 * windows-nat.c (windows_continue): Use matching_pending_stop and
7002 continue_last_debug_event.
7003 * nat/windows-nat.h (matching_pending_stop)
7004 (continue_last_debug_event): Declare.
7005 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7006 (matching_pending_stop, continue_last_debug_event): New
7007 functions.
7008
7009 2020-04-08 Tom Tromey <tromey@adacore.com>
7010
7011 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7012 (handle_exception_result): Move to nat/windows-nat.h.
7013 (DEBUG_EXCEPTION_SIMPLE): Remove.
7014 (windows_nat::handle_ms_vc_exception): New function.
7015 (handle_exception): Move to nat/windows-nat.c.
7016 (get_windows_debug_event): Update.
7017 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7018 nat/windows-nat.c.
7019 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7020 (handle_exception_result): Move from windows-nat.c.
7021 (handle_exception): Declare.
7022 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7023 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7024 windows-nat.c.
7025
7026 2020-04-08 Tom Tromey <tromey@adacore.com>
7027
7028 * windows-nat.c (exception_count, event_count): Remove.
7029 (handle_exception, get_windows_debug_event)
7030 (do_initial_windows_stuff): Update.
7031
7032 2020-04-08 Tom Tromey <tromey@adacore.com>
7033
7034 * windows-nat.c (windows_nat::handle_load_dll)
7035 (windows_nat::handle_unload_dll): Rename. No longer static.
7036 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7037 Declare.
7038
7039 2020-04-08 Tom Tromey <tromey@adacore.com>
7040
7041 * complaints.h (stop_whining): Declare at top-level.
7042 (complaint): Don't declare stop_whining.
7043
7044 2020-04-08 Tom Tromey <tromey@adacore.com>
7045
7046 * windows-nat.c (windows_nat::handle_output_debug_string):
7047 Rename. No longer static.
7048 * nat/windows-nat.h (handle_output_debug_string): Declare.
7049
7050 2020-04-08 Tom Tromey <tromey@adacore.com>
7051
7052 * windows-nat.c (current_process_handle, current_process_id)
7053 (main_thread_id, last_sig, current_event, last_wait_event)
7054 (current_windows_thread, desired_stop_thread_id, pending_stops)
7055 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7056 (display_selectors, fake_create_process)
7057 (get_windows_debug_event): Update.
7058 * nat/windows-nat.h (current_process_handle, current_process_id)
7059 (main_thread_id, last_sig, current_event, last_wait_event)
7060 (current_windows_thread, desired_stop_thread_id, pending_stops)
7061 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7062 * nat/windows-nat.c (current_process_handle, current_process_id)
7063 (main_thread_id, last_sig, current_event, last_wait_event)
7064 (current_windows_thread, desired_stop_thread_id, pending_stops)
7065 (siginfo_er): New globals. Move from windows-nat.c.
7066
7067 2020-04-08 Tom Tromey <tromey@adacore.com>
7068
7069 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7070 (handle_load_dll): Update.
7071 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7072
7073 2020-04-08 Tom Tromey <tromey@adacore.com>
7074
7075 * windows-nat.c (enum thread_disposition_type): Move to
7076 nat/windows-nat.h.
7077 (windows_nat::thread_rec): Rename from thread_rec. No longer
7078 static.
7079 (windows_add_thread, windows_nat_target::fetch_registers)
7080 (windows_nat_target::store_registers, handle_exception)
7081 (windows_nat_target::resume, get_windows_debug_event)
7082 (windows_nat_target::get_tib_address)
7083 (windows_nat_target::thread_name)
7084 (windows_nat_target::thread_alive): Update.
7085 * nat/windows-nat.h (enum thread_disposition_type): Move from
7086 windows-nat.c.
7087 (thread_rec): Declare.
7088
7089 2020-04-08 Tom Tromey <tromey@adacore.com>
7090
7091 * windows-nat.c: Add "using namespace".
7092 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7093 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7094
7095 2020-04-08 Tom Tromey <tromey@adacore.com>
7096
7097 * nat/windows-nat.h (struct windows_thread_info): Declare
7098 destructor.
7099 * nat/windows-nat.c (~windows_thread_info): New.
7100
7101 2020-04-08 Tom Tromey <tromey@adacore.com>
7102
7103 PR gdb/22992
7104 * windows-nat.c (current_event): Update comment.
7105 (last_wait_event, desired_stop_thread_id): New globals.
7106 (struct pending_stop): New.
7107 (pending_stops): New global.
7108 (windows_nat_target) <stopped_by_sw_breakpoint>
7109 <supports_stopped_by_sw_breakpoint>: New methods.
7110 (windows_fetch_one_register): Add assertions. Adjust PC.
7111 (windows_continue): Handle pending stops. Suspend other threads
7112 when stepping. Use last_wait_event
7113 (wait_for_debug_event): New function.
7114 (get_windows_debug_event): Use wait_for_debug_event. Handle
7115 pending stops. Queue spurious stops.
7116 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7117 (windows_nat_target::kill): Use wait_for_debug_event.
7118 * nat/windows-nat.h (struct windows_thread_info)
7119 <stopped_at_software_breakpoint>: New field.
7120 * nat/windows-nat.c (windows_thread_info::resume): Clear
7121 stopped_at_software_breakpoint.
7122
7123 2020-04-08 Tom Tromey <tromey@adacore.com>
7124
7125 * windows-nat.c (enum thread_disposition_type): New.
7126 (thread_rec): Replace "get_context" parameter with "disposition";
7127 change type.
7128 (windows_add_thread, windows_nat_target::fetch_registers)
7129 (windows_nat_target::store_registers, handle_exception)
7130 (windows_nat_target::resume, get_windows_debug_event)
7131 (windows_nat_target::get_tib_address)
7132 (windows_nat_target::thread_name)
7133 (windows_nat_target::thread_alive): Update.
7134
7135 2020-04-08 Tom Tromey <tromey@adacore.com>
7136
7137 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7138 (windows_continue): Use windows_continue::resume.
7139 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7140 resume>: Declare new methods.
7141 * nat/windows-nat.c: New file.
7142 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7143
7144 2020-04-08 Tom Tromey <tromey@adacore.com>
7145
7146 * windows-nat.c (windows_add_thread, windows_delete_thread)
7147 (windows_nat_target::fetch_registers)
7148 (windows_nat_target::store_registers, fake_create_process)
7149 (windows_nat_target::resume, windows_nat_target::resume)
7150 (get_windows_debug_event, windows_nat_target::wait)
7151 (windows_nat_target::pid_to_str)
7152 (windows_nat_target::get_tib_address)
7153 (windows_nat_target::get_ada_task_ptid)
7154 (windows_nat_target::thread_name)
7155 (windows_nat_target::thread_alive): Use lwp, not tid.
7156
7157 2020-04-08 Tom Tromey <tromey@adacore.com>
7158
7159 * windows-nat.c (handle_exception)
7160 (windows_nat_target::thread_name): Update.
7161 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7162 <name>: Now unique_xmalloc_ptr.
7163
7164 2020-04-08 Tom Tromey <tromey@adacore.com>
7165
7166 * windows-nat.c (thread_rec)
7167 (windows_nat_target::fetch_registers): Update.
7168 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7169 Update comment.
7170 <debug_registers_changed, reload_context>: Now bool.
7171
7172 2020-04-08 Tom Tromey <tromey@adacore.com>
7173
7174 * windows-nat.c (windows_add_thread): Use new.
7175 (windows_init_thread_list, windows_delete_thread): Use delete.
7176 (get_windows_debug_event): Update.
7177 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7178 destructor, and initializers.
7179
7180 2020-04-08 Tom Tromey <tromey@adacore.com>
7181
7182 * windows-nat.c (struct windows_thread_info): Remove.
7183 * nat/windows-nat.h: New file.
7184
7185 2020-04-08 Tom Tromey <tromey@adacore.com>
7186
7187 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7188 (thread_rec, windows_add_thread, windows_delete_thread)
7189 (windows_continue): Update.
7190
7191 2020-04-08 Tom Tromey <tromey@adacore.com>
7192
7193 * windows-nat.c (struct windows_thread_info): Remove typedef.
7194 (thread_head): Remove.
7195 (thread_list): New global.
7196 (thread_rec, windows_add_thread, windows_init_thread_list)
7197 (windows_delete_thread, windows_continue): Update.
7198
7199 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7200
7201 * windows-tdep.h (windows_init_abi): Add comment.
7202 (cygwin_init_abi): New declaration.
7203 * windows-tdep.c: Split signal enumeration in two, one for
7204 Windows and one for Cygwin.
7205 (windows_gdb_signal_to_target): Only deal with signal of the
7206 Windows OS ABI.
7207 (cygwin_gdb_signal_to_target): New function.
7208 (windows_init_abi): Rename to windows_init_abi_common, don't set
7209 gdb_signal_to_target gdbarch method. Add new new function with
7210 this name.
7211 (cygwin_init_abi): New function.
7212 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7213 comment. Don't call windows_init_abi.
7214 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7215 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7216 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7217 i386_windows_init_abi_common, don't call windows_init_abi. Add
7218 a new function of this name.
7219 (i386_cygwin_init_abi): New function.
7220 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7221 OS ABI Cygwin.
7222
7223 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7224
7225 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7226 parameter.c.
7227 (dwarf2_read_gdb_index): Update.
7228
7229 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7230
7231 * nbsd-tdep.c: Include "objfiles.h".
7232 (nbsd_skip_solib_resolver): New.
7233 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7234
7235 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7236
7237 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7238 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7239 with DW_LLE_base_addressx are being emitted in DWARFv5.
7240 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7241 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7242 unsigned integer.
7243
7244 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7245
7246 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7247 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7248 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7249 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7250 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7251 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7252 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7253
7254
7255 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7256
7257 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7258 (read_loclist_index): New function definition.
7259 (lookup_loclist_base): New function definition.
7260 (read_loclist_header): New function definition.
7261 (dwarf2_cu): Add loclist_base and loclist_header field.
7262 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7263 (read_full_die_1): Read the value of DW_AT_loclists_base.
7264 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7265 (read_attribute_value): Handle DW_FORM_loclistx.
7266 (skip_one_die): Handle DW_FORM_loclistx.
7267 (loclist_header): New structure declaration.
7268 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7269
7270 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7271
7272 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7273 constructor. Remove `addr` parameter from other constructor and
7274 add `per_cu` parameter.
7275 * dwarf2/read.c (create_partial_symtab): Update.
7276
7277 2020-04-07 Tom de Vries <tdevries@suse.de>
7278
7279 PR symtab/25796
7280 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7281 (partial_die_info::fixup): Inherit has_const_value.
7282
7283 2020-04-07 Tom de Vries <tdevries@suse.de>
7284
7285 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7286 symbols without address.
7287
7288 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7289
7290 * nbsd-nat.h (struct thread_info): Add forward declaration.
7291 (nbsd_nat_target::thread_alive): Add.
7292 (nbsd_nat_target::thread_name): Likewise.
7293 (nbsd_nat_target::update_thread_list): Likewise.
7294 (update_thread_list::post_attach): Likewise.
7295 (post_attach::pid_to_str): Likewise.
7296 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7297 (nbsd_thread_lister): Add.
7298 (nbsd_nat_target::thread_alive): Likewise.
7299 (nbsd_nat_target::thread_name): Likewise.
7300 (nbsd_add_threads): Likewise.
7301 (update_thread_list::post_attach): Likewise.
7302 (nbsd_nat_target::update_thread_list): Likewise.
7303 (post_attach::pid_to_str): Likewise.
7304
7305 2020-04-06 Tom Tromey <tromey@adacore.com>
7306
7307 * ada-valprint.c (print_variant_part): Extract the variant field.
7308 (print_field_values): Use the field as the outer value when
7309 recursing.
7310
7311 2020-04-06 Tom Tromey <tromey@adacore.com>
7312
7313 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7314 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7315 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7316 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7317 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7318
7319 2020-04-06 Tom Tromey <tromey@adacore.com>
7320
7321 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7322 TYPE_CODE_ERROR.
7323
7324 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7325
7326 * nbsd-tdep.c: Include "gdbarch.h".
7327 Define enum with NetBSD signal numbers.
7328 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7329 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7330 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7331 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7332 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7333 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7334 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7335 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7336 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7337 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7338 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7339 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7340
7341 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7342
7343 PR gdb/25325
7344 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7345
7346 2020-04-03 Tom Tromey <tromey@adacore.com>
7347
7348 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7349 Read constant block.
7350
7351 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7352
7353 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7354 (gdb_bfd_get_full_section_contents): New declaration.
7355 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7356 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7357 gdb_bfd_get_full_section_contents.
7358
7359 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7360
7361 * exec.c (build_section_table): Replace internal_error with
7362 gdb_assert.
7363 (section_table_xfer_memory_partial): Likewise.
7364 * mdebugread.c (parse_partial_symbols): Likewise.
7365 * psymtab.c (lookup_partial_symbol): Likewise.
7366 * utils.c (wrap_here): Likewise.
7367
7368 2020-04-02 Tom Tromey <tromey@adacore.com>
7369
7370 * f-lang.c (build_fortran_types): Use arch_type to initialize
7371 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7372
7373 2020-04-02 Tom Tromey <tromey@adacore.com>
7374
7375 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7376 of attributes.
7377
7378 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7379 Bernd Edlinger <bernd.edlinger@hotmail.de>
7380 Tom Tromey <tromey@adacore.com>
7381
7382 * buildsym.c (buildsym_compunit::record_line): Remove
7383 deduplication code.
7384
7385 2020-04-02 Tom de Vries <tdevries@suse.de>
7386
7387 PR ada/24671
7388 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7389
7390 2020-04-02 Tom de Vries <tdevries@suse.de>
7391
7392 * dwarf2/read.c (dwarf2_gdb_index_functions,
7393 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7394 NULL.
7395 * psymtab.c (psym_lookup_global_symbol_language): New function.
7396 (psym_functions): Init psym_lookup_global_symbol_language with
7397 psym_lookup_global_symbol_language.
7398 * symfile-debug.c (debug_sym_quick_functions): Init
7399 lookup_global_symbol_language with NULL.
7400 * symfile.c (set_initial_language): Remove fixme comment.
7401 * symfile.h (struct quick_symbol_functions): Add
7402 lookup_global_symbol_language.
7403 * symtab.c (find_quick_global_symbol_language): New function.
7404 (find_main_name): Use find_quick_global_symbol_language.
7405
7406 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7407
7408 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7409
7410 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7411
7412 * buildsym.c (record_line): Fix undefined behavior and preserve
7413 lines at eof.
7414
7415 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7416
7417 * buildsym.c (record_line): Fix the resizing condition.
7418
7419 2020-04-01 Tom Tromey <tom@tromey.com>
7420
7421 * value.h (value_literal_complex): Add comment.
7422 * valops.c (value_literal_complex): Refer to value.h.
7423
7424 2020-04-01 Tom Tromey <tom@tromey.com>
7425
7426 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7427 (scalar_type): New rule, from typebase.
7428 (typebase): Use scalar_type. Recognize complex types.
7429 (field_name): Handle FLOAT_KEYWORD.
7430 (ident_tokens): Add _Complex and __complex__.
7431
7432 2020-04-01 Tom Tromey <tom@tromey.com>
7433
7434 PR exp/25299:
7435 * valarith.c (promotion_type, complex_binop): New functions.
7436 (scalar_binop): Handle complex numbers. Use promotion_type.
7437 (value_pos, value_neg, value_complement): Handle complex numbers.
7438
7439 2020-04-01 Tom Tromey <tom@tromey.com>
7440
7441 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7442 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7443 (parse_number): Handle complex numbers.
7444
7445 2020-04-01 Tom Tromey <tom@tromey.com>
7446
7447 * c-valprint.c (c_decorations): Change complex suffix to "i".
7448
7449 2020-04-01 Tom Tromey <tom@tromey.com>
7450
7451 * valprint.c (generic_value_print_complex): Use accessors.
7452 * value.h (value_real_part, value_imaginary_part): Declare.
7453 * valops.c (value_real_part, value_imaginary_part): New
7454 functions.
7455 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7456
7457 2020-04-01 Tom Tromey <tom@tromey.com>
7458
7459 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7460 (read_range_type): Update.
7461 * mdebugread.c (basic_type): Update.
7462 * go-lang.c (build_go_types): Use init_complex_type.
7463 * gdbtypes.h (struct main_type) <complex_type>: New member.
7464 (init_complex_type): Update.
7465 (arch_complex_type): Don't declare.
7466 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7467 Make name if none given. Use alloc_type_copy. Look for cached
7468 complex type.
7469 (arch_complex_type): Remove.
7470 (gdbtypes_post_init): Use init_complex_type.
7471 * f-lang.c (build_fortran_types): Use init_complex_type.
7472 * dwarf2/read.c (read_base_type): Update.
7473 * d-lang.c (build_d_types): Use init_complex_type.
7474 * ctfread.c (read_base_type): Update.
7475
7476 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7477
7478 * infrun.c (stop_all_threads): Update assertion, plus when
7479 stopping threads, take into account that we might be trying
7480 to stop an all-stop target.
7481 (stop_waiting): Call 'stop_all_threads' if there exists a
7482 non-stop target.
7483
7484 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7485
7486 * target.h (exists_non_stop_target): New function declaration.
7487 * target.c (exists_non_stop_target): New function.
7488
7489 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7490
7491 PR gdb/24789
7492 * eval.c (is_integral_or_integral_reference): New function.
7493 (evaluate_subexp_standard): Allow integer references in
7494 pointer arithmetic.
7495
7496 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7497
7498 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7499 check for no ptid in the stop reply when the target is non-stop.
7500
7501 2020-04-01 Tom Tromey <tromey@adacore.com>
7502
7503 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7504 "name" parameter to rvalue reference. Initialize m_name_holder.
7505 <lookup_name_info>: New overloads.
7506 <name>: Return gdb::string_view.
7507 <c_str>: New method.
7508 <make_ignore_params>: Update.
7509 <search_name_hash>: Update.
7510 <language_lookup_name>: Return const char *.
7511 <m_name>: Change type.
7512 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7513 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7514 (lookup_name_info::match_any): Update.
7515 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7516 Update.
7517 * minsyms.c (linkage_name_str): Update.
7518 * language.c (default_symbol_name_matcher): Update.
7519 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7520 Update.
7521 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7522 (ada_lookup_name_info::ada_lookup_name_info): Update.
7523 (literal_symbol_name_matcher): Update.
7524
7525 2020-04-01 Tom Tromey <tromey@adacore.com>
7526
7527 * psymtab.c (psymtab_search_name): Remove function.
7528 (psym_lookup_symbol): Create search name and lookup name here.
7529 (lookup_partial_symbol): Remove "name" parameter; add
7530 lookup_name.
7531 (psym_expand_symtabs_for_function): Update.
7532
7533 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7534
7535 PR tui/25597:
7536 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7537
7538 2020-03-31 Tom Tromey <tromey@adacore.com>
7539
7540 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7541 memcpy.
7542
7543 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7544
7545 * features/riscv/32bit-csr.xml: Regenerated.
7546 * features/riscv/64bit-csr.xml: Regenerated.
7547
7548 2020-03-30 Tom Tromey <tromey@adacore.com>
7549
7550 * ada-valprint.c (print_variant_part): Update.
7551 * ada-lang.h (ada_which_variant_applies): Update.
7552 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7553 outer_valaddr parameters; replace with "outer" value parameter.
7554 (to_fixed_variant_branch_type): Update.
7555
7556 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7557
7558 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7559 <list>. Remove inclusion of observable.h.
7560 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7561 (struct arch_lwp_info): New struct.
7562 (class ppc_linux_dreg_interface): New class.
7563 (struct ppc_linux_process_info): New struct.
7564 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7565 <low_new_clone, low_forget_process, low_prepare_to_resume>
7566 <copy_thread_dreg_state, mark_thread_stale>
7567 <mark_debug_registers_changed, register_hw_breakpoint>
7568 <clear_hw_breakpoint, register_wp, clear_wp>
7569 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7570 <num_memory_accesses, get_trigger_type>
7571 <create_watchpoint_request, hwdebug_point_cmp>
7572 <init_arch_lwp_info, get_arch_lwp_info>
7573 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7574 methods.
7575 <struct ptid_hash>: New inner struct.
7576 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7577 members.
7578 (saved_dabr_value, hwdebug_info, max_slots_number)
7579 (struct hw_break_tuple, struct thread_points, ppc_threads)
7580 (have_ptrace_hwdebug_interface)
7581 (hwdebug_find_thread_points_by_tid)
7582 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7583 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7584 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7585 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7586 use m_dreg_interface.
7587 (hwdebug_point_cmp): Change to...
7588 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7589 reference arguments instead of pointers.
7590 (ppc_linux_nat_target::ranged_break_num_registers): Use
7591 m_dreg_interface.
7592 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7593 m_dreg_interface. Call register_hw_breakpoint.
7594 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7595 m_dreg_interface. Call clear_hw_breakpoint.
7596 (get_trigger_type): Change to...
7597 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7598 comment.
7599 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7600 use m_dreg_interface. Call register_hw_breakpoint.
7601 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7602 use m_dreg_interface. Call clear_hw_breakpoint.
7603 (can_use_watchpoint_cond_accel): Change to...
7604 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7605 method. Update comment, use m_dreg_interface and
7606 m_process_info.
7607 (calculate_dvc): Change to...
7608 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7609 m_dreg_interface.
7610 (num_memory_accesses): Change to...
7611 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7612 (check_condition): Change to...
7613 (ppc_linux_nat_target::check_condition): ...this method.
7614 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7615 comment, use m_dreg_interface.
7616 (create_watchpoint_request): Change to...
7617 (ppc_linux_nat_target::create_watchpoint_request): ...this
7618 method. Use m_dreg_interface.
7619 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7620 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7621 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7622 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7623 (ppc_linux_nat_target::low_forget_process)
7624 (ppc_linux_nat_target::low_new_fork)
7625 (ppc_linux_nat_target::low_new_clone)
7626 (ppc_linux_nat_target::low_delete_thread)
7627 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7628 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7629 only call mark_thread_stale.
7630 (ppc_linux_thread_exit): Remove.
7631 (ppc_linux_nat_target::stopped_data_address): Change to...
7632 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7633 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7634 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7635 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7636 comment. Call low_stopped_data_address.
7637 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7638 m_dreg_interface.
7639 (ppc_linux_nat_target::masked_watch_num_registers): Use
7640 m_dreg_interface.
7641 (ppc_linux_nat_target::copy_thread_dreg_state)
7642 (ppc_linux_nat_target::mark_thread_stale)
7643 (ppc_linux_nat_target::mark_debug_registers_changed)
7644 (ppc_linux_nat_target::register_hw_breakpoint)
7645 (ppc_linux_nat_target::clear_hw_breakpoint)
7646 (ppc_linux_nat_target::register_wp)
7647 (ppc_linux_nat_target::clear_wp)
7648 (ppc_linux_nat_target::init_arch_lwp_info)
7649 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7650 (_initialize_ppc_linux_nat): Remove observer callback.
7651
7652 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7653
7654 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7655 (ppc_linux_nat_target::auxv_parse)
7656 (ppc_linux_nat_target::read_description)
7657 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7658 Move up.
7659
7660 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7661
7662 * linux-nat.h (low_new_clone): New method.
7663 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7664
7665 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7666
7667 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7668 (dbx_expand_psymtab): ... this.
7669 (start_psymtab): Update.
7670 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7671 (mdebug_expand_psymtab): ... this.
7672 (parse_partial_symbols): Update.
7673 (new_psymtab): Update.
7674 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7675 (xcoff_expand_psymtab): ... this.
7676 (xcoff_start_psymtab): Update.
7677
7678 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7679
7680 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7681 <expand_dependencies>: ... this.
7682 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7683 (partial_symtab::expand_dependencies): ... this.
7684 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7685 Update.
7686 (dwarf2_psymtab::expand_psymtab): Update.
7687 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7688 * mdebugread.c (psymtab_to_symtab_1): Update.
7689 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7690
7691 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7692
7693 * psympriv.h (discard_psymtab): Remove.
7694 * dbxread.c (dbx_end_psymtab): Update.
7695 * xcoffread.c (xcoff_end_psymtab): Update.
7696
7697 2020-03-28 Tom Tromey <tom@tromey.com>
7698
7699 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7700 comment.
7701
7702 2020-03-28 Tom Tromey <tom@tromey.com>
7703
7704 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7705
7706 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7707
7708 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7709
7710 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7711
7712 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7713
7714 2020-03-26 Tom Tromey <tom@tromey.com>
7715
7716 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7717 (mark_common_block_symbol_computed, read_tag_string_type)
7718 (attr_to_dynamic_prop, read_subrange_type): Update.
7719 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7720 to be methods on struct attribute.
7721 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7722 (read_call_site_scope, partial_die_info::read)
7723 (partial_die_info::read, lookup_die_type, follow_die_ref):
7724 Update.
7725 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7726 from dwarf2_get_ref_die_offset.
7727 (attribute::constant_value): New method, from
7728 dwarf2_get_attr_constant_value.
7729 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7730 Declare method.
7731 <constant_value>: New method.
7732
7733 2020-03-26 Tom Tromey <tom@tromey.com>
7734
7735 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7736 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7737 (dwarf_type_encoding_name): Move to stringify.c.
7738 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7739 * dwarf2/stringify.c: New file.
7740 * dwarf2/stringify.h: New file.
7741
7742 2020-03-26 Tom Tromey <tom@tromey.com>
7743
7744 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7745 Rewrite.
7746
7747 2020-03-26 Tom Tromey <tom@tromey.com>
7748
7749 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7750 methods.
7751 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7752 (lookup_ranges_base): Likewise.
7753 (read_cutu_die_from_dwo, read_full_die_1): Update.
7754
7755 2020-03-26 Tom Tromey <tom@tromey.com>
7756
7757 * dwarf2/read.c (read_import_statement, read_file_scope)
7758 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7759 (read_lexical_block_scope, read_call_site_scope)
7760 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7761 (handle_struct_member_die, process_structure_scope)
7762 (update_enumeration_type_from_children)
7763 (process_enumeration_scope, read_array_type, read_common_block)
7764 (read_namespace, read_module, read_subroutine_type): Update.
7765 (sibling_die): Remove.
7766
7767 2020-03-26 Tom Tromey <tom@tromey.com>
7768
7769 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7770 (build_type_psymtabs_reader, read_structure_type)
7771 (read_enumeration_type, read_full_die_1): Update.
7772 (dwarf2_attr_no_follow): Move to die.h.
7773 * dwarf2/die.h (struct die_info) <attr>: New method.
7774
7775 2020-03-26 Tom Tromey <tom@tromey.com>
7776
7777 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7778 <base_address>: Now an optional.
7779 (dwarf2_find_base_address, dwarf2_rnglists_process)
7780 (dwarf2_ranges_process, fill_in_loclist_baton)
7781 (dwarf2_symbol_mark_computed): Update.
7782
7783 2020-03-26 Tom Tromey <tom@tromey.com>
7784
7785 * dwarf2/read.c (struct die_info): Move to die.h.
7786 * dwarf2/die.h: New file.
7787
7788 2020-03-26 Tom Tromey <tom@tromey.com>
7789
7790 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7791 * dwarf2/read.c
7792 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7793 Move to line-header.c.
7794 (read_checked_initial_length_and_offset, read_formatted_entries):
7795 Likewise.
7796 (dwarf_decode_line_header): Split into two.
7797 * dwarf2/line-header.c
7798 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7799 Move from read.c.
7800 (read_checked_initial_length_and_offset, read_formatted_entries):
7801 Likewise.
7802 (dwarf_decode_line_header): New function, split from read.c.
7803
7804 2020-03-26 Tom Tromey <tom@tromey.com>
7805
7806 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7807 Declare method.
7808 * dwarf2/read.c (read_attribute_value): Update.
7809 (dwarf2_per_objfile::read_line_string): Rename from
7810 read_indirect_line_string.
7811 (read_formatted_entries): Update.
7812
7813 2020-03-26 Tom Tromey <tom@tromey.com>
7814
7815 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7816 variable.
7817
7818 2020-03-26 Tom Tromey <tom@tromey.com>
7819
7820 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7821 const.
7822 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7823 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7824 parameter const.
7825
7826 2020-03-26 Tom Tromey <tom@tromey.com>
7827
7828 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7829 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7830 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7831 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7832
7833 2020-03-26 Tom Tromey <tom@tromey.com>
7834
7835 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7836 file_names_size, file_full_name, file_file_name>: Use const.
7837 <file_name_at, file_names>: Add const overload.
7838 * dwarf2/line-header.c (line_header::file_file_name)
7839 (line_header::file_full_name): Update.
7840
7841 2020-03-26 Tom Tromey <tom@tromey.com>
7842
7843 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7844 (macro_start_file, consume_improper_spaces)
7845 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7846 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7847 (dwarf_decode_macros): Move to macro.c.
7848 * dwarf2/macro.c: New file.
7849 * dwarf2/macro.h: New file.
7850 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7851
7852 2020-03-26 Tom Tromey <tom@tromey.com>
7853
7854 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7855 method.
7856 * dwarf2/section.c: New method. From
7857 read_indirect_string_at_offset_from.
7858 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7859 (read_indirect_string_at_offset_from): Move to section.c.
7860 (read_indirect_string_at_offset): Rewrite.
7861 (read_indirect_line_string_at_offset): Remove.
7862 (read_indirect_string, read_indirect_line_string)
7863 (dwarf_decode_macro_bytes): Update.
7864
7865 2020-03-26 Tom Tromey <tom@tromey.com>
7866
7867 * dwarf2/section.h (struct dwarf2_section_info)
7868 <overload_complaint>: Declare.
7869 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7870 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7871 Rename from dwarf2_section_buffer_overflow_complaint.
7872 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7873 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7874
7875 2020-03-26 Tom Tromey <tom@tromey.com>
7876
7877 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7878 Declare.
7879 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7880 Move from read.c.
7881 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7882 to section.c.
7883
7884 2020-03-26 Tom Tromey <tom@tromey.com>
7885
7886 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7887
7888 2020-03-26 Tom Tromey <tom@tromey.com>
7889
7890 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7891 "builder".
7892 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7893 parameter.
7894 (dwarf_decode_macros): Update.
7895
7896 2020-03-26 Tom Tromey <tom@tromey.com>
7897
7898 * dwarf2/read.c (read_attribute_value): Update.
7899 (read_indirect_string_from_dwz): Move to dwz.c; change into
7900 method.
7901 (dwarf_decode_macro_bytes): Update.
7902 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7903 * dwarf2/dwz.c: New file.
7904 * Makefile.in (COMMON_SFILES): Add dwz.c.
7905
7906 2020-03-26 Tom Tromey <tom@tromey.com>
7907
7908 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7909 * dwarf2/read.c: Add include.
7910 * dwarf2/index-write.c: Add include.
7911 * dwarf2/index-cache.c: Add include.
7912 * dwarf2/dwz.h: New file.
7913
7914 2020-03-25 Tom Tromey <tom@tromey.com>
7915
7916 * compile/compile-object-load.c (get_out_value_type): Mention
7917 correct symbol name in error message.
7918
7919 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7920
7921 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7922
7923 2020-03-25 Tom de Vries <tdevries@suse.de>
7924
7925 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7926 * symmisc.c (dump_symtab_1): Print user and includes fields.
7927 (maintenance_info_symtabs): Same.
7928
7929 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7930
7931 PR gdb/25534
7932 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7933 (riscv_regcache_cooked_write): New function.
7934 (riscv_push_dummy_call): Use new function.
7935 (riscv_return_value): Likewise.
7936
7937 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7938
7939 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7940 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7941 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7942 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7943 * infrun.c (follow_fork): Likewise.
7944 (follow_fork_inferior): Likewise.
7945 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7946 * linux-nat.h (class linux_nat_target): Likewise.
7947 * remote.c (class remote_target) <follow_fork>: Likewise.
7948 (remote_target::follow_fork): Likewise.
7949 * target-delegates.c: Re-generate.
7950 * target.c (default_follow_fork): Likewise.
7951 (target_follow_fork): Likewise.
7952 * target.h (struct target_ops) <follow_fork>: Likewise.
7953 (target_follow_fork): Likewise.
7954
7955 2020-03-24 Tom de Vries <tdevries@suse.de>
7956
7957 * psymtab.c (maintenance_info_psymtabs): Print user field.
7958
7959 2020-03-20 Tom Tromey <tromey@adacore.com>
7960
7961 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7962 const.
7963 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7964 const.
7965
7966 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7967
7968 * ptrace.m4: Don't check for ptrace declaration.
7969 * config.in: Re-generate.
7970 * configure: Re-generate.
7971 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7972 not defined.
7973
7974 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7975
7976 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7977 `PTRACE_TYPE_RET'.
7978 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7979 * sparc-nat.c (gdb_ptrace): Likewise.
7980 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7981
7982 2020-03-20 Tom Tromey <tromey@adacore.com>
7983
7984 * c-exp.y (lex_one_token): Fix assert.
7985
7986 2020-03-20 Tom Tromey <tromey@adacore.com>
7987
7988 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7989 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7990 strncpy call.
7991
7992 2020-03-20 Tom Tromey <tromey@adacore.com>
7993
7994 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7995
7996 2020-03-20 Tom Tromey <tromey@adacore.com>
7997
7998 * ada-valprint.c (print_variant_part): Remove parameters; switch
7999 to value-based API.
8000 (print_field_values): Likewise.
8001 (ada_val_print_struct_union): Likewise.
8002 (ada_value_print_1): Update.
8003
8004 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8005
8006 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8007 nbsd_nat_target instead of inf_ptrace_target.
8008 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8009 nbsd_nat_target.
8010
8011 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8012
8013 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8014 it to the ptrace call.
8015 * (store_registers): Likewise.
8016
8017 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8018
8019 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8020 it to the ptrace call.
8021 * (store_registers): Likewise.
8022
8023 2020-03-19 Luis Machado <luis.machado@linaro.org>
8024
8025 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8026 valid, fetch vg value from ptrace.
8027
8028 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8029 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8030 * inf-ptrace.c: Likewise.
8031 * (gdb_ptrace): Add.
8032 * (inf_ptrace_target::resume): Update.
8033 * (inf_ptrace_target::xfer_partial): Likewise.
8034 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8035 * (inf_ptrace_peek_poke): Update.
8036
8037 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8038
8039 * x86-bsd-nat.c (gdb_ptrace): New.
8040 * (x86bsd_dr_set): Add new argument `ptid'.
8041 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8042 x86bsd_dr_set_addr): Update.
8043
8044 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8045
8046 * remote.c (remote_target::process_stop_reply): Handle events for
8047 all threads differently.
8048
8049 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8050
8051 * completer.c (completion_tracker::remove_completion): Define new
8052 function.
8053 * completer.h (completion_tracker::remove_completion): Declare new
8054 function.
8055 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8056 when adding a C++ function symbol.
8057
8058 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8059
8060 * completer.c (completion_tracker::completion_hash_entry): Define
8061 new class.
8062 (advance_to_filename_complete_word_point): Call
8063 recompute_lowest_common_denominator.
8064 (completion_tracker::completion_tracker): Call discard_completions
8065 to setup the hash table.
8066 (completion_tracker::discard_completions): Allow for being called
8067 from the constructor, pass new equal function, and element deleter
8068 when constructing the hash table. Initialise new class member
8069 variables.
8070 (completion_tracker::maybe_add_completion): Remove use of
8071 m_entries_vec, and store more information into m_entries_hash.
8072 (completion_tracker::recompute_lcd_visitor): New function, most
8073 content taken from...
8074 (completion_tracker::recompute_lowest_common_denominator):
8075 ...here, this now just visits each item in the hash calling the
8076 above visitor.
8077 (completion_tracker::build_completion_result): Remove use of
8078 m_entries_vec, call recompute_lowest_common_denominator.
8079 * completer.h (completion_tracker::have_completions): Remove use
8080 of m_entries_vec.
8081 (completion_tracker::completion_hash_entry): Declare new class.
8082 (completion_tracker::recompute_lowest_common_denominator): Change
8083 function signature.
8084 (completion_tracker::recompute_lcd_visitor): Declare new function.
8085 (completion_tracker::m_entries_vec): Delete.
8086 (completion_tracker::m_entries_hash): Initialize to NULL.
8087 (completion_tracker::m_lowest_common_denominator_valid): New
8088 member variable.
8089 (completion_tracker::m_lowest_common_denominator_max_length): New
8090 member variable.
8091
8092 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8093
8094 * regformats/regdef.h: Put reg in gdb namespace.
8095
8096 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8097
8098 * i386-bsd-nat.c (gdb_ptrace): New.
8099 * (i386bsd_fetch_inferior_registers,
8100 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8101 * (i386bsd_fetch_inferior_registers,
8102 i386bsd_store_inferior_registers) Use gdb_ptrace.
8103
8104 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8105
8106 * amd64-bsd-nat.c (gdb_ptrace): New.
8107 * (amd64bsd_fetch_inferior_registers,
8108 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8109 * (amd64bsd_fetch_inferior_registers,
8110 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8111
8112 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8113
8114 * user-regs.c (user_reg::read): Rename to...
8115 (user_reg::xread): ...this.
8116 * (append_user_reg): Rename argument `read' to `xread'.
8117 * (user_reg_add_builtin): Likewise.
8118 * (user_reg_add): Likewise.
8119 * (value_of_user_reg): Likewise.
8120
8121 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8122
8123 * sparc-nat.c (gdb_ptrace): New.
8124 * sparc-nat.c (sparc_fetch_inferior_registers)
8125 (sparc_store_inferior_registers) Remove obsolete comment.
8126 * sparc-nat.c (sparc_fetch_inferior_registers)
8127 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8128 * sparc-nat.c (sparc_fetch_inferior_registers)
8129 (sparc_store_inferior_registers) Use gdb_ptrace.
8130
8131 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8132
8133 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8134 it to the ptrace call.
8135 * sh-nbsd-nat.c (store_registers): Likewise.
8136
8137 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8138
8139 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8140 nbsd_nat_target instead of inf_ptrace_target.
8141 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8142 nbsd_nat_target.
8143
8144 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8145
8146 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8147
8148 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8149
8150 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8151 <sys/sysctl.h>.
8152 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8153
8154 2020-03-17 Tom de Vries <tdevries@suse.de>
8155
8156 PR gdb/23710
8157 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8158 fields.
8159 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8160 fields.
8161 (process_imported_unit_die): Skip import of c++ CUs.
8162
8163 2020-03-16 Tom Tromey <tom@tromey.com>
8164
8165 * p-valprint.c (pascal_object_print_value): Initialize
8166 base_value.
8167
8168 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8169 Shahab Vahedi <shahab@synopsys.com>
8170
8171 * Makefile.in: Add arch/arc.o
8172 * configure.tgt: Likewise.
8173 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8174 (_initialize_arc_tdep): Don't initialize old target descriptions.
8175 (arc_read_description): New function to cache target descriptions.
8176 * arc-tdep.h (arc_read_description): Add proto type.
8177 * arch/arc.c: New file.
8178 * arch/arc.h: Likewise.
8179 * features/Makefile: Replace old target descriptions with new.
8180 * features/arc-arcompact.c: Remove.
8181 * features/arc-arcompact.xml: Likewise.
8182 * features/arc-v2.c: Likewise
8183 * features/arc-v2.xml: Likewise
8184 * features/arc/aux-arcompact.xml: New file.
8185 * features/arc/aux-v2.xml: Likewise.
8186 * features/arc/core-arcompact.xml: Likewise.
8187 * features/arc/core-v2.xml: Likewise.
8188 * features/arc/aux-arcompact.c: Generate.
8189 * features/arc/aux-v2.c: Likewise.
8190 * features/arc/core-arcompact.c: Likewise.
8191 * features/arc/core-v2.c: Likewise.
8192 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8193
8194 2020-03-16 Tom Tromey <tromey@adacore.com>
8195
8196 PR gdb/25663:
8197 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8198 putting value into bcache.
8199
8200 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8201
8202 PR gdb/21500
8203 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8204 to...
8205 (amd64_windows_init_abi_common): ... this. Don't set size of
8206 long type.
8207 (amd64_windows_init_abi): New function.
8208 (amd64_cygwin_init_abi): New function.
8209 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8210 the Cygwin OS ABI.
8211 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8212 comment.
8213
8214 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8215
8216 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8217 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8218 (pe_import_directory_entry): New struct type.
8219 (is_linked_with_cygwin_dll): New function.
8220 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8221 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8222 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8223
8224 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8225
8226 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8227 i386_cygwin_core_osabi_sniffer.
8228
8229 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8230
8231 * i386-cygwin-tdep.c: Rename to...
8232 * i386-windows-tdep.c: ... this.
8233 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8234 i386-windows-tdep.c.
8235 * configure.tgt: Likewise.
8236
8237 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8238
8239 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8240 * osabi.c (gdb_osabi_names): Add "Windows".
8241 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8242 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8243 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8244 i386_cygwin_osabi_sniffer.
8245 (_initialize_i386_cygwin_tdep): Register OS ABI
8246 GDB_OSABI_WINDOWS for i386.
8247 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8248 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8249 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8250 for x86-64.
8251 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8252 when the target matches '*-*-mingw*'.
8253
8254 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8255
8256 * defs.h (enum gdb_osabi): Move to...
8257 * osabi.h (enum gdb_osabi): ... here.
8258 * gdbarch.sh: Include osabi.h in gdbarch.h.
8259 * gdbarch.h: Re-generate.
8260
8261 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8262
8263 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8264 function.
8265 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8266
8267 2020-03-14 Tom Tromey <tom@tromey.com>
8268
8269 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8270 for C++.
8271 (c_type_print_modifier): Likewise. Add "language" parameter.
8272 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8273 (c_type_print_base_1): Update.
8274 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8275 constants.
8276 * type-stack.c (type_stack::insert): Handle tp_atomic and
8277 tp_restrict.
8278 (type_stack::follow_type_instance_flags): Likewise.
8279 (type_stack::follow_types): Likewise. Merge type-following code.
8280 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8281 (space_identifier, cv_with_space_id)
8282 (const_or_volatile_or_space_identifier_noopt)
8283 (const_or_volatile_or_space_identifier): Remove.
8284 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8285 rules.
8286 (ptr_operator, typebase): Update.
8287 (enum token_flag) <FLAG_C>: New constant.
8288 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8289 "_Atomic".
8290 (lex_one_token): Handle FLAG_C.
8291
8292 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8293
8294 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8295 it to the ptrace call.
8296 * m68k-bsd-nat.c (store_registers): Likewise.
8297
8298 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8299
8300 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8301 gdb_byte *.
8302 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8303 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8304 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8305
8306 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8307
8308 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8309 nbsd_nat_target instead of inf_ptrace_target.
8310 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8311 nbsd_nat_target.
8312
8313 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8314
8315 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8316 register_t.
8317
8318 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8319
8320 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8321 it to the ptrace call.
8322 * alpha-bsd-nat.c (store_registers): Likewise.
8323
8324 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8325
8326 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8327 includes.
8328 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8329 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8330 fill_fpregset): Likewise.
8331
8332 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8333
8334 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8335 nbsd_nat_target instead of inf_ptrace_target.
8336 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8337 nbsd_nat_target.
8338
8339 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8340
8341 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8342 register_t.
8343
8344 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8345
8346 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8347 it to the ptrace call.
8348 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8349 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8350 * arm-nbsd-nat.c (store_register): Likewise.
8351 * arm-nbsd-nat.c (store_regs): Likewise.
8352 * arm-nbsd-nat.c (store_fp_register): Likewise.
8353 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8354
8355 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8356
8357 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8358 nbsd_nat_target instead of inf_ptrace_target.
8359 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8360 nbsd_nat_target.
8361
8362 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8363
8364 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8365 it to the ptrace call.
8366 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8367
8368 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8369
8370 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8371 it to the ptrace call.
8372 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8373
8374 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8375
8376 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8377 gdb_byte *.
8378 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8379
8380 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8381
8382 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8383 instead of inf_ptrace_target.
8384 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8385 nbsd_nat_target.
8386
8387 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8388
8389 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8390 register_t.
8391
8392 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8393
8394 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8395 register_t.
8396
8397 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8398
8399 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8400 register_t.
8401
8402 2020-03-13 Tom Tromey <tom@tromey.com>
8403
8404 * value.h (val_print): Don't declare.
8405 * valprint.h (val_print_array_elements)
8406 (val_print_scalar_formatted, generic_val_print): Don't declare.
8407 * valprint.c (generic_val_print_array): Take a struct value.
8408 (generic_val_print_ptr, generic_val_print_memberptr)
8409 (generic_val_print_bool, generic_val_print_int)
8410 (generic_val_print_char, generic_val_print_complex)
8411 (generic_val_print): Remove.
8412 (generic_value_print): Update.
8413 (do_val_print): Remove unused parameters. Don't call
8414 la_val_print.
8415 (val_print): Remove.
8416 (common_val_print): Update. Don't call value_check_printable.
8417 (val_print_scalar_formatted, val_print_array_elements): Remove.
8418 * rust-lang.c (rust_val_print): Remove.
8419 (rust_language_defn): Update.
8420 * p-valprint.c (pascal_val_print): Remove.
8421 (pascal_value_print_inner): Update.
8422 (pascal_object_print_val_fields, pascal_object_print_val):
8423 Remove.
8424 (pascal_object_print_static_field): Update.
8425 * p-lang.h (pascal_val_print): Don't declare.
8426 * p-lang.c (pascal_language_defn): Update.
8427 * opencl-lang.c (opencl_language_defn): Update.
8428 * objc-lang.c (objc_language_defn): Update.
8429 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8430 * m2-lang.h (m2_val_print): Don't declare.
8431 * m2-lang.c (m2_language_defn): Update.
8432 * language.h (struct language_defn) <la_val_print>: Remove.
8433 * language.c (unk_lang_value_print_inner): Rename. Change
8434 argument types.
8435 (unknown_language_defn, auto_language_defn): Update.
8436 * go-valprint.c (go_val_print): Remove.
8437 * go-lang.h (go_val_print): Don't declare.
8438 * go-lang.c (go_language_defn): Update.
8439 * f-valprint.c (f_val_print): Remove.
8440 * f-lang.h (f_value_print): Don't declare.
8441 * f-lang.c (f_language_defn): Update.
8442 * d-valprint.c (d_val_print): Remove.
8443 * d-lang.h (d_value_print): Don't declare.
8444 * d-lang.c (d_language_defn): Update.
8445 * cp-valprint.c (cp_print_value_fields)
8446 (cp_print_value_fields_rtti, cp_print_value): Remove.
8447 (cp_print_static_field): Update.
8448 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8449 (c_val_print_struct, c_val_print_union, c_val_print_int)
8450 (c_val_print_memberptr, c_val_print): Remove.
8451 * c-lang.h (c_val_print_array, cp_print_value_fields)
8452 (cp_print_value_fields_rtti): Don't declare.
8453 * c-lang.c (c_language_defn, cplus_language_defn)
8454 (asm_language_defn, minimal_language_defn): Update.
8455 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8456 (ada_val_print_enum): Take a struct value.
8457 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8458 (ada_val_print): Remove.
8459 (ada_value_print_1): Update.
8460 (printable_val_type): Remove.
8461 * ada-lang.h (ada_val_print): Don't declare.
8462 * ada-lang.c (ada_language_defn): Update.
8463
8464 2020-03-13 Tom Tromey <tom@tromey.com>
8465
8466 * valprint.c (do_val_print): Update.
8467 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8468 a struct value.
8469 (value_to_value_object_no_release): Declare.
8470 * python/py-value.c (value_to_value_object_no_release): New
8471 function.
8472 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8473 struct value.
8474 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8475 function.
8476 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8477 a struct value.
8478 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8479 Declare.
8480 (gdbscm_apply_val_pretty_printer): Take a struct value.
8481 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8482 value.
8483 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8484 value.
8485 * extension-priv.h (struct extension_language_ops)
8486 <apply_val_pretty_printer>: Take a struct value.
8487 * cp-valprint.c (cp_print_value): Create a struct value.
8488 (cp_print_value): Update.
8489
8490 2020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * ada-valprint.c (print_field_values): Call common_val_print.
8493
8494 2020-03-13 Tom Tromey <tom@tromey.com>
8495
8496 * ada-valprint.c (val_print_packed_array_elements): Remove
8497 bitoffset and val parameters. Call common_val_print.
8498 (ada_val_print_string): Remove offset, address, and original_value
8499 parameters.
8500 (ada_val_print_array): Update.
8501 (ada_value_print_array): New function.
8502 (ada_value_print_1): Call it.
8503
8504 2020-03-13 Tom Tromey <tom@tromey.com>
8505
8506 * ada-valprint.c (ada_value_print): Use common_val_print.
8507
8508 2020-03-13 Tom Tromey <tom@tromey.com>
8509
8510 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8511
8512 2020-03-13 Tom Tromey <tom@tromey.com>
8513
8514 * ada-valprint.c (ada_value_print_num): New function.
8515 (ada_value_print_1): Use it.
8516
8517 2020-03-13 Tom Tromey <tom@tromey.com>
8518
8519 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8520
8521 2020-03-13 Tom Tromey <tom@tromey.com>
8522
8523 * ada-valprint.c (ada_value_print_ptr): New function.
8524 (ada_value_print_1): Use it.
8525
8526 2020-03-13 Tom Tromey <tom@tromey.com>
8527
8528 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8529 call common_val_print.
8530 (ada_val_print_1): Update.
8531 (ada_value_print_1): New function.
8532 (ada_value_print_inner): Rewrite.
8533
8534 2020-03-13 Tom Tromey <tom@tromey.com>
8535
8536 * cp-valprint.c (cp_print_value_fields): Update.
8537 (cp_print_value): New function.
8538
8539 2020-03-13 Tom Tromey <tom@tromey.com>
8540
8541 * m2-valprint.c (m2_value_print_inner): Use
8542 cp_print_value_fields.
8543 * cp-valprint.c (cp_print_value_fields): New function.
8544 * c-valprint.c (c_value_print_struct): New function.
8545 (c_value_print_inner): Use c_value_print_struct.
8546 * c-lang.h (cp_print_value_fields): Declare.
8547
8548 2020-03-13 Tom Tromey <tom@tromey.com>
8549
8550 * c-valprint.c (c_value_print_array): New function.
8551 (c_value_print_inner): Use it.
8552
8553 2020-03-13 Tom Tromey <tom@tromey.com>
8554
8555 * c-valprint.c (c_value_print_memberptr): New function.
8556 (c_value_print_inner): Use it.
8557
8558 2020-03-13 Tom Tromey <tom@tromey.com>
8559
8560 * c-valprint.c (c_value_print_int): New function.
8561 (c_value_print_inner): Use it.
8562
8563 2020-03-13 Tom Tromey <tom@tromey.com>
8564
8565 * c-valprint.c (c_value_print_ptr): New function.
8566 (c_value_print_inner): Use it.
8567
8568 2020-03-13 Tom Tromey <tom@tromey.com>
8569
8570 * c-valprint.c (c_value_print_inner): Rewrite.
8571
8572 2020-03-13 Tom Tromey <tom@tromey.com>
8573
8574 * valprint.c (generic_value_print_complex): New function.
8575 (generic_value_print): Use it.
8576
8577 2020-03-13 Tom Tromey <tom@tromey.com>
8578
8579 * valprint.c (generic_val_print_float): Don't call
8580 val_print_scalar_formatted.
8581 (generic_val_print, generic_value_print): Update.
8582
8583 2020-03-13 Tom Tromey <tom@tromey.com>
8584
8585 * valprint.c (generic_value_print_char): New function
8586 (generic_value_print): Use it.
8587
8588 2020-03-13 Tom Tromey <tom@tromey.com>
8589
8590 * valprint.c (generic_value_print_int): New function.
8591 (generic_value_print): Use it.
8592
8593 2020-03-13 Tom Tromey <tom@tromey.com>
8594
8595 * valprint.c (generic_value_print_bool): New function.
8596 (generic_value_print): Use it.
8597
8598 2020-03-13 Tom Tromey <tom@tromey.com>
8599
8600 * valprint.c (generic_val_print_func): Simplify.
8601 (generic_val_print, generic_value_print): Update.
8602
8603 2020-03-13 Tom Tromey <tom@tromey.com>
8604
8605 * valprint.c (generic_val_print_flags): Remove.
8606 (generic_val_print, generic_value_print): Update.
8607 (val_print_type_code_flags): Add original_value parameter.
8608
8609 2020-03-13 Tom Tromey <tom@tromey.com>
8610
8611 * valprint.c (generic_val_print): Update.
8612 (generic_value_print): Update.
8613 * valprint.c (generic_val_print_enum): Don't call
8614 val_print_scalar_formatted.
8615
8616 2020-03-13 Tom Tromey <tom@tromey.com>
8617
8618 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8619 * valprint.c (generic_value_print_ptr): New function.
8620
8621 2020-03-13 Tom Tromey <tom@tromey.com>
8622
8623 * valprint.c (generic_value_print): Rewrite.
8624
8625 2020-03-13 Tom Tromey <tom@tromey.com>
8626
8627 * p-valprint.c (pascal_object_print_value_fields)
8628 (pascal_object_print_value): New functions.
8629
8630 2020-03-13 Tom Tromey <tom@tromey.com>
8631
8632 * p-valprint.c (pascal_value_print_inner): Rewrite.
8633
8634 2020-03-13 Tom Tromey <tom@tromey.com>
8635
8636 * f-valprint.c (f_value_print_innner): Rewrite.
8637
8638 2020-03-13 Tom Tromey <tom@tromey.com>
8639
8640 * m2-valprint.c (m2_print_unbounded_array): New overload.
8641 (m2_print_unbounded_array): Update.
8642 (m2_print_array_contents): Take a struct value.
8643 (m2_value_print_inner): Rewrite.
8644
8645 2020-03-13 Tom Tromey <tom@tromey.com>
8646
8647 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8648 (d_value_print_inner): New function.
8649 * d-lang.h (d_value_print_inner): Declare.
8650 * d-lang.c (d_language_defn): Use d_value_print_inner.
8651
8652 2020-03-13 Tom Tromey <tom@tromey.com>
8653
8654 * go-valprint.c (go_value_print_inner): New function.
8655 * go-lang.h (go_value_print_inner): Declare.
8656 * go-lang.c (go_language_defn): Use go_value_print_inner.
8657
8658 2020-03-13 Tom Tromey <tom@tromey.com>
8659
8660 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8661 API.
8662 (rust_val_print): Rewrite.
8663 (rust_value_print_inner): New function, from rust_val_print.
8664 (rust_language_defn): Use rust_value_print_inner.
8665
8666 2020-03-13 Tom Tromey <tom@tromey.com>
8667
8668 * ada-valprint.c (ada_value_print_inner): New function.
8669 * ada-lang.h (ada_value_print_inner): Declare.
8670 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8671
8672 2020-03-13 Tom Tromey <tom@tromey.com>
8673
8674 * f-valprint.c (f_value_print_innner): New function.
8675 * f-lang.h (f_value_print_innner): Declare.
8676 * f-lang.c (f_language_defn): Use f_value_print_innner.
8677
8678 2020-03-13 Tom Tromey <tom@tromey.com>
8679
8680 * p-valprint.c (pascal_value_print_inner): New function.
8681 * p-lang.h (pascal_value_print_inner): Declare.
8682 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8683
8684 2020-03-13 Tom Tromey <tom@tromey.com>
8685
8686 * m2-valprint.c (m2_value_print_inner): New function.
8687 * m2-lang.h (m2_value_print_inner): Declare.
8688 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8689
8690 2020-03-13 Tom Tromey <tom@tromey.com>
8691
8692 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8693 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8694 * c-valprint.c (c_value_print_inner): New function.
8695 * c-lang.h (c_value_print_inner): Declare.
8696 * c-lang.c (c_language_defn, cplus_language_defn)
8697 (asm_language_defn, minimal_language_defn): Use
8698 c_value_print_inner.
8699
8700 2020-03-13 Tom Tromey <tom@tromey.com>
8701
8702 * p-valprint.c (pascal_object_print_value_fields): Now static.
8703 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8704
8705 2020-03-13 Tom Tromey <tom@tromey.com>
8706
8707 * c-valprint.c (c_val_print_array): Simplify.
8708
8709 2020-03-13 Tom Tromey <tom@tromey.com>
8710
8711 * valprint.c (value_print_array_elements): New function.
8712 * valprint.h (value_print_array_elements): Declare.
8713
8714 2020-03-13 Tom Tromey <tom@tromey.com>
8715
8716 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8717 * mips-tdep.c (mips_print_register): Use
8718 value_print_scalar_formatted.
8719
8720 2020-03-13 Tom Tromey <tom@tromey.com>
8721
8722 * valprint.h (value_print_scalar_formatted): Declare.
8723 * valprint.c (value_print_scalar_formatted): New function.
8724
8725 2020-03-13 Tom Tromey <tom@tromey.com>
8726
8727 * valprint.h (generic_value_print): Declare.
8728 * valprint.c (generic_value_print): New function.
8729
8730 2020-03-13 Tom Tromey <tom@tromey.com>
8731
8732 * valprint.c (do_val_print): Call la_value_print_inner, if
8733 available.
8734 * rust-lang.c (rust_language_defn): Update.
8735 * p-lang.c (pascal_language_defn): Update.
8736 * opencl-lang.c (opencl_language_defn): Update.
8737 * objc-lang.c (objc_language_defn): Update.
8738 * m2-lang.c (m2_language_defn): Update.
8739 * language.h (struct language_defn) <la_value_print_inner>: New
8740 member.
8741 * language.c (unknown_language_defn, auto_language_defn): Update.
8742 * go-lang.c (go_language_defn): Update.
8743 * f-lang.c (f_language_defn): Update.
8744 * d-lang.c (d_language_defn): Update.
8745 * c-lang.c (c_language_defn, cplus_language_defn)
8746 (asm_language_defn, minimal_language_defn): Update.
8747 * ada-lang.c (ada_language_defn): Update.
8748
8749 2020-03-13 Tom Tromey <tom@tromey.com>
8750
8751 * c-valprint.c (c_value_print): Use common_val_print.
8752
8753 2020-03-13 Tom Tromey <tom@tromey.com>
8754
8755 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8756
8757 2020-03-13 Tom Tromey <tom@tromey.com>
8758
8759 * f-valprint.c (f77_print_array_1, f_val_print): Use
8760 common_val_print.
8761
8762 2020-03-13 Tom Tromey <tom@tromey.com>
8763
8764 * riscv-tdep.c (riscv_print_one_register_info): Use
8765 common_val_print.
8766
8767 2020-03-13 Tom Tromey <tom@tromey.com>
8768
8769 * mi/mi-main.c (output_register): Use common_val_print.
8770
8771 2020-03-13 Tom Tromey <tom@tromey.com>
8772
8773 * infcmd.c (default_print_one_register_info): Use
8774 common_val_print.
8775
8776 2020-03-13 Tom Tromey <tom@tromey.com>
8777
8778 * valprint.h (common_val_print_checked): Declare.
8779 * valprint.c (common_val_print_checked): New function.
8780 * stack.c (print_frame_arg): Use common_val_print_checked.
8781
8782 2020-03-13 Tom Tromey <tom@tromey.com>
8783
8784 * valprint.c (do_val_print): New function, from val_print.
8785 (val_print): Use do_val_print.
8786 (common_val_print): Use do_val_print.
8787
8788 2020-03-13 Tom Tromey <tom@tromey.com>
8789
8790 * valprint.c (value_print): Use scoped_value_mark.
8791
8792 2020-03-13 Tom de Vries <tdevries@suse.de>
8793
8794 PR symtab/25646
8795 * psymtab.c (partial_symtab::partial_symtab): Don't set
8796 globals_offset and statics_offset. Push element onto
8797 current_global_psymbols and current_static_psymbols stacks.
8798 (concat): New function.
8799 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8800 element from current_global_psymbols and current_static_psymbols
8801 stacks. Concat popped elements to global_psymbols and
8802 static_symbols.
8803 (add_psymbol_to_list): Use current_global_psymbols and
8804 current_static_psymbols stacks.
8805 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8806 current_static_psymbols fields.
8807
8808 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8809
8810 * corelow.c (sniff_core_bfd): Remove.
8811 (class core_target) <m_core_vec>: Remove.
8812 (core_target::core_target): Update.
8813 (core_file_fns): Remove.
8814 (deprecated_add_core_fns): Remove.
8815 (default_core_sniffer): Remove.
8816 (sniff_core_bfd): Remove.
8817 (default_check_format): Remove.
8818 (gdb_check_format): Remove.
8819 (core_target_open): Update.
8820 (core_target::get_core_register_section): Update.
8821 (get_core_registers_cb): Update.
8822 (core_target::fetch_registers): Update.
8823 * gdbcore.h (struct core_fns): Remove.
8824 (deprecated_add_core_fns): Remove.
8825 (default_core_sniffer): Remove.
8826 (default_check_format): Remove.
8827
8828 2020-03-12 Tom Tromey <tom@tromey.com>
8829
8830 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8831 CORE_ADDR.
8832 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8833
8834 2020-03-12 Tom Tromey <tom@tromey.com>
8835
8836 * remote.c (remote_target::download_tracepoint)
8837 (remote_target::enable_tracepoint)
8838 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8839 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8840 sprintf_vma.
8841
8842 2020-03-12 Tom Tromey <tom@tromey.com>
8843
8844 * symfile-mem.c: Update CORE_ADDR size assert.
8845
8846 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8847
8848 * selftest.m4: Move to gdbsupport/.
8849 * acinclude.m4: Update path to selftest.m4.
8850
8851 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8852
8853 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8854 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8855 gdbarch-selfselftests.c and selftest-arch.c.
8856 (SUBDIR_UNITTESTS_OBS): Rename to...
8857 (SELFTESTS_OBS): ... this.
8858 (COMMON_SFILES): Remove disasm-selftests.c and
8859 gdbarch-selftests.c.
8860 * configure.ac: Don't add selftest-arch.{c,o} to
8861 CONFIG_{SRCS,OBS}.
8862 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8863 preprocessor conditions.
8864
8865 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8866
8867 * configure.ac: Don't source bfd/development.sh.
8868 * selftest.m4: Modify comment.
8869 * configure: Re-generate.
8870
8871 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8872
8873 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8874 not "true" or "false".
8875 * configure: Re-generate.
8876
8877 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8878
8879 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8880 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8881 renamed to arm_nbsd_supply_gregset.
8882 (fetch_register): Update to call arm_nbsd_supply_gregset.
8883 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8884 (arm_netbsd_nat_target::fetch_registers): Update.
8885 (fetch_elfcore_registers): Removed.
8886 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8887 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8888 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8889 not require NetBSD system headers.
8890 (arm_nbsd_regset): New struct.
8891 (arm_nbsd_iterate_over_regset_sections): New function.
8892 (arm_netbsd_init_abi_common): Updated to call
8893 set_gdbarch_iterate_over_regset_sections.
8894 * arm-nbsd-tdep.h: New file.
8895
8896 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8897
8898 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8899 recursion.
8900
8901 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8902
8903 * configure: Re-generate.
8904
8905 2020-03-11 Tom Tromey <tromey@adacore.com>
8906
8907 * ada-typeprint.c (print_choices): Fix comment.
8908
8909 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8910
8911 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8912 previous item in the list, when the list has no items.
8913
8914 2020-03-11 Tom de Vries <tdevries@suse.de>
8915
8916 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8917 PROP_LOCLIST handling code.
8918
8919 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8920
8921 * buildsym-legacy.c (record_line): Pass extra parameter to
8922 record_line.
8923 * buildsym.c (buildsym_compunit::record_line): Take an extra
8924 parameter, reduce duplication in the line table, and record the
8925 is_stmt flag in the line table.
8926 * buildsym.h (buildsym_compunit::record_line): Add extra
8927 parameter.
8928 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8929 non-statement lines.
8930 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8931 this to the symtab builder.
8932 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8933 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8934 through to dwarf_record_line_1.
8935 * infrun.c (process_event_stop_test): When stepping, don't stop at
8936 a non-statement instruction, and only refresh the step info when
8937 we land in the middle of a line's range. Also add an extra
8938 comment.
8939 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8940 field.
8941 * record-btrace.c (btrace_find_line_range): Only record lines
8942 marked as is-statement.
8943 * stack.c (frame_show_address): Show the frame address if we are
8944 in a non-statement sal.
8945 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8946 (maintenance_print_one_line_table): Print a header for the is_stmt
8947 column, and include is_stmt information in the output.
8948 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8949 preference to non-statements.
8950 (find_pcs_for_symtab_line): Prefer is-statement entries.
8951 (find_line_common): Likewise.
8952 * symtab.h (struct linetable_entry): Add is_stmt field.
8953 (struct symtab_and_line): Likewise.
8954 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8955 arranging the line table.
8956
8957 2020-03-07 Tom de Vries <tdevries@suse.de>
8958
8959 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8960 DIE.
8961
8962 2020-03-07 Tom Tromey <tom@tromey.com>
8963
8964 * valops.c (value_literal_complex): Remove obsolete comment.
8965 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8966 comment.
8967
8968 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8969
8970 * infrun.h: Forward-declare thread_info.
8971 (set_step_info): Add thread_info parameter, add doc.
8972 * infrun.c (set_step_info): Add thread_info parameter, move doc
8973 to header.
8974 * infrun.c (process_event_stop_test): Pass thread to
8975 set_step_info call.
8976 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8977 set_step_info.
8978 (prepare_one_step): Add thread_info parameter, pass it to
8979 set_step_frame and prepare_one_step (recursive) call.
8980 (step_1): Pass thread to prepare_one_step call.
8981 (step_command_fsm::should_stop): Pass thread to
8982 prepare_one_step.
8983 (until_next_fsm): Pass thread to set_step_frame call.
8984 (finish_command): Pass thread to set_step_info call.
8985
8986 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8987
8988 * windows-tdep.c (windows_solib_create_inferior_hook):
8989 Check if inferior is running.
8990
8991 2020-03-06 Tom de Vries <tdevries@suse.de>
8992
8993 * NEWS: Fix "the the".
8994 * ctfread.c: Same.
8995
8996 2020-03-06 Tom de Vries <tdevries@suse.de>
8997
8998 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8999
9000 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9001
9002 * .dir-locals.el: Add a comment referencing the other copies of
9003 this file.
9004
9005 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9006
9007 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9008 psargs.
9009
9010 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9011
9012 * .gitattributes: New file.
9013
9014 2020-03-04 Tom Tromey <tom@tromey.com>
9015
9016 * symmisc.c (print_symbol_bcache_statistics)
9017 (print_objfile_statistics): Update.
9018 * symfile.c (allocate_symtab): Use intern.
9019 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9020 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9021 macro_cache>: Remove.
9022 <string_cache>: New member.
9023 (struct objfile) <intern>: New methods.
9024 * elfread.c (elf_symtab_read): Use intern.
9025 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9026 (dwarf2_compute_name, dwarf2_physname)
9027 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9028 names.
9029 (guess_partial_die_structure_name): Update.
9030 (partial_die_info::fixup): Intern name.
9031 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9032 name.
9033 (dwarf2_name): Intern name. Update.
9034 * buildsym.c (buildsym_compunit::get_macro_table): Use
9035 string_cache.
9036
9037 2020-03-04 Tom Tromey <tom@tromey.com>
9038
9039 * jit.c (bfd_open_from_target_memory): Make "target" const.
9040 * corefile.c (gnutarget): Now const.
9041 * gdbcore.h (gnutarget): Now const.
9042
9043 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9044
9045 * NEWS: Mention support for WOW64 processes.
9046 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9047 (amd64_windows_segment_register_p): Remove static.
9048 (_initialize_amd64_windows_nat): Update.
9049 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9050 * i386-windows-nat.c (context_offset): Update.
9051 (i386_mappings): Rename and remove static.
9052 (i386_windows_segment_register_p): Remove static.
9053 (_initialize_i386_windows_nat): Update.
9054 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9055 (STATUS_WX86_SINGLE_STEP): New macro.
9056 (EnumProcessModulesEx): New macro.
9057 (Wow64SuspendThread): New macro.
9058 (Wow64GetThreadContext): New macro.
9059 (Wow64SetThreadContext): New macro.
9060 (Wow64GetThreadSelectorEntry): New macro.
9061 (windows_set_context_register_offsets): Add static.
9062 (windows_set_segment_register_p): Likewise.
9063 (windows_add_thread): Adapt for WOW64 processes.
9064 (windows_fetch_one_register): Likewise.
9065 (windows_nat_target::fetch_registers): Likewise.
9066 (windows_store_one_register): Likewise.
9067 (display_selector): Likewise.
9068 (display_selectors): Likewise.
9069 (handle_exception): Likewise.
9070 (windows_continue): Likewise.
9071 (windows_nat_target::resume): Likewise.
9072 (windows_add_all_dlls): Likewise.
9073 (do_initial_windows_stuff): Likewise.
9074 (windows_nat_target::attach): Likewise.
9075 (windows_get_exec_module_filename): Likewise.
9076 (windows_nat_target::create_inferior): Likewise.
9077 (windows_xfer_siginfo): Likewise.
9078 (_initialize_loadable): Initialize Wow64SuspendThread,
9079 Wow64GetThreadContext, Wow64SetThreadContext,
9080 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9081 * windows-nat.h (windows_set_context_register_offsets):
9082 Remove declaration.
9083 (windows_set_segment_register_p): Likewise.
9084 (i386_windows_segment_register_p): Add declaration.
9085 (amd64_windows_segment_register_p): Likewise.
9086
9087 2020-03-04 Luis Machado <luis.machado@linaro.org>
9088
9089 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9090 in "info registers" for AArch64/ARM.
9091
9092 The change caused "info registers" to not print GPR's.
9093
9094 gdb/ChangeLog:
9095
9096 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9097
9098 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9099 when reg->group is empty and reggroup is not.
9100
9101 2020-03-03 Tom Tromey <tromey@adacore.com>
9102
9103 * dwarf2/frame.c (struct dwarf2_frame_cache)
9104 <checked_tailcall_bottom, entry_cfa_sp_offset,
9105 entry_cfa_sp_offset_p>: Remove members.
9106 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9107 (dwarf2_frame_prev_register): Don't call
9108 dwarf2_tailcall_sniffer_first.
9109 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9110 * frame-unwind.c (add_unwinder): New fuction.
9111 (frame_unwind_init): Use it. Add tailcall unwinder.
9112
9113 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9114 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9115
9116 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9117 value should be printed as true.
9118
9119 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9120
9121 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9122 (windows_init_abi): Set and use windows_so_ops.
9123
9124 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9125
9126 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9127 when verifying if dealing with a convenience variable.
9128
9129 2020-03-03 Luis Machado <luis.machado@linaro.org>
9130
9131 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9132
9133 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9134
9135 * infrun.c (gdbarch_supports_displaced_stepping): New.
9136 (use_displaced_stepping): Break up conditions in smaller pieces.
9137 Use gdbarch_supports_displaced_stepping.
9138 (displaced_step_prepare_throw): Use
9139 gdbarch_supports_displaced_stepping.
9140
9141 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9142
9143 * NEWS: Mention new behaviour of the history filename.
9144 * top.c (write_history_p): Add comment.
9145 (show_write_history_p): Add header comment, give a different
9146 message when history writing is on, but the history filename is
9147 empty.
9148 (history_filename): Add comment.
9149 (history_filename_empty): New function.
9150 (show_history_filename): Add header comment, give a different
9151 message when the filename is empty.
9152 (init_history): Compare history_filename against nullptr, and only
9153 read history if the filename is not empty.
9154 (set_history_filename): Add header comment, and only make
9155 non-empty filenames absolute.
9156 (init_main): Make the filename argument to 'set history filename'
9157 optional.
9158
9159 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9160
9161 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9162 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9163 (fetch_fp_register): Update.
9164 (fetch_fp_regs): Update.
9165 (store_fp_register): Update.
9166 (store_fp_regs): Update.
9167 (arm_netbsd_nat_target::read_description): New function.
9168 (fetch_elfcore_registers): Update.
9169
9170 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9171
9172 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9173 general_thread if the stop reply is missing a thread-id.
9174 (remote_target::process_stop_reply): Use the first non-exited
9175 thread if the target didn't pass a thread-id.
9176 * infrun.c (do_target_wait): Move call to
9177 switch_to_inferior_no_thread to ....
9178 (do_target_wait_1): ... here.
9179
9180 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9181
9182 * debuginfod-support.c: Include defs.h first.
9183
9184 2020-02-28 Tom de Vries <tdevries@suse.de>
9185
9186 * symfile.c (set_initial_language): Use default language for lookup.
9187
9188 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9189
9190 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9191 reader variable, pass `this` to read_cutu_die_from_dwo.
9192
9193 2020-02-27 Aaron Merey <amerey@redhat.com>
9194
9195 * source.c (open_source_file): Check for nullptr when computing
9196 srcpath.
9197
9198 2020-02-27 Tom Tromey <tromey@adacore.com>
9199
9200 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9201 member.
9202 (dwarf2_add_field): Don't update nfields.
9203 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9204
9205 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9206
9207 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9208 abs.
9209
9210 2020-02-26 Tom Tromey <tom@tromey.com>
9211
9212 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9213 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9214 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9215 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9216 per_cu_data.
9217
9218 2020-02-26 Tom Tromey <tom@tromey.com>
9219
9220 * dwarf2/index-write.c (psym_index_map): Change type.
9221 (add_address_entry_worker, write_one_signatured_type)
9222 (recursively_count_psymbols, recursively_write_psymbols)
9223 (class debug_names, psyms_seen_size, write_gdbindex)
9224 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9225
9226 2020-02-26 Aaron Merey <amerey@redhat.com>
9227
9228 * Makefile.in: Handle optional debuginfod support.
9229 * NEWS: Update.
9230 * README: Add --with-debuginfod summary.
9231 * config.in: Regenerate.
9232 * configure: Regenerate.
9233 * configure.ac: Handle optional debuginfod support.
9234 * debuginfod-support.c: debuginfod helper functions.
9235 * debuginfod-support.h: Ditto.
9236 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9237 summary.
9238 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9239 when a dwz file cannot be found.
9240 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9241 debuginfo file cannot be found.
9242 * source.c (open_source_file): Query debuginfod servers when a
9243 source file cannot be found.
9244 * top.c (print_gdb_configuration): Include
9245 --{with,without}-debuginfod in the output.
9246
9247 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9248
9249 * thread.c (thr_try_catch_cmd): Print thread name.
9250
9251 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9252
9253 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9254 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9255 dwarf2_fetch_die_type_sect_off): Move to...
9256 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9257 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9258 dwarf2_fetch_die_type_sect_off): ... here.
9259 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9260 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9261 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9262
9263 2020-02-26 Tom de Vries <tdevries@suse.de>
9264
9265 PR gdb/25603
9266 * symfile.c (set_initial_language): Exit-early if
9267 language_mode == language_mode_manual.
9268
9269 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9270
9271 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9272 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9273 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9274
9275 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9276
9277 * gdbtypes.c (create_array_type_with_stride): Handle negative
9278 array strides.
9279 * valarith.c (value_subscripted_rvalue): Likewise.
9280
9281 2020-02-25 Luis Machado <luis.machado@linaro.org>
9282
9283 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9284
9285 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9286
9287 * loc.h (dwarf2_get_die_type): Move to...
9288 * read.h (dwarf2_get_die_type): ... here.
9289 * read.c (dwarf2_get_die_type): Move doc to header.
9290
9291 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9292
9293 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9294 'gnulib/Makefile.in' to the list.
9295
9296 2020-02-24 Tom Tromey <tom@tromey.com>
9297
9298 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9299 Remove.
9300 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9301 XOBNEWVEC.
9302
9303 2020-02-24 Tom Tromey <tom@tromey.com>
9304
9305 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9306 New method.
9307 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9308 (dw2_do_instantiate_symtab, dw2_get_file_names)
9309 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9310
9311 2020-02-24 Tom Tromey <tom@tromey.com>
9312
9313 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9314 make_scoped_restore.
9315 (dwarf2_psymtab::read_symtab): Don't clear
9316 reading_partial_symbols.
9317
9318 2020-02-24 Tom de Vries <tdevries@suse.de>
9319
9320 PR gdb/25592
9321 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9322
9323 2020-02-24 Tom de Vries <tdevries@suse.de>
9324
9325 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9326 commands layout next/prev/regs.
9327
9328 2020-02-22 Tom Tromey <tom@tromey.com>
9329
9330 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9331 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9332
9333 2020-02-22 Tom Tromey <tom@tromey.com>
9334
9335 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9336
9337 2020-02-22 Tom Tromey <tom@tromey.com>
9338
9339 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9340 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9341 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9342 * tui/tui.c (_initialize_tui): Add usage text.
9343
9344 2020-02-22 Tom Tromey <tom@tromey.com>
9345
9346 * tui/tui-win.c (tui_set_focus_command)
9347 (tui_set_win_height_command): Use error_no_arg.
9348 (_initialize_tui_win): Update help text.
9349 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9350
9351 2020-02-22 Tom Tromey <tom@tromey.com>
9352
9353 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9354 * tui/tui-disasm.h (struct tui_disasm_window)
9355 <display_start_addr>: Declare.
9356 * tui/tui-source.h (struct tui_source_window)
9357 <display_start_addr>: Declare.
9358 * tui/tui-winsource.h (struct tui_source_window_base)
9359 <show_source_line, display_start_addr>: New methods.
9360 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9361 Rename and move to protected section.
9362 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9363 (tui_source_window_base::do_erase_source_content): Update.
9364 (tui_source_window_base::show_source_line): Now a method.
9365 (tui_source_window_base::show_source_content)
9366 (tui_source_window_base::tui_source_window_base)
9367 (tui_source_window_base::rerender)
9368 (tui_source_window_base::refill)
9369 (tui_source_window_base::do_scroll_horizontal)
9370 (tui_source_window_base::set_is_exec_point_at)
9371 (tui_source_window_base::update_breakpoint_info)
9372 (tui_source_window_base::update_exec_info): Update.
9373 * tui/tui-source.c (tui_source_window::set_contents)
9374 (tui_source_window::showing_source_p)
9375 (tui_source_window::do_scroll_vertical)
9376 (tui_source_window::location_matches_p)
9377 (tui_source_window::line_is_displayed): Update.
9378 (tui_source_window::display_start_addr): New method.
9379 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9380 (tui_disasm_window::do_scroll_vertical)
9381 (tui_disasm_window::location_matches_p): Update.
9382 (tui_disasm_window::display_start_addr): New method.
9383
9384 2020-02-22 Tom Tromey <tom@tromey.com>
9385
9386 * NEWS: Add entry for gdb.register_window_type.
9387 * tui/tui-layout.h (window_factory): New typedef.
9388 (tui_register_window): Declare.
9389 * tui/tui-layout.c (saved_tui_windows): New global.
9390 (tui_apply_current_layout): Use it.
9391 (tui_register_window): New function.
9392 * python/python.c (do_start_initialization): Call
9393 gdbpy_initialize_tui.
9394 (python_GdbMethods): Add "register_window_type" function.
9395 * python/python-internal.h (gdbpy_register_tui_window)
9396 (gdbpy_initialize_tui): Declare.
9397 * python/py-tui.c: New file.
9398 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9399
9400 2020-02-22 Tom Tromey <tom@tromey.com>
9401
9402 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9403
9404 2020-02-22 Tom Tromey <tom@tromey.com>
9405
9406 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9407 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9408 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9409 (tui_set_win_focus_to): Move from tui-win.c.
9410
9411 2020-02-22 Tom Tromey <tom@tromey.com>
9412
9413 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9414 functions.
9415 (known_window_types): New global.
9416 (tui_get_window_by_name): Reimplement.
9417 (initialize_known_windows): New function.
9418 (validate_window_name): Rewrite.
9419 (_initialize_tui_layout): Call initialize_known_windows.
9420
9421 2020-02-22 Tom Tromey <tom@tromey.com>
9422
9423 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9424 Remove constants.
9425 * tui/tui-winsource.h (struct tui_source_window_base)
9426 <tui_source_window_base>: Remove parameter.
9427 * tui/tui-winsource.c
9428 (tui_source_window_base::tui_source_window_base): Remove
9429 parameter.
9430 (tui_source_window_base::refill): Update.
9431 * tui/tui-stack.h (struct tui_locator_window)
9432 <tui_locator_window>: Update.
9433 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9434 Default the constructor.
9435 * tui/tui-regs.h (struct tui_data_item_window)
9436 <tui_data_item_window>: Default the constructor.
9437 (struct tui_data_window) <tui_data_window>: Likewise.
9438 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9439 Default the constructor.
9440 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9441 Default the constructor.
9442 <type>: Remove.
9443 (struct tui_win_info) <tui_win_info>: Default the constructor.
9444 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9445 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9446 Default the constructor.
9447
9448 2020-02-22 Tom Tromey <tom@tromey.com>
9449
9450 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9451 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9452 * tui/tui-win.c (tui_resize_all): Don't call
9453 tui_delete_invisible_windows.
9454 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9455 done.
9456 (tui_set_layout): Update.
9457 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9458 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9459 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9460
9461 2020-02-22 Tom Tromey <tom@tromey.com>
9462
9463 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9464 correctly.
9465
9466 2020-02-22 Tom Tromey <tom@tromey.com>
9467
9468 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9469
9470 2020-02-22 Tom Tromey <tom@tromey.com>
9471
9472 * tui/tui-winsource.h (struct tui_source_window_iterator)
9473 <inner_iterator>: New etytypedef.
9474 <tui_source_window_iterator>: Take "end" parameter.
9475 <tui_source_window_iterator>: Take iterator.
9476 <operator*, advance>: Update.
9477 <m_iter>: Change type.
9478 <m_end>: New field.
9479 (struct tui_source_windows) <begin, end>: Update.
9480 * tui/tui-layout.c (tui_windows): New global.
9481 (tui_apply_current_layout): Clear tui_windows.
9482 (tui_layout_window::apply): Update tui_windows.
9483 * tui/tui-data.h (tui_windows): Declare.
9484 (all_tui_windows): Now inline function.
9485 (class tui_window_iterator, struct all_tui_windows): Remove.
9486
9487 2020-02-22 Tom Tromey <tom@tromey.com>
9488
9489 PR tui/17850:
9490 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9491 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9492 "height" argument.
9493 (class tui_layout_window) <get_sizes>: Likewise.
9494 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9495 argument.
9496 <get_sizes>: Add "height" argument.
9497 <m_vertical>: New field.
9498 * tui/tui-layout.c (tui_layout_split::clone): Update.
9499 (tui_layout_split::get_sizes): Add "height" argument.
9500 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9501 (tui_new_layout_command): Parse "-horizontal".
9502 (_initialize_tui_layout): Update help string.
9503 (tui_layout_split::specification): Add "-horizontal" when needed.
9504 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9505 argument.
9506 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9507 New methods.
9508
9509 2020-02-22 Tom Tromey <tom@tromey.com>
9510
9511 * tui/tui-layout.h (enum tui_adjust_result): New.
9512 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9513 (class tui_layout_window) <adjust_size>: Return
9514 tui_adjust_result. Rewrite.
9515 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9516 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9517
9518 2020-02-22 Tom Tromey <tom@tromey.com>
9519
9520 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9521 parameter and return types.
9522 (class tui_layout_base) <specification>: Add "depth".
9523 (class tui_layout_window) <specification>: Add "depth".
9524 (class tui_layout_split) <specification>: Add "depth".
9525 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9526 and return types.
9527 (tui_new_layout_command): Parse sub-layouts.
9528 (_initialize_tui_layout): Update help string.
9529 (tui_layout_window::specification): Add "depth".
9530 (add_layout_command): Update.
9531
9532 2020-02-22 Tom Tromey <tom@tromey.com>
9533
9534 * NEWS: Add "tui new-layout" item.
9535 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9536 Add new-layout command to help text.
9537 (validate_window_name): New function.
9538 (tui_new_layout_command): New function.
9539 (_initialize_tui_layout): Register "new-layout".
9540 (tui_layout_window::specification): New method.
9541 (tui_layout_window::specification): New method.
9542 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9543 method.
9544 (class tui_layout_window) <specification>: New method.
9545 (class tui_layout_split) <specification>: New method.
9546
9547 2020-02-22 Tom Tromey <tom@tromey.com>
9548
9549 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9550 * tui/tui-win.c (window_name_completer): Update comment.
9551 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9552 Declare method.
9553 (class tui_layout_window) <replace_window>: Likewise.
9554 (class tui_layout_split) <replace_window>: Likewise.
9555 (tui_set_layout): Don't declare.
9556 (tui_set_initial_layout): Declare function.
9557 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9558 (asm_regs_layout): New globals.
9559 (tui_current_layout, show_layout): Remove.
9560 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9561 (find_layout, tui_apply_layout): New function.
9562 (layout_completer): Remove.
9563 (tui_next_layout): Reimplement.
9564 (tui_next_layout_command): New function.
9565 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9566 (tui_regs_layout): Reimplement.
9567 (tui_regs_layout_command): New function.
9568 (extract_display_start_addr): Rewrite.
9569 (next_layout, prev_layout): Remove.
9570 (tui_layout_window::replace_window): New method.
9571 (tui_layout_split::replace_window): New method.
9572 (destroy_layout): New function.
9573 (layout_list): New global.
9574 (add_layout_command): New function.
9575 (initialize_layouts): Update.
9576 (tui_layout_command): New function.
9577 (_initialize_tui_layout): Install "layout" commands.
9578 * tui/tui-data.h (enum tui_layout_type): Remove.
9579 (tui_current_layout): Don't declare.
9580
9581 2020-02-22 Tom Tromey <tom@tromey.com>
9582
9583 * tui/tui-regs.c (tui_reg_layout): Remove.
9584 (tui_reg_command): Use tui_regs_layout.
9585 * tui/tui-layout.h (tui_reg_command): Declare.
9586 * tui/tui-layout.c (tui_reg_command): New function.
9587
9588 2020-02-22 Tom Tromey <tom@tromey.com>
9589
9590 * tui/tui.c (tui_rl_delete_other_windows): Call
9591 tui_remove_some_windows.
9592 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9593 Declare method.
9594 (class tui_layout_window) <remove_windows>: New method.
9595 (class tui_layout_split) <remove_windows>: Declare.
9596 (tui_remove_some_windows): Declare.
9597 * tui/tui-layout.c (tui_remove_some_windows): New function.
9598 (tui_layout_split::remove_windows): New method.
9599
9600 2020-02-22 Tom Tromey <tom@tromey.com>
9601
9602 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9603 * tui/tui-layout.h (tui_next_layout): Declare.
9604 * tui/tui-layout.c (tui_next_layout): New function.
9605
9606 2020-02-22 Tom Tromey <tom@tromey.com>
9607
9608 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9609 correct coordinates.
9610
9611 2020-02-22 Tom Tromey <tom@tromey.com>
9612
9613 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9614 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9615 DATA_WIN case.
9616
9617 2020-02-22 Tom Tromey <tom@tromey.com>
9618
9619 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9620 TUI_DISASM_WIN, not tui_win_list.
9621
9622 2020-02-22 Tom Tromey <tom@tromey.com>
9623
9624 * valprint.c (generic_val_print_enum_1)
9625 (val_print_type_code_flags): Style member names.
9626 * rust-lang.c (val_print_struct, rust_print_enum)
9627 (rust_print_struct_def, rust_internal_print_type): Style member
9628 names.
9629 * p-valprint.c (pascal_object_print_value_fields): Style member
9630 names. Only call fprintf_symbol_filtered for static members.
9631 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9632 * f-valprint.c (f_val_print): Style member names.
9633 * f-typeprint.c (f_type_print_base): Style member names.
9634 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9635 call fprintf_symbol_filtered for static members.
9636 (cp_print_class_member): Style member names.
9637 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9638 member names.
9639 * ada-valprint.c (ada_print_scalar): Style enum names.
9640 (ada_val_print_enum): Likewise.
9641 * ada-typeprint.c (print_enum_type): Style enum names.
9642
9643 2020-02-21 Tom Tromey <tom@tromey.com>
9644
9645 * psympriv.h (struct partial_symtab): Update comment.
9646
9647 2020-02-21 Tom Tromey <tromey@adacore.com>
9648
9649 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9650 type is CORE_ADDR.
9651
9652 2020-02-21 Tom de Vries <tdevries@suse.de>
9653
9654 PR gdb/25534
9655 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9656 if dependencies[i]->user != NULL.
9657
9658 2020-02-21 Ali Tamur <tamur@google.com>
9659
9660 * dwarf2/read.c (dwarf2_name): Add null check.
9661
9662 2020-02-20 Tom Tromey <tom@tromey.com>
9663
9664 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9665 ">=", in binary search.
9666 (dwarf2_find_containing_comp_unit): New overload.
9667 (run_test): New self-test.
9668 (_initialize_dwarf2_read): Register new test.
9669
9670 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9671
9672 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9673 * riscv-tdep.h: Likewise.
9674 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9675 rv32-only CSR.
9676 * features/riscv/64bit-csr.xml: Regenerated.
9677
9678 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9679 Tom Tromey <tom@tromey.com>
9680
9681 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9682 of 'fputc_unfiltered'.
9683 (putchar_unfiltered): Call 'fputc_unfiltered'.
9684 (fputc_unfiltered): Call 'fputs_unfiltered'.
9685
9686 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9687
9688 * config.in: Regenerate.
9689 * configure: Regenerate.
9690 * configure.ac: Add --with-python-libdir option.
9691 * main.c: Use WITH_PYTHON_LIBDIR.
9692
9693 2020-02-19 Tom Tromey <tom@tromey.com>
9694
9695 * symtab.c (general_symbol_info::compute_and_set_names): Use
9696 obstack_strndup. Simplify call to symbol_set_demangled_name.
9697
9698 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9699
9700 * dwarf2/read.c (allocate_signatured_type_table,
9701 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9702 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9703 Remove objfile parameter, update all callers.
9704
9705 2020-02-19 Doug Evans <dje@google.com>
9706
9707 PR rust/25535
9708 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9709 rust_enum_variant calculation.
9710
9711 2020-02-19 Tom Tromey <tromey@adacore.com>
9712
9713 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9714
9715 2020-02-19 Tom Tromey <tromey@adacore.com>
9716
9717 * ada-lang.c (cache_symbol): Use obstack_strdup.
9718
9719 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9720
9721 * configure: Regenerate.
9722
9723 2020-02-19 Tom Tromey <tromey@adacore.com>
9724
9725 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9726 NULL check.
9727
9728 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9729
9730 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9731
9732 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9733
9734 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9735 if GDBSERVER is not defined.
9736 (riscv_tdesc_cache): Likewise, also store const target_desc.
9737 (STATIC_IN_GDB): Define.
9738 (riscv_create_target_description): Update declaration with
9739 STATIC_IN_GDB.
9740 (riscv_lookup_target_description): New function, only define if
9741 GDBSERVER is not defined.
9742 * arch/riscv.h (riscv_create_target_description): Declare only
9743 when GDBSERVER is defined.
9744 (riscv_lookup_target_description): New declaration when GDBSERVER
9745 is not defined.
9746 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9747 (riscv_linux_read_features): ...this, and return
9748 riscv_gdbarch_features instead of target_desc.
9749 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9750 (riscv_linux_read_description): Rename to...
9751 (riscv_linux_read_features): ...this.
9752 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9753 Update to use riscv_gdbarch_features and
9754 riscv_lookup_target_description.
9755 * riscv-tdep.c (riscv_find_default_target_description): Use
9756 riscv_lookup_target_description instead of
9757 riscv_create_target_description.
9758
9759 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9760
9761 * valprint.c (generic_val_print_enum_1): When printing a flag
9762 enum with value 0 and there is no enumerator with value 0, print
9763 just "0" instead of "(unknown: 0x0)".
9764
9765 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9766
9767 * valprint.c (generic_val_print_enum_1): Print unknown part of
9768 flag enum in hex.
9769
9770 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9771
9772 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9773 flag enums to contain duplicate enumerators.
9774 * valprint.c (generic_val_print_enum_1): Update comment.
9775
9776 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9777
9778 * dwarf2/read.c: Include "count-one-bits.h".
9779 (update_enumeration_type_from_children): If an enumerator has
9780 multiple bits set, don't treat the enumeration as a "flag enum".
9781 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9782 of flag enums have 0 or 1 bit set.
9783
9784 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9785
9786 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9787 conversion.
9788 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9789 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9790 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9791 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9792 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9793
9794 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9795
9796 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9797
9798 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9799
9800 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9801 displaced_step_closure_up.
9802 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9803 (struct displaced_step_closure_up):
9804 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9805 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9806 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9807 Likewise.
9808 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9809 * gdbarch.c, gdbarch.h: Re-generate.
9810 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9811 displaced_step_closure_up.
9812 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9813 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9814 * infrun.h (displaced_step_closure_up): New type alias.
9815 (struct displaced_step_inferior_state) <step_closure>: Change
9816 type to displaced_step_closure_up.
9817 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9818 displaced_step_closure_up.
9819 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9820
9821 2020-02-14 Tom Tromey <tom@tromey.com>
9822
9823 * minidebug.c (gnu_debug_key): New global.
9824 (find_separate_debug_file_in_section): Use it.
9825
9826 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9827
9828 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9829 std::unique_ptr.
9830 * gdbarch.c: Re-generate.
9831 * gdbarch.h: Re-generate.
9832 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9833 change.
9834 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9835 type to std::unique_ptr.
9836 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9837 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9838 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9839 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9840 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9841 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9842 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9843 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9844 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9845
9846 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9847
9848 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9849 std::unique_ptr.
9850 (displaced_step_clear): Rename to...
9851 (displaced_step_reset): ... this. Just call displaced->reset ().
9852 (displaced_step_clear_cleanup): Rename to...
9853 (displaced_step_reset_cleanup): ... this.
9854 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9855 (displaced_step_fixup): Likewise.
9856 (resume_1): Likewise.
9857 (handle_inferior_event): Restore child's memory before calling
9858 displaced_step_fixup on the parent.
9859 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9860 to std::unique_ptr.
9861 <step_closure>: Change type to std::unique_ptr.
9862
9863 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9864
9865 * arm-tdep.c: Include count-one-bits.h.
9866 (cleanup_block_store_pc): Use count_one_bits.
9867 (cleanup_block_load_pc): Use count_one_bits.
9868 (arm_copy_block_xfer): Use count_one_bits.
9869 (thumb2_copy_block_xfer): Use count_one_bits.
9870 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9871 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9872 (thumb_get_next_pcs_raw): Use count_one_bits.
9873 (arm_get_next_pcs_raw): Use count_one_bits_l.
9874 * arch/arm.c (bitcount): Remove.
9875 * arch/arm.h (bitcount): Remove.
9876
9877 2020-02-14 Tom Tromey <tromey@adacore.com>
9878
9879 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9880 Update.
9881 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9882 * dwarf2/loc.c (call_site_find_chain_1): Return
9883 unique_xmalloc_ptr.
9884 (call_site_find_chain): Likewise.
9885
9886 2020-02-14 Richard Biener <rguenther@suse.de>
9887
9888 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9889 on expression with division operators.
9890
9891 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9892
9893 * MAINTAINERS (Write After Approval): Adding myself.
9894
9895 2020-02-12 Tom Tromey <tom@tromey.com>
9896
9897 * event-loop.c (event_data, gdb_event, event_handler_func):
9898 Remove.
9899
9900 2020-02-12 Tom Tromey <tom@tromey.com>
9901
9902 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9903 (dwarf2_frame_objfile_data): Add comment.
9904 (find_comp_unit, set_comp_unit): New functions.
9905 (dwarf2_frame_find_fde): Use find_comp_unit.
9906 (dwarf2_build_frame_info): Use set_comp_unit.
9907
9908 2020-02-12 Tom Tromey <tom@tromey.com>
9909
9910 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9911 (comp_unit): Don't initialize objfile.
9912 (execute_cfa_program): Add text_offset parameter.
9913 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9914 (dwarf2_frame_cache): Update.
9915 (dwarf2_build_frame_info): Don't set "objfile" member.
9916
9917 2020-02-12 Tom Tromey <tom@tromey.com>
9918
9919 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9920 (decode_frame_entry): Likewise.
9921 (dwarf2_build_frame_info): Update.
9922
9923 2020-02-12 Tom Tromey <tom@tromey.com>
9924
9925 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9926 (decode_frame_entry_1): Use the comp_unit obstack.
9927
9928 2020-02-12 Tom Tromey <tom@tromey.com>
9929
9930 * dwarf2/frame.c (struct comp_unit): Add initializers and
9931 constructor.
9932 (dwarf2_frame_objfile_data): Store a comp_unit.
9933 (dwarf2_frame_find_fde): Update.
9934 (dwarf2_build_frame_info): Use "new".
9935
9936 2020-02-12 Tom Tromey <tom@tromey.com>
9937
9938 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9939 (dwarf2_fde_table): Typedef for std::vector.
9940 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9941 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9942 (decode_frame_entry): Update.
9943 (dwarf2_build_frame_info): Use "new".
9944
9945 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9946
9947 * arm-tdep.c (arm_gdbarch_init): Update.
9948 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9949 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9950 have_neon, is_m>: Change to bool.
9951
9952 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9953
9954 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9955
9956 2020-02-12 Tom Tromey <tom@tromey.com>
9957
9958 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9959
9960 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9961
9962 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9963 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9964
9965 2020-02-11 Tom Tromey <tom@tromey.com>
9966
9967 * psymtab.h: Update comment.
9968
9969 2020-02-11 Tom Tromey <tom@tromey.com>
9970
9971 * gdb_obstack.h (struct auto_obstack): Use
9972 DISABLE_COPY_AND_ASSIGN.
9973
9974 2020-02-11 Tom Tromey <tom@tromey.com>
9975
9976 * dwarf2/frame.h (struct objfile): Don't forward declare.
9977
9978 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9979
9980 * cris-tdep.c (cris_supply_gregset): Change signature to match
9981 what struct regset expects.
9982 (cris_regset): New struct.
9983 (fetch_core_registers): Remove.
9984 (cris_iterate_over_regset_sections): New function.
9985 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9986 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9987
9988 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9989
9990 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9991 registers.
9992
9993 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9994
9995 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9996
9997 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9998
9999 * configure: Re-generate.
10000
10001 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10002
10003 * configure: Re-generate.
10004
10005 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10006
10007 * acinclude: Update warning.m4 path.
10008 * warning.m4: Move to gdbsupport.
10009
10010 2020-02-11 Tom Tromey <tromey@adacore.com>
10011
10012 * remote.c (remote_console_output): Update.
10013 * printcmd.c (printf_command): Update.
10014 * event-loop.c (gdb_wait_for_event): Update.
10015 * linux-nat.c (sigchld_handler): Update.
10016 * remote-sim.c (gdb_os_write_stdout): Update.
10017 (gdb_os_flush_stdout): Update.
10018 (gdb_os_flush_stderr): Update.
10019 (gdb_os_write_stderr): Update.
10020 * exceptions.c (print_exception): Update.
10021 * remote-fileio.c (remote_fileio_func_read): Update.
10022 (remote_fileio_func_write): Update.
10023 * tui/tui.c (tui_enable): Update.
10024 * tui/tui-interp.c (tui_interp::init): Update.
10025 * utils.c (init_page_info): Update.
10026 (putchar_unfiltered, fputc_unfiltered): Update.
10027 (gdb_flush): Update.
10028 (emit_style_escape): Update.
10029 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10030 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10031 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10032 (stderr_file::write): Update.
10033 (stderr_file::puts): Update.
10034 * ui-file.h (ui_file_isatty, ui_file_write)
10035 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10036 (ui_file_puts): Don't declare.
10037
10038 2020-02-10 Tom de Vries <tdevries@suse.de>
10039
10040 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10041 sentinel to char *.
10042
10043 2020-02-09 Tom de Vries <tdevries@suse.de>
10044
10045 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10046 filename if it matches "<artificial>".
10047
10048 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10049
10050 * windows-tdep.c (struct enum_value_name): New struct.
10051 (create_enum): New function.
10052 (windows_get_siginfo_type): Create and use enum types.
10053
10054 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10055
10056 * NEWS: Mention $_siginfo support for Windows.
10057 * windows-nat.c (handle_exception): Set siginfo_er.
10058 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10059 (windows_xfer_siginfo): New function.
10060 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10061 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10062 (init_windows_gdbarch_data): New function.
10063 (get_windows_gdbarch_data): New function.
10064 (windows_get_siginfo_type): New function.
10065 (windows_init_abi): Register windows_get_siginfo_type.
10066 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10067
10068 2020-02-08 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10071 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10072 <keep>: Declare method.
10073 <m_keep>: Remove member.
10074 <~cutu_reader>: Remove.
10075 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10076 (cutu_reader::cutu_reader): Update.
10077 (cutu_reader::keep): Rename from ~cutu_reader.
10078 (process_psymtab_comp_unit, build_type_psymtabs_1)
10079 (process_skeletonless_type_unit, load_partial_comp_unit)
10080 (load_full_comp_unit, dwarf2_read_addr_index)
10081 (read_signatured_type): Update.
10082
10083 2020-02-08 Tom Tromey <tom@tromey.com>
10084
10085 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10086 "want_partial_unit" parameter.
10087 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10088 Inline check for DW_TAG_partial_unit.
10089 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10090
10091 2020-02-08 Tom Tromey <tom@tromey.com>
10092
10093 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10094 read.c.
10095 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10096 read.c.
10097
10098 2020-02-08 Tom Tromey <tom@tromey.com>
10099
10100 * dwarf2/read.c (read_address): Move to comp-unit.c.
10101 (dwarf2_rnglists_process, dwarf2_ranges_process)
10102 (read_attribute_value, dwarf_decode_lines_1)
10103 (var_decode_location, decode_locdesc): Update.
10104 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10105 read.c. Remove "cu" parameter.
10106 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10107 method.
10108
10109 2020-02-08 Tom Tromey <tom@tromey.com>
10110
10111 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10112 (read_indirect_line_string): Update.
10113 * dwarf2/comp-unit.c (read_offset): Remove.
10114 (read_comp_unit_head): Update.
10115 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10116 method.
10117 (read_offset): Don't declare.
10118
10119 2020-02-08 Tom Tromey <tom@tromey.com>
10120
10121 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10122 * dwarf2/read.c (struct comp_unit_head): Move to
10123 dwarf2/comp-unit.h.
10124 (enum class rcuh_kind): Move to comp-unit.h.
10125 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10126 (read_comp_unit_head, error_check_comp_unit_head)
10127 (read_and_check_comp_unit_head): Move to comp-unit.c.
10128 (read_offset, dwarf_unit_type_name): Likewise.
10129 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10130 (cutu_reader::cutu_reader, read_call_site_scope)
10131 (find_partial_die, follow_die_offset): Update.
10132 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10133
10134 2020-02-08 Tom Tromey <tom@tromey.com>
10135
10136 * dwarf2/read.c (read_offset_1): Move to leb.c.
10137 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10138 (dwarf_decode_macro_bytes): Update.
10139 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10140 * dwarf2/leb.h (read_offset): Declare.
10141
10142 2020-02-08 Tom Tromey <tom@tromey.com>
10143
10144 * dwarf2/read.c (dwarf2_section_size): Remove.
10145 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10146 Update.
10147 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10148
10149 2020-02-08 Tom Tromey <tom@tromey.com>
10150
10151 * dwarf2/read.c (read_initial_length): Move to leb.c.
10152 * dwarf2/leb.h (read_initial_length): Declare.
10153 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10154 handle_nonstd parameter.
10155 * dwarf2/frame.c (read_initial_length): Remove.
10156 (decode_frame_entry_1): Update.
10157
10158 2020-02-08 Tom Tromey <tom@tromey.com>
10159
10160 * dwarf2/loc.c (dwarf2_find_location_expression)
10161 (dwarf_evaluate_loc_desc::get_tls_address)
10162 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10163 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10164 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10165 (dwarf2_compile_property_to_c)
10166 (dwarf2_loc_desc_get_symbol_read_needs)
10167 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10168 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10169 (loclist_describe_location, loclist_tracepoint_var_ref)
10170 (loclist_generate_c_location): Update.
10171 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10172 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10173 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10174 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10175 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10176 (dwarf2_per_cu_data::addr_size)
10177 (dwarf2_per_cu_data::ref_addr_size)
10178 (dwarf2_per_cu_data::text_offset)
10179 (dwarf2_per_cu_data::addr_type): Now methods.
10180 (per_cu_header_read_in): Make per_cu "const".
10181 (dwarf2_version): Remove.
10182 (dwarf2_per_cu_data::int_type): Now a method.
10183 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10184 (set_die_type, read_array_type, read_subrange_index_type)
10185 (read_tag_string_type, read_subrange_type): Update.
10186 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10187 offset_size, ref_addr_size, text_offset, addr_type, version,
10188 objfile, int_type, addr_sized_int_type>: Declare methods.
10189
10190 2020-02-08 Tom Tromey <tom@tromey.com>
10191
10192 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10193 Move earlier.
10194
10195 2020-02-08 Tom Tromey <tom@tromey.com>
10196
10197 * dwarf2/read.h (dwarf_line_debug): Declare.
10198 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10199 * dwarf2/read.c: Move line_header code to new files.
10200 (dwarf_line_debug): No longer static.
10201 * dwarf2/line-header.c: New file.
10202 * dwarf2/line-header.h: New file.
10203
10204 2020-02-08 Tom Tromey <tom@tromey.com>
10205
10206 * dwarf2/read.c (struct line_header) <file_full_name,
10207 file_file_name>: Return unique_xmalloc_ptr.
10208 (line_header::file_file_name): Update.
10209 (line_header::file_full_name): Update.
10210 (dw2_get_file_names_reader): Update.
10211 (macro_start_file): Update.
10212
10213 2020-02-08 Tom Tromey <tom@tromey.com>
10214
10215 * dwarf2/read.c (struct line_header) <file_full_name,
10216 file_file_name>: Declare methods.
10217 (dw2_get_file_names_reader): Update.
10218 (file_file_name): Now a method.
10219 (file_full_name): Likewise.
10220 (macro_start_file): Update.
10221
10222 2020-02-08 Tom Tromey <tom@tromey.com>
10223
10224 * dwarf2/read.c (dwarf_always_disassemble)
10225 (show_dwarf_always_disassemble): Move to loc.c.
10226 (_initialize_dwarf2_read): Move "always-disassemble" registration
10227 to loc.c.
10228 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10229 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10230 static.
10231 (show_dwarf_always_disassemble): Move from read.c.
10232 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10233
10234 2020-02-08 Tom Tromey <tom@tromey.com>
10235
10236 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10237 (create_quick_file_names_table): Return htab_up.
10238 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10239 Update.
10240 * dwarf2/read.h (struct dwarf2_per_objfile)
10241 <quick_file_names_table>: Now htab_up.
10242
10243 2020-02-08 Tom Tromey <tom@tromey.com>
10244
10245 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10246
10247 2020-02-08 Tom Tromey <tom@tromey.com>
10248
10249 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10250 Rewrite.
10251 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10252 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10253 (abbrev_table::abbrev_table): No longer inline.
10254 (ABBREV_HASH_SIZE): Remove.
10255 (abbrev_table::m_abbrevs): Now an htab_up.
10256
10257 2020-02-08 Tom Tromey <tom@tromey.com>
10258
10259 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10260 (cutu_reader): Update.
10261 (build_type_psymtabs_1): Update.
10262 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10263 (abbrev_table::alloc_abbrev): Update.
10264 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10265 (abbrev_table::read): New static method, renamed from
10266 abbrev_table_read_table.
10267 (abbrev_table::alloc_abbrev)
10268 (abbrev_table::add_abbrev): Now private.
10269 (abbrev_table::abbrev_table): Now private.
10270 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10271
10272 2020-02-08 Tom Tromey <tom@tromey.com>
10273
10274 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10275 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10276 htab_up.
10277
10278 2020-02-08 Tom Tromey <tom@tromey.com>
10279
10280 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10281 htab_up.
10282 (lookup_dwo_unit_in_dwp): Update.
10283 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10284 on obstack.
10285
10286 2020-02-08 Tom Tromey <tom@tromey.com>
10287
10288 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10289 obstack.
10290
10291 2020-02-08 Tom Tromey <tom@tromey.com>
10292
10293 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10294 line_header_hash.
10295 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10296 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10297 Change type to htab_up.
10298
10299 2020-02-08 Tom Tromey <tom@tromey.com>
10300
10301 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10302 htab_up. Don't allocate on obstack.
10303 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10304 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10305 Change type to htab_up.
10306
10307 2020-02-08 Tom Tromey <tom@tromey.com>
10308
10309 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10310 Change type to htab_up.
10311 * dwarf2/read.c (create_signatured_type_table_from_index)
10312 (create_signatured_type_table_from_debug_names)
10313 (create_all_type_units, add_type_unit)
10314 (lookup_dwo_signatured_type, lookup_signatured_type)
10315 (process_skeletonless_type_unit): Update.
10316 (create_debug_type_hash_table, create_debug_types_hash_table):
10317 Change type of types_htab.
10318 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10319 htab_up. Don't allocate on obstack.
10320 (create_cus_hash_table): Change type of cus_htab parameter.
10321 (struct dwo_file) <cus, tus>: Now htab_up.
10322 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10323 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10324 (queue_and_load_all_dwo_tus): Update.
10325 * dwarf2/index-write.c (write_gdbindex): Update.
10326 (write_debug_names): Update.
10327
10328 2020-02-08 Tom Tromey <tom@tromey.com>
10329
10330 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10331 dwarf2/read.c. Remove "next" member. Add constructor ntad
10332 destructor.
10333 (struct dwarf2_per_objfile) <queue>: New member.
10334 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10335 dwarf2/read.h.
10336 (dwarf2_queue, dwarf2_queue_tail): Remove.
10337 (class dwarf2_queue_guard): Add parameter to constructor. Use
10338 DISABLE_COPY_AND_ASSIGN.
10339 <m_per_objfile>: New member.
10340 <~dwarf2_queue_guard>: Rewrite.
10341 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10342 Update.
10343 (~dwarf2_queue_item): New.
10344
10345 2020-02-08 Tom Tromey <tom@tromey.com>
10346
10347 * dwarf2/read.c (struct die_info) <has_children>: New member.
10348 (dw2_get_file_names_reader): Remove has_children.
10349 (dw2_get_file_names): Update.
10350 (read_cutu_die_from_dwo): Remove has_children.
10351 (cutu_reader::init_tu_and_read_dwo_dies)
10352 (cutu_reader::cutu_reader): Update.
10353 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10354 Remove has_children.
10355 (build_type_psymtabs_1, process_skeletonless_type_unit)
10356 (load_partial_comp_unit, load_full_comp_unit): Update.
10357 (create_dwo_cu_reader): Remove has_children.
10358 (create_cus_hash_table, read_die_and_children): Update.
10359 (read_full_die_1,read_full_die): Remove has_children.
10360 (read_signatured_type): Update.
10361 (class cutu_reader) <has_children>: Remove.
10362
10363 2020-02-08 Tom Tromey <tom@tromey.com>
10364
10365 * dwarf2/expr.c: Rename from dwarf2expr.c.
10366 * dwarf2/expr.h: Rename from dwarf2expr.h.
10367 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10368 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10369 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10370 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10371 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10372 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10373 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10374 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10375 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10376 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10377 * dwarf2/loc.c: Rename from dwarf2loc.c.
10378 * dwarf2/loc.h: Rename from dwarf2loc.h.
10379 * dwarf2/read.c: Rename from dwarf2read.c.
10380 * dwarf2/read.h: Rename from dwarf2read.h.
10381 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10382 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10383 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10384 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10385 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10386 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10387 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10388 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10389 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10390 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10391 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10392 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10393 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10394 Update.
10395 * Makefile.in (COMMON_SFILES): Update.
10396 (HFILES_NO_SRCDIR): Update.
10397
10398 2020-02-08 Tom Tromey <tom@tromey.com>
10399
10400 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10401 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10402
10403 2020-02-08 Tom Tromey <tom@tromey.com>
10404
10405 * dwarf2read.h (struct die_info): Don't declare.
10406
10407 2020-02-08 Tom Tromey <tom@tromey.com>
10408
10409 * dwarf2read.h (die_info_ptr): Remove typedef.
10410
10411 2020-02-08 Tom Tromey <tom@tromey.com>
10412
10413 * dwarf2read.c (read_call_site_scope)
10414 (handle_data_member_location, dwarf2_add_member_fn)
10415 (mark_common_block_symbol_computed, read_common_block)
10416 (attr_to_dynamic_prop, partial_die_info::read)
10417 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10418 (dwarf2_symbol_mark_computed, set_die_type): Update.
10419 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10420 method.
10421 (attr_form_is_block): Don't declare.
10422 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10423
10424 2020-02-08 Tom Tromey <tom@tromey.com>
10425
10426 * dwarf2read.c (dwarf2_find_base_address, )
10427 (read_call_site_scope, rust_containing_type)
10428 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10429 (handle_data_member_location, dwarf2_add_member_fn)
10430 (get_alignment, read_structure_type, process_structure_scope)
10431 (mark_common_block_symbol_computed, read_common_block)
10432 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10433 (partial_die_info::read, read_attribute_value, new_symbol)
10434 (lookup_die_type, dwarf2_get_ref_die_offset)
10435 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10436 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10437 (dwarf2_symbol_mark_computed): Update.
10438 * dwarf2/attribute.h (struct attribute) <value_as_address,
10439 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10440 methods.
10441 (value_as_address, attr_form_is_section_offset)
10442 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10443 * dwarf2/attribute.c (attribute::value_as_address)
10444 (attribute::form_is_section_offset, attribute::form_is_constant)
10445 (attribute::form_is_ref): Now methods.
10446
10447 2020-02-08 Tom Tromey <tom@tromey.com>
10448
10449 * dwarf2read.c (struct attribute, DW_STRING)
10450 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10451 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10452 (attr_form_is_block, attr_form_is_section_offset)
10453 (attr_form_is_constant, attr_form_is_ref): Move.
10454 * dwarf2/attribute.h: New file.
10455 * dwarf2/attribute.c: New file, from dwarf2read.c.
10456 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10457
10458 2020-02-08 Tom Tromey <tom@tromey.com>
10459
10460 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10461 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10462 Move.
10463 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10464 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10465 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10466 abbrev.c.
10467 * dwarf2/abbrev.h: New file.
10468 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10469 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10470
10471 2020-02-08 Tom Tromey <tom@tromey.com>
10472
10473 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10474 (dwarf2_section_size, dwarf2_get_section_info)
10475 (create_signatured_type_table_from_debug_names)
10476 (create_addrmap_from_aranges, read_debug_names_from_section)
10477 (get_gdb_index_contents_from_section, read_comp_unit_head)
10478 (error_check_comp_unit_head, read_abbrev_offset)
10479 (create_debug_type_hash_table, init_cu_die_reader)
10480 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10481 (read_comp_units_from_section, create_cus_hash_table)
10482 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10483 (create_dwp_v2_section, dwarf2_rnglists_process)
10484 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10485 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10486 (read_indirect_string_from_dwz, read_addr_index_1)
10487 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10488 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10489 (fill_in_loclist_baton): Update.
10490 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10491 get_containing_section, get_bfd_owner, get_bfd_section,
10492 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10493 (dwarf2_read_section, get_section_name, get_section_file_name)
10494 (get_containing_section, get_section_bfd_owner)
10495 (get_section_bfd_section, get_section_name, get_section_file_name)
10496 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10497 declare.
10498 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10499 (dwarf2_section_info::get_bfd_owner)
10500 (dwarf2_section_info::get_bfd_section)
10501 (dwarf2_section_info::get_name)
10502 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10503 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10504 (dwarf2_section_info::read): Now methods.
10505 * dwarf-index-write.c (class debug_names): Update.
10506
10507 2020-02-08 Tom Tromey <tom@tromey.com>
10508
10509 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10510 Move to dwarf2/section.h.
10511 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10512 (get_section_bfd_section, get_section_name)
10513 (get_section_file_name, get_section_id, get_section_flags)
10514 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10515 dwarf2/section.c.
10516 * dwarf2/section.h: New file.
10517 * dwarf2/section.c: New file, from dwarf2read.c.
10518 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10519
10520 2020-02-08 Tom Tromey <tom@tromey.com>
10521
10522 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10523 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10524 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10525 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10526 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10527 * dwarf2/leb.h: New file, from dwarf2read.c.
10528 * dwarf2/leb.c: New file, from dwarf2read.c.
10529 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10530 Remove.
10531 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10532 (COMMON_SFILES): Add dwarf2/leb.c.
10533
10534 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10535
10536 GDB 9.1 released.
10537
10538 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10539
10540 PR gdb/25190:
10541 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10542 * gdb/remote.c (remote_console_output): Update.
10543 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10544 (ui_file_puts): ...this.
10545 * gdb/ui-file.h (ui_file_puts): Add declaration.
10546 * gdb/utils.c (emit_style_escape): Update.
10547 (flush_wrap_buffer): Update.
10548 (fputs_maybe_filtered): Update.
10549 (fputs_unfiltered): Add function.
10550
10551 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10552
10553 * gdb/event-loop.c (gdb_wait_for_event): Update.
10554 * gdb/printcmd.c (printf_command): Update.
10555 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10556 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10557 (gdb_os_flush_stderr): Update.
10558 * gdb/remote.c (remote_console_output): Update.
10559 * gdb/ui-file.c (gdb_flush): Rename to...
10560 (ui_file_flush): ...this.
10561 (stderr_file::write): Update.
10562 (stderr_file::puts): Update.
10563 * gdb/ui-file.h (gdb_flush): Rename to...
10564 (ui_file_flush): ...this.
10565 * gdb/utils.c (gdb_flush): Add function.
10566 * gdb/utils.h (gdb_flush): Add declaration.
10567
10568 2020-02-07 Tom Tromey <tromey@adacore.com>
10569
10570 PR breakpoints/24915:
10571 * source.c (find_and_open_source): Do not check basenames_may_differ.
10572
10573 2020-02-07 Tom Tromey <tom@tromey.com>
10574
10575 * README: Update gdbserver documentation.
10576 * gdbserver: Move to top level.
10577 * configure.tgt (build_gdbserver): Remove.
10578 * configure.ac: Remove --enable-gdbserver.
10579 * configure: Rebuild.
10580 * Makefile.in (distclean): Don't mention gdbserver.
10581
10582 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10583
10584 * source-cache.c (source_cache::ensure): Surround
10585 get_plain_source_lines with a try/catch.
10586 (source_cache::get_line_charpos): Get rid of try/catch
10587 and only check for the return value of "ensure".
10588 * tui/tui-source.c (tui_source_window::set_contents):
10589 Simplify "nlines" calculation.
10590
10591 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10592
10593 * MAINTAINERS (Write After Approval): Add myself.
10594
10595 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10596
10597 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10598 function call.
10599
10600 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10601
10602 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10603
10604 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10605
10606 * nat/riscv-linux-tdesc.h: New file.
10607 * nat/riscv-linux-tdesc.c: New file, taking code from...
10608 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10609 ... here.
10610 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10611 NATDEPFILES.
10612
10613 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10614
10615 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10616 we don't set the fake simulator ptid to the null_ptid.
10617
10618 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10619
10620 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10621 * gdbthread.h (class thread_info) <resumed>: Likewise.
10622 * infrun.c (resume_1): Likewise.
10623 (proceed): Likewise.
10624 (infrun_thread_stop_requested): Likewise.
10625 (stop_all_threads): Likewise.
10626 (handle_inferior_event): Likewise.
10627 (restart_threads): Likewise.
10628 (finish_step_over): Likewise.
10629 (keep_going_stepped_thread): Likewise.
10630 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10631 (linux_handle_extended_wait): Likewise.
10632 * record-btrace.c (get_thread_current_frame_id): Likewise.
10633 * record-full.c (record_full_wait_1): Likewise.
10634 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10635 * target.c (target_resume): Likewise.
10636 * thread.c (set_running_thread): Likewise.
10637
10638 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10639
10640 * f-valprint.c (f77_print_array_1): Changed datatype of index
10641 variable to LONGEST from int to enable it to contain bound
10642 values correctly.
10643
10644 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10645
10646 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10647 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10648 offsets according to FLEN determined.
10649 (riscv_linux_nat_target::read_description): Determine FLEN
10650 dynamically.
10651 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10652 according to FLEN determined.
10653 (riscv_linux_nat_target::store_registers): Likewise.
10654
10655 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10656
10657 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10658 when reg->group is empty and reggroup is not.
10659
10660 2020-01-31 Tom Tromey <tromey@adacore.com>
10661
10662 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10663 Call beneath target's mourn_inferior after unpushing.
10664
10665 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10666
10667 PR tui/9765
10668 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10669 have enough lines to fill the screen, still return the lowest
10670 address we found.
10671
10672 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10673
10674 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10675 '-', '<', and '>' commands.
10676
10677 2020-01-29 Pedro Alves <palves@redhat.com>
10678 Sergio Durigan Junior <sergiodj@redhat.com>
10679
10680 * infcmd.c (construct_inferior_arguments): Assert that
10681 'argc' is greater than 0.
10682
10683 2020-01-29 Luis Machado <luis.machado@linaro.org>
10684
10685 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10686 (BRK_INSN_MASK): Define to 0xd4200000.
10687 (aarch64_program_breakpoint_here_p): New function.
10688 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10689 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10690 breakpoint.c.
10691 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10692 breakpoint.h
10693 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10694 call gdbarch_program_breakpoint_here_p.
10695 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10696 default_program_breakpoint_here_p, changed return type to bool and
10697 simplified.
10698 * breakpoint.h (program_breakpoint_here): Moved prototype to
10699 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10700 return type to bool.
10701 * gdbarch.c: Regenerate.
10702 * gdbarch.h: Regenerate.
10703 * gdbarch.sh (program_breakpoint_here_p): New method.
10704 * infrun.c (handle_signal_stop): Call
10705 gdbarch_program_breakpoint_here_p.
10706
10707 2020-01-26 Tom Tromey <tom@tromey.com>
10708
10709 * ctfread.c (struct ctf_fp_info): Reindent.
10710 (_initialize_ctfread): Remove.
10711
10712 2020-01-26 Tom Tromey <tom@tromey.com>
10713
10714 * psymtab.c (partial_map_expand_apply)
10715 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10716 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10717 (psym_print_stats, psym_expand_symtabs_for_function)
10718 (psym_map_symbol_filenames, psym_map_matching_symbols)
10719 (psym_expand_symtabs_matching)
10720 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10721 (maintenance_check_psymtabs): Use new methods.
10722 * psympriv.h (struct partial_symtab) <readin_p,
10723 get_compunit_symtab>: New methods.
10724 <readin, compunit_symtab>: Remove members.
10725 (struct standard_psymtab): New.
10726 (struct legacy_psymtab): Derive from standard_psymtab.
10727 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10728 standard_psymtab.
10729 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10730
10731 2020-01-26 Tom Tromey <tom@tromey.com>
10732
10733 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10734 read_dependencies. Add assert.
10735 * psymtab.c (partial_symtab::read_dependencies): New method.
10736 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10737 method.
10738 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10739 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10740 read_dependencies.
10741 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10742 Add assert.
10743
10744 2020-01-26 Tom Tromey <tom@tromey.com>
10745
10746 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10747 Call expand_psymtab.
10748 (xcoff_read_symtab): Call expand_psymtab.
10749 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10750 legacy_expand_psymtab.
10751 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10752 method.
10753 (struct legacy_psymtab) <expand_psymtab>: Implement.
10754 <legacy_expand_psymtab>: New member.
10755 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10756 (parse_partial_symbols): Set legacy_expand_psymtab.
10757 (psymtab_to_symtab_1): Change argument order. Call
10758 expand_psymtab.
10759 (new_psymtab): Set legacy_expand_psymtab.
10760 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10761 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10762 expand_psymtab.
10763 (dwarf2_psymtab::expand_psymtab): Rename from
10764 psymtab_to_symtab_1. Call expand_psymtab.
10765 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10766 (dbx_end_psymtab): Likewise.
10767 (dbx_psymtab_to_symtab_1): Change argument order. Call
10768 expand_psymtab.
10769 (dbx_read_symtab): Call expand_psymtab.
10770 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10771 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10772 (ctf_psymtab::read_symtab): Call expand_psymtab.
10773
10774 2020-01-26 Tom Tromey <tom@tromey.com>
10775
10776 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10777 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10778 messages.
10779 * mdebugread.c (mdebug_read_symtab): Remove prints.
10780 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10781 assert.
10782 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10783
10784 2020-01-26 Tom Tromey <tom@tromey.com>
10785
10786 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10787 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10788 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10789 legacy_symtab.
10790 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10791 * psymtab.c (psymtab_to_symtab): Call method.
10792 (dump_psymtab): Update.
10793 * psympriv.h (struct partial_symtab): Add virtual destructor.
10794 <read_symtab>: New method.
10795 (struct legacy_symtab): New.
10796 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10797 (struct pst_map) <pst>: Now a legacy_psymtab.
10798 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10799 (new_psymtab): Use legacy_psymtab.
10800 * dwarf2read.h (struct dwarf2_psymtab): New.
10801 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10802 * dwarf2read.c (dwarf2_create_include_psymtab)
10803 (dwarf2_build_include_psymtabs, create_type_unit_group)
10804 (create_partial_symtab, process_psymtab_comp_unit_reader)
10805 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10806 (set_partial_user): Use dwarf2_psymtab.
10807 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10808 (psymtab_to_symtab_1, process_full_comp_unit)
10809 (process_full_type_unit, dwarf2_ranges_read)
10810 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10811 (dwarf_decode_lines): Use dwarf2_psymtab.
10812 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10813 (add_address_entry_worker, write_one_signatured_type)
10814 (recursively_count_psymbols, recursively_write_psymbols)
10815 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10816 (write_debug_names): Likewise.
10817 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10818 <pst>: Now a legacy_psymtab.
10819 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10820 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10821 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10822 * ctfread.c (struct ctf_psymtab): New.
10823 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10824 ctf_psymtab.
10825 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10826 (create_partial_symtab): Return a ctf_psymtab.
10827 (scan_partial_symbols): Update.
10828
10829 2020-01-26 Tom Tromey <tom@tromey.com>
10830
10831 * xcoffread.c (xcoff_start_psymtab): Use new.
10832 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10833 renamed from start_psymtab_common.
10834 * psympriv.h (struct partial_symtab): Add new constructor.
10835 (start_psymtab_common): Don't declare.
10836 * mdebugread.c (parse_partial_symbols): Use new.
10837 * dwarf2read.c (create_partial_symtab): Use new.
10838 * dbxread.c (start_psymtab): Use new.
10839 * ctfread.c (create_partial_symtab): Use new.
10840
10841 2020-01-26 Tom Tromey <tom@tromey.com>
10842
10843 * xcoffread.c (xcoff_end_psymtab): Use new.
10844 * psymtab.c (start_psymtab_common): Use new.
10845 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10846 Update.
10847 * psympriv.h (struct partial_symtab): Add parameters to
10848 constructor. Don't inline.
10849 (allocate_psymtab): Don't declare.
10850 * mdebugread.c (new_psymtab): Use new.
10851 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10852 * dbxread.c (dbx_end_psymtab): Use new.
10853
10854 2020-01-26 Tom Tromey <tom@tromey.com>
10855
10856 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10857 allocate_psymtab. Update documentation.
10858 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10859 allocate_psymtab. Do not use new.
10860 (allocate_psymtab): Use new. Update.
10861
10862 2020-01-26 Tom Tromey <tom@tromey.com>
10863
10864 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10865 * psymtab.c (psym_print_stats): Update.
10866 * psympriv.h (struct partial_symtab) <readin,
10867 psymtabs_addrmap_supported, anonymous>: Now bool.
10868 * mdebugread.c (psymtab_to_symtab_1): Update.
10869 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10870 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10871 (process_full_comp_unit, process_full_type_unit): Update.
10872 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10873 * ctfread.c (psymtab_to_symtab): Update.
10874
10875 2020-01-26 Tom Tromey <tom@tromey.com>
10876
10877 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10878 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10879 * psymtab.c (psymtab_storage): Delete psymtabs.
10880 (psymtab_storage::allocate_psymtab): Use new.
10881 (psymtab_storage::discard_psymtab): Use delete.
10882 * psympriv.h (struct partial_symtab): Add constructor and
10883 initializers.
10884
10885 2020-01-26 Tom Tromey <tom@tromey.com>
10886
10887 * machoread.c: Do not include psympriv.h.
10888
10889 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10890
10891 * NEWS: Mention the new option and the set/show commands.
10892
10893 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10894
10895 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10896 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10897 (validate_exec_file): New variables, enums, functions.
10898 (exec_file_locate_attach, print_section_info): Style the filenames.
10899 (_initialize_exec): Install show_exec_file_mismatch_command and
10900 set_exec_file_mismatch_command.
10901 * gdbcore.h (validate_exec_file): Declare.
10902 * infcmd.c (attach_command): Call validate_exec_file.
10903 * remote.c ( remote_target::remote_add_inferior): Likewise.
10904
10905 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10906
10907 * frame.c (find_frame_sal): Move call to get_next_frame into more
10908 inner scope.
10909 * inline-frame.c (inilne_state) <inline_state>: Update argument
10910 types.
10911 (inilne_state) <skipped_symbol>: Rename to...
10912 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10913 (skip_inline_frames): Build vector of skipped symbols and use this
10914 to reate the inline_state.
10915 (inline_skipped_symbol): Add a comment and some assertions, fetch
10916 skipped symbol from the list.
10917
10918 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10919
10920 * buildsym.c (lte_is_less_than): Delete.
10921 (buildsym_compunit::end_symtab_with_blockvector): Create local
10922 lambda function to sort line table entries, and use
10923 std::stable_sort instead of std::sort.
10924 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10925 markers when looking for a previous line.
10926
10927 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10928
10929 * dwarf2read.c (lnp_state_machine::record_line): Include
10930 end_sequence parameter in debug print out. Record the line if we
10931 are at an end_sequence marker even if it's not the start of a
10932 statement.
10933 * symmisc.c (maintenance_print_one_line_table): Print end of
10934 sequence markers with 'END' not '0'.
10935
10936 2020-01-24 Pedro Alves <palves@redhat.com>
10937
10938 PR gdb/25410
10939 * thread.c (scoped_restore_current_thread::restore): Use
10940 switch_to_inferior_no_thread.
10941 * exec.c: Include "progspace-and-thread.h".
10942 (add_target_sections, remove_target_sections):
10943 scoped_restore_current_pspace_and_thread instead of
10944 scoped_restore_current_thread.
10945 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10946 and aspace to the inferior before calling clone_program_space.
10947 Remove stale comment.
10948
10949 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10950
10951 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10952 (arm_netbsd_nat_target::fetch_registers): ...this.
10953 (arm_nbsd_nat_target::store_registers): Rename to...
10954 (arm_netbsd_nat_target::store_registers): ...this.
10955
10956 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10957
10958 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10959 register_t.
10960
10961 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10962
10963 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10964 Update comment.
10965 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10966 Likewise.
10967 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10968 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10969 the correct replacement (iterate_over_regset_sections).
10970 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10971 Update comment.
10972
10973 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10974
10975 PR gdb/23718
10976 * gdb/python/python.c (execute_gdb_command): Call
10977 async_enable_stdin in catch block.
10978
10979 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10980
10981 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10982 SWITCH_THRU_ALL_UIS.
10983
10984 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10985
10986 PR tui/9765
10987 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10988 comment, add extra parameter, and update to store previous symbol
10989 when appropriate.
10990 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10991 add extra parameter.
10992 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10993 remove unneeded parameter, add try/catch around gdb_print_insn,
10994 rewrite to add items to asm_lines vector.
10995 (tui_find_backward_disassembly_start_address): New function.
10996 (tui_find_disassembly_address): Updated throughout.
10997 (tui_disasm_window::set_contents): Update for changes to
10998 tui_disassemble.
10999 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11000 number of lines to scroll.
11001
11002 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11003
11004 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11005 (SECT_OFF_DATA): Likewise.
11006 (SECT_OFF_RODATA): Likewise.
11007 (SECT_OFF_TEXT): Likewise.
11008 (SECT_OFF_BSS): Likewise.
11009 (struct objfile) <text_section_offset, data_section_offset>: New
11010 methods.
11011 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11012 objfile::text_section_offset.
11013 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11014 * coffread.c (coff_symtab_read): Likewise.
11015 (enter_linenos): Likewise.
11016 (process_coff_symbol): Likewise.
11017 * ctfread.c (get_objfile_text_range): Likewise.
11018 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11019 Use objfile::data_section_offset.
11020 * dwarf2-frame.c (execute_cfa_program): Use
11021 objfile::text_section_offset.
11022 (dwarf2_frame_find_fde): Likewise.
11023 * dwarf2read.c (create_addrmap_from_index): Likewise.
11024 (create_addrmap_from_aranges): Likewise.
11025 (dw2_find_pc_sect_compunit_symtab): Likewise.
11026 (process_psymtab_comp_unit_reader): Likewise.
11027 (add_partial_symbol): Likewise.
11028 (add_partial_subprogram): Likewise.
11029 (process_full_comp_unit): Likewise.
11030 (read_file_scope): Likewise.
11031 (read_func_scope): Likewise.
11032 (read_lexical_block_scope): Likewise.
11033 (read_call_site_scope): Likewise.
11034 (dwarf2_rnglists_process): Likewise.
11035 (dwarf2_ranges_process): Likewise.
11036 (dwarf2_ranges_read): Likewise.
11037 (dwarf_decode_lines_1): Likewise.
11038 (new_symbol): Likewise.
11039 (dwarf2_fetch_die_loc_sect_off): Likewise.
11040 (dwarf2_per_cu_text_offset): Likewise.
11041 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11042 * hppa-tdep.c (read_unwind_info): Likewise.
11043 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11044 * psympriv.h (struct partial_symtab): Likewise.
11045 * psymtab.c (find_pc_sect_psymtab): Likewise.
11046 * solib-svr4.c (enable_break): Likewise.
11047 * stap-probe.c (relocate_address): Use
11048 objfile::data_section_offset.
11049 * xcoffread.c (enter_line_range): Use
11050 objfile::text_section_offset.
11051 (read_xcoff_symtab): Likewise.
11052
11053 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11054
11055 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11056 declaration to narrower scopes.
11057
11058 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11059
11060 * darwin-nat.h (struct darwin_exception_msg, enum
11061 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11062 Move up.
11063 (class darwin_nat_target) <wait_1, check_new_threads,
11064 decode_exception_message, decode_message, stop_inferior,
11065 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11066 * darwin-nat.c (darwin_check_new_threads): Rename to...
11067 (darwin_nat_target::check_new_threads): ... this.
11068 (darwin_suspend_inferior_it): Remove.
11069 (darwin_decode_exception_message): Rename to...
11070 (darwin_nat_target::decode_exception_message): ... this.
11071 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11072 (darwin_decode_message): Rename to...
11073 (darwin_nat_target::decode_message): ... this.
11074 (cancel_breakpoint): Rename to...
11075 (darwin_nat_target::cancel_breakpoint): ... this.
11076 (darwin_wait): Rename to...
11077 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11078 instead of iterate_over_inferiors.
11079 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11080 (darwin_stop_inferior): Rename to...
11081 (darwin_nat_target::stop_inferior): ... this.
11082 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11083 (darwin_init_thread_list): Rename to...
11084 (darwin_nat_target::init_thread_list): ... this.
11085 (darwin_ptrace_him): Rename to...
11086 (darwin_nat_target::ptrace_him): ... this.
11087 (darwin_nat_target::create_inferior): Pass lambda function to
11088 fork_inferior.
11089 (darwin_nat_target::detach): Call stop_inferior instead of
11090 darwin_stop_inferior.
11091 * fork-inferior.h (fork_inferior): Change init_trace_fun
11092 parameter to gdb::function_view.
11093 * fork-inferior.c (fork_inferior): Likewise.
11094
11095 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11096
11097 * i386-cygwin-tdep.c (core_process_module_section): Update.
11098 * windows-nat.c (struct lm_info_windows): Add text_offset.
11099 (windows_xfer_shared_libraries): Update.
11100 * windows-tdep.c (windows_xfer_shared_library):
11101 Add text_offset_cached argument.
11102 * windows-tdep.h (windows_xfer_shared_library): Update.
11103
11104 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11105
11106 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11107
11108 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11109
11110 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11111 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11112 replace with range-based for.
11113 (gdbsim_interrupt_inferior): Remove.
11114 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11115 with a range-based for. Inline code from
11116 gdbsim_interrupt_inferior.
11117
11118 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11119
11120 * infrun.c (proceed): Fix indentation.
11121
11122 2020-01-21 Tom Tromey <tromey@adacore.com>
11123
11124 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11125 * python/python.c (python_extension_ops): Update.
11126 (gdbpy_colorize): New function.
11127 * python/lib/gdb/__init__.py (colorize): New function.
11128 * extension.h (ext_lang_colorize): Declare.
11129 * extension.c (ext_lang_colorize): New function.
11130 * extension-priv.h (struct extension_language_ops) <colorize>: New
11131 member.
11132 * cli/cli-style.c (_initialize_cli_style): Update help text.
11133
11134 2020-01-21 Luis Machado <luis.machado@linaro.org>
11135
11136 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11137 <cond>: Change type to bool.
11138 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11139 (aarch64_displaced_step_cb): Likewise.
11140 (aarch64_displaced_step_tb): Likewise.
11141
11142 2020-01-21 Luis Machado <luis.machado@linaro.org>
11143
11144 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11145 output.
11146
11147 2020-01-21 Luis Machado <luis.machado@linaro.org>
11148
11149 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11150 <pc_adjust>: Adjust the documentation.
11151 (aarch64_displaced_step_fixup): Check if PC really moved before
11152 adjusting it.
11153
11154 2020-01-19 Tom Tromey <tom@tromey.com>
11155
11156 * disasm.c (~gdb_disassembler): New destructor.
11157 (gdb_buffered_insn_length): Call disassemble_free_target.
11158 * disasm.h (class gdb_disassembler): Declare destructor. Use
11159 DISABLE_COPY_AND_ASSIGN.
11160
11161 2020-01-19 Tom Tromey <tom@tromey.com>
11162
11163 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11164 (die_reader_func_ftype): Remove.
11165 (cutu_reader): New class.
11166 (dw2_get_file_names_reader): Remove "data" parameter.
11167 (dw2_get_file_names): Use cutu_reader.
11168 (create_debug_type_hash_table): Update.
11169 (read_cutu_die_from_dwo): Update comment.
11170 (lookup_dwo_unit): Add dwo_name parameter.
11171 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11172 die_reader_func_ftype and data parameters.
11173 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11174 Remove die_reader_func_ftype and data parameters.
11175 (~cutu_reader): New; from init_cutu_and_read_dies.
11176 (cutu_reader::cutu_reader): Rename from
11177 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11178 and data parameters.
11179 (init_cutu_and_read_dies_simple): Remove.
11180 (struct process_psymtab_comp_unit_data): Remove.
11181 (process_psymtab_comp_unit_reader): Remove data parameter; add
11182 want_partial_unit and pretend_language parameters.
11183 (process_psymtab_comp_unit): Use cutu_reader.
11184 (build_type_psymtabs_reader): Remove data parameter.
11185 (build_type_psymtabs_1): Use cutu_reader.
11186 (process_skeletonless_type_unit): Likewise.
11187 (load_partial_comp_unit_reader): Remove.
11188 (load_partial_comp_unit): Use cutu_reader.
11189 (load_full_comp_unit_reader): Remove.
11190 (load_full_comp_unit): Use cutu_reader.
11191 (struct create_dwo_cu_data): Remove.
11192 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11193 dwo_unit parameters.
11194 (create_cus_hash_table): Use cutu_reader.
11195 (struct dwarf2_read_addr_index_data): Remove.
11196 (dwarf2_read_addr_index_reader): Remove.
11197 (dwarf2_read_addr_index): Use cutu_reader.
11198 (read_signatured_type_reader): Remove.
11199 (read_signatured_type): Use cutu_reader.
11200
11201 2020-01-19 Tom Tromey <tom@tromey.com>
11202
11203 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11204 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11205 (tui_wrefresh): Declare.
11206 * tui/tui-wingeneral.c (suppress_output): New global.
11207 (tui_suppress_output, ~tui_suppress_output): New constructor and
11208 destructor.
11209 (tui_wrefresh): New function.
11210 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11211 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11212 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11213 method.
11214 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11215 tui_wrefresh.
11216 (tui_data_window::no_refresh): New method.
11217 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11218 (tui_reg_command): Use tui_suppress_output
11219 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11220 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11221 method.
11222 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11223
11224 2020-01-19 Tom Tromey <tom@tromey.com>
11225
11226 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11227 Handle case where symtab is null.
11228
11229 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11230
11231 * linux-fork.c (one_fork_p): Simplify.
11232
11233 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11234
11235 * top.c (struct qt_args): Remove.
11236 (kill_or_detach): Change return type to void, replace `void *`
11237 parameter with a proper one.
11238 (print_inferior_quit_action): Likewise.
11239 (quit_confirm): Use range-based for loop to iterate over inferiors.
11240 (quit_force): Likewise.
11241
11242 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11243
11244 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11245 `void *` parameter with proper parameters.
11246 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11247 (print_one_inferior): Change return type to void, replace `void *`
11248 parameter with proper parameters.
11249 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11250 inferiors.
11251 (get_other_inferior): Remove.
11252 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11253 inferiors.
11254
11255 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11256
11257 * mi/mi-interp.c (report_initial_inferior): Remove.
11258 (mi_interp::init): Use range-based for to iterate over inferiors.
11259
11260 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11261
11262 * python/py-inferior.c (build_inferior_list): Remove.
11263 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11264
11265 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11266
11267 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11268 (btrace_stitch_trace): Likewise.
11269 * charset.c (intermediate_encoding): Likewise (vaild).
11270 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11271 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11272 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11273
11274 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11275
11276 * windows-tdep.c (windows_get_tlb_type):
11277 Add rtl_user_process_parameters type.
11278
11279 2020-01-16 Pedro Alves <palves@redhat.com>
11280 Norbert Lange <nolange79@gmail.com>
11281
11282 PR build/24805
11283 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11284 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11285 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11286 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11287 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11288 (ps_plog): Redeclare exported functions with default visibility.
11289
11290 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11291
11292 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11293 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11294
11295 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11296
11297 * infcmd.c (post_create_inferior): Use get_thread_regcache
11298 instead of get_current_regcache.
11299
11300 2020-01-14 Tom Tromey <tom@tromey.com>
11301
11302 PR symtab/12535:
11303 * python/python.c (gdbpy_decode_line): Treat empty string the same
11304 as no argument.
11305
11306 2020-01-14 Tom Tromey <tom@tromey.com>
11307
11308 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11309
11310 2020-01-14 Tom Tromey <tom@tromey.com>
11311
11312 * nat/linux-btrace.c: Don't include <config.h>.
11313 * nat/linux-ptrace.c: Don't include <config.h>.
11314 * nat/x86-linux-dregs.c: Don't include <config.h>.
11315
11316 2020-01-14 Tom Tromey <tom@tromey.com>
11317
11318 * configure: Rebuild.
11319 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11320
11321 2020-01-14 Tom Tromey <tom@tromey.com>
11322
11323 * nat/x86-linux-dregs.c: Include configh.h.
11324 * nat/linux-ptrace.c: Include configh.h.
11325 * nat/linux-btrace.c: Include configh.h.
11326 * defs.h: Include config.h, bfd.h.
11327 * configure.ac: Don't source common.host.
11328 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11329 * configure: Rebuild.
11330 * acinclude.m4: Update path.
11331 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11332 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11333 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11334 (CLIBS): Add LIBSUPPORT.
11335 (CDEPS): Likewise.
11336 (COMMON_SFILES): Remove gdbsupport files.
11337 (HFILES_NO_SRCDIR): Likewise.
11338 (stamp-version): Update path to create-version.sh.
11339 (ALLDEPFILES): Remove gdbsupport files.
11340
11341 2020-01-14 Tom Tromey <tom@tromey.com>
11342
11343 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11344 USE_WIN32API when needed.
11345 * configure.ac (USE_WIN32API): Don't define.
11346 (WIN32LIBS): Use WIN32APILIBS.
11347 * configure: Rebuild.
11348
11349 2020-01-14 Tom Tromey <tom@tromey.com>
11350
11351 * configure: Rebuild.
11352 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11353
11354 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11355
11356 * skip.c (skip_function_command): Make skip w/o arguments use the
11357 name of the inlined function if pc is inside any inlined function.
11358
11359 2020-01-14 Luis Machado <luis.machado@linaro.org>
11360
11361 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11362 * infrun.c (resume_1): Likewise.
11363 (handle_inferior_event): Remove stale comment.
11364 * linux-nat.c (linux_nat_target::resume): Update comments.
11365 (save_stop_reason): Likewise.
11366 (linux_nat_filter_event): Likewise.
11367 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11368
11369 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11370
11371 * elfread.c (record_minimal_symbol): Set section index to 0 for
11372 non-allocatable sections.
11373
11374
11375 2020-01-13 Ali Tamur <tamur@google.com>
11376
11377 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11378 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11379 to gdb::optional. Update comments.
11380 (dwo_file): Update comments.
11381 (read_attribute): Update API to take an additional out parameter,
11382 need_reprocess. This is used to mark attributes that need other
11383 attributes (e.g. str_offsets_base) for correct computation which may not
11384 have been read yet.
11385 (read_attribute_reprocess): New function declaration.
11386 (read_addr_index): Likewise.
11387 (read_dwo_str_index): Likewise.
11388 (read_stub_str_index): Likewise.
11389 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11390 (lookup_addr_base): New function definition.
11391 (lookup_ranges_base): Likewise.
11392 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11393 lookup_ranges_base.
11394 (init_cutu_and_read_dies): Update comments.
11395 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11396 unit. This is used to inherit parent's str_offsets_base and addr_base.
11397 Update comments.
11398 (init_cutu_and_read_dies_simple): Reflect API changes.
11399 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11400 (create_cus_hash_table): Change API to take parent compile unit.
11401 Reflect API changes.
11402 (open_and_init_dwo_file): Reflect API changes.
11403 (dwarf2_get_pc_bounds): Update comments.
11404 (dwarf2_record_block_ranges): Likewise.
11405 (read_full_die_1): Change implementation to reprocess attributes that
11406 need str_offsets_base and addr_base.
11407 (partial_die_info::read): Likewise.
11408 (read_attribute_reprocess): New function definition.
11409 (read_attribute_value): Change API to take an additional out parameter,
11410 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11411 when a non-dwo compile unit has index based attributes.
11412 (read_attribute): Reflect API changes.
11413 (read_addr_index_1): Reflect API changes. Update comments.
11414 (dwarf2_read_addr_index_data): Reflect API changes.
11415 (dwarf2_read_addr_index): Likewise.
11416 (read_str_index): Change API and implementation. This becomes a helper
11417 to be used by the new string index related methods. Update error
11418 message and comments.
11419 (read_dwo_str_index): New function definition.
11420 (read_stub_str_index): Likewise.
11421 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11422 * symfile.h (dwarf2_debug_sections): Likewise.
11423 * xcoffread.c (dwarf2_debug_sections): Likewise.
11424
11425 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11426
11427 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11428 core_reg_sect type to gdb_byte *.
11429 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11430 * cris-tdep.c (fetch_core_registers): Likewise.
11431 * corelow.c (core_target::get_core_register_section): Change
11432 type of `contents` to gdb::byte_vector.
11433
11434 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11435
11436 * tui/tui-wingeneral.c (box_win): Position the title in the center
11437 of the border.
11438
11439 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11440
11441 * corelow.c (core_target::get_core_register_section): Use
11442 std::vector instead of alloca.
11443
11444 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11445
11446 * warning.m4: Add -Wmissing-declarations to build_warnings.
11447 * configure: Re-generate.
11448
11449 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11450
11451 * python/python.c (init__gdb_module): Add declaration.
11452
11453 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11454
11455 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11456 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11457 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11458 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11459 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11460 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11461 * ada-exp.y (_initialize_ada_exp): Add declaration.
11462 * ada-lang.c (_initialize_ada_language): Add declaration.
11463 * ada-tasks.c (_initialize_tasks): Add declaration.
11464 * agent.c (_initialize_agent): Add declaration.
11465 * aix-thread.c (_initialize_aix_thread): Add declaration.
11466 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11467 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11468 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11469 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11470 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11471 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11472 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11473 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11474 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11475 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11476 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11477 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11478 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11479 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11480 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11481 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11482 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11483 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11484 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11485 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11486 * annotate.c (_initialize_annotate): Add declaration.
11487 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11488 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11489 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11490 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11491 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11492 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11493 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11494 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11495 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11496 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11497 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11498 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11499 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11500 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11501 * auto-load.c (_initialize_auto_load): Add declaration.
11502 * auxv.c (_initialize_auxv): Add declaration.
11503 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11504 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11505 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11506 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11507 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11508 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11509 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11510 * breakpoint.c (_initialize_breakpoint): Add declaration.
11511 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11512 * btrace.c (_initialize_btrace): Add declaration.
11513 * charset.c (_initialize_charset): Add declaration.
11514 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11515 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11516 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11517 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11518 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11519 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11520 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11521 * coffread.c (_initialize_coffread): Add declaration.
11522 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11523 * compile/compile.c (_initialize_compile): Add declaration.
11524 * complaints.c (_initialize_complaints): Add declaration.
11525 * completer.c (_initialize_completer): Add declaration.
11526 * copying.c (_initialize_copying): Add declaration.
11527 * corefile.c (_initialize_core): Add declaration.
11528 * corelow.c (_initialize_corelow): Add declaration.
11529 * cp-abi.c (_initialize_cp_abi): Add declaration.
11530 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11531 * cp-support.c (_initialize_cp_support): Add declaration.
11532 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11533 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11534 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11535 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11536 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11537 * ctfread.c (_initialize_ctfread): Add declaration.
11538 * d-lang.c (_initialize_d_language): Add declaration.
11539 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11540 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11541 * dbxread.c (_initialize_dbxread): Add declaration.
11542 * dcache.c (_initialize_dcache): Add declaration.
11543 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11544 * disasm.c (_initialize_disasm): Add declaration.
11545 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11546 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11547 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11548 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11549 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11550 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11551 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11552 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11553 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11554 * elfread.c (_initialize_elfread): Add declaration.
11555 * exec.c (_initialize_exec): Add declaration.
11556 * extension.c (_initialize_extension): Add declaration.
11557 * f-lang.c (_initialize_f_language): Add declaration.
11558 * f-valprint.c (_initialize_f_valprint): Add declaration.
11559 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11560 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11561 * filesystem.c (_initialize_filesystem): Add declaration.
11562 * findcmd.c (_initialize_mem_search): Add declaration.
11563 * findvar.c (_initialize_findvar): Add declaration.
11564 * fork-child.c (_initialize_fork_child): Add declaration.
11565 * frame-base.c (_initialize_frame_base): Add declaration.
11566 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11567 * frame.c (_initialize_frame): Add declaration.
11568 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11569 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11570 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11571 * gcore.c (_initialize_gcore): Add declaration.
11572 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11573 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11574 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11575 * gdbarch.c (_initialize_gdbarch): Add declaration.
11576 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11577 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11578 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11579 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11580 * go-lang.c (_initialize_go_language): Add declaration.
11581 * go32-nat.c (_initialize_go32_nat): Add declaration.
11582 * guile/guile.c (_initialize_guile): Add declaration.
11583 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11584 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11585 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11586 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11587 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11588 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11589 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11590 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11591 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11592 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11593 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11594 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11595 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11596 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11597 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11598 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11599 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11600 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11601 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11602 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11603 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11604 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11605 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11606 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11607 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11608 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11609 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11610 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11611 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11612 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11613 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11614 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11615 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11616 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11617 * infcall.c (_initialize_infcall): Add declaration.
11618 * infcmd.c (_initialize_infcmd): Add declaration.
11619 * inflow.c (_initialize_inflow): Add declaration.
11620 * infrun.c (_initialize_infrun): Add declaration.
11621 * interps.c (_initialize_interpreter): Add declaration.
11622 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11623 * jit.c (_initialize_jit): Add declaration.
11624 * language.c (_initialize_language): Add declaration.
11625 * linux-fork.c (_initialize_linux_fork): Add declaration.
11626 * linux-nat.c (_initialize_linux_nat): Add declaration.
11627 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11628 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11629 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11630 * m2-lang.c (_initialize_m2_language): Add declaration.
11631 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11632 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11633 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11634 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11635 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11636 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11637 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11638 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11639 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11640 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11641 * machoread.c (_initialize_machoread): Add declaration.
11642 * macrocmd.c (_initialize_macrocmd): Add declaration.
11643 * macroscope.c (_initialize_macroscope): Add declaration.
11644 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11645 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11646 * maint.c (_initialize_maint_cmds): Add declaration.
11647 * mdebugread.c (_initialize_mdebugread): Add declaration.
11648 * memattr.c (_initialize_mem): Add declaration.
11649 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11650 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11651 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11652 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11653 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11654 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11655 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11656 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11657 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11658 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11659 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11660 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11661 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11662 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11663 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11664 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11665 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11666 * mipsread.c (_initialize_mipsread): Add declaration.
11667 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11668 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11669 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11670 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11671 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11672 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11673 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11674 * nto-procfs.c (_initialize_procfs): Add declaration.
11675 * objc-lang.c (_initialize_objc_language): Add declaration.
11676 * observable.c (_initialize_observer): Add declaration.
11677 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11678 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11679 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11680 * osabi.c (_initialize_gdb_osabi): Add declaration.
11681 * osdata.c (_initialize_osdata): Add declaration.
11682 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11683 * parse.c (_initialize_parse): Add declaration.
11684 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11685 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11686 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11687 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11688 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11689 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11690 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11691 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11692 * printcmd.c (_initialize_printcmd): Add declaration.
11693 * probe.c (_initialize_probe): Add declaration.
11694 * proc-api.c (_initialize_proc_api): Add declaration.
11695 * proc-events.c (_initialize_proc_events): Add declaration.
11696 * proc-service.c (_initialize_proc_service): Add declaration.
11697 * procfs.c (_initialize_procfs): Add declaration.
11698 * producer.c (_initialize_producer): Add declaration.
11699 * psymtab.c (_initialize_psymtab): Add declaration.
11700 * python/python.c (_initialize_python): Add declaration.
11701 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11702 * record-btrace.c (_initialize_record_btrace): Add declaration.
11703 * record-full.c (_initialize_record_full): Add declaration.
11704 * record.c (_initialize_record): Add declaration.
11705 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11706 * regcache.c (_initialize_regcache): Add declaration.
11707 * reggroups.c (_initialize_reggroup): Add declaration.
11708 * remote-notif.c (_initialize_notif): Add declaration.
11709 * remote-sim.c (_initialize_remote_sim): Add declaration.
11710 * remote.c (_initialize_remote): Add declaration.
11711 * reverse.c (_initialize_reverse): Add declaration.
11712 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11713 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11714 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11715 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11716 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11717 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11718 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11719 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11720 Add declaration.
11721 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11722 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11723 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11724 * rust-exp.y (_initialize_rust_exp): Add declaration.
11725 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11726 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11727 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11728 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11729 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11730 * score-tdep.c (_initialize_score_tdep): Add declaration.
11731 * ser-go32.c (_initialize_ser_dos): Add declaration.
11732 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11733 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11734 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11735 * ser-uds.c (_initialize_ser_socket): Add declaration.
11736 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11737 * serial.c (_initialize_serial): Add declaration.
11738 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11739 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11740 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11741 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11742 * skip.c (_initialize_step_skip): Add declaration.
11743 * sol-thread.c (_initialize_sol_thread): Add declaration.
11744 * solib-aix.c (_initialize_solib_aix): Add declaration.
11745 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11746 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11747 * solib-frv.c (_initialize_frv_solib): Add declaration.
11748 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11749 * solib-target.c (_initialize_solib_target): Add declaration.
11750 * solib.c (_initialize_solib): Add declaration.
11751 * source-cache.c (_initialize_source_cache): Add declaration.
11752 * source.c (_initialize_source): Add declaration.
11753 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11754 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11755 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11756 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11757 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11758 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11759 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11760 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11761 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11762 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11763 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11764 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11765 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11766 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11767 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11768 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11769 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11770 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11771 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11772 * stabsread.c (_initialize_stabsread): Add declaration.
11773 * stack.c (_initialize_stack): Add declaration.
11774 * stap-probe.c (_initialize_stap_probe): Add declaration.
11775 * std-regs.c (_initialize_frame_reg): Add declaration.
11776 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11777 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11778 * symfile.c (_initialize_symfile): Add declaration.
11779 * symmisc.c (_initialize_symmisc): Add declaration.
11780 * symtab.c (_initialize_symtab): Add declaration.
11781 * target.c (_initialize_target): Add declaration.
11782 * target-connection.c (_initialize_target_connection): Add
11783 declaration.
11784 * target-dcache.c (_initialize_target_dcache): Add declaration.
11785 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11786 * thread.c (_initialize_thread): Add declaration.
11787 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11788 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11789 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11790 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11791 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11792 * tracectf.c (_initialize_ctf): Add declaration.
11793 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11794 * tracefile.c (_initialize_tracefile): Add declaration.
11795 * tracepoint.c (_initialize_tracepoint): Add declaration.
11796 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11797 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11798 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11799 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11800 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11801 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11802 * tui/tui.c (_initialize_tui): Add declaration.
11803 * typeprint.c (_initialize_typeprint): Add declaration.
11804 * ui-style.c (_initialize_ui_style): Add declaration.
11805 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11806 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11807 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11808 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11809 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11810 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11811 * unittests/filtered_iterator-selftests.c
11812 (_initialize_filtered_iterator_selftests): Add declaration.
11813 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11814 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11815 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11816 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11817 * unittests/main-thread-selftests.c
11818 (_initialize_main_thread_selftests): Add declaration.
11819 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11820 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11821 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11822 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11823 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11824 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11825 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11826 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11827 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11828 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11829 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11830 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11831 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11832 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11833 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11834 declaration.
11835 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11836 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11837 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11838 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11839 * user-regs.c (_initialize_user_regs): Add declaration.
11840 * utils.c (_initialize_utils): Add declaration.
11841 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11842 * valops.c (_initialize_valops): Add declaration.
11843 * valprint.c (_initialize_valprint): Add declaration.
11844 * value.c (_initialize_values): Add declaration.
11845 * varobj.c (_initialize_varobj): Add declaration.
11846 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11847 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11848 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11849 * windows-nat.c (_initialize_windows_nat): Add declaration.
11850 (_initialize_check_for_gdb_ini): Add declaration.
11851 (_initialize_loadable): Add declaration.
11852 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11853 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11854 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11855 * xcoffread.c (_initialize_xcoffread): Add declaration.
11856 * xml-support.c (_initialize_xml_support): Add declaration.
11857 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11858 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11859 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11860 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11861
11862 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11863
11864 * regformats/regdat.sh: Generate declaration for init function.
11865
11866 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11867
11868 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11869 up.
11870 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11871 close_one_inferior>: New methods.
11872 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11873 pass down target to find_inferior_pid.
11874 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11875 Pass down target to find_inferior_ptid.
11876 (gdbsim_target::create_inferior): Pass down target to
11877 add_thread_silent.
11878 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11879 target down to find_inferior_ptid and switch_to_thread.
11880 (gdbsim_target::close): Update to call close_one_inferior.
11881 (struct resume_data): Remove.
11882 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11883 directly, rather than through a void pointer.
11884 (gdbsim_target::resume): Update to call resume_one_inferior.
11885
11886 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11887
11888 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11889
11890 2020-01-12 Pedro Alves <palves@redhat.com>
11891
11892 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11893 directly for the current inferior instead of
11894 discard_all_inferiors.
11895 (discard_all_inferiors): Delete.
11896
11897 2020-01-11 Tom Tromey <tom@tromey.com>
11898
11899 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11900 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11901 deprecated_safe_get_selected_frame.
11902
11903 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11904
11905 * inferior.c (print_inferior): Switch inferior before printing it.
11906
11907 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11908 Pedro Alves <palves@redhat.com>
11909
11910 * progspace-and-thread.c (switch_to_program_space_and_thread):
11911 Assert there's an inferior for PSPACE. Use
11912 switch_to_inferior_no_thread to switch the inferior too.
11913 * progspace.c (program_space::~program_space): Call
11914 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11915 (program_space::free_all_objfiles): Don't call clear_symtab_users
11916 here.
11917 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11918
11919 2020-01-10 Pedro Alves <palves@redhat.com>
11920
11921 * NEWS: Mention multi-target debugging, "info connections", and
11922 "add-inferior -no-connection".
11923
11924 2020-01-10 Pedro Alves <palves@redhat.com>
11925
11926 * infrun.c: Include "target-connection.h".
11927 (check_multi_target_resumption): New.
11928 (proceed): Call it.
11929 * target-connection.c (make_target_connection_string): Make
11930 extern.
11931 * target-connection.h (make_target_connection_string): Declare.
11932
11933 2020-01-10 Pedro Alves <palves@redhat.com>
11934
11935 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11936 * inferior.c (uiout_field_connection): New function.
11937 (print_inferior): Add new "connection-id" column.
11938 (add_inferior_command): Show connection number/string of added
11939 inferior.
11940 * process-stratum-target.h
11941 (process_stratum_target::connection_string): New virtual method.
11942 (process_stratum_target::connection_number): New field.
11943 * remote.c (remote_target::connection_string): New override.
11944 * target-connection.c: New file.
11945 * target-connection.h: New file.
11946 * target.c (decref_target): Remove process_stratum targets from
11947 the connection list.
11948 (target_stack::push): Add process_stratum targets to the
11949 connection list.
11950
11951 2020-01-10 Pedro Alves <palves@redhat.com>
11952
11953 Revert:
11954 2016-04-12 Pedro Alves <palves@redhat.com>
11955 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11956 Remove references to name.
11957 * serial.h (struct serial) <name>: Delete.
11958
11959 2020-01-10 Pedro Alves <palves@redhat.com>
11960
11961 * gdbarch-selftests.c (register_to_value_test): Remove "target
11962 already pushed" check.
11963
11964 2020-01-10 Pedro Alves <palves@redhat.com>
11965 John Baldwin <jhb@FreeBSD.org>
11966
11967 * aarch64-linux-nat.c
11968 (aarch64_linux_nat_target::thread_architecture): Adjust.
11969 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11970 (task_command_1): Likewise.
11971 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11972 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11973 (aix_thread_target::store_registers)
11974 (aix_thread_target::thread_alive): Adjust.
11975 * amd64-fbsd-tdep.c: Include "inferior.h".
11976 (amd64fbsd_get_thread_local_address): Pass down target.
11977 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11978 thread's gdbarch instead of target_gdbarch.
11979 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11980 get_last_target_status.
11981 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11982 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11983 inferiors.
11984 (update_inserted_breakpoint_locations): Skip if inferiors with no
11985 execution.
11986 (update_global_location_list): When handling moribund locations,
11987 find representative inferior for location's pspace, and use thread
11988 count of its process_stratum target.
11989 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11990 * bsd-uthread.c (bsd_uthread_target::wait): Use
11991 as_process_stratum_target and adjust thread_change_ptid and
11992 add_thread calls.
11993 (bsd_uthread_target::update_thread_list): Use
11994 as_process_stratum_target and adjust find_thread_ptid,
11995 thread_change_ptid and add_thread calls.
11996 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11997 find_thread_ptid call.
11998 * corelow.c (add_to_thread_list): Adjust add_thread call.
11999 (core_target_open): Adjust add_thread_silent and thread_count
12000 calls.
12001 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12002 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12003 * event-top.c (async_disconnect): Pop targets from all inferiors.
12004 * exec.c (add_target_sections): Push exec target on all inferiors
12005 sharing the program space.
12006 (remove_target_sections): Remove the exec target from all
12007 inferiors sharing the program space.
12008 (exec_on_vfork): New.
12009 * exec.h (exec_on_vfork): Declare.
12010 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12011 Pass it down.
12012 (fbsd_nat_target::update_thread_list): Adjust.
12013 (fbsd_nat_target::resume): Adjust.
12014 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12015 down.
12016 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12017 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12018 get_thread_arch_regcache call.
12019 * fork-child.c (gdb_startup_inferior): Pass target down to
12020 startup_inferior and set_executing.
12021 * gdbthread.h (struct process_stratum_target): Forward declare.
12022 (add_thread, add_thread_silent, add_thread_with_info)
12023 (in_thread_list): Add process_stratum_target parameter.
12024 (find_thread_ptid(inferior*, ptid_t)): New overload.
12025 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12026 parameter.
12027 (all_threads()): Delete overload.
12028 (all_threads, all_non_exited_threads): Add process_stratum_target
12029 parameter.
12030 (all_threads_safe): Use brace initialization.
12031 (thread_count): Add process_stratum_target parameter.
12032 (set_resumed, set_running, set_stop_requested, set_executing)
12033 (threads_are_executing, finish_thread_state): Add
12034 process_stratum_target parameter.
12035 (switch_to_thread): Use is_current_thread.
12036 * i386-fbsd-tdep.c: Include "inferior.h".
12037 (i386fbsd_get_thread_local_address): Pass down target.
12038 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12039 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12040 have_inferiors check.
12041 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12042 (inf_ptrace_target::attach): Adjust.
12043 * infcall.c (run_inferior_call): Adjust.
12044 * infcmd.c (run_command_1): Pass target to
12045 scoped_finish_thread_state.
12046 (proceed_thread_callback): Skip inferiors with no execution.
12047 (continue_command): Rename 'all_threads' local to avoid hiding
12048 'all_threads' function. Adjust get_last_target_status call.
12049 (prepare_one_step): Adjust set_running call.
12050 (signal_command): Use user_visible_resume_target. Compare thread
12051 pointers instead of inferior_ptid.
12052 (info_program_command): Adjust to pass down target.
12053 (attach_command): Mark target's 'thread_executing' flag.
12054 (stop_current_target_threads_ns): New, factored out from ...
12055 (interrupt_target_1): ... this. Switch inferior before making
12056 target calls.
12057 * inferior-iter.h
12058 (struct all_inferiors_iterator, struct all_inferiors_range)
12059 (struct all_inferiors_safe_range)
12060 (struct all_non_exited_inferiors_range): Filter on
12061 process_stratum_target too. Remove explicit.
12062 * inferior.c (inferior::inferior): Push dummy target on target
12063 stack.
12064 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12065 Add process_stratum_target parameter, and pass it down.
12066 (have_live_inferiors): Adjust.
12067 (switch_to_inferior_and_push_target): New.
12068 (add_inferior_command, clone_inferior_command): Handle
12069 "-no-connection" parameter. Use
12070 switch_to_inferior_and_push_target.
12071 (_initialize_inferior): Mention "-no-connection" option in
12072 the help of "add-inferior" and "clone-inferior" commands.
12073 * inferior.h: Include "process-stratum-target.h".
12074 (interrupt_target_1): Use bool.
12075 (struct inferior) <push_target, unpush_target, target_is_pushed,
12076 find_target_beneath, top_target, process_target, target_at,
12077 m_stack>: New.
12078 (discard_all_inferiors): Delete.
12079 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12080 (all_inferiors, all_non_exited_inferiors): Add
12081 process_stratum_target parameter.
12082 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12083 (target_last_proc_target): New global.
12084 (follow_fork_inferior): Push target on new inferior. Pass target
12085 to add_thread_silent. Call exec_on_vfork. Handle target's
12086 reference count.
12087 (follow_fork): Adjust get_last_target_status call. Also consider
12088 target.
12089 (follow_exec): Push target on new inferior.
12090 (struct execution_control_state) <target>: New field.
12091 (user_visible_resume_target): New.
12092 (do_target_resume): Call target_async.
12093 (resume_1): Set target's threads_executing flag. Consider resume
12094 target.
12095 (commit_resume_all_targets): New.
12096 (proceed): Also consider resume target. Skip threads of inferiors
12097 with no execution. Commit resumtion in all targets.
12098 (start_remote): Pass current inferior to wait_for_inferior.
12099 (infrun_thread_stop_requested): Consider target as well. Pass
12100 thread_info pointer to clear_inline_frame_state instead of ptid.
12101 (infrun_thread_thread_exit): Consider target as well.
12102 (random_pending_event_thread): New inferior parameter. Use it.
12103 (do_target_wait): Rename to ...
12104 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12105 down.
12106 (threads_are_resumed_pending_p, do_target_wait): New.
12107 (prepare_for_detach): Adjust calls.
12108 (wait_for_inferior): New inferior parameter. Handle it. Use
12109 do_target_wait_1 instead of do_target_wait.
12110 (fetch_inferior_event): Adjust. Switch to representative
12111 inferior. Pass target down.
12112 (set_last_target_status): Add process_stratum_target parameter.
12113 Save target in global.
12114 (get_last_target_status): Add process_stratum_target parameter and
12115 handle it.
12116 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12117 (context_switch): Check inferior_ptid == null_ptid before calling
12118 inferior_thread().
12119 (get_inferior_stop_soon): Pass down target.
12120 (wait_one): Rename to ...
12121 (poll_one_curr_target): ... this.
12122 (struct wait_one_event): New.
12123 (wait_one): New.
12124 (stop_all_threads): Adjust.
12125 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12126 event's target.
12127 (switch_back_to_stepped_thread): Also consider target.
12128 (print_stop_event): Update.
12129 (normal_stop): Update. Also consider the resume target.
12130 * infrun.h (wait_for_inferior): Remove declaration.
12131 (user_visible_resume_target): New declaration.
12132 (get_last_target_status, set_last_target_status): New
12133 process_stratum_target parameter.
12134 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12135 process_stratum_target parameter, and use it.
12136 (clear_inline_frame_state (thread_info*)): New.
12137 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12138 process_stratum_target parameter.
12139 (clear_inline_frame_state (thread_info*)): Declare.
12140 * linux-fork.c (delete_checkpoint_command): Pass target down to
12141 find_thread_ptid.
12142 (checkpoint_command): Adjust.
12143 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12144 instead of just tweaking inferior_ptid.
12145 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12146 (exit_lwp): Pass target down to find_thread_ptid.
12147 (attach_proc_task_lwp_callback): Pass target down to
12148 add_thread/set_running/set_executing.
12149 (linux_nat_target::attach): Pass target down to
12150 thread_change_ptid.
12151 (get_detach_signal): Pass target down to find_thread_ptid.
12152 Consider last target status's target.
12153 (linux_resume_one_lwp_throw, resume_lwp)
12154 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12155 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12156 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12157 (linux_nat_target::async_wait_fd): New.
12158 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12159 target down.
12160 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12161 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12162 * linux-thread-db.c (struct thread_db_info::process_target): New
12163 field.
12164 (add_thread_db_info): Save target.
12165 (get_thread_db_info): New process_stratum_target parameter. Also
12166 match target.
12167 (delete_thread_db_info): New process_stratum_target parameter.
12168 Also match target.
12169 (thread_from_lwp): Adjust to pass down target.
12170 (thread_db_notice_clone): Pass down target.
12171 (check_thread_db_callback): Pass down target.
12172 (try_thread_db_load_1): Always push the thread_db target.
12173 (try_thread_db_load, record_thread): Pass target down.
12174 (thread_db_target::detach): Pass target down. Always unpush the
12175 thread_db target.
12176 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12177 target down. Always unpush the thread_db target.
12178 (find_new_threads_callback, thread_db_find_new_threads_2)
12179 (thread_db_target::update_thread_list): Pass target down.
12180 (thread_db_target::pid_to_str): Pass current inferior down.
12181 (thread_db_target::get_thread_local_address): Pass target down.
12182 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12183 target down.
12184 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12185 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12186 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12187 (procfs_init_inferior): Rename to ...
12188 (procfs_target::procfs_init_inferior): ... this and adjust.
12189 (procfs_target::create_inferior, procfs_notice_thread)
12190 (procfs_do_thread_registers): Adjust.
12191 * ppc-fbsd-tdep.c: Include "inferior.h".
12192 (ppcfbsd_get_thread_local_address): Pass down target.
12193 * proc-service.c (ps_xfer_memory): Switch current inferior and
12194 program space as well.
12195 (get_ps_regcache): Pass target down.
12196 * process-stratum-target.c
12197 (process_stratum_target::thread_address_space)
12198 (process_stratum_target::thread_architecture): Pass target down.
12199 * process-stratum-target.h
12200 (process_stratum_target::threads_executing): New field.
12201 (as_process_stratum_target): New.
12202 * ravenscar-thread.c
12203 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12204 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12205 down.
12206 * record-btrace.c (record_btrace_target::info_record): Adjust.
12207 (record_btrace_target::record_method)
12208 (record_btrace_target::record_is_replaying)
12209 (record_btrace_target::fetch_registers)
12210 (get_thread_current_frame_id, record_btrace_target::resume)
12211 (record_btrace_target::wait, record_btrace_target::stop): Pass
12212 target down.
12213 * record-full.c (record_full_wait_1): Switch to event thread.
12214 Pass target down.
12215 * regcache.c (regcache::regcache)
12216 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12217 process_stratum_target parameter and handle it.
12218 (current_thread_target): New global.
12219 (get_thread_regcache): Add process_stratum_target parameter and
12220 handle it. Switch inferior before calling target method.
12221 (get_thread_regcache): Pass target down.
12222 (get_thread_regcache_for_ptid): Pass target down.
12223 (registers_changed_ptid): Add process_stratum_target parameter and
12224 handle it.
12225 (registers_changed_thread, registers_changed): Pass target down.
12226 (test_get_thread_arch_aspace_regcache): New.
12227 (current_regcache_test): Define a couple local test_target_ops
12228 instances and use them for testing.
12229 (readwrite_regcache): Pass process_stratum_target parameter.
12230 (cooked_read_test, cooked_write_test): Pass mock_target down.
12231 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12232 (get_thread_arch_aspace_regcache): Add process_stratum_target
12233 parameter.
12234 (regcache::target): New method.
12235 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12236 (regcache::registers_changed_ptid): Add process_stratum_target
12237 parameter.
12238 (regcache::m_target): New field.
12239 (registers_changed_ptid): Add process_stratum_target parameter.
12240 * remote.c (remote_state::supports_vCont_probed): New field.
12241 (remote_target::async_wait_fd): New method.
12242 (remote_unpush_and_throw): Add remote_target parameter.
12243 (get_current_remote_target): Adjust.
12244 (remote_target::remote_add_inferior): Push target.
12245 (remote_target::remote_add_thread)
12246 (remote_target::remote_notice_new_inferior)
12247 (get_remote_thread_info): Pass target down.
12248 (remote_target::update_thread_list): Skip threads of inferiors
12249 bound to other targets. (remote_target::close): Don't discard
12250 inferiors. (remote_target::add_current_inferior_and_thread)
12251 (remote_target::process_initial_stop_replies)
12252 (remote_target::start_remote)
12253 (remote_target::remote_serial_quit_handler): Pass down target.
12254 (remote_target::remote_unpush_target): New remote_target
12255 parameter. Unpush the target from all inferiors.
12256 (remote_target::remote_unpush_and_throw): New remote_target
12257 parameter. Pass it down.
12258 (remote_target::open_1): Check whether the current inferior has
12259 execution instead of checking whether any inferior is live. Pass
12260 target down.
12261 (remote_target::remote_detach_1): Pass down target. Use
12262 remote_unpush_target.
12263 (extended_remote_target::attach): Pass down target.
12264 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12265 (remote_target::append_resumption): Pass down target.
12266 (remote_target::append_pending_thread_resumptions)
12267 (remote_target::remote_resume_with_hc, remote_target::resume)
12268 (remote_target::commit_resume): Pass down target.
12269 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12270 (remote_target::interrupt_query)
12271 (remote_target::remove_new_fork_children)
12272 (remote_target::check_pending_events_prevent_wildcard_vcont)
12273 (remote_target::remote_parse_stop_reply)
12274 (remote_target::process_stop_reply): Pass down target.
12275 (first_remote_resumed_thread): New remote_target parameter. Pass
12276 it down.
12277 (remote_target::wait_as): Pass down target.
12278 (unpush_and_perror): New remote_target parameter. Pass it down.
12279 (remote_target::readchar, remote_target::remote_serial_write)
12280 (remote_target::getpkt_or_notif_sane_1)
12281 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12282 down target.
12283 (remote_target::mourn_inferior): Pass down target. Use
12284 remote_unpush_target.
12285 (remote_target::core_of_thread)
12286 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12287 (remote_target::pid_to_exec_file)
12288 (remote_target::thread_handle_to_thread_info): Pass down target.
12289 (remote_target::async_wait_fd): New.
12290 * riscv-fbsd-tdep.c: Include "inferior.h".
12291 (riscv_fbsd_get_thread_local_address): Pass down target.
12292 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12293 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12294 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12295 Adjust.
12296 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12297 * solib-svr4.c (enable_break): Pass down target.
12298 * spu-multiarch.c (parse_spufs_run): Pass down target.
12299 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12300 * target-delegates.c: Regenerate.
12301 * target.c (g_target_stack): Delete.
12302 (current_top_target): Return the current inferior's top target.
12303 (target_has_execution_1): Refer to the passed-in inferior's top
12304 target.
12305 (target_supports_terminal_ours): Check whether the initial
12306 inferior was already created.
12307 (decref_target): New.
12308 (target_stack::push): Incref/decref the target.
12309 (push_target, push_target, unpush_target): Adjust.
12310 (target_stack::unpush): Defref target.
12311 (target_is_pushed): Return bool. Adjust to refer to the current
12312 inferior's target stack.
12313 (dispose_inferior): Delete, and inline parts ...
12314 (target_preopen): ... here. Only dispose of the current inferior.
12315 (target_detach): Hold strong target reference while detaching.
12316 Pass target down.
12317 (target_thread_name): Add assertion.
12318 (target_resume): Pass down target.
12319 (target_ops::beneath, find_target_at): Adjust to refer to the
12320 current inferior's target stack.
12321 (get_dummy_target): New.
12322 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12323 has a thread running.
12324 (initialize_targets): Rename to ...
12325 (_initialize_target): ... this.
12326 * target.h: Include "gdbsupport/refcounted-object.h".
12327 (struct target_ops): Inherit refcounted_object.
12328 (target_ops::shortname, target_ops::longname): Make const.
12329 (target_ops::async_wait_fd): New method.
12330 (decref_target): Declare.
12331 (struct target_ops_ref_policy): New.
12332 (target_ops_ref): New typedef.
12333 (get_dummy_target): Declare function.
12334 (target_is_pushed): Return bool.
12335 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12336 (all_matching_threads_iterator::all_matching_threads_iterator):
12337 Handle filter target.
12338 * thread-iter.h (struct all_matching_threads_iterator, struct
12339 all_matching_threads_range, class all_non_exited_threads_range):
12340 Filter by target too. Remove explicit.
12341 * thread.c (threads_executing): Delete.
12342 (inferior_thread): Pass down current inferior.
12343 (clear_thread_inferior_resources): Pass down thread pointer
12344 instead of ptid_t.
12345 (add_thread_silent, add_thread_with_info, add_thread): Add
12346 process_stratum_target parameter. Use it for thread and inferior
12347 searches.
12348 (is_current_thread): New.
12349 (thread_info::deletable): Use it.
12350 (find_thread_ptid, thread_count, in_thread_list)
12351 (thread_change_ptid, set_resumed, set_running): New
12352 process_stratum_target parameter. Pass it down.
12353 (set_executing): New process_stratum_target parameter. Pass it
12354 down. Adjust reference to 'threads_executing'.
12355 (threads_are_executing): New process_stratum_target parameter.
12356 Adjust reference to 'threads_executing'.
12357 (set_stop_requested, finish_thread_state): New
12358 process_stratum_target parameter. Pass it down.
12359 (switch_to_thread): Also match inferior.
12360 (switch_to_thread): New process_stratum_target parameter. Pass it
12361 down.
12362 (update_threads_executing): Reimplement.
12363 * top.c (quit_force): Pop targets from all inferior.
12364 (gdb_init): Don't call initialize_targets.
12365 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12366 Declare.
12367 (windows_add_thread, windows_delete_thread): Adjust.
12368 (get_windows_debug_event): Rename to ...
12369 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12370 * tracefile-tfile.c (tfile_target_open): Pass down target.
12371 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12372 Forward declare.
12373 (switch_to_thread): Add process_stratum_target parameter.
12374 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12375 parameter. Use it.
12376 (mi_on_resume): Pass target down.
12377 * nat/fork-inferior.c (startup_inferior): Add
12378 process_stratum_target parameter. Pass it down.
12379 * nat/fork-inferior.h (startup_inferior): Add
12380 process_stratum_target parameter.
12381 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12382
12383 2020-01-10 Pedro Alves <palves@redhat.com>
12384
12385 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12386 directly. Instead find the first thread in the thread list and
12387 use switch_to_thread.
12388
12389 2020-01-10 Pedro Alves <palves@redhat.com>
12390
12391 * remote.c (remote_target::remote_add_inferior): Don't bind a
12392 process to the current inferior if the current inferior is already
12393 bound to a process.
12394
12395 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12396 Pedro Alves <palves@redhat.com>
12397
12398 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12399 If no process is specified, return null_ptid instead of
12400 inferior_ptid.
12401 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12402 TARGET_WAITKIND_SIGNALLED with no pid.
12403
12404 2020-01-10 Pedro Alves <palves@redhat.com>
12405
12406 * remote.c (first_remote_resumed_thread): New.
12407 (remote_target::wait_as): Use it as default event_ptid instead of
12408 inferior_ptid.
12409
12410 2020-01-10 Pedro Alves <palves@redhat.com>
12411
12412 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12413
12414 2020-01-10 Pedro Alves <palves@redhat.com>
12415
12416 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12417 not -1.
12418
12419 2020-01-10 Pedro Alves <palves@redhat.com>
12420
12421 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12422 ptid to get_last_target_status.
12423 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12424 ptid to get_last_target_status.
12425 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12426 get_last_target_status.
12427 (info_program_command): Don't pass a target_waitstatus to
12428 get_last_target_status.
12429 * infrun.c (init_wait_for_inferior): Use
12430 nullify_last_target_wait_ptid.
12431 (get_last_target_status): Handle nullptr arguments.
12432 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12433 (print_stop_event): Don't pass a ptid to get_last_target_status.
12434 (normal_stop): Don't pass a ptid to get_last_target_status.
12435 * infrun.h (get_last_target_status, set_last_target_status): Move
12436 comments here and update.
12437 (nullify_last_target_wait_ptid): Declare.
12438 * linux-fork.c (fork_load_infrun_state): Remove local extern
12439 declaration of nullify_last_target_wait_ptid.
12440 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12441 to get_last_target_status.
12442
12443 2020-01-10 Pedro Alves <palves@redhat.com>
12444
12445 * gdbthread.h (scoped_restore_current_thread)
12446 <dont_restore, restore, m_dont_restore>: Declare.
12447 * thread.c (thread_alive): Add assertion. Return bool.
12448 (switch_to_thread_if_alive): New.
12449 (prune_threads): Switch inferior/thread.
12450 (print_thread_info_1): Switch thread before calling target methods.
12451 (scoped_restore_current_thread::restore): New, factored out from
12452 ...
12453 (scoped_restore_current_thread::~scoped_restore_current_thread):
12454 ... this.
12455 (scoped_restore_current_thread::scoped_restore_current_thread):
12456 Add assertion.
12457 (thread_apply_all_command, thread_select): Use
12458 switch_to_thread_if_alive.
12459 * infrun.c (proceed, restart_threads, handle_signal_stop)
12460 (switch_back_to_stepped_thread): Switch current thread before
12461 calling target methods.
12462
12463 2020-01-10 Pedro Alves <palves@redhat.com>
12464
12465 * inferior.c (switch_to_inferior_no_thread): New function,
12466 factored out from ...
12467 (inferior_command): ... here.
12468 * inferior.h (switch_to_inferior_no_thread): Declare.
12469 * mi/mi-main.c (run_one_inferior): Use
12470 switch_to_inferior_no_thread.
12471
12472 2020-01-10 Pedro Alves <palves@redhat.com>
12473
12474 * infcmd.c (kill_command): Remove dead code.
12475
12476 2020-01-10 Pedro Alves <palves@redhat.com>
12477
12478 * remote.c (remote_target::mourn_inferior): No longer check
12479 whether the target is running.
12480
12481 2020-01-10 Pedro Alves <palves@redhat.com>
12482
12483 * corelow.c (core_target::has_execution): Change parameter type to
12484 inferior pointer.
12485 * inferior.c (number_of_live_inferiors): Use
12486 inferior::has_execution instead of target_has_execution_1.
12487 * inferior.h (inferior::has_execution): New.
12488 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12489 inferior::has_execution instead of target_has_execution_1.
12490 * process-stratum-target.c
12491 (process_stratum_target::has_execution): Change parameter type to
12492 inferior pointer. Check the inferior's PID instead of
12493 inferior_ptid.
12494 * process-stratum-target.h
12495 (process_stratum_target::has_execution): Change parameter type to
12496 inferior pointer.
12497 * record-full.c (record_full_core_target::has_execution): Change
12498 parameter type to inferior pointer.
12499 * target.c (target_has_execution_1): Change parameter type to
12500 inferior pointer.
12501 (target_has_execution_current): Adjust.
12502 * target.h (target_ops::has_execution): Change parameter type to
12503 inferior pointer.
12504 (target_has_execution_1): Change parameter type to inferior
12505 pointer. Change return type to bool.
12506 * tracefile.h (tracefile_target::has_execution): Change parameter
12507 type to inferior pointer.
12508
12509 2020-01-10 Pedro Alves <palves@redhat.com>
12510
12511 * exceptions.c (print_flush): Remove current_top_target() check.
12512
12513 2020-01-10 Pedro Alves <palves@redhat.com>
12514
12515 * remote.c (show_remote_exec_file): Show the current inferior's
12516 exec-file instead of the command variable's value.
12517
12518 2020-01-10 Pedro Alves <palves@redhat.com>
12519
12520 * record-full.c (record_full_resume_ptid): New global.
12521 (record_full_target::resume): Set it.
12522 (record_full_wait_1): Use record_full_resume_ptid instead of
12523 inferior_ptid.
12524
12525 2020-01-10 Pedro Alves <palves@redhat.com>
12526
12527 * gdbthread.h (scoped_restore_current_thread)
12528 <dont_restore, restore, m_dont_restore>: Declare.
12529 * thread.c (thread_alive): Add assertion. Return bool.
12530 (switch_to_thread_if_alive): New.
12531 (prune_threads): Switch inferior/thread.
12532 (print_thread_info_1): Switch thread before calling target methods.
12533 (scoped_restore_current_thread::restore): New, factored out from
12534 ...
12535 (scoped_restore_current_thread::~scoped_restore_current_thread):
12536 ... this.
12537 (scoped_restore_current_thread::scoped_restore_current_thread):
12538 Add assertion.
12539 (thread_apply_all_command, thread_select): Use
12540 switch_to_thread_if_alive.
12541
12542 2020-01-10 George Barrett <bob@bob131.so>
12543
12544 * stap-probe.c (stap_modify_semaphore): Don't check for null
12545 semaphores.
12546 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12547 for null semaphores.
12548
12549 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12550
12551 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12552 all source windows, and maintain horizontal scroll status while
12553 doing so.
12554
12555 2020-01-09 Tom Tromey <tom@tromey.com>
12556
12557 PR tui/18932:
12558 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12559 update_source_window, not print_source_lines.
12560
12561 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12562
12563 * tui/tui.c (tui_enable): Register tui hooks after calling
12564 tui_display_main.
12565
12566 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12567
12568 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12569
12570 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12571
12572 * thread.c (print_thread_info_1): Fix indentation.
12573
12574 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12575
12576 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12577 unique_xmalloc_ptr outside the if to always free the demangled name.
12578
12579 2020-01-08 Tom Tromey <tromey@adacore.com>
12580
12581 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12582 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12583 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12584 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12585 Remove.
12586 (section_offsets): New typedef.
12587 * symtab.c (fixup_section, get_msymbol_address): Update.
12588 * symmisc.c (dump_msymbols): Update.
12589 * symfile.h (relative_addr_info_to_section_offsets)
12590 (symfile_map_offsets_to_segments): Update.
12591 * symfile.c (build_section_addr_info_from_objfile)
12592 (init_objfile_sect_indices): Update.
12593 (struct place_section_arg): Change type of "offsets".
12594 (place_section): Update.
12595 (relative_addr_info_to_section_offsets): Change type of
12596 "section_offsets". Remove "num_sections" parameter.
12597 (default_symfile_offsets, syms_from_objfile_1)
12598 (set_objfile_default_section_offset): Update.
12599 (reread_symbols): No need to preserve section offsets by hand.
12600 (symfile_map_offsets_to_segments): Change type of "offsets".
12601 * stap-probe.c (relocate_address): Update.
12602 * stabsread.h (process_one_symbol): Update.
12603 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12604 (solib_target_relocate_section_addresses): Update.
12605 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12606 Update.
12607 * solib-frv.c (frv_relocate_main_executable): Update.
12608 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12609 * solib-aix.c (solib_aix_get_section_offsets): Change return
12610 type.
12611 (solib_aix_solib_create_inferior_hook): Update.
12612 * remote.c (remote_target::get_offsets): Update.
12613 * psymtab.c (find_pc_sect_psymtab): Update.
12614 * psympriv.h (struct partial_symbol) <address, text_low,
12615 text_high>: Update.
12616 * objfiles.h (obj_section_offset): Update.
12617 (struct objfile) <section_offsets>: Change type.
12618 <num_sections>: Remove.
12619 (objfile_relocate): Update.
12620 * objfiles.c (entry_point_address_query): Update
12621 (relocate_one_symbol): Change type of "section_offsets".
12622 (objfile_relocate1, objfile_relocate1): Change type of
12623 "new_offsets".
12624 (objfile_rebase1): Update.
12625 * mipsread.c (mipscoff_symfile_read): Update.
12626 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12627 parameter.
12628 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12629 (parse_external, psymtab_to_symtab_1): Update.
12630 * machoread.c (macho_symfile_offsets): Update.
12631 * ia64-tdep.c (ia64_find_unwind_table): Update.
12632 * hppa-tdep.c (read_unwind_info): Update.
12633 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12634 * dwarf2read.c (create_addrmap_from_index)
12635 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12636 (process_psymtab_comp_unit_reader, add_partial_symbol)
12637 (add_partial_subprogram, process_full_comp_unit)
12638 (read_file_scope, read_func_scope, read_lexical_block_scope)
12639 (read_call_site_scope, dwarf2_rnglists_process)
12640 (dwarf2_ranges_process, dwarf2_ranges_read)
12641 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12642 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12643 Update.
12644 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12645 Update.
12646 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12647 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12648 (process_one_symbol): Change type of "section_offsets".
12649 * ctfread.c (get_objfile_text_range): Update.
12650 * coffread.c (coff_symtab_read, enter_linenos)
12651 (process_coff_symbol): Update.
12652 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12653 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12654
12655 2020-01-08 Tom Tromey <tromey@adacore.com>
12656
12657 * dwarf2read.c (parse_macro_definition): Use std::string.
12658 (parse_macro_definition): Likewise.
12659
12660 2020-01-08 Tom Tromey <tromey@adacore.com>
12661
12662 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12663 (ATTR_ALLOC_CHUNK): Remove.
12664
12665 2020-01-08 Tom Tromey <tromey@adacore.com>
12666
12667 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12668
12669 2020-01-08 Tom Tromey <tromey@adacore.com>
12670
12671 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12672 (dwarf2_compute_name, open_dwo_file): Likewise.
12673 (process_enumeration_scope): Use std::vector.
12674 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12675 (partial_die_info::fixup, dwarf2_start_subfile)
12676 (guess_full_die_structure_name, dwarf2_name): Likewise.
12677 (determine_prefix): Update.
12678 (guess_full_die_structure_name): Make return type const.
12679 (partial_die_full_name): Return unique_xmalloc_ptr.
12680 (DW_FIELD_ALLOC_CHUNK): Remove.
12681
12682 2020-01-07 Tom Tromey <tromey@adacore.com>
12683
12684 PR build/24937:
12685 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12686
12687 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12688
12689 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12690
12691 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12692
12693 * stack.c (print_frame_info): Move disassemble_next_line code
12694 inside source_print block.
12695
12696 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12697
12698 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12699 gdb/signals.h, as we are now using native signal symbols.
12700
12701 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12702
12703 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12704 overflow by an early check of content vs threshold.
12705 * tui/tui-source.c (tui_source_window::line_is_displayed):
12706 Likewise.
12707
12708 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12709
12710 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12711
12712 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12713
12714 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12715 export table if no section contains it's RVA.
12716
12717 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12718
12719 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12720
12721 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12722
12723 * source.c (print_source_lines_base): Set last_line_listed.
12724
12725 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12726
12727 * tui/tui-disasm.c: Remove trailing spaces.
12728
12729 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12730 Pedro Alves <palves@redhat.com>
12731
12732 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12733 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12734 (windows_gdb_signal_to_target): New function, uses the above
12735 enumeration to convert GDB internal signal codes to equivalent
12736 Windows codes.
12737 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12738 * windows-nat.c: Include "gdb_wait.h".
12739 (get_windows_debug_event): Extract the fatal exception from the
12740 exit status and convert to the equivalent Posix signal number.
12741 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12742 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12743 * gdbsupport/gdb_wait.c: New file, implements
12744 windows_status_to_termsig.
12745 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12746 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12747
12748 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12749
12750 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12751 show_layout.
12752
12753 2020-01-05 Luis Machado <luis.machado@linaro.org>
12754
12755 * aarch64-linux-nat.c
12756 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12757 and bfd_mach_aarch64.
12758
12759 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12760
12761 * ui-file.c (stdio_file::can_emit_style_escape)
12762 (tee_file::can_emit_style_escape): Ensure style is used also on
12763 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12764 to gdb_stdout.
12765 * main.c (set_gdb_data_directory): Use file style to output the
12766 warning that the given pathname is not a directory.
12767 * top.c (show_history_filename, gdb_safe_append_history)
12768 (show_gdb_datadir): Use file style.
12769
12770 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12771
12772 * solib-target.c (struct lm_info_target):
12773 Change offsets to be a unique_xmalloc_ptr.
12774 (solib_target_relocate_section_addresses): Update.
12775
12776 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12777
12778 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12779
12780 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12781
12782 * MAINTAINERS (Write After Approval): Add myself.
12783
12784 2020-01-02 Luis Machado <luis.machado@linaro.org>
12785
12786 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12787 Cell BE architecture.
12788 * target.h (struct target_ops) <thread_architecture>: Likewise.
12789
12790 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12791
12792 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12793
12794 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12795
12796 * MAINTAINERS (Write After Approval): Add myself.
12797
12798 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12799
12800 * gdbarch.sh: Update copyright year range of generated files.
12801
12802 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12803
12804 Update copyright year range in all GDB files.
12805
12806 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12807
12808 * copyright.py: Convert to Python 3.
12809
12810 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12811
12812 * copyright.py: Adapt after move of gnulib directory from gdb
12813 directory to toplevel directory.
12814
12815 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12816
12817 * copyright.py (main): Exit if run from the wrong directory.
12818
12819 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12820
12821 * top.c (print_gdb_version): Change copyright year to 2020.
12822
12823 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12824
12825 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12826
12827 For older changes see ChangeLog-2019.
12828 \f
12829 Local Variables:
12830 mode: change-log
12831 left-margin: 8
12832 fill-column: 74
12833 version-control: never
12834 coding: utf-8
12835 End: